Commit d46418bb authored by Pekka Pessi's avatar Pekka Pessi
Browse files

nua_server: terminate dialog always in nua_base_server_report()

Freeswitch issue SFSIP-197.
parent 2478048e
......@@ -697,11 +697,12 @@ int nua_base_server_report(nua_server_request_t *sr, tagi_t const *tags)
if (initial && 300 <= status)
terminated = 1;
else if (sr->sr_terminating && status < 300)
terminated = 1;
else
terminated = sip_response_terminates_dialog(status, sr->sr_method, NULL);
if (sr->sr_terminating & !terminated)
terminated = 1;
if (usage && terminated)
nua_dialog_usage_remove(nh, nh->nh_ds, usage, NULL, sr);
......
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