Projekat

Općenito

Profil

Akcije

Nove funkcije #11728

Zatvoren

ifold, hylafax-server, iaxmodem

Dodano od Ernad Husremović prije više od 18 godina. Izmjenjeno prije skoro 17 godina.

Status:
Zatvoreno
Prioritet:
Normalan
Odgovorna osoba:
Kategorija:
-
Početak:
Završetak:
% završeno:

100%

Procjena vremena:

Opis

ifold, hylafax-server, iaxmodem

ref. trac ticket: http://trac.sigma-com.net/sa-ScInfrastructure/ticket/640


Povezani tiketi 1 (0 otvoreno1 zatvoren)

korelira sa voip - Podrška #14395: rmlh-1 hylafax-server, iaxmodemZatvorenoErnad Husremović30.05.2008

Akcije
Akcije #1

Izmjenjeno od Ernad Husremović prije više od 18 godina

root@ifold:~/iaxmodem/iaxmodem-0.2.0# sudo apt-get install hylafax-server


Čitam spiskove paketa... Done
Gradim stablo zavisnosti       
Reading state information... Done
Slijedeći dodatni paketi će biti instalirani:
  enscript hylafax-client liblockfile1 libpaper-utils libtiff-tools mailx
  postfix sharutils
Predloženi paketi:
  mgetty-viewfax hylafax-doc mgetty libtiff-opengl procmail postfix-mysql
  postfix-pgsql postfix-ldap postfix-pcre sasl2-bin resolvconf
Preporučeni paketi:
  metamail
Slijedeći NOVI paketi će biti instalirani:
  enscript hylafax-client hylafax-server liblockfile1 libpaper-utils
  libtiff-tools mailx postfix sharutils
0 upgraded, 9 newly installed, 0 to remove and 20 not upgraded.
Need to get 3106kB of archives.
After unpacking 9687kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get: 1 http://archive.sigma-com.net edgy/main libpaper-utils 1.1.19 [17,3kB]
Get: 2 http://archive.sigma-com.net edgy/main enscript 1.6.4-9 [404kB]
Get: 3 http://archive.sigma-com.net edgy/universe hylafax-client 2:4.3.0-5 [348kB]
Get: 4 http://archive.sigma-com.net edgy/main liblockfile1 1.06.1ubuntu1 [14,8kB]
Get: 5 http://archive.sigma-com.net edgy/main libtiff-tools 3.8.2-6 [171kB]    
Get: 6 http://archive.sigma-com.net edgy/main postfix 2.3.3-1 [1067kB]         
Get: 7 http://archive.sigma-com.net edgy/main mailx 1:8.1.2-0.20050715cvs-1ubuntu1 [153kB]
Get: 8 http://archive.sigma-com.net edgy/main sharutils 1:4.2.1-15 [111kB]     
Get: 9 http://archive.sigma-com.net edgy/universe hylafax-server 2:4.3.0-5 [820kB]
Fetched 3106kB in 48s (63,7kB/s)                                               
Preconfiguring packages ...
Selecting previously deselected package libpaper-utils.
(Reading database ... 110072 files and directories currently installed.)
Unpacking libpaper-utils (from .../libpaper-utils_1.1.19_i386.deb) ...
Selecting previously deselected package enscript.
Unpacking enscript (from .../enscript_1.6.4-9_i386.deb) ...
Setting up libpaper-utils (1.1.19) ...
Selecting previously deselected package hylafax-client.
(Reading database ... 110273 files and directories currently installed.)
Unpacking hylafax-client (from .../hylafax-client_2%3a4.3.0-5_i386.deb) ...
Selecting previously deselected package liblockfile1.
Unpacking liblockfile1 (from .../liblockfile1_1.06.1ubuntu1_i386.deb) ...
Selecting previously deselected package libtiff-tools.
Unpacking libtiff-tools (from .../libtiff-tools_3.8.2-6_i386.deb) ...
Selecting previously deselected package postfix.
Unpacking postfix (from .../postfix_2.3.3-1_i386.deb) ...
Selecting previously deselected package mailx.
Unpacking mailx (from .../mailx_1%3a8.1.2-0.20050715cvs-1ubuntu1_i386.deb) ...
Selecting previously deselected package sharutils.
Unpacking sharutils (from .../sharutils_1%3a4.2.1-15_i386.deb) ...
Selecting previously deselected package hylafax-server.
Unpacking hylafax-server (from .../hylafax-server_2%3a4.3.0-5_i386.deb) ...
Setting up enscript (1.6.4-9) ...

