sipp icon indicating copy to clipboard operation
sipp copied to clipboard

silence with SRTP

Open stshishkin opened this issue 2 years ago • 2 comments

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?

stshishkin avatar Apr 18 '23 13:04 stshishkin

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.

acumeeple avatar Jan 29 '24 16:01 acumeeple