Update index.lua
This commit is contained in:
parent
d7bbcd89f5
commit
09567f45c1
|
|
@ -518,7 +518,7 @@
|
||||||
end
|
end
|
||||||
y = y + 1;
|
y = y + 1;
|
||||||
--save the message to the voicemail messages
|
--save the message to the voicemail messages
|
||||||
if (message_length and #message_length > 2) then
|
if (message_length ~= nil and message_length > 2) then
|
||||||
caller_id_name = string.gsub(caller_id_name,"'","''");
|
caller_id_name = string.gsub(caller_id_name,"'","''");
|
||||||
local sql = {}
|
local sql = {}
|
||||||
table.insert(sql, "INSERT INTO v_voicemail_messages ");
|
table.insert(sql, "INSERT INTO v_voicemail_messages ");
|
||||||
|
|
@ -632,12 +632,12 @@
|
||||||
end
|
end
|
||||||
|
|
||||||
--send the message waiting event
|
--send the message waiting event
|
||||||
if (message_length and #message_length > 2) then
|
if (message_length ~= nil and message_length > 2) then
|
||||||
message_waiting(voicemail_id_copy, domain_uuid);
|
message_waiting(voicemail_id_copy, domain_uuid);
|
||||||
end
|
end
|
||||||
|
|
||||||
--send the email with the voicemail recording attached
|
--send the email with the voicemail recording attached
|
||||||
if (message_length and #message_length > 2) then
|
if (message_length ~= nil and message_length > 2) then
|
||||||
send_email(voicemail_id_copy, voicemail_message_uuid);
|
send_email(voicemail_id_copy, voicemail_message_uuid);
|
||||||
if (voicemail_to_sms) then
|
if (voicemail_to_sms) then
|
||||||
send_sms(voicemail_id_copy, voicemail_message_uuid);
|
send_sms(voicemail_id_copy, voicemail_message_uuid);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue