Re: [Kamailio-Users] lcr module creating extra branch

2010-04-08 Thread Manwe
El Thu, 8 Apr 2010 18:40:33 +0200
Jon Bonilla (Manwe) ma...@aholab.ehu.es escribió:

 Hi
 

Forgot to comment:

The correct behaviour should be just one INVITE like

U 2010/04/08 17:51:09.614055 77.77.77.77:5060 - 91.121.117.27:5080
INVITE sip:+4644235465675...@sindominio.net SIP/2.0'


right?


If hostname is not NULL, Request-URI is rewritten based on gateway's URI scheme
and hostname, and destination URI is set based on gateway's URI scheme, IP
address, port, and transport protocol. Upon subsequent calls, the same is done,
but instead of rewriting Request URI, a new branch is added.

http://kamailio.org/docs/modules/3.0.x/modules/lcr.html#id3088147

___
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

Re: [Kamailio-Users] lcr module creating extra branch

2010-04-08 Thread Manwe
El Thu, 8 Apr 2010 20:11:35 +0300
j...@tutpro.com (Juha Heinanen) escribió:

 jon,
 
 since you have hostname defined, next_gw() function sets r-uri and
 destination uri and t_relay() should relay only based destination uri
 unless you call t_relay() more than once.
 
   No append_branch is executed at all. I have two INVITES IMHO because
   next_gw() function does create the second one.
 
 next_gw() function does not create any invites.  check how your r-uri
 and dst uri look like after next_gw() call.
 
 -- juha


Hi Juha

I have xloged $du and $ru just after next_gw() call and also in branch_route:


Afer next_gw 
ru=sip:58658765876587...@77.77.77.77
du=sip:91.121.117.27:5080 

Branch 
ru=sip:58658765876587...@77.77.77.77
du=sip:91.121.117.27:5080

Branch 
ru=sip:58658765876587...@sindominio.net
du=sip:58658765876587...@sindominio.net


Setting hostname to NULL in gw table I get:

Afer next_gw 
ru=sip:58658765876587...@77.77.77.77
du=null

Branch 
ru=sip:58658765876587...@77.77.77.77
du=sip:58658765876587...@77.77.77.77

Branch 
ru=sip:58658765876587...@91.121.117.27:5080
du=sip:58658765876587...@91.121.117.27:5080

___
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

Re: [Kamailio-Users] lcr module creating extra branch

2010-04-08 Thread Juha Heinanen
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:58658765876587...@77.77.77.77
  du=sip:91.121.117.27:5080 
  
  Branch 
  ru=sip:58658765876587...@77.77.77.77
  du=sip:91.121.117.27:5080
  
  Branch 
  ru=sip:58658765876587...@sindominio.net
  du=sip:58658765876587...@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).

-- juha

___
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users


Re: [Kamailio-Users] lcr module creating extra branch

2010-04-08 Thread Iñaki Baz Castillo
2010/4/8 Juha Heinanen j...@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:58658765876587...@77.77.77.77
   du=sip:91.121.117.27:5080
  
   Branch 
   ru=sip:58658765876587...@77.77.77.77
   du=sip:91.121.117.27:5080
  
   Branch 
   ru=sip:58658765876587...@sindominio.net
   du=sip:58658765876587...@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:4644235465675...@77.77.77.77


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

  ru  = sip:4644235465675...@sindominio.org
  du = sip:91.121.117.27:5080

but they are:

  ru = sip:58658765876587...@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:4644235465675...@91.121.117.27:5080
  du = null

but they are:

  ru = sip:58658765876587...@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
i...@aliax.net

___
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users