[general]
context=default
allowguest=no
bindport=5060
bindaddr=0.0.0.0
; -
register => kazan:kazan_password@volgograd.asterisk.ru:5060
[volgograd]
;
username=volgograd
secret=volgograd_password
;
type=friend
; INVITE
canreinvite=no
; .
insecure=very
;
qualify=yes
;
; (www.voip-info.org): If you want the phone to register itself, use the keyword dynamic instead of Host IP.
; deny,permit
host=dynamic
;DTMF
dtmfmode=rfc2833
;
disallow=all
allow=alaw
allow=ulaw
;
context=office_rules
;
[office]
exten => _934.,1,Set(CALLERID(all)="Kazan <16>")
exten => _934.,n,Dial(SIP/${EXTEN:3}@volgograd,60,r)
exten => _934.,n,HangUp
..
include => office_rules
;
; 1XX 2XX
[office_rules]
exten => _[12]XX,1,Dial(SIP/${EXTEN},60,tTr)
exten => _[12]XX,n,HangUp()
[general]
context=default
allowguest=no
bindport=5060
bindaddr=0.0.0.0
; -
register => volgograd:volgograd_password@kazan.asterisk.ru:5060
[kazan]
type=friend
; credentials for registration
username=kazan
secret=kazan_password
;
; (www.voip-info.org): If you want the phone to register itself, use the keyword dynamic instead of Host IP.
; deny,permit
host=dynamic
; INVITE
canreinvite=no
; .
insecure=very
;
qualify=yes
; DTMF
dtmfmode=rfc2833
; ( G711)
disallow=all
allow=ulaw
allow=alaw
;
context=office_rules
;
[office]
exten => _916.,1,Set(CALLERID(all)="Volgograd <34>")
exten => _916.,n,Dial(SIP/${EXTEN:3}@kazan,60,r)
exten => _916.,n,HangUp
..
include => office_rules
;
; 1XX 2XX
[office_rules]
exten => _[12]XX,1,Dial(SIP/${EXTEN},60,tTr)
exten => _[12]XX,n,HangUp()
context=office_rules
Source: https://habr.com/ru/post/107668/
All Articles