Hello list, <br><br>I have this strange problem whenever I try to make an "ael reload" from the Asterisk CLI. The command gives the following result and crashes: <br><br>voip-1*CLI> ael reload<br>Disconnected from Asterisk server<br>
Executing last minute cleanups<br>Asterisk ending (0).<br>root@voip-1:/etc/asterisk#<br><br>As far as I can see, aelparse can't find any errors in my configuration, following output is from aelparse:<br><br>root@voip-1:/etc/asterisk# aelparse -n -q<br>
LOG: lev:4 file:ael2_parse line:543 func: main 29 contexts, 18 extensions, 532 priorities<br>root@voip-1:/etc/asterisk# asterisk<br><br>I've narrowed the error down to three contexts with a bunch of ifTime()-statements. If I delete or make the following contexts empty "ael reload" works just like it should. <br>
<br>context contexta {<br><br> _X. => {<br> NoOp(Check where to send the call);<br> ifTime(0:00-4:59|mon-fri|*|*) {<br> Playback(prompts/SwitchClosedRT_);<br> } else ifTime(5:00-6:29|mon-fri|*|*) {<br> jump ${EXTEN}@context1;<br>
} else ifTime(6:30-18:59|mon-thu|*|*) {<br> jump ${EXTEN}@context2;<br> } else ifTime(6:30-21:59|fri|*|*) {<br> jump ${EXTEN}@context2;<br> } else ifTime(19:00-23:59|mon-thu|*|*) {<br> jump ${EXTEN}@context1;<br>
} else ifTime(22:00-23:59|fri|*|*) {<br> jump ${EXTEN}@context1;<br> } else ifTime(0:00-9:59|sat|*|*) {<br> jump ${EXTEN}@context1;<br> } else ifTime(10:00-21:59|sat|*|*) {<br> jump ${EXTEN}@context2;<br>
} else ifTime(22:00-23:59|sat|*|*) {<br> jump ${EXTEN}@context1;<br> } else ifTime(0:00-9:59|sun|*|*) {<br> jump ${EXTEN}@context1;<br> } else ifTime(10:00-18:59|sun|*|*) {<br> jump ${EXTEN}@context2;<br>
} else ifTime(19:00-23:59|sun|*|*) {<br> jump ${EXTEN}@context1;<br> } else {<br> NoOp(something's wrong);<br> }<br> }<br><br>}<br><br>context contextb {<br><br> _X. => {<br> NoOp(Check where to send the call);<br>
ifTime(0:00-6:29|mon-fri|*|*) {<br> Playback(prompts/SwitchClosed_);<br> VoiceMail(1000|s);<br> } else ifTime(6:30-17:59|mon-fri|*|*) {<br> jump ${EXTEN}@context2;<br> } else ifTime(18:00-23:59|mon-fri|*|*) {<br>
Playback(prompts/SwitchClosed_);<br> VoiceMail(1000|s);<br> } else ifTime(0:00-23:59|sat|*|*) {<br> Playback(prompts/SwitchClosed_);<br> VoiceMail(1000|s);<br> } else ifTime(0:00-9:59|sun|*|*) {<br>
Playback(prompts/SwitchClosed_);<br> VoiceMail(1000|s);<br> } else ifTime(10:00-17:59|sun|*|*) {<br> jump ${EXTEN}@context2;<br> } else ifTime(18:00-23:59|sun|*|*) {<br> Playback(prompts/SwitchClosed_);<br>
VoiceMail(1000|s);<br> } else {<br> NoOp(something's wrong);<br> }<br> }<br><br>}<br><br>context contextc {<br><br> _X. => {<br> NoOp(Check where to send the call);<br> ifTime(0:00-6:29|mon-thu|*|*) {<br>
Playback(prompts/SwitchClosed_);<br> VoiceMail(1000|s);<br> } else ifTime(6:30-18:59|mon-thu|*|*) {<br> jump ${EXTEN}@context2;<br> } else ifTime(19:00-23:59|mon-thu|*|*) {<br> Playback(prompts/SwitchClosed_);<br>
VoiceMail(1000|s);<br> } else ifTime(0:00-6:29|fri|*|*) {<br> Playback(prompts/SwitchClosed_);<br> VoiceMail(1000|s);<br> } else ifTime(6:30-21:59|fri|*|*) {<br> jump ${EXTEN}@context2;<br> } else ifTime(22:00-23:59|fri|*|*) {<br>
Playback(prompts/SwitchClosed_);<br> VoiceMail(1000|s);<br> } else ifTime(0:00-9:59|sat|*|*) {<br> Playback(prompts/SwitchClosed_);<br> VoiceMail(1000|s);<br> } else ifTime(10:00-21:59|sat|*|*) {<br>
jump ${EXTEN}@context2;<br> } else ifTime(22:00-23:59|sat|*|*) {<br> Playback(prompts/SwitchClosed_);<br> VoiceMail(1000|s);<br> } else ifTime(0:00-9:59|sun|*|*) {<br> Playback(prompts/SwitchClosed_);<br>
VoiceMail(1000|s);<br> } else ifTime(10:00-18:59|sun|*|*) {<br> jump ${EXTEN}@context2;<br> } else ifTime(19:00-23:59|sun|*|*) {<br> Playback(prompts/SwitchClosed_);<br> VoiceMail(1000|s);<br> } else {<br>
NoOp(something's wrong);<br> }<br> }<br><br>}<br><br>I'm running Asterisk 1.4.22, but I've tried 1.4.23.1 and seen the same behaviour in that. Has anyone any ideas on what could be wrong here?<br><br>
Thanks, <br>Best regards, <br>Tobias<br>