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

Change-Id: I28be4a058315704c124b7bc906fc6d52363a943b
changes/47/1847/1
Victor Seva 10 years ago
parent ac0857d4d9
commit a1319a8699

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