Bug 219444 - [NEW PORT] www/janus: WebRTC gateway
Summary: [NEW PORT] www/janus: WebRTC gateway
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jesper Schmitz Mouridsen
URL:
Keywords:
Depends on: 247180 247547
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-22 02:08 UTC by John Hixson
Modified: 2021-08-08 10:08 UTC (History)
7 users (show)

See Also:


Attachments
port shar file (10.12 KB, application/x-shar)
2017-05-22 02:08 UTC, John Hixson
no flags Details
port shar file (9.62 KB, application/x-shar)
2017-05-22 20:06 UTC, John Hixson
no flags Details
port shar file (10.37 KB, application/x-shar)
2017-05-22 20:47 UTC, John Hixson
no flags Details
port shar file (10.41 KB, application/x-shar)
2017-05-23 14:06 UTC, John Hixson
no flags Details
janus shar file (10.43 KB, application/x-shar)
2017-05-23 14:10 UTC, John Hixson
no flags Details
janus.shar (9.97 KB, text/plain)
2020-06-10 19:02 UTC, Yuri Victorovich
no flags Details
janus port with patch of rtp.h (17.96 KB, patch)
2020-06-16 17:36 UTC, Jesper Schmitz Mouridsen
no flags Details | Diff
update to v0.10.3 (18.12 KB, patch)
2020-07-14 11:06 UTC, Dmitry Wagin
no flags Details | Diff
Updates to 0.10.9 (20.31 KB, patch)
2020-12-26 12:59 UTC, Jesper Schmitz Mouridsen
no flags Details | Diff
janus-0.11.3 (3.19 KB, application/x-gzip)
2021-06-30 14:55 UTC, Vanilla I. Shu
no flags Details
janus-0.11.3, add post-processing support (3.31 KB, application/x-gzip)
2021-08-02 14:07 UTC, Vanilla I. Shu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Hixson freebsd_committer freebsd_triage 2017-05-22 02:08:18 UTC
Created attachment 182788 [details]
port shar file
Comment 1 John Hixson freebsd_committer freebsd_triage 2017-05-22 20:06:31 UTC
Created attachment 182817 [details]
port shar file

Add USE_LDCONFIGRE and update pkg-plist. This still needs an rc.d script as well.
Comment 2 John Hixson freebsd_committer freebsd_triage 2017-05-22 20:47:33 UTC
Created attachment 182819 [details]
port shar file

I've added an rc.d script. I think this is in good working shape now ;-)
Comment 3 John Hixson freebsd_committer freebsd_triage 2017-05-23 14:06:51 UTC
Created attachment 182828 [details]
port shar file

Add audio/opus so audio bridge works
Comment 4 John Hixson freebsd_committer freebsd_triage 2017-05-23 14:10:22 UTC
Created attachment 182829 [details]
janus shar file

Add -b to command args so daemon backgrounds
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2017-11-05 05:23:41 UTC
Thank you for your contribution.

These changes are needed:
* Remove 'Created by'
* Most items in BUILD_DEPENDS/RUN_DEPENDS should be combined into LIB_DEPENDS
* cmake should't be in RUN_DEPENDS, instead use USES=cmake:outsource
* Rename PORTVERSION into DISTVERSION
* No need for GH_TAGNAME
* DISTVERSIONPREFIX=v
* COPYING should be referenced by LICENSE_FILE
* CPPFLAGS/LDFLAGS should be replaced with USES=localbase

Yuri
Comment 6 Tobias Kortkamp freebsd_committer freebsd_triage 2018-05-15 08:51:07 UTC
Yuri's feedback wasn't addressed for 7 months, so closing with Feedback Timeout.
Comment 7 Jesper Schmitz Mouridsen freebsd_committer freebsd_triage 2020-06-10 18:31:46 UTC
I'm looking into this, I am a little blocked by libwebsockets which does not seem to like ipv4 if it is compiled with IPV6 enabled (which is the default)

I tried updating libwebsockets with the same result..see upstream issue here:
https://github.com/warmcat/libwebsockets/issues/1947
Comment 8 Yuri Victorovich freebsd_committer freebsd_triage 2020-06-10 19:02:32 UTC
Created attachment 215426 [details]
janus.shar

