Arpit Mehta
2007-Nov-02 01:50 UTC
[asterisk-users] Get value from linux terminal to dialplan in Asterisk ?
Hello Asterisk Users, I wanted to know a simple way in which I could read some file from a console (say by using system command) and based on that either return true or false back to dialplan. Is there any built in command in Asterisk for that ? What are the options do I have ? Are there any sample code to do so ? Thanks a lot Regards -- Arpit Mehta Graduate Student Department of Computer Science Columbia University -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071101/43df3055/attachment-0001.htm
Philipp Kempgen
2007-Nov-02 02:25 UTC
[asterisk-users] Get value from linux terminal to dialplan in Asterisk ?
Arpit Mehta wrote:> I wanted to know a simple way in which I could read some file from a console > (say by using system command) and based on that either return true or false > back to dialplan. Is there any built in command in Asterisk for that ?AGI() In the AGI script do something like print "SET VARIABLE my_return_var 123" In the dialplan: Verbose(1,My AGI script returned ${my_return_var}); Regards, Philipp Kempgen -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk? -> http://www.das-asterisk-buch.de Gesch?ftsf?hrer: Stefan Wintermeyer Handelsregister: Neuwied B 14998