small fix

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7554 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-02-08 15:44:39 +00:00
parent b2ab979f29
commit cb7bae8c8c
1 changed files with 8 additions and 9 deletions

View File

@ -916,18 +916,17 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
}
}
if (!reason && code != 407) {
reason = "Call Refused";
}
if (!code) {
code = 488;
}
if (!reason) {
reason = sip_status_phrase(code);
if (switch_strlen_zero(reason)) {
reason = "Because";
if (!reason && code != 407) {
reason = "Call Refused";
if (!reason) {
reason = sip_status_phrase(code);
if (switch_strlen_zero(reason)) {
reason = "Because";
}
}
}