Looking closer at the trace, at 192.168.3.97 seems to be a 4.0.4 ...

Can you run at least 4.3.x? Because there are commands to see the details of the listen sockets with kamcmd, which will display the advertised address and by that you can ensure the right configuration is been used.

Cheers,
Daniel

On 01/06/16 09:16, Sébastien Brice wrote:
Hi i am using Kamailio 4.1.x for centos


----- Mail original -----
De: "Daniel-Constantin Mierla" <miconda@gmail.com>
À: "Sébastien Brice" <sebastien.brice@jvs.fr>
Cc: "sr-users" <sr-users@lists.sip-router.org>
Envoyé: Mercredi 1 Juin 2016 09:05:35
Objet: Re: [SR-Users] advertise xxx.xxx.xxx.xxx:5060 is weird

Hello,


On 30/05/16 20:24, Sébastien Brice wrote:
Hi Daniel,
of course please find the capture attached.
192.168.3.97 is the local proxy, i want to have it behaves like and edge router, handling incoming and outgoing traffic.
192.168.3.19 (401@) is an user agent and 192.168.3.33 (405@) another user agent.
trying to invite 401 from 405 triggers a behavior i like (RTP and signalling follow same path upstream to the public kamailio)
but it bypass 192.168.3.97, a case i want to avoid.
I see the IP 192.168.3.97 in the Via and Record-Route, so no advertised
address is in place there.

What version of kamailio are you running?

Cheers,
Daniel
thanks your for giving of your time.

Seb

----- Mail original -----
De: "Daniel-Constantin Mierla" <miconda@gmail.com>
À: "Sébastien Brice" <sebastien.brice@jvs.fr>, "sr-users" <sr-users@lists.sip-router.org>
Envoyé: Lundi 30 Mai 2016 11:17:08
Objet: Re: [SR-Users] advertise xxx.xxx.xxx.xxx:5060 is weird

Hello,

can you share the pcap with sip signaling for such case?

It will help to see where the packets are sent and what the headers are
including, making it possible to identify what can be done in the config
in order to fix it.

Cheers,
Daniel


On 29/05/16 23:33, Sébastien Brice wrote:
Hi guys,
I have a local proxy running on private ip 192.168.3.97 and advertising the wan ip of my box (THEPUBLICIPOFMYBOX)
this local Kamailio is a stateful proxy that TM REGISTERS and INVITES to a Kamailio registrar(PUBLICIPKAMAILIOREGISTRAR)

(please have a look at the kamailio.cfg attached to this email.)

I want to force the signalling and sessions through this local proxy (some kind of outbound proxy) 
I have jitsi and xlite behind (ip 192.168.3.39 and 192.168.3.16) that tries to call themselves.

user agents keep retransmitting 200 OK because they never get the ACK following the 200 OK pickup.
If i remove the advertise THEPUBLICIPOFMYBOX of the kamailio.cfg the three handshake is working ok and the call is no longer dropped after a few second!

i have a true bidirectionnal session and that's working ok.

The bad thing is RTP flows straight through router (thanks to rtpproxy i guess) but i want incoming and outgoing RTP traffic to go on central local node 192.168.3.97

How can i achieve that?

thanks. 

PS: i am not using path header because i am not skilled enough  and kamailio is really hard horse to train


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

    

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda