connection_status.list

Description

Fetch a list of all the connectable objects (network interfaces, sip endpoints, T1/E1 ports) on the gateway and their statuses.

Arguments

None.

Example Requests & Responses

Example One

Request

Fetch a list of all the connectable objects (network interfaces, sip endpoints, T1/E1 ports) on the gateway and their statuses.

{     'method' => 'connection_status.list',     'parameters' => { } }

Response

'connection_status' => {           't1_e1_interfaces' => [                                  {                                    'port_num' => '1',                                    'name' => 'port1',                                    'status_desc' => 'Up, Active',                                  },                                  {                                    'port_num' => '2',                                    'name' => 'port2',                                    'status_desc' => 'Up, Active',                                  }                                ],           'sip_endpoints' => [                               {                                 'name' => 'ErinsGTW',                                 'status_desc' => {                                                    'output_string' => 'eringtw_200/eringtw        (Unspecified)                            D          0        UNKNOWN    ',                                                    'reg_status' => 'not_registered',                                                    'hostname' => 'Unspecified',                                                    'latency' => 'unreachable' // when qualify is on                                                  },                                 'registration' => 'out',                                 'host' => 'dynamic',                                 'defaultuser' => 'eringtw',                               },                               {                                 'name' => '6001',                                 'status_desc' => {                                                    'output_string' => '6001/6001                  (Unspecified)                            D   N      0        Unmonitored ',                                                    'reg_status' => 'not_registered',                                                    'hostname' => 'Unspecified',                                                    'latency' => 'Unmonitored' // when qualify is off                                                  },                                 'registration' => 'in',                                 'host' => 'dynamic',                                 'defaultuser' => '6001',                               }                             ],           'network_interfaces' => {                                    'dns_addresses' => [                                                         '10.24.55.4',                                                         '10.19.29.253'                                                       ],                                    'hostname' => 'G200-00-00-04',                                    'devices' => [                                                   {                                                     'mac_address' => 'B2:43:4A:00:00:04',                                                     'gateway_address' => '10.24.23.254',                                                     'status_ok' => 1,                                                     'net_mask' => '255.255.248.0',                                                     'name' => 'eth1',                                                     'ip_address' => '10.24.18.34'                                                   }                                                 ]                                  }         } };

Return to Documentation Home I Return to Sangoma Support