]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 265451 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Mon, 24 May 2010 22:07:11 +0000 (22:07 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 24 May 2010 22:07:11 +0000 (22:07 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265452 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/h323/ast_h323.cxx

index e98592d7d052019a3ce846391d9326cae4e0dda7..c068389f8cab61b2a29e2525f6fc895bfc53c17b 100644 (file)
@@ -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;
        }