From 8ca997ba99a85103e299ff695888da78c3b535f4 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Mon, 18 May 2015 17:10:28 +0200 Subject: [PATCH] MT#12905 MT#10879 fix fallback to uuid query for mailbox search Change-Id: I28be4a058315704c124b7bc906fc6d52363a943b (cherry picked from commit a1319a8699c86aad0d7e36071d2712b071d326d1) --- apps/app_voicemail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index dfe49b1..0e27f9f 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2863,7 +2863,7 @@ static struct ast_vm_user *find_user_realtime_by_alias(struct ast_vm_user *ivm, "where vda.username = ?"; struct generic_prepare_struct gps = { .sql = sql, .argc = 1, .argv = argv }; char *sql_uuid = "select distinct(mailbox) from kamailio.voicemail_users "\ - "where mailbox = ? and customer_id = mailbox"; + "where customer_id = ?"; struct generic_prepare_struct gps_uuid = { .sql = sql_uuid, .argc = 1, .argv = argv }; struct odbc_obj *obj = NULL; SQLHSTMT stmt = NULL;