SipHeader.create("Supported", "timer, path, replaces"))
.withHeader(SipHeader.create("WWW-Authenticate...}
输出如下:
SIP/2.0 401 Unauthorized
Call-ID: 1e7af0e67a5044658fc7f6716d329642
CSeq: 36850 REGISTER
WWW-Authenticate...MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
WWW-Authenticate...最后来谈下如何扩展ptks未支持的Header,一般情况下,如果ptks不支持的Header,比如:
WWW-Authenticate: Digest realm="10.32.26.25", nonce...}
}
}
}
SipHeader里添加
default boolean isWWWAuthenticateHeader() {
//WWW-Authenticate