Setting up hylafax-client (4.3.0-5) ...

Creating config file /etc/hylafax/pagesizes with new version

Setting up liblockfile1 (1.06.1ubuntu1) ...
Setting up libtiff-tools (3.8.2-6) ...
Setting up postfix (2.3.3-1) ...
Dodaje grupu @postfix' (115)...
Gotovo.
Dodajem system korisnika @postfix' sa uid  111...
Dodaje novog korisnika @postfix' (111) sa grupom @postfix'.
Not creating home directory @/var/spool/postfix'.
Creating /etc/postfix/dynamicmaps.cf
Adding tcp map entry to /etc/postfix/dynamicmaps.cf
Dodaje grupu @postdrop' (116)...
Gotovo.
setting myhostname: ifold.sigma-com.net
setting alias maps
setting alias database
changing /etc/mailname
setting myorigin
setting destinations: ifold.sigma-com.net, localhost.sigma-com.net, localhost
setting relayhost: 
setting mynetworks: 127.0.0.0/8
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: loopback-only

Postfix is now set up with a default configuration.  If you need to make 
changes, edit
/etc/postfix/main.cf (and others) as needed.  To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
* Stopping Postfix Mail Transport Agent postfix                         [ ok ] 
* Starting Postfix Mail Transport Agent postfix                         [ ok ] 

Setting up mailx (8.1.2-0.20050715cvs-1ubuntu1) ...

Setting up sharutils (4.2.1-15) ...

Setting up hylafax-server (4.3.0-5) ...
Dodajem system korisnika @faxmaster' sa uid  112...
Dodaje novu grupu @faxmaster' (117).
Dodaje novog korisnika @faxmaster' (112) sa grupom @faxmaster'.
Not creating home directory @/var/spool/hylafax'.

Setup program for HylaFAX (tm) 4.3.0.

Created for i686-pc-linux-gnu on Wed Jun 21 11:14:57 UTC 2006.

Found encoder: /usr/bin/uuencode
Looks like /usr/bin/uuencode supports base64 encoding.
Checking system for proper server configuration.

Warning: /etc/hylafax/getty-link does not exist or is not an executable program!

The file:

    /etc/hylafax/getty-link

does not exist or this file is not an executable program.  The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error.  If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/getty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.

Warning: /etc/hylafax/vgetty-link does not exist or is not an executable program!

The file:

    /etc/hylafax/vgetty-link

does not exist or this file is not an executable program.  The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error.  If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/vgetty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.

Warning: /etc/hylafax/egetty-link does not exist or is not an executable program!

The file:

    /etc/hylafax/egetty-link

does not exist or this file is not an executable program.  The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error.  If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/egetty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.

Make /var/spool/hylafax/bin/ps2fax a link to /var/spool/hylafax/bin/ps2fax.gs.

Make /var/spool/hylafax/bin/pdf2fax a link to /var/spool/hylafax/bin/pdf2fax.gs.

Update /var/spool/hylafax/status/any.info.

        HylaFAX configuration parameters are:

        r1 Init script starts faxq:            yes
        r2 Init script starts hfaxd            yes
        r3 Start old protocol:                 no
        r4 Start paging protocol:              no
Are these ok [yes]? 
Modem support functions written to /var/spool/hylafax/etc/setup.modem.
Configuration parameters written to /var/spool/hylafax/etc/setup.cache.

Restarting HylaFAX server processes.

You do not appear to have any modems configured for use.  Modems are
configured for use with HylaFAX with the faxaddmodem(8) command.
Do you want to run faxaddmodem to configure a modem [yes]? 
Done verifying system setup.
Creating /etc/hylafax/setup.cache from /var/spool/hylafax/etc/setup.cache.
Creating /etc/hylafax/setup.modem from /var/spool/hylafax/etc/setup.modem.
/var/spool/hylafax
Stopping HylaFAX daemons: faxq(not running) hfaxd(not running) faxgetty.
Starting HylaFAX daemons: faxq hfaxd faxgetty.

