unidirectional stream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I need an unidirectional media flow from network to the SIP device. At 
the moment, both direction are established but the CPU performance is to 
high.
The stream is resampled from 8000kHz to 48000kHz.
If I make four calls at the same time the CPU performance is reached 80%!

In the INVITE message the SDP offer contains the media attribute "recvonly".
In this case the stream encoder is paused and the stream decoder is 
started (see the PJSIP log below).


pjsua_media.c  .....Call 0: updating media..
pjsua_aud.c  ......Audio channel update..
       rtp.c  .......pjmedia_rtp_session_init: ses=0x7fd59800aa14, 
default_pt=8, ssrc=0x7718876c
       rtp.c  .......pjmedia_rtp_session_init: ses=0x7fd59800b094, 
default_pt=8, ssrc=0x7718876c
       stream.c  .......Stream strm0x7fd598008378 created
strm0x7fd59800  .......Encoder stream paused
strm0x7fd59800  .......Decoder stream started
      resample.c  .......resample created: high qualiy, large filter, 
in/out rate=8000/16000
      resample.c  .......resample created: high qualiy, large filter, 
in/out rate=16000/8000
pjsua_media.c  ......Audio updated, stream #0: PCMA (recvonly)


However, the stream is not passed to the sound device. Sound devices are 
the memory receiver and the memory player.

Is there any possibility to establish a call in the direction from the 
network to the sound device without the encoder?

Best regards

Norbert



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux