Wednesday, September 30, 2015

Sending SMS in URDU/ARABIC or other language via KANNEL


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 code.
Just add the following in your /etc/kannel.conf file under SMSC section
1
alt-charset= "UTF-8"


Save & restart kannel service
1
2
3
service kannel stop
killall -9 bearerbox
service kannel start


EXAMPLES:



To send SMS in URDU via browser / URL via KANNEL

1
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 ; )
Result Example:file


0 comments:

Post a Comment