]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_minivm.c: Fix malformed ast_json_pack() call. 89/4089/1
authorRichard Mudgett <rmudgett@digium.com>
Wed, 12 Oct 2016 21:22:34 +0000 (16:22 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 13 Oct 2016 20:40:09 +0000 (15:40 -0500)
Change-Id: I082b239022fac462666e52a14a44304748908dc0

apps/app_minivm.c

index fb7c22aa4c813cb16366b0305e930cbe13d1daea..789a48aab682d4770974c16198f08843128c791f 100644 (file)
@@ -1853,10 +1853,10 @@ static int notify_new_message(struct ast_channel *chan, const char *templatename
        }
        mwi_state->snapshot = ast_channel_snapshot_get_latest(ast_channel_uniqueid(chan));
 
-       json_object = ast_json_pack("{s: s, s: s}",
-                       "Event", "MiniVoiceMail"
-                       "Action", "SentNotification",
-                       "Counter", counter);
+       json_object = ast_json_pack("{s: s, s: s, s: s}",
+               "Event", "MiniVoiceMail",
+               "Action", "SentNotification",
+               "Counter", counter ?: "");
        if (!json_object) {
                goto notify_cleanup;
        }