dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 124182 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r124182 | tilghman | 2008-06-19 17:53:22 -0500 (Thu, 19 Jun 2008) | 7 lines

It's possible for a hangup to be received, even just after the initial cid
spill.
(closes issue #12453)
 Reported by: Alex728
 Patches: 
       20080604__bug12453.diff.txt uploaded by Corydon76 (license 14)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@124183 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2008-06-19 22:59:41 +00:00
parent 292186f8a8
commit eacf6a6f4b
1 changed files with 5 additions and 1 deletions

View File

@ -6881,7 +6881,11 @@ static void *ss_thread(void *data)
ast_hangup(chan);
return NULL;
}
f = ast_read(chan);
if (!(f = ast_read(chan))) {
ast_log(LOG_WARNING, "Hangup received waiting for ring. Exiting simple switch\n");
ast_hangup(chan);
return NULL;
}
ast_frfree(f);
if (chan->_state == AST_STATE_RING ||
chan->_state == AST_STATE_RINGING)