huibw wrote:Depending on your dailplan it can beor in my case
- Code: Select all
${dst}
- Code: Select all
numbertocall = req.URI.User.to_str
...process the cr*p out of it...
So you would getor
- Code: Select all
when /^500$/ then sys.GoogleVoiceCall("me@gmail.com", "password", "my gizmo number", "${dst}", true)
- Code: Select all
when /^500$/ then sys.GoogleVoiceCall("me@gmail.com", "password", "my gizmo number", "#{numbertocall}", true)
Is this working for you? I am puzzled as the System Variable req.URI.User should contain the value dialed, in this case "500". So how do you use the value of this variable to get the DestinationNumber in your case numbertocall?
Will test when I get home.
