From: Anthony Minessale Date: Fri, 5 Apr 2013 21:41:51 +0000 (-0500) Subject: sla barg cid regression X-Git-Tag: v1.2.9~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7a04d8a136bd8bd168bde982607c5d1d5c38213;p=thirdparty%2Ffreeswitch.git sla barg cid regression --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 0018c44c99..922f6e8870 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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);