Difference between revisions of "Bering-uClibc 4.x - User Guide - Advanced Topics - Setting Up a VOIP Server"
Davidmbrooke (Talk | contribs) (Started to populate Asterisk section in parallel with software development) |
Davidmbrooke (Talk | contribs) (Added sizes of .lrp files and Configuration section heading for Asterisk) |
||
Line 77: | Line 77: | ||
; <code class="filename">astsmpls.lrp</code> : The sample configuration files which are installed into directory <code class="filename">/etc/asterisk/</code> | ; <code class="filename">astsmpls.lrp</code> : The sample configuration files which are installed into directory <code class="filename">/etc/asterisk/</code> | ||
; <code class="filename">astsnds.lrp</code> : The sound files which are installed into directory <code class="filename">/var/lib/asterisk/sounds/</code> | ; <code class="filename">astsnds.lrp</code> : The sound files which are installed into directory <code class="filename">/var/lib/asterisk/sounds/</code> | ||
+ | : This file is big - 1.7MB - and once installed the files occupy over 2.25MB of disk space | ||
; <code class="filename">astmoh.lrp</code> : The music-on-hold files which are installed into directory <code class="filename">/var/lib/asterisk/moh/</code> | ; <code class="filename">astmoh.lrp</code> : The music-on-hold files which are installed into directory <code class="filename">/var/lib/asterisk/moh/</code> | ||
+ | : This file is very big - 14.6MB - and once installed the files occupy over 17MB of disk space | ||
The following Packages are pre-requisites: | The following Packages are pre-requisites: | ||
Line 85: | Line 87: | ||
* <code class="filename">lpthread.lrp</code> | * <code class="filename">lpthread.lrp</code> | ||
* <code class="filename">ncurses.lrp</code> | * <code class="filename">ncurses.lrp</code> | ||
+ | |||
+ | ===Configuration=== | ||
+ | The standard Asterisk version 1.8 documentation is located [https://wiki.asterisk.org/wiki/display/AST/Asterisk+1.8+Documentation here]. | ||
Revision as of 10:30, 20 February 2011
Advanced Topics - Setting Up a VOIP Server | ||
---|---|---|
Prev | Bering-uClibc 4.x - User Guide | Next |
Contents
Yate
This material copied directly from http://leaf.sourceforge.net/doc/bucu-voip.html - needs to be checked/updated for Bering-uClibc 4.x!
Davidmbrooke 20:46, 16 November 2010 (UTC)
Introduction
This Howto describes a Voice-over-IP (VoIP) solution based on Yate. Yate is a small but powerful IP telephony engine.
Requirements
To install Yate on Bering-uClibc based system the following packages are required:
yate.lrp |
libcxx.lrp |
libm.lrp |
lpthread.lrp |
Configuration
To allow SIP clients to register set registrar=yes
in ysipchan.conf
. You have to set the username and passwords for those clients in regfile.conf
like this:
[someusername] password=something
The regexroute module provides a simple way of routing telephony calls inside Yate. This module describes the routes using a configuration file in which each number is matched using regular expressions. The config file is named regexroute.conf
and contains numerous examples.
The accfile module allows Yate to act as a SIP or AIX client, this can be used to connect Yate to an other VOIP server or provider.
[test_sip] enabled=yes protocol=sip username=me description=Test SIP account ;interval=600 formats=alaw,mulaw password=1234 ;number=1234 ;domain=somewhere.org registrar=10.0.0.1:5060 ;outbound=10.0.0.1:5061 ;localaddress=auto
An example on how to connect Yate to FWD (Free World Dialup) can be found in yate's wiki.
Firewall settings
In most situations you don't install a firewall VoIP server itself. If you install a VoIP server behind a firewall you need to open a SIP and a RTP range.
SIP uses udp port 5060, RTP (udp) ports are not hard defined but depends very much upon the application. In Yate the range of ports can be defined in yrtpchan.conf
.
Asterisk
Status
As of February 2011 Asterisk version 1.8.2.3 (the latest upstream version) is in the process of being ported to Bering-uClibc 4.x. This is currently at "Alpha Test" status and is NOT included in any of the Bering-uClibc 4.0 Beta releases.
Experimental versions of the various Asterisk Packages can be downloaded from davidMbrooke's "devel" directory in SourceForge CVS.
Status as of 2011-02-19: code is compiled but segfaults at runtime (pthread related) so actually NOT uploaded to CVS yet.
See also LEAF Trac ticket #5.
Packages
The Asterisk distribution is divided into several .lrp
Packages, based on the structure adopted for Asterisk 1.2 on Bering-uClibc 3.x but somewhat extended.
The Packages are:
-
asterisk.lrp
- The main Package, with the Asterisk executables installed into directory
/usr/sbin/
and also all of the Asterisk modules installed into directory/usr/lib/asterisk/modules/
-
astsmpls.lrp
- The sample configuration files which are installed into directory
/etc/asterisk/
-
astsnds.lrp
- The sound files which are installed into directory
/var/lib/asterisk/sounds/
- This file is big - 1.7MB - and once installed the files occupy over 2.25MB of disk space
-
astmoh.lrp
- The music-on-hold files which are installed into directory
/var/lib/asterisk/moh/
- This file is very big - 14.6MB - and once installed the files occupy over 17MB of disk space
The following Packages are pre-requisites:
-
libm.lrp
-
libssl.lrp
-
libcrpto.lrp
-
lpthread.lrp
-
ncurses.lrp
Configuration
The standard Asterisk version 1.8 documentation is located here.
Prev | Up | Next |