Had error code backwards for SR, caused spurious SR failure messages. Fixed.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3356 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
kurtis.heimerl
2012-03-23 06:25:20 +00:00
parent 0c448eaeef
commit 324ef54ca4
3 changed files with 5 additions and 5 deletions

View File

@@ -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";
}