[Freeswitch-svn] [commit] r8869 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Tue Jul 1 10:25:36 EDT 2008
Author: anthm
Date: Tue Jul 1 10:25:36 2008
New Revision: 8869
Modified:
freeswitch/trunk/src/switch_ivr_originate.c
Log:
fix FSCORE-146
Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c (original)
+++ freeswitch/trunk/src/switch_ivr_originate.c Tue Jul 1 10:25:36 2008
@@ -1200,8 +1200,10 @@
}
}
- if (switch_core_session_write_frame(session, &write_frame, SWITCH_IO_FLAG_NONE, 0) != SWITCH_STATUS_SUCCESS) {
- break;
+ if ((ringback.fh || ringback.audio_buffer) && write_frame.codec && write_frame.datalen) {
+ if (switch_core_session_write_frame(session, &write_frame, SWITCH_IO_FLAG_NONE, 0) != SWITCH_STATUS_SUCCESS) {
+ break;
+ }
}
}
More information about the Freeswitch-svn
mailing list