Spaces:
Sleeping
Sleeping
Ajit Panday
commited on
Commit
·
5c54434
1
Parent(s):
360e8b3
Update webhook configuration with correct Hugging Face Space URL
Browse files- FREEPBX_SETUP.md +8 -1
FREEPBX_SETUP.md
CHANGED
|
@@ -81,7 +81,7 @@ This guide provides detailed instructions for setting up FreePBX to work with vB
|
|
| 81 |
- Navigate to "Webhooks" section
|
| 82 |
- Add new webhook:
|
| 83 |
- Name: vBot Call Processing
|
| 84 |
-
- URL: https://
|
| 85 |
- Method: POST
|
| 86 |
- Headers:
|
| 87 |
```
|
|
@@ -112,6 +112,13 @@ This guide provides detailed instructions for setting up FreePBX to work with vB
|
|
| 112 |
# Make a test call
|
| 113 |
# Check webhook logs
|
| 114 |
tail -f /var/log/asterisk/webhook
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
```
|
| 116 |
|
| 117 |
4. Configure SSL:
|
|
|
|
| 81 |
- Navigate to "Webhooks" section
|
| 82 |
- Add new webhook:
|
| 83 |
- Name: vBot Call Processing
|
| 84 |
+
- URL: https://huggingface.co/spaces/iajitpanday/vBot/api/process-call
|
| 85 |
- Method: POST
|
| 86 |
- Headers:
|
| 87 |
```
|
|
|
|
| 112 |
# Make a test call
|
| 113 |
# Check webhook logs
|
| 114 |
tail -f /var/log/asterisk/webhook
|
| 115 |
+
# Verify webhook delivery
|
| 116 |
+
curl -X POST https://huggingface.co/spaces/iajitpanday/vBot/api/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 |
+
-H "caller_number=+1234567890" \
|
| 121 |
+
-H "called_number=+0987654321"
|
| 122 |
```
|
| 123 |
|
| 124 |
4. Configure SSL:
|