Subscribe to News

Asterisk : Creating users

Author : Jbuenol

From TechnologicalWiki

Revision as of 11:31, 29 June 2010 by Jbuenol (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Let's create two new SIP users.

For example users "John" and "Mary" password "j201j" and "m2m10"

To achieve this we need to edit "sip.conf" file and add the following lines at the end of the file:

   [20000]                            ; Extension Name
   type = friend                      ; Type of user, can be peer, friend and user (now, user is deprecated)
   secret = a20000b                   ; Password
   qualify = yes
   nat = no
   host = dynamic                     ; Can be dynamic or an IP. If an IP is entered, the user don't have to be authenticated.
   canreinvite = no                   ; yes: communications going directly trough the server.
   context = example                  ; context where users are contained
   mailbox = 20000@myfirstmail        ; fill whit a valid domain only in a public networks.
   [20100]                            ; Extension Name
   type = friend                      ; Type of user, can be peer, friend and user (now, user is deprecated)
   secret = b20100a                   ; Password
   qualify = yes
   nat = no
   host = dynamic                     ; Can be dynamic or an IP. If an IP is entered, the user don't have to be authenticated.
   canreinvite = no                   ; yes: communications going directly trough the server.
   Context = example                  ; context where users will be contained
   mailbox = 20100@myfirstmail        ; fill whit a valid domain only in a public networks.
Main Collaborators