]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix decrement of max_forwards across the bridge. (MODENDP-60)
authorMichael Jerris <mike@jerris.com>
Sat, 22 Dec 2007 21:21:03 +0000 (21:21 +0000)
committerMichael Jerris <mike@jerris.com>
Sat, 22 Dec 2007 21:21:03 +0000 (21:21 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6962 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index e92ca267b78580bb454c3bdcb53089995067cd7b..4cbeac14a82b0c5c7ea040fc8f90531490cd94b2 100644 (file)
@@ -666,7 +666,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
 
        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) {