<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 30/05/16 20:24, Sébastien Brice
      wrote:<br>
    </div>
    <blockquote
      cite="mid:561686578.12990524.1464632683615.JavaMail.zimbra@jvs.fr"
      type="cite">
      <pre wrap="">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.</pre>
    </blockquote>
    I see the IP 192.168.3.97 in the Via and Record-Route, so no
    advertised address is in place there.<br>
    <br>
    What version of kamailio are you running?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <blockquote
      cite="mid:561686578.12990524.1464632683615.JavaMail.zimbra@jvs.fr"
      type="cite">
      <pre wrap="">

thanks your for giving of your time.

Seb

----- Mail original -----
De: "Daniel-Constantin Mierla" <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a>
À: "Sébastien Brice" <a class="moz-txt-link-rfc2396E" href="mailto:sebastien.brice@jvs.fr"><sebastien.brice@jvs.fr></a>, "sr-users" <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a>
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:
</pre>
      <blockquote type="cite">
        <pre wrap="">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
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <pre wrap="">
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>