[Home]

Summary:ASTERISK-08963: Pattern matching occurs at every sequence number of the dial plan
Reporter:tkp (tkp)Labels:
Date Opened:2007-03-07 20:36:46.000-0600Date Closed:2011-06-07 14:07:24
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Functions/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:It appears that the pattern matching occurs at every sequence number. Thus:

exten => _123X.,1,Playback(not-authorized)
exten => _1X.,1,Playback(connecting)
exten => _1X.,n,Dial(SIP/${EXTEN})

will still dial the extension after playing not=authorized

You need something similar to this to obtain the expected result:

exten => _123X.,1,Playback(not-authorized)
exten => _123X.,n,NoOp()
exten => _1X.,1,Playback(connecting)
exten => _1X.,n,Dial(SIP/${EXTEN})
Comments:By: Leif Madsen (lmadsen) 2007-03-07 20:47:51.000-0600

This is expected behaviour:

_123X.,1,NoOp()
_1X.,n,NoOp()

Both of these will be executed because the pattern match which is valid for _123X. is also valid for _1X.

You even gave yourself the answer!!!