Asterisk : Creating users
Author : Jbuenol
From TechnologicalWiki
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.


