]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
sla barg cid regression
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 5 Apr 2013 21:41:51 +0000 (16:41 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 5 Apr 2013 21:42:25 +0000 (16:42 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index 0018c44c9972a61fe57c0969efca4385f2e34bce..922f6e8870e914cbcfc9a75450031190dccea342 100644 (file)
@@ -628,7 +628,11 @@ void sofia_handle_sip_i_bye(switch_core_session_t *session, int status,
                        if (switch_ivr_eavesdrop_pop_eavesdropper(session, &new_session) == SWITCH_STATUS_SUCCESS) {
                                switch_channel_t *new_channel = switch_core_session_get_channel(new_session);
                                const char *new_uuid = switch_core_session_get_uuid(new_session);
-                               
+                               switch_caller_profile_t *cp = switch_channel_get_caller_profile(new_channel);
+
+                               cp->caller_id_name = cp->orig_caller_id_name;
+                               cp->caller_id_number = cp->orig_caller_id_number;
+
 
                                switch_channel_set_variable(new_channel, SWITCH_SIGNAL_BOND_VARIABLE, NULL);