<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Last time I used SRV records on dial-peers you had to assign the dial-peer's session target as 'sip-server' and configure the domain in the sip-ua. &nbsp;Otherwise, if you make the session target dns within the dial-peer it did not use SRV records and randomly selected one of the A records.&nbsp;<div><br></div><div><br><div><div>On Dec 10, 2009, at 7:37 PM, Nick Matthews wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">It should.&nbsp; <br><br>The only factors in an outgoing dial peer are:<br><br>destination-pattern<br>match length against destination pattern<br>cor list restrictions<br>if the sip options are up<br>and some other conditionals (CAC, etc)<br>
<br>IP addresses are not part of the process.&nbsp; It should be a random load balance by default, which means it's possible for two consecutive calls to go to the same place that could give that impression.<br><br>-nick<br>
<br><div class="gmail_quote">On Thu, Dec 10, 2009 at 7:41 PM, Eric Pedersen <span dir="ltr">&lt;<a href="mailto:eric.pedersen@sait.ca">eric.pedersen@sait.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">










<div link="blue" vlink="purple" lang="EN-US">

<div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I used DNS SRV records for sip targets.&nbsp; They work nice
because then you don’t need to duplicate dial peers for each sip target,
as long as you’re ok with a dependence on DNS.</span></p><div><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span><br class="webkit-block-placeholder"></div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">When I did it, I set one record to have a higher precedence, so
I don’t know what the behaviour is if multiple targets have the same preference
– i.e. if IOS load balances or not.</span></p><p class="MsoNormal"><a name="1257b2f2123599cd__MailEndCompose"><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></a></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;"><p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:cisco-voip-bounces@puck.nether.net" target="_blank">cisco-voip-bounces@puck.nether.net</a> [mailto:<a href="mailto:cisco-voip-bounces@puck.nether.net" target="_blank">cisco-voip-bounces@puck.nether.net</a>] <b>On
Behalf Of </b>Ali El Moussaoui<br>
<b>Sent:</b> December 9, 2009 23:53</span></p><div><div></div><div class="h5"><br>
<b>To:</b> Hussam Ahmad<br>
<b>Cc:</b> <a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<b>Subject:</b> Re: [cisco-voip] Load Balance between SIP dial-peers</div></div><div><br class="webkit-block-placeholder"></div>

</div><div><div></div><div class="h5"><div>&nbsp;<br class="webkit-block-placeholder"></div>

<div><p class="MsoNormal" style="margin-bottom: 12pt;">Its one router connected to 2
different targets and i think what Mark mentioned is true.</p>

<div><p class="MsoNormal">On Wed, Dec 9, 2009 at 7:03 PM, Hussam Ahmad &lt;<a href="mailto:hahmad@sigma-it.net" target="_blank">hahmad@sigma-it.net</a>&gt; wrote:</p>

<div>

<div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">OK, could you please describe the
topology?</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">do you have two routers with two links
in-between or one router connected to two routers?</span></p><div><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span><br class="webkit-block-placeholder"></div>

<div>

