From: Jon Langseth Date: Tue, 17 Jan 2012 19:01:09 +0000 (+0100) Subject: Merge http://home.defcon.no/testing/hermes-mediator X-Git-Url: https://git.defcon.no/?a=commitdiff_plain;h=1482cea4e589347ee79cc563f291661ef7a4931b;p=hermes Merge http://home.defcon.no/testing/hermes-mediator --- 1482cea4e589347ee79cc563f291661ef7a4931b diff --cc doc/api-nodes.txt index 2d6e76a,a288bbd..9d0e347 --- a/doc/api-nodes.txt +++ b/doc/api-nodes.txt @@@ -90,11 -85,17 +90,19 @@@ user/remove?user=foo@bar.b Returns 'ok' on success. + user/available?username=foo&domain=bar + user/available?user=foo@bar.bz + Tests an address to see if it is available. + + Returns 'ok' with 'cause' = 'nonexistant' if the address is available. + + Returns 'failed' with 'cause' = 'exists' if the address is in use. + 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 @@@ -233,17 -228,8 +241,14 @@@ api/alias/list?destination=foo@bar.bz&e 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 - address would overlap/collide with a valid alias-address - Change all GET to POST Implement test-tool for POST-based communication ;)