首先感谢大侠,因为能让父母往美国打电话,是非常有意义的一件事。
我用的是英国的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
dial plan
所有跟帖:
•
来电显示应该有00
-出入自在-
♂
(123 bytes)
()
03/13/2010 postreply
22:43:40
•
注意VoipDiscount有时会不挂断,其它Betamax也可能
-fitwxc-
♂
(0 bytes)
()
03/13/2010 postreply
23:55:08
•
回复:注意VoipDiscount有时会不挂断,其它Betamax也可能
-出入自在-
♂
(183 bytes)
()
03/14/2010 postreply
05:46:19
•
请教fitwxc,如果发生不挂断当时应该怎么办?
-kzch-
♂
(0 bytes)
()
03/16/2010 postreply
07:41:37