01-23-2013 03:31 AM - edited 03-18-2019 12:28 AM
Hi all,
We want to add a participant via API of MCU, using "displayNameOverrideValue" parameter.
But it seems that we can't use 2 bytes characters there.
(Overridden display name is garbled...)
EX)
<?xml version="1.0" encoding="UTF-8"?> <methodCall> ... <member> <name>displayNameOverrideValue</name> <value> <string>端末</string> </value> </member> ... </methodCall>
How can we display 2 Bytes overridden name?
Best Regards,
Kotaro Hashimoto
01-23-2013 04:13 AM
Just out of curiosity I added that into a pre configured participant and checked how it is stored in the xml config file.
It ends up as: 端æ«
This seems to be the reflection of the UTF-8 in hex:
$ echo 端末|hexdump
0000000 e7 ab af e6 9c ab 0a
If you try to use that string in the field via your script, what would you get?
Does the characters show properly up when you set it via the webinterface?
If yes, I would also expect that you should be able to set it on your MCU. Which MCU/Version do you use anyhow?
Maybe it has an impact what your webserver specifies as headers regarding encodning as well
as there could be scenarios where you have a conflict. Do you set any of the two headers
(Accept-Charset / Content-Type)?
From the API guide:
Please remember to rate helpful responses and identify
01-24-2013 03:11 AM
I ran script test by using Python while ago and configure 2-bytes site name which was working fine.
=== sample ===
'authenticationUser' : user,
'authenticationPassword' : pin,
'conferenceName' : ConfName,
'participantName' : '福岡支店',
'displayNameOverrideStatus' : True,
'displayNameOverrideValue' : '福岡支店',
'participantProtocol' : 'h323',
'participantType' : 'by_address',
'address' : '903265',
'maxBitRateFromMCU' : 256000,
'maxBitRateToMCU' : 256000,
'deferConnection' : False
=============
What you do see on actual site name on video when you configure site name with “端末”?
01-28-2013 03:05 AM
Hi Martin, Taniguchi-san,
Thank you for your information.
We could successfully display 2 bytes name with xml below.
.......
......
Best Regards,
Kotaro Hashimoto
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide