[Asterisk-cvs] asterisk config.c,1.29,1.30
markster at lists.digium.com
markster at lists.digium.com
Thu Oct 7 15:56:35 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv19554
Modified Files:
config.c
Log Message:
Oops, we have to be able to pass multiple restrictions for when we go to voicemail...
Index: config.c
===================================================================
RCS file: /usr/cvsroot/asterisk/config.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- config.c 5 Oct 2004 06:46:11 -0000 1.29
+++ config.c 7 Oct 2004 19:57:50 -0000 1.30
@@ -416,15 +416,19 @@
}
-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, ...)
More information about the svn-commits
mailing list