[Freeswitch-svn] [commit] r8278 - in freeswitch/trunk/src: . include/private
Freeswitch SVN
anthm at freeswitch.org
Tue May 6 17:05:38 EDT 2008
Author: anthm
Date: Tue May 6 17:05:38 2008
New Revision: 8278
Modified:
freeswitch/trunk/src/include/private/switch_core_pvt.h
freeswitch/trunk/src/switch_core.c
freeswitch/trunk/src/switch_core_io.c
Log:
update
Modified: freeswitch/trunk/src/include/private/switch_core_pvt.h
==============================================================================
--- freeswitch/trunk/src/include/private/switch_core_pvt.h (original)
+++ freeswitch/trunk/src/include/private/switch_core_pvt.h Tue May 6 17:05:38 2008
@@ -186,6 +186,8 @@
char *mailer_app_args;
uint32_t max_dtmf_duration;
uint32_t default_dtmf_duration;
+ switch_frame_t dummy_cng_frame;
+ char dummy_data[5];
};
extern struct switch_runtime runtime;
Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c (original)
+++ freeswitch/trunk/src/switch_core.c Tue May 6 17:05:38 2008
@@ -842,6 +842,11 @@
memset(&runtime, 0, sizeof(runtime));
+ runtime.dummy_cng_frame.data = runtime.dummy_data;
+ runtime.dummy_cng_frame.datalen= sizeof(runtime.dummy_data);
+ runtime.dummy_cng_frame.buflen= sizeof(runtime.dummy_data);
+ runtime.dummy_cng_frame.flags = SFF_CNG;
+
switch_set_flag((&runtime), SCF_NO_NEW_SESSIONS);
runtime.hard_log_level = SWITCH_LOG_DEBUG;
runtime.mailer_app = "sendmail";
Modified: freeswitch/trunk/src/switch_core_io.c
==============================================================================
--- freeswitch/trunk/src/switch_core_io.c (original)
+++ freeswitch/trunk/src/switch_core_io.c Tue May 6 17:05:38 2008
@@ -462,6 +462,10 @@
even_more_done:
+ if (!*frame) {
+ *frame = &runtime.dummy_cng_frame;
+ }
+
return status;
}
More information about the Freeswitch-svn
mailing list