Commit 8e59b289 authored by Kai Vehmanen's avatar Kai Vehmanen
Browse files

nua: Ignore CANCEL of incoming request if we have already sent a final response, part 2.

parent 288d5916
......@@ -2198,10 +2198,11 @@ int process_cancel(nua_server_request_t *sr,
nua_session_usage_t *ss = nua_dialog_usage_private(sr->sr_usage);
msg_t *cancel = nta_incoming_getrequest_ackcancel(irq);
assert(nta_incoming_status(irq) < 200);
assert(ss); assert(ss == nua_session_usage_get(nh->nh_ds)); (void)ss;
if (nua_server_request_is_pending(sr)) {
assert(nta_incoming_status(irq) < 200);
nua_stack_event(nh->nh_nua, nh, cancel, nua_i_cancel, SIP_200_OK, NULL);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment