mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Update security document, work on threading with pbx.c and small SIP fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
5
pbx.c
5
pbx.c
@@ -4044,7 +4044,10 @@ int ast_pbx_outgoing_app(char *type, int format, void *data, int timeout, char *
|
||||
if (appdata)
|
||||
strncpy(as->appdata, appdata, sizeof(as->appdata) - 1);
|
||||
as->timeout = timeout;
|
||||
if (pthread_create(&as->p, NULL, async_wait, as)) {
|
||||
/* Start a new thread, and get something handling this channel. */
|
||||
pthread_attr_init(&attr);
|
||||
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
|
||||
if (pthread_create(&as->p, &attr, async_wait, as)) {
|
||||
ast_log(LOG_WARNING, "Failed to start async wait\n");
|
||||
free(as);
|
||||
ast_hangup(chan);
|
||||
|
Reference in New Issue
Block a user