]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5757 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 4 Sep 2013 15:30:25 +0000 (20:30 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 4 Sep 2013 15:30:25 +0000 (20:30 +0500)
src/mod/endpoints/mod_sofia/sofia.c

index 0fe41849c8def9511e5f29099a726f0d521d56ca..5c3ba642a881cf84cda137b721ce4c6f0ef2df13 100644 (file)
@@ -8725,6 +8725,7 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
                                tech_pvt->caller_profile->caller_id_name = switch_core_strdup(tech_pvt->caller_profile->pool, orig_cp->caller_id_name);
                                tech_pvt->caller_profile->caller_id_number = switch_core_strdup(tech_pvt->caller_profile->pool, orig_cp->caller_id_number);
 
+                               tech_pvt->caller_profile->originator_caller_profile = switch_caller_profile_dup(tech_pvt->caller_profile->pool, orig_cp);
 
 #if 0
                                sent_name = switch_channel_get_variable(b_channel, "last_sent_callee_id_name");
@@ -8790,6 +8791,8 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
                                                tech_pvt->caller_profile->callee_id_name = switch_core_strdup(tech_pvt->caller_profile->pool, name);
                                                tech_pvt->caller_profile->callee_id_number = switch_core_strdup(tech_pvt->caller_profile->pool, num);
 
+                                               tech_pvt->caller_profile->originatee_caller_profile = switch_caller_profile_dup(tech_pvt->caller_profile->pool, bcp->originatee_caller_profile);
+
                                                tech_pvt->caller_profile->destination_number = switch_core_sprintf(tech_pvt->caller_profile->pool,
                                                                                                                                                                                   "%sanswer,sofia_sla:%s", codec_str, b_private->uuid);
                                        }