]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make sure we del any remaining connections (bug #2982)
authorRussell Bryant <russell@russellbryant.com>
Tue, 21 Dec 2004 20:10:06 +0000 (20:10 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 21 Dec 2004 20:10:06 +0000 (20:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4514 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_mgcp.c

index 630806efb874d68f9088bd7fb7c6a266008298d7..2f96ed934bf39ed16d9f80d27719d8fe0aac6176 100755 (executable)
@@ -3044,9 +3044,13 @@ static int handle_request(struct mgcp_subchannel *sub, struct mgcp_request *req,
                 } else {
                     /* SC: verbose level check */
                     if (option_verbose > 2) {
-                        ast_verbose(VERBOSE_PREFIX_3 "MGCP handle_request(%s@%s-%d) ast_channel already destroyed\n", 
-                                    p->name, p->parent->name, sub->id);
+                        ast_verbose(VERBOSE_PREFIX_3 "MGCP handle_request(%s@%s-%d) ast_channel already destroyed, resending DLCX.\n",
+                            p->name, p->parent->name, sub->id);
                     }
+                    /* Instruct the other side to remove the connection since it apparently *
+                     * still thinks the channel is active. *
+                     * For Cisco IAD2421 /BAK/ */
+                    transmit_connection_del(sub);
                 }
             }
             if ((p->hookstate == MGCP_ONHOOK) && (!sub->rtp) && (!sub->next->rtp)) {