use strict;
use Test::More 'no_plan';
use tests_common;
-use Data::Dumper;
# Configuration variables defined in tests_common
# Make sure those are updated/set correctly..
use strict;
use Test::More 'no_plan';
use tests_common;
-use Data::Dumper;
# Configuration variables defined in tests_common
# Make sure those are updated/set correctly..
use strict;
use Test::More 'no_plan';
use tests_common;
-use Data::Dumper;
# Configuration variables defined in tests_common
# Make sure those are updated/set correctly..
$data = exec_apinode("phone/list", { 'search' => $test_macaddress });
is( $data->{'response'}, 'ok', 'phone/list search result');
ok($data->{'list'}, 'phone/list search array');
-print Dumper($data->{'list'});
-
undef $data;
$data = exec_apinode("phone/get", { 'mac' => $test_macaddress });
(naturally).
Return:
- Returns 'ok' on success, with an array of 'destination' and 'alias'
- pairs.
+ Returns 'ok' on success, with an array 'aliases' containing
+ 'destination' and 'alias' pairs.
Returns 'ok' with an empty array if the search gave no results.
Returns 'ok' with an empty array if the database search fails.
Returns 'failed' with 'cause' = 'invalid' on invalid SIP addresses.