Outbound sms issue

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

Hi @duserik
Can you send me the sample curl request you are using. You can omit password.

R,
Zubair

1 Like

Hi @zubair

curl “https://airvas.rw/Spsost/api/?text=Hello&phoneno=250788743445&sender=Eric&password=*******” -X POST -v

Regards,

Eric

1 Like

this looks straight forward.
what do you have in your gateway configurations

1 Like

1 Like

@duserik
do you have access to server logs?

1 Like

@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

Hi @zubair

Did you manage to identify what I did wrong?

Best,

Eric D.

1 Like

Configuration seems to be fine. Can you share gateway credentials in separate email?

1 Like

@zubair

I already shared my gateway credentials.

Thanks

1 Like

Can you point me to the place where you have already shared gateway credentials ( username & password )

1 Like

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

@Jasper_Timm
Actually this is an initial setup of SMS, on DHIS 2.29.

1 Like

can you please resend it … because i dont see that
thanks

1 Like

@zubair, Check you message, just resent.

Thanks

1 Like

I do not see any thing.
Which email are you trying to send to?

1 Like

Okay you are sending in community inbox.

1 Like

@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