|
Lines 60-80
PATCHES=(
Link Here
|
| 60 |
"${FILESDIR}/1.6.2/${PN}-1.6.2.2-nv-faxdetect.patch" |
60 |
"${FILESDIR}/1.6.2/${PN}-1.6.2.2-nv-faxdetect.patch" |
| 61 |
) |
61 |
) |
| 62 |
|
62 |
|
| 63 |
get_available_modules() { |
|
|
| 64 |
local modules mod x |
| 65 |
|
| 66 |
# build list of available modules... |
| 67 |
for x in app cdr codec format func pbx res; do |
| 68 |
|
| 69 |
for mod in $(find "${S}" -type f -name "${x}_*.c*" -print) |
| 70 |
do |
| 71 |
modules="${modules} $(basename ${mod/%.c*})" |
| 72 |
done |
| 73 |
done |
| 74 |
|
| 75 |
echo "${modules}" |
| 76 |
} |
| 77 |
|
| 78 |
pkg_setup() { |
63 |
pkg_setup() { |
| 79 |
if [[ -n "${ASTERISK_MODULES}" ]] ; then |
64 |
if [[ -n "${ASTERISK_MODULES}" ]] ; then |
| 80 |
ewarn "You are overriding ASTERISK_MODULES. We will assume you know what you are doing. There is no support for this option, try without if you see breakage." |
65 |
ewarn "You are overriding ASTERISK_MODULES. We will assume you know what you are doing. There is no support for this option, try without if you see breakage." |
|
Lines 84-116
pkg_setup() {
Link Here
|
| 84 |
have reported that this module dropped critical SIP packets in their deployments. You |
69 |
have reported that this module dropped critical SIP packets in their deployments. You |
| 85 |
may want to disable it if you see such problems." |
70 |
may want to disable it if you see such problems." |
| 86 |
check_extra_config |
71 |
check_extra_config |
| 87 |
|
|
|
| 88 |
# parse modules list |
| 89 |
if [[ -n "${ASTERISK_MODULES}" ]]; then |
| 90 |
local x modules="$(get_available_modules)" |
| 91 |
|
| 92 |
einfo "Custom list of modules specified, checking..." |
| 93 |
|
| 94 |
use debug && { |
| 95 |
einfo "Available modules: ${modules}" |
| 96 |
einfo " Selected modules: ${ASTERISK_MODULES}" |
| 97 |
} |
| 98 |
|
| 99 |
for x in ${ASTERISK_MODULES}; do |
| 100 |
if [[ "${x}" = "-*" ]]; then |
| 101 |
MODULES_LIST="" |
| 102 |
else |
| 103 |
if has ${x} ${modules} |
| 104 |
then |
| 105 |
MODULES_LIST="${MODULES_LIST} ${x}" |
| 106 |
else |
| 107 |
eerror "Unknown module: ${x}" |
| 108 |
fi |
| 109 |
fi |
| 110 |
done |
| 111 |
|
| 112 |
export MODULES_LIST |
| 113 |
fi |
| 114 |
} |
72 |
} |
| 115 |
|
73 |
|
| 116 |
src_prepare() { |
74 |
src_prepare() { |