Menu

#10 Reg Fails with Asterisk 10

open
nobody
None
5
2014-08-14
2013-01-06
Tim Irvin
No

We are testing Asterisk 10 and can't get iaxmodem to register with it. We have built iaxmodem from source using static libraries.

[root@freepbxtest iaxmodem]# cat /etc/iaxmodem/iaxmodem-cfg.ttyIAX0
device /dev/ttyIAX0
owner uucp:uucp
mode 660
port 4570
refresh 300
server 127.0.0.1
peername modem0
secret secret0
cidname Test Fax
cidnumber 5555555555
codec ulaw
iax2debug

[root@freepbxtest iaxmodem]# cat /etc/asterisk/iax_additional.conf
[ttyIAX0]
host=127.0.0.1
port=4570
requirecalltoken=no
username=modem0
type=friend
secret=secret0
qualify=no
context=from-trunk-iax2-ttyIAX0

[root@freepbxtest iaxmodem-1.2.0]# cat /etc/asterisk/iax_general_additional.conf
mailboxdetail=yes
tos=ef
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=slin
codecpriority=host
delayreject=yes
jitterbuffer=no
minregexpire=60
maxregexpire=3600

Here is the output from starting iaxmodem:

[root@freepbxtest iaxmodem-1.2.0]# ./iaxmodem iaxmodem-cfg.ttyIAX0
[2013-01-06 12:05:33] Modem started
[2013-01-06 12:05:33] Setting device = '/dev/ttyIAX0'
[2013-01-06 12:05:33] Setting owner = 'uucp:uucp'
[2013-01-06 12:05:33] Setting mode = '660'
[2013-01-06 12:05:33] Setting port = 4570
[2013-01-06 12:05:33] Setting refresh = 300
[2013-01-06 12:05:33] Setting server = '127.0.0.1'
[2013-01-06 12:05:33] Setting peername = 'modem0'
[2013-01-06 12:05:33] Setting secret = 'secret0'
[2013-01-06 12:05:33] Setting cidname = 'Test Fax'
[2013-01-06 12:05:33] Setting cidnumber = '5555555555'
[2013-01-06 12:05:33] Setting codec = ulaw
[2013-01-06 12:05:33] Enabling IAX2 debugging
[2013-01-06 12:05:33] Opened pty, slave device: /dev/pts/1
[2013-01-06 12:05:33] Created /dev/ttyIAX0 symbolic link
Tx-Frame Retry[010] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ
Timestamp: 00003ms SCall: 28638 DCall: 00000 [127.0.0.1:4569]
USERNAME : modem0
REFRESH : 300

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGREJ
Timestamp: 00003ms SCall: 00001 DCall: 28638 [127.0.0.1:4569]
iax.c line 2617 in iax_header_to_event: Cancelling transmission of packet 0
Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00003ms SCall: 28638 DCall: 00001 [127.0.0.1:4569]
[2013-01-06 12:05:33] Registration failed.

Discussion