Merged revisions 14523 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Thu, 23 Mar 2006 22:00:11 +0000 (22:00 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 23 Mar 2006 22:00:11 +0000 (22:00 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r14523 | file | 2006-03-23 17:51:50 -0400 (Thu, 23 Mar 2006) | 2 lines

Issue #6764 - Return BUSY signal when other party is busy at Attended Transfer (Reported by mnachev)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14525 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_features.c

index 7f2bdac..0787ec8 100644 (file)
@@ -1123,6 +1123,9 @@ static struct ast_channel *ast_feature_request_and_dial(struct ast_channel *call
                                                        ast_indicate(caller, AST_CONTROL_RINGING);
                                                } else if ((f->subclass == AST_CONTROL_BUSY) || (f->subclass == AST_CONTROL_CONGESTION)) {
                                                        state = f->subclass;
+                                                       if (option_verbose > 2)
+                                                               ast_verbose( VERBOSE_PREFIX_3 "%s is busy\n", chan->name);
+                                                       ast_indicate(caller, AST_CONTROL_BUSY);
                                                        ast_frfree(f);
                                                        f = NULL;
                                                        break;