唉,哪是什么大侠啊

来源: 沙漠荒野 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”