That's strange. With your code my asterisk crashs everytime a new device tries to register. I thought, that's because ast_db_get returns nothing or NULL. (-1 will be returned if dbinit() fails.)
Jens
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_______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
