更新 'src/Network/fgcom.cxx'
This commit is contained in:
@@ -731,12 +731,21 @@ std::string FGCom::computePhoneNumber(const double& freq, const std::string& ica
|
||||
"%02d%02d%02d%02d%02d%06d",
|
||||
01,
|
||||
tmp[0],
|
||||
tmp[1],
|
||||
tmp[1],
|
||||
tmp[2],
|
||||
tmp[3],
|
||||
(int) (freq * 1000 + 0.5) );
|
||||
exten[16] = '\0';
|
||||
|
||||
// zhongjin 测试环境,去掉机场编号
|
||||
sprintf( exten,
|
||||
"%02d%06d",
|
||||
01,
|
||||
(int) (freq * 1000 + 0.5) );
|
||||
exten[8] = '\0';
|
||||
|
||||
|
||||
|
||||
snprintf( phoneNumber,
|
||||
sizeof (phoneNumber),
|
||||
"%s:%s@%s/%s",
|
||||
@@ -744,6 +753,8 @@ std::string FGCom::computePhoneNumber(const double& freq, const std::string& ica
|
||||
_password.c_str(),
|
||||
_server.c_str(),
|
||||
exten);
|
||||
|
||||
|
||||
SG_LOG(SG_SOUND, SG_INFO, "FGCom: computePhoneNumber:" << phoneNumber << "icao:" << icao);
|
||||
return phoneNumber;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user