aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-24 22:07:11 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-24 22:07:11 +0000
commitef55792f03676458d725bfc4aeda38147997b86c (patch)
tree3af0ebf648f8f5e647a44eb4ee55ecb86641739c
parent7afb48003cda98d5330bd5635b173c9df54cda2d (diff)
Merged revisions 265451 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r265451 | mmichelson | 2010-05-24 17:05:15 -0500 (Mon, 24 May 2010) | 8 lines Print openh323 log to the Asterisk console. (closes issue #17109) Reported by: under Patches: logstream.diff uploaded by under (license 914) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@265452 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/h323/ast_h323.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/h323/ast_h323.cxx b/channels/h323/ast_h323.cxx
index e98592d7d..c068389f8 100644
--- a/channels/h323/ast_h323.cxx
+++ b/channels/h323/ast_h323.cxx
@@ -2257,6 +2257,7 @@ void h323_end_point_create(void)
{
channelsOpen = 0;
logstream = new PAsteriskLog();
+ PTrace::SetStream(logstream);
endPoint = new MyH323EndPoint();
}
@@ -2672,6 +2673,7 @@ void h323_end_process(void)
close(_timerChangePipe[1]);
#endif
if (logstream) {
+ PTrace::SetStream(NULL);
delete logstream;
logstream = NULL;
}