[asterisk-users] problems with hylafax + iaxmodem + asterisk1.8.5

Alessio alessio at asistar.it
Thu Sep 1 11:13:58 CDT 2011


Hi!

from 2 days I'm trying to run hylafax server and iaxmodem with Asterisk 1.8.5.
I have 2 computers in the lan, one is the Asterisk PBX and the other is the server with hylafax and iaxmodem installed.
In Asterisk I set up an IAX trunk in this way:
___________________________
 iax.conf

[iaxmodem]
type=friend
context=outgoing-fax
disallow=all
allow=ulaw
username=iaxmodem
secret=password
qualify=yes
notransfer=yes
host=dynamic
requirecalltoken=no
callerid="Fax" <06456789>
t38pt_udptl=yes
___________________________

In asterisk CLI when I write "IAX2 show peers" I read that the device is reachable:

iaxmodem/iaxmod 10.0.1.202 (D) 255.255.255.255 4570 OK (3 ms)

In the end I put the configuration Hylafax and Iaxmodem.

I've created a context in Asterisk for incoming fax:

context IncomingFax {
         _. => {
                Dial(IAX2/iaxmodem);
        };

h => {
                &riaggancia();
        }

};

the "call" comes, the modem answers but does not receive any faxes.

I give you also logs "/var/log/syslog" and "xferfaxlog"

Thanks for your patience.

**********************************************
* config ttyIAX in /etc/iaxmodem/ttyIAX
**********************************************

device /dev/ttyIAX
owner uucp:uucp
mode 660
port 4570
refresh 300
server 10.0.1.204 // this is asterisk 1.8.5
peername iaxmodem
secret password
cidname FAXServer
cidnumber 0123456789
codec slinear 

**********************************************
* config.ttyIAX in /var/spool/hylafax/etc/config.ttyIAX
**********************************************

CountryCode:  39 
AreaCode:  06
FAXNumber:  +39.06.456789
LongDistancePrefix: 0
InternationalPrefix: 00
DialStringRules: etc/dialrules
ServerTracing:  0xFFF
SessionTracing:  0xFFF
RecvFileMode:  0600
LogFileMode:  0600
DeviceMode:  0600
RingsBeforeAnswer: 1
SpeakerVolume:  off
GettyArgs:  "-h %l dx_%s"
LocalIdentifier: "IAXmodem"
TagLineFont:  etc/lutRS18.pcf
TagLineFormat:  "Ricevuto da %%l|%c|Pagina %%P di %%T"
MaxRecvPages:  200

ModemType:  Class1  # use this to supply a hint

Class1AdaptRecvCmd: AT+FAR=1
Class1TMConnectDelay: 400  # counteract quick CONNECT response

ModemResetCmds:  AT+VCID=1 # enables CallID display

PagerTTYParity:  none

CallIDPattern:          "NMBR="
CallIDPattern:          "NAME="
CallIDPattern:  "ANID="
CallIDPattern:          "NDID="

***********************************************************************************
 xferfaxlog
**********************************************************************************

09/01/11 17:13 CALL 000000013 ttyIAX  "" fax "+39.06.456789" "" 0 0 0:00:01 0:00:01 "Ring detected without successful handshake" "" "" "<NONE>::s" "" ""

***********************************************************************************
 /var/log/syslog
**********************************************************************************


