Node.js
Uso del panel de control
- Encuentre su solicitud en la sección Panel de control.
- Haga clic en la aplicación en la lista "Sus Applications". A continuación, haz clic en la pestaña Numbers.
- Haz clic en el botón Vincular para vincular un número de Vonage con esa aplicación.
Uso de la CLI de Vonage
Una vez que tengas un número adecuado, puedes vincularlo a tu aplicación de Vonage ejecutando este comando:
Copia
vonage apps numbers link 00000000-0000-0000-0000-000000000000 16127779311
✅ Fetching Application
Fetching Owned numbers [===============================================] 1/1 100%
Number linked
Number: 16127779311
Country: 🇺🇸 United States
Type: Toll-free
Features: MMS, SMS, VOICE
Monthly Cost: Not Set
Setup Cost: Not Set
Linked Application ID: 00000000-0000-0000-0000-000000000000
Voice Callback: app
Voice Callback Value: 00000000-0000-0000-0000-000000000000
Voice Status Callback: Not Set
Copia
vonage apps numbers link 00000000-0000-0000-0000-000000000000 16127779311
✅ Fetching Application
Fetching Owned numbers [===============================================] 1/1 100%
Number linked
Number: 16127779311
Country: 🇺🇸 United States
Type: Toll-free
Features: MMS, SMS, VOICE
Monthly Cost: Not Set
Setup Cost: Not Set
Linked Application ID: 00000000-0000-0000-0000-000000000000
Voice Callback: app
Voice Callback Value: 00000000-0000-0000-0000-000000000000
Voice Status Callback: Not Set
vonage apps numbers link 00000000-0000-0000-0000-000000000000 16127779311
✅ Fetching Application
Fetching Owned numbers [===============================================] 1/1 100%
Number linked
Number: 16127779311
Country: 🇺🇸 United States
Type: Toll-free
Features: MMS, SMS, VOICE
Monthly Cost: Not Set
Setup Cost: Not Set
Linked Application ID: 00000000-0000-0000-0000-000000000000
Voice Callback: app
Voice Callback Value: 00000000-0000-0000-0000-000000000000
Voice Status Callback: Not Set
Reproducir audio en un WebSocket
Aprende a conectar una llamada entrante de la Voice API a un WebSocket y, a continuación, reproduce audio con JavaScript.
Disponible en:
Pasos
1
Introducción a esta tarea2
Prerequisites3
Comprar un número de Vonage4
Crear una aplicación de voz5
Vincular un número de Vonage6
Crear el proyecto7
Escribe tu webhook de respuesta8
Escriba su webhook de eventos9
Crear el WebSocket10
Prueba tu aplicación11
¿Y ahora qué?