<br><br><div class="gmail_quote">2009/12/15 Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
you need to get the fd number of stdin however you do it in sdp and pass it as the constructor to the esl obj<br><br></blockquote><div>It&#39;s work. Thanks. but i found PHP not good for this case. PHP need more resource. LUA look better. </div>
<div>Now i&#39;m testing by mod_lua but i plan to mover LUA work with outbound socket. but not found about lua outbounf socket in WIKI</div><div><br></div><div><br></div><div>Best Regards.</div><div><br></div><div>Dome C.</div>
<div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><br><div class="gmail_quote"><div><div></div><div class="h5">On Sun, Dec 13, 2009 at 8:41 PM, Dome Charoenyost <span dir="ltr">&lt;<a href="mailto:dome@tel.co.th" target="_blank">dome@tel.co.th</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><div></div><div class="h5">Dear All,<div>         Now i use php for ESL outbound. i get variable from stdin and process. (i use xinetd for handle socket)</div>

<div>         <span style="font-family:monospace;font-size:13px;line-height:14px;white-space:pre">$in = fopen(&quot;php://stdin&quot;, &quot;r&quot;);</span></div>
<div>         Problem is when i use read command  for get input from DTMF. i can&#39;t get variable. So now i use 2 php script. and use read appliction in XML DIalplan for solve this problem.</div><div>         I plan to use php handle socket like a perl in <a href="http://svn.freeswitch.org/svn/freeswitch/trunk/libs/esl/perl/server2.pl" target="_blank">http://svn.freeswitch.org/svn/freeswitch/trunk/libs/esl/perl/server2.pl</a></div>


<div><span style="font-family:monospace;font-size:medium;white-space:pre-wrap">     But i want to know how PHP work like this example ?</span></div><div><span style="font-family:monospace;font-size:medium;white-space:pre-wrap"><br>


</span></div><div><span style="font-family:monospace;font-size:medium;white-space:pre-wrap">     my $host = $new_sock-&gt;sockhost();</span></div><span style="font-family:Norasi;font-size:medium"><pre style="word-wrap:break-word;white-space:pre-wrap">
     my $fd = fileno($new_sock);
     my $con = new ESL::ESLconnection($fd);</pre><pre style="word-wrap:break-word;white-space:pre-wrap"><span style="font-family:arial;white-space:normal;font-size:small"><span style="font-family:monospace;font-size:medium;white-space:pre-wrap">     my $info = $con-&gt;getInfo();</span> </span></pre>


<pre style="word-wrap:break-word;white-space:pre-wrap"><span style="font-family:arial;white-space:normal;font-size:small"><br></span></pre><pre style="word-wrap:break-word;white-space:pre-wrap"><span style="font-family:arial;white-space:normal;font-size:small">Can someoue help me ?</span></pre>

<pre style="word-wrap:break-word;white-space:pre-wrap"><span style="font-family:arial;white-space:normal;font-size:small"><br>
</span></pre><pre style="word-wrap:break-word;white-space:pre-wrap"><span style="font-family:arial;white-space:normal;font-size:small">Best Regards.</span></pre><pre style="word-wrap:break-word;white-space:pre-wrap"><span style="font-family:arial;white-space:normal;font-size:small">Dome C.</span></pre>
<pre style="word-wrap:break-word;white-space:pre-wrap"><span style="font-family:arial;white-space:normal;font-size:small"><br>

</span></pre></span>
<br></div></div>_______________________________________________<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></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>

Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
<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>