[globals]
CONSOLE=Console/dsp
MYPHONEN => 050xxxxxxxx ;IP電話サービスの電話番号
AREACODE => 03 ;市外局番
[myprovider-in]
exten => ${MYPHONEN},1,Dial(SIP/2000&SIP/2001,30) ;2000/2001番同時呼出
exten => ${MYPHONEN},2,Answer()
exten => ${MYPHONEN},3,Wait(1)
exten => ${MYPHONEN},4,Voicemail(2000)
exten => ${MYPHONEN},5,Hangup()
exten => ${MYPHONEN},102,Answer()
exten => ${MYPHONEN},103,Wait(1)
exten => ${MYPHONEN},104,Voicemail(2000)
exten => ${MYPHONEN},105,Hangup()
[default]
;Outside line
;最後の"myprovider-out"は、sip.confで指定したコンテキストを指定。
;ここの例では、"asahi-net"または"nifty"
exten => _0N.,1,Dial(SIP/${AREACODE}${EXTEN:1}@myprovider-out) ;市内発信用
exten => _0N.,2,Congestion
exten => _0N.,102,Busy
exten => _00.,1,Dial(SIP/${EXTEN:1}@myprovider-out) ;市外や携帯発信用
exten => _00.,2,Congestion
exten => _00.,102,Busy
;extentions data
exten => _200X,1,Dial(SIP/${EXTEN},30)
exten => _200X,2,Voicemail(${EXTEN})
exten => _200X,3,Hangup()
exten => _200X,102,Voicemail(${EXTEN})
exten => _200X,103,Hangup()
[internal]
;extentions data
exten => _200X,1,Dial(SIP/${EXTEN},30)
exten => _200X,2,Voicemail(${EXTEN})
exten => _200X,3,Hangup()
exten => _200X,102,Voicemail(${EXTEN})
exten => _200X,103,Hangup()
|