<div dir="ltr">Does using <span style="font-size:16px">Kamailio and the dispatcher module require programming?  Is this a matter of reading the documentation and some configuration or does this involve writing a script for handling any SIP dialogue that might come my way?  I want to implement this in 3 - 6 months.  I don't want to embark on an 18 month research endeavor. </span></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 19, 2016 at 4:38 PM,  <span dir="ltr"><<a href="mailto:voiceops-request@voiceops.org" target="_blank">voiceops-request@voiceops.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send VoiceOps mailing list submissions to<br>
        <a href="mailto:voiceops@voiceops.org">voiceops@voiceops.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://puck.nether.net/mailman/listinfo/voiceops" rel="noreferrer" target="_blank">https://puck.nether.net/mailman/listinfo/voiceops</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:voiceops-request@voiceops.org">voiceops-request@voiceops.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:voiceops-owner@voiceops.org">voiceops-owner@voiceops.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of VoiceOps digest..."<br>
<br>Today's Topics:<br>
<br>
   1. Re: Load balancing SIP (Joseph Jackson)<br>
   2. Re: Load balancing SIP (Alex Balashov)<br>
   3. Re: Load balancing SIP (Joseph Jackson)<br>
   4. Re: Load balancing SIP (Ryan Delgrosso)<br>
   5. Re: Load balancing SIP (Alex Balashov)<br>
<br><br>---------- Forwarded message ----------<br>From: Joseph Jackson <<a href="mailto:jjackson@aninetworks.net">jjackson@aninetworks.net</a>><br>To: "Sykes, Aaron" <<a href="mailto:Aaron.Sykes@cdk.com">Aaron.Sykes@cdk.com</a>>, "<a href="mailto:voiceops@voiceops.org">voiceops@voiceops.org</a>" <<a href="mailto:voiceops@voiceops.org">voiceops@voiceops.org</a>><br>Cc: <br>Date: Tue, 19 Apr 2016 23:07:25 +0000<br>Subject: Re: [VoiceOps] Load balancing SIP<br>





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal"><span style="color:#44546a">On separate occasions.   The brocade load balancers have the option to be “sticky” – ie all follow on requests go to the same sbc. 
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a">For the brocades they were placed topology wise in front of the SBCs so that all requests and replies cross the load balancer.  You can do this by having the load balancer be the default gateway for the SBC’s.    
 It was pretty simple at least for the brocade configuration.  Note that RTP traffic was not load balanced of course.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a">I will see if I can find my notes on the kamailio config.    Used the dispatch module if I remember correctly.  I will try and find them as its been awhile.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a">Joseph<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Sykes, Aaron [mailto:<a href="mailto:Aaron.Sykes@cdk.com" target="_blank">Aaron.Sykes@cdk.com</a>]
<br>
<b>Sent:</b> Tuesday, April 19, 2016 6:00 PM<br>
<b>To:</b> Joseph Jackson; <a href="mailto:voiceops@voiceops.org" target="_blank">voiceops@voiceops.org</a><br>
<b>Subject:</b> RE: Load balancing SIP<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:#1f497d">Did you use these devices for this purpose on separate occasions or in unison?   How many SBCs were being used in the distribution?  Can you elaborate on the basic topology?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Aaron<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Joseph Jackson [<a href="mailto:jjackson@aninetworks.net" target="_blank">mailto:jjackson@aninetworks.net</a>]
<br>
<b>Sent:</b> Tuesday, April 19, 2016 2:34 PM<br>
<b>To:</b> Sykes, Aaron <<a href="mailto:Aaron.Sykes@cdk.com" target="_blank">Aaron.Sykes@cdk.com</a>>;
<a href="mailto:voiceops@voiceops.org" target="_blank">voiceops@voiceops.org</a><br>
<b>Subject:</b> RE: Load balancing SIP<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:#44546a">Ive done it with Brocade and Kamailio.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> VoiceOps [<a href="mailto:voiceops-bounces@voiceops.org" target="_blank">mailto:voiceops-bounces@voiceops.org</a>]
<b>On Behalf Of </b>Sykes, Aaron<br>
<b>Sent:</b> Tuesday, April 19, 2016 4:32 PM<br>
<b>To:</b> <a href="mailto:voiceops@voiceops.org" target="_blank">voiceops@voiceops.org</a><br>
<b>Subject:</b> [VoiceOps] Load balancing SIP<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Has anyone had any success load balancing SIP?  More specifically distributing SIP registrations across a number of access SBCs and maintaining persistence based on source IP.  By maintaining source IP persistence subsequent calls would
 go to the SBC to which they are registered.  In this case each of several SBCs cache registrations  for a single SIP registrar.     Has anyone used F5 or Kamailio for this..or some other SIP proxy or load balancer?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thank You,<u></u><u></u></p>
<p class="MsoNormal">Aaron<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message
 is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately
 by return email and delete the message and any attachments from your system.<u></u><u></u></span></p>
</div>
</div>

<br><br>---------- Forwarded message ----------<br>From: Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>><br>To: <a href="mailto:voiceops@voiceops.org">voiceops@voiceops.org</a><br>Cc: <br>Date: Tue, 19 Apr 2016 19:08:59 -0400<br>Subject: Re: [VoiceOps] Load balancing SIP<br>On 04/19/2016 07:07 PM, Joseph Jackson wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Used the dispatch module if I remember correctly.  I will try and find<br>
them as its been awhile.<br>
</blockquote>
<br>
Yep, dispatcher would be the canonical approach:<br>
<br>
<a href="http://kamailio.org/docs/modules/4.4.x/modules/dispatcher.html" rel="noreferrer" target="_blank">http://kamailio.org/docs/modules/4.4.x/modules/dispatcher.html</a><br>
<br>
However, like many Kamailio modules, dispatcher simply provides some logic and database binding. You are free to implement your own (possibly more sophisticated) distribution strategies in Kamailio's elaborate DSL.<br>
<br>
-- Alex<br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
1447 Peachtree Street NE, Suite 700<br>
Atlanta, GA 30309<br>
United States<br>
<br>
Tel: <a href="tel:%2B1-800-250-5920" value="+18002505920" target="_blank">+1-800-250-5920</a> (toll-free) / <a href="tel:%2B1-678-954-0671" value="+16789540671" target="_blank">+1-678-954-0671</a> (direct)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
<br><br>---------- Forwarded message ----------<br>From: Joseph Jackson <<a href="mailto:jjackson@aninetworks.net">jjackson@aninetworks.net</a>><br>To: Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>>, "<a href="mailto:voiceops@voiceops.org">voiceops@voiceops.org</a>" <<a href="mailto:voiceops@voiceops.org">voiceops@voiceops.org</a>><br>Cc: <br>Date: Tue, 19 Apr 2016 23:10:14 +0000<br>Subject: Re: [VoiceOps] Load balancing SIP<br>Alex would for sure know more than me (dude is wicked smart).  Also this was a very very small install.<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: VoiceOps [mailto:<a href="mailto:voiceops-bounces@voiceops.org">voiceops-bounces@voiceops.org</a>] On Behalf Of Alex Balashov<br>
Sent: Tuesday, April 19, 2016 6:09 PM<br>
To: <a href="mailto:voiceops@voiceops.org">voiceops@voiceops.org</a><br>
Subject: Re: [VoiceOps] Load balancing SIP<br>
<br>
On 04/19/2016 07:07 PM, Joseph Jackson wrote:<br>
<br>
> Used the dispatch module if I remember correctly.  I will try and find<br>
> them as its been awhile.<br>
<br>
Yep, dispatcher would be the canonical approach:<br>
<br>
<a href="http://kamailio.org/docs/modules/4.4.x/modules/dispatcher.html" rel="noreferrer" target="_blank">http://kamailio.org/docs/modules/4.4.x/modules/dispatcher.html</a><br>
<br>
However, like many Kamailio modules, dispatcher simply provides some logic and database binding. You are free to implement your own (possibly more sophisticated) distribution strategies in Kamailio's elaborate DSL.<br>
<br>
-- Alex<br>
<br>
--<br>
Alex Balashov | Principal | Evariste Systems LLC<br>
1447 Peachtree Street NE, Suite 700<br>
Atlanta, GA 30309<br>
United States<br>
<br>
Tel: <a href="tel:%2B1-800-250-5920" value="+18002505920">+1-800-250-5920</a> (toll-free) / <a href="tel:%2B1-678-954-0671" value="+16789540671">+1-678-954-0671</a> (direct)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a> _______________________________________________<br>
VoiceOps mailing list<br>
<a href="mailto:VoiceOps@voiceops.org">VoiceOps@voiceops.org</a><br>
<a href="https://puck.nether.net/mailman/listinfo/voiceops" rel="noreferrer" target="_blank">https://puck.nether.net/mailman/listinfo/voiceops</a><br>
<br>
<br><br>---------- Forwarded message ----------<br>From: Ryan Delgrosso <<a href="mailto:ryandelgrosso@gmail.com">ryandelgrosso@gmail.com</a>><br>To: <a href="mailto:voiceops@voiceops.org">voiceops@voiceops.org</a><br>Cc: <br>Date: Tue, 19 Apr 2016 16:37:12 -0700<br>Subject: Re: [VoiceOps] Load balancing SIP<br>
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Is there a reason the industry standard of using DNS SRV records
    wouldnt apply here? <br>
    <br>
    Be aware if this is access side and performing nat traversal you may
    encounter issues with far end nat devices barking if your response
    comes from a different IP than the original request went to. <br>
    <br>
    <div>On 4/19/2016 2:32 PM, Sykes, Aaron
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      
      
      <div>
        <p class="MsoNormal">Has anyone had any success load balancing
          SIP?  More specifically distributing SIP registrations across
          a number of access SBCs and maintaining persistence based on
          source IP.  By maintaining source IP persistence subsequent
          calls would go to the SBC to which they are registered.  In
          this case each of several SBCs cache registrations  for a
          single SIP registrar.     Has anyone used F5 or Kamailio for
          this..or some other SIP proxy or load balancer?<u></u><u></u></p>
        <p class="MsoNormal"><u></u> <u></u></p>
        <p class="MsoNormal">Thank You,<u></u><u></u></p>
        <p class="MsoNormal">Aaron<u></u><u></u></p>
        <p class="MsoNormal"><u></u> <u></u></p>
        <p class="MsoNormal"><u></u> <u></u></p>
        <p class="MsoNormal"><u></u> <u></u></p>
      </div>
      <hr>This message and any attachments are intended only for the use
      of the addressee and may contain information that is privileged
      and confidential. If the reader of the message is not the intended
      recipient or an authorized representative of the intended
      recipient, you are hereby notified that any dissemination of this
      communication is strictly prohibited. If you have received this
      communication in error, notify the sender immediately by return
      email and delete the message and any attachments from your system.<br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
VoiceOps mailing list
<a href="mailto:VoiceOps@voiceops.org" target="_blank">VoiceOps@voiceops.org</a>
<a href="https://puck.nether.net/mailman/listinfo/voiceops" target="_blank">https://puck.nether.net/mailman/listinfo/voiceops</a>
</pre>
    </blockquote>
    <br>
  </div>

<br><br>---------- Forwarded message ----------<br>From: Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>><br>To: <a href="mailto:voiceops@voiceops.org">voiceops@voiceops.org</a><br>Cc: <br>Date: Tue, 19 Apr 2016 19:38:27 -0400<br>Subject: Re: [VoiceOps] Load balancing SIP<br>On 04/19/2016 07:37 PM, Ryan Delgrosso wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
far end nat devices barking if your response comes from a different IP<br>
than the original request went to.<br>
</blockquote>
<br>
Use of Path would be necessary to deal with this.<br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
1447 Peachtree Street NE, Suite 700<br>
Atlanta, GA 30309<br>
United States<br>
<br>
Tel: <a href="tel:%2B1-800-250-5920" value="+18002505920" target="_blank">+1-800-250-5920</a> (toll-free) / <a href="tel:%2B1-678-954-0671" value="+16789540671" target="_blank">+1-678-954-0671</a> (direct)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
<br>_______________________________________________<br>
VoiceOps mailing list<br>
<a href="mailto:VoiceOps@voiceops.org">VoiceOps@voiceops.org</a><br>
<a href="https://puck.nether.net/mailman/listinfo/voiceops" rel="noreferrer" target="_blank">https://puck.nether.net/mailman/listinfo/voiceops</a><br>
<br></blockquote></div><br></div>