Инструменты пользователя

Инструменты сайта


unix:asterisk-bh-nat

Небольшая памятка по Asterisk

[general]
externip=94.78.219.34
nat=yes
canreinvite=no
; externip=192.168.44.85
localnet=192.168.44.0/255.255.255.0
context=default                 ; Default context for incoming calls
allowguest=no                   ; Allow or reject guest calls (default is yes)
allowoverlap=no

;;;;;;;;;;;;;;;;;;;;;;;;;
; K phone template
[k-phones](!)
        qualify=yes
        type=friend
;       nat=route
        pedantic=no
        call-limit=3
;       directmedia=nonat
; canreinvite=no
        context=kom
        host=dynamic
        dtmfmode=rfc2833
        disallow=all
        allow=ulaw

;
; Le NAT-phone
;
[4001](k-phones)
        username=4001
        secret=SuperPass
        callerid=Le-4001
;       nat=rport,comedia
;       directmedia=outgoing

;
; Kl
;
[4002](k-phones)
        username=4002
        secret=SuperPass
        callerid=kl-4002
[kom]
include => demo
 
exten => _[4]XXX,1,Dial(SIP/${EXTEN}, 20)
exten => _[4]XXX,n,Hangup
[sunny]
include => demo
 
exten => _[1-3]XXX,1,Dial(SIP/${EXTEN}, 20)
exten => _[1-3]XXX,n,Hangup
unix/asterisk-bh-nat.txt · Последнее изменение: 2024/05/02 13:20 — 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki