diff options
author | Jonathan Rose <jrose@digium.com> | 2012-03-29 20:01:20 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2012-03-29 20:01:20 +0000 |
commit | 655a8d44200a53f97254e7a250b0835e8fb3a9f6 (patch) | |
tree | 280a6b0607ecb586b6e8f41bf41c2a559b6c5972 /main/pbx.c | |
parent | d501c2ea2d56ece966b6615799dd7b66198176dd (diff) |
Introducing the log message unique call identifiers feature
Log messages will now display a call number that they are tied to (ordered for calls
based on when they started). This feature is made to be minimally invasive without
requiring changes to many of the existing log messages. These IDs won't show up for
verbose messages on CLI (but they will in log files) This is currently in phase II
of production, see more about this feature on the wiki --
https://wiki.asterisk.org/wiki/display/AST/Unique+Call-ID+Logging
Review: https://reviewboard.asterisk.org/r/1823/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@360787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c index 17d941fa2..cdeccaf9d 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -5486,6 +5486,11 @@ static void *pbx_thread(void *data) */ struct ast_channel *c = data; + /* Associate new PBX thread with a call-id */ + struct ast_callid *callid = ast_create_callid(); + ast_callid_threadassoc_add(callid); + callid = ast_callid_unref(callid); + __ast_pbx_run(c, NULL); decrease_call_count(); |