Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic wrong caller name encoding (Read 2839 times)
dux
YaBB Newbies
*
Offline


Phoner is great!

Posts: 20
Location: Russia
Joined: 17. Jul 2019
Gender: Male
wrong caller name encoding
17. Jul 2019 at 14:49
Print Post  
Hello, 

I have wrong caller name encoding when 1) it does not start with a letter; 2) when it exceeds some number of symbols. I try to display cyrillic letters in utf8 encoding.

  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11412
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: wrong caller name encoding
Reply #1 - 18. Jul 2019 at 09:36
Print Post  
Can you send me an example please? I need the configured name and the message that PhonerLite sends. In the debug window (hide/show via help menu) you can see all received and sent messages. Within this window (click into it) you can press the Del key to empty the content. Then start a call.
You should send this by e-mail and not here in the forum.
  
Back to top
WWW  
IP Logged
 
dux
YaBB Newbies
*
Offline


Phoner is great!

Posts: 20
Location: Russia
Joined: 17. Jul 2019
Gender: Male
Re: wrong caller name encoding
Reply #2 - 18. Jul 2019 at 13:08
Print Post  
Now it is OK, but the problem exists if names exceed certain length. They are cut and displayed in a wrong encoding. What is the maximum allowed length of the name of a caller? It seems as if it is significantly less than if it were in latin letters. Here is the invite message.

19:03:21,575: R: 10.137.14.9:5060 (UDP)
INVITE sip:83952450044@10.99.0.57:5060 SIP/2.0
Via: SIP/2.0/UDP 10.137.14.9:5060;rport;branch=z9hG4bKPja5867f14-d804-4941-a4da-b4ef2853ff87
From: "РўР•РҐРќРћР›РћР“Р˜Р§Р•РЎРљР˜Р• СЛУЖЕБНЫЕ ДЛЯ РћРљРђР—РђРќР˜РЇ РЈРЎР›" <sip:83952450061@10.137.14.9>;tag=6a108e5d-e4ab-4fb5-9b08-dc05bb941158
To: <sip:83952450044@10.99.0.57>
Contact: <sip:83952450061@10.137.14.9:5060>
Call-ID: 8401ee32-2805-4e5b-beb5-fe9e0edcf448
CSeq: 19849 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
P-Asserted-Identity: "РўР•РҐРќРћР›РћР“Р˜Р§Р•РЎРљР˜Р• СЛУЖЕБНЫЕ ДЛЯ РћРљРђР—РђРќР˜РЇ РЈРЎР›" <sip:83952450061@10.137.14.9>
Max-Forwards: 70
User-Agent: FPBX-14.0.13.4(16.3.0)
Content-Type: application/sdp
Content-Length:   363

v=0
o=- 196731812 196731812 IN IP4 10.137.14.9
s=Asterisk
c=IN IP4 10.137.14.9
t=0 0
m=audio 13878 RTP/AVP 8 0 3 111 9 116 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:111 G726-32/8000
a=rtpmap:9 G722/8000
a=rtpmap:116 G719/48000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:80
a=sendrecv

19:03:21,576: Connect Indication: 88 00 01 00 02 82 BB 00 01 01 00 00 01 00 17 80 38 33 39 35 32 34 35 30 30 34 34 40 31 30 2E 39 39 2E 30 2E 35 37 19 00 80 38 33 39 35 32 34 35 30 30 36 31 40 31 30 2E 31 33 37 2E 31 34 2E 39 00 41 80 D0 A2 D0 95 D0 A5 D0 9D D0 9E D0 9B D0 9E D0 93 D0 98 D0 A7 D0 95 D0 A1 D0 9A D0 98 D0 95 20 D0 A1 D0 9B D0 A3 D0 96 D0 95 D0 91 D0 9D D0 AB D0 95 20 D0 94 D0 9B D0 AF 20 D0 9E D0 9A D0 90 D0 00 00 00 00 00 
19:03:21,576: Connect Indication
19:03:21,576:  CIP: 1 (speech)
19:03:21,576:  CalledPartyNumber: 83952450044@10.99.0.57
19:03:21,576:  CallingPartyNumber: 83952450061@10.137.14.9
19:03:21,576:  CallingPartySubaddress: РўР•РҐРќРћР›РћР“Р˜Р§Р•РЎРљР˜Р• СЛУЖЕБНЫЕ ДЛЯ РћРљРђР
19:03:21,639: Alert Request: 12 00 01 00 01 80 0E 00 01 01 00 00 05 00 00 00 00 00 
19:03:21,639: Alert Request
  
Back to top
 
IP Logged
 
dux
YaBB Newbies
*
Offline


Phoner is great!

Posts: 20
Location: Russia
Joined: 17. Jul 2019
Gender: Male
Re: wrong caller name encoding
Reply #3 - 18. Jul 2019 at 13:12
Print Post  
In freePBX CRD database the name looks like "ТЕХНОЛОГИЧЕСКИЕ СЛУЖЕБНЫЕ ДЛЯ ОКАЗАНИЯ УСЛ", so it is a lot larger than what is allowed in phoner lite.
I tried to set the encoding with the CALLERID(name-charset) asterisk function, but that did not help.
« Last Edit: 18. Jul 2019 at 16:07 by dux »  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11412
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: wrong caller name encoding
Reply #4 - 22. Jul 2019 at 10:07
Print Post  
I found the problem. The maximum length of the name from incoming messages is 64 bytes. For simple ASCII letters that is a length of 64. But for Unicode encoded names (like Cyrillic) 64 bytes are not enough to display a name with 64 letters. The current implementation cuts the name on byte position 64 - that may lead to incorrect Unicode encoding. I fixed this in the current beta version of PhonerLite. The name is still cut but should be readable now.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint