Summary: | ASTERISK-08837: Calls arriving into the dialplan from chan_zap with a zero length Called Number IE fail to goto 's' priority of assigned context | ||
Reporter: | kb1_kanobe2 (kb1_kanobe2) | Labels: | |
Date Opened: | 2007-02-19 01:29:52.000-0600 | Date Closed: | 2007-12-17 12:04:18.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_zap |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 20070906__9099.diff.txt | |
Description: | When an ISDN call arrives with a zero length Called Number IE. Eg.: < [70 01 a1] < Called Number (len= 3) [ Ext: 1 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '' ] A simple context consisting of: [in-cs1000] exten => s,1,NoOp(s) exten => s,2,Answer() exten => s,3,Dial(zap/g2/0,30) ; Handle OSA IE exten => _X.,1,NoOp(_X.) exten => _X.,2,Answer() exten => _X.,3,Dial(zap/g2/${EXTEN},30) ; Pass the call through Results in a behavior of: -- Extension '' in context 'in-cs1000' from '8856800' does not exist. Rejecting call on channel 0/18, span 1 However, a context of: [in-cs1000] exten => ,1,NoOp(This shouldn't be necessary) exten => s,1,NoOp(s) exten => s,2,Answer() exten => s,3,Dial(zap/g2/0,30) ; Handle OSA IE exten => _X.,1,NoOp(_X.) exten => _X.,2,Answer() exten => _X.,3,Dial(zap/g2/${EXTEN},30) ; Pass the call through results in: -- Accepting call from '8856800' to '' on channel 0/16, span 1 -- Executing NoOp("Zap/13-1", "s") in new stack -- Executing Answer("Zap/13-1", "") in new stack -- Executing Dial("Zap/13-1", "zap/g2/0|30") in new stack Notice that the '' priority as defined was apparently never touched. The '' priority really ought to be the entrypoint if defined and 'i' if it's not, however having a line that reads "exten => ,1,..." is also quite counterintuitive... other than ISDN issues is there any logical reason not to have the call jump straight into to the 's' context? ****** ADDITIONAL INFORMATION ****** I tried defining a 'i' priority and not defining the '' priority to see if that would catch the call, however it still results in: -- Extension '' in context 'in-cs1000' from '8856800' does not exist. Rejecting call on channel 0/14, span 1 | ||
Comments: | By: Serge Vecher (serge-v) 2007-03-07 13:19:14.000-0600 you are right, it should go into an 's' context. By: Jason Parker (jparker) 2007-06-13 13:46:55 It looks like it is going to s, but it's first doing a check on whether the dialed extension exists, before changing it to s. By: Tilghman Lesher (tilghman) 2007-09-06 12:19:34 Surprisingly enough, if you have the following in your dialplan, it works fine: exten => ,1,Goto(s,1) By: Tilghman Lesher (tilghman) 2007-09-06 12:20:14 Have we confirmed that this is still a problem in 1.4? By: Dwayne Hubbard (dhubbard) 2007-09-06 14:07:45 Corydon, No, I haven't confirmed that this is a problem in 1.4. I took this as a background task and haven't had the chance to look at it. By: Tilghman Lesher (tilghman) 2007-09-06 15:30:36 Patch for 1.4 uploaded. Please test to ensure that it fixes your issue. By: Digium Subversion (svnbot) 2007-12-17 12:02:49.000-0600 Repository: asterisk Revision: 93250 U branches/1.4/channels/chan_zap.c ------------------------------------------------------------------------ r93250 | file | 2007-12-17 12:02:48 -0600 (Mon, 17 Dec 2007) | 6 lines If a call is received with a called number IE containing nothing go to the 's' extension. (closes issue ASTERISK-8837) Reported by: kb1_kanobe2 Patches: 20070906__9099.diff.txt uploaded by Corydon76 (license 14) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=93250 By: Digium Subversion (svnbot) 2007-12-17 12:04:18.000-0600 Repository: asterisk Revision: 93252 _U trunk/ U trunk/channels/chan_zap.c ------------------------------------------------------------------------ r93252 | file | 2007-12-17 12:04:18 -0600 (Mon, 17 Dec 2007) | 14 lines Merged revisions 93250 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r93250 | file | 2007-12-17 14:05:55 -0400 (Mon, 17 Dec 2007) | 6 lines If a call is received with a called number IE containing nothing go to the 's' extension. (closes issue ASTERISK-8837) Reported by: kb1_kanobe2 Patches: 20070906__9099.diff.txt uploaded by Corydon76 (license 14) ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=93252 |