<div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">In main route:</span></div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">$var(orig-to) = $hdr(To);</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">b2b_init_request("top hiding");</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">In local route:</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">remove_hf("To");</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">append_hf("To: $var(orig-to)\r\n", "From");</span><br><div class="gmail_extra"><br clear="all"><div>--<br>Nick</div><br>
<br><br><div class="gmail_quote">2012/12/12 Jorge Henrique Pinho <span dir="ltr"><<a href="mailto:jorge-h-pinho@ext.ptinovacao.pt" target="_blank">jorge-h-pinho@ext.ptinovacao.pt</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
I mean, if there is a possibility in the script or code to preserver the sip uri in the To header, when a new message is generated by b2b.<br>
<br>
Best regards,<br>
<br>
Jorge Pinho<br>
<div class="im"><br>
Jorge Pinho<br>
Analyst/Developer<br>
Network Platforms and Multimedia Solutions<br>
Multimedia Division<br>
________________________________________<br>
From: Bogdan-Andrei Iancu [<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>]<br>
</div>Sent: 12 December 2012 12:27<br>
<div class="HOEnZb"><div class="h5">To: Jorge Henrique Pinho<br>
Cc: OpenSIPS users mailling list<br>
Subject: Re: [OpenSIPS-Users] Custom headers b2b!<br>
<br>
Hi Pinho,<br>
<br>
You mean something like for the FROM hdr (see b2bl_from_spec_param):<br>
<a href="http://www.opensips.org/html/docs/modules/1.8.x/b2b_logic.html#id250248" target="_blank">http://www.opensips.org/html/docs/modules/1.8.x/b2b_logic.html#id250248</a><br>
?<br>
<br>
Unfortunately there is nothing like that for the TO hdr.<br>
<br>
Regards,<br>
<br>
Bogdan-Andrei Iancu<br>
OpenSIPS Founder and Developer<br>
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><br>
<br>
<br>
On 12/12/2012 01:51 PM, Jorge Henrique Pinho wrote:<br>
> Hi bogdan,<br>
><br>
> Is there a possibility to have a flag in script or code to preserve the To header uri using b2b.<br>
><br>
> Kind regards,<br>
><br>
> Jorge Pinho<br>
> Analyst/Developer<br>
> Network Platforms and Multimedia Solutions<br>
> Multimedia Division<br>
> ________________________________________<br>
> From: Bogdan-Andrei Iancu [<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>]<br>
> Sent: 11 December 2012 10:16<br>
> To: Jorge Henrique Pinho<br>
> Cc: OpenSIPS users mailling list<br>
> Subject: Re: [OpenSIPS-Users] Custom headers b2b!<br>
><br>
> Hi Jorge,<br>
><br>
> You cannot preserve the TO hdr, as TO is generated by the B2B (as a<br>
> element of the new dialog).<br>
><br>
> Also the UA is added by OpenSIPs automatically, to all locally generated<br>
> requests. You many try to propagate the received UA, but in this case<br>
> you need to stop opensips in generating its UA hdr, by disabling the<br>
> server_signature (see <a href="http://www.opensips.org/Resources/DocsCoreFcn18#toc73" target="_blank">http://www.opensips.org/Resources/DocsCoreFcn18#toc73</a>)<br>
><br>
> Regards,<br>
><br>
> Bogdan-Andrei Iancu<br>
> OpenSIPS Founder and Developer<br>
> <a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><br>
><br>
><br>
> On 12/11/2012 11:58 AM, Jorge Henrique Pinho wrote:<br>
>> Hi bogdan,<br>
>> I want to preserve the 'To' header and the 'User-Agent' header.<br>
>><br>
>> Jorge Pinho<br>
>> Analyst/Developer<br>
>> Network Platforms and Multimedia Solutions<br>
>> Multimedia Division<br>
>> ________________________________________<br>
>> From: Bogdan-Andrei Iancu [<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>]<br>
>> Sent: 10 December 2012 18:40<br>
>> To: OpenSIPS users mailling list<br>
>> Cc: Jorge Henrique Pinho<br>
>> Subject: Re: [OpenSIPS-Users] Custom headers b2b!<br>
>><br>
>> Hi Jorge,<br>
>><br>
>> What are the headers you want to preserve ? (as you cannot put there any<br>
>> kind of hdr)<br>
>><br>
>> Regards,<br>
>><br>
>> Bogdan-Andrei Iancu<br>
>> OpenSIPS Founder and Developer<br>
>> <a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><br>
>><br>
>><br>
>> On 12/05/2012 07:54 PM, Jorge Henrique Pinho wrote:<br>
>>> Hi, I am using opensips-1.7.2 with b2b.<br>
>>> When i set the custom_headers parameter with the headers that i want to preserve, this headers appear repeated with different values in the message generated by b2b.<br>
>>> Is this the correct behavior, or is there a fix for this problem?<br>
>>><br>
>>> Best regards<br>
>>><br>
>>> Jorge<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>
>> ><br>
<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>