Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support connect verb #488

Merged
merged 123 commits into from
Mar 29, 2024
Merged

Support connect verb #488

merged 123 commits into from
Mar 29, 2024

Conversation

dwilkie
Copy link
Collaborator

@dwilkie dwilkie commented Feb 7, 2024

Todo:

  • Write unit tests & clean up the Go FreeSWITCH event logger
  • ⁠⁠Finish testing and cleanup of the ruby app
  • Add tracks to media_streams on Somleng
  • ⁠⁠Figure out how to write an integration test which tests the whole flow.
  • Add infrastructure code for Redis
  • ⁠⁠Deploy to staging
  • ⁠⁠Configure an example to integrate with retellAI
  • Add new test number to test with RetellAI

Testing locally

Prerequisites

Have Postgres and Docker installed

1. Build the docker images:

$ docker-compose build --build-arg signalwire_token=change-me testing switch-app freeswitch gateway-bootstrap

2. Seed the database

$ docker-compose run -e DATABASE_NAME=opensips_public_gateway_test gateway-bootstrap create_db

3. Run the docker images

$ docker-compose up public_gateway freeswitch switch-app testing

4. Run the websockets server locally

$ cd components/testing/support/ws_server
$ npm install
$ node server.js

5. Run the Connect Test

$ docker-compose exec testing ./tests/public_gateway/connect_stream_test.sh

You should get output from on the websockets server and a file in /tmp/audio.raw

@dwilkie dwilkie marked this pull request as draft February 7, 2024 08:44
@dwilkie dwilkie marked this pull request as ready for review March 29, 2024 13:36
@dwilkie dwilkie merged commit d7a3066 into develop Mar 29, 2024
18 of 19 checks passed
@dwilkie dwilkie deleted the support_connect_verb branch March 29, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants