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) {
|
||||
code = 488;
|
||||
}
|
||||
|
||||
if (!reason && code != 407) {
|
||||
reason = "Call Refused";
|
||||
if (!reason) {
|
||||
reason = sip_status_phrase(code);
|
||||
if (switch_strlen_zero(reason)) {
|
||||
reason = "Because";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (code == 407 && !msg->numeric_arg) {
|
||||
const char *to_uri = switch_channel_get_variable(channel, "sip_to_uri");
|
||||
|
|
Loading…
Reference in New Issue