<div dir="ltr"><div><div><div>Well, <br><br>You could have FreeSwitch send it in the bye message when each call hangs up.      That will give you a rough idea.<br><br></div>ie:<br><br>&lt;action application=&quot;set&quot; data=&quot;sip_bye_h_X-CPU=95%&quot;/&gt;<br>
<br></div>And you could set this variable in the hang up hook and opensips could use this number for load balancing and strip the info before sending back to the customer.<br><br><br><br></div><div><br><br><div><br><br></div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 17, 2014 at 4:10 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div><tt>Hello,<br>
        <br>
        Indeed, we had some discussions with Ken Rice about
        interconnecting OpenSIPS and FreeSwitch. The main idea is to
        make use of the Load-Balancer module in OpenSIPS (please note
        this is not a simple dispatcher or probabilistic/hashing
        routing, but actually a LOAD based routing engine) and have this
        LB module connected into FreeSwitch to collect information about
        real load on FS (currently, LB module in OpenSIPS counts as load
        the number of ongoing calls). But as here suggested, the load on
        FS can be evaluated based on CPU/memory usage or any other
        internal FS parameters which may be relavant.<br>
        <br>
        The interconnection between OS and FS can be either via one of
        the FS APIs (having the two software talking directly) or, as
        Jay suggested, directly via SIP OPTIONS (when to add the load
        info in replied can be determined based on the src IP of the
        OPTIONS request).<br>
        <br>
        Regards,<br>
      </tt>
      <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre><div><div class="h5">
      On 17.02.2014 17:40, Ali Pey wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div>This would be a pretty cool feature and I know that
          OpenSIPS guys have discussed such a feature with FreeSWITCH
          dev. This would be a great addition for load balancing. <br>
        </div>
        <div><br>
          <div class="gmail_extra">
            Adding OpenSIPS user mailing list.</div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">Regards,</div>
          <div class="gmail_extra">Ali Pey</div>
          <div class="gmail_extra"><br>
            <br>
            <div class="gmail_quote">
              On Mon, Feb 17, 2014 at 8:15 AM, Karsten Horsmann <span dir="ltr">&lt;<a href="mailto:khorsmann@gmail.com" target="_blank">khorsmann@gmail.com</a>&gt;</span>
              wrote:<br>
              <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 dir="ltr">Hello List,
                  <div><br>
                  </div>
                  <div>i read too the nice <a href="http://wiki.freeswitch.org/wiki/Enterprise_deployment" target="_blank">http://wiki.freeswitch.org/wiki/Enterprise_deployment</a>
                    Enterprise Deployment Setups.</div>
                  <div>Personaly i run FS 1.2.x as Session Border
                    Controller where sip clients could register and
                    internal (3rd party) IVRs could reachs the clients.<br>
                  </div>
                  <div><br>
                  </div>
                  <div>I plan to use DNS SRV on the to scale up the FS
                    Servers and have fault talerance.</div>
                  <div><br>
                  </div>
                  <div>For that i have to diffrent uplinks that i could
                    use for the DNS SRV Records and AFAIK i could use
                    track-calls=true in sofia profiles</div>
                  <div>to track the right incoming/outgoing profile.</div>
                  <div>
                    <br>
                  </div>
                  <div>The only thing i missed is that my 3rd party IVRs
                    used FS as outbound proxy and therefore only one IP
                    is spezified on the internal network.</div>
                  <div><br>
                  </div>
                  <div>With an virtual IP on the FS side i could solve
                    that but then the FS servers is IMHO limited to be a
                    active/passiv duo.</div>
                  <div><br>
                  </div>
                  <div>Any ideas how to handle that?</div>
                  <div><br>
                  </div>
                </div>
                <div class="gmail_extra"><br>
                  <br>
                  <div class="gmail_quote">2014-02-17 2:45 GMT+01:00 jay
                    binks <span dir="ltr">&lt;<a href="mailto:jaybinks@gmail.com" target="_blank">jaybinks@gmail.com</a>&gt;</span>:<br>
                    <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>
                        <div>
                          <div dir="ltr">So I want to bash out a feature
                            I was thinking of, please can anyone chime
                            in some ideas on this.
                            <div>
                              <br>
                            </div>
                            <div>So its easy to have OpenSIP / Kamailio
                              ( dispatcher ) send SIP Options to FS to
                              see if its responding ..  this is great
                              ...</div>
                            <div><br>
                            </div>
                            <div>My request would be to have some kind
                              of control over the response FS Sends
                              back.</div>
                            <div>What I would love is to respond with
                              idle CPU , current SPS / Max SPS or
                              channels / Max Channels.</div>
                            <div><br>
                            </div>
                            <div>This is only a high level &quot;this would
                              be nice&quot; , so I havnt totally thought this
                              through but...</div>
                            <div>we would have to provide an ACL for who
                              to provide this back to,  coz I wouldnt
                              really want any old guy on the internet
                              sending me options and me respond going
                              ... oh yea bro, Im at 90% ... dont have to
                              try hard to DDOS Me.. :)</div>
                            <div><br>
                            </div>
                            <div>but yea... if we could give this back
                              to the load balancers, then we could
                              easily instruct them to back traffic off
                              to this gateway. </div>
                            <div><br>
                            </div>
                            <div>the next part is , how do you back off
                              the traffic.</div>
                            <div>one option is to have FS respond
                              differently if any of these are close to
                              thresholds.</div>
                            <div>or to provide these values in custom
                              headers, but that would require changes in
                              dispatcher ( which is ok I Guess )</div>
                            <div><br>
                            </div>
                            <div>anyways... I wanted some input on
                              peoples thoughts here..</div>
                            <div>let me know what you think.</div>
                            <span><font color="#888888">
                                <div><br>
                                </div>
                                <div><br>
                                  Jay
                                </div>
                              </font></span></div>
                          <br>
                        </div>
                      </div>
_________________________________________________________________________<br>
                      Professional FreeSWITCH Consulting Services:<br>
                      <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                      <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
                      <br>
                      FreeSWITCH-powered IP PBX: The CudaTel
                      Communication Server<br>
                      <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
                      <br>
                      Official FreeSWITCH Sites<br>
                      <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                      <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                      <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                      <br>
                      FreeSWITCH-users mailing list<br>
                      <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                      <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                      UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                      <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                      <br>
                    </blockquote>
                  </div>
                  <span><font color="#888888"><br>
                      <br clear="all">
                      <div><br>
                      </div>
                      -- <br>
                      Mit freundlichen Grüßen<br>
                      *Karsten Horsmann*<br>
                    </font></span></div>
                <br>
_________________________________________________________________________<br>
                Professional FreeSWITCH Consulting Services:<br>
                <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
                <br>
                FreeSWITCH-powered IP PBX: The CudaTel Communication
                Server<br>
                <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
                <br>
                Official FreeSWITCH Sites<br>
                <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                <br>
                FreeSWITCH-users mailing list<br>
                <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                <br>
              </blockquote>
            </div>
            <br>
          </div>
          <img height="1px" width="1px"></div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>