[asterisk-users] Pattern Extension not working in Dialplan

Hashmat Khan hykhan at hotmail.com
Mon Sep 8 02:57:03 CDT 2014


READ application should do the job for you
[Syntax]Read(variable[,filename[&filename2[&...]][,maxdigits[,options[,attempts[,timeout]]]]])
i normally use first three arguments i.e. variable name, filename to play and max digits
you might consider using "waitexten" before "read" though
Rgds

From: anuragrana31189 at gmail.com
Date: Mon, 8 Sep 2014 09:29:47 +0530
To: asterisk-users at 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 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 to listen whole message then only his inputs will be accepted and if he entered input during the time recording is played , the input will be lost. So if using Background() [which return the control immediately] I have to use _XX extension.
3. So basically I want to create a dial-plan where user is asked to input multi-digit value and he can enter it without listening complete message (if the user knows the message already)​

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140908/5bbb156e/attachment.html>


More information about the asterisk-users mailing list