[asterisk-users] Crash when reloading AEL

Tobias plyschen at gmail.com
Mon Mar 9 08:37:02 CDT 2009


Hello list,

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:

voip-1*CLI> ael reload
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk ending (0).
root at voip-1:/etc/asterisk#

As far as I can see, aelparse can't find any errors in my configuration,
following output is from aelparse:

root at voip-1:/etc/asterisk# aelparse -n -q
LOG: lev:4 file:ael2_parse  line:543 func: main  29 contexts, 18 extensions,
532 priorities
root at voip-1:/etc/asterisk# asterisk

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.

context contexta {

  _X. => {
    NoOp(Check where to send the call);
    ifTime(0:00-4:59|mon-fri|*|*) {
      Playback(prompts/SwitchClosedRT_);
    } else ifTime(5:00-6:29|mon-fri|*|*) {
      jump ${EXTEN}@context1;
    } else ifTime(6:30-18:59|mon-thu|*|*) {
      jump ${EXTEN}@context2;
    } else ifTime(6:30-21:59|fri|*|*) {
      jump ${EXTEN}@context2;
    } else ifTime(19:00-23:59|mon-thu|*|*) {
      jump ${EXTEN}@context1;
    } else ifTime(22:00-23:59|fri|*|*) {
      jump ${EXTEN}@context1;
    } else ifTime(0:00-9:59|sat|*|*) {
      jump ${EXTEN}@context1;
    } else ifTime(10:00-21:59|sat|*|*) {
      jump ${EXTEN}@context2;
    } else ifTime(22:00-23:59|sat|*|*) {
      jump ${EXTEN}@context1;
    } else ifTime(0:00-9:59|sun|*|*) {
      jump ${EXTEN}@context1;
    } else ifTime(10:00-18:59|sun|*|*) {
      jump ${EXTEN}@context2;
    } else ifTime(19:00-23:59|sun|*|*) {
      jump ${EXTEN}@context1;
    } else {
      NoOp(something's wrong);
    }
  }

}

context contextb {

  _X. => {
    NoOp(Check where to send the call);
    ifTime(0:00-6:29|mon-fri|*|*) {
      Playback(prompts/SwitchClosed_);
      VoiceMail(1000|s);
    } else ifTime(6:30-17:59|mon-fri|*|*) {
      jump ${EXTEN}@context2;
    } else ifTime(18:00-23:59|mon-fri|*|*) {
      Playback(prompts/SwitchClosed_);
      VoiceMail(1000|s);
    } else ifTime(0:00-23:59|sat|*|*) {
      Playback(prompts/SwitchClosed_);
      VoiceMail(1000|s);
    } else ifTime(0:00-9:59|sun|*|*) {
      Playback(prompts/SwitchClosed_);
      VoiceMail(1000|s);
    } else ifTime(10:00-17:59|sun|*|*) {
      jump ${EXTEN}@context2;
    } else ifTime(18:00-23:59|sun|*|*) {
      Playback(prompts/SwitchClosed_);
      VoiceMail(1000|s);
    } else {
      NoOp(something's wrong);
    }
  }

}

context contextc {

  _X. => {
    NoOp(Check where to send the call);
    ifTime(0:00-6:29|mon-thu|*|*) {
      Playback(prompts/SwitchClosed_);
      VoiceMail(1000|s);
    } else ifTime(6:30-18:59|mon-thu|*|*) {
      jump ${EXTEN}@context2;
    } else ifTime(19:00-23:59|mon-thu|*|*) {
      Playback(prompts/SwitchClosed_);
      VoiceMail(1000|s);
    } else ifTime(0:00-6:29|fri|*|*) {
      Playback(prompts/SwitchClosed_);
      VoiceMail(1000|s);
    } else ifTime(6:30-21:59|fri|*|*) {
      jump ${EXTEN}@context2;
    } else ifTime(22:00-23:59|fri|*|*) {
      Playback(prompts/SwitchClosed_);
      VoiceMail(1000|s);
    } else ifTime(0:00-9:59|sat|*|*) {
      Playback(prompts/SwitchClosed_);
      VoiceMail(1000|s);
    } else ifTime(10:00-21:59|sat|*|*) {
      jump ${EXTEN}@context2;
    } else ifTime(22:00-23:59|sat|*|*) {
      Playback(prompts/SwitchClosed_);
      VoiceMail(1000|s);
    } else ifTime(0:00-9:59|sun|*|*) {
      Playback(prompts/SwitchClosed_);
      VoiceMail(1000|s);
    } else ifTime(10:00-18:59|sun|*|*) {
      jump ${EXTEN}@context2;
    } else ifTime(19:00-23:59|sun|*|*) {
      Playback(prompts/SwitchClosed_);
      VoiceMail(1000|s);
    } else {
      NoOp(something's wrong);
    }
  }

}

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?

Thanks,
Best regards,
Tobias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090309/26111158/attachment.htm 


More information about the asterisk-users mailing list