[OpenSIPS-Users] Custom headers b2b!
bogdan at opensips.org
Wed Dec 12 15:26:17 CET 2012
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.
Sent from Samsung MobileNick Altmann <nick.altmann at gmail.com> wrote:In main route:
$var(orig-to) = $hdr(To);
In local route:
append_hf("To: $var(orig-to)\r\n", "From");
2012/12/12 Jorge Henrique Pinho <jorge-h-pinho at ext.ptinovacao.pt>
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.
Network Platforms and Multimedia Solutions
From: Bogdan-Andrei Iancu [bogdan at opensips.org]
Sent: 12 December 2012 12:27
To: Jorge Henrique Pinho
Cc: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Custom headers b2b!
You mean something like for the FROM hdr (see b2bl_from_spec_param):
Unfortunately there is nothing like that for the TO hdr.
OpenSIPS Founder and Developer
On 12/12/2012 01:51 PM, Jorge Henrique Pinho wrote:
> Hi bogdan,
> Is there a possibility to have a flag in script or code to preserve the To header uri using b2b.
> Kind regards,
> Jorge Pinho
> Network Platforms and Multimedia Solutions
> Multimedia Division
> From: Bogdan-Andrei Iancu [bogdan at opensips.org]
> Sent: 11 December 2012 10:16
> To: Jorge Henrique Pinho
> Cc: OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] Custom headers b2b!
> Hi Jorge,
> You cannot preserve the TO hdr, as TO is generated by the B2B (as a
> element of the new dialog).
> Also the UA is added by OpenSIPs automatically, to all locally generated
> requests. You many try to propagate the received UA, but in this case
> you need to stop opensips in generating its UA hdr, by disabling the
> server_signature (see http://www.opensips.org/Resources/DocsCoreFcn18#toc73)
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> On 12/11/2012 11:58 AM, Jorge Henrique Pinho wrote:
>> Hi bogdan,
>> I want to preserve the 'To' header and the 'User-Agent' header.
>> Jorge Pinho
>> Network Platforms and Multimedia Solutions
>> Multimedia Division
>> From: Bogdan-Andrei Iancu [bogdan at opensips.org]
>> Sent: 10 December 2012 18:40
>> To: OpenSIPS users mailling list
>> Cc: Jorge Henrique Pinho
>> Subject: Re: [OpenSIPS-Users] Custom headers b2b!
>> Hi Jorge,
>> What are the headers you want to preserve ? (as you cannot put there any
>> kind of hdr)
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer
>> On 12/05/2012 07:54 PM, Jorge Henrique Pinho wrote:
>>> Hi, I am using opensips-1.7.2 with b2b.
>>> 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.
>>> Is this the correct behavior, or is there a fix for this problem?
>>> Best regards
>>> Users mailing list
>>> Users at lists.opensips.org
Users mailing list
Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users