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

[reSIProcate] how to get ServerInviteSession from AppDialog


Hi all,

I´m using dum to implement an application. I store AppDialog/AppDialogSet 
pointers in a list.
In callbacks I'm just using an async mechanism to inform another thread that 
something is
happened. In this app thread I can, for example, provide an sdp answer with 
something like:

call = get_the_call_from_the_list();
resip::InviteSessionHandle is = call->app_dialog->getInviteSession();
if(!is.isValid()) {
        //error?!?
} else {
        is->provideAnswer(*(call->sdp)); //->sdp is the answer
}

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

Thank you very much
Best regards
FF