it's a good idea to unregister everything before calling STANDARD_HANGUP_LOCALUSERS

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2005-10-18 22:52:21 +00:00
parent 907fd55883
commit 29829640bf
85 changed files with 672 additions and 226 deletions

View File

@@ -204,22 +204,31 @@ struct ast_custom_function acf_curl = {
.synopsis = "Retrieves the contents of a URL",
.syntax = "CURL(url[|post-data])",
.desc =
" url - URL to retrieve\n"
" post-data - Optional data to send as a POST (GET is default action)\n",
" url - URL to retrieve\n"
" post-data - Optional data to send as a POST (GET is default action)\n",
.read = acf_curl_exec,
};
int unload_module(void)
{
int res;
res = ast_custom_function_unregister(&acf_curl);
res |= ast_unregister_application(app);
STANDARD_HANGUP_LOCALUSERS;
ast_custom_function_unregister(&acf_curl);
return ast_unregister_application(app);
return res;
}
int load_module(void)
{
ast_custom_function_register(&acf_curl);
return ast_register_application(app, curl_exec, synopsis, descrip);
int res;
res = ast_custom_function_register(&acf_curl);
res |= ast_register_application(app, curl_exec, synopsis, descrip);
return res;
}
char *description(void)