[OpenSIPS-Users] Custom headers b2b!

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Dec 12 17:17:41 CET 2012


That will do it, but will be just a particular hack for your case :).

Regards,

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


On 12/12/2012 05:18 PM, Jorge Henrique Pinho wrote:
> Hi bogdan,
> Thank you for your feedback.
> In function create_top_hiding_entities in file logic.c of module b2b_logic, the to_uri is created in function b2b_msg_get_to, if I changed this function to return the original To header uri and not the request uri, will it break b2b logic or have any repercussions in the execution of b2b in future messages.
>
> Best regards,
>
> Jorge Pinho
> Analyst/Developer
> Network Platforms and Multimedia Solutions
> Multimedia Division
> ________________________________________
> From: Bogdan-Andrei Iancu [bogdan at opensips.org]
> Sent: 12 December 2012 15:17
> To: Jorge Henrique Pinho
> Cc: OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] Custom headers b2b!
>
> Right now no, only if we do a similar approach as for FROM hdr ->  that
> means coding.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
>
> On 12/12/2012 02:32 PM, Jorge Henrique Pinho wrote:
>> 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]
>> 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]
>>> 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]
>>>> 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
>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>> >



More information about the Users mailing list