I have a Asterisk 1.8 with public IP and a CUCM behind a router that sends calls to this Asterisk. The CUCM sends INVITE with extension and IP LAN of the CUCM on “From Header” and IP LAN of the CUCM on “Via Header” because I use nat=yes to solve this on the Asterisk side .
This is the SIP flow of the call:
|Time | PUBLIC_IP_CLIENT |
| | | PUBLIC_IP_AST |
|63.229932| INVITE SDP (g711A te |SIP INVITE From: "101" <sip:101@192.168.1.10 To:<sip:999@PUBLIC_IP_AST Call-ID:d6220a00-1e818e6b-3d-a66a8c0@192.168.102.10 CSeq:101
| |(1025) ------------------> (5060) |
|63.231753| 100 Trying| |SIP Status 100 Trying
| |(1025) <------------------ (5060) |
|63.231920| 200 OK SDP (g711A te |SIP Status 200 OK
| |(1025) <------------------ (5060) |
|63.287119| ACK | |SIP Request INVITE ACK 200 CSeq:101
| |(1025) ------------------> (5060) |
|63.310724| RTP (g711A) |RTP, 44996 packets. Duration: 4294903.986s SSRC: 0x7AA
| |(25366) ------------------> (16066) |
|63.310943| RTP (g711A) |RTP, 44995 packets. Duration: 4294903.986s SSRC: 0x6335863F
| |(25366) <------------------ (16066) |
|963.231319| INVITE SDP (g711A te |SIP INVITE From: "101" <sip:101@192.168.1.10 To:<sip:999@PUBLIC_IP_AST CSeq:102
| |(1025) <------------------ (5060) |
|963.250876| RTP (g711A) |RTP, 371 packets. Duration: 4294004.046s SSRC: 0x7AA
| |(25366) ------------------> (16066) |
|963.250950| RTP (g711A) |RTP, 320 packets. Duration: 4294004.046s SSRC: 0x6335863F
| |(25366) <------------------ (16066) |
|963.330872| INVITE SDP (g711A te |SIP INVITE From: "101" <sip:101@192.168.1.10 To:<sip:999@PUBLIC_IP_AST CSeq:102
| |(1025) <------------------ (5060) |
|963.531208| INVITE SDP (g711A te |SIP INVITE From: "101" <sip:101@192.168.1.10 To:<sip:999@PUBLIC_IP_AST CSeq:102
| |(1025) <------------------ (5060) |
|963.931722| INVITE SDP (g711A te |SIP INVITE From: "101" <sip:101@192.168.1.10 To:<sip:999@PUBLIC_IP_AST CSeq:102
| |(1025) <------------------ (5060) |
|964.731635| INVITE SDP (g711A te |SIP INVITE From: "101" <sip:101@192.168.1.10 To:<sip:999@PUBLIC_IP_AST CSeq:102
| |(1025) <------------------ (5060) |
|966.331841| INVITE SDP (g711A te |SIP INVITE From: "101" <sip:101@192.168.1.10 To:<sip:999@PUBLIC_IP_AST CSeq:102
| |(1025) <------------------ (5060) |
|969.530714| INVITE SDP (g711A te |SIP INVITE From: "101" <sip:101@192.168.1.10 To:<sip:999@PUBLIC_IP_AST CSeq:102
| |(1025) <------------------ (5060) |
The call works until the asterisk side sends INVITE to CUCM that CUCM don’t response . Asterisk stops to send media to CUCM and the console shows me the following:
WARNING[3996] chan_sip.c: Retransmission timeout reached on transmission d6220a00-1e818e6b-3d-a66a8c0@192.168.102.10 for seqno 102 (Critical Request)
WARNING[3996] chan_sip.c: Hanging up call d6220a00-1e818e6b-3d-a66a8c0@192.168.102.10 - no reply to our critical packet
How I can make that the asterisk side don’t send this INVITE that causes the call fails?. Thanks.