in a simple dialplan like follows:

[firstcontext]
include => secondcontext
include => thirdcontext
include => fourthcontext

[fourthcontext]
_03X.,1,Goto(${EXTEN:2},1)

_X.,1,DoSomething()
_X.,2,Hangup()

the Goto() for exten _03X. seems to start the search for the jump within firstcontext, thus possibly matching an exten in secondcontext or thirdcontext first before hitting the matchall in fourthcontext. obviously, a simple fix would be to change it to Goto(fourthcontext,${EXTEN:2},1).

however, i dont remember Goto working this way. shouldn't a Goto search within the current context first when the context parameter is ommitted ?

it's asterisk 1.2.14 in FreeBSD 6.1 though.

--
Regards,                           /\_/\   "All dogs go to heaven."
[EMAIL PROTECTED]                (0 0)   http://www.openmalaysiablog.com/
+==========================----oOO--(_)--OOo----==========================+
| for a in past present future; do                                        |
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo "The opinions here in no way reflect the opinions of my $a $b."  |
| done; done                                                              |
+=========================================================================+
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to