search for: agidial

Displaying 2 results from an estimated 2 matches for "agidial".

2003 Sep 25
2
AGI: getting the return code from an exec()'d application?
So I hacked up the Dial app to return a numeric return code instead of changing contexts based on a number being busy or unanswered. The purpose for this modified dial app, which I call AGIDial, is to help me concoct a "follow-me" type of application. The app returns -1 for a completed call, 0 for unanswered, or 1 for busy. Well, I hooked the thing up to an AGI script that uses perl and AGI.pm, and ran some tests. The AGIDial app is definitely returning the right status codes...
2011 Jan 07
1
AGI->Macro w/Agruments
...ve, but no solution other then the dodgy work around? http://www.mail-archive.com/asterisk-users at lists.digium.com/msg85048.html I have tried this, but it doesn't work. $AGI->set_variable('DAILNO', $BranchPhone); $AGI->exec("Macro","agidial"); And my macro: [macro-agidial] exten => s,1,AGI(getcid.pl,${CALLERID(NUM)},1) exten => s,2,NoOp(DIALNO=${DIALNO}) exten => s,3,Dial(SIP/${DIALNO}@SIPPROVIDER,60) exten => s,4,GotoIf($["${DIALSTATUS}" = "CONGESTION"]?10) exten => s,6,Hangup()...