Brekeke PBX Wiki

insertRouteVariables

insertRouteVariables

 

Permissions:

sa

 

Description:

Adds a new route and its Route Local Variables values to a specified route template.

 

Parameters:

template – the name of an ARS route template
values – a string array containing the route name and its related Route Local Variable setting

val 0 – 1: Enabled, 0: Disabled
val 1 – tenant name
val 2 – route name
val 3 – password
val 4~5 – <reserved>
val 6~14 – v1~v9
val 15~23 – w1~w9
val 24~32 – x1~x9
val 0 to val 6 are required variables for this method. Set an empty string for any variable that is not needed.

 

Returns:

If the method succeeds, it returns “true” in the result field.
If the method fails, it returns an associative array in the error field.

 

Related methods:

deleteRouteVariables, getRouteTemplateNames, getRouteVariables, updateRouteVariables

Yes No
Suggest Edit