<div><span style="background-color:rgb(239,255,239);color:rgb(85,85,85);font-family:arial,helvetica,clean,sans-serif;font-size:12px;line-height:19px;text-align:left">Main route:</span><br></div><span style="color:rgb(85,85,85);font-family:arial,helvetica,clean,sans-serif;font-size:12px;line-height:19px;text-align:left;background-color:rgb(239,255,239)">$var(orig-to) = $hdr(To);</span><br style="color:rgb(85,85,85);font-family:arial,helvetica,clean,sans-serif;font-size:12px;line-height:19px;text-align:left;background-color:rgb(239,255,239)">
<span style="color:rgb(85,85,85);font-family:arial,helvetica,clean,sans-serif;font-size:12px;line-height:19px;text-align:left;background-color:rgb(239,255,239)">b2b_init_request(&quot;top hiding&quot;);</span><br style="color:rgb(85,85,85);font-family:arial,helvetica,clean,sans-serif;font-size:12px;line-height:19px;text-align:left;background-color:rgb(239,255,239)">
<br style="color:rgb(85,85,85);font-family:arial,helvetica,clean,sans-serif;font-size:12px;line-height:19px;text-align:left;background-color:rgb(239,255,239)"><span style="color:rgb(85,85,85);font-family:arial,helvetica,clean,sans-serif;font-size:12px;line-height:19px;text-align:left;background-color:rgb(239,255,239)">Local route:</span><br style="color:rgb(85,85,85);font-family:arial,helvetica,clean,sans-serif;font-size:12px;line-height:19px;text-align:left;background-color:rgb(239,255,239)">
<span style="color:rgb(85,85,85);font-family:arial,helvetica,clean,sans-serif;font-size:12px;line-height:19px;text-align:left;background-color:rgb(239,255,239)">remove_hf(&quot;To&quot;);</span><br style="color:rgb(85,85,85);font-family:arial,helvetica,clean,sans-serif;font-size:12px;line-height:19px;text-align:left;background-color:rgb(239,255,239)">
<span style="color:rgb(85,85,85);font-family:arial,helvetica,clean,sans-serif;font-size:12px;line-height:19px;text-align:left;background-color:rgb(239,255,239)">append_hf(&quot;To: $var(orig-to)\r\n&quot;, &quot;From&quot;);</span><br>
<div class="gmail_extra"><br clear="all">--<br>Nick<br><br><div class="gmail_quote">2012/11/23 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><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi, i am trying to preserve the To header and the User-Agent header. It is possible to do that?<br>

<br>
Kind regards<br>
<br>
Jorge Pinho<br>
Analyst/Developer<br>
Network Platforms and Multimedia Solutions<br>
Multimedia Division<br>
________________________________________<br>
From: <a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a> [<a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>] On Behalf Of Muhammad Shahzad [<a href="mailto:shaheryarkh@gmail.com">shaheryarkh@gmail.com</a>]<br>

Sent: 22 November 2012 18:35<br>
To: OpenSIPS users mailling list<br>
Subject: Re: [OpenSIPS-Users] B2b custom_header not working!<br>
<div class="im"><br>
What headers you are trying to preserve, its possible that the headers your are try to save are mandatory headers necessary for B2BUA function, which will get duplicated if you try to preserve then from leg 1 to leg 2. See custom_headers documentation for more info.<br>

<br>
Thank you.<br>
<br>
<br>
</div><div class="im">On Thu, Nov 22, 2012 at 5:25 PM, Jorge Henrique Pinho &lt;<a href="mailto:jorge-h-pinho@ext.ptinovacao.pt">jorge-h-pinho@ext.ptinovacao.pt</a>&lt;mailto:<a href="mailto:jorge-h-pinho@ext.ptinovacao.pt">jorge-h-pinho@ext.ptinovacao.pt</a>&gt;&gt; wrote:<br>

Hi all,<br>
I have installed opensips-1.7.2-2.el5 and I am using b2b module.<br>
I need to preserve some headers that b2b module changes. I was using avp and textops modules in local_route to accomplish that. But this lead to unexpected behaviours by opensips.<br>
So i define the custom_headers variable in my configuration (<a href="http://www.opensips.org/html/docs/modules/1.7.x/b2b_logic.html#id250020" target="_blank">http://www.opensips.org/html/docs/modules/1.7.x/b2b_logic.html#id250020</a>), and the message that b2b passes to the other side of the dialog has the preserve headers repeated. One header with the original value and other with the new value generated by b2b module.<br>

Is this the correct behaviour? How do i solve this?<br>
<br>
Thanks in advance,<br>
<br>
Jorge Pinho<br>
_______________________________________________<br>
Users mailing list<br>
</div><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<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>
<div class=""><div class="h5"><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>
</div></div></blockquote></div><br></div>