Bug 211773 - [NEW PORT] net/mod_amd: answering machine detection (voice activity detection) for FreeSWITCH
Summary: [NEW PORT] net/mod_amd: answering machine detection (voice activity detection...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Tobias Kortkamp
URL:
Keywords: easy, feature, patch
Depends on:
Blocks:
 
Reported: 2016-08-12 12:39 UTC by Šimun Mikecin
Modified: 2019-02-07 09:43 UTC (History)
2 users (show)

See Also:


Attachments
shar archive (3.64 KB, text/plain)
2016-08-12 12:39 UTC, Šimun Mikecin
no flags Details
shar archive (3.68 KB, text/plain)
2016-08-12 12:41 UTC, Šimun Mikecin
no flags Details
shar archive (3.68 KB, text/plain)
2016-08-12 13:33 UTC, Šimun Mikecin
no flags Details
portlint results (1.00 KB, text/plain)
2016-08-12 13:34 UTC, Šimun Mikecin
no flags Details
portlint results (605 bytes, text/plain)
2016-08-16 08:25 UTC, Šimun Mikecin
no flags Details
shar archive (3.70 KB, text/plain)
2016-08-16 08:27 UTC, Šimun Mikecin
no flags Details
poudriere build log. (15.23 KB, text/plain)
2016-08-16 08:28 UTC, Šimun Mikecin
no flags Details
shar archive (3.91 KB, text/plain)
2016-08-16 09:38 UTC, Šimun Mikecin
numisemis: maintainer-approval+
Details
portlint results (635 bytes, text/plain)
2016-08-16 20:13 UTC, Šimun Mikecin
no flags Details
poudriere build log (16.03 KB, text/plain)
2016-08-16 20:32 UTC, Šimun Mikecin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Šimun Mikecin 2016-08-12 12:39:24 UTC
Created attachment 173584 [details]
shar archive

This is an implementation of Asterisk's answering machine detection (voice
activity detection) for FreeSWITCH.

WWW: https://github.com/seanbright/mod_amd
Comment 1 Šimun Mikecin 2016-08-12 12:41:35 UTC
Created attachment 173585 [details]
shar archive
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2016-08-12 13:03:07 UTC
Hi Šimun, thanks for your contribution

Can you please confirm this change passes QA (portlint, poudriere) please. Information on testing can be found here:

https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/testing.html
Comment 3 Šimun Mikecin 2016-08-12 13:33:18 UTC
Created attachment 173588 [details]
shar archive
Comment 4 Šimun Mikecin 2016-08-12 13:34:42 UTC
Created attachment 173589 [details]
portlint results
Comment 5 Šimun Mikecin 2016-08-16 08:25:41 UTC
Created attachment 173726 [details]
portlint results

Passed portlint.
Comment 6 Šimun Mikecin 2016-08-16 08:27:32 UTC
Created attachment 173727 [details]
shar archive

Version that passes QA (portlint and poudriere).
Comment 7 Šimun Mikecin 2016-08-16 08:28:29 UTC
Created attachment 173728 [details]
poudriere build log.

Passes poudriere.
Comment 8 Kubilay Kocak freebsd_committer freebsd_triage 2016-08-16 08:57:54 UTC
Thank you Šimun, nice work :)

A few (non-obvious) issues remain that high-quality ports don't exhibit.

1) Warning: 'lib/freeswitch/mod/mod_amd.so' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}

That can be addressed in a post-install: target using ${STRIP_CMD} ${STAGEDIR}/path/to/file.so because the upstream Makefile doesn't have an install-strip target

2) Use at least the -AC flags with portlint (add -N for new ports like this one) for extra checks (some may be false positives, use common sense)

3) Patch out -Werror. This flag shouldn't be included by upstreams in their releases. If it ends up there anyway, it needs to be overriden with -Wno-error, or, removed entirely if a bad Makefile "inadvertently" overrides user-supplied variables/flags, which mod_amd appears to :[ ). 

3) Patch the Makefile to remove the @ (silencing command) charin the line containing "@$(CC)". The build currently only produces "--- mod_amd.o ---" output when compiling, and builds should be verbose. I only noticed this because I was looking for -Werror in the compile output and couldn't find it (because the build wasn't verbose)
Comment 9 Šimun Mikecin 2016-08-16 09:38:03 UTC
Created attachment 173729 [details]
shar archive

Version with all mentioned issues resolved.
Comment 10 Šimun Mikecin 2016-08-16 20:13:23 UTC
Created attachment 173751 [details]
portlint results
Comment 11 Šimun Mikecin 2016-08-16 20:32:17 UTC
Created attachment 173753 [details]
poudriere build log
Comment 12 Šimun Mikecin 2017-07-19 07:33:40 UTC
@Kubilay Kocak,

could you please unassign yourself from this bug so that someone that has time can commit this?
Thank you.
Comment 13 Kubilay Kocak freebsd_committer freebsd_triage 2017-07-19 07:54:36 UTC
Apologies Šimun, I'm not sure how I missed this.
Comment 14 Tobias Kortkamp freebsd_committer freebsd_triage 2019-02-07 09:43:42 UTC
Committed with some minor changes. Sorry that this took so long...
Comment 15 commit-hook freebsd_committer freebsd_triage 2019-02-07 09:43:56 UTC
A commit references this bug:

Author: tobik
Date: Thu Feb  7 09:43:17 UTC 2019
New revision: 492354
URL: https://svnweb.freebsd.org/changeset/ports/492354

Log:
  New port: net/mod_amd

  Asterisk app_amd for FreeSWITCH

  This is an implementation of Asterisk's answering machine detection
  (voice activity detection) for FreeSWITCH.

  WWW: https://github.com/seanbright/mod_amd

  PR:		211773
  Submitted by:	?imun Mikecin <numisemis@yahoo.com>
  Reviewed by:	koobs

Changes:
  head/net/Makefile
  head/net/mod_amd/
  head/net/mod_amd/Makefile
  head/net/mod_amd/distinfo
  head/net/mod_amd/files/
  head/net/mod_amd/files/amd.conf.xml
  head/net/mod_amd/files/patch-Makefile
  head/net/mod_amd/pkg-descr