MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / dialogText

Method dialogText

SIP/SIPDialog.cpp:873–892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

871}
872
873string SipDialog::dialogText(bool verbose) const
874{
875 std::ostringstream ss;
876 ss << " SipDialog("<<LOGVARM(mTranId) ;
877 ss << LOGVAR2("state",getDialogState()) <<LOGVARM(mPrevDialogState);
878 //ss << LOGVAR2("fifo",mDownlinkFifo.size());
879 SipBase::sbText(ss,verbose);
880 // The C++ virtual inheritance is so broken we cant use it. Gag me.
881 switch (mDialogType) {
882 case SIPDTMTC: case SIPDTMTSMS:
883 ss << mttlText();
884 break;
885 case SIPDTMOC: case SIPDTMOSMS: case SIPDTMOUssd:
886 ss << motlText();
887 break;
888 default: ss << "."; break;
889 }
890 ss <<")";
891 return ss.str();
892}
893
894std::ostream& operator<<(std::ostream& os, const SipDialog*dg) {
895 if (dg) os << dg->dialogText(); else os << "(null SipDialog)";

Callers 3

printDialogsMethod · 0.80
newCheckInviteMethod · 0.80
SIPDialog.cppFile · 0.80

Calls 1

strMethod · 0.45

Tested by

no test coverage detected