Podrška #14395
Zatvorenrmlh-1 hylafax-server, iaxmodem
Dodano od Ernad Husremović prije oko 17 godina. Izmjenjeno prije više od 16 godina.
50%
Opis
podesiti da koristi iaxmodem kao uređaj
Povezani tiketi 3 (0 otvoreno — 3 zatvorenih)
Izmjenjeno od Ernad Husremović prije oko 17 godina
root@rmlh-1:~/devel/git/iaxmodem# sudo apt-get install hylafax-server
root@rmlh-1:~/devel/git/iaxmodem# aptitude show hylafax-server
Package: hylafax-server State: installed Automatically installed: yes Version: 2:4.4.3-1 Priority: extra Section: universe/comm
Izmjenjeno od Ernad Husremović prije oko 17 godina
pođoniću ifold konfiguraciju
root@ifold:~# ls /etc/hylafax
config dialrules.europe hosts.hfaxd setup.modem config.sav dialrules.sf-ba hyla.conf templates config.ttyIAX faxcover.ps hyla.conf.dpkg-dist templates.orig config.ttyIAX.sav FaxDispatch lutRS18.pcf typerules cover.templ faxmail.ps pagesizes dialrules hfaxd.conf setup.cache
ifold: /etc/hylafax/config.IAX
# $Id: iaxmodem,v 1.1 2006/04/02 23:18:30 darren Exp $ # # prototype config for the IAXmodem softmodem which uses # the spandsp soft-DSP library # AreaCode: 387 FAXNumber: +38732269292 LongDistancePrefix: 1 InternationalPrefix: 011 DialStringRules: etc/dialrules ServerTracing: 0xFFF SessionTracing: 0xFFF RecvFileMode: 0600 LogFileMode: 0600 DeviceMode: 0600 RingsBeforeAnswer: 1 SpeakerVolume: off GettyArgs: "-h %l dx_%s" LocalIdentifier: "Sigma-com IAX" TagLineFont: etc/lutRS18.pcf TagLineFormat: "From %%l|%c|Page %%P of %%T" MaxRecvPages: 200 # # # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use this to supply a hint # # The modem is taken off-hook during initialization, and then # placed back on-hook when done to prevent glare. # ModemResetCmds: "ATH1\nAT+VCID=1" # enables CallID display ModemReadyCmds: ATH0 Class1AdaptRecvCmd: AT+FAR=1 Class1TMConnectDelay: 400 # counteract quick CONNECT response Class1RMQueryCmd: "!24,48,72,96" # V.17 fast-train recv doesn't work well CallIDPattern: "NMBR=" CallIDPattern: "NAME=" CallIDPattern: "ANID=" CallIDPattern: "NDID=" # Uncomment these if you really want them, but you probably don't. #CallIDPattern: "DATE=" #CallIDPattern: "TIME="
bitan je i FaxDispatch
root@ifold:/etc/hylafax/FaxDispatch
FILETYPE=pdf; 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
Izmjenjeno od Ernad Husremović prije oko 17 godina
aha ovako se pokreže ttyIAX proces:
root@ifold:/etc/event.d/ttyIAX
start on runlevel-2 start on runlevel-3 stop on runlevel-4 stop on runlevel-5 stop on shutdown respawn /usr/sbin/iaxmodem ttyIAX
Izmjenjeno od Ernad Husremović prije oko 17 godina
međutim prilikom startanja sam dobio
init /etc/event.d/ttyIAX unknown stanza ...
takođe sam tom prilikom imao problema sa boot-om (ne vidi /dev/mapper/rmlhvg2-root_1) ... e sad ne znam je li radi gornje greške došlo do problema sa boot-om to treba dobro provjeriti
Izmjenjeno od Ernad Husremović prije oko 17 godina
- Naslov promijenjeno iz rmlh-1 hylafax-server u rmlh-1 hylafax-server, iaxmodem
- Status promijenjeno iz Novo u Dodijeljeno
- % završeno promijenjeno iz 0 u 50
imao sam i ovaj problem
http://lists.digium.com/pipermail/asterisk-users/2005-October/123861.html
On Tue, 2005-10-25 at 14:29 +0200, asterisk at frameweb.it wrote:
Timestamp: 00003ms SCall: 04700 DCall: 00001 [192.168.1.10:4569]
Unable to pass the full buffer onto the device file. 2015 bytes of 2048
written.Unable to pass the full buffer onto the device file. -1 bytes of 1
written.Oct 25 14:26:11.49: XOFF
-1 indicates error and perror() should be called (or something that
will be more meaningful). That is something that potentially should be
added to iaxmodem in the near future.
Are you running anything that will read /dev/ttyIAX like hylafax?
If there is nothing that can read the device the buffer for that device
will become full and you will see these errors.
You may need to install hylafax now and get that running. The README
that comes with iaxmodem states there is a modem entry for hylafax and
how to integrate that.
testirao sam asterisk/iaxmodem, a nisam podesio hylafax da iščitava iaxmodem
Izmjenjeno od Ernad Husremović prije oko 17 godina
nakon što sam postavio /etc/hylafax/config.ttyIAX sa ifold-a, te restartovao hylafax dobio sam fax u funkciji
root@rmlh-1:~# ps ax | grep fax
12684 ? Ss 0:00 /usr/sbin/faxq 12686 ? Ss 0:00 /usr/sbin/hfaxd -i 4559 12691 ? S 0:00 /usr/sbin/faxgetty ttyIAX 22817 pts/1 R+ 0:00 grep fax
naravno podesio sam fax ekstenziju na asterisku /etc/asterisk/extensions.ael
800 => { Dial(IAX2/iaxfax_1/${EXTEN}); }
Izmjenjeno od Ernad Husremović prije oko 17 godina
fax pišti kad nazovem ext 800 to bi trebalo da je ok
Izmjenjeno od Ernad Husremović prije više od 16 godina
- Status promijenjeno iz Dodijeljeno u Zatvoreno