How to create extensions for users in Asterisk
Author : Jbuenol
From TechnologicalWiki
We are going to create the extensions for those users in the extensions.conf file in order to get some extensions to communicate each user with the others users. Then, if we call to the extension John, we will speak with the user John and if we call to the extension Mary , we will speak with the user Mary. We are going to create the number of the voice box to listen the messages too. When that call is done, the user's number must be introduced though the phone.
We have to add the following lines to the end of the extensions.conf file.
[example] exten => 20000,1,Dial(SIP/20000,30,Ttm) exten => 20000,2,Hangup exten => 20000,102,Voicemail(20000) exten => 20000,103,Hangup exten => 20100,1,Dial(SIP/20100,30,Ttm) exten => 20100,2,Hangup exten => 20100,102,Voicemail(20100) exten => 20100,103,Hangup exten => 30000,1,VoicemailMain
We are going to create the voice boxes for both users and assign them a password in the voicemail.conf file. We are going to assign the next passwords : 1234 and 4321 respectively.
[example] 20000 => 1234,Pedro,pedro@mydomain.com 20100 => 4321,Juan,juan@mydomain.com
Now, It's necessary to restart the Asterisk software.