Akcije #2

Izmjenjeno od Ernad Husremović prije više od 18 godina

root@ifold:~/iaxmodem/iaxmodem-0.2.0# cat /etc/iaxmodem/1.ttyIAX

device          /dev/ttyIAX
owner           uucp:uucp
mode            660
port            4570
refresh         300
server          127.0.0.1
peername        iaxfax_1
secret          sarabon
cidname         fax sigma-com
cidnumber       033269293
codec           slinear

Akcije #3

Izmjenjeno od Ernad Husremović prije više od 18 godina

root@ifold:~/iaxmodem/iaxmodem-0.2.0# tail /var/log/iaxmodem/1.ttyIAX

[2007-01-22 21:14:13] Unable to pass the full buffer onto the device file. 1 bytes of 4094 written: Resource temporarily unavailable
[2007-01-22 21:14:13] Unable to pass the full buffer onto the device file. 1 bytes of 4094 written: Resource temporarily unavailable
[2007-01-22 21:14:13] Unable to pass the full buffer onto the device file. 1 bytes of 4094 written: Resource temporarily unavailable

Akcije #4

Izmjenjeno od Ernad Husremović prije više od 18 godina

faxgetty tty je bilo rješenje ...

root@ifold:~# initctl list

tty1 (start) running, process 3579 active
tty2 (start) running, process 3580 active
tty3 (start) running, process 3581 active
tty4 (start) running, process 3582 active
tty5 (start) running, process 3583 active
tty6 (start) running, process 3584 active
control-alt-delete (stop) waiting
sulogin (stop) waiting
rc-default (stop) waiting
rc0 (stop) waiting
rc0-halt (stop) waiting
rc0-poweroff (stop) waiting
rc1 (stop) waiting
rc2 (stop) waiting
rc3 (stop) waiting
rc4 (stop) waiting
rc5 (stop) waiting
rc6 (stop) waiting
rcS (stop) waiting
rcS-sulogin (stop) waiting
logd (start) running, process 1986 active
ttyIAX (stop) waiting
hylafax_ttyIAX (start) running, process 14781 active

root@ifold:~# initctl start ttyIAX

ttyIAX (start) running, process 14788 active

Akcije #5

Izmjenjeno od Ernad Husremović prije više od 18 godina

root@ifold:~# cat /etc/event.d/ttyIAX

# tty2 - getty
#
# This service maintains a getty on tty2 from the point the system is
# started until it is shut down again.

start on runlevel-2
start on runlevel-3
stop on runlevel-4
stop on runlevel-5

stop on shutdown

respawn /usr/sbin/iaxmodem ttyIAX

root@ifold:~# cat /etc/event.d/hylafax_ttyIAX

start on runlevel-2
start on runlevel-3
stop on runlevel-4
stop on runlevel-5

stop on shutdown

respawn /usr/sbin/faxgetty ttyIAX

Akcije #6

Izmjenjeno od Ernad Husremović prije više od 18 godina

međutim, ovaj faxgetty ne treba biti u inittab-u (tačnije upstart-u)

root@ifold:/etc/hylafax# faxaddmodem

Serial port that modem is connected to [ttyS0]? ttyIAX

Ok, time to setup a configuration file for the modem.  The manual
page config(5) may be useful during this process.  Also be aware
that at any time you can safely interrupt this procedure.

Reading scheduler config file /var/spool/hylafax/etc/config.

Hey, there is an existing config file /var/spool/hylafax/etc/config.ttyIAX...

Your facsimile phone number (+38732269293) does not agree with your
country code (1) or area code (800).  The number
should be a fully qualified international dialing number of the form:

    +1 800 <local phone number>

Spaces, hyphens, and periods can be included for legibility.  For example,

    +1.800.555.1212

is a possible phone number (using your country and area codes).

The non-default server configuration parameters are:

