Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic incorrect cid name (Read 3581 times)
Orphan
YaBB Newbies
*
Offline


Phoner is great!

Posts: 3
Joined: 18. Sep 2019
incorrect cid name
18. Sep 2019 at 09:45
Print Post  
HI!
There is a problem displaying the name of the incoming call in a pop-up message and in the call history. Name consists of Utf-8(russian) and ASCII symbols. The problem is floating - the combination of problematic characters is undefined. But re-sending the problematic combination comes again unreadable
For example:
INVITE(tcpdump):
From: "OB3! CM 09:30 Akono\0xd0\0xb2a A.\0xd0\0x93. \0xd1\0x8d\0xd0\0xbdgokp\0xd0\0xb8\0xd0" <sip:8xxx2057993@192.168.1.8>;tag=as73ef2c34
LitePhoner displays:
OB3! CM 09:30 AkonoРІa A.Р“. СЌРЅgokpРёР
Should have been:
OB3! CM 09:30 Akonoвa A.Г. энgokpин

I assume that when trimming the text in the asterisk name field, 1 byte remains at random from 2 byte utf-8, and in general the text is interpreted incorrectly. How can I solve the problem with incorrect display?
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11389
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: incorrect cid name
Reply #1 - 18. Sep 2019 at 15:23
Print Post  
That problem should be fixed in the latest version. Do you really have version 2.73?
  
Back to top
WWW  
IP Logged
 
Orphan
YaBB Newbies
*
Offline


Phoner is great!

Posts: 3
Joined: 18. Sep 2019
Re: incorrect cid name
Reply #2 - 19. Sep 2019 at 04:16
Print Post  
Phoner Admin wrote on 18. Sep 2019 at 15:23:
That problem should be fixed in the latest version. Do you really have version 2.73?

Also thought so referring to the download page. Installed 2.74, but the problem remained.
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11389
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: incorrect cid name
Reply #3 - 19. Sep 2019 at 12:45
Print Post  
Internally the name has a limit of 64 bytes. UTF-8 uses more that one byte for Cyrillic letters. The original problem was, that the cut of the name buffer was at byte 64. If version 2.73 doesn't fix that problem, can you copy such long name here, so I can test? Maybe my fix was incomplete.
  
Back to top
WWW  
IP Logged
 
Orphan
YaBB Newbies
*
Offline


Phoner is great!

Posts: 3
Joined: 18. Sep 2019
Re: incorrect cid name
Reply #4 - 27. Sep 2019 at 04:26
Print Post  
The problem is trimming the string "name" on our asterisk exactly 40 bytes without regard to the content of English and Russian letters in it. Thus, in some cases, one byte remains from the UTF-8 character instead of two, and it is unclear how the UTF-8 string is played from the variable, but it becomes unreadable. I solved the problem by limiting the string "name" to 39 characters before passing it to asterisk. I think this problem is quite individual.
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11389
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: incorrect cid name
Reply #5 - 27. Sep 2019 at 08:49
Print Post  
Thanks for the update
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint