Код: Выделить всё
[general]
context=default
allowoverlap=no
bindport=5060
videosupport=yes
canreinvite=yes
promiscredir=yes
bindaddr=0.0.0.0
;
[SERVER](!)
type=friend
qualify=no
insecure=invite,port
context=office
disallow=all
allow=alaw
allow=ulaw
allow=g729
;
[sets](!)
type=friend
qualify=yes
insecure=invite,port
context=office
disallow=all
allow=alaw
allow=ulaw
allow=g729
;
[CLIENT_QNX](!)
type=friend
host=dynamic
qualify=no
canreinvite=no
context=office
videosupport=yes
allow=alaw
allow=ulaw
allow=g729
;
[11111](SERVER)
secret=*******
host=10.1.146.18
;
[11800](SERVER)
secret=*******
host=10.160.17.18
привел всего пару серверов их много
extensions.conf
[general]
static=yes
writeprotect=no
clearglobalvars=no
[globals]
CONSOLE=Console/dsp
IAXINFO=quest
TRUNK=Zap/g2
TRUNKMSD=1
;
[default]
;
exten=> _XXXXXX,1,Goto(office,${EXTEN},1)
exten=> _XXXXXXXXX,1,Goto(office,${EXTEN},1)
;
[office]
;
exten=> 119,1,Dial(SIP/736${EXTEN},30,t)
;
exten=> 736119,1,Dial(SIP/736${EXTEN},30,t)
;
exten=> 119119,1,Dial(SIP/736${EXTEN:3},30,t)
;
exten=> _11728X119,1,Dial(SIP/736${EXTEN:6},30,t)
;
exten=> _XXX,1,Dial(DAHDI/g1/736${EXTEN},30,t)
;
exten=> _736XXX,1,Dial(DAHDI/g1/736${EXTEN},30,t)
;
exten=> _11728XXXX,1,Dial(DAHDI/g1/736${EXTEN:6},30,t)
;
exten=> _11111XXXX,1,Set(CALLERID(num)=11728${CALLERID(num):3})
exten=> _11111XXXX,n,Dial(SIP/11111/${EXTEN},30,t)
exten=> _11111XXXX,n,Dial(DAHDI/g1/${EXTEN},30,t)
;
exten=> _811111XXXX,1,Set(CALLERID(num)=11728${CALLERID(num):3})
exten=> _811111XXXX,n,Dial(SIP/11111/${EXTEN},30,t)
exten=> _811111XXXX,n,Dial(DAHDI/g1/${EXTEN},30,t)
;
exten=> _11800XXXX,1,Set(CALLERID(num)=11728${CALLERID(num):3})
exten=> _11800XXXX,n,Dial(SIP/11800/${EXTEN},30,t)
exten=> _11800XXXX,n,Dial(DAHDI/g1/${EXTEN},30,t)
;
exten=> _811800XXXX,1,Set(CALLERID(num)=11728${CALLERID(num):3})
exten=> _811800XXXX,n,Dial(SIP/11800/${EXTEN},30,t)
exten=> _811800XXXX,n,Dial(DAHDI/g1/${EXTEN},30,t)