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

Hi

thanks for the tip... But I'm blocked here:

When I try to addfaxmodem, it asks me for the port. I try to type (as written in the post) ttyIAX4, but it still repeats the same question over and over...
Really strange!

Thanks a lot!
 
Before I could add the modem, I had to restart the iaxmodem service, use
"service iaxmodem restart"
Until that is done the port doesn't seem to exist
 
Distinctive ring

I have two phone numbers on one incoming line with a distinctive ring to identify which number is called. After setting up a fax extension as IAX4 I have added the following

in /etc/asterisk/zapata.conf

Code:
usedistinctiveringdetection=yes
distinctiveringaftercid=yes
dring1=297,237,0 
dring2=297,276,268
dring1context=from-zaptel
dring2context=incoming-fax


in /etc/asterisk/extensions_custom.conf

Code:
[incoming-fax]
exten => s,1,Wait(1)
exten => s,2,Answer
exten => s,3,Dial(IAX2/329)
exten => s,4,Hangup

When the phone rings, the system determines by ring tone whether to direct it to fax or handle as a normal call.
 
Great Addition!

SteveM -

Nice job - this is a very elegant way to handle it. Thanks for posting your solution!

-tshif
 
Before I could add the modem, I had to restart the iaxmodem service, use
"service iaxmodem restart"
Until that is done the port doesn't seem to exist

Hi!

Thanks for the tip...

Now the fifth fax says "Please wait" like the others in Avantfax...

I have no clue.

Thanks for your help!
 
Hi

I believe that this can be done via the Hylafax webmin module.

Joe
 
I looked around for a setting to handle this - didnt find one. The only thing I remember seeing about speeds is during the installation script. At some point, it talks about testing for optimum (maybe the term is maximum) speeds. It then shows the speed it picked on the screen as I recall.

That being the case - I still have hope that this setting is recorded, and changeable, in one of the places the modems are defined. Still haven't quite found it.
-tshif
 
I need ~80 modems - is this the only way?

I have a client that wants to have direct dialing to about 80 DIDs, all of which do FAX->PDF->email. But they also have 7 FXS FAX machines that we'll be plugging in directly (no problem there).

My concern - if I go the Hylafax route, do I need to set up 80 virtual modems and configure each one to go to the email address for the intended recipient?

FAXing at a large scale is still something I'm new at in this arena, so I'm sure that there's something I'm missing. There simply has to be an easier way. Does anyone know what it is?
 
Adding a Dedicated Virtual Fax Machine / DID & Sharing A VoIP DID w/ Fax

Run FAXADDMODEM
Logged in as root, run faxaddmodem
When you are prompted for the modem name, enter: [FONT=&quot]ttyIAX4 (Case exact!)[/FONT]

Answer the remaining prompts as appropriate for your installation.

I am being prompted for Serial port ??

:/etc $ faxaddmodem
Serial port that modem is connected to []?

What am I doing wrong here or what should be entered?

Thanks :)
 
OK - I think it had to do with the other addition statements earlier in the instructions needed to be activated. I just did a reboot and NOW it accepts the ttyIAX4

:biggrin5:
 
Hi Krzykat,
I am getting the same message.
"serial port the modem is connected to[]"
I rebooted the server but when when I ran faxaddmodem
I am getting the same message.
What did you do to get past this.
Thanks in advance.
 
Hey - all I did was follow Tshif's instruction:

http://pbxinaflash.com/forum/showpost.php?p=22682&postcount=67

It was after this point:

Update initab
Using your favorite editor, modify the file /etc/inittab.

Look at the bottom of the file and you will se the lines added for the other virtual modems, add a line that looks like this:

t4:23:respawn:/usr/sbin/faxgetty ttyIAX4 > /var/log/iaxmodem/iaxmodem.log

And Save your changes.


That I believe the reboot made the difference.
 
Updated Procedures to Add Shared Fax

I have just updated the instructions for adding shared fax on a DID line. There are two changes to the procedure.

If you have tried this before and gotten stuck, these changes might get you going.

The changes are in this message/procedure.

The first one is located under this heading:

SetUp “Fax Machine” Peer in iax_custom.conf (new instruction)

The next one is this one, located a bit further down the article.

New Instruction: Reboot your PBX now - and then proceed with the remaining directions.

As always, lets us know how this works for you.

-tshif
 
Pause after ring

Ive setup HylaFax/AvantFax on a small system with 3 pots lines using a Rhino card. Ive set the "Pause After Answer" for 5 seconds with Zaptel dectect. When a fax is recieved, it should be xfer to an extension with HylaFax enabled(710-713).
There seems to be some issue with receiving faxes from certain fax machines. Maybe some type of compatibility issue. The fax is detected, but not received. For an example I can send a fax to the PBX and its works 100% of the time. However HP faxback is detected, but fails to recieve.

Also there is a ring delay of 3-4 rings before the extensions start to ring. Im assuming this is related to the fax detect time. Does anyone have a recommend fax dectect time for zaptel?


Any advice?
 
Finally working but....

