All routers have different settings, but here are some general principles.
- SIP ALG (application level gateway) can sometimes be helpful, sometimes not, depending on the router. Toggle it and see if it positively affects the phones
- SPI (stateful packet inspection) will most likely cause problems on your phones. Disable it.
- UDP timeout should be set to 300 seconds.