RRLP Additions: New config fields enable RRLP messages before mobile terminated calls and SMS.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3048 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
Kurtis Heimerl
2012-01-17 08:31:06 +00:00
parent 6dd0e7c1fc
commit f02bdb14e3
7 changed files with 363 additions and 257 deletions

View File

@@ -48,6 +48,7 @@
#include "SMSControl.h"
#include "ControlCommon.h"
#include "TransactionTable.h"
#include "RRLPServer.h"
#include <Regexp.h>
@@ -455,6 +456,19 @@ void Control::MTSMSController(TransactionEntry *transaction, GSM::LogicalChannel
transaction->GSMState(GSM::SMSDelivering);
LOG(INFO) << "transaction: "<< *transaction;
/* first RLLP request */
if (gConfig.defines("Control.SMS.QueryRRLP")) {
// Query for RRLP
RRLPServer wRRLPServer(transaction->subscriber(), LCH);
if (!wRRLPServer.assist()) {
LOG(INFO) << "RRLPServer::assist problem";
}
// can still try to check location even if assist didn't work
if (!wRRLPServer.locate()) {
LOG(INFO) << "RRLPServer::locate problem";
}
}
bool success = deliverSMSToMS(transaction->calling().digits(),transaction->message(),
transaction->messageType(),transaction->L3TI(),LCH);