1. Edit file sip.conf with this command:
#sudo gedit /etc/asterisk/sip.conf
copy paste example script =
[3001]
type = friend
context=coba
username = 3001
secret = apasaja
host = dynamic
[3002]
type = friend
context=coba
username = 3002
secret = apasaja
host = dynamic
Above script for registering user 3001 and 3002 in Asterisk Server
2. Edit file extension.conf with this command :
#sudo gedit /etc/asterisk/extension.conf
kemudian ketikkan baris berikut di bagian akhir file:
[coba]
exten => 3001,1,Dial(SIP/3001)
exten => 3002,1,Dial(SIP/3002)