[Kamailio-Users] lcr module creating extra branch

Iñaki Baz Castillo ibc at aliax.net
Thu Apr 8 22:35:11 CEST 2010


2010/4/8 Juha Heinanen <jh at tutpro.com>:
> Jon Bonilla (Manwe) writes:
>
>  > I have xloged $du and $ru just after next_gw() call and also in branch_route:
>  >
>  > Afer next_gw ----
>  > ru=sip:58658765876587685 at 77.77.77.77
>  > du=sip:91.121.117.27:5080
>  >
>  > Branch ----
>  > ru=sip:58658765876587685 at 77.77.77.77
>  > du=sip:91.121.117.27:5080
>  >
>  > Branch ----
>  > ru=sip:58658765876587685 at sindominio.net
>  > du=sip:58658765876587685 at sindominio.net
>
> it is all ok after next_gw() call.  try to figure out why do you enter
> branch route two times.  you should be there only once (the first one).

Hi, IMHO it's not ok after netx_gw(). Note that the incomig INVITE is:

  INVITE sip:4644235465675757 at 77.77.77.77


When hostname is "sindominio.org" then after t_relay() ru ad du should
look like:

  ru  = sip:4644235465675757 at sindominio.org
  du = sip:91.121.117.27:5080

but they are:

  ru = sip:58658765876587685 at 77.77.77.77
  du = sip:91.121.117.27:5080

(note that the ruri domain has not been changed !!!).


Setting "hostname" to NULL in gw table then after t_realy ru and du should be:

  ru  = sip:4644235465675757 at 91.121.117.27:5080
  du = <null>

but they are:

  ru = sip:58658765876587685 at 77.77.77.77
  du = <null>


It's obviously wrong. Not sure why two branches are generated, but the
values of ru and du after t_realy don't look correct for me.

Regards.


-- 
Iñaki Baz Castillo
<ibc at aliax.net>




More information about the sr-users mailing list