diff options
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c index 0d6df930a..006549c12 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -9202,6 +9202,14 @@ static void *async_wait(void *data) struct ast_frame *f; struct ast_app *app; + if (chan) { + struct ast_callid *callid = ast_channel_callid(chan); + if (callid) { + ast_callid_threadassoc_add(callid); + ast_callid_unref(callid); + } + } + while (timeout && (ast_channel_state(chan) != AST_STATE_UP)) { res = ast_waitfor(chan, timeout); if (res < 1) |