Commit 1085fa0b authored by Pekka Pessi's avatar Pekka Pessi

nua_stack.c: include Allow-Events in responses of PUBLISH and SUBSCRIBE.

darcs-hash:20061017165034-65a35-9d3ad44db6c9a9aa49b39882873faffd5f26608d.gz
parent b0644292
......@@ -1304,6 +1304,13 @@ msg_t *nh_make_response(nua_t *nua,
else if (!sip->sip_allow && NH_PGET(nh, allow) &&
sip_add_dup(msg, sip, (sip_header_t*)NH_PGET(nh, allow)) < 0)
msg_destroy(msg);
else if (!sip->sip_allow_events &&
(sip->sip_cseq &&
(sip->sip_cseq->cs_method == sip_method_publish ||
sip->sip_cseq->cs_method == sip_method_subscribe)) &&
NH_PGET(nh, allow_events) &&
sip_add_dup(msg, sip, (sip_header_t*)NH_PGET(nh, allow_events)) < 0)
msg_destroy(msg);
else if (!sip->sip_contact &&
(t = tl_find(ta_args(ta), _nutag_add_contact)) &&
t->t_value &&
......
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