Hi tshif,
It worked for me for incoming faxes. But outgoing faxes did not work.
I am using Grandstream Analog gateway. Inorder to work woth Analog gateways, I had to create a SIP trunk in pbiaf. However, this kind SIP trunk is different as compared to say, a SIP trunk provided by a service provider.
Therefore for outbound faxes, in extensions_custom.conf I added the following
[from-fax]
exten => _x.,1,Dial(SIP/GXW/${EXTEN})
exten => _x.,n,Hangup()
where SIP/GXW being my SIP trunk to work with Grandstream analog gateway.
Incoming faxes are working well becasue it is selecting the newly created modem IAX4.
However, when I am trying to send out a fax I am getting "No receiver protocol (T.30 T1 timeout)" error
For example this is the output I got when I trid to send out a fax.
-- Accepting UNAUTHENTICATED call from 127.0.0.1:
> requested format = ulaw,
> requested prefs = (),
> actual format = ulaw,
> host prefs = (ulaw),
> priority = mine
-- Executing [5555555@from-fax:1] Dial("IAX2/iax-fax0-3326", "SIP/GXW/5555555") in new stack
-- Called GXW/5555555
-- SIP/GXW-0a0daec0 is ringing
-- SIP/GXW-0a0daec0 answered IAX2/iax-fax0-3326
== Spawn extension (from-fax, 5555555, 1) exited non-zero on 'IAX2/iax-fax0-3326'
-- Hungup 'IAX2/iax-fax0-3326'

Next time I called it selected iax-fax3 modem with the same result.
The error is "No receiver protocol (T.30 T1 timeout)"
How do I make it work.
My goal is to share voice calls with fax on the same set of PSTN lines (w/o worrying about DIDs. The available line should service either a voice call or a fax request, for in bound or outbound) attached to a gateway device configured as a SIP trunk on asterisk.
Thanks in advance.
 
I have a client that wants to have direct dialing to about 80 DIDs, all of which do FAX->PDF->email. But they also have 7 FXS FAX machines that we'll be plugging in directly (no problem there).

My concern - if I go the Hylafax route, do I need to set up 80 virtual modems and configure each one to go to the email address for the intended recipient?

FAXing at a large scale is still something I'm new at in this arena, so I'm sure that there's something I'm missing. There simply has to be an easier way. Does anyone know what it is?

Unfortunately at the moment, inbound routing and delivery of the PDF fax has only two alternatives.

1. Delivery to email addressed based on the IAXMODEM it comes in on. (Meaning yeah, 1 per person.)

2. Routing by Sender. (Delivery based on source). You can configure delivery to an email address based on the CID of the source of the fax.

So - if faxes from ABC company always go to "Joe", this will work.
 
Hello all:
Thanks for an amazing piece of work. I am running latest PBXIAF and am having great results faxing out via SIP trunks.

Having problem with a few destinations that hiccup. These systems are beyond my influence. I have narrowed it down to the far side inability to renegotiate speed and drop down to a lower 'baud' rate.
(I recognize this term doesn't really apply to digital circuits.)
Troubleshooting by using an internal modem and pstn line, farside cannot connect at 14.4 and is not able to negotiate a slower speed, just fails, but is entirely happy with 9600 initiated from my side.

Is there a direct way to force all the iaxmodems to not use v.34 or v.17 and start with 9600 baud instead of the default 14.4?

Bigtalker

This is a GREAT bit of research. Finding that some faxes can't fall-back to a slower speed could explain some remaining failures that we see from time to time.

Looking in /var/spool/hylafax/config I found some files for each IAXMODEM.

About the middle of the file I found:

# If you have trouble with V.17 receiving or sending,
# you may want to enable one of these, respectively.
#
#Class1RMQueryCmd: "!24,48,72,96" # enable this to disable V.17 receiving
#Class1TMQueryCmd: "!24,48,72,96" # enable this to disable V.17 sending

I know it only deals with V.17 - but I thought it might help.

-tshif
 
OK - I think it had to do with the other addition statements earlier in the instructions needed to be activated. I just did a reboot and NOW it accepts the ttyIAX4

:biggrin5:

Hi Krzykat,
I am getting the same message.
"serial port the modem is connected to[]"
I rebooted the server but when when I ran faxaddmodem
I am getting the same message.
What did you do to get past this.
Thanks in advance.

I have updated the instructions - found something missing. Thanks for pointing out where you were having the troubles. -tshif
 
Hi tshif,
It worked for me for incoming faxes. But outgoing faxes did not work.
I am using Grandstream Analog gateway.

Which model?

... in extensions_custom.conf I added the following
[from-fax]
exten => _x.,1,Dial(SIP/GXW/${EXTEN})
exten => _x.,n,Hangup()
where SIP/GXW being my SIP trunk to work with Grandstream analog gateway.

Incoming faxes are working well becasue it is selecting the newly created modem IAX4.
However, when I am trying to send out a fax I am getting "No receiver protocol (T.30 T1 timeout)" error
For example this is the output I got when I trid to send out a fax.
-- Accepting UNAUTHENTICATED call from 127.0.0.1:
> requested format = ulaw,
> requested prefs = (),
> actual format = ulaw,
> host prefs = (ulaw),
> priority = mine
-- Executing [5555555@from-fax:1] Dial("IAX2/iax-fax0-3326", "SIP/GXW/5555555") in new stack
-- Called GXW/5555555
-- SIP/GXW-0a0daec0 is ringing
-- SIP/GXW-0a0daec0 answered IAX2/iax-fax0-3326
== Spawn extension (from-fax, 5555555, 1) exited non-zero on 'IAX2/iax-fax0-3326'
-- Hungup 'IAX2/iax-fax0-3326'
...

Did you remember to do this part:

Inside the file iax_custom.conf file, in each of the four [iax-faxX] contexts, change the context name "from-internal" to "from-fax"
 

Members online

Forum statistics

Threads
26,696
Messages
174,453
Members
20,266
Latest member
ro-fi
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