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

Kovar, William (Bill) bkovar at avaya.com
Fri Feb 2 16:58:55 CST 2007


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




More information about the resiprocate-devel mailing list