Thread: [OpenSIPStack] How set content type and body?
Brought to you by:
joegenbaclor
From: Matthias D. <mdr...@gm...> - 2008-04-14 05:53:52
|
Hi everyone, is it possible to set a content type when making a call with the help of opal manager? I want to set my own content type and body. Regards, M. Dreißig |
From: <jo...@op...> - 2008-04-14 06:43:33
|
You will need to implement your own subclass of CallSessionManager and CallSession for you to be able to do this cleanly. You need to implement your own override of BOOL CallSession::MakeCall( const SIPURI & uri, const OString & sdp ); It might be possible to do it in OPAL but you will need to modify the behavior of the media callbacks to ignore none existence of media channels. I wouldn't advise it. Matthias Dreißig wrote: > Hi everyone, > > is it possible to set a content type when making a call with the help of > opal manager? I want to set my own content type and body. > > Regards, > M. Dreißig > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > > |
From: Matthias D. <mdr...@gm...> - 2008-04-15 06:34:28
|
Thanks for fast your answer. And if I want to adapt the registration I have to implement a subclass of RegisterSessionManager and RegisterSession, am I right? Regards, M. Dreißig jo...@op... schrieb: > You will need to implement your own subclass of CallSessionManager and > CallSession for you to be able to do this cleanly. > > You need to implement your own override of > > BOOL CallSession::MakeCall( > const SIPURI & uri, > const OString & sdp > ); > > > It might be possible to do it in OPAL but you will need to modify the > behavior of the media callbacks to ignore none existence of media > channels. I wouldn't advise it. > > > Matthias Dreißig wrote: > >> Hi everyone, >> >> is it possible to set a content type when making a call with the help of >> opal manager? I want to set my own content type and body. >> >> Regards, >> M. Dreißig >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> >> >> > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > |
From: Joegen E. B. <joe...@gm...> - 2008-04-15 06:49:29
|
Matthias Dreißig wrote: > Thanks for fast your answer. > > And if I want to adapt the registration I have to implement a subclass > of RegisterSessionManager and RegisterSession, am I right? > Right. If you need to modify the behavior of the RegisterSession, then you may also subclass it. However, if you don't need to, just sub-classing RegisterSessionManager would be ok too. All the necessary callbacks for authentication of each session is already exposed in the manager. Take a look at OpalOSSEndPoint.cxx specifically OpalOSSRegistrar class for a sample implementation. > Regards, > M. Dreißig > > jo...@op... schrieb: > >> You will need to implement your own subclass of CallSessionManager and >> CallSession for you to be able to do this cleanly. >> >> You need to implement your own override of >> >> BOOL CallSession::MakeCall( >> const SIPURI & uri, >> const OString & sdp >> ); >> >> >> It might be possible to do it in OPAL but you will need to modify the >> behavior of the media callbacks to ignore none existence of media >> channels. I wouldn't advise it. >> >> >> Matthias Dreißig wrote: >> >> >>> Hi everyone, >>> >>> is it possible to set a content type when making a call with the help of >>> opal manager? I want to set my own content type and body. >>> >>> Regards, >>> M. Dreißig >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>> Don't miss this year's exciting event. There's still time to save $100. >>> Use priority code J8TL2D2. >>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>> _______________________________________________ >>> opensipstack-devel mailing list >>> ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>> >>> >>> >>> >>> >>> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > |
From: Matthias D. <mdr...@gm...> - 2008-05-15 19:25:51
|
Hi, I successful did my changes, thanks for your help. Now I have the problem that on shutting down the application the library is not terminated correctly (clean). There are five threads that are terminated with exit code 1. That are the housekeeper and the garbage collector threads. On shut down I call already ClearAllCalls(); if( sipEndPoint != NULL ) { sipEndPoint->GetUserAgent()->GetStack().Terminate(); } // Shut down the cleaner thread garbageCollectExit.Signal(); garbageCollector->WaitForTermination(); Can someone help me? Thanks. M.Dreißig Joegen E. Baclor schrieb: > Matthias Dreißig wrote: > >> Thanks for fast your answer. >> >> And if I want to adapt the registration I have to implement a subclass >> of RegisterSessionManager and RegisterSession, am I right? >> >> > > Right. If you need to modify the behavior of the RegisterSession, then > you may also subclass it. However, if you don't need to, just > sub-classing RegisterSessionManager would be ok too. All the necessary > callbacks for authentication of each session is already exposed in the > manager. Take a look at OpalOSSEndPoint.cxx specifically > OpalOSSRegistrar class for a sample implementation. > > >> Regards, >> M. Dreißig >> >> jo...@op... schrieb: >> >> >>> You will need to implement your own subclass of CallSessionManager and >>> CallSession for you to be able to do this cleanly. >>> >>> You need to implement your own override of >>> >>> BOOL CallSession::MakeCall( >>> const SIPURI & uri, >>> const OString & sdp >>> ); >>> >>> >>> It might be possible to do it in OPAL but you will need to modify the >>> behavior of the media callbacks to ignore none existence of media >>> channels. I wouldn't advise it. >>> >>> >>> Matthias Dreißig wrote: >>> >>> >>> >>>> Hi everyone, >>>> >>>> is it possible to set a content type when making a call with the help of >>>> opal manager? I want to set my own content type and body. >>>> >>>> Regards, >>>> M. Dreißig >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>>> Don't miss this year's exciting event. There's still time to save $100. >>>> Use priority code J8TL2D2. >>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>>> _______________________________________________ >>>> opensipstack-devel mailing list >>>> ope...@li... >>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>> Don't miss this year's exciting event. There's still time to save $100. >>> Use priority code J8TL2D2. >>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>> _______________________________________________ >>> opensipstack-devel mailing list >>> ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>> >>> >>> >>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> >> > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > |
From: Matthias D. <mdr...@gm...> - 2008-05-16 05:32:43
|
By the way to use my own RegisterSessionManager and CallSessionManager I had to change the members of OpalOSSUserAgent from private to protected. All other classes have protected members. Regards M. Dreißig Joegen E. Baclor schrieb: > Matthias Dreißig wrote: > >> Thanks for fast your answer. >> >> And if I want to adapt the registration I have to implement a subclass >> of RegisterSessionManager and RegisterSession, am I right? >> >> > > Right. If you need to modify the behavior of the RegisterSession, then > you may also subclass it. However, if you don't need to, just > sub-classing RegisterSessionManager would be ok too. All the necessary > callbacks for authentication of each session is already exposed in the > manager. Take a look at OpalOSSEndPoint.cxx specifically > OpalOSSRegistrar class for a sample implementation. > > >> Regards, >> M. Dreißig >> >> jo...@op... schrieb: >> >> >>> You will need to implement your own subclass of CallSessionManager and >>> CallSession for you to be able to do this cleanly. >>> >>> You need to implement your own override of >>> >>> BOOL CallSession::MakeCall( >>> const SIPURI & uri, >>> const OString & sdp >>> ); >>> >>> >>> It might be possible to do it in OPAL but you will need to modify the >>> behavior of the media callbacks to ignore none existence of media >>> channels. I wouldn't advise it. >>> >>> >>> Matthias Dreißig wrote: >>> >>> >>> >>>> Hi everyone, >>>> >>>> is it possible to set a content type when making a call with the help of >>>> opal manager? I want to set my own content type and body. >>>> >>>> Regards, >>>> M. Dreißig >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>>> Don't miss this year's exciting event. There's still time to save $100. >>>> Use priority code J8TL2D2. >>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>>> _______________________________________________ >>>> opensipstack-devel mailing list >>>> ope...@li... >>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>> Don't miss this year's exciting event. There's still time to save $100. >>> Use priority code J8TL2D2. >>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>> _______________________________________________ >>> opensipstack-devel mailing list >>> ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>> >>> >>> >>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> >> > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > |