[Freeswitch-users] RECURSIVE ERROR

Rodrigo Pinto rodrigopintomendez at hotmail.com
Wed Jun 5 23:18:54 MSD 2013


Hello,

We recently migrated to latest stable version 1.2.9. And in the console
this error is appearing randomly:

2013-06-05 18:14:00.089079 [ERR] switch_ivr.c:144 RECURSION ERROR! It's
not the best idea to call things that collect input recursively from an
input callback.

I see that this version has this check in ./include/switch_types.h:

#define MAX_ARG_RECURSION 25

#define arg_recursion_check_start(_args) if (_args)
{                                   \
                 if (_args->loops >= MAX_ARG_RECURSION)
{                                                \
                         switch_log_printf(SWITCH_CHANNEL_LOG,
SWITCH_LOG_ERROR,         \
                                                           "RECURSION
ERROR!  It's not the best idea to call things that collect input
recursively from an input callback.\n"); \
                         return SWITCH_STATUS_GENERR; \
                 } else {_args->loops++;} \
         }


Any idea how to easily increase MAX_ARG_RECURSION or disable it like
older versions?

Thanks!








Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list