Hello,
The DR module does not support such a feature, but you can implement it
manually, from your script.
Just create different dialog profiles for each of your carrier, and each
time you route to a specific carrier, set the dialog as belonging to the
coresponding profile with the set_dlg_profile() function ( see [1] ).
After that you can use the profile_get_size MI command ( see [2] ) in
order to fetch the actual number of ongoing calls per carrier.
[1] http://www.opensips.org/html/docs/modules/devel/dialog#id294472
[2] http://www.opensips.org/html/docs/modules/devel/dialog#id295442
Regards,
Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com
On 03/30/2012 04:34 PM, Ali Pey wrote:
Thank you Vlad.
In load balancer module you can use the lb_list command to see the
current load for each destination. That's very useful for
monitoring/reporting tools. Is there a similar command for the DR module?
How can I see the current load for a carrier or gateway in DR module?
Regards,
Ali
On Fri, Mar 30, 2012 at 4:46 AM, Vlad Paiu <[email protected]
<mailto:[email protected]>> wrote:
Hello,
Yes, you could do that. Just use the drouting's is_from_gw()
function ( docs at [1] ) to detect direction. If is_from_gw()
returns true, apply your load-balancer logic, otherwise apply the
DR logic.
[1]
http://www.opensips.org/html/docs/modules/1.8.x/drouting.html#id293884
Regards,
Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com
On 03/29/2012 11:53 PM, Ali Pey wrote:
Is it possible to use the load balancer module on one direction-
from carriers to media gateways and the DR module on the other
direction- from media gateways to carriers.
Regards,
Ali
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users