copyright: years: 2019 lastupdated: "2023-02-12"
Getting started with Voice Agent Tester
To configure Voice Agent Tester, start by cloning or downloading the samples repository and setting up your environment for outbound calls. Then, ensure that the voice agent that you're testing is running and ready to receive calls. Finally, set the environment variables and start the service.
-
Clone or download the samples.voice.gateway GitHub repository and change to the
voice-agent-testerdirectory.This directory contains sample test cases, workers, and deployment scripts to help you get started.
-
Configure IBM® Voice Gateway to initiate outbound calls.
Choose one of the following options:
- Use the
docker-compose.ymlfile in the samples. - Configure your Caller Voice Gateway, which manages the outbound calls.
- Set the
ENABLE_OUTBOUND_CALLStotrue - Set the
HTTP_HOSTenvironment variable to*. - Expose the port for the outbound calls REST API in the SIP Orchestrator.
- Use the
-
Ensure that the voice agent that you run tests against is running and ready to receive calls.
If you run load tests, ensure that the voice agent can process all the concurrent calls that you start.
-
Set the environment variables for the voice agent tester.
- Set the following environment variables:
CLOUDANT_URLORCLOUDANT_ACCOUNTCLOUDANT_USERNAMEandCLOUDANT_PASSWORD, ORCLOUDANT_APIKEYCLOUDANT_DATABASE_NAMECALLER_VOICE_GATEWAY_URI- If you don't use a custom registry, set the following environment variables for authentication:
REST_ADMIN_USERNAMEandREST_ADMIN_PASSWORD, which specify the credentials for securing the REST APITESTER_WEBHOOK_USERNAMEandTESTER_WEBHOOK_PASSWORD, which specify the credentials for securing the tester- If you use a custom registry, set the
TESTER_WEBHOOK_USERNAMEenvironment variable to specify the user in the custom registry. - If Voice Gateway, which manages the outbound calls, is in a different network, set the
TESTER_WEBHOOK_URIenvironment variable.
-
Start the service.
- If you use the compose file, run the
docker-compose upcommand. - Otherwise, run the Docker image to start the service.
- If you use the compose file, run the
What to do next
- Create a test case.
- With the ID of your newly created test case, create a worker.
- With the ID of the newly created worker, start jobs or batch jobs and verify the results.