[OpenSIPS-Users] B2B: how to-header is formed?

Nick Altmann nick.altmann at gmail.com
Thu Apr 19 07:52:59 CEST 2012


Core team, what do you think about it?
I can do patch, but I'd like to discuss method to change b2b options.

The first option is to enable/disable transparent authentication.
The second options is to enable/disable from header mangling.

I think it should be flag to b2b_init_request command or separate
command to change options.

--
Nick


2012/4/19 Nick Altmann <nick.altmann at gmail.com>:
> I mean from header, of course, not from tag. :-)
>
> --
> Nick
>
>
> 2012/4/19 Nick Altmann <nick.altmann at gmail.com>:
>> B2B as frontend to multi-domain proxy.
>>
>> It changes from tag and breaks proxy session.
>>
>> I worked around this problem this way:
>>
>> route {
>>   append_hf("Orig-To: $hdr(To)\r\n");
>>   b2b_init_request("top hiding");
>> }
>>
>> local_route {
>>   if (b2b_call) {
>>      remove_hf("To");
>>      append_hf("To: $hdr(Orig-To)\r\n", "From");
>>      remove_hf("Orig-To");
>>   }
>> }
>>
>> But I think it's not good method and b2b should have flag or variable
>> or another method to enable/disable from mangling.
>>
>> --
>> Nick
>>
>>
>> 2012/4/18  <duane.larson at gmail.com>:
>>> I am not apart of the core team but could you explain the topology more and
>>> what parts you have control over?
>>>
>>> On , Nick Altmann <nick.altmann at gmail.com> wrote:
>>>> Core team, where are you?
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Nick
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 2012/4/13 Nick Altmann nick.altmann at gmail.com>:
>>>>
>>>> > The problem that sometimes this behavior of b2b breaks call.
>>>>
>>>> >
>>>>
>>>> > Before b2b - From: client at domain.com
>>>>
>>>> > After b2b - From: client at 8.8.8.8
>>>>
>>>> >
>>>>
>>>> > But if destination is multidomain sip server that behavior breaks call.
>>>>
>>>> > Destination server doesn't understand where to route the call.
>>>>
>>>> >
>>>>
>>>> > --
>>>>
>>>> > Nick
>>>>
>>>> >
>>>>
>>>> >
>>>>
>>>> > 2012/4/13 Nick Altmann nick.altmann at gmail.com>:
>>>>
>>>> >> How b2b_logic forms to-header in "top hiding" scenario?
>>>>
>>>> >>
>>>>
>>>> >> Is it possible to make flag or another method for b2b_init_request to
>>>>
>>>> >> not change to-header by b2b, just pass it through b2b?
>>>>
>>>> >>
>>>>
>>>> >> --
>>>>
>>>> >> Nick
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>>
>>>> Users mailing list
>>>>
>>>> Users at lists.opensips.org
>>>>
>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>



More information about the Users mailing list