<table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0">
 <tbody><tr>
  <td style="padding: 0in;"></td>
 </tr>
 <tr>
  <td style="padding: 0in 5.4pt; width: 895.1pt;" valign="top" width="1193"><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(0, 100, 45);">Thanks and best regards</span><span style="font-size: 9pt; color: rgb(0, 100, 45);">,</span></p><p class="MsoNormal"><b><span style="color: rgb(0, 100, 45);">&nbsp;</span></b></p><p class="MsoNormal"><b><span style="color: rgb(0, 100, 45);">H</span></b><b><span style="font-size: 9pt; color: rgb(0, 100, 45);">USSAM</span></b><b><span style="font-size: 11pt; color: rgb(0, 100, 45);"> </span><span style="color: rgb(0, 100, 45);">A</span></b><b><span style="font-size: 9pt; color: rgb(0, 100, 45);">HMAD</span></b></p><p class="MsoNormal"><span style="font-size: 9pt; color: rgb(0, 100, 45);">Cisco Instructor | Sigma IT –
  Saudi Arabia</span></p>
  </td>
 </tr>
 <tr>
  <td style="padding: 0in 5.4pt; width: 895.1pt;" valign="top" width="1193"><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><span>&lt;image001.png&gt;</span></span></p>
  </td>
 </tr>
 <tr>
  <td style="padding: 0in;"></td>
 </tr>
 <tr>
  <td style="padding: 0in 5.4pt; width: 895.1pt;" valign="top" width="1193"><p class="MsoNormal"><span style="font-size: 9pt; color: rgb(0, 100, 45);">Olaya St., Akaria 3, Entrance 13, 5th
  Floor, Office 509 | Riyadh | KSA</span></p><p class="MsoNormal"><span style="font-size: 9pt; color: rgb(0, 100, 45);">Tel: +966-1-2150100</span></p><p class="MsoNormal"><span style="font-size: 9pt; color: rgb(0, 100, 45);">Fax: +966-1-2151090</span></p><p class="MsoNormal"><span style="font-size: 9pt; color: rgb(0, 100, 45);">Mobile: +966-55-3266244</span></p><p class="MsoNormal"><span style="font-size: 9pt; color: rgb(0, 100, 45);">Email: <a href="mailto:hahmad@sigma-it.net" target="_blank"><span style="color: rgb(0, 100, 45);">hahmad@sigma-it.net</span></a></span></p><p class="MsoNormal"><span style="font-size: 9pt; color: rgb(0, 100, 45);">Website: <a href="http://www.sigma-it.net/" target="_blank"><span style="color: rgb(0, 100, 45);">www.sigma-it.net</span></a></span></p><p class="MsoNormal"><span style="font-size: 8pt; color: rgb(255, 192, 0);">------------------------------------------------------------------------------------------------------</span></p><p class="MsoNormal"><span style="font-size: 8pt; color: rgb(0, 100, 45);">This e-mail communication and any
  attachments thereto contain information which is confidential and are
  intended only for the use of the individuals or entities named above. If you
  are not the intended recipient, you are hereby notified that any disclosure,
  copying, distribution or the taking any action in reliance on the contents of
  these documents is strictly prohibited and may be illegal. Please notify us
  of your receipt of this e-mail in error and delete the e-mail and any copies
  of it</span></p>
  </td>
 </tr>
</tbody></table><div><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span><br class="webkit-block-placeholder"></div><div><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span><br class="webkit-block-placeholder"></div>

<div>

<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;"><p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Mark
Holloway [mailto:<a href="mailto:mh@markholloway.com" target="_blank">mh@markholloway.com</a>]
<br>
<b>Sent:</b> Wednesday, December 09, 2009 7:57 PM<br>
<b>To:</b> Hussam Ahmad<br>
<b>Cc:</b> 'Ali El Moussaoui'; <a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a></span></p>

<div>

<div><p class="MsoNormal"><span style="font-size: 10pt;"><br>
<b>Subject:</b> Re: [cisco-voip] Load Balance between SIP dial-peers</span></p>

</div>

</div>

</div>

</div>

<div>

<div><div>&nbsp;<br class="webkit-block-placeholder"></div><p class="MsoNormal">Are
you sure about that? &nbsp;The expected behavior when creating two dial peers
with identical destination patterns but different session targets is the lowest
numbered dial peer is always used first and if the session target is not
available the next dial peer is used. &nbsp;Although this does provided
redundancy it's not load balancing.</p>

<div><div>&nbsp;<br class="webkit-block-placeholder"></div>

<div>

<div><p class="MsoNormal">On
Dec 9, 2009, at 1:46 AM, Hussam Ahmad wrote:</p>

</div><div style="margin-bottom: 12pt; ">&nbsp;<br class="webkit-block-placeholder"></div>

<div>

<div>

<div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Configure the dial-peers without any
preference and it will work as you want if the destination-pattern is the same.</span></p>

</div>

<div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Make it and use debug voice dial-peer in
to verify it.</span></p>

</div>

<div><div><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span><br class="webkit-block-placeholder"></div>

</div>

