<!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> </DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial
color=#0000ff size=2>The URL does not really help. 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> </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> </DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial
color=#0000ff size=2>_sip._udp.vxml.pats.cisco.com SRV service
location:<BR>
priority =
1<BR>
weight =
1<BR>
port =
5060<BR> svr
hostname =
vxml-1.pats.cisco.com<BR>_sip._udp.vxml.pats.cisco.com SRV service
location:<BR>
priority =
2<BR>
weight =
1<BR>
port =
5060<BR> svr
hostname =
vxml-2.pats.cisco.com<BR>_sip._udp.vxml.pats.cisco.com SRV service
location:<BR>
priority =
3<BR>
weight =
1<BR>
port =
5060<BR> svr
hostname = vxml-3.pats.cisco.com<BR>pats.cisco.com nameserver
= ns1.pats.cisco.com<BR>vxml-1.pats.cisco.com internet address =
10.86.129.x<BR>vxml-2.pats.cisco.com internet address =
10.86.129.x<BR>vxml-3.pats.cisco.com internet address =
10.86.129.x<BR>ns1.pats.cisco.com 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> </DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </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> </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> </DIV>
<DIV dir=ltr align=left><SPAN class=563441614-04122006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </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. 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> 10.100556 10.86.142.144 -> 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> 10.101774 10.86.129.17 -> 10.86.142.144
SIP Status: 100 trying -- your call is important to us</FONT> <BR><FONT
face=Arial size=2> 14.233596 10.86.129.17 -> 10.86.142.144 SIP Status:
408 Request Timeout</FONT> <BR><FONT face=Arial size=2> 14.235930
10.86.142.144 -> 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> 4.279486 10.86.129.17 -> 10.86.129.16 DNS Standard
query SRV _sip._udp.vxml.pats.cisco.com</FONT> <BR><FONT face=Arial
size=2> 4.279897 10.86.129.16 -> 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> 4.280045 10.86.129.17 -> 10.86.129.16 DNS
Standard query A vxml-1.pats.cisco.com</FONT> <BR><FONT face=Arial
size=2> 4.280231 10.86.129.16 -> 10.86.129.17 DNS Standard query
response A 10.86.129.2 <--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", 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> if
(!mf_process_maxfwd_header("10")) {</FONT> <BR><FONT face=Arial
size=2>
sl_send_reply("483","Too Many Hops");</FONT> <BR><FONT face=Arial
size=2>
break;</FONT> <BR><FONT face=Arial
size=2> };</FONT> </P>
<P><FONT face=Arial size=2> if
(uri=~"^sip:1") {</FONT> <BR><FONT face=Arial
size=2>
log(1, "SER found 1*\n");</FONT> <BR><FONT face=Arial
size=2>
rewritehostport("ccm.pats.cisco.com");route(1);break;</FONT> <BR><FONT
face=Arial size=2> }</FONT>
<BR><FONT face=Arial size=2> if
(uri=~"^sip:2") {</FONT> <BR><FONT face=Arial
size=2>
log(1, "SER Found 2*\n");</FONT> <BR><FONT face=Arial
size=2>
rewritehostport("ccm.pats.cisco.com");route(1);break;</FONT> <BR><FONT
face=Arial size=2> }</FONT>
<BR><FONT face=Arial size=2> if
(uri=~"^sip:7") {</FONT> <BR><FONT face=Arial
size=2>
log(1, "SER Found 7*\n");</FONT> <BR><FONT face=Arial
size=2>
rewritehostport("vxml.pats.cisco.com");route(1);break;</FONT> <BR><FONT
face=Arial size=2> }</FONT>
<BR><FONT face=Arial size=2> if
(uri=~"^sip:8") {</FONT> <BR><FONT face=Arial
size=2>
log(1, "SER Found 8*\n");</FONT> <BR><FONT face=Arial
size=2>
rewritehostport("SER.pats.cisco.com");route(1);break;</FONT> <BR><FONT
face=Arial size=2> }</FONT>
<BR><FONT face=Arial size=2> if
(uri=~"^sip:9") {</FONT> <BR><FONT face=Arial
size=2>
log(1, "SER Found 9*\n");</FONT> <BR><FONT face=Arial
size=2>
rewritehostport("ringtone.pats.cisco.com");route(1);break;</FONT> <BR><FONT
face=Arial size=2> }</FONT> </P>
<P><FONT face=Arial size=2>
log(1,"Could Not Match DN to Route\n");</FONT> <BR><FONT face=Arial
size=2> 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> if (!t_relay()) {</FONT>
<BR><FONT face=Arial
size=2>
sl_reply_error();</FONT> <BR><FONT face=Arial
size=2> };</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>