[sr-dev] kamailio 5.2 : which is the best way to connect to Kamailio and to manage him?

yboujraf at by-research.be yboujraf at by-research.be
Mon Jan 7 03:56:34 CET 2019


Thanks for your quick answer.


Regarding migration 4.2 to 5.2 I will check line by line and try to fix it.
My most issue is the database modules changed and to adapt is taking time.


Regarding the Dev environment, I am trying to use Go (for cross-platform) and kafka connector to get all the events through Database and push notification to my automation then if Kamailio upgrade or change any structure, I will not be impacted.

Like this : 

	KAMAILIO 5.2 -> DB MONGODB NoSQL -> Connector -> Transforms -> Converter -> Kafka 
	Kafka -> Converter -> Transforms -> Connector  -> DB MONGODB NoSQL -> KAMAILIO 5.2 

	I am not sure but if MongoDB is supported by Kamailio 5.2 and if any script is available to install it?

But I have seen into the website at : https://www.kamailio.org/w/features/ 

	External Interaction via
		- RPC control interface – via XMLRPC, JSONRPC, UDP or TCP
	Extensibility APIs
		Java SIP Servlet Application Interface – write Java SIP Servlets to extent your VoIP services and integrate with web services
		Lua Programming Interface
		JavaScript Programming Interface
		Managed Code (C#) Programming Interface
		Python Programming Interface
		Java Programming Interface
		Generic Event API via TCP connections

But I can't find any link to API or other.

Thanks if you could highlight me 

Best Regards,

-----Original Message-----
From: Henning Westerholt <hw at kamailio.org> 
Sent: Sunday, 6 January 2019 15:03
To: sr-dev at lists.kamailio.org; yboujraf at by-research.be
Subject: Re: [sr-dev] kamailio 5.2 : which is the best way to connect to Kamailio and to manage him?

Am Sonntag, 6. Januar 2019, 08:04:17 CET schrieb yboujraf at by-research.be:
> I worked with Kamailio 4.2 and I have updated the Kamailio.cfg to 
> forward some events to my automation system.
> Unfortunately, when I tried to migrate to Kamailio 5.2, the 
> Kamailio.cfg changed and I am not able to copy/paste my code as it is.
> I have read there is new ways to interact with Kamailio 5.2 with 
> scripting or json or directly access to the database.
> Tried to find any information but nothing.
> I am asking if somebody could share a link and example how to interact 
> easily with Kamailio 5.2 then I could update my own code 😉

Hello Youssef,

if you already have a config that worked for an earlier version of Kamailio, then I would suggest to adapt it to 5.2. There were of course several changes, but normally you should be able to fix it with less effort than to write a completely new one.

If you look to the log you should see the lines were you get an error. You can try to google this errors, if you don't get a result, ask here on the list. 

Look into the "New in Kamailio 4.3/4.4/5.x.." documents in the wiki, to get an idea about the changes. 

About the other question, how to interact with Kamailio - there are several options. It depend on your environment and can't be easily answered generally.

Best regards,


Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://skalatan.de/services Kamailio security assessment - https://skalatan.de/de/assessment

This email has been checked for viruses by Avast antivirus software.

More information about the sr-dev mailing list