[Freeswitch-users] Origionate a call via event_socket. relation between job_uuid and uuid

Szymon Olko solko at gcdf.pl
Wed May 27 03:48:35 PDT 2009

Peter P GMX pisze:
> I want to do the following:
> Originate a call via event_socket, I get back a job_uuid. Then I want to
> control the call when it's established (2 call legs).
> Scanning the variables of the 2 call legs I currentyl cannot see any
> relation between the job_uuid and the uuid of the resulting call legs.
> I may set a variable with my own unique id while originating a call, but
> finding the calls later on and dumping the variables fo all channels is
> very time consuming in terms of CPU.
> A workaround I tried, is to set caller-id or caller-id-number with a
> unique id. This works, but has the known side effects of not having a
> valid caller-id or caller-id-number.
> So my question is: Has anybody an idea how to build a relationship
> between job_uuid and the resulting call legs which does not require
> dumping the variables of all channels?
I use that scenario with my own variables set to my unique id. On event_socket I parse channel related events and then I find
channel with my variable, I get channel unique id and from now I use this unique id.
First I tried to uses caller-id but I need it now for the reason it is for.

> _______________________________________________
> 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