[Freeswitch-users] Event Socket outbound in PHP

Anthony Minessale anthony.minessale at gmail.com
Mon Dec 14 13:34:48 PST 2009


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



On Sun, Dec 13, 2009 at 8:41 PM, Dome Charoenyost <dome at tel.co.th> wrote:

> Dear All,
>          Now i use php for ESL outbound. i get variable from stdin and
> process. (i use xinetd for handle socket)
>          $in = fopen("php://stdin", "r");
>          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.
>          I plan to use php handle socket like a perl in
> http://svn.freeswitch.org/svn/freeswitch/trunk/libs/esl/perl/server2.pl
>  But i want to know how PHP work like this example ?
>
>  my $host = $new_sock->sockhost();
>
>      my $fd = fileno($new_sock);
>      my $con = new ESL::ESLconnection($fd);
>
>      my $info = $con->getInfo();
>
>
> Can someoue help me ?
>
>
> Best Regards.
>
> Dome C.
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091214/d3805515/attachment-0002.html 


More information about the FreeSWITCH-users mailing list