Move to the Asterisk file
zaman@zaman:~$ cd /etc/asterisk
Need to change some configuration files : sip.conf, extensions.conf, voicemail.conf
But before that we need to take backup files so that if anything goes wrong we can get back to the previous version from backup files.
For backup configuration
zaman@zaman:~$ sudo mv sip.conf sip.conf.backup
zaman@zaman:~$ sudo mv extensions.conf extensions.conf.backup
zaman@zaman:~$ sudo mv voicemail.conf voicemail.conf.backup
For Editing the sip.conf
zaman@zaman:~$ sudo gedit sip.conf
Under SIP.CONF file we should write:
For Editing the extensions.conf
zaman@zaman:~$ sudo gedit extensions.conf
Under EXTENSIONS.CONF file we should write:
For Editing the voicemail.conf
zaman@zaman:~$sudo gedit voicemail.conf
Under VOICEMAIL.CONF file we should write:
Now we have to reload the asterisk
zaman@zaman:~$ sudo asterisk -r
zaman*CLI> reload
Check the sip clients are added or not
zaman*CLI> sip show peers
If sip show peers command doesn’t work then
zaman*CLI> module show like sip
zaman*CLI> module load chan_sip.so
0 Comments