So, I take it nobody has a solution to this?
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of William
Stillwell
Sent: Friday, January 07, 2011 12:07 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: [asterisk-users] AGI->Macro w/Agruments
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/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()
exten => s,10,Dial(IAX2/SERVER2/${DIALNO})
exten => s,12,Hangup()
but when the macro is called, Dialno = nothing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20110114/8e958f1c/attachment.htm>