[OpenSIPS-Users] b2b top-hiding problem with custom_headers
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Fri Apr 2 16:20:05 CEST 2010
Hi Jeff,
I increased the number of extra hdrs to 32 - please update from SVN.
Regards,
Bogdan
Jeff Pyle wrote:
> Hi Ancu,
>
> No more problems with the buffer size! Excellent.
>
> P-Asserted-Identity still doesn't make it through even though it's defined in the custom_headers list. Everything else seems to. Any thoughts?
>
> I'm going to need more than 10 headers in the list. But when I try, I see:
> ERROR:b2b_logic:mod_init: Too many extra headers defined. The maximum value is 10 .
>
> Is this an easy adjustment in one of the files? I'll need 20 to be safe.
>
>
> - Jeff
>
>
> On Apr 1, 2010, at 10:35 AM, Anca Vamanu wrote:
>
>
>> Hi Jeff,
>>
>> Jeff Pyle wrote:
>>
>>> I found the BUF_LEN value in the b2b_entities/client.c and b2b_entities/dlg.c value, and increased it from 256 to 512. This seems to have taken care of the errors. I wonder what else I've broken by changing this.
>>>
>>>
>>>
>> That was indeed the right place for the change. No, nothing else gets
>> broken, that macro was only used there.
>> Now I have committed the fix that allocated memory dynamically for the
>> headers, so if you upgrade you will never see this problem.
>>
>>> The header I'm having a problem with is "P-Asserted-Identity", 19 characters long. Shorter ones have no problem. Perhaps there is a maximum length defined somewhere? If so, I couldn't find it. I tried changing HDR_DEFAULT_LEN in b2b_logic/b2b_logic.h from 7 to 14. This caused problems.
>>>
>>>
>> The HDR_DEFAULT_LEN is used for something else - the b2b_logic module
>> had a list of default headers that must be passed from one side to the
>> other, and this macro says how many they are.
>>
>> Regards,
>>
>> --
>> Anca Vamanu
>> www.voice-system.ro
>>
>>
>>
>>
>>> - Jeff
>>>
>>>
>>> On Apr 1, 2010, at 9:57 AM, Jeff Pyle wrote:
>>>
>>>
>>>
>>>> Hello,
>>>>
>>>> During my first adventure into topology hiding it seemed the b2b modules weren't bringing all my custom_headers from one side to the other. During my testing I encountered this problem:
>>>>
>>>> ERROR:b2b_entities:client_new: Buffer too small
>>>> ERROR:b2b_logic:create_top_hiding_entities: failed to create new b2b client instance
>>>> ERROR:b2b_logic:b2b_init_request: failed to create top hinding specific entities
>>>>
>>>> This is a bare-minimum config on Opensips 1.7 build 6748 with permissions, signaling, sl, tm, rr, the two b2b modules, maxfwd and xlog loading.
>>>>
>>>> Any suggestions?
>>>>
>>>>
>>>> Thanks,
>>>> Jeff
>>>>
>>>>
>>> _______________________________________________
>>> 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
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Users
mailing list