]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
cid tweak
authorAnthony Minessale <anthm@freeswitch.org>
Sat, 30 Jul 2011 04:42:46 +0000 (23:42 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Sat, 30 Jul 2011 04:42:46 +0000 (23:42 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index 2d01dae9d8561f21602236c74ff4d49e8234893a..ea38ac4133ff85f4ee55d9e7c241090764fe9f8b 100644 (file)
@@ -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;
        }