mirror of
https://github.com/RangeNetworks/openbts.git
synced 2025-10-22 23:32:00 +00:00
Right now OpenBTS requires a port field in inbound invites. This shouldn't be the case, a lacking port should be assumed to be 5060, the SIP standard port. This patch adds this feature.
423e4c2adf
This commit is contained in:
committed by
Michael Iedema
parent
213373d433
commit
0d163d98c7
@@ -220,8 +220,11 @@ bool IPAddressSpec::ipSet(string addrSpec, const char * provenance)
|
||||
}
|
||||
|
||||
if (!resolveAddress(&mipSockAddr,addrSpec.c_str())) {
|
||||
LOG(CRIT) << "cannot resolve IP address for " << addrSpec <<" from "<<provenance; // << sbText();
|
||||
return false;
|
||||
//try to resolve with default port if it fails without
|
||||
if (!resolveAddress(&mipSockAddr,addrSpec.c_str(), 5060)) {
|
||||
LOG(CRIT) << "cannot resolve IP address for " << addrSpec <<" from "<<provenance; // << sbText();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
{ char host[256];
|
||||
|
Reference in New Issue
Block a user