[Freeswitch-users] Background threads

Steven Ayre steveayre at gmail.com
Wed Mar 13 02:23:23 MSK 2013


Well it depends on whether you're trying to use the variable after the
bridge, or whether you expect it to be in your CDR.

If you don't then yes it won't matter if it isn't set in time, and
uuid_setvar will fail on a non-existant UUID without causing a problem.

-Steve



On 12 March 2013 20:03, Steven Schoch <schoch+freeswitch.org at xwin32.com>wrote:

> On Tue, Mar 12, 2013 at 11:14 AM, Steven Ayre <steveayre at gmail.com> wrote:
>
>> Don't forget to find some way to handle the race condition of the bridge
>> ending before the cidlookup has finished, and to add a note on that when
>> putting the info on the wiki.
>
>
> The script ends with these lines:
>
> number = api:executeString("uuid_getvar " .. uuid .. " caller_id_number");
> name = api:executeString("cidlookup " .. number);
> api:executeString("uuid_setvar " .. uuid .. " effective_caller_id_name "
> .. name);
>
> I'm assuming that if the channel is destroyed while in the middle of the
> cidlookup, that the uuid_setvar call will simply fail.  The script will
> exit in either case.  Am I missing something?
>
> --
> Steve
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130312/36da5345/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list