I have a working version of the port, attaching the shar.
Comment 9 Jesper Schmitz Mouridsen freebsd_committer freebsd_triage 2020-06-10 20:13:30 UTC
(In reply to Yuri Victorovich from comment #8)
Yes very much like my WIP. Thanks. Does its websockets listen on IPv4? (without recompiling libwebsockets without IPV6)
Comment 10 Yuri Victorovich freebsd_committer freebsd_triage 2020-06-10 20:28:01 UTC
(In reply to Jesper Schmitz Mouridsen from comment #9)

Jesper,

I'm not sure. You go ahead and test it since you've already started.

Yuri
Comment 11 Jesper Schmitz Mouridsen freebsd_committer freebsd_triage 2020-06-10 20:31:32 UTC
(In reply to Yuri Victorovich from comment #10)
Will do
Comment 12 John Hixson freebsd_committer freebsd_triage 2020-06-10 20:38:04 UTC
I'd forgotten about this. I'd be happy to pick it up again. I can take a look at it and help out ;-)
Comment 13 Jesper Schmitz Mouridsen freebsd_committer freebsd_triage 2020-06-13 11:23:32 UTC
Hi does any of you got the streaming demos working?
/usr/local/share/janus/streams/test_gstreamer_1.sh
and the "Opus/VP8 live stream coming from external source (live)"
I'm getting [ice.c:janus_ice_outgoing_traffic_handle:4376] [2354355402257304] ... SRTP protect error... srtp_err_status_bad_param (len=24-->24, ts=313920, seq=328)... and no video output, same ways of doing things works on Linux..
Comment 14 Jesper Schmitz Mouridsen freebsd_committer freebsd_triage 2020-06-15 20:56:08 UTC
https://github.com/meetecho/janus-gateway/issues/2232
I need some sleep, but streaming works for me now, I'will update the shar
as soon as possible.
Comment 15 Jesper Schmitz Mouridsen freebsd_committer freebsd_triage 2020-06-16 17:36:25 UTC
Created attachment 215628 [details]
janus port with patch of rtp.h

Streaming works for me in this one. Hope a CC can do some testing. Remember libmicrohttpd update
Comment 16 Dmitry Wagin 2020-07-14 11:06:35 UTC
Created attachment 216432 [details]
update to v0.10.3

update to v0.10.3
Comment 17 Jesper Schmitz Mouridsen freebsd_committer freebsd_triage 2020-12-26 12:59:18 UTC
Created attachment 220946 [details]
Updates to 0.10.9

If John Hixson still wants to be the maintainer, I'll commit this soon as it is.
Comment 18 Vanilla I. Shu freebsd_committer freebsd_triage 2021-06-30 09:44:22 UTC
Hi:

any update here?
Comment 19 Vanilla I. Shu freebsd_committer freebsd_triage 2021-06-30 14:55:46 UTC
Created attachment 226132 [details]
janus-0.11.3
Comment 20 Vanilla I. Shu freebsd_committer freebsd_triage 2021-06-30 14:57:26 UTC
Hi:

I make some updates for 0.11.3,

include:

* nanomsg integration
* rabbitmq integration
* javascript plugin
* lua plugin

Could anyone can help me to review, thanks.
Comment 21 Jesper Schmitz Mouridsen freebsd_committer freebsd_triage 2021-06-30 18:39:23 UTC
(In reply to Vanilla I. Shu from comment #20)

Thanks for this work!

I am not sure John Hixson wants to be maintainer.
Perhaps you are interested your self to become the maintainer?

Have you tested all build options and all ssl versions?

Perhaps you could note upstream of the missing dlerror() call i.e make a github issue?

Thanks

/jsm
Comment 22 Vanilla I. Shu freebsd_committer freebsd_triage 2021-07-09 13:46:21 UTC
(In reply to Jesper Schmitz Mouridsen from comment #21)

Hi: Jesper

Is the dlerror() patch really necessary?

it's called twice, and did not catched on the first time.
Comment 23 Jesper Schmitz Mouridsen freebsd_committer freebsd_triage 2021-07-31 20:55:02 UTC
(In reply to Vanilla I. Shu from comment #22)

The dlerror patch is necessary. 
Without it you get:

[ERR] [janus.c:main:5399] 	Couldn't load symbol 'create': Undefined symbol "_nss_cache_cycle_prevention_function" 
 
https://stackoverflow.com/questions/3559147/dlerror-undefined-symbol-nss-cache-cycle-prevention-function-on-freebsd-7-2

TL;DR dlerror is the latest error not necessarily the most recent.

Thanks.
Comment 24 Vanilla I. Shu freebsd_committer freebsd_triage 2021-08-02 13:59:33 UTC
(In reply to Jesper Schmitz Mouridsen from comment #23)

Wired, Janus works fine on my -current box without the dlerror patch.

BTW, I will include this patch, and also add post processing support on next patch,

maybe you can add it to ports later?
Comment 25 Vanilla I. Shu freebsd_committer freebsd_triage 2021-08-02 14:07:10 UTC
Created attachment 226877 [details]
janus-0.11.3, add post-processing support
Comment 26 Jesper Schmitz Mouridsen freebsd_committer freebsd_triage 2021-08-02 17:12:33 UTC
(In reply to Vanilla I. Shu from comment #24)
I will sure add it, do you want to be the maintainer?
Comment 27 Vanilla I. Shu freebsd_committer freebsd_triage 2021-08-03 00:20:13 UTC
(In reply to Jesper Schmitz Mouridsen from comment #26)

Well, it's ok to be the maintainer,

but I did not use janus on any my project.
--
I just want to try each WebRTC solutions on FreeBSD.
Comment 28 commit-hook freebsd_committer freebsd_triage 2021-08-08 10:05:37 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=31811bb4ff34dda24e1c367eba5cca46fa577b00

commit 31811bb4ff34dda24e1c367eba5cca46fa577b00
Author:     Vanilla I. Shu <vanilla@FreeBSD.org>
AuthorDate: 2021-08-08 09:54:05 +0000
Commit:     Jesper Schmitz Mouridsen <jsm@FreeBSD.org>
CommitDate: 2021-08-08 10:04:03 +0000

    www/janus: New port

    Janus is an open source, general purpose,
    WebRTC gateway designed and
    developed by Meetecho

    PR: 219444

 www/Makefile                             |   1 +
 www/janus/Makefile (new)                 |  64 +++++++++++
 www/janus/distinfo (new)                 |   3 +
 www/janus/files/janus.in (new)           |  28 +++++
 www/janus/files/patch-configure.ac (new) |  11 ++
 www/janus/files/patch-janus.c (new)      |  10 ++
 www/janus/files/pkg-message.in (new)     |   8 ++
 www/janus/pkg-descr (new)                |   4 +
 www/janus/pkg-plist (new)                | 186 +++++++++++++++++++++++++++++++
 9 files changed, 315 insertions(+)