Commit 0433838b authored by Pekka Pessi's avatar Pekka Pessi

nua_session.c: including same credential headers in ACK as were included in...

nua_session.c: including same credential headers in ACK as were included in INVITE (as per RFC 3261 section 13.2.2.4, credentials are Authorization and Proxy-Authorization headers)

darcs-hash:20060925164555-65a35-78ce3447d93d8d0594041861d419fef4e36b2032.gz
parent b8cbb778
......@@ -604,6 +604,16 @@ int nua_stack_ack(nua_t *nua, nua_handle_t *nh, nua_event_t e,
}
}
if (sip) {
msg_t *imsg = nta_outgoing_getrequest(cr->cr_orq);
sip_t const *isip = sip_object(imsg);
if (isip->sip_proxy_authorization)
sip_add_dup(msg, sip, (void *)isip->sip_proxy_authorization);
if (isip->sip_authorization)
sip_add_dup(msg, sip, (void *)isip->sip_authorization);
msg_destroy(imsg);
}
if (sip)
ack = nta_outgoing_mcreate(nua->nua_nta, NULL, NULL, NULL, msg,
SIPTAG_END(), TAG_NEXT(tags));
......
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