[OpenSIPS-Users] How to calculate branch parameter in VIA

Bogdan-Andrei Iancu bogdan at voice-system.ro
Sun Jul 11 10:56:00 CEST 2010


Hi,

VIA branches computed by OpenSIPS (in stateful mode) look like:
       branch=z9hG4bK650c.3e1ac827.1

the part after the MAGIC cookie is the hash ID of the transaction - the 
way it is calculated depends on the syn_brannch TM param.

Regards,
Bogdan

Alireza6918 wrote:
> I don't know how Opensips calculates branch parameter in VIA header field. 
> I know the first 7 characters "z9hG4bK" are magic cookie but don't know
> about the rest. 
> for example in following: 
>
> Via: SIP/2.0/UDP 192.168.10.139;branch=z9hG4bK-2740-1-0..Via: SIP/2.0/UDP
> 192.168.10.206:5060;branch=z9hG4bK-2740-1-0. 
>
> what is the meaning of 2740-1-0 and how does Opensips calculate this?
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro




More information about the Users mailing list