mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-03 20:01:57 +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,20 +916,19 @@ 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 && code != 407) {
|
||||||
|
reason = "Call Refused";
|
||||||
if (!reason) {
|
if (!reason) {
|
||||||
reason = sip_status_phrase(code);
|
reason = sip_status_phrase(code);
|
||||||
if (switch_strlen_zero(reason)) {
|
if (switch_strlen_zero(reason)) {
|
||||||
reason = "Because";
|
reason = "Because";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (code == 407 && !msg->numeric_arg) {
|
if (code == 407 && !msg->numeric_arg) {
|
||||||
const char *to_uri = switch_channel_get_variable(channel, "sip_to_uri");
|
const char *to_uri = switch_channel_get_variable(channel, "sip_to_uri");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user