mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-07 12:17:35 +00:00
sofia tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2744 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
84a2bebb86
commit
c8ba03eec2
@ -609,13 +609,13 @@ static switch_status_t sofia_on_hangup(switch_core_session_t *session)
|
|||||||
if (switch_test_flag(tech_pvt, TFLAG_ANS)) {
|
if (switch_test_flag(tech_pvt, TFLAG_ANS)) {
|
||||||
nua_bye(tech_pvt->nh, TAG_END());
|
nua_bye(tech_pvt->nh, TAG_END());
|
||||||
} else {
|
} else {
|
||||||
if (switch_test_flag(tech_pvt, TFLAG_INBOUND))
|
if (switch_test_flag(tech_pvt, TFLAG_INBOUND)) {
|
||||||
nua_respond(tech_pvt->nh, sip_cause, NULL, TAG_END());
|
nua_respond(tech_pvt->nh, sip_cause, NULL, TAG_END());
|
||||||
else
|
} else {
|
||||||
nua_cancel(tech_pvt->nh, TAG_END());
|
nua_cancel(tech_pvt->nh, TAG_END());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
nua_handle_bind(tech_pvt->nh, NULL);
|
}
|
||||||
nua_handle_destroy(tech_pvt->nh);
|
nua_handle_destroy(tech_pvt->nh);
|
||||||
tech_pvt->nh = NULL;
|
tech_pvt->nh = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user