Thanks !!<br><br><div><span class="gmail_quote">On 11/1/07, <b class="gmail_sendername">Philipp Kempgen</b> <<a href="mailto:philipp.kempgen@amooma.de">philipp.kempgen@amooma.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Arpit Mehta wrote:<br><br>> I wanted to know a simple way in which I could read some file from a console<br>> (say by using system command) and based on that either return true or false<br>> back to dialplan. Is there any built in command in Asterisk for that ?
<br><br>AGI()<br><br>In the AGI script do something like<br>print "SET VARIABLE my_return_var 123"<br><br>In the dialplan:<br>Verbose(1,My AGI script returned ${my_return_var});<br><br><br>Regards,<br> Philipp Kempgen
<br><br>--<br>amooma GmbH - Bachstr. 126 - 56566 Neuwied - <a href="http://www.amooma.de">http://www.amooma.de</a><br> Let's use IT to solve problems and not to create new ones.<br> Asterisk? -> <a href="http://www.das-asterisk-buch.de">
http://www.das-asterisk-buch.de</a><br><br>Geschäftsführer: Stefan Wintermeyer<br>Handelsregister: Neuwied B 14998<br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">
http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Arpit Mehta<br>Graduate Student<br>Department of Computer Science<br>Columbia University<br><br>Tel: 1-646-387-5998