< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
Thanks for your reply.
I use the message like this:
Generate the XML:
CMarkup outPutXML("<?xml version='1.0'?>"); outPutXML.AddElem("Response"); outPutXML.IntoElem(); outPutXML.AddElem("CmdType","MediaInfo"); outPutXML.AddElem("SN",12345); outPutXML.AddElem("CPU",g_computerStatus.CpuRate); outPutXML.AddElem("Memory",g_computerStatus.MemoryLoad); outPutXML.AddElem("Net",g_computerStatus.NetUsage); outPutXML.OutOfElem(); char xmlOut[1024]; strcpy(xmlOut,outPutXML.GetDoc().c_str()); Send the Message:
Data txt = Data(xmlOut); HeaderFieldValue *hfv = new HeaderFieldValue(txt->data(), (unsigned int)txt->size()); Mime type("Application", "MANSCDP+xml"); SdpContents *mSdp = new SdpContents(*hfv, type); Contents *body = mSdp->getContents()->clone(); auto_ptr<Contents> content(body); cpmh.get()->page(content); When I run in the Debug mode, my program will dead soon.
And the logs are attatched.
Please help me analyze the problem.
It's the CMarkup's reason, or I send the message in a wrong way?
Thank you!
2015-06-23
许波
|
Attachment:
MediaServer.log
Description: Binary data
Attachment:
SipServer.log
Description: Binary data