Kannel get-url format for recieving SMS in DHIS2

Dear DHIS2 Dev,

I am implementing a kannel based HTTP gateway to recieve SMPP traffic from an ISP.

Has anyone implemented receive SMS in DHIS2 from kannel?

I would like to know how the get url for received SMS in DHIS2 looks like

···


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

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

+256 774149 775, + 256 759 800161

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

Hi,

I’m also having same issue. Do we have to enter a common URL template which support both send/receive while registering SMS gateway.

Thank you

···

On Thu, Sep 25, 2014 at 9:11 PM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Dear DHIS2 Dev,

I am implementing a kannel based HTTP gateway to recieve SMPP traffic from an ISP.

Has anyone implemented receive SMS in DHIS2 from kannel?

I would like to know how the get url for received SMS in DHIS2 looks like


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

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

+256 774149 775, + 256 759 800161

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


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


Pamod

Dear Pamod,

I have actually managed to get it.
It looks like this in the kannel get-url:
http://localhost:8080/sms/sms?sender=%p&received_time=%t%&message=%a"

You need something in between to handle authentication to DHIS2 application.
I got a war called sms.war which I placed in between to handle
authentication.
Go to /sms/WEB-INF/spring-servlet.xml and edit it accordingly.

Though I still have issues to authenticate due to a proxy but it works.

See attached,
Alex

···

On Fri, Sep 26, 2014 at 4:25 PM, Pamod Amarakoon <pamodm@gmail.com> wrote:

Hi,

I'm also having same issue. Do we have to enter a common URL template
which support both send/receive while registering SMS gateway.

Thank you

On Thu, Sep 25, 2014 at 9:11 PM, Alex Tumwesigye <atumwesigye@gmail.com> > wrote:

Dear DHIS2 Dev,

I am implementing a kannel based HTTP gateway to recieve SMPP traffic
from an ISP.
Has anyone implemented receive SMS in DHIS2 from kannel?

I would like to know how the get url for received SMS in DHIS2 looks like

--
Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET
Kampala
Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

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

+256 774149 775, + 256 759 800161

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

_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help

--
Pamod

--
Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET
Kampala
Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

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

+256 774149 775, + 256 759 800161

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

Dear Pamod,

After testing, I realised that sms.war was giving me issues so I have decided to use the Basic Authentication in the Kannel SMS gateway.

I will test and let you if it works, then I can share my configuration template.

Thanks

···

On Fri, Sep 26, 2014 at 5:15 PM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Dear Pamod,

I have actually managed to get it.

It looks like this in the kannel get-url:

http://localhost:8080/sms/sms?sender=%p&received_time=%t%&message=%a"

You need something in between to handle authentication to DHIS2 application.

I got a war called sms.war which I placed in between to handle authentication.

Go to /sms/WEB-INF/spring-servlet.xml and edit it accordingly.

Though I still have issues to authenticate due to a proxy but it works.

See attached,

Alex


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

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

+256 774149 775, + 256 759 800161

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

On Fri, Sep 26, 2014 at 4:25 PM, Pamod Amarakoon pamodm@gmail.com wrote:

Hi,

I’m also having same issue. Do we have to enter a common URL template which support both send/receive while registering SMS gateway.

Thank you


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

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

+256 774149 775, + 256 759 800161

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

On Thu, Sep 25, 2014 at 9:11 PM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Dear DHIS2 Dev,

I am implementing a kannel based HTTP gateway to recieve SMPP traffic from an ISP.

Has anyone implemented receive SMS in DHIS2 from kannel?

I would like to know how the get url for received SMS in DHIS2 looks like


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

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

+256 774149 775, + 256 759 800161

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


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


Pamod

Hi, thanx a lot for the reply. In fact I was on the process of testing it, I’d be grateful if you can share your method if it works.

Thank you

Regards,

Pamod

···

On Fri, Sep 26, 2014 at 9:11 PM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Dear Pamod,

After testing, I realised that sms.war was giving me issues so I have decided to use the Basic Authentication in the Kannel SMS gateway.

I will test and let you if it works, then I can share my configuration template.

Thanks


Pamod

On Fri, Sep 26, 2014 at 5:15 PM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Dear Pamod,

I have actually managed to get it.

It looks like this in the kannel get-url:

http://localhost:8080/sms/sms?sender=%p&received_time=%t%&message=%a"

You need something in between to handle authentication to DHIS2 application.

I got a war called sms.war which I placed in between to handle authentication.

Go to /sms/WEB-INF/spring-servlet.xml and edit it accordingly.

Though I still have issues to authenticate due to a proxy but it works.

See attached,

Alex


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

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

+256 774149 775, + 256 759 800161

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

On Fri, Sep 26, 2014 at 4:25 PM, Pamod Amarakoon pamodm@gmail.com wrote:

Hi,

I’m also having same issue. Do we have to enter a common URL template which support both send/receive while registering SMS gateway.

Thank you


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

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

+256 774149 775, + 256 759 800161

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

On Thu, Sep 25, 2014 at 9:11 PM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Dear DHIS2 Dev,

I am implementing a kannel based HTTP gateway to recieve SMPP traffic from an ISP.

Has anyone implemented receive SMS in DHIS2 from kannel?

I would like to know how the get url for received SMS in DHIS2 looks like


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

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

+256 774149 775, + 256 759 800161

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


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


Pamod

Hello @Pamod, I’m facing the same issue as you had here when setting SMS gateway - Kannel - DHIS2

Could you please share with me the process to reach to the solution?

Best,
Josue

Hi Josue, it’s been close to 6 years and I’m sorry I can’t remember offhand how we fixed it and need to check the entire thing again.