Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[hylafax-users] IAXmodem registering problem

2,354 views
Skip to first unread message

Joseph Mituzas

unread,
Jan 7, 2010, 5:22:08 PM1/7/10
to hylafa...@hylafax.org
(first off hope I am doing this correctly - never posted to a mailing list before)

Yes I am trying to get Hylafax configured corectly with the iaxmodem. Would like to send faxes from one server and go out through an asterisk box. I have made the connection verbose asterisks:

IAX2 show peers: Name/Username Host Mask Port Status 200 *.*.*.* (S) 255.255.255.255 4570 OK (3 ms) 1 iax2 peers [1 online, 0 offline, 0 unmonitored]

shows it being connected but when I run: /usr/bin/iaxmodem ttyIAX0

This is followed:

[2010-01-07 14:28:06] Modem started [2010-01-07 14:28:06] Setting device = '/dev/ttyIAX' [2010-01-07 14:28:06] Setting owner = 'uucp:uucp' [2010-01-07 14:28:06] Setting mode = '660' [2010-01-07 14:28:06] Setting port = 4570 [2010-01-07 14:28:06] Setting refresh = 300 [2010-01-07 14:28:06] Setting server = '10.30.20.25' [2010-01-07 14:28:06] Setting peername = '200' [2010-01-07 14:28:06] Setting secret = [2010-01-07 14:28:06] Setting cidname = 'IAXmodem' [2010-01-07 14:28:06] Setting cidnumber = '8567975970' [2010-01-07 14:28:06] Setting codec = ulaw [2010-01-07 14:28:06] Opened pty, slave device: /dev/pts/1 [2010-01-07 14:28:06] Created /dev/ttyIAX symbolic link [2010-01-07 14:28:06] Registration failed. Ignoring unknown information element 'Unknown IE' (54) of length 0 [2010-01-07 14:28:50] Hanging Up Ignoring unknown information element 'Unknown IE' (54) of length 0 Ignoring unknown information element 'Unknown IE' (54) of length 0 Ignoring unknown information element 'Unknown IE'
(54) of length 0 Ignoring unknown information element 'Unknown IE' (54) of length 0 [2010-01-07 14:33:20] Registration failed

I run faxstat -s and get the following: HylaFAX scheduler on asteriskVM.nmcllc.com: Running Modem ttyIAX (+1.856.797.5970): Waiting for modem to come ready

But it never becomes ready (bout an hour)

I get this within my /var/mail/root:

The HylaFAX software thinks that there is a problem with the modem on device /dev/ttyIAX that needs attention; repeated attempts to initialize the modem have failed.

Consult the server trace logs for more information on what is happening.

You will be notified again after 5 minutes if the problem persists.

____________________________________________________________________________________

My final observation of these logs shows me that it is up, and the device is created (/dev/ttyIAX0) but not registering. So question is how do we register the iaxmodem?

Any help would be greatly appreciated.

Thanks in advance,

Joe


Lee Howard

unread,
Jan 7, 2010, 11:30:25 PM1/7/10
to Joseph Mituzas, hylafa...@hylafax.org
Joseph Mituzas wrote:
>
> Ignoring unknown information element 'Unknown IE' (54) of length 0
> [2010-01-07 14:28:50] Hanging Up Ignoring unknown information element
> 'Unknown IE' (54) of length 0 Ignoring unknown information element
> 'Unknown IE' (54) of length 0 Ignoring unknown information element
> 'Unknown IE' (54) of length 0 Ignoring unknown information element
> 'Unknown IE' (54) of length 0 [2010-01-07 14:33:20] Registration failed
>

This is due to the "new" backwards incompatible calltoken features that
were added in to IAX2 by Asterisk a few months ago.

Add this into your iaxmodem contexts in /etc/asterisk/iax.conf:

requirecalltoken=no

