[asterisk-bugs] [Asterisk 0010702]: subscribecontext ignored

noreply at bugs.digium.com noreply at bugs.digium.com
Sun Sep 23 06:54:44 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10702 
====================================================================== 
Reported By:                slavon
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10702
Category:                   Channels/chan_sip/Subscriptions
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.11  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             09-12-2007 00:59 CDT
Last Modified:              09-23-2007 06:54 CDT
====================================================================== 
Summary:                    subscribecontext ignored
Description: 
If you add subscribecontext and context params to peer like

[dez_301]
type=friend
username=dez_301
secret=dez_301
host=dynamic
canreinvite=no
context=dez-global
accountcode=dez_301
subscribecontext=dez-subscribe-special

you may see that peer try to subscribe (try to find hints) in "dez-global"
====================================================================== 

---------------------------------------------------------------------- 
 lokotes - 09-23-07 06:54  
---------------------------------------------------------------------- 
I have the same problem.
My extensions have context=from-internal and subscribecontext=ext-local
but when trying to subscribe, * is looking in 'from-internal' so ignores
subscribecontext.

Sip Debug:

<--- SIP read from 192.168.1.104:5060 --->
SUBSCRIBE sip:133 at 192.168.1.31 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.104:5060;branch=z9hG4bK-6668935d
From: "130" <sip:130 at 192.168.1.31>;tag=42f93bf490720eca
To: <sip:133 at 192.168.1.31>
Call-ID: ab3e7078-fd40cfda at 192.168.1.104
CSeq: 1002 SUBSCRIBE
Max-Forwards: 70
Authorization: Digest
username="130",realm="asterisk",nonce="124d127b",uri="sip:133 at 192.168.1.31",algorithm=MD5,response="b9c645128633c4264c232f2ad696a7c5"
Contact: "130"
<sip:130 at 192.168.1.104:5060>;+sip.instance="<00000000-0000-0000-0000-000E08DD5AFF>"
Accept: application/dialog-info+xml
Expires: 1800
Event: dialog
User-Agent: Linksys/SPA962-5.1.15(aSC)
Content-Length: 0


<------------->
--- (14 headers 0 lines) ---
Creating new subscription
Sending to 192.168.1.104 : 5060 (no NAT)
Found peer '130'
Looking for 133 in from-internal (domain 192.168.1.31)

<--- Transmitting (no NAT) to 192.168.1.104:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP
192.168.1.104:5060;branch=z9hG4bK-6668935d;received=192.168.1.104
From: "130" <sip:130 at 192.168.1.31>;tag=42f93bf490720eca
To: <sip:133 at 192.168.1.31>;tag=as18f46faa
Call-ID: ab3e7078-fd40cfda at 192.168.1.104
CSeq: 1002 SUBSCRIBE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0

testowy*CLI> sip show peer 133
testowy*CLI>

  * Name       : 133
  Secret       : <Set>
  MD5Secret    : <Not set>
  Context      : from-internal
  Subscr.Cont. : ext-local
  Language     :
  AMA flags    : Unknown
  Transfer mode: open
  CallingPres  : Presentation Allowed, Not Screened
  Callgroup    :
  Pickupgroup  :
  Mailbox      : 133 at device
  VM Extension : asterisk
  LastMsgsSent : 0/0
  Call limit   : 0
  Dynamic      : Yes
  Callerid     : "device" <133>
  MaxCallBR    : 384 kbps
  Expire       : 110
  Insecure     : no
  Nat          : RFC3581
  ACL          : No
  T38 pt UDPTL : No
  CanReinvite  : No
  PromiscRedir : No
  User=Phone   : No
  Video Support: No
  Trust RPID   : No
  Send RPID    : No
  Subscriptions: Yes
  Overlap dial : Yes
  DTMFmode     : rfc2833
  LastMsg      : 0
  ToHost       :
  Addr->IP     : 192.168.1.130 Port 5060
  Defaddr->IP  : 0.0.0.0 Port 5060
  Def. Username: 133
  SIP Options  : (none)
  Codecs       : 0xc (ulaw|alaw)
  Codec Order  : (ulaw:20,alaw:20)
  Auto-Framing:  No
  Status       : OK (22 ms)
  Useragent    : Linksys/SPA941-5.1.8
  Reg. Contact : sip:133 at 192.168.1.130:5060 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-23-07 06:54  lokotes        Note Added: 0070986                          
======================================================================




More information about the asterisk-bugs mailing list