TIPS Incredible PBX Raspberry Pi HylaFax can receive but not send ( Busy signal detected)

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
 

AndyInNYC

Active Member
Joined
May 23, 2013
Messages
773
Reaction score
124
I confess that I can't read/translate dialplan info. Do you need to dial any special digits in your dialplan in order to target the correct outbound route? On my system I prepend an 8 to my dialing (8 1 800 5555 1212) in order to use the fax outbound trunk. If the 8 isn't there I get an error.

Not likely your problem, but it's all I can offer.

Andrew
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,540
Reaction score
729
Ken, the log information in /var/log/asterisk/full pertaining to an attempted fax send will round out the information you have provided and likely lead to an answer.
 

Ken Goddard

New Member
Joined
Sep 12, 2014
Messages
11
Reaction score
1
Andrew if you had a working example with google voice trunk I would love for you to share that...
 

AndyInNYC

Active Member
Joined
May 23, 2013
Messages
773
Reaction score
124
Ken,

When the 'google is killing free voice' scare hit I ported my google number to flowroute. I also put the Pi aside.
Tomorrow I'll see if I can did it out of the toy box, boot it and pull something useful to you off of it.

Basically though, I just did an install, created a dialplan so that numbers prefaced by 8 went out the google trunk and faxes just worked.

Andrew
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,540
Reaction score
729
Log is empty

Did you turn off Asterisk logging? That is the file that Asterisk writes everything ("full" log data) to. If it's empty and you didn't disable logging then perhaps Asterisk is not running and that's your problem. :)
 

Ken Goddard

New Member
Joined
Sep 12, 2014
Messages
11
Reaction score
1
Nope, but I did figure it out. I should say I started from scratch and figured out how to do it. I will post my tutorial so others can do it too.... :)
 

Members online

Forum statistics

Threads
25,825
Messages
167,835
Members
19,250
Latest member
mark-curtis
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top