<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>That is not wise and safe to do as the dialog will not be consistent. I mean not all messages from the dialog will have your change.</div><div><br></div><div>Regards,</div><div>Bogdan</div><div><br></div><div><br></div><div><div style="font-size:75%;color:#575757">Sent from Samsung Mobile</div></div> <br>Nick Altmann &lt;nick.altmann@gmail.com&gt; wrote:<br><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">&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: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>
&nbsp; &nbsp; &nbsp;<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>
&gt; Hi bogdan,<br>
&gt;<br>
&gt; Is there a possibility to have a flag in script or code to preserve the To header uri using b2b.<br>
&gt;<br>
&gt; Kind regards,<br>
&gt;<br>
&gt; Jorge Pinho<br>
&gt; Analyst/Developer<br>
&gt; Network Platforms and Multimedia Solutions<br>
&gt; Multimedia Division<br>
&gt; ________________________________________<br>
&gt; From: Bogdan-Andrei Iancu [<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>]<br>
&gt; Sent: 11 December 2012 10:16<br>
&gt; To: Jorge Henrique Pinho<br>
&gt; Cc: OpenSIPS users mailling list<br>
&gt; Subject: Re: [OpenSIPS-Users] Custom headers b2b!<br>
&gt;<br>
&gt; Hi Jorge,<br>
&gt;<br>
&gt; You cannot preserve the TO hdr, as TO is generated by the B2B (as a<br>
&gt; element of the new dialog).<br>
&gt;<br>
&gt; Also the UA is added by OpenSIPs automatically, to all locally generated<br>
&gt; requests. You many try to propagate the received UA, but in this case<br>
&gt; you need to stop opensips in generating its UA hdr, by disabling the<br>
&gt; server_signature (see <a href="http://www.opensips.org/Resources/DocsCoreFcn18#toc73" target="_blank">http://www.opensips.org/Resources/DocsCoreFcn18#toc73</a>)<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Bogdan-Andrei Iancu<br>
&gt; OpenSIPS Founder and Developer<br>
&gt; <a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><br>
&gt;<br>
&gt;<br>
&gt; On 12/11/2012 11:58 AM, Jorge Henrique Pinho wrote:<br>
&gt;&gt; Hi bogdan,<br>
&gt;&gt; I want to preserve the 'To' header and the 'User-Agent' header.<br>
&gt;&gt;<br>
&gt;&gt; Jorge Pinho<br>
&gt;&gt; Analyst/Developer<br>
&gt;&gt; Network Platforms and Multimedia Solutions<br>
&gt;&gt; Multimedia Division<br>
&gt;&gt; ________________________________________<br>
&gt;&gt; From: Bogdan-Andrei Iancu [<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>]<br>
&gt;&gt; Sent: 10 December 2012 18:40<br>
&gt;&gt; To: OpenSIPS users mailling list<br>
&gt;&gt; Cc: Jorge Henrique Pinho<br>
&gt;&gt; Subject: Re: [OpenSIPS-Users] Custom headers b2b!<br>
&gt;&gt;<br>
&gt;&gt; Hi Jorge,<br>
&gt;&gt;<br>
&gt;&gt; What are the headers you want to preserve ? (as you cannot put there any<br>
&gt;&gt; kind of hdr)<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt;<br>
&gt;&gt; Bogdan-Andrei Iancu<br>
&gt;&gt; OpenSIPS Founder and Developer<br>
&gt;&gt; <a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 12/05/2012 07:54 PM, Jorge Henrique Pinho wrote:<br>
&gt;&gt;&gt; Hi, I am using opensips-1.7.2 with b2b.<br>
&gt;&gt;&gt; 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>
&gt;&gt;&gt; Is this the correct behavior, or is there a fix for this problem?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Best regards<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Jorge<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Users mailing list<br>
&gt;&gt;&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt;&gt;&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;&gt; &gt;<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>
</body>