[AsteriskBrasil] iaxmodem não registra

sardiscormac em gmail.com sardiscormac em gmail.com
Sexta Julho 25 17:35:14 BRT 2008


Eduardo a minha configuração do iax do asterisk está assim

[FaxDSP0]

type=friend
username=FaxDSP0
secret=FaxDSP0
host=127.0.0.1
port=4570
disallow=all
allow=ulaw
qualify=yes

E do iaxmodem:
/etc/iaxmodem/ttyIAX0
device /dev/ttyIAX0
owner uucp:uucp
mode 660
port 4570
refresh 60
server 66.1.1.1  * quando eu coloquei 127.0.0.1 Não funcionou*
peername FaxDSP0
secret FaxDSP0
cidname Eproject systems
cidnumber 6789540670
codec ulaw

meu log do iaxmodem:
[2008-07-25 17:42:07] Modem started
[2008-07-25 17:42:07] Setting device = '/dev/ttyIAX0'
[2008-07-25 17:42:07] Setting owner = 'uucp:uucp'
[2008-07-25 17:42:07] Setting mode = '660'
[2008-07-25 17:42:07] Setting port = 4570
[2008-07-25 17:42:07] Setting refresh = 60
[2008-07-25 17:42:07] Setting server = '66.1.1.1'
[2008-07-25 17:42:07] Setting peername = 'FaxDSP0'
[2008-07-25 17:42:07] Setting secret = 'FaxDSP0'
[2008-07-25 17:42:07] Setting cidname = 'Eproject systems'
[2008-07-25 17:42:07] Setting cidnumber = '6789540670'
[2008-07-25 17:42:07] Setting codec = ulaw
[2008-07-25 17:42:07] Opened pty, slave device: /dev/pts/4
[2008-07-25 17:42:07] Created /dev/ttyIAX0 symbolic link
[2008-07-25 17:42:22] Hanging Up

log do asterisk:
duke*CLI> [Jul 25 17:42:06] NOTICE[32442]: chan_iax2.c:8807 
__iax2_poke_noanswer: Peer 'FaxDSP0' is now UNREACHABLE! Time: 2
duke*CLI> [Jul 25 17:42:16] NOTICE[32439]: chan_iax2.c:7891 
socket_process: Peer 'FaxDSP0' is now REACHABLE! Time: 3

Você instalou a biblioteca do spandsp e que veio no pacote do iaxmodem? 
Ou colocou uma mais atualizada? Aqui está funcionando só não consegui 
testar a parte do fax ainda.

Eduardo Assis - Pro Redes escreveu:
> Tenho instalado o iaxmodem e o mesmo não se conecta:
>
> root em asterisk:/etc/asterisk# cat /etc/iaxmodem/ttyIAX0
> device          /dev/ttyIAX0
> owner           uucp:uucp
> mode            660
> port            4570
> refresh         300
> server          127.0.0.1
> peername        iaxmodem
> secret          iaxmodem
> cidname         ProRedes
> cidnumber       1934067524
> codec           ulaw
>
> root em asterisk:/etc/asterisk# cat iax.conf
> [general]
> bindport = 4569
> bindaddr = 0.0.0.0
>
> [iaxmodem]
> username=iaxmodem
> type=friend
> secret=iaxmodem
> host=dynamic
> auth=md5
> context=default
> disallow=all
> allow=ulaw,alaw
>
> E estou iniciando o iaxmodem:
> /usr/sbin/iaxmodem ttyIAX0 &
>
>
> Não está dando erro quando inicio:
>
> root em asterisk:/etc/asterisk# /usr/sbin/iaxmodem ttyIAX0 &
> [2008-07-25 17:34:22] Modem started
> [2008-07-25 17:34:22] Setting device = '/dev/ttyIAX0'
> [2008-07-25 17:34:22] Setting owner = 'uucp:uucp'
> [2008-07-25 17:34:22] Setting mode = '660'
> [2008-07-25 17:34:22] Setting port = 4570
> [2008-07-25 17:34:22] Setting refresh = 300
> [2008-07-25 17:34:22] Setting server = '127.0.0.1'
> [2008-07-25 17:34:22] Setting peername = 'iaxmodem'
> [2008-07-25 17:34:22] Setting secret = 'iaxmodem'
> [2008-07-25 17:34:22] Setting cidname = 'ProRedes'
> [2008-07-25 17:34:22] Setting cidnumber = '1934067524'
> [2008-07-25 17:34:22] Setting codec = ulaw
> [2008-07-25 17:34:22] Opened pty, slave device: /dev/pts/2
> [2008-07-25 17:34:22] Removed old /dev/ttyIAX0
> [2008-07-25 17:34:22] Created /dev/ttyIAX0 symbolic link
> [1] 3049
> root em asterisk:/etc/asterisk#
>
>
> Poren ele não registra no meu Asterisk:
> asterisk*CLI> iax2 show peers
> Name/Username    Host                 Mask             Port          Status
> iaxmodem  (Unspecified)   (D)  255.255.255.255  0             UNKNOWN
>
> Abraços.
>
> =
>
>
>   



More information about the AsteriskBrasil mailing list