aboutsummaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-07 19:57:50 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-07 19:57:50 +0000
commit4b70e1861c45067a12e7e7bbc0016595dedaceae (patch)
tree89532a9b97c1cd3fdab1835ab275faf4b3f79ffc /config.c
parent4557e78ccd38f08042dce76cd360d5a6bbf46596 (diff)
Oops, we have to be able to pass multiple restrictions for when we go to voicemail...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3937 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'config.c')
-rwxr-xr-xconfig.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/config.c b/config.c
index 5c972298a..9de46a18f 100755
--- a/config.c
+++ b/config.c
@@ -416,15 +416,19 @@ int ast_save(char *configfile, struct ast_config *cfg, char *generator)
}
-struct ast_variable *ast_load_realtime(const char *family, const char *keyfield, const char *lookup)
+struct ast_variable *ast_load_realtime(const char *family, ...)
{
struct ast_config_reg *reg;
char db[256]="";
char table[256]="";
+ struct ast_variable *res=NULL;
+ va_list ap;
+ va_start(ap, family);
reg = get_ast_cust_config_keyword(family, db, sizeof(db), table, sizeof(table));
if (reg && reg->realtime_func)
- return reg->realtime_func(db, table, keyfield, lookup);
- return NULL;
+ res = reg->realtime_func(db, table, ap);
+ va_end(ap);
+ return res;
}
int ast_update_realtime(const char *family, const char *keyfield, const char *lookup, ...)