cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
614
Views
5
Helpful
3
Replies

How to display 2 bytes "DisplayNameOverrideValue" via API

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

3 Replies 3

Martin Koch
VIP Alumni
VIP Alumni

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

Tomonori Taniguchi
Cisco Employee
Cisco Employee

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 “端末”?

Hi Martin, Taniguchi-san,

Thank you for your information.

We could successfully display 2 bytes name with xml below.

.......

         

            displayNameOverrideStatus

           

              true

           

         

         

            displayNameOverrideValue

           

              端末

           

         

......

Best Regards,

Kotaro Hashimoto