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

[reSIProcate] Silly SipMessage question


OK, I know this is probably a really silly question, but is there a
way to get at the contents of a SipMessage without using streams?

For example, this will work:

char *sipMessageContents(SipMessage &message) {
          Data enc;
          {
                DataStream str(enc);
                str << *message;
          }

          return enc.c_str();
}


But there's a reason I don't want to do that (I'm debugging
something).  Is there another way?  I've searched for one, but can't
find it.

thanks,
  Shaun