aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-23 20:46:58 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-23 20:46:58 +0000
commit8a1e6d8f24be2c0a33121e9d637cfc6bca8f1821 (patch)
tree6017ecef1fd34abe376703c2628f0c870eb8cbbb /pbx.c
parent8ab8cc4d260c0ab4c04308ee4ce71ea5d436f0cd (diff)
Generate "failed" context on busy, too
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3290 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pbx.c b/pbx.c
index 697c016f2..4d9696244 100755
--- a/pbx.c
+++ b/pbx.c
@@ -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)) {