Re: [Dhis2-devs] SMS Service Configuration

2018-11-19 Thread Zubair Asghar Raja
Hi Isabanej,
Have a look at these
https://docs.dhis2.org/master/en/developer/html/webapi_sms.html#gateway-service-administration
https://docs.dhis2.org/master/en/user/html/mobile_sms_service.html#



Zubair Asghar
DHIS-2 Developer
University of Oslo
zub...@dhis2.org 
https://www.dhis2.org


On Mon, Nov 19, 2018 at 4:36 PM Isabane Janvier  wrote:

> Dear All,
>
> we are trying to use SMS in our DHIS2 instance (Version 2.28).
> in our configurations we are using Generic HTTP Gateway as follow:
> Gateway Name: GHTTP
> Message Parameter:
> Recipient Parameter:URL Template *:
> http://192.168.1.8:8000/send?recipient={recipient}={content}
>
> when i send the messages the system gives me this error message: "*There
> is no Action mapped for action name smsinput*"
> can anyone help me with *DHIS2 - SMS user guide* or how to map this
> *smsinput* action?
>
> The screenshot below is for clarification.
>
>
> Best Regards,
>
> -
> *ISABANE Janvier*
> *Junior Programmer*
> *HISP Rwanda.*
> Mobile: +250 788 286 107,
> address: KG 113 St, Kigali - Rwanda
>
> website: hisprwanda.org
>
> e-mail: isabane.janv...@hisprwanda.org / isaba...@gmail.com
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] (no subject)

2018-11-07 Thread Zubair Asghar Raja
This could be some date in program rule action which is malformed.
Supported format is -mm-dd

Zubair


Den ons. 7. nov. 2018, 7:29 p.m. skrev Stanley Kalyati  What does this mean?
>
> Failed to update the event in the server
> Invalid format: "07-11-2018" is malformed at "18"
>
> Any quick advise?
>
> Stanley
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Generating sequential numbers in program rule

2018-11-01 Thread Zubair Asghar Raja
Hi Terence,
Create a JIRA issue for this enhancement (ENROLLMENT_DATE) and we will look
into it.





Den tor. 1. nov. 2018, 9:21 a.m. skrev Terence Scott <
terence.sc...@rabiesalliance.org:

