mirror of
https://github.com/RangeNetworks/openbts.git
synced 2025-11-06 06:43:51 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user