osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: Sending Fax through CUPS - msg#00293

List: printing.cups.general

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

Ali dot Naddaf at trilogy dot com wrote:
> Hello everyone.
>
> I couldn't find any archive to search to see if this had been answered
>
> before or not; if that is the case, I would appreciate a pointer. Here
> is
> the question that I have.
>
> I am running HylaFax server on my Linux box and have setup a printer
> that
> sends a fax through HylaFax (I am using fax4CUPS). All is good and
> I can
> specify the fax number through the job id ( lpr -j fax-number ....)
> and my
> backend script extracts the phone number for HylaFax.
>
> My question is related to sending fax from windows clients. The "fax
>
> printer" is exposed through CUPS and my windows clients see that. I
> have
> used one of the HP LaserJet drivers on my windows to print to that
> shared
> printer. The problem is that I don't know how I can pass the phone
> number
> to the fax printer. I thought of the following method but for it to
> work,
> I need some help:
>
> I thought I could modify the name of the file that I want to fax through
>
> to something like "someName_faxNumber" and then retrieve the faxNumber
> on
> the server side from the file name. The problem with that is it seems
> the
> file that is sent to the CUPS' backend for this printer picks up a
>
> generic name like "smbprn.000067.hCx0iM" which doesn't let me do what
> I
> want.
>
> Does anyone have any suggestion how to approach this particular problem,
>
> or in general how to pass the fax number?
>
>
> Many thanks,
> Ali.
>
>
>
In this mailing system it not possible to reference one specific posting.
So I have to write it again.

It is importantant that you use the same fax-PPD in your CUPS and your
Windows. The PPD offer the possibility to put in the fax number.
On way is shown here:

>From Windows to CUPS without SAMBA

Preliminaries
-------------
Windows 2000 and XP contain IPP clients.

In Windows 98 and ME you can install a Microsoft IPP client.
You can find this software on the WinME-CD, the Win2k-server-CD in the
directory: clientswin9xipp.cli and online at:

http://www.microsoft.com/windows98/downloads/contents/WUPreviews/IPP/Default.asp

or

http://www.marlboro.edu/resources/computer/tutorials/printing/win98/

Filename: wpnpins.exe

Also all driver cdroms of hardware printserver contain that file.



Procedure of the Printer Installation under Windows
---------------------------------------------------

You have the choice to use CUPS as the RIP or to use the apropriate Windows
printer driver. In the first way you send a Postscript file to CUPS, in the
second a printer file to the raw queue of CUPS. Here is a description of the
first
way:

1. Download a PPD file for your printer.

Is it a postscript printer so you can get it from the printer maufacturer or
from
ftp://ftp.adobe.com/pub/adobe/printerdrivers/win/all/ppdfiles
Here are self-extracting zip archives.
PPDs for all other printers you can download from http://www.linuxprinting.org.
If the printer runs already with your CUPS copy the PPD from your server.
It is under /etc/cups/ppd.

In order to get access to all printer options from Windows the PPDs from
Gimp-Print
and Foomatic (www.linuxprinting.org) have to be edited. The option blocks must
be
enclosed in OpenGroup/CloseGroup statements:

*OpenGroup: InstallableOptions/Installierbare Optionen

*OpenUI
..
*CloseUI

*0penUI
..
*CloseUI

..
*CloseGroup: IntallableOptions

2. Download Adobe's postscript driver from
ftp://ftp.adobe.com/pub/adobe/printerdrivers/win/1.x
in the appropriate language version.

3. Install the printer with any driver provided by Windows with internet port
http://url-of-the-server:631/printers/name-of-the-printer-queue
This port is handled as a local printer port.

4. Delete this printer.

Steps 3 and 4 serve only to create the IPP port.

5. Install the Adobe Postscript driver.

In the installation dialog you will be asked for the PPD file.
Later you will be asked if it is a "local printer" or a "network printer".
Network in the Microsoft context always refers to Microsoft network with UNC
names and pathes. Type "local printer". Then you have the choice of all
available
printer ports. One will be LPT1. Now you can choose LPT1 as wanted port.
If you choose LPT1 you will have later the possibility to change the printer
port in
the properties of the printer. If you run Windows2k or XP you can install a
printer
driver of the printer manufacturer with an Internet Printing Port. If this port
ever
exists you can choose it as a "local port" however Adobe driver cannot create
it.

6. Insert the client ip-nr in the location directive from the cups.conf.


Thread at a glance:

Previous Message by Date:

Re: Sending Fax through CUPS

Ali.Naddaf-+F+d0juzi95BDgjK7y7TUQ@xxxxxxxxxxxxxxxx wrote: > I am running HylaFax server on my Linux box and have setup a printer that > sends a fax through HylaFax (I am using fax4CUPS). All is good and I can > specify the fax number through the job id ( lpr -j fax-number ....) and my > backend script extracts the phone number for HylaFax. > > My question is related to sending fax from windows clients. The "fax > printer" is exposed through CUPS and my windows clients see that. I have > used one of the HP LaserJet drivers on my windows to print to that shared > printer. The problem is that I don't know how I can pass the phone number > to the fax printer. I thought of the following method but for it to work, > I need some help: You need to connect to your printer from Windows using IPP, not SMB. This way the job names will be correct. And the second idea is to modify the backend from fax4CUPS. It is possible (in fact I did that, but it is now on a remote server which is turned off) to arrange things in such way that jobs with name "<draft> Fax To 745392 - Some Wnidoze App" will be parsed and the sequence of digits after the magic words "Fax To" will be used as a telephone number. If there are no such magic words, the number is assumed to be dialed manually. Sorry, I cannot help with Hylafax, and my server is off now, so I cannot just mail the mgetty script modification here, but you get the idea. I think there are many bash and sed gurus here and they will help. -- Alexander E. Patrakov

