唉,哪是什麽大俠啊

來源: 沙漠荒野 2010-07-16 20:28:51 [] [博客] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (1354 bytes)
This is my out dial plan. Much more simple than yours.

case req.URI.User
when /^911$/ then
sys.GoogleVoiceCall("myid@gmail.com","mypassword","mygizmonumber","mycellphone", ".*", 7, 20)

when /^1\d{10}$/ then
sys.Log("calling USA #{req.URI.User}");
sys.GoogleVoiceCall("myid@gmail.com","mypassword","mygizmonumber","#{req.URI.User}",".*",7, 15);


when /^[2-9]\d{2}[2-9]\d{6}$/ then
sys.Log("calling US 1#{req.URI.User}");
#gizmo number used as forwarding number under google account, and register here on sipsorcery

sys.GoogleVoiceCall("myid@gmail.com","mypassword","mygizmonumber","#{req.URI.User}",".*",7, 15);

else
sys.Log("calling international #{req.URI.User}");
sys.Dial("nonoh");

end

I spent a lot of time trying to setup and understand the dial plan. The key is that the callback number (mygizmo number here) needs to be setup on GV as a forwarding phone. If you are not using gizmo, than change the phone type value from 7 to 1. nonoh is a provider you define in Sip Providers page.

Use the console page to monitor the execution of your plan. You should at least see the system executes the outbound dial plan before trying to work on the detail logics.

所有跟帖: 

lost the backslashes again... :( -沙漠荒野- 給 沙漠荒野 發送悄悄話 沙漠荒野 的博客首頁 (54 bytes) () 07/16/2010 postreply 20:36:06

Sipsorcery 的服務質量如何? -chat092- 給 chat092 發送悄悄話 (0 bytes) () 07/17/2010 postreply 04:51:49

基本穩定,近幾個月都沒出過問題 -沙漠荒野- 給 沙漠荒野 發送悄悄話 沙漠荒野 的博客首頁 (24 bytes) () 07/17/2010 postreply 07:56:47

Thank You so much! Really appreciated for your sharing....回複:唉,哪 -Rosefit- 給 Rosefit 發送悄悄話 (0 bytes) () 07/17/2010 postreply 09:30:00

NONOH ? -SteveSteve- 給 SteveSteve 發送悄悄話 (174 bytes) () 07/21/2010 postreply 05:36:44

請您先登陸,再發跟帖!

發現Adblock插件

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

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

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

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