PIONEERS Incredible Fax for Ubuntu with Incredible PBX install

Josh North

Guru
Joined
Aug 5, 2014
Messages
27
Reaction score
11
"IncredibleFax for Ubuntu with IncrediblePBX"
IMPORTANT:
This is currently beta code. It may corrupt or delete your data, or break your system completely! Do NOT use this in production unless you enjoy stress.

CREDITS:

wardmundy and team for the PIAF project
jroper for the CentOS script that this started from

REPO:
https://github.com/joshnorth/UbuntuPIAF

TEST STATUS:
All my testing is currently performed on KVM VM's as I do not have enough hardware for anything else.
Latest test: 10/21/2014
OS Base: Ubuntu 14.04.1-mini (i386) and Ubuntu 14.04.1-mini (amd64)
- Receiving faxes on multiple lines simultaneously (3 Gvoice lines tested)
- Fax to email
- Fax categories and recipients in AvantFAX
- Outbound FAX via WebGUI
INSTALLATION:
1. Install Ubuntu 14.04.1 and install as posted in the IncrediblePBX post (http://nerdvittles.com/?p=9713)
2. Run through the IncrediblePBX (http://nerdvittles.com/?p=9713) install and reboot
3. Login as root via SSH and run the PIAF updater when asked - this fixes multiple quirks and glitches. DO NOT TRY TO USE FREEPBX BEFORE THIS. *YOU MUST REBOOT HERE*
4. Install IncredibleFax, inserting your email address when requested. Press Enter for all other questions to accept the default options.
Code:
cd /root
wget --no-check-certificate https://raw.githubusercontent.com/joshnorth/UbuntuPIAF/master/incrediblefax11_ubuntu14.sh
chmod +x incrediblefax11_ubuntu14.sh
./incrediblefax11_ubuntu14.sh
*YOU MUST REBOOT HERE*
5. When your machine comes back up, you will see a button on the FreePBX web GUI for AvantFax. Default login is admin/password. If this does not work, login as root via SSH and run /root/avantfax-pw-change
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Hi

Good effort on this, which was one of my early scripts, I've not had the chance to go back to it and look more closely.

There are some areas I believe could do with tidying up for easier maintenance of the script.

I set up a while loop to add the various configs, lines 106 to line 147. Some of the later repeated lines may better inside the while loop to cut down on code maintenance.

The lines that could move into the while loop are:

154-161
261-286
315-318

Joe
 

Josh North

Guru
Joined
Aug 5, 2014
Messages
27
Reaction score
11
Good idea! I will definitely work on that. Wanted to get it working first then optimize/clean. I'm not a great coder to start with, my forte is twisting other people's work to do what I want it to do :)
 

Josh North

Guru
Joined
Aug 5, 2014
Messages
27
Reaction score
11
Well, I'm stuck currently with one major bug between AvantFAX and HylaFAX. Incoming faxes are not auto-processed correctly. I can manually run faxrcvd.php and it will process/email/etc but doesn't trigger on the actual receipt. I've opened up permissions on the receive queue and knocked out every other bug and error I can find but still no dice.
I'm heading out of town for the weekend and will revisit on Monday. I'm thinking about trying the Ubuntu packaged hylafax instead of building from source. Only problem is it might be an older version and it might not be hylafax+. Must research.
 

Josh North

Guru
Joined
Aug 5, 2014
Messages
27
Reaction score
11
I'm going to say this is in alpha state now. I've modified it yet again to just use HylaFAX from the Ubuntu repo instead of building from source.
I need testing/bugfinding/code cleanup. Anyone is welcome to contribute if you use github or if wardmundy has another version system.

TESTED! (on KVM virtual machines):
Ubuntu 14.04 (i386) and Ubuntu 14.04.1 (amd64) default installs per the NV post on Ubuntu and IncrediblePBX at (http://nerdvittles.com/?p=9713).
Receiving faxes on multiple lines simultaneously (3 lines)
Fax to email
Fax categories and recipients in AvantFAX

NOT TESTED!
Email to fax (send)
Any fax sending
Any custom destination or other advanced ways of receiving/sending
Print to fax with any HylaFAX/AvantFAX addons

I'll update the first post in a moment.
 

Josh North

Guru
Joined
Aug 5, 2014
Messages
27
Reaction score
11
Manually sending fax via AvantFAX interface seems to work ok.

Future work note - while the IncrediblePBX installer does not work on VZ containers, this installer should. I will probably tackle making IncrediblePBX run in a VZ instance after this is cleaned up a bit.
 

kwimberl

New Member
Joined
Aug 27, 2008
Messages
26
Reaction score
2
Thanks for your work on this!

I have installed it and send is working out of the box. I am getting errors on receive, but haven't had time to run them down yet.
 

Josh North

Guru
Joined
Aug 5, 2014
Messages
27
Reaction score
11
Ok - PM or post when you find out and I'll see what I can help with. One thing I can say is I have only tested this on a fresh install so if you have made any mods to your system before installation I don't know what might happen.
 

kwimberl

New Member
Joined
Aug 27, 2008
Messages
26
Reaction score
2
Here is, I think, the problem:

Code:
Aug 13 11:47:08 atom sm-mta[5329]: s7DAV7IX014548: to=<[email protected]>, delay=05:16:01, xdelay=00:00:00, mailer=esmtp, pri=2910000, relay=127.0.1.1. [127.0.1.1], dsn=4.0.0, stat=Deferred: Connection refused by 127.0.1.1.
Aug 13 11:47:08 atom sm-mta[5329]: s79EV6pj005960: to=<[email protected]>, delay=4+01:16:01, xdelay=00:00:00, mailer=esmtp, pri=52590000, relay=127.0.1.1., dsn=4.0.0, stat=Deferred: Connection refused by 127.0.1.1.
Aug 13 11:47:08 atom sm-mta[5329]: s79APPpi001065: to=<[email protected]>, delay=4+05:21:43, xdelay=00:00:00, mailer=esmtp, pri=54930854, relay=127.0.1.1., dsn=4.0.0, stat=Deferred: Connection refused by 127.0.1.1.
 
I don't have time to deal with it now, but it should be relatively easy to fix...
Aug 13 11:47:08 atom sm-mta[5329]: s7DAV7IX014548: to=<[email protected]>, delay=05:16:01, xdelay=00:00:00, mailer=esmtp, pri=2910000, relay=127.0.1.1. [127.0.1.1], dsn=4.0.0, stat=Deferred: Connection refused by 127.0.1.1.
Aug 13 11:47:08 atom sm-mta[5329]: s79EV6pj005960: to=<[email protected]>, delay=4+01:16:01, xdelay=00:00:00, mailer=esmtp, pri=52590000, relay=127.0.1.1., dsn=4.0.0, stat=Deferred: Connection refused by 127.0.1.1.
Aug 13 11:47:08 atom sm-mta[5329]: s79APPpi001065: to=<[email protected]>, delay=4+05:21:43, xdelay=00:00:00, mailer=esmtp, pri=54930854, relay=127.0.1.1., dsn=4.0.0, stat=Deferred: Connection refused by 127.0.1.1.
Aug 13 11:47:08 atom sm-mta[5329]: s7DAV7IX014548: to=<[email protected]>, delay=05:16:01, xdelay=00:00:00, mailer=esmtp, pri=2910000, relay=127.0.1.1. [127.0.1.1], dsn=4.0.0, stat=Deferred: Connection refused by 127.0.1.1.
Aug 13 11:47:08 atom sm-mta[5329]: s79EV6pj005960: to=<[email protected]>, delay=4+01:16:01, xdelay=00:00:00, mailer=esmtp, pri=52590000, relay=127.0.1.1., dsn=4.0.0, stat=Deferred: Connection refused by 127.0.1.1.
Aug 13 11:47:08 atom sm-mta[5329]: s79APPpi001065: to=<[email protected]>, delay=4+05:21:43, xdelay=00:00:00, mailer=esmtp, pri=54930854, relay=127.0.1.1., dsn=4.0.0, stat=Deferred: Connection refused by 127.0.1.1.
Aug 13 11:47:08 atom sm-mta[5329]: s7DAV7IX014548: to=<[email protected]>, delay=05:16:01, xdelay=00:00:00, mailer=esmtp, pri=2910000, relay=127.0.1.1. [127.0.1.1], dsn=4.0.0, stat=Deferred: Connection refused by 127.0.1.1.
Aug 13 11:47:08 atom sm-mta[5329]: s79EV6pj005960: to=<[email protected]>, delay=4+01:16:01, xdelay=00:00:00, mailer=esmtp, pri=52590000, relay=127.0.1.1., dsn=4.0.0, stat=Deferred: Connection refused by 127.0.1.1.
Aug 13 11:47:08 atom sm-mta[5329]: s79APPpi001065: to=<[email protected]>, delay=4+05:21:43, xdelay=00:00:00, mailer=esmtp, pri=54930854, relay=127.0.1.1., dsn=4.0.0, stat=Deferred: Connection refused by 127.0.1.1.
 

Josh North

Guru
Joined
Aug 5, 2014
Messages
27
Reaction score
11
My money says your system email is not configured correctly. While this log does not actually say so, I'm betting the incoming fax is working perfectly fine, and this error is coming from your MTA.
Have you set up your system mailer correctly? Try the following links depending on how you want to set it up. I actually use a different solution that was easier for me by installing SSMTP but this may or may not break things.
Use gmail as sendmail host
Use SMTP smart host
Actually - if you have an ISP such as Comcast or whatever and don't mind using their outbound SMTP you *might* be able to just do a "dpkg-reconfigure sendmail" from your root SSH session and enter their information.

Another thing - these errors actually are trying to send email to "[email protected]" - is that a valid email address? I think it probably is not.

If you have a gmail account you would like to use for sending, here is a short and sweet version of SSMTP setup:
1. Install ssmtp "apt-get install ssmtp"
2. Edit config file with nano or whatever "nano /etc/ssmtp/ssmtp.conf"
3. Replace contents with the following (be sure to use your email address and password), save, and reboot or something
Code:
# Config file for sSMTP sendmail
[email protected]
mailhub=smtp.gmail.com:587
[email protected]
AuthPass=YOURPASSWORD
UseTLS=YES
UseSTARTTLS=YES
rewriteDomain=gmail.com
[email protected]
FromLineOverride=YES
 

kwimberl

New Member
Joined
Aug 27, 2008
Messages
26
Reaction score
2
Actually the problem was with /etc/hosts. It had a strange line in there:
noreply.incrediblepbx.com 127.0.1.1

That must have been added by the incrediblepbx installer. It hosed the mail to show it coming from [email protected]. I removed it and mail works.

However, the incoming fax is still not working. Here is the log from receiving the call:

Code:
Aug 13 12:47:30 atom HylaFAX[6766]: `-> Got a: 127.0.0.1[13]
Aug 13 12:47:30 atom HylaFAX[6766]: `-> Got a: 55065[19]
Aug 13 12:47:32 atom FaxGetty[2403]: STATE CHANGE: RUNNING -> LISTENING
Aug 13 12:47:32 atom FaxGetty[2403]: --> [9:DATE=0813]
Aug 13 12:47:32 atom FaxGetty[2403]: --> [9:TIME=1247]
Aug 13 12:47:32 atom FaxGetty[2403]: --> [20:NAME=NOTARY ROTARY I]
Aug 13 12:47:32 atom FaxGetty[2403]: --> [16:NMBR=15159543300]
Aug 13 12:47:32 atom FaxGetty[2403]: --> [11:ANID=<NONE>]
Aug 13 12:47:32 atom FaxGetty[2403]: --> [11:USER=<NONE>]
Aug 13 12:47:32 atom FaxGetty[2403]: --> [11:pASS=<NONE>]
Aug 13 12:47:32 atom FaxGetty[2403]: --> [11:CDID=<NONE>]
Aug 13 12:47:32 atom FaxGetty[2403]: --> [6:NDID=s]
Aug 13 12:47:32 atom FaxGetty[2403]: --> [4:RING]
Aug 13 12:47:32 atom FaxGetty[2403]: ANSWER: Call ID 1 "15159543300"
Aug 13 12:47:32 atom FaxGetty[2403]: ANSWER: Call ID 2 "NOTARY ROTARY I"
Aug 13 12:47:32 atom FaxGetty[2403]: ANSWER: Call ID 3 "<NONE>"
Aug 13 12:47:32 atom FaxGetty[2403]: ANSWER: Call ID 4 "s"
Aug 13 12:47:32 atom FaxGetty[2403]: STATE CHANGE: LISTENING -> ANSWERING
Aug 13 12:47:32 atom FaxGetty[2403]: DynamicConfig: bin/dynconf.php "/dev/ttyIAX0" "15159543300" "NOTARY ROTARY I" "<NONE>" "s"
Aug 13 12:47:36 atom FaxGetty[2403]: ANSWER: FAX CONNECTION DEVICE '/dev/ttyIAX0'
Aug 13 12:47:43 atom HylaFAX[6774]: `-> Got a: 127.0.0.1[13]
Aug 13 12:47:43 atom HylaFAX[6774]: `-> Got a: 39843[19]
Aug 13 12:47:43 atom HylaFAX[6774]: `-> Got a: 127.0.0.1[13]
Aug 13 12:47:43 atom HylaFAX[6774]: `-> Got a: 52240[19]
Aug 13 12:47:43 atom HylaFAX[6778]: `-> Got a: 127.0.0.1[13]
Aug 13 12:47:43 atom HylaFAX[6778]: `-> Got a: 39416[19]
Aug 13 12:47:43 atom HylaFAX[6778]: `-> Got a: 127.0.0.1[13]
Aug 13 12:47:43 atom HylaFAX[6778]: `-> Got a: 60122[19]
Aug 13 12:47:50 atom FaxGetty[2403]: <-- [5:ATH0\r]
Aug 13 12:47:50 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:50 atom FaxGetty[2403]: MODEM set DTR OFF
Aug 13 12:47:50 atom FaxGetty[2403]: MODEM set baud rate: 0 baud (flow control unchanged)
Aug 13 12:47:51 atom FaxGetty[2403]: MODEM set DTR OFF
Aug 13 12:47:51 atom FaxGetty[2403]: MODEM set baud rate: 0 baud (flow control unchanged)
Aug 13 12:47:51 atom FaxGetty[2403]: DELAY 75 ms
Aug 13 12:47:51 atom FaxGetty[2403]: MODEM set DTR ON
Aug 13 12:47:51 atom FaxGetty[2403]: DELAY 2600 ms
Aug 13 12:47:55 atom FaxGetty[2403]: MODEM set baud rate: 19200 baud, input flow XON/XOFF, output flow XON/XOFF
Aug 13 12:47:55 atom FaxGetty[2403]: DELAY 10 ms
Aug 13 12:47:55 atom FaxGetty[2403]: MODEM flush i/o
Aug 13 12:47:55 atom FaxGetty[2403]: <-- [4:ATZ\r]
Aug 13 12:47:55 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:55 atom FaxGetty[2403]: DELAY 3000 ms
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM flush i/o
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [10:AT+VCID=1\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [9:AT+VCID=1]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [7:ATS0=0\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [6:ATS0=0]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [5:ATE0\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [4:ATE0]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [5:ATV1\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [5:ATQ0\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [7:ATS8=2\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [8:ATS7=60\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [12:AT+FCLASS=?\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [7:0,1,1.0]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports "Data"
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports "Class 1"
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports "Class 1.0"
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [12:AT+FCLASS=1\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [5:ATI3\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [19:www.soft-switch.org]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM: Mfr www.soft-switch.org
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [5:ATI0\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [7:spandsp]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM: Model spandsp
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [9:AT+FTM=?\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [39:24,48,72,73,74,96,97,98,121,122,145,146]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 3.85 line/mm
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 7.7 line/mm
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 15.4 line/mm
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports R16 x 15.4 line/mm
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 200 x 100 dpi
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 200 x 200 dpi
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 200 x 400 dpi
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 300 x 300 dpi
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 2400 bit/s
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 4800 bit/s
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 7200 bit/s
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 9600 bit/s
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 12000 bit/s
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 14400 bit/s
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports A4 page width (215 mm)
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports B4 page width (255 mm)
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports A3 page width (303 mm)
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports A4 page length (297 mm)
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports B4 page length (364 mm)
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports unlimited page length
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 1-D MH
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 2-D MR
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 2-D MMR
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports no ECM
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports T.30 Annex A, 64-byte ECM
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports T.30 Annex A, 256-byte ECM
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 0 ms/scanline
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 5 ms/scanline
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 10 ms, 5 ms/scanline
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 10 ms/scanline
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 20 ms, 10 ms/scanline
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 20 ms/scanline
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 40 ms, 20 ms/scanline
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM Supports 40 ms/scanline
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [9:AT+FRM=?\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [39:24,48,72,73,74,96,97,98,121,122,145,146]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: MODEM WWW.SOFT-SWITCH.ORG spandsp/
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [5:ATM0\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: <-- [9:AT+FAR=1\r]
Aug 13 12:47:58 atom FaxGetty[2403]: --> [2:OK]
Aug 13 12:47:58 atom FaxGetty[2403]: STATE CHANGE: RECEIVING -> RUNNING (timeout 30)
Aug 13 12:48:04 atom HylaFAX[6782]: `-> Got a: 127.0.0.1[13]
Aug 13 12:48:04 atom HylaFAX[6782]: `-> Got a: 36987[19]
Aug 13 12:48:04 atom HylaFAX[6782]: `-> Got a: 127.0.0.1[13]
Aug 13 12:48:04 atom HylaFAX[6782]: `-> Got a: 40219[19]
Aug 13 12:48:25 atom HylaFAX[6787]: `-> Got a: 127.0.0.1[13]
Aug 13 12:48:25 atom HylaFAX[6787]: `-> Got a: 38374[19]
Aug 13 12:48:25 atom HylaFAX[6787]: `-> Got a: 127.0.0.1[13]
Aug 13 12:48:25 atom HylaFAX[6787]: `-> Got a: 60974[19]
 

Josh North

Guru
Joined
Aug 5, 2014
Messages
27
Reaction score
11
Now that I think about it, I did have to change the hosts file on mine as well.

As far as the log - this looks better. We can see it answering and beginning, but FaxGetty isn't kicking off the receive script for some reason. I'm not sure what is happening here. Just for comparison, I added a log of a fax receipt on my working box below.

Can you log in to AvantFAX and look at the system log? You have to click the little computer wrench icon under the "logout" text in top right, and then change the dropdown at the top to System Logs.


Here's my working logfile:
Code:
Aug 13 11:56:56 ts01 FaxGetty[1508]: STATE CHANGE: RUNNING -> LISTENING
Aug 13 11:56:56 ts01 FaxGetty[1508]: --> [9:DATE=0813]
Aug 13 11:56:56 ts01 FaxGetty[1508]: --> [9:TIME=1156]
Aug 13 11:56:56 ts01 FaxGetty[1508]: --> [19:NAME=<<<REDACTED>>>]
Aug 13 11:56:56 ts01 FaxGetty[1508]: --> [15:NMBR=<<<REDACTED>>>]
Aug 13 11:56:56 ts01 FaxGetty[1508]: --> [11:ANID=<NONE>]
Aug 13 11:56:56 ts01 FaxGetty[1508]: --> [11:USER=<NONE>]
Aug 13 11:56:56 ts01 FaxGetty[1508]: --> [11:PASS=<NONE>]
Aug 13 11:56:56 ts01 FaxGetty[1508]: --> [11:CDID=<NONE>]
Aug 13 11:56:56 ts01 FaxGetty[1508]: --> [6:NDID=s]
Aug 13 11:56:56 ts01 FaxGetty[1508]: --> [4:RING]
Aug 13 11:56:56 ts01 FaxGetty[1508]: ANSWER: Call ID 1 "<<<REDACTED>>>"
Aug 13 11:56:56 ts01 FaxGetty[1508]: ANSWER: Call ID 2 "<<<REDACTED>>>"
Aug 13 11:56:56 ts01 FaxGetty[1508]: ANSWER: Call ID 3 "<NONE>"
Aug 13 11:56:56 ts01 FaxGetty[1508]: ANSWER: Call ID 4 "s"
Aug 13 11:56:56 ts01 FaxGetty[1508]: STATE CHANGE: LISTENING -> ANSWERING
Aug 13 11:56:56 ts01 FaxGetty[1508]: DynamicConfig: bin/dynconf.php "/dev/ttyIAX0" "<<<REDACTED>>>" "<<<REDACTED>>>" "<NONE>" "s"
Aug 13 11:57:00 ts01 FaxGetty[1508]: ANSWER: FAX CONNECTION  DEVICE '/dev/ttyIAX0'
Aug 13 11:57:34 ts01 FaxGetty[1508]: RECV FAX (000000004): from <<<REDACTED>>>, page 1 in 0:00:31, INF, 7.7 line/mm, 2-D MMR, 14400 bit/s
Aug 13 11:57:34 ts01 FaxGetty[1508]: RECV FAX (000000004): recvq/fax000000002.tif from <<<REDACTED>>>, route to <unspecified>, 1 pages in 0:00:34
Aug 13 11:57:34 ts01 FaxGetty[1508]: RECV FAX: bin/faxrcvd.php "recvq/fax000000002.tif" "ttyIAX0" "000000004" "" "<<<REDACTED>>>" "<<<REDACTED>>>" "<NONE>" "s"
Aug 13 11:57:34 ts01 FaxGetty[1508]: <-- [5:ATH0\r]
Aug 13 11:57:34 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:34 ts01 FaxGetty[1508]: MODEM set DTR OFF
Aug 13 11:57:34 ts01 FaxGetty[1508]: MODEM set baud rate: 0 baud (flow control unchanged)
Aug 13 11:57:35 ts01 FaxGetty[1508]: MODEM set DTR OFF
Aug 13 11:57:35 ts01 FaxGetty[1508]: MODEM set baud rate: 0 baud (flow control unchanged)
Aug 13 11:57:35 ts01 FaxGetty[1508]: DELAY 75 ms
Aug 13 11:57:35 ts01 FaxGetty[1508]: MODEM set DTR ON
Aug 13 11:57:35 ts01 FaxGetty[1508]: DELAY 2600 ms
Aug 13 11:57:36 ts01 sSMTP[10962]: Creating SSL connection to host
Aug 13 11:57:37 ts01 sSMTP[10962]: SSL connection using RSA_ARCFOUR_SHA1
Aug 13 11:57:39 ts01 FaxGetty[1508]: MODEM set baud rate: 19200 baud, input flow XON/XOFF, output flow XON/XOFF
Aug 13 11:57:39 ts01 FaxGetty[1508]: DELAY 10 ms
Aug 13 11:57:39 ts01 FaxGetty[1508]: MODEM flush i/o
Aug 13 11:57:39 ts01 FaxGetty[1508]: <-- [4:ATZ\r]
Aug 13 11:57:39 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:39 ts01 FaxGetty[1508]: DELAY 3000 ms
Aug 13 11:57:40 ts01 sSMTP[10962]: Sent mail for <<<REDACTED>>> (221 2.0.0 closing connection c64sm4805207yha.2 - gsmtp) uid=10 username=uucp outbytes=54689
Aug 13 11:57:42 ts01 FaxGetty[1508]: MODEM flush i/o
Aug 13 11:57:42 ts01 FaxGetty[1508]: <-- [10:AT+VCID=1\r]
Aug 13 11:57:42 ts01 FaxGetty[1508]: --> [9:AT+VCID=1]
Aug 13 11:57:42 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:42 ts01 FaxGetty[1508]: <-- [7:ATS0=0\r]
Aug 13 11:57:42 ts01 FaxGetty[1508]: --> [6:ATS0=0]
Aug 13 11:57:42 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:42 ts01 FaxGetty[1508]: <-- [5:ATE0\r]
Aug 13 11:57:42 ts01 FaxGetty[1508]: --> [4:ATE0]
Aug 13 11:57:42 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:42 ts01 FaxGetty[1508]: <-- [5:ATV1\r]
Aug 13 11:57:42 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:42 ts01 FaxGetty[1508]: <-- [5:ATQ0\r]
Aug 13 11:57:42 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:42 ts01 FaxGetty[1508]: <-- [7:ATS8=2\r]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:43 ts01 FaxGetty[1508]: <-- [8:ATS7=60\r]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:43 ts01 FaxGetty[1508]: <-- [12:AT+FCLASS=?\r]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [7:0,1,1.0]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports "Data"
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports "Class 1"
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports "Class 1.0"
Aug 13 11:57:43 ts01 FaxGetty[1508]: <-- [12:AT+FCLASS=1\r]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:43 ts01 FaxGetty[1508]: <-- [5:ATI3\r]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [19:www.soft-switch.org]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM: Mfr www.soft-switch.org
Aug 13 11:57:43 ts01 FaxGetty[1508]: <-- [5:ATI0\r]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [7:spandsp]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM: Model spandsp
Aug 13 11:57:43 ts01 FaxGetty[1508]: <-- [9:AT+FTM=?\r]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [39:24,48,72,73,74,96,97,98,121,122,145,146]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 3.85 line/mm
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 7.7 line/mm
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 15.4 line/mm
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports R16 x 15.4 line/mm
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 200 x 100 dpi
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 200 x 200 dpi
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 200 x 400 dpi
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 300 x 300 dpi
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 2400 bit/s
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 4800 bit/s
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 7200 bit/s
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 9600 bit/s
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 12000 bit/s
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 14400 bit/s
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports A4 page width (215 mm)
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports B4 page width (255 mm)
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports A3 page width (303 mm)
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports A4 page length (297 mm)
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports B4 page length (364 mm)
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports unlimited page length
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 1-D MH
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 2-D MR
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 2-D MMR
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports no ECM
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports T.30 Annex A, 64-byte ECM
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports T.30 Annex A, 256-byte ECM
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 0 ms/scanline
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 5 ms/scanline
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 10 ms, 5 ms/scanline
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 10 ms/scanline
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 20 ms, 10 ms/scanline
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 20 ms/scanline
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 40 ms, 20 ms/scanline
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM Supports 40 ms/scanline
Aug 13 11:57:43 ts01 FaxGetty[1508]: <-- [9:AT+FRM=?\r]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [39:24,48,72,73,74,96,97,98,121,122,145,146]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM WWW.SOFT-SWITCH.ORG spandsp/
Aug 13 11:57:43 ts01 FaxGetty[1508]: <-- [5:ATM0\r]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:43 ts01 FaxGetty[1508]: <-- [9:AT+FAR=1\r]
Aug 13 11:57:43 ts01 FaxGetty[1508]: --> [2:OK]
Aug 13 11:57:43 ts01 FaxGetty[1508]: STATE CHANGE: RECEIVING -> RUNNING (timeout 30)
Aug 13 11:57:43 ts01 FaxGetty[1508]: MODEM input buffering disabled
 

jeff.h

Guru
Joined
Dec 1, 2010
Messages
502
Reaction score
71
Yeah I did notice on my DO droplets that there is a second loopback (127.0.1.1) that seems to take precedence over the normal 127.0.0.1. Whereas when installed directly on my Foxconn box it does not have that second loopback.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Be sure to send yourself a test email if you remove something from /etc/hosts. The noreply.incrediblepbx.com entry was there for a reason. :)

Code:
echo "test" | mail -s testmessage [email protected]
 

kwimberl

New Member
Joined
Aug 27, 2008
Messages
26
Reaction score
2
Be sure to send yourself a test email if you remove something from /etc/hosts. The noreply.incrediblepbx.com entry was there for a reason. :)

Code:
echo "test" | mail -s testmessage [email protected]


It works without it. It is broken with it. ;) By broken, I mean that it sends from [email protected] which causes all sorts of problems with ending up in spam folders in general and not accepting mail on the local box.

I suspect this is because I have a real hostname on the box. I set it up from the CLI and did not actually look at /etc/hosts so that's why I didn't notice it from the start...
 

kwimberl

New Member
Joined
Aug 27, 2008
Messages
26
Reaction score
2
The log from inside of avantfax says little:

13.08.2014 16:46 dynconf> checking CallID1 15159543300 on device /dev/ttyIAX0
13.08.2014 16:43 dynconf> checking CallID1 15159543300 on device /dev/ttyIAX0
13.08.2014 16:41
dynconf> checking CallID1 15159543300 on device /dev/ttyIAX0

 

kwimberl

New Member
Joined
Aug 27, 2008
Messages
26
Reaction score
2
Here is what is showing from asterisk console:


Code:
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [1XXXXXXXXXX@from-sip-external:1] NoOp("SIP/66.193.176.35-00000001", "Received incoming SIP connection from unknown peer to 1XXXXXXXXXX") in new stack
-- Executing [1XXXXXXXXXX@from-sip-external:2] Set("SIP/66.193.176.35-00000001", "DID=1XXXXXXXXXX") in new stack
-- Executing [1XXXXXXXXXX@from-sip-external:3] Goto("SIP/66.193.176.35-00000001", "s,1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/66.193.176.35-00000001", "1?checklang:noanonymous") in new stack
-- Goto (from-sip-external,s,2)
-- Executing [s@from-sip-external:2] GotoIf("SIP/66.193.176.35-00000001", "0?setlanguage:from-trunk,1XXXXXXXXXX,1") in new stack
-- Goto (from-trunk,1XXXXXXXXXX,1)
-- Executing [1XXXXXXXXXX@from-trunk:1] Set("SIP/66.193.176.35-00000001", "__FROM_DID=1XXXXXXXXXX") in new stack
-- Executing [1XXXXXXXXXX@from-trunk:2] Set("SIP/66.193.176.35-00000001", "CIDSFSCHEME=QUxMfEFMTA==") in new stack
-- Executing [1XXXXXXXXXX@from-trunk:3] AGI("SIP/66.193.176.35-00000001", "/var/www/html/admin/modules/superfecta/agi/superfecta.agi") in new stack
-- Launched AGI Script /var/www/html/admin/modules/superfecta/agi/superfecta.agi
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta is Answering the Channel
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: Scheme is ALL
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: The DID passed from Asterisk is: 1XXXXXXXXXX
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: The number passed from Asterisk is: 15159543300
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: The CID name passed from Asterisk is: unknown
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: Executing Scheme..
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: CID Determined to be: 'DES MOINES, IA'
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: Attempting to set lookupcid
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: Success!
-- <SIP/66.193.176.35-00000001>AGI Script /var/www/html/admin/modules/superfecta/agi/superfecta.agi completed, returning 0
-- Executing [1XXXXXXXXXX@from-trunk:4] Set("SIP/66.193.176.35-00000001", "CALLERID(name)=DES MOINES, IA") in new stack
-- Executing [1XXXXXXXXXX@from-trunk:5] Gosub("SIP/66.193.176.35-00000001", "app-blacklist-check,s,1()") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/66.193.176.35-00000001", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/66.193.176.35-00000001", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/66.193.176.35-00000001", "") in new stack
-- Executing [1XXXXXXXXXX@from-trunk:6] Set("SIP/66.193.176.35-00000001", "CDR(did)=1XXXXXXXXXX") in new stack
-- Executing [1XXXXXXXXXX@from-trunk:7] Gosub("SIP/66.193.176.35-00000001", "cidlookup,cidlookup_1,1()") in new stack
-- Executing [cidlookup_1@cidlookup:1] Set("SIP/66.193.176.35-00000001", "CURLOPT(httptimeout)=7") in new stack
-- Executing [cidlookup_1@cidlookup:2] Set("SIP/66.193.176.35-00000001", "CALLERID(name)=NOTARY ROTARY I") in new stack
-- Executing [cidlookup_1@cidlookup:3] Set("SIP/66.193.176.35-00000001", "current_hour=2014-08-13 16") in new stack
-- Executing [cidlookup_1@cidlookup:4] Set("SIP/66.193.176.35-00000001", "last_query_hour=2014-08-13 16") in new stack
-- Executing [cidlookup_1@cidlookup:5] Set("SIP/66.193.176.35-00000001", "total_hourly_queries=1") in new stack
-- Executing [cidlookup_1@cidlookup:6] ExecIf("SIP/66.193.176.35-00000001", "0?Set(DB(cidlookup/opencnam_total_hourly_queries)=0)") in new stack
-- Executing [cidlookup_1@cidlookup:7] ExecIf("SIP/66.193.176.35-00000001", "0?Set(DB(cidlookup/opencnam_total_hourly_queries)=0)") in new stack
-- Executing [cidlookup_1@cidlookup:8] Set("SIP/66.193.176.35-00000001", "DB(cidlookup/opencnam_total_hourly_queries)=2") in new stack
-- Executing [cidlookup_1@cidlookup:9] ExecIf("SIP/66.193.176.35-00000001", "0?System(/var/lib/asterisk/bin/opencnam-alert.php)") in new stack
-- Executing [cidlookup_1@cidlookup:10] Set("SIP/66.193.176.35-00000001", "DB(cidlookup/opencnam_last_query_hour)=2014-08-13 16") in new stack
-- Executing [cidlookup_1@cidlookup:11] Return("SIP/66.193.176.35-00000001", "") in new stack
-- Executing [1XXXXXXXXXX@from-trunk:8] ExecIf("SIP/66.193.176.35-00000001", "0 ?Set(CALLERID(name)=15159543300)") in new stack
-- Executing [1XXXXXXXXXX@from-trunk:9] Set("SIP/66.193.176.35-00000001", "CHANNEL(musicclass)=default") in new stack
-- Executing [1XXXXXXXXXX@from-trunk:10] Set("SIP/66.193.176.35-00000001", "__MOHCLASS=default") in new stack
-- Executing [1XXXXXXXXXX@from-trunk:11] Set("SIP/66.193.176.35-00000001", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [1XXXXXXXXXX@from-trunk:12] Set("SIP/66.193.176.35-00000001", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [1XXXXXXXXXX@from-trunk:13] Goto("SIP/66.193.176.35-00000001", "custom-fax-iaxmodem,s,1") in new stack
-- Goto (custom-fax-iaxmodem,s,1)
-- Executing [s@custom-fax-iaxmodem:1] Answer("SIP/66.193.176.35-00000001", "") in new stack
-- Executing [s@custom-fax-iaxmodem:2] Wait("SIP/66.193.176.35-00000001", "1") in new stack
-- Executing [s@custom-fax-iaxmodem:3] SendDTMF("SIP/66.193.176.35-00000001", "1") in new stack
-- Executing [s@custom-fax-iaxmodem:4] Dial("SIP/66.193.176.35-00000001", "IAX2/iax-fax0/s") in new stack
-- Called IAX2/iax-fax0/s
-- Call accepted by 127.0.0.1 (format ulaw)
-- Format for call is (ulaw)
-- IAX2/iax-fax0-297 is ringing
-- IAX2/iax-fax0-297 answered SIP/66.193.176.35-00000001
[2014-08-13 16:43:57] NOTICE[1803]: chan_iax2.c:8952 update_registry: Restricting registration for peer 'iax-fax1' to 60 seconds (requested 300)
[2014-08-13 16:43:57] NOTICE[1801]: chan_iax2.c:8952 update_registry: Restricting registration for peer 'iax-fax2' to 60 seconds (requested 300)
[2014-08-13 16:43:57] NOTICE[1802]: chan_iax2.c:8952 update_registry: Restricting registration for peer 'iax-fax0' to 60 seconds (requested 300)
[2014-08-13 16:43:57] NOTICE[1796]: chan_iax2.c:8952 update_registry: Restricting registration for peer 'iax-fax3' to 60 seconds (requested 300)
-- Hungup 'IAX2/iax-fax0-297'
== Spawn extension (custom-fax-iaxmodem, s, 4) exited non-zero on 'SIP/66.193.176.35-00000001'
[2014-08-13 16:44:52] NOTICE[1800]: chan_iax2.c:8952 update_registry: Restricting registration for peer 'iax-fax0' to 60 seconds (requested 300)
 

kwimberl

New Member
Joined
Aug 27, 2008
Messages
26
Reaction score
2
The problem appears to be limited to my callcentric DID. It is working on other DID's. Oddly, I first tested the callcentric DID because it is a working dedicated fax ID on a centos system (I moved it back to the centos box for now). I'll play with it more later, but it appears to work fine on sending and work fine on other DID's. :)
 

Members online

Forum statistics

Threads
25,779
Messages
167,505
Members
19,199
Latest member
leocipriano
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