X-Git-Url: https://git.defcon.no/?a=blobdiff_plain;f=doc%2Fapi-nodes.txt;h=42150590925c825d644b25e79df5daac69314888;hb=0f6b80ae70f9978080aeaf3f155bab79ded1916f;hp=cb6ea9a2dfed330f9d9b3e414480a1b2ad456540;hpb=3b7b5ca848177cc351e0ee623cd9621b7a46eb7b;p=hermes diff --git a/doc/api-nodes.txt b/doc/api-nodes.txt index cb6ea9a..4215059 100644 --- a/doc/api-nodes.txt +++ b/doc/api-nodes.txt @@ -405,6 +405,7 @@ user/available Return: Returns 'ok' with 'cause' = 'nonexistant' if the address is available. + TODO: Returns 'failed' with 'cause' = 'domain' if the domain is not a kamailio domain. Returns 'failed' with 'cause' = 'exists' if the address is in use. Returns 'failed' with 'cause' = 'invalid' if SIP address is malformed. @@ -593,8 +594,8 @@ alias/list (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. @@ -707,6 +708,18 @@ TODO list: Some TODO's listed above ... Permissions! (user/permissions?user=...) +The permissions bit-flag seems to be: + NOCALLS 1 + EMERGENCY 2 + INTERNAL 4 + VOIP 8 + NATIONAL 16 + SERVICES 32 + INTERNATIONAL 64 + OTHERS 128 + +can_write() checks! +can_read_full() checks! Improve robustness of change_pw: fetch old password for rollback/testing.