QUESTION Avantfax IncPBX for Raspi - busy signal detected

sortons

Member
Joined
Aug 9, 2018
Messages
50
Reaction score
7
Hi,

I'm running Incredible PBX for Raspi 3B+. Recently I installed Incredible Fax: /root/incrediblefax13_raspi3.sh.
Incoming faxes come through alright. However, when trying to send a fax I get "busy signal detected."

I've seen a number of similar issues, but I wasn't able to find a solution. Here is what i get when trying to send a fax:

Accepting AUTHENTICATED call from 127.0.0.1:4573:
-- > requested format = ulaw,
-- > requested prefs = (),
-- > actual format = ulaw,
-- > host prefs = (ulaw),
-- > priority = mine
-- Executing [[email protected]:1] Dial("IAX2/iax-fax3-1542", "local/[email protected]") in new stack
-- Called local/[email protected]
-- Executing [[email protected]:1] Macro("Local/[email protected];2", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [[email protected]:1] Set("Local/[email protected];2", "TOUCH_MONITOR=1542868671.17") in new stack
-- Executing [[email protected]:2] Set("Local/[email protected];2", "AMPUSER=+00000000003") in new stack
-- Executing [[email protected]:3] GotoIf("Local/[email protected];2", "0?report") in new stack
-- Executing [[email protected]:4] ExecIf("Local/[email protected];2", "1?Set(REALCALLERIDNUM=+00000000003)") in new stack
-- Executing [[email protected]:5] Set("Local/[email protected];2", "AMPUSER=") in new stack
-- Executing [[email protected]:6] GotoIf("Local/[email protected];2", "0?limit") in new stack
-- Executing [[email protected]:7] Set("Local/[email protected];2", "AMPUSERCIDNAME=") in new stack
-- Executing [[email protected]:8] GotoIf("Local/[email protected];2", "1?report") in new stack
-- Goto (macro-user-callerid,s,14)
-- Executing [[email protected]:14] GotoIf("Local/[email protected];2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,27)
-- Executing [[email protected]:27] Set("Local/[email protected];2", "CALLERID(number)=+00000000003") in new stack
-- Executing [[email protected]:28] Set("Local/[email protected];2", "CALLERID(name)=Incredible PBX") in new stack
-- Executing [[email protected]:29] GotoIf("Local/[email protected];2", "0?cnum") in new stack
-- Executing [[email protected]:30] Set("Local/[email protected];2", "CDR(cnam)=Incredible PBX") in new stack
-- Executing [[email protected]:31] Set("Local/[email protected];2", "CDR(cnum)=+00000000003") in new stack
-- Executing [[email protected]:32] Set("Local/[email protected];2", "CHANNEL(language)=en") in new stack
-- Executing [[email protected]:2] NoCDR("Local/[email protected];2", "") in new stack
-- Executing [[email protected]:3] Progress("Local/[email protected];2", "") in new stack
-- Executing [[email protected]:4] Wait("Local/[email protected];2", "1") in new stack
-- Local/[email protected];1 is making progress passing it to IAX2/iax-fax3-1542
-- Executing [[email protected]:5] Playback("Local/[email protected];2", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
-- <Local/[email protected];2> Playing 'silence/1.ulaw' (language 'en')
-- <Local/[email protected];2> Playing 'cannot-complete-as-dialed.ulaw' (language 'en')
-- <Local/[email protected];2> Playing 'check-number-dial-again.ulaw' (language 'en')
-- Executing [[email protected]:6] Wait("Local/[email protected];2", "1") in new stack
-- Executing [[email protected]:7] Congestion("Local/[email protected];2", "20") in new stack
-- Local/[email protected];1 is circuit-busy
== Spawn extension (from-internal, 416XXXXXXX, 7) exited non-zero on 'Local/[email protected];2'
-- Executing [[email protected]:1] Macro("Local/[email protected];2", "hangupcall") in new stack
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [[email protected]:2] Goto("IAX2/iax-fax3-1542", "outbound-allroutes,416XXXXXXX,1") in new stack
-- Goto (outbound-allroutes,416XXXXXXX,1)
-- Executing [[email protected]:1] Macro("IAX2/iax-fax3-1542", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [[email protected]:1] GotoIf("Local/[email protected];2", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [[email protected]:4] Hangup("Local/[email protected];2", "") in new stack
-- Executing [[email protected]:1] Set("IAX2/iax-fax3-1542", "TOUCH_MONITOR=1542868671.15") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/[email protected];2' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'Local/[email protected];2'
-- Executing [[email protected]:2] Set("IAX2/iax-fax3-1542", "AMPUSER=+00000000003") in new stack
-- Executing [[email protected]:3] GotoIf("IAX2/iax-fax3-1542", "0?report") in new stack
-- Executing [[email protected]:4] ExecIf("IAX2/iax-fax3-1542", "1?Set(REALCALLERIDNUM=+00000000003)") in new stack
-- Executing [[email protected]:5] Set("IAX2/iax-fax3-1542", "AMPUSER=") in new stack
-- Executing [[email protected]:6] GotoIf("IAX2/iax-fax3-1542", "0?limit") in new stack
-- Executing [[email protected]:7] Set("IAX2/iax-fax3-1542", "AMPUSERCIDNAME=") in new stack
-- Executing [[email protected]:8] GotoIf("IAX2/iax-fax3-1542", "1?report") in new stack
-- Goto (macro-user-callerid,s,14)
-- Executing [[email protected]:14] GotoIf("IAX2/iax-fax3-1542", "1?continue") in new stack
-- Goto (macro-user-callerid,s,27)
-- Executing [[email protected]:27] Set("IAX2/iax-fax3-1542", "CALLERID(number)=+00000000003") in new stack
-- Executing [[email protected]:28] Set("IAX2/iax-fax3-1542", "CALLERID(name)=Incredible PBX") in new stack
-- Executing [[email protected]:29] GotoIf("IAX2/iax-fax3-1542", "0?cnum") in new stack
-- Executing [[email protected]:30] Set("IAX2/iax-fax3-1542", "CDR(cnam)=Incredible PBX") in new stack
-- Executing [[email protected]:31] Set("IAX2/iax-fax3-1542", "CDR(cnum)=+00000000003") in new stack
-- Executing [[email protected]:32] Set("IAX2/iax-fax3-1542", "CHANNEL(language)=en") in new stack
-- Auto fallthrough, channel 'IAX2/iax-fax3-1542' status is 'CONGESTION'
-- Hungup 'IAX2/iax-fax3-1542'

Any suggestions?
 

sortons

Member
Joined
Aug 9, 2018
Messages
50
Reaction score
7
Bump
The same issue on a new install of Incredible PBX 13-13.10 with Incrediblefax on RPi 3 - "busy signal detected" - when attempting to send fax.
I ran apt-get update & apt-get upgrade before installing Incrediblefax - otherwise there are no sources to install. I added the email address and area code as suggested, everything else is default. The PBX is fully functional with the send fax exception.

Anyone?
 

Eliad

Active Member
Joined
Aug 13, 2017
Messages
182
Reaction score
25
There is another post on this which might help. The order of services started by rc.d might be out of order. I can't remember the title of the post.
 

sortons

Member
Joined
Aug 9, 2018
Messages
50
Reaction score
7
Well, rc.local has different format for Incredible PBX on CentOS and RPi, so my guess is that Hylafax & components start from some other script on the RPi. That may be the issue!?

Anyone any POV?

RPi:
[email protected]:/etc# cat rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "/usr/local/sbin/iptables-restart
#exit zero" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi

/etc/init.d/mysql restart
sleep 30
/usr/local/sbin/fwconsole restart
sleep 7

/usr/local/sbin/iptables-restart
exit 0

CentOS:
[email protected]:/etc/rc.d $ cat rc.local
#!/bin/bash
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# that this script will be executed during boot.

touch /var/lock/subsys/local
sleep 5
/root/sig-fix
sleep 5
/usr/local/sbin/fwconsole start
sleep 5
/usr/local/sbin/iptables-restart
sleep 10
$(which faxgetty) -D ttyIAX0
$(which faxgetty) -D ttyIAX1
$(which faxgetty) -D ttyIAX2
$(which faxgetty) -D ttyIAX3
sleep5
/usr/sbin/hylafax start
sleep 5
exit 0
 

Eliad

Active Member
Joined
Aug 13, 2017
Messages
182
Reaction score
25
If Iptables is last then you will have problems this is my file

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
sleep 5
/root/sig-fix
sleep 5
/usr/local/sbin/iptables-restart
sleep 5
/usr/local/sbin/fwconsole start
sleep 10
exit 0
 

sortons

Member
Joined
Aug 9, 2018
Messages
50
Reaction score
7
For the sake of the exercise I reversed the order of the 'iptables' and fwconsole' statements in the /etc/rc.local file. Asterisk does not start at all with all delays.

...and for the sake of clarity - the rc.local files I posted in my previous entry are:
 

sortons

Member
Joined
Aug 9, 2018
Messages
50
Reaction score
7
- Incredible PBX 13-13.10 on CentOS running on a VPS
- Incredible PBX 13-13.10 running on Raspberry Pi 3B (same behaviour as 13-13.7 runing on same RPi)

Fax send receive works on CentOS, while fax receive only work on RPi - fax send on RPi 3 13-13.7 and 13-13.10 does not work with the error "busy signal detected." as posted in my original (#1) post in this thread
 

Eliad

Active Member
Joined
Aug 13, 2017
Messages
182
Reaction score
25
sorry, from here on I do not know how to help you, i thought you had the same problem i did in the past.
Did you look at the Asterisk CLI output when you try dial out. That output might give the answer what is wrong. There are on this forum true experts (i am not) that can decipher from the CLI output what is going on.
 

sortons

Member
Joined
Aug 9, 2018
Messages
50
Reaction score
7
Here is the Asterisk CLI output - note that I have the trunks and outbound route configured properly, and 10 & 11 digits dialing; also, phone calls work properly on the same trunk:

Connected to Asterisk 13.27.0 currently running on h73 (pid = 30158)
-- Accepting UNAUTHENTICATED call from 127.0.0.1:4573:
-- > requested format = ulaw,
-- > requested prefs = (),
-- > actual format = ulaw,
-- > host prefs = (ulaw),
-- > priority = mine
-- Executing [[email protected]:1] Dial("IAX2/iax-fax3-15280", "local/[email protected]") in new stack
-- Called local/[email protected]
-- Executing [[email protected]:1] Macro("Local/[email protected];2", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [[email protected]:1] Set("Local/[email protected];2", "TOUCH_MONITOR=1563372574.36") in new stack
-- Executing [[email protected]:2] Set("Local/[email protected];2", "AMPUSER=+00000000003") in new stack
-- Executing [[email protected]:3] GotoIf("Local/[email protected];2", "0?report") in new stack
-- Executing [[email protected]:4] ExecIf("Local/[email protected];2", "1?Set(REALCALLERIDNUM=+00000000003)") in new stack
-- Executing [[email protected]:5] Set("Local/[email protected];2", "AMPUSER=") in new stack
-- Executing [[email protected]:6] GotoIf("Local/[email protected];2", "0?limit") in new stack
-- Executing [[email protected]:7] Set("Local/[email protected];2", "AMPUSERCIDNAME=") in new stack
-- Executing [[email protected]:8] ExecIf("Local/[email protected];2", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
-- Executing [[email protected]:9] GotoIf("Local/[email protected];2", "1?report") in new stack
-- Goto (macro-user-callerid,s,16)
-- Executing [[email protected]:16] NoOp("Local/[email protected];2", "Macro Depth is 1") in new stack
-- Executing [[email protected]:17] GotoIf("Local/[email protected];2", "1?report2:macroerror") in new stack
-- Goto (macro-user-callerid,s,18)
-- Executing [[email protected]:18] GotoIf("Local/[email protected];2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,36)
-- Executing [[email protected]:36] Set("Local/[email protected];2", "CALLERID(number)=+00000000003") in new stack
-- Executing [[email protected]:37] Set("Local/[email protected];2", "CALLERID(name)=Incredible PBX") in new stack
-- Executing [[email protected]:38] GotoIf("Local/[email protected];2", "0?cnum") in new stack
-- Executing [[email protected]:39] Set("Local/[email protected];2", "CDR(cnam)=Incredible PBX") in new stack
-- Executing [[email protected]:40] Set("Local/[email protected];2", "CDR(cnum)=+00000000003") in new stack
-- Executing [[email protected]:41] Set("Local/[email protected];2", "CHANNEL(language)=en") in new stack
-- Executing [[email protected]:2] NoCDR("Local/[email protected];2", "") in new stack
-- Executing [[email protected]:3] Progress("Local/[email protected];2", "") in new stack
-- Local/[email protected];1 is making progress passing it to IAX2/iax-fax3-15280
-- Executing [[email protected]:4] Wait("Local/[email protected];2", "1") in new stack
-- Executing [[email protected]:5] Playback("Local/[email protected];2", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
-- <Local/[email protected];2> Playing 'silence/1.ulaw' (language 'en')
-- <Local/[email protected];2> Playing 'cannot-complete-as-dialed.ulaw' (language 'en')
-- <Local/[email protected];2> Playing 'check-number-dial-again.ulaw' (language 'en')
-- Executing [[email protected]:6] Wait("Local/[email protected];2", "1") in new stack
-- Executing [[email protected]:7] Congestion("Local/[email protected];2", "20") in new stack
-- Local/[email protected];1 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [[email protected]:2] Goto("IAX2/iax-fax3-15280", "outbound-allroutes,18884732963,1") in new stack
-- Goto (outbound-allroutes,18884732963,1)
-- Executing [[email protected]:1] Macro("IAX2/iax-fax3-15280", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [[email protected]:1] Set("IAX2/iax-fax3-15280", "TOUCH_MONITOR=1563372574.34") in new stack
-- Executing [[email protected]:2] Set("IAX2/iax-fax3-15280", "AMPUSER=+00000000003") in new stack
-- Executing [[email protected]:3] GotoIf("IAX2/iax-fax3-15280", "0?report") in new stack
-- Executing [[email protected]:4] ExecIf("IAX2/iax-fax3-15280", "1?Set(REALCALLERIDNUM=+00000000003)") in new stack
-- Executing [[email protected]:5] Set("IAX2/iax-fax3-15280", "AMPUSER=") in new stack
-- Executing [[email protected]:6] GotoIf("IAX2/iax-fax3-15280", "0?limit") in new stack
-- Executing [[email protected]:7] Set("IAX2/iax-fax3-15280", "AMPUSERCIDNAME=") in new stack
-- Executing [[email protected]:8] ExecIf("IAX2/iax-fax3-15280", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
-- Executing [[email protected]:9] GotoIf("IAX2/iax-fax3-15280", "1?report") in new stack
-- Goto (macro-user-callerid,s,16)
-- Executing [[email protected]:16] NoOp("IAX2/iax-fax3-15280", "Macro Depth is 1") in new stack
-- Executing [[email protected]:17] GotoIf("IAX2/iax-fax3-15280", "1?report2:macroerror") in new stack
-- Goto (macro-user-callerid,s,18)
-- Executing [[email protected]:18] GotoIf("IAX2/iax-fax3-15280", "1?continue") in new stack
-- Goto (macro-user-callerid,s,36)
-- Executing [[email protected]:36] Set("IAX2/iax-fax3-15280", "CALLERID(number)=+00000000003") in new stack
-- Executing [[email protected]:37] Set("IAX2/iax-fax3-15280", "CALLERID(name)=Incredible PBX") in new stack
-- Executing [[email protected]:38] GotoIf("IAX2/iax-fax3-15280", "0?cnum") in new stack
-- Executing [[email protected]:39] Set("IAX2/iax-fax3-15280", "CDR(cnam)=Incredible PBX") in new stack
-- Executing [[email protected]:40] Set("IAX2/iax-fax3-15280", "CDR(cnum)=+00000000003") in new stack
-- Executing [[email protected]:41] Set("IAX2/iax-fax3-15280", "CHANNEL(language)=en") in new stack
-- Auto fallthrough, channel 'IAX2/iax-fax3-15280' status is 'CONGESTION'
-- Hungup 'IAX2/iax-fax3-15280'
[2019-07-17 10:09:42] WARNING[26952][C-00000016]: channel.c:5091 ast_prod: Prodding channel 'Local/[email protected];2' failed
== Spawn extension (from-internal, 18884732963, 7) exited non-zero on 'Local/[email protected];2'
-- Executing [[email protected]:1] Macro("Local/[email protected];2", "hangupcall") in new stack
-- Executing [[email protected]:1] GotoIf("Local/[email protected];2", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [[email protected]:4] Hangup("Local/[email protected];2", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/[email protected];2' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'Local/[email protected];2'
h73*CLI>
 

Members online

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,561
Messages
138,857
Members
14,669
Latest member
cleron