> Dear Shurajit
>
> Thanks for the advice. This worked fantastically - however, the
> documentation is a little confusing with regards to the required format. Is
> there somewhere where I can possibly make suggestions for clarification?
>
> The string that eventually worked under the Auto-generate section is as
> follows:
> CURRENT_DATE(-MM)-"-"-ORG_UNIT_CODE(...)-"-"-SEQUENTIAL()
>
> The '+' did not work for me and gave a parse error - this is what is
> specified in some parts of the documentation, whereas using the '-' worked
> (as is shown in one example under "SEQUENTIAL(format)".
>
> It seems that currently only CURRENT_DATE is supported and not enrollment
> date? Is there some way to include Enrollment date instead? I tried to
> simply include ENROLLMENT_DATE(-MM) and this did not work.
>
> Thank you once again for the help! Really appreciate it as I have been
> struggling with this for a while.
>
> Kind regards,
> Terence
>
> Terence Scott
>
> Global Alliance for Rabies Control (GARC)
> Pan-African Rabies Control Network (PARACON) Steering Committee
> terence.sc...@rabiesalliance.org
> https://paracon.rabiesalliance.org
> Skype: tpscott1987
>
>
>
> On Thu, Nov 1, 2018 at 3:46 AM Shurajit Dutta 
> wrote:
>
>> Hi Terence
>>
>> This textpattern applies to generating unique tracked entity attributes.
>> So if you make the attribute unique and then system generated you can enter
>> the pattern accordingly:
>>
>> [image: image.png]
>>
>> On Wed, Oct 31, 2018 at 5:58 PM Terence Scott <
>> terence.sc...@rabiesalliance.org> wrote:
>>
>>> Hi MSP
>>>
>>> Thank you for the suggestion. I have also attempted this and was unable
>>> to have any success. I tried to create a new rule with simply having
>>> "Sequential(###)" alone, and did not have any success either. Therefore, I
>>> assumed that there would be some sort of additional text that is required
>>> to make it work.
>>>
>>> Kind regards,
>>> Terence
>>>
>>> Terence Scott
>>>
>>> Global Alliance for Rabies Control (GARC)
>>> Pan-African Rabies Control Network (PARACON) Steering Committee
>>> terence.sc...@rabiesalliance.org
>>> https://paracon.rabiesalliance.org
>>> Skype: tpscott1987
>>>
>>>
>>>
>>> On Tue, Oct 30, 2018 at 5:49 PM M.Selvaraaj Prabu 
>>> wrote:
>>>
>>>> Hi Terrance,
>>>>
>>>> Sometime back I read about this. I think you need to use the expression
>>>> like
>>>>
>>>>-
>>>>
>>>>ORG_UNIT_CODE(…) + "-" + CURRENT_DATE(ww) + "-" + SEQUENTIAL(#)
>>>>
>>>>
>>>> Instead of using the function concatenate. Please refer the below link
>>>> for more details:
>>>>
>>>>-
>>>>https://docs.dhis2.org/master/en/user/html/working-with-textpattern.html
>>>>
>>>> Hope this helps.
>>>>
>>>> Thanks and regards
>>>>
>>>> MSP
>>>>
>>>>
>>>> On Tue, Oct 30, 2018 at 4:56 PM Terence Scott <
>>>> terence.sc...@rabiesalliance.org> wrote:
>>>>
>>>>> Dear Zubair, Nick
>>>>>
>>>>> I have upgraded the instance to 2.30 now and am attempting to once
>>>>> again implement the sequential numbering using the TextPattern option. I 
>>>>> am
>>>>> using it on a TEAttribute, but have not had any success.
>>>>>
>>>>> Thus far, my Defined program rule action looks as follows:
>>>>>
>>>>> d2:concatenate( V{enrollment_date}, '-', V{orgunit_code}, '-')
>>>>>
>>>>> This is currently working and generating the UID, but of course,
>>>>> without the sequential numbers. I have attempted the following 
>>>>> combinations
>>>>> to try include the sequential numbers to no avail:
>>>>> d2:concatenate( V{enrollment_date}, '-', V{orgunit_code}, '-',
>>>>> SEQUENTIAL(###))
>>>>> d2:concatenate( V{enrollment_date}, '-', V{orgunit_code}, '-',
>>>>> Sequential(###))
>>>>> d2:concatenate( V{enrollment_date}

Re: [Dhis2-devs] Generating sequential numbers in program rule

2018-10-10 Thread Zubair Asghar Raja
Hi Terence,
There could be many reasons for that.
Have you tried implementing what Nick suggested? The only limitation is
that the TextPattern option is only available for TEAttribute and not to
DataElement.


Zubair Asghar
DHIS-2 Developer
University of Oslo
zub...@dhis2.org 
https://www.dhis2.org


On Wed, Oct 10, 2018 at 2:48 PM Terence Scott <
terence.sc...@rabiesalliance.org> wrote:

> Dear Zubair
>
> Thank you for your rapid response. I have attempted to do this without
> success. I think I am misunderstanding.
>
> 1) I created the program variable "auto-increment' as suggested
> 2) In this step - is this a new program rule? I created a program rule as
> follows: "d2:hasValue #UID", Assign "#auto-increment + 1" to field
> "auto-increment". I then set this as priority 2.
> 3) I created my UID program rule as with the following action:
> "d2:concatenate( V{enrollment_date}, '-', A{Closest Health Center},
> #{auto-increment})" assigned to the attribute for UID. This is set as
> priority 1.
>
> Unfortunately, this does not create the sequential number, but the
> concatenated sequence is showing in the UID Attribute.
>
> Do I have my priorities incorrect or have I done something else
> incorrectly?
>
> Kind regards,
> Terence
>
> Terence Scott
>
> Global Alliance for Rabies Control (GARC)
> Pan-African Rabies Control Network (PARACON) Steering Committee
> terence.sc...@rabiesalliance.org
> https://paracon.rabiesalliance.org
> Skype: tpscott1987
>
>
>
> On Wed, Oct 10, 2018 at 2:01 PM Zubair Asghar Raja 
> wrote:
>
>> Hi Terence,
>> Should be possible using CALCULATED_VALUE.
>> Program rule variable having source type as CALCULATED_VALUE will get its
>> value assigned by some other program rule. Try these steps
>> 1. create program rule variable of source type CALCULATED_VALUE // Let
>> say "auto-increment"
>> 2. create program rule with Program Rule Action as Assign Value and
>> select variable created in step 1 and assign it "#{auto-increment} + 1"
>> 3. Use it in your program rule where ever needed for example
>> v{current-date}-#{orgunit}-#{auto-increment}
>>
>> In order to use CALCULATED_CALUE make sure you are correctly setting rule
>> *priority*.
>>
>> Zubair Asghar
>> DHIS-2 Developer
>> University of Oslo
>> zub...@dhis2.org 
>> https://www.dhis2.org
>>
>>
>> On Wed, Oct 10, 2018 at 1:25 PM Terence Scott <
>> terence.sc...@rabiesalliance.org> wrote:
>>
>>> Dear All
>>>
>>> I am creating a program rule to develop a UID for the patient. I have
>>> currently created a program rule using d2:concatenate to bring various
>>> attributes and DEs together into the Unique ID (such as date and OrgUnit
>>> code). However, I would also like to include sequential numbering after
>>> this to ensure that more than 1 case can be registered on a single day.
>>>
>>> I have looked through all of the documentation and am unable to find
>>> anything along these lines. Is it possible?
>>>
>>> Example:
>>> 2018-10-10-OrgUnit code-1;
>>> 2018-10-10-OrgUnit code-2;
>>> 2018-10-10-OrgUnit code-3; etc.  (where 1,2 and 3 are the sequential
>>> numbers generated).
>>>
>>> I have also looked at Program Rule variables and am unsure as to what
>>> the "Calculated value" source type is, as in the documentation it is listed
>>> as "TBA" with no further information.
>>>
>>> I would appreciate any help or advise.
>>>
>>> Kind regards,
>>> Terence
>>>
>>>
>>>
>>>
>>> Terence Scott
>>>
>>> Global Alliance for Rabies Control (GARC)
>>> Pan-African Rabies Control Network (PARACON) Steering Committee
>>> terence.sc...@rabiesalliance.org
>>> https://paracon.rabiesalliance.org
>>> Skype: tpscott1987
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Generating sequential numbers in program rule

2018-10-10 Thread Zubair Asghar Raja
Hi Terence,
Should be possible using CALCULATED_VALUE.
Program rule variable having source type as CALCULATED_VALUE will get its
value assigned by some other program rule. Try these steps
1. create program rule variable of source type CALCULATED_VALUE // Let say
"auto-increment"
2. create program rule with Program Rule Action as Assign Value and select
variable created in step 1 and assign it "#{auto-increment} + 1"
3. Use it in your program rule where ever needed for example
v{current-date}-#{orgunit}-#{auto-increment}

In order to use CALCULATED_CALUE make sure you are correctly setting rule
*priority*.

Zubair Asghar
DHIS-2 Developer
University of Oslo
zub...@dhis2.org 
https://www.dhis2.org


On Wed, Oct 10, 2018 at 1:25 PM Terence Scott <
terence.sc...@rabiesalliance.org> wrote:

> Dear All
>
> I am creating a program rule to develop a UID for the patient. I have
> currently created a program rule using d2:concatenate to bring various
> attributes and DEs together into the Unique ID (such as date and OrgUnit
> code). However, I would also like to include sequential numbering after
> this to ensure that more than 1 case can be registered on a single day.
>
> I have looked through all of the documentation and am unable to find
> anything along these lines. Is it possible?
>
> Example:
> 2018-10-10-OrgUnit code-1;
> 2018-10-10-OrgUnit code-2;
> 2018-10-10-OrgUnit code-3; etc.  (where 1,2 and 3 are the sequential
> numbers generated).
>
> I have also looked at Program Rule variables and am unsure as to what the
> "Calculated value" source type is, as in the documentation it is listed as
> "TBA" with no further information.
>
> I would appreciate any help or advise.
>
> Kind regards,
> Terence
>
>
>
>
> Terence Scott
>
> Global Alliance for Rabies Control (GARC)
> Pan-African Rabies Control Network (PARACON) Steering Committee
> terence.sc...@rabiesalliance.org
> https://paracon.rabiesalliance.org
> Skype: tpscott1987
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Zubair Asghar Raja
Hi Amjad
Is aDiagnose an option set? If it is then try using code instead of name.


Zubair

Den man. 8. okt. 2018, 6:50 a.m. skrev Amjad Ata Allah <
ataallah.am...@gmail.com>:

> Hi Stephen
> Here is the condition expression:
> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
> Meningococcal Meningitis'
>
> Thanks,
>
> On Mon, Oct 8, 2018 at 12:41 AM Stephen Ocaya 
> wrote:
>
>> Hello  Amjad M. Ata-Allah , Kindly share the condition expression for the
>> program rule.
>>
>> regards
>>
>> On Sun, Oct 7, 2018 at 10:15 PM Amjad Ata Allah 
>> wrote:
>>
>>> Dear All,
>>>
>>> I am working on DHIS2 2.30 project.
>>> I am trying to hide/show program stage depending on a user selection. I
>>> succeed to hide the program stage, but its not showing back.
>>>
>>> Also there is no errors in the console.
>>>
>>> Regards,
>>>
>>> --
>>> Save a tree, Please don't print this email unless you really need to.
>>>
>>> Amjad M. Ata-Allah
>>> _
>>> M: +970.599.721.158
>>> Em: ataallah.am...@gmail.com
>>> Em: amjad.ataal...@hotmail.com
>>> Skype: amjad.ataallah
>>> _
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>
>>
>> Strategic Information Systems for Actions
>> Plot 36 Impala Avenue, Kololo
>> P.O. Box 4750, Kampala
>>
>
>
> --
> Save a tree, Please don't print this email unless you really need to.
>
> Amjad M. Ata-Allah
> _
> M: +970.599.721.158
> Em: ataallah.am...@gmail.com
> Em: amjad.ataal...@hotmail.com
> Skype: amjad.ataallah
> _
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] SMS/Mobile configuration

2018-10-02 Thread Zubair Asghar Raja
Yes. Share the key and i will take a look into it.


Zubair Asghar
DHIS-2 Developer
University of Oslo
zub...@dhis2.org 
https://www.dhis2.org


On Tue, Oct 2, 2018 at 4:10 PM Sam Johnson 
wrote:

> Hi Zubair,
>
>
>
> Thanks for the quick response.  ☺  Yes, I’ve already tried both with and
> without the leading ‘+’, and without any country identifier at all.
> Looking at the format of the Clickatell API call, I assume the ‘+’ should
> be left off, but my guess is that if the user leaves it on, the DHIS2
> interface trims it off anyway.
>
>
>
> I’ve noticed that the Clickatell API defaults to HTTP, whereas I’m
> guessing DHIS2 uses REST?  (I’ve tried both API configurations anyway,
> without success.)  If I email you a temporary Clickatell API key, would you
> have time to quickly test it, to see if the API call that DHIS2 2.30
> generates still matches the one that Clickatell is expecting?
>
>
>
> Cheers, Sam.
>
>
>
>
>
> *From: *Zubair Asghar Raja 
> *Date: *Tuesday, 2 October 2018 at 15:21
> *To: *Sam Johnson 
> *Cc: *Shurajit Dutta , "jahidsha...@gmail.com" <
> jahidsha...@gmail.com>, DHIS 2 Users List ,
> "skaly...@gmail.com" , DHIS2 Developers <
> dhis2-devs@lists.launchpad.net>
> *Subject: *Re: [Dhis2-devs] [Dhis2-users] SMS/Mobile configuration
>
>
>
> Hi Samuel,
>
> Have you tried different number formats? For instance with + and without +
>
>
>
>
>
>
>
>
> Zubair Asghar
>
> DHIS-2 Developer
>
> University of Oslo
>
> zub...@dhis2.org 
>
> https://www.dhis2.org
>
>
>
>
>
> On Tue, Oct 2, 2018 at 2:31 PM Sam Johnson 
> wrote:
>
> Hi all,
>
>
>
> I’ve created an account with Clickatell, but despite following the
> documentation listed below, I’m struggling to configure it in my DHIS2
> instance (v2.30).
>
>
>
> In the ‘Mobile Configuration’ module, I’ve selected ‘Add gateway’, and
> entered the following:
>
>- ‘Auth Token’ is my Clickatell API key (ending in ==)
>- For ‘Login’ I’ve tried both my Clickatell username (samueldjohnson)
>and my email address (which is what Clickatell actually asks for when I log
>into their portal)
>- In DHIS2, I’ve made sure that ‘Enable message SMS notifications’ is
>ticked in Settings | Messaging.
>- I’m doing all testing as superuser (so roles/authorities aren’t an
>issue).
>
>
>
> (Note that despite the DHIS2 documentation
> <https://docs.dhis2.org/2.30/en/user/html/mobile_sms_service.html> saying
> that only login+password *or* API key need to be set up, I’ve had to
> enter *both* into the DHIS2 ‘Mobile Configuration’ module, as the screen
> enforces all three fields as mandatory.)
>
>
>
> However, whenever I use the ‘Mobile Configuration’ module’s ‘Send SMS’
> feature to send a test SMS message, it fails.  (In the ‘List of sent SMS’,
> it shows the correct number, but has [unknown] as recipient, and ‘FAILED’
> as status.)  I’ve configured the correct countries in Clickatell, and have
> successfully sent test messages to the same phone with API calls (using
> curl).  Am I missing something in my DHIS2 configuration?
>
>
>
> Many thanks for any tips/enlightenment that anyone is able to provide!
>
>
>
> Cheers, Sam.
>
>
>
>
>
>
>
>
>
>
>
>
>
> *From: *Dhis2-devs  qebo.co...@lists.launchpad.net> on behalf of Shurajit Dutta <
> shurajitdu...@gmail.com>
> *Date: *Sunday, 23 April 2017 at 08:16
> *To: *Jahid Shahed 
> *Cc: *DHIS 2 Users List , Stanley
> Kalyati , DHIS2 Developers <
> dhis2-devs@lists.launchpad.net>
> *Subject: *Re: [Dhis2-devs] [Dhis2-users] SMS/Mobile configuration
>
>
>
> Hi everyone
>
>
>
> Are you trying to set up SMS to receive information, to send out messages
> such as notifications etc or both?
>
>
>
> For receiving (aggregate) data, I would suggest reviewing the docs here:
>
>
>
> https://docs.dhis2.org/master/en/user/html/mobile_sms_command.html
>
>
>
> You may want to start with adding an SMS gateway to your configuration for
> sending back feedback and notifications as well. Popular services include
> BulkSMS and Clickatell.
>
>
>
> https://docs.dhis2.org/master/en/user/html/mobile_sms_service.html
>
>
>
> After this is configured, you would also have to configure the
> notifications. If it is for a program you can read more about that here
>
>
>
> https://docs.dhis2.org/master/en/user/html/manage_program_notification.html
>
>
>
>
>
>
>
>
>
> On Apr 23, 2017 1:04 PM, "Jahid Shahed"  wrote:
>
> I am also interes

Re: [Dhis2-devs] [Dhis2-users] SMS/Mobile configuration

2018-10-02 Thread Zubair Asghar Raja
Hi Samuel,
Have you tried different number formats? For instance with + and without +




Zubair Asghar
DHIS-2 Developer
University of Oslo
zub...@dhis2.org 
https://www.dhis2.org


On Tue, Oct 2, 2018 at 2:31 PM Sam Johnson 
wrote:

> Hi all,
>
>
>
> I’ve created an account with Clickatell, but despite following the
> documentation listed below, I’m struggling to configure it in my DHIS2
> instance (v2.30).
>
>
>
> In the ‘Mobile Configuration’ module, I’ve selected ‘Add gateway’, and
> entered the following:
>
>- ‘Auth Token’ is my Clickatell API key (ending in ==)
>- For ‘Login’ I’ve tried both my Clickatell username (samueldjohnson)
>and my email address (which is what Clickatell actually asks for when I log
>into their portal)
>- In DHIS2, I’ve made sure that ‘Enable message SMS notifications’ is
>ticked in Settings | Messaging.
>- I’m doing all testing as superuser (so roles/authorities aren’t an
>issue).
>
>
>
> (Note that despite the DHIS2 documentation
>  saying
> that only login+password *or* API key need to be set up, I’ve had to
> enter *both* into the DHIS2 ‘Mobile Configuration’ module, as the screen
> enforces all three fields as mandatory.)
>
>
>
> However, whenever I use the ‘Mobile Configuration’ module’s ‘Send SMS’
> feature to send a test SMS message, it fails.  (In the ‘List of sent SMS’,
> it shows the correct number, but has [unknown] as recipient, and ‘FAILED’
> as status.)  I’ve configured the correct countries in Clickatell, and have
> successfully sent test messages to the same phone with API calls (using
> curl).  Am I missing something in my DHIS2 configuration?
>
>
>
> Many thanks for any tips/enlightenment that anyone is able to provide!
>
>
>
> Cheers, Sam.
>
>
>
>
>
>
>
>
>
>
>
>
>
> *From: *Dhis2-devs  qebo.co...@lists.launchpad.net> on behalf of Shurajit Dutta <
> shurajitdu...@gmail.com>
> *Date: *Sunday, 23 April 2017 at 08:16
> *To: *Jahid Shahed 
> *Cc: *DHIS 2 Users List , Stanley
> Kalyati , DHIS2 Developers <
> dhis2-devs@lists.launchpad.net>
> *Subject: *Re: [Dhis2-devs] [Dhis2-users] SMS/Mobile configuration
>
>
>
> Hi everyone
>
>
>
> Are you trying to set up SMS to receive information, to send out messages
> such as notifications etc or both?
>
>
>
> For receiving (aggregate) data, I would suggest reviewing the docs here:
>
>
>
> https://docs.dhis2.org/master/en/user/html/mobile_sms_command.html
>
>
>
> You may want to start with adding an SMS gateway to your configuration for
> sending back feedback and notifications as well. Popular services include
> BulkSMS and Clickatell.
>
>
>
> https://docs.dhis2.org/master/en/user/html/mobile_sms_service.html
>
>
>
> After this is configured, you would also have to configure the
> notifications. If it is for a program you can read more about that here
>
>
>
> https://docs.dhis2.org/master/en/user/html/manage_program_notification.html
>
>
>
>
>
>
>
>
>
> On Apr 23, 2017 1:04 PM, "Jahid Shahed"  wrote:
>
> I am also interested to learn this.
>
>
>
>
>
> Regards,
>
>
>
> *Jahid Hossen Shahed *
>
> Skype: jahidshahed
>
>
>
> [image: http://images.wisestamp.com/widgets/green_32.png]  Please
> consider your environmental responsibility. Before printing this e-mail
> message, ask yourself whether you really need a hard copy.
>
>
>
> On Mon, Apr 17, 2017 at 7:04 PM, Stanley Kalyati 
> wrote:
>
> I am also waiting to learn from this.
>
>
>
> Has this been answered? if so can anyone forward to me the responses.
>
>
>
> Thank you
>
>
>
> Stanley
>
>
>
> On Wed, Apr 12, 2017 at 7:21 AM, Adhi  wrote:
>
> Dear all,
>
>
>
> I have DHIS2 ver. 2.25 installed on a server.
>
> Can anyone help me how to configure SMS? What hardware or software do I
> have to prepare? (like what kind of cellphone will be used, SMS gateway
> application, etc.).
>
> Step-by-step guidance will be very helpful.
>
>
>
> Best regards,
>
> Adhi Andrianto
>
> @ sekolahmalaria.info
>
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
>
>
>
> [image:
> https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]
> 
>
> Virus-free. www.avast.com
> 
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to  

Re: [Dhis2-devs] Program Notification trigger by program rule (Event Program)

2018-10-02 Thread Zubair Asghar Raja
Hi Le
You dont need scheduler to send message using program rule. Secondly check
your log output and search for name of the rule. Name will be associated
with rule evaluation result. I suspect your rule is being evaluated as
false. Send me the complate expression.


Zubair

Den tir. 2. okt. 2018, 8:37 a.m. skrev Ocaya Stephen :

> Hi, can you share the program rule expressions used to execute against.
>
> It is not very visible.
>
> Regards
>
> On Tue, Oct 2, 2018 at 7:55 AM Em Le Hong 
> wrote:
>
>> Dear dev,
>>
>> I'm trying to setup a program rule to send notification message (email)
>> to a user group which trigger by program rule but it doesn't work.
>> It's working properly if I want to send with trigger by Program
>> completion.
>>
>> Below is steps that I did:
>> Create a program rule with expression:
>> [image: image.png]
>> Program rule action:
>> [image: image.png]
>>
>> Program notification:
>> [image: image.png]
>>
>> Scheduler:
>> [image: image.png]
>>
>> Is it a bug or missing something?
>>
>> Thanks,
>>
>>
>>
>> --
>> *Em Le Hong*
>> DHIS2 Implementation| *HISP Vietnam *
>> em.hispviet...@gmail.com | *Skype:* em.hispviet...@gmail.com
>>
>>
>>
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>
>
> --
> --
> *Stephen Ocaya*
> Tel: +256 393 217 892 | Mob: +256774558980
> www.stephocay.com
> SkypeID: stephocay
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Generic http SMS Gateway for Inbound & Outbound

2018-06-06 Thread Zubair Asghar Raja
Hi Hakim
Can you please re-phrase your question.

Zubair


On Wed, 6 Jun 2018, 8:15 am DJIBRIL Hakim,  wrote:

> Hi all,
> Please Is it possible to have ideas on how can be *URL template*  when
> setting Generic http SMS Gateway in DHIS2 both for inbound and outbound sms?
>
> Thank you
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] dhis2 docker image

2018-03-20 Thread Zubair Asghar Raja
Hi Michael,

This is equally good along with scripts to build images.

https://github.com/pgracio/dhis2-docker


R,
Zubair

On Tue, Mar 20, 2018 at 10:19 AM, Edouard Lavaud 
wrote:

> Hi Michael,
>
> I am not sure about the jembi image, but usually they dont come with a DB.
> There is a specific image of a database that is then connected to the
> DHIS2 image.
> You should take a look at docker-compose, which 'links' docker images
> together.
>
> Take a look to those DHIS2 docker compose:
>
>- Official:
>- https://github.com/dhis2/dhis2-docker
>- Community:
>   - https://github.com/elavaud/dhis2-docker
>   - https://github.com/pgracio/dhis2-docker
>
>
> Best,
>
> Edouard
>
>
>
> 2018-03-20 11:05 GMT+02:00 Michael Mwebaze :
>
>> Hi devs,
>>
>> I am trying to use the dhis2 image (docker pull dhis2/dhis2-web) off
>> docker hub but this doesn't seem to work. I have tried using another one
>> (docker pull jembi/dhis228) and this seems to work but is complaining
>> throwing 'GenericJDBCException: Unable to open JDBC Connection for DDL
>> execution'. Does anyone know if this particular image is bundled with a
>> database?
>>
>> regards,
>>
>> Michael
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> *Edouard Lavaud, *
>
>
>
> *MSc in Health Policy, Planning & FinancingMEng in
> TelecommunicationUniversity Diploma in ICT for Health*
> *Email:* edouard.lav...@gmail.com
> *Mobile:* 0033 6 7210 23 59
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] SMS truncation

2018-02-12 Thread Zubair Asghar Raja
If truncate means not sending more than allowed number of characters (180
char), then yes it does. But certain gateways allow concatenation of smses.


Zubair

On 12 Feb 2018 10:47 pm, "Greg Wilson"  wrote:

> Does DHIS2 truncate SMS messages sent via */api/sms/outbound* ?
>
> --
> Greg Wilson
> BAO Systems
> gwil...@baosystems.com
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] SMS response for already approved data

2018-01-19 Thread Zubair Asghar Raja
Hi Jasper,

No, it won't be a new feature rather an improvement and will be backported.
Yes, you can certainly have a look and send us PR. We can merge it after
having it reviewed.


Zubair

On Fri, Jan 19, 2018 at 11:38 AM, Jasper Timm <
jasper.t...@ehealthnigeria.org> wrote:

> Great, thanks  Zubair.
>
> Do you think this would be considered a new feature or is there the
> possibility of backporting it?
>
> Also, I suppose if we were to look at the issue ourselves you'd consider a
> pull request from us?
>
> Thanks,
>
> - Jasper
>
> On Wed, Jan 17, 2018 at 12:05 PM, Zubair Asghar Raja <zub...@dhis2.org>
> wrote:
>
>> Hi Jasper,
>> No, we don't have this as of now. But it can certainly be provided. You
>> can track the issue here https://jira.dhis2.org/browse/DHIS2-2719.
>>
>> Zubair
>>
>> On Tue, Jan 16, 2018 at 4:07 PM, Jasper Timm <
>> jasper.t...@ehealthnigeria.org> wrote:
>>
>>> Hi DHIS2-devs,
>>>
>>> It seems at the moment (in 2.26) when an inbound SMS is received for a
>>> period that has already been approved, the submission is accepted and there
>>> is no response SMS to the user informing them about the approval status of
>>> the period they submitted for.
>>>
>>> Are there plans to support a response SMS at all for this case?
>>>
>>> Thanks,
>>>
>>> - Jasper
>>>
>>> --
>>>
>>> *Jasper Timm*
>>>
>>> Lead Software Developer
>>>
>>> *eHealth Africa*
>>>
>>> Mobile +232 99891119 <+23299891119>
>>>
>>> www.ehealthafrica.org
>>>
>>>
>>> <http://www.ehealthafrica.org/>
>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
>
> --
>
> *Jasper Timm*
>
> Lead Software Developer
>
> *eHealth Africa*
>
> Mobile +232 99891119 <+23299891119>
>
> www.ehealthafrica.org
>
>
> <http://www.ehealthafrica.org/>
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] SMS response for already approved data

2018-01-17 Thread Zubair Asghar Raja
Hi Jasper,
No, we don't have this as of now. But it can certainly be provided. You can
track the issue here https://jira.dhis2.org/browse/DHIS2-2719.

Zubair

On Tue, Jan 16, 2018 at 4:07 PM, Jasper Timm  wrote:

> Hi DHIS2-devs,
>
> It seems at the moment (in 2.26) when an inbound SMS is received for a
> period that has already been approved, the submission is accepted and there
> is no response SMS to the user informing them about the approval status of
> the period they submitted for.
>
> Are there plans to support a response SMS at all for this case?
>
> Thanks,
>
> - Jasper
>
> --
>
> *Jasper Timm*
>
> Lead Software Developer
>
> *eHealth Africa*
>
> Mobile +232 99891119 <+23299891119>
>
> www.ehealthafrica.org
>
>
> 
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] SMS Parse Error in DHIS2 2.28

2017-11-09 Thread Zubair Asghar Raja
Yes.
StKA a.24
StKA is supposed to be command name. Whereas in the snapshot I can see it
named as PMTCT.
Secondly, Field Separator ( in your case "." ) cannot be used for assigning
values to parameters. You can try this a=24 and I hope it will work.

Regards
Zubair

On Thu, Nov 9, 2017 at 11:26 AM, Ocaya Stephen <stepho...@gmail.com> wrote:

> Dear Zubair,
>
> Thanks for a quick response.
>
> The Command uses a KEY_VALUE_PARSER between data element codes and the
> values separated by a dot (".").
>
> See attached screenshot for a sample command. Is there anything seemingly
> wrong?
>
> Regards
>
> On Thu, Nov 9, 2017 at 1:20 PM, Zubair Asghar Raja <zub...@dhis2.org>
> wrote:
>
>> Hi Stephen,
>> I can see you are using "." in sms Text. Just make sure that sms commands
>> are created properly. Your sms commands should comply with rules provided
>> in the documentation.
>>
>> https://docs.dhis2.org/master/en/user/html/mobile_sms_comman
>> d.html#d0e35642
>>
>> Regards
>> Zubair
>>
>>
>> On Thu, Nov 9, 2017 at 11:12 AM, Ocaya Stephen <stepho...@gmail.com>
>> wrote:
>>
>>> Dear Zubair and the DHIS2 Mobile team,
>>>
>>> I recently upgraded the DHIS2 to 2.28 and somehow the DHIS2 SMS Parsing
>>> seems not to work. Please see attached error logs.
>>>
>>> * INFO  2017-11-09 13:02:39,973 'system-process' update
>>> org.hisp.dhis.user.UserCredentials, name: Systemuser Mobile, uid:
>>> QQudwuq4KmZ (AuditLogUtil.java [http-bio-8080-exec-18])
>>>
>>> * INFO  2017-11-09 13:02:42,857 Received SMS: StKA a.24
>>> (SmsConsumerThread.java [taskScheduler-21])
>>>
>>> java.lang.ArrayIndexOutOfBoundsException
>>>
>>>
>>> Thanks for your immediate support to troubleshoot the system
>>> --
>>>
>>> *You can do anything, but not everything.*
>>>
>>>
>>
>
>
> --
>
> *You can do anything, but not everything.*
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] SMS Parse Error in DHIS2 2.28

