Всем хорошего настроения!
Изучаю астериск. Пытаюсь соединить 2 астериска toronto(192.168.0.111) и osaka(192.168.0.112).
2 сервера регистрируются друг у друга успешно. Звонки не идут. Выкладываю конфиги:
Toronto
Содержимое sip_registrations_custom.conf:
register=>toronto:welcome@192.168.0.112/osaka
Содержимое sip_custom.conf
[2000]
type=friend
host=dynamic
context=phones
[osaka]
type=friend
username=osaka
secret=passwd
context=osaka_incoming
host=dynamic
disallow=all
allow=ulaw
Содержимое extensions_custom.conf:
[phones]
include => internal1
include => remote
[internal1]
exten => _2XXX,1,NoOp()
exten => _2XXX,n,Dial(SIP/${EXTEN},30)
exten => _2XXX,n,Playback(the-party-you-are-calling&is-curntly-unavail)
exten => _2XXX,n,Hangup()
[remote]
exten => _1XXX,1,NoOp()
exten => _1XXX,n,Dial(SIP/osaka/${EXTEN})
exten => _1XXX,n,Hangup()
[osaka_incoming]
include => internal1
Osaka
Содержимое sip_registrations_custom.conf:
register=>osaka:passwd@192.168.0.111/toronto
Содержимое sip_custom.conf:
[1000]
type=friend
host=dynamic
context=phones
[toronto]
type=friend
username=toronto
secret=welcome
context=toronto_incoming
host=dynamic
disallow=all
allow=ulaw
Содержимое extensions_custom.conf:
[default]
[incoming_calls]
[phones]
include => internal1
include => remote
[internal1]
exten => _1XXX,1,NoOp()
exten => _1XXX,n,Dial(SIP/${EXTEN},30)
exten => _1XXX,n,Playback(the-party-you-are-calling&is-curntly-unavail)
exten => _1XXX,n,Hangup()
[remote]
exten => _2XXX,1,NoOp()
exten => _2XXX,n,Dial(SIP/toronto/${EXTEN})
exten => _2XXX,n,Hangup()
[toronto_incoming]
include => internal1
Проверки на регистрацию:
localhost*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
192.168.0.112:5060 N toronto 105 Registered Thu, 08 Jan 2004 23:35:50
1 SIP registrations.
localhost*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
192.168.0.111:5060 N osaka 105 Registered Sat, 03 Nov 2012 15:19:08
1 SIP registrations.
Как видим рагестрация успешна.
При звонке с 2000 на 1000 выдает в консоли это:
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [1000@phones:1] NoOp("SIP/2000-0000000a", "") in new stack
-- Executing [1000@phones:2] Dial("SIP/2000-0000000a", "SIP/osaka/1000") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/osaka/1000
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [1000@phones:3] Hangup("SIP/2000-0000000a", "") in new stack
== Spawn extension (phones, 1000, 3) exited non-zero on 'SIP/2000-0000000a'
не понятно в чем проблема, заранее спасибо за помошь