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 class="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: 14px; white-space: pre; ">$in = fopen("php://stdin", "r");</span></div>
<div> Problem is when i use read command for get input from DTMF. i can'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">http://svn.freeswitch.org/svn/freeswitch/trunk/libs/esl/perl/server2.pl</a></div>
<div><span class="Apple-style-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 class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre-wrap; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre-wrap; "> my $host = $new_sock->sockhost();</span></div><span class="Apple-style-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 class="Apple-style-span" style="font-family: arial; white-space: normal; font-size: small; "><span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre-wrap; "> my $info = $con->getInfo();</span> </span></pre>
<pre style="word-wrap: break-word; white-space: pre-wrap; "><span class="Apple-style-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 class="Apple-style-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 class="Apple-style-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 class="Apple-style-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 class="Apple-style-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 class="Apple-style-span" style="font-family: arial; white-space: normal; font-size: small; "><br>
</span></pre></span>