egame2009-09-19 06:35:16

http://web.wenxuecity.com/BBSView.php?SubID=computer&MsgID=167604

我用的是sipgate号码作为China Call-In的number。 请问req.Header.From.FromURI.User有无标准可循吗?是否都有86开头?

The out-plan looks like

cid = req.Header.From.FromURI.User

#cid="862161416222"

case cid
when /^86/ then
nb = "011"
sys.Callback("1xxxxxxxxxx@sipgate","#{nb}#{cid}@sipgate",15)
sys.Respond(480, "#{sys.Username} Not available")
when /^01186/ then
nb = ""
sys.Callback("1xxxxxxxxxx@sipgate","#{nb}#{cid}@sipgate",15)
sys.Respond(480, "#{sys.Username} Not available")
else
sys.Dial("#{sys.Username}@local",30)
end

我可以 un-comment cid="862161416222" 来成功测试希捷上海有限公司的callback
egame2009-09-19 06:38:17
应为In—Plan
fitwxc2009-09-19 17:32:24
有些公司給你0086-,有些是86,有些86都沒有,所以