there is a lua esl wrapper too the are all based on the same C code for the ESL obj. same rule applies get file number of stdin and pass to constructor. I like perl the best for ESL but that's just me. On Tue, Dec 15, 2009 at 7:38 AM, Dome Charoenyost <dome@tel.co.th> wrote:
2009/12/15 Anthony Minessale <anthony.minessale@gmail.com>
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 <dome@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@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@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org 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 FreeSWITCH-users@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@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400