small fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7554 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b2ab979f29
commit
cb7bae8c8c
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue