Integration of OpenSIPS and Asterisk

#1

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 !

0 Likes

#2

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

#3

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

0 Likes

#4

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

1 Like

#5

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.

0 Likes

#6

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.

0 Likes

#7

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 !

0 Likes

#8

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

#9

I’m with you I agree with this

0 Likes

#10

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

#11

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 ?

0 Likes

#12

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

1 Like

#13

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

0 Likes

#14

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 !

0 Likes

#16

Ok mani, I appreciate your help

0 Likes

#17

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

#18

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

0 Likes

#19

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.

0 Likes

#20

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.

0 Likes