Vlad1983 писал(а):Код: Выделить всё
sip set debug off
sip set debug ip 10.115.200.200
Влад запустил, но проверить никак не могу, при моих звонках никаких упоминаний их сервера нет.
Ниже мой sip.conf и extension.conf
sip.conf
[general]
context=con_in
allowoverlap=no
udpenable=yes
udpbindaddr=192.168.1.2 (IP моего сервера Астериск)
tcpenable=no
tcpbindaddr=0.0.0.0
srvlookup=no
[authentication]
[my-user](!)
type=friend
host=dynamic
dtmfmode=rfc2833
context=office
disallow=all
allow=alaw
allow=ulaw
qualify=yes
secret=1q2w3e
[1601](my-user)
context=rec
[8002](my-user)
pickupgroup=8
callgroup=8
context=con8
[1001](my-user)
pickupgroup=1
callgroup=1
context=con1
[1002](my-user)
pickupgroup=1
callgroup=1
context=con1
[1003](my-user)
pickupgroup=1
callgroup=1
context=con1
[1004](my-user)
pickupgroup=1
callgroup=1
context=con1g
[1005](my-user)
pickupgroup=1
callgroup=1
context=con1
[1006](my-user)
pickupgroup=1
callgroup=1
context=con1
[1007](my-user)
pickupgroup=1
callgroup=1
context=con1g
;---------------------------------------
;----------------------------------------
[tr](!)
type=peer
host=192.168.1.2
fromdomain=192.168.1.2
context=con_in
[as3198899](tr)
defaultuser=as3198899 (Это мои городские номера, которые мы покупаем у провайдера)
port=6080
secret=as3198899
[as3158874](tr)
defaultuser=as3158874
port=6081
secret=as3158874
[as3158873](tr)
defaultuser=as3158873
port=6082
secret=as3158873
[as3158870](tr)
defaultuser=as3158870
port=6083
secret=as3158870
[as3158871](tr)
defaultuser=as3158871
port=6084
secret=as3158871
[as3158872](tr)
defaultuser=as3158872
port=6085
secret=as3158872
[as3198877](tr)
defaultuser=as3198877
port=6086
secret=as3198877
[as3158877](tr)
defaultuser=as3158877
port=6087
secret=as3158877
[as3158876](tr)
defaultuser=as3158876
port=6088
secret=as3158876
[as3158875](tr)
defaultuser=as3158875
port=6089
secret=as3158875[/i]
extension.conf
[general]
static=yes
writeprotect=no
clearglobalvars=no
[globals]
IAXINFO=guest
[con_in]
exten=>3198899,1,Answer()
same=>n,Dial(SIP/8001,60,mTt)
same=>n,HangUp()
exten=>3158877,1,Answer()
same=>n,Dial(SIP/4003,60,mTt)
same=>n,HangUp()
exten=>3158873,1,Answer()
same=>n,Dial(SIP/3002&SIP/3008&SIP/3005&SIP/3007&SIP/3003,60,mTt)
same=>n,HangUp()
exten=>3158870,1,Answer()
same=>n,Dial(SIP/4002,&SIP/4004,60,mTt)
same=>n,HangUp()
exten=>3158871,1,Answer()
same=>n,Dial(SIP/6001&SIP/6002,60,mTt)
same=>n,HangUp()
exten=>3158872,1,Answer()
same=>n,Dial(SIP/3001&SIP/3004&SIP/3009&SIP/3006,60,mTt)
same=>n,HangUp()
exten=>3198877,1,Answer()
same=>n,Dial(SIP/5003,60,mTt)
same=>n,HangUp()
exten=>8001,1,Answer()
same=>n,Dial(SIP/4003,60,mTt)
same=>n,HangUp()
exten=>3158876,1,Answer()
same=>n,Dial(SIP/1002&SIP/1003&SIP/1008,60,mTt)
same=>n,HangUp()
exten=>3158875,1,Answer()
same=>n,Dial(SIP/2002&SIP/2003&SIP/2004&SIP/2005&SIP/2006,60,mTt)
same=>n,HangUp()
exten=>3158874,1,Answer()
same=>n,Dial(SIP/7002,60,mTt)
same=>n,HangUp()
[int_exten]
exten=>_X0XX,1,Answer()
same=>n,Dial(SIP/${EXTEN},60,mTt)
same=>n,HangUp()
[con1]
include => int_exten
exten=>_9[123]X.,1,Dial(SIP/as3158876/${EXTEN:1},60,nTt)
[con1g]
include=>int_exten
exten=>_9x.,1,Dial(SIP/as3158876/${EXTEN:1},60,nTt)
[con2]
include => int_exten
exten=>_9[123]X.,1,Dial(SIP/as3158875/${EXTEN:1},60,nTt)
[con3_1]
include => int_exten
exten=>_9[123]X.,1,Dial(SIP/as3158872/${EXTEN:1},60,nTt)
[con3_2]
include => int_exten
exten=>_9[123]X.,1,Dial(SIP/as3158873/${EXTEN:1},60,nTt)
[con4_1]
include => int_exten
exten=>_9[123]x.,1,Dial(SIP/as3158870/${EXTEN:1},60,nTt)
[con4_2]
include => int_exten
exten=>_9X.,1,Dial(SIP/as3158877/${EXTEN:1},60,nTt)
include=> rec
[con4_3]
include => int_exten
exten=>_9[123]x.,1,Dial(SIP/as3158870/${EXTEN:1},60,nTt)
[con5]
include => int_exten
exten=>_9[123]X.,1,Dial(SIP/as3198877/${EXTEN:1},60,nTt)
[con5_rest]
include => int_exten
exten=>_9[123]X.,1,Dial(SIP/as3198877/${EXTEN:1},60,nTt)
[con6]
include => int_exten
exten=>_9X.,1,Dial(SIP/as3158871/${EXTEN:1},60,nTt)
[con7]
include => int_exten
exten=>_9[123]X.,1,Dial(SIP/as3158874/${EXTEN:1},60,nTt)
[con7_No]
include => int_exten
exten=>_[12345678]x.,1Dial(SIP/8001/${EXTEN},60,nTt)
[con8]
include => int_exten
exten=>_9x.,1,Dial(SIP/as3158877/${EXTEN:1},60,nTt)
[con9]
include => int_exten
exten=>_9X.,1,Dial(SIP/as3198899/${EXTEN:1},60,nTt)