Re: Два астериска, звонок в одну сторону
mag, iax.conf
[center]; удаленный сервак
username=mag
type=friend
trunk=yes
secret=Busj68
qualify=yes
peercontext=fromiax
host=192.168.1.245
context=fromiax
center, iax.conf
[mag];центральный сервак
type=friend
username=center
secret=Busj68
host=192.168.16.245
context=fromiax
peercontext=fromiax
qualify=yes
trunk=yes
[routes-to-filials]
;филиалы по IAX
exten => _54XX,1,Dial(IAX2/okt/${EXTEN},60)
exten => _54XX,2,hangup()
exten => _25XX,1,Dial(IAX2/slv/${EXTEN},60)
exten => _25XX,2,hangup()
exten => _21XX,1,Dial(IAX2/nfk/${EXTEN},60)
exten => _21XX,2,hangup()
exten => _22XX,1,Dial(IAX2/mag/${EXTEN},60)
exten => _22XX,2,hangup()
exten => _23XX,1,Dial(IAX2/str/${EXTEN},60)
exten => _23XX,2,hangup()
[fromiax]
;последовательность маршрутов имеет значение
include => routes-to-filials
include => routes-local
include => routes-services
include => routes-to-ldk
include => route-filials-to-mobile
include => route-filials-to-long-distance
типа такого попробуй
|