mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
app_minivm.c: Fix malformed ast_json_pack() call.
Change-Id: I082b239022fac462666e52a14a44304748908dc0
This commit is contained in:
@@ -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));
|
mwi_state->snapshot = ast_channel_snapshot_get_latest(ast_channel_uniqueid(chan));
|
||||||
|
|
||||||
json_object = ast_json_pack("{s: s, s: s}",
|
json_object = ast_json_pack("{s: s, s: s, s: s}",
|
||||||
"Event", "MiniVoiceMail"
|
"Event", "MiniVoiceMail",
|
||||||
"Action", "SentNotification",
|
"Action", "SentNotification",
|
||||||
"Counter", counter);
|
"Counter", counter ?: "");
|
||||||
if (!json_object) {
|
if (!json_object) {
|
||||||
goto notify_cleanup;
|
goto notify_cleanup;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user