Open callmemaxim opened 3 weeks ago
Hi @callmemaxim,
What are the audio devices on this machine?
aplay -l
Could you paste the device list in /var/log/jitsi/jibri/pjsua.log
after a call. It looks like
10:29:00.125 alsa_dev.c ..Added sound device amix
10:29:00.125 alsa_dev.c ..Added sound device asnoop
10:29:00.125 alsa_dev.c ..Added sound device aduplex
10:29:00.126 alsa_dev.c ..Added sound device bmix
10:29:00.126 alsa_dev.c ..Added sound device bsnoop
10:29:00.126 alsa_dev.c ..Added sound device bduplex
10:29:00.127 alsa_dev.c ..Added sound device pjsua
10:29:00.128 alsa_dev.c ..Added sound device default
10:29:00.128 alsa_dev.c ..Added sound device hw:CARD=Loopback,DEV=0
10:29:00.128 alsa_dev.c ..Added sound device hw:CARD=Loopback,DEV=1
10:29:00.128 alsa_dev.c ..Added sound device plughw:CARD=Loopback,DEV=0
10:29:00.128 alsa_dev.c ..Added sound device plughw:CARD=Loopback,DEV=1
10:29:00.129 alsa_dev.c ..Added sound device sysdefault:CARD=Loopback
10:29:00.129 alsa_dev.c ..Added sound device front:CARD=Loopback,DEV=0
10:29:00.130 alsa_dev.c ..Added sound device surround21:CARD=Loopback,DEV=0
10:29:00.130 alsa_dev.c ..Added sound device surround40:CARD=Loopback,DEV=0
10:29:00.130 alsa_dev.c ..Added sound device surround41:CARD=Loopback,DEV=0
10:29:00.130 alsa_dev.c ..Added sound device surround50:CARD=Loopback,DEV=0
10:29:00.130 alsa_dev.c ..Added sound device surround51:CARD=Loopback,DEV=0
10:29:00.130 alsa_dev.c ..Added sound device surround71:CARD=Loopback,DEV=0
10:29:00.131 alsa_dev.c ..Added sound device dmix:CARD=Loopback,DEV=0
10:29:00.133 alsa_dev.c ..Added sound device dmix:CARD=Loopback,DEV=1
10:29:00.133 alsa_dev.c ..Added sound device dsnoop:CARD=Loopback,DEV=0
10:29:00.134 alsa_dev.c ..Added sound device dsnoop:CARD=Loopback,DEV=1
10:29:00.134 alsa_dev.c ..Added sound device hw:CARD=Loopback_1,DEV=0
10:29:00.134 alsa_dev.c ..Added sound device hw:CARD=Loopback_1,DEV=1
10:29:00.134 alsa_dev.c ..Added sound device plughw:CARD=Loopback_1,DEV=0
10:29:00.134 alsa_dev.c ..Added sound device plughw:CARD=Loopback_1,DEV=1
10:29:00.135 alsa_dev.c ..Added sound device sysdefault:CARD=Loopback_1
10:29:00.135 alsa_dev.c ..Added sound device front:CARD=Loopback_1,DEV=0
10:29:00.136 alsa_dev.c ..Added sound device surround21:CARD=Loopback_1,DEV=0
10:29:00.136 alsa_dev.c ..Added sound device surround40:CARD=Loopback_1,DEV=0
10:29:00.136 alsa_dev.c ..ALSA driver found 32 devices
10:29:00.136 alsa_dev.c ..ALSA initialized
Hello! Thanks in advance for your help!
root@g7vpn01:~# aplay -L null Discard all samples (playback) or generate zero samples (capture) amix asnoop aduplex bmix bsnoop bduplex pjsua default hw:CARD=Loopback,DEV=0 Loopback, Loopback PCM Direct hardware device without any conversions hw:CARD=Loopback,DEV=1 Loopback, Loopback PCM Direct hardware device without any conversions plughw:CARD=Loopback,DEV=0 Loopback, Loopback PCM Hardware device with all software conversions plughw:CARD=Loopback,DEV=1 Loopback, Loopback PCM Hardware device with all software conversions sysdefault:CARD=Loopback Loopback, Loopback PCM Default Audio Device front:CARD=Loopback,DEV=0 Loopback, Loopback PCM Front output / input surround21:CARD=Loopback,DEV=0 Loopback, Loopback PCM 2.1 Surround output to Front and Subwoofer speakers surround40:CARD=Loopback,DEV=0 Loopback, Loopback PCM 4.0 Surround output to Front and Rear speakers surround41:CARD=Loopback,DEV=0 Loopback, Loopback PCM 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=Loopback,DEV=0 Loopback, Loopback PCM 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=Loopback,DEV=0 Loopback, Loopback PCM 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=Loopback,DEV=0 Loopback, Loopback PCM 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers dmix:CARD=Loopback,DEV=0 Loopback, Loopback PCM Direct sample mixing device dmix:CARD=Loopback,DEV=1 Loopback, Loopback PCM Direct sample mixing device hw:CARD=Loopback_1,DEV=0 Loopback, Loopback PCM Direct hardware device without any conversions hw:CARD=Loopback_1,DEV=1 Loopback, Loopback PCM Direct hardware device without any conversions plughw:CARD=Loopback_1,DEV=0 Loopback, Loopback PCM Hardware device with all software conversions plughw:CARD=Loopback_1,DEV=1 Loopback, Loopback PCM Hardware device with all software conversions sysdefault:CARD=Loopback_1 Loopback, Loopback PCM Default Audio Device front:CARD=Loopback_1,DEV=0 Loopback, Loopback PCM Front output / input surround21:CARD=Loopback_1,DEV=0 Loopback, Loopback PCM 2.1 Surround output to Front and Subwoofer speakers surround40:CARD=Loopback_1,DEV=0 Loopback, Loopback PCM 4.0 Surround output to Front and Rear speakers surround41:CARD=Loopback_1,DEV=0 Loopback, Loopback PCM 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=Loopback_1,DEV=0 Loopback, Loopback PCM 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=Loopback_1,DEV=0 Loopback, Loopback PCM 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=Loopback_1,DEV=0 Loopback, Loopback PCM 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers dmix:CARD=Loopback_1,DEV=0 Loopback, Loopback PCM Direct sample mixing device dmix:CARD=Loopback_1,DEV=1 Loopback, Loopback PCM Direct sample mixing device
root@g7vpn01:~# cat /var/log/jitsi/jibri/pjsua.log 16:04:30.157 sip_endpoint.c !.Module "mod-pjsua-log" registered 16:04:30.157 sip_endpoint.c .Module "mod-tsx-layer" registered 16:04:30.157 sip_endpoint.c .Module "mod-stateful-util" registered 16:04:30.157 sip_endpoint.c .Module "mod-ua" registered 16:04:30.157 sip_endpoint.c .Module "mod-100rel" registered 16:04:30.157 sip_endpoint.c .Module "mod-pjsua" registered 16:04:30.157 sip_endpoint.c .Module "mod-invite" registered 16:04:30.161 alsa_dev.c ..Added sound device amix 16:04:30.161 alsa_dev.c ..Added sound device asnoop 16:04:30.161 alsa_dev.c ..Added sound device aduplex 16:04:30.161 alsa_dev.c ..Added sound device bmix 16:04:30.162 alsa_dev.c ..Added sound device bsnoop 16:04:30.162 alsa_dev.c ..Added sound device bduplex 16:04:30.162 alsa_dev.c ..Added sound device pjsua 16:04:30.163 alsa_dev.c ..Added sound device default 16:04:30.163 alsa_dev.c ..Added sound device hw:CARD=Loopback,DEV=0 16:04:30.163 alsa_dev.c ..Added sound device hw:CARD=Loopback,DEV=1 16:04:30.163 alsa_dev.c ..Added sound device plughw:CARD=Loopback,DEV=0 16:04:30.163 alsa_dev.c ..Added sound device plughw:CARD=Loopback,DEV=1 16:04:30.164 alsa_dev.c ..Added sound device sysdefault:CARD=Loopback 16:04:30.165 alsa_dev.c ..Added sound device front:CARD=Loopback,DEV=0 16:04:30.165 alsa_dev.c ..Added sound device surround21:CARD=Loopback,DEV=0 16:04:30.165 alsa_dev.c ..Added sound device surround40:CARD=Loopback,DEV=0 16:04:30.165 alsa_dev.c ..Added sound device surround41:CARD=Loopback,DEV=0 16:04:30.165 alsa_dev.c ..Added sound device surround50:CARD=Loopback,DEV=0 16:04:30.166 alsa_dev.c ..Added sound device surround51:CARD=Loopback,DEV=0 16:04:30.166 alsa_dev.c ..Added sound device surround71:CARD=Loopback,DEV=0 16:04:30.166 alsa_dev.c ..Added sound device dmix:CARD=Loopback,DEV=0 16:04:30.166 alsa_dev.c ..Added sound device dmix:CARD=Loopback,DEV=1 16:04:30.167 alsa_dev.c ..Added sound device dsnoop:CARD=Loopback,DEV=0 16:04:30.167 alsa_dev.c ..Added sound device dsnoop:CARD=Loopback,DEV=1 16:04:30.168 alsa_dev.c ..Added sound device hw:CARD=Loopback_1,DEV=0 16:04:30.168 alsa_dev.c ..Added sound device hw:CARD=Loopback_1,DEV=1 16:04:30.168 alsa_dev.c ..Added sound device plughw:CARD=Loopback_1,DEV=0 16:04:30.168 alsa_dev.c ..Added sound device plughw:CARD=Loopback_1,DEV=1 16:04:30.169 alsa_dev.c ..Added sound device sysdefault:CARD=Loopback_1 16:04:30.169 alsa_dev.c ..Added sound device front:CARD=Loopback_1,DEV=0 16:04:30.169 alsa_dev.c ..Added sound device surround21:CARD=Loopback_1,DEV=0 16:04:30.170 alsa_dev.c ..Added sound device surround40:CARD=Loopback_1,DEV=0 16:04:30.170 alsa_dev.c ..ALSA driver found 32 devices 16:04:30.170 alsa_dev.c ..ALSA initialized
Hi @callmemaxim, I think the devices number in pjsua.config
don't match the order of devices found by pjsua
process and therefore Jibri drops the connection because of missing audio.
According to your pjsua.config
, the capture device is #11
and the playback device is #14
. This means that pjsua
will try to use the following devices:
But according to this list, your playback device should be #26
plughw:CARD=Loopback_1,DEV=0
So, could you try to set --playback-dev=26
in pjsua.config
Hello!
I've installed jitsi-videosipgw from installer script.
So, here is the steps to reproduce the issue: 1)Start meeting room 2)Invite SIP user from "Invite" screen in jitsi 3)Answer the SIP call from software SIP client
After that, I can hear jitsi user from SIP side, but can't here SIP user's voice in jitsi room. The video works good from both sides, but with some lagging at the first seconds (it's not the main issue, but may be it will help to solve issue with microphone). Then, after a couple of minutes, the connection stops and jitsi kicks the sip client. The call also stops.
Some logs from pjsua:
14:40:11.911 strm0x7f0ab4009768 !Frame lost, recovered! 14:40:11.931 strm0x7f0ab4009768 Jitter buffer starts returning normal frames (after 1 empty/lost) 14:40:12.061 pjsua_media.c !Call 0: Media 1: Received media event, type=IFRF, src=0x7f0ab4031cc8, epub=0x7f0ab4030c98 14:40:12.062 pjsua_media.c !Call 0: Media 1: Received media event, type=IFRF, src=0x7f0ab4031cc8, epub=0x7f0ab4030c98 14:40:12.063 pjsua_app.c !Event IFRF 14:40:12.063 pjsua_app.c Event IFRF 14:40:12.091 strm0x7f0ab4009768 !Frame lost, recovered! 14:40:12.111 strm0x7f0ab4009768 Jitter buffer starts returning normal frames (after 1 empty/lost) 14:40:12.271 strm0x7f0ab4009768 Frame lost, recovered! 14:40:12.291 strm0x7f0ab4009768 Jitter buffer starts returning normal frames (after 1 empty/lost) 14:40:12.451 strm0x7f0ab4009768 Frame lost, recovered! 14:40:12.471 strm0x7f0ab4009768 Jitter buffer starts returning normal frames (after 1 empty/lost) 14:40:12.651 strm0x7f0ab4009768 Frame lost, recovered! 14:40:12.671 strm0x7f0ab4009768 Jitter buffer starts returning normal frames (after 1 empty/lost) 14:40:12.891 strm0x7f0ab4009768 Frame lost, recovered! 14:40:12.911 strm0x7f0ab4009768 Jitter buffer starts returning normal frames (after 1 empty/lost) 14:40:13.198 pjsua_acc.c !Sending 2 bytes keep-alive packet for acc 1 to x.x.x.x:5060 14:40:13.198 tdta0x7f0ab42d8ab8 Destroying txdata raw 14:40:13.311 strm0x7f0ab4009768 !Frame lost, recovered! 14:40:13.335 strm0x7f0ab4009768 Jitter buffer starts returning normal frames (after 1 empty/lost) 14:40:13.711 strm0x7f0ab4009768 Frame lost, recovered! 14:40:13.735 strm0x7f0ab4009768 Jitter buffer starts returning normal frames (after 1 empty/lost) 14:40:14.235 strm0x7f0ab4009768 Frame lost, recovered! 14:40:14.255 strm0x7f0ab4009768 Jitter buffer starts returning normal frames (after 1 empty/lost) 14:40:14.384 pjsua_app.c !Requesting a keyframe... 14:40:14.384 pjsua_media.c Sending video keyframe request via SIP INFO 14:40:14.384 pjsua_call.c Call 0 sending INFO request.. 14:40:14.384 endpoint .Request msg INFO/cseq=31012 (tdta0x7f0ab42d8ab8) created. 14:40:14.384 dlg0x5635081327e8 ..Sending Request msg INFO/cseq=31012 (tdta0x7f0ab42d8ab8) 14:40:14.384 tsx0x7f0ab42daa78 ...Transaction created for Request msg INFO/cseq=31012 (tdta0x7f0ab42d8ab8) 14:40:14.384 tsx0x7f0ab42daa78 ..Sending Request msg INFO/cseq=31012 (tdta0x7f0ab42d8ab8) in state Null 14:40:14.384 sip_resolve.c ...DNS resolver not available, target 'jitsi.DOMAIN_NAME.com:0' type=Unspecified will be resolved with getaddrinfo() 14:40:14.384 sip_resolve.c ...Target 'jitsi.DOMAIN_NAME.com:0' type=Unspecified resolved to 'x.x.x.x:5060' type=UDP (UDP transport) 14:40:14.384 pjsua_core.c ...TX 698 bytes Request msg INFO/cseq=31012 (tdta0x7f0ab42d8ab8) to UDP x.x.x.x:5060:
pjsua.config: --capture-dev=11 --playback-dev=14 --video --vcapture-dev=1 --no-color --log-level=5 --app-log-level=5 --auto-update-nat 0 --disable-stun --no-tcp --dis-codec GSM --dis-codec H263 --dis-codec iLBC --dis-codec G722 --dis-codec speex --dis-codec pcmu --dis-codec pcma --dis-codec opus --add-codec pcmu --add-codec pcma --add-codec speex --add-codec G722 --add-codec opus --no-vad --ec-tail 0 --quality 10 --max-calls=1 --auto-keyframe=30 --no-stderr --local-port=5070 --log-file=/var/log/jitsi/jibri/pjsua.log --id "jitsi sip:jitsi@jitsi.DOMAIN_NAME.com" --registrar=sip:jitsi.DOMAIN_NAME.com:5060
jibri.conf: jibri { id = "" single-use-mode = false
chrome { flags = [ "--ignore-certificate-errors", "--use-fake-ui-for-media-stream", "--start-maximized", "--kiosk", "--enabled", "--autoplay-policy=no-user-gesture-required" ] }
ffmpeg { resolution = "1280x720" audio-source = "alsa" audio-device = "plug:bsnoop" }
sip { outbound-prefix = "" }
api { http { external-api-port = 2222 internal-api-port = 3333 }
}
stats { enable-stats-d = true }
call-status-checks { no-media-timeout = 30 seconds all-muted-timeout = 10 minutes default-call-empty-timeout = 30 seconds } }
/home/jibri/.asound.conf is deleted /etc/asound.conf: pcm.amix { type dmix ipc_key 219345 slave.pcm "hw:Loopback,0,0" }
pcm.asnoop { type dsnoop ipc_key 219346 slave.pcm "hw:Loopback_1,1,0" }
pcm.aduplex { type asym playback.pcm "amix" capture.pcm "asnoop" }
pcm.bmix { type dmix ipc_key 219347 slave.pcm "hw:Loopback_1,0,0" }
pcm.bsnoop { type dsnoop ipc_key 219348 slave.pcm "hw:Loopback,1,0" }
pcm.bduplex { type asym playback.pcm "bmix" capture.pcm "bsnoop" }
pcm.pjsua { type plug slave.pcm "bduplex" }
pcm.!default { type plug slave.pcm "aduplex" }