SDK版本:wxvoipsdk-0xD50000A4-linux-arm-release.tar.gz
日志如下:
[14:39:09.542][I][WMPF][1378:1465][components/net/curl/curl_net_context.c:30][net_context_new]: CURL Version: 7.84.0
[14:39:09.545][E][WMPF][1378:1465][components/voip/standalone/wmpf.cc:218][InitEnv]: config.common.size != sizeof(wx_init_config_t). Check if the headers are matching the version of binary.
op = 0xb4662628
voip init fail, 3
部分代码如下:
static wx_error_t voip_init_config(void)
{
wx_init_config_t config = {0};
config.common.tag = WX_INIT_CONFIG_TAG;
config.common.size = sizeof(wx_init_config_t);
config.common.version = 0;
// 以下参数需要参考文档注释传入正确的值,均不可填空或 0.
config.device_id = "A*****00001";
config.device_signature = NULL;
config.device_signature_version = 0;
config.data_dir = "/ext/user/voip_data/";
config.host_appid = NULL;
config.model_id = "ml5X_*****";
config.product_id = 0;
config.wxa_appid = "wx0074fc*****";
config.rpmb_device = NULL;
wx_operation_t op = wx_init(&config, hal_get_module);
printf("op = %p\n", op);
return wx_operation_wait(op, 0);
}
wx_error_t init_ret = voip_init_config();
if (init_ret != WXERROR_OK)
{
printf("voip init fail, %d\n", init_ret);
return EXIT_FAILURE;
}

已解决。
问题原因:库文件替换后,头文件未替换为对应版本