Maximum PBX stack exceeded

We use a separate #includes in our extensions.conf file for each customer and the customer.extensions.conf files also has some #includes in it. Apparently this causes the parser in the pbx command to overflow, with the warning message shown below. The files still load, but I’d like to get rid of the warnings.

  1. Can someone point me to the file where the parser is - I think it is pbc_config.c.

  2. If that’s the file, I’d like to allocate more memory to the parser. Can someone give me a jumpstart here?

WARNING[9253]: pbx.c:794 pbx_find_extension: Maximum PBX stack exceeded