Maximum PBX stack exceeded

I’m having this message in my asterisk sip server but don’t know exactly why ?
I’ve found this issue :
but not sure how to correct my problem

In my case, I have more than 128 contexts and many sip extensions for each context.
I use more than 128 different contexts because one sip extension in context 1 must not be able to call a sip extension in the context 2…

How can i do? Do i have to compile asterisk with a bigger stack (AST_PBX_MAX_STACK)?
Is there an other way?

Thanks for any help

No ideas?