[Freeswitch-users] ESL, phpmod

Helmut Kuper helmut.kuper at ewetel.de
Sat Jun 12 10:59:08 PDT 2010


Hi Michael,

ESL is built and installed, phpmod is built and installed.

inbound works, test scripts works

It is just the problem of passing an existing socket to new 
ESLconnection. A socket resource is denied, an integer is accepted but 
is rejected with "bad file descriptor"



Am 12.06.2010 07:06, schrieb Michael Collins:
> Make sure the ESL is properly built and that the PHP mod is built and 
> installed. If you did a "make current" recently the you'll need to 
> rebuild your ESL stuff.
> -MC
>
> On Fri, Jun 11, 2010 at 5:12 PM, Helmut Kuper <helmut.kuper at ewetel.de 
> <mailto:helmut.kuper at ewetel.de>> wrote:
>
>     Hello,
>
>
>     I try to setup a php daemon which uses ESL.
>
>     I run the sample php scripts successfully (inbound). Now I want to
>     have
>     it outbound to my php daemon socket.
>
>     The forked child process which has to interact with incoming tcp
>     connection from FS is started successfully. So in this state I
>     have the
>     client socket which I have to pass now somehow to ESLconnection I
>     guess.
>
>     FS ruby wiki gives this as an example:
>
>     @con = ESL::ESLconnection.new(client_socket.fileno)
>
>
>     In php I try this:
>
>     $con = new ESLconnection($csock);
>
>     As a result I got this error:
>
>     PHP Fatal error:  No matching function for overloaded
>     'new_ESLconnection' in /usr/share/pear/ESL.php on line 117
>
>
>     Any ideas?
>
>     regards
>     Helmut
>
>     _______________________________________________
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto: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
>    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100612/87101b52/attachment.html 


More information about the FreeSWITCH-users mailing list