add origination_caller_profile to log all attempted calls for a paticular leg

This commit is contained in:
Anthony Minessale
2010-09-08 13:19:56 -05:00
parent f3c6512ca0
commit 977a8ad7ce
5 changed files with 68 additions and 0 deletions
+8
View File
@@ -524,6 +524,14 @@ SWITCH_DECLARE(switch_call_cause_t) switch_core_session_outgoing_channel(switch_
switch_channel_set_originator_caller_profile(peer_channel, cloned_profile);
}
}
if ((profile = switch_channel_get_caller_profile(peer_channel))) {
if ((cloned_profile = switch_caller_profile_clone(session, profile)) != 0) {
switch_channel_set_origination_caller_profile(channel, cloned_profile);
}
}
}
if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_OUTGOING) == SWITCH_STATUS_SUCCESS) {