<div dir="ltr">On 21 January 2014 19:13, Schaefer, Larry <span dir="ltr"><<a href="mailto:Larry.Schaefer@pgi.com" target="_blank">Larry.Schaefer@pgi.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">I am trying to add SPCE with SBC application into an existing SIP architecture, seeing if I could replace an existing SBC with SPEC SBC.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have questions about the outbound_proxy setting and how it handles failures. The following A record points to four IP addresses, but in my architecture, I might expect only a couple of the IP addresses to respond (service is running
in Amazon EC2, so servers might come and go).</p></div></div></blockquote><div><br></div><div>Having an A record with 4 IP addresses doesn't really do what you want. Only a single IP address will be returned by DNS, just that it will change each time to return one of the 4 available. SPCE is still going to fail if the IP is is given is not available.</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">outbound_proxy=sip:<a href="http://blob.dev.us-west-1.bobdev.pgi.com" target="_blank">blob.dev.us-west-1.bobdev.pgi.com</a></p></div></div></blockquote><div><br></div><div style>I am not totally sure of how outbound_proxy operates, so will leave that for others.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"> <u></u></p>
<p class="MsoNormal">I have also attempted to create a service locator SVR DNS address (_sip._<a href="http://udp.blob.dev.us-west-1.bobdev.pgi.com" target="_blank">udp.blob.dev.us-west-1.bobdev.pgi.com</a>), and SBC uses that address, but also does not attempt next server if the selected server does not respond.<u></u><u></u></p>
<p class="MsoNormal"><u></u></p></div></div></blockquote><div><br></div><div style>I would think that SRV records would be the way to go for you. However, the way you have set it up still results in only one of your 4 IPs being returned, and again, gives you no redundancy.</div>
<div style><br></div><div style>What you need to do is to give each of your IPs a hostname in DNS and remove the A records you have for them in <a href="http://blob.dev.us-west-1.bobdev.pgi.com">blob.dev.us-west-1.bobdev.pgi.com</a>, and then set up SRV records for _sip._<a href="http://udp.blob.dev.us-west-1.bobdev.pgi.com">udp.blob.dev.us-west-1.bobdev.pgi.com</a> for each of the 4 hostnames giving them all the same weight and priority.</div>
<div style><br></div><div style>Now when SPCE queries it will receive back 4 possible endpoints for SIP UDP, all with the same weight/priority and should try them all until it gets a response (assuming that outbound_proxy/SPCE is set to use DNS SRV lookups).</div>
<div style><br></div><div style>Have a look at <a href="http://en.wikipedia.org/wiki/SRV_record#Retrieving_a_SRV_record">http://en.wikipedia.org/wiki/SRV_record</a> under the section "Provisioning for high service availability"</div>
<div style><br></div><div style>Hope this helps.</div><div style><br></div><div style>-Barry Flanagan</div><div style><br></div></div></div></div>