1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Update and rename asterisk_test to iiab-asterisk-test

This commit is contained in:
A Holt 2021-08-18 09:52:47 -04:00 committed by GitHub
parent 67a6dad5e1
commit ec601df004
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,21 +6,21 @@
# For regular implementation, you are requested to create extensions using the FreePBX webpage to avoid any issues # For regular implementation, you are requested to create extensions using the FreePBX webpage to avoid any issues
# #
# Usage: # Usage:
# sudo ./asterisk_test # sudo ./iiab-asterisk-test
# Default option # Default option
# Reverts file changes done during the test and restarts asterisk towards the end # Reverts file changes done during the test and restarts asterisk towards the end
# #
# sudo./asterisk_test retain # sudo ./iiab-asterisk-test retain
# Files not reverted after the test. Extensions created remain active # Files not reverted after the test. Extensions created remain active
# #
# sudo./asterisk_test revert # sudo ./iiab-asterisk-test revert
# This option exists in case you selected retain earlier, but now like to revert the changes # This option exists in case you selected retain earlier, but now like to revert the changes
# This only reverts the changes to the files and restarts asterisk, no other actions are performed # This only reverts the changes to the files and restarts asterisk, no other actions are performed
# #
# sudo./asterisk_test restart # sudo ./iiab-asterisk-test restart
# Restarts asterisk, no other actions are performed # Restarts asterisk, no other actions are performed
# #
# sudo./asterisk_test testcall # sudo ./iiab-asterisk-test testcall
# Makes a test call from asterisk console to extension 1000 which just responds with some audio # Makes a test call from asterisk console to extension 1000 which just responds with some audio
# #
# Algo: # Algo:
@ -184,16 +184,16 @@ function revert_changes_and_restart_asterisk() {
# Script usage # Script usage
# #
function script_usage() { function script_usage() {
echo -e "sudo ./asterisk_test" echo -e "sudo ./iiab-asterisk-test"
echo -e "\tDefault - Reverts file changes done during the test and restarts asterisk" echo -e "\tDefault - Reverts file changes done during the test and restarts asterisk"
echo -e "sudo ./asterisk_test retain" echo -e "sudo ./iiab-asterisk-test retain"
echo -e "\tFiles not reverted after the test. Extensions created remain active" echo -e "\tFiles not reverted after the test. Extensions created remain active"
echo -e "sudo ./asterisk_test revert" echo -e "sudo ./iiab-asterisk-test revert"
echo -e "\tIn case you selected retain earlier, but now like to revert the changes" echo -e "\tIn case you selected retain earlier, but now like to revert the changes"
echo -e "\tThis only reverts the changes to the files and restarts asterisk, no other actions are performed" echo -e "\tThis only reverts the changes to the files and restarts asterisk, no other actions are performed"
echo -e "sudo ./asterisk_test restart" echo -e "sudo ./iiab-asterisk-test restart"
echo -e "\tRestarts asterisk, no other actions are performed" echo -e "\tRestarts asterisk, no other actions are performed"
echo -e "sudo ./asterisk_test testcall" echo -e "sudo ./iiab-asterisk-test testcall"
echo -e "\tMakes a test call to extension 1000" echo -e "\tMakes a test call to extension 1000"
exit 1 exit 1
} }