[asterisk-users] Pattern Extension not working in Dialplan

Anurag Rana anuragrana31189 at gmail.com
Sun Sep 7 15:41:45 CDT 2014


Hi,

I created a dummy dialplan  where I ask the user to enter the age.

[macro-age]
exten => s,1,Background(my/age)      ;;Play recorded message to enter age
exten => s,n,WaitExten(10)
exten => _XX,1,Set(AGE=${EXTEN})    ;; this line is not executing, instead
dialplan is terminating with error given below.
exten => s,n,NoOp(${AGE})
exten => s,n,GotoIf($[${LEN(${AGE})} > 0]?notEmpty)
exten => s,n,Goto(s,1)
exten => s(notEmpty),n,Background(my/thank-you)
exten => s,n,Wait(1)


When I receive call and tries to enter the digits (86 lets say), it only
accept just first digit and terminates even before considering second digit.
Error message :
 WARNING[5726][C-0000000a]: pbx.c:6696 __ast_pbx_run: Invalid extension
'8', but no rule 'i' or 'e' in context 'testmacro'

Please suggest what might be wrong.


Anurag Rana
http://newbie42.blogspot.in/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140908/e8ea5bbb/attachment.html>


More information about the asterisk-users mailing list