Nope, the ast_db_get return -1 on failure.
The code is ok.
Sergio
asterisk_on_oelf ha scritto:
>
> Is it possible, that you mean:
>
> "if (!ast_db_get("SCCP", d->id, result, sizeof(result))) {"
>
> instead of
>
> "if (ast_db_get("SCCP", d->id, result, sizeof(result))) {"
>
> in line 222 sccp_utils.c