<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>SRV failover question</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2>Greger and all,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2>The URL does not really help.&nbsp; You will see my cfg 
script below is already using rewritehostport with no port and the SRV 
name.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2>I also am not using t_on_failure as it should not be 
necessary according the post by Klaus.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2>Heres my SRV table with the ranking 
priorities:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2>_sip._udp.vxml.pats.cisco.com&nbsp;&nbsp; SRV service 
location:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
priority&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 
1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
weight&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 
1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
port&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 
5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; svr 
hostname&nbsp;&nbsp; = 
vxml-1.pats.cisco.com<BR>_sip._udp.vxml.pats.cisco.com&nbsp;&nbsp; SRV service 
location:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
priority&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 
2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
weight&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 
1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
port&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 
5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; svr 
hostname&nbsp;&nbsp; = 
vxml-2.pats.cisco.com<BR>_sip._udp.vxml.pats.cisco.com&nbsp;&nbsp; SRV service 
location:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
priority&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 
3<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
weight&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 
1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
port&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 
5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; svr 
hostname&nbsp;&nbsp; = vxml-3.pats.cisco.com<BR>pats.cisco.com&nbsp; nameserver 
= ns1.pats.cisco.com<BR>vxml-1.pats.cisco.com&nbsp;&nbsp; internet address = 
10.86.129.x<BR>vxml-2.pats.cisco.com&nbsp;&nbsp; internet address = 
10.86.129.x<BR>vxml-3.pats.cisco.com&nbsp;&nbsp; internet address = 
10.86.129.x<BR>ns1.pats.cisco.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; internet address 
= 10.86.129.x</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2>Thanks anyone for any help,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2>Paul</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Greger V. Teigre 
[mailto:greger@teigre.com] <BR><B>Sent:</B> Monday, December 04, 2006 6:41 
AM<BR><B>To:</B> Paul Antinori (pantinor)<BR><B>Cc:</B> 
serusers@iptel.org<BR><B>Subject:</B> Re: [Serusers] SRV failover 
question<BR></FONT><BR></DIV>
<DIV></DIV><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><BR><BR>Paul 
Antinori (pantinor) wrote: 
<BLOCKQUOTE 
cite=mid30EEF4ED2A75BB49886AD21372B6D874021E077B@xmb-rtp-216.amer.cisco.com 
type="cite">
  <META content="MS Exchange Server version 6.5.7638.1" name=Generator><!-- Converted from text/rtf format -->
  <P><FONT face=Arial size=2>Hi,</FONT> </P>
  <P><FONT face=Arial size=2>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 send the INVITE to the second priority destination 
  in the SRV response list.&nbsp; Is there anything else to script in the 
  ser.cfg file to get this to work?</FONT></P>
  <P><FONT face=Arial size=2>Thanks for help,</FONT> </P>
  <P><FONT face=Arial size=2>Paul</FONT> </P>
  <P><FONT face=Arial size=2>[root@iptel-sip-proxy /]# /usr/sbin/tethereal | 
  grep SIP</FONT> <BR><FONT face=Arial size=2>Capturing on eth0</FONT> <BR><FONT 
  face=Arial size=2>&nbsp;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></FONT> 
  <BR><FONT face=Arial size=2>&nbsp;10.101774 10.86.129.17 -&gt; 10.86.142.144 
  SIP Status: 100 trying -- your call is important to us</FONT> <BR><FONT 
  face=Arial size=2>&nbsp;14.233596 10.86.129.17 -&gt; 10.86.142.144 SIP Status: 
  408 Request Timeout</FONT> <BR><FONT face=Arial size=2>&nbsp;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></FONT> 
  <BR><FONT face=Arial size=2>2139 packets captured</FONT> </P>
  <P><FONT face=Arial size=2>[root@iptel-sip-proxy /]# /usr/sbin/tethereal | 
  grep DNS</FONT> <BR><FONT face=Arial size=2>Capturing on eth0</FONT> <BR><FONT 
  face=Arial size=2>&nbsp; 4.279486 10.86.129.17 -&gt; 10.86.129.16 DNS Standard 
  query SRV _sip._udp.vxml.pats.cisco.com</FONT> <BR><FONT face=Arial 
  size=2>&nbsp; 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 
  SRV 3 1 5060 vxml-3.pats.cisco.com</FONT></P>
  <P><FONT face=Arial size=2>&nbsp; 4.280045 10.86.129.17 -&gt; 10.86.129.16 DNS 
  Standard query A vxml-1.pats.cisco.com</FONT> <BR><FONT face=Arial 
  size=2>&nbsp; 4.280231 10.86.129.16 -&gt; 10.86.129.17 DNS Standard query 
  response A 10.86.129.2&nbsp;&nbsp; &lt;--this is unplugged from the 
  network</FONT></P><BR>
  <P><FONT face=Arial size=2>debug=3</FONT> <BR><FONT face=Arial 
  size=2>fork=yes</FONT> <BR><FONT face=Arial size=2>log_stderror=yes</FONT> 
  <BR><FONT face=Arial size=2>rev_dns=no</FONT> <BR><FONT face=Arial 
  size=2>port=5060</FONT> <BR><FONT face=Arial size=2>children=4</FONT> 
  <BR><FONT face=Arial size=2>check_via=no</FONT> <BR><FONT face=Arial 
  size=2>sip_warning=yes</FONT> <BR><FONT face=Arial 
  size=2>fifo="/tmp/ser_fifo"</FONT> <BR><FONT face=Arial 
  size=2>uid="nobody"</FONT> <BR><FONT face=Arial size=2>gid="nobody"</FONT> 
