diff --git a/pjmedia/include/pjmedia/config.h b/pjmedia/include/pjmedia/config.h index 4325858b6..8408f0ae8 100644 --- a/pjmedia/include/pjmedia/config.h +++ b/pjmedia/include/pjmedia/config.h @@ -65,12 +65,21 @@ #endif /** - * Memory increment for evnt manager. + * Memory increment for event manager. */ #ifndef PJMEDIA_POOL_INC_EVTMGR # define PJMEDIA_POOL_INC_EVTMGR 500 #endif +/** + * Maximum number of events that can be handled by event manager. + * + * Default: 16 + */ +#ifndef PJMEDIA_EVENT_MAX_EVENTS +# define PJMEDIA_EVENT_MAX_EVENTS 16 +#endif + /** * Specify whether we prefer to use audio switch board rather than * conference bridge. diff --git a/pjmedia/src/pjmedia/event.c b/pjmedia/src/pjmedia/event.c index 30ae9ce31..30500848c 100644 --- a/pjmedia/src/pjmedia/event.c +++ b/pjmedia/src/pjmedia/event.c @@ -15,6 +15,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include #include #include #include @@ -26,7 +27,7 @@ #define THIS_FILE "event.c" -#define MAX_EVENTS 16 +#define MAX_EVENTS PJMEDIA_EVENT_MAX_EVENTS /* Enable some tracing */ // #define EVENT_TRACE