[asterisk-bugs] [Asterisk 0009785]: [patch] Add 'e' extension to handle application errors

noreply at bugs.digium.com noreply at bugs.digium.com
Sun Sep 23 05:32:03 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=9785 
====================================================================== 
Reported By:                mnicholson
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   9785
Category:                   Core/General
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 65675 
Disclaimer on File?:        Yes 
Request Review:              
====================================================================== 
Date Submitted:             05-23-2007 14:10 CDT
Last Modified:              09-23-2007 05:32 CDT
====================================================================== 
Summary:                    [patch] Add 'e' extension to handle application
errors
Description: 
Currently when an application encounters an error asterisk hangs up the
channel.  This patch adds a special 'e' extension (like the 'i' extension)
to gracefully handle these errors instead of hanging up the channel.

This patch defines three new macros: AST_PBX_HANGUP (-1), AST_PBX_OK (0),
and AST_PBX_ERROR (1).  If an application returns AST_PBX_ERROR then the
'e' extension is triggered.

If an application executing on the 'e' exten encounters an error, the call
is terminated similar to how errors are handled now.
====================================================================== 

---------------------------------------------------------------------- 
 mvanbaak - 09-23-07 05:32  
---------------------------------------------------------------------- 
Oops, remind me to add -enable-dev-mode when testing patches.
This one wont compile with that configure option:
   [CC] pbx.c -> pbx.o
cc1: warnings being treated as errors
pbx.c: In function '__ast_pbx_run':
pbx.c:2461: warning: ISO C90 forbids mixed declarations and code
pbx.c:2521: warning: ISO C90 forbids mixed declarations and code
make[1]: *** [pbx.o] Error 1
make: *** [main] Error 2 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-23-07 05:32  mvanbaak       Note Added: 0070984                          
======================================================================




More information about the asterisk-bugs mailing list