From 63ed923418baa6fa6385ae960f41a16297aa6bd4 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Wed, 30 Nov 2022 23:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Network/fgcom.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Network/fgcom.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index ac369fa..3c39001 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -221,7 +221,9 @@ void FGCom::init() _username = _username_node->getStringValue(); _password = _password_node->getStringValue(); - _currentCommFrequency = 0.0; + _connected = false; + + _currentCommFrequency = 0.0; _maxRange = MAX_RANGE; _minRange = MIN_RANGE; @@ -258,7 +260,9 @@ void FGCom::postinit() std::string app = "FGFS-"; app += _version_node->getStringValue(); - iaxc_set_callerid( _callsign_node->getStringValue().c_str(), app.c_str() ); + //iaxc_set_callerid( _callsign_node->getStringValue().c_str(), app.c_str() ); + + iaxc_set_callerid("guest","FGCOM"); //iaxc_set_formats (IAXC_FORMAT_SPEEX, IAXC_FORMAT_ULAW|IAXC_FORMAT_SPEEX);