From 799779e3a625af90f6344182ef6e3fbba3dcc136 Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Mon, 16 Mar 2009 20:30:53 +0000 Subject: [PATCH] Revert unwanted changes git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12629 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_conference/mod_conference.c | 2 +- src/mod/codecs/mod_g729/Makefile | 6 +++--- src/mod/codecs/mod_g729/mod_g729.c | 6 +++--- src/mod/endpoints/mod_reference/mod_reference.c | 2 ++ src/mod/endpoints/mod_sofia/sofia.c | 2 +- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index b87d21cce6..8fd8b73b9a 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -2922,7 +2922,7 @@ static switch_status_t conf_api_sub_kick(conference_member_t *member, switch_str { switch_event_t *event; - if (member == NULL || switch_test_flag(member, MFLAG_NOCHANNEL)) + if (member == NULL) return SWITCH_STATUS_GENERR; switch_mutex_lock(member->control_mutex); diff --git a/src/mod/codecs/mod_g729/Makefile b/src/mod/codecs/mod_g729/Makefile index 10b182ac18..c89a136d8e 100644 --- a/src/mod/codecs/mod_g729/Makefile +++ b/src/mod/codecs/mod_g729/Makefile @@ -1,7 +1,7 @@ BASE=../../../.. -DIR=./g729abc -A=$(DIR)/libg729ab.a +DIR=$(BASE)/libs/libg729 +A=$(DIR)/.libs/libg729.a -LOCAL_INSERT_CFLAGS=if test -f $(A); then echo "-I$(DIR)" ; else echo "-DG729_PASSTHROUGH" ; fi ; +LOCAL_INSERT_CFLAGS=if test -f $(A); then echo "-I$(DIR)/src/include" ; else echo "-DG729_PASSTHROUGH" ; fi ; LOCAL_INSERT_LDFLAGS=test ! -f $(A) || echo $(A) include $(BASE)/build/modmake.rules diff --git a/src/mod/codecs/mod_g729/mod_g729.c b/src/mod/codecs/mod_g729/mod_g729.c index 246cced3d1..b3e0fe8e68 100644 --- a/src/mod/codecs/mod_g729/mod_g729.c +++ b/src/mod/codecs/mod_g729/mod_g729.c @@ -38,7 +38,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_g729_load); SWITCH_MODULE_DEFINITION(mod_g729, mod_g729_load, NULL, NULL); #ifndef G729_PASSTHROUGH -#include "g729ab.h" +#include "g729.h" struct g729_context { struct dec_state decoder_object; @@ -112,7 +112,7 @@ static switch_status_t switch_g729_encode(switch_codec_t *codec, if (decoded_data_len % 160 == 0) { uint32_t new_len = 0; INT16 *ddp = decoded_data; - unsigned char *edp = encoded_data; + char *edp = encoded_data; int x; int loops = (int) decoded_data_len / 160; @@ -170,7 +170,7 @@ static switch_status_t switch_g729_decode(switch_codec_t *codec, if (encoded_data_len % divisor == 0) { uint8_t *test; int loops = (int) encoded_data_len / divisor; - unsigned char *edp = encoded_data; + char *edp = encoded_data; short *ddp = decoded_data; int x; uint32_t new_len = 0; diff --git a/src/mod/endpoints/mod_reference/mod_reference.c b/src/mod/endpoints/mod_reference/mod_reference.c index 5abe9d053f..60abb501e3 100644 --- a/src/mod/endpoints/mod_reference/mod_reference.c +++ b/src/mod/endpoints/mod_reference/mod_reference.c @@ -272,6 +272,8 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch { switch_channel_t *channel = NULL; private_t *tech_pvt = NULL; + switch_time_t started = switch_time_now(); + unsigned int elapsed; switch_byte_t *data; channel = switch_core_session_get_channel(session); diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index c749549d66..a1500ccde9 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -2691,7 +2691,7 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status } } - if (channel && sip && (status >= 300 && status < 399) && switch_channel_test_flag(channel, CF_OUTBOUND)) { + if (channel && sip && (status >= 300 || status < 399) && switch_channel_test_flag(channel, CF_OUTBOUND)) { sip_contact_t * p_contact = sip->sip_contact; int i = 0; char var_name[80];