From dd17a57c8a128c97f12fe1882e5123de92d1cf3e Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Thu, 3 Nov 2016 15:34:17 -0400 Subject: [PATCH] FS-9694 [mod_dptools] Add origination_uuid support to pickup endpoint --- src/mod/applications/mod_dptools/mod_dptools.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index aa30bb02d1..28b1de428f 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -3825,7 +3825,9 @@ static switch_call_cause_t pickup_outgoing_channel(switch_core_session_t *sessio flags |= SOF_NO_LIMITS; - if (!(nsession = switch_core_session_request(pickup_endpoint_interface, SWITCH_CALL_DIRECTION_OUTBOUND, flags, pool))) { + if (!(nsession = switch_core_session_request_uuid(pickup_endpoint_interface, SWITCH_CALL_DIRECTION_OUTBOUND, + flags, pool, switch_event_get_header(var_event, "origination_uuid")))) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Error Creating Session\n"); goto error; } @@ -3888,7 +3890,7 @@ SWITCH_STANDARD_APP(pickup_function) switch_channel_t *channel = switch_core_session_get_channel(session); if (zstr(data)) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Missing data. Usage: pickup %s\n", PICKUP_SYNTAX); + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Missing data. Usage: pickup %s\n", PICKUP_SYNTAX); return; }