duserik
(Eric Dusabe)
17 January 2019 10:51
1
Hi @zubair ,
I was trying to send SMS from DHIS2 using vendor’s API, when checking on sent SMS status, I saw that the SMS was SENT, but the SMS was not really delivered to the mentioned phone number. But when I test the URL through POSTMAN or CURL , the message is delivered to the mentioned phone number. for more information, I enabled the SMS Notifications under Message Settings . bellow is a screenshot of a row in sent SMS.
Thanks.
Eric
1 Like
zubair
(Zubair)
17 January 2019 11:42
2
Hi @duserik
Can you send me the sample curl request you are using. You can omit password.
R,
Zubair
1 Like
duserik
(Eric Dusabe)
17 January 2019 11:47
3
1 Like
zubair
(Zubair)
17 January 2019 11:58
4
this looks straight forward.
what do you have in your gateway configurations
1 Like
zubair
(Zubair)
17 January 2019 12:34
6
@duserik
do you have access to server logs?
1 Like
duserik
(Eric Dusabe)
17 January 2019 12:37
7
@zubair
Job ‘processingSendSmsAction’ started (DefaultJobInstance.java [taskScheduler-19])
[Level: INFO, category: SMS_SEND, time: Thu Jan 17 09:46:40 UTC 2019, message: Sending SMS] (InMemoryNotifier.java [taskScheduler-19])
Sending SMS to [250788743445] (SmsMessageSender.java [taskScheduler-19])
Scheduler initiated execute of job: fwcWeoJYiNj, processingSendSmsAction, SMS_SEND, null (DefaultSchedulingManager.java [tomcat-http-1])
SMS sent (SmsMessageSender.java [taskScheduler-19])
[Level: INFO, category: SMS_SEND, time: Thu Jan 17 09:46:41 UTC 2019, message: Message sending successful] (InMemoryNotifier.java [taskScheduler-19])
‘system-process’ create org.hisp.dhis.sms.outbound.OutboundSms, uid: If53q17SUkF (AuditLogUtil.java [taskScheduler-19])
Job ‘processingSendSmsAction’ executed successfully. Time used: 00:00:01.135 (DefaultJobInstance.java [taskScheduler-19])
1 Like
duserik
(Eric Dusabe)
18 January 2019 07:57
8
Hi @zubair
Did you manage to identify what I did wrong?
Best,
Eric D.
1 Like
zubair
(Zubair)
18 January 2019 09:41
9
Configuration seems to be fine. Can you share gateway credentials in separate email?
1 Like
duserik
(Eric Dusabe)
18 January 2019 10:15
10
@zubair
I already shared my gateway credentials.
Thanks
1 Like
zubair
(Zubair)
18 January 2019 10:20
11
Can you point me to the place where you have already shared gateway credentials ( username & password )
1 Like
duserik
(Eric Dusabe)
18 January 2019 10:24
12
I did send an email to you in this platform you can check your inbox.
1 Like
@zubair could this be the same issue I was looking at with sending SMS? I assume the format of the message is not as the gateway expects.
@duserik was this previously working and failed after a DHIS2 version upgrade?
1 Like
duserik
(Eric Dusabe)
18 January 2019 10:48
14
@Jasper_Timm
Actually this is an initial setup of SMS, on DHIS 2.29.
1 Like
zubair
(Zubair)
18 January 2019 13:09
15
can you please resend it … because i dont see that
thanks
1 Like
duserik
(Eric Dusabe)
18 January 2019 13:15
16
@zubair , Check you message, just resent.
Thanks
1 Like
zubair
(Zubair)
18 January 2019 13:24
17
I do not see any thing.
Which email are you trying to send to?
1 Like
zubair
(Zubair)
18 January 2019 13:25
18
Okay you are sending in community inbox.
1 Like
duserik
(Eric Dusabe)
18 January 2019 13:45
20
@zubair
sorry, there is a typo in the url, please do use this and remove the -X POST -v, consider this one instead:
curl “https://airvas.rw/Spost/api/?text=Hello&phoneno=250788743445&sender=Eric&password= *****”
Thanks
1 Like