Skip to content

Use librevox execute_app for all channel commands#21

Open
henrikbjorn wants to merge 3 commits into
masterfrom
use-execute-app
Open

Use librevox execute_app for all channel commands#21
henrikbjorn wants to merge 3 commits into
masterfrom
use-execute-app

Conversation

@henrikbjorn

Copy link
Copy Markdown
Member

Summary

  • Replace manual sendmsg string building with librevox's execute_app API for answer, hangup, play_audio, and send_dtmf
  • Drop wait: parameter from action methods — execute_app blocks until CHANNEL_EXECUTE_COMPLETE, which is the correct semantic for a test framework
  • Parallelize hangup_all with Async::Barrier and a timeout safety net
  • Use Client.start for connection setup
  • Fix module comment indentation in escaper and from_parser

Replace manual sendmsg string building with librevox's execute_app API.
This aligns with how librevox models application execution and removes
the raw ESL protocol construction from switest.

- answer, hangup, play_audio, send_dtmf all use execute_app
- Drop wait: parameter from action methods (execute_app blocks until
  CHANNEL_EXECUTE_COMPLETE, which is the right semantic for tests)
- hangup_all sends hangups in parallel via Async::Barrier with timeout
- Update MockSession to mirror execute_app header construction
- Use Client.start for connection setup
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.

1 participant