CountryCode:            1
AreaCode:               800
FAXNumber:              +38732269293
LongDistancePrefix:     1
InternationalPrefix:    011
DialStringRules:        etc/dialrules
ServerTracing:          0xFFF
SessionTracing:         0xFFF
RingsBeforeAnswer:      1
SpeakerVolume:          off
GettyArgs:              "-h %l dx_%s" 
LocalIdentifier:        "IAXmodem" 
TagLineFont:            etc/lutRS18.pcf
TagLineFormat:          "From %%l|%c|Page %%P of %%T" 
MaxRecvPages:           200

Are these ok [yes]? 

Now we are going to probe the tty port to figure out the type
of modem that is attached.  This takes a few seconds, so be patient.
Note that if you do not have the modem cabled to the port, or the
modem is turned off, this may hang (just go and cable up the modem
or turn it on, or whatever).

Probing for best speed to talk to modem: 38400
 OK.

About fax classes:

The difference between fax classes has to do with how HylaFAX interacts
with the modem and the fax protocol features that are used when sending
or receiving faxes.  One class isn't inherently better than another;
however, one probably will suit a user's needs better than others.

Class 1 relies on HylaFAX to perform the bulk of the fax protocol.
Class 2 relies on the modem to perform the bulk of the fax protocol.
Class 2.0 is similar to Class 2 but may include more features.
Class 1.0 is similar to Class 1 but may add V.34-fax capability.
Class 2.1 is similar to Class 2.0 but adds V.34-fax capability.

HylaFAX generally will have more features when using Class 1/1.0 than
when using most modems' Class 2 or Class 2.0 implementations.  Generally
any problems encountered in Class 1/1.0 can be resolved by modifications
to HylaFAX, but usually any problems encountered in Class 2/2.0/2.1 will
require the modem manufacturer to resolve it.

If you're unsure and your modem supports it, use Class 1.

This modem looks to have support for Class 1 and 1.0.
How should it be configured r1? 
Hmm, this looks like a Class 1 modem.

Product code (ATI0) is "spandsp".
Other information (ATI3) is "www.soft-switch.org".
DTE-DCE flow control scheme [default]? Modem manufacturer is "spandsp".
Modem model is "IAXmodem".

Using prototype configuration file iaxmodem...

The modem configuration parameters are:

ModemResetCmds:         "ATH1\nAT+VCID=1" 

Are these ok [yes]? 

Creating new configuration file /var/spool/hylafax/etc/config.ttyIAX...
...saving current file as /var/spool/hylafax/etc/config.ttyIAX.sav.
Done setting up the modem configuration.

Checking /var/spool/hylafax/etc/config for consistency...
...some parameters are different.

The non-default scheduler parameters are:

CountryCode:            1
AreaCode:               800
LongDistancePrefix:     1
InternationalPrefix:    011
DialStringRules:        etc/dialrules
ServerTracing:          0xFFF

Are these ok [yes]? 

Creating new configuration file /var/spool/hylafax/etc/config...
...saving current file as /var/spool/hylafax/etc/config.sav.

Don't forget to restart hylafax in order to run faxgetty on this new modem
line.
Updating /etc/hylafax/config from /var/spool/hylafax/etc/config.
Creating /etc/hylafax/config.sav from /var/spool/hylafax/etc/config.sav.
Updating /etc/hylafax/config.ttyIAX from /var/spool/hylafax/etc/config.ttyIAX.
Creating /etc/hylafax/config.ttyIAX.sav from /var/spool/hylafax/etc/config.ttyIAX.sav.
/var/spool/hylafax/config
root@ifold:/etc/hylafax# faxaddmodem

Akcije #7

Izmjenjeno od Ernad Husremović prije više od 18 godina

da sada hylafax kreira .. faxgetty IAX

root@ifold:/etc/event.d# initctl stop hylafax_ttyIAX 
hylafax_ttyIAX (stop) running, process 15135 killed
root@ifold:/etc/event.d# /etc/init.d/hylafax restart
Stopping HylaFAX daemons: faxq(not running) hfaxd(not running) faxgetty.
+ /bin/cp -p "/etc/hylafax/hosts.hfaxd" "/var/spool/hylafax/etc/hosts.hfaxd" 
Starting HylaFAX daemons: faxq hfaxd faxgetty.
root@ifold:/etc/event.d# ps ax | grep faxgetty
15482 pts/1    S      0:00 /usr/sbin/faxgetty ttyIAX
15487 pts/1    S+     0:00 grep faxgetty
root@ifold:/etc/event.d# 
Akcije #8

