switchvox
Carl, please post an example using switchvox.users.call method with variables option for some reason it wouldn't take for me.
Many thanks in a advance
Try this:
new_call = switchvox.request("switchvox.users.call", {
"account_id" => 1106,
"dial_first" => 301,
"dial_second" => 800,
"variables" => {"variable" => "balance=300"}
})
Or this:
new_call = switchvox.request("switchvox.users.call", {
"account_id" => 1106,
"dial_first" => 301,
"dial_second" => 800,
"variables" => ["balance=300"]
})
It's not clear from the API documentation how the JSON request should be formatted for the variable list, but both are reasonable guesses.
I would test it, but I don't have a switchvox system to test against anymore! :/
First gives back: switchvox.users.call: Response: {"response"=> {"method"=>"switchvox.users.call", "errors"=> {"error"=> {"code"=>84904, "message"=> "Invalid variable format for parameter (HASH(0x86676928)). Variable format must be VARIABLE_NAME=VARIABLE_VALUE."}}}}
second: works but IVR variable is not getting set
You might log a ticket with them asking for clarification, or a JSON Example. If you get that I can tell you how to make it work.
Any update on this? Just curious if you got anything back :)