2010年4月5日 星期一

利用電話透過Asterisk 開家裡電鎖

利用電話撥到家中電話透過Asterisk,若CallerID 符合自己設定的Call Filter List時,則由Analog Port 3接電鎖中繼器送出"#"給中繼器後,將啟動電鎖開關,來開啟大門,經測試以此方式門口機不會咬線.




[call-filter-custom-0]
fullname = unlock
exten = s,1,Goto(CallFilter-${CDR(src)}|1)
exten = CallFilter-0912000000,1,Goto(voicemenu-custom-5|s|1)
exten = CallFilter-0912000001,1,Goto(voicemenu-custom-5|s|1)
exten = i,1,Goto(voicemenu-custom-6|s|1)

[voicemenu-custom-5]

comment = unlock
exten = s,1,dial(zap/3/ww#,60,G(hangdoorphone,hangupcall,1))

[hangdoorphone]
exten = hangupcall,1,wait(30)
exten = hangupcall,n,hangup

沒有留言:

張貼留言

How to repair and clone disk with ddrescue

  ddrescue  is a tool that can be used to repair and clone disks on a  Linux system . This includes hard drives, partitions, DVD discs, flas...