From: Anthony Minessale Date: Thu, 20 Dec 2012 17:44:21 +0000 (-0600) Subject: FS-4273 --resolve X-Git-Tag: v1.3.13~214 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3fcfa82453c21ea8d205771409203016dc1156c;p=thirdparty%2Ffreeswitch.git FS-4273 --resolve --- diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index e7e2e4e22a..099a8d4315 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -1391,6 +1391,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess if (switch_event_create(&event, SWITCH_EVENT_PLAYBACK_START) == SWITCH_STATUS_SUCCESS) { switch_channel_event_set_data(channel, event); + if (!strncasecmp(file, "local_stream:", 13)) { + switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Playback-File-Type", "local_stream"); + } + if (!strncasecmp(file, "tone_stream:", 12)) { + switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Playback-File-Type", "tone_stream"); + } switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Playback-File-Path", file); add_playback_vars_to_event(session, event, playback_vars); switch_event_fire(&event); @@ -1712,6 +1718,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess if (switch_event_create(&event, SWITCH_EVENT_PLAYBACK_STOP) == SWITCH_STATUS_SUCCESS) { switch_channel_event_set_data(channel, event); + if (!strncasecmp(file, "local_stream:", 13)) { + switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Playback-File-Type", "local_stream"); + } + if (!strncasecmp(file, "tone_stream:", 12)) { + switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Playback-File-Type", "tone_stream"); + } switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Playback-File-Path", file); if (status == SWITCH_STATUS_BREAK) { switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Playback-Status", "break");