Add caller_destination to allowed variables

This commit is contained in:
FusionPBX 2024-01-09 10:20:25 -07:00 committed by GitHub
parent be652845cc
commit e0bb35b63b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -125,9 +125,11 @@ require "resources.functions.format_ringback"
queue_record_template = string.gsub(queue_record_template, "{uuid}", "${uuid}");
queue_record_template = string.gsub(queue_record_template, "{record_ext}", "${record_ext}");
queue_record_template = string.gsub(queue_record_template, "{caller_id_number}", "${caller_id_number}");
queue_record_template = string.gsub(queue_record_template, "{caller_destination}", "${caller_destination}");
queue_record_template = string.gsub(queue_record_template, "{sip_from_user}", "${sip_from_user}");
queue_record_template = string.gsub(queue_record_template, "{sip_to_user}", "${sip_to_user}");
queue_record_template = string.gsub(queue_record_template, "{sip_req_user}", "${sip_req_user}");
--start the xml
xml:append([[ <queue name="]] .. xml.sanitize(queue_extension) .. [[@]] .. xml.sanitize(domain_name) .. [[" label="]] .. xml.sanitize(queue_name) .. [[@]] .. xml.sanitize(domain_name) .. [[">]]);