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”