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

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6962 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-12-22 21:21:03 +00:00
parent 314ed4aedf
commit 5e908c1cd0
1 changed files with 1 additions and 1 deletions

View 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) {