In the .env file you will need to find and update the following variables. All variables will need to be updated to a routable IP within your local environment.
Variable
Description
ROUTR_EXTERNAL_ADDRS
The IP used by Routr to advertise it’s address to othe SIP endpoints
ROUTR_RTPENGINE_HOST
The address of RTPEngine
ASTERISK_SIPPROXY_HOST
Address pointing to Routr SIP Server
APISERVER_ROUTR_API_ENDPOINT
The entrypoint to Routr’s API
DOCKER_HOST_ADDRESS
The address of the host machine
With ifconfig | grep "en0" -A 5 on Linux or Mac you will see a good candidate to use as the IP.
Next, you need to install and build the project.
npm installnpm run buildnpm run test
Then, you need to start the infrastructure and initialize the database using the following commands:
npm run start:servicesnpm run db:migratenpm run db:seed
The previous command will start all the services including envoy, mailhog, adminer, influxdb, postgres, and asterisk.Finally, start the API Server with:
A good indicator that your environment is correctly setup is having ALL passing in your integration tests. Run the integration test, on a separate terminal, with the following command: