mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
mod_sofia: send bye instead of cancel after invalid 200 OK (MODENDP-270)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15808 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -389,7 +389,7 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session)
|
||||
switch_channel_cause2str(cause));
|
||||
}
|
||||
|
||||
if (switch_channel_test_flag(channel, CF_ANSWERED)) {
|
||||
if (switch_channel_test_flag(channel, CF_ANSWERED) || sofia_test_flag(tech_pvt, TFLAG_ANS)) {
|
||||
if (!tech_pvt->got_bye) {
|
||||
switch_channel_set_variable(channel, "sip_hangup_disposition", "send_bye");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user