]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix AST_CONTROL_PVT_CAUSE_CODE handling
authorKinsey Moore <kmoore@digium.com>
Mon, 18 Jun 2012 22:56:01 +0000 (22:56 +0000)
committerKinsey Moore <kmoore@digium.com>
Mon, 18 Jun 2012 22:56:01 +0000 (22:56 +0000)
When the IAX2 Who Hung Up? changes were added, they uncovered a bug in
the way AST_CONTROL_PVT_CAUSE_CODE was handled in
feature_request_and_dial().  This particular frame subtype was being
treated like more terminal control frames causing the function to be
exited prematurely.

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

main/features.c

index ff56757dc08c641050e3fe76d3136a509957c018..3a813cd2d0e41e5b72852901a0ab6c43b685769a 100644 (file)
@@ -3939,8 +3939,6 @@ static struct ast_channel *feature_request_and_dial(struct ast_channel *caller,
                                        break;
                                } else if (f->subclass.integer == AST_CONTROL_PVT_CAUSE_CODE) {
                                        ast_indicate_data(caller, AST_CONTROL_PVT_CAUSE_CODE, f->data.ptr, f->datalen);
-                                       ast_frfree(f);
-                                       break;
                                } else if (f->subclass.integer == AST_CONTROL_CONNECTED_LINE) {
                                        if (caller_hungup) {
                                                struct ast_party_connected_line connected;