Fax To E-Mail System
Mobimex Fax2email system gives you an opportunity to receive faxes to your e-mail address. This service is very useful for companies that have customers in many countries, but offices in few of them. For example the company have an office outside United Kingdom, but would like to have a fax number for their clients in the UK. Being able to send faxes to local number, instead of faxing to international phone number, makes this program very commodious for the company's client base.
Clients using the Mobimex Fax2email service can select a phone number and configure their e-mail through a web interface. From the web site they can select available phone numbers and then associate them with the e-mail of their choice. All these changes are stored in PostgreSQL (MySQL) database on a web server.
How does it work?
For a project like this we use software called CT ADE 8.3. CT ADE Software is connected to a remote database PostgreSQL through ODBC driver.
CT ADE Software does the following:
- Replies to the incoming calls and checks the DNIS number;
- Makes connections to remote database through ODBC driver and checks the incoming DNIS;
- Accepts the incoming fax and saves it as file on the disc;
- Stores information in the remote database and places the fax in the queue for processing;
- Disconnects the call.
We use Fax2E-mail Application, which is responsible for:
- Working out the resident mode and checking on specified queue time from the remote database.
- Sending e-mails with the attached fax file saved from CT ADE
- Writing to remote database, the changes and status in the queue
On incoming fax call, CT ADE Software answers the call and checks the DNIS, makes private connection to the remote database PostgreSQL (MySQL) and checks what e-mail address is associated for this DNIS. The remote database keeps information if the service is live for this DNIS. If the service is not live, then the fax will be not processed. After the fax is received the CT ADE writes the new fax as a TIF file in a specific directory, and updates the remote database by writing a record in the queue table.
On the same machine, a program called "Send mail" is also running and checks the queue table on a specified interval of time. If there are new records in this queue table, then the program will make a connection to the remote database and will check which e-mail should send.
CT ADE Software and Send-mail program operate separate of each other. In this case CT ADE is responsible for confirming the fax, and Send-mail program is responsible to direct the fax to the specified e-mail address. Each fax file is saved on the hard disc as TIF image and, to prevent duplicate file names, we use current date, time and the process ID (PID) of the current process for each name. In this way, we are able to save simultaneously as many resources as we have files of.