Hello,
We are facing a problem with subscribe and notify. After notify is accepted for the first subscribe, a second notify is sent automatically.
Via: SIP/2.0/WS te956l9u7hc4.invalid;branch=z9hG4bK8620217
CSeq: 1 SUBSCRIBE
Call-ID: rgqilfguou8ml2hvm9e0
Max-Forwards: 70
Accept: application/pidf+xml
Allow: ACK,BYE,CANCEL,INFO,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE
Event: presence
Expires: 4294967295
Contact: <sip:test...@te956l9u7hc4.invalid;transport=ws>
Supported: outbound
User-Agent: SIP.js/0.20.0
Content-Type: application/vnd.3gpp.mcptt-info+xml
Content-Length: 309
<?xml version="1.0" encoding="UTF-8"?><mcpttinfo>//Some data</mcpttinfo>
SIP/2.0 200 OK
Via: SIP/2.0/WS te956l9u7hc4.invalid;branch=z9hG4bK8620217;received=172.27.232.157;rport=41462
Call-ID: rgqilfguou8ml2hvm9e0
CSeq: 1 SUBSCRIBE
Contact: <sip:mcdx@ServerIp:8642>
Expires: 4294967295
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: path, replaces
Allow-Events: talk, hold, conference, presence, poc-settings, xcap-diff, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Subscription-State: active;expires=4294967295
Content-Length: 0
NOTIFY sip:mcx.test...@172.27.232.157:41462;transport=ws SIP/2.0
Via: SIP/2.0/WS ServerIP:5066;branch=z9hG4bK154XeZKjaHSZB
Max-Forwards: 70
Call-ID: rgqilfguou8ml2hvm9e0
CSeq: 35819055 NOTIFY
Contact: <sip:mod_sofia@ServerIP:8642>
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: path, replaces
Event: presence
Allow-Events: presence
Subscription-State: active;expires=4294967295
Content-Type: application/pidf+xml
Content-Length: 579
<?xml version="1.0" encoding="UTF-8"?>
<presence>//Some data</presence>
SIP/2.0 200 OK
Via: SIP/2.0/WS ServerIP:5066;branch=z9hG4bK154XeZKjaHSZB
CSeq: 35819055 NOTIFY
Call-ID: rgqilfguou8ml2hvm9e0
Supported: outbound
User-Agent: SIP.js/0.20.0
Content-Length: 0
SUBSCRIBE sip:mod_sofia@ServerIP:8642 SIP/2.0
Via: SIP/2.0/WS te956l9u7hc4.invalid;branch=z9hG4bK3897716
CSeq: 2 SUBSCRIBE
Call-ID: rgqilfguou8ml2hvm9e0
Max-Forwards: 70
Allow: ACK,BYE,CANCEL,INFO,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE
Event: presence
Expires: 4294967295
Contact: <sip:test...@te956l9u7hc4.invalid;transport=ws>
Supported: outbound
User-Agent: SIP.js/0.20.0
Content-Length: 0
SIP/2.0 200 OK
Via: SIP/2.0/WS te956l9u7hc4.invalid;branch=z9hG4bK3897716;received=172.27.232.157;rport=41462
Call-ID: rgqilfguou8ml2hvm9e0
CSeq: 2 SUBSCRIBE
Contact: <sip:mcdx@ServerIp:8642>
Expires: 4294967295
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: path, replaces
Allow-Events: talk, hold, conference, presence, poc-settings, xcap-diff, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Subscription-State: active;expires=4294967295
Content-Length: 0