[Freeswitch-users] ESL, phpmod

Helmut Kuper helmut.kuper at ewetel.de
Thu Jun 17 00:55:41 PDT 2010


Hi,

a bit success now. When I use this command:

$con = new ESLconnection(intval($csock));

I got an ESLconnection object, but it is not usable. var_dump($con) shows

object(ESLconnection)#1 (1) {
  ["_cPtr"]=>
  resource(7) of type (_p_ESLconnection)
}


which looks good to me, but strace still shows "Bad file descriptor":

setsockopt(6, SOL_TCP, TCP_NODELAY, [1], 4) = -1 EBADF (Bad file descriptor)
sendto(6, "connect\n\n", 9, 0, NULL, 0) = -1 EBADF (Bad file descriptor)

Calling $con->getINFO() results in NULL ...


regards
Helmut



More information about the FreeSWITCH-users mailing list