|
@@ -287,13 +287,15 @@ musicclass = queuemusic\n\
|
|
exit(1);
|
|
exit(1);
|
|
}
|
|
}
|
|
g_res = mysql_store_result(g_conn); // 从服务器传送结果集至本地,mysql_use_result直接使用服务器上的记录集
|
|
g_res = mysql_store_result(g_conn); // 从服务器传送结果集至本地,mysql_use_result直接使用服务器上的记录集
|
|
|
|
+ memset(dialrule, '\0', sizeof(dialrule));
|
|
while ((g_row=mysql_fetch_row(g_res))){ // 打印结果集
|
|
while ((g_row=mysql_fetch_row(g_res))){ // 打印结果集
|
|
if (g_row[0] == NULL){
|
|
if (g_row[0] == NULL){
|
|
printf("some feild is empty!\n");
|
|
printf("some feild is empty!\n");
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
- sprintf(dialrule, "include => phones-group-%s\n", g_row[0]);
|
|
|
|
|
|
+ sprintf(strtmp,"include => paging-group-%s\n", g_row[0]);
|
|
|
|
+ strcat(dialrule, strtmp);
|
|
|
|
|
|
if(paging)
|
|
if(paging)
|
|
{
|
|
{
|