[Freeswitch-users] Event Socket outbound in PHP

Anthony Minessale anthony.minessale at gmail.com
Tue Dec 15 06:49:11 PST 2009


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 at tel.co.th> wrote:

>
>
> 2009/12/15 Anthony Minessale <anthony.minessale at 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 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
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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/20091215/b9aaedc6/attachment-0002.html 


More information about the FreeSWITCH-users mailing list