From: Mark Spencer Date: Sat, 25 Oct 2003 17:41:02 +0000 (+0000) Subject: Fix *8# magically (bug #116) X-Git-Tag: 0.7.0~347 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77003fea94d395c06f6de8fb809db0bc94d7c537;p=thirdparty%2Fasterisk.git Fix *8# magically (bug #116) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1665 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 34847fc89d..5427977aef 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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;