[Freeswitch-svn] [commit] r2266 - in freeswitch/trunk/src: . mod/endpoints/mod_exosip
Freeswitch SVN
anthm at freeswitch.org
Fri Aug 11 19:27:08 EDT 2006
Author: anthm
Date: Fri Aug 11 19:27:08 2006
New Revision: 2266
Modified:
freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c
freeswitch/trunk/src/switch.c
freeswitch/trunk/src/switch_rtp.c
Log:
rtp fix and some other misc stuff
Modified: freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c Fri Aug 11 19:27:08 2006
@@ -586,7 +586,9 @@
}
} else {
switch_channel_t *channel = switch_core_session_get_channel(tech_pvt->session);
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "RTP REPORTS ERROR: [%s]\n", err);
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "RTP REPORTS ERROR: [%s][%s:%d]\n", err,
+ tech_pvt->local_sdp_audio_ip,
+ tech_pvt->local_sdp_audio_port);
switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
switch_set_flag_locked(tech_pvt, TFLAG_BYE);
switch_clear_flag_locked(tech_pvt, TFLAG_IO);
Modified: freeswitch/trunk/src/switch.c
==============================================================================
--- freeswitch/trunk/src/switch.c (original)
+++ freeswitch/trunk/src/switch.c Fri Aug 11 19:27:08 2006
@@ -84,10 +84,6 @@
nice(-20);
#endif
-#ifdef HAVE_MLOCKALL
- mlockall(MCL_CURRENT|MCL_FUTURE);
-#endif
-
#ifndef WIN32
if (argv[1] && !strcmp(argv[1], "-stop")) {
pid_t pid = 0;
@@ -181,6 +177,11 @@
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Event-Info", "System Ready");
switch_event_fire(&event);
}
+
+#ifdef HAVE_MLOCKALL
+ mlockall(MCL_CURRENT|MCL_FUTURE);
+#endif
+
#ifdef CRASH_PROT
#define __CP "ENABLED"
Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c (original)
+++ freeswitch/trunk/src/switch_rtp.c Fri Aug 11 19:27:08 2006
@@ -298,8 +298,8 @@
switch_mutex_lock(port_lock);
port = NEXT_PORT;
NEXT_PORT += 2;
- if (port > RTP_END_PORT) {
- port = RTP_START_PORT;
+ if (NEXT_PORT > RTP_END_PORT) {
+ NEXT_PORT = RTP_START_PORT;
}
switch_mutex_unlock(port_lock);
return port;
More information about the Freeswitch-svn
mailing list