[OpenSIPS-Users] Custom headers b2b!

Jorge Henrique Pinho jorge-h-pinho at ext.ptinovacao.pt
Wed Dec 12 14:48:26 CET 2012


Hi nick,
I cannot do this, it leads to unexpected behaviour by opensips.
http://opensips-open-sip-server.1449251.n2.nabble.com/Opensips-don-t-send-Cancel-td7583117.html

Is there a possibility in the script or code to preserver the sip uri in the To header, when a new message is generated by b2b?

Jorge Pinho
Analyst/Developer
Network Platforms and Multimedia Solutions
Multimedia Division
________________________________________
From: users-bounces at lists.opensips.org [users-bounces at lists.opensips.org] On Behalf Of Nick Altmann [nick.altmann at gmail.com]
Sent: 12 December 2012 13:12
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Custom headers b2b!

In main route:
$var(orig-to) = $hdr(To);
b2b_init_request("top hiding");

In local route:
remove_hf("To");
append_hf("To: $var(orig-to)\r\n", "From");

--
Nick



2012/12/12 Jorge Henrique Pinho <jorge-h-pinho at ext.ptinovacao.pt<mailto:jorge-h-pinho at ext.ptinovacao.pt>>
Hi,
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.

Best regards,

Jorge Pinho

Jorge Pinho
Analyst/Developer
Network Platforms and Multimedia Solutions
Multimedia Division
________________________________________
From: Bogdan-Andrei Iancu [bogdan at opensips.org<mailto: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!

Hi Pinho,

You mean something like for the FROM hdr (see b2bl_from_spec_param):
     http://www.opensips.org/html/docs/modules/1.8.x/b2b_logic.html#id250248
?

Unfortunately there is nothing like that for the TO hdr.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


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
> Analyst/Developer
> Network Platforms and Multimedia Solutions
> Multimedia Division
> ________________________________________
> From: Bogdan-Andrei Iancu [bogdan at opensips.org<mailto: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)
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
>
> 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
>> Analyst/Developer
>> Network Platforms and Multimedia Solutions
>> Multimedia Division
>> ________________________________________
>> From: Bogdan-Andrei Iancu [bogdan at opensips.org<mailto: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)
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer
>> http://www.opensips-solutions.com
>>
>>
>> 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
>>>
>>> Jorge
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org<mailto:Users at lists.opensips.org>
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> >

_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list