1 | изначальная версия редактировать | |
extensions.conf
[pstn-incoming] include => lan-phones
[local-phones] include => lan-phones include => pstn-outbound
[pstn-outbound] exten => _X.,1,Dial(SIP/${EXTEN}@192.168.4.1,120) ; IP address of Cisco gateway exten => _X.,2,Congestion
[lan-phones] ;офис exten => 233301,1,Ringing() exten => 233301,2,Dial(SIP/233301,120) exten => 233301,3,Hangup()
sip.conf
[233301]; Test user context = local-phones type = friend host = dynamic username = 233301 secret = sdf7cv09#1$ ;t38pt_udptl = yes nat = never canreinvite = no callerid = 233301 disallow=all allow = alaw dtmfmode = rfc2833 call-limit = 1 ;deny=0.0.0.0/0 ;permit=172.16.0.0/22 directmedia=no directrtpsetup=no
[192.168.4.1] insecure = port,invite host = 192.168.4.1 ; IP address of Cisco gateway context = pstn-incoming nat = never canreinvite = no directmedia = no type = friend dtmfmode = rfc2833 qualify = yes disallow=all allow = alaw
2 | No.2 Revision редактировать |
extensions.conf
[pstn-incoming] include => lan-phones
[local-phones] include => lan-phones include => pstn-outbound
[pstn-outbound] exten => _X.,1,Dial(SIP/${EXTEN}@192.168.4.1,120) ; IP address of Cisco gateway exten => _X.,2,Congestion
[lan-phones] ;офис exten => 233301,1,Ringing() exten => 233301,2,Dial(SIP/233301,120) exten => 233301,3,Hangup()
sip.conf
[233301]; Test user context = local-phones type = friend host = dynamic username = 233301 secret = sdf7cv09#1$ ;t38pt_udptl = yes nat = never canreinvite = no callerid = 233301 disallow=all allow = alaw dtmfmode = rfc2833 call-limit = 1 ;deny=0.0.0.0/0 ;permit=172.16.0.0/22 directmedia=no directrtpsetup=no
[192.168.4.1] insecure = port,invite host = 192.168.4.1 ; IP address of Cisco gateway context = pstn-incoming nat = never canreinvite = no directmedia = no type = friend dtmfmode = rfc2833 qualify = yes disallow=all allow = alaw
3 | No.3 Revision редактировать |
extensions.conf
extensions.conf
[pstn-incoming]
include => lan-phones
[local-phones]
include => lan-phones
include => pstn-outbound
[pstn-outbound]
exten => _X.,1,Dial(SIP/${EXTEN}@192.168.4.1,120) ; IP address of Cisco gateway
exten => _X.,2,Congestion
[lan-phones]
;офис
exten => 233301,1,Ringing()
exten => 233301,2,Dial(SIP/233301,120)
exten => 233301,3,Hangup()
sip.conf
[233301]; Test user
context = local-phones
type = friend
host = dynamic
username = 233301
secret = sdf7cv09#1$
;t38pt_udptl = yes
nat = never
canreinvite = no
callerid = 233301
disallow=all
allow = alaw
dtmfmode = rfc2833
call-limit = 1
;deny=0.0.0.0/0
;permit=172.16.0.0/22
directmedia=no
directrtpsetup=no
[192.168.4.1]
insecure = port,invite
host = 192.168.4.1 ; IP address of Cisco gateway
context = pstn-incoming
nat = never
canreinvite = no
directmedia = no
type = friend
dtmfmode = rfc2833
qualify = yes
disallow=all
allow = alaw
4 | No.4 Revision редактировать |
extensions.conf
[pstn-incoming]
include => lan-phones
[local-phones]
include => lan-phones
include => pstn-outbound
[pstn-outbound]
exten => _X.,1,Dial(SIP/${EXTEN}@192.168.4.1,120) ; IP address of Cisco gateway
exten => _X.,2,Congestion
[lan-phones]
;офис
exten => 233301,1,Ringing()
exten => 233301,2,Dial(SIP/233301,120)
exten => 233301,3,Hangup()
sip.conf
[233301]; Test user
context = local-phones
type = friend
host = dynamic
username = 233301
secret = sdf7cv09#1$
s09#1$
;t38pt_udptl = yes
nat = never
canreinvite = no
callerid = 233301
disallow=all
allow = alaw
dtmfmode = rfc2833
call-limit = 1
;deny=0.0.0.0/0
;permit=172.16.0.0/22
directmedia=no
directrtpsetup=no
[192.168.4.1]
insecure = port,invite
host = 192.168.4.1 ; IP address of Cisco gateway
context = pstn-incoming
nat = never
canreinvite = no
directmedia = no
type = friend
dtmfmode = rfc2833
qualify = yes
disallow=all
allow = alaw
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.