]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
more ivr stuff (not done)
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 28 Feb 2006 02:22:33 +0000 (02:22 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 28 Feb 2006 02:22:33 +0000 (02:22 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@694 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
src/switch_ivr.c

index 7cd4534f9517912391051db327a089cd4239733b..6a58bda2a5a639208e3941e2c1b036d0aafa6c54 100644 (file)
@@ -182,12 +182,9 @@ static switch_status js_dtmf_callback(switch_core_session *session, char *dtmf,
                
                if (*ret == 'P') {
                        if (switch_test_flag(fh, SWITCH_FILE_PAUSE)) {
-                               printf("unpause\n");
                                switch_clear_flag(fh, SWITCH_FILE_PAUSE);
                        } else {
-                               printf("pause\n");
                                switch_set_flag(fh, SWITCH_FILE_PAUSE);
-                               fh->speed = 0;
                        }
                        return SWITCH_STATUS_SUCCESS;
                }
index 6758716cd76c33f645aebd0ad400b53a22335b2f..6569cc939a8c8dc84763489f76f0216aac8a764c 100644 (file)
@@ -337,6 +337,8 @@ SWITCH_DECLARE(switch_status) switch_ivr_play_file(switch_core_session *session,
                
                if (switch_test_flag(fh, SWITCH_FILE_PAUSE)) {
                        memset(abuf, 0, ilen * 2);
+                       olen = ilen;
+            do_speed = 0;
                } else if (fh->audio_buffer && (switch_buffer_inuse(fh->audio_buffer) > (ilen * 2))) {
                        switch_buffer_read(fh->audio_buffer, abuf, ilen * 2);
                        olen = ilen;