asterisk-chan-quecktel tuning

- add asterisk to `audio` and `dialout` groups
- use UAC config file for quectel
This commit is contained in:
Peter Šurda 2023-01-18 07:41:00 +08:00
parent ed3791fe1c
commit f3c5dc06d4
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95
2 changed files with 11 additions and 1 deletions

View File

@ -46,6 +46,7 @@ make image \
kmod-usb-audio kmod-usb-net-rtl8152 \
alsa-lib pciutils usbutils \
kmod-usb-net-qmi-wwan libqmi qmi-utils uqmi luci-proto-qmi \
shadow-usermod \
asterisk \
asterisk-app-sms asterisk-pjsip asterisk-bridge-simple \
asterisk-codec-alaw asterisk-codec-ulaw \

View File

@ -65,10 +65,19 @@ endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/etc/asterisk
$(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/quectel.conf $(1)/etc/asterisk
$(INSTALL_DATA) $(PKG_BUILD_DIR)/uac/quectel.conf $(1)/etc/asterisk
$(INSTALL_DIR) $(1)$(MODULES_DIR)
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chan_quectel.so $(1)$(MODULES_DIR)
endef
define Package/$(PKG_NAME)/postinst
#!/bin/sh
if [ -n "$${IPKG_INSTROOT}" ]; then
exit 0
fi
usermod -a -G audio,dialout asterisk
endef
$(eval $(call BuildPackage,$(PKG_NAME)))