aboutsummaryrefslogtreecommitdiffstats
path: root/cdr
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-02 17:10:50 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-02 17:10:50 +0000
commit64c47fc59d08227e402cd2177d8ea8a23064f289 (patch)
tree8fef696a254988ddb7ce5e5ba9414a130635b739 /cdr
parent47d7b5c6e6f748cdf9696b5441d4c18baf3b5d4a (diff)
a)In chan_zap, set the clid, src fields in channel_alloc call. b)in the channel_alloc func, set the cid_num and name fields from the arglist[blush]. c) don't update the channel app & app data fields if you are in the 'h' extension. d)the load_module func in cdr_radius needs to return DECLINE, SUCCESS.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@62689 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr')
-rw-r--r--cdr/cdr_radius.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/cdr/cdr_radius.c b/cdr/cdr_radius.c
index 51563fabf..9f9a4470a 100644
--- a/cdr/cdr_radius.c
+++ b/cdr/cdr_radius.c
@@ -238,6 +238,7 @@ static int unload_module(void)
static int load_module(void)
{
struct ast_config *cfg;
+ int res;
const char *tmp;
if ((cfg = ast_config_load(cdr_config))) {
@@ -256,16 +257,17 @@ static int load_module(void)
/* read radiusclient-ng config file */
if (!(rh = rc_read_config(radiuscfg))) {
ast_log(LOG_NOTICE, "Cannot load radiusclient-ng configuration file %s.\n", radiuscfg);
- return -1;
+ return AST_MODULE_LOAD_DECLINE;
}
/* read radiusclient-ng dictionaries */
if (rc_read_dictionary(rh, rc_conf_str(rh, "dictionary"))) {
ast_log(LOG_NOTICE, "Cannot load radiusclient-ng dictionary file.\n");
- return -1;
+ return AST_MODULE_LOAD_DECLINE;
}
- return ast_cdr_register(name, desc, radius_log);
+ res = ast_cdr_register(name, desc, radius_log);
+ return AST_MODULE_LOAD_SUCCESS;
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "RADIUS CDR Backend");