cid tweak

This commit is contained in:
Anthony Minessale 2011-07-29 23:42:46 -05:00
parent ad51c7917a
commit f527ed686f
1 changed files with 5 additions and 1 deletions

View File

@ -665,7 +665,11 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
return; 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; number = sip->sip_to->a_url->url_user;
} }