diff --git a/apps/app_minivm.c b/apps/app_minivm.c index e97150b137c6128e0a9ce8840d07b4f045e826d9..c84b7d7dd637c338de1f8d12e78a9776a42ed683 100644 --- a/apps/app_minivm.c +++ b/apps/app_minivm.c @@ -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; }