Hello. I use kamailio with last rtpengine and I have 5-7 Seconds voice delay. This happened only for from webphone. But it is not client issue as i see. Wireshark at client side shows that RTP starts as soon I pick up call. So rtp leaves rtpengine and goes to the destination with delay... I use WSS and think that problem at handshake.
There are some statisticcs after call finished (as example). You may see that one of streams created after 5 seconds delay.
Oct 26 22:15:31 Kamailio2 rtpengine[35466]: [ 28ed5c035d4b8a1c5383360e4d3677af@10.0.1.6:5060] --- Tag 'rsik48leli', created 1:12 ago, in dialogue with 'as7b4cb593' Oct 26 22:15:31 Kamailio2 rtpengine[35466]: [ 28ed5c035d4b8a1c5383360e4d3677af@10.0.1.6:5060] ------ Media #1, port 34178 <> 8.2.10.25:52463, 340 p, 58032 b, 0 e Oct 26 22:15:31 Kamailio2 rtpengine[35466]: [ 28ed5c035d4b8a1c5383360e4d3677af@10.0.1.6:5060] ------ Media #1, port 34179 <> 8.2.10.25:52468 (RTCP), 10 p, 960 b, 0 e Oct 26 22:15:31 Kamailio2 rtpengine[35466]: [ 28ed5c035d4b8a1c5383360e4d3677af@10.0.1.6:5060] --- Tag 'as7b4cb593', created 1:12 ago, in dialogue with 'rsik48leli' Oct 26 22:15:31 Kamailio2 rtpengine[35466]: [ 28ed5c035d4b8a1c5383360e4d3677af@10.0.1.6:5060] ------ Media #1, port 34194 <> 10.0.1.6:16376, 201 p, 36582 b, 0 e Oct 26 22:15:31 Kamailio2 rtpengine[35466]: [ 28ed5c035d4b8a1c5383360e4d3677af@10.0.1.6:5060] ------ Media #1, port 34195 <> 10.0.1.6:16377 (RTCP), 1 p, 78 b, 0 e Oct 26 22:15:31 Kamailio2 rtpengine[35466]: [iunge05ber6sqlc7qs6b] Final packet stats: Oct 26 22:15:31 Kamailio2 rtpengine[35466]: [iunge05ber6sqlc7qs6b] --- Tag 'as3af30098', created 1:17 ago, in dialogue with 'bqinihbhsf' Oct 26 22:15:31 Kamailio2 rtpengine[35466]: [iunge05ber6sqlc7qs6b] ------ Media #1, port 34142 <> 10.0.1.6:17258, 200 p, 35200 b, 0 e Oct 26 22:15:31 Kamailio2 rtpengine[35466]: [iunge05ber6sqlc7qs6b] ------ Media #1, port 34143 <> 10.0.1.6:17259 (RTCP), 1 p, 78 b, 0 e Oct 26 22:15:31 Kamailio2 rtpengine[35466]: [iunge05ber6sqlc7qs6b] --- Tag 'bqinihbhsf', created 1:12 ago, in dialogue with 'as3af30098' Oct 26 22:15:31 Kamailio2 rtpengine[35466]: [iunge05ber6sqlc7qs6b] ------ Media #1, port 34162 <> 8.2.10.25:52453, 216 p, 36768 b, 0 e Oct 26 22:15:31 Kamailio2 rtpengine[35466]: [iunge05ber6sqlc7qs6b] ------ Media #1, port 34163 <> 8.2.10.25:52453 (RTCP),
On 10/29/14 10:08, Yuriy Gorlichenko wrote:
Hello. I use kamailio with last rtpengine and I have 5-7 Seconds voice delay. This happened only for from webphone. But it is not client issue as i see. Wireshark at client side shows that RTP starts as soon I pick up call. So rtp leaves rtpengine and goes to the destination with delay... I use WSS and think that problem at handshake.
There are some statisticcs after call finished (as example). You may see that one of streams created after 5 seconds delay.
The difference in the times you posted is the delay between the offer and the answer, e.g. between INVITE and 200 OK. This is normal if you're slow to pick up the call. As for audio delay, some clients/browsers (Firefox especially I believe) are slow with starting or responding to the DTLS handshake. Since the SRTP encryption keys are negotiated during the DTLS handshake, no SRTP can be sent until after this has been completed. You can see this in the log. If you run a packet dump, what you will normally see is that rtpengine starts the DTLS handshake right away, but the browser doesn't respond until several seconds after. I'm not sure why they do this.
cheers