On 11/1/07, Philipp Kempgen <philipp.kempgen@amooma.de> wrote:
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
_______________________________________________
--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
--
Arpit Mehta
Graduate Student
Department of Computer Science
Columbia University
Tel: 1-646-387-5998
No comments:
Post a Comment