Hi Binan,<div><br></div><div>Sometimes I wish you would read the question before trying to answer. If you don't have an answer, you don't need to come up with one. No body is forcing you.</div><div><br></div><div>1- First of all, how is this related to load balancer modules? As you can see the title of email is talking about the load balancer module.</div>
<div>2- All my GW IP addresses are in the database, I don't want to list them in my config file and evey time these is s change I would have to change the config file and restart the service.</div><div>3- I need a solution that would integrate with load balacer module and/or the dialog module so I can use the MI commands and it would be automatic. What you are saying here doesn't have a real world practice.</div>
<div><br></div><div>Thanks,</div><div>Ali</div><div><br><br><div class="gmail_quote">On Fri, Sep 7, 2012 at 5:09 AM, Binan AL Halabi <span dir="ltr"><<a href="mailto:binanalhalabi@yahoo.com" target="_blank">binanalhalabi@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Hi,<strong><br><br>$si</strong> - reference to IP source address of the message
<br><pre> if ($si==GW1-IP-ADDRESS) {
# Incoming call<br> # Increment $avp(IC_GW1)<br><br> } </pre>//Binan<br><br>--- On <b>Thu, 9/6/12, SamyGo <i><<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px">
<br>From: SamyGo <<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>><br>Subject: Re: [OpenSIPS-Users] Can load balancer show total number of call for a gateway<br>To: "OpenSIPS users mailling list" <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
Date: Thursday, September 6, 2012, 10:25 PM<div><div class="h5"><br><br><div>Hi Ali,<div><br></div><div>AFAIK you can't do this from Load-balancer, but the possible solution is use variable $avp(IC_GW1) for each gateway to count the incoming calls from particular gateways (Dialogue module based profiling) and then see how many calls a gateway has Incoming/Outgoing from/to a particular gateway.</div>
<div><br>The real deal is to communicate the populated incoming calls variable to the load-balancer module. (Dynamically increment/decrement a g/w capacity based on the $avp(IC_GW1) )</div><div><br></div><div>BR<br>Sammy</div>
<div><br><br><div>On Fri, Sep 7, 2012 at 1:58 AM, Ali Pey <span dir="ltr"><<a rel="nofollow" href="http://mc/compose?to=alipey@gmail.com" target="_blank">alipey@gmail.com</a>></span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<div><br></div><div>Let's say I have a sip trunk with 100 channels. The calls come in and are distributed to 4 gateways through the load_balancer module. Load balancer module can show all active call going to the gateways but not the call originated from the gateways to a sip trunk.</div>
<div><br></div><div>If there are outgoing calls from the gateways to the sip trunks, those will not be accounted for on the load balancer module. Basically load balancer can keep account for number of active calls on one direction.</div>
<div><br></div><div>Is there a way that I can see the total number of active calls on a gateway (both incoming and outgoing) through the load balancer module?</div><div><br></div><div>Regards,</div><div>Ali Pey</div><div>
<br></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a rel="nofollow" href="http://mc/compose?to=Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a rel="nofollow" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</div><br></div></div>-----Inline Attachment Follows-----<div class="im"><br><br><div>_______________________________________________<br>Users mailing list<br><a href="http://mc/compose?to=Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div></div></blockquote></td></tr></tbody></table><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>