Node.js
Como usar o painel
- Encontre sua inscrição na Painel de controle.
- Clique no aplicativo na lista “Seus Applications”. Em seguida, clique na aba “Numbers”.
- Clique no botão “Link” para vincular um número da Vonage a esse aplicativo.
Como usar a CLI da Vonage
Depois de obter um número adequado, você pode vinculá-lo ao seu aplicativo da Vonage executando este comando:
Copiar
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
Copiar
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
Conectar-se a um WebSocket
Conecte uma chamada recebida a um WebSocket usando a Voice API
Etapas
1
Introdução2
Prerequisites3
Compre um número da Vonage4
Criar um aplicativo de voz5
Vincular um número da Vonage6
Criar o projeto7
Escreva seu webhook de resposta8
Crie o webhook do seu evento9
Criar o WebSocket10
Crie seu servidor11
Teste seu aplicativo12
Conclusão13
E agora?