Ok, hat jetzt endlich funktioniert. War mir wieder nicht ganz sicher bei "iptel Rufnummer", ...
#Ruby
sys.Trace = false
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")
if sys.In then
sys.Dial("#{sys.Username}@local")
else
case req.URI.User
when /^0001[2-9][0-8][0-9][2-9]/
then sys.GoogleVoiceCall("[email protected]", "xxx", "14157278xxx", "#{req.URI.User.to_str[3..-1]}", "6783837xxx.", 1)
when /^000\*/ then sys.Dial("${dst:3}@sipbroker.com")
when /^000/ then sys.Dial("*013${dst:3}@sipbroker.com")
end
end
Created,Direction,Dst,FromHeader,LocalSocket,RemoteSocket,RingDuration,AnsweredTime,AnsweredStatus,AnsweredReason,Duration,HungupTime,HungupReason
2011-07-10T09:20:13.6180731+00:00,Out,dxxxx,"4157278xxx" <sip:[email protected]>;tag=1615734935,udp:69.59.142.213:5060,udp:212.255.39.94:5060,0,2011-07-10T09:20:13.8524361+00:00,486,Busy Here,0,,
2011-07-10T09:20:13.5555763+00:00,In,dxxxx,"4157278xxx" <sip:[email protected]>;tag=as1275d9d8,udp:69.59.142.213:5060,udp:204.155.28.10:5060,0,2011-07-10T09:20:13.8993087+00:00,486,Busy Here,0,,