Commit 87dabc6e authored by Pekka Pessi's avatar Pekka Pessi

nua.c, nua_stack.c: simplified message passing between application and stack.

darcs-hash:20060925180516-65a35-ddf2c283510c6cdcb125e6dfbf1aaa27128b7ebf.gz
parent 0433838b
......@@ -1166,7 +1166,7 @@ void nua_signal(nua_t *nua, nua_handle_t *nh, msg_t *msg, int always,
len = tl_len(ta_args(ta));
xtra = tl_xtra(ta_args(ta), len);
if (su_msg_create(sumsg, nua->nua_server, nua->nua_client,
if (su_msg_create(sumsg, nua->nua_server, su_task_null,
nua_stack_signal,
e_len + len + l_len + xtra + l_xtra) == 0) {
event_t *e = su_msg_data(sumsg);
......@@ -1190,7 +1190,8 @@ void nua_signal(nua_t *nua, nua_handle_t *nh, msg_t *msg, int always,
nua_handle_unref(nh);
}
else {
assert(0);
/* XXX - we should return error code to application */
assert(ENOMEM == 0);
}
ta_end(ta);
......
......@@ -292,7 +292,7 @@ int nua_stack_event(nua_t *nua, nua_handle_t *nh, msg_t *msg,
xtra = tl_xtra(ta_args(ta), len);
p_len = phrase ? strlen(phrase) + 1 : 1;
if (su_msg_create(sumsg, nua->nua_client, nua->nua_server,
if (su_msg_create(sumsg, nua->nua_client, su_task_null,
nua_event, e_len + len + xtra + p_len) == 0) {
event_t *e = su_msg_data(sumsg);
......
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