But I am having some issues trying to get this to work (day number 5)
I am running iaxmodem and hylafax on one server and asterisk now 1.5 on another.
OK. here is my /etc/iaxmodem/ttyIAX0:
device /dev/ttyIAX0
owner uucp:uucp
mode 660
port 4570
refresh 300
server ip_of_hylafax_server
peername 200
secret *******
cidname IAXmodem
cidnumber *********
codec ulaw
here is what I have put into IAX trunk:
Outgoing Settings
Trunk Name: 200-peer
PEER Details:
disallow=all
allow=ulaw
authuser=200
canreinvite=no
context=from-trunk
dtmf=auto
dtmfmode=inband
fromdomain=ip_of_hylafax_server
fromuser=200
host=dynamic
insecure=very
secret=******
type=peer
Username=200
jitterbuffer=no
callerid=device <200>
setvar=REALCALLERIDNUM=200
requirecalltoken=no
calltokenoptional=0.0.0.0/0.0.0.0
maxcallnumbers=16382
Incoming Settings
USER Context: 200-user
USER Details:
disallow=all
allow=ulaw
authuser=200
canreinvite=no
context=from-trunk
dtmf=auto
dtmfmode=inband
fromdomain=ip_of_hylafax_server
fromuser=200
host=dynamic
insecure=very
secret=*******
type=user
Username=200
jitterbuffer=no
callerid=device <200>
setvar=REALCALLERIDNUM=200
requirecalltoken=no
calltokenoptional=0.0.0.0/0.0.0.0
maxcallnumbers=16382
Registration
Register String:
200:*******@ip_of_hylafax_server:4570
ok on asterisk box :
CLI> iax2 set debug on
Tx-Frame Retry[-01] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00007ms SCall: 05826 DCall: 07578 [...:4570]
Rx-Frame Retry[ No] – OSeqno: 026 ISeqno: 033 Type: IAX Subclass: PING
Timestamp: 325013ms SCall: 07570 DCall: 04784 [...:4570]
Tx-Frame Retry[000] – OSeqno: 033 ISeqno: 027 Type: IAX Subclass: PONG
Timestamp: 325013ms SCall: 04784 DCall: 07570 [...:4570]
RR_JITTER : 0
RR_LOSS : 0
RR_PKTS : 1
RR_DELAY : 40
RR_DROPPED : 0
RR_OUTOFORDER : 0
Rx-Frame Retry[ No] – OSeqno: 027 ISeqno: 034 Type: IAX Subclass: ACK
Timestamp: 325013ms SCall: 07570 DCall: 04784 [...:4570]
Tx-Frame Retry[000] – OSeqno: 034 ISeqno: 027 Type: IAX Subclass: REGREQ
Timestamp: 350015ms SCall: 04784 DCall: 07570 [...:4570]
USERNAME : 200
REFRESH : 60
Rx-Frame Retry[ No] – OSeqno: 027 ISeqno: 035 Type: IAX Subclass: ACK
Timestamp: 350015ms SCall: 07570 DCall: 04784 [...:4570]
Rx-Frame Retry[ No] – OSeqno: 027 ISeqno: 035 Type: IAX Subclass: PING
Timestamp: 350018ms SCall: 07570 DCall: 04784 [...:4570]
Tx-Frame Retry[000] – OSeqno: 035 ISeqno: 028 Type: IAX Subclass: PONG
Timestamp: 350018ms SCall: 04784 DCall: 07570 [...:4570]
RR_JITTER : 0
RR_LOSS : 0
RR_PKTS : 1
RR_DELAY : 40
RR_DROPPED : 0
RR_OUTOFORDER : 0
Rx-Frame Retry[ No] – OSeqno: 028 ISeqno: 036 Type: IAX Subclass: ACK
Timestamp: 350018ms SCall: 07570 DCall: 04784 [...:4570]
Rx-Frame Retry[ No] – OSeqno: 028 ISeqno: 036 Type: IAX Subclass: PING
Timestamp: 350595ms SCall: 07570 DCall: 04784 [...:4570]
Tx-Frame Retry[000] – OSeqno: 036 ISeqno: 029 Type: IAX Subclass: PONG
Timestamp: 350595ms SCall: 04784 DCall: 07570 [...:4570]
RR_JITTER : 0
RR_LOSS : 0
RR_PKTS : 1
RR_DELAY : 40
RR_DROPPED : 0
RR_OUTOFORDER : 0
CLI> iax2 show peers
1 iax2 peers [1 online, 0 offline, 0 unmonitored]
CLI> iax2 show registry
ip_of_hylafax_server:4570 N 200 60 Request Sent
1 IAX2 registrations.
here is my log from hylafax trying to send:
Jan 12 10:57:49.40: [ 3404]: SESSION BEGIN 000000063 1*********
Jan 12 10:57:49.40: [ 3404]: HylaFAX ™ Version 6.0.4
Jan 12 10:57:49.40: [ 3404]: SEND FAX: JOB 17 DEST ********* COMMID 000000063 DEVICE ‘/dev/ttyIAX0’ FROM ‘jmituzas [email protected]’ USER root
Jan 12 10:57:49.40: [ 3404]: STATE CHANGE: RUNNING -> SENDING
Jan 12 10:57:49.40: [ 3404]: <-- [12:AT+FCLASS=1\r]
Jan 12 10:57:49.40: [ 3404]: --> [2:OK]
Jan 12 10:57:49.40: [ 3404]: MODEM set XON/XOFF/FLUSH: input ignored, output disabled
Jan 12 10:57:49.41: [ 3404]: DIAL *********
Jan 12 10:57:49.41: [ 3404]: <-- [15:ATDT*********\r]
Jan 12 10:57:49.41: [ 3404]: --> [11:NO DIALTONE]
Jan 12 10:57:49.41: [ 3404]: SEND FAILED: JOB 17 DEST ********** ERR [4] No local dialtone
Jan 12 10:57:50.41: [ 3404]: <-- [5:ATH0\r]
Jan 12 10:57:50.41: [ 3404]: --> [2:OK]
Jan 12 10:57:50.41: [ 3404]: MODEM set DTR OFF
Jan 12 10:57:50.41: [ 3404]: MODEM set baud rate: 0 baud (flow control unchanged)
Jan 12 10:57:50.41: [ 3404]: STATE CHANGE: SENDING -> MODEMWAIT (timeout 5)
Jan 12 10:57:50.41: [ 3404]: SESSION END
I have set this up the same way as a SIP Trunk (and that worked)
I guess the problem is how to we get a dial tone and number (from Dahdi lines) to the IAX modem? Or simply how do we register this iaxmodem?
Any help would be greatly appreciated.
Thanks in advance,
Joe