Use SCRIPT_VERSION variable instead of hardcoded version numbers
Changes:
- Update main menu header to use ${SCRIPT_VERSION} variable
- Update pjsip.conf header comment to use ${SCRIPT_VERSION}
- Update Baresip instructions header to use ${SCRIPT_VERSION}
- Changed Baresip heredoc from single-quoted to allow variable expansion
This ensures version display always matches the SCRIPT_VERSION variable
at line 44, eliminating hardcoded version mismatches.
This commit is contained in:
@@ -1932,10 +1932,10 @@ create_baresip_config() {
|
|||||||
|
|
||||||
mkdir -p "$PROVISIONING_DIR"
|
mkdir -p "$PROVISIONING_DIR"
|
||||||
|
|
||||||
cat > "$config_file" << 'BARESIPEOF'
|
cat > "$config_file" << BARESIPEOF
|
||||||
═══════════════════════════════════════════════════════════
|
═══════════════════════════════════════════════════════════
|
||||||
BARESIP SETUP INSTRUCTIONS
|
BARESIP SETUP INSTRUCTIONS
|
||||||
Generated by Easy Asterisk v0.9.9
|
Generated by Easy Asterisk v${SCRIPT_VERSION}
|
||||||
═══════════════════════════════════════════════════════════
|
═══════════════════════════════════════════════════════════
|
||||||
|
|
||||||
IMPORTANT: Baresip does NOT support remote provisioning.
|
IMPORTANT: Baresip does NOT support remote provisioning.
|
||||||
@@ -2768,7 +2768,7 @@ ${all_local_nets}"
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cat > "$conf_file" << EOF
|
cat > "$conf_file" << EOF
|
||||||
; Easy Asterisk v0.9.9
|
; Easy Asterisk v${SCRIPT_VERSION}
|
||||||
[global]
|
[global]
|
||||||
type=global
|
type=global
|
||||||
user_agent=EasyAsterisk
|
user_agent=EasyAsterisk
|
||||||
@@ -3563,7 +3563,7 @@ uninstall_menu() {
|
|||||||
|
|
||||||
show_main_menu() {
|
show_main_menu() {
|
||||||
clear
|
clear
|
||||||
print_header "Easy Asterisk v0.9.9"
|
print_header "Easy Asterisk v${SCRIPT_VERSION}"
|
||||||
|
|
||||||
load_config
|
load_config
|
||||||
echo " Status:"
|
echo " Status:"
|
||||||
|
|||||||
Reference in New Issue
Block a user