HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] iaxmodem + asterisk + hylafax [10:NO CARRIER]
Figured it out...
Turns out you cannot call an extension fax within the faxing context. ie;
exten => fax,1,Goto(incomingfax,fax,1)
[incomingfax]
exten => fax,1,Dial(IAX2/modem0/${THISNUMBER},10,r)
The word fax is reserved, and I guess it loops, or something. I changed the above to
exten => fax,1,Goto(incomingfax,infax,1)
[incomingfax]
exten => infax,1,Dial(IAX2/modem0/${THISNUMBER},10,r)
and everything works perfectly..
Weird...
On Mon, Nov 22, 2010 at 10:48 AM, Jimmy McMillan
<jimmy@xxxxxxxxxxxxxxxx> wrote:
It appears that the incoming iax modem isn't able to hear anything. Every iax modem that receives the incoming comes up with a 0 byte filesize recording.
On Sun, Nov 21, 2010 at 4:44 PM, Jimmy McMillan
<jimmy@xxxxxxxxxxxxxxxx> wrote:
Hi all,
Just upgraded a Debian server that's been running for years without a problem, and now all the sudden I cannot send or receive faxs. I'm using the exact same setup. Below are logs, and my setup files. Any clues or help would be greatly appreciated.
Your job to 8885216667 failed because:
No receiver protocol (T.30 T1 timeout); too many attempts to send
---- Transcript of session follows ----
Nov 21 16:15:49.92: [27491]: SESSION BEGIN 000000093 14158885216667
Nov 21 16:15:49.92: [27491]: HylaFAX (tm) Version 4.4.4
Nov 21 16:15:49.92: [27491]: SEND FAX: JOB 35 DEST 8885216667 COMMID 000000093 DEVICE '/dev/ttyIAX4' FROM 'root' USER root
Nov 21 16:15:49.92: [27491]: <-- [12:AT+FCLASS=1\r]
Nov 21 16:15:49.92: [27491]: --> [2:OK]
Nov 21 16:15:49.93: [27491]: DIAL 8885216667
Nov 21 16:15:49.93: [27491]: <-- [15:ATDT8885216667\r]
Nov 21 16:16:06.39: [27491]: --> [7:CONNECT]
Nov 21 16:16:07.19: [27491]: --> [10:NO CARRIER]
Nov 21 16:16:07.19: [27491]: MODEM No carrier
Nov 21 16:16:07.19: [27491]: <-- [10:AT+FRS=21\r]
Nov 21 16:16:07.41: [27491]: --> [2:OK]
Nov 21 16:16:07.41: [27491]: <-- [9:AT+FTH=3\r]
Nov 21 16:16:07.43: [27491]: --> [7:CONNECT]
Nov 21 16:16:07.43: [27491]: <-- data [3]
Nov 21 16:16:07.43: [27491]: <-- data [2]
Nov 21 16:16:08.51: [27491]: --> [2:OK]
Nov 21 16:16:08.51: [27491]: SEND send CRP (command repeat)
Nov 21 16:16:08.51: [27491]: <-- [9:AT+FRH=3\r]
Nov 21 16:16:15.51: [27491]: --> [0:]
Nov 21 16:16:15.51: [27491]: MODEM <Empty line>
Nov 21 16:16:15.51: [27491]: <-- data [1]
Nov 21 16:16:15.53: [27491]: --> [2:OK]
Nov 21 16:16:15.53: [27491]: <-- [9:AT+FRS=7\r]
Nov 21 16:16:15.55: [27491]: --> [2:OK]
Nov 21 16:16:15.55: [27491]: <-- [9:AT+FRH=3\r]
Nov 21 16:16:22.55: [27491]: --> [0:]
Nov 21 16:16:22.55: [27491]: MODEM <Empty line>
Nov 21 16:16:22.55: [27491]: <-- data [1]
Nov 21 16:16:22.57: [27491]: --> [2:OK]
Nov 21 16:16:22.57: [27491]: <-- [9:AT+FRS=7\r]
Nov 21 16:16:22.59: [27491]: --> [2:OK]
Nov 21 16:16:22.59: [27491]: <-- [9:AT+FRH=3\r]
Nov 21 16:16:29.59: [27491]: --> [0:]
Nov 21 16:16:29.59: [27491]: MODEM <Empty line>
Nov 21 16:16:29.59: [27491]: <-- data [1]
Nov 21 16:16:29.61: [27491]: --> [2:OK]
Nov 21 16:16:29.61: [27491]: <-- [9:AT+FRS=7\r]
Nov 21 16:16:29.63: [27491]: --> [2:OK]
Nov 21 16:16:29.63: [27491]: <-- [9:AT+FRH=3\r]
Nov 21 16:16:36.63: [27491]: --> [0:]
Nov 21 16:16:36.63: [27491]: MODEM <Empty line>
Nov 21 16:16:36.63: [27491]: <-- data [1]
Nov 21 16:16:36.65: [27491]: --> [2:OK]
Nov 21 16:16:36.65: [27491]: <-- [9:AT+FRS=7\r]
Nov 21 16:16:36.67: [27491]: --> [2:OK]
Nov 21 16:16:36.67: [27491]: <-- [9:AT+FRH=3\r]
Nov 21 16:16:43.67: [27491]: --> [0:]
Nov 21 16:16:43.67: [27491]: MODEM <Empty line>
Nov 21 16:16:43.67: [27491]: <-- data [1]
Nov 21 16:16:43.67: [27491]: --> [2:OK]
Nov 21 16:16:43.67: [27491]: <-- [9:AT+FRS=7\r]
Nov 21 16:16:43.69: [27491]: --> [2:OK]
Nov 21 16:16:43.69: [27491]: <-- [9:AT+FRH=3\r]
Nov 21 16:16:46.97: [27491]: --> [10:NO CARRIER]
Nov 21 16:16:46.97: [27491]: MODEM No carrier
Nov 21 16:16:46.97: [27491]: No receiver protocol (T.30 T1 timeout)
Nov 21 16:16:46.97: [27491]: SEND FAILED: JOB 35 DEST 8885216667 ERR [126] No receiver protocol (T.30 T1 timeout)
Nov 21 16:16:46.97: [27491]: <-- [9:AT+FRS=7\r]
Nov 21 16:16:46.97: [27491]: --> [5:ERROR]
Nov 21 16:16:46.97: [27491]: MODEM Command error
Nov 21 16:16:46.97: [27491]: Failure to receive silence (synchronization failure).
Nov 21 16:16:46.97: [27491]: <-- [9:AT+FTH=3\r]
Nov 21 16:16:46.97: [27491]: --> [5:ERROR]
Nov 21 16:16:46.97: [27491]: SEND FAILED: JOB 35 DEST 8885216667 ERR
[334] No receiver protocol (T.30 T1 timeout); too many attempts to send
Nov 21 16:16:47.97: [27491]: <-- [5:ATH0\r]
Nov 21 16:16:48.07: [27491]: --> [2:OK]
Nov 21 16:16:48.07: [27491]: SESSION END
------- Unsent job status -------
Destination: 8885216667
JobID: 35
GroupID: 35
Sender: root
Mailaddr: root@localhost
CommID: 000000093
Modem: any
Submitted From: localhost
Page Width: 215 (mm)
Page Length: 279 (mm)
Resolution: 98 (lpi)
Status: No receiver protocol (T.30 T1 timeout); too many attempts to send
Dialogs: 3
Dials: 0
Calls: 3
Pages: 0
TotPages: 8
Attempts: 0
Dirnum:
/etc/hylafax/config.ttyIAX0 - /etc/hylafax/config.ttyIAX6 are all the same
# $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: 1
AreaCode: 415
FAXNumber: +1.999.555.1212
LongDistancePrefix: 1
InternationalPrefix: 011
DialStringRules: etc/dialrules
ServerTracing: 1
SessionTracing: 11
RecvFileMode: 0600
LogFileMode: 0600
DeviceMode: 0600
RingsBeforeAnswer: 1
SpeakerVolume: off
GettyArgs: "-h %l dx_%s"
LocalIdentifier: "SmartVoice.net"
TagLineFont: etc/lutRS18.pcf
TagLineFormat: "From %%l|%c|Page %%P of %%T"
MaxRecvPages: 50
#
#
#
# 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="
/etc/iaxmodem/ttyIAX0
device /dev/ttyIAX0
owner uucp:uucp
mode 660
port 4570
refresh 300
server 127.0.0.1
peername modem0
secret modem0
cidname Fax0
cidnumber 8882878816
codec ulaw
record yes
...
/etc/iaxmodem/ttyIAX6
device /dev/ttyIAX6
owner uucp:uucp
mode 660
port 4576
refresh 300
server 127.0.0.1
peername modem6
secret modem6
cidname Fax6
cidnumber 8882878816
codec ulaw
record yes
/etc/inittab
x1:2345:respawn:/usr/bin/iaxmodem ttyIAX0
x2:2345:respawn:/usr/bin/iaxmodem ttyIAX1
x3:2345:respawn:/usr/bin/iaxmodem ttyIAX2
x4:2345:respawn:/usr/bin/iaxmodem ttyIAX3
x5:2345:respawn:/usr/bin/iaxmodem ttyIAX4
x6:2345:respawn:/usr/bin/iaxmodem ttyIAX5
x7:2345:respawn:/usr/bin/iaxmodem ttyIAX6
fax0:2345:respawn:/usr/sbin/faxgetty ttyIAX0
fax1:2345:respawn:/usr/sbin/faxgetty ttyIAX1
fax2:2345:respawn:/usr/sbin/faxgetty ttyIAX2
fax3:2345:respawn:/usr/sbin/faxgetty ttyIAX3
fax4:2345:respawn:/usr/sbin/faxgetty ttyIAX4
fax5:2345:respawn:/usr/sbin/faxgetty ttyIAX5
/etc/asterisk/iax.conf
[general]
bindport=4569
bindaddr=0.0.0.0
maxregexpire=1300
;disallow=all
allow=ulaw
allow=alaw
allow=gsm
[modem0]
type=friend
host=dynamic
secret=modem0
port=4570
;disallow=all
allow=ulaw
qualify=no
context=fax-out
requirecalltoken=no
[modem1]
type=friend
host=dynamic
secret=modem1
port=4571
;disallow=all
allow=ulaw
qualify=no
context=fax-out
requirecalltoken=no
[modem2]
type=friend
host=dynamic
secret=modem2
port=4572
;disallow=all
allow=ulaw
qualify=no
context=fax-out
requirecalltoken=no
[modem3]
type=friend
host=dynamic
secret=modem3
port=4573
;disallow=all
allow=ulaw
qualify=no
context=fax-out
requirecalltoken=no
[modem4]
type=friend
host=dynamic
secret=modem4
port=4574
;disallow=all
allow=ulaw
qualify=no
context=fax-out
requirecalltoken=no
[modem5]
type=friend
host=dynamic
secret=modem5
port=4575
;disallow=all
allow=ulaw
qualify=no
context=fax-out
requirecalltoken=no
[modem6]
type=friend
host=dynamic
secret=modem6
port=4576
;disallow=all
allow=ulaw
qualify=no
context=fax-out
requirecalltoken=no
I also recorded some of the iax called and one is completely blank.
rw-r----- 1 root root 688320 2010-11-21 15:55 modem1-dsp.raw
rw-r----- 1 root root 0 2010-11-21 15:55 modem1-iax.raw
rw-r----- 1 root root 880320 2010-11-21 15:55 modem2-dsp.raw
rw-r----- 1 root root 880000 2010-11-21 15:55 modem2-iax.raw
If anyone needs anything other data, let me know.
Thanks in advance.
--
Jimmy McMillan
- Slainte Mhath!
--
Jimmy McMillan
- Slainte Mhath!
--
Jimmy McMillan
- Slainte Mhath!