call_routing_rule.list
Description
Fetch one call routing rule.
Arguments
name | value type | required |
---|---|---|
object_name | the 'name' parameter of a sip endpoint object | yes, if no object_id specified |
object_id | integer representing the auto-increment field from the database | yes, if no object_name specified |
Example Requests & Responses
Example One
Request
Fetch one call routing rule.
{ 'method' => 'call_routing_rule.list', 'parameters' => { 'object_id' => '365' } |
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_rule' => { 'rule_name' => 'port 1 to erins gateway', 'simple_mode' => '1', 'call_origin' => '3', 'match_everything' => '1', 'call_throughs' => [ '200' ], 'order' => '1', }, |