Giuseppe D'alessio
2010-Dec-06 23:48 UTC
[asterisk-users] Execute DialPlan Context without Answer App
Hi, i have context in a dialplan, I want to "execute" this context without insert the Answer Application (s? ..without call any ext). Example : [sistema-allarmi-principale] exten => s,1,Set(GRUPPO=${DIAL:-2:1}) exten => s,2,Set(ALLARME=${DIAL:1:1}) exten => s,3,AGI(checkgroup.php|${GRUPPO}) ;rest of... I tried with a Call Data File.. i create a CallDataFile like this : channel: Local/500 at from-internal maxretries: 1 retrytime: 60 waittime: 60 callerid: "Sistema Allarmi" <500> context: sistema-allarmi-principale extension: s priority: 1 Set: DIAL=103 data: I'm not sure on the channel,context and callerid param. The DIAL param is a code for an alarm, the [sistema-allarmi-principale] decode the alarm and call DeadAGI to start broadcast call with Teleyapper. At a glance... I have a php webscript that create a call data file ( read from form the DIAL and insert in it) then before launch Teleyapper i have to decode group and alarm type from DIAL. Ex . If the Dial is 101 the group is 1 ( third number ) and the alarm type ( second number ) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101207/3af2ee49/attachment.htm
Daniel Tryba
2010-Dec-09 17:26 UTC
[asterisk-users] Execute DialPlan Context without Answer App
On Tue, Dec 07, 2010 at 12:48:43AM +0100, Giuseppe D'alessio wrote:> Hi, i have context in a dialplan, I want to "execute" this context > without insert the Answer Application (s? ..without call any ext).[snipped] I'm puzzeled: What is the question? Is something going wrong or unexpected? (I'm to lazy to implement your dialplan to see what happens) And why not just use extension based calls, assuming the problem is with not populating $DIAL. In callfile: Channel: Local/103 at sistema-allarmi-principale With context: [sistema-allarmi-principale] exten => _X.,1,Set(GRUPPO=${EXTEN:-2:1}) exten => _X.,2,Set(ALLARME=${EXTEN:1:1}) exten => _X.,3,AGI(checkgroup.php|${GRUPPO}) -- Daniel Tryba