Spaces:
Build error
Build error
Ajit Panday commited on
Commit ·
fa064b6
1
Parent(s): c33dbd0
Update URLs and configurations for consistency
Browse files- FREEPBX_SETUP.md +20 -9
FREEPBX_SETUP.md
CHANGED
|
@@ -109,16 +109,18 @@ This guide provides detailed instructions for setting up FreePBX to work with vB
|
|
| 109 |
```
|
| 110 |
- Test webhook:
|
| 111 |
```bash
|
| 112 |
-
#
|
| 113 |
-
# Check webhook logs
|
| 114 |
-
tail -f /var/log/asterisk/webhook
|
| 115 |
-
# Verify webhook delivery
|
| 116 |
curl -X POST https://iajitpanday-vbot.hf.space/api/v1/process-call \
|
| 117 |
-H "X-API-Key: your_api_key" \
|
| 118 |
-H "Content-Type: multipart/form-data" \
|
| 119 |
-F "file=@/var/spool/asterisk/monitor/test.wav" \
|
| 120 |
-F "caller_number=+1234567890" \
|
| 121 |
-F "called_number=+0987654321"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
```
|
| 123 |
|
| 124 |
4. Configure SSL:
|
|
@@ -152,7 +154,7 @@ This guide provides detailed instructions for setting up FreePBX to work with vB
|
|
| 152 |
'pass' => 'your_password'
|
| 153 |
],
|
| 154 |
'api_key' => 'your_api_key',
|
| 155 |
-
'api_url' => 'https://
|
| 156 |
'webhook_secret' => 'your_webhook_secret'
|
| 157 |
];
|
| 158 |
```
|
|
@@ -210,12 +212,12 @@ This guide provides detailed instructions for setting up FreePBX to work with vB
|
|
| 210 |
CALLER=$2
|
| 211 |
CALLED=$3
|
| 212 |
|
| 213 |
-
curl -X POST https://
|
| 214 |
-H "X-API-Key: your_api_key" \
|
| 215 |
-H "Content-Type: multipart/form-data" \
|
| 216 |
-F "file=@/var/spool/asterisk/monitor/${CALL_ID}.wav" \
|
| 217 |
-
-
|
| 218 |
-
-
|
| 219 |
```
|
| 220 |
|
| 221 |
3. Set Script Permissions:
|
|
@@ -259,7 +261,16 @@ This guide provides detailed instructions for setting up FreePBX to work with vB
|
|
| 259 |
|
| 260 |
2. Test Webhook:
|
| 261 |
```bash
|
| 262 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 263 |
-H "Content-Type: application/json" \
|
| 264 |
-d '{"test": true}'
|
| 265 |
```
|
|
|
|
| 109 |
```
|
| 110 |
- Test webhook:
|
| 111 |
```bash
|
| 112 |
+
# Test webhook delivery
|
|
|
|
|
|
|
|
|
|
| 113 |
curl -X POST https://iajitpanday-vbot.hf.space/api/v1/process-call \
|
| 114 |
-H "X-API-Key: your_api_key" \
|
| 115 |
-H "Content-Type: multipart/form-data" \
|
| 116 |
-F "file=@/var/spool/asterisk/monitor/test.wav" \
|
| 117 |
-F "caller_number=+1234567890" \
|
| 118 |
-F "called_number=+0987654321"
|
| 119 |
+
|
| 120 |
+
# Test webhook reception
|
| 121 |
+
curl -X POST https://your-freepbx-domain.com/customer_webhook/webhook.php \
|
| 122 |
+
-H "Content-Type: application/json" \
|
| 123 |
+
-d '{"test": true}'
|
| 124 |
```
|
| 125 |
|
| 126 |
4. Configure SSL:
|
|
|
|
| 154 |
'pass' => 'your_password'
|
| 155 |
],
|
| 156 |
'api_key' => 'your_api_key',
|
| 157 |
+
'api_url' => 'https://iajitpanday-vbot.hf.space',
|
| 158 |
'webhook_secret' => 'your_webhook_secret'
|
| 159 |
];
|
| 160 |
```
|
|
|
|
| 212 |
CALLER=$2
|
| 213 |
CALLED=$3
|
| 214 |
|
| 215 |
+
curl -X POST https://iajitpanday-vbot.hf.space/api/v1/process-call \
|
| 216 |
-H "X-API-Key: your_api_key" \
|
| 217 |
-H "Content-Type: multipart/form-data" \
|
| 218 |
-F "file=@/var/spool/asterisk/monitor/${CALL_ID}.wav" \
|
| 219 |
+
-F "caller_number=${CALLER}" \
|
| 220 |
+
-F "called_number=${CALLED}"
|
| 221 |
```
|
| 222 |
|
| 223 |
3. Set Script Permissions:
|
|
|
|
| 261 |
|
| 262 |
2. Test Webhook:
|
| 263 |
```bash
|
| 264 |
+
# Test webhook delivery
|
| 265 |
+
curl -X POST https://iajitpanday-vbot.hf.space/api/v1/process-call \
|
| 266 |
+
-H "X-API-Key: your_api_key" \
|
| 267 |
+
-H "Content-Type: multipart/form-data" \
|
| 268 |
+
-F "file=@/var/spool/asterisk/monitor/test.wav" \
|
| 269 |
+
-F "caller_number=+1234567890" \
|
| 270 |
+
-F "called_number=+0987654321"
|
| 271 |
+
|
| 272 |
+
# Test webhook reception
|
| 273 |
+
curl -X POST https://your-freepbx-domain.com/customer_webhook/webhook.php \
|
| 274 |
-H "Content-Type: application/json" \
|
| 275 |
-d '{"test": true}'
|
| 276 |
```
|