Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
vinokanth92
New Contributor

FortiGate blocking SIP messages to a SIP Server to port (destination) 5060

 

0down votefavorite 

I have written a Python 3 script to emulate SIP call transfer event. The script was working successfully when tested with a SIP server sitting on the same network. When I tested with a SIP server sitting across FortiGate firewall, all data sent by the script to port 5060 of the SIP server is blocked by FortiGate. Data sent on any other port than 5060 are allowed across FortiGate. This made me presume that the packets are blocked by SIP ALG protocol running on port 5060 of FortiGate. To gather more information about the scenario, I tested with a command line tool called SIPp. SIPp was used to send SIP invites across FortiGate to the SIP server to port 5060. The invites generated by this tool was successfully sent across FortiGate. Then I made sure the format of the messages generated by SIPp and my script are identical. Even then the messages generated by my script are not going through FortiGate. My situation is quite complicated because there is no log for the FortiGate available. I was doing some research online came across this protocol called SIP ALG implemented on most routers and Firewalls. I do understand SIP ALG used correct private/public IPs of the SIP user agent. But in my situation I don't have plausible reason other than SIP ALG blocking my messages to port 5060. If SIP ALG is the culprit and it only blocks the messages generated by my script not SIPp, is then because of different encoding used in the message composition? If yes, what's the standard encoding used for SIP? I am currently using utf-8 on Python 3. Any insight is appreciated

1 REPLY 1
FortiKoala
Staff
Staff

You need to see if SIP helper or the SIP ALG is being used

 

http://kb.fortinet.com/kb/viewContent.do?externalId=FD38087

 

You can disable the sip helper by following this article http://kb.fortinet.com/kb/viewContent.do?externalId=FD33271

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors