SipBuilder 添加 EventHeader
This commit is contained in:
parent
d7848cf694
commit
32ca6698fb
@ -14,7 +14,6 @@ import javax.sip.address.AddressFactory;
|
||||
import javax.sip.address.SipURI;
|
||||
import javax.sip.header.*;
|
||||
import javax.sip.message.MessageFactory;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
@ -145,6 +144,11 @@ public class SipBuilder {
|
||||
return getHeaderFactory().createExpiresHeader(expires);
|
||||
}
|
||||
|
||||
@SneakyThrows
|
||||
public static EventHeader createExpiresHeader(String event){
|
||||
return getHeaderFactory().createEventHeader(event);
|
||||
}
|
||||
|
||||
@SneakyThrows
|
||||
public static XGBVerHeader createXGBVerHeader(int m,int n){
|
||||
return new XGBVerHeaderImpl(m,n);
|
||||
|
Loading…
Reference in New Issue
Block a user