[OpenSIPS-Users] Standalone OpenSIPS LCR Server

Bogdan-Andrei Iancu bogdan at opensips.org
Thu May 9 15:52:54 CEST 2013


Hello Daryawish,

The best practice is to use the DR module in combination with some
external script to translate the LCR info into info as DR understands.

DR is not cost aware, it simply routes (for a prefix) to a set of
gateways (in the given order). So, what your script has to do is to
arrange the gateways (for a prefix) in an order that reflects the cost.

Once you have the list of gws (for each prefix), DR module will do the
routing and failover by itself.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 05/06/2013 11:20 PM, Dārayavahush Khola wrote:
> Hello Everyone,
>
> I hope this has not been covered before and I am just generating noise
> however, I would like to put together an opensips server who's soul
> purpose is to handle LCR. The server will:
>
> * Receive requests from anywhere (Media Servers, other proxies etc...)
> * Use the DR module to perform LCR
> * Forward the request to the cheapest route
>
> In determining the least-cost, and forwarding to the cheapest route
> there is a strict flow of events that I would like to implement:
>
> * Pull up all entries for a given prefix (exact vs longest matching to
> be discussed)
> * Pick the gateway with the cheapest cost
>     |
>     ---------- 1) Is the retail price cheaper that list? (Yes: Go to 2)
>      |
>      ------> 2) Gateway Available? (Yes: Create the route) (No: Go to 3)
>     |
>     --------> 3) Gateway not Available (Go to the next cheapest
> gateway for the prefix) (iterate to 1)
>
> I have been using Opensips for a couple of years now to do some
> typical tasks however, nothing that would require the implementation
> of such logic. If it's ok with the list's moderators and subscribers,
> I would like to ask for the help from this list in implementing an
> "OpenSIPS LCR Server". The final configuration will be made public
> within this thread, and can be included on the OpenSIPS website if
> felt worthy of it ;).
>
> Before pointing to  solutions such as CDRTool etc.., and how they can
> be retrofitted to get the sought after results, I would like to
> implement an LCR server using *only* opensips with some fields added
> to DR related tables (dialplan, dr_*), and the LCR logic.
>
> If this email is to be accepted as a thread like discussion, I can
> start by including the database fields that should be added, and go
> from there....
>
>
> Your help is appreciated,
>
> Daryawish Khola (PhD).
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list