Fax Monitor

Phone_User

Guru
Joined
Jun 9, 2008
Messages
314
Reaction score
0
Send Fax Program

***** Updated as of July 14, 2010 *******
Server is back up for those that my want Dandyfax. The new version should be completed mid August. Sorry for the delay. Too many things happened in my life over the last year to keep up with this.



First, I have to say great job to Ward and the rest who have made some great scripts and add-ons for Asterisk and Pbx In A Flash.

When Ward released his Fax Machine install instructions I was very impressed. My only draw back was the way you had to send a fax. Actually I didn't have a problem with it but the people who pay me did. So with that said I came up with a small program that will hopefully make the sending of faxes simpler.

The attached program will allow you to send a fax from virtually any program you can print from. The following install instructions, if followed exactly should leave you with a complete send fax solution. This has been tested on 6 different XP workstations as well as over a dozen Vista workstations. The send success was 100% over 100 faxes.

First you should follow Ward's install instructions for faxing. Second you need to be running windows XP or Vista. THird if you are running XP you need to download and install the .Net 2.0 redistributable found Here. Next you need to install ghostscript for windows. It is used for the conversion and can be found here. The link is for version 8.63. Works Great!!

********* Updated Jan 12, 2009 *********************
If upgrading to V2.0 Uninstall your previous version from add/remove programs.
You do not have to re-install ghostscript or the .Net frame work
************************************************


Vista users should only need to install the ghostscript as Vista ships with .Net 3.5.

Also, you should let ghostscript install to the default of c:\program files\gs . I have tried to make my install flexible but for now I think sticking with the standard will help work out bugs. (if any) :wink5:.

Now you can install DandyFax, which can be downloaded from here or here. Once installed it asks for a reboot. You should do this.

It will install a program called DandyFax and place it in your startup folder. When you are done with the reboot DandyFax will start up and tell you that it needs to be configured. The Configuration options are fairly straighforward. However, I will go through them here.

**** Updated Jan 12, 2009 *****
Hylafax or App Fax -
Select which on you are going to use
Email -
this is the email you want your fax receipt to go to if using Hylafax
***************************

