Re: [asterisk-users] Pattern Extension not working in Dialplan

2014-09-08 Thread Hashmat Khan
: anuragrana31...@gmail.com Date: Mon, 8 Sep 2014 09:29:47 +0530 To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Pattern Extension not working in Dialplan ​Thank you all for your suggestions. 1. [macro-age] is a macro and not an extension badly named. 2. I am able to use Read to fulfill

Re: [asterisk-users] Pattern Extension not working in Dialplan

2014-09-08 Thread A J Stiles
On Sunday 07 Sep 2014, Anurag Rana wrote: 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

Re: [asterisk-users] Pattern Extension not working in Dialplan

2014-09-08 Thread Anurag Rana
Thanks for the suggestion. @Stiles - Look like this may work. Will try this. Thanks. Anurag Rana http://newbie42.blogspot.in/ On Mon, Sep 8, 2014 at 1:42 PM, A J Stiles asterisk_l...@earthshod.co.uk wrote: On Sunday 07 Sep 2014, Anurag Rana wrote: Hi, I created a dummy dialplan

Re: [asterisk-users] Pattern Extension not working in Dialplan

2014-09-08 Thread Anurag Rana
@A J Stiles : If you could provide an example as you said, It would be very nice. Thanks. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every

Re: [asterisk-users] Pattern Extension not working in Dialplan

2014-09-08 Thread A J Stiles
On Monday 08 Sep 2014, Anurag Rana wrote: @A J Stiles : If you could provide an example as you said, It would be very nice. Thanks. This is excerpted from a dialplan application I wrote. It's actually a PIN entry but should be usable for any general purpose application. Sound files

Re: [asterisk-users] Pattern Extension not working in Dialplan

2014-09-08 Thread Anurag Rana
​Thanks. I will try it. Meanwhile I was trying below code. call goes to 'test' context and from there is passed to macro 'age'. In 'age' macro when I am using any patter to accept even single digit, its not working. So instead of using pattern I hardcoded the extension, but still when I am

[asterisk-users] Pattern Extension not working in Dialplan

2014-09-07 Thread Anurag Rana
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

Re: [asterisk-users] Pattern Extension not working in Dialplan

2014-09-07 Thread John Kiniston
The first issue I see is you are attempting to insert your pattern match in the middle of your 's' extension, That's going to break your 's' extension. The second issue is that you are matching on XX which will match two digits, You need to match on _X instead if you are attempting to match on

Re: [asterisk-users] Pattern Extension not working in Dialplan

2014-09-07 Thread Steve Edwards
Please don't top-post. On Sun, Sep 7, 2014 at 1:41 PM, Anurag Rana anuragrana31...@gmail.com wrote: 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)              

Re: [asterisk-users] Pattern Extension not working in Dialplan

2014-09-07 Thread Steve Edwards
On Sun, 7 Sep 2014, Steve Edwards wrote: In specific, your ordering of '_xx' in the middle of 's' is odd. This would disrupt the value of the priority in older versions of Asterisk, but it appears that it does work in modern (I'm using 11) versions. Disregard that. I can't even follow my own

Re: [asterisk-users] Pattern Extension not working in Dialplan

2014-09-07 Thread Anurag Rana
​Thank you all for your suggestions. 1. [macro-age] is a macro and not an extension badly named. 2. I am able to use Read to fulfill the purpose but we can't use Read() after Background(). To use read we need Playback() [ am I right?]. But Playback do not provide barge-in facility i.e. user have