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

[reSIProcate-users] Lifetime of AppDialog


Hi,

 

I have a piece of application state (my local RTP port number I have chosen from a pool I maintain) that I add when making a call and want access to when a call terminates.

 

To do this I derived from AppDialogSet, and hooked an instantiatino of that derivation in during call setup.

 

I assumed that during my InviteSessionHandler::onTerminated() I would still allow me access to my derived AppDialogSet object to get my application state from, but during tests it seems like my

 

appDialogSet* ads = dynamic_cast<appDialogSet*>(uacADS.get());

 

returns null, suggesting the app dialog set has already gone.

 

Is this correct and if so, is there another way I can store / retrieve call-based state data from the dum framework?

 

Thanks,

Simon.