NIC SMS Integration

Overview

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

Steps

1

Add NIC SMS Service Code

File: 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.

2

Place the NIC Certificate

File: egov-notification-sms/src/main/resources/smsgwsmsgovin.cer

  • Put the NIC .cer certificate file here.

  • Needed for a secure connection if sms.verify.certificate=true.

3

Update Environment Config

File: Your environment YAML file (like values.yaml or dev.yaml)

  • Add/update these configs under 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.

4

Build & Deploy

  • Run:

    mvn clean install
  • Deploy the updated egov-notification-sms service to your environment (e.g., Kubernetes).

Summary - Checklist

Last updated

Was this helpful?