git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Kevin P. Fleming 20 years ago
parent 86c7ad9217
commit ab7ae00513

@ -390,8 +390,8 @@ static int app_exec(struct ast_channel *chan, void *data)
u->list_cleared = 1; u->list_cleared = 1;
entry = make_entry(&input[2]); entry = make_entry(&input[2]);
if (entry) if (entry)
AST_LIST_UNLOCK(&u->playlist); AST_LIST_INSERT_TAIL(&u->playlist, entry, list);
AST_LIST_INSERT_TAIL(&u->playlist, entry, list); AST_LIST_UNLOCK(&u->playlist);
} else if (input[0] == 'A') { } else if (input[0] == 'A') {
if (ast_fileexists(&input[2], NULL, NULL) == -1) { if (ast_fileexists(&input[2], NULL, NULL) == -1) {
fprintf(child_events, "Z,%10ld\n", time(NULL)); fprintf(child_events, "Z,%10ld\n", time(NULL));

Loading…
Cancel
Save