2009/12/15 Anthony Minessale <[email protected]> > 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 > > It's work. Thanks. but i found PHP not good for this case. PHP need more resource. LUA look better. Now i'm testing by mod_lua but i plan to mover LUA work with outbound socket. but not found about lua outbounf socket in WIKI
Best Regards. Dome C. > > > On Sun, Dec 13, 2009 at 8:41 PM, Dome Charoenyost <[email protected]> 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 >> [email protected] >> 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:[email protected] <msn%[email protected]> > GTALK/JABBER/PAYPAL:[email protected]<paypal%[email protected]> > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:[email protected] <sip%[email protected]> > iax:[email protected]/888 > googletalk:[email protected]<googletalk%3aconf%[email protected]> > pstn:213-799-1400 > > _______________________________________________ > FreeSWITCH-users mailing list > [email protected] > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > >
_______________________________________________ FreeSWITCH-users mailing list [email protected] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
