From cc396b7911cb39997abdd3175ddd51f093fe73e8 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Tue, 11 Feb 2025 10:53:40 +0100 Subject: [PATCH] MT#62075 fix STORE_SQL_FMT_CAT sql callid column name * STORE_SQL_FMT_CAT def uses "callid" in the statement but the actual column name is "call_id". Change-Id: I1eb3c65b6b7b112d49b88c03c4d792433aaf1ecf (cherry picked from commit c2726bdc03a94b3e21594b7c3152312a54b09f77) --- debian/patches/sipwise_vm_add_callid.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/patches/sipwise_vm_add_callid.patch b/debian/patches/sipwise_vm_add_callid.patch index 4b7b3f1..d10b3bb 100644 --- a/debian/patches/sipwise_vm_add_callid.patch +++ b/debian/patches/sipwise_vm_add_callid.patch @@ -77,12 +77,12 @@ index 801b682..4ec7b83 100644 #define STORE_SQL_FMT_CAT "INSERT INTO %s (dir, msgnum, recording, context, callerid, " \ - "origtime, duration, mailboxuser, mailboxcontext, flag, msg_id, category) " \ - "VALUES (?,?,?,?,?,?,?,?,?,?,?,?)" -+ "origtime, duration, mailboxuser, mailboxcontext, flag, msg_id, callid, category) " \ ++ "origtime, duration, mailboxuser, mailboxcontext, flag, msg_id, call_id, category) " \ + "VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)" #define STORE_SQL_FMT "INSERT INTO %s (dir, msgnum, recording, context, callerid, "\ - "origtime, duration, mailboxuser, mailboxcontext, flag, msg_id) "\ - "VALUES (?,?,?,?,?,?,?,?,?,?,?)" -+ "origtime, duration, mailboxuser, mailboxcontext, flag, msg_id, callid) "\ ++ "origtime, duration, mailboxuser, mailboxcontext, flag, msg_id, call_id) "\ + "VALUES (?,?,?,?,?,?,?,?,?,?,?,?)" static SQLHSTMT odbc_insert_data_cb(struct odbc_obj *obj, void *vdata)