Commit 730e1bca authored by Pekka Pessi's avatar Pekka Pessi

test_s2.c: add From tag to s2-generated requests

darcs-hash:20080910154636-db55f-7a8cc270dec3d432635a8d3272e266c1ac4f8964.gz
parent 02ee3e8b
......@@ -629,6 +629,20 @@ s2_request_to(struct dialog *d,
if (sip->sip_payload)
l->l_length = sip->sip_payload->pl_len;
if (d->local->a_tag == NULL) {
char const *ltag = s2_generate_tag(d->home);
if (sip_from_tag(d->home, d->local, ltag) < 0) {
assert(!"add To tag");
}
if (sip->sip_from && sip->sip_from->a_tag == NULL) {
if (sip_from_tag(msg_home(msg), sip->sip_from, ltag) < 0) {
assert(!"add To tag");
}
}
}
sip_add_tl(msg, sip,
TAG_IF(!sip->sip_from, SIPTAG_FROM(d->local)),
TAG_IF(!sip->sip_contact, SIPTAG_CONTACT(d->contact)),
......
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