diff --git a/utils/fgcom/fgcom_external.cxx b/utils/fgcom/fgcom_external.cxx index 2727f0a..fb2864d 100644 --- a/utils/fgcom/fgcom_external.cxx +++ b/utils/fgcom/fgcom_external.cxx @@ -475,7 +475,7 @@ std::string computePhoneNumber(double freq, std::string icao, bool atis) sprintf( exten, "%02d%02d%02d%02d%02d%06d", - prefix, + 01, tmp[0], tmp[1], tmp[2], @@ -485,7 +485,7 @@ std::string computePhoneNumber(double freq, std::string icao, bool atis) sprintf( exten, "%02d%06d", - prefix, + 01, (int) (freq * 1000 + 0.5) ); exten[8] = '\0'; @@ -497,6 +497,9 @@ std::string computePhoneNumber(double freq, std::string icao, bool atis) _password.c_str(), _server.c_str(), exten); + + SG_LOG(SG_SOUND, SG_ALERT, "FGCom: computePhoneNumber:" << phoneNumber << " icao:" << icao); + return phoneNumber; }