fix bypass_media mode

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7128 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-01-07 18:02:01 +00:00
parent 66673a4c15
commit b3992a6eee
2 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -967,7 +967,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
reason = "Call Refused";
}
if (!(code > 400 && code < 700)) {
if (!code) {
code = 488;
}
@@ -982,7 +982,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
sofia_reg_auth_challange(NULL, tech_pvt->profile, tech_pvt->nh, REG_INVITE, to_host, 0);
switch_channel_hangup(channel, SWITCH_CAUSE_USER_CHALLENGE);
} else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Rejecting with %d %s\n", code, reason);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Responding with %d %s\n", code, reason);
nua_respond(tech_pvt->nh, code, reason, TAG_END());
}