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

Re: [reSIProcate] how to get ServerInviteSession from AppDialog


FF> Now, when something else happens, I need to get the 
ServerInviteSessionHandle
FF> in order to call "Sis->accept()" or "Sis->end()". How can I get it
FF> from an AppDialog obj? Is my design ok or I misunderstood something?
FF> Should I store also a ServerInviteSession for each call?

IMHO, you may, for example

// get resip::AppDialog pointer
resip::AppDialog* appdialog = ...;
resip::ServerInviteSession* serverinvitesession = \

dynamic_cast<resip::ServerInviteSession*>(appdialog->getInviteSession().get());
... // do some useful work with ServerInviteSession

It's looks ugly enough though %(