5 Replies Last post: May 16, 2008 1:32 AM by Guest  
Guest

Apr 14, 2008 1:53 AM

[OpenSIPStack] How set content type and body?

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
opensipstack-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel
Guest
1. Apr 14, 2008 2:43 AM in response to: Guest
Re: [OpenSIPStack] How set content type and body?
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
opensipstack-devel@lists.sourceforge.net
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
opensipstack-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel
Guest
2. Apr 15, 2008 2:34 AM in response to: Guest
Re: [OpenSIPStack] How set content type and body?
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

joegen@opensipstack.org 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
opensipstack-devel@lists.sourceforge.net
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
opensipstack-devel@lists.sourceforge.net
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
opensipstack-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel
Guest
3. Apr 15, 2008 2:49 AM in response to: Guest
Re: [OpenSIPStack] How set content type and body?

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

joegen@opensipstack.org 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
opensipstack-devel@lists.sourceforge.net
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
opensipstack-devel@lists.sourceforge.net
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
opensipstack-devel@lists.sourceforge.net
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
opensipstack-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel
Guest
4. May 15, 2008 3:24 PM in response to: Guest
Re: [OpenSIPStack] How set content type and body?
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

joegen@opensipstack.org 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
opensipstack-devel@lists.sourceforge.net
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
opensipstack-devel@lists.sourceforge.net
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
opensipstack-devel@lists.sourceforge.net
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
opensipstack-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel



This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
opensipstack-devel mailing list
opensipstack-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel
Guest
5. May 16, 2008 1:32 AM in response to: Guest
Re: [OpenSIPStack] How set content type and body?
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

joegen@opensipstack.org 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
opensipstack-devel@lists.sourceforge.net
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
opensipstack-devel@lists.sourceforge.net
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
opensipstack-devel@lists.sourceforge.net
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
opensipstack-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel



This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
opensipstack-devel mailing list
opensipstack-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel