Failover Scripting It does not work properly

Use my script here, for the same problem, this is valid for all services, not only SIP. Setting low timeout sometime interrupt the call, if the phone voip device are not configured correctly...

just add on ppp profile (used by pppoe-out1) on script menu, both on on-up and on-down sections:

/ip fire conn
:foreach idc in=[find where timeout>60 and reply-dst-address~$"local-address"] do={
 remove [find where .id=$idc]
}

do not change $"local-address": is one variable automatically filled by pppoe-out1 inside the script, everytime the service go up or down

P.S.: I'm a WISP and on my 4000 CPEs ftp, pptp, tftp and sip alg are everytime active ;)) as I give one public IP to CPE without NAT anywere, except on end user LAN.