[OpenSIPS-Users] [NEW] Dynamic Routing enhancements in OpenSIPS 1.8.0

Ali Pey alipey at gmail.com
Fri Mar 30 20:26:19 CEST 2012


Hi Vlad,

So when I call the do_routing() function, how would I know where it
eventually routed the call?

Regards,
Ali


On Fri, Mar 30, 2012 at 12:28 PM, Vlad Paiu <vladpaiu at opensips.org> wrote:

> **
> 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 Developerhttp://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 <vladpaiu at opensips.org> 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 Developerhttp://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
> 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/20120330/06d982d8/attachment.htm>


More information about the Users mailing list