]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_voicemail: Fix sql insert mismatch caused by cherry-pick
authorJean-Denis Girard <jd.girard@sysnux.pf>
Wed, 7 Aug 2024 16:38:09 +0000 (06:38 -1000)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 12 Sep 2024 18:44:38 +0000 (18:44 +0000)
commitbeee92c9095b6c666014f5d2b84d168dda394fc3
tree42428900aad862024f4d1ff2026e3f6c5b54c06b
parent8fdcbf61ceb764cca6d7d35e99602ff405dff6b5
app_voicemail: Fix sql insert mismatch caused by cherry-pick

When commit e8c9cb80 was cherry-picked in from master, the
fact that the 20 and 18 branches still had the old "macrocontext"
column wasn't taken into account so the number of named parameters
didn't match the number of '?' placeholders.  They do now.

We also now use ast_asprintf to create the full mailbox query SQL
statement instead of trying to calculate the proper length ourselves.

Resolves: #831
(cherry picked from commit 83b378349945ba5de0c2dfdc19a7dd4c6aed0102)
apps/app_voicemail.c