Update 310_extension-to-voicemail.xml

Quote the interpolated part of the regexes between \Q and \E
This commit is contained in:
FusionPBX
2024-02-13 18:03:32 -07:00
committed by GitHub
parent f80293e163
commit 632c2ee10f

View File

@@ -1,7 +1,7 @@
<extension name="extension-to-voicemail" number="[ext]" context="global" continue="false" app_uuid="8a2e7b81-996c-4d6b-87df-b879b972a572" global="true" order="310">
<condition field="${user_exists}" expression="^true$" />
<condition field="username" expression="^${caller_id_number}$" />
<condition field="destination_number" expression="^${caller_id_number}$">
<condition field="username" expression="^\Q${caller_id_number}\E$" />
<condition field="destination_number" expression="^\Q${caller_id_number}\E$">
<action application="answer"/>
<action application="sleep" data="1000"/>
<action application="set" data="record_append=false"/>