If we fail to start a thread for the pbx to run in, we need to

be sure to decrease the number of active calls on the system.

This fix may relate to ABE-1713, but it is not certain yet.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@162265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Mark Michelson 17 years ago
parent 8582a3e924
commit b234c024a0

@ -2645,6 +2645,7 @@ enum ast_pbx_result ast_pbx_start(struct ast_channel *c)
if (ast_pthread_create(&t, &attr, pbx_thread, c)) {
ast_log(LOG_WARNING, "Failed to create new channel thread\n");
pthread_attr_destroy(&attr);
decrease_call_count();
return AST_PBX_FAILED;
}
pthread_attr_destroy(&attr);

Loading…
Cancel
Save