Fix mgcp oopsie...
authorMark Spencer <markster@digium.com>
Mon, 15 Nov 2004 14:29:15 +0000 (14:29 +0000)
committerMark Spencer <markster@digium.com>
Mon, 15 Nov 2004 14:29:15 +0000 (14:29 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4256 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_mgcp.c

index e25a0b2..e53eb61 100755 (executable)
@@ -2334,13 +2334,13 @@ static void handle_response(struct mgcp_endpoint *p, struct mgcp_subchannel *sub
             if (p->sub->next->owner) {
                 ast_log(LOG_NOTICE, "Terminating on result %d from %s@%s-%d\n", 
                         result, p->name, p->parent->name, sub ? sub->id:-1);
-                mgcp_queue_hangup(sub);
+                mgcp_queue_hangup(p->sub);
             }
 
             if (p->sub->owner) {
                 ast_log(LOG_NOTICE, "Terminating on result %d from %s@%s-%d\n", 
                         result, p->name, p->parent->name, sub ? sub->id:-1);
-                mgcp_queue_hangup(sub);
+                mgcp_queue_hangup(p->sub);
             }
 
             dump_cmd_queues(p, NULL);