centos6.5 assume kamailio-v4.3.2 server

Source: Internet
Author: User
Tags postgres database egrep


----------------------------------------------

----------------------------------------------


My installation environment is centos6.5 version

The first things to do are:

The environment is well-configured.

Specific on-line search, this side is not specifically said.


1 Download Source:


Switch directory to user home directory

cd~


Open the official website download link on the IE Browser Search window to view the latest version:

http://www.kamailio.org/pub/kamailio/latest/src/


And then

Wget http://www.kamailio.org/pub/kamailio/latest/src/(The version you just got)

:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/57/wKiom1X6fl_R52gkAAHCDGAn7v4030.jpg "title=" Official download page "Width=" 439 "height=" 216 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:439px;height:216px; "alt=" Wkiom1x6fl_ R52gkaahcdgan7v4030.jpg "/>

Current version: Http://www.kamailio.org/pub/kamailio/latest/src/kamailio-4.3.2_src.tar.gz


Unzip to current directory:

#tar ZXVF kamailio-4.3.2_src.tar.gz

#cd kamailio-4.3.2

#make Flavour=kamailio CFG

#vim Modules.lst Open Modules.lst to find the "exclude_modules" variable and remove the Db_mysql field from it.


2 compiling

#make All

#make Install

The Kamailio executable is installed by default under the/usr/local/sbin path, and the configuration file is installed under/usr/local/etc/kamailio.


3 Configuration

Configuring Environment variables

Kamailio environment variables are stored in the/USR/LOCAL/ETC/KAMAILIO/KAMCTLRC file.

#vi /USR/LOCAL/ETC/KAMAILIO/KAMCTLRC


The following is my configuration in this file may be a bit long, I will need to modify the options in red font, for reference.

------------------------------------------------------------------------------------

1 # $Id $

2 #

3 # The Kamailio configuration file for the control tools.

4 #

5 # Here's can set variables used in the KAMCTL and kamdbctl setup

6 # Scripts. Per Default All variables here is commented out, the control tools

7 # would use their internal default values.

8

9 # # your SIP domain

sip_domain=192.168.0.193 (This is a domain name, if you do a test in the LAN, you can use the IP address of the Linux native, my IP address is this)

11

# # # Chrooted Directory

# $CHROOT _dir= "/path/to/chrooted/directory"

14

# # Database Type:mysql, Pgsql, ORACLE, Db_berkeley, dbtext, or SQLITE

# By default none is loaded

17 #

If you want to setup a database with Kamdbctl, you must at least specify

# this parameter.

dbengine=mysql (Cancel "#" comment, below the same does not do explanation)

21st

# # # Database Host

Dbhost=localhost

24

-# # Database name (for ORACLE this is TNS name)

Dbname=kamailio

27

# database path used by dbtext, Db_berkeley or SQLite

# db_path= "/usr/local/etc/kamailio/dbtext"

30

# # # Database Read/write user

dbrwuser= "Kamailio"

33

# # Password for database read/write user

dbrwpw= "Kamailiorw"

36

Notoginseng # # Database Read Only user

dbrouser= "Kamailioro"

39

+ # Password for database read only user

dbropw= "Kamailioro"

42

# # Database access host (from where is kamctl used)

dbaccesshost=192.168.0.193

45

# # # Database Super User (for ORACLE this is ' scheme-creator ' user)

dbrootuser= "Root"

48

# User Name column

usercol= "username"

51

52

# # SQL Definitions

If you change this definitions here and then you must the change them

# in Db/schema/entities.xml too.

# Fixme

57

# forever= "2030-05-28 21:32:15"

# default_q= "1.0"

60

61

# program to calculate a message-digest fingerprint

md5= # "Md5sum"

64

# awk Tool

# awk= "AWK"

67

# GDB Tool

# gdb= "GDB"

70

The # IF you use a system with a grep and egrep that's not 100% GNU grep compatible,

E.g Solaris, install the GNU grep (ggrep) and specify this below.

73 #

The # grep tool

# grep= "GREP"

76

# Egrep Tool

# egrep= "EGREP"

79

# sed Tool

Bayi # sed= "SED"

82

# Tail Tool

# last_line= "Tail-n 1"

85

