userdoc:tt_kamailio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userdoc:tt_kamailio [2014/09/04 21:07]
abelbeck [Initial Configuration]
userdoc:tt_kamailio [2014/09/18 15:23] (current)
droemel [Initial Configuration]
Line 3: Line 3:
 [[http://www.kamailio.org/|Kamailio]] (former OpenSER) is an Open Source SIP Server. [[http://www.kamailio.org/|Kamailio]] (former OpenSER) is an Open Source SIP Server.
  
-To know Kamailio is to know SIP.+"To know Kamailio is to know SIP." -- Fred Posner 
 + 
 +[[http://www.slideshare.net/oej/kamailio-a-quick-introduction|A Quick Introduction to Kamailio]], by Olle E Johansson
  
 !!Note: AstLinux 1.2.0 or later is required, with custom build!! !!Note: AstLinux 1.2.0 or later is required, with custom build!!
Line 9: Line 11:
 ==== Initial Configuration ==== ==== Initial Configuration ====
  
-The CLI (Command Line Interface) must be used to enable, and disable kamailio.  Kamailio will be enabled if the ''/mnt/kd/kamailio/'' directory exists.  On first install, issue the command...+The CLI (Command Line Interface) must be used to enable, and disable kamailio.  Kamailio will be enabled if the ''/mnt/kd/kamailio/kamailio.cfg'' file exists.  On first install, issue the command...
  
   cp -a /stat/etc/kamailio /mnt/kd/   cp -a /stat/etc/kamailio /mnt/kd/
  
-The ''/mnt/kd/kamailio/'' directory now exists, populated with a default configuration.  Start kamailio with the following command, this will also create a symlink from ''/etc/kamailio/'' -> ''/mnt/kd/kamailio/'' ...+The ''/mnt/kd/kamailio/'' directory now exists, populated with a default configuration, including ''kamailio.cfg'' .  Start kamailio with the following command, this will also create a symlink from ''/etc/kamailio/'' -> ''/mnt/kd/kamailio/'' ...
  
   service kamailio init   service kamailio init
Line 43: Line 45:
   INFO: Extra tables succesfully created.   INFO: Extra tables succesfully created.
  
-At this point you can customize your kamailio configuration.  Edit the /etc/kamailio/kamailio-local.cfg file to add switches such as "''#!define WITH_ASTERISK''" and interfaces to listen on.  More detailed examples are described below.  Apply any edits to the files in ''/etc/kamailio/'' with the command...+At this point you can customize your kamailio configuration.  Edit the /etc/kamailio/kamailio-local.cfg file to add switches such as "''#!define WITH_ASTERISK''" and interfaces/ip'to listen on.  More detailed examples are described below.  Apply any edits to the files in ''/etc/kamailio/'' with the command...
  
   service kamailio restart   service kamailio restart
Line 49: Line 51:
 !!Tip ->!! The web interface may be used to Edit the configuration and Restart Kamailio. !!Tip ->!! The web interface may be used to Edit the configuration and Restart Kamailio.
  
-While the default configuration files in the ''/stat/etc/kamailio/'' directory are typically only used one time for initial configuration, the files are a good reference at times by "''diff -u''" from your custom configuration down the road.+While the default configuration files in the ''/stat/etc/kamailio/'' directory are typically only used one time for initial configuration, the files are a good reference using "''diff -u''" with your custom configuration.
  
 +!!Note ->!! On devices with slower storage (like Soekris net5501 and Alix 2D13) you might experience database locking issues, when using the SQlite database in some use cases.
 ==== Configuration Examples ==== ==== Configuration Examples ====
  
-== Kamailio proxy's SIP but Asterisk does the RTP directly: ==+\\ 
 +**Kamailio proxy's SIP but Asterisk does the RTP directly:**
  
 Example: EXTIP 10.10.50.65 - DNS 'pbx4', INTIP 192.168.110.1/24 network Example: EXTIP 10.10.50.65 - DNS 'pbx4', INTIP 192.168.110.1/24 network
Line 73: Line 77:
 !!Note ->!! Requires firewall Pass EXT->Local UDP 10000-20000 (default asterisk rtp.conf range) !!Note ->!! Requires firewall Pass EXT->Local UDP 10000-20000 (default asterisk rtp.conf range)
  
-== Kamailio proxy's SIP and RTP using rtpproxy: ==+\\ 
 +**Kamailio proxy's SIP and RTP using rtpproxy:**
  
 Example: EXTIP 10.10.50.65 - DNS 'pbx4', INTIP 192.168.110.1/24 network Example: EXTIP 10.10.50.65 - DNS 'pbx4', INTIP 192.168.110.1/24 network
  • userdoc/tt_kamailio.1409882826.txt.gz
  • Last modified: 2014/09/04 21:07
  • by abelbeck