Skip to content

A Django-based SMS and API system for identity lookup, customer registration, bundle activation, and automated recharging. Used by telecom staff, customers, and external systems via REST APIs.

Notifications You must be signed in to change notification settings

batbyr-hub/tusgaidugaar

Repository files navigation

Tusgai Dugaar 📲📡

Tusgai Dugaar is a Django-based backend system that powers various telecom services through SMS commands and REST APIs. It enables internal staff, customers, and external systems to interact with subscriber data, recharge services, and manage special number-based features.

🧩 Features

1. 📥 SMS-based Customer Lookup (Shortcode 400)

  • Telecom staff can send a citizen's ID number to 400.
  • The system responds with:
    • Whether the ID is registered
    • List of phone numbers linked to the citizen

2. 🔌 Public and Developer APIs

  • Get user info by ID number or phone number via REST API
  • Register user if they are not in the system
  • Secured API endpoints for integration with other platforms

3. 📦 Bundle Purchase via SMS (Shortcode 510)

  • Users on postpaid plans can send an SMS to 510 to buy data packages
  • The system validates eligibility using internal algorithms
  • If valid, the system performs automatic recharge using account balance

4. 👨‍👩‍👧 SMS-based Group Linking (Shortcode 555)

  • A user can text 555 to:
    • Link another user to their account
    • Allow unlimited free communication between group members
    • Optionally recharge another member’s account via SMS

🛠️ Tech Stack

  • Python 3
  • Django
  • MySQL
  • Django REST Framework (DRF)
  • SMS gateway (via telecom provider)
  • JSON / Postman for API testing

⚙️ Installation

git clone https://github.com/batbyr-hub/tusgaidugaar.git
cd tusgaidugaar
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver

About

A Django-based SMS and API system for identity lookup, customer registration, bundle activation, and automated recharging. Used by telecom staff, customers, and external systems via REST APIs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages