diff --git a/Control/MobilityManagement.cpp b/Control/MobilityManagement.cpp index fbd3e7f..3b7a9ee 100644 --- a/Control/MobilityManagement.cpp +++ b/Control/MobilityManagement.cpp @@ -213,10 +213,10 @@ void Control::LocationUpdatingController(const L3LocationUpdatingRequest* lur, L //if we have a new imei and either there's no old one, or it is different... if (!new_imei.empty() && (old_imei.empty() || old_imei != new_imei)){ LOG(INFO) << "Updating IMSI" << IMSI << " to IMEI:" << new_imei; - if (!gSubscriberRegistry.imsiSet(name,"RRLPSupported", "1")) { + if (gSubscriberRegistry.imsiSet(name,"RRLPSupported", "1")) { LOG(INFO) << "SR RRLPSupported update problem"; } - if (!gSubscriberRegistry.imsiSet(name,"hardware", new_imei)) { + if (gSubscriberRegistry.imsiSet(name,"hardware", new_imei)) { LOG(INFO) << "SR hardware update problem"; } } diff --git a/Control/RRLPServer.cpp b/Control/RRLPServer.cpp index becb0e3..3fc9f66 100644 --- a/Control/RRLPServer.cpp +++ b/Control/RRLPServer.cpp @@ -239,7 +239,7 @@ bool RRLPServer::transact() //Rejection code only useful if we're gathering IMEIs if (gConfig.defines("Control.LUR.QueryIMEI")){ // flag unsupported in SR so we don't waste time on it again - if (!gSubscriberRegistry.imsiSet(name, "RRLPSupported", "0")) { + if (gSubscriberRegistry.imsiSet(name, "RRLPSupported", "0")) { LOG(INFO) << "SR update problem"; } } diff --git a/SIP/SIPInterface.cpp b/SIP/SIPInterface.cpp index 8a038b7..6ff4324 100644 --- a/SIP/SIPInterface.cpp +++ b/SIP/SIPInterface.cpp @@ -61,11 +61,11 @@ void SIPMessageMap::write(const std::string& call_id, osip_message_t * msg) { LOG(DEBUG) << "call_id=" << call_id << " msg=" << msg; string name = osip_message_get_from(msg)->url->username; - if (!gSubscriberRegistry.imsiSet(name, "ipaddr", + if (gSubscriberRegistry.imsiSet(name, "ipaddr", osip_message_get_from(msg)->url->host)){ LOG(INFO) << "SR ipaddr Update Problem"; } - if (!gSubscriberRegistry.imsiSet(name, "port", + if (gSubscriberRegistry.imsiSet(name, "port", gConfig.getStr("SIP.Local.Port"))){ LOG(INFO) << "SR port Update Problem"; }