]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
SFSIP-214 don't override with a possible NULL value for tech_pvt->cid_type because...
authorBrian West <brian@freeswitch.org>
Mon, 14 Jun 2010 00:06:57 +0000 (19:06 -0500)
committerBrian West <brian@freeswitch.org>
Mon, 14 Jun 2010 00:07:11 +0000 (19:07 -0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index c2aaf5265ed223ddea45e2bc21bf4f4d411eb632..39f8d5cf725d17244ca23586ea57864034ac516f 100644 (file)
@@ -1893,9 +1893,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
 
                if ((val = switch_channel_get_variable(channel, "sip_cid_type"))) {
                        cid_type = sofia_cid_name2type(val);
-               } else {
-                       cid_type = tech_pvt->cid_type;
-               }
+               } 
 
                if (sofia_test_flag(tech_pvt, TFLAG_RECOVERING) && switch_channel_direction(tech_pvt->channel) == SWITCH_CALL_DIRECTION_INBOUND) {
                        if (zstr((use_name = switch_channel_get_variable(tech_pvt->channel, "effective_callee_id_name"))) &&