See inside

来源: 沙漠荒野 2010-07-12 14:30:27 [] [博客] [旧帖] [给我悄悄话] 本文已被阅读: 次 (656 bytes)
create a new dial plan and set it as 'Out Dial Plan' on your sipsorcery user. Example of dial plan that uses gv for us calls (calls starting with 1), nonoh for china (calls start with 01186)(nonoh is defined as a sip provider on sipsorcery). Watch the console to see the flow of execution and correct errors. HTH,

case req.URI.User
when /^1d{10}$/ then
sys.Log("calling USA #{req.URI.User}");
sys.GoogleVoiceCall(....);

when /^01186d{8,12}/ then
sys.Log("calling international #{req.URI.User}");
sys.Dial("nonoh");
else
sys.Log("unrecognized number #{req.URI.User}");
end

所有跟帖: 

should be - when /^1\d{10}$/ and when /^01186\d{8,12}/ -沙漠荒野- 给 沙漠荒野 发送悄悄话 沙漠荒野 的博客首页 (26 bytes) () 07/12/2010 postreply 14:32:06

Thank you so much, more questions.... 回复:See inside -Rosefit- 给 Rosefit 发送悄悄话 (2217 bytes) () 07/12/2010 postreply 15:27:07

it may be something like this -沙漠荒野- 给 沙漠荒野 发送悄悄话 沙漠荒野 的博客首页 (994 bytes) () 07/12/2010 postreply 19:20:11

Thank you so much, I will try.. 回复:it may be something like thi -Rosefit- 给 Rosefit 发送悄悄话 (265 bytes) () 07/13/2010 postreply 09:05:38

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”