There are two ways to use IAXmodem with static or dynamic libraries. If there is any machine in its version of spandsp or libiax2 different to those included with IAXmodem it is best to use static libraries (eg for distributions as trixbox preinstalled or similar) otherwise to make an installation dynamics. If there is any machine in its version of spandsp or libiax2 different to those included with IAXmodem it is best to use static libraries (eg for distributions as trixbox preinstalled or similar) otherwise to make an installation dynamics.

Libiax2 facilities (for installation dynamics iaxmodem) Libiax2 facilities (for installation dynamics iaxmodem)

CD # lib/libiax2
#. / Configure
Make #
Make install #

Spandsp facilities (for installation dynamics iaxmodem)

# Lib CD / spandsp
# . /Configure
# make
# make install

For installation dynamic we must ensure that the directory where libraries are located (/ usr / local / lib) is set in / etc / ld.so.conf, otherwise add the line and run ‘ldconfig’ to update the configuration .

To build IAXmodem dinamicamenrte use:

#. /Build

And for static use:

#. /Build Static

The facility would be IAXmodem so static as shown below:

1) Download the package of IAXmodem:
http://iaxmodem.sourceforge.net/download.php

# cd /usr/src/
# wget http://umn.dl.sourceforge.net/sourceforge/iaxmodem/iaxmodem-0.3.1.tar.gz

2) Unzip the package downloaded:

# tar-zxvf iaxmodem-0.3.1.tar.gz

3) Build the installation of static form:

# iaxmodem CD-0.3.1
#. /build Static

4) Copy the executable to the folder of your system executables:

iaxmodem # cp /usr/local/bin/

5) Cree directory for the configuration files:

# mkdir /etc/iaxmodem

6) With a text editor to create an archive our modem:

# vi /etc/iaxmodem/ttyIAX0

Its content would be as shown below:

Device /dev/ttyIAX0
Owner Asterisk: Asterisk
Mode 660
Port 45699
Refresh 300
Server 127.0.0.1
peername 601
Secret miclave
cidname IAXmodem 1
cidnumber 601
codec slinear

The meaning of the parameters follows:

device: unique name of the device
owner: user group system that will use the device to create IAXmodem
mode: permits for the device created
port: port for communication with Asterisk, one for each device dfte
refresh: refresh rate of registration for the device IAX
server: Server IP Asterisk, usually or 127.0.0.1 localhost
peername: name of the device in Asterisk IAX
secret: key device IAX
cidname: name identification used by Asterisk
cidnumber: identification number used by Asterisk
codec: audio codec used (slinear, ulaw, ALAW)
record: recording audio file
replay: audio file is reproduced

Like this post? Share it:
  • Facebook
  • Digg
  • Twitter
  • del.icio.us
  • Google Bookmarks
  • StumbleUpon
  • PDF
Tags: , , , , , , ,

Related posts

Leave a Reply

Spam protection by WP Captcha-Free