Hi again I have choose this authorities but can't post inbouding api with the user having this role. I got this error {"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"User not registered in the system"}. But working fine if I have all in authorities. the originator number is well assigned to a user. I am using V2.28 the link I am posting myDhis2URL/api/sms/inbound?message=test&originator=2**********
Do I miss something PLEASE ? 2018-06-06 7:51 GMT+00:00 DJIBRIL Hakim <djib.ha...@gmail.com>: > Thank you Stephen.! > > 2018-06-06 7:04 GMT+00:00 Ocaya Stephen <stepho...@gmail.com>: > >> 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.ha...@gmail.com> >> 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 <soc...@hispuganda.org>: >>> >>>> 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.ha...@gmail.com> >>>> 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 >>>>> >>>>> >>>> >>>> >>>> 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@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