# firstly we need to install packages,
1 |
$apt-get install kamailio kamailio-mysql-modules kamailio-tls-modules |
# 2 # We should configure kamalio first time, MYSQL db and Configuration of Kmctl
1 2 3 4 5 6 |
# Search configuration file in your server $ find / -name "kamdbctl" # /usr/sbin/kamdbctl #Edit your configuration file what every you want $ nano /usr/sbin/kamdbctl |
# 3 # Please edit also MYSQL connection configuration inside of
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
nano /usr/sbin/kamdbctl >> DBENGINE=MYSQL # ----------------------------- root@kutayzorlu.com# kamdbctl create MySQL password for root: ..... When you enter values it will automaticly create database. also edit this file # nano /etc/kamailio/kamctlrc # kutayzorlu.com > Example Output of Installing SIP SERVER MYSQL DATABASE # kamdbctl create MySQL password for root: INFO: test server charset Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. INFO: creating database sip_kamailio ... Warning: Using a password on the command line interface can be insecure. INFO: granting privileges to database sip_kamailio ... Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. INFO: creating standard tables into sip_kamailio ... Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. INFO: Core Kamailio tables succesfully created. Install presence related tables? (y/n): y INFO: creating presence tables into sip_kamailio ... Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. INFO: Presence tables succesfully created. Install tables for imc cpl siptrace domainpolicy carrierroute userblacklist htable purple uac pipelimit mtree sca mohqueue rtpproxy? (y/n): y INFO: creating extra tables into sip_kamailio ... Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. 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 sip_kamailio ... Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. Warning: Using a password on the command line interface can be insecure. INFO: UID tables succesfully created. |
# !##
1 2 |
$database access host (from where is kamctl used) DBACCESSHOST=192.x.X.X |
Errors!!!
Please look at /var/log/syslog
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
21:02:05 kutayzorlu systemd[1]: Stopping LSB: Start the Kamailio SIP proxy server... 21:02:05 kutayzorlu kamailio[2648]: * Kamailio not yet configured. Edit /etc/default/kamailio first. # Example configuration # # Kamailio startup options # # Set to yes to enable kamailio, once configured properly. RUN_KAMAILIO=yes # User to run as USER=kamailio # Group to run as GROUP=kamailio # Amount of shared and private memory to allocate # for the running Kamailio server (in Mb) SHM_MEMORY=64 PKG_MEMORY=4 # Config file CFGFILE=/etc/kamailio/kamailio.cfg # Enable the server to leave a core file when it crashes. # Set this to 'yes' to enable Kamailio to leave a core file when it crashes # or 'no' to disable this feature. This option is case sensitive and only # accepts 'yes' and 'no' and only in lowercase letters. # On some systems it is necessary to specify a directory for the core files # to get a dump. Look into the kamailio init file for an example configuration. #DUMP_CORE=yes |
1 2 3 4 |
please check ports , tcp 0 0 192.168.x.x:5060 0.0.0.0:* LISTEN - tcp 0 0 127.0.0.1:5060 0.0.0.0:* LISTEN - |