SipBuilder 添加 EventHeader

This commit is contained in:
shikong 2023-09-25 02:25:08 +08:00
parent d7848cf694
commit 32ca6698fb

View File

@ -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);