DHT768
February 1, 2025, 12:25am
1
Hello everyone,
I’m facing an issue with Asterisk when setting CALLERID(num) with a name that contains umlauts.
Problem:
I want to set CALLERID(num) with a name that includes a “ü” , for example:
same => n,Set(CALLERID(num)=Rückruf)
The problem:
• Instead of “Rückruf”, only “R” is displayed.
• It seems there is an encoding or character transmission issue.
My actual dialplan is:
same => n,Set(CALLERID(name)=${CALLERID(num)})
same => n,Set(CALLERID(num)=Rückruf)
I use “Rückruf” in “num” instead of “name” because my phone displays names at the top (large) and numbers at the bottom (small).
So I want to see:
+1 23 45 67 89
Rückruf
instead of
Rückruf
+1 23 45 67 89
Is there any way to set the utf-8 charset? I’m running Asterisk 20.11.1 with PJSIP. I’d appreciate any insights or solutions!
You are misusing the user field of a SIP URI, and, as I read the specification, UTF8-NONASCII is not permitted in such fields. They are allowed in the name field that precedes, but is not part of, the URI.
https://www.rfc-editor.org/rfc/rfc3261.html#section-25.1
The TEXT-UTF8 rule is only used for descriptive field contents and
values that are not intended to be interpreted by the message parser.
Note that other channel technologies will be more restrictive. I think ISDN is limited to valid DTMF digits.
DHT768
February 1, 2025, 1:10pm
3
Someone here said that it is possible:
Ich habe in der extensions.conf einen Aufruf eines AGI-Skripts zur Namensauflösung. Dieses AGI-Skript weist einer Variablen dann den Namen zu, den ich dann in der extensions.conf mittels
exten => s,n,Set(CALLERID(name)=${LONGNAME})
hübsch...
But he’s talking about a shell script. I don’t have a shell script!
They are talking about using caller ID name correctly. Caller ID name is considered descriptive, so allows UTF-8, but caller ID num maps to user, which is accessed by the message parser. You are misusing user.
DHT768
February 1, 2025, 1:28pm
5
Damn, my mistake. Thanks. I have I have other option, so I have set name as name and num as num correctly or “ue” for “ü”