New database class was implemented in call_forward.lua when using first_value must change select * from with the specific value desired.
This commit is contained in:
parent
71ea6a8328
commit
7bb50d03a0
|
|
@ -108,7 +108,7 @@
|
||||||
|
|
||||||
--check to see if the pin number is correct
|
--check to see if the pin number is correct
|
||||||
if not session:ready() then return end
|
if not session:ready() then return end
|
||||||
local sql = "SELECT * FROM v_voicemails ";
|
local sql = "SELECT voicemail_password FROM v_voicemails ";
|
||||||
sql = sql .. "WHERE domain_uuid = '" .. domain_uuid .."' ";
|
sql = sql .. "WHERE domain_uuid = '" .. domain_uuid .."' ";
|
||||||
sql = sql .. "AND voicemail_id = '" .. extension .."' ";
|
sql = sql .. "AND voicemail_id = '" .. extension .."' ";
|
||||||
if (debug["sql"]) then
|
if (debug["sql"]) then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue