How to encode WAV to play with SIPp

前端 未结 3 1864
醉话见心
醉话见心 2021-01-07 11:06

By looking into another SIPp related question I learned that it is now possible to play WAV files using the rtp_stream action.

I\'ve tried several diffe

3条回答
  •  萌比男神i
    2021-01-07 11:40

    You can use Audacity to encode wav for sipp : Select in the bottom bar 8000Hz for the project and export the audio as 'Another compressed format' : click 'Options' and select 'WAV (Microsoft)' Header and 'A-Law' Encoding (for PCMA) or 'U-Law' (for PCMU).

    You should also verify your scenario file : SDP message must have PCMA or PCMU audio and use "rtpstream_audio_port" like this (for PCMA) :

      m=audio [rtpstream_audio_port] RTP/AVP 8
      a=rtpmap:8 PCMA/8000
    

提交回复
热议问题