]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
revert MODAPP-311 for now until we address how to do this in the file interface
authorMichael Jerris <mike@jerris.com>
Sat, 1 Aug 2009 05:35:22 +0000 (05:35 +0000)
committerMichael Jerris <mike@jerris.com>
Sat, 1 Aug 2009 05:35:22 +0000 (05:35 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14448 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/autoload_configs/voicemail.conf.xml
src/mod/applications/mod_voicemail/mod_voicemail.c

index dfc42b2fcf4962b7b0478fac69cf34bfacb778b3..14ad98b41cadefef85626638eb5b7f6c2f6f5a52 100644 (file)
@@ -33,8 +33,6 @@
       <param name="ff-key" value="6"/>
       <param name="rew-key" value="4"/>
       <param name="skip-greet-key" value="#"/>
-      <param name="ff-msec" value="3000"/>
-      <param name="rew-msec" value="6000"/>
       <!--<param name="previous-message-key" value=""/>-->
       <!--<param name="next-message-key" value=""/>-->
       <!--<param name="skip-info-key" value=""/>-->
index b8be55df27232e106dfad54d64e9c096e3143d05..e6cfc2481b6a56ff8ccd3fe2189c994dab3ae1e6 100644 (file)
@@ -107,8 +107,6 @@ struct vm_profile {
        char rew_key[2];
        char prev_msg_key[2];
        char next_msg_key[2];
-        uint32_t ff_msec;
-        uint32_t rew_msec;
        char urgent_key[2];
        char operator_key[2];
        char vmain_key[2];
@@ -309,7 +307,6 @@ static void destroy_profile(const char *profile_name, switch_bool_t block)
 static switch_xml_config_string_options_t config_dtmf = { NULL, 2, "[0-9#\\*]" };
 static switch_xml_config_string_options_t config_login_keys = { NULL, 16, "[0-9#\\*]*" };
 static switch_xml_config_string_options_t config_file_ext = { NULL, 10, NULL };
-static switch_xml_config_int_options_t config_int_0_60000 = { SWITCH_TRUE, 0, SWITCH_TRUE, 60000 };
 static switch_xml_config_int_options_t config_int_0_10000 = { SWITCH_TRUE, 0, SWITCH_TRUE, 10000 };
 static switch_xml_config_int_options_t config_int_0_1000 = { SWITCH_TRUE, 0, SWITCH_TRUE, 1000 };
 static switch_xml_config_int_options_t config_int_digit_timeout = { SWITCH_TRUE, 0, SWITCH_TRUE, 30000 };
@@ -515,10 +512,6 @@ vm_profile_t *profile_set_config(vm_profile_t *profile)
                 &profile->prev_msg_key, "", &config_dtmf, NULL, NULL);
         SWITCH_CONFIG_SET_ITEM(profile->config[i++], "next-message-key", SWITCH_CONFIG_STRING, CONFIG_RELOADABLE,
                 &profile->next_msg_key, "", &config_dtmf, NULL, NULL);
-        SWITCH_CONFIG_SET_ITEM(profile->config[i++], "ff-msec", SWITCH_CONFIG_INT, CONFIG_RELOADABLE,
-                &profile->ff_msec, 3000, &config_int_0_60000, NULL, NULL);
-        SWITCH_CONFIG_SET_ITEM(profile->config[i++], "rew-msec", SWITCH_CONFIG_INT, CONFIG_RELOADABLE,
-                &profile->rew_msec, 6000, &config_int_0_60000, NULL, NULL);
        SWITCH_CONFIG_SET_ITEM(profile->config[i++], "urgent-key", SWITCH_CONFIG_STRING, CONFIG_RELOADABLE, 
                &profile->urgent_key, "*", &config_dtmf, NULL, NULL);
        SWITCH_CONFIG_SET_ITEM(profile->config[i++], "operator-key", SWITCH_CONFIG_STRING, CONFIG_RELOADABLE, 
@@ -918,19 +911,14 @@ static switch_status_t control_playback(switch_core_session_t *session, void *in
                        }
 
                        if (dtmf->digit == *cc->profile->ff_key) {
-                               int samps = ((cc->profile->ff_msec * fh->samplerate) / 1000);
+                               int samps = 24000;
                                switch_core_file_seek(fh, &pos, samps, SEEK_CUR);
                                return SWITCH_STATUS_SUCCESS;
                        }
 
                        if (dtmf->digit == *cc->profile->rew_key) {
-                               int samps = 0- ((cc->profile->rew_msec * fh->samplerate) / 1000);
-                               if (fh->pos + samps < 0) {
-                                       unsigned int seekpos = 0;
-                                       switch_core_file_seek(fh, &seekpos, 0, SEEK_SET);
-                               } else {
-                                       switch_core_file_seek(fh, &pos, samps, SEEK_CUR);
-                               }
+                               int samps = -48000;
+                               switch_core_file_seek(fh, &pos, samps, SEEK_CUR);
                                return SWITCH_STATUS_SUCCESS;
                        }
                        if (!cc->noexit && dtmf->digit == *cc->profile->terminator_key) {