#
#gsm
+# Enable polling in main loop.
+# This feature is temporarily for test purpose. Don't enable it
+#polling
usleep(10000);
}
#else
- select_main(0, NULL, NULL, NULL);
+ if (options.polling)
+ if (!select_main(1, NULL, NULL, NULL))
+ usleep(10000);
+ else
+ select_main(0, NULL, NULL, NULL);
#endif
}
SPRINT(tracetext, "%s terminated", NAME);
0700, /* rights of lcr admin socket */
-1, /* socket user (-1= no change) */
-1, /* socket group (-1= no change) */
- 0 /* enable gsm */
+ 0, /* enable gsm */
+ 1 /* use polling of main loop */
};
char options_error[256];
} else
if (!strcmp(option,"gsm")) {
options.gsm = 1;
+ } else
+ if (!strcmp(option,"polling")) {
+ options.polling = 1;
} else {
UPRINT(options_error, "Error in %s (line %d): wrong option keyword %s.\n", filename,line,option);
goto error;
int socketuser; /* socket chown to this user */
int socketgroup; /* socket chgrp to this group */
int gsm; /* enable gsm support */
+ int polling;
};
extern struct options options;
- neuen partyline-param dokumentieren
- aufzeichnung der ansage mit 0 ohne beep beenden
- gain, pipeline, crypt
-
+- polling