From dbc588b02f0da1caffc53faffd0a91b8f3047907 Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Wed, 3 Jul 2013 19:46:50 +0000 Subject: Fix load errors related to the new ari_model_validators. The Asterisk strategy of loading modules with RTLD_LAZY to extract metadata from the module works well enough, until you try to take the address of a function. If a module takes the address of a function, that function needs to be resolved at load time. That kinda defeats RTLD_LAZY. This patch adds some ari_validator_{id}_fn() wrapper functions for safely getting the function pointer from a different module. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393576 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_stasis_http_recordings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'res/res_stasis_http_recordings.c') diff --git a/res/res_stasis_http_recordings.c b/res/res_stasis_http_recordings.c index 5b8043251..e09ccbdb3 100644 --- a/res/res_stasis_http_recordings.c +++ b/res/res_stasis_http_recordings.c @@ -76,7 +76,7 @@ static void stasis_http_get_stored_recordings_cb( default: if (200 <= code && code <= 299) { is_valid = ari_validate_list(response->message, - ari_validate_stored_recording); + ari_validate_stored_recording_fn()); } else { ast_log(LOG_ERROR, "Invalid error response %d for /recordings/stored\n", code); is_valid = 0; @@ -218,7 +218,7 @@ static void stasis_http_get_live_recordings_cb( default: if (200 <= code && code <= 299) { is_valid = ari_validate_list(response->message, - ari_validate_live_recording); + ari_validate_live_recording_fn()); } else { ast_log(LOG_ERROR, "Invalid error response %d for /recordings/live\n", code); is_valid = 0; -- cgit v1.2.3