From aa019c15f7d76eb5121d79b1f26177d4a7cbe4d9 Mon Sep 17 00:00:00 2001 From: jonl Date: Tue, 17 Jan 2012 19:08:14 +0100 Subject: [PATCH] Small edits after meeting about UI --- api-nodes.txt | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/api-nodes.txt b/api-nodes.txt index 7ea2100..2d6e76a 100644 --- a/api-nodes.txt +++ b/api-nodes.txt @@ -80,14 +80,21 @@ user/change_email?user=foo@bar.bz&email=user@example.com user/remove?username=foo&domain=bar user/remove?user=foo@bar.bz Removes user account from Kamailio, if present, and removes user from - provisioning. Will fail if user has associated hardphones, remove - phones before removing user. + provisioning. + + Will fail if user has associated hardphones, remove phones before + removing user. + + TODO: Should fail if user has associated aliases. Remove aliases before + removing user. Returns 'ok' on success. user/gen_pw - Test-node, generates a random password on the same form as that used by - user/add_local. May be used with the to-be-implemented change_pw node. + Generates a random password on the same form as that used by + user/add_local. + + Return is always a password in plain text, with no formatting. phone/get?mac=f00ba2ba5c00 phone/get?user=foo@bar.bz @@ -217,9 +224,21 @@ alias/remove?alias=foo@bar.bz Returns 'invalid' with 'cause' = 'address' if the given alias is not a valid SIP adress. +BUGS: +--------------------- + +api/alias/list?destination=foo@bar.bz&e164=true + should return an empty array, returns false + TODO list: --------------------- +Add a node to test a destination (pre-flight testing of user/add and alias/add) + +Read list of kamailio domains (domains/list ?) RW? +Default server-settings for domains (domains/server ? ) (registrar, proxy, ports...) RW. +Permissions! (user/permissions?user=...) + authentication-mechanism :) Add collision prevention for users, make sure that no user can be added when the user -- 2.39.2