]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 25 Oct 2006 17:00:23 +0000 (17:00 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 25 Oct 2006 17:00:23 +0000 (17:00 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3199 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/libdingaling/src/config.h.in
libs/mozilla.build.sh
src/include/switch_am_config.h.in
src/mod/asr_tts/mod_cepstral/mod_cepstral.c
src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 550ded47575eb9249da0ce3575a747cfe6fa883b..697698a10d074e0eb7f95a083825803178221acb 100644 (file)
 /* Define to rpl_malloc if the replacement function should be used. */
 #undef malloc
 
-/* Define to `unsigned' if <sys/types.h> does not define. */
+/* Define to `unsigned int' if <sys/types.h> does not define. */
 #undef size_t
index 4126f84297398458d85cb646ee34643b56900131..c47c6b2b4df60f480e5d3f662e44ae1b45a95d7f 100755 (executable)
@@ -49,5 +49,5 @@ fi
 
 cd nsprpub && CFLAGS=$cflags LDFLAGS=$ldflags ./configure $opts && $MAKE
 
-cd ../js/src && CFLAGS=$cflags  LDFLAGS=$ldflags JS_THREADSAFE=1 JS_HAS_FILE_OBJECT=1 OTHER_LIBS="-L../../../mozilla/nsprpub/dist/lib" INCLUDES="-I../../../mozilla/nsprpub/dist/include/nspr"  $MAKE -f Makefile.ref `find . -name libjs.a`
+cd ../js/src && CFLAGS=$cflags BUILD_OPT=1  LDFLAGS=$ldflags JS_THREADSAFE=1 JS_HAS_FILE_OBJECT=1 OTHER_LIBS="-L../../../mozilla/nsprpub/dist/lib" INCLUDES="-I../../../mozilla/nsprpub/dist/include/nspr"  $MAKE -f Makefile.ref `find . -name libjs.a`
 
index c2a949cebefad34dbeedbfa1536589dd6bd88616..3e1a92ccaf65c2286357c9d425fa5f513a7ad27a 100644 (file)
 /* Define to rpl_malloc if the replacement function should be used. */
 #undef malloc
 
-/* Define to `unsigned' if <sys/types.h> does not define. */
+/* Define to `unsigned int' if <sys/types.h> does not define. */
 #undef size_t
index f88acab594517eabecc9c79829e8d2f89cc5516c..2814da34d9c142026c58cfba2a98143bdba9117e 100644 (file)
@@ -227,7 +227,7 @@ static switch_status_t cepstral_speech_feed_tts(switch_speech_handle_t *sh, char
                        return SWITCH_STATUS_FALSE;
                }
 
-               swift_port_speak_text(cepstral->port, "<break time=\"600ms\"/>", 0, NULL, &cepstral->tts_stream, NULL); 
+               swift_port_speak_text(cepstral->port, "<break time=\"400ms\"/>", 0, NULL, &cepstral->tts_stream, NULL); 
                swift_port_speak_text(cepstral->port, text, 0, NULL, &cepstral->tts_stream, NULL); 
        }
 
index 43378b0368f883778417e86b98e3929fd4868929..be421b7ab92c33d0ec5f7345d5ddf4fbc21d8d0f 100644 (file)
@@ -577,6 +577,12 @@ static void terminate_session(switch_core_session_t **session, int line, switch_
                        switch_channel_hangup(channel, cause);
                }
                
+               switch_mutex_lock(tech_pvt->flag_mutex);
+               switch_set_flag(tech_pvt, TFLAG_TERM);
+               switch_set_flag(tech_pvt, TFLAG_BYE);
+               switch_clear_flag(tech_pvt, TFLAG_IO);
+               switch_mutex_unlock(tech_pvt->flag_mutex);
+
                *session = NULL;
        }
 
@@ -1186,6 +1192,12 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
                return SWITCH_STATUS_FALSE;
        }
 
+       if (switch_test_flag(tech_pvt, TFLAG_BYE)) {
+               //terminate_session(&session,  __LINE__, SWITCH_CAUSE_NORMAL_CLEARING);
+               return SWITCH_STATUS_FALSE;
+       }
+
+
        tech_pvt->read_frame.datalen = 0;
        switch_set_flag_locked(tech_pvt, TFLAG_READING);
 
@@ -1241,10 +1253,6 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
 
        switch_clear_flag_locked(tech_pvt, TFLAG_READING);
 
-       if (switch_test_flag(tech_pvt, TFLAG_BYE)) {
-               terminate_session(&session,  __LINE__, SWITCH_CAUSE_NORMAL_CLEARING);
-               return SWITCH_STATUS_FALSE;
-       }
 
        *frame = &tech_pvt->read_frame;
        return SWITCH_STATUS_SUCCESS;
@@ -1275,7 +1283,7 @@ static switch_status_t channel_write_frame(switch_core_session_t *session, switc
 
 
        if (switch_test_flag(tech_pvt, TFLAG_BYE)) {
-               terminate_session(&session,  __LINE__, SWITCH_CAUSE_NORMAL_CLEARING);
+               //terminate_session(&session,  __LINE__, SWITCH_CAUSE_NORMAL_CLEARING);
                return SWITCH_STATUS_FALSE;
        }
 
@@ -2560,11 +2568,6 @@ static ldl_status handle_signalling(ldl_handle_t *handle, ldl_session_t *dlsessi
                if (channel) {
                        switch_channel_state_t state = switch_channel_get_state(channel);
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "hungup %s %u %d\n", switch_channel_get_name(channel), state, CS_INIT);
-                       switch_mutex_lock(tech_pvt->flag_mutex);
-                       switch_set_flag(tech_pvt, TFLAG_TERM);
-                       switch_set_flag(tech_pvt, TFLAG_BYE);
-                       switch_clear_flag(tech_pvt, TFLAG_IO);
-                       switch_mutex_unlock(tech_pvt->flag_mutex);
                        terminate_session(&session,  __LINE__, SWITCH_CAUSE_NORMAL_CLEARING);
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "End Call\n");
                        goto done;