Small issue receiving faxes

thefuzz4

Member
Joined
Apr 30, 2011
Messages
71
Reaction score
4
Hey Fellas,

So I just tried to fax myself something after doing a new fresh install the other week. The fax is received just fine with avantfax but it never shows up in the fax list and I never get the email with the new fax. After going into the logs for avantfax this is what I find

22.02.2012 09:09 faxrcvd> Failed to copy recvq/fax000000004.tif to /var/www/html/avantfax/faxes/recvd/2012/02/22/XXXXXXXXXXX/000000004/fax.tif

*Keep in mind that the XXXXXXXXXX was the phone number that I got the fax from so that is correct since I changed it :)

The folders are there up to the recvd point. I checked the permissions

drwxrwx--- 4 asterisk asterisk 4096 Feb 22 09:13 recvd
there is no 2012 folder in the recvd folder and I'm sure that if it wasn't there that avantfax would create it. Thank you in advance for your help I'm sure that this is probably some permissions setting or something but I'm just not sure what the perms should be. Thanks.
 
Thanks Tom running the updates now and will report back with how it went.
 
Quick question, my update-fixes quits with this error
Code:
I am sorry the format of the version numbers do not match!
Is this because I used a backup from the previous PBXIAF? Any thoughts on how to fix this, so I can run the update-fixes? Thanks.
 
Nope

You cant mix and match versions.

try

chmod 777 /var/www/html/avantfax
 
Spoke too soon small error in update-fixes

just uploading new version be patient

Tom
 
Same error
22.02.2012 11:09 faxrcvd> Failed to copy recvq/fax000000005.tif to /var/www/html/avantfax/faxes/recvd/2012/02/22/XXXXXXXXXX/000000005/fax.tif
22.02.2012 11:09 mkdirs> Error creating directory /var/www/html/avantfax/faxes/recvd
22.02.2012 11:09 faxrcvd> PROCESSING FAX from 'XXXXXXXXXX' (1 pages) received '2012:02:22 11:09:14'
22.02.2012 11:09 faxrcvd> executing: recvq/fax000000005.tif ttyIAX0 '000000005' '' CIDNum: 'XXXXXXXXXX' CIDName: 'DENVER, CO' DID: ''
22.02.2012 11:09 dynconf> checking CallID1 XXXXXXXXXX on device /dev/ttyIAX0

Thanks for helping me trouble shoot this Tom.

Jason
 
Oh woops didn't see your new fix before I ran the chmod and sent myself a test fax. I'll await the new version
 
Does not matter if you applied the fix manually then there is some other problem. Have no idea what it is.


Tom
 
all done

update-programs

update-fixes

let me know if it works

Tom
 
Hey Tom,

The update-fixes is running now :) Looks like that fix did the trick. I ran a chmod -R 777 on the faxes dir so after the update-fixes finishes I'll send myself another test fax
 
Tom - maybe the best way to fix the permissions problem is from the installation page on the Avantfax site. Their install instructions include the following:

mv avantfax /var/www/
chown -R apache.apache /var/www/avantfax
chmod -R 0770 /var/www/avantfax/tmp /var/www/avantfax/faxes
chown -R apache.uucp /var/www/avantfax/tmp /var/www/avantfax/faxes

Of course, for PIAF it would be /var/www/html/avantfax and so on, but the key here is that "group" for the "tmp" and "faxes" directories is set to "uucp" - which appears to be the user that the iaxmodems operate under. That would probably the most correct
fix.

so maybe:
chown -R asterisk.asterisk /var/www/html/avantfax
chmod -R 0770 /var/www/html/avantfax/tmp /var/www/html/avantfax/faxes
chown -R asterisk.uucp /var/www/html/avantfax/tmp /var/www/html/avantfax/faxes
(assuming we have put the uucp user in the uucp group)

What do you think?

Jeff
 
That last one did the trick with the chowns. Thanks for the help with this I greatly appreciate it.
 
on a default install this seems to be already done

Tom
 
Ok I have been busily installing new avantfax systems both with and without incredible pbx to see if there was an interaction there. I have also done a complete install by hand using the avantfax instructions by hand. Cant seem to find a blessed thing wrong with any of the installs other than we dont use the 0770 on the two folders.

I am going to modify the install as follows and see if this helps

Code:
chmod -R 777 /var/www/html/avantfax
chown -R asterisk:asterisk /var/www/html/avantfax
chmod -R 0770 /var/www/html/avantfax/tmp /var/www/html/avantfax/faxes
chown -R asterisk:uucp /var/www/html/avantfax/tmp /var/www/html/avantfax/faxes
<<>>


This is a bit of a hybrid based on a number of other posts. Also user uucp is in group uucp by default! This will only affect new installs! Not going to push this out as a fix until all the complaints have dies away.

If you want to try this please do a fresh install and report back.

Please access this from the developers repo ONLY


here is how


update-programs -d

install-incredfax2 -d

This is available NOW on the Developers repo ONLY


For existing problematic installs you can try cut and paste the commands in the code block to see if it helps your prior install.


Tom
 

Members online

No members online now.

Forum statistics

Threads
26,686
Messages
174,406
Members
20,257
Latest member
Dempan
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.
Back
Top