Hi Juha, I see the typo, I will correct it next time I improve the module.
No Kamailio processes are blocking, one thread is started for each call / media stream the thread is running a "ticker" that is processing all the samples in the audio streams.
Here is an example of the audio stream running in the thread transmit : FilePlayer >> Resampler >> Encoder >> RTP Send
In the same thread the received stream is runned receive : RTP Received >> Sink
5(8631) INFO: rtp_media_server [rms_media.c:244]: rms_start_media(): m[0x7fffef20bf58]call-id[0x7fffef20c158] 018-11-14 04:40:31:807 bctbx-message-ms_filter_link: MSFilePlayer:0x7fffef20fc40,0-->MSResample:0x7fffef20fff8, 018-11-14 04:40:31:807 bctbx-message-ms_filter_link: MSResample:0x7fffef20fff8,0-->MSUlawEnc:0x7fffef20f468,0 018-11-14 04:40:31:807 bctbx-message-ms_filter_link: MSUlawEnc:0x7fffef20f468,0-->MSRtpSend:0x7fffef20f170,0 018-11-14 04:40:31:807 bctbx-message-ms_filter_link: MSRtpRecv:0x7fffef20ef88,0-->MSVoidSink:0x7fffef2103c8,0 018-11-14 04:40:31:807 bctbx-message-Initializing speex resampler in mode [voip]
=========================================================== AUDIO SESSION'S RTP STATISTICS ----------------------------------------------------------- sent 341 packets 0 duplicated packets 58652 bytes received 331 packets 0 duplicated packets 56772 bytes incoming delivered to the app 56084 bytes incoming cumulative lost 0 packets incoming received too late 0 packets incoming bad formatted 0 packets incoming discarded (queue overflow) 0 packets sent rtcp 0 packets received rtcp 4 packets =========================================================== =========================================================== FILTER USAGE STATISTICS Name Count Time/tick (ms) CPU Usage ----------------------------------------------------------- MSRtpSend 682 0.0192826 42.1762 MSRtpRecv 682 0.0171714 37.5585 MSFilePlayer 682 0.004722 10.3283 MSUlawEnc 682 0.00381368 8.34154 MSResample 682 0.000403905 0.883448 MSVoidSink 327 0.000677918 0.712085 MSUlawDec 0 0 0 ===========================================================
On Tue, Nov 13, 2018 at 8:29 PM Juha Heinanen jh@tutpro.com wrote:
A small typo here:
2.1. Kamailio Modules
The module depends on the following modules (in the other words the listed modules must be loaded before this module): * tm - accounting module
A question:
Is rms_play() done asynchronously or does it reserve the K process that handled the request for the duration of the play?
-- Juha
Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev