Commit a3978721 authored by Pekka Pessi's avatar Pekka Pessi

nua_stack.c: nua_stack_event() now allows sending after-1.12.0 events to application

darcs-hash:20060919134537-65a35-699e30eb0e923d660aff03a6f318fac3963c2992.gz
parent 1f1952d2
......@@ -253,6 +253,9 @@ int nua_stack_event(nua_t *nua, nua_handle_t *nh, msg_t *msg,
ta_list ta;
size_t e_len, len, xtra, p_len;
if (event == nua_r_ack)
return event;
enter;
if (nua_log->log_level >= 5) {
......@@ -274,8 +277,9 @@ int nua_stack_event(nua_t *nua, nua_handle_t *nh, msg_t *msg,
return event;
}
if (event > nua_r_method || (nh && !nh->nh_valid) ||
(nua->nua_shutdown && event != nua_r_shutdown)) {
if ((event > nua_r_method && event <= nua_r_ack)
|| (nh && !nh->nh_valid)
|| (nua->nua_shutdown && event != nua_r_shutdown)) {
if (msg)
msg_destroy(msg);
return event;
......
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