Integration of OpenSIPS and Asterisk

Hello everyone, I hope that you are passing a good time,
well I want to do a small lab : integration of Asterisk and OpenSIPS for Load balance Voip Traffic calls purposes, I have already installed Opensips v2.4 in my debian machine and Asterisk v 13,

but i really dont know how to start to configure and Load balance the calls and route them,
I will appreciate your help or suggestions or anything,

Thank you for your help in advance !

Well, think you should start at the opensips forum… as you want to use that as a loadbalancer…

Means you have to configure the opensips proxy.

Just as a tip, have a look at http://kb.asipto.com, its not opensips but kamailio information, but those two are a lot alike…

1 Like

Thank you for your answer,
I liked the Kamailio Website , is there any forum or website for OpenSIPS also ?

Dont know I use kamailio, not opensips… Just google and the oracle will answer…

1 Like

I have been searching for like 2 weeks in the web, I didn’t find something interesting and detailed about the OpenSIPS and Asterisk integration( Only installation etc …), the documentation also is limited, I can say that kamailio is providing more resources than OpenSIPS.

Well, this I just found on the opensips website:

https://www.opensips.org/Documentation/Tutorials-LoadBalancing

It explains how to configure opensips so you can loadbalance to yate in this case, but can just as easily be Asterisk, Freeswitch of something else…

Its not light reading material, but it tells you how to configure loadbalancing…

No one said its easy… good luck.

I have already seen that, but no details, didn’t work for me, i’d like really to find more details i’m beginner with OpenSIPS,

Anyway thank you !

Then I would try Kamailio, with the information you can find on kb.asipto.com you should be able to build a loadbalancer.

1 Like

I’m with you I agree with this

Hi adam-daymoun,
We have tested multiple options for LB.
Between openSIPS & Kamilio, openSIPS has better documentation.
In openSIPS, you have to write everything in one script file.

The OpenSIPs configuration script has three main logical parts :

  1. global parameters
  2. modules section
  3. routing logic

You can follow the below link for basic implementation, easy to understand routing logic.

https://www.opensips.org/Documentation/Tutorials-OpenSIPSAsteriskIntegration-1-8

1 Like

Thank you mani for your answer,
I’m trying to do so, but it still fails for me, maybe because i’m using a newer versions of OpenSIPS,

that work for you ?

Yes, we have a POC script, I will share it with you in couple of days.

1 Like

Thank you so much, i will be so happy for this

can you give me your email, contact or anything, to keep in touch with you, i’m working on OpenSIPS project in the time being !

Ok mani, I appreciate your help

This is exactly how it works in Kamailio because OpenSIPs is the fork of OpenSER and when they forked OpenSER it was a case of how they wanted to move forward so it became Kamailio (OperSER) and OpenSIPs (the forked project of OpenSER). So they both follow the exact same logic, syntax and structure. In fact they share a lot of the same core modules.

1 Like

I want to configure Kamailio server so that traffic will be forwarded to other 2 asterisk servers equally
i have already read about the dispatcher module
i think there is a list i should edit to add the 2 SIP addresses,
for the dispatcher list, should i create one ? or it’s already there ?
Thanks in advance

Honestly, this is the wrong place to be asking to for help on how Kamailio works. If you want to learn Kamailio please refer to their site and resources for these questions.

Hi Blaze,

I know openSIPS and Kamilio got started from same base project. For us when we are evaluating both, we felt openSIPS has better documentation & tutorials, which will be helpful for someone who is new to load balancing VoIP solutions.

Hi @Mani3274 So finally have you done with OpenSips or Kamailio?