Izmjenjeno od Ernad Husremović prije više od 18 godina

test slanja:

hernad@desk-h6:~/cups-ps$ cat /etc/hylafax/hyla.conf


Host:                   fax.sigma-com.net
...

instalirao hylafax-client

sendfax

hernad@desk-h6:~/cups-ps$ sendfax -n -d 061141311 ~/cups-ps/*BASR*ps

...

i pišti na moj mobitel - izgleda da radi

Akcije #9

Izmjenjeno od Ernad Husremović prije više od 18 godina

pokušao sam sa slanjem pravog fax-a

hernad@desk-h6:~/cups-ps$ sendfax -n  -f ernad.husremovic@sigma-com.net -d 033424361 FAKT_DOK_10-10-00034-1HT01_22.01.07_HAAK-TRANS-doo-VOGOSCA_FAX-033424361.ps 

naime napravio sam fakturu po ugovoru za haaktrans ...

Akcije #10

Izmjenjeno od Ernad Husremović prije više od 18 godina

povratni email nisam dobio, ali mi se čini, pregledom log-a na serveru da je fax prošao od prve:

...
01/22/07 22:55  CALL    000000007       ttyIAX          ""      fax     "+38732269293"  ""      0       0       0:02    0:02"Ring detected without successful handshake"     "<NONE>"        "061141311"     "<NONE>::033269292"     ""      "" 
01/22/07 23:12  SEND    000000008       ttyIAX  1       ""      hernad@localhost        "061141311"     ""      2220072 0   0:16     0:00    "No carrier detected"   ""      ""      ""      "hernad"        "00 00 00" 
01/22/07 23:40  SEND    000000009       ttyIAX  2       ""      ernad.husremovic@sigma-com.net  "033424361"     "<UNSPECIFIED>"      2220072 1       0:37    0:23    ""      ""      ""      ""      "hernad"        "00 44 1F 22" 

Akcije #11

Izmjenjeno od Ernad Husremović prije više od 18 godina

hernad@desk-h6:~/cups-ps$ faxstat -d

HylaFAX scheduler on ifold.sigma-com.net: Running
Modem ttyIAX (+38732269292): Running and idle

JID  Pri S  Owner Number       Pages Dials     TTS Status
1    126 F hernad 061141311     0:1   1:12         Job aborted by request
2    127 D hernad 033424361     1:1   1:12      

faxstat nam govori da je "D" = done, i da je 1 strana poslana - od prve.

Akcije #12

Izmjenjeno od Ernad Husremović prije oko 18 godina

root@ifold:/var/spool/hylafax/etc/FaxDispatch

case "$SENDER" in
*1*415*390*1212*) SENDTO=ernad.husremovic@sigma-com.net;; 
*)      SENDTO=office@sigma-com.net;;  # 
esac
case "$DEVICE" in
ttyIAX)            SENDTO=office@sigma-com.net;;
ttyLT0)           SENDTO=mary@home;;    # all faxes received on ttyLT0
esac
case "$CIDNUMBER" in
435*)        SENDTO=lee; FILETYPE=pdf;; # all faxes from area code 435
5059627777)  SENDTO=amy; FILETYPE=tif;; # Amy wants faxes in TIFF
esac
case "$SUBADDR" in
53)          SENDTO=FaxMaster;;         # without double-notification
roger)       SENDTO=roger;;             # possible text subaddressing
esac
root@ifold:/var/spool/hylafax/etc# 

Akcije #13

Izmjenjeno od Ernad Husremović prije oko 18 godina

za detalje

$ man faxrcvd

Akcije #14

Izmjenjeno od Ernad Husremović prije skoro 17 godina

  • Status promijenjeno iz Novo u Zatvoreno
  • % završeno promijenjeno iz 0 u 100
Akcije

Također dostupno kao Atom PDF