[OpenSIPS-Users] Can load balancer show total number of call for a gateway

Binan AL Halabi binanalhalabi at yahoo.com
Fri Sep 7 11:09:37 CEST 2012


Hi,

$si - reference to IP source address of the message

 if ($si==GW1-IP-ADDRESS) {
     # Incoming call
     # Increment $avp(IC_GW1)

 } //Binan

--- On Thu, 9/6/12, SamyGo <govoiper at gmail.com> wrote:

From: SamyGo <govoiper at gmail.com>
Subject: Re: [OpenSIPS-Users] Can load balancer show total number of call for a gateway
To: "OpenSIPS users mailling list" <users at lists.opensips.org>
Date: Thursday, September 6, 2012, 10:25 PM

Hi Ali,
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.

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) )
BR
Sammy


On Fri, Sep 7, 2012 at 1:58 AM, Ali Pey <alipey at gmail.com> wrote:

Hello,
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.


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.


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?
Regards,Ali Pey




_______________________________________________

Users mailing list

Users at lists.opensips.org

http://lists.opensips.org/cgi-bin/mailman/listinfo/users





-----Inline Attachment Follows-----

_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120907/07418806/attachment.htm>


More information about the Users mailing list