[OpenSIPS-Users] Standalone OpenSIPS LCR Server

Dārayavahush Khola da.khola at gmail.com
Mon May 6 22:20:59 CEST 2013


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).



More information about the Users mailing list