Commit 9feba732 authored by Pekka Pessi's avatar Pekka Pessi

Destroying session when initial INVITE is CANCELed.

Patch proposed by Colin Whittaker <colinw@occamnetworks.com>.

darcs-hash:20060427204022-65a35-e97fe90564b2a4329ca144e846ce191493f829ca.gz
parent dd931d98
......@@ -1375,8 +1375,10 @@ int process_cancel(nua_handle_t *nh,
signal_call_state_change(nh, 0, "Received CANCEL", nua_callstate_init, 0, 0);
if (nh->nh_soa && ss->ss_state < nua_callstate_ready)
if (nh->nh_soa && ss->ss_state < nua_callstate_ready) {
soa_terminate(nh->nh_soa, NULL);
nsession_destroy(nh);
}
return 0;
}
......
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