call_routing_rules.list
Description
Fetch a list of all call routing rules.
Arguments
None.
Example Requests & Responses
Example One
Request
Fetch a list of all call routing rules.
{ 'method' => 'call_routing_rules.list', 'parameters' => { } } |
Response
NOTE: call_throughs array and call_origin parameter will be the object_id of the object to match on, or in the case of a single T1 channel, a string in the format "port-x-channel-x".
'call_routing_rules' => [ { 'rule_name' => 'port 1 to erins gateway', 'simple_mode' => '1', 'call_origin' => '3', // or 'port-1-channel-4' 'match_everything' => '1', 'call_throughs' => [ '200' // or 'port-1-channel-4' ], 'order' => '1', }, { 'rule_name' => 'port2 to 6001', 'simple_mode' => '0', 'call_origin' => '4', 'cid_name' => 'Digium', 'trim' => '1', 'match_everything' => '0', 'call_throughs' => [ '211' ], 'prepend' => '256', 'num_begins' => '9', 'num_length_start' => '7', 'order' => '2', 'num_length_end' => '7' } ], |