Iconv application module for the Asterisk PBX

©2004 Sven Slezak <sunny at mezzo.net>

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.

The syntax for Iconv in extensions.conf is as follows:

Iconv(VARIABLE/destination-charset=TEXT/source-charset)

Example:

My handset does not support UTF-8 so I have to convert the CIDNAME into ISO-8859-1.
exten => 1234,2,Iconv(CIDNAME/ISO-8859-1=${CIDNAME}/UTF-8)
exten => 1234,3,SetCIDName(${CIDNAME}) 

to list the character sets supported by your iconv library type

>iconv -l
on your shell prompt

Compile:

You need the iconv library and header file included in glibc-headers rpm;
and Asterisk of course.
Download (see below) and unpack the package:
tar -xzf app_iconv-release.tgz
In the app_iconv directory:
make install
Restart Asterisk or load the application module with:
load app_iconv.so
done!
show application Iconv
should print the description.

Changes and Download:

Mac version included in Asterisk PBX for Mac OS X
func_iconv - new function version.
0.9.2 - fix for asterisk 1.2
0.9.1 - bugfix
0.9   - bugfix
0.8   - initial release

	 \ | /
	- :-) -
	 / | \