2017-11-09 Thread Zubair Asghar Raja
Hi Stephen,
I can see you are using "." in sms Text. Just make sure that sms commands
are created properly. Your sms commands should comply with rules provided
in the documentation.

https://docs.dhis2.org/master/en/user/html/mobile_sms_command.html#d0e35642

Regards
Zubair


On Thu, Nov 9, 2017 at 11:12 AM, Ocaya Stephen  wrote:

> Dear Zubair and the DHIS2 Mobile team,
>
> I recently upgraded the DHIS2 to 2.28 and somehow the DHIS2 SMS Parsing
> seems not to work. Please see attached error logs.
>
> * INFO  2017-11-09 13:02:39,973 'system-process' update
> org.hisp.dhis.user.UserCredentials, name: Systemuser Mobile, uid:
> QQudwuq4KmZ (AuditLogUtil.java [http-bio-8080-exec-18])
>
> * INFO  2017-11-09 13:02:42,857 Received SMS: StKA a.24
> (SmsConsumerThread.java [taskScheduler-21])
>
> java.lang.ArrayIndexOutOfBoundsException
>
>
> Thanks for your immediate support to troubleshoot the system
> --
>
> *You can do anything, but not everything.*
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] SMS Service Configuration Not Working on 2.27 & 2.28

2017-10-23 Thread Zubair Asghar Raja
Souravh,

It has been fixed. Test it again.


Br,
Zubair

On Sun, Oct 22, 2017 at 6:25 AM, Sourabh Bhardwaj <bsourabh...@gmail.com>
wrote:

> Hi Zubair,
>
> Its a HTTP Gateway , it works if we call following API directly in the
> browser:
>
> http://api.sparrowsms.com/v2/sms/?token=###=###=###=test
>
> Following is the screenshot of Gateway configuration :
>
> [image: Inline image 2]
> Regards,
>
> On Sun, Oct 22, 2017 at 4:10 AM, Zubair Asghar Raja <zub...@dhis2.org>
> wrote:
>
>> Hi Sourabh,
>> Which type of sms gateway have you configured?
>>
>> BR //
>> Zubair
>>
>>
>>
>>
>>
>>
>>
>>
>> On Sat, Oct 21, 2017 at 6:15 PM, Sourabh Bhardwaj <bsourabh...@gmail.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> I have setup a Sms Gateway. Gateway is configured successfully. But
>>> while sending a message  through default send sms/ Sms widget available in
>>> Tracker Capture module it is getting failed each-time.
>>>
>>> However If I use same gateway on 2.26 , it is working fine there.
>>>
>>> Following is the response returned :
>>>
>>>
>>> *{"summaries":[{"total":1,"failed":1,"pending":0,"sent":0,"status":"FAILED","errorMessage":"failed","batchType":"SMS"}]}
>>>  *
>>>
>>> On log getting error 403 forbidden :
>>>
>>>
>>> * INFO  2017-10-21 21:24:34,247 Response status code: 403
>>> (SmsGateway.java [http-nio-8080-exec-7])
>>> * ERROR 2017-10-21 21:24:34,249 failed (SmsMessageSender.java
>>> [http-nio-8080-exec-7])
>>> * INFO  2017-10-21 21:28:51,252 Invoking message sender:
>>> SmsMessageSender (DefaultOutboundMessageBatchService.java
>>> [http-nio-8080-exec-4])
>>> * ERROR 2017-10-21 21:28:51,665 Client error (SmsGateway.java
>>> [http-nio-8080-exec-4])
>>> org.springframework.web.client.HttpClientErrorException: 403 FORBIDDEN
>>> at org.springframework.web.client.DefaultResponseErrorHandler.h
>>> andleError(DefaultResponseErrorHandler.java:63)
>>> at org.springframework.web.client.RestTemplate.handleResponse(R
>>> estTemplate.java:700)
>>> at org.springframework.web.client.RestTemplate.doExecute(RestTe
>>> mplate.java:653)
>>> at org.springframework.web.client.RestTemplate.execute(RestTemp
>>> late.java:613)
>>> at org.springframework.web.client.RestTemplate.exchange(RestTem
>>> plate.java:531)
>>> at org.hisp.dhis.sms.config.SmsGateway.send(SmsGateway.java:89)
>>> at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.send(Simpl
>>> isticHttpGetGateWay.java:107)
>>> at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.lambda$sen
>>> dBatch$0(SimplisticHttpGetGateWay.java:84)
>>> at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipel
>>> ine.java:193)
>>> at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Ar
>>> rayList.java:1374)
>>> at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.
>>> java:481)
>>> at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPi
>>> peline.java:471)
>>> at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Reduc
>>> eOps.java:708)
>>> at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.
>>> java:234)
>>> at java.util.stream.ReferencePipeline.collect(ReferencePipeline
>>> .java:499)
>>> at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.sendBatch(
>>> SimplisticHttpGetGateWay.java:85)
>>> at org.hisp.dhis.sms.config.SmsMessageSender.sendMessageBatch(S
>>> msMessageSender.java:153)
>>> at org.hisp.dhis.outboundmessage.DefaultOutboundMessageBatchSer
>>> vice.send(DefaultOutboundMessageBatchService.java:116)
>>> at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipel
>>> ine.java:193)
>>> at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Ar
>>> rayList.java:1374)
>>> at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.
>>> java:481)
>>> at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPi
>>> peline.java:471)
>>> at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(For
>>> EachOps.java:151)
>>>  

