kannel

How to create an SMS gateway?

寵の児 提交于 2019-12-04 07:55:42
问题 I know there are lots of 3rd party sites to send bulk SMS via the internet, but if I wanted to create one myself, how would I go about it? I know how to create an SMS gateway using my mobile phone, which is very slow. Is there any other way of creating an internet SMS gateway? 回答1: I designed something similar (although for far fewer text messages) for my employer. A Linux server is connected to a Bluetooth USB dongle for receiving data from embedded sensor devices in the lab and a Siemens

Check if a process is running using PHP in Linux

家住魔仙堡 提交于 2019-12-03 11:05:25
I am using kannel to send SMS via PHP. I want to know how can I check if a particular process is running. For kannel to run, a process named bearerbox should be running all time. I want to check if this process is running or not. Because if the process is not running then a mail will be sent to me notifying me about it. The easiest is to use pgrep , which has an exit code of 0 if the process exists, 1 otherwise. Here's an example. exec("pgrep bearerbox", $output, $return); if ($return == 0) { echo "Ok, process is running\n"; } You can use the exec command to find your process and then act

How to create an SMS gateway?

本小妞迷上赌 提交于 2019-12-02 18:37:39
I know there are lots of 3rd party sites to send bulk SMS via the internet, but if I wanted to create one myself, how would I go about it? I know how to create an SMS gateway using my mobile phone, which is very slow. Is there any other way of creating an internet SMS gateway? IanW I designed something similar (although for far fewer text messages) for my employer. A Linux server is connected to a Bluetooth USB dongle for receiving data from embedded sensor devices in the lab and a Siemens TC35 GSM modem via a RS232 serial link. The server can send messages to selected employees phone if the

SMSC is having multiple connections with client But , Client has one connection with SMSC

给你一囗甜甜゛ 提交于 2019-12-01 09:22:29
问题 I am having a strange issue. I am working on sms module for one of the client. So, I am using Kannel to connect to SMSC server. At the very first attempt means after restarting both client and server applications . I am able to connect to SMSC with one active connections but, after some time server is having multiple connections for My IP although i am having only one connection at that time . Because , of this we are not able to receive MOs properly there is a huge MO drop. To overcome this

Sending arabic SMS in kannel

给你一囗甜甜゛ 提交于 2019-12-01 08:37:57
I am trying to send arabic sms (or french sms) from kannel and it does not get the client end perfectly ( somtimes ?????? for arabic words), after doing some analysis on the values sent between the bearebox,smsbox and smsc i found out that the error in encoding happens between my bearbox and smsbox. I have used charset=utf-8&coding=2 on my http request for sending sms but the same problem occurs Does anyone have any idea on what is the problem or better a solution ?? here is the code i use to send sms StringBuffer param = new StringBuffer() param.append("http://localhost:1025/cgi-bin/sendsms?"

Sending arabic SMS in kannel

谁说我不能喝 提交于 2019-12-01 07:06:14
问题 I am trying to send arabic sms (or french sms) from kannel and it does not get the client end perfectly ( somtimes ?????? for arabic words), after doing some analysis on the values sent between the bearebox,smsbox and smsc i found out that the error in encoding happens between my bearbox and smsbox. I have used charset=utf-8&coding=2 on my http request for sending sms but the same problem occurs Does anyone have any idea on what is the problem or better a solution ?? here is the code i use to

Classic ASP - How to convert a UTF-8 string to UTF-16?

喜你入骨 提交于 2019-11-27 08:53:33
问题 I know there is already have post: Classic ASP - How to convert a UTF-8 string to UCS-2? But my situation another. I want convert UTF-8 to UCS-2BE. For example this text in UTF-8 "Мухтарам Мизоч" convert to this "CEB0@0<� 87>G". For example in PHP i can use ready function iconv("utf-8","ucs-2be","Мухтарам Мизоч"); But in classical ASP can't find any solution. This solution need for send Unicode SMS text via Kannel. 回答1: So sick of answering this question, but I feel impelled to as you have