Update to allow voicemail links in SMS (#7888)
Add voicemail_uuid and message_uuid replacements to enable building links for SMS notifications.
This commit is contained in:
committed by
GitHub
parent
193fb42ec1
commit
431949bb67
@@ -39,6 +39,7 @@
|
|||||||
db_voicemail_uuid = string.lower(row["voicemail_uuid"]);
|
db_voicemail_uuid = string.lower(row["voicemail_uuid"]);
|
||||||
voicemail_sms_to = row["voicemail_sms_to"];
|
voicemail_sms_to = row["voicemail_sms_to"];
|
||||||
voicemail_file = row["voicemail_file"];
|
voicemail_file = row["voicemail_file"];
|
||||||
|
voicemail_uuid = row["voicemail_uuid"];
|
||||||
end);
|
end);
|
||||||
|
|
||||||
--get the sms_body template
|
--get the sms_body template
|
||||||
@@ -92,6 +93,8 @@
|
|||||||
sms_body = sms_body:gsub("${domain_name}", domain_name);
|
sms_body = sms_body:gsub("${domain_name}", domain_name);
|
||||||
sms_body = sms_body:gsub("${sip_to_user}", id);
|
sms_body = sms_body:gsub("${sip_to_user}", id);
|
||||||
sms_body = sms_body:gsub("${dialed_user}", id);
|
sms_body = sms_body:gsub("${dialed_user}", id);
|
||||||
|
sms_body = sms_body:gsub("${voicemail_uuid}", voicemail_uuid);
|
||||||
|
sms_body = sms_body:gsub("${message_uuid}", uuid);
|
||||||
if (transcription ~= nil) then
|
if (transcription ~= nil) then
|
||||||
sms_body = sms_body:gsub("${message_text}", transcription);
|
sms_body = sms_body:gsub("${message_text}", transcription);
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user