forked from Mirrors/freeswitch
hangup properly on malformed 3pcc calls being bastardized into a way to ping
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8722 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
6f74287e18
commit
9ea77a001f
@ -2056,7 +2056,9 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
|
||||
break;
|
||||
case nua_callstate_terminating:
|
||||
if (session) {
|
||||
if (!switch_test_flag(tech_pvt, TFLAG_BYE)) {
|
||||
if (status == 488 || switch_channel_get_state(channel) == CS_HIBERNATE) {
|
||||
tech_pvt->q850_cause = SWITCH_CAUSE_MANDATORY_IE_MISSING;
|
||||
} else if (!switch_test_flag(tech_pvt, TFLAG_BYE)) {
|
||||
switch_set_flag_locked(tech_pvt, TFLAG_BYE);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user