|
|
|
@ -300,12 +300,12 @@ bool SIPInterface::checkInvite( osip_message_t * msg ) |
|
|
|
|
// IMSIs are 14 or 15 char + "IMSI" prefix
|
|
|
|
|
unsigned namelen = strlen(IMSI); |
|
|
|
|
if ((namelen>19)||(namelen<18)) { |
|
|
|
|
LOG(WARN) << "INVITE with malformed username \"" << IMSI << "\""; |
|
|
|
|
LOG(WARN) << "INVITE/MESSAGE with malformed username \"" << IMSI << "\""; |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
// Skip first 4 char "IMSI".
|
|
|
|
|
IMSI+=4; |
|
|
|
|
// Make the mobile id we need for transaction and paging enties.
|
|
|
|
|
// Make the mobile id we need for transaction and paging entries.
|
|
|
|
|
L3MobileIdentity mobile_id(IMSI); |
|
|
|
|
|
|
|
|
|
// Check SIP map. Repeated entry? Page again.
|
|
|
|
@ -343,7 +343,7 @@ bool SIPInterface::checkInvite( osip_message_t * msg ) |
|
|
|
|
if (!callerID) { |
|
|
|
|
callerID = emptyString; |
|
|
|
|
callerHost = emptyString; |
|
|
|
|
LOG(NOTICE) << "INVITE with no From: username for " << mobile_id; |
|
|
|
|
LOG(NOTICE) << "INVITE/MESSAGE with no From: username for " << mobile_id; |
|
|
|
|
} |
|
|
|
|
LOG(DEBUG) << "callerID " << callerID << "@" << callerHost; |
|
|
|
|
// Build the transaction table entry.
|
|
|
|
|