You need to pass the arguments as separate arguments to the EAGI dialplan
application, eg:

exten => 492,2,EAGI(InfMsg,-s,1)

but I would recommend using pipes...

exten => 492,2,EAGI(InfMsg|-s|1)

But maybe that's just me.

On 4/11/07, equis software <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]: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



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


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

Reply via email to