<div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Waiting for your reply.</span></p>

</div>

<div><div><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span><br class="webkit-block-placeholder"></div>

</div>

<table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0">
 <tbody><tr>
  <td style="padding: 0in 5.4pt; width: 895.1pt;" valign="top" width="1193">
  <div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(0, 100, 45);">Thanks and best regards</span><span style="font-size: 9pt; color: rgb(0, 100, 45);">,</span></p>
  </div>
  <div><p class="MsoNormal"><b><span style="color: rgb(0, 100, 45);">&nbsp;</span></b></p>
  </div>
  <div><p class="MsoNormal"><b><span style="color: rgb(0, 100, 45);">H</span></b><b><span style="font-size: 9pt; color: rgb(0, 100, 45);">USSAM</span></b><b><span style="font-size: 11pt; color: rgb(0, 100, 45);">&nbsp;</span><span style="color: rgb(0, 100, 45);">A</span></b><b><span style="font-size: 9pt; color: rgb(0, 100, 45);">HMAD</span></b></p>

  </div>
  <div><div><span style="font-size: 9pt; color: rgb(0, 100, 45);">&nbsp;</span><br class="webkit-block-placeholder"></div>
  </div>
  </td>
 </tr>
 <tr>
  <td style="padding: 0in 5.4pt; width: 895.1pt;" valign="top" width="1193"></td>
 </tr>
 <tr>
  <td style="padding: 0in 5.4pt; width: 895.1pt;" valign="top" width="1193"></td>
 </tr>
</tbody></table>

<div><div><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span><br class="webkit-block-placeholder"></div>

</div>

<div><div><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span><br class="webkit-block-placeholder"></div>

</div>

<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<div><p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">&nbsp;Ali
El Moussaoui [mailto:<a href="mailto:mousawi.ali@gmail.com" target="_blank">mousawi.ali@gmail.com</a>]&nbsp;<br>
<b>Sent:</b>&nbsp;Wednesday, December 09, 2009 11:43 AM<br>
<b>To:</b>&nbsp;Hussam Ahmad<br>
<b>Cc:</b>&nbsp;<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<b>Subject:</b>&nbsp;Re: [cisco-voip] Load Balance between SIP dial-peers</span></p>

</div>

</div>

<div><div>&nbsp;<br class="webkit-block-placeholder"></div>

</div>

<div><p class="MsoNormal" style="margin-bottom: 12pt;">they
have different session targets</p>

<div>

<div><p class="MsoNormal">On
Wed, Dec 9, 2009 at 10:21 AM, Hussam Ahmad &lt;<a href="mailto:hahmad@sigma-it.net" target="_blank">hahmad@sigma-it.net</a>&gt;
wrote:</p>

</div>

<div>

<div>

<div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">You can but why do you need it, because
how the first dial-peer will go down.</span></p>

</div>

<div><div><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span><br class="webkit-block-placeholder"></div>

</div>

