On Wed, Aug 6, 2008 at 4:05 PM, <nboumediene at legos.fr>
wrote:>
> Hello,
>
> I would like to configure hylafax(4.4.4) + iaxmodem(1.1.1). I use Asterisk
> and I work on Redhat.
> I installed the two hylafax and iaxmodem.
> My configuration of iaxmodem is: (in the file /etc/iaxmodem/ttyIAX0)
>
> device /dev/ttyIAX0
> owner uucp:uucp
> mode 660
> port 4570 #each line should have it's own port number!
> refresh 300
> server 127.0.0.1
> peername IAXmodem #this is the local extension number in FreePBX (create
it!)
> secret 12345 #password for the extension
> cidname Fax1
> cidnumber ""
> codec ulaw
>
> I added this two lines in /etc/inittab
>
> IA:2345:respawn:/usr/local/bin/iaxmodem ttyIAX0
> mo:2345:respawn:/usr/sbin/faxgetty -D ttyIAX0
>
> Then I tried to configure hylafax whith the command "faxsetup"
>
> I meet a problem when I want to add a modem with the command
"faxaddmodem"
> but I can't, I have this response:
>
> Serial port that modem is connected to []? ttyIAX0
> /dev/ttyIAX0 is not a terminal device.
>
> In fact in /dev I don't find ttyIAX0
>
> I added the line
> " /usr/sbin/faxgetty -D /dev/ttyIAX0 " in the file
> "/etc/rc.d//rc.local"
>
> and I tried the command "faxgetty -D /dev/ttyIAX0"
>
> but nothing!!!
>
> I tried the command "/usr/local/bin/iaxmodem ttyIAX0 "
> I have the following response:
>
> [root at anakin]# /usr/local/bin/iaxmodem ttyIAX0
> [2008-08-05 17:39:27] Modem started
> [2008-08-05 17:39:27] Setting device = '/dev/ttyIAX0'
> [2008-08-05 17:39:27] Setting owner = 'uucp:uucp'
> [2008-08-05 17:39:27] Setting mode = '660'
> [2008-08-05 17:39:27] Setting port = 4570
> [2008-08-05 17:39:27] Setting refresh = 300
> [2008-08-05 17:39:27] Setting server = '127.0.0.1'
> [2008-08-05 17:39:27] Setting peername = 'IAXmodem #this is the local
> extension number in FreePBX (create '
> [2008-08-05 17:39:27] Setting secret = '12345 #password for the
extension'
> [2008-08-05 17:39:27] Setting cidname = 'Fax1'
> [2008-08-05 17:39:27] Setting cidnumber = ''
> [2008-08-05 17:39:27] Setting codec = ulaw
> [2008-08-05 17:39:27] Opened pty, slave device: /dev/pts/17
> [2008-08-05 17:39:27] Removed old /dev/ttyIAX0
> [2008-08-05 17:39:27] Created /dev/ttyIAX0 symbolic link
> [2008-08-05 17:39:27] Registration failed.
>
>
> I don't unerstand why iaxmodem can't register .
> If someone has an idea, he is welcome!!
> Thank you
>
What's your iax.conf? For me modem configuration looks like this:
[iaxmodem5]
type=friend
host=dynamic
secret=xxxxx
context=fax
permit=127.0.0.1
allow=all
P.S. after editing inittab, you also have to execute
# kill -HUP 1
So that init process re-reads configuration.
Regards,
Atis
--
Atis Lezdins,
VoIP Project Manager / Developer,
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835