<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>Hello guys,</span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">thanks (</span><span style="font-family: Arial; font-size: 13px; ">Avi,</span><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Brian)</span><font face="Arial" size="2">&nbsp;</font><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">alot for your help,</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div>  <div style="font-size: 12pt; font-family: 'times new roman', 'new
 york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Avi Marcus &lt;avi@avimarcus.net&gt;<br> <b><span style="font-weight: bold;">To:</span></b> FreeSWITCH Users Help &lt;freeswitch-users@lists.freeswitch.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, May 29, 2012 12:05 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Freeswitch-users] "bash" programming on freeswitch?<br> </font> </div> <br>
<div id="yiv1705116756"><div dir="ltr">Lua is good for this. Or any language over ESL or <a rel="nofollow" target="_blank" href="http://wiki.freeswitch.org/wiki/Event_socket_outbound">event socket outbound</a>, which might be the most comparable to running an external script on AGI.<br clear="all">

<div dir="ltr"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; "><span style="font-size:small;">-Avi</span></span></div>
<br><br><div class="yiv1705116756gmail_quote">On Mon, May 28, 2012 at 10:20 PM, Samira Mh <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:saami_mh@ymail.com" target="_blank" href="mailto:saami_mh@ymail.com">saami_mh@ymail.com</a>&gt;</span> wrote:<br><blockquote class="yiv1705116756gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div><span>Hi Brian,</span></div><div><span>thanks for your reply,</span></div><div><span>but i want to do more things on freeswitch using Bash script on AGI, (like asterisk)</span></div>

<div><span>i want to run for/while loop , if-else condition usin bash and use of the result of running AGI on freeswitch dialplan</span></div><div><span><span style="font-size: 13px; font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; ">&nbsp;On asterisk the dial plan looks as follows<br>

<br>exten =&gt; 1500,1,AGI(agi://<a rel="nofollow" target="_blank"  href="http://192.168.0.131/hello.agi" style="font-size:1em;color:rgb(0,0,238);">192.168.0.131/hello.agi</a>).<br><br>I need something similar to this. How do i do this from freeswitch?</span><br>

</span></div><div><span><span style="font-size: 13px; font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; ">thanks alot</span></span></div><div><br></div>  <div style="font-size:12pt;">

 <div style="font-size:12pt;"> <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Brian Foster &lt;<a rel="nofollow" ymailto="mailto:bdfoster@endigotech.com" target="_blank" href="mailto:bdfoster@endigotech.com">bdfoster@endigotech.com</a>&gt;<br>

 <b><span style="font-weight:bold;">To:</span></b> FreeSWITCH Users Help &lt;<a rel="nofollow" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt; <br> <b><span style="font-weight:bold;">Sent:</span></b> Monday, May 28, 2012 11:18 PM<br>

 <b><span style="font-weight:bold;">Subject:</span></b> Re: [Freeswitch-users] "bash" programming on freeswitch?<br> </font> </div><div><div class="yiv1705116756h5"> <br>
<div><div>system <a rel="nofollow" target="_blank" href="http://script.sh">script.sh</a> arg1 arg2 argN</div>
<div>No FS library though so you can't actually control calls.</div>
<div>-BDF<br></div>
<div>Brian Foster<br>
Endigo Computer LLC</div>
<div>Sent from a mobile device.</div>
<div>On May 28, 2012 2:36 PM, "Samira Mh" &lt;<a rel="nofollow" ymailto="mailto:saami_mh@ymail.com" target="_blank" href="mailto:saami_mh@ymail.com">saami_mh@ymail.com</a>&gt; wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<div><div style="font-size:12pt;"><div>how to run bash script programming in freeswitch using AGI (like freeswitch)?</div><div>i think freeswitch support JAVA/PERL/PYTHON/RUBY programming</div>


</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a rel="nofollow" ymailto="mailto:consulting@freeswitch.org" target="_blank" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
http://www.freeswitchsolutions.com<br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
http://www.cudatel.com<br>
<br>
Official FreeSWITCH Sites<br>
http://www.freeswitch.org<br>
http://wiki.freeswitch.org<br>
http://www.cluecon.com<br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br></blockquote></div>
</div><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a rel="nofollow" ymailto="mailto:consulting@freeswitch.org" target="_blank" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>

<a rel="nofollow" target="_blank" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a rel="nofollow" target="_blank" href="http://www.cudatel.com">http://www.cudatel.com</a><br>

<br>Official FreeSWITCH Sites<br><a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://www.cluecon.com">http://www.cluecon.com</a><br>

<br>Join Us At ClueCon - Aug 7-9, 2012<br><br>FreeSWITCH-users mailing list<br><a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>

UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>

<br><br> </div></div></div> </div>  </div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a rel="nofollow" ymailto="mailto:consulting@freeswitch.org" target="_blank" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a rel="nofollow" target="_blank" href="http://www.cudatel.com">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://www.cluecon.com">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>Join Us At ClueCon - Aug 7-9, 2012<br><br>FreeSWITCH-users mailing list<br><a ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org"
 href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><br><br> </div> </div>  </div></body></html>