[Home]

Summary:ASTERISK-10284: subscribecontext ignored
Reporter:Badalian Vyacheslav (slavon)Labels:
Date Opened:2007-09-12 00:59:44Date Closed:2007-11-03 08:57:07
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Subscriptions
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
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"
Comments:By: Joshua C. Colp (jcolp) 2007-09-12 08:14:12

Please provide sip debug and a sip show peer.

By: lokotes (lokotes) 2007-09-23 06:54:44

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@192.168.1.31 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.104:5060;branch=z9hG4bK-6668935d
From: "130" <sip:130@192.168.1.31>;tag=42f93bf490720eca
To: <sip:133@192.168.1.31>
Call-ID: ab3e7078-fd40cfda@192.168.1.104
CSeq: 1002 SUBSCRIBE
Max-Forwards: 70
Authorization: Digest username="130",realm="asterisk",nonce="124d127b",uri="sip:133@192.168.1.31",algorithm=MD5,response="b9c645128633c4264c232f2ad696a7c5"
Contact: "130" <sip:130@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@192.168.1.31>;tag=42f93bf490720eca
To: <sip:133@192.168.1.31>;tag=as18f46faa
Call-ID: ab3e7078-fd40cfda@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@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@192.168.1.130:5060

By: Digium Subversion (svnbot) 2007-11-02 15:48:38

Repository: asterisk
Revision: 88366

U   branches/1.4/channels/chan_sip.c

------------------------------------------------------------------------
r88366 | file | 2007-11-02 15:48:37 -0500 (Fri, 02 Nov 2007) | 4 lines

Make subscribecontext behave as advertised. It will now look for the presence of a hint in the given context (be it subscribecontext or context).
(closes issue ASTERISK-10284)
Reported by: slavon

------------------------------------------------------------------------

By: Digium Subversion (svnbot) 2007-11-02 15:50:05

Repository: asterisk
Revision: 88367

_U  trunk/
U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r88367 | file | 2007-11-02 15:50:05 -0500 (Fri, 02 Nov 2007) | 12 lines

Merged revisions 88366 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88366 | file | 2007-11-02 17:49:45 -0300 (Fri, 02 Nov 2007) | 4 lines

Make subscribecontext behave as advertised. It will now look for the presence of a hint in the given context (be it subscribecontext or context).
(closes issue ASTERISK-10284)
Reported by: slavon

........

------------------------------------------------------------------------

By: Digium Subversion (svnbot) 2007-11-03 08:57:07

Repository: asterisk
Revision: 88435

_U  team/group/CDRfix5/
U   team/group/CDRfix5/CHANGES
U   team/group/CDRfix5/CREDITS
U   team/group/CDRfix5/channels/chan_sip.c
A   team/group/CDRfix5/channels/chan_unistim.c
A   team/group/CDRfix5/configs/unistim.conf.sample
A   team/group/CDRfix5/doc/unistim.txt
U   team/group/CDRfix5/main/cli.c
U   team/group/CDRfix5/pbx/pbx_lua.c

------------------------------------------------------------------------
r88435 | murf | 2007-11-03 08:57:06 -0500 (Sat, 03 Nov 2007) | 61 lines

Merged revisions 88367-88368,88370-88371,88376,88408-88409 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r88367 | file | 2007-11-02 14:51:53 -0600 (Fri, 02 Nov 2007) | 12 lines

Merged revisions 88366 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88366 | file | 2007-11-02 17:49:45 -0300 (Fri, 02 Nov 2007) | 4 lines

Make subscribecontext behave as advertised. It will now look for the presence of a hint in the given context (be it subscribecontext or context).
(closes issue ASTERISK-10284)
Reported by: slavon

........

................
r88368 | russell | 2007-11-02 14:56:12 -0600 (Fri, 02 Nov 2007) | 13 lines

Merge the code from asterisk/team/group/chan_unistim:

This introduces a new channel driver, chan_unistim, that supports the Unistim
VoIP protocol for Nortel phones.  The following models have been confirmed
to work: i2002, i2004 and i2050.

(closes issue ASTERISK-8623)
Reported by: c_hans
Patches:
     chan_unistim.patch uploaded by c (license 304)
     ustm_no_conf.diff uploaded by junky (license 177)
Tested by: c_hans, dbowerman, math, junky, loloski

................
r88370 | russell | 2007-11-02 15:25:55 -0600 (Fri, 02 Nov 2007) | 3 lines

Show the channel unique ID in the "show channel concise" output
(closes issue ASTERISK-10674, requested by falves11, patched by me)

................
r88371 | russell | 2007-11-02 15:36:37 -0600 (Fri, 02 Nov 2007) | 2 lines

Don't kill asterisk if extensions.lua is not present.

................
r88376 | russell | 2007-11-02 15:39:36 -0600 (Fri, 02 Nov 2007) | 2 lines

propagate the DECLINE return value back to the loader

................
r88408 | russell | 2007-11-02 16:08:15 -0600 (Fri, 02 Nov 2007) | 2 lines

Convert the CLI commands to the new format

................
r88409 | russell | 2007-11-02 16:36:30 -0600 (Fri, 02 Nov 2007) | 1 line

fix some issues with crashing on unload, when it didn't completely load cleanly
................

------------------------------------------------------------------------