Community discussions

MikroTik App
 
tsinformatique
just joined
Topic Author
Posts: 1
Joined: Sat Jul 01, 2017 10:41 am

Solution to kill a UDP SIP 5060 connexion

Fri Oct 15, 2021 6:47 am

Hi
I have several installations like this :
  • Mikrotik RB4011iGS + 6.48.5 long term routers, FTTH link or xDSL link
  • LAN with IPBX 3CX into the LAN network with a trunk registred with french VoIP provider like OPENIP or OVH
So i use NAT in order to register my trunk

It works very well except that sometimes the trunk registration is blocked in the firewall of the routerOS
The IPBX 3CX continues to send his SIP registration request but it no longer works
I have to find a way to close this connection automatically and thought of a script
I cannot get the trunk status from the routerOS with an ssh command for example

The problem is to get it to be detected by the routerOS and then trigger an action
I thought of going to look for information in LOG for example

The script should read information in the logs like this one for example and trigger a script to close the UDP blocked connection
register SIP OVH forward: in:bridge out:eoip.7113-CLI21031101-INTERNET, src-mac 80:ee:73:cd:69:f9, proto UDP, 192.168.1.100:5060->91.121.129.23:5060, NAT (192.168.1.100:5060->185.234.105.113:5060)->91.121.129.23:5060, len 850

Can someone help me, give me some ideas or offer me another solution

Thanks a lot

Who is online

Users browsing this forum: ko00000000001 and 18 guests