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@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, view it on GitHub, or unsubscribe.