asterisk-chan-quecktel tuning
- add asterisk to `audio` and `dialout` groups - use UAC config file for quectel
This commit is contained in:
parent
ed3791fe1c
commit
f3c5dc06d4
|
@ -46,6 +46,7 @@ make image \
|
||||||
kmod-usb-audio kmod-usb-net-rtl8152 \
|
kmod-usb-audio kmod-usb-net-rtl8152 \
|
||||||
alsa-lib pciutils usbutils \
|
alsa-lib pciutils usbutils \
|
||||||
kmod-usb-net-qmi-wwan libqmi qmi-utils uqmi luci-proto-qmi \
|
kmod-usb-net-qmi-wwan libqmi qmi-utils uqmi luci-proto-qmi \
|
||||||
|
shadow-usermod \
|
||||||
asterisk \
|
asterisk \
|
||||||
asterisk-app-sms asterisk-pjsip asterisk-bridge-simple \
|
asterisk-app-sms asterisk-pjsip asterisk-bridge-simple \
|
||||||
asterisk-codec-alaw asterisk-codec-ulaw \
|
asterisk-codec-alaw asterisk-codec-ulaw \
|
||||||
|
|
|
@ -65,10 +65,19 @@ endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/install
|
define Package/$(PKG_NAME)/install
|
||||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
$(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_DIR) $(1)$(MODULES_DIR)
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chan_quectel.so $(1)$(MODULES_DIR)
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chan_quectel.so $(1)$(MODULES_DIR)
|
||||||
endef
|
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)))
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user