Код: Выделить всё
[root@meetme asterisk]# uname -a
Linux meetme.local 2.6.18-238.12.1.el5 #1 SMP Tue May 31 13:23:01 EDT 2011 i686 i686 i386 GNU/Linux
Код: Выделить всё
meetme*CLI> core show version
Asterisk 1.6.2.18 built by root @ meetme.ru on a i686 running Linux on 2011-06-12 20:40:34 UTC
Код: Выделить всё
[root@meetme asterisk]# cat iax.conf
[general]
bindport=4569
bindaddr=0.0.0.0
language=ru
bandwidth=low
disallow=all
allow=gsm
allow=alaw
allow=ulaw
jitterbuffer=no
forcejitterbuffer=no
autokill=yes
calltokenoptional = 0.0.0.0/0.0.0.0
maxcallnumbers = 16382
[iaxmodem0]
type=friend
username=iaxmodem0
context=default
secret=12345
host=dynamic
qualify=yes
disallow=all
allow=alaw
trunk=no
requirecalltoken=no
Код: Выделить всё
[root@meetme asterisk]# cat /etc/iaxmodem/ttyIAX0
device /dev/ttyIAX0
owner uucp:uucp
mode 660
port 4570
refresh 300
server 127.0.0.1
peername iaxmodem0
secret 12345
cidname Fax1
cidnumber 78123216111
codec alaw
/usr/local/sbin/iaxmodem ttyIAX0
вываливается вот это:
Код: Выделить всё
[root@meetme asterisk]# /usr/local/sbin/iaxmodem ttyIAX0
[2011-06-17 12:21:54] Modem started
[2011-06-17 12:21:54] Setting device = '/dev/ttyIAX0'
[2011-06-17 12:21:54] Setting owner = 'uucp:uucp'
[2011-06-17 12:21:54] Setting mode = '660'
[2011-06-17 12:21:54] Setting port = 4570
[2011-06-17 12:21:54] Setting refresh = 300
[2011-06-17 12:21:54] Setting server = '127.0.0.1'
[2011-06-17 12:21:54] Setting peername = 'iaxmodem0'
[2011-06-17 12:21:54] Setting secret = '12345'
[2011-06-17 12:21:54] Setting cidname = 'Fax1'
[2011-06-17 12:21:54] Setting cidnumber = '78123216111'
[2011-06-17 12:21:54] Setting codec = alaw
[2011-06-17 12:21:54] Opened pty, slave device: /dev/pts/3
[2011-06-17 12:21:54] Created /dev/ttyIAX0 symbolic link
Ignoring unknown information element 'Unknown IE' (54) of length 0
[2011-06-17 12:21:54] Registration completed successfully.
Код: Выделить всё
-- Registered IAX2 'iaxmodem0' (AUTHENTICATED) at 127.0.0.1:40965
[Jun 17 12:23:28] NOTICE[4530]: chan_iax2.c:8470 update_registry: Restricting registration for peer 'iaxmodem0' to 60 seconds (requested 300)
Код: Выделить всё
CLI> iax2 show registry
Host dnsmgr Username Perceived Refresh State
0 IAX2 registrations.