STATE CHANGE: RUNNING -> LISTENING
Sep  1 16:50:11 FAXServer FaxGetty[6225]: --> [9:DATE=0901]
Sep  1 16:50:11 FAXServer FaxGetty[6225]: --> [9:TIME=1650]
Sep  1 16:50:11 FAXServer FaxGetty[6225]: --> [5:NAME=]
Sep  1 16:50:11 FAXServer FaxGetty[6225]: --> [15:NMBR=0461829011]
Sep  1 16:50:11 FAXServer FaxGetty[6225]: --> [11:ANID=<NONE>]
Sep  1 16:50:11 FAXServer FaxGetty[6225]: --> [13:USER=iaxmodem]
Sep  1 16:50:11 FAXServer FaxGetty[6225]: --> [11:PASS=<NONE>]
Sep  1 16:50:11 FAXServer FaxGetty[6225]: --> [11:CDID=<NONE>]
Sep  1 16:50:11 FAXServer FaxGetty[6225]: --> [6:NDID=s]
Sep  1 16:50:11 FAXServer FaxGetty[6225]: --> [4:RING]
Sep  1 16:50:11 FAXServer FaxGetty[6225]: ANSWER: Call ID 1 "06654321"
Sep  1 16:50:11 FAXServer FaxGetty[6225]: ANSWER: Call ID 2 ""
Sep  1 16:50:11 FAXServer FaxGetty[6225]: ANSWER: Call ID 3 "<NONE>"
Sep  1 16:50:11 FAXServer FaxGetty[6225]: ANSWER: Call ID 4 "s"
Sep  1 16:50:11 FAXServer FaxGetty[6225]: STATE CHANGE: LISTENING -> ANSWERING
Sep  1 16:50:12 FAXServer FaxGetty[6225]: ANSWER: Ring detected without successful handshake
Sep  1 16:50:12 FAXServer FaxGetty[6225]: <-- [5:ATH0\r]
Sep  1 16:50:12 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:12 FAXServer FaxGetty[6225]: MODEM set DTR OFF
Sep  1 16:50:12 FAXServer FaxGetty[6225]: MODEM set baud rate: 0 baud (flow control unchanged)
Sep  1 16:50:13 FAXServer FaxGetty[6225]: MODEM set DTR OFF
Sep  1 16:50:13 FAXServer FaxGetty[6225]: MODEM set baud rate: 0 baud (flow control unchanged)
Sep  1 16:50:13 FAXServer FaxGetty[6225]: DELAY 75 ms
Sep  1 16:50:13 FAXServer FaxGetty[6225]: MODEM set DTR ON
Sep  1 16:50:13 FAXServer FaxGetty[6225]: DELAY 2600 ms
Sep  1 16:50:17 FAXServer FaxGetty[6225]: MODEM set baud rate: 19200 baud, input flow XON/XOFF, output flow XON/XOFF
Sep  1 16:50:17 FAXServer FaxGetty[6225]: DELAY 10 ms
Sep  1 16:50:17 FAXServer FaxGetty[6225]: MODEM flush i/o
Sep  1 16:50:17 FAXServer FaxGetty[6225]: <-- [4:ATZ\r]
Sep  1 16:50:17 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:17 FAXServer FaxGetty[6225]: DELAY 3000 ms
Sep  1 16:50:17 FAXServer HylaFAX[6247]: checkHostIdentity("localhost")
Sep  1 16:50:17 FAXServer HylaFAX[6247]: Parsing hostPort(): "EPRT"
Sep  1 16:50:17 FAXServer HylaFAX[6247]: Parsing "|1|127.0.0.1|36009|"
Sep  1 16:50:17 FAXServer HylaFAX[6247]:  `-> s.length() = 19
Sep  1 16:50:17 FAXServer HylaFAX[6247]:  `-> s[0] = '|'
Sep  1 16:50:17 FAXServer HylaFAX[6247]:  `-> s[2] = '|'
Sep  1 16:50:17 FAXServer HylaFAX[6247]:  `-> s[18] = '|'
Sep  1 16:50:17 FAXServer HylaFAX[6247]: Looks like extended syntax: "|1|127.0.0.1|36009|" [7C: |]
Sep  1 16:50:17 FAXServer HylaFAX[6247]: `-> Got a: 127.0.0.1[13]
Sep  1 16:50:17 FAXServer HylaFAX[6247]: `-> Got a: 36009[19]
Sep  1 16:50:17 FAXServer HylaFAX[6247]: Parsed: Family 1 Address 127.0.0.1 Port 36009
Sep  1 16:50:17 FAXServer HylaFAX[6247]: Parsing hostPort(): "EPRT"
Sep  1 16:50:17 FAXServer HylaFAX[6247]: Parsing "|1|127.0.0.1|52358|"
Sep  1 16:50:17 FAXServer HylaFAX[6247]:  `-> s.length() = 19
Sep  1 16:50:17 FAXServer HylaFAX[6247]:  `-> s[0] = '|'
Sep  1 16:50:17 FAXServer HylaFAX[6247]:  `-> s[2] = '|'
Sep  1 16:50:17 FAXServer HylaFAX[6247]:  `-> s[18] = '|'
Sep  1 16:50:17 FAXServer HylaFAX[6247]: Looks like extended syntax: "|1|127.0.0.1|52358|" [7C: |]
Sep  1 16:50:17 FAXServer HylaFAX[6247]: `-> Got a: 127.0.0.1[13]
Sep  1 16:50:17 FAXServer HylaFAX[6247]: `-> Got a: 52358[19]
Sep  1 16:50:17 FAXServer HylaFAX[6247]: Parsed: Family 1 Address 127.0.0.1 Port 52358
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM flush i/o
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [10:AT+VCID=1\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [9:AT+VCID=1]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [7:ATS0=0\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [6:ATS0=0]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [5:ATE0\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [4:ATE0]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [5:ATV1\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [5:ATQ0\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [7:ATS8=2\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [8:ATS7=60\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [12:AT+FCLASS=?\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [7:0,1,1.0]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports "Data"
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports "Class 1"
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports "Class 1.0"
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [12:AT+FCLASS=1\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [5:ATI3\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [19:www.soft-switch.org]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM: Mfr www.soft-switch.org
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [5:ATI0\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [7:spandsp]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM: Model spandsp
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [9:AT+FTM=?\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [39:24,48,72,73,74,96,97,98,121,122,145,146]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 3.85 line/mm
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 7.7 line/mm
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 15.4 line/mm
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports R16 x 15.4 line/mm
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 200 x 100 dpi
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 200 x 200 dpi
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 200 x 400 dpi
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 300 x 300 dpi
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 2400 bit/s
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 4800 bit/s
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 7200 bit/s
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 9600 bit/s
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 12000 bit/s
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 14400 bit/s
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports A4 page width (215 mm)
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports B4 page width (255 mm)
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports A3 page width (303 mm)
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports A4 page length (297 mm)
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports B4 page length (364 mm)
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports unlimited page length
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 1-D MH
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 2-D MR
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 2-D MMR
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports no ECM
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports T.30 Annex A, 64-byte ECM
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports T.30 Annex A, 256-byte ECM
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 0 ms/scanline
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 5 ms/scanline
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 10 ms, 5 ms/scanline
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 10 ms/scanline
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 20 ms, 10 ms/scanline
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 20 ms/scanline
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 40 ms, 20 ms/scanline
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 40 ms/scanline
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [9:AT+FRM=?\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [39:24,48,72,73,74,96,97,98,121,122,145,146]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: MODEM WWW.SOFT-SWITCH.ORG spandsp/
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [5:ATM0\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: <-- [9:AT+FAR=1\r]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: --> [2:OK]
Sep  1 16:50:20 FAXServer FaxGetty[6225]: STATE CHANGE: ANSWERING -> RUNNING (timeout 30)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110901/a7c00511/attachment.htm>


More information about the asterisk-users mailing list