SIPjs sending empty subscribe after receiving notify..

166 views
Skip to first unread message

Rushikesh

unread,
May 11, 2021, 11:51:48 AM5/11/21
to SIP.js
Hello, 
We are facing a problem with subscribe and notify. After notify is accepted for the first subscribe, a second notify is sent automatically.

SUBSCRIBE sip:mc...@sip.example.com SIP/2.0
Via: SIP/2.0/WS te956l9u7hc4.invalid;branch=z9hG4bK8620217
From: "test-444" <sip:mcx.test...@sip.example.com>;tag=ci2ckk56sg
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
From: "test-444" <sip:mcx.test...@sip.example.com>;tag=ci2ckk56sg
To: <sip:mc...@sip.example.com>;tag=Hz3H2IBdpgZN
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
To: <sip:mcx.test...@172.27.232.157:41462>;transport=ws;tag=ci2ckk56sg
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
To: <sip:mcx.test...@172.27.232.157:41462>;transport=ws;tag=ci2ckk56sg
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
To: <sip:mc...@sip.example.com>;tag=K6eHZpjQp6v5r
From: "test-444" <sip:mcx.test...@sip.example.com>;tag=ci2ckk56sg
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
From: "test-444" <sip:mcx.test...@sip.example.com>;tag=ci2ckk56sg
To: <sip:mc...@sip.example.com>;tag=K6eHZpjQp6v5r
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

Slah Lachtar

unread,
Dec 17, 2021, 8:49:05 AM12/17/21
to SIP.js
Hello,
I'm facing the same exact issue.
Were you able to fix it please?

Reply all
Reply to author
Forward
0 new messages