优化via的branch生成规则

pull/887/head
648540858 2023-06-07 21:45:15 +08:00
parent 0c14970ab8
commit ca715e0234
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import gov.nist.javax.sip.address.AddressImpl;
import gov.nist.javax.sip.address.SipUri; import gov.nist.javax.sip.address.SipUri;
import gov.nist.javax.sip.header.Subject; import gov.nist.javax.sip.header.Subject;
import gov.nist.javax.sip.message.SIPRequest; import gov.nist.javax.sip.message.SIPRequest;
import org.apache.commons.lang3.RandomStringUtils;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import javax.sip.PeerUnavailableException; import javax.sip.PeerUnavailableException;
@ -51,7 +52,7 @@ public class SipUtils {
} }
public static String getNewViaTag() { public static String getNewViaTag() {
return "z9hG4bK" + System.currentTimeMillis(); return "z9hG4bK" + RandomStringUtils.randomNumeric(10);
} }
public static UserAgentHeader createUserAgentHeader(GitUtil gitUtil) throws PeerUnavailableException, ParseException { public static UserAgentHeader createUserAgentHeader(GitUtil gitUtil) throws PeerUnavailableException, ParseException {