OK, I need to dial a macro from AGI and needs to pass an argument.
Ok, I found an bug report, but it was stated "un fixable?" really after 5 years? https://issues.asterisk.org/view.php?id=2470 I found this email in the archive, but no solution other then the dodgy work around? http://www.mail-archive.com/[email protected]/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/${dial...@sipprovider,60) exten => s,4,GotoIf($["${DIALSTATUS}" = "CONGESTION"]?10) exten => s,6,Hangup() exten => s,10,Dial(IAX2/SERVER2/${DIALNO}) exten => s,12,Hangup() but when the macro is called, Dialno = nothing.
-- _____________________________________________________________________ -- 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
