Created attachment 161472 [details]
shar file for net/opensips
New port for latest version of stable branch of OpenSIPS. http://www.opensips.org/
This port was tricky to make because OpenSIPS make files do not use autotools or cmake, or anything similar. The user is intended to run "gmake menuconfig" and select the modules to build and any other build time options from the ncurses style menu. Therefore, I had to replicate the end result using FreeBSDs' make mechanisms. The port Makefile takes the port OPTIONS to generate a gmake Makefile using sed (string replacement). I had to overide "do-configure", "do-build" and do-install" because it was not possible any other way. Likewise, gcc and gmake are used because OpenSIPS requires them to build properly (from my experience).
I have been running the port in production for many weeks now, without any known problems.
NOTE: I have found running many versions of Kamailio (sister fork of OpenSIPS) and other versions of OpenSIPS to have the service crash randomly over time when used in jails. Not tested outside of a jail. This version is super stable on at least 10.1 amd64. However, I have found the main configuration file (opensips.cfg) can also cause crashes under certain configurations. Basically, if everything is right, it is rock solid stable. But otherwise it can be quite flakey. I can't say if this is the case under Linux, the primary target audience. I am attributing many of the crashes to either memory leak(s) or bad memory management. It may just be the FreeBSD VMem system that it affects. Nonetheless, this port with my sample config is very stable.
Created attachment 161473 [details]
Poudriere testport log on 10.1 RELEASE amd64
Poudriere tesport passes on 10.1 amd64.
test-builds on 11-cur, 10.2i+a, 9.3a all OK
It fails with perl-5.22.
A commit references this bug:
Date: Thu Oct 1 16:34:44 UTC 2015
New revision: 398368
New port: net/opensips
OpenSIPS (Open SIP Server) is a mature Open Source implementation
of a SIP server.
It includes application-level functionalities and is the core component
of any SIP-based VoIP solution. With a very flexible and customizable
routing engine, OpenSIPS unifies voice, video, IM and presence
services in a highly efficient way, thanks to its scalable (modular)
It is reliable and fast, for enterprise or carrier-grade use cases.
Submitted by: Euan Thoms <firstname.lastname@example.org>
Thanks for the hard work to make with port! Committed, thanks!