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

src/mod/endpoints/mod_exosip/mod_exosip.c
src/switch_core.c

index 666b7c8ac2177fb92783c6d01d99ba22940b508a..7339819cca6a64c177e97769545956487903ddb1 100644 (file)
@@ -884,8 +884,29 @@ static switch_status exosip_send_dtmf(switch_core_session *session, char *digits
 
 static switch_status exosip_receive_message(switch_core_session *session, switch_core_session_message *msg)
 {
+       switch_channel *channel;
+       struct private_object *tech_pvt;
+                       
+       channel = switch_core_session_get_channel(session);
+       assert(channel != NULL);
+                       
+       tech_pvt = switch_core_session_get_private(session);
+       assert(tech_pvt != NULL);
+
 
        switch (msg->message_id) {
+       case SWITCH_MESSAGE_INDICATE_BRIDGE:
+               if (tech_pvt->rtp_session) {
+                       switch_rtp_clear_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_USE_TIMER);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "De-activate timed RTP!\n");
+               }
+                       break;
+       case SWITCH_MESSAGE_INDICATE_UNBRIDGE:
+               if (tech_pvt->rtp_session) {
+                       switch_rtp_set_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_USE_TIMER);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Re-activate timed RTP!\n");
+               }
+                       break;
        case SWITCH_MESSAGE_INDICATE_PROGRESS:
                if (msg) {
                        struct private_object *tech_pvt;
index 80eed61f694fcca4bae8ca0954c4086dd8dc79cc..0fee18536926053865fccef3773dcc33cd196342 100644 (file)
@@ -2359,7 +2359,7 @@ static void *SWITCH_THREAD_FUNC switch_core_sql_thread(switch_thread *thread, vo
        uint32_t itterations = 0;
        uint8_t trans = 0;
        switch_time_t last_commit = switch_time_now();
-       uint32_t work = 0, freq = 500, target = 500, diff = 0;
+       uint32_t work = 0, freq = 1000, target = 500, diff = 0;
        
        if (!runtime.event_db) {
                runtime.event_db = switch_core_db_handle();