So, I take it nobody has a solution to this?

 

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@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@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.

 

 

 

--
_____________________________________________________________________
-- 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

Reply via email to