This application requires a Nexmo application and phone numbers. To create the application, use the nexmo app:create command with the Nexmo CLI.
The parameters are:
<<APP NAME>>- the name of the voice application<<FILENAME>>- the name of the private key file, in this instance<<FILENAME>>is expected<<ANSWER WEBHOOK>>- the webhook called the Nexmo number receives an inbound call<<EVENT WEBHOOK>>- the webhook called when the call status changes
nexmo app:create --keyfile <<FILENAME>> <<APP NAME>> <<ANSWER WEBHOOK>> <<EVENT WEBHOOK>>Once completed, this command will return a UUID (Universally Unique Identifier) that identifies your application. Copy and save the UUID for use in an upcoming step.
You will need to use a phone number already associated with your account, or purchase a new one.
Use this command to list purchased phone numbers associated with your account.
nexmo numbers:listnexmo number:buy --country_code US --confirm