Merge "res_ari: Add "module loaded" check to ari stubs" into 13

This commit is contained in:
Jenkins2
2017-06-16 10:57:43 -05:00
committed by Gerrit Code Review
13 changed files with 91 additions and 27 deletions
+10
View File
@@ -266,4 +266,14 @@ void ast_ari_response_created(struct ast_ari_response *response,
*/
void ast_ari_response_alloc_failed(struct ast_ari_response *response);
/*! \brief Determines whether the res_ari module is loaded */
#define CHECK_ARI_MODULE_LOADED() \
do { \
if (!ast_module_check("res_ari.so") \
|| !ast_ari_oom_json()) { \
return AST_MODULE_LOAD_DECLINE; \
} \
} while(0)
#endif /* _ASTERISK_ARI_H */