diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index 8f3d919..19ab97a 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -237,7 +237,7 @@ void FGCom::init() void FGCom::postinit() { - SG_LOG(SG_SOUND, SG_ALERT, "FGCom: postinit() 11111111111111111111111111"); + //SG_LOG(SG_SOUND, SG_ALERT, "FGCom: postinit() 11111111111111111111111111"); if( !_enabled ) { return; @@ -260,9 +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_callerid("guest","FGCOM"); //iaxc_set_formats (IAXC_FORMAT_SPEEX, IAXC_FORMAT_ULAW|IAXC_FORMAT_SPEEX); @@ -317,7 +317,7 @@ void FGCom::postinit() // so all following is unused finally until someone // implement "multi-device" support in IAX audio driver -/* + SGPropertyNode *node = fgGetNode("/sim/fgcom", 0, true); struct iaxc_audio_device *devs; @@ -363,7 +363,7 @@ void FGCom::postinit() if( devs[i].capabilities & IAXC_AD_OUTPUT_DEFAULT ) _selectedOutput_node->setIntValue(devs[i].devID); } -*/ + iaxc_input_level_set(0.1); iaxc_output_level_set(0.5); @@ -372,11 +372,11 @@ void FGCom::postinit() // Do the first call at start -// setupCommFrequency(); + setupCommFrequency(); -// connectToCommFrequency(); + connectToCommFrequency(); - iaxc_call("guest:guest@fgcom.jingweiht.com/01118300"); +// iaxc_call("guest:guest@fgcom.jingweiht.com/01118300"); SG_LOG(SG_SOUND, SG_ALERT, "FGCom: postinit 初始化完成");