Guest
Aug 28, 2008 5:12 AM
[OpenSIPStack] OpalOSSEndPoint change request
Hello Joegen,
I have a change request. If it's ok please commit the changes. Patch
files are in attachment.
Motivation: With my changes it's possible to set your own subclassed
OpalOSSUserAgent and SessionManager. The default behavior is the same
as before.
Matthias
Index: OpalOSSEndPoint.h
===================================================================
RCS file: /cvsroot/opensipstack/opensipstack/include/OpalOSSEndPoint.h,v
retrieving revision 1.43
diff -u -r1.43 OpalOSSEndPoint.h
@@ -218,7 +218,7 @@
public:
OpalOSSEndPoint(
);
virtual ~OpalOSSEndPoint();
@@ -435,7 +435,7 @@
public:
OpalOSSUserAgent(
);
virtual ~OpalOSSUserAgent();
Index: OpalOSSEndPoint.cxx
===================================================================
RCS file: /cvsroot/opensipstack/opensipstack/src/OpalOSSEndPoint.cxx,v
retrieving revision 1.58
diff -u -r1.58 OpalOSSEndPoint.cxx
@@ -463,12 +463,16 @@
///////////////////////////////////////////////////////////////////
OpalOSSEndPoint::OpalOSSEndPoint(
) : OpalEndPoint( manager, OPAL_OSS_PREFIX, CanTerminateCall )
{
m_RegisterExpires = PTimeInterval( 0, 3600 );
m_IsRegistered = FALSE;
+
+ if (createUserAgent) {
+ m_OSSUserAgent = new OpalOSSUserAgent( *this );
+ }
}
OpalOSSEndPoint::~OpalOSSEndPoint()
@@ -1168,12 +1172,18 @@
OpalOSSUserAgent::OpalOSSUserAgent(
) : SIPUserAgent( "OPAL" ), m_OpalEndPoint( ep )
{
+ m_Registrar = NULL;
+ m_RFC3680Client = NULL;
+
+ if (createSessionManager) {
+ m_Core = new OpalOSSCore( *this, m_OpalEndPoint );
+ m_Registrar = new OpalOSSRegistrar( *this, m_OpalEndPoint );
+ m_RFC3680Client = new RFC3680Client( *this );
+ }
}
OpalOSSUserAgent::~OpalOSSUserAgent()
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
opensipstack-devel mailing list
opensipstack-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel
I have a change request. If it's ok please commit the changes. Patch
files are in attachment.
Motivation: With my changes it's possible to set your own subclassed
OpalOSSUserAgent and SessionManager. The default behavior is the same
as before.
Matthias
Index: OpalOSSEndPoint.h
===================================================================
RCS file: /cvsroot/opensipstack/opensipstack/include/OpalOSSEndPoint.h,v
retrieving revision 1.43
diff -u -r1.43 OpalOSSEndPoint.h
- OpalOSSEndPoint.h 4 Jun 2008 05:54:45 -0000 1.43
@@ -218,7 +218,7 @@
public:
OpalOSSEndPoint(
- OpalManager & manager
);
virtual ~OpalOSSEndPoint();
@@ -435,7 +435,7 @@
public:
OpalOSSUserAgent(
- OpalOSSEndPoint & ep
);
virtual ~OpalOSSUserAgent();
Index: OpalOSSEndPoint.cxx
===================================================================
RCS file: /cvsroot/opensipstack/opensipstack/src/OpalOSSEndPoint.cxx,v
retrieving revision 1.58
diff -u -r1.58 OpalOSSEndPoint.cxx
- OpalOSSEndPoint.cxx 4 Jun 2008 02:55:34 -0000 1.58
@@ -463,12 +463,16 @@
///////////////////////////////////////////////////////////////////
OpalOSSEndPoint::OpalOSSEndPoint(
- OpalManager & manager
) : OpalEndPoint( manager, OPAL_OSS_PREFIX, CanTerminateCall )
{
m_RegisterExpires = PTimeInterval( 0, 3600 );
m_IsRegistered = FALSE;
- m_OSSUserAgent = new OpalOSSUserAgent( *this );
+
+ if (createUserAgent) {
+ m_OSSUserAgent = new OpalOSSUserAgent( *this );
+ }
}
OpalOSSEndPoint::~OpalOSSEndPoint()
@@ -1168,12 +1172,18 @@
OpalOSSUserAgent::OpalOSSUserAgent(
- OpalOSSEndPoint & ep
) : SIPUserAgent( "OPAL" ), m_OpalEndPoint( ep )
{
- m_Core = new OpalOSSCore( *this, ep );
- m_Registrar = new OpalOSSRegistrar( *this, ep );
- m_RFC3680Client = new RFC3680Client( *this );
+ m_Registrar = NULL;
+ m_RFC3680Client = NULL;
+
+ if (createSessionManager) {
+ m_Core = new OpalOSSCore( *this, m_OpalEndPoint );
+ m_Registrar = new OpalOSSRegistrar( *this, m_OpalEndPoint );
+ m_RFC3680Client = new RFC3680Client( *this );
+ }
}
OpalOSSUserAgent::~OpalOSSUserAgent()
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
opensipstack-devel mailing list
opensipstack-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel









