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

Re: [reSIProcate-users] ClientOutOfDialogReqHandle?


Did you forget to include ClientOutOfDialgReq in your source file attempting to do the cast?

The following should work fine:
MyAppDialogSet *  myAppDialogSet = dynamic_cast<MyAppDialogSet *>(oodh.get());

Scott


On Sun, Feb 26, 2012 at 10:24 PM, Stuart Whelan <stuart@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I am using resip 1.7, and using the resip stack and dum.

I am processing a response to a Out Of Dialog Request, and am trying
to get to the AppDialogSet I created.

Normally I would oodh->GetAppDialogSet(), where oodh is a
ClientOutOfDialogReqHandle passed into the agent onSuccess handler.

When I try this I get:

resip/dum/Handle.hxx:45: error: invalid static_cast from type
‘resip::Handled*’ to type ‘resip::ClientOutOfDialogReq*’

oodh.get() returns the same error.

I can find no examples of this in the unit tests, can anyone point me
in the right direction?

Cheers,
Stuart.

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/