I am having a problem with some inbound calls that all have the below behavior.
My setup has: Carrier(UDP) -> (UDP)Kamailio1(UDP) -> (UDP)Kamailio2(TLS) -> (TLS)UAC
Kamailio1 has Topos Module. UAC is behind NAT with LAN IP 192.168.1.105 and Public 200.200.200.30
Carrier IP 50.50.50.19, Kamailio1 IP 100.100.100.243, Kamailio2 IP 100.100.100.210
The Carrier sends in a new call and the call is answered from the UAC with 200 OK SDP.
Carrier sends ACK and it looks like it reaches the UAC but, UAC still resends several times 200 OK and carrier sends server ACK that arrives or not ??? to UAC until finally UAC sends a BYE.
On the SIP flow you can see that Kamailio2 sends the ACK to 192.168.1.105 and not to 200.200.200.30. Is this ok??
Another thing to mention is that Kamailio2 that has the UAC connected via TLS, can be used fine from the UAC to make an outbound call following the reverse path, but on the inbound we have the below.
|Time | 50.50.50.19 | 100.100.100.210 | 192.168.1.105 |
| | | 100.100.100.243 | | 200.200.200.30 |
|0.000000 | INVITE SDP (g711A te | | | |SIP INVITE From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone>
Call-ID:isbcaqhye0rozjgeghorzav1vtytoqztkheq@B.5.108.ims.incarrier.gr CSeq:1
| |(5060) ------------------> (5060) | | | |
|0.001737 | 100 trying -- your c | | | |SIP Status 100 trying -- your call is important to us
| |(5060) <------------------ (5060) | | | |
|0.074622 | | INVITE SDP (g711A te | | |SIP INVITE From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|0.074797 | | INVITE SDP (g711A te | | |SIP INVITE From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|0.081110 | | 100 trying -- your c | | |SIP Status 100 trying -- your call is important to us
| | |(5060) <------------------ (5060) | | |
|0.082070 | | 100 trying -- your c | | |SIP Status 100 trying -- your call is important to us
| | |(5060) <------------------ (5060) | | |
|0.082833 | | | INVITE SDP (g711A te | |SIP INVITE From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | | |(5061) ------------------> (37275) | |
|0.163871 | | | 100 Trying| | |SIP Status 100 Trying
| | | |(5061) <------------------ (37275) | |
|0.447621 | | | 180 Ringing | |SIP Status 180 Ringing
| | | |(5061) <------------------ (37275) | |
|0.448004 | | 180 Ringing | | |SIP Status 180 Ringing
| | |(5060) <------------------ (5060) | | |
|0.448765 | | 180 Ringing | | |SIP Status 180 Ringing
| | |(5060) <------------------ (5060) | | |
|0.465033 | 180 Ringing | | | |SIP Status 180 Ringing
| |(5060) <------------------ (5060) | | | |
|2.529599 | | | 200 OK SDP (g711A) | |SIP Status 200 OK
| | | |(5061) <------------------ (37275) | |
|2.733556 | | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|2.734596 | | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|2.864311 | 200 OK SDP (g711A) | | | |SIP Status 200 OK
| |(5060) <------------------ (5060) | | | |
|3.024789 | | | 200 OK SDP (g711A) | |SIP Status 200 OK
| | | |(5061) <------------------ (37275) | |
|3.025005 | | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|3.025854 | | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|3.034979 | 200 OK SDP (g711A) | | | |SIP Status 200 OK
| |(5060) <------------------ (5060) | | | |
|3.106784 | ACK | | | | |SIP Request INVITE ACK 200 CSeq:1
| |(5060) ------------------> (5060) | | | |
|3.126287 | | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|3.126542 | | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|3.145821 | | | ACK | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | | |(5061) --------------------------------------> (5061) |
|4.025449 | | | 200 OK SDP (g711A) | |SIP Status 200 OK
| | | |(5061) <------------------ (37275) | |
|4.025743 | | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|4.026548 | | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|4.033198 | 200 OK SDP (g711A) | | | |SIP Status 200 OK
| |(5060) <------------------ (5060) | | | |
|4.094832 | ACK | | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| |(5060) ------------------> (5060) | | | |
|4.102992 | | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|4.103316 | | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|4.106301 | | | ACK | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | | |(5061) --------------------------------------> (5061) |
|6.025167 | | | 200 OK SDP (g711A) | |SIP Status 200 OK
| | | |(5061) <------------------ (37275) | |
|6.025543 | | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|6.026377 | | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|6.034778 | 200 OK SDP (g711A) | | | |SIP Status 200 OK
| |(5060) <------------------ (5060) | | | |
|6.096896 | ACK | | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| |(5060) ------------------> (5060) | | | |
|6.104675 | | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|6.104910 | | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|6.108907 | | | ACK | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | | |(5061) --------------------------------------> (5061) |
|10.024538| | | 200 OK SDP (g711A) | |SIP Status 200 OK
| | | |(5061) <------------------ (37275) | |
|10.024866| | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|10.025750| | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|10.033461| 200 OK SDP (g711A) | | | |SIP Status 200 OK
| |(5060) <------------------ (5060) | | | |
|10.095387| ACK | | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| |(5060) ------------------> (5060) | | | |
|10.102265| | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|10.102449| | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|10.105760| | | ACK | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | | |(5061) --------------------------------------> (5061) |
|14.025310| | | 200 OK SDP (g711A) | |SIP Status 200 OK
| | | |(5061) <------------------ (37275) | |
|14.025585| | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|14.026528| | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|14.037027| 200 OK SDP (g711A) | | | |SIP Status 200 OK
| |(5060) <------------------ (5060) | | | |
|14.099479| ACK | | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| |(5060) ------------------> (5060) | | | |
|14.111540| | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|14.111708| | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|14.116089| | | ACK | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | | |(5061) --------------------------------------> (5061) |
|18.025311| | | 200 OK SDP (g711A) | |SIP Status 200 OK
| | | |(5061) <------------------ (37275) | |
|18.025659| | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|18.026572| | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|18.034736| 200 OK SDP (g711A) | | | |SIP Status 200 OK
| |(5060) <------------------ (5060) | | | |
|18.096101| ACK | | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| |(5060) ------------------> (5060) | | | |
|18.106560| | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|18.106687| | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|18.111007| | | ACK | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | | |(5061) --------------------------------------> (5061) |
|22.024673| | | 200 OK SDP (g711A) | |SIP Status 200 OK
| | | |(5061) <------------------ (37275) | |
|22.024953| | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|22.026120| | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|22.033514| 200 OK SDP (g711A) | | | |SIP Status 200 OK
| |(5060) <------------------ (5060) | | | |
|22.095104| ACK | | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| |(5060) ------------------> (5060) | | | |
|22.105921| | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|22.106043| | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|22.110298| | | ACK | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | | |(5061) --------------------------------------> (5061) |
|26.031501| | | 200 OK SDP (g711A) | |SIP Status 200 OK
| | | |(5061) <------------------ (37275) | |
|26.031903| | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|26.033136| | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|26.040343| 200 OK SDP (g711A) | | | |SIP Status 200 OK
| |(5060) <------------------ (5060) | | | |
|26.101967| ACK | | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| |(5060) ------------------> (5060) | | | |
|26.111938| | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|26.112432| | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|26.118306| | | ACK | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | | |(5061) --------------------------------------> (5061) |
|30.035446| | | 200 OK SDP (g711A) | |SIP Status 200 OK
| | | |(5061) <------------------ (37275) | |
|30.035693| | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|30.036501| | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|30.044170| 200 OK SDP (g711A) | | | |SIP Status 200 OK
| |(5060) <------------------ (5060) | | | |
|30.106395| ACK | | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| |(5060) ------------------> (5060) | | | |
|30.116960| | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|30.117412| | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|30.129913| | | ACK | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | | |(5061) --------------------------------------> (5061) |
|34.026492| | | 200 OK SDP (g711A) | |SIP Status 200 OK
| | | |(5061) <------------------ (37275) | |
|34.026807| | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|34.027775| | 200 OK SDP (g711A) | | |SIP Status 200 OK
| | |(5060) <------------------ (5060) | | |
|34.035453| 200 OK SDP (g711A) | | | |SIP Status 200 OK
| |(5060) <------------------ (5060) | | | |
|34.097385| ACK | | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| |(5060) ------------------> (5060) | | | |
|34.106319| | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|34.106681| | ACK | | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | |(5060) ------------------> (5060) | | |
|34.110714| | | ACK | | |SIP ACK From: <
sip:987654321@ims.carrier.com;user=phone> To:<
sip:123456789@ims.carrier.com;user=phone> CSeq:1
| | | |(5061) --------------------------------------> (5061) |
|34.526688| | | BYE | | |SIP Request BYE CSeq:15322
| | | |(5061) <------------------ (37275) | |
|34.528722| | BYE | | | |SIP Request BYE CSeq:15322
| | |(5060) <------------------ (5060) | | |
|34.529704| | BYE | | | |SIP Request BYE CSeq:15322
| | |(5060) <------------------ (5060) | | |
|34.668418| BYE | | | | |SIP Request BYE CSeq:15322
| |(5060) <------------------ (5060) | | | |
|34.788963| 200 OK | | | | |SIP Status 200 OK
| |(5060) ------------------> (5060) | | | |
|34.796051| | 200 OK | | | |SIP Status 200 OK
| | |(5060) ------------------> (5060) | | |
|34.796205| | 200 OK | | | |SIP Status 200 OK
| | |(5060) ------------------> (5060) | | |
|34.796604| | | 200 OK | | |SIP Status 200 OK
| | | |(5061) ------------------> (37275) | |