Hi Olle,<br><br><div class="gmail_quote">On Thu, Feb 14, 2008 at 5:35 PM, Johansson Olle E <<a href="mailto:oej@edvina.net">oej@edvina.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Mark!<br>
<br>
13 feb 2008 kl. 23.42 skrev Mark Quitoriano:<br>
<div class="Ih2E3d"><br>
> Is it possilble for a single context to have multiple host=<br>
> something like this<br>
</div>First "context" is something we use to describe a segment of the<br>
dialplan. I would call this "section".<br>
<div class="Ih2E3d"><br>
<br>
><br>
><br>
> [carrier]<br>
> host=<ip address1><br>
> host=<ip address2><br>
> host=<ip address3><br>
> type=peer<br>
> disallow=all<br>
> allow=g729<br>
> allow=ulaw<br>
> canreinvite=no<br>
> insecure=yes<br>
> qualify=yes<br>
<br>
</div>No. You can only add one.<br>
<br>
Normally I would add host=<a href="http://sip.mydomain.com" target="_blank">sip.mydomain.com</a> and have multiple DNS<br>
entries or use SRV records to do failover and such,<br>
provided you use this for outbound calls.<br>
<br>
Since you call this peer "carrier" I assume you want to handle inbound<br>
calls. Today, you will have to define three different<br>
peers, but remember that you can use templates.<br>
<br>
[carrier](!)<br>
<div class="Ih2E3d">type=peer<br>
disallow=all<br>
allow=g729<br>
allow=ulaw<br>
canreinvite=no<br>
insecure=yes<br>
qualify=yes<br>
<br>
</div>[carrier-01](carrier)<br>
host=<ip address1><br>
<br>
[carrier-02](carrier)<br>
host=<ip address2><br>
<br>
[carrier-03](carrier)<br>
host=<ip address3><br>
<br>
You will now have three peers named carrier-01-03 but no peer named<br>
"carrier" in your sip driver when you run "sip show peers".<br>
</blockquote><div><br>This looks interesting. Is there more documentation how to do this? And btw in dialplan can i call this just simply SIP/carrier and all the 3 ip will be used?<br><br><br>Thanks!<br></div></div><br>