In /ip firewall connection
I would like to retrieve only “reply packets” value and store into variable.
For the life of me I cannot get it done, no “get” option.
With this I will be able to complete my script.
Kind regards…
In /ip firewall connection
I would like to retrieve only “reply packets” value and store into variable.
For the life of me I cannot get it done, no “get” option.
With this I will be able to complete my script.
Kind regards…
what did you write???
{
:local variable [/ip firewall connection get ([find where timeout>10s]->0) value-name=repl-packets]
:put $variable
}
Thanks for reply.
The aim is to store reply packets of all sip connections and check every "some" interval if the count is increased. If not, remove connection for that IP. This is for extensions that connect to cloud PBX.
In South Africa we have intermittent outages (internet) where the extension loses its registration with the PBX (UDP) and then still tries to use the old connection track entry which does not work. Clearing this track entry forces a new track entry and the registration is then successful.