When a new greeting is created set it as the greeting id.
This commit is contained in:
parent
63f55e076d
commit
6f14a0b6d5
|
|
@ -144,6 +144,15 @@
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--use the new greeting
|
||||||
|
local array = {}
|
||||||
|
table.insert(array, "update v_voicemails ");
|
||||||
|
table.insert(array, "set greeting_id = '".. greeting_id .."' ");
|
||||||
|
table.insert(array, "where domain_uuid = '".. domain_uuid .."' ");
|
||||||
|
table.insert(array, "and voicemail_id = '".. voicemail_id .."' ");
|
||||||
|
sql = table.concat(array, "\n");
|
||||||
|
dbh:query(sql);
|
||||||
|
|
||||||
--play the greeting
|
--play the greeting
|
||||||
--if (session:ready()) then
|
--if (session:ready()) then
|
||||||
-- if (file_exists(voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav")) then
|
-- if (file_exists(voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav")) then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue