asterisk: add SMS application helper
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
This commit is contained in:
parent
fccc851043
commit
74e6b38bd3
2 changed files with 22 additions and 3 deletions
|
@ -255,6 +255,17 @@ $(call Package/asterisk18/Default/description)
|
||||||
This package provides Lua resources for Asterisk.
|
This package provides Lua resources for Asterisk.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/asterisk18-smsq
|
||||||
|
$(call Package/asterisk18/Default)
|
||||||
|
TITLE:=SMS application helper
|
||||||
|
DEPENDS:= asterisk18 +libpopt +libstdcpp
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/asterisk18-smsq/description
|
||||||
|
$(call Package/asterisk18/Default/description)
|
||||||
|
This package provides support for sending SMS from CLI via Asterisk.
|
||||||
|
endef
|
||||||
|
|
||||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-chan-gtalk),)
|
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-chan-gtalk),)
|
||||||
CONFIGURE_ARGS+= \
|
CONFIGURE_ARGS+= \
|
||||||
--with-iksemel="$(STAGING_DIR)/usr"
|
--with-iksemel="$(STAGING_DIR)/usr"
|
||||||
|
@ -638,6 +649,11 @@ define Package/asterisk18-pbx-lua/install
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/pbx_lua.so $(1)/usr/lib/asterisk/modules/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/pbx_lua.so $(1)/usr/lib/asterisk/modules/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/asterisk18-smsq/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/sbin/
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/smsq $(1)/usr/sbin/
|
||||||
|
endef
|
||||||
|
|
||||||
define Buildasterisk18ModuleTemplate
|
define Buildasterisk18ModuleTemplate
|
||||||
|
|
||||||
define Package/asterisk18-$(subst _,-,$(1))
|
define Package/asterisk18-$(subst _,-,$(1))
|
||||||
|
@ -680,6 +696,7 @@ $(eval $(call BuildPackage,asterisk18-curl))
|
||||||
$(eval $(call BuildPackage,asterisk18-mysql))
|
$(eval $(call BuildPackage,asterisk18-mysql))
|
||||||
$(eval $(call BuildPackage,asterisk18-chan-lantiq))
|
$(eval $(call BuildPackage,asterisk18-chan-lantiq))
|
||||||
$(eval $(call BuildPackage,asterisk18-res-srtp))
|
$(eval $(call BuildPackage,asterisk18-res-srtp))
|
||||||
|
$(eval $(call BuildPackage,asterisk18-smsq))
|
||||||
$(eval $(call Buildasterisk18ModuleTemplate,app_authenticate,Authenticate,support for executing arbitrary authenticate commands))
|
$(eval $(call Buildasterisk18ModuleTemplate,app_authenticate,Authenticate,support for executing arbitrary authenticate commands))
|
||||||
$(eval $(call Buildasterisk18ModuleTemplate,app_chanisavail,Channel availability check,support for checking if a channel is available))
|
$(eval $(call Buildasterisk18ModuleTemplate,app_chanisavail,Channel availability check,support for checking if a channel is available))
|
||||||
$(eval $(call Buildasterisk18ModuleTemplate,app_chanspy,Channel listen in,support for listening in on any channel))
|
$(eval $(call Buildasterisk18ModuleTemplate,app_chanspy,Channel listen in,support for listening in on any channel))
|
||||||
|
@ -690,7 +707,7 @@ $(eval $(call Buildasterisk18ModuleTemplate,app_minivm,Minimal voicemail system,
|
||||||
$(eval $(call Buildasterisk18ModuleTemplate,app_readexten,Extension to variable,a trivial application to read an extension into a variable))
|
$(eval $(call Buildasterisk18ModuleTemplate,app_readexten,Extension to variable,a trivial application to read an extension into a variable))
|
||||||
$(eval $(call Buildasterisk18ModuleTemplate,app_read,Variable read,a trivial application to read a variable))
|
$(eval $(call Buildasterisk18ModuleTemplate,app_read,Variable read,a trivial application to read a variable))
|
||||||
$(eval $(call Buildasterisk18ModuleTemplate,app_sayunixtime,Say Unix time,an application to say Unix time))
|
$(eval $(call Buildasterisk18ModuleTemplate,app_sayunixtime,Say Unix time,an application to say Unix time))
|
||||||
$(eval $(call Buildasterisk18ModuleTemplate,app_sms,SMS,SMS support (ETSI ES 201 912 protocol 1)))
|
$(eval $(call Buildasterisk18ModuleTemplate,app_sms,SMS,SMS support (ETSI ES 201 912 protocol 1),+asterisk18-smsq))
|
||||||
$(eval $(call Buildasterisk18ModuleTemplate,app_stack,Stack applications, stack applications Gosub Return etc., +asterisk18-res-agi))
|
$(eval $(call Buildasterisk18ModuleTemplate,app_stack,Stack applications, stack applications Gosub Return etc., +asterisk18-res-agi))
|
||||||
$(eval $(call Buildasterisk18ModuleTemplate,app_system,System exec,support for executing system commands))
|
$(eval $(call Buildasterisk18ModuleTemplate,app_system,System exec,support for executing system commands))
|
||||||
$(eval $(call Buildasterisk18ModuleTemplate,app_talkdetect,File playback with audio detect,for file playback with audio detect))
|
$(eval $(call Buildasterisk18ModuleTemplate,app_talkdetect,File playback with audio detect,for file playback with audio detect))
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=asterisk11
|
PKG_NAME:=asterisk11
|
||||||
PKG_VERSION:=11.11.0
|
PKG_VERSION:=11.11.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
|
PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
|
||||||
|
@ -64,6 +64,7 @@ This package provides support $(3) in Asterisk.
|
||||||
$(foreach c,$(6),$(call Package/asterisk11/install/conffile,$$(1),$(c));)
|
$(foreach c,$(6),$(call Package/asterisk11/install/conffile,$$(1),$(c));)
|
||||||
$(foreach m,$(7),$(call Package/asterisk11/install/module,$$(1),$(m));)
|
$(foreach m,$(7),$(call Package/asterisk11/install/module,$$(1),$(m));)
|
||||||
$(foreach s,$(8),$(call Package/asterisk11/install/sounds,$$(1),$(s));)
|
$(foreach s,$(8),$(call Package/asterisk11/install/sounds,$$(1),$(s));)
|
||||||
|
$(foreach b,$(9),$(call Package/asterisk11/install/sbin,$$(1),$(b));)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$$(eval $$(call BuildPackage,asterisk11-$(1)))
|
$$(eval $$(call BuildPackage,asterisk11-$(1)))
|
||||||
|
@ -317,6 +318,7 @@ $(eval $(call BuildPackage,asterisk11-sounds))
|
||||||
# 6 - conf files
|
# 6 - conf files
|
||||||
# 7 - module files
|
# 7 - module files
|
||||||
# 8 - sound files
|
# 8 - sound files
|
||||||
|
# 9 - binary files
|
||||||
################################
|
################################
|
||||||
|
|
||||||
$(eval $(call BuildAsteriskModule,app-alarmreceiver,Alarm receiver,Central Station Alarm receiver for Ademco Contact ID,,,,app_alarmreceiver,))
|
$(eval $(call BuildAsteriskModule,app-alarmreceiver,Alarm receiver,Central Station Alarm receiver for Ademco Contact ID,,,,app_alarmreceiver,))
|
||||||
|
@ -336,7 +338,7 @@ $(eval $(call BuildAsteriskModule,app-readexten,Extension to variable,a trivial
|
||||||
$(eval $(call BuildAsteriskModule,app-record,Record sound file,to record a sound file,,,,app_record,))
|
$(eval $(call BuildAsteriskModule,app-record,Record sound file,to record a sound file,,,,app_record,))
|
||||||
$(eval $(call BuildAsteriskModule,app-sayunixtime,Say Unix time,an application to say Unix time,,,,app_sayunixtime,))
|
$(eval $(call BuildAsteriskModule,app-sayunixtime,Say Unix time,an application to say Unix time,,,,app_sayunixtime,))
|
||||||
$(eval $(call BuildAsteriskModule,app-senddtmf,Send DTMF digits,Sends arbitrary DTMF digits,,,,app_senddtmf,))
|
$(eval $(call BuildAsteriskModule,app-senddtmf,Send DTMF digits,Sends arbitrary DTMF digits,,,,app_senddtmf,))
|
||||||
$(eval $(call BuildAsteriskModule,app-sms,SMS,SMS support (ETSI ES 201 912 protocol 1),,,,app_sms,))
|
$(eval $(call BuildAsteriskModule,app-sms,SMS,SMS support (ETSI ES 201 912 protocol 1),+libpopt +libstdcpp,,,app_sms,,smsq))
|
||||||
$(eval $(call BuildAsteriskModule,app-stack,Stack applications, stack applications Gosub Return etc., +asterisk11-res-agi,,,app_stack,))
|
$(eval $(call BuildAsteriskModule,app-stack,Stack applications, stack applications Gosub Return etc., +asterisk11-res-agi,,,app_stack,))
|
||||||
$(eval $(call BuildAsteriskModule,app-system,System exec,support for executing system commands,,,,app_system,))
|
$(eval $(call BuildAsteriskModule,app-system,System exec,support for executing system commands,,,,app_system,))
|
||||||
$(eval $(call BuildAsteriskModule,app-talkdetect,File playback with audio detect,for file playback with audio detect,,,,app_talkdetect,))
|
$(eval $(call BuildAsteriskModule,app-talkdetect,File playback with audio detect,for file playback with audio detect,,,,app_talkdetect,))
|
||||||
|
|
Loading…
Reference in a new issue