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

silence with SRTP #631

Open
stshishkin opened this issue Apr 18, 2023 · 1 comment
Open

silence with SRTP #631

stshishkin opened this issue Apr 18, 2023 · 1 comment

Comments

@stshishkin
Copy link

Hello,

I try to play an encoded audio file in SRTP but hear nothing.
First of all, I add the following lines in INVITE:

      a=crypto:[cryptotag1audio] [cryptosuiteaescm128sha1801audio] inline:[cryptokeyparams1audio]
      a=crypto:[cryptotag2audio] [cryptosuiteaescm128sha1322audio] inline:[cryptokeyparams2audio]

use the following RTP description:

  <nop>
    <action>
      <exec rtp_stream="encoded.wav,1,0,PCMU/8000" />
    </action>
  </nop>

and change transport mode to TLS one socket:
sipp -sf ./call.xml -t l1 -tls_key ./cakey.pem -tls_cert ./cacert.pem -s "$USER_ID" -ap "$USER_PWD" -key number "$NUMBER" -d "$CALL_DURATION" example.com:5061

Calls successfully connect. But I hear nothing.

If I use the pattern example from the rtpcheck_xml_syntax_reference.pdf I hear the clicks.

  <nop>
    <action>
      <exec rtp_stream="apattern,1,0,PCMU/8000" />
    </action>
  </nop>

Are there any restrictions for using audio files in SRTP scenarios?

@acumeeple
Copy link
Contributor

This is likely due to the same reason as #665 - the rtpstream play thread gets hopelessly behind and all your audio getsthrown away in the jitter buffer at the receiving end.

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

No branches or pull requests

2 participants