mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
add origination_caller_profile to log all attempted calls for a paticular leg
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user