<table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0">
 <tbody><tr>
  <td style="padding: 0in 5.4pt; width: 895.1pt;" valign="top" width="1193">
  <div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(0, 100, 45);">Thanks and best regards</span><span style="font-size: 9pt; color: rgb(0, 100, 45);">,</span></p>
  </div>
  <div><p class="MsoNormal"><b><span style="color: rgb(0, 100, 45);">&nbsp;</span></b></p>
  </div>
  <div><p class="MsoNormal"><b><span style="color: rgb(0, 100, 45);">H</span></b><b><span style="font-size: 9pt; color: rgb(0, 100, 45);">USSAM</span></b><b><span style="font-size: 11pt; color: rgb(0, 100, 45);">&nbsp;</span><span style="color: rgb(0, 100, 45);">A</span></b><b><span style="font-size: 9pt; color: rgb(0, 100, 45);">HMAD</span></b></p>

  </div>
  <div><p class="MsoNormal"><span style="font-size: 9pt; color: rgb(0, 100, 45);">Cisco Instructor | Sigma IT –
  Saudi Arabia</span></p>
  </div>
  </td>
 </tr>
 <tr>
  <td style="padding: 0in 5.4pt; width: 895.1pt;" valign="top" width="1193">
  <div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">&lt;image001.png&gt;</span></p>
  </div>
  </td>
 </tr>
 <tr>
  <td style="padding: 0in 5.4pt; width: 895.1pt;" valign="top" width="1193">
  <div><p class="MsoNormal"><span style="font-size: 9pt; color: rgb(0, 100, 45);">Olaya St., Akaria 3, Entrance 13, 5th
  Floor, Office 509 | Riyadh | KSA</span></p>
  </div>
  <div><p class="MsoNormal"><span style="font-size: 9pt; color: rgb(0, 100, 45);">Tel: +966-1-2150100</span></p>
  </div>
  <div><p class="MsoNormal"><span style="font-size: 9pt; color: rgb(0, 100, 45);">Fax: +966-1-2151090</span></p>
  </div>
  <div><p class="MsoNormal"><span style="font-size: 9pt; color: rgb(0, 100, 45);">Mobile: +966-55-3266244</span></p>
  </div>
  <div><p class="MsoNormal"><span style="font-size: 9pt; color: rgb(0, 100, 45);">Email:&nbsp;<a href="mailto:hahmad@sigma-it.net" target="_blank"><span style="color: rgb(0, 100, 45);">hahmad@sigma-it.net</span></a></span></p>
  </div>
  <div><p class="MsoNormal"><span style="font-size: 9pt; color: rgb(0, 100, 45);">Website:&nbsp;<a href="http://www.sigma-it.net/" target="_blank"><span style="color: rgb(0, 100, 45);">www.sigma-it.net</span></a></span></p>
  </div>
  <div><p class="MsoNormal"><span style="font-size: 8pt; color: rgb(255, 192, 0);">------------------------------------------------------------------------------------------------------</span></p>
  </div>
  <div><p class="MsoNormal"><span style="font-size: 8pt; color: rgb(0, 100, 45);">This e-mail communication and any
  attachments thereto contain information which is confidential and are
  intended only for the use of the individuals or entities named above. If you
  are not the intended recipient, you are hereby notified that any disclosure,
  copying, distribution or the taking any action in reliance on the contents of
  these documents is strictly prohibited and may be illegal. Please notify us
  of your receipt of this e-mail in error and delete the e-mail and any copies
  of it</span></p>
  </div>
  </td>
 </tr>
</tbody></table>

<div><div><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span><br class="webkit-block-placeholder"></div>

</div>

<div><div><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span><br class="webkit-block-placeholder"></div>

</div>

<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<div><p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">&nbsp;Ali
El Moussaoui [mailto:<a href="mailto:mousawi.ali@gmail.com" target="_blank">mousawi.ali@gmail.com</a>]&nbsp;<br>
<b>Sent:</b>&nbsp;Wednesday, December 09, 2009 11:18 AM<br>
<b>To:</b>&nbsp;<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<b>Subject:</b>&nbsp;[cisco-voip] Load Balance between SIP dial-peers</span></p>

</div>

</div>

<div>

<div><div>&nbsp;<br class="webkit-block-placeholder"></div>

</div>

<div>

<div><p class="MsoNormal">Hello
Guys,<br>
<br>
Is it possible to Load balance between 2 sip dial-peers ?<br>
<br>
Ali</p>

</div>

</div>

</div>

</div>

</div>

</div>

<div><div>&nbsp;<br class="webkit-block-placeholder"></div>

</div>

</div>

</div><p class="MsoNormal"><span style="font-size: 13.5pt;">_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a></span></p>

</div>

</div><div>&nbsp;<br class="webkit-block-placeholder"></div>

</div>

</div>

</div>

</div>

</div>

</div>

</div><div>&nbsp;<br class="webkit-block-placeholder"></div>

</div>

</div></div></div>

</div>


<br>_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
<br></blockquote></div><br>
_______________________________________________<br>cisco-voip mailing list<br><a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><br>https://puck.nether.net/mailman/listinfo/cisco-voip<br></blockquote></div><br></div></body></html>