user/update?username=foo&domain=bar
user/update?user=foo@bar.bz
- optionals: &displayname=baz&dialplan=(.*)&linetext=lalala
+ optionals: &displayname=baz&dialplan=(.*)&linetext=lalala&email=foo@bar.baz
Not implemented! Will only be implemented for Local users.
Remote users will have to be removed, and re-added.
+user/change_email?username=foo&domain=bar&email=user@example.com
+user/change_email?user=foo@bar.bz&email=user@example.com
+ Changes the email address for the given user, returns 'ok' with
+ 'user' set to the requested username and 'email' set to the
+ email address. This only applies to kamailio local users.
+
+ Returns 'failed' with 'cause' = 'nonexistant' if user does not exist.
+
+ Returns 'failed' with 'cause' = 'dbfail' if the database request
+ failed. Note that this may be because the given password was identical
+ to the old.
+
user/remove?username=foo&domain=bar
user/remove?user=foo@bar.bz