Ken Goddard
New Member
- Joined
- Sep 12, 2014
- Messages
- 11
- Reaction score
- 1
Code:
Every 2.0s: faxstat -s Tue Sep 16 08:28:10 2014
HylaFAX scheduler on incrediblepbx: Running
Modem ttyIAX1 (818.738.9967): Running and idleo
Modem ttyIAX2 (818.738.9967): Running and idlem
Modem ttyIAX0 (818.738.9967): Running and idle
Modem ttyIAX3 (818.738.9967): Running and idle
JID Pri S Owner MailAddr Number Pages Dials TTS Stat
us
24 126 S root root@incrediblepbx 16262265871 0:1 1:12 08:30 Busy
signal detected
Maybe someone can point me in the right direction. I followed the tutorial in this post
I can receive faxes but not send them, busy signal
Link
my iax_custom.conf looks like this:
Code:
[iax-fax0]
type=friend
host=127.0.0.1
port=4570
context=from-fax
requirecalltoken=no
disallow=all
allow=ulaw
jitterbuffer=no
qualify=yes
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
[iax-fax1]
type=friend
host=127.0.0.1
port=4571
context=from-fax
requirecalltoken=no
disallow=all
allow=ulaw
jitterbuffer=no
qualify=yes
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
[iax-fax2]
type=friend
host=127.0.0.1
port=4570
context=from-fax
requirecalltoken=no
disallow=all
allow=ulaw
jitterbuffer=no
qualify=yes
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
[iax-fax3]
type=friend
host=127.0.0.1
port=4570
context=from-fax
requirecalltoken=no
disallow=all
allow=ulaw
jitterbuffer=no
qualify=yes
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
My extensions_custom.conf looks like this:
Code:
;#[custom-fax-iaxmodem]
;#exten => s,1,Dial(IAX2/iax-fax0/${EXTEN})
;#exten => s,n,Dial(IAX2/iax-fax1/${EXTEN})
;#exten => s,n,Dial(IAX2/iax-fax2/${EXTEN})
;#exten => s,n,Dial(IAX2/iax-fax3/${EXTEN})
;#exten => s,n,Busy
;#exten => s,n,Hangup
;#[from-fax]
;#exten => _x.,1,Dial(local/${EXTEN}@from-internal)
;#exten => _x.,n,Hangup
[from-fax]
exten => _x.,1,Dial(local/${EXTEN}@gvoice)
exten => _x.,n,Hangup()
[googlein]
;Allows anonymous calls through travelin man and replaces onymous@vo with anonymous. Waits removed
exten => _[0-9a-z].,1,Noop(Incoming Google Voice call for ${EXTEN})
exten => _[0-9a-z].,n,Set(CALLERID(name)=${CUT(CALLERID(name),@,1)})
exten => _[0-9a-z].,n,GotoIf($["${CALLERID(name):0:2}" != "+1"]?notrim)
exten => _[0-9a-z].,n,Set(CALLERID(name)=${CALLERID(name):2})
exten => _[0-9a-z].,n(notrim),Set(CALLERID(number)=${CALLERID(name)})
exten => _[0-9a-z].,n,Answer
exten => _[0-9a-z].,n,Wait(10)
exten => _[0-9a-z].,n,SendDTMF(1)
exten => _[0-9a-z].,n,Goto(from-google-voice,${CUT(EXTEN,@,1)},1)
exten => h,1,Macro(hangupcall,)
[from-google-voice]
;Allows multiple gvoice accounts. Waits removed.
exten => [email protected],1,Goto(from-trunk,gvoice 8187389967,1)
exten => [email protected],1,Goto(from-trunk,gvoice 8187389967,1)
exten => [email protected],1,Goto(from-trunk,gvoice 8187389967,1)
;exten => [email protected],1,Goto(from-trunk,gvoice 8187389967,1)
exten => h,1,Macro(hangupcall,)
[gvoice]
exten => _X.,1,Wait(1)
exten => _X.,n,Set([email protected])
;exten => _X.,n,Set(STATUS=${JABBER_STATUS(asterisk,${ALERTNAME})});
;exten => _X.,n,NoOp(Gvoice/Jabber Status: ${STATUS})
exten => _X.,n,JABBERSend(asterisk,${ALERTNAME},Placing GVoice Call: ${EXTEN})
exten => _X.,n,GotoIf($["${LEN(${EXTEN})}"="10"]?us:other)
exten => _X.,n(us),Dial(Gtalk/asterisk/+1${EXTEN}@voice.google.com)
exten => _X.,n,Goto(done)
exten => _X.,n(other),Dial(Gtalk/asterisk/+${EXTEN}@voice.google.com)
exten => _X.,n(done),NoOp(GVoice Call to ${EXTEN} failed)
my config.ttyIAX0 looks like this:
Code:
CountryCode: 1
AreaCode: 818
FAXNumber: xxx.xxx.xxxxx
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: "IncredibleFax"
TagLineFont: etc/lutRS18.pcf
TagLineFormat: "From %%l|%c|Page %%P of %%T"
MaxRecvPages: 25
ModemType: Class1 # use this to supply a hint
ModemWaitForConnect: yes # boolean, force server to wait for ``CONNECT'' response on answer
ModemWaitTimeCmd: ATS7=60 # wait 60 seconds for carrier
Class1Cmd: AT+FCLASS=1.0 # command to enter class 1.0
Class1PPMWaitCmd: AT+FTS=7 # command to stop and wait before PPM
Class1TCFWaitCmd: AT+FTS=7 # command to stop and wait before TCF
Class1EOPWaitCmd: AT+FTS=9 # command to stop and wait before EOP
Class1SwitchingCmd: AT+FRS=7 # command to stop and listen for silence
Class1RecvAbortOK: 200 # wait 200ms for abort response
Class1FrameOverhead: 4 # 4 byte overhead in recvd HDLC frames
Class1RecvIdentTimer: 40000 # 35+5secs waiting for ident frames
Class1TCFMaxNonZero: 10 # max 10% of data may be non-zero
Class1TCFMinRun: 1000 # min run is 2/3rds of TCF duration
# AvantFAX
#
FaxRcvdCmd: bin/faxrcvd.php
DynamicConfig: bin/dynconf.php
UseJobTSI: true
JobReqNoAnswer: 180
JobReqNoCarrier: 180
ModemDialCmd: ATDT0%s@
ModemRate: 14400 # rate for DCE-DTE communication
my modem /etc/iaxmodem
Code:
device /dev/ttyIAX0
owner uucp:uucp
mode 660
port 4570
refresh 0
server 127.0.0.1
peername iax-fax0
cidname Fax0
cidnumber +00000000000
codec ulaw
custom context:
as described in tutorial
fax trunk
custom dial string
local/$OUTNUM$@gvoice
outbound rule matching trunk
Here is the output of /var/spool/hylafax/log/
Code:
Sep 15 23:10:21.35: [ 9725]: SESSION BEGIN 000000006 16262265871
Sep 15 23:10:21.35: [ 9725]: HylaFAX (tm) Version 6.0.6
Sep 15 23:10:21.35: [ 9725]: SEND FAX: JOB 1 DEST 16262265871 COMMID 000000006 DEVICE '/dev/ttyIAX0' FROM 'root <root@localhost>' USER admin
Sep 15 23:10:21.35: [ 9725]: <-- [14:AT+FCLASS=1.0\r]
Sep 15 23:10:21.35: [ 9725]: --> [2:OK]
Sep 15 23:10:21.36: [ 9725]: DIAL 16262265871
Sep 15 23:10:21.36: [ 9725]: <-- [16:ATDT16262265871\r]
Sep 15 23:10:22.38: [ 9725]: --> [4:BUSY]
Sep 15 23:10:22.38: [ 9725]: SEND FAILED: JOB 1 DEST 16262265871 ERR [1] Busy signal detected
Sep 15 23:10:23.38: [ 9725]: <-- [5:ATH0\r]
Sep 15 23:10:23.39: [ 9725]: --> [2:OK]
Sep 15 23:10:23.39: [ 9725]: SESSION END