my dial plan

來源: KKKU 2009-10-13 08:32:02 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (1049 bytes)
#Ruby - Default (works)
# Dial Plan Generated by Rubyzard v0.1
# If you need help, please post in our forum
# http://www.mysipswitch.com

# SIP tracing : true or false
sys.Trace = false
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")

if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable()
sys.Dial("#{sys.Username}@local",30)
#sys.Respond(480, "#{sys.Username} Not available")
else
sys.Respond(480, "#{sys.Username} Not available")
end

else
# Do your OUTGOING call processing customisations here.
GV_email = "xxxx@yahoo.com"
GV_pwd = "xxxx"
GV_nbr = "xxxxx"
SIPnum = "1747xxxx"
ac = "xxx" # area code

case req.URI.User
when /^[1]?(50001|9000)$/ then sys.Dial("#{GV_nbr}@Future-Nine") # GV Voicemail
when /^[1]?(976|900|809)\d{7}$/
sys.Log("Calls to #{req.URI.User} not allowed")

所有跟帖: 

謝謝貼出你的dial plan,盡管看不太懂 -smhsmh- 給 smhsmh 發送悄悄話 (0 bytes) () 10/13/2009 postreply 08:44:00

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”