mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-01 19:20:05 +00:00
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) {
|
if (!code) {
|
||||||
code = 488;
|
code = 488;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!reason) {
|
if (!reason && code != 407) {
|
||||||
reason = sip_status_phrase(code);
|
reason = "Call Refused";
|
||||||
if (switch_strlen_zero(reason)) {
|
if (!reason) {
|
||||||
reason = "Because";
|
reason = sip_status_phrase(code);
|
||||||
|
if (switch_strlen_zero(reason)) {
|
||||||
|
reason = "Because";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user