1#ifndef GEO_PROXIMITY_TARGET_SORTER_HXX
2#define GEO_PROXIMITY_TARGET_SORTER_HXX 1
4#ifndef RESIP_FIXED_POINT
static bool geoIPLookup(const resip::Tuple &address, double *latitude, double *longitude, resip::Data *country=0, resip::Data *region=0, resip::Data *city=0)
bool mLoadBalanceEqualDistantTargets
virtual ~GeoProximityTargetSorter()
virtual processor_action_t process(RequestContext &)
void parseGeoLocationParameter(const resip::Data ¶meter, double &latitude, double &longitude)
resip::Data mRUriRegularExpressionData
unsigned long mDefaultDistance
void getClientGeoLocation(const resip::SipMessage &request, double &latitude, double &longitude)
double getTargetDistance(const Target &target, double clientLatitude, double clientLongitude)
double calculateDistance(double latitude1, double longitude1, double latitude2, double longitude2)
void getTargetGeoLocation(const Target &target, double &latitude, double &longitude)
static resip::KeyValueStore::Key mGeoTargetSortingDoneKey
std::regex * mRUriRegularExpression
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Represents a SIP message.
Represents a network address.
This Class is used to implement a primitive form of RPC using loose XML formatting.
dcm! – add UnusedChecking(_enum) below;