[svn-commits] pcadach: branch pcadach/chan_h323-live r40382 - /team/pcadach/chan_h323-live/...

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Aug 18 05:51:59 MST 2006


Author: pcadach
Date: Fri Aug 18 07:51:58 2006
New Revision: 40382

URL: http://svn.digium.com/view/asterisk?rev=40382&view=rev
Log:
Workaround for missing 'visualizer' for CallEndReason type if PTRACING is not defined

Modified:
    team/pcadach/chan_h323-live/channels/h323/ast_h323.cpp

Modified: team/pcadach/chan_h323-live/channels/h323/ast_h323.cpp
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/channels/h323/ast_h323.cpp?rev=40382&r1=40381&r2=40382&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/channels/h323/ast_h323.cpp (original)
+++ team/pcadach/chan_h323-live/channels/h323/ast_h323.cpp Fri Aug 18 07:51:58 2006
@@ -444,7 +444,11 @@
 BOOL MyH323EndPoint::ClearCall(const PString & token, H323Connection::CallEndReason reason)
 {
 	if (h323debug) {
+#ifdef PTRACING
 		cout << "\t-- ClearCall: Request to clear call with token " << token << ", cause " << reason << endl;
+#else
+		cout << "\t-- ClearCall: Request to clear call with token " << token << ", cause [" << (int)reason << "]" << endl;
+#endif
 	}
 	return H323EndPoint::ClearCall(token, reason);
 }
@@ -600,9 +604,13 @@
 			}
 			break;
 		default:
-			if (h323debug)
+			if (h323debug) {
+#ifdef PTRACING
 				cout << " -- Call with " << remoteName << " completed (" << connection.GetCallEndReason() << ")" << endl;
-
+#else
+				cout << " -- Call with " << remoteName << " completed ([" << (int)connection.GetCallEndReason() << "])" << endl;
+#endif
+			}
 	}
 
 	if (connection.IsEstablished()) {



More information about the svn-commits mailing list