--- app_meetme.c.orig 2004-11-25 10:27:22.000000000 -0800 +++ app_meetme.c 2005-02-09 11:34:55.567988442 -0800 @@ -155,6 +155,8 @@ #define CONFFLAG_EXIT_CONTEXT (1 << 12) /* If set, the MeetMe will exit to the specified context */ #define CONFFLAG_MARKEDUSER (1 << 13) /* If set, the user will be marked */ +/*--- count_exec: The MeetmeCount application */ +static int count_exec(struct ast_channel *chan, void *data); static int careful_write(int fd, unsigned char *data, int len) { @@ -883,6 +885,11 @@ ast_waitstream(chan, ""); } break; + case '3': /* announce the number of users */ + menu_active = 0; + if (count_exec(chan, conf->confno)) + ast_log(LOG_WARNING, "Error counting confernece members\n"); + break; default: menu_active = 0; /* Play an error message! */ @@ -926,6 +933,11 @@ ast_waitstream(chan, ""); } break; + case '3': /* announce the number of users */ + menu_active = 0; + if (count_exec(chan, conf->confno)) + ast_log(LOG_WARNING, "Error counting confernece members\n"); + break; default: menu_active = 0; /* Play an error message! */