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

Method MOSMSSendMESSAGE

SIP/SIPBase.cpp:810–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808}
809
810void SipMOInviteClientTransactionLayer::MOSMSSendMESSAGE(const string &messageText, const string &contentType)
811{
812 LOG(INFO) << "SIP send to " << dsRequestToHeader() <<" MESSAGE " << messageText <<sbText();
813 assert(mDialogType == SIPDTMOSMS);
814 gReports.incr("OpenBTS.SIP.MESSAGE.Out");
815
816 static const string cMessagestr("MESSAGE");
817 SipMessage *msg = makeInitialRequest(cMessagestr);
818 msg->smAddBody(contentType,messageText);
819 moWriteLowSide(msg);
820 delete msg;
821 setSipState(MOSMSSubmit);
822}
823
824
825// This is a temporary routine to work around bugs in smqueue.

Callers 1

newSipDialogMOSMSMethod · 0.80

Calls 1

smAddBodyMethod · 0.80

Tested by

no test coverage detected