Tilghman Lesher schrieb:
> On Thursday 22 January 2009 16:16:33 Ken D'Ambrosio wrote:
>> Hi, all.  I want to execute a script, and return the value of said
>> (Python) script to the dialplan.  I thought something like
>>
>> exten => 1,1,Set(MyWorkingDir=System(/bin/pwd))
>>
>> might work, but apparently not.  I also looked into AGI stuff, but that
>> doesn't quite seem to be the right approach.  Surely there's *some* way to
>> do this...
>>
>> Any suggestions?
> 
> Set(foo=${SHELL(my_shell_script.sh)})

Since 1.6.

In 1.4 you have to use AGI().


   Philipp Kempgen

-- 
AMOOCON 2009, May 4-5, Rostock / Germany   ->  http://www.amoocon.de
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
-- 

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to