Philipp Kempgen
2008-Jun-02 20:15 UTC
[asterisk-users] ast_compile_ael2: Warning: file /etc/asterisk/extensions.ael, line 932-932: Empty Extension!
On starting Asterisk (1.4) I get a whole bunch of WARNING[5858]: pbx_ael.c:4040 ast_compile_ael2: Warning: file /etc/asterisk/extensions.ael, line 932-932: Empty Extension! I find it a bit disturbing that this message has a level of WARNING (instead of NOTICE maybe) because the extensions in question are empty on purpose. The only reason they exist are the hints. hint(SIP/3000) 3000 => {} hint(SIP/4000) 4000 => {} ... All the "real" dialplan stuff is in _Z. => { // do something ... } Maybe the error level should be lowered so the user is not mislead into thinking something was broken? Or is there a way to do it which does not trigger the warnings? Gr??e, Philipp Kempgen -- http://www.das-asterisk-buch.de - http://www.the-asterisk-book.com Amooma GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Philipp Kempgen
2008-Jun-03 13:47 UTC
[asterisk-users] ast_compile_ael2: Warning: file /etc/asterisk/extensions.ael, line 932-932: Empty Extension!
Philipp Kempgen schrieb:> On starting Asterisk (1.4) I get a whole bunch of > WARNING[5858]: pbx_ael.c:4040 ast_compile_ael2: Warning: file /etc/asterisk/extensions.ael, line 932-932: Empty Extension! > > I find it a bit disturbing that this message has a level of WARNING > (instead of NOTICE maybe) because the extensions in question are > empty on purpose. The only reason they exist are the hints. > > hint(SIP/3000) 3000 => {} > hint(SIP/4000) 4000 => {} > ... > > All the "real" dialplan stuff is in > _Z. => { > // do something ... > } > > Maybe the error level should be lowered so the user is not mislead > into thinking something was broken? > Or is there a way to do it which does not trigger the warnings?I would have expected others to have the same "problem". Is AEL really that much uncommon? Strange ... Gr??e, Philipp Kempgen -- http://www.das-asterisk-buch.de - http://www.the-asterisk-book.com Amooma GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Steve Murphy
2008-Jun-03 14:32 UTC
[asterisk-users] ast_compile_ael2: Warning: file /etc/asterisk/extensions.ael, line 932-932: Empty Extension!
On Mon, 2008-06-02 at 22:15 +0200, Philipp Kempgen wrote:> On starting Asterisk (1.4) I get a whole bunch of > WARNING[5858]: pbx_ael.c:4040 ast_compile_ael2: Warning: file /etc/asterisk/extensions.ael, line 932-932: Empty Extension! > > I find it a bit disturbing that this message has a level of WARNING > (instead of NOTICE maybe) because the extensions in question are > empty on purpose. The only reason they exist are the hints. > > hint(SIP/3000) 3000 => {} > hint(SIP/4000) 4000 => {} > ... > > All the "real" dialplan stuff is in > _Z. => { > // do something ... > } > > Maybe the error level should be lowered so the user is not mislead > into thinking something was broken? > Or is there a way to do it which does not trigger the warnings? > > Gr??e, > Philipp KempgenPhilipp-- I understand your frustration. I inserted this message because, basically, in extensions.conf format, you cannot specify an empty extension. And, in the internally stored dialplan, you cannot have an extension that does not have a priority, because the two concepts are bound into one internally-- a priority and extension are literally stored in the same struct (ast_exten, iirc). So, my code prints a warning, and fills in the priority with a call to NoOp(). Now, in the end, it doesn't matter at all what the internal representation is, or what the package is doing deep inside. So, unless users in general object, I will go ahead and just remove this warning. What a compiler has to do underneath to make your code work/palatable is not necessarily of interest to you. murf -- Steve Murphy Software Developer Digium -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3227 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080603/75f765ea/attachment-0001.bin