Hangup calling channel when transferring peer
authorMark Spencer <markster@digium.com>
Sun, 23 Nov 2003 23:33:56 +0000 (23:33 +0000)
committerMark Spencer <markster@digium.com>
Sun, 23 Nov 2003 23:33:56 +0000 (23:33 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1786 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_parking.c

index ada9723..49168e1 100755 (executable)
@@ -355,6 +355,7 @@ int ast_bridge_call(struct ast_channel *chan, struct ast_channel *peer, int allo
                                                                ,transferee->name, newext, transferer_real_context);
                                                if (ast_async_goto(transferee, transferer_real_context, newext, 1, 1))
                                                        ast_log(LOG_WARNING, "Async goto fialed :(\n");
+                                               res = -1;
                                        } else {
                                                /* Set the channel's new extension, since it exists, using transferer context */
                                                strncpy(transferee->exten, newext, sizeof(transferee->exten)-1);