Summary:ASTERISK-00636: Add extension "e" for error handling
Reporter:atacomm (atacomm)Labels:
Date Opened:2003-12-07 12:57:56.000-0600Date Closed:2011-06-07 14:05:22
Versions:Frequency of
Description:Several commands such as Background and Goto hangup upon failure and do not provide a method of handling the error.  I am suggestioning adding a special extension of "e" for error handling, allowing one to attempt to recover if something during the execution fails.  e is not a recommended path for a replacement to n+101 on things such as Dial, and is only being suggested for errors in reading/executing the extensions file.
Comments:By: ww (ww) 2003-12-07 16:04:38.000-0600

can you produce a patch that implements this?

By: Tilghman Lesher (tilghman) 2003-12-07 20:10:24.000-0600

Bad idea.  In many places, -1 is returned for out of memory conditions.  You could get a death spiral taking down the machine (as an application in extension e also returns -1, invoking extension e again, ad infinitum), instead of just hanging up the call.

Handling critical errors should probably be done in C in the core code, not optionally in the dialplan.

By: Brian West (bkw918) 2003-12-08 22:53:58.000-0600

I agree.