Browse Source

kamailio-install-guide-git: email is no longer needed for kamctl add

- more examples for adding user with domain

(cherry picked from commit 7ce0eff1f529141e7c0e3fe93cfa661585c1c617)
Daniel-Constantin Mierla 6 years ago
parent
commit
8f36085a89
1 changed files with 15 additions and 9 deletions
  1. 15 9
      kamailio-install-guide-git/docs/index.md

+ 15 - 9
kamailio-install-guide-git/docs/index.md

@@ -339,32 +339,38 @@ accounts and setting the phones.
 A new account can be added using `kamctl` tool via:
 
 ```Shell
-# kamctl add username password email
+  kamctl add username password
 
 ```
 
-Or try without the email:
-
-```Shell
-  kamctl add test testpasswd [email protected]
-```
-
-If you are asked for `SIP_DOMAIN` environment variable do one of the following
+If `SIP_DOMAIN` was not set in `kamctlrc` file do one of the following
 option.
 
   * run in terminal:
 
 ```Shell
   export SIP_DOMAIN=mysipserver.com
+  kamctl add username password
 ```
 
   * or edit `/root/.kamctlrc` and add:
 
-
 ```Shell
   SIP_DOMAIN=mysipserver.com
 ```
 
+and then run again `kamctl add ...` as above.
+
+  * or give the username with domain in `kamctl add ...` parameter:
+
+```Shell
+  kamctl add [email protected] password
+
+```
+
+Instead of `mysipserver.com` it has to be given the real domain for the SIP service
+or the IP address of Kamailio.
+
 ## Maintenance ##
 
 The maintenance process is very simple right now. You have to be user `root` and