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

Arpit Mehta am2866 at columbia.edu
Fri Nov 2 12:37:29 CDT 2007


Thanks !!

On 11/1/07, Philipp Kempgen <philipp.kempgen at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071102/b29d64ae/attachment.htm 


More information about the asterisk-users mailing list