A week or so ago I looked at the libiax2 development in iaxclient (from
where iaxmodem derives it's libiax2 library), and I didn't see any
development regarding this feature support. So for now just disable
calltoken usage in IAX2 as I have described.

Thanks,

Lee.


____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-us...@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sa...@ifax.com.*

Joseph Mituzas

unread,
Jan 8, 2010, 3:50:05 PM1/8/10
to Lee Howard, hylafa...@hylafax.org

Just noticed all seems to be running fine just not registering to the asterisk box ?

/var/log/messages reports:

Jan 8 13:33:21 asteriskVM FaxGetty[3252]: OPEN /dev/ttyIAX0 HylaFAX (tm) Version 6.0.4
Jan 8 13:33:21 asteriskVM FaxGetty[3252]: /dev/ttyIAX0: Can not open modem (No such file or directory)
Jan 8 13:33:21 asteriskVM FaxGetty[3252]: STATE CHANGE: BASE -> MODEMWAIT (timeout 30)
Jan 8 13:34:09 asteriskVM FaxGetty[3252]: MODEM set DTR OFF
Jan 8 13:34:09 asteriskVM FaxGetty[3252]: MODEM set baud rate: 0 baud (flow control unchanged)
Jan 8 13:34:09 asteriskVM FaxGetty[3252]: DELAY 75 ms
Jan 8 13:34:09 asteriskVM FaxGetty[3252]: MODEM set DTR ON
Jan 8 13:34:09 asteriskVM FaxGetty[3252]: DELAY 2600 ms
Jan 8 13:34:14 asteriskVM FaxGetty[3252]: MODEM set baud rate: 19200 baud, input flow XON/XOFF, output flow XON/XOFF
Jan 8 13:34:14 asteriskVM FaxGetty[3252]: DELAY 10 ms
Jan 8 13:34:14 asteriskVM FaxGetty[3252]: MODEM flush i/o
Jan 8 13:34:14 asteriskVM FaxGetty[3252]: <-- [4:ATZ\r]
Jan 8 13:34:15 asteriskVM FaxGetty[3252]: --> [3:ATZ]
Jan 8 13:34:15 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:15 asteriskVM FaxGetty[3252]: DELAY 3000 ms
Jan 8 13:34:19 asteriskVM FaxGetty[3252]: MODEM flush i/o
Jan 8 13:34:19 asteriskVM FaxGetty[3252]: <-- [10:AT+VCID=1\r]
Jan 8 13:34:19 asteriskVM FaxGetty[3252]: --> [9:AT+VCID=1]
Jan 8 13:34:19 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:19 asteriskVM FaxGetty[3252]: <-- [7:ATS0=0\r]
Jan 8 13:34:19 asteriskVM FaxGetty[3252]: --> [6:ATS0=0]
Jan 8 13:34:19 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:19 asteriskVM FaxGetty[3252]: <-- [5:ATE0\r]
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: --> [4:ATE0]
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: <-- [5:ATV1\r]
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: <-- [5:ATQ0\r]
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: <-- [7:ATS8=2\r]
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: <-- [8:ATS7=60\r]
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: <-- [12:AT+FCLASS=?\r]
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: --> [7:0,1,1.0]
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: MODEM Supports "Data"
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: MODEM Supports "Class 1"
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: MODEM Supports "Class 1.0"
Jan 8 13:34:20 asteriskVM FaxGetty[3252]: <-- [12:AT+FCLASS=1\r]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: <-- [5:ATI3\r]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: --> [19:www.soft-switch.org]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM: Mfr www.soft-switch.org
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: <-- [5:ATI0\r]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: --> [7:spandsp]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM: Model spandsp
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: <-- [9:AT+FTM=?\r]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: --> [39:24,48,72,73,74,96,97,98,121,122,145,146]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 3.85 line/mm
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 7.7 line/mm
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 15.4 line/mm
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports R16 x 15.4 line/mm
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 200 x 100 dpi
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 200 x 200 dpi
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 200 x 400 dpi
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 300 x 300 dpi
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 2400 bit/s
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 4800 bit/s
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 7200 bit/s
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 9600 bit/s
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 12000 bit/s
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 14400 bit/s
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports A4 page width (215 mm)
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports B4 page width (255 mm)
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports A3 page width (303 mm)
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports A4 page length (297 mm)
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports B4 page length (364 mm)
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports unlimited page length
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 1-D MH
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 2-D MR
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 2-D MMR
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports no ECM
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports T.30 Annex A, 64-byte ECM
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports T.30 Annex A, 256-byte ECM
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 0 ms/scanline
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 5 ms/scanline
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 10 ms, 5 ms/scanline
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 10 ms/scanline
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 20 ms, 10 ms/scanline
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 20 ms/scanline
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 40 ms, 20 ms/scanline
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM Supports 40 ms/scanline
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: <-- [9:AT+FRM=?\r]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: --> [39:24,48,72,73,74,96,97,98,121,122,145,146]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM WWW.SOFT-SWITCH.ORG spandsp/
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: <-- [5:ATM0\r]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: <-- [9:AT+FAR=1\r]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: --> [2:OK]
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: STATE CHANGE: MODEMWAIT -> RUNNING (timeout 30)
Jan 8 13:34:21 asteriskVM FaxGetty[3252]: MODEM input buffering disabled

Why wont it register?

Thanks in advance,
Joe

mastapat11

unread,
Jan 13, 2013, 1:56:35 PM1/13/13
to hylafa...@hylafax.org
> > Ignoring unknown information element 'Unknown IE' (54) of length 0
> > [2010-01-07 14:28:50] Hanging Up Ignoring unknown information element
> > 'Unknown IE' (54) of length 0 [2010-01-07 14:33:20] Registration failed
> >
>
> This is due to the "new" backwards incompatible calltoken features that
> were added in to IAX2 by Asterisk a few months ago.
>
> Add this into your iaxmodem contexts in /etc/asterisk/iax.conf:
>
> requirecalltoken=no
>

I tried this and still nothing.
It just keeps poping up all over the screen even after a reboot.
Any thoughts, updates? thanks.

i'm using Asterisk 1.8 on FreePBX 2.10

Tim Nelson

unread,
Jan 14, 2013, 10:43:30 AM1/14/13
to hylafa...@hylafax.org
----- Original Message -----
> > > Ignoring unknown information element 'Unknown IE' (54) of length
> > > 0
> > > [2010-01-07 14:28:50] Hanging Up Ignoring unknown information
> > > element
> > > 'Unknown IE' (54) of length 0 [2010-01-07 14:33:20] Registration
> > > failed
> > >
> >
> > This is due to the "new" backwards incompatible calltoken features
> > that
> > were added in to IAX2 by Asterisk a few months ago.
> >
> > Add this into your iaxmodem contexts in /etc/asterisk/iax.conf:
> >
> > requirecalltoken=no
> >
>
> I tried this and still nothing.
> It just keeps poping up all over the screen even after a reboot.
> Any thoughts, updates? thanks.
>
> i'm using Asterisk 1.8 on FreePBX 2.10
>

Even with calltokens disabled, you'll still see the 'errors' noting 'Unknown IE'.

It looks like you actually have a registration issue, which means you need to 100% check your IAX username/password for the peer, and IAXmodem's config.

--Tim

Don...@afoundria.com

unread,
Nov 29, 2016, 10:15:05 AM11/29/16
to
We are still using Hylafax on an AIX 6.1 POWER8 server and since they just moved to this new hardware I had to reinstall HylaFax and I was getting these messages like every 5 minutes. Horrible. I had taken the defaults on the install and this was the problem I think. The things you have to make sure are in your config.tty# file in ~/hylafax/spool/etc are the ModemRate to set the correct baud rate and the ModemFlowControl which should be xonxoff. Set the baud rate to something high, like 38400, because the default is probably something super low, like 2400. The response will be so slow HylaFax will think the modem is wedged and you might get timeouts. Faxes also go out slower because they are throttled to that lower rate. I copied a config file over from a sister server and it worked great, and these were some of the settings that were different that made sense. I just hope to alleviate some of the main and bulk deletes of spam e-mails that I had to do and the clicking of links down the Internet rabbit hole searching for solutions. Also on the setup of the one that was slow and sending e-mails it was set up as a Class 1 modem, whereas the new config file was a Class 2 setup and doesn't have all the "Class1" setup lines in the config file. Here is the modem section of the config file for your comparison and possible copy and paste pleasure:

# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling (e.g. flow control).
#
#ModemDialCmd: ATDT1%s
ModemDialCmd: ATDT%s
#ModemDialCmd: ATDT9,%s # hard-code 9 to dial out
ModemType: Class1 # use class 1 interface
ModemRate: 38400 # max rate for DCE-DTE communication
ModemFlowControl: xonxoff # hardware flow control
#
ModemSetupDTRCmd: ATS13=1&D2 # setup so DTR drop resets modem
ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not)
ModemNoFlowCmd: AT&H0&I0&R1 # setup modem for no flow control
ModemHardFlowCmd: AT&H1&I0&R2 # setup modem for hardware flow control
ModemSoftFlowCmd: AT&H2&I2&R1 # setup modem for software flow control
ModemResultCodesCmd: ATQ0X4 # enable result codes
#
ModemMfrQueryCmd: !USR
ModemModelQueryCmd: ATI3
ModemRevQueryCmd: ATI7 # XXX returns a multi-line result
#
# When AT+FCLASS=1 is issued the modem automatically switches
# to software flow control; these parameters let the fax software
# reset flow control as needed after entering Class 1.
#
Class1NFLOCmd: AT&H0&I0&R1 # setup modem for no flow control
Class1HFLOCmd: AT&H1&I0&R2 # setup modem for hardware flow control
Class1SFLOCmd: "" # modem does this automatically
#
# The remainder of this configuration is included so that the
# modem "idles" in Class 0 while not sending or receiving facsimile.
#
ModemSetupAACmd: AT+FCLASS=0 # leave modem idling in class 0
ModemAnswerCmd: AT+FCLASS=1A # answer in Class 1
#
# Disables the reporting of bad frames by the modem. This
# overcomes a firmware problem in the x2 and V90 Sportsters.
# It is not necessary for the Courier modem.
#
Class2NRCmd: AT+FNR=1,1,1,0
0 new messages