[Home]

Summary:ASTERISK-16031: [patch] Freenum-in-a-can dialplan correction for failing pattern match
Reporter:Philip Prindeville (pprindeville)Labels:
Date Opened:2010-04-29 13:22:33Date Closed:2010-04-30 00:25:07
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Documentation
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) freenum-dialplan.patch#2
( 1) freenum-dialplan.patch#3
Description:Although the existing rule:

exten => _stdexten-.,1,Goto(stdexten-NOANSWER,1) ; Treat anything else as no answer

will match the extension stdexten-CONGESTION, for instance, a similar rule:

exten => _fn-.,1,NoOp(ISN: ${DIALSTATUS})

will not.  Apparently in the first instance, 'n' and 'x' are just letters, but in the second case, 'n' means [1-9].

It's not clear what the difference is.  Adding a workaround.


****** STEPS TO REPRODUCE ******

Dial an invalid ISN number, in this case 555*99999:

   -- Executing [555*99999@outbound-freenum2:6] GotoIf("SIP/guest_1-0000001f", "0?:fn-CONGESTION,1") in new stack
   -- Goto (outbound-freenum2,fn-CONGESTION,1)
[Apr 29 11:51:30] WARNING[8552]: pbx.c:4358 __ast_pbx_run: Channel 'SIP/guest_1-0000001f' sent into invalid extension 'fn-CONGESTION' in context 'outbound-freenum2', but no invalid handler
Comments:By: Philip Prindeville (pprindeville) 2010-04-29 13:24:14

With the patch:

   -- Executing [555*99999@outbound-freenum2:6] GotoIf("SIP/guest_1-00000029", "0?from:") in new stack
   -- Executing [555*99999@outbound-freenum2:7] Set("SIP/guest_1-00000029", "DIALSTATUS=CONGESTION") in new stack
   -- Executing [555*99999@outbound-freenum2:8] Goto("SIP/guest_1-00000029", "fn-CONGESTION,1") in new stack
   -- Goto (outbound-freenum2,fn-CONGESTION,1)
   -- Executing [fn-CONGESTION@outbound-freenum2:1] NoOp("SIP/guest_1-00000029", "ISN: CONGESTION") in new stack
   -- Executing [fn-CONGESTION@outbound-freenum2:2] Congestion("SIP/guest_1-00000029", "") in new stack
 == Spawn extension (outbound-freenum2, fn-CONGESTION, 2) exited non-zero on 'SIP/guest_1-00000029'

By: Philip Prindeville (pprindeville) 2010-04-29 13:59:21

Second attachment fixes "stdexten" examples.

By: Digium Subversion (svnbot) 2010-04-30 00:23:56

Repository: asterisk
Revision: 260280

U   trunk/configs/extensions.conf.sample

------------------------------------------------------------------------
r260280 | tilghman | 2010-04-30 00:23:56 -0500 (Fri, 30 Apr 2010) | 7 lines

Logic fixups for a sample FREENUM dialplan context.

(closes issue ASTERISK-16031)
Reported by: pprindeville
Patches:
      freenum-dialplan.patch#3 uploaded by pprindeville (license 347)

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

http://svn.digium.com/view/asterisk?view=rev&revision=260280

By: Digium Subversion (svnbot) 2010-04-30 00:25:06

Repository: asterisk
Revision: 260281

_U  branches/1.6.2/
U   branches/1.6.2/configs/extensions.conf.sample

------------------------------------------------------------------------
r260281 | tilghman | 2010-04-30 00:25:06 -0500 (Fri, 30 Apr 2010) | 14 lines

Merged revisions 260280 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r260280 | tilghman | 2010-04-30 00:23:56 -0500 (Fri, 30 Apr 2010) | 7 lines
 
 Logic fixups for a sample FREENUM dialplan context.
 
 (closes issue ASTERISK-16031)
  Reported by: pprindeville
  Patches:
        freenum-dialplan.patch#3 uploaded by pprindeville (license 347)
........

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

http://svn.digium.com/view/asterisk?view=rev&revision=260281