[Freeswitch-users] ESL: phpmod
Helmut Kuper
helmut.kuper at ewetel.de
Tue Jun 22 09:02:33 PDT 2010
Hi,
here the loop code which is not working. To get it working comment the
bgapi command.
[...]
$agent_chan_vars="origination_caller_id_name='Queue
1',origination_caller_id_number=$caller_id_number";
$agent="2850";
$con->bgapi("originate",
"[origination_uuid=$a_uuid,$agent_chan_vars]sofia/internal/$agent@$sipdomain
&playback(kuper/celt.mp3)");
do {
acd_log(LOG_DEBUG, "Loop $l\n");
$e = $con->recvEventTimed(1000);
echo $con->connected()."\n";
} while ($con->connected());
[...]
On 22.06.2010 17:54, Helmut Kuper wrote:
> Hello,
>
> I have a php esl outbound deamon which is contactet by socket
> application when a caller hit the dialplan. The php deamon originates a
> call and waits after that for events. During ringing I cancel the
> callers call via caller's phone.
>
> Now the odd thing: Sometimes I got a HANGUP event so i can react on it,
> and sometimes not. In each case I can't write any command into the esl
> connection because it blocks endlessly. So I guess that FS has already
> torn down the socket in both cases. I wonder why I got no event from esl
> when this happens. Checking the esl connection with "connected()"
> returns always true resp. '1' in both cases.
>
> When I don't start an originate bgapi command, everything works and
> esl->connected() returns 0 resp false.
>
>
> Any ideas where I'm wrong?
>
>
> regards
> Helmut
>
>
> _______________________________________________
> 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
>
>
More information about the FreeSWITCH-users
mailing list