#include <pjsip.h>
#include <pjsip_ua.h>
+
#include "asterisk/res_pjsip.h"
#include "include/res_pjsip_private.h"
#include "asterisk/res_pjsip_cli.h"
if (ast_cli_register_multiple(cli_commands, ARRAY_LEN(cli_commands))) {
ast_log(LOG_ERROR, "Failed to register pjsip cli commands.\n");
- ast_hashtab_destroy(formatter_registry, ast_free);
+ ast_hashtab_destroy(formatter_registry, ast_free_ptr);
return -1;
}
sip_sorcery = sorcery;
{
ast_cli_unregister_multiple(cli_commands, ARRAY_LEN(cli_commands));
if (formatter_registry) {
- ast_hashtab_destroy(formatter_registry, ast_free);
+ ast_hashtab_destroy(formatter_registry, ast_free_ptr);
}
}