[reSIProcate] Silly SipMessage question

Shaun Dawson scdawson at gmail.com
Wed Dec 1 14:55:33 CST 2004


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



More information about the resiprocate-devel mailing list