Skip to content

Wrong audio format override - SIP #2097

@danigian

Description

@danigian

Describe the bug

In case of SIP integration, input_audio_format and output_audio_format should not be overridden with the defaults specified here:

"input_audio_format": "pcm16",
"output_audio_format": "pcm16",

Debug information

  • Agents SDK version: v0.5.1
  • Python version 3.13

Repro steps

  1. Initiate a SIP call from a client that is using g711-ulaw or g711-alaw
  2. Realize that audio is going to be distorted because of the defaults

Expected behavior

When call_id is present (indicating a SIP session), the client should not override the audio format imposed by SIP, when doing the connect on the websocket.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions