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

[reSIProcate] Help on DumCommand - post() failing in DUM::internalProcess()


I'm trying to post an end() on a session using DumCommand from my App
thread. When post() is called, DUM crashes inside of
DUM::internalprocess() when trying to create the TransactionUserMessage
msg.

So basically the post() is failing. Any ideas??

So code below.....

------>>>> My DumCommand class
class CCEndSession : public DumCommand
{
public:
        CCEndSession(InviteSessionHandle h) : mHandle(h){}
        ~CCEndSession(){}
        void executeCommand()
        {
                if(mHandle.isValid()) {
                        mHandle.get()->end();
                }
        }
        resip::Message* clone() const{assert(false);return 0;}
        std::ostream& encode(std::ostream& strm) const
        {
        strm << "CCEndSession::encode";
        return strm;
        }
        std::ostream& encodeBrief(std::ostream& strm) const {return
encode(strm);}
private:
        InviteSessionHandle mHandle;
};

------>>>>> My use of DumCommand
CCEndSession* cmd = new CCEndSession(sish);
device.mua->mDum->post(cmd);
                 
         
         
DialogUsageManager::internalProcess(std::auto_ptr<Message> msg)
{
// After a Stack ShutdownMessage has been received, don't do anything
else in dum
if (mShutdownState == Shutdown)
{
        return;
}
---> TransactionUserMessage* tuMsg =
dynamic_cast<TransactionUserMessage*>(msg.get());
        if (tuMsg)
        {

 
Bill Kovar