mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
FS-3688 revert
This commit is contained in:
parent
71ecf081f0
commit
a19352aa23
@ -1 +1 @@
|
|||||||
Thu Nov 17 11:43:21 CST 2011
|
Wed Nov 2 08:58:40 CDT 2011
|
||||||
|
@ -3801,23 +3801,24 @@ static int nua_bye_client_request(nua_client_request_t *cr,
|
|||||||
ss = nua_dialog_usage_private(du);
|
ss = nua_dialog_usage_private(du);
|
||||||
reason = ss->ss_reason;
|
reason = ss->ss_reason;
|
||||||
|
|
||||||
|
|
||||||
nua_dialog_usage_reset_refresh(du);
|
|
||||||
ss->ss_timer->timer_set = 0;
|
|
||||||
|
|
||||||
/* Terminate server transactions associated with session, too. */
|
|
||||||
for (sr = du->du_dialog->ds_sr; sr; sr = sr->sr_next) {
|
|
||||||
if (sr->sr_usage == du && nua_server_request_is_pending(sr) &&
|
|
||||||
sr->sr_method != sip_method_bye) {
|
|
||||||
sr_status(sr, SIP_486_BUSY_HERE);
|
|
||||||
nua_server_respond(sr, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
error = nua_base_client_trequest(cr, msg, sip,
|
error = nua_base_client_trequest(cr, msg, sip,
|
||||||
SIPTAG_REASON_STR(reason),
|
SIPTAG_REASON_STR(reason),
|
||||||
TAG_NEXT(tags));
|
TAG_NEXT(tags));
|
||||||
|
|
||||||
|
if (error == 0) {
|
||||||
|
nua_dialog_usage_reset_refresh(du);
|
||||||
|
ss->ss_timer->timer_set = 0;
|
||||||
|
|
||||||
|
/* Terminate server transactions associated with session, too. */
|
||||||
|
for (sr = du->du_dialog->ds_sr; sr; sr = sr->sr_next) {
|
||||||
|
if (sr->sr_usage == du && nua_server_request_is_pending(sr) &&
|
||||||
|
sr->sr_method != sip_method_bye) {
|
||||||
|
sr_status(sr, SIP_486_BUSY_HERE);
|
||||||
|
nua_server_respond(sr, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
static int nua_bye_client_response(nua_client_request_t *cr,
|
static int nua_bye_client_response(nua_client_request_t *cr,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user