Read this<div><a href="http://www.opensips.org/html/docs/modules/1.8.x/b2b_logic.html#id250020">http://www.opensips.org/html/docs/modules/1.8.x/b2b_logic.html#id250020</a> </div><div><br></div><div>Does that help or is that not what you are looking for?<br>
<br><div class="gmail_quote">On Wed, Sep 12, 2012 at 5:26 AM, Jorge Henrique Pinho <span dir="ltr">&lt;<a href="mailto:jorge-h-pinho@ext.ptinovacao.pt" target="_blank">jorge-h-pinho@ext.ptinovacao.pt</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all<br>
In b2b, is there a way to preserve headers added in opensips routine when the second leg is generated? Here is an example<br>
<br>
route<br>
{<br>
               append_hf(&quot;Orig-User-Agent: $hdr(User-Agent)\r\n&quot;);<br>
               b2b_init_request(&quot;top hiding&quot;);<br>
}<br>
<br>
local_route {<br>
                if(is_present_hf(&quot;Orig-User-Agent&quot;))<br>
                {<br>
                        do stuff....<br>
                }<br>
<br>
}<br>
<br>
My goal is to preserve headers that b2b modules changes. Like User Agent header and To header.<br>
<br>
Kind regards,<br>
<br>
Jorge Pinho<br>
Analyst/Developer<br>
Network Platforms and Multimedia Solutions<br>
Multimedia Division<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>
</div>