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@xwin32.com>wrote:
On Tue, Mar 12, 2013 at 11:14 AM, Steven Ayre <steveayre@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org