From: Mark Michelson Date: Mon, 24 May 2010 22:05:15 +0000 (+0000) Subject: Print openh323 log to the Asterisk console. X-Git-Tag: 11.0.0-beta1~2975 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5be9d22473aa965309f3b05ae2a1b8be2c85af2;p=thirdparty%2Fasterisk.git Print openh323 log to the Asterisk console. (closes issue #17109) Reported by: under Patches: logstream.diff uploaded by under (license 914) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@265451 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/h323/ast_h323.cxx b/channels/h323/ast_h323.cxx index e98592d7d0..c068389f8c 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; }