Summary:ASTERISK-03557: Square brackets in pattern matching produces pbx_config : out of stack
Reporter:al3x (al3x)Labels:
Date Opened:2005-02-22 02:23:01.000-0600Date Closed:2011-06-07 14:10:03
Versions:Frequency of
Description:I have blocks of extensions
0103-0112,0113-0139 which I have to forward.
Constructions like
exten => _010[3456789],Transfer(0101)
exten => _011[13-9],Goto(myiax,0101,1)
exten => _012[0-9],Goto(myiax,0101,1)
exten => _013[0-9],Goto(myiax,0101,1)

produces following warnings (and doesn't work)

Feb 22 00:06:16 WARNING[4956]: pbx.c:715 pbx_find_extension: Maximum PBX stack exceeded                                                                        
I don't really see anything offending in the patterns.                    

Comments:By: Olle Johansson (oej) 2005-02-22 07:43:57.000-0600

You have no priority set.

By: al3x (al3x) 2005-02-22 08:57:25.000-0600

/me very ashamead of making fool of himself - that what happens when you are changing dial plan in a hurry at 3 am - please close this.
Speaking of priorities though I was wondering why asterisk core system is so unforgiving - why can't I have non-cosecutive numbering of priorities? Wouldn't it make configuration much easier if it will be possible to comment some priorities out w/o breaking the extension configuration?
Something like 2,3,4,102 or even 1,3,5,102 should make the same sense as strict consecutive prio numbering starting from 1.

By: Kevin P. Fleming (kpfleming) 2005-02-22 09:02:42.000-0600

In CVS HEAD there are already ways to label and auto-number priorities, which allow for the effects you are asking for.