<div dir="ltr">Hi<div><br></div><div>I'm still struggling with this problem. My setup is:</div><div><br></div><div>mobile  ----  sipproviderA   ----  kamailio1  ----- kamailio2 ----- SIP user 20111101</div><div><br></div><div>The SIP user calls the mobile and every thing works fine until the mobile hangup and the sipproviderA sends a BYE to kamailio1. That bye message has to "Route" headers:</div><div><br></div><div><div>Route: <sip:188.166.3.25;lr;nat=yes>.</div><div>Route: <sip:188.226.200.111;lr>.   <---- IP of kamailio1</div></div><div><br></div><div>Kamilio1 just forwards that message to kamailio2 and sends it back to kamailio1. BYE is then never send to the SIP user. I don't know why sipproviderA would send such a message. Maybe it si because I'm sending something strange to sipproviderA when the call is established or maybe sipproviderA is just sending a strange BYE message. Any ideas?</div><div><br></div><div>(I have testet with another SIP provider where everything is working fine)</div><div><br></div><div><br></div><div>I can solve the problem by doing very ugle hack in kamailio1 and I think this can be done better?</div><div><br></div><div>-----<br></div><div><div>dns_query("<a href="http://sip.sipproviderA.com">sip.sipproviderA.com</a>", "sipproviderA");</div><div>if (is_method("BYE") && $si==$dns(sipproviderA =>addr) && search("Route: <sip:188.226.200.111")) {</div><div>        xlog("L_INFO", "MS: RELAY remove double route from $rm si=$dns(sipproviderA =>addr) from ($fu:$sp) to $ru\n");</div><div>        remove_hf_value("Route[-1]");</div><div>}</div></div><div><br></div><div><div>if (!t_relay()) {</div><div>        sl_reply_error();</div><div>}</div></div><div>-----</div><div><br></div><div>I have included an ngrep from kamailio1 below.</div><div><br></div><div>Cheers,</div><div>Martin</div><div><br></div><div><br></div><div>----------</div><div><div>$ ngrep -d eth0 -W byline port 5060    (from kamailio1)</div><div><br></div><div><br></div><div>U <a href="http://188.166.3.25:5060">188.166.3.25:5060</a> -> <a href="http://188.226.200.111:5060">188.226.200.111:5060</a></div><div>INVITE <a href="mailto:sip%3A4526170000@trunk.test.com">sip:4526170000@trunk.test.com</a> SIP/2.0.</div><div>Record-Route: <sip:188.166.3.25;lr=on;nat=yes>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>From: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>To: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>.</div><div>Max-Forwards: 69.</div><div>Contact: "20111101" <sip:20111101@80.71.132.145:20578;transport=udp;registering_acc=188_166_3_25>.</div><div>User-Agent: Jitsi2.8.5426Mac OS X.</div><div>Content-Type: application/sdp.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKf4cd.6e47f27f72a51e0a556d44c52407e608.0.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=20578;received=80.71.132.145;branch=z9hG4bK-333935-69fcd8010ce9974b6339836ce5ffa19a.</div><div>Content-Length: 376.</div><div>.</div><div>v=0.</div><div>o=<a href="http://20111101-jitsi.org">20111101-jitsi.org</a> 0 0 IN IP4 188.166.3.25.</div><div>s=-.</div><div>c=IN IP4 188.166.3.25.</div><div>t=0 0.</div><div>m=audio 13268 RTP/AVP 0 8 101.</div><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:8 PCMA/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=rtcp-xr:voip-metrics.</div><div>a=sendrecv.</div><div>a=rtcp:13269.</div><div>m=video 13300 RTP/AVP 96.</div><div>a=rtpmap:96 H263-1998/90000.</div><div>a=fmtp:96 CUSTOM=1920,1200,2;VGA=2;CIF=1;QCIF=1.</div><div>a=recvonly.</div><div>a=rtcp:13301.</div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060">188.226.200.111:5060</a> -> <a href="http://188.166.3.25:5060">188.166.3.25:5060</a></div><div>SIP/2.0 100 trying -- your call is important to us.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>From: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>To: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKf4cd.6e47f27f72a51e0a556d44c52407e608.0.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=20578;received=80.71.132.145;branch=z9hG4bK-333935-69fcd8010ce9974b6339836ce5ffa19a.</div><div>Server: kamailio (4.2.4 (x86_64/linux)).</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060">188.226.200.111:5060</a> -> <a href="http://77.72.169.128:5060">77.72.169.128:5060</a></div><div>INVITE <a href="http://sip:000014526170000@sip.siptraffic.com:5060">sip:000014526170000@sip.siptraffic.com:5060</a> SIP/2.0.</div><div>Record-Route: <sip:188.226.200.111;lr=on>.</div><div>Record-Route: <sip:188.166.3.25;lr=on;nat=yes>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>From: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>To: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>.</div><div>Max-Forwards: 68.</div><div>Contact: "20111101" <sip:20111101@80.71.132.145:20578;transport=udp;registering_acc=188_166_3_25>.</div><div>User-Agent: Jitsi2.8.5426Mac OS X.</div><div>Content-Type: application/sdp.</div><div>Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bKf4cd.d3de4986b90b75bf9449ec324740d8c1.0.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKf4cd.6e47f27f72a51e0a556d44c52407e608.0.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=20578;received=80.71.132.145;branch=z9hG4bK-333935-69fcd8010ce9974b6339836ce5ffa19a.</div><div>Content-Length: 376.</div><div>.</div><div>v=0.</div><div>o=<a href="http://20111101-jitsi.org">20111101-jitsi.org</a> 0 0 IN IP4 188.166.3.25.</div><div>s=-.</div><div>c=IN IP4 188.166.3.25.</div><div>t=0 0.</div><div>m=audio 13268 RTP/AVP 0 8 101.</div><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:8 PCMA/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=rtcp-xr:voip-metrics.</div><div>a=sendrecv.</div><div>a=rtcp:13269.</div><div>m=video 13300 RTP/AVP 96.</div><div>a=rtpmap:96 H263-1998/90000.</div><div>a=fmtp:96 CUSTOM=1920,1200,2;VGA=2;CIF=1;QCIF=1.</div><div>a=recvonly.</div><div>a=rtcp:13301.</div><div><br></div><div>#</div><div>U <a href="http://77.72.169.128:5060">77.72.169.128:5060</a> -> <a href="http://188.226.200.111:5060">188.226.200.111:5060</a></div><div>SIP/2.0 100 Trying.</div><div>Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bKf4cd.d3de4986b90b75bf9449ec324740d8c1.0.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKf4cd.6e47f27f72a51e0a556d44c52407e608.0.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=20578;received=80.71.132.145;branch=z9hG4bK-333935-69fcd8010ce9974b6339836ce5ffa19a.</div><div>From: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>To: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Record-route: <sip:188.226.200.111;lr>,<sip:188.166.3.25;lr;nat=yes>.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://77.72.169.128:5060">77.72.169.128:5060</a> -> <a href="http://188.226.200.111:5060">188.226.200.111:5060</a></div><div>SIP/2.0 183 Session progress.</div><div>Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bKf4cd.d3de4986b90b75bf9449ec324740d8c1.0.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKf4cd.6e47f27f72a51e0a556d44c52407e608.0.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=20578;received=80.71.132.145;branch=z9hG4bK-333935-69fcd8010ce9974b6339836ce5ffa19a.</div><div>From: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>To: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Record-route: <sip:188.226.200.111;lr>,<sip:188.166.3.25;lr;nat=yes>.</div><div>Content-Type: application/sdp.</div><div>Content-Length: 195.</div><div>.</div><div>v=0.</div><div>o=CARRIER 1430313091 1430313091 IN IP4 62.41.83.53.</div><div>s=SIP Call.</div><div>c=IN IP4 62.41.83.53.</div><div>t=0 0.</div><div>m=audio 9002 RTP/AVP 0 101.</div><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=ptime:20.</div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060">188.226.200.111:5060</a> -> <a href="http://188.166.3.25:5060">188.166.3.25:5060</a></div><div>SIP/2.0 183 Session progress.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKf4cd.6e47f27f72a51e0a556d44c52407e608.0.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=20578;received=80.71.132.145;branch=z9hG4bK-333935-69fcd8010ce9974b6339836ce5ffa19a.</div><div>From: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>To: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Record-route: <sip:188.226.200.111;lr>,<sip:188.166.3.25;lr;nat=yes>.</div><div>Content-Type: application/sdp.</div><div>Content-Length: 195.</div><div>.</div><div>v=0.</div><div>o=CARRIER 1430313091 1430313091 IN IP4 62.41.83.53.</div><div>s=SIP Call.</div><div>c=IN IP4 62.41.83.53.</div><div>t=0 0.</div><div>m=audio 9002 RTP/AVP 0 101.</div><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=ptime:20.</div><div><br></div><div>#</div><div>U <a href="http://77.72.169.128:5060">77.72.169.128:5060</a> -> <a href="http://188.226.200.111:5060">188.226.200.111:5060</a></div><div>SIP/2.0 200 Ok.</div><div>Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bKf4cd.d3de4986b90b75bf9449ec324740d8c1.0.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKf4cd.6e47f27f72a51e0a556d44c52407e608.0.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=20578;received=80.71.132.145;branch=z9hG4bK-333935-69fcd8010ce9974b6339836ce5ffa19a.</div><div>From: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>To: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Record-route: <sip:188.226.200.111;lr>,<sip:188.166.3.25;lr;nat=yes>.</div><div>Content-Type: application/sdp.</div><div>Content-Length: 195.</div><div>.</div><div>v=0.</div><div>o=CARRIER 1430313102 1430313102 IN IP4 62.41.83.53.</div><div>s=SIP Call.</div><div>c=IN IP4 62.41.83.53.</div><div>t=0 0.</div><div>m=audio 9002 RTP/AVP 0 101.</div><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=ptime:20.</div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060">188.226.200.111:5060</a> -> <a href="http://188.166.3.25:5060">188.166.3.25:5060</a></div><div>SIP/2.0 200 Ok.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKf4cd.6e47f27f72a51e0a556d44c52407e608.0.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=20578;received=80.71.132.145;branch=z9hG4bK-333935-69fcd8010ce9974b6339836ce5ffa19a.</div><div>From: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>To: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Record-route: <sip:188.226.200.111;lr>,<sip:188.166.3.25;lr;nat=yes>.</div><div>Content-Type: application/sdp.</div><div>Content-Length: 195.</div><div>.</div><div>v=0.</div><div>o=CARRIER 1430313102 1430313102 IN IP4 62.41.83.53.</div><div>s=SIP Call.</div><div>c=IN IP4 62.41.83.53.</div><div>t=0 0.</div><div>m=audio 9002 RTP/AVP 0 101.</div><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=ptime:20.</div><div><br></div><div>#</div><div>U <a href="http://188.166.3.25:5060">188.166.3.25:5060</a> -> <a href="http://188.226.200.111:5060">188.226.200.111:5060</a></div><div>ACK <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a> SIP/2.0.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 ACK.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKf4cd.f7d715aa12609cd69c14240306531c9c.0.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=20578;received=80.71.132.145;branch=z9hG4bK-333935-e619ba80aa9706d16d736d8d345411f8.</div><div>From: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>To: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>Max-Forwards: 69.</div><div>Route: <sip:188.226.200.111;lr>.</div><div>Contact: "20111101" <sip:20111101@80.71.132.145:20578;transport=udp;registering_acc=188_166_3_25>.</div><div>User-Agent: Jitsi2.8.5426Mac OS X.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060">188.226.200.111:5060</a> -> <a href="http://77.72.169.128:5060">77.72.169.128:5060</a></div><div>ACK <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a> SIP/2.0.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 ACK.</div><div>Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bKf4cd.499fde07c98618e26e3381195f8d0dc6.0.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKf4cd.f7d715aa12609cd69c14240306531c9c.0.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=20578;received=80.71.132.145;branch=z9hG4bK-333935-e619ba80aa9706d16d736d8d345411f8.</div><div>From: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>To: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>Max-Forwards: 68.</div><div>Contact: "20111101" <sip:20111101@80.71.132.145:20578;transport=udp;registering_acc=188_166_3_25>.</div><div>User-Agent: Jitsi2.8.5426Mac OS X.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>-------------> mobile hangup</div><div><br></div><div><br></div><div>#</div><div>U <a href="http://77.72.169.128:5060">77.72.169.128:5060</a> -> <a href="http://188.226.200.111:5060">188.226.200.111:5060</a></div><div>BYE sip:20111101@80.71.132.145:20578;transport=udp;registering_acc=188_166_3_25 SIP/2.0.</div><div>Via: SIP/2.0/UDP 77.72.169.128:5060;branch=z9hG4bKf4cd.d3de4986b90b75bf9449ec324740d8c1.0.</div><div>From: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>To: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 1 BYE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Max-Forwards: 70.</div><div>Route: <sip:188.166.3.25;lr;nat=yes>.</div><div>Route: <sip:188.226.200.111;lr>.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060">188.226.200.111:5060</a> -> <a href="http://188.166.3.25:5060">188.166.3.25:5060</a></div><div>BYE sip:20111101@80.71.132.145:20578;transport=udp;registering_acc=188_166_3_25 SIP/2.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bK25cd.9061966270be463b49b821a0fe0e52e2.0.</div><div>Via: SIP/2.0/UDP 77.72.169.128:5060;branch=z9hG4bKf4cd.d3de4986b90b75bf9449ec324740d8c1.0.</div><div>From: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>To: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 1 BYE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Max-Forwards: 69.</div><div>Route: <sip:188.166.3.25;lr;nat=yes>.</div><div>Route: <sip:188.226.200.111;lr>.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.166.3.25:5060">188.166.3.25:5060</a> -> <a href="http://188.226.200.111:5060">188.226.200.111:5060</a></div><div>BYE sip:20111101@80.71.132.145:20578;transport=udp;registering_acc=188_166_3_25 SIP/2.0.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bK25cd.0d0182e8ec6af3861b81fb66c2c53fed.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;rport=5060;branch=z9hG4bK25cd.9061966270be463b49b821a0fe0e52e2.0.</div><div>Via: SIP/2.0/UDP 77.72.169.128:5060;branch=z9hG4bKf4cd.d3de4986b90b75bf9449ec324740d8c1.0.</div><div>From: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>To: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 1 BYE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Max-Forwards: 68.</div><div>Route: <sip:188.226.200.111;lr>.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060">188.226.200.111:5060</a> -> <a href="http://80.71.132.145:20578">80.71.132.145:20578</a></div><div>BYE sip:20111101@80.71.132.145:20578;transport=udp;registering_acc=188_166_3_25 SIP/2.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bK25cd.225265ec743545685dd849cc3e0153b9.0.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bK25cd.0d0182e8ec6af3861b81fb66c2c53fed.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;rport=5060;branch=z9hG4bK25cd.9061966270be463b49b821a0fe0e52e2.0.</div><div>Via: SIP/2.0/UDP 77.72.169.128:5060;branch=z9hG4bKf4cd.d3de4986b90b75bf9449ec324740d8c1.0.</div><div>From: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>To: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 1 BYE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Max-Forwards: 67.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.166.3.25:5060">188.166.3.25:5060</a> -> <a href="http://188.226.200.111:5060">188.226.200.111:5060</a></div><div>BYE sip:20111101@80.71.132.145:20578;transport=udp;registering_acc=188_166_3_25 SIP/2.0.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bK25cd.0d0182e8ec6af3861b81fb66c2c53fed.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;rport=5060;branch=z9hG4bK25cd.9061966270be463b49b821a0fe0e52e2.0.</div><div>Via: SIP/2.0/UDP 77.72.169.128:5060;branch=z9hG4bKf4cd.d3de4986b90b75bf9449ec324740d8c1.0.</div><div>From: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>To: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 1 BYE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Max-Forwards: 68.</div><div>Route: <sip:188.226.200.111;lr>.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060">188.226.200.111:5060</a> -> <a href="http://188.166.3.25:5060">188.166.3.25:5060</a></div><div>BYE sip:20111101@80.71.132.145:20578;transport=udp;registering_acc=188_166_3_25 SIP/2.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bK25cd.9061966270be463b49b821a0fe0e52e2.0.</div><div>Via: SIP/2.0/UDP 77.72.169.128:5060;branch=z9hG4bKf4cd.d3de4986b90b75bf9449ec324740d8c1.0.</div><div>From: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>To: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 1 BYE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Max-Forwards: 69.</div><div>Route: <sip:188.166.3.25;lr;nat=yes>.</div><div>Route: <sip:188.226.200.111;lr>.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060">188.226.200.111:5060</a> -> <a href="http://80.71.132.145:20578">80.71.132.145:20578</a></div><div>BYE sip:20111101@80.71.132.145:20578;transport=udp;registering_acc=188_166_3_25 SIP/2.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bK25cd.225265ec743545685dd849cc3e0153b9.0.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bK25cd.0d0182e8ec6af3861b81fb66c2c53fed.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;rport=5060;branch=z9hG4bK25cd.9061966270be463b49b821a0fe0e52e2.0.</div><div>Via: SIP/2.0/UDP 77.72.169.128:5060;branch=z9hG4bKf4cd.d3de4986b90b75bf9449ec324740d8c1.0.</div><div>From: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>To: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 1 BYE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Max-Forwards: 67.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.166.3.25:5060">188.166.3.25:5060</a> -> <a href="http://188.226.200.111:5060">188.226.200.111:5060</a></div><div>BYE sip:20111101@80.71.132.145:20578;transport=udp;registering_acc=188_166_3_25 SIP/2.0.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bK25cd.0d0182e8ec6af3861b81fb66c2c53fed.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;rport=5060;branch=z9hG4bK25cd.9061966270be463b49b821a0fe0e52e2.0.</div><div>Via: SIP/2.0/UDP 77.72.169.128:5060;branch=z9hG4bKf4cd.d3de4986b90b75bf9449ec324740d8c1.0.</div><div>From: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>To: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 1 BYE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Max-Forwards: 68.</div><div>Route: <sip:188.226.200.111;lr>.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060">188.226.200.111:5060</a> -> <a href="http://188.166.3.25:5060">188.166.3.25:5060</a></div><div>BYE sip:20111101@80.71.132.145:20578;transport=udp;registering_acc=188_166_3_25 SIP/2.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bK25cd.9061966270be463b49b821a0fe0e52e2.0.</div><div>Via: SIP/2.0/UDP 77.72.169.128:5060;branch=z9hG4bKf4cd.d3de4986b90b75bf9449ec324740d8c1.0.</div><div>From: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>To: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 1 BYE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Max-Forwards: 69.</div><div>Route: <sip:188.166.3.25;lr;nat=yes>.</div><div>Route: <sip:188.226.200.111;lr>.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060">188.226.200.111:5060</a> -> <a href="http://80.71.132.145:20578">80.71.132.145:20578</a></div><div>BYE sip:20111101@80.71.132.145:20578;transport=udp;registering_acc=188_166_3_25 SIP/2.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bK25cd.225265ec743545685dd849cc3e0153b9.0.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bK25cd.0d0182e8ec6af3861b81fb66c2c53fed.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;rport=5060;branch=z9hG4bK25cd.9061966270be463b49b821a0fe0e52e2.0.</div><div>Via: SIP/2.0/UDP 77.72.169.128:5060;branch=z9hG4bKf4cd.d3de4986b90b75bf9449ec324740d8c1.0.</div><div>From: <<a href="mailto:sip%3A4526170000@188.166.3.25">sip:4526170000@188.166.3.25</a>>;tag=10313ac553de79dc3406.</div><div>To: "20111101" <<a href="mailto:sip%3A20111101@188.166.3.25">sip:20111101@188.166.3.25</a>>;tag=3fefe0a8.</div><div>Contact: <a href="http://sip:4526170000@77.72.169.128:5060">sip:4526170000@77.72.169.128:5060</a>.</div><div>Call-ID: 0d190b50e45cf14206a715e69f4e3910@0:0:0:0:0:0:0:0.</div><div>CSeq: 1 BYE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Max-Forwards: 67.</div><div>Content-Length: 0.</div></div><div>----------</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Med venlig hilsen<br>Martin Schiøtz</div></div>
<br><div class="gmail_quote">On Fri, Apr 24, 2015 at 2:44 AM, Martin Schiøtz <span dir="ltr"><<a href="mailto:malinux@gmail.com" target="_blank">malinux@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Arhhh, I see the problem now in the BYE message send to <span style="font-size:13px">188.166.3.25.<br></span><div><span style="font-size:13px">188.166.3.25 will the send it back to </span><span style="font-size:13px">188.226.200.111</span><span class=""><div><br></div><div><div style="font-size:13px">Route: <sip:188.166.3.25;lr;nat=yes>.</div><div style="font-size:13px">Route: <sip:188.226.200.111;lr;nat=yes>.</div></div><div style="font-size:13px"><br></div></span><div style="font-size:13px">Actually 188.226.200.111 is an upstream kamailio test server but it dosen't remove "Route: <sip:188.226.200.111;lr;nat=yes>" (route to itself).</div><div style="font-size:13px">How can I tell it remove exactly that route field?</div><div style="font-size:13px"><br></div><div style="font-size:13px">Chers,</div><div style="font-size:13px">Martin</div><div style="font-size:13px"><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div>Med venlig hilsen<span class="HOEnZb"><font color="#888888"><br>Martin Schiøtz</font></span></div></div><div><div class="h5">
<br><div class="gmail_quote">On Fri, Apr 24, 2015 at 12:01 AM, Martin Schiøtz <span dir="ltr"><<a href="mailto:malinux@gmail.com" target="_blank">malinux@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I did try <span style="font-size:13px">rtpengine_manage()</span> but rtpengine still saves 10.0.0.100 in redis. I did also try without <span style="font-size:13px">asymmetric with no luck.</span><div><span style="font-size:13px"><br></span></div><div>I changed flags in my <span style="font-size:13px">rtpengine_answer()</span> and <span style="font-size:13px">rtpengine_offer() </span>to "replace-session-connection replace-origin" that saved the public ip correctly and forwarded SDP correctly. The call is now established </div><div><br></div><div>Now I have problem when the remote user B-end hangs up. Why would kamailio 188.166.3.25 just send the BYE message back to 188.226.200.111 instead of sending it to 80.71.132.X A-end behind NAT?</div><div>(the last 4 packeges in the dump)</div><div><br></div><div>The problem must be aroung t_relay() ?</div><div><br></div><div>Cheers,</div><div>Martin</div><div><br></div><div>------</div><div><span><div>route[RELAY] {</div><div>#!ifdef WITH_NAT</div><div>        if (check_route_param("nat=yes")) {</div><div>                setbflag(FLB_NATB);</div><div>        }</div><div>        if (isflagset(FLT_NATS) || isbflagset(FLB_NATB)) {</div><div>                xlog("L_INFO", "MS: RELAY NAT RTPPROXY $rm from $fu:$sp) to $ru\n");</div><div>                route(RTPPROXY);</div><div>        }</div><div>#!endif</div><div><br></div><div>        #if (!isflagset(FLT_NATS) && !isbflagset(FLB_NATB) && is_method("INVITE")) {</div><div>        #       xlog("L_INFO", "MS: RELAY ALWAYS RTPPROXY $rm from $fu:$sp) to $ru\n");</div><div>        #       route(RTPPROXY);</div><div>        #}</div><div><br></div><div>        #rtpengine_manage();</div><div><br></div><div>        /* example how to enable some additional event routes */</div><div>        if (is_method("INVITE")) {</div><div>                #t_on_branch("BRANCH_ONE");</div><div>                t_on_reply("REPLY_ONE");</div><div>                t_on_failure("FAIL_ONE");</div><div>        }</div><div><br></div><div>        if (!t_relay()) {</div></span><div>                xlog("L_INFO", "MS: RELAY !t_relay() $rm from $fu:$sp) to $ru\n");</div><div>                sl_reply_error();</div><div>        }</div><div>        xlog("L_INFO", "MS: RELAY exit $rm from $fu:$sp) to $ru\n");</div><div>        exit;</div><div>}</div></div><div>------<br></div><div><br></div><div><br></div><div>------</div><div><div>U 80.71.132.X:31934 -> <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a></div><div>INVITE <a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a> SIP/2.0.</div><div>Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>From: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <<a href="mailto:sip%3A20111101@188.166.3.25" target="_blank">sip:20111101@188.166.3.25</a>>;tag=2d76288c.</div><div>To: <<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>>.</div><div>Max-Forwards: 70.</div><div>Contact: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <sip:<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>@10.0.0.100:5060;transport=udp;registering_acc=188_166_3_25>.</div><div>User-Agent: Jitsi2.8.5426Mac OS X.</div><div>Content-Type: application/sdp.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84.</div><div>Proxy-Authorization: Digest username="<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>",realm="188.166.3.25",nonce="VTlkW1U5Yy9YrrUTtVeUzvw+xFmEGaYs",uri="<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>",response="ccc55d6c635dcb4d6d1b94b670c89d9d".</div><div>Content-Length: 327.</div><div>.</div><span><div>v=0.</div><div>o=<a href="http://20111101-jitsi.org" target="_blank">20111101-jitsi.org</a> 0 0 IN IP4 10.0.0.100.</div><div>s=-.</div><div>c=IN IP4 10.0.0.100.</div><div>t=0 0.</div></span><div>m=audio 5097 RTP/AVP 8 0 101.</div><div>a=rtpmap:8 PCMA/8000.</div><span><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=extmap:1 urn:ietf:params:rtp-hdrext:csrc-audio-level.</div><div>a=extmap:2 urn:ietf:params:rtp-hdrext:ssrc-audio-level.</div><div>a=rtcp-xr:voip-metrics.</div><div><br></div></span><div>#</div><div>U <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a> -> 80.71.132.X:31934</div><div>SIP/2.0 100 trying -- your call is important to us.</div><div>Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>From: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <<a href="mailto:sip%3A20111101@188.166.3.25" target="_blank">sip:20111101@188.166.3.25</a>>;tag=2d76288c.</div><div>To: <<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>>.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84;rport=31934;received=80.71.132.X.</div><div>Server: kamailio (4.2.4 (x86_64/linux)).</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a> -> <a href="http://188.226.200.111:5060" target="_blank">188.226.200.111:5060</a></div><div>INVITE <a href="mailto:sip%3A4526666600@trunk.worldconnect.dk" target="_blank">sip:4526666600@trunk.worldconnect.dk</a> SIP/2.0.</div><div>Record-Route: <sip:188.166.3.25;lr=on;nat=yes>.</div><div>Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>From: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <<a href="mailto:sip%3A20111101@188.166.3.25" target="_blank">sip:20111101@188.166.3.25</a>>;tag=2d76288c.</div><div>To: <<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>>.</div><div>Max-Forwards: 69.</div><div>Contact: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <sip:<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>@80.71.132.X:31934;transport=udp;registering_acc=188_166_3_25>.</div><div>User-Agent: Jitsi2.8.5426Mac OS X.</div><div>Content-Type: application/sdp.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKa816.083b127267ff147c8a09c9ae30fcb874.0.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=31934;received=80.71.132.X;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84.</div><div>Content-Length: 246.</div><div>.</div><div>v=0.</div><div>o=<a href="http://20111101-jitsi.org" target="_blank">20111101-jitsi.org</a> 0 0 IN IP4 188.166.3.25.</div><div>s=-.</div><div>c=IN IP4 188.166.3.25.</div><div>t=0 0.</div><div>m=audio 13432 RTP/AVP 8 0 101.</div><div>a=rtpmap:8 PCMA/8000.</div><span><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=rtcp-xr:voip-metrics.</div><div>a=sendrecv.</div></span><div>a=rtcp:13433.</div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060" target="_blank">188.226.200.111:5060</a> -> <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a></div><div>SIP/2.0 100 trying -- your call is important to us.</div><div>Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>From: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <<a href="mailto:sip%3A20111101@188.166.3.25" target="_blank">sip:20111101@188.166.3.25</a>>;tag=2d76288c.</div><div>To: <<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>>.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKa816.083b127267ff147c8a09c9ae30fcb874.0;rport=5060.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=31934;received=80.71.132.X;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84.</div><div>Server: kamailio (4.2.4 (x86_64/linux)).</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060" target="_blank">188.226.200.111:5060</a> -> <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a></div><div>SIP/2.0 183 Session progress.</div><div>Via: SIP/2.0/UDP 188.166.3.25;rport=5060;branch=z9hG4bKa816.083b127267ff147c8a09c9ae30fcb874.0.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=31934;received=80.71.132.X;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84.</div><div>From: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <<a href="mailto:sip%3A20111101@188.166.3.25" target="_blank">sip:20111101@188.166.3.25</a>>;tag=2d76288c.</div><div>To: <<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>>;tag=20313ac55080273a8c463.</div><div>Contact: <a href="http://sip:4526666600@77.72.169.128:5060" target="_blank">sip:4526666600@77.72.169.128:5060</a>.</div><div>Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Record-route: <sip:188.226.200.111;lr;nat=yes>,<sip:188.166.3.25;lr;nat=yes>.</div><div>Content-Type: application/sdp.</div><div>Content-Length: 386.</div><div>.</div><div>v=0.</div><div>o=CARRIER 1429824303 1429824303 IN IP4 188.226.200.111.</div><div>s=SIP Call.</div><div>c=IN IP4 188.226.200.111.</div><div>t=0 0.</div><div>m=audio 12864 RTP/AVP 8 101.</div><div>a=rtpmap:8 PCMA/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=ptime:20.</div><div>a=sendrecv.</div><div>a=rtcp:12865.</div><div>a=candidate:sNvfjlaEd7h5acsi 1 UDP 2130706431 188.226.200.111 12864 typ host.</div><div>a=candidate:sNvfjlaEd7h5acsi 2 UDP 2130706430 188.226.200.111 12865 typ host.</div><div><br></div><div>#</div><div>U <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a> -> 80.71.132.X:31934</div><div>SIP/2.0 183 Session progress.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=31934;received=80.71.132.X;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84.</div><div>From: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <<a href="mailto:sip%3A20111101@188.166.3.25" target="_blank">sip:20111101@188.166.3.25</a>>;tag=2d76288c.</div><div>To: <<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>>;tag=20313ac55080273a8c463.</div><div>Contact: <a href="http://sip:4526666600@77.72.169.128:5060" target="_blank">sip:4526666600@77.72.169.128:5060</a>.</div><div>Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Record-route: <sip:188.226.200.111;lr;nat=yes>,<sip:188.166.3.25;lr;nat=yes>.</div><div>Content-Type: application/sdp.</div><div>Content-Length: 224.</div><div>.</div><div>v=0.</div><div>o=CARRIER 1429824303 1429824303 IN IP4 188.166.3.25.</div><div>s=SIP Call.</div><div>c=IN IP4 188.166.3.25.</div><div>t=0 0.</div><div>m=audio 13454 RTP/AVP 8 101.</div><div>a=rtpmap:8 PCMA/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=ptime:20.</div><div>a=sendrecv.</div><div>a=rtcp:13455.</div><div><br></div><div>#</div><div>U <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a> -> 80.71.132.X:31934</div><div>....</div><div>#</div><div>U <a href="http://188.226.200.111:5060" target="_blank">188.226.200.111:5060</a> -> <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a></div><div>SIP/2.0 200 Ok.</div><div>Via: SIP/2.0/UDP 188.166.3.25;rport=5060;branch=z9hG4bKa816.083b127267ff147c8a09c9ae30fcb874.0.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=31934;received=80.71.132.X;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84.</div><div>From: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <<a href="mailto:sip%3A20111101@188.166.3.25" target="_blank">sip:20111101@188.166.3.25</a>>;tag=2d76288c.</div><div>To: <<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>>;tag=20313ac55080273a8c463.</div><div>Contact: <a href="http://sip:4526666600@77.72.169.128:5060" target="_blank">sip:4526666600@77.72.169.128:5060</a>.</div><div>Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Record-route: <sip:188.226.200.111;lr;nat=yes>,<sip:188.166.3.25;lr;nat=yes>.</div><div>Content-Type: application/sdp.</div><div>Content-Length: 386.</div><div>.</div><div>v=0.</div><div>o=CARRIER 1429824314 1429824314 IN IP4 188.226.200.111.</div><div>s=SIP Call.</div><div>c=IN IP4 188.226.200.111.</div><div>t=0 0.</div><div>m=audio 12864 RTP/AVP 8 101.</div><div>a=rtpmap:8 PCMA/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=ptime:20.</div><div>a=sendrecv.</div><div>a=rtcp:12865.</div><div>a=candidate:sNvfjlaEd7h5acsi 1 UDP 2130706431 188.226.200.111 12864 typ host.</div><div>a=candidate:sNvfjlaEd7h5acsi 2 UDP 2130706430 188.226.200.111 12865 typ host.</div><div><br></div><div>#</div><div>U <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a> -> 80.71.132.X:31934</div><div>SIP/2.0 200 Ok.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=31934;received=80.71.132.X;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84.</div><div>From: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <<a href="mailto:sip%3A20111101@188.166.3.25" target="_blank">sip:20111101@188.166.3.25</a>>;tag=2d76288c.</div><div>To: <<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>>;tag=20313ac55080273a8c463.</div><div>Contact: <a href="http://sip:4526666600@77.72.169.128:5060" target="_blank">sip:4526666600@77.72.169.128:5060</a>.</div><div>Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 INVITE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Record-route: <sip:188.226.200.111;lr;nat=yes>,<sip:188.166.3.25;lr;nat=yes>.</div><div>Content-Type: application/sdp.</div><div>Content-Length: 224.</div><div>.</div><div>v=0.</div><div>o=CARRIER 1429824314 1429824314 IN IP4 188.166.3.25.</div><div>s=SIP Call.</div><div>c=IN IP4 188.166.3.25.</div><div>t=0 0.</div><div>m=audio 13454 RTP/AVP 8 101.</div><div>a=rtpmap:8 PCMA/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=ptime:20.</div><div>a=sendrecv.</div><div>a=rtcp:13455.</div><div><br></div><div>#</div><div>U 80.71.132.X:31934 -> <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a></div><div>ACK <a href="http://sip:4526666600@77.72.169.128:5060" target="_blank">sip:4526666600@77.72.169.128:5060</a> SIP/2.0.</div><div>Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 ACK.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK-393535-25734851e5c67dbd09ec9cf4d795b81e.</div><div>From: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <<a href="mailto:sip%3A20111101@188.166.3.25" target="_blank">sip:20111101@188.166.3.25</a>>;tag=2d76288c.</div><div>To: <<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>>;tag=20313ac55080273a8c463.</div><div>Max-Forwards: 70.</div><div>Route: <sip:188.166.3.25;lr;nat=yes>,<sip:188.226.200.111;lr;nat=yes>.</div><div>Contact: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <sip:<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>@10.0.0.100:5060;transport=udp;registering_acc=188_166_3_25>.</div><div>User-Agent: Jitsi2.8.5426Mac OS X.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a> -> <a href="http://188.226.200.111:5060" target="_blank">188.226.200.111:5060</a></div><div>ACK <a href="http://sip:4526666600@77.72.169.128:5060" target="_blank">sip:4526666600@77.72.169.128:5060</a> SIP/2.0.</div><div>Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.</div><div>CSeq: 2 ACK.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKa816.6d3ec17b79aa6b68203112f50caf5b1a.0.</div><div>Via: SIP/2.0/UDP 10.0.0.100:5060;rport=31934;received=80.71.132.X;branch=z9hG4bK-393535-25734851e5c67dbd09ec9cf4d795b81e.</div><div>From: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <<a href="mailto:sip%3A20111101@188.166.3.25" target="_blank">sip:20111101@188.166.3.25</a>>;tag=2d76288c.</div><div>To: <<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>>;tag=20313ac55080273a8c463.</div><div>Max-Forwards: 69.</div><div>Route: <sip:188.226.200.111;lr;nat=yes>.</div><div>Contact: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <sip:<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>@80.71.132.X:31934;transport=udp;registering_acc=188_166_3_25>.</div><div>User-Agent: Jitsi2.8.5426Mac OS X.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div><br></div><div><br></div><div>--------->>>  remote user hangs up</div><div><br></div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060" target="_blank">188.226.200.111:5060</a> -> <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a></div><div>BYE sip:<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>@80.71.132.X:31934;transport=udp;registering_acc=188_166_3_25 SIP/2.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bKd816.412aface6cc6573fb6f2d579443cf1fe.0.</div><div>Via: SIP/2.0/UDP 77.72.169.128:5060;rport=5060;branch=z9hG4bKa816.dae0d2c4c9faf3eb3df105cb8f083cb8.0.</div><div>From: <<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>>;tag=20313ac55080273a8c463.</div><div>To: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <<a href="mailto:sip%3A20111101@188.166.3.25" target="_blank">sip:20111101@188.166.3.25</a>>;tag=2d76288c.</div><div>Contact: <a href="http://sip:4526666600@77.72.169.128:5060" target="_blank">sip:4526666600@77.72.169.128:5060</a>.</div><div>Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.</div><div>CSeq: 1 BYE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Max-Forwards: 69.</div><div>Route: <sip:188.166.3.25;lr;nat=yes>.</div><div>Route: <sip:188.226.200.111;lr;nat=yes>.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a> -> <a href="http://188.226.200.111:5060" target="_blank">188.226.200.111:5060</a></div><div>BYE sip:<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>@80.71.132.X:31934;transport=udp;registering_acc=188_166_3_25 SIP/2.0.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKd816.82ed60f84de90b0b5231c65e64e52394.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;rport=5060;branch=z9hG4bKd816.412aface6cc6573fb6f2d579443cf1fe.0.</div><div>Via: SIP/2.0/UDP 77.72.169.128:5060;rport=5060;branch=z9hG4bKa816.dae0d2c4c9faf3eb3df105cb8f083cb8.0.</div><div>From: <<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>>;tag=20313ac55080273a8c463.</div><div>To: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <<a href="mailto:sip%3A20111101@188.166.3.25" target="_blank">sip:20111101@188.166.3.25</a>>;tag=2d76288c.</div><div>Contact: <a href="http://sip:4526666600@77.72.169.128:5060" target="_blank">sip:4526666600@77.72.169.128:5060</a>.</div><div>Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.</div><div>CSeq: 1 BYE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Max-Forwards: 68.</div><div>Route: <sip:188.226.200.111;lr;nat=yes>.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.226.200.111:5060" target="_blank">188.226.200.111:5060</a> -> <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a></div><div>BYE sip:<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>@80.71.132.X:31934;transport=udp;registering_acc=188_166_3_25 SIP/2.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bKd816.412aface6cc6573fb6f2d579443cf1fe.0.</div><div>Via: SIP/2.0/UDP 77.72.169.128:5060;rport=5060;branch=z9hG4bKa816.dae0d2c4c9faf3eb3df105cb8f083cb8.0.</div><div>From: <<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>>;tag=20313ac55080273a8c463.</div><div>To: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <<a href="mailto:sip%3A20111101@188.166.3.25" target="_blank">sip:20111101@188.166.3.25</a>>;tag=2d76288c.</div><div>Contact: <a href="http://sip:4526666600@77.72.169.128:5060" target="_blank">sip:4526666600@77.72.169.128:5060</a>.</div><div>Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.</div><div>CSeq: 1 BYE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Max-Forwards: 69.</div><div>Route: <sip:188.166.3.25;lr;nat=yes>.</div><div>Route: <sip:188.226.200.111;lr;nat=yes>.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>#</div><div>U <a href="http://188.166.3.25:5060" target="_blank">188.166.3.25:5060</a> -> <a href="http://188.226.200.111:5060" target="_blank">188.226.200.111:5060</a></div><div>BYE sip:<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>@80.71.132.X:31934;transport=udp;registering_acc=188_166_3_25 SIP/2.0.</div><div>Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKd816.82ed60f84de90b0b5231c65e64e52394.0.</div><div>Via: SIP/2.0/UDP 188.226.200.111;rport=5060;branch=z9hG4bKd816.412aface6cc6573fb6f2d579443cf1fe.0.</div><div>Via: SIP/2.0/UDP 77.72.169.128:5060;rport=5060;branch=z9hG4bKa816.dae0d2c4c9faf3eb3df105cb8f083cb8.0.</div><div>From: <<a href="mailto:sip%3A4526666600@188.166.3.25" target="_blank">sip:4526666600@188.166.3.25</a>>;tag=20313ac55080273a8c463.</div><div>To: "<a href="tel:20111101" value="+4520111101" target="_blank">20111101</a>" <<a href="mailto:sip%3A20111101@188.166.3.25" target="_blank">sip:20111101@188.166.3.25</a>>;tag=2d76288c.</div><div>Contact: <a href="http://sip:4526666600@77.72.169.128:5060" target="_blank">sip:4526666600@77.72.169.128:5060</a>.</div><div>Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.</div><div>CSeq: 1 BYE.</div><div>Server: (Very nice Sip Registrar/Proxy Server).</div><div>Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.</div><div>Max-Forwards: 68.</div><div>Route: <sip:188.226.200.111;lr;nat=yes>.</div><div>Content-Length: 0.</div><div>.</div></div><div>------</div><div><div><div><br></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Thu, Apr 23, 2015 at 10:12 AM, Daniel Tryba <span dir="ltr"><<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Thursday 23 April 2015 01:40:17 Martin Schiøtz wrote:<br>
> I thought that "fix_nated_sdp("2")" would do the job before<br>
> "rtpengine_offer("asymmetric")" but it dosen't have any effect?<br>
<br>
</span>My understanding of the docs is that the asymmetric flag introduces the<br>
problem you are experiencing:<br>
asymmetric - flags that UA from which message is received doesn't support<br>
symmetric RTP. Disables learning of endpoint addresses in the Sipwise<br>
rtpengine proxy.<br>
<br>
Getting rtp_engine to work with the standard kamailio.cfg is to simply add<br>
rtpengine_manage();<br>
at the top of the NATMANAGE route so it will handle all rtp regardless of<br>
source being natted (in your config in the NAT router.<br>
<span><font color="#888888"><br>
--<br>
<br>
Telefoon: 088 0100 700<br>
Sales: <a href="mailto:sales@pocos.nl" target="_blank">sales@pocos.nl</a> | Service: <a href="mailto:servicedesk@pocos.nl" target="_blank">servicedesk@pocos.nl</a><br>
<a href="http://www.pocos.nl/" target="_blank">http://www.pocos.nl/</a> | Croy 9c, 5653 LC Eindhoven | Kamer van Koophandel<br>
17097024<br>
<br>
</font></span></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>