[Home]

Summary:ASTERISK-13620: Subscriptions to hints on another server only allows 1 watcher at a time
Reporter:Jose Roberto Gutierrez (jrgutier)Labels:
Date Opened:2009-02-20 17:23:01.000-0600Date Closed:2011-06-07 14:03:13
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Subscriptions
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:My company off-loaded the parking lot to another server to help debug a segfault with parking (bugs.digium.com/view.php?id=14440).

I'm trying to setup BLF with the parameter 99924700@172.16.16.3, and it works fine for the first user. I've set it up the following so it will allow me to subscribe without having a sip entry on the box:
autocreatepeer=yes
insecure=very

When the next person tries SIP SUBSCRIBE, it doesn't add to the list. It overwrites the other one without any notification, which is evident when I turn off the first client and it gives this SIP response:

<------------>
[Feb 20 15:18:52] VERBOSE[24749] logger.c:
<--- SIP read from 172.16.0.101:3808 --->
SUBSCRIBE sip:99924700@172.16.16.3 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.101:3808;branch=z9hG4bK-d8754z-56974540c1f7be00-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:218904@172.16.0.101:3808>
To: "adsfa adsfas"<sip:99924700@172.16.16.3>;tag=as460e4950
From: "JR"<sip:218904@172.16.16.2>;tag=610ff402
Call-ID: YWE1OWNmYmI5YmFlMzdiNzlhMTYyODYxYjM0MjkyN2U.
CSeq: 3 SUBSCRIBE
Expires: 0
User-Agent: X-Lite release 1014k stamp 47051
Event: presence
Content-Length: 0


<------------->
[Feb 20 15:18:52] VERBOSE[24749] logger.c: --- (12 headers 0 lines) ---
[Feb 20 15:18:52] VERBOSE[24749] logger.c: Received resubscription for a dialog we no longer know about. Telling remote side to subscribe again.
[Feb 20 15:18:52] VERBOSE[24749] logger.c:
<--- Transmitting (no NAT) to 172.16.0.101:3808 --->
SIP/2.0 481 Subscription does not exist
Via: SIP/2.0/UDP 172.16.0.101:3808;branch=z9hG4bK-d8754z-56974540c1f7be00-1---d8754z-;received=172.16.0.101;rport=3808
From: "JR"<sip:218904@172.16.16.2>;tag=610ff402
To: "adsfa adsfas"<sip:99924700@172.16.16.3>;tag=as460e4950
Call-ID: YWE1OWNmYmI5YmFlMzdiNzlhMTYyODYxYjM0MjkyN2U.
CSeq: 3 SUBSCRIBE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0




Comments:By: Joshua C. Colp (jcolp) 2009-02-24 08:38:37.000-0600

Can you please provide a complete SIP trace including a working subscription? The SUBSCRIBE you have in the issue report actually seems to have all the details for a resubscription, not a fresh subscription. Since chan_sip doesn't know anything about the subscription to begin with it says it does not exist.

By: Joshua C. Colp (jcolp) 2009-03-10 14:49:22

jrgutier: Can you please attach the needed SIP trace? thanks.

By: Jose Roberto Gutierrez (jrgutier) 2009-03-10 14:53:57

I figured it out. You need to 1) create a sip account and 2) you need a username= in that sip entry.

By: Joshua C. Colp (jcolp) 2009-03-10 14:56:51

Alrighty then, closed per reporter.