diff options
author | Mark Spencer <markster@digium.com> | 2004-06-23 20:46:58 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-06-23 20:46:58 +0000 |
commit | 27bb1601d3b4a03d8e3e862fbe9f77405020c828 (patch) | |
tree | 6017ecef1fd34abe376703c2628f0c870eb8cbbb /pbx.c | |
parent | da49f53b666438c5bde2e72bc2b6243f931cdebd (diff) |
Generate "failed" context on busy, too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3942,7 +3942,9 @@ int ast_pbx_outgoing_exten(char *type, int format, void *data, int timeout, char ast_verbose(VERBOSE_PREFIX_4 "Channel %s was never answered.\n", chan->name); ast_hangup(chan); } - } else { + } + + if(res < 0) { /* the call failed for some reason */ /* create a fake channel and execute the "failed" extension (if it exists) within the requested context */ /* check if "failed" exists */ if (ast_exists_extension(chan, context, "failed", 1, NULL)) { |