I’ve got PJSIP configured like this:
[registrar] type=aor contact=sip:registrar-intmd.example.com
The following DNS records are configured
NAPTR registrar-intmd.example.com 10 100 "S" "SIP+D2U" "" _sip._udp.registrar-intmd.example.com SRV _sip._udp.registrar-intmd.example.com 10 100 5060 192.168.0.100 10 100 5060 192.168.0.101
And it seems to work! Asterisk switches between 192.168.0.100 and 101 pretty evenly.
However, when I do a failover test, taking one of those servers offline, Asterisk still tries it (for something like 20-30 seconds), before trying the other one, and it doesn’t appear to “remember” that this particular server was offline.
I’m wondering if there are some obvious settings that controls this behavior?
In particular I’d like to reduce the number of seconds Asterisk attempts to connect, and well, if Asterisk could be configured to remember that this particular server was offline for the next say, 5 minutes or something like that, that would be awesome as well.