[asterisk-users] Get value from linux terminal to dialplan in Asterisk ?

Philipp Kempgen philipp.kempgen at amooma.de
Thu Nov 1 21:25:40 CDT 2007


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



More information about the asterisk-users mailing list