</P>
  <P><FONT face=Arial size=2>#aliases for this proxy server</FONT> <BR><FONT 
  face=Arial size=2>#ie hostnames/domains that it routes for</FONT> <BR><FONT 
  face=Arial size=2>alias=sox.cisco.com</FONT> <BR><FONT face=Arial 
  size=2>alias=pats.cisco.com</FONT> </P>
  <P><FONT face=Arial size=2>loadmodule 
  "/usr/local/lib/ser/modules/sl.so"</FONT> <BR><FONT face=Arial 
  size=2>loadmodule "/usr/local/lib/ser/modules/tm.so"</FONT> <BR><FONT 
  face=Arial size=2>loadmodule "/usr/local/lib/ser/modules/rr.so"</FONT> 
  <BR><FONT face=Arial size=2>loadmodule 
  "/usr/local/lib/ser/modules/maxfwd.so"</FONT> <BR><FONT face=Arial 
  size=2>loadmodule "/usr/local/lib/ser/modules/usrloc.so"</FONT> <BR><FONT 
  face=Arial size=2>loadmodule "/usr/local/lib/ser/modules/registrar.so"</FONT> 
  <BR><FONT face=Arial size=2>loadmodule 
  "/usr/local/lib/ser/modules/textops.so"</FONT> </P>
  <P><FONT face=Arial size=2>modparam("usrloc", "db_mode",&nbsp;&nbsp; 0)</FONT> 
  <BR><FONT face=Arial size=2>modparam("rr", "enable_full_lr", 1)</FONT> 
  <BR><FONT face=Arial size=2>modparam("tm","fr_timer",5)</FONT> <BR><FONT 
  face=Arial size=2>modparam("tm","fr_inv_timer",5)</FONT> </P>
  <P><FONT face=Arial size=2>route{</FONT> </P><BR>
  <P><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
  (!mf_process_maxfwd_header("10")) {</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  sl_send_reply("483","Too Many Hops");</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  break;</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</FONT> </P>
  <P><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
  (uri=~"^sip:1") {</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  log(1, "SER found 1*\n");</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rewritehostport("ccm.pats.cisco.com");route(1);break;</FONT> <BR><FONT 
  face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT> 
  <BR><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
  (uri=~"^sip:2") {</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  log(1, "SER Found 2*\n");</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rewritehostport("ccm.pats.cisco.com");route(1);break;</FONT> <BR><FONT 
  face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT> 
  <BR><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
  (uri=~"^sip:7") {</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  log(1, "SER Found 7*\n");</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rewritehostport("vxml.pats.cisco.com");route(1);break;</FONT> <BR><FONT 
  face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT> 
  <BR><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
  (uri=~"^sip:8") {</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  log(1, "SER Found 8*\n");</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rewritehostport("SER.pats.cisco.com");route(1);break;</FONT> <BR><FONT 
  face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT> 
  <BR><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
  (uri=~"^sip:9") {</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  log(1, "SER Found 9*\n");</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rewritehostport("ringtone.pats.cisco.com");route(1);break;</FONT> <BR><FONT 
  face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT> </P>
  <P><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  log(1,"Could Not Match DN to Route\n");</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route(1);</FONT> <BR><FONT 
  face=Arial size=2>}</FONT> </P>
  <P><FONT face=Arial size=2>route[1] </FONT><BR><FONT face=Arial 
  size=2>{</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!t_relay()) {</FONT> 
  <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  sl_reply_error();</FONT> <BR><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</FONT> <BR><FONT 
  face=Arial size=2>}</FONT> </P><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
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></BODY></HTML>