Add caller_destination to allowed variables
This commit is contained in:
parent
be652845cc
commit
e0bb35b63b
|
|
@ -125,10 +125,12 @@ require "resources.functions.format_ringback"
|
||||||
queue_record_template = string.gsub(queue_record_template, "{uuid}", "${uuid}");
|
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, "{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_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_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_to_user}", "${sip_to_user}");
|
||||||
queue_record_template = string.gsub(queue_record_template, "{sip_req_user}", "${sip_req_user}");
|
queue_record_template = string.gsub(queue_record_template, "{sip_req_user}", "${sip_req_user}");
|
||||||
|
|
||||||
|
|
||||||
--start the xml
|
--start the xml
|
||||||
xml:append([[ <queue name="]] .. xml.sanitize(queue_extension) .. [[@]] .. xml.sanitize(domain_name) .. [[" label="]] .. xml.sanitize(queue_name) .. [[@]] .. xml.sanitize(domain_name) .. [[">]]);
|
xml:append([[ <queue name="]] .. xml.sanitize(queue_extension) .. [[@]] .. xml.sanitize(domain_name) .. [[" label="]] .. xml.sanitize(queue_name) .. [[@]] .. xml.sanitize(domain_name) .. [[">]]);
|
||||||
xml:append([[ <param name="strategy" value="]] .. xml.sanitize(queue_strategy) .. [["/>]]);
|
xml:append([[ <param name="strategy" value="]] .. xml.sanitize(queue_strategy) .. [["/>]]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue