[Freeswitch-users] Background threads
avi at avimarcus.net
Tue Mar 12 11:34:16 MSK 2013
If you get an outside thread -- via ESL or it does seem like luarun goes
into the background, then all it has to do is know the UUID and it can use
uuid_setvar <http://wiki.freeswitch.org/wiki/Mod_commands#uuid_setvar> to
set effective_caller_id_name after the lookup.
Just if that doesn't finish before the bridge, it's not very helpful.
Once you get this working, putting the example on the lua or cidlookup page
would be great.
On Tue, Mar 12, 2013 at 3:04 AM, Steven Schoch <
schoch+freeswitch.org at xwin32.com> wrote:
> Using cidlookup causes an inconsistent pause before the main IVR starts,
> so would it make sense to run the cidlookup in the background? I was
> thinking about starting a script in the background using luarun, and having
> it set the cid_name before the caller is done with the IVR. The question
> is how to pass the variable to the main thread?
> Or am I looking for too much trouble here?
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> Official FreeSWITCH Sites
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users