Multi-SaaS Calling Support — PREMIUM Edition (Bangla Guideline)
Premium design: Dark/Light theme, glass card, gradient, animation, premium call UI
================================================================================

WARNING AGE:
- Sample shob account er password ChangeMe123! — login korei change korben
  (rahim@amarhoster.example, karim@amarhoster.example,
   salma@amarhoster.example, admin@amarhoster.example)
- Local test DB user/password (calling/calling123) sudhu local test er jonno

----------------------------------------
OPTION A: MOBILE (Termux) — PC charai
----------------------------------------
STEP 0: Termux Battery > Unrestricted, Termux e: termux-wake-lock
  Termux F-Droid theke install koren (Play Store er ta purano).
STEP 1: termux-change-repo -> ekta mirror select (packages-cf / freedif)
STEP 2: pkg update -y
        pkg install nodejs mariadb unzip -y
STEP 3: DB start:
        mariadb-install-db   (command not found ashle: mysql_install_db)
        mariadbd-safe -u root &
        (Enter chepe prompt nen — daemon background e cholche)
  ERROR 1698 Access denied root ashle (socket auth):
        pkill mariadbd; sleep 3
        mariadbd-safe --skip-grant-tables -u root &
        (5 sec wait, Enter)
        mariadb -u root -e "FLUSH PRIVILEGES; ALTER USER 'root'@'localhost' IDENTIFIED VIA mysql_native_password USING ''; CREATE DATABASE IF NOT EXISTS calling_db; CREATE USER IF NOT EXISTS 'calling'@'localhost' IDENTIFIED BY 'calling123'; CREATE USER IF NOT EXISTS 'calling'@'127.0.0.1' IDENTIFIED BY 'calling123'; GRANT ALL PRIVILEGES ON calling_db.* TO 'calling'@'localhost'; GRANT ALL PRIVILEGES ON calling_db.* TO 'calling'@'127.0.0.1'; FLUSH PRIVILEGES;"
        pkill mariadbd; sleep 3
        mariadbd-safe -u root &
        mariadb -h 127.0.0.1 -u calling -pcalling123 -e "SHOW DATABASES;"
  CANNOT LINK mariadbd error ashle: pkg upgrade -y, pkg install libc++ -y,
  pkg reinstall mariadb, tarpor abar mariadb-install-db.
STEP 4: App (Download folder e npm install korben na — EACCES symlink error):
        termux-setup-storage  (Allow chapen)
        unzip /sdcard/Download/Multi-SaaS-Calling-Support-Premium.zip -d ~/calling-premium
        cd ~/calling-premium
        npm install
        npm run build
        bash start.sh
  "BUILD SUCCESS" dekhale build OK. Build charao npm start chole
  (build sudhu check + dist/ production asset banay).
  "running on port 3001" dekhale app cholche.

----------------------------------------
OPTION B: LOCAL PC / VPS
----------------------------------------
Node.js LTS + MySQL/MariaDB (XAMPP hole MySQL start) install koren.
DB banan: calling_db. Zip extract kore START.bat (Windows) ba bash start.sh.
NOTE: PC te localhost mic kaj kore; phone theke PC-IP diye khulle mic block
hobe (HTTPS lagbe) — phone test er jonno Termux route tai best.

----------------------------------------
OPTION C: cPanel Selector
----------------------------------------
Subdomain folder e zip extract, Setup Node.js App: startup file app.js,
Run NPM Install, Start. .htaccess e Passenger block add korben na
(cPanel nije likhe; duplicate block app launch atkay).
Selector "Started" dekhaleo verify koren: browser e /api/health ok:true
ashche kina, stderr.log toiri hoyeche kina, ps e lsnode process ache kina.

----------------------------------------
SETUP WIZARD (shob route ei ek)
----------------------------------------
Chrome: http://localhost:3001/setup  (cPanel e: https://domain/setup)
  DB Host: 127.0.0.1   Port: 3306
  DB Name: calling_db  DB User: calling   DB Password: calling123
  -> Test DB Connection -> DB OK
  Super Admin naam/email/strong password din
  SMTP faka rakha jay (OTP server console e [SMTP not configured] likhe ashbe)
  TURN faka rakha jay (pore Admin theke add kora jay)
  -> Install Now -> Login -> ChangeMe123! password gula change koren

----------------------------------------
CALL TEST CHECKLIST
----------------------------------------
[ ] Tab 1 (Agent): login -> Available -> Enable Sound -> Test Ring shona jay
[ ] Tab 2 (Customer): /call/amarhoster -> OTP verify -> Call
[ ] Customer side ringback tone + "Ringing Rahim Uddin…" dekha jay
[ ] Agent side ringtone + flashing incoming card + Answer/Reject
[ ] Reject dile porer agent er kache auto-shift hoy
[ ] Agent busy thakle porer call queue te jay, position dekha jay
[ ] Answer kore kotha bola jay, timer chole, mute kaj kore
[ ] Call end -> Admin > Call History te recording Play + SHA-256 dekha jay
[ ] Dark/Light theme toggle shob page e kaj kore
Ek phone e 2 tab test e headphone use koren (echo kom hobe).
Full 2-device voice test er jonno 2nd phone/device lagbe.

----------------------------------------
TERMUX BONDHO HOLE ABAR START
----------------------------------------
  termux-wake-lock
  mariadbd-safe -u root &
  cd ~/calling-premium && bash start.sh

Problem hole kon step e atkeche output/screenshot pathan.
