From: Anthony Minessale Date: Sat, 30 Jul 2011 04:42:46 +0000 (-0500) Subject: cid tweak X-Git-Tag: v1.2-rc1~96 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f527ed686f6760e179d41de971e3b21f6d43c24b;p=thirdparty%2Ffreeswitch.git cid tweak --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 2d01dae9d8..ea38ac4133 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -665,7 +665,11 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro return; } - if (sip->sip_to) { + number = (char *) switch_channel_get_variable(channel, "callee_id_number"); + name = (char *) switch_channel_get_variable(channel, "callee_id_name"); + + + if (zstr(number) && sip->sip_to) { number = sip->sip_to->a_url->url_user; }