TT#161551 remove double logs

seems like the rebase for 16.16.1 version introduced some issues
54c464fc4a

Change-Id: I30d6bc67368fc761a34c2c03e661009aec7bb8c8
mr11.2.1
Victor Seva 3 years ago
parent 3b818b71a9
commit ccdf42de8e

@ -1,35 +1,27 @@
From: Sipwise Development Team <support@sipwise.com>
Date: Mon, 21 Feb 2022 14:17:23 +0100
Date: Mon, 21 Feb 2022 13:57:31 +0100
Subject: sipwise_vm_fix_odbc_retreive_file
---
apps/app_voicemail.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
apps/app_voicemail.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index b7ee586..c72c9e5 100644
index b7ee586..58d4595 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -4033,7 +4033,7 @@ static void odbc_update_msg_id(char *dir, int msg_num, char *msg_id)
char *argv[] = { msg_id, dir, msg_num_str };
struct generic_prepare_struct gps = { .sql = sql, .argc = 3, .argv = argv };
- obj = ast_odbc_request_obj(odbc_database, 0);
+ obj = ast_odbc_request_obj(odbc_database, 0);
if (!obj) {
ast_log(LOG_WARNING, "Unable to update message ID for message %d in %s\n", msg_num, dir);
return;
@@ -4204,6 +4204,9 @@ static int retrieve_file(char *dir, int msgnum)
@@ -4203,7 +4203,9 @@ static int retrieve_file(char *dir, int msgnum)
ast_debug(3, "Ignoring null category column in ODBC voicemail retrieve_file.\n");
continue;
} else if (!SQL_SUCCEEDED(res)) {
ast_log(AST_LOG_WARNING, "SQL Get Data error! coltitle=%s\n[%s]\n\n", coltitle, sql);
- ast_log(AST_LOG_WARNING, "SQL Get Data error! coltitle=%s\n[%s]\n\n", coltitle, sql);
+ if (strcasecmp(coltitle, "call_id")) {
+ ast_log(AST_LOG_WARNING, "SQL Get Data error! coltitle=%s\n[%s]\n\n", coltitle, sql);
+ }
goto bail_with_handle;
}
if (strcasecmp(coltitle, "msgnum") && strcasecmp(coltitle, "dir")) {
@@ -9527,7 +9530,9 @@ static int play_message(struct ast_channel *chan, struct ast_vm_user *vmu, struc
@@ -9527,7 +9529,9 @@ static int play_message(struct ast_channel *chan, struct ast_vm_user *vmu, struc
}
#endif
if ((res = wait_file(chan, vms, vms->fn)) < 0) {

Loading…
Cancel
Save