]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add some more var
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 4 Nov 2009 18:24:59 +0000 (18:24 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 4 Nov 2009 18:24:59 +0000 (18:24 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15351 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 7c693bad2e3420298c403673b7e838dbfe7b3544..232754d615e50fc92d10191c0edf13221dac7b3d 100644 (file)
@@ -467,11 +467,15 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
                }
        }
 
-       if ((tmp = switch_channel_get_variable(channel, "sip_callee_id_name"))) {
+       if ((tmp = switch_channel_get_variable(channel, "effective_callee_id_name")) ||
+               (tmp = switch_channel_get_variable(channel, "sip_callee_id_name")) ||
+               (tmp = switch_channel_get_variable(channel, "callee_id_name"))) {
                name = (char *)tmp;
        }
 
-       if ((tmp = switch_channel_get_variable(channel, "sip_callee_id_number"))) {
+       if ((tmp = switch_channel_get_variable(channel, "effective_callee_id_number")) ||
+               (tmp = switch_channel_get_variable(channel, "sip_callee_id_number")) ||
+               (tmp = switch_channel_get_variable(channel, "callee_id_number"))) {
                number = tmp;
        }