Do you have DEBUG log levels enabled? If so, do you not see INVITE transactions in the logs?

 

From: Andrew R Miller via sr-users <sr-users@lists.kamailio.org>
Sent: Thursday, September 19, 2024 4:30 AM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: Andrew R Miller <Andrew.Miller@gamma.co.uk>
Subject: [SR-Users] Re: Kamailio not listening to SIP despite setup OK
 

[EXTERNAL]

Hi Sergio,

 

Just a guess, but it’s not a Reverse Path Forwarding issue is it?

 

This has been my problem in the past where I can see the packets in a tcpdump (and therefore probably in sngrep), but never saw them in the application.

 

Check the source addresses of the OPTIONS compared to the INVITE, and the route settings on the two Kamailio servers…

 

Andrew

 

Andrew R Miller
UCaaS Technical Lead
Tel: 
0333 043 9991
Mobile: 
07458 014 638
Email: 
Andrew.Miller@gamma.co.uk
This is an email from Gamma Telecom Ltd, trading as “Gamma”. The contents of this email are confidential to the ordinary user of the email address to which it was addressed. This email is not intended to create any legal relationship. No one else may place any reliance upon it, or copy or forward all or any of it in any form (unless otherwise notified). If you receive this email in error, please accept our apologies, we would be obliged if you would telephone our postmaster on +44 (0) 808 178 9652 or email postmaster@gamma.co.uk

Gamma Telecom Limited, a company incorporated in England and Wales, with limited liability, with registered number 04340834, and whose registered office is at The Scalpel, 18th Floor, 52 Lime Street, London EC3M 7AF and whose principal place of business is at Kings House, Kings Road West, Newbury, Berkshire, RG14 5BY.

From: Karsten Horsmann via sr-users <sr-users@lists.kamailio.org>
Sent: 18 September 2024 21:36
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: Karsten Horsmann <khorsmann@gmail.com>
Subject: [SR-Users] Re: Kamailio not listening to SIP despite setup OK

 

Hi Sergio,

 

You answer the right questions. Works it before, yes. Changed the Kamailio system, no. So it's an Fortinet fault. 

 

By painful experience with Cisco and Fortinet stuff I know that you need to tweak the Fortnite (SIP ALG, SIP POLICY and so one). 

 

Go in that direction cause it works with Cisco before and the Fortigate seems to break it. 

 

Kind regards 

 

Sergio Charrua via sr-users <sr-users@lists.kamailio.org> schrieb am Mi., 18. Sept. 2024, 10:19:

Hi all!

 

got a client with 2 Kamailio servers using Pacemaker/Corosync with a VIP.

Kamailio is setup with dispatcher, and has been working since 2018.

 

This previous week, client migrated from a Cisco ASA firewall to a Fortinet F5 firewall.

One of the Kamailio server is, apparently, working fine, receiving SIP invites and processing them correctly.

When moving the VIP to the second Kamailio node, Kamailio is ignoring any SIP message that is not OPTIONS, despite configuration (kamailio.cfg) being exactly the same as in the node #1.

Also, note that using SNGrep, we can see clearly that SIP messages are reaching the server, but Kamailio is just not processing any INVITE. In fact, I added an output to log file right at the very beginning of the main route and the line is added to log file ONLY if the SIP message is OPTIONS. When the SIP message is INVITE, nothing is processed on Kamailio's side.

 

The listen parameter is set to 0.0.0.0 port 5060 and advertised IP set to the Public IP.

 

Again, the main route is only :

 

route{

  xlog(. ......);

}

 

Kamailio version is 5.1.6 (old, I know....) but it has been working since Dec 2018! 

What could be the issue?!

Why only OPTIONS are being , somehow, recognized by Kamailio and all other SIP messages just ignored?

 

Also, to add some more weirdness to the mess, connecting an Asterisk server on the same network, and sending a call to Kamailio node #2, it works!! SIP messages of any kind are processed correctly by Kamailio on node #2. 

So, why doesn't it work with SIP messages received via Public IP address, even though the messages reach the server correctly (confirmed using SNGrep) ???

 

I spent 5h this afternoon trying to understand what is wrong, but I'm stuck .... and no clue so far, apart from suspecting of the new Gateway, which I have no access to configurations.... but if OPTIONS are received & processed OK, it wouldn't make sense that received INVITES would be ignored by Kamailio, right? 


Atenciosamente / Kind Regards / Cordialement / Un saludo,

 

Sérgio Charrua

 

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe: