I am having issues with SRV and the XML Dialplan
I basically just want to have 2x SIP servers, primary and failover.
I want minimal PDD if the primary is down
My Config is as per below. If I take proxy1.domain.com offline and make a call, it is not even attempting send a call out proxy2.domain.com - let alone after 1-2 seconds
Perhaps my expectations are incorrect. Can I please get some advise on how to achieve auto failover to a backup proxy when a timeout occurs, and if possible through the use of SRV.
<gateway name="outbound-routing">
<param name="proxy" value="proxy.domain.com"/>
<param name="register" value="false"/>
<param name="ping" value="60"/>
<param name="register-transport" value="tcp"/>
<param name="caller-id-in-from" value="true"/>
</gateway>
dig SRV _SIP._TCP.proxy.domain.com
_SIP._TCP.proxy.domain.com. 600 IN SRV 10 50 5060 proxy1.domain.com.
_SIP._TCP.proxy.domain.com. 600 IN SRV 20 50 5060 proxy2.domain.com.
dialplan-outbound.xml
<extension name="outbound">
<condition field="destination_number" expression="^dial\+?([1-9]\d{1,14})$" break="on-true"> <!-- E164 - Outbound -->
<action application="set" data="originate_timeout=1"/>
<action application="set" data="originate_retries=2"/>
<action application="bridge" data="sofia/gateway/outbound-routing/$1"/>
</condition>
</extension>