Video calls with Janus SIP plugin is broken in v1.1.3

After updating to v1.1.3, video calls with the Janus SIP plugin stopped working when audio calls worked as usual.
In the log we have a lot of:

[591616290635507] Creating ICE agent (ICE Full mode, controlled)
[WARN] Error setting v6only to false on video RTP socket (error=Protocol not available)
[WARN] Error setting v6only to false on video RTCP socket (error=Protocol not available)
[ERR] [plugins/janus_sip.c:janus_sip_allocate_local_ports:6719] Bind failed for video RTP (port 34658), trying a different one...
[WARN] Error setting v6only to false on video RTP socket (error=Protocol not available)
[ERR] [plugins/janus_sip.c:janus_sip_allocate_local_ports:6719] Bind failed for video RTP (port 39638), trying a different one...
...
[WARN] Error setting v6only to false on video RTP socket (error=Protocol not available)
[ERR] [plugins/janus_sip.c:janus_sip_allocate_local_ports:6719] Bind failed for video RTP (port 39476), trying a different one...
[ERR] [plugins/janus_sip.c:janus_sip_handler:3580] Could not allocate RTP/RTCP ports

After some investigation, it seems that the reason for this is the difference in socket creation:

  • audio:
    • session->media.audio_rtp_fd = socket(AF_INET6, SOCK_DGRAM, 0)
    • session->media.audio_rtcp_fd = socket(AF_INET6, SOCK_DGRAM, 0)
  • video:
    • session->media.video_rtp_fd = socket(AF_INET, SOCK_DGRAM, 0)
    • session->media.video_rtcp_fd = socket(AF_INET, SOCK_DGRAM, 0)

The issue in this post is partially related to Error creating audio sockets and appears to have been fixed by Don't create IPv6 sockets if IPv6 is completely disabled (see #3159) by lminiero · Pull Request #3179 · meetecho/janus-gateway · GitHub.

So the question when could we expect for v1.1.4 release? :slightly_smiling_face:

I don’t know, as I’m abroad and will be for the next two weeks, so definitely not before that. You can just pull master in the meanwhile.

1 Like