[asterisk-users] Dialplan end of pattern matching question

Gabriel Ortiz Lour ortiz.admin at gmail.com
Tue Feb 15 14:47:05 CST 2011


Hi,

  I've noticed an unusual behavior on the dialplan execution: assume this
DP:

exten => _6XXX,1,NoOp(test1)

exten => _XXXX,1,NoOp(test2)
exten => _XXXX,2,NoOp(test3)

If I call 6000 then test1 and test3 NoOps get executed, even though the
pattern is different.

I've always thought that if I call 6000 it would match the 6XXX pattern,
that only has 1 priority, that would get executed and will be the end.
But it seams that it finds the 2nd priority on the other pattern, and since
it matches the dialed number it carry on with the execution.

Is there a way to make asterisk behave like I've thought it would? Not keep
executing the DP when the first pattern matched ends?
(I dont want to use Hangup(), since it would suppress BUSY,CONGESTION and
other status...)

Thanks in advance,
Gabriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110215/8be33b74/attachment.htm>


More information about the asterisk-users mailing list