FS-4428 --resolve
This commit is contained in:
parent
e81d31ce43
commit
cbca8b3480
|
@ -5137,7 +5137,11 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
|
|||
return;
|
||||
}
|
||||
|
||||
if (status >= 500 && sip->sip_reason && sip->sip_reason->re_protocol && (!strcasecmp(sip->sip_reason->re_protocol, "Q.850")
|
||||
if (status > 299) {
|
||||
switch_channel_set_variable(channel, "sip_hangup_disposition", "recv_refuse");
|
||||
}
|
||||
|
||||
if (status >= 500 && sip->sip_reason && sip->sip_reason->re_protocol && (!strcasecmp(sip->sip_reason->re_protocol, "Q.850")
|
||||
|| !strcasecmp(sip->sip_reason->re_protocol, "FreeSWITCH")
|
||||
|| !strcasecmp(sip->sip_reason->re_protocol, profile->username)) && sip->sip_reason->re_cause) {
|
||||
tech_pvt->q850_cause = atoi(sip->sip_reason->re_cause);
|
||||
|
|
Loading…
Reference in New Issue