SIP Account CRUD API

PostgreSQL asteriskdb • Managed Extensions, IPs, Protocols & Status

API Docs JSON
0
Total Accounts
0
Active
0
Registered
0
Inactive
ID Extension Service IP Password Status Protocol Actions

Quick API Reference & cURL Example

PostgreSQL asteriskdb

You can test the API endpoints using cURL or Postman. Valid protocols: PJSIP, SIP, EXTERNAL, IAX2.

# 1. Create a new SIP Account (POST) curl -X POST http://localhost/api/sip_accounts.php \ -H "Content-Type: application/json" \ -d '{"extension": "3001", "service_ip": "192.168.1.50", "pass": "SecretPass#3001", "status": "active", "protocol": "PJSIP"}' # 2. Get All SIP Accounts (GET) curl -X GET "http://localhost/api/sip_accounts.php" # 3. Update SIP Account (PUT) curl -X PUT "http://localhost/api/sip_accounts.php?id=1" \ -H "Content-Type: application/json" \ -d '{"status": "registered", "protocol": "EXTERNAL"}' # 4. Delete SIP Account (DELETE) curl -X DELETE "http://localhost/api/sip_accounts.php?id=1"