]> 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)
committerJean-Denis Girard <jd.girard@sysnux.pf>
Wed, 4 Sep 2024 16:01:07 +0000 (16:01 +0000)
commit83b378349945ba5de0c2dfdc19a7dd4c6aed0102
tree73c969b2f33e3d94694241e717ec814108fcf524
parentcf5a6435c2b135dd38413ded04cbd9ed9ff6fb53
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
apps/app_voicemail.c