dial plan

來源: 出入自在 2010-03-13 22:29:48 [] [博客] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (969 bytes)
首先感謝大俠,因為能讓父母往美國打電話,是非常有意義的一件事。

我用的是英國的sipgate號碼,因為我沒有申請到美國的sipgate號碼。用美國的DID應該更好,因為用英國的前麵要撥0044,讓電話號碼顯得很長。 我在sipsorcery的trace裏麵查了,下麵dial plan中打印出的號碼沒有00但有86,是這樣:86xx...x。下麵的dial plan是在sipsorcery的subaccount裏麵設置的,個別語句和main account裏的不一樣:

# Ruby
sys.Trace = true
if sys.In then
sys.Log("hello world")

case req.Header.From.FromURI.User
when /^00/
callercid="#{req.Header.From.FromURI.User.to_str[2..-1]}"
sys.Log("cid #{callercid}")
else
callercid = req.Header.From.FromURI.User
end

sys.Log("cid #{callercid}")


case callercid
when /^86/ then nb = "011"
when /^01186/ then nb = ""
else
nb = "01186"
end

sys.Log("cid #{callercid}")

sys.Callback("#{nb}#{callercid}@nonoh","389xxxxx@abcdevoip.getmyip.com:5060",15)

end

所有跟帖: 

來電顯示應該有00 -出入自在- 給 出入自在 發送悄悄話 出入自在 的博客首頁 (123 bytes) () 03/13/2010 postreply 22:43:40

注意VoipDiscount有時會不掛斷,其它Betamax也可能 -fitwxc- 給 fitwxc 發送悄悄話 fitwxc 的博客首頁 (0 bytes) () 03/13/2010 postreply 23:55:08

回複:注意VoipDiscount有時會不掛斷,其它Betamax也可能 -出入自在- 給 出入自在 發送悄悄話 出入自在 的博客首頁 (183 bytes) () 03/14/2010 postreply 05:46:19

請教fitwxc,如果發生不掛斷當時應該怎麽辦? -kzch- 給 kzch 發送悄悄話 kzch 的博客首頁 (0 bytes) () 03/16/2010 postreply 07:41:37

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”