Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mensaje erróneo al borrar desde la consola de Asterisk #2

Open
Hector92 opened this issue Jul 4, 2016 · 0 comments
Open

Mensaje erróneo al borrar desde la consola de Asterisk #2

Hector92 opened this issue Jul 4, 2016 · 0 comments

Comments

@Hector92
Copy link

Hector92 commented Jul 4, 2016

Buenas,
Al borrar desde la consola de Asterisk una entrada que no existe se obtiene el mensaje:

Redis database entry removed.

Así que no está entrando en el if de la línea 708

708 } else if (replyHaveError(reply)) {
709 ast_cli(args->fd, "%s\n", reply->str);
710 ast_cli(args->fd, "Redis database entry does not exist.\n"); // Nunca se muestra

Usando un if del tipo al que se define en la función function_redis_delete en la línea 623 sí se obtiene el resultado desdeado:

623 } else if (reply->integer == 0){
624 ast_cli(args->fd, "Redis database entry does not exist.\n");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant