請教rmc3361一個問題

我試了您介紹用Sipsorcery+ipkall+GV+voipdiscount的方法,其他都沒有問題,隻是不知用什麽GV call back number,我用了我家裏的電話號碼,結果每次家裏的電話響了並接通後才能再接通想要撥打的號碼,如果家裏的電話沒有人接,根本就打不出去。30秒後說無人接聽。

不知是什麽地方的設定出了問題?

下麵是我借用您的Dial Plan. 謝謝。

sys.Log("Log message from default dialplan.")
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")

AREA_code = "206" # your area code for 7 digits dialling
GV_name = "myemail" # google voice account name
GV_pass = "mypassword" # google voice account password
GV_callback = "homephonenumber" # google voice call back number
SIP_provider = "default" # SIP provider name for international calling

num = req.URI.User.to_s

# re-format telephone number ###

num = num.sub(/^011/,'+') # 011 86 xxx to +86 xxx
num = num.sub(/^00/, '+') # 001 206 xxx to +1 206 xxx

case num
when /^[2-9]d{6}$/ # 7 digits number, add area code
num = "+1" + AREA_code + num
when /^[1]d{10}$/ # 1 206 555 1212, add +
num = "+" + num
when /^d{10}$/ # 206 555 1212, add +1
num = "+1" + num
end

# end of re-format ###

sys.Log ("Final Dial Number = " + num)

case num
# Use Voipdiscount for non US/Canadian numbers
when /^\+[^1]/,/^\+1684/,/^\+1264/,/^\+1268/,/^\+1242/,
/^\+1246/,/^\+1441/,/^\+1284/,/^\+1345/,/^\+1767/,
/^\+1809/,/^\+1473/,/^\+1671/,/^\+1876/,/^\+1664/,
/^\+1670/,/^\+1869/,/^\+1758/,/^\+1599/,/^\+1784/,
/^\+1868/,/^\+1649/,/^\+1340/
sys.Dial(num + "@" + SIP_provider)
else
sys.GoogleVoiceCall(GV_name,GV_pass,GV_callback, num, ".*",1,30)
end

所有跟帖: 

對不起,是請教mc3361 -中蝦- 給 中蝦 發送悄悄話 (0 bytes) () 08/21/2011 postreply 14:23:46

GV回撥要用ipkall的號碼,因為sipsorcery在等待回撥,你用家裏的號碼不靈 -mc3361- 給 mc3361 發送悄悄話 (42 bytes) () 08/21/2011 postreply 18:30:30

ipkall設置成轉接到sipsorcery -mc3361- 給 mc3361 發送悄悄話 (0 bytes) () 08/21/2011 postreply 18:34:12

謝謝你mc3361,設置成功,測試成功。 -中蝦- 給 中蝦 發送悄悄話 (0 bytes) () 08/21/2011 postreply 23:01:33

請您先登陸,再發跟帖!