Cloud Call (FR)
Perfecto Command
mobile:gateway:call
Purpose
Generates an external voice call recording to the selected destination. It is possible to select multiple destinations that may include devices, users, and phone numbers.
There is no default. To use this command, at least one destination must be selected.
When specifying a device via the to.handset parameter, verify that it has a SIM card, which is required for calling that device.
When specifying a number via the to.number parameter, replace the '+' character with %2B in the sent string.
Parameters
Name | Type | Possible Values | Description |
---|---|---|---|
to.handset | Handset | Device ID | The destination device. It is possible to select multiple devices (separated by commas). |
to.user | String |
The destination user. It is possible to select multiple users. The user identifier is the Perfecto username. The user must be registered with the correct mobile number. The business number field does not apply. |
|
to.logical | String | user | none | The user currently running the script. |
to.number | String |
The destination phone number. It is possible to select multiple phone numbers. Format - +[country code][area code][phone number] Example - +17812054111 |
Return Value
None
Exceptions
None
Examples
Java sample
Map<String, Object> pars = new HashMap<>();
pars.put("to.number", "+972541234567");
String reStr = (String) driver.executeScript("mobile:gateway:call", pars);
Java sample with multiple numbers
Map<String, Object> pars = new HashMap<>();
List<String> numbers = new ArrayList<>();
numbers.add("+11111111111");
numbers.add("+11111111111");
pars.put("to.number", numbers);
String reStr = (String) driver.executeScript("mobile:gateway:call", pars);
C# sample
Dictionary<String, Object> pars = new Dictionary<String, Object>();
pars.Add("to.number", "+972541234567");
String reStr = (String) driver.ExecuteScript("mobile:gateway:call", pars);