Hello,

 

maybe you can verify e.g. with a log statement if its really send two INVITEs or maybe its just an artefact from the NAT setup with the tracing. It can happen sometimes.

 

Cheers,

 

Henning

 

 

From: Adil Mafzool Zaka <adil_mafzool@yahoo.com>
Sent: Dienstag, 14. März 2023 18:07
To: sr-users@lists.kamailio.org
Subject: [SR-Users] Advertise NAT IP address causing Multiple SIP INVITEs is that expected ?

 

Hi

 

I am using advertise in the listen interface for our NATed setup within AWS.

 

Using following listen statement in kamailio: -

 

version: kamailio 5.5.1

 

listen=udp:10.0.1.4:5060 advertise 3X.1XX.1XX.2XX:5060

 

dispatcher.list

sip:10.0.4.23:5060 8 10 weight=11 #FreeSwitch 1

 

 

We are seeing that kamailio (10.0.1.4) is sending 

two SIP INVITEs via dispatcher to FreeSwitch at 10.0.4.23 which seems strange or is it expected behaviour? (As seen below)

 

SIP INVITE Request: -

WAN Address  >> Kamailio AWS NATed address        >> FreeSwitch 1               

1X.2X.2X.2X     >>   3X.1XX.1XX.2XX

                                                                              10.0.1.4     >> 10.0.4.23

 

                                                                              10.0.1.4     >> 10.0.4.23

 

 

Many thanks 

 

Regards

Muhammad Zaka