|
楼主 |
发表于 2016-10-18 20:21
|
显示全部楼层
本帖最后由 stevemorrislian 于 2016-10-19 20:18 编辑
当前的几个文件
sip.conf
[general]
context=default-incoming-call-context
;register => 2015:truestar@10.33.1.2
register => AST218:hsR906@172.16.203.218
allowoverlaa=yes
allowtransfer=yes
realm=asterisk
bindaddr=0.0.0.0
srvlookup=yes
maxexpiry=600
minexpiry=60
defaultexpiry=300
qualifyfreq=55
disallow=all
allow=ulaw
allow=alaw
dtmfmode = inband
alwaysauthreject = yes
t1min=100
timert1=500
timerb=16000
rtptimeout=600
rtpkeepalive=30
useragent=PBX
localnet=192.168.0.0/16
localnet=10.0.0.0/8
localnet=172.16.0.0/12
nat=yes
directmedia=no
sipdebug=no
registertimeout=20
registerattempts=10
#include sip_registrations.conf
[authentication]
#include sip_peers.conf
#include sip_users.conf
sip_users.conf
[201]
type=friend
host=dynamic
secret=201
context=local
dtmfmode=rfc2833
[202]
type=friend
host=dynamic
secret=202
context=local
dtmfmode=rfc2833
[203]
type=friend
host=dynamic
secret=203
context=local
dtmfmode=rfc2833
[204]
type=friend
host=dynamic
secret=204
context=local
dtmfmode=rfc2833
[ast3]
type=friend
secret=pwg1101
host=dynamic
username=ast3
disallow=all
allow=ulaw
allow=alaw
context=local
sip_peers.conf
[AST218]
type=friend
username=AST218
secret=hsR906
host=172.16.203.218
fromuser=AST218
context=local
dtmfmode=rfc2833
insecure=very
disallow=all
allow=ulaw
allow=alaw
extensions.conf
[general]
static = yes
writeprotect = yes
clearglobalvars = no
[globals]
RINGTIME => 30
[default]
[context-user-hangup-call-context]
exten => s,1,Hangup()
exten => _X.,1,Hangup()
[context-catch-all]
exten => _[!-~].,1,Dial(SIP/${EXTEN},60,r)
#include extensions_default.conf
#include extensions_voicemail.conf
#include extensions_incoming.conf
#include extensions_incoming_gtalk.conf
#include extensions_blacklist.conf
#include extensions_callthrough.conf
#include extensions_user.conf
extensions_user.conf
[local]
;exten => _9XXXX.,1,Set(CALLERID(num)=31332015)
exten => _9XXXX.,1,Dial(SIP/AST218/${EXTEN:1},60)
exten => _1XX,1,Dial(sip/AST218/${EXTEN},40)
exten => 201,1,Dial(sip/201)
exten => 202,1,Dial(sip/202)
exten => 203,1,Dial(sip/203)
exten => 204,1,Dial(sip/204) |
|