Sam,<div><br></div><div>I got this to work without any issues. I think there may be two things for you to check:</div><div><br></div><div>#1 - make sure that you set your script to be executable</div><div>#2 - make sure that you have php-cli installed</div>
<div><br></div><div>Other than that, as long as fs_ivrd is running then it should work. For the record, I copied the wiki exactly except I used port 9090 instead of 8084. </div><div><br></div><div>-MC<br><br><div class="gmail_quote">
On Sat, Aug 27, 2011 at 9:26 AM, Sam <span dir="ltr">&lt;<a href="mailto:lakersman2006@yahoo.com">lakersman2006@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>MC,</span></div><div><br><span></span></div><div><span>Any luck with fs_ivrd with ESL?</span></div>
<div><br></div><div style="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"><font face="Arial" size="2"><div class="im"><hr size="1">
<b><span style="font-weight:bold">From:</span></b> Michael Collins &lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;<br><b><span style="font-weight:bold">To:</span></b> FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
</div><b><span style="font-weight:bold">Sent:</span></b> Tuesday, August 23, 2011 10:06 AM<div><div></div><div class="h5"><br><b><span style="font-weight:bold">Subject:</span></b> Re: [Freeswitch-users] freeswitch php<br>
</div></div></font><div><div></div><div class="h5"><br><div>Aha! fs_ivrd. I haven&#39;t tinkered w/ fs_ivrd outside of Perl, but
 it should work with anything that can read/write STDIN/STDOUT. Give me a few hours to work on some day job items and then I&#39;ll hop in here and take a look. Maybe you can help me wikify some of this knowledge. ;)<div>

<br></div><div>-MC</div><div><br></div><div>P.S. - If anyone else has or is using fs_ivrd and has some experience with it please let me know. I&#39;d like to borrow some of your mental cycles so that we can document this better.<br>

<br><div>On Mon, Aug 22, 2011 at 5:54 PM, Sam <span dir="ltr">&lt;<a rel="nofollow" href="mailto:lakersman2006@yahoo.com" target="_blank">lakersman2006@yahoo.com</a>&gt;</span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>OK so if I were to use the ESL lib with PHP, can it still be used with the fs_ivrd daemon? I have not seen any ESL examples that is used with the fs_ivrd deamon, so I am not exactly to use the ESL lib.<br>

</span></div><div><br></div><div style="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"><font face="Arial" size="2"><hr size="1">

<b><span style="font-weight:bold">From:</span></b> Michael Collins &lt;<a rel="nofollow" href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;<br><b><span style="font-weight:bold">To:</span></b> FreeSWITCH Users Help &lt;<a rel="nofollow" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>

<b><span style="font-weight:bold">Sent:</span></b> Monday, August 22, 2011 5:27 PM<br><b><span style="font-weight:bold">Subject:</span></b> Re: [Freeswitch-users]
 freeswitch php<br></font><div><div></div><div><br><div>This probably isn&#39;t the most efficient way of using the event socket. In fact, I&#39;m not sure if this is anything more than a proof of concept. You are MUCH better off using the ESL lib with PHP and taking advantage of the abstraction you get.<div>


<br></div><div>-MC<br><br><div>On Sun, Aug 21, 2011 at 4:56 PM, Sam <span dir="ltr">&lt;<a rel="nofollow" href="mailto:lakersman2006@yahoo.com" target="_blank">lakersman2006@yahoo.com</a>&gt;</span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt"><div>Does anyone know how to retrieve channel variables (ie. uuid, etc.) using the php example that was shown in the wiki below?<br>


</div><div><br></div><pre>#!/usr/bin/php -q

&lt;?php

// set a couple of things so we dont kill the system
ob_implicit_flush(true);
set_time_limit(30);

// Open stdin so we can read the data in
$in = fopen(&quot;php://stdin&quot;, &quot;r&quot;);

// Connect
echo &quot;connect\n\n&quot;;

// Answer
echo &quot;sendmsg\n&quot;;
echo &quot;call-command: execute\n&quot;;
echo &quot;execute-app-name: answer\n\n&quot;;

// Play a prompt
echo &quot;sendmsg\n&quot;;
echo &quot;call-command: execute\n&quot;;
echo &quot;execute-app-name: playback\n&quot;;
echo &quot;execute-app-arg: /usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-welcome_to_freeswitch.wav\n\n&quot;;

// Wait
sleep(5);

// Hangup
echo &quot;sendmsg\n&quot;;
echo &quot;call-command: hangup\n\n&quot;;

fclose($in);

?&gt;</pre></div></div><br><br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div><br><br>FreeSWITCH-users mailing list<br><a rel="nofollow" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a rel="nofollow" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>

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

<br><br></div></div></div></div></div></div><br><br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></div></div><br><br>
FreeSWITCH-users mailing list<br>
<a 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></blockquote></div><br></div>