当前位置:
首页 > 技术文章 > asterisk硬件技术支持文档 > asterisk-sangma相当完美的传真解决方案

会员登录

captcha

>>注册新会员
>>您忘记密码了吗?

浏览历史

asterisk-sangma相当完美的传真解决方案

VoIP88商城 / 2010-04-26

这是目前来说相当完美的传真解决方案asterisk-sangoma-HylaFax. Iaxmodem is used to interface Asterisk with HylaFax.
看看如何实现的:
PSTN <-> Sangoma Card <-> Zaptel <-> Asterisk <-> IAXmodem  

============

IAXmodem website: http://iaxmodem.sourceforge.net/
Softwitch (Spandsp) website: http://www.soft-switch.org/
HylaFax website: http://www.hylafax.org/Please note that this is a quickstart guide, for more detailed configuration check the respective product websites and READMEs.
1. Package requirements
 

libtiff
libtiff-devel

2. Installing IAXmodem
     
Untar your IAXmodem tarball (/usr/src/)
     #> cd /usr/src/
     #> tar xvfz iaxmodem-0.1.14.tar.gz
     Install libiax2:
 

The libiax2 source is included with IAXmodem
#> cd /usr/src/iaxmodem-0.1.14/lib/libiax2
#> ./configure
#> make; make  install

    Install spandsp:
 

The spandsp source is included with IAXmodem
#> cd /usr/src/iaxmodem-0.1.14/lib/spandsp
#> ./configure
#> make; make  install

    Install IAXmodem and create a symbolic link for IAXmodem in /usr/sbin
 

#> cd /usr/src/iaxmodem-0.1.14/
#> ./build
#> ln -s /usr/sbin/iaxmodem iaxmodem

3. Running IAXmodem
 

IAXmodem can be run in daemon and non-daemon mode, it isrecommended to run IAXmodem in non-daemon mode during theinstallation/configuration for easier debugging and then run it indaemon mode once all configuration is working.

Create the /etc/iaxmodem/ directory to store your  IAXmodem configuration files:
#> mkdir /etc/iaxmodem

You will need a separate configuration file for each fax line.Configuration for each fax line are  stored in /etc/iaxmodem/<nameof fax device>.
Create a configuration file for a fax device called ttyIAX1
#> vi /etc/iaxmodem/ttyIAX1
---begin here---
device          /dev/ttyIAX1
uucp:uucp
mode            660
port            4571 ; you will need a different port for each device
refresh         60
server          127.0.0.1
peername        iaxmodem1
secret          password
cidname         John Doe
cidnumber       8005551212

codec           ulaw
---end here---

For more details about parameter options, see /usr/src/iaxmodem/README

Add an IAX account for this modem in Asterisk:
#> vi /etc/asterisk/iax.conf
---begin here---
[iaxmodem1]
type=friend
secret=password
host=dynamic
port=4671
context=outgoingfax
allow=all
---end here---

type "reload" in the Asterisk CLI to apply changes.

Start IAXmodem for ttyIAX1
#> iaxmodem ttyIAX1

Start hylafax for ttyIAX1

用户评论
暂时还没有任何用户评论
网友名称: 匿名用户
电子信箱:
评价等级: 1 2 3 4 5
验 证 码:
captcha
评论内容: