]> 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:14 +0000 (16:01 +0000)
commit94748d0cd304362de3d2540488ab7ec89ed70279
treee845dd0f1cf60548f746b5dfe3ba6500a7c7d028
parentdbc628373de0b960af4b8df3afb5696807267920
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