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

Kovar, William (Bill) bkovar at avaya.com
Tue Feb 6 09:11:54 CST 2007


Found the problem!!

Need to use the /Gr compiler option in VS.net 2003

Bill Kovar
bkovar at avaya.com
Avaya, Inc.
(732) 852-2609
 

> -----Original Message-----
> From: resiprocate-devel-bounces at list.resiprocate.org 
> [mailto:resiprocate-devel-bounces at list.resiprocate.org] On 
> Behalf Of Kovar, William (Bill)
> Sent: Friday, February 02, 2007 5:59 PM
> To: resiprocate-devel at list.resiprocate.org
> Subject: [reSIProcate] Help on DumCommand - post() failing 
> inDUM::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
> 
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
> 




More information about the resiprocate-devel mailing list