[Asterisk-Users] Passing Var to PHP-AGI

Stefan de Konink skinkie at xs4all.nl
Tue Nov 30 07:00:13 MST 2004


You are able to read the envirionment variables with the AGI command 'GET
VARIABLE <variablename>'.

http://home.cogeco.ca/~camstuff/agi.html#GETVARIABLE
http://www.voip-info.org/tiki-index.php?page=Asterisk%20AGI
http://www.voip-info.org/wiki-Asterisk+AGI+php


Stefan

On Tue, 30 Nov 2004, Mike Roberts wrote:

> exten => auth_dial,1,DigitTimeout,5
> exten => auth_dial,2,ResponseTimeout,15
> exten => auth_dial,3,Read(dialed,IVR/en_enter_destination,0)
> exten => auth_dial,4,agi(call_start.php|${dialed})
> exten => auth_dial,5,dial(SIP/${dialed}@146.82.15.241)
>
> I'm trying to get What they dialed put into the PHP script. How do I
> get the contents of this variable in the php script?
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list