[asterisk-users] Get dialed numbers in AGI

Eric "ManxPower" Wieling eric at fnords.org
Thu Jan 11 13:10:51 MST 2007


Steve Edwards wrote:
> On Thu, 11 Jan 2007, Yuan LIU wrote:
> 
>> 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.
> 
> But, in the interest of "more maintainable code," you can pass the 
> option name and use "getopt_long()" in "C" or whatever language you use. 
> For example,
> 
>     agi(block-ani,--ani=555555555,--dnis=8005551212,--debug,--verbose)
> 
> vs
> 
>     agi(block-ani|555555555|8005551212|y|y)

AGI() does not support more than 1 parameter to AGIs.



More information about the asterisk-users mailing list