HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Asterisk+iaxmodem+Hylafax: Failure to receive silence (synchronization failure).



Hola!


I am trying to make iaxmodem+asterisk+hylafax to work together without success, I get the error below and when calling from the PSTN the call is not even answered (it keeps ringing till it ends) but in the asterisk side I can see how the call is answered through the iax channel:

ivr-virtual-101*CLI>
    -- Executing [011NNNNNNNN@entrantes:1] Answer("SIP/1.2.3.4-0a096a70", "") in new stack
    -- Executing [011NNNNNNNN@entrantes:2] Dial("SIP/1.2.3.4-0a096a70", "IAX2/125/011NNNNNNNN|15|r") in new stack
    -- Called 125/011NNNNNNNN
    -- Call accepted by 127.0.0.1 (format ulaw)
    -- Format for call is ulaw
    -- IAX2/125-14474 is ringing
    -- IAX2/125-14474 answered SIP/1.2.3.4-0a096a70


If you can give me a hint on what's with my configuration I will appreciate it.

ivr-virtual-101:/var/spool/hylafax/log# cat c000000042
Oct 18 20:52:00.26: [ 9888]: SESSION BEGIN 000000042 5411XXXXXXXX
Oct 18 20:52:00.26: [ 9888]: HylaFAX (tm) Version 4.4.4
Oct 18 20:52:00.26: [ 9888]: CallID: "1150312214" "" "<NONE>" "011XXXXXXXX"
Oct 18 20:52:00.26: [ 9888]: <-- [4:ATA\r]
Oct 18 20:52:03.98: [ 9888]: --> [7:CONNECT]
Oct 18 20:52:03.98: [ 9888]: ANSWER: FAX CONNECTION  DEVICE '/dev/tty125'
Oct 18 20:52:03.98: [ 9888]: RECV FAX: begin
Oct 18 20:52:03.98: [ 9888]: <-- data [32]
Oct 18 20:52:03.98: [ 9888]: <-- data [2]
Oct 18 20:52:04.94: [ 9888]: --> [7:CONNECT]
Oct 18 20:52:04.94: [ 9888]: <-- data [23]
Oct 18 20:52:04.94: [ 9888]: <-- data [2]
Oct 18 20:52:05.68: [ 9888]: --> [7:CONNECT]
Oct 18 20:52:05.68: [ 9888]: <-- data [13]
Oct 18 20:52:05.68: [ 9888]: <-- data [2]
Oct 18 20:52:06.26: [ 9888]: --> [2:OK]
Oct 18 20:52:06.26: [ 9888]: <-- [9:AT+FRH=3\r]
Oct 18 20:52:13.26: [ 9888]: --> [0:]
Oct 18 20:52:13.26: [ 9888]: MODEM <Empty line>
Oct 18 20:52:13.26: [ 9888]: <-- data [1]
Oct 18 20:52:13.28: [ 9888]: --> [2:OK]
Oct 18 20:52:13.28: [ 9888]: <-- [9:AT+FRS=7\r]
Oct 18 20:52:43.28: [ 9888]: MODEM <Timeout>
Oct 18 20:52:43.28: [ 9888]: Failure to receive silence (synchronization failure).
Oct 18 20:52:43.28: [ 9888]: <-- data [1]
Oct 18 20:52:43.29: [ 9888]: --> [2:OK]
Oct 18 20:52:43.29: [ 9888]: RECV FAX: Failure to receive silence (synchronization failure).
Oct 18 20:52:43.29: [ 9888]: RECV FAX: end
Oct 18 20:52:43.29: [ 9888]: Failure to receive silence (synchronization failure).
Oct 18 20:52:43.29: [ 9888]: SESSION END


Below the config files and possible helpful screenshots:

ivr-virtual-101*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status    
126              (Unspecified)   (D)  255.255.255.255  0             UNKNOWN   
125              127.0.0.1       (D)  255.255.255.255  4570          OK (3 ms) 

ivr-virtual-101:/var/spool/hylafax/log# cat /etc/iaxmodem/tty125 
device /dev/tty125
owner uucp:uucp
mode 660
port 4570
refresh 1800
server 127.0.0.1
peername 125
secret password
cidname fax125
cidnumber 011XXXXXXXX
codec ulaw 

ivr-virtual-101:/var/spool/hylafax/etc# cat config.tty125 
# $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:            54
AreaCode:               11
FAXNumber:              005411NNNNNNNN
LongDistancePrefix:     0
InternationalPrefix:    00
DialStringRules:        etc/dialrules
ServerTracing:          1
SessionTracing:         11
RecvFileMode:           0600
LogFileMode:            0600
DeviceMode:             0600
RingsBeforeAnswer:      1
SpeakerVolume:          off
GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        "NothingSetup"
TagLineFont:            etc/lutRS18.pcf
TagLineFormat:          "From %%l|%c|Page %%P of %%T"
MaxRecvPages:           25
#

#
#
# 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="


Asterisk configuration and dialplan:

ivr-virtual-101:/etc/asterisk# cat iax_fax_telesmart.conf 
[125]
type=friend
host=dynamic
regexten=125
secret=password   ; Multiple secrets may be specified. For a "user", all
context=fax-iax-in
permit=0.0.0.0/0.0.0.0
qualify=yes
transfer=no
allow=all       ; se lo puse ahora

[fax-iax-in]                    ; internos de fax en iax
exten => 011NNNNNNNN,1,Answer
exten => 011NNNNNNNN,2,Dial(IAX2/125/${EXTEN},15,r)     ; cae en iaxmodem 125


Thanks in advance !

-- 
Matias


____________________ 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