← Back to team overview

dhis2-users team mailing list archive

Re: [Dhis2-devs] outgoing SMS over local modem - anyone using it?

 

Dear Guy,

You need to set a SMS command for the system to route the SMS to the right
place.

see
http://dhis2.github.io/dhis2-docs/master/en/user/html/dhis2_user_manual_en_full.html#mobile_sms_command

Alex

On Mon, Mar 14, 2016 at 5:30 PM, Guy Ekani <constyekani@xxxxxxxx> wrote:

> Hi Zubair,
>
> Here is the log when this problem appear the first time :
>
> * INFO  2016-02-02 19:59:59,649 Detected apps: [] (DefaultAppManager.java
> [http-apr-8080-exec-3])
> * INFO  2016-02-02 20:03:06,682 Detected apps: [] (DefaultAppManager.java
> [http-apr-8080-exec-7])
> * INFO  2016-02-02 20:03:48,867 Detected apps: [] (DefaultAppManager.java
> [http-apr-8080-exec-8])
> * INFO  2016-02-02 20:05:06,589 Received SMS: SMS testing.
> (SmsPublisher.java [Thread-12])
> * INFO  2016-02-02 20:05:06,610 Sending message OutboundSMS
> [recipients=+467XXXXXXXX, message=DHIS: No command found]
> (DefaultOutboundSmsTransportService.java [Thread-12])
> * INFO  2016-02-02 20:05:06,617 RequestURL:
> http://opertorgateway.org/sendsms.php?UserName=MyUser&Password=**********&SOA=MyUser&MN=%2B467XXXXXXXX&SM=DHIS%3A+No+command+found
> PasserelleGSM (SimplisticHttpGetGateWay.java [Thread-12])
> * INFO  2016-02-02 20:05:07,729 Received SMS: SMS testing.
> (SmsPublisher.java [Thread-12])
> * INFO  2016-02-02 20:05:07,741 Sending message OutboundSMS
> [recipients=+467XXXXXXXX, message=DHIS: No command found]
> (DefaultOutboundSmsTransportService.java [Thread-12])
> * INFO  2016-02-02 20:05:07,742 RequestURL:
> http://opertorgateway.org/sendsms.php?UserName=MyUser&Password=**********&SOA=MyUser&MN=%2B467XXXXXXXX&SM=DHIS%3A+No+command+found
> PasserelleGSM (SimplisticHttpGetGateWay.java [Thread-12])
> * WARN  2016-02-02 20:05:47,635 Authentication event
> AuthenticationSuccessEvent: GsmDhisUser; details:
> org.springframework.security.web.authentication.WebAuthenticationDetails@1de6:
> RemoteIpAddress: 24.152.208.38; SessionId: null (LoggerListener.java
> [http-apr-8080-exec-1])
> * WARN  2016-02-02 20:06:31,215 Authentication event
> AuthenticationSuccessEvent: GsmDhisUser; details:
> org.springframework.security.web.authentication.WebAuthenticationDetails@1de6:
> RemoteIpAddress: 24.152.208.38; SessionId: null (LoggerListener.java
> [http-apr-8080-exec-7])
> * WARN  2016-02-02 20:06:41,672 Authentication event
> AuthenticationSuccessEvent: GsmDhisUser; details:
> org.springframework.security.web.authentication.WebAuthenticationDetails@1de6:
> RemoteIpAddress: 24.152.208.38; SessionId: null (LoggerListener.java
> [http-apr-8080-exec-5])
> * WARN  2016-02-02 20:07:00,393 Authentication event
> AuthenticationSuccessEvent: bao-admin; details:
> org.springframework.security.web.authentication.WebAuthenticationDetails@1de6:
> RemoteIpAddress: 24.152.208.38; SessionId: null (LoggerListener.java
> [http-apr-8080-exec-6])
> * INFO  2016-02-02 20:07:08,074 Received SMS: SMS testing.
> (SmsPublisher.java [Thread-12])
> * INFO  2016-02-02 20:07:08,081 Sending message OutboundSMS
> [recipients=+467XXXXXXXX, message=DHIS: No command found]
> (DefaultOutboundSmsTransportService.java [Thread-12])
> * INFO  2016-02-02 20:07:08,082 RequestURL:
> http://opertorgateway.org/sendsms.php?UserName=MyUser&Password=**********&SOA=MyUser&MN=%2B467XXXXXXXX&SM=DHIS%3A+No+command+found
> PasserelleGSM (SimplisticHttpGetGateWay.java [Thread-12])
> * ERROR 2016-02-02 20:07:08,676 Batch update returned unexpected row count
> from update [0]; actual row count: 0; expected: 1; nested exception is
> org.hibernate.StaleStateException: Batch update returned unexpected row
> count from update [0]; actual row count: 0; expected: 1 (SmsPublisher.java
> [Thread-12])
> * INFO  2016-02-02 20:07:14,718 Received SMS: SMS testing.
> (SmsPublisher.java [Thread-26])
> * INFO  2016-02-02 20:07:14,726 Sending message OutboundSMS
> [recipients=+467XXXXXXXX, message=DHIS: No command found]
> (DefaultOutboundSmsTransportService.java [Thread-26])
> * INFO  2016-02-02 20:07:14,726 RequestURL:
> http://opertorgateway.org/sendsms.php?UserName=MyUser&Password=**********&SOA=MyUser&MN=%2B467XXXXXXXX&SM=DHIS%3A+No+command+found
> PasserelleGSM (SimplisticHttpGetGateWay.java [Thread-26])
> * ERROR 2016-02-02 20:07:15,209 Batch update returned unexpected row count
> from update [0]; actual row count: 0; expected: 1; nested exception is
> org.hibernate.StaleStateException: Batch update returned unexpected row
> count from update [0]; actual row count: 0; expected: 1 (SmsPublisher.java
> [Thread-26])
> * INFO  2016-02-02 20:07:25,209 Received SMS: SMS testing.
> (SmsPublisher.java [Thread-26])
> * INFO  2016-02-02 20:07:25,216 Sending message OutboundSMS
> [recipients=+467XXXXXXXX, message=DHIS: No command found]
> (DefaultOutboundSmsTransportService.java [Thread-26])
> * INFO  2016-02-02 20:07:25,217 RequestURL:
> http://opertorgateway.org/sendsms.php?UserName=MyUser&Password=**********&SOA=MyUser&MN=%2B467XXXXXXXX&SM=DHIS%3A+No+command+found
> PasserelleGSM (SimplisticHttpGetGateWay.java [Thread-26])
> * ERROR 2016-02-02 20:07:25,680 Batch update returned unexpected row count
> from update [0]; actual row count: 0; expected: 1; nested exception is
> org.hibernate.StaleStateException: Batch update returned unexpected row
> count from update [0]; actual row count: 0; expected: 1 (SmsPublisher.java
> [Thread-26])
> * INFO  2016-02-02 20:07:35,680 Received SMS: SMS testing.
> (SmsPublisher.java [Thread-26])
>
>
> Sincerely,
>
> =========================
> EKANI Guy
>
>
>
>
>
>
>
> Le Lundi 14 mars 2016 13h31, Zubair Asghar Raja <zubair@xxxxxxxxx> a
> écrit :
>
>
> Hi Guy,
> I am responsible for SMS related stuff. Can you share the logs ?
>
> Regards
> Zubair
>
>
>
> On 14 Mar 2016, at 1:14 PM, "Lars Helge Øverland" <lars@xxxxxxxxx> wrote:
>
> Thanks Guy. We will have a developer reach out to you.
>
> Since nobody have reported to be using the local SMS gateway modem, we
> will remove it for version 2.23.
>
> regards,
>
> Lars
>
>
> On Thu, Mar 10, 2016 at 8:52 AM, Guy Ekani <constyekani@xxxxxxxx> wrote:
>
> Hello Lars,
>
> Thank's for information,
>
> We are trying to use SMS funtionnality with  a SMS gateway provided by an
> external operator (Genreric HTTP Gateway) with DHIS 2.21 Build revision:
> 20998
>
> But we have two problems :
> - The received SMS are not imported automatically,
> - When we manually import a received SMS, it's make a loop that send a
> thousand of SMS to a specific Phone number
>
> Please, could you help us to solve this issue that's drained our SMS
> Credit ?
>
> Sincerely
>
> =========================
> EKANI Guy
>
>
>
>
>
>
>
> Le Mardi 8 mars 2016 11h22, Lars Helge Øverland <lars@xxxxxxxxx> a écrit :
>
>
> Hi all,
>
> we are rewriting much of the functionality for sending outgoing SMS in
> DHIS 2. In that regard we were wondering if anyone is using the current
> function for sending SMS using a local SMS modem / gateway?
>
> In production setups one should in any case use a network-based SMS
> gateway provided by an external operator (bulksms, clickatell).
>
> The library we use (smslib <http://smslib.org/>) is deprected as well. We
> were thinking to end support for local SMS modems in 2.23.
>
> regards,
>
> Lars
>
>
>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org/>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to    : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help  : https://help.launchpad.net/ListHelp
>
>
>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org/>
>
> ------------------------------
>
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
>
> More help : https://help.launchpad.net/ListHelp
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET
Kampala
Uganda
+256 774149 775, + 256 759 800161
Skype ID: talexie

IT Consultant (Servers, Networks and Security, Health Information Systems -
DHIS2, Disease Outbreak & Surveillance Systems) & Solar Consultant


"I don't want to be anything other than what I have been - one tree hill "

References