[Freeswitch-svn] [commit] r8014 - freeswitch/trunk/src/mod/applications/mod_fifo
Freeswitch SVN
anthm at freeswitch.org
Thu Apr 3 17:33:16 EDT 2008
Author: anthm
Date: Thu Apr 3 17:33:16 2008
New Revision: 8014
Modified:
freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c
Log:
tweak fifo
Modified: freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c Thu Apr 3 17:33:16 2008
@@ -509,6 +509,7 @@
if ((other_session = switch_core_session_locate(uuid))) {
switch_channel_t *other_channel = switch_core_session_get_channel(other_session);
switch_caller_profile_t *cloned_profile;
+ const char *o_announce = NULL;
if (switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, FIFO_EVENT) == SWITCH_STATUS_SUCCESS) {
switch_channel_event_set_data(other_channel, event);
@@ -524,15 +525,14 @@
switch_event_fire(&event);
}
+ if ((o_announce = switch_channel_get_variable(other_channel, "fifo_override_announce"))) {
+ announce = o_announce;
+ }
+
if (announce) {
switch_ivr_play_file(session, NULL, announce, NULL);
} else {
- const char *o_announce = switch_channel_get_variable(other_channel, "fifo_override_announce");
- if (o_announce) {
- switch_ivr_play_file(session, NULL, o_announce, NULL);
- } else {
- switch_ivr_sleep(session, 500);
- }
+ switch_ivr_sleep(session, 500);
}
More information about the Freeswitch-svn
mailing list