[Devel] ERROR:forward_request: unable to compute branch

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Mar 5 16:36:58 CET 2007


Hi,

the request is bogus as the VIA hdr has no branch param which is 
mandatory. In stateless routing, the branch param for the next VIA is 
build based on the previous VIA, so this trigger the error you got.

regards,
bogdan

Gaurav Kulshreshtha wrote:
> Here is the packet coming into OpenSER that causes the problem:
>
> REGISTER sip:abc.com SIP/2.0
> Call-ID: 526bba62d-8d1df06-6d474-ac101d48 at abc.com
> From: Lab1<sip:7034850210 at abc.com>;tag=41784-1602
> To: Lab1<sip:7034850210 at abc.com>
> CSeq: 13707 REGISTER
> Via: SIP/2.0/UDP 172.16.9.132:5060
> Contact: sip:7034850210 at 172.16.9.132:5060
> Max-Forwards: 70
> Expires: 53
> Supported: timer,replaces
> Allow: REFER, UPDATE, INFO, OPTIONS, ACK, INVITE, BYE, CANCEL, NOTIFY
> Content-Length: 0
>
> Thanks
> Gaurav
>
>
> Bogdan-Andrei Iancu wrote:
>   
>> I see....could you post the received request? the error appears only
>> if the request has no VIA at all or there was a parsing error....
>>
>> regards,
>> bogdan
>>
>> Gaurav Kulshreshtha wrote:
>>     
>>> We are making use of forward and the proxy mode is stateless.
>>> Gaurav
>>> Bogdan-Andrei Iancu wrote:
>>>  
>>>       
>>>> Hi,
>>>>
>>>> are you using t_relay or forward()   / stateful or stateless ?
>>>>
>>>> regards,
>>>> bogdan
>>>>
>>>> Gaurav Kulshreshtha wrote:
>>>>    
>>>>         
>>>>> All,
>>>>>  While trying to use openser version 1.2.0 on centos, we have found
>>>>> that
>>>>> /forward_request() /function prints out error
>>>>> *"ERROR:forward_request: unable to compute branch"*
>>>>> We noticed this in the case of REGISTER message egressing out of
>>>>> OpenSER
>>>>> (using it as a proxy). Unless we are
>>>>> missing something in the big picture, we suspect that the code inside
>>>>> /if (msg->add_to_branch_len == 0)/  should try to compute the branch
>>>>> parameter value (branch_builder()) if one is
>>>>> not found during invokation of get_sl_branch( ).
>>>>> In the whole code base there is only one invokation of branch_builder
>>>>> inside tm modules and we suspect that for case of
>>>>> message ingress'ing.
>>>>>
>>>>> If this is a bug, is there already an open ticket/issue for this ?
>>>>>
>>>>> Thanks
>>>>> Gaurav Kulshrehstha
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Devel mailing list
>>>>> Devel at openser.org
>>>>> http://openser.org/cgi-bin/mailman/listinfo/devel
>>>>>
>>>>>         
>>>>>           
>>>   
>>>       
>
>
>   




More information about the Devel mailing list