← Back to team overview

dhis2-users team mailing list archive

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

 

Thank you Stephen.!

2018-06-06 7:04 GMT+00:00 Ocaya Stephen <stephocay@xxxxxxxxx>:

> yes, you will need to set this from the provider's end point. and Yes you
> will need to authenticate using an existing dhis2 user account with a role
> that adds data and uses sms, DHIS2 supports basic authentication and their
> systems will need to cater for then authentication details in the header.
>
> regards
>
>
>
> On Wed, Jun 6, 2018 at 9:58 AM, DJIBRIL Hakim <djib.hakim@xxxxxxxxx>
> wrote:
>
>> Ok Thank you for feedback
>> Just a clarification please
>>
>> Where I am supposed to setup this link? in dhis2 or at the provider side ?
>> http://<DHIS2_URL>/api/sms/inbound?message=<YOUR TEXT MESAGE>&sender=
>> <http://www.google.com/url?q=http%3A%2F%2Fdhis.mets.or.ug%2Fapi%2Fsms%2Finbound%3Fmessage%3DPmtct%2Ba.43.b.36.c.2.d.7.e.3.f.7.g.2.h.y.I.y%26sender%3D256785411060&sa=D&sntz=1&usg=AFQjCNFxQqerATU_Jx6GMYwT6Pe1bXYi7w><SENDER
>> ID/PHONE NUMBER>
>>
>> If at the provider side, shall I need add credentials?
>>
>>
>> 2018-06-06 6:32 GMT+00:00 Stephen Ocaya <socaya@xxxxxxxxxxxxxx>:
>>
>>> Hi Hakim,
>>>
>>> For Inbound into DHIS2 (from SMS Service provider), you can use this
>>> endpoint template
>>>
>>> http://<DHIS2_URL>/api/sms/inbound?message=<YOUR TEXT MESAGE>&sender=
>>> <http://www.google.com/url?q=http%3A%2F%2Fdhis.mets.or.ug%2Fapi%2Fsms%2Finbound%3Fmessage%3DPmtct%2Ba.43.b.36.c.2.d.7.e.3.f.7.g.2.h.y.I.y%26sender%3D256785411060&sa=D&sntz=1&usg=AFQjCNFxQqerATU_Jx6GMYwT6Pe1bXYi7w><SENDER
>>> ID/PHONE NUMBER>
>>>
>>> and to set the OUTBOUND depending on your service Provider,
>>>
>>> You specify the following:
>>>
>>> Gateway Type: Generic HTTP Gateway
>>> Gateway Name: put short name
>>> Message Parameter: depends on your SMS provider e.g. text
>>> recipient Parameter: depends on your SMS provider e.g. to
>>> URL template: depends on your SMS provider e.g.
>>> http://sms.stephocay.com/sendsms
>>>
>>> You can add custom other parameters e.g. for our SMS provider could be
>>>
>>> <Parameter Variable><Parameter Value>
>>> e.g. from: STEPHEN
>>> username:secretuser
>>> password:password
>>>
>>>
>>> etc.
>>>
>>> Regards
>>>
>>> On Wed, Jun 6, 2018 at 9:14 AM, DJIBRIL Hakim <djib.hakim@xxxxxxxxx>
>>> 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@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>>
>>> Strategic Information Systems for Actions
>>> Plot 36 Impala Avenue, Kololo
>>> <https://maps.google.com/?q=Plot+36+Impala+Avenue,+Kololo&entry=gmail&source=g>
>>> P.O. Box 4750, Kampala
>>>
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> --
> --
> *Stephen Ocaya*
> Tel: +256 393 217 892 | Mob: +256774558980
> www.stephocay.com
> SkypeID: stephocay
>

Follow ups

References