Upgrade 3CX to v18 and get it hosted free!

Perl Add/Modify/Delete user script

Author image

i have created AddUser and EditUser scripts in perl for adding/modify/view/delete sip/voicemail entry in config files.

Requirements:

  • Asterisk::config CPAN module

Features and working

  • add/edit sip entry
  • add/edit voicemail entry if required
  • add/remove hint in extensions.conf if required.
  • when ask for codecs provide a list of codecs with separated by a space
  • default values in AddUser script are appended to input message in braces.

Setup

  • create an empty file “/etc/asterisk/sip_custom.conf” and include the newly created file reference in “/etc/asterisk/sip.conf” at the end of file, like this.
  • in sip.conf
  1. include “sip_custom.conf”
  • run cpan and install Asterisk::config library.
# cpan
cpan> install Asterisk::config
  • now download AddUser and EditUser script and set executable permissions for downloaded script.
# chmod a+rx AddUser
# chmod a+rx EditUser

That’s it, now run AddUser to AddUser script to create users.

Enjoy!

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.