Integrate the NIC SMS Gateway for secure, DLT-compliant SMS delivery in DIGIT.
Why use NIC SMS?
Secure (TLS 1.2 + certificate)
DLT-compliant (template IDs)
Government sender ID
Customizable message parameters
File: egov-notification-sms/src/main/java/org/egov/web/notification/sms/service/impl/NICSMSServiceImpl.javaarrow-up-right
egov-notification-sms/src/main/java/org/egov/web/notification/sms/service/impl/NICSMSServiceImpl.java
Create this file.
Paste the NIC SMS integration Java class code.
This code:
Sends SMS securely to NIC via HTTPS.
Handles DLT template IDs.
Uses SSL certificate for authentication.
File: egov-notification-sms/src/main/resources/smsgwsmsgovin.cerarrow-up-right
egov-notification-sms/src/main/resources/smsgwsmsgovin.cer
Put the NIC .cer certificate file here.
.cer
Needed for a secure connection if sms.verify.certificate=true.
sms.verify.certificate=true
File: Your environment YAML file (like values.yaml or dev.yaml)
values.yaml
dev.yaml
Add/update these configs under egov-notification-sms:
egov-notification-sms
sms-provider-url: "https://smsgw.sms.gov.in/failsafe/MLink" sms.provider.class: "NIC" sms.verify.certificate: "true" sms.senderid: "IUPYOG" sms.provider.entityid: "1201160648389652723" sms.default.tmplid: "1" sms.enabled: "true" # ...other required parameters
Ensure that only the NIC is active as the SMS provider.
Run:
mvn clean install
Deploy the updated egov-notification-sms service to your environment (e.g., Kubernetes).
NIC SMS Java class added
NIC certificate placed in resources
Config updated in YAML
Project built
Service deployed
Last updated 5 months ago
Was this helpful?