[Freeswitch-trunk] [commit] r6962 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN mikej at freeswitch.org
Sat Dec 22 16:21:03 EST 2007


Author: mikej
Date: Sat Dec 22 16:21:03 2007
New Revision: 6962

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c

Log:
fix decrement of max_forwards across the bridge. (MODENDP-60)

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	Sat Dec 22 16:21:03 2007
@@ -666,7 +666,7 @@
 
 	if ((forwardbuf = switch_channel_get_variable(channel, SWITCH_MAX_FORWARDS_VARIABLE))) {
 		forwardval = atoi(forwardbuf) - 1;
-		switch_core_session_sprintf(tech_pvt->session, "%d", forwardval);
+		max_forwards = switch_core_session_sprintf(tech_pvt->session, "%d", forwardval);
 	}
 
 	if ((status = sofia_glue_tech_choose_port(tech_pvt)) != SWITCH_STATUS_SUCCESS) {



More information about the Freeswitch-trunk mailing list