Re: [OpenSIPStack] Server implementation question
Brought to you by:
joegenbaclor
From: <jo...@op...> - 2007-11-23 08:26:30
|
Hi Thomas, You need to create your custom transports as descendant of=20 SIPTransport. You would then need to override the following Virtual=20 Method in SIPTransportManager to return an instance fo your custom transp= ort SIPTransport * SIPTransportManager::OnCreateTransport( const char * userAgentName, SIPTransport::Protocol protocol ) { if( protocol =3D=3D SIPTransport::UDP ) return new SIPUDPTransport( userAgentName, this ); else if( protocol =3D=3D SIPTransport::TCP ) return new SIPTCPTransport( userAgentName, this ); return NULL; } Hope that helps. Joegen Thomas Raschbacher wrote: > Hi, > > If I wanted to use a custom transport without changing opensipstackcode= itself (ie it being in a different library and just sending events to th= e stack when it receives / sends/sent messages) how would I best do that?= (Need to use existing transports in non (L)GPL application, but want to = use as much of opensipstack as possible - the parser itself is no problem= of course, but I'd like to use a higher 'level' than just that which als= o implements timers and responses like TRYING, ...) > > Regards, > > Mit freundlichen Gr=FC=DFen > Thomas Raschbacher > ____________________________________________ > itCampus Technology GmbH > =D6sterreich * Deutschland * Italien > Wehlistra=DFe 27b > 1200 Wien > tho...@it... > Tel: +43 (1) 33418557-58 > Fax: +43 (1) 33418557-958 > http://www.itctec.com > UID: ATU 6339 0618 > Firmenbuchnr: FN292598t, Handelsgericht Wien > Gesch=E4ftsf=FChrer: Andreas G=FCnser, Andreas Lassmann > Joint Venture von itCampus und MEC > > itCampus Gruppe > Deutschland * Gro=DFbritannien * Italien * =D6sterreich * Schweiz * Slo= wakei > http://www.itcampus.eu > > > -----------------------------------------------------------------------= -- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > > =20 |