1/9/2024 0 Comments Openser xlog![]() The steps are given for Ubuntu/Debian operating systems.Įxecute next SQL script with mysql client: This tutorial does the installation from sources, uses MySQL as database server and unixodbc for Asterisk realtime. The authentication module in Kamailio can be configured to connect to any database and fetch the password from custom table and column, therefore creation of a database view is not really required, unless you want for other purposes. Kamailio will be used to scale Asterisk, by handling the user authentication and registration. However, this document uses the opposite approach - use Asterisk database to get the SIP user profile. ![]() Soon I will take the time to upgrade that document for Kamailio 3.0.x and Asterisk 1.6.2, the latest stable versions. The approach used in that document is to use Kamailio database and create database views for Asterisk, a good approach if you started with Kamailio and want to add Asterisk for media services, mainly being about voicemail. Modparam("dispatcher", "list_file", "/etc/kamailio/dispatcher.Asterisk 1.4.x and Kamailio 1.5.x Realtime Integration #modparam("dispatcher", "db_url",DBPGURL) Modparam("nathelper|registrar", "received_avp", "$avp(s:rcv)") # default invite retransmission timeout after 1xx: 120sec # auto-discard branches from previous serial forking leg Modparam("ctl", "binrpc", "unix:/var/run/kamailio/kamailio_ctl") Modparam("mi_fifo", "fifo_name", "/var/run/kamailio/kamailio_fifo") Mpath="/usr/lib/x86_64-linux-gnu/kamailio/modules" # set paths to location of modules (to sources or installation folders) # LOG Levels: 3=DBG, 2=INFO, 1=NOTICE, 0=WARN, -1=ERRĪdvertised_address="MY_PUBLIC_IP_ADDRESS" #!define DBURL JANSSON_RPC "conn=presence addr=localhost port=8080 priority=10 weight=10" ![]() I've been testing with Digital Ocean and it looks like a couple of droplets can be configured just fine with a shared IP. I have left the POSTGRES info in the Kamailio config as I will be bringing this into play in later revisions and when we step up to multiple Kamailio instances. Please note, in the dispatcher list I have added transport=tcp to my FusionPBX servers, this was necessary on my system before I added code to remove X- headers from the carrier as the max packet size for UDP was being exceeded. Please note, for this to work we need to make some ACL changes to Freeswitch and a change to the profile settings. In this version I have achieved this by adding another group to the dispatcher list, this set, set 20, is a list of your carrier IPs. What became apparent is that in order for things like conferencing, parking, queuing etc to work, we also need to bring in the DIDs via Kamailio, if not then we have no way of tracking which server they are on. Here is the latest version of the Kamailio script, this seems to be working well.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |