< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] Using DUM to perform an invite with non-SDP body


On 9/7/05, Alan Stokes <alan@xxxxxxxxxxxxxxxxx> wrote:
> I'm just starting to get my head round resiprocate/DUM, so please bear with
> me if this is all a bit obvious:
>  
>  I'm looking at DialogUsageManager, InviteSession and InviteSessionHandler.
> The functions for initiating an invite session all seem to pass around the
> contents of the INVITE and the responses to it as an SdpContents * (eg
> initialOffer). Is it possible to initiate or reply to an INVITE using a
> different, non-SDP contents type?

This is an interesting point. What non-SDP contents were you planning
on using in your INVITE?

As currently implemented, InviteSession and InviteSessionHandler are
very much tied to SDP and offer/answer exchanges. If you want to make
new session types that are based on different contents, you would be
best off deriving a new Session class from DialogUsage. and also
making up a new Handler class. Depending on what it looks like, it
might be possible to refactor and put some of the code from
InviteSession in a common base class.