SVR Failover on Outbound Calls

Hey, I have srvlookup=true and am trying to get outbound redundancy via an SRV lookup.
I have created an SRV record that points to 2 SIP servers however it never sends an INVITE to the second server. Am I missing something ?

When dialing I am executing
"SIP/0408123456@test.company.com,5,f(0408345678),5,o")

dig +short _sip._udp.test.company.com SRV
10 25 5060 server1.test.company.com.
5 25 5060 server2.test.company.com. (Server is offline for this test)

The chan_sip module does not support this.

With chan_pjsip is it possible?

Regards

Yes, the chan_pjsip module supports SRV and NAPTR including failover, and load balancing[1].

[1] Asterisk 14: Coming with improved PJSIP DNS Support! ⋆ Asterisk

1 Like