Mailing List CGatePro@mail.stalker.com Message #92311
From: Christian B. Ellsworth Capo <k@ellsworth.cl>
Subject: Re: FW: HylaFAX and CGP
Date: Fri, 24 Aug 2007 10:19:13 -0400
To: CommuniGate Pro Discussions <CGatePro@mail.stalker.com>
Sorry about top-posting...

AFAIK, Hylafax, is not an Communigate Plugin, by itself... you need a "in between" script that understands the Communigate external filter API that will send something like:

00976987 FILE /msg/786287268

and the plugin will reply with something like:
00976987 DISCARD

The discard should be the right return , because the message left the server to somewhere else... a FAX route.

so you need to build something that stiches together hylafax-mail to CGP..

more info about the External Filter API: in yourserver  http://yourserver:8010/Guide/Helpers.html

Perhaps one of the guys in this list can came up with something

K.Ellsworth


Eric Dilbeck wrote:
Help,
 
I am trying to get hylafax working with Communigate as an external filter. Can any body give some advice?
I have a rule set to call an external filter as follows.
 
data     operation        parameter
to         IN                *.@*.fax <mailto:*.@*.fax>
 
action
external filter    Hylafax
 
External filter setup
 
hylafax    /usr/bin/faxmail
 
Here is my log file when an email hits the rule and the filter.
 
12:51:20.726 4 ENQUEUER-000003([771883]) rule(HylaFax) conditions met
12:51:20.726 5 EXTFILTER(HylaFax) ENQUEUER-3 starting initialization
12:51:20.726 4 EXTFILTER(HylaFax) out(10): 20 INTF 3\n
12:53:32.871 4 ENQUEUER-000001([771890]) rule(HylaFax) conditions met
13:48:16.353 4 EXTFILTER(HylaFax) ENQUEUER-1 waiting for initialization
13:48:16.383 4 EXTFILTER(HylaFax) ENQUEUER-2 waiting for initialization
....... more of the same ....
13:48:16.653 4 EXTFILTER(HylaFax) ENQUEUER-1 waiting for initialization
13:48:16.683 4 EXTFILTER(HylaFax) ENQUEUER-2 waiting for initialization
13:48:16.953 4 EXTFILTER(HylaFax) ENQUEUER-1 waiting for initialization
....... manualy stopped(disabled) the external filter.
13:48:16.969 2 EXTFILTER(HylaFax) closing program input
13:48:16.970 4 EXTFILTER(HylaFax) inp(14): %!PS-Adobe-3.0
13:48:16.970 1 EXTFILTER(HylaFax) bad response: %!PS-Adobe-3.0
13:48:16.970 4 EXTFILTER(HylaFax) inp(35): %%Creator: HylaFAX TextFormat Class
13:48:16.970 1 EXTFILTER(HylaFax) bad response: %%Creator: HylaFAX TextFormat Class
13:48:16.971 4 EXTFILTER(HylaFax) inp(21): %%Title: HylaFAX-Mail
13:48:16.971 1 EXTFILTER(HylaFax) bad response: %%Title: HylaFAX-Mail
13:48:16.971 4 EXTFILTER(HylaFax) inp(40): %%CreationDate: Thu Aug 23 13:48:16 2007
13:48:16.971 1 EXTFILTER(HylaFax) bad response: %%CreationDate: Thu Aug 23 13:48:16 2007
........ more of the same .......
13:48:16.980 4 EXTFILTER(HylaFax) inp(1): %
13:48:16.980 1 EXTFILTER(HylaFax) bad response: %
13:48:16.980 4 EXTFILTER(HylaFax) inp(19): % faxmail prologue.
13:48:16.980 1 EXTFILTER(HylaFax) bad response: % faxmail prologue.
13:48:16.980 4 EXTFILTER(HylaFax) inp(1): %
13:48:16.980 1 EXTFILTER(HylaFax) bad response: %
13:48:16.980 4 EXTFILTER(HylaFax) inp(51): /EPSbegin{save gsave 20 20 scale 200 dict begin}def
13:48:16.980 1 EXTFILTER(HylaFax) bad response: /EPSbegin{save gsave 20 20 scale 200 dict begin}def
13:48:16.980 4 EXTFILTER(HylaFax) inp(32): /EPSend{end grestore restore}def
13:48:16.980 1 EXTFILTER(HylaFax) bad response: /EPSend{end grestore restore}def
13:48:16.980 4 EXTFILTER(HylaFax) inp(3): end
13:48:16.980 1 EXTFILTER(HylaFax) bad response: end
13:48:16.980 4 EXTFILTER(HylaFax) inp(11): %%EndProlog
13:48:16.980 1 EXTFILTER(HylaFax) bad response: %%EndProlog
13:48:16.980 4 EXTFILTER(HylaFax) inp(9): %%Trailer
13:48:16.980 1 EXTFILTER(HylaFax) bad response: %%Trailer
13:48:16.980 4 EXTFILTER(HylaFax) inp(10): %%Pages: 0
13:48:16.980 1 EXTFILTER(HylaFax) bad response: %%Pages: 0
13:48:16.980 4 EXTFILTER(HylaFax) inp(5): %%EOF
13:48:16.980 1 EXTFILTER(HylaFax) bad response: %%EOF
13:48:16.980 2 EXTFILTER(HylaFax) reading finished
13:48:16.980 2 EXTFILTER(HylaFax) task output closed
13:48:16.980 2 EXTFILTER(HylaFax) task terminated. retCode=0
13:48:16.980 1 EXTFILTER(HylaFax) aborting request 20
13:48:16.980 1 EXTFILTER(HylaFax) initialization failed
13:48:16.980 2 EXTFILTER(HylaFax) receiver finished
13:48:16.980 2 EXTFILTER(HylaFax) program /usr/bin/faxmail released
13:48:16.980 2 EXTFILTER(HylaFax) program /usr/bin/faxmail set
 
Does anybody know how to get logging out of faxmail?
 
Any help would be appreciated.

Eric Dilbeck
Presort First Class, INC.
405.677.9633 Ext 225 Voice
405.677.8982 Fax
 
 
 
This message (including attachments) may contain information that is privileged, confidential or protected from disclosure.
If you are not the intended recipient, you are hereby notified that dissemination, disclosure, copying, distribution or use of this message or any information contained in it is strictly prohibited.
If you have received this message in error, please immediately notify the sender by reply e-mail and delete this message from your computer.
Although we have taken steps to ensure that this e-mail and attachments are free from any virus,
we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster