<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
So do I need 7 contexts, one for each ip address?<span class=""><font color="#888888"><br>
<br>
sean</font></span><br></blockquote></div><br>Yes, if what you call a "context" is your peer definition in sip.conf.
CC routes calls through a varying number of SBCs, all (also) resolving
to <a href="http://callcentric.com">callcentric.com</a>, but each having their own name, typically
"<a href="http://alphaxy.callcenctric.com">alphaxy.callcenctric.com</a>". <br><br>I think you can use asterisk's
configuration template syntax to create the required peer definitions.
This would likely look similar to this (from memory):<br><br>[alpha11]<br>host=<a href="http://alpha11.callcentric.com">alpha11.callcentric.com</a><br><br>[alpha12]<br>host=<a href="http://alpha12.callcentric.com">alpha12.callcentric.com</a><br>
<br>[callcentric](alpha11,alpha12)<br>type=peer<br>context=from-callcentric<br>defaultuser=1777<myccid><br>secret=<mysecret><br>fromuser=1777<myccid><br>fromdomain=<a href="http://callcentric.com">callcentric.com</a><br>
insecure=port,invite<br>disallowed_methods=UPDATE<br>directmedia=no<br>videosupport=no<br>disallow=all<br>allow=ulaw<br><br><div class="gmail_extra">Add templates for all IPs that <a href="http://callcentric.com">callcentric.com</a> returns. Note that this approach isn't foolproof: if/when CC change their pool of SBCs, you may have to add more hosts, or remove them from this config. And, as you say, I believe the cause is that asterisk only uses the first returned IP for a host name. (Interestingly, the DNS server authoritative for CC also varies the order of IPs it returns. Guess that's their way load-balancing.)<br>
<br></div><div class="gmail_extra">And again, the above is from memory. I can look it up later today and will follow up if I goofed/misremembered.<br></div><br><br></div></div>