YouTube - :)

Kamailio Ubuntu

open - source

5

! Kamailio SIP . Ubuntu 18.04/16.04. , open source? :)

Kamailio SIP

Kamailio?

Kamailio SER/Open SER. , Kamailio SIP , , . C Linux/Unix . Kamailio (RTP , , Asterisk) :

  • 5000 ;
  • 300 000 (WOW!) 4 Kamailio!
  • ;

, Kamailio :

  • Registrar server - (UAC) ;
  • Location server - . () SIP ;
  • Proxy server - SIP - ;
  • SIP Application server - SAS. . . , API, XML ;
  • Redirect server - (UAC) . , SIP ;

Kamailio . , :

  • NAT T (NAT traversal) SIP RTP ;
  • / ( );
  • ˸ ;
  • ! ;
  • IPv4 IPv6;
  • SCTP (Stream Control Transmission Protocol) multi homing ( );
  • UDP, TCP, TLS SCTP;
  • Java, Python, Lua, Perl? :)

, :

  1. , Ubuntu 18.04/16.04;
  2. MariaDB ;
  3. Kamailio;

, 1 2 :) .


Kamailio

Ubuntu 16.04 Kamailio, SIP .

GPG :

wget -O- http://deb.kamailio.org/kamailiodebkey.gpg | sudo apt-key add -

/etc/apt/sources.list. 5.1 Kamailio:

$ sudo vim /etc/apt/sources.list.d/kamailio.list

:

deb     http://deb.kamailio.org/kamailio51 xenial main
deb-src http://deb.kamailio.org/kamailio51 xenial main

Kamailio

, . , MySQL :

$ sudo apt install kamailio kamailio-mysql-modules

web :

$ sudo apt install kamailio-websocket-modules

. , , kamailio kamailio -V:

$ which kamailio
/usr/sbin/kamailio

$ kamailio -V
version: kamailio 5.1.2 (x86_64/linux) 
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled with gcc 7.3.0

. , /etc/kamailio/kamctlrc ( vim) , DBENGINE MySQL.

DBENGINE=MYSQL, #

, . , , , Kamailio:

$ kamdbctl create
INFO: creating database kamailio ...
INFO: granting privileges to database kamailio ...
INFO: creating standard tables into kamailio ...
INFO: Core Kamailio tables succesfully created.
Install presence related tables? (y/n): y
INFO: creating presence tables into kamailio ...
INFO: Presence tables succesfully created.
Install tables for imc cpl siptrace domainpolicy carrierroute
drouting userblacklist htable purple uac pipelimit mtree sca mohqueue
rtpproxy rtpengine? (y/n): y
INFO: creating extra tables into kamailio ...
INFO: Extra tables succesfully created.
Install tables for uid_auth_db uid_avp_db uid_domain uid_gflags
uid_uri_db? (y/n): y
INFO: creating uid tables into kamailio ...
INFO: UID tables succesfully created.

, MySQL. :

  • kamailio - kamailiorw. ;
  • kamailioro - kamailioro. ;

. Kamailio /etc/kamailio/kamailio.cfg. SIP :

$ sudo vim /etc/kamailio/kamctlrc
##  SIP 
SIP_DOMAIN=wiki.merionet.ru

, . , #!KAMAILIO:

#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
#!define WITH_ACCDB

Kamailio!

$ sudo systemctl restart kamailio

systemctl status kamailio Kamailio. - , /var/log/kamailio.log.


?


: