[asterisk-users] Get dialed numbers in AGI
Yuan LIU
yliu11 at hotmail.com
Thu Jan 11 11:21:05 MST 2007
>From: "Ralph Liebessohn" <ralphliebessohn at gmail.com>
>
>On 1/10/07, Yuan LIU <yliu11 at hotmail.com> wrote:
>>
>> >From: "Ralph Liebessohn" <ralphliebessohn at gmail.com>
>>However, a small adaption of dial plan could accomplish what you wanted,
>>that is, to read the variable in dial plan, then pass its value to AGI.
>>Hope this helps.
>>
>>Yuan Liu
>
>Hello people,
>
>next step.
>With many other tests I may conclude that AGI is not saving my password, it
>is giving it to asterisk temporaly and the next step executed by asterisk
>doesn 't know the variable.
>If I run SAYDIGITS after READ inside extensions it works fine. What I
>cannot
>say running it on AGI.
>The architecture of Yuan or Anton can work, but how pass the value from
>dialplan to AGI or wich AGI librarie give me the function of READ in
>dialplan?
>I tried to pass value from dialplan using:
>
>AGI(myagi.php|${var})
>
>But AGI didn't see $var value. And using GET/SET VARIABLE and STREAM FILE
>into AGI is passing through the commands, nothing is being done or waiting
>to dial digits.
AGI doesn't see the name "var"; all it sees is an array @ARGV (or whatever
in the respective language). As the documentation says, values are passed
like command line arguments.
Yuan Liu
>Is that the correct way to go?
>
>--
>Ralph Liebessohn
>ICQ: 74835911
>Skype: liebessohn
>_______________________________________________
>--Bandwidth and Colocation provided by Easynews.com --
>
>asterisk-users mailing list
>To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list