Created attachment 172632 [details] patch-res::res_pjsip::pjsip_cli.c FreeBSD 'regexec' more selective in the parameters and an empty string as a regex parameter return an error. On Linux all fine. https://community.asterisk.org/t/pjsip-show-endpoints-no-objects-found/66994/15 Asterisk bug report https://issues.asterisk.org/jira/browse/ASTERISK-26206
Thanks for pointing me to this asterisk bug report. I'm going to add the patch to the ports tree, after testing, obviously. I confirm this one is a good candidate for MFC to the quarterly branch.
A commit references this bug: Author: madpilot Date: Mon Jul 18 18:01:30 UTC 2016 New revision: 418726 URL: https://svnweb.freebsd.org/changeset/ports/418726 Log: FreeBSD's regexec() libc function is more restrictive than the linux one and will not accept an empty expression. Add patch (from PR) to fix this problem. PR: 211187 Submitted by: Dmitry Vagin <daemon.hammer at ya.ru> Changes: head/net/asterisk13/Makefile head/net/asterisk13/files/patch-res_res__pjsip_pjsip__cli.c
Committed and merged. Thanks!
A commit references this bug: Author: madpilot Date: Mon Jul 18 19:59:29 UTC 2016 New revision: 418740 URL: https://svnweb.freebsd.org/changeset/ports/418740 Log: MFH: r418726 FreeBSD's regexec() libc function is more restrictive than the linux one and will not accept an empty expression. Add patch (from PR) to fix this problem. PR: 211187 Submitted by: Dmitry Vagin <daemon.hammer at ya.ru> Approved by: ports-secteam (feld) Changes: _U branches/2016Q3/ branches/2016Q3/net/asterisk13/Makefile branches/2016Q3/net/asterisk13/files/patch-res_res__pjsip_pjsip__cli.c