C++ SDK error: wss_data_t::handle_audio_data, get user_name failed

Hello,
iam building a small POC application to with C++ SDK
The app has everything look correct until it supposes to get the audio, then instead of receiving audio, I see a lot of “wss_data_t::handle_audio_data, get user_name failed” in the log till the end of the call
Please advise

06/25/2026 21:21:41:570 ZSSGW_SDK [1474267:1474267:140395328833536] INFO wss_signal_t::send_stream_ack: {
“msg_type” : 7,
“rtms_stream_id” : “f4e2374d-a707-4fa0-b353-26ba74b165bd”
}
, this = 0x0000000001540310
06/25/2026 21:21:41:570 ZSSGW_SDK [1474267:1474267:140395328833536] INFO rtms_sdk_impl::on_session_start, reason: 0, this = 0x000000000153e7e0
06/25/2026 21:21:41:570 UTIL [1474267:1474267:140395328833536] INFO timer_it::remove_timer(), times = 1, m_carrier = 0x000000000154bad0, m_id = 0, m_interval_ticks = 1000, this = 0x000000000153e880
06/25/2026 21:21:41:570 ZSSGW_SDK [1474267:1474267:140395328833536] INFO signal resp: {“msg_type”:8,“rtms_stream_id”:“f4e2374d-a707-4fa0-b353-26ba74b165bd”,“state”:1,“timestamp”:1782422501570}, this = 0x0000000001540310
06/25/2026 21:21:41:570 ZSSGW_SDK [1474267:1474267:140395328833536] INFO wss_session_t::on_stream_active, this = 0x00000000015403f0
06/25/2026 21:21:41:570 ZSSGW_SDK [1474267:1474267:140395328833536] INFO signal resp: {“msg_type”:9,“rtms_session_id”:“2C4BDB0B-229C-C975-2BEF-78F300777385”,“state”:2,“timestamp”:1782422501570}, this = 0x0000000001540310
06/25/2026 21:21:41:570 ZSSGW_SDK [1474267:1474267:140395328833536] INFO wss_session_t::on_session_create, SESSION_ADD, this = 0x00000000015403f0
06/25/2026 21:21:41:622 ZSSGW_SDK [1474267:1474267:140395328833536] INFO signal resp: {“event”:{“event_type”:1,“media_type”:1,“timestamp”:1782422473062},“msg_type”:6}, this = 0x0000000001540310
06/25/2026 21:21:41:622 ZSSGW_SDK [1474267:1474267:140395328833536] ERROR wss_data_t::handle_audio_data, get user_name failed, ret: 2, this = 0x000000000158b350
06/25/2026 21:21:41:683 ZSSGW_SDK [1474267:1474267:140395328833536] ERROR wss_data_t::handle_audio_data, get user_name failed, ret: 2, this = 0x000000000158b350
06/25/2026 21:21:41:683 ZSSGW_SDK [1474267:1474267:140395328833536] ERROR wss_data_t::handle_audio_data, get user_name failed, ret: 2, this = 0x000000000158b350
06/25/2026 21:21:41:683 ZSSGW_SDK [1474267:1474267:140395328833536] ERROR wss_data_t::handle_audio_data, get user_name failed, ret: 2, this = 0x000000000158b350

@MinhCm are you trying to do RTMS with ZCC?

Hi Chun,
yes, Iam trying to do RTMS with ZCC
FYI, iam successful to get RTMS work without the SDK, i.e implement my own websocket clients and follow the websocket messages spec, so I know RTMS is working for our account, but I also want to evaluate the sdk before deciding which route i would go
Thanks

@MinhCm i understand. Did you try out this configuration on the RTMS SDK?

The default experience for RTMS SDK is with Meeting.

Hi Chun
I actually specified the audio that i want to get, not using default setting
Here is the request that is logged in the sdk’s log
{
"media_params" :
{
"audio" :
{
"channel" : 2,
"codec" : 1,
"content_type" : 2,
"data_opt" : 2,
"sample_rate" : 1,
"send_rate" : 20
}
},
"media_type" : 1,
"meeting_uuid" : "xxxxxx",
"msg_type" : 3,
"protocol_version" : 1,
"rtms_stream_id" : "xxxxxxxxxx",
"sequence" : 433475934,
"signature" : "xxxxxxxxxx"
}

And the response that is also logged in the sdk’s log

INFO data handshake resp: {"media_params":{"audio":{"channel":2,"codec":1,"content_type":2,"data_opt":2,"sample_rate":1,"send_rate":20}},"msg_type":4,"payload_encrypted":false,"protocol_version":1,"reason":"OK","sequence":433475934,"status_code":0}

Unless you mean that the SDK only support OPUS at this moment?
Thanks

@MinhCm i mean the initial configure needs to set to ZCC.

Thereafter, for mixed audio, there will be no user_name

Chun, iam a bit confuse about the above statement
As mentioned, i do not want the sdk default value here and asked for specific audio configuration, and according to the response from the server which is
{"media_params":{"audio":{"channel":2,"codec":1,"content_type":2,"data_opt":2,"sample_rate":1,"send_rate":20}},"msg_type":4,"payload_encrypted":false,"protocol_version":1,"reason":"OK","sequence":433475934,"status_code":0}

That means I asked for stereo raw audio L16, Multi Streams, and the server acknowledged it. So mixed audio should not be in the picture here

By “initial configured needs to set to ZCC”, do you mean I must configure the request to ask for OPUS /mixed stream as it is default for ZCC?
Thanks for your patient

@MinhCm would this sample help?

I suspect it might be a minor misconfiguration