mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
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
This commit is contained in:
@@ -2257,6 +2257,7 @@ void h323_end_point_create(void)
|
|||||||
{
|
{
|
||||||
channelsOpen = 0;
|
channelsOpen = 0;
|
||||||
logstream = new PAsteriskLog();
|
logstream = new PAsteriskLog();
|
||||||
|
PTrace::SetStream(logstream);
|
||||||
endPoint = new MyH323EndPoint();
|
endPoint = new MyH323EndPoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2672,6 +2673,7 @@ void h323_end_process(void)
|
|||||||
close(_timerChangePipe[1]);
|
close(_timerChangePipe[1]);
|
||||||
#endif
|
#endif
|
||||||
if (logstream) {
|
if (logstream) {
|
||||||
|
PTrace::SetStream(NULL);
|
||||||
delete logstream;
|
delete logstream;
|
||||||
logstream = NULL;
|
logstream = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user