Skip to content

manaoscloud/mnscloud-asterisk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MNSCloud Asterisk

Public standalone Asterisk edge connector for MNSCloud.

This repository installs and configures local Asterisk runtime assets that consume the MNSCloud API contract. It can run on MNSCloud, customer, or partner infrastructure.

Boundary

  • This repository is public and auditable by design.
  • It must remain standalone and must not depend on the private MNSCloud monorepo at runtime.
  • The MNSCloud API is the source of truth for authorization, tenant scope, routing ownership, billing, policy, and secret resolution.
  • Do not commit secrets, customer data, production infrastructure values, provider credentials, or private business rules.

Contract

  • Product/runtime: mnscloud-asterisk
  • Project directory: /opt/mnscloud/mnscloud-asterisk
  • Installer: scripts/install-asterisk.sh
  • Shared package installer: mnscloud-runtime-kit
  • Service: asterisk.service
  • Runtime user: asterisk
  • Local state prefix: /etc/mnscloud/pabx
  • Node UUID: /etc/mnscloud/pabx/node.uuid
  • API token: /etc/mnscloud/pabx/api.token
  • API base URL: /etc/mnscloud/pabx/api.base
  • Database config: /etc/mnscloud/pabx/db.conf
  • AMI secret: /etc/mnscloud/pabx/asterisk-ami.secret
  • Asterisk config directory: /etc/asterisk
  • Asterisk state directory: /var/lib/asterisk
  • Asterisk log directory: /var/log/asterisk
  • Recording spool: /var/spool/asterisk/monitor/mnscloud

Install

Install GitHub CLI if needed: cli/cli installation.

Authenticate GitHub CLI:

gh auth login

Clone the private repository and install:

sudo install -d -m 0755 /opt/mnscloud
cd /opt/mnscloud
gh repo clone manaoscloud/mnscloud-asterisk
cd /opt/mnscloud/mnscloud-asterisk
sudo bash scripts/install-asterisk.sh

The recommended production flow is to create the Asterisk PABX server in MNSCloud and use Generate Install Command. The platform returns a visible-once runtime token, stores only its hash, and generates a command that clones/updates this repository and runs:

sudo bash scripts/install-asterisk.sh \
  --api-base <api_base> \
  --node-uuid <node_uuid> \
  --runtime-token <visible_once_runtime_token>

Asterisk realtime database credentials remain local server configuration. Provide them interactively, through /etc/mnscloud/pabx/db.conf, or through the optional --db-host, --db-port, --db-name, --db-user, and --db-pass installer flags.

See asterisk.md and SECURITY.md for details.

About

MNSCloud asterisk standalone installer and runtime assets

Topics

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors