MT#12905 MT#10879 fix fallback to uuid query for mailbox search

Change-Id: I28be4a058315704c124b7bc906fc6d52363a943b
(cherry picked from commit a1319a8699)
mr3.8.3
Victor Seva 10 years ago
parent d3ada5f1de
commit 8ca997ba99

@ -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;

Loading…
Cancel
Save