From 2dd8c008bd116892dcc61a13a0712f14b9d771c7 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 10 Feb 2018 15:15:33 +0100 Subject: [PATCH] kamailio-5.x: add various new modules The aim is to add the missing modules that Debian packages, minus the ones for which depends are missing on OpenWrt. Signed-off-by: Sebastian Kemper --- net/kamailio-5.x/Makefile | 86 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index afe142d..ecfad6d 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -23,6 +23,7 @@ PKG_MAINTAINER:=Jiri Slachta include $(INCLUDE_DIR)/nls.mk include $(INCLUDE_DIR)/package.mk +include $(TOPDIR)/feeds/packages/lang/python/python-host.mk TARGET_CFLAGS += $(FPIC) -DVERSION_NODATE=1 PREBUILT_STAMP=$(STAGING_DIR)/stamp/.$(PKG_NAME)_prebuilt @@ -108,6 +109,8 @@ $(foreach d,$(5),$(call Package/kamailio5/install/dbfiles,$$(1),$(d));) $$(eval $$(call BuildPackage,kamailio5-mod-$(subst _,-,$(1)))) endef +TARGET_CPPFLAGS+=$(if $(CONFIG_PACKAGE_kamailio5-mod-app-python),-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION)) + PKG_MAKE_ARGS:= \ prefix=/ \ cfg_dir=/etc/kamailio/ \ @@ -147,24 +150,42 @@ $(eval $(call BuildPackage,kamailio5)) ################################ $(eval $(call BuildKamailio5Module,acc,Accounting,,+kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,acc_diameter,Accounting for DIAMETER backend,,+kamailio5-mod-acc)) $(eval $(call BuildKamailio5Module,alias_db,Database-backend aliases,,+kamailio5-mod-db-sqlite)) +$(eval $(call BuildKamailio5Module,app_jsdt,Execute JavaScript scripts,,)) $(eval $(call BuildKamailio5Module,app_lua,Execute embedded Lua scripts,,+liblua)) +$(eval $(call BuildKamailio5Module,app_python,Execute Python scripts,,+python-light)) +$(eval $(call BuildKamailio5Module,app_sqlang,Execute Squirrel language scripts,,+libstdcpp)) $(eval $(call BuildKamailio5Module,async,Asynchronous SIP handling functions,,+kamailio5-mod-tm +kamailio5-mod-tmx)) $(eval $(call BuildKamailio5Module,auth,Authentication Framework,,)) $(eval $(call BuildKamailio5Module,auth_db,Database-backend authentication,,+kamailio5-mod-auth +kamailio5-mod-db-sqlite)) $(eval $(call BuildKamailio5Module,auth_diameter,Diameter authentication,,+kamailio5-mod-sl)) +$(eval $(call BuildKamailio5Module,auth_ephemeral,Ephemeral credentials,,+libopenssl)) $(eval $(call BuildKamailio5Module,auth_identity,Identity authentication,,+libopenssl +libcurl)) $(eval $(call BuildKamailio5Module,auth_xkeys,Shared-key authentication,,+kamailio5-mod-auth)) $(eval $(call BuildKamailio5Module,avp,Functions for handling AVPs,,)) $(eval $(call BuildKamailio5Module,avpops,AVP operation,,)) $(eval $(call BuildKamailio5Module,benchmark,Config benchmark,,)) $(eval $(call BuildKamailio5Module,blst,Blacklisting API for config,,)) +$(eval $(call BuildKamailio5Module,call_control,Call Control,,+kamailio5-mod-dialog +kamailio5-mod-pv)) +$(eval $(call BuildKamailio5Module,call_obj,Call identification support,,)) +$(eval $(call BuildKamailio5Module,carrierroute,Carrier Route,,)) +$(eval $(call BuildKamailio5Module,cdp,C Diameter Peer,,)) +$(eval $(call BuildKamailio5Module,cdp_avp,CDP AVP helper module,,+kamailio5-mod-cdp)) $(eval $(call BuildKamailio5Module,cfgutils,Config utilities,,)) $(eval $(call BuildKamailio5Module,cfg_db,Load parameters from database,,+kamailio5-mod-db-sqlite)) $(eval $(call BuildKamailio5Module,cfg_rpc,Update parameters via RPC,,)) +$(eval $(call BuildKamailio5Module,cfgt,Unit test reporting,,)) $(eval $(call BuildKamailio5Module,cnxcc,Limit call duration,,+kamailio5-mod-dialog +libhiredis +libevent2)) $(eval $(call BuildKamailio5Module,corex,Legacy functions,,)) +$(eval $(call BuildKamailio5Module,counters,Functions for counter manipulation,,)) +$(eval $(call BuildKamailio5Module,cplc,Call Processing Language interpreter,,+kamailio5-mod-sl +kamailio5-mod-tm +kamailio5-mod-usrloc)) +$(eval $(call BuildKamailio5Module,crypto,Various cryptography tools,,+libopenssl)) $(eval $(call BuildKamailio5Module,ctl,BINRPC transport interface,,)) +$(eval $(call BuildKamailio5Module,db2_ldap,DBv2 LDAP module,,+libopenldap)) +$(eval $(call BuildKamailio5Module,db2_ops,Run SQL queries from script,,)) +$(eval $(call BuildKamailio5Module,db_berkeley,Berkeley DB backend,,+libdb47)) +$(eval $(call BuildKamailio5Module,db_cluster,Database clustering system,,)) $(eval $(call BuildKamailio5Module,db_flatstore,fast write-only text DB-backend,,)) $(eval $(call BuildKamailio5Module,db_mysql,MySQL DB-backend,,+libmysqlclient,mysql)) $(eval $(call BuildKamailio5Module,db_postgres,PostgreSQL DB-backend,,@!arc +libpq,postgres)) @@ -176,42 +197,78 @@ $(eval $(call BuildKamailio5Module,dialog,Dialog support,,+kamailio5-mod-rr +kam $(eval $(call BuildKamailio5Module,dialplan,Dialplan management,,+libpcre)) $(eval $(call BuildKamailio5Module,dispatcher,Dispatcher,,)) $(eval $(call BuildKamailio5Module,diversion,Diversion header insertion,,)) +$(eval $(call BuildKamailio5Module,dmq,Distributed Message Queue,,+kamailio5-mod-sl +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,dmq_usrloc,DMQ USRLOC replication,,+kamailio5-mod-dmq +kamailio5-mod-usrloc)) $(eval $(call BuildKamailio5Module,domain,Multi-domain support,,)) $(eval $(call BuildKamailio5Module,domainpolicy,Domain policy,,)) $(eval $(call BuildKamailio5Module,drouting,Dynamic routing module,,)) $(eval $(call BuildKamailio5Module,enum,ENUM lookup,,)) +$(eval $(call BuildKamailio5Module,erlang,Erlang node connector module,,@!USE_MUSL +erlang)) $(eval $(call BuildKamailio5Module,evapi,push event details via tcp,,+libev)) +$(eval $(call BuildKamailio5Module,evrexec,Execut event routes at startup,,)) $(eval $(call BuildKamailio5Module,exec,External exec,,)) $(eval $(call BuildKamailio5Module,group,Database-backend user-groups,,)) +$(eval $(call BuildKamailio5Module,gzcompress,Compress SIP messages,,+zlib)) $(eval $(call BuildKamailio5Module,h350,H.350,,+kamailio5-mod-ldap +libopenldap)) $(eval $(call BuildKamailio5Module,htable,Hash Table,,)) +$(eval $(call BuildKamailio5Module,http_client,HTTP client using CURL,,+libcurl)) $(eval $(call BuildKamailio5Module,imc,IM conferencing,,+kamailio5-mod-db-mysql +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ims_auth,IMS authentication module,,+kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ims_charging,IMS charging component module,,+kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ims_dialog,IMS dialog tracking module,,+kamailio5-mod-rr +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ims_diameter_server,IMS DIAMETER server module,,+kamailio5-mod-cdp +kamailio5-mod-cdp-avp)) +$(eval $(call BuildKamailio5Module,ims_icscf,IMS ICSCF component module,,+kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-sl +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ims_isc,IMS ISC component module,,+kamailio5-mod-ims-usrloc-scscf +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ims_ocs,MS OCS component module,,+kamailio5-mod-cdp +kamailio5-mod-cdp-avp)) +$(eval $(call BuildKamailio5Module,ims_qos,IMS Diameter Rx interface between PCSCF and PCRF functions,,+kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-ims-dialog +kamailio5-mod-ims-usrloc-pcscf +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ims_registrar_pcscf,MS PCSCF registrar module,,+kamailio5-mod-ims-usrloc-pcscf)) +$(eval $(call BuildKamailio5Module,ims_registrar_scscf,IMS SCSCF registrar module,,+kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-ims-usrloc-scscf +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ims_usrloc_pcscf,IMS PCSCF usrloc module,,)) +$(eval $(call BuildKamailio5Module,ims_usrloc_scscf,IMS SCSCF usrloc module,,)) $(eval $(call BuildKamailio5Module,ipops,IP and IPv6 operations,,)) $(eval $(call BuildKamailio5Module,jansson,Access to JSON attributes,,+jansson)) $(eval $(call BuildKamailio5Module,janssonrpcc,Alternative JSONRPC server,,+kamailio5-mod-jansson +libevent2)) $(eval $(call BuildKamailio5Module,json,Access to JSON document attributes,,+libjson-c)) $(eval $(call BuildKamailio5Module,jsonrpcs,JSONRPC server over HTTP,,+kamailio5-mod-json +libevent2)) +$(eval $(call BuildKamailio5Module,keepalive,SIP keepalive monitoring,+kamailio5-mod-tm,)) $(eval $(call BuildKamailio5Module,kex,Core extensions,,)) $(eval $(call BuildKamailio5Module,lcr,Least Cost Routing,,+kamailio5-mod-tm +libpcre)) $(eval $(call BuildKamailio5Module,ldap,LDAP connector,,+libopenldap)) +$(eval $(call BuildKamailio5Module,log_custom,Logging to custom backends,,)) +$(eval $(call BuildKamailio5Module,mangler,SDP mangling,,)) +$(eval $(call BuildKamailio5Module,matrix,Matrix operations,,)) $(eval $(call BuildKamailio5Module,maxfwd,Max-Forward processor,,)) $(eval $(call BuildKamailio5Module,mediaproxy,Automatic NAT traversal,,+kamailio5-mod-dialog)) +$(eval $(call BuildKamailio5Module,mohqueue,Music on hold queuing system,,+kamailio5-mod-rtpproxy +kamailio5-mod-sl +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,mqueue,Generic message queue system,,)) $(eval $(call BuildKamailio5Module,msilo,SIP message silo,,+kamailio5-mod-tm)) $(eval $(call BuildKamailio5Module,msrp,MSRP routing engine,,+kamailio5-mod-tls)) +$(eval $(call BuildKamailio5Module,mtree,Memory caching system,,)) $(eval $(call BuildKamailio5Module,nathelper,NAT helper,,+kamailio5-mod-usrloc)) $(eval $(call BuildKamailio5Module,nat_traversal,NAT traversal,,+kamailio5-mod-dialog +kamailio5-mod-sl +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ndb_redis,Connect to REDIS NoSQL,,+libhiredis)) $(eval $(call BuildKamailio5Module,nosip,non-sip package handling,,+kamailio5-mod-rr)) +$(eval $(call BuildKamailio5Module,outbound,SIP Outbound implementation,,+kamailio5-mod-stun +libopenssl)) +$(eval $(call BuildKamailio5Module,p_usrloc,Partitioned USRLOC services,,)) $(eval $(call BuildKamailio5Module,path,SIP path insertion,,+kamailio5-mod-rr)) +$(eval $(call BuildKamailio5Module,pdb,Number portability module,,)) $(eval $(call BuildKamailio5Module,pdt,Prefix-to-Domain translator,,)) $(eval $(call BuildKamailio5Module,permissions,Permissions control,,)) $(eval $(call BuildKamailio5Module,pike,Flood detector,,)) +$(eval $(call BuildKamailio5Module,pipelimit,Traffic shaping policies,,+kamailio5-mod-sl)) +$(eval $(call BuildKamailio5Module,prefix_route,Execute based on prefix,,)) $(eval $(call BuildKamailio5Module,presence,Presence server,,+kamailio5-mod-sl +kamailio5-mod-tm +libxml2)) +$(eval $(call BuildKamailio5Module,presence_conference,Conference events,,+kamailio5-mod-presence)) $(eval $(call BuildKamailio5Module,presence_dialoginfo,Dialog Event presence,,+kamailio5-mod-presence)) $(eval $(call BuildKamailio5Module,presence_mwi,MWI presence,,+kamailio5-mod-presence)) +$(eval $(call BuildKamailio5Module,presence_profile,User profile extensions,,+kamailio5-mod-presence)) +$(eval $(call BuildKamailio5Module,presence_reginfo,Registration info,,+kamailio5-mod-presence)) $(eval $(call BuildKamailio5Module,presence_xml,XCAP presence,,+kamailio5-mod-presence +kamailio5-mod-xcap-client)) $(eval $(call BuildKamailio5Module,pua,Presence User Agent,,+kamailio5-mod-tm +libxml2)) $(eval $(call BuildKamailio5Module,pua_bla,Bridged Line Appearence PUA,,+kamailio5-mod-presence +kamailio5-mod-pua +kamailio5-mod-usrloc)) $(eval $(call BuildKamailio5Module,pua_dialoginfo,Dialog Event PUA,,+kamailio5-mod-dialog +kamailio5-mod-pua)) +$(eval $(call BuildKamailio5Module,pua_reginfo,PUA registration info,,+kamailio5-mod-pua +kamailio5-mod-usrloc)) +$(eval $(call BuildKamailio5Module,pua_rpc,RPC extensions for PUA,,+kamailio5-mod-pua)) $(eval $(call BuildKamailio5Module,pua_usrloc,PUA User Location,,+kamailio5-mod-pua +kamailio5-mod-usrloc)) $(eval $(call BuildKamailio5Module,pua_xmpp,PUA XMPP,,+kamailio5-mod-presence +kamailio5-mod-pua +kamailio5-mod-xmpp)) $(eval $(call BuildKamailio5Module,pv,Pseudo-Variables,,)) @@ -222,34 +279,63 @@ $(eval $(call BuildKamailio5Module,registrar,SIP Registrar,,+kamailio5-mod-usrlo $(eval $(call BuildKamailio5Module,rls,Resource List Server,,+kamailio5-mod-presence +kamailio5-mod-pua +kamailio5-mod-tm +libxml2)) $(eval $(call BuildKamailio5Module,rr,Record-Route and Route,,)) $(eval $(call BuildKamailio5Module,rtimer,Routing Timer,,)) +$(eval $(call BuildKamailio5Module,rtjson,SIP routing based on JSON API,,)) $(eval $(call BuildKamailio5Module,rtpengine,RTP engine,,+kamailio5-mod-tm)) $(eval $(call BuildKamailio5Module,rtpproxy,RTP proxy,,+kamailio5-mod-tm)) $(eval $(call BuildKamailio5Module,sanity,SIP sanity checks,,+kamailio5-mod-sl)) +$(eval $(call BuildKamailio5Module,sca,Shared Call Appearances,,+kamailio5-mod-sl +kamailio5-mod-tm)) $(eval $(call BuildKamailio5Module,sctp,SCTP support,,+libsctp)) +$(eval $(call BuildKamailio5Module,sdpops,Managing SDP payloads,,)) +$(eval $(call BuildKamailio5Module,seas,Sip Express Application Server,,+kamailio5-mod-tm)) $(eval $(call BuildKamailio5Module,sipcapture,SIP capture,,)) +$(eval $(call BuildKamailio5Module,sipdump,Save SIP traffic,,)) +$(eval $(call BuildKamailio5Module,sipt,SIP-T and SIP-I operations,,)) $(eval $(call BuildKamailio5Module,siptrace,SIP trace,,)) $(eval $(call BuildKamailio5Module,siputils,SIP utilities,,+kamailio5-mod-sl)) $(eval $(call BuildKamailio5Module,sl,Stateless replier,,)) $(eval $(call BuildKamailio5Module,sms,SIP-to-SMS IM gateway,,+kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,smsops,Handle SMS packets in SIP,,)) +$(eval $(call BuildKamailio5Module,snmpstats,SNMP interface for statistics,,+libnetsnmp)) $(eval $(call BuildKamailio5Module,speeddial,Per-user speed-dial controller,,)) $(eval $(call BuildKamailio5Module,sqlops,SQL operations,,)) +$(eval $(call BuildKamailio5Module,ss7ops,JSON Operations for SS7 over HEP,,)) $(eval $(call BuildKamailio5Module,statistics,Script statistics,,)) +$(eval $(call BuildKamailio5Module,statsc,Statistics collector,,)) +$(eval $(call BuildKamailio5Module,statsd,Connector for statsd application,,)) $(eval $(call BuildKamailio5Module,stun,STUN server support,,)) $(eval $(call BuildKamailio5Module,sst,SIP Session Timer,,+kamailio5-mod-dialog +kamailio5-mod-sl)) $(eval $(call BuildKamailio5Module,tcpops,TCP options tweaking operations,,)) $(eval $(call BuildKamailio5Module,textops,Text operations,,)) +$(eval $(call BuildKamailio5Module,textopsx,Extra text operations,,)) +$(eval $(call BuildKamailio5Module,timer,Execute routing blocks on core timers,,)) $(eval $(call BuildKamailio5Module,tls,TLS operations,,+libopenssl,,tls.cfg)) +$(eval $(call BuildKamailio5Module,tmrec,Match time recurrences,,)) $(eval $(call BuildKamailio5Module,topoh,Topology hiding,,+kamailio5-mod-rr)) +$(eval $(call BuildKamailio5Module,topos,Topology stripping module,,+kamailio5-mod-rr)) +$(eval $(call BuildKamailio5Module,topos_redis,Redis backend for topos module,,+kamailio5-mod-ndb-redis +kamailio5-mod-topos)) $(eval $(call BuildKamailio5Module,tm,Transaction,,)) $(eval $(call BuildKamailio5Module,tmx,Transaction module extensions,,)) +$(eval $(call BuildKamailio5Module,tsilo,Transaction storage,,+kamailio5-mod-registrar +kamailio5-mod-sl +kamailio5-mod-tm)) $(eval $(call BuildKamailio5Module,uac,User Agent Client,,+kamailio5-mod-tm)) $(eval $(call BuildKamailio5Module,uac_redirect,User Agent Client redirection,,+kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,uid_auth_db,Authentication module,,+kamailio5-mod-auth)) +$(eval $(call BuildKamailio5Module,uid_avp_db,AVP database operations,,)) +$(eval $(call BuildKamailio5Module,uid_domain,Domains management,,)) +$(eval $(call BuildKamailio5Module,uid_gflags,Global attributes and flags,,)) +$(eval $(call BuildKamailio5Module,uid_uri_db,Database URI operations,,)) $(eval $(call BuildKamailio5Module,uri_db,Database-backend SIP URI checking,,)) $(eval $(call BuildKamailio5Module,userblacklist,User blacklists,,)) $(eval $(call BuildKamailio5Module,usrloc,User location,,)) $(eval $(call BuildKamailio5Module,utils,Misc utilities,,+libcurl +libxml2)) $(eval $(call BuildKamailio5Module,uuid,UUID utilities,,+libuuid)) +$(eval $(call BuildKamailio5Module,websocket,WebSocket transport layer,,+kamailio5-mod-sl +kamailio5-mod-tm +libopenssl +libunistring)) $(eval $(call BuildKamailio5Module,xcap_client,XCAP Client,,+libcurl)) +$(eval $(call BuildKamailio5Module,xcap_server,XCAP server implementation,,+kamailio5-mod-xhttp +kamailio5-mod-sl)) +$(eval $(call BuildKamailio5Module,xhttp,Basic HTTP request handling server,,+kamailio5-mod-sl)) +$(eval $(call BuildKamailio5Module,xhttp_pi,HTTP provisioning interface,,+kamailio5-mod-xhttp)) +$(eval $(call BuildKamailio5Module,xhttp_rpc,RPC commands handling over HTTP,,+kamailio5-mod-xhttp)) $(eval $(call BuildKamailio5Module,xlog,Advanced logger,,)) +$(eval $(call BuildKamailio5Module,xmlops,XML operations,,)) $(eval $(call BuildKamailio5Module,xmlrpc,XML RPC module,,+libxml2)) $(eval $(call BuildKamailio5Module,xmpp,SIP-to-XMPP Gateway,,+kamailio5-mod-tm +libexpat)) +$(eval $(call BuildKamailio5Module,xprint,Print messages with specifiers,,)) -- 2.30.2