<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Paul,<br>
Yes, the link doesn't really help ;-) The point was this snippet:<br>
"In ser CVS there was DNS cache and SRV failover support added
recently. <br>
It will do the failover automatically."<br>
<br>
You see, SER 0.9.x does not have automatic failover based on SRV (SER
Ottendorf, upcoming release does). You need to do special processing in
onfailure route, which is not really neat nor something you probably
want to do using SRV. Most people use LCR module for PSTN gateways, but
obviously, for occasional URLs with SRV records, that doesn't help much.<br>
g-)<br>
<br>
Paul Antinori (pantinor) wrote:
<blockquote
 cite="mid30EEF4ED2A75BB49886AD21372B6D87402249DDD@xmb-rtp-216.amer.cisco.com"
 type="cite">
  <pre wrap="">Hi Steve,

Yes I am trying to get SER to resend the INVITE to priority 2 after
priority 1 timed out due to connection down scenario.

Thank you,

Paul 

-----Original Message-----
From: Steve Blair [<a class="moz-txt-link-freetext" href="mailto:blairs@isc.upenn.edu">mailto:blairs@isc.upenn.edu</a>] 
Sent: Monday, December 04, 2006 9:37 AM
To: Paul Antinori (pantinor)
Cc: Greger V. Teigre; <a class="moz-txt-link-abbreviated" href="mailto:serusers@iptel.org">serusers@iptel.org</a>
Subject: Re: [Serusers] SRV failover question


Paul:

  Are you trying to get the proxy server to re-send the invite based on
the SRV list or the phone?

_Steve

Paul Antinori (pantinor) wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Greger and all,
 
The URL does not really help.  You will see my cfg script below is 
already using rewritehostport with no port and the SRV name.
I also am not using t_on_failure as it should not be necessary 
according the post by Klaus.
 
Heres my SRV table with the ranking priorities:
 
_sip._udp.vxml.pats.cisco.com   SRV service location:
          priority       = 1
          weight         = 1
          port           = 5060
          svr hostname   = vxml-1.pats.cisco.com
_sip._udp.vxml.pats.cisco.com   SRV service location:
          priority       = 2
          weight         = 1
          port           = 5060
          svr hostname   = vxml-2.pats.cisco.com
_sip._udp.vxml.pats.cisco.com   SRV service location:
          priority       = 3
          weight         = 1
          port           = 5060
          svr hostname   = vxml-3.pats.cisco.com
pats.cisco.com  nameserver = ns1.pats.cisco.com
vxml-1.pats.cisco.com   internet address = 10.86.129.x
vxml-2.pats.cisco.com   internet address = 10.86.129.x
vxml-3.pats.cisco.com   internet address = 10.86.129.x
ns1.pats.cisco.com      internet address = 10.86.129.x
 
 
Thanks anyone for any help,
 
Paul
 
 

----------------------------------------------------------------------
--
*From:* Greger V. Teigre [<a class="moz-txt-link-freetext" href="mailto:greger@teigre.com">mailto:greger@teigre.com</a>]
*Sent:* Monday, December 04, 2006 6:41 AM
*To:* Paul Antinori (pantinor)
*Cc:* <a class="moz-txt-link-abbreviated" href="mailto:serusers@iptel.org">serusers@iptel.org</a>
*Subject:* Re: [Serusers] SRV failover question

<a class="moz-txt-link-freetext" href="http://lists.iptel.org/pipermail/serusers/2006-October/030813.html">http://lists.iptel.org/pipermail/serusers/2006-October/030813.html</a>

Paul Antinori (pantinor) wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Hi,

Regarding the SRV query addition in (ser-0.9.7-pre7), when the call 
fails on the first priority destination, it never seems to attempt to
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">send the INVITE to the second priority destination in the SRV 
response list.  Is there anything else to script in the ser.cfg file 
to get this to work?

Thanks for help,

Paul

[root@iptel-sip-proxy /]# /usr/sbin/tethereal | grep SIP Capturing on
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">eth0
 10.100556 10.86.142.144 -&gt; 10.86.129.17 SIP Request: INVITE 
<a class="moz-txt-link-abbreviated" href="mailto:sip:77710107773365@10.86.129.17:5060;transport=udp">sip:77710107773365@10.86.129.17:5060;transport=udp</a>
 10.101774 10.86.129.17 -&gt; 10.86.142.144 SIP Status: 100 trying -- 
your call is important to us
 14.233596 10.86.129.17 -&gt; 10.86.142.144 SIP Status: 408 Request 
Timeout  14.235930 10.86.142.144 -&gt; 10.86.129.17 SIP Request: ACK 
<a class="moz-txt-link-abbreviated" href="mailto:sip:77710107773365@10.86.129.17:5060;transport=udp">sip:77710107773365@10.86.129.17:5060;transport=udp</a>
2139 packets captured

[root@iptel-sip-proxy /]# /usr/sbin/tethereal | grep DNS Capturing on
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">eth0
  4.279486 10.86.129.17 -&gt; 10.86.129.16 DNS Standard query SRV 
_sip._udp.vxml.pats.cisco.com
  4.279897 10.86.129.16 -&gt; 10.86.129.17 DNS Standard query response 
SRV 1 1 5060 vxml-1.pats.cisco.com SRV 2 1 5060 vxml-2.pats.cisco.com
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">SRV 3 1 5060 vxml-3.pats.cisco.com

  4.280045 10.86.129.17 -&gt; 10.86.129.16 DNS Standard query A 
vxml-1.pats.cisco.com
  4.280231 10.86.129.16 -&gt; 10.86.129.17 DNS Standard query response A
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">10.86.129.2   &lt;--this is unplugged from the network


debug=3
fork=yes
log_stderror=yes
rev_dns=no
port=5060
children=4
check_via=no
sip_warning=yes
fifo="/tmp/ser_fifo"
uid="nobody"
gid="nobody"

#aliases for this proxy server
#ie hostnames/domains that it routes for alias=sox.cisco.com 
alias=pats.cisco.com

loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"

modparam("usrloc", "db_mode",   0)
modparam("rr", "enable_full_lr", 1)
modparam("tm","fr_timer",5)
modparam("tm","fr_inv_timer",5)

route{


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

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

      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->rewritehostport("vxml.pats.cisco.com");route(1);break;
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">        }
        if (uri=~"^sip:8") {
                log(1, "SER Found 8*\n");
                rewritehostport("SER.pats.cisco.com");route(1);break;
        }
        if (uri=~"^sip:9") {
                log(1, "SER Found 9*\n");
                
rewritehostport("ringtone.pats.cisco.com");route(1);break;
        }

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

route[1]
{
        if (!t_relay()) {
                sl_reply_error();
        };
}

---------------------------------------------------------------------
---

_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
  
      </pre>
    </blockquote>
    <pre wrap="">----------------------------------------------------------------------
--

_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
  
    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
</blockquote>
</body>
</html>