[asterisk-commits] pcadach: trunk r43495 - in /trunk/channels/h323: caps_h323.cxx compat_h323.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Sep 22 12:54:21 MST 2006


Author: pcadach
Date: Fri Sep 22 14:54:20 2006
New Revision: 43495

URL: http://svn.digium.com/view/asterisk?rev=43495&view=rev
Log:
Fix our capability's factory

Modified:
    trunk/channels/h323/caps_h323.cxx
    trunk/channels/h323/compat_h323.h

Modified: trunk/channels/h323/caps_h323.cxx
URL: http://svn.digium.com/view/asterisk/trunk/channels/h323/caps_h323.cxx?rev=43495&r1=43494&r2=43495&view=diff
==============================================================================
--- trunk/channels/h323/caps_h323.cxx (original)
+++ trunk/channels/h323/caps_h323.cxx Fri Sep 22 14:54:20 2006
@@ -1,6 +1,7 @@
 #include <ptlib.h>
 #include <h323.h>
 #include <h245.h>
+#include "ast_h323.h"
 #include "caps_h323.h"
 
 #define DEFINE_G711_CAPABILITY(cls, code, capName) \

Modified: trunk/channels/h323/compat_h323.h
URL: http://svn.digium.com/view/asterisk/trunk/channels/h323/compat_h323.h?rev=43495&r1=43494&r2=43495&view=diff
==============================================================================
--- trunk/channels/h323/compat_h323.h (original)
+++ trunk/channels/h323/compat_h323.h Fri Sep 22 14:54:20 2006
@@ -52,7 +52,7 @@
 class MyPFactory: public PFactory<_Abstract_T, _Key_T>
 {
 public:
-	template <class _Contrete_T> class Worker: public PFactory<_Abstract_T, _Key_T>::WorkerBase
+	template <class _Concrete_T> class Worker: public PFactory<_Abstract_T, _Key_T>::WorkerBase
 	{
 	public:
 		Worker(const _Key_T &_key, bool singleton = false)
@@ -64,6 +64,8 @@
 		{
 			PFactory<_Abstract_T, _Key_T>::Unregister(key);
 		}
+	protected:
+		virtual _Abstract_T *Create(const _Key_T &) const { return new _Concrete_T; }
 
 	private:
 		PString key;



More information about the asterisk-commits mailing list