Пример #1
0
string AmSipRequest::print() const
{
  string buf;

  _PM(r_uri, "r-uri");
  _PM(callid, "i");
  _PM(int2str(cseq), "cseq");
  _PM(from_tag, "l-tag");
  _PM(to_tag, "r-tag");
  _PMB(route, "rtset");
  _PM(contact, "m");

  _PMB(hdrs, "hdr");
  //TODO: find some good debug info to print here
  //_PM(content_type, "c");
  //_PMB(body, "body");

  _PM(user, "user");
  _PM(domain, "domain");
  _PM(from_uri, "f-uri");
  _PM(from, "from");
  _PM(to, "to");

  buf = method + " [" + buf + "]";
  return buf;
}
Пример #2
0
string AmSipReply::print() const
{
  string buf;

  _PM(int2str(code), "code");
  _PMB(reason, "phrase");
  _PM(callid, "i");
  _PM(int2str(cseq), "cseq");
  //_PM(method, "cseq meth");
  _PM(from_tag, "from-tag");
  _PM(to_tag, "to-tag");
  //_PM(next_hop, "nhop");
  _PMB(route, "rtset");
  _PM(contact, "m");

  _PMB(hdrs, "hdr");
  //TODO: find some good debug info to print here
  //_PM(content_type, "c");
  //_PMB(body, "body");

  _PM(contact, "contact");

  buf = /*method +*/ " [" + buf + "]";
  return buf;
}
Пример #3
0
string AmSipReply::print()
{
    string buf;

    _PM(int2str(code), "code");
    _PMB(reason, "phrase");
    _PM(callid, "i");
    _PM(int2str(cseq), "cseq");
    _PM(method, "cseq meth");
    _PM(local_tag, "l-tag");
    _PM(remote_tag, "r-tag");
    //_PM(next_hop, "nhop");
    _PMB(route, "rtset");
    _PM(contact, "m");

    _PMB(hdrs, "hdr");
    _PM(content_type, "c");
    _PMB(body, "body");

    _PM(next_request_uri, "next-r-uri");

    buf = method + " [" + buf + "]";
    return buf;
}