app_minivm.c: Fix malformed ast_json_pack() call.

Change-Id: I082b239022fac462666e52a14a44304748908dc0
This commit is contained in:
Richard Mudgett
2016-10-12 16:22:34 -05:00
parent 3633c7926c
commit ee4ae2b648

View 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;
}