TUTORIAL HylaFAX / AvantFax for PIAF! - Parts 1-4

Solved***** Asterisk logs filling up.

I have installed Hylaxfax, iaxmodem and avantfax on Debian lenny.
I followed the same scripts that Joe has written, but installed it manually.
Everything works fine but here is what I get after every few seconds
Code:
[Feb 16 15:27:47] NOTICE[2076] chan_iax2.c: Peer 'iax-fax0' is not dynamic (from 127.0.0.1)
[Feb 16 15:27:47] NOTICE[2076] chan_iax2.c: Restricting registration for peer 'iax-fax0' to 60 seconds (requested 300)
[Feb 16 15:27:47] NOTICE[2073] chan_iax2.c: Peer 'iax-fax1' is not dynamic (from 127.0.0.1)
[Feb 16 15:27:47] NOTICE[2073] chan_iax2.c: Restricting registration for peer 'iax-fax1' to 60 seconds (requested 300)
[Feb 16 15:27:47] NOTICE[2078] chan_iax2.c: Peer 'iax-fax3' is not dynamic (from 127.0.0.1)
[Feb 16 15:27:47] NOTICE[2078] chan_iax2.c: Restricting registration for peer 'iax-fax3' to 60 seconds (requested 300)
[Feb 16 15:27:47] NOTICE[2074] chan_iax2.c: Peer '9900' is not dynamic (from 127.0.0.1)
[Feb 16 15:27:47] NOTICE[2074] chan_iax2.c: Restricting registration for peer '9900' to 60 seconds (requested 300)
[Feb 16 15:27:47] NOTICE[2077] chan_iax2.c: Peer 'iax-fax2' is not dynamic (from 127.0.0.1)
[Feb 16 15:27:47] NOTICE[2077] chan_iax2.c: Restricting registration for peer 'iax-fax2' to 60 seconds (requested 300)
[Feb 16 15:28:42] NOTICE[2071] chan_iax2.c: Peer 'iax-fax0' is not dynamic (from 127.0.0.1)
[Feb 16 15:28:42] NOTICE[2071] chan_iax2.c: Restricting registration for peer 'iax-fax0' to 60 seconds (requested 300)
[Feb 16 15:28:42] NOTICE[2074] chan_iax2.c: Peer 'iax-fax1' is not dynamic (from 127.0.0.1)
[Feb 16 15:28:42] NOTICE[2074] chan_iax2.c: Restricting registration for peer 'iax-fax1' to 60 seconds (requested 300)
[Feb 16 15:28:42] NOTICE[2072] chan_iax2.c: Peer 'iax-fax3' is not dynamic (from 127.0.0.1)
[Feb 16 15:28:42] NOTICE[2072] chan_iax2.c: Restricting registration for peer 'iax-fax3' to 60 seconds (requested 300)
[Feb 16 15:28:42] NOTICE[2077] chan_iax2.c: Peer '9900' is not dynamic (from 127.0.0.1)
[Feb 16 15:28:42] NOTICE[2077] chan_iax2.c: Restricting registration for peer '9900' to 60 seconds (requested 300)
[Feb 16 15:28:42] NOTICE[2073] chan_iax2.c: Peer 'iax-fax2' is not dynamic (from 127.0.0.1)
[Feb 16 15:28:42] NOTICE[2073] chan_iax2.c: Restricting registration for peer 'iax-fax2' to 60 seconds (requested 300)
[Feb 16 15:29:37] NOTICE[2075] chan_iax2.c: Peer 'iax-fax0' is not dynamic (from 127.0.0.1)
[Feb 16 15:29:37] NOTICE[2075] chan_iax2.c: Restricting registration for peer 'iax-fax0' to 60 seconds (requested 300)
[Feb 16 15:29:37] NOTICE[2078] chan_iax2.c: Peer 'iax-fax1' is not dynamic (from 127.0.0.1)
[Feb 16 15:29:37] NOTICE[2078] chan_iax2.c: Restricting registration for peer 'iax-fax1' to 60 seconds (requested 300)
[Feb 16 15:29:37] NOTICE[2070] chan_iax2.c: Peer 'iax-fax3' is not dynamic (from 127.0.0.1)
[Feb 16 15:29:37] NOTICE[2070] chan_iax2.c: Restricting registration for peer 'iax-fax3' to 60 seconds (requested 300)
[Feb 16 15:29:37] NOTICE[2076] chan_iax2.c: Peer '9900' is not dynamic (from 127.0.0.1)
[Feb 16 15:29:37] NOTICE[2076] chan_iax2.c: Restricting registration for peer '9900' to 60 seconds (requested 300)
[Feb 16 15:29:37] NOTICE[2074] chan_iax2.c: Peer 'iax-fax2' is not dynamic (from 127.0.0.1)
[Feb 16 15:29:37] NOTICE[2074] chan_iax2.c: Restricting registration for peer 'iax-fax2' to 60 seconds (requested 300)
[Feb 16 15:30:32] NOTICE[2074] chan_iax2.c: Peer 'iax-fax0' is not dynamic (from 127.0.0.1)
[Feb 16 15:30:32] NOTICE[2074] chan_iax2.c: Restricting registration for peer 'iax-fax0' to 60 seconds (requested 300)
[Feb 16 15:30:32] NOTICE[2072] chan_iax2.c: Peer 'iax-fax1' is not dynamic (from 127.0.0.1)
[Feb 16 15:30:32] NOTICE[2072] chan_iax2.c: Restricting registration for peer 'iax-fax1' to 60 seconds (requested 300)
[Feb 16 15:30:32] NOTICE[2078] chan_iax2.c: Peer 'iax-fax3' is not dynamic (from 127.0.0.1)
[Feb 16 15:30:32] NOTICE[2078] chan_iax2.c: Restricting registration for peer 'iax-fax3' to 60 seconds (requested 300)
[Feb 16 15:30:32] NOTICE[2071] chan_iax2.c: Peer '9900' is not dynamic (from 127.0.0.1)
[Feb 16 15:30:32] NOTICE[2071] chan_iax2.c: Restricting registration for peer '9900' to 60 seconds (requested 300)
[Feb 16 15:30:32] NOTICE[2076] chan_iax2.c: Peer 'iax-fax2' is not dynamic (from 127.0.0.1)
[Feb 16 15:30:32] NOTICE[2076] chan_iax2.c: Restricting registration for peer 'iax-fax2' to 60 seconds (requested 300)
[Feb 16 15:31:02] NOTICE[2074] chan_iax2.c: Empty registration from 127.0.0.1
[Feb 16 15:31:02] NOTICE[2072] chan_iax2.c: Empty registration from 127.0.0.1
[Feb 16 15:31:02] NOTICE[2071] chan_iax2.c: Empty registration from 127.0.0.1
[Feb 16 15:31:02] NOTICE[2077] chan_iax2.c: Empty registration from 127.0.0.1
[Feb 16 15:31:27] NOTICE[2071] chan_iax2.c: Peer 'iax-fax0' is not dynamic (from 127.0.0.1)
[Feb 16 15:31:27] NOTICE[2071] chan_iax2.c: Restricting registration for peer 'iax-fax0' to 60 seconds (requested 300)
[Feb 16 15:31:27] NOTICE[2070] chan_iax2.c: Peer 'iax-fax1' is not dynamic (from 127.0.0.1)
[Feb 16 15:31:27] NOTICE[2070] chan_iax2.c: Restricting registration for peer 'iax-fax1' to 60 seconds (requested 300)
This is filling up my asterisk log file. I want to stop this.

