<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16434"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT face=Calibri>Hi!</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>from 2 days I'm trying to run hylafax server and
iaxmodem with Asterisk 1.8.5.<BR>I have 2 computers in the lan, one is the
Asterisk PBX and the other is the server with hylafax and iaxmodem
installed.<BR>In Asterisk I set up an IAX trunk in this
way:<BR>___________________________<BR> iax.conf</FONT></DIV>
<DIV> </DIV>
<DIV><FONT
face=Calibri>[iaxmodem]<BR>type=friend<BR>context=outgoing-fax<BR>disallow=all<BR>allow=ulaw<BR>username=iaxmodem<BR>secret=password<BR>qualify=yes<BR>notransfer=yes<BR>host=dynamic<BR>requirecalltoken=no<BR>callerid="Fax"
<06456789><BR>t38pt_udptl=yes<BR>___________________________</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>In asterisk CLI when I write "IAX2 show peers" I read
that the device is reachable:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>iaxmodem/iaxmod 10.0.1.202 (D) 255.255.255.255 4570 OK
(3 ms)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>In the end I put the configuration Hylafax and
Iaxmodem.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>I've created a context in Asterisk for incoming
fax:</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>context IncomingFax
{<BR> _. =>
{<BR>
Dial(IAX2/iaxmodem);<BR>
};</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>h =>
{<BR>
&riaggancia();<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>};</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>the "call" comes, the modem answers but does not receive
any faxes.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>I give you also logs "/var/log/syslog" and
"xferfaxlog"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>Thanks for your patience.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>**********************************************<BR>*
config ttyIAX in
/etc/iaxmodem/ttyIAX<BR>**********************************************</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>device /dev/ttyIAX<BR>owner uucp:uucp<BR>mode
660<BR>port 4570<BR>refresh 300<BR>server 10.0.1.204 // this is asterisk
1.8.5<BR>peername iaxmodem<BR>secret password<BR>cidname FAXServer<BR>cidnumber
0123456789<BR>codec slinear </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>**********************************************<BR>*
config.ttyIAX in
/var/spool/hylafax/etc/config.ttyIAX<BR>**********************************************</FONT></DIV>
<DIV> </DIV>
<DIV><FONT
face=Calibri>CountryCode: 39 <BR>AreaCode: 06<BR>FAXNumber: +39.06.456789<BR>LongDistancePrefix: 0<BR>InternationalPrefix: 00<BR>DialStringRules: etc/dialrules<BR>ServerTracing: 0xFFF<BR>SessionTracing: 0xFFF<BR>RecvFileMode: 0600<BR>LogFileMode: 0600<BR>DeviceMode: 0600<BR>RingsBeforeAnswer: 1<BR>SpeakerVolume: off<BR>GettyArgs: "-h
%l
dx_%s"<BR>LocalIdentifier: "IAXmodem"<BR>TagLineFont: etc/lutRS18.pcf<BR>TagLineFormat: "Ricevuto
da %%l|%c|Pagina %%P di %%T"<BR>MaxRecvPages: 200</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>ModemType: Class1 # use this to
supply a hint</FONT></DIV>
<DIV> </DIV>
<DIV><FONT
face=Calibri>Class1AdaptRecvCmd: AT+FAR=1<BR>Class1TMConnectDelay: 400 #
counteract quick CONNECT response</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>ModemResetCmds: AT+VCID=1 # enables
CallID display</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>PagerTTYParity: none</FONT></DIV>
<DIV> </DIV>
<DIV><FONT
face=Calibri>CallIDPattern:
"NMBR="<BR>CallIDPattern:
"NAME="<BR>CallIDPattern: "ANID="<BR>CallIDPattern:
"NDID="</FONT></DIV>
<DIV> </DIV>
<DIV><FONT
face=Calibri>***********************************************************************************<BR> xferfaxlog<BR>**********************************************************************************</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri>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" "" ""</FONT></DIV>
<DIV> </DIV>
<DIV><FONT
face=Calibri>***********************************************************************************<BR> /var/log/syslog<BR>**********************************************************************************</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Calibri><BR>STATE CHANGE: RUNNING -> LISTENING<BR>Sep 1
16:50:11 FAXServer FaxGetty[6225]: --> [9:DATE=0901]<BR>Sep 1 16:50:11
FAXServer FaxGetty[6225]: --> [9:TIME=1650]<BR>Sep 1 16:50:11 FAXServer
FaxGetty[6225]: --> [5:NAME=]<BR>Sep 1 16:50:11 FAXServer
FaxGetty[6225]: --> [15:NMBR=0461829011]<BR>Sep 1 16:50:11 FAXServer
FaxGetty[6225]: --> [11:ANID=<NONE>]<BR>Sep 1 16:50:11 FAXServer
FaxGetty[6225]: --> [13:USER=iaxmodem]<BR>Sep 1 16:50:11 FAXServer
FaxGetty[6225]: --> [11:PASS=<NONE>]<BR>Sep 1 16:50:11 FAXServer
FaxGetty[6225]: --> [11:CDID=<NONE>]<BR>Sep 1 16:50:11 FAXServer
FaxGetty[6225]: --> [6:NDID=s]<BR>Sep 1 16:50:11 FAXServer
FaxGetty[6225]: --> [4:RING]<BR>Sep 1 16:50:11 FAXServer
FaxGetty[6225]: ANSWER: Call ID 1 "06654321"<BR>Sep 1 16:50:11 FAXServer
FaxGetty[6225]: ANSWER: Call ID 2 ""<BR>Sep 1 16:50:11 FAXServer
FaxGetty[6225]: ANSWER: Call ID 3 "<NONE>"<BR>Sep 1 16:50:11
FAXServer FaxGetty[6225]: ANSWER: Call ID 4 "s"<BR>Sep 1 16:50:11
FAXServer FaxGetty[6225]: STATE CHANGE: LISTENING -> ANSWERING<BR>Sep 1
16:50:12 FAXServer FaxGetty[6225]: ANSWER: Ring detected without successful
handshake<BR>Sep 1 16:50:12 FAXServer FaxGetty[6225]: <--
[5:ATH0\r]<BR>Sep 1 16:50:12 FAXServer FaxGetty[6225]: -->
[2:OK]<BR>Sep 1 16:50:12 FAXServer FaxGetty[6225]: MODEM set DTR
OFF<BR>Sep 1 16:50:12 FAXServer FaxGetty[6225]: MODEM set baud rate: 0
baud (flow control unchanged)<BR>Sep 1 16:50:13 FAXServer FaxGetty[6225]:
MODEM set DTR OFF<BR>Sep 1 16:50:13 FAXServer FaxGetty[6225]: MODEM set
baud rate: 0 baud (flow control unchanged)<BR>Sep 1 16:50:13 FAXServer
FaxGetty[6225]: DELAY 75 ms<BR>Sep 1 16:50:13 FAXServer FaxGetty[6225]:
MODEM set DTR ON<BR>Sep 1 16:50:13 FAXServer FaxGetty[6225]: DELAY 2600
ms<BR>Sep 1 16:50:17 FAXServer FaxGetty[6225]: MODEM set baud rate: 19200
baud, input flow XON/XOFF, output flow XON/XOFF<BR>Sep 1 16:50:17
FAXServer FaxGetty[6225]: DELAY 10 ms<BR>Sep 1 16:50:17 FAXServer
FaxGetty[6225]: MODEM flush i/o<BR>Sep 1 16:50:17 FAXServer
FaxGetty[6225]: <-- [4:ATZ\r]<BR>Sep 1 16:50:17 FAXServer
FaxGetty[6225]: --> [2:OK]<BR>Sep 1 16:50:17 FAXServer FaxGetty[6225]:
DELAY 3000 ms<BR>Sep 1 16:50:17 FAXServer HylaFAX[6247]:
checkHostIdentity("localhost")<BR>Sep 1 16:50:17 FAXServer HylaFAX[6247]:
Parsing hostPort(): "EPRT"<BR>Sep 1 16:50:17 FAXServer HylaFAX[6247]:
Parsing "|1|127.0.0.1|36009|"<BR>Sep 1 16:50:17 FAXServer
HylaFAX[6247]: `-> s.length() = 19<BR>Sep 1 16:50:17 FAXServer
HylaFAX[6247]: `-> s[0] = '|'<BR>Sep 1 16:50:17 FAXServer
HylaFAX[6247]: `-> s[2] = '|'<BR>Sep 1 16:50:17 FAXServer
HylaFAX[6247]: `-> s[18] = '|'<BR>Sep 1 16:50:17 FAXServer
HylaFAX[6247]: Looks like extended syntax: "|1|127.0.0.1|36009|" [7C:
|]<BR>Sep 1 16:50:17 FAXServer HylaFAX[6247]: `-> Got a:
127.0.0.1[13]<BR>Sep 1 16:50:17 FAXServer HylaFAX[6247]: `-> Got a:
36009[19]<BR>Sep 1 16:50:17 FAXServer HylaFAX[6247]: Parsed: Family 1
Address 127.0.0.1 Port 36009<BR>Sep 1 16:50:17 FAXServer HylaFAX[6247]:
Parsing hostPort(): "EPRT"<BR>Sep 1 16:50:17 FAXServer HylaFAX[6247]:
Parsing "|1|127.0.0.1|52358|"<BR>Sep 1 16:50:17 FAXServer
HylaFAX[6247]: `-> s.length() = 19<BR>Sep 1 16:50:17 FAXServer
HylaFAX[6247]: `-> s[0] = '|'<BR>Sep 1 16:50:17 FAXServer
HylaFAX[6247]: `-> s[2] = '|'<BR>Sep 1 16:50:17 FAXServer
HylaFAX[6247]: `-> s[18] = '|'<BR>Sep 1 16:50:17 FAXServer
HylaFAX[6247]: Looks like extended syntax: "|1|127.0.0.1|52358|" [7C:
|]<BR>Sep 1 16:50:17 FAXServer HylaFAX[6247]: `-> Got a:
127.0.0.1[13]<BR>Sep 1 16:50:17 FAXServer HylaFAX[6247]: `-> Got a:
52358[19]<BR>Sep 1 16:50:17 FAXServer HylaFAX[6247]: Parsed: Family 1
Address 127.0.0.1 Port 52358<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]:
MODEM flush i/o<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: <--
[10:AT+VCID=1\r]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[9:AT+VCID=1]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: <--
[7:ATS0=0\r]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[6:ATS0=0]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: <--
[5:ATE0\r]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[4:ATE0]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: <--
[5:ATV1\r]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: <--
[5:ATQ0\r]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: <--
[7:ATS8=2\r]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: <--
[8:ATS7=60\r]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: <--
[12:AT+FCLASS=?\r]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[7:0,1,1.0]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports
"Data"<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports "Class
1"<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports "Class
1.0"<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: <--
[12:AT+FCLASS=1\r]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: <--
[5:ATI3\r]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[19:www.soft-switch.org]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]:
--> [2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: MODEM: Mfr <A
href="http://www.soft-switch.org">www.soft-switch.org</A><BR>Sep 1
16:50:20 FAXServer FaxGetty[6225]: <-- [5:ATI0\r]<BR>Sep 1 16:50:20
FAXServer FaxGetty[6225]: --> [7:spandsp]<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: --> [2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]:
MODEM: Model spandsp<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: <--
[9:AT+FTM=?\r]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[39:24,48,72,73,74,96,97,98,121,122,145,146]<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: --> [2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]:
MODEM Supports 3.85 line/mm<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]:
MODEM Supports 7.7 line/mm<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]:
MODEM Supports 15.4 line/mm<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]:
MODEM Supports R16 x 15.4 line/mm<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: MODEM Supports 200 x 100 dpi<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: MODEM Supports 200 x 200 dpi<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: MODEM Supports 200 x 400 dpi<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: MODEM Supports 300 x 300 dpi<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: MODEM Supports 2400 bit/s<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: MODEM Supports 4800 bit/s<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: MODEM Supports 7200 bit/s<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: MODEM Supports 9600 bit/s<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: MODEM Supports 12000 bit/s<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: MODEM Supports 14400 bit/s<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: MODEM Supports A4 page width (215 mm)<BR>Sep 1 16:50:20
FAXServer FaxGetty[6225]: MODEM Supports B4 page width (255 mm)<BR>Sep 1
16:50:20 FAXServer FaxGetty[6225]: MODEM Supports A3 page width (303
mm)<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports A4 page
length (297 mm)<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports
B4 page length (364 mm)<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: MODEM
Supports unlimited page length<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]:
MODEM Supports 1-D MH<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: MODEM
Supports 2-D MR<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports
2-D MMR<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports no
ECM<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports T.30 Annex
A, 64-byte ECM<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: MODEM Supports
T.30 Annex A, 256-byte ECM<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]:
MODEM Supports 0 ms/scanline<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]:
MODEM Supports 5 ms/scanline<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]:
MODEM Supports 10 ms, 5 ms/scanline<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: MODEM Supports 10 ms/scanline<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: MODEM Supports 20 ms, 10 ms/scanline<BR>Sep 1 16:50:20
FAXServer FaxGetty[6225]: MODEM Supports 20 ms/scanline<BR>Sep 1 16:50:20
FAXServer FaxGetty[6225]: MODEM Supports 40 ms, 20 ms/scanline<BR>Sep 1
16:50:20 FAXServer FaxGetty[6225]: MODEM Supports 40 ms/scanline<BR>Sep 1
16:50:20 FAXServer FaxGetty[6225]: <-- [9:AT+FRM=?\r]<BR>Sep 1 16:50:20
FAXServer FaxGetty[6225]: -->
[39:24,48,72,73,74,96,97,98,121,122,145,146]<BR>Sep 1 16:50:20 FAXServer
FaxGetty[6225]: --> [2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]:
MODEM <A href="http://www.SOFT-SWITCH.ORG">WWW.SOFT-SWITCH.ORG</A>
spandsp/<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: <--
[5:ATM0\r]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: <--
[9:AT+FAR=1\r]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: -->
[2:OK]<BR>Sep 1 16:50:20 FAXServer FaxGetty[6225]: STATE CHANGE: ANSWERING
-> RUNNING (timeout 30)</FONT></DIV></BODY></HTML>