[asterisk-bugs] [Asterisk 0014520]: Subscriptions to hints on another server only allows 1 watcher at a time

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Mar 10 14:53:57 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14520 
====================================================================== 
Reported By:                jrgutier
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14520
Category:                   Channels/chan_sip/Subscriptions
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-02-20 17:23 CST
Last Modified:              2009-03-10 14:53 CDT
====================================================================== 
Summary:                    Subscriptions to hints on another server only allows
1 watcher at a time
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 at 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 at 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 at 172.16.0.101:3808>
To: "adsfa adsfas"<sip:99924700 at 172.16.16.3>;tag=as460e4950
From: "JR"<sip:218904 at 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 at 172.16.16.2>;tag=610ff402
To: "adsfa adsfas"<sip:99924700 at 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





====================================================================== 

---------------------------------------------------------------------- 
 (0101491) jrgutier (reporter) - 2009-03-10 14:53
 http://bugs.digium.com/view.php?id=14520#c101491 
---------------------------------------------------------------------- 
I figured it out. You need to 1) create a sip account and 2) you need a
username= in that sip entry. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-10 14:53 jrgutier       Note Added: 0101491                          
======================================================================




More information about the asterisk-bugs mailing list