[sr-dev] [kamailio/kamailio] [stirshaken] add identity header in reply messages or to a separate variable (#2770)

Daniel-Constantin Mierla notifications at github.com
Wed Jun 9 13:18:01 CEST 2021


Making it available on a variable seems to offer more flexibility, then append_to_reply() can be used for your specific case.

With the current version, if the sip transaction is not created yet (which I assume is not, because of stateless reply with sl_send_reply()), you can try:

```
if (stirshaken_add_identity($var(x5u), $var(attest), $var(origtn_val), $var(desttn_val), $var(origid)))
{
         msg_apply_changes();
         append_to_reply("Identity: $hdr(Identity)\r\n");
	append_branch("sip:$rU at 127.0.0.1:6060");
	sl_send_reply("302", "Moved Temporarily");
	exit;
}
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2770#issuecomment-857609867
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210609/ae38f25a/attachment.htm>


More information about the sr-dev mailing list