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

Re: [reSIProcate] SDP Contents not getting created.....


frank zhao wrote:

I think  you should call it like this:
   ...................................................
    sdp = new SdpContents(hfv, type);    <---- But this is the problem for me.
    sdp->checkParsed();
   ............................................

Because sdpArray is a local variable allocated on stack. On  leave
this function, the memory will be released. After called
sdp->checkParsed(), a memory will be created for sdp object on heap.
I posted a response to this,  but

sdp->checkParsed(); appears to crash (see my earlier posting), so although
this COULD be the problem,  it's possibly not MY problem...

My problem is that I don't know how to build the "sdp" record, even though
I followed the guidelines in the "dum/test" examples of sending an Invite
message.

The parser is gagging on my "sdp" record. Plain and simple, and I'm uploaded
the code I used (possibly more then once),  in the hopes that some list
members may see something I'm doing wrong,  but (sigh) still waiting for
someone to come forth and point it out.
John