[Freeswitch-svn] [commit] r9325 - in freeswitch/trunk/src: . include mod/languages/mod_java/src/org/freeswitch/swig mod/languages/mod_perl
Freeswitch SVN
anthm at freeswitch.org
Tue Aug 19 18:25:29 EDT 2008
Author: anthm
Date: Tue Aug 19 18:25:28 2008
New Revision: 9325
Modified:
freeswitch/trunk/src/include/switch_cpp.h
freeswitch/trunk/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java
freeswitch/trunk/src/mod/languages/mod_perl/mod_perl_wrap.cpp
freeswitch/trunk/src/switch_cpp.cpp
Log:
fix MODLANG-79
Modified: freeswitch/trunk/src/include/switch_cpp.h
==============================================================================
--- freeswitch/trunk/src/include/switch_cpp.h (original)
+++ freeswitch/trunk/src/include/switch_cpp.h Tue Aug 19 18:25:28 2008
@@ -232,7 +232,7 @@
* to be considered silence (500 is a good starting point).
* \param <[silence_secs]> seconds of silence to interrupt the record.
*/
- SWITCH_DECLARE(int) recordFile(char *file_name, int max_len = 0, int silence_threshold = 0, int silence_secs = 0);
+ SWITCH_DECLARE(int) recordFile(char *file_name, int time_limit = 0, int silence_threshold = 0, int silence_hits = 0);
/** \brief Set attributes of caller data for purposes of outgoing calls
Modified: freeswitch/trunk/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java (original)
+++ freeswitch/trunk/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java Tue Aug 19 18:25:28 2008
@@ -161,16 +161,16 @@
freeswitchJNI.CoreSession_sayPhrase__SWIG_2(swigCPtr, this, phrase_name);
}
- public int recordFile(String file_name, int max_len, int silence_threshold, int silence_secs) {
- return freeswitchJNI.CoreSession_recordFile__SWIG_0(swigCPtr, this, file_name, max_len, silence_threshold, silence_secs);
+ public int recordFile(String file_name, int time_limit, int silence_threshold, int silence_hits) {
+ return freeswitchJNI.CoreSession_recordFile__SWIG_0(swigCPtr, this, file_name, time_limit, silence_threshold, silence_hits);
}
- public int recordFile(String file_name, int max_len, int silence_threshold) {
- return freeswitchJNI.CoreSession_recordFile__SWIG_1(swigCPtr, this, file_name, max_len, silence_threshold);
+ public int recordFile(String file_name, int time_limit, int silence_threshold) {
+ return freeswitchJNI.CoreSession_recordFile__SWIG_1(swigCPtr, this, file_name, time_limit, silence_threshold);
}
- public int recordFile(String file_name, int max_len) {
- return freeswitchJNI.CoreSession_recordFile__SWIG_2(swigCPtr, this, file_name, max_len);
+ public int recordFile(String file_name, int time_limit) {
+ return freeswitchJNI.CoreSession_recordFile__SWIG_2(swigCPtr, this, file_name, time_limit);
}
public int recordFile(String file_name) {
Modified: freeswitch/trunk/src/mod/languages/mod_perl/mod_perl_wrap.cpp
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_perl/mod_perl_wrap.cpp (original)
+++ freeswitch/trunk/src/mod/languages/mod_perl/mod_perl_wrap.cpp Tue Aug 19 18:25:28 2008
@@ -6374,7 +6374,7 @@
dXSARGS;
if ((items < 5) || (items > 5)) {
- SWIG_croak("Usage: CoreSession_recordFile(self,file_name,max_len,silence_threshold,silence_secs);");
+ SWIG_croak("Usage: CoreSession_recordFile(self,file_name,time_limit,silence_threshold,silence_hits);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
if (!SWIG_IsOK(res1)) {
@@ -6440,7 +6440,7 @@
dXSARGS;
if ((items < 4) || (items > 4)) {
- SWIG_croak("Usage: CoreSession_recordFile(self,file_name,max_len,silence_threshold);");
+ SWIG_croak("Usage: CoreSession_recordFile(self,file_name,time_limit,silence_threshold);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
if (!SWIG_IsOK(res1)) {
@@ -6496,7 +6496,7 @@
dXSARGS;
if ((items < 3) || (items > 3)) {
- SWIG_croak("Usage: CoreSession_recordFile(self,file_name,max_len);");
+ SWIG_croak("Usage: CoreSession_recordFile(self,file_name,time_limit);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
if (!SWIG_IsOK(res1)) {
Modified: freeswitch/trunk/src/switch_cpp.cpp
==============================================================================
--- freeswitch/trunk/src/switch_cpp.cpp (original)
+++ freeswitch/trunk/src/switch_cpp.cpp Tue Aug 19 18:25:28 2008
@@ -903,7 +903,7 @@
return SWITCH_STATUS_FALSE;
}
-SWITCH_DECLARE(int) CoreSession::recordFile(char *file_name, int max_len, int silence_threshold, int silence_secs)
+SWITCH_DECLARE(int) CoreSession::recordFile(char *file_name, int time_limit, int silence_threshold, int silence_hits)
{
switch_status_t status;
@@ -913,10 +913,10 @@
memset(&local_fh, 0, sizeof(local_fh));
fhp = &local_fh;
local_fh.thresh = silence_threshold;
- local_fh.silence_hits = silence_secs;
+ local_fh.silence_hits = silence_hits;
begin_allow_threads();
- status = switch_ivr_record_file(session, &local_fh, file_name, &args, max_len);
+ status = switch_ivr_record_file(session, &local_fh, file_name, &args, time_limit);
end_allow_threads();
fhp = NULL;
More information about the Freeswitch-svn
mailing list