Add sip_req_user to allowed variables

This commit is contained in:
FusionPBX
2024-01-09 10:05:18 -07:00
committed by GitHub
parent 776334844b
commit be652845cc

View File

@@ -127,6 +127,7 @@ require "resources.functions.format_ringback"
queue_record_template = string.gsub(queue_record_template, "{caller_id_number}", "${caller_id_number}");
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) .. [[">]]);