hello everyone,
I’ve need of someone that help me to check if my configuration of iaxmodem,hylafax and asterisk, is ok. I don’t know how to check it, I use a softphone (sflphone) and it hasn’t a way to send or receive the fax.
I recorded 2 sip number, one for making and receive calls and I’d like use the other one for the fax service.
Of following my configuration files.
::::::::::::::::::::::::::::::::::::::::::::::::
b:::::::sip.conf::::::::[/b]
;----------------------------------Parameters For The VoIP Service Provider
[general]
register => 0863xxxx0:xxxxx@voip.eutelia.it:5060/0863xxxx0
register => 0863xxxx1:xxxxx@voip.eutelia.it:5060/0863xxxx1
externip = 93.147.15.146
bindport = 5060
localnet = 192.168.0.0/255.255.255.0
nat = yes
.
.
.
.
.
[eutelia]
type=friend
context=fromprovider
username=08631xxxxx0
fromuser=08631xxxxx0
secret=xxxxxxxx
host=voip.eutelia.it
qualify=yes
insecure=port,invite
nat=yes
;-----------------------------------Parameters For The FoIP Service Provider
[fromiaxmodem]
type=friend
context=fromfaxprovider
username=0863xxxxx1
fromuser=0863xxxxx1
secret=xxxxxxxxxx
host=voip.eutelia.it
quality=yes
insecure=port,invite
nat=yes
;-----------------------------------Parameters For The FoIP Service Provider
[iaxmodem]
type=friend
context=tofaxprovider
disallow=all
allow=alaw
username=iaxmodem
secret=iaxmodem
qualify=yes
notransfer=yes
host=dynamic
callerid= “IdeaNet Fax Service” <0863xxxxxx1>
requirecalltoken=no
;-----------------------------------Parameters For The FoIP Service Provider
[fromfaxprovider]
exten => 0863xxxxx1,1,Dial(IAX2/iaxmodem)
exten => 0863xxxxx1,n,Hangup()
[tofaxprovider]
exten => _X.,1,Dial(SIP/fromiaxmodem/${EXTEN})
exten => Hangup()
device /dev/ttyIAX0
owner uucp:uucp
mode 660
port 4570
refresh 60
server 127.0.0.1
peername iaxmodem
secret iaxmodem
cidname Asterisk Fax Service
cidnumber 0863xxxxxx1
codec alaw
:::::::::::::::::::::::::::::::::::::::::::::::::::::::
I’ve also tried to check the connection between asterisk and iaxmodem using the command “iaxmodem ttyIAX0” and receive this one
::::::::::::::::::::::::::::
[2009-09-17 10:55:53] Modem started
[2009-09-17 10:55:53] Setting device = ‘/dev/ttyIAX0’
[2009-09-17 10:55:53] Setting owner = ‘uucp:uucp’
[2009-09-17 10:55:53] Setting mode = ‘660’
[2009-09-17 10:55:53] Setting port = 4570
[2009-09-17 10:55:53] Setting refresh = 60
[2009-09-17 10:55:53] Setting server = ‘127.0.0.1’
[2009-09-17 10:55:53] Setting peername = ‘iaxmodem’
[2009-09-17 10:55:53] Setting secret = ‘iaxmodem’
[2009-09-17 10:55:53] Setting cidname = ‘Asterisk Fax Service’
[2009-09-17 10:55:53] Setting cidnumber = ‘08631856171’
[2009-09-17 10:55:53] Setting codec = alaw
[2009-09-17 10:55:53] Opened pty, slave device: /dev/pts/2
[2009-09-17 10:55:53] Removed old /dev/ttyIAX0
[2009-09-17 10:55:53] Created /dev/ttyIAX0 symbolic link
Ignoring unknown information element ‘Unknown IE’ (54) of length 0
[2009-09-17 10:55:53] Registration completed successfully.
$Id: iaxmodem,v 1.1 2006/04/02 23:18:30 darren Exp $
prototype config for the IAXmodem softmodem which uses
the spandsp soft-DSP library
CountryCode: 39
AreaCode: 0863
FAXNumber: +39.0863.xxxxxx1
LongDistancePrefix: 0
InternationalPrefix: 00
DialStringRules: etc/dialrules
ServerTracing: 1
SessionTracing: 11
RecvFileMode: 0600
LogFileMode: 0600
DeviceMode: 0600
RingsBeforeAnswer: 1
SpeakerVolume: off
GettyArgs: "-h %l dx_%s"
LocalIdentifier: "NothingSetup"
TagLineFont: etc/lutRS18.pcf
TagLineFormat: "From %%l|%c|Page %%P of %%T"
MaxRecvPages: 25
Modem-related stuff: should reflect modem command interface
and hardware connection/cabling (e.g. flow control).
ModemType: Class1 # use this to supply a hint
The modem is taken off-hook during initialization, and then
placed back on-hook when done to prevent glare.
ModemResetCmds: “ATH1\nAT+VCID=1” # enables CallID display
ModemReadyCmds: ATH0
Class1AdaptRecvCmd: AT+FAR=1
Class1TMConnectDelay: 400 # counteract quick CONNECT response
Class1RMQueryCmd: “!24,48,72,96” # V.17 fast-train recv doesn’t work well
CallIDPattern: "NMBR="
CallIDPattern: "NAME="
CallIDPattern: "ANID="
CallIDPattern: “NDID=”
Uncomment these if you really want them, but you probably don’t.
#CallIDPattern: “DATE=”
#CallIDPattern: “TIME=”
:::::::::::::::::::::::::::::::::::::
I think to have made all configuration well but I not sure, is there someone that have any time to check it and tell me how can make to use it? please thank you