Re: [Dhis2-devs] SMS Service Configuration Not Working on 2.27 & 2.28

2017-10-21 Thread Zubair Asghar Raja
Hi Sourabh,
Which type of sms gateway have you configured?

BR //
Zubair








On Sat, Oct 21, 2017 at 6:15 PM, Sourabh Bhardwaj 
wrote:

> Hi All,
>
> I have setup a Sms Gateway. Gateway is configured successfully. But while
> sending a message  through default send sms/ Sms widget available in
> Tracker Capture module it is getting failed each-time.
>
> However If I use same gateway on 2.26 , it is working fine there.
>
> Following is the response returned :
>
>
> *{"summaries":[{"total":1,"failed":1,"pending":0,"sent":0,"status":"FAILED","errorMessage":"failed","batchType":"SMS"}]}
>  *
>
> On log getting error 403 forbidden :
>
>
> * INFO  2017-10-21 21:24:34,247 Response status code: 403 (SmsGateway.java
> [http-nio-8080-exec-7])
> * ERROR 2017-10-21 21:24:34,249 failed (SmsMessageSender.java
> [http-nio-8080-exec-7])
> * INFO  2017-10-21 21:28:51,252 Invoking message sender: SmsMessageSender (
> DefaultOutboundMessageBatchService.java [http-nio-8080-exec-4])
> * ERROR 2017-10-21 21:28:51,665 Client error (SmsGateway.java
> [http-nio-8080-exec-4])
> org.springframework.web.client.HttpClientErrorException: 403 FORBIDDEN
> at org.springframework.web.client.DefaultResponseErrorHandler.
> handleError(DefaultResponseErrorHandler.java:63)
> at org.springframework.web.client.RestTemplate.
> handleResponse(RestTemplate.java:700)
> at org.springframework.web.client.RestTemplate.doExecute(
> RestTemplate.java:653)
> at org.springframework.web.client.RestTemplate.execute(
> RestTemplate.java:613)
> at org.springframework.web.client.RestTemplate.exchange(
> RestTemplate.java:531)
> at org.hisp.dhis.sms.config.SmsGateway.send(SmsGateway.java:89)
> at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.send(
> SimplisticHttpGetGateWay.java:107)
> at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.
> lambda$sendBatch$0(SimplisticHttpGetGateWay.java:84)
> at java.util.stream.ReferencePipeline$3$1.accept(
> ReferencePipeline.java:193)
> at java.util.ArrayList$ArrayListSpliterator.
> forEachRemaining(ArrayList.java:1374)
> at java.util.stream.AbstractPipeline.copyInto(
> AbstractPipeline.java:481)
> at java.util.stream.AbstractPipeline.wrapAndCopyInto(
> AbstractPipeline.java:471)
> at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(
> ReduceOps.java:708)
> at java.util.stream.AbstractPipeline.evaluate(
> AbstractPipeline.java:234)
> at java.util.stream.ReferencePipeline.collect(
> ReferencePipeline.java:499)
> at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.sendBatch(
> SimplisticHttpGetGateWay.java:85)
> at org.hisp.dhis.sms.config.SmsMessageSender.sendMessageBatch(
> SmsMessageSender.java:153)
> at org.hisp.dhis.outboundmessage.DefaultOutboundMessageBatchSer
> vice.send(DefaultOutboundMessageBatchService.java:116)
> at java.util.stream.ReferencePipeline$3$1.accept(
> ReferencePipeline.java:193)
> at java.util.ArrayList$ArrayListSpliterator.
> forEachRemaining(ArrayList.java:1374)
> at java.util.stream.AbstractPipeline.copyInto(
> AbstractPipeline.java:481)
> at java.util.stream.AbstractPipeline.wrapAndCopyInto(
> AbstractPipeline.java:471)
> at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(
> ForEachOps.java:151)
> at java.util.stream.ForEachOps$ForEachOp$OfRef.
> evaluateSequential(ForEachOps.java:174)
> at java.util.stream.AbstractPipeline.evaluate(
> AbstractPipeline.java:234)
> at java.util.stream.ReferencePipeline.forEach(
> ReferencePipeline.java:418)
> at java.util.stream.ReferencePipeline$7$1.accept(
> ReferencePipeline.java:270)
> at java.util.HashMap$EntrySpliterator.
> forEachRemaining(HashMap.java:1683)
> at java.util.stream.AbstractPipeline.copyInto(
> AbstractPipeline.java:481)
> at java.util.stream.AbstractPipeline.wrapAndCopyInto(
> AbstractPipeline.java:471)
> at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(
> ReduceOps.java:708)
> at java.util.stream.AbstractPipeline.evaluate(
> AbstractPipeline.java:234)
> at java.util.stream.ReferencePipeline.collect(
> ReferencePipeline.java:499)
> at org.hisp.dhis.outboundmessage.DefaultOutboundMessageBatchSer
> vice.sendBatches(DefaultOutboundMessageBatchService.java:79)
> at org.hisp.dhis.program.message.DefaultProgramMessageService.
> sendMessages(DefaultProgramMessageService.java:209)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.springframework.aop.support.AopUtils.
> invokeJoinpointUsingReflection(AopUtils.java:333)
> 

Re: [Dhis2-devs] SMS Gateway in 2.25

2017-01-30 Thread Zubair Asghar Raja

Hi Jasper,

This issue has already been answered here 
https://jira.dhis2.org/browse/DHIS2-514.


For Gateway APIs, correct endpoint is /api/gateways. I will update the docs.

Zubair


On 30. jan. 2017 11:31, Jasper Timm wrote:

Hi there DHIS2 devs,

We've recently upgraded our DHIS2 instance from 2.22 to 2.25 
(incrementally through 2.23, 2.24 e.t.c. and the SQL upgrade scripts). 
As part of the upgrade we were forced to remove our previous SMS 
gateway configuration and re-add it after the upgrade to 2.25.


When looking at the SMS gateway configuration screen now though, I 
fail to see the section which previously listed the status of the 
gateway and allowed one to stop/start/restart e.t.c. Is this a known 
issue? The same thing can be seen on the play instance: 
https://play.dhis2.org/demo/dhis-web-maintenance-mobile/showSMSConfigureForm.action


As far as I can tell, the SMS gateway is not running on our instance, 
but I get no errors in the logs regarding this.


Additionally, when attempting to access the SMS gateway config from 
the API, it seems the endpoint listed in the documentation does not 
exist, i.e.: /api/sms/gateways is not a valid endpoint. Is this known?


Cheers,

- Jasper


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


--
Zubair Asghar
Software Developer, DHIS2
University of Oslo
www.dhis2.org

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] SMS Gateway in 2.25

2017-01-30 Thread Zubair Asghar Raja

Hi Jasper,

This issue has already been answered here 
https://jira.dhis2.org/browse/DHIS2-514.


For Gateway APIs, correct endpoint is /api/gateways. I will update the docs.

Zubair


On 30. jan. 2017 11:31, Jasper Timm wrote:

Hi there DHIS2 devs,

We've recently upgraded our DHIS2 instance from 2.22 to 2.25 
(incrementally through 2.23, 2.24 e.t.c. and the SQL upgrade scripts). 
As part of the upgrade we were forced to remove our previous SMS 
gateway configuration and re-add it after the upgrade to 2.25.


When looking at the SMS gateway configuration screen now though, I 
fail to see the section which previously listed the status of the 
gateway and allowed one to stop/start/restart e.t.c. Is this a known 
issue? The same thing can be seen on the play instance: 
https://play.dhis2.org/demo/dhis-web-maintenance-mobile/showSMSConfigureForm.action


As far as I can tell, the SMS gateway is not running on our instance, 
but I get no errors in the logs regarding this.


Additionally, when attempting to access the SMS gateway config from 
the API, it seems the endpoint listed in the documentation does not 
exist, i.e.: /api/sms/gateways is not a valid endpoint. Is this known?


