Syed Jahanzaib – Personal Blog to Share Knowledge !

September 29, 2015

Sending SMS in URDU/ARABIC or other language via KANNEL

Filed under: Linux Related — Tags: , , — Syed Jahanzaib / Pinochio~:) @ 10:41 AM

u[OS = Ubuntu]

It is very easy to send SMS in URDU or ARABIC fonts using KANNEL as your gateway using &charset=UTF-8&coding=1  (in some cases its &charset=UTF-8&coding=2) code.

Just add the following in your /etc/kannel.conf file under SMSC section

 alt-charset= "UTF-8" 

 

 

Save & restart kannel service

service kannel stop
killall -9 bearerbox
service kannel start

 

EXAMPLES:


 

To send SMS in URDU via browser / URL via KANNEL

http://KANNEBOXIP/cgi-bin/sendsms?username=kannel&password=KANNELPASSWORD&to=03333021909&charset=UTF-8&coding=1&text=سلام+علیکم+آپ+KANNEL+میں+بہت+آسانی+سے+اردو+فونٹس+میں+ایس+ایم+ایس+بھیج+سکتے+ہیں.+مثال+اکاؤنٹ+ختم+ہونے+کی+معلومات،+مرحبا+پیغامات+وغیرہ+وغیرہ+شکریہ+سید+جہانزیب

Result Example:

urdu

You can get the urdu/arabic font by translating it via translate.google.com and copy paste the translated text.


 

To send SMS in URDU using Local FILE via KANNEL

Use any UTF converter tool /notepad /word etc, OR if you dont have one,  do it online via Converter TEXT to encoded

Paste your URDU text and hit Enter it will give you UTF8 encoded data,As showed here

utf8

Copy that data and paste it in any local file, example /temp/urdu.txt

Now use the below command from the Linux terminal to send this file contents via kannel in URDU ; )


curl "http://KANNELBOXIP:13013/cgi-bin/sendsms?username=kannel&password=KANNELPASS&to=03333021909&charset=UTF-8&coding=1" -G --data-urlencode text@/temp/urdu.txt

Result Example:file


 

Note: If you still receive SMS with ??? signs , then try with

http://KANNEBOXIP/cgi-bin/sendsms?username=kannel&password=KANNELPASSWORD&to=03333021909&charset=UTF-8&coding=2&text=سلام+علیکم+آپ+KANNEL+میں+بہت+آسانی+سے+اردو+فونٹس+میں+ایس+ایم+ایس+بھیج+سکتے+ہیں.+مثال+اکاؤنٹ+ختم+ہونے+کی+معلومات،+مرحبا+پیغامات+وغیرہ+وغیرہ+شکریہ+سید+جہانزیب

جزاک اللہ

سید جہانزیب

2 Comments »

  1. i have tried this, and it works well. but my problem lies using sqlbox, i am using sqlbox for send messages , so when i try to send message using my language using sqlbox it sends ????????????, some times when i change alt-charset under smsc in kannel configuration the results also change. so i need help o this

    Like

    Comment by kirubel — January 13, 2018 @ 3:49 PM

    • Have you get any solution for this

      Like

      Comment by SP — June 16, 2022 @ 4:57 PM


RSS feed for comments on this post. TrackBack URI

Leave a comment