[asterisk-users] Execute EAGI script with params from extensions.conf

Eric "ManxPower" Wieling eric at fnords.org
Wed Apr 11 08:09:37 MST 2007


equis software wrote:
> How can I execute an EAGI script with params from extensions.conf
> 
> Example python script:
> InfMsg -s 1
> 
> in my extensions.conf
> exten => 492,1,Answer
> exten => 492,2,eagi,InfMsg -s 1
> exten => 492,3,Hangup()
> 
> It doesn´t work
> 
> my * report...
> 
> -- Executing [92 at telpin-112:2] EAGI("Zap/4-1", "InfMsg -s 1") in new stack
>    -- Launched AGI Script /var/lib/asterisk/agi-bin/InfMsg -s 1
>  ==  InfoTerminal -s 1: Failed to execute '/var/lib/asterisk/agi-bin/InfMsg
> -s 1': No such file or directory


Commas.  exten => 492,2,eagi(InfMsg,-s,1)

At leeast in older versions of Asterisk, AGI only supports 1 parameter. 
  I got around this by separating options with an &.  Then break them 
out into options within my script.  I don't know if 1.2 or 1.4 fixed this.



More information about the asterisk-users mailing list