Next Message by Date:

Trouble getting server running: Unable to bind socket - Address already in use.

Hi, I am running Debian Woody and am having troubles getting the CUPS server to run. lpd has been removed from the rc#.d directories. I have tried to have the cups server started by rc#.d files, xinetd and by command line. I get a horribly consistant responce. :^( I tried changing the socket to which CUPS connected and still had no joy. My iptables are all set to ACCEPT all communications. I have looked for answers to my dilemma and found none. So, here is my information: The machine I am using is called Pacifica and has the ip address: 192.168.1.42 and I am trying to connect to a JetDirect networked printer. Output of requests to cups-config: pacifica:/tmp# cups-config --api-version 1.1 pacifica:/tmp# cups-config --serverroot /etc/cups pacifica:/tmp# cups-config --serverbin /usr/lib/cups pacifica:/tmp# cups-config --version 1.1.14 Stripped output of /etc/cups/cups.config: pacifica:/proc/net# cat /etc/cups/cupsd.conf|grep -v ^#|grep [:alnum:] AccessLog /var/log/cups/access_log ErrorLog /var/log/cups/error_log LogLevel debug PageLog /var/log/cups/page_log Printcap /etc/printcap.cups Group sys BrowseProtocols cups all SystemGroup lpadmin <Location /> Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow from 192.168.1.42 </Location> <Location /admin> AuthType Basic AuthClass System Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From 192.168.1.42 </Location> Output of /var/log/cups/error_log: (Note LogLevel is 'debug') I [20/Jul/2003:07:33:11 -0700] Listening to 0:631 I [20/Jul/2003:07:33:11 -0700] Listening to 0:631 D [20/Jul/2003:07:33:11 -0700] AddLocation: added location '/' D [20/Jul/2003:07:33:11 -0700] DenyIP: / deny 00000000/00000000 D [20/Jul/2003:07:33:11 -0700] AllowIP: / allow 7f000001/ffffffff D [20/Jul/2003:07:33:11 -0700] AllowIP: / allow c0a8012a/ffffffff D [20/Jul/2003:07:33:11 -0700] AddLocation: added location '/admin' D [20/Jul/2003:07:33:11 -0700] DenyIP: /admin deny 00000000/00000000 D [20/Jul/2003:07:33:11 -0700] AllowIP: /admin allow 7f000001/ffffffff D [20/Jul/2003:07:33:11 -0700] AllowIP: /admin allow c0a8012a/ffffffff D [20/Jul/2003:07:33:11 -0700] ReadConfiguration() ConfigurationFile="/etc/cups/cupsd.conf" I [20/Jul/2003:07:33:11 -0700] Configured for up to 100 clients. I [20/Jul/2003:07:33:12 -0700] LoadPPDs: Read "/etc/cups/ppds.dat", 1056 PPDs... I [20/Jul/2003:07:33:12 -0700] LoadPPDs: No new or changed PPDs... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "ipp"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "lpd"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "serial:/dev/ttyS0?baud=115200"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "serial:/dev/ttyS1?baud=115200"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "serial:/dev/ttyS2?baud=115200"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "serial:/dev/ttyS3?baud=115200"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "socket"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp0"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp1"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp2"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp3"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp4"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp5"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp6"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp7"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp8"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp9"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp10"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp11"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp12"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp13"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp14"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "usb:/dev/usb/lp15"... D [20/Jul/2003:07:33:12 -0700] LoadDevices: Added device "http"... D [20/Jul/2003:07:33:12 -0700] StartListening: NumListeners=2 D [20/Jul/2003:07:33:12 -0700] StartListening: address=00000000 port=631 D [20/Jul/2003:07:33:12 -0700] StartListening: address=00000000 port=631 E [20/Jul/2003:07:33:12 -0700] StartListening: Unable to bind socket - Address already in use. ====================================================================== Any assistance would be greatly appreciated. Paul Hardin

Previous Message by Thread:

Re: Sending Fax through CUPS

Ali.Naddaf-+F+d0juzi95BDgjK7y7TUQ@xxxxxxxxxxxxxxxx wrote: > I am running HylaFax server on my Linux box and have setup a printer that > sends a fax through HylaFax (I am using fax4CUPS). All is good and I can > specify the fax number through the job id ( lpr -j fax-number ....) and my > backend script extracts the phone number for HylaFax. > > My question is related to sending fax from windows clients. The "fax > printer" is exposed through CUPS and my windows clients see that. I have > used one of the HP LaserJet drivers on my windows to print to that shared > printer. The problem is that I don't know how I can pass the phone number > to the fax printer. I thought of the following method but for it to work, > I need some help: You need to connect to your printer from Windows using IPP, not SMB. This way the job names will be correct. And the second idea is to modify the backend from fax4CUPS. It is possible (in fact I did that, but it is now on a remote server which is turned off) to arrange things in such way that jobs with name "<draft> Fax To 745392 - Some Wnidoze App" will be parsed and the sequence of digits after the magic words "Fax To" will be used as a telephone number. If there are no such magic words, the number is assumed to be dialed manually. Sorry, I cannot help with Hylafax, and my server is off now, so I cannot just mail the mgetty script modification here, but you get the idea. I think there are many bash and sed gurus here and they will help. -- Alexander E. Patrakov

Next Message by Thread:

Sparc 2

Cups readers, DTR/DSR flow control should work on a Sparc 2. Is there not one CUPS user who has seen a LaserJet III connected to Sparc 2? Thanks, Peter E. http://carnot.pathology.ubc.ca/
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!