According to this, it means that registration of IAX2 peers is restricted to 60 seconds, but is requesting for 300 seconds.
SO I was looking for IAX config files with entries like
minregexpire=, maxregexpire=, defaultexpire=
but could not find in any of the config files.
So how do I solve this issue?
--------------------------------------------------------
Found solution to this problem:
I added the following entries in iax_registration_custom.conf

Code:
minregexpire=60
maxregexpire=600
defaultexpire=300
This will ensure that registration of IAX2 peers is Not restricted to 60 seconds, but now it has been bumped up to 600 seconds.
Please note, I am using Debian Lenny, 5.0.3 and NOT Centos.
 
Hi guys,

Faxing has been working fine, but I would like to restrict one user to a specific modem, this is also working.

I need that modem to then use a specific trunk which I thought I could do with the below info

[from-fax]
exten => _x.,1,Dial(ZAP/1/${EXTEN})
exten => _x.,n,Hangup()

I thought that by changing ZAP/1/ to SIP/11/ would allow this modem to go out via this trunk, but I get emails back to say that the fax was blocked, do I have the SIP/11/ wrong?
 
Hi 2source,
The [from-fax] context in extension_custom.com specifies which trunk you are going to use when dialing out.
If you have
exten => _x.,1,Dial(ZAP/1/${EXTEN})
Then it means that you are using port 1 of ZAP trunk to fax out.
If you have
exten => _x.,1,Dial(SIP/11/${EXTEN})
The it means you are using SIP trunk which you have named it 11.
If this is the case, then you need to know, Who is your VoiP trunk provider? You need to find out form them if they have T.38 capabilities (Faxing over SIP). T.38 is an ITU standard for sending FAX accross IP networks in a real-time mode.
FAX messages are sent as UDP or TCP/IP packets.
Normally, the best way to fax is to use analog lines.
 
Hi Kumar,

I think you misunderstood what I meant.

The original code states xten => _x.,1,Dial(ZAP/1/${EXTEN})
and I would like to use one of my sip trunks, so my logic was that I could change it to xten => _x.,1,Dial(SIP/11/${EXTEN}) (which should be one of my outbound trunks) but the fax fails, if I use this trunk without specifically specifying it, it works fine.


Thanks

Karl
 
This part with trunk definition is ok....but what if you have 2 SIP trunks?

I've setup..

context=from-fax
context=from-fax1

for each modem in iax_custom.conf

And then defined extensions_custom.conf
[from-fax]
exten => _x.,1,Dial(SIP/FIRSTTRUNK/${EXTEN})
exten => _x.,n,Hangup()

[from-fax1]
exten => _x.,1,Dial(SIP/SECONDTRUNK/${EXTEN})
exten => _x.,n,Hangup()

Now, how do you set which modem is used when the Fax is sent?
I have 2 SIP trunks, so I must specify modem used when sending, because if a wrong outbound CID is passed to wrong trunk, call can't be made. (I cannot sen fax from second trunk with first trunk CID (fax number)).

I think AvantFax randomly chooses the modem used when sending faxes?

Thanks
 
Already found that....you can choose which modem is used when sending fax via AvantFax interface.
 
404 error on wget

When I issue the wget "wget http://www.fonicaprojects.com/downlo...iaf-hylafax.sh" i get a 404 error.

What is the issue here?
Thanks
 
You probably made the same mistake I did the first time I tried this by copying this link as it appears and then pasting it. An easy solution is to right click and choose copy link location which then gets you "http://www.fonicaprojects.com/downloads/piaf/piaf-hylafax.sh", which of course works.:wink5:
When I issue the wget "wget http://www.fonicaprojects.com/downlo...iaf-hylafax.sh" i get a 404 error.

What is the issue here?
Thanks
 
Has anyone gotten the print-to-fax solution working for Vista and/or Win7 ?
 
Has anyone gotten the print-to-fax solution working for Vista and/or Win7 ?

Yes, but not with the Hylafax printer mentioned in these posts. I gave up on it and moved to:

YajHFC - yet another java hylafax client

Look here for more details..
http://yajhfc.berlios.de/

Most of the prerequisites are now installed automatically when you run the windows installer. Also make sure that when you set it up that you configure it with one of user accounts that you created in Avantfax.

Also another tid bit if you are using this thread for your fax solution... If you upgrade to FreePBX 2.7 you will have to install their fax module which is designed for Fax for Asterisk "FFA" but you can still use this solution after going into the module and checking off the option to use "Legacy Mode".

Good luck!
 
YajHFC - yet another java hylafax client Works GREAT

Thanks,

YajHFC - yet another java hylafax client works Great.

Now not only can we do print to fax. But we can also view all of the inbound faxes from this same client.

Has anyone managed to find out how to have these faxes print out automatically on their local printer? (some people still want to have the old-fashioned fax print out automatically).

Thanks,
KK
 
I've setup another machine using this setup for another office of ours. All is working well accept the confirmation emails. Our main pbx sends us a detailed report regarding the fax transmission. The new pbx sends us a confirmation only. No details. Just says "Fax: OK" who it was to, the Fax ID, and number of pages. Any way to get the rest of the detail sent?
 
to include the pdf that was faxed add the following:

you need to edit the config file /var/www/html/avantfax/includes/local_config.php.

Line 93 should read

$NOTIFY_INCLUDE_PDF = true;

What else is missing? I would compare the two local_config.php files for the other changes.
 
Faxes Stalled in Outbox

I'm trying to send faxes out of the outbox in Avantfax. Last week, it was working fine. This week, it's just sitting in the outbox. The IAX modems are green and say IDLE. Any ideas?

I've tried updating the fax job info, but it doesn't make a difference.


Thanks in advance,
Z

Outbox

JID Priority User Company Pages Dials TTS Status 12 W root@pbx 0:0 0:12 127


Log entries

10.06.2010 17:11FQ>faxalter (jid 12): Job 12: done. (1)

10.06.2010 17:11FQ>/usr/bin/faxalter -A -d "9915XXX" -a "now" 12
 
I'm trying to send faxes out of the outbox in Avantfax. Last week, it was working fine. This week, it's just sitting in the outbox. The IAX modems are green and say IDLE. Any ideas?

I've tried updating the fax job info, but it doesn't make a difference.


Thanks in advance,
Z

Outbox

JID Priority User Company Pages Dials TTS Status 12 W root@pbx 0:0 0:12 127


Log entries

10.06.2010 17:11FQ>faxalter (jid 12): Job 12: done. (1)

10.06.2010 17:11FQ>/usr/bin/faxalter -A -d "9915XXX" -a "now" 12


Weird, I had Skype and SisToSip running on KDE; it seems when KDE is running, Avantfax/Hylafax don't work.
 
Can't write php session files

Seem to be having an issue with the session files being written. The session directory has the following permissions and ownership. When I try to login it just sits there at the login screen. Any help would be appreciated.

drwxrwx--- 2 root apache 4096 Mar 31 01:51 session

[Fri Jun 18 12:12:10 2010] [error] [client 192.168.56.1] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session/sess_jtq3g6nfo3heig2i434n5t93l5, O_RDWR) failed: Permission denied (13) in /var/www/html/avantfax/includes/functions.php on line 132, referer: http://192.168.60.1/avantfax/index.php
[Fri Jun 18 12:12:10 2010] [error] [client 192.168.56.1] PHP Warning: Unknown: open(/var/lib/php/session/sess_jtq3g6nfo3heig2i434n5t93l5, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://192.168.60.1/avantfax/index.php
[Fri Jun 18 12:12:10 2010] [error] [client 192.168.56.1] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, referer: http://192.168.60.1/avantfax/index.php

drwxrwx--- 2 root apache 4096 Mar 31 01:51 session
 
Hi

I got caught with this one yesterday

PHP gets upgraded

so just issue chown -R asterisk:asterisk /var/lib/php/session/

Joe

PS - just added this line to the install script, so there should not be any issues to those following.
 

Members online

No members online now.

Forum statistics

Threads
26,696
Messages
174,453
Members
20,265
Latest member
irenelanda64
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