# expr Tool

# expr= "EXPR"

88

89

# Describe additional tables to install. Valid values for the variables

# below is Yes/no/ask. With ask (default) it would interactively ask the user

The answer, while yes/no allow for automated, unassisted installs.

93 #

94

# If To install tables for the modules in the Extra_modules variable.

# Install_extra_tables=ask

97

98 # If to install presence related tables.

# Install_presence_tables=ask

100

101 # If to install UID modules related tables.

102 # Install_dbuid_tables=ask

103

104 # Define What module tables should is installed.

The Postgres database and want to change the installed tables

106 # must also adjust the Standard_tables or extra_tables variable accordingly in the

107 # Kamdbctl.base script.

108

109 # Kamailio Standard modules

standard_modules= "Standard ACC LCR Domain Group permissions Registrar usrloc Msilo

111 # alias_db uri_db speeddial avpops auth_db PDT Dialog Dispatcher

# DialPlan "

113

# Kamailio Extra Modules

Extra_modules= "IMC Cpl Siptrace domainpolicy carrierroute userblacklist htable Purple SCA"

116

117

118 # # Type of aliases used:db-database aliases; Ul-usrloc aliases

119 # #-Default:none

# aliases_type= "DB"

121

122 # # Control Engine:fifo or Unixsock

123 # #-Default FIFO

124 # ctlengine= "FIFO"

125

126 # # Path to FIFO file

127 # fifopath= "/var/run/kamailio/kamailio_fifo"

128

129 # # Check ACL names; Default on (1); Off (0)

# verify_acl=1

131

# # # ACL names-if Verify_acl is set, only the ACL names from below list

133 # # is accepted

134 # acl_groups= "Local ld int voicemail FREE-PSTN"

135

136 # # Verbose-debug purposes-default ' 0 '

137 verbose=1

138

139 # Do (1) or don ' t (0) store plaintext passwords

# # in the Subscriber Table-default ' 1 '

141 # Store_plaintext_pw=0

142

143 # # Kamailio START Options

144 # # PID file Path-default is:/var/run/kamailio.pid

145 Pid_file=/var/run/kamailio/kamailio.pid

146

147 # Extra Start Options-default is:not set

148 # Example:start Kamailio with 64MB share memory:startoptions= "-M 64"

149 # startoptions=

----------------------------------------------------------------------------------


And then

#vi /usr/local/etc/kamailio/kamailio.cfg

Add the following linesbefore the line "####### Defined Values #########" :

...

#!define With_mysql
#!define With_auth

#!define with_usrlocdb

...

Save Exit!


4 Create a database & Add an account

Execute command to create a supported database:

#/usr/local/sbin/kamdbctl Create


Start the Kamailio service

#/usr/local/sbin/kamctl Start


Turn on Kamailio monitor mode (skip: )

#/usr/local/sbin/kamctl Moni


Add user account and password (register)

# kamctl Add 10001 10001

# kamctl Add 10002 10002


Added two accounts, the previous number is the account, the next one is the password.


The server-side configuration is basically complete.

Next, find some Android-based SIP client software, install the configuration and test.

I'm using the Csipsimple app.



Mobile Client Test App link (due to attachments larger than 2M cannot be uploaded, so post my web link)


HTTP://YUNPAN.CN/CHGIVYYPNJ6GX Access Password e096

Or find the same or similar on your own online.


Problems you may encounter:

-------------------------------------------------

If the registration is unsuccessful during the test, please check whether the phone and PC are located in the same LAN.

Does the Linux Kamailio server add an account that will be registered?

Command:

# kamctl Add account password

After the account has been successfully added

Please check if the Linux firewall is off, the phone security settings have no problem ...

--------------------------------------------------


Accessories and:

---------------------------

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/55/wKioL1X6gJeiT0aCAAHmMDfa1_Y946.jpg "title=" Mobile client App Registration "width=" "height=" 571 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:320px;height:571px;float:left; " alt= "Wkiol1x6gjeit0acaahmmdfa1_y946.jpg"/>








This article is from the "Kuing Home pages" blog, so be sure to keep this source http://kuing.blog.51cto.com/9635522/1695766

centos6.5 assume kamailio-v4.3.2 server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.