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?
Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.
CSeq: 2 INVITE.
Max-Forwards: 70.
Contact: "20111101" <sip:20111101@10.0.0.100:5060;transport=udp;registering_acc=188_166_3_25>.
User-Agent: Jitsi2.8.5426Mac OS X.
Content-Type: application/sdp.
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84.
Proxy-Authorization: Digest username="20111101",realm="188.166.3.25",nonce="VTlkW1U5Yy9YrrUTtVeUzvw+xFmEGaYs",uri="
sip:4526666600@188.166.3.25",response="ccc55d6c635dcb4d6d1b94b670c89d9d".
Content-Length: 327.
.
v=0.
s=-.
c=IN IP4 10.0.0.100.
t=0 0.
m=audio 5097 RTP/AVP 8 0 101.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=extmap:1 urn:ietf:params:rtp-hdrext:csrc-audio-level.
a=extmap:2 urn:ietf:params:rtp-hdrext:ssrc-audio-level.
a=rtcp-xr:voip-metrics.
#
SIP/2.0 100 trying -- your call is important to us.
Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.
CSeq: 2 INVITE.
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84;rport=31934;received=80.71.132.X.
Server: kamailio (4.2.4 (x86_64/linux)).
Content-Length: 0.
.
#
Record-Route: <sip:188.166.3.25;lr=on;nat=yes>.
Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.
CSeq: 2 INVITE.
Max-Forwards: 69.
Contact: "20111101" <sip:20111101@80.71.132.X:31934;transport=udp;registering_acc=188_166_3_25>.
User-Agent: Jitsi2.8.5426Mac OS X.
Content-Type: application/sdp.
Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKa816.083b127267ff147c8a09c9ae30fcb874.0.
Via: SIP/2.0/UDP 10.0.0.100:5060;rport=31934;received=80.71.132.X;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84.
Content-Length: 246.
.
v=0.
s=-.
c=IN IP4 188.166.3.25.
t=0 0.
m=audio 13432 RTP/AVP 8 0 101.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=rtcp-xr:voip-metrics.
a=sendrecv.
a=rtcp:13433.
#
SIP/2.0 100 trying -- your call is important to us.
Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.
CSeq: 2 INVITE.
Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKa816.083b127267ff147c8a09c9ae30fcb874.0;rport=5060.
Via: SIP/2.0/UDP 10.0.0.100:5060;rport=31934;received=80.71.132.X;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84.
Server: kamailio (4.2.4 (x86_64/linux)).
Content-Length: 0.
.
#
SIP/2.0 183 Session progress.
Via: SIP/2.0/UDP 188.166.3.25;rport=5060;branch=z9hG4bKa816.083b127267ff147c8a09c9ae30fcb874.0.
Via: SIP/2.0/UDP 10.0.0.100:5060;rport=31934;received=80.71.132.X;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84.
Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.
CSeq: 2 INVITE.
Server: (Very nice Sip Registrar/Proxy Server).
Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.
Record-route: <sip:188.226.200.111;lr;nat=yes>,<sip:188.166.3.25;lr;nat=yes>.
Content-Type: application/sdp.
Content-Length: 386.
.
v=0.
o=CARRIER 1429824303 1429824303 IN IP4 188.226.200.111.
s=SIP Call.
c=IN IP4 188.226.200.111.
t=0 0.
m=audio 12864 RTP/AVP 8 101.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=ptime:20.
a=sendrecv.
a=rtcp:12865.
a=candidate:sNvfjlaEd7h5acsi 1 UDP 2130706431 188.226.200.111 12864 typ host.
a=candidate:sNvfjlaEd7h5acsi 2 UDP 2130706430 188.226.200.111 12865 typ host.
#
SIP/2.0 183 Session progress.
Via: SIP/2.0/UDP 10.0.0.100:5060;rport=31934;received=80.71.132.X;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84.
Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.
CSeq: 2 INVITE.
Server: (Very nice Sip Registrar/Proxy Server).
Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.
Record-route: <sip:188.226.200.111;lr;nat=yes>,<sip:188.166.3.25;lr;nat=yes>.
Content-Type: application/sdp.
Content-Length: 224.
.
v=0.
o=CARRIER 1429824303 1429824303 IN IP4 188.166.3.25.
s=SIP Call.
c=IN IP4 188.166.3.25.
t=0 0.
m=audio 13454 RTP/AVP 8 101.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=ptime:20.
a=sendrecv.
a=rtcp:13455.
#
....
#
SIP/2.0 200 Ok.
Via: SIP/2.0/UDP 188.166.3.25;rport=5060;branch=z9hG4bKa816.083b127267ff147c8a09c9ae30fcb874.0.
Via: SIP/2.0/UDP 10.0.0.100:5060;rport=31934;received=80.71.132.X;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84.
Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.
CSeq: 2 INVITE.
Server: (Very nice Sip Registrar/Proxy Server).
Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.
Record-route: <sip:188.226.200.111;lr;nat=yes>,<sip:188.166.3.25;lr;nat=yes>.
Content-Type: application/sdp.
Content-Length: 386.
.
v=0.
o=CARRIER 1429824314 1429824314 IN IP4 188.226.200.111.
s=SIP Call.
c=IN IP4 188.226.200.111.
t=0 0.
m=audio 12864 RTP/AVP 8 101.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=ptime:20.
a=sendrecv.
a=rtcp:12865.
a=candidate:sNvfjlaEd7h5acsi 1 UDP 2130706431 188.226.200.111 12864 typ host.
a=candidate:sNvfjlaEd7h5acsi 2 UDP 2130706430 188.226.200.111 12865 typ host.
#
SIP/2.0 200 Ok.
Via: SIP/2.0/UDP 10.0.0.100:5060;rport=31934;received=80.71.132.X;branch=z9hG4bK-393535-db2bbc818477010e12d836bb407d9d84.
Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.
CSeq: 2 INVITE.
Server: (Very nice Sip Registrar/Proxy Server).
Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.
Record-route: <sip:188.226.200.111;lr;nat=yes>,<sip:188.166.3.25;lr;nat=yes>.
Content-Type: application/sdp.
Content-Length: 224.
.
v=0.
o=CARRIER 1429824314 1429824314 IN IP4 188.166.3.25.
s=SIP Call.
c=IN IP4 188.166.3.25.
t=0 0.
m=audio 13454 RTP/AVP 8 101.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=ptime:20.
a=sendrecv.
a=rtcp:13455.
#
Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.
CSeq: 2 ACK.
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK-393535-25734851e5c67dbd09ec9cf4d795b81e.
Max-Forwards: 70.
Route: <sip:188.166.3.25;lr;nat=yes>,<sip:188.226.200.111;lr;nat=yes>.
Contact: "20111101" <sip:20111101@10.0.0.100:5060;transport=udp;registering_acc=188_166_3_25>.
User-Agent: Jitsi2.8.5426Mac OS X.
Content-Length: 0.
.
#
Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.
CSeq: 2 ACK.
Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKa816.6d3ec17b79aa6b68203112f50caf5b1a.0.
Via: SIP/2.0/UDP 10.0.0.100:5060;rport=31934;received=80.71.132.X;branch=z9hG4bK-393535-25734851e5c67dbd09ec9cf4d795b81e.
Max-Forwards: 69.
Route: <sip:188.226.200.111;lr;nat=yes>.
Contact: "20111101" <sip:20111101@80.71.132.X:31934;transport=udp;registering_acc=188_166_3_25>.
User-Agent: Jitsi2.8.5426Mac OS X.
Content-Length: 0.
.
--------->>> remote user hangs up
#
BYE sip:20111101@80.71.132.X:31934;transport=udp;registering_acc=188_166_3_25 SIP/2.0.
Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bKd816.412aface6cc6573fb6f2d579443cf1fe.0.
Via: SIP/2.0/UDP 77.72.169.128:5060;rport=5060;branch=z9hG4bKa816.dae0d2c4c9faf3eb3df105cb8f083cb8.0.
Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.
CSeq: 1 BYE.
Server: (Very nice Sip Registrar/Proxy Server).
Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.
Max-Forwards: 69.
Route: <sip:188.166.3.25;lr;nat=yes>.
Route: <sip:188.226.200.111;lr;nat=yes>.
Content-Length: 0.
.
#
BYE sip:20111101@80.71.132.X:31934;transport=udp;registering_acc=188_166_3_25 SIP/2.0.
Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKd816.82ed60f84de90b0b5231c65e64e52394.0.
Via: SIP/2.0/UDP 188.226.200.111;rport=5060;branch=z9hG4bKd816.412aface6cc6573fb6f2d579443cf1fe.0.
Via: SIP/2.0/UDP 77.72.169.128:5060;rport=5060;branch=z9hG4bKa816.dae0d2c4c9faf3eb3df105cb8f083cb8.0.
Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.
CSeq: 1 BYE.
Server: (Very nice Sip Registrar/Proxy Server).
Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.
Max-Forwards: 68.
Route: <sip:188.226.200.111;lr;nat=yes>.
Content-Length: 0.
.
#
BYE sip:20111101@80.71.132.X:31934;transport=udp;registering_acc=188_166_3_25 SIP/2.0.
Via: SIP/2.0/UDP 188.226.200.111;branch=z9hG4bKd816.412aface6cc6573fb6f2d579443cf1fe.0.
Via: SIP/2.0/UDP 77.72.169.128:5060;rport=5060;branch=z9hG4bKa816.dae0d2c4c9faf3eb3df105cb8f083cb8.0.
Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.
CSeq: 1 BYE.
Server: (Very nice Sip Registrar/Proxy Server).
Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.
Max-Forwards: 69.
Route: <sip:188.166.3.25;lr;nat=yes>.
Route: <sip:188.226.200.111;lr;nat=yes>.
Content-Length: 0.
.
#
BYE sip:20111101@80.71.132.X:31934;transport=udp;registering_acc=188_166_3_25 SIP/2.0.
Via: SIP/2.0/UDP 188.166.3.25;branch=z9hG4bKd816.82ed60f84de90b0b5231c65e64e52394.0.
Via: SIP/2.0/UDP 188.226.200.111;rport=5060;branch=z9hG4bKd816.412aface6cc6573fb6f2d579443cf1fe.0.
Via: SIP/2.0/UDP 77.72.169.128:5060;rport=5060;branch=z9hG4bKa816.dae0d2c4c9faf3eb3df105cb8f083cb8.0.
Call-ID: f2d3bcbe62094af688e506d641589455@0:0:0:0:0:0:0:0.
CSeq: 1 BYE.
Server: (Very nice Sip Registrar/Proxy Server).
Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE.
Max-Forwards: 68.
Route: <sip:188.226.200.111;lr;nat=yes>.
Content-Length: 0.
.