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- ♂ (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- ♀ (0 bytes) () 07/17/2010 postreply 09:30:00
• NONOH ? -SteveSteve- ♂ (174 bytes) () 07/21/2010 postreply 05:36:44