login | register
Wed 09 of Jul, 2008 [05:24 UTC]

voip-info.org

Discuss [1] History

Asterisk cmd Iconv

Created by: szunny,Last modification on Sun 12 of Dec, 2004 [14:19 UTC] by oej

Iconv


Synopsis

Iconv is an asterisk application for character conversion.
If you retrieve text from an external data source it might
be necesarry to convert the source characters into a different
character set.

Description

 Iconv(varname/destination-charset=text/source-charset)


example: (convert CIDNAME from UTF-8 into ISO-8859-1)

 exten => 1234,1,Iconv(CIDNAME/ISO-8859-1=${CIDNAME}/UTF-8)


to list the character sets supported by your iconv library type
>iconv -l
on your shell prompt

Return values

Always returns 0.

Version info

  • Iconv() is not part of the standard Asterisk distribution

See also


Comments

Comments Filter
222

333Doesn't help for phone display

by udosw, Sunday 17 of September, 2006 [10:32:42 UTC]
When I try to display CallerID names with German Umlauts (äöü ÄÖÜ ß) in different phones (Thomson ST2030, X-Lite Softphone) Iconv didn't help me. While I can change the charset with Iconv, the phones show Umlauts as "%e4%f6" or the like. In fact they display the hex code for the appropriate UTF-8 encoding.
I guess it is because the SIP messages are always UTF-8 encoded. Does someone have an idea how to make * send the CALLERID(name) in the SIP message with a different charset?

Udo