Fix *8# magically (bug #116)
authorMark Spencer <markster@digium.com>
Sat, 25 Oct 2003 17:41:02 +0000 (17:41 +0000)
committerMark Spencer <markster@digium.com>
Sat, 25 Oct 2003 17:41:02 +0000 (17:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1665 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 34847fc..5427977 100755 (executable)
@@ -5020,6 +5020,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
                                                c = NULL;
                                        } else {
                                                ast_mutex_unlock(&p->lock);
+                                               ast_setstate(c, AST_STATE_DOWN);
                                                ast_hangup(c);
                                                ast_mutex_lock(&p->lock);
                                                c = NULL;