使用以下的拨号计划,可以实现转移呼叫,但是收到的号码是MySIP的号码。我希望得到实际拨叫者的号码。以前发过帖子问过这个问题,被告知可以搜索到以前的帖子解决这个问题。可是我怎么搜也没有搜到。
#Ruby
# Dial Plan Generated by Rubyzard v0.1
# If you need help, please post in our forum
# http://www.mysipswitch.com
# SIP tracing : true or false
sys.Trace = false
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")
if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable() then
sys.Dial("#{sys.Username}@local",30)
sys.Dial("MyNumber@MySIP",30)
sys.Respond(480, "#{sys.Username} Not available")
else
sys.Dial("MyNumber@MySIP",30)
sys.Respond(480, "#{sys.Username} Not available")
end
else
# Do your OUTGOING call processing customisations here.
sys.Dial("MySIP")
end