Сервер 192.168.15.18
iax.conf
[ass]
type=user
auth=md5
secret=ass
context=default
[asterisk16]
type=peer
host=192.168.15.16
auth=md5
secret=ass
username=username
extensions.conf
[default]
exten => _7XX,1,SetMusicOnHold(default)
exten => _7XX,2,Wait(2)
exten => _7XX,3,Playback(hello_world)
exten => _7XX,4,Answer
exten => _7XX,5,Dial(SIP/${EXTEN})
exten => _8XX,1,Dial(IAX2/myserver:ass@192.168.15.16/${EXTEN:1},30,r)
exten => _7XX,6,MusicOnHold()
exten => _7XX,n,Hangup
-------------------------------------------------------------------------------
Сервер 192.168.15.16
iax.conf
[ass]
type=user
auth=md5
secret=ass
context=default
[asterisk16]
type=peer
host=192.168.15.18
auth=md5
secret=ass
username=username
extensions.conf
[default]
exten => _7XX,1,SetMusicOnHold(default)
exten => _7XX,2,Wait(2)
exten => _7XX,3,Playback(hello_world)
exten => _7XX,4,Answer
exten => _7XX,5,Dial(SIP/${EXTEN})
exten => _8XX,1,Dial(IAX2/myserver:ass@192.168.15.18/${EXTEN:1},30,r)
exten => _7XX,6,MusicOnHold()
exten => _7XX,n,Hangup
-------------------------------------------------------------------------------
запускаю астериск
далее смотрю логи
# asterisk -rvvvvvvvvvvvvvv
Asterisk 1.6.2.16.1, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': == Found
== Parsing '/etc/asterisk/extconfig.conf': == Found
Connected to Asterisk 1.6.2.16.1 currently running on asterisk (pid = 7675)
Verbosity is at least 14
== Using SIP RTP CoS mark 5
-- Executing [775@default:1] Dial("SIP/877-00000002", "IAX2/myserver:ass@192.168.15.18/75,30,r") in new stack
-- Called myserver:ass@192.168.15.18/75
[Jun 1 03:26:13] WARNING[7693]: chan_iax2.c:10331 socket_process: Call rejected by 192.168.15.18: No authority found
-- Hungup 'IAX2/asterisk18-1746'
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'SIP/877-00000002' status is 'CHANUNAVAIL'
Получается, что не проходит авторизация. Подскажите где не прав?