1. RxFax - this application allows you to send faxes from a Fax machine to the Asterisk
NOTE: This application is optional. In order to use it, you have to install additional packages to your system. For more information about them, please read our tutorial about the sending and receiving faxes with spandsp. RxFax is tested with the Asterisk CVS_HEAD version.
Syntax:
RxFax(filename[|caller][|debug])
List of the possible options
filename - specify the name of the file, where you would like the fax to be stored. caller - this option makes the application to behave as a calling machine, rather than an answering machine. If you do not specify this option the application will behave as an answering machine. debug -
Variables connected with the application
LOCALSTATIONID - used by to application to identify itself to the remote end LOCALHEADERINFO - used to generate a header line on each page REMOTESTATIONID - set by the application, the sender CSID FAXPAGES - set the number of pages received FAXBITRATE - set the transmission rate FAXRESOLUTION - set the resolution
Purpose and usage
The purpose of this application is to allow you to send faxes from a fax machine to the Asterisk and to store it into a file.
NOTE: Do not forget that you need an installed libtiff and spandsp. For more information, please check our tutorial about the sending and receiving faxes with spandsp, where you can learn how to install this packages.
NOTE:We will use Asterisk CVS HEAD version. Our fax machine is Brother FAX-T94. The ATA device is Grandstream HandyTone-486 - the firmware is 1.0.6.2. To learn more about the configuration of this ATA device please take a look at our tutorial
Type=friend means that this user can make and receive calls. Host=dynamic means that the IP is not static but dynamic through a DHCP server. Allow=all means that the line which this user will use, could support all audio codecs. Context=test1 - this shows that this user is working with the extensions in this context of the configuration file extensions.conf.
IMPORTANT: You can send and receive faxes with spandsp only through the G.711(alaw or ulaw) codecs.
We have the extension 300. This will be the extension on which we will receive the faxes. As you can see the first application is Answer. If you want to receive faxes, you have always to answer the channel by using this application. Only in this way the Asterisk will be overhear for a fax signal.
It seems, that there is a problem with the hanging up after the fax is sent. So, if you put the Hangup application in the extension 300 with priority 5, nothing will happen. So, the solution is to use the AbsoluteTimeout application. As argument in its brackets we have set 25, which means that after 25 seconds the execution will continue with the extension with letter T. T is for AbsoluteTimeout extension. In our case it will execute the Hangup application, which will cause the hanging up of the channel.
Then we have the Set application. Thanks to it we will set the path to and the name of the file, where we would like the fax to be stored. They will be set to the variable, named FAXFILE.
The name of the file is test.tif. The directory where it will be stored is /tmp/.
NOTE: Please be sure that you are allowed to read and write into this directory.
Finally we have the extension with the RxFax application. It will allow us to send a fax from the fax machine to the Asterisk and to store it in a file. As argument in the brackets we have set only the variable ${FAXFILE}, which we have defined in the Set application.
NOTE: Please, pay attention that we define the variable in the Set application, without the ${} characters, BUT we call it in the RxFax application with the ${} characters.
Now, when somebody dials the number 300 from its fax machine and then press the start button, for sending faxes, the Asterisk will first answer the channel, then hear for the fax signal and if there is such one, it will execute the RxFax application.
After the sending, the fax will be stored in the file test.tif in the /tmp directory.
If you set the caller option in the brackets of the RxFax application, then its behavior will be changed. Instead of answering machine, it will become an calling machine. In other words, if you want to receive a fax you have to called it by dialing the fax machine from the CLI. In this case you will receive again the fax on your Asterisk
In order to be sure that the Asterisk PBX will hang up the line after the conversation is over, it is a good idea to make an extension for hanging up the line.
2. Screenshot of what you can see on the CLI of the Asterisk PBX
3. Additional information
For more information about extensions.conf you can check here.
For more information about sip.conf you can check here.
This application is tested with Brother FAX-T94 fax machine and Asterisk CVS HEAD version. They are connected through Grandstream HandyTone-486 ATA (firmware 1.0.6.2).
prices of antibiotics without insurance (leslie_bardon at xikohogum dot cf) 15 September 2020 08:30:33 prices of antibiotics without insurance https://amoxycillin1st.com/
tylenol price at walmart (garfield-walkley at ykoxevisulyk dot gq) 28 July 2020 04:08:27 tylenol price at walmart https://tylenol1st.com/
Kaylin (9q4lj8c3ep at gmail dot com) 16 April 2017 03:34:30 Knwdgeole wants to be free, just like these articles! http://tddtwcfsq.com [url=http://wezvqjwvbl.com]wezvqjwvbl[/url] [link=http://tvsvqkuzz.com]tvsvqkuzz[/link]
Leaidan (0f6kemr6kv at yahoo dot com) 14 April 2017 14:00:15 Please keep thworing these posts up they help tons. http://qihvvijr.com [url=http://ehsqrz.com]ehsqrz[/url] [link=http://ucwokjvrsyb.com]ucwokjvrsyb[/link]
Vedat (j07597wz5 at yahoo dot com) 09 October 2015 17:47:36 Hello Loving Care,Signed hard copy is mailed same day you coplemted your cpr exam, you will also receive email with attachment of you wall certificate. If you wish to see correct/incorrect answers, login and enter your course; click on watch results Regards: Admin http://ebakfla.com [url=http://aybuhioeaa.com]aybuhioeaa[/url] [link=http://euairjqmpjn.com]euairjqmpjn[/link]
Hertin (xzjw2ip9qs at mail dot com) 09 October 2015 09:32:24 Hello David,Please check your personal email, we have sent two <a href="http://iavoddnbvt.com">emalis</a> to you. Instructor has mailed signed CPR certificates to your postal address that was provided on purchase-shipping form. Best way to contact us is by email as our administrative office is closed on Fridays.Kind Regards: AlexCPR Instructor
Krishna (qr86867x8 at yahoo dot com) 09 October 2015 03:12:38 I watched your February 27, 2012 Sermon at Liberty. I want to be an evnigelast! Lord willing I will complete my MAR at Liberty this Fall. I am also a Marine.Can you help me learn how to be an evnigelast? http://yxshso.com [url=http://hvhhwq.com]hvhhwq[/url] [link=http://iocipjmv.com]iocipjmv[/link]
Jocelyn (hysico6dm at yahoo dot com) 25 September 2015 12:49:15 We keep you all in our prayers daily.This is my ciuson. One reason I have a personal interest in the Marines even though I served in the US Navy like my father and brothers before me.LCpl. Joseph Timothy Keesee was a member of Delta Company, 1st Battalion, 9th Marines, 3rd. Marine Division, 3rd. Marine Amphibious Force.Joseph was posthumously awarded the Purple Heart for fatal wounds he received during combat action in Quang Tri Province, South Vietnam on 5/15/1967.Joseph was fatally wounded by hostile gun or small arms fire. He died outright. His body was recovered the same day.LCpl. Joseph Keesee is honored on the Vietnam Memorial Wall, Panel 19E, Line 128, in Washington, DC.A Patriotic Partner.Love in ChristDave
Tylmann (tylmann at corvent dot ch) 05 February 2009 17:03:06 I have asterisk 1.4 with rxfax (spandsp 0.0.4pre16) running and configured.
When it comes to receive a fax message, asterisk starts the correct extension answers and calls the rxfax app, but nothing happens. (i can hear the fax device beeping but there is no response from asterisk, only silence)
I have done several installations (Ubuntu std-packages, debian, ubuntu with everything compiled by myself, several versions etc.), but nothing did help...
Any ideas?
Sudhir Mor (sudhir_mor2000 at yahoo dot com) 23 June 2008 07:44:51 It's vey nice to take help from asteriskguru , I get almost all the answers i have from this
Alex (alex_krems at hotmail dot com) 22 August 2006 10:01:07 Hi
Great Howto !
I have following question:
Every received page get a header info with sender informations, date and time. The problem is, the date represents the sender date and not the real time. So when the senders fax isn't set up right, i get in the header "Recieved 14. Dec. 2004" or something like that.