Local User name
- This is an identifier for the fax.
Host IP - your asterisk box ip address. (dont use the name, dosn't work yet)
Port - this is your ssh port usually 22 if yours is different make the change here.
User Name - this is a user that can SSH to the server. For your testing you can use root. Once your testing is done I sugest you setup a fax_user as all the config settings are stored in an XML file and anyone who has DandyFax installed can look in there directory for this information.
Secret- password - secret for above user
Caller ID - This is your caller ID
Fax Context - this is the send fax context that would have been set when you installed Ward's fax machine.
Fax Header - The stuff that is printed accross the top of each fax page.
Station Name - your fax number
Out Bound Fax Route - for most users this should be from-internal. See note below for more information
Path to GhostScript- this is the path to your ghostscript install directory.
Operating system- Self explanitory.

Now once you have made your configuration changes the program will re-start. You will get a box that pops up and here you set the scan interval. This is defaulted to 10. This means it will scan the printer every 10 seconds for a new fax to send. You can play with that number if you find the fax send screen does not appear quick enough or too quick. Once you click ok a small icon appears in the task tray. Looks like a green printer. If you right click on it you can go to the configuration settings or exit the program.

Once it is running you will have a new printer to choose from when you print a document. The new printer is called DandyFax. Select this if you want to fax the document. Once the document has been printed to the spooler a send fax box will pop up that will ask for the number to send to, your name, the person who the fax was for, the subject of the fax and a comments box. Fill out all the boxes or very minimum fill out the phone number and press send.

Once the fax has been sent to the server a balloon will show on the DandyFax printer Icon saysing the fax has been sent to the printer. The fax will include a simple cover sheet with the information you entered above.

Thats it!!

Now a bit about faxing over the internet. From my tests it dosn't work. So, if you have voip trunks or use dundi and you send a fax that may go out over one of these trunks most likely it will fail. My solution was to make sure all my faxes went out my zap trunk. To do this I created a new out bound route called Fax-out and placed it at the bottom of my route list. In it i added a local rule and a long distance rule. Since things get changed once you save them in FreePBX you will have to search through your extensions_additional.conf file to figure out what it is accutally called. Or, when you have the DandyFax config screeen up you can click on the button beside outgoing route and it will search for your route that you have called Fax-out. So if you do it this way make sure you call the route Fax-out.

Let me know how you make out.

**** NOTE *****
1. On a few installations there has been an error reported on the first startup. If this happens click the continue button on the error window then right click the printer icon in your sys tray and exit. Once you restart things will be fine.

2. I take no responsibility if this program stops your system or computer from responding.

Rob.
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Excellent effort - that's what I love about open source - contribution.

In respect of faxing via VoIP. It is possible, and I tested over the VoIP service I supply for PBX in a Flash, and because it was ulaw all the way with no compression anywhere, it worked for me from Spain, to the EU server, to the USA server, back out to a USA DID, and back to the server in Spain, a round trip of about 7000 miles, VoIP all the way.

If compression is involved anywhere - then forget it, Fax over VoIP will not work. And in any case it can be a bit dodgy either way depending on the quality of the connection.

Joe
 

Phone_User

Guru
Joined
Jun 9, 2008
Messages
314
Reaction score
0
Thanks Joe,

I tried a number of faxes that were going out over our dundi trunk using IAX with ulaw and tx_fax always reported errors. I'll keep working on that as it would be nice to eliminate the long distance charges for faxes as well.

Rob
 

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
DandyFax Error - Vista

Am getting the following when trying to save config upon 1st run:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'c:\program files\DandyFax\config.xml' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlWriter.Create(String outputFileName, XmlWriterSettings settings)
at AlarmClockSystemTray.frmConfig.test1(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
FaxMonitor
Assembly Version: 1.8.1.0
Win32 Version: 1.8.1.0
CodeBase: file:///C:/Program%20Files/DandyFax/FaxMonitor.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Interop.SSHLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/DandyFax/Interop.SSHLib.DLL
----------------------------------------
Interop.SCPLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/DandyFax/Interop.SCPLib.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

and it is being told its vista
 

Phone_User

Guru
Joined
Jun 9, 2008
Messages
314
Reaction score
0
After re-boot are you able to access the configuration screen by right clicking on the printer icon in the task bar? And save then?

Can you go to c:\program files\DandyFax and edit the config.xml there?

Are you logged in as administrator or a controled user on your vista box?

I will investigate further. Thanks for the feedback.

Rob
 

Phone_User

Guru
Joined
Jun 9, 2008
Messages
314
Reaction score
0
I think I have corrected the problem. As well, I found another spot that my have caused a file access error and have corrected it.

The link above will now download the updated version 1.9.0.1.

Thanks

Rob
 

Phone_User

Guru
Joined
Jun 9, 2008
Messages
314
Reaction score
0
A new version has been uploaded to the server. Found one other problem. Sorry.

Rob
 

avtech

New Member
Joined
Nov 3, 2008
Messages
2
Reaction score
0
Dandy FAX

Would dandyFAX work in a multi-user environment such as Windows Terminal Server?
 

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
When I right click and run as Administrator the older version would work fine.

Vista is VERY protective of "\program files" - pain in da butt....

Will download the new one and see what happens...

Thanks
Tony
 

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
Version that I just downloaded 2 min ago gets the following error when run as non admin -

I dont know what version - might want to add version number or at least version number in download filename....

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'c:\program files\DandyFax\config.xml' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at AlarmClockSystemTray.frmConfig.test1(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
FaxMonitor
Assembly Version: 1.8.1.0
Win32 Version: 1.8.1.0
CodeBase: file:///C:/Program%20Files/DandyFax/FaxMonitor.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 

Phone_User

Guru
Joined
Jun 9, 2008
Messages
314
Reaction score
0
Your right. I did not consider the fact that the c:\program files\ directories are protected in Vista. I will have to make a change for Vista users.

There is also another error that a user has found. That I have fixed but am not uploading until I get the Vista problem fixed.


I didn't run into this problem on my test machines as they are XP upgrades and the protection has been turned off. Should have thought of that before . :banghead:

I will have an update later this afternoon.

Rob
 

Phone_User

Guru
Joined
Jun 9, 2008
Messages
314
Reaction score
0
avtech,

I have not tested it in Terminal services. I will later today. I don't see why it wouldn't as each session is protected, using there own space and directory structure.

If you try it before I do let me know. Once I make my fixes for Vista I will install on TS 2003 and see what happens.

Rob
 

Phone_User

Guru
Joined
Jun 9, 2008
Messages
314
Reaction score
0
Sorry folks, I didn't get a chance to upload a new version yesterday. Boss (wife) had me working on the honey-do list. :crazy:

Now that that is taken care of I can get back to business.

A new version was uploaded just now. Fixed 3 different problems including the Vista permissions issue.

DandyFax now uses a temp directory so the write permissions should be eliminated.

On the install screen and in the add-remove programs it should state that it is version 1.9.0.8 . That is the current version.

Please let me know if you run into any problems.

Rob
 

Phone_User

Guru
Joined
Jun 9, 2008
Messages
314
Reaction score
0
Avtek,

I installed it on my 2003 TS without errors. And it worked fine as administrator. When I logged in as a user the config.xml file is not found. Nor the directory where the config.xml should be stored. I created the directory and all worked as expected.

So, yes it will work on TS, however I would have to make a minor adjustment to the program so that if it could not find the config.xml file that it will create a generic one that your users could configure.

The other problem I ran into is if a user exits their DandyFax it deletes the printer. This deleted the printer for all users. So I would have to build a TS version that would name the printers according to the users.

Let me know if this is somthing that you are interested in.

Rob
 

Phone_User

Guru
Joined
Jun 9, 2008
Messages
314
Reaction score
0
It's another project I'm working on. It is based on Ward's TeleYapper and Telephone Reminders. Only it runs on your Windows machine and makes the calls out your asterisk box.

The version on the server is beta, but does work.

It has the .Net 2.0 redistributable included with it that is why it is so big. Not sure how it will run on Vista as I have not changed the permissions problems that showed up in the Fax Monitor.

Rob
 

gregc

Guru
Joined
Sep 8, 2008
Messages
433
Reaction score
3
Thank you for a great app! The only thing I would maybe add is a "Number of Pages" option on the cover sheet.

I do have a couple questions in general about this faxing option. I've been using it for a while (with the release of Orgasmatron II). Sometimes the fax has some "skipped lines" (outgoing) that doesn't happen with our analog fax machines. Has anyone else noticed this? It could be just my test environment of sending out on our PRI and having it come back in on the PRI.

Also, the server doesn't give any kind of error if the fax fails like our analog fax machines do. Is this just something we have to deal with??
 

Phone_User

Guru
Joined
Jun 9, 2008
Messages
314
Reaction score
0
Thanks gregc.

I personally have not seen any skipped lines. Are you saying that some lines on your printed document are blank?

I'm working on a way to get feedback from the server so you know if the fax failed or was successful.

I should have that by next week.

Rob
 

gregc

Guru
Joined
Sep 8, 2008
Messages
433
Reaction score
3
It kind of squishes the line sometimes, and other times, it is removed completely (not leaving a blank space but squishing it all together).

Below you can see what I'm talking about. It happens when I use the F-A-X-I-T method as well. This doesn't happen when I use one analog fax to fax to our other analog fax.

Are there any settings in the server software that could be tweaked?



 

Phone_User

Guru
Joined
Jun 9, 2008
Messages
314
Reaction score
0
Hmm, that's odd. What size is the form or report you are printing?

On the fax status side of it. What would you prefer a popup box that said it worked/didn't work or a box saying it didn't work. Or another balloon that pops up?

Also, would a log file be usefull of all faxes?

Rob
 

Members online

No members online now.

Forum statistics

Threads
25,824
Messages
167,825
Members
19,247
Latest member
mdauck
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.
Top