Откуда: г. Фролово Волгоградской обл.
Сообщений: 85
|
Re: Помогите разобраться
нужны конфиги?вот пример
extensions.conf
[office]
exten = s,1, BackGround(beep)
exten = 200,1, Macro(office,200,SIP/200)
exten = 201,1, Macro(office,201,SIP/201)
exten = 202,1, Macro(office,202,SIP/202)
exten = 203,1, Macro(office,203,SIP/203)
exten = 204,1, Macro(office,204,SIP/204)
exten = 205,1, Macro(office,205,SIP/205)
exten = 206,1, Macro(office,206,SIP/206)
exten = 207,1, Macro(office,207,SIP/207)
exten = 208,1, Macro(office,208,SIP/208)
exten = 209,1, Macro(office,209,SIP/209)
exten = 210,1, Macro(office,210,SIP/210)
[macro-office]
exten => s,1,Monitor(wav,/var/spool/asterisk/monitor/vnu/${STRFTIME(${EPOCH},,%d-%m-%y__%H-%M)}-${ARG1},bm)
exten => s,2,Dial(${ARG2},40,mtT)
exten => s,3,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,BackGround(nedostupen)
exten => s-BUSY,1,BackGround(zanyat)
exten => s-.,BackGround(nedostupen)
exten => s-.,Hungup
exten => s,4,StopMonitor
sip.conf
[201]
type=friend
host=dynamic
username=201
secret=201201
relaxdtmf=yes
dtmfmode=rfc2833
rtptimeout=2
nat=no
context=office
callerid="201" <201>
disallow=all
allow=gsm
allow=ulaw
allow=alaw
|