Browse code

slack: reuse http_client api

Arsen Semenov authored on 16/09/2021 10:42:24
Showing 1 changed files
... ...
@@ -8,24 +8,5 @@ include ../../Makefile.defs
8 8
 auto_gen=
9 9
 NAME=slack.so
10 10
 
11
-ifeq ($(CROSS_COMPILE),)
12
-CURL_BUILDER=$(shell \
13
-        if pkg-config --exists libcurl; then \
14
-                echo 'pkg-config libcurl'; \
15
-        else \
16
-                which curl-config; \
17
-        fi)
18
-endif
19
-
20
-ifneq ($(CURL_BUILDER),)
21
-        CURLDEFS += $(shell $(CURL_BUILDER) --cflags)
22
-        CURLLIBS += $(shell $(CURL_BUILDER) --libs)
23
-else
24
-        CURLDEFS+=-I$(LOCALBASE)/include -I$(SYSBASE)/include
25
-        CURLLIBS+=-L$(LOCALBASE)/lib -L$(SYSBASE)/lib -lcurl
26
-endif
27
-
28
-DEFS+=$(CURLDEFS)
29
-LIBS=$(CURLLIBS)
30 11
 
31 12
 include ../../Makefile.modules
Browse code

slack: fix param typo; strncpy, snprintf error check; removed pre-built html doc

Arsen Semenov authored on 31/08/2021 05:56:50 • Daniel-Constantin Mierla committed on 01/09/2021 10:32:54
Showing 1 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 #
2
-# Slac client for Kamailio
2
+# Slack client for Kamailio
3 3
 #
4 4
 #
5 5
 # WARNING: do not run this directly, it should be run by the main Makefile
Browse code

slack: new module, send message to slack channel

Arsen Semenov authored on 30/08/2021 14:09:55 • Daniel-Constantin Mierla committed on 01/09/2021 10:32:54
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,31 @@
1
+#
2
+# Slac client for Kamailio
3
+#
4
+#
5
+# WARNING: do not run this directly, it should be run by the main Makefile
6
+
7
+include ../../Makefile.defs
8
+auto_gen=
9
+NAME=slack.so
10
+
11
+ifeq ($(CROSS_COMPILE),)
12
+CURL_BUILDER=$(shell \
13
+        if pkg-config --exists libcurl; then \
14
+                echo 'pkg-config libcurl'; \
15
+        else \
16
+                which curl-config; \
17
+        fi)
18
+endif
19
+
20
+ifneq ($(CURL_BUILDER),)
21
+        CURLDEFS += $(shell $(CURL_BUILDER) --cflags)
22
+        CURLLIBS += $(shell $(CURL_BUILDER) --libs)
23
+else
24
+        CURLDEFS+=-I$(LOCALBASE)/include -I$(SYSBASE)/include
25
+        CURLLIBS+=-L$(LOCALBASE)/lib -L$(SYSBASE)/lib -lcurl
26
+endif
27
+
28
+DEFS+=$(CURLDEFS)
29
+LIBS=$(CURLLIBS)
30
+
31
+include ../../Makefile.modules