]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mark tdm channel as answered immediately
authorMathieu Rene <mrene@avgs.ca>
Thu, 26 Jul 2012 00:49:33 +0000 (20:49 -0400)
committerMathieu Rene <mrene@avgs.ca>
Thu, 26 Jul 2012 00:49:33 +0000 (20:49 -0400)
libs/freetdm/mod_freetdm/tdm.c
src/switch_rtp.c

index 9ef95a7bfc11e0d8ca6f6c956e06fe5c53d32be5..a01ac153b2874e128bc7878be5ba7440ff4951a9 100644 (file)
@@ -228,6 +228,8 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
         goto fail;
     }
     
+    switch_channel_mark_answered(channel);
+    
     return SWITCH_CAUSE_SUCCESS;
 
 fail:
index 3bad17ce170045df98c7f7c32b72a3e8211d39f2..3cc5255e8bc2f3d026378c8f2b4bde97f5d8b9b1 100644 (file)
@@ -34,6 +34,8 @@
 //#define RTP_DEBUG_WRITE_DELTA
 //#define DEBUG_MISSED_SEQ
 
+typedef unsigned long u_long;
+
 #include <switch.h>
 #include <switch_stun.h>
 #include <apr_network_io.h>
@@ -1451,7 +1453,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_add_crypto_key(switch_rtp_t *rtp_sess
                                                                                                                  uint32_t index, switch_rtp_crypto_key_type_t type, unsigned char *key, switch_size_t keylen)
 {
 #ifndef ENABLE_SRTP
-       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_CRIT, "SRTP NOT SUPPORTED IN THIS BUILD!\n");
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "SRTP NOT SUPPORTED IN THIS BUILD!\n");
        return SWITCH_STATUS_FALSE;
 #else
        switch_rtp_crypto_key_t *crypto_key;