[commit] r13003 - freeswitch/trunk/src/mod/applications/mod_cidlookup
Author: rupa Date: Sat Apr 11 11:31:55 2009 New Revision: 13003 Log: fix attribution, override profile->caller_id_name Modified: freeswitch/trunk/src/mod/applications/mod_cidlookup/mod_cidlookup.c Modified: freeswitch/trunk/src/mod/applications/mod_cidlookup/mod_cidlookup.c ============================================================================== --- freeswitch/trunk/src/mod/applications/mod_cidlookup/mod_cidlookup.c (original) +++ freeswitch/trunk/src/mod/applications/mod_cidlookup/mod_cidlookup.c Sat Apr 11 11:31:55 2009 @@ -24,9 +24,6 @@ * Contributor(s): * * Rupa Schomaker <rupa@rupa.com> - * Anthony Minessale II <anthm@freeswitch.org> - * Neal Horman <neal at wanlink dot com> - * * * mod_cidlookup.c -- API for querying cid->name services * @@ -453,10 +450,9 @@ name = do_lookup(pool, event, number, skipurl); } - if (name) { - if (channel) { - switch_channel_set_variable(channel, "effective_caller_id_name", name); - } + if (name && channel) { + switch_channel_set_variable(channel, "original_caller_id_name", switch_core_strdup(pool, profile->caller_id_name)); + profile->caller_id_name = switch_core_strdup(profile->pool, name);; } switch_goto_status(SWITCH_STATUS_SUCCESS, done);
participants (1)
-
FreeSWITCH SVN