Re: [OpenSIPStack] Server implementation question
Brought to you by:
joegenbaclor
From: Joegen E. B. <joe...@gm...> - 2007-11-23 08:39:19
|
Thomas, BTW, OpenSIPStack default license is MPL 1.1 not GPL/LGPL. If you are=20 afraid that the modification below will render your proprietary code=20 violating the license, do not worry. The only thing covered by the MPL=20 is the modification done to OpenSIPStack alone and not your entire=20 application. Thus, If you indeed deploy your own transport, then the=20 code block below is the only thing you are obliged to make open or=20 contribute back to OpenSIPStack. Can you share why you want to use=20 another transport though? Joegen jo...@op... wrote: > 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 tran= sport > > 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: > =20 >> Hi, >> >> If I wanted to use a custom transport without changing opensipstackcod= e itself (ie it being in a different library and just sending events to t= he 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 proble= m of course, but I'd like to use a higher 'level' than just that which al= so 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 * Sl= owakei >> 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 >> =20 > > > > -----------------------------------------------------------------------= -- > 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 |