That would be okay, although you might want to print a little debug info somewhere, just in case you need to troubleshoot. In any case, if the uuid isn't there then the uuid_setvar would return an error and no harm would be done. -MC On Tue, Mar 12, 2013 at 1:03 PM, 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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org