]> git.defcon.no Git - hermes/commitdiff
Merge http://home.defcon.no/testing/hermes-mediator
authorJon Langseth <jon.langseth@hig.no>
Tue, 17 Jan 2012 19:01:09 +0000 (20:01 +0100)
committerJon Langseth <jon.langseth@hig.no>
Tue, 17 Jan 2012 19:01:09 +0000 (20:01 +0100)
1  2 
doc/api-nodes.txt

diff --combined doc/api-nodes.txt
index 2d6e76acac149da1687f345c96919a87f66e3ce3,a288bbda9639c1f5fa78943b8cf5377769d9e941..9d0e347bf43ca577530cc9a1f778ecf5f763761b
@@@ -80,21 -80,22 +80,29 @@@ user/change_email?user=foo@bar.bz&email
  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/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
@@@ -224,26 -225,11 +232,23 @@@ alias/remove?alias=foo@bar.b
        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
- address would overlap/collide with a valid alias-address
  Change all GET to POST
  
  Implement test-tool for POST-based communication ;)