HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] CallWeaver integration issue



Hi,

I have very strange problem with HylaFAX which connected to CallWeaver (Asterisk fork - see http://callweaver.org) via IAXModem. On sending fax I can’t see any intersting in CallWeaver console, I see standart Dial and hangup:

-- Executing Dial("IAX2/iaxmodem-1", "SIP/2450331@outbound-stc,25,tT")
Setting up to call extension '2450331' at 'outbound-stc'
-- Called 2450331@outbound-stc
-- SIP/outbound-stc-2bdb is ringing
-- SIP/outbound-stc-2bdb answered IAX2/iaxmodem-1
== Spawn extension (proc-call-external, s, 2) exited non-zero on 'IAX2/iaxmodem-1' in proc 'call-external'
== Spawn extension (proc-call-stc, s, 3) exited non-zero on 'IAX2/iaxmodem-1' in proc 'call-stc'
== Spawn extension (office, 2450331, 1) exited non-zero on 'IAX2/iaxmodem-1'
-- Hungup 'IAX2/iaxmodem-1'


On IAXModem console I see:

[2007-06-20 21:52:44] Dialing '2450331'
[2007-06-20 21:52:44] Call accepted.
[2007-06-20 21:52:45] Ringing heard.
[2007-06-20 21:52:53] Remote answered.
[2007-06-20 21:52:54] Adjusting skew to -50.
[2007-06-20 21:52:54] Adjusting skew to -100.
...
[2007-06-20 21:53:38] Adjusting skew to -18550.
[2007-06-20 21:53:38] Remote hangup.
[2007-06-20 21:53:38] Hanging Up

In /var/log/messages I see:

Jun 20 21:58:40 pbx FaxSend[13448]: MODEM set DTR OFF
Jun 20 21:58:40 pbx FaxSend[13448]: MODEM set baud rate: 0 baud (flow control unchanged)
Jun 20 21:58:40 pbx FaxSend[13448]: DELAY 75 ms
Jun 20 21:58:40 pbx FaxSend[13448]: MODEM set DTR ON
Jun 20 21:58:40 pbx FaxSend[13448]: DELAY 2600 ms
Jun 20 21:58:44 pbx FaxSend[13448]: MODEM set baud rate: 19200 baud, input flow XON/XOFF, output flow XON/XOFF
Jun 20 21:58:44 pbx FaxSend[13448]: DELAY 10 ms
Jun 20 21:58:44 pbx FaxSend[13448]: MODEM flush i/o
Jun 20 21:58:44 pbx FaxSend[13448]: <-- [4:ATZ\r]
Jun 20 21:58:44 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:44 pbx FaxSend[13448]: DELAY 3000 ms
Jun 20 21:58:47 pbx FaxSend[13448]: MODEM flush i/o
Jun 20 21:58:47 pbx FaxSend[13448]: <-- [5:ATH1\r]
Jun 20 21:58:47 pbx FaxSend[13448]: --> [4:ATH1]
Jun 20 21:58:47 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:47 pbx FaxSend[13448]: <-- [10:AT+VCID=1\r]
Jun 20 21:58:47 pbx FaxSend[13448]: --> [9:AT+VCID=1]
Jun 20 21:58:47 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:47 pbx FaxSend[13448]: <-- [7:ATS0=0\r]
Jun 20 21:58:47 pbx FaxSend[13448]: --> [6:ATS0=0]
Jun 20 21:58:47 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:47 pbx FaxSend[13448]: <-- [5:ATE0\r]
Jun 20 21:58:47 pbx FaxSend[13448]: --> [4:ATE0]
Jun 20 21:58:47 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:47 pbx FaxSend[13448]: <-- [5:ATV1\r]
Jun 20 21:58:47 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:47 pbx FaxSend[13448]: <-- [5:ATQ0\r]
Jun 20 21:58:47 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:47 pbx FaxSend[13448]: <-- [7:ATS8=2\r]
Jun 20 21:58:47 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:47 pbx FaxSend[13448]: <-- [8:ATS7=60\r]
Jun 20 21:58:48 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:48 pbx FaxSend[13448]: <-- [12:AT+FCLASS=?\r]
Jun 20 21:58:48 pbx FaxSend[13448]: --> [7:0,1,1.0]
Jun 20 21:58:48 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports "Data"
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports "Class 1"
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports "Class 1.0"
Jun 20 21:58:48 pbx FaxSend[13448]: <-- [12:AT+FCLASS=1\r]
Jun 20 21:58:48 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:48 pbx FaxSend[13448]: <-- [5:ATI3\r]
Jun 20 21:58:48 pbx FaxSend[13448]: --> [19:www.soft-switch.org]
Jun 20 21:58:48 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM: Mfr www.soft-switch.org
Jun 20 21:58:48 pbx FaxSend[13448]: <-- [5:ATI0\r]
Jun 20 21:58:48 pbx FaxSend[13448]: --> [7:spandsp]
Jun 20 21:58:48 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM: Model spandsp
Jun 20 21:58:48 pbx FaxSend[13448]: <-- [9:AT+FTM=?\r]
Jun 20 21:58:48 pbx FaxSend[13448]: --> [39:24,48,72,73,74,96,97,98,121,122,145,146]
Jun 20 21:58:48 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 3.85 line/mm
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 7.7 line/mm
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 15.4 line/mm
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports R16 x 15.4 line/mm
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 200 x 100 dpi
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 200 x 200 dpi
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 200 x 400 dpi
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 300 x 300 dpi
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 2400 bit/s
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 4800 bit/s
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 7200 bit/s
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 9600 bit/s
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 12000 bit/s
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 14400 bit/s
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports A4 page width (215 mm)
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports B4 page width (255 mm)
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports A3 page width (303 mm)
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports A4 page length (297 mm)
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports B4 page length (364 mm)
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports unlimited page length
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 1-D MH
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 2-D MR
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 2-D MMR
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports JBIG
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports no ECM
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports T.30 Annex A, 64-byte ECM
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports T.30 Annex A, 256-byte ECM
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 0 ms/scanline
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 5 ms/scanline
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 10 ms, 5 ms/scanline
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 10 ms/scanline
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 20 ms, 10 ms/scanline
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 20 ms/scanline
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 40 ms, 20 ms/scanline
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM Supports 40 ms/scanline
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM WWW.SOFT-SWITCH.ORG spandsp/
Jun 20 21:58:48 pbx FaxSend[13448]: <-- [5:ATM0\r]
Jun 20 21:58:48 pbx FaxSend[13448]: --> [2:OK]
Jun 20 21:58:48 pbx FaxSend[13448]: STATE CHANGE: BASE -> RUNNING (timeout 30)
Jun 20 21:58:48 pbx FaxSend[13448]: MODEM input buffering disabled
Jun 20 21:58:48 pbx FaxSend[13448]: SEND FAX: JOB 21 DEST 2450331 COMMID 000000036 DEVICE '/dev/ttyIAX' FROM 'root <root@xxxxxxxxxxxxxxxx>' USER root
Jun 20 21:59:42 pbx FaxSend[13448]: SEND FAILED: JOB 21 DEST 2450331 ERR No carrier detected


The most interesting thing is that the same configuration works fine with Asterisk 1.4.4. All messages in logs are the same except SEND FAILED in /var/log/messages. Instead of it I see:

Jun 20 15:21:17 pbx FaxSend[5221]: SEND FAX: JOB 14 DEST 2452888 COMMID
000000013 DEVICE '/dev/ttyIAX' FROM 'root <root@xxxxxxxxxxxxxxxx>' USE
R root
Jun 20 15:21:58 pbx FaxSend[5221]: SEND FAX: JOB 14 SENT in 0:26

My configuration is very simple:

/etc/callweaver/iax.conf :

[general]
disallow=all
allow=alaw
bindport=4569
bindaddr=0.0.0.0
codecpriority=caller
language=en
jitterbuffer=no
qualify=yes

[iaxmodem]
type=friend
host=dynamic
username=iaxmodem
secret=iaxmodempwd
context=office

/etc/iaxmodem/ttyIAX :

device          /dev/ttyIAX
owner           uucp:uucp
mode            660
port            4570
refresh         60
server          127.0.0.1
peername        iaxmodem
secret          iaxmodempwd
cidname         IAX Modem
cidnumber       26877708
codec           alaw

I already wrote about this problem in callweaver-users@, but there are no any ideas :(

Which trace files or something other can I show to resolve problem?

--
Thanks,
Eugene Prokopiev

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




Project hosted by iFAX Solutions