I am using DNS SRV query for stateful routing of calls like in my script below.  I see the SRV query is going through from SER.

My problem is that when the call times out to priority 1 A record, SER does not send it to priority 2.

Thanks for help.

vxml-1          IN      A       10.86.xxx.1
vxml-2          IN      A       10.86.xxx.2
vxml-3          IN      A       10.86.xxx.3

; Priority Weight Port Target
_sip._tcp.vxml.pats.cisco.com.  SRV 1 1 5060 vxml-1.pats.cisco.com.
                                SRV 2 1 5060 vxml-2.pats.cisco.com.
                                SRV 3 1 5060 vxml-3.pats.cisco.com.
_sip._udp.vxml.pats.cisco.com.  SRV 1 1 5060 vxml-1.pats.cisco.com.
                                SRV 2 1 5060 vxml-2.pats.cisco.com.
                                SRV 3 1 5060 vxml-3.pats.cisco.com.


route{

        if (!mf_process_maxfwd_header("10")) {
                sl_send_reply("483","Too Many Hops");
                break;
        };

        if (uri=~"^sip:7") {
                log(1, "Found 7*\n");
                rewritehostport("vxml.pats.cisco.com");
                route(1);
                break;
        }

        if (uri=~"^sip:9") {
                log(1, "Found 9*\n");
                rewritehostport("ringtone.pats.cisco.com");
                route(1);
                break;
        }

        log(1,"Could Not Match DN to a Route\n");
       
        route(1);
}

route[1]
{
       
        #use "t_relay" for STATEFUL forwarding
        #for STATELESS forwarding use this syntax: forward(10.86.xx.xx,5060);
       
        if (!t_relay()) {
                sl_reply_error();
        };
}