Моя первоначальная настройка, для проверки работоспособности:
sip.conf
[general]
context=default
allowguest=no
bindport=5060
bindaddr=0.0.0.0
[200] ;xlite phone
type=friend
host=dynamic
username=200
secret=user1_password
nat=no
canreinvite=no
context=office
callerid="User1"<200>
allow=gsm
allow-ulaw
allow=alaw
[201] ;xlite phone
type=friend
host=dynamic
username=201
secret=user2_password
nat=no
canreinvite=no
context=office
callerid="User2"<201>
allow=gsm
allow-ulaw
allow=alaw
[202] ;xlite phone
type=friend
host=dynamic
username=202
secret=user3_password
nat=no
canreinvite=no
context=office
callerid="User3"<202>
allow=gsm
allow-ulaw
allow=alaw
extensions.conf
[general]
static=yes
writeprotect=no
;autofallthrough=no
clearglobalvars=no
[globals]
CONSOLE=Console/dsp
IAXINFO=guest
TRUNK=DAHDI/G2
[office]
exten => 200,1,Macro(stdexten,200,SIP/200)
exten => user1,1,Goto(200|1)
exten => 201,1,Macro(stdexten,201,SIP/201)
exten => user2,1,Goto(201|1)
exten => 202,1,Macro(stdexten,202,SIP/202)
exten => user3,1,Goto(202|1)
include => demo
[macro-stdexten]
exten => s, 1, Dial(${ARG2},20,t,[4])
exten => s, 2, Goto(s-$(DIALSTATUS),1)
exten => s,-NOANSWER, 1, Voicemail(u${ARG1})
exten => s,-NOANSWER, 2, (Goto(default,s,1))
exten => s-BUSY, 1, Voicemail(b,${ARG1})
exten => s-BUSY, 2, (Goto(default,s,1))
exten => s-., 2, Goto(s-NOANSWER)
exten => a, 1, VoiceMailMain(${ARG1})
Подписаться на:
Комментарии к сообщению (Atom)
Комментариев нет:
Отправить комментарий