[Freeswitch-users] ESL: Question about BACKGROUND_JOB events
Michael Jerris
mike at jerris.com
Tue Jun 29 00:13:25 PDT 2010
origination_uuid
On Jun 23, 2010, at 12:02 PM, Helmut Kuper <helmut.kuper at ewetel.de> wrote:
> Hello,
>
> today I found that filtering events for a Job-UUID returned by a bgapi
> command doesn't work well.
>
> What I do is this:
>
> $con->events("plain", "CHANNEL_HANGUP");
> $con->events("plain", "CHANNEL_ANSWER");
> $con->events("plain", "BACKGROUND_JOB");
> $con->filter("Unique-ID", $a_uuid);
> $con->filter("Caller-Unique-ID", $a_uuid);
>
> $jobid=$con->bgapi("blahblah", ...)->getHeader("Job-UUID");
> $con->filter("Job-UUID", $jobid);
>
> Then waiting for events. But no BACKGROUND_JOB event is received.
> Perhaps the BACKGROUND_JOB event is fired before the filter can be applied.
>
>
> When I execute "$con->filter("Event-Name", "BACKGROUND_JOB");" before
> "$jobid=..." then I'm able to receive it ... and all other but unwanted
> BACKGROUND_JOB events as well.
>
>
> Any trick to avoid this?
>
> 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