Cheers,

- Jasper


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


--
Zubair Asghar
Software Developer, DHIS2
University of Oslo
www.dhis2.org

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Character limit on incoming SMS message

2016-11-04 Thread Zubair Asghar Raja

Hi Jasper,

Yes it is doable.  You are using 2.22 right ?


Zubair




On 04. nov. 2016 16:20, Jasper Timm wrote:

Hi DHIS2 Devs,

I'm encountering an error when attempting to send a long incoming SMS 
message to the DHIS2 (v2.22) API - /api/sms/incoming


The message is 809 characters, which the phone, telco and SMS gateway 
all seem to be fine with, presumably via a concatenated SMS, but DHIS2 
seems to respond with a 500 Internal Server Error.


Looking at the catalina logs, it appears one of the SQL fields is 
limited to a 255 VARCHAR:

* ERROR 2016-11-04 09:24:46,236 ERROR: value toolong  for  type character 
varying(255) (SqlExceptionHelper.java [http-apr-8080-exec-9])

Would it be possible to expand that to something bigger? Say around 2000?

Thanks,

- Jasper


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


--
Zubair Asghar
Software Developer, DHIS2
University of Oslo
www.dhis2.org

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Bug 1626179] [NEW] SMS not processing messages after upgrade from 2.20 to 2.24

2016-09-21 Thread Zubair Asghar Raja
Hello Kaye, 
It would be good if you can share logs or atleast snapshot. 

Thanks 
Regards
Zubair




On 21 Sep 2016 9:30 PM, at 9:30 PM, Kaye Milton  wrote:
>Public bug reported:
>
>Hi Devs,
>
>Recently when i upgraded to DHIS2 2.24 from 2.21, the SMS App has since
>stopped processing messages from users.
>
>Any known bugs and workarounds? If you need an error snapshots, am
>happy
>to share them.
>
>
>Thanks
>
>** Affects: dhis2
> Importance: Undecided
> Status: New
>
>-- 
>You received this bug notification because you are a member of DHIS 2
>developers, which is subscribed to DHIS.
>https://bugs.launchpad.net/bugs/1626179
>
>Title:
>  SMS not processing messages after upgrade from 2.20 to 2.24
>
>Status in DHIS:
>  New
>
>Bug description:
>  Hi Devs,
>
>  Recently when i upgraded to DHIS2 2.24 from 2.21, the SMS App has
>  since stopped processing messages from users.
>
>  Any known bugs and workarounds? If you need an error snapshots, am
>  happy to share them.
>
>  
>  Thanks
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/dhis2/+bug/1626179/+subscriptions
>
>___
>Mailing list: https://launchpad.net/~dhis2-devs
>Post to : dhis2-devs@lists.launchpad.net
>Unsubscribe : https://launchpad.net/~dhis2-devs
>More help   : https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Using SMS Commands for data capture

2016-09-01 Thread Zubair Asghar Raja

Hi Jasper,

OrgUnit code is unique identifier for organisation unit so in that sense 
its same as ID.
For period type there is no prefix because the date mentioned in SMS 
text is used to create PeriodType. If Date is not mentioned in SMS then 
it is retrieved from DataSet.


I will test and share sample SMS command by tomorrow.





On 01. sep. 2016 16:55, Jasper Timm wrote:

Thanks very much for the response Zubair, that's quite helpful.

So when specifying the orgUnit in the command you need to precede it 
by 'org '? What exactly is meant by , is it simply the id 
of the orgUnit? Is there a similar prefix required when specifying period?


Maybe you could give an example of an SMS Command submission 
specifying both orgUnit and period?


Thanks,

- Jasper

On Tue, Aug 30, 2016 at 9:01 PM, Zubair Asghar Raja <zub...@dhis2.org 
<mailto:zub...@dhis2.org>> wrote:


Hi Jasper,

Sorry for the late response.

In SMS orgUnit can be specified like this "org " If
no orgUnit is specified in SMS then first user is retrieved from
phoneNumber and then orgUnit from that user.
As far as PeriodType is concerned it should be specified in this
format "ddMM" for example 3108, but in case its not specified then
PeriodType will be retrieved from DataSet attached to SMSCommand.






On 30. aug. 2016 20:17, Jasper Timm wrote:

Still hoping for a response on this regarding the more specific
questions regarding identifying OrgUnit by phone and how to
specify OrgUnit/Period.

Zubair - are you aware of how that works? Or any other DHIS2 dev?

Thanks,

- Jasper

On Wed, Aug 24, 2016 at 1:38 PM, Jasper Timm
<jasper.t...@ehealthnigeria.org
<mailto:jasper.t...@ehealthnigeria.org>> wrote:

Hi Zubair,

Thanks for the quick response but I don't think it answered
the questions I asked regarding how to specify the OrgUnit
and Period at all.

Also, in the case where no OrgUnit is specified in the SMS,
I'm assuming given there is a 'User belongs to more than one
OrgUnit' message that DHIS2 attempts to guess the user by the
phone number the SMS was received from and uses the OrgUnit
the user is assigned to?

And for the multiple messages then - I assume you need to
split the submission up into multiple SMSs with the same
'header' (command name, orgunit, period?) and separate lists
of the key,value pairs for the data elements?

As in:

MSG1 = "report   de1,1 de2,0 de3,4"
MSG2 = "report   de4,2 de5,2" e.t.c.

Which makes it a bit tricky when it comes to considering the
submission 'complete' I suppose. I guess then you'd have to
allow partial submissions to complete the form.

Thanks,

    - Jasper

On Wed, Aug 24, 2016 at 1:04 PM, Zubair Asghar Raja
<zub...@dhis2.org <mailto:zub...@dhis2.org>> wrote:

Hi Jasper,

please find the answers in line.




On 24. aug. 2016 13:58, Jasper Timm wrote:

Hi there,

We're considering using the SMS Commands functionality
of DHIS2 to receive data from the data capture Android
App when there is no internet connectivity.

I'm working from the documentation here:

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

<http://dhis2.github.io/dhis2-docs/master/en/user/html/mobile_sms_command.html>

Unfortunately it still leaves a few questions:

- How do you specify the OrgUnit and Period? Does the
discussion from this thread still apply?
(https://lists.launchpad.net/dhis2-users/msg06122.html)
If so - how does the parser differentiate when you
specify BOTH OrgUnit and Period? Where does one assign
codes to the OrgUnits?

*   SMSCommand is associated with a Parser and parser
is attached to certain Programs (with/without registration).

   1. Create SMSCommand
   2. Edit SMSCommand
   3. Set response messages to be sent to the
originating user.
   4. Set codes for data elements ( for example age,
height, orgunit etc )
*


- What happens when a message is longer than one SMS
message?

*  When text is longer then one SMS(160 characters) then
it will be sent as multiple SMSes each having <= 160
characters. *


It'd be great to see these answers in the documentation
itself.

Thanks,

- Jasper




___
Mailing list:https://launchpad.net/~dhis2-devs

Re: [Dhis2-devs] Using SMS Commands for data capture

2016-08-30 Thread Zubair Asghar Raja

Hi Jasper,

Sorry for the late response.

In SMS orgUnit can be specified like this "org " If no 
orgUnit is specified in SMS then first user is retrieved from 
phoneNumber and then orgUnit from that user.
As far as PeriodType is concerned it should be specified in this format 
"ddMM" for example 3108, but in case its not specified then PeriodType 
will be retrieved from DataSet attached to SMSCommand.






On 30. aug. 2016 20:17, Jasper Timm wrote:
Still hoping for a response on this regarding the more specific 
questions regarding identifying OrgUnit by phone and how to specify 
OrgUnit/Period.


Zubair - are you aware of how that works? Or any other DHIS2 dev?

Thanks,

- Jasper

On Wed, Aug 24, 2016 at 1:38 PM, Jasper Timm 
<jasper.t...@ehealthnigeria.org 
<mailto:jasper.t...@ehealthnigeria.org>> wrote:


Hi Zubair,

Thanks for the quick response but I don't think it answered the
questions I asked regarding how to specify the OrgUnit and Period
at all.

Also, in the case where no OrgUnit is specified in the SMS, I'm
assuming given there is a 'User belongs to more than one OrgUnit'
message that DHIS2 attempts to guess the user by the phone number
the SMS was received from and uses the OrgUnit the user is
assigned to?

And for the multiple messages then - I assume you need to split
the submission up into multiple SMSs with the same 'header'
(command name, orgunit, period?) and separate lists of the
key,value pairs for the data elements?

As in:

MSG1 = "report   de1,1 de2,0 de3,4"
MSG2 = "report   de4,2 de5,2" e.t.c.

Which makes it a bit tricky when it comes to considering the
submission 'complete' I suppose. I guess then you'd have to allow
partial submissions to complete the form.

Thanks,

- Jasper

    On Wed, Aug 24, 2016 at 1:04 PM, Zubair Asghar Raja
<zub...@dhis2.org <mailto:zub...@dhis2.org>> wrote:

Hi Jasper,

please find the answers in line.




On 24. aug. 2016 13:58, Jasper Timm wrote:

Hi there,

We're considering using the SMS Commands functionality of
DHIS2 to receive data from the data capture Android App when
there is no internet connectivity.

I'm working from the documentation here:

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

<http://dhis2.github.io/dhis2-docs/master/en/user/html/mobile_sms_command.html>

Unfortunately it still leaves a few questions:

- How do you specify the OrgUnit and Period? Does the
discussion from this thread still apply?
(https://lists.launchpad.net/dhis2-users/msg06122.html
<https://lists.launchpad.net/dhis2-users/msg06122.html>) If
so - how does the parser differentiate when you specify BOTH
OrgUnit and Period? Where does one assign codes to the OrgUnits?

*   SMSCommand is associated with a Parser and parser is
attached to certain Programs (with/without registration).

   1. Create SMSCommand
   2. Edit SMSCommand
   3. Set response messages to be sent to the originating
user.
   4. Set codes for data elements ( for example age,
height, orgunit etc )
*


- What happens when a message is longer than one SMS message?

*  When text is longer then one SMS(160 characters) then it
will be sent as multiple SMSes each having <= 160 characters. *


It'd be great to see these answers in the documentation itself.

Thanks,

- Jasper




___
Mailing list:https://launchpad.net/~dhis2-devs
<https://launchpad.net/%7Edhis2-devs>
Post to :dhis2-devs@lists.launchpad.net
<mailto:dhis2-devs@lists.launchpad.net>
Unsubscribe :https://launchpad.net/~dhis2-devs
<https://launchpad.net/%7Edhis2-devs>
More help   :https://help.launchpad.net/ListHelp
<https://help.launchpad.net/ListHelp>


-- 
Zubair Asghar

Software Developer, DHIS2
University of Oslo
www.dhis2.org <http://www.dhis2.org>


--
Zubair Asghar
Software Developer, DHIS2
University of Oslo
www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Using SMS Commands for data capture

2016-08-24 Thread Zubair Asghar Raja

Hi Jasper,

please find the answers in line.




On 24. aug. 2016 13:58, Jasper Timm wrote:

Hi there,

We're considering using the SMS Commands functionality of DHIS2 to 
receive data from the data capture Android App when there is no 
internet connectivity.


I'm working from the documentation here: 
http://dhis2.github.io/dhis2-docs/master/en/user/html/mobile_sms_command.html


Unfortunately it still leaves a few questions:

- How do you specify the OrgUnit and Period? Does the discussion from 
this thread still apply? 
(https://lists.launchpad.net/dhis2-users/msg06122.html) If so - how 
does the parser differentiate when you specify BOTH OrgUnit and 
Period? Where does one assign codes to the OrgUnits?
*   SMSCommand is associated with a Parser and parser is attached to 
certain Programs (with/without registration).


   1. Create SMSCommand
   2. Edit SMSCommand
   3. Set response messages to be sent to the originating user.
   4. Set codes for data elements ( for example age, height, 
orgunit etc )

*


- What happens when a message is longer than one SMS message?
*  When text is longer then one SMS(160 characters) then it will be sent 
as multiple SMSes each having <= 160 characters. *


It'd be great to see these answers in the documentation itself.

Thanks,

- Jasper




___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


--
Zubair Asghar
Software Developer, DHIS2
University of Oslo
www.dhis2.org

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Android SMS Gateway App - Can use for large scale??

2016-06-28 Thread Zubair Asghar Raja

Hi Harsh,

This app was designed for the purpose of testing and demonstration. So 
its not recommended to be used for production DHIS 2 installations. 
Using network-based SMS gateways would be a better way.





On 28. juni 2016 13:51, Harsh Atal wrote:

Hi

We are planning to use the Android SMS Gateway app to get data from 
sms into DHIS. 
[https://play.google.com/store/apps/details?id=org.dhis2.androidsms=en]


But the scale of the implementation which has been finalized is too 
big(>30 districts) Therefore, now need to know if any one has used the 
android app for large scale implementation.


Also, if any one has tested the maximum sms which can be forwarded in 
a certain time period?


Any inputs will be very helpful.

Thanks
harsh




___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


--
Zubair Asghar
Software Developer, DHIS2
University of Oslo
www.dhis2.org

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs-core] No dev meeting today

2016-03-23 Thread Zubair Asghar Raja
Have a happy, peaceful, and fun Easter filled with marshmallows, chocolate, and 
jelly beans ( not spring beans :) )

BR //
Zubair






On 23 Mar 2016 8:05 AM, at 8:05 AM, Morten Olav Hansen  wrote:
>Holidays should always be celebrated I guess? I know in this part of
>the
>world, we already have a big party going on.
>
>-- 
>Morten Olav Hansen
>Senior Engineer, DHIS 2
>University of Oslo
>http://www.dhis2.org
>
>On Wed, Mar 23, 2016 at 2:03 PM, Mark Polak  wrote:
>
>> Happy easter, for the one who celebrate it :)
>>
>> On Wed, Mar 23, 2016 at 7:09 AM, Morten Olav Hansen
>
>> wrote:
>>
>>> 
>>>
>>> Happy Easter everyone.
>>>
>>>
>>> On Wednesday, 23 March 2016, Lars Helge Øverland 
>wrote:
>>>
 Hi,

 There will be no dev meeting today due to Easter.

 Lars

>>>
>>>
>>> --
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>>
>>> --
>>> Mailing list: https://launchpad.net/~dhis2-devs-core
>>> Post to : dhis2-devs-core@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs-core
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>>
>> Mark Polak
>> Software developer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org 
>> m...@dhis2.org
>>
>
>
>
>
>-- 
>Mailing list: https://launchpad.net/~dhis2-devs-core
>Post to : dhis2-devs-core@lists.launchpad.net
>Unsubscribe : https://launchpad.net/~dhis2-devs-core
>More help   : https://help.launchpad.net/ListHelp
-- 
Mailing list: https://launchpad.net/~dhis2-devs-core
Post to : dhis2-devs-core@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs-core
More help   : https://help.launchpad.net/ListHelp


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

2016-03-14 Thread Zubair Asghar Raja
Hi Guy,

I am responsible for SMS related stuff. Can you share the logs ?

Regards
Zubair





On 14 Mar 2016 1:14 PM, at 1:14 PM, "Lars Helge Øverland"  
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 
>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  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 ) 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 
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to: dhis2-us...@lists.launchpad.net
>> 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 
>
>
>
>
>___
>Mailing list: https://launchpad.net/~dhis2-devs
>Post to : dhis2-devs@lists.launchpad.net
>Unsubscribe : https://launchpad.net/~dhis2-devs
>More help   : https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp