vonage conversations create `
--name='your_conversation' `
--display-name='Your conversation' `
--image-url='https://manchuck.com' `
--ttl=600 `
--phone-number=16127779311 `
--callback-url='https://example.com/conversations/callback' `
--callback-event-mask='audio:mute:on' `
--callback-event-mask='audio:mute:off' `
--callback-method='GET' `
--callback-application-id='00000000-0000-0000-0000-000000000000' `
--callback-ncco-url='https://example.com/conversations/ncco'
✅ Fetching conversation
Name: your_conversation
Conversation ID: CON-00000000-0000-0000-0000-000000000000
Display Name: Your Conversation
Image URL: https://tinyurl.com/5ey2vhw2
State: ACTIVE
Time to Leave: 600
Created at: 08/29/1997, 02:14:00 AM
Updated at: Not Set
Destroyed at: Not Set
Sequence: 0
Media State:
Earmuffed: ❌ No
Muted: ❌ No
Playing Stream: ❌ No
Recording: ❌ No
Transcribing: ❌ No
Text To Speech: ❌ No
Java
Create a User
Users are a key concept when working with the Vonage Client SDKs. When a user authenticates with the Client SDK, the credentials provided identify them as a specific user. Each authenticated user will typically correspond to a single user in your users database.
To create a user named Alice, run the following command using the Vonage CLI:
vonage conversations create ^
--name='your_conversation' ^
--display-name='Your conversation' ^
--image-url='https://manchuck.com' ^
--ttl=600 ^
--phone-number=16127779311 ^
--callback-url='https://example.com/conversations/callback' ^
--callback-event-mask='audio:mute:on' ^
--callback-event-mask='audio:mute:off' ^
--callback-method='GET' ^
--callback-application-id='00000000-0000-0000-0000-000000000000' ^
--callback-ncco-url='https://example.com/conversations/ncco'
✅ Fetching conversation
Name: your_conversation
Conversation ID: CON-00000000-0000-0000-0000-000000000000
Display Name: Your Conversation
Image URL: https://tinyurl.com/5ey2vhw2
State: ACTIVE
Time to Leave: 600
Created at: 08/29/1997, 02:14:00 AM
Updated at: Not Set
Destroyed at: Not Set
Sequence: 0
Media State:
Earmuffed: ❌ No
Muted: ❌ No
Playing Stream: ❌ No
Recording: ❌ No
Transcribing: ❌ No
Text To Speech: ❌ No
vonage conversations create \ --name='your_conversation' \ --display-name='Your conversation' \ --image-url='https://manchuck.com' \ --ttl=600 \ --phone-number=16127779311 \ --callback-url='https://example.com/conversations/callback' \ --callback-event-mask='audio:mute:on' \ --callback-event-mask='audio:mute:off' \ --callback-method='GET' \ --callback-application-id='00000000-0000-0000-0000-000000000000' \ --callback-ncco-url='https://example.com/conversations/ncco' ✅ Fetching conversation Name: your_conversation Conversation ID: CON-00000000-0000-0000-0000-000000000000 Display Name: Your Conversation Image URL: https://tinyurl.com/5ey2vhw2 State: ACTIVE Time to Leave: 600 Created at: 08/29/1997, 02:14:00 AM Updated at: Not Set Destroyed at: Not Set Sequence: 0 Media State: Earmuffed: ❌ No Muted: ❌ No Playing Stream: ❌ No Recording: ❌ No Transcribing: ❌ No Text To Speech: ❌ No
Receiving a phone call in-app
You receive a call from a phone to your app
Steps
1
Introduction to this task2
Prerequisites3
Create a webhook server4
Create a Vonage Application5
Buy a Vonage number6
Link a Vonage number7
Create a User8
Generate a JWT9
Create an Android project10
Add permissions11
Building the interface12
Initialize client13
Manage the call14
What's next?