fitwxc 大师,再问req.Header.From.FromURI.User的问题

来源: egame 2009-09-18 22:35:16 [] [旧帖] [给我悄悄话] 本文已被阅读: 次 (782 bytes)

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

所有跟帖: 

应为In—Plan -egame- 给 egame 发送悄悄话 (0 bytes) () 09/18/2009 postreply 22:38:17

有些公司給你0086-,有些是86,有些86都沒有,所以 -fitwxc- 给 fitwxc 发送悄悄话 (180 bytes) () 09/19/2009 postreply 09:32:24

请您先登陆,再发跟帖!

发现Adblock插件

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

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

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

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