[asterisk-users] problem with iaxmodem!

Nadjia Boumédiène nboumediene at legos.fr
Wed Aug 6 10:24:04 CDT 2008


My iax.conf looks like this:

[iaxmodem]
type=friend
host=127.0.0.1
secret=xxxxx
context=fax-out
permit=127.0.0.1
disallow=all
allow=ulaw

after editing inittab I reload it by running: "/sbin/init q"

I also reboot the system with "shutdown -r now" and I had the following
message:
"init: Id "mo" respawning too fast: disabled for 5 minutes".

I don't know what it signifies! 

Regards,

Nadjia Boumediene, 
Legos
nboumediene at legos.fr
Work phone:+ 33172292995


-----Message d'origine-----
De : asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] De la part de Atis Lezdins
Envoyé : mercredi 6 août 2008 15:46
À : Asterisk Users Mailing List - Non-Commercial Discussion
Objet : Re: [asterisk-users] problem with iaxmodem!

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

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list