]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix MODLANG-79
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 19 Aug 2008 22:25:28 +0000 (22:25 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 19 Aug 2008 22:25:28 +0000 (22:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9325 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_cpp.h
src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java
src/mod/languages/mod_perl/mod_perl_wrap.cpp
src/switch_cpp.cpp

index b761ad2ffd4813eb3f9b5bad51798476e3755d7a..8dd02279329c0e5acb4abccf3c7e1287a44420f7 100644 (file)
@@ -232,7 +232,7 @@ SWITCH_DECLARE(void) consoleCleanLog(char *msg);
         *        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
index 85088bdd04dd42c9c3ceda92a955ef020703c965..3519d69898417fb3b367447d82538c0a56768f25 100644 (file)
@@ -161,16 +161,16 @@ public class CoreSession {
     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) {
index 09f72da14040d896209220d33ff00019dbb19b1b..6cba7b4f6d84a4cd6296df9837c8343127b4b686 100644 (file)
@@ -6374,7 +6374,7 @@ XS(_wrap_CoreSession_recordFile__SWIG_0) {
     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 @@ XS(_wrap_CoreSession_recordFile__SWIG_1) {
     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 @@ XS(_wrap_CoreSession_recordFile__SWIG_2) {
     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)) {
index 60aaccd96d488ebe9b97ae0ddc2d8f4b30ed0574..a1e5b7ff7ab1d9a0ba251d3a37d36b62555b4c86 100644 (file)
@@ -903,7 +903,7 @@ SWITCH_DECLARE(int) CoreSession::originate(CoreSession *a_leg_session, char *des
        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 @@ SWITCH_DECLARE(int) CoreSession::recordFile(char *file_name, int max_len, int si
        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;