Please help me understand this statement.

Mars

Honorary Master
Joined
Feb 4, 2006
Messages
11,452
Reaction score
1,149
Location
Cape Town
I am busy trying to set up hylafax and aixmodem on my trixbox pabx.

I have been following this guide and it all seems clear until:

Add faxgetty to /etc/inittab

These correspond to the device lines in the /etc/iaxmodem/* config files. (see previous step, above) I only have an X100p single line card, so I'm just adding one line:

Code:
t2:23:respawn:/usr/sbin/faxgetty ttyIAX

You need one of these for each channel, so a T1/PRI would require 23 lines. The last argument to faxgetty ('ttyIAX' in this case) is the device name (i.e. /dev/ttyIAX) on which to connect to iaxmodem.

What does it mean? I have a tdm400 and I would like zap2 to receive the faxes... Do I just replace the ttyIAX with zap2?

Idealy I would actually like to just put the call through to the fax extension when I need to so I can get more use out of the line tho.
 
Last edited:
I am busy trying to set up hylafax and aixmodem on my trixbox pabx.

I have been following this guide and it all seems clear until:



What does it mean? I have a tdm400 and I would like zap2 to receive the faxes... Do I just replace the ttyIAX with zap2?

Idealy I would actually like to just put the call through to the fax extension when I need to so I can get more use out of the line tho.

Are you from the past or future? :D
 
I think I can help, I understand most of it except for a few things here and there - if you could maybe clarify and help me then I could help you.

first of all what does "channel" mean

and wtf is this linux you speak of?
 
I recommend you give up on IAXmodem and use a recent Asterisk version with the ReceiveFAX() application and its spandsp fax terminal, it is fully contained inside Asterisk, works well, and also terminates T.38 over SIP, not just analogue fax over a ZAP channel.

If you absolutely have to use IAXmodem for some reason, I've never gotten Hylaxfax to work, but I'm pretty sure the ttyIAX stays as is, and you control flow of calls to IAXmodem + Hylaxfax from your Asterisk dialplan somehow (that guide leaves it out). IAXmodem is an IAX terminal, meaning you'd Dial(IAX/whatever) in your dialplan to get to it from Asterisk.
 
What does it mean? I have a tdm400 and I would like zap2 to receive the faxes... Do I just replace the ttyIAX with zap2?

Idealy I would actually like to just put the call through to the fax extension when I need to so I can get more use out of the line tho.

Um, you got all it all wrong here. you will get all and more it wont be a dedicated fax line.

Your are using a tty to spawn an instance of faxgetty. (make sure your are spawning iaxmodem too)! No you dont change it to zap2, you are going to want to register iaxmodem within iax.conf and send the fax call to the device context as if your fax machine was a iax fax. hope i have myself clear, a good thing to do before you do the whole init thing is to run iaxmodem and faxgetty in a screen session this way you can debug better before dropping it to a tty.
 
I recommend you give up on IAXmodem and use a recent Asterisk version with the ReceiveFAX() application and its spandsp fax terminal, it is fully contained inside Asterisk, works well, and also terminates T.38 over SIP, not just analogue fax over a ZAP channel.

This sounds alot easier..
I'm using Asterisk 1.6.0.9-samy-r27. Would it be available in that version?

Is this using the Asterisk fax manager?

I have tried to set the asterisk system to receive faxes but I am unsure how to get the system to answer the fax calls, or what extension to put the fax though to.
 
This sounds alot easier..
I'm using Asterisk 1.6.0.9-samy-r27. Would it be available in that version?

Is this using the Asterisk fax manager?

I have tried to set the asterisk system to receive faxes but I am unsure how to get the system to answer the fax calls, or what extension to put the fax though to.

Use the "core show applications" command in the Asterisk console and look for it?

If it's not there, either compile Asterisk with the patch(es?) from https://issues.asterisk.org/view.php?id=10815 or compile Asterisk from SVN trunk. Someone may already have an RPM around you can just use instead of compiling everything yourself, for example http://www.rpmfind.net/linux/RPM/fedora/12/x86_64/asterisk-fax-1.6.1.9-1.fc12.x86_64.html for Fedora.

If you have dedicated phone numbers used only for faxes, then make the dialplan so when the numbers are dialled you do something, eg. if the fax number is 0113214567:

exten => 0113214567,1,Dial(IAX/something)
for IAXmodem

exten => 0113214567,1,ReceiveFAX(/tmp/fax.tiff)
for ReceiveFAX

in the right dialplan context.

Good luck.
 
Use the "core show applications" command in the Asterisk console and look for it?

If it's not there, either compile Asterisk with the patch(es?) from https://issues.asterisk.org/view.php?id=10815 or compile Asterisk from SVN trunk. Someone may already have an RPM around you can just use instead of compiling everything yourself, for example http://www.rpmfind.net/linux/RPM/fedora/12/x86_64/asterisk-fax-1.6.1.9-1.fc12.x86_64.html for Fedora.

If you have dedicated phone numbers used only for faxes, then make the dialplan so when the numbers are dialled you do something, eg. if the fax number is 0113214567:

exten => 0113214567,1,Dial(IAX/something)
for IAXmodem

exten => 0113214567,1,ReceiveFAX(/tmp/fax.tiff)
for ReceiveFAX

in the right dialplan context.

Good luck.

Ok cool. I found it:

NVBackgroundDetect: Background a file with talk and fax detect (IAX and SIP too)
NVFaxDetect: Detects fax sounds on all channel types (IAX and SIP too)
ReceiveFAX: Receive a FAX


So now: I go to the general settings tab in the PBX setup and I set the fax extension to receive faxes on system.

Then what?

I have a fax line, but I also would like to be able to transfer faxes from other lines to the fax as many people send faxes on the wrong line.
 
Ok cool. I found it:

NVBackgroundDetect: Background a file with talk and fax detect (IAX and SIP too)
NVFaxDetect: Detects fax sounds on all channel types (IAX and SIP too)
ReceiveFAX: Receive a FAX


So now: I go to the general settings tab in the PBX setup and I set the fax extension to receive faxes on system.

Then what?

I have a fax line, but I also would like to be able to transfer faxes from other lines to the fax as many people send faxes on the wrong line.

Then you edit the diaplan and make it call ReceiveFAX(/path/to/some/unique/filename.tiff) for those numbers like I described.

After you receive a fax into the TIFF file, you have to email it using some external application, look at the System() command or use AGI(), and learn about the Asterisk dialplan and variables to find how to pass the fax number and the filename (use unique file names so concurrent faxes don't overwrite each other!) to that application. Also TIFF files are tricky and many apps squash them vertically or only see the first page; the tiff2pdf utility can make you a much better PDF to email around.

Post your dialplan (/etc/asterisk/extensions.conf and any files it includes) and a fax number, if you need further help.
 
Top
Sign up to the MyBroadband newsletter
X