Hi

You need to identify which charset your provider is using and adapt
your script according to it.

As far as my understanding GSM is the most common charset used by
carriers, but it changes. Ask your provider or add to your app a
charset test.

Indeed kannel internally handles everything in utf-8.

hope helps

Alvaro

On 7/22/13, Majid Azimi <azimi.ma...@yahoo.com> wrote:
> Hi I have configured kannel with SMPP smsc. I can send UTF-8 messages to my
> customers. But When receiving I don't get it right. here is my config file:
>
> group = core
> admin-port = 13000
> admin-password = 123456
> status-password = 654321
> admin-deny-ip = "*.*.*.*"
> admin-allow-ip = "127.0.0.1"
> smsbox-port = 13001
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> log-file = "/var/log/kannel/bearerbox.log"
> log-level = 1
> store-type = spool
> store-location = "/var/lib/kannel"
> store-dump-freq = 60
> sms-incoming-queue-limit = 10000000
> sms-outgoing-queue-limit = 10000000
> sms-resend-freq = 10
> sms-resend-retry = -1
> dlr-storage = mysql
> access-log = "/var/log/kannel/bearerbox-access.log"
>
> group = smsc
> smsc = smpp
> smsc-id = my-smsc
> host = 2.2.2.2
> port = 5019
> receive-port = 5019
> system-type = VMA
> smsc-username = my-company-username
> smsc-password = my-company-password
> throughput = 10
> reconnect-delay = 10
> msg-id-type = 0x00
>
> group = smsbox
> smsbox-id = my-smsbox
> bearerbox-host = 127.0.0.1
> sendsms-port = 13013
> log-file = "/var/log/kannel/smsbox.log"
> log-level = 1
> access-log = "/var/log/kannel/smsbox-access.log"
>
> group = smsbox-route
> smsbox-id = my-smsc
> smsc-id = my-smsbox
>
> group = sendsms-user
> username = user
> password = pass
> concatenation = true
> max-messages = 100
>
> group = sms-service
> keyword = default
> get-url = "http://1.1.1.1.1/get?from=%p&to=%P&content=%a";
> concatenation = true
> catch-all = true
> max-messages = 0
>
> group = mysql-connection
> id = mydlr
> host = localhost
> username = dbuser
> password = dbpass
> database = dlr
> max-connections = 10
>
> group = dlr-db
> id = mydlr
> table = dlr
> field-smsc = smsc
> field-timestamp = ts
> field-destination = destination
> field-source = source
> field-service = service
> field-url = url
> field-mask = mask
> field-status = status
> field-boxc-id = boxc
>
> I have wrote a servlet to receive message from kannel:
>
>     protected void doGet(HttpServletRequest request, HttpServletResponse
> response) throws ServletException, IOException {
>         request.setCharacterEncoding("UTF-8");
>         response.setCharacterEncoding("UTF-8");
>
>         String destination = request.getParameter("to");
>         String originator = request.getParameter("from");
>         String content = request.getParameter("content");
>
>         /* publish to internal message broker for further processing */
>     }
>
> The problem is I can not get Persian messages. When I log content variable
> it shows some random English characters. I'm using compiled version of 1.5
> on CentOS 6.4.
> Can anyone help? is there any missing configuration?
>
>
>


-- 
|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
              Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com

Reply via email to