Releated GH #2098
(cherry picked from commit 298abc9eb6240b9567df5166d64eba9f6da078dd)
... | ... |
@@ -7,6 +7,7 @@ |
7 | 7 |
%define dist_version %{?fedora} |
8 | 8 |
%bcond_without cnxcc |
9 | 9 |
%bcond_with dnssec |
10 |
+%bcond_without evapi |
|
10 | 11 |
%bcond_without geoip |
11 | 12 |
%bcond_without http_async_client |
12 | 13 |
%bcond_without ims |
... | ... |
@@ -32,6 +33,7 @@ |
32 | 33 |
%define dist_version %{?centos} |
33 | 34 |
%bcond_with cnxcc |
34 | 35 |
%bcond_without dnssec |
36 |
+%bcond_without evapi |
|
35 | 37 |
%bcond_without geoip |
36 | 38 |
%bcond_without http_async_client |
37 | 39 |
%bcond_without ims |
... | ... |
@@ -58,6 +60,7 @@ |
58 | 60 |
%define dist .el7.centos |
59 | 61 |
%bcond_without cnxcc |
60 | 62 |
%bcond_with dnssec |
63 |
+%bcond_without evapi |
|
61 | 64 |
%bcond_without geoip |
62 | 65 |
%bcond_without http_async_client |
63 | 66 |
%bcond_without ims |
... | ... |
@@ -84,6 +87,7 @@ |
84 | 87 |
%define dist .el8.centos |
85 | 88 |
%bcond_without cnxcc |
86 | 89 |
%bcond_with dnssec |
90 |
+%bcond_without evapi |
|
87 | 91 |
%bcond_with geoip |
88 | 92 |
%bcond_without http_async_client |
89 | 93 |
%bcond_without ims |
... | ... |
@@ -109,6 +113,7 @@ |
109 | 113 |
%define dist_version %{?suse_version} |
110 | 114 |
%bcond_without cnxcc |
111 | 115 |
%bcond_with dnssec |
116 |
+%bcond_with evapi |
|
112 | 117 |
%bcond_without geoip |
113 | 118 |
%bcond_without http_async_client |
114 | 119 |
%bcond_without ims |
... | ... |
@@ -134,6 +139,7 @@ |
134 | 139 |
%define dist_version %{?rhel} |
135 | 140 |
%bcond_with cnxcc |
136 | 141 |
%bcond_without dnssec |
142 |
+%bcond_without evapi |
|
137 | 143 |
%bcond_with geoip |
138 | 144 |
%bcond_with http_async_client |
139 | 145 |
%bcond_with ims |
... | ... |
@@ -159,6 +165,7 @@ |
159 | 165 |
%define dist_version %{?rhel} |
160 | 166 |
%bcond_without cnxcc |
161 | 167 |
%bcond_with dnssec |
168 |
+%bcond_without evapi |
|
162 | 169 |
%bcond_without geoip |
163 | 170 |
%bcond_without http_async_client |
164 | 171 |
%bcond_without ims |
... | ... |
@@ -184,6 +191,7 @@ |
184 | 191 |
%define dist_version %{?rhel} |
185 | 192 |
%bcond_without cnxcc |
186 | 193 |
%bcond_with dnssec |
194 |
+%bcond_without evapi |
|
187 | 195 |
%bcond_with geoip |
188 | 196 |
%bcond_without http_async_client |
189 | 197 |
%bcond_without ims |
... | ... |
@@ -444,6 +452,21 @@ DNSSEC support for Kamailio. |
444 | 452 |
%endif |
445 | 453 |
|
446 | 454 |
|
455 |
+%if %{with evapi} |
|
456 |
+%package evapi |
|
457 |
+Summary: Module can be used to create an event message flow from Kamailio to any application that can connect to a TCP socket |
|
458 |
+Group: %{PKGGROUP} |
|
459 |
+Requires: libev, kamailio = %ver |
|
460 |
+BuildRequires: libev-devel |
|
461 |
+ |
|
462 |
+%description evapi |
|
463 |
+The remote application can also issue messages received by Kamailio. |
|
464 |
+There is no protocol definition, it is all up to the author of the routing script. |
|
465 |
+Events can be generated for any event in Kamailio. For 3rd party transaction control, a transaction can be automatically |
|
466 |
+suspended when sending the event, to be resumed at a later point, maybe triggered by an incoming message on the event socket. |
|
467 |
+%endif |
|
468 |
+ |
|
469 |
+ |
|
447 | 470 |
%if %{with geoip} |
448 | 471 |
%package geoip |
449 | 472 |
Summary: MaxMind GeoIP support for Kamailio |
... | ... |
@@ -1112,6 +1135,9 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \ |
1112 | 1135 |
%if %{with dnssec} |
1113 | 1136 |
kdnssec \ |
1114 | 1137 |
%endif |
1138 |
+%if %{with evapi} |
|
1139 |
+ kev \ |
|
1140 |
+%endif |
|
1115 | 1141 |
%if %{with geoip} |
1116 | 1142 |
kgeoip \ |
1117 | 1143 |
%endif |
... | ... |
@@ -1196,6 +1222,9 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \ |
1196 | 1222 |
%if %{with dnssec} |
1197 | 1223 |
kdnssec \ |
1198 | 1224 |
%endif |
1225 |
+%if %{with evapi} |
|
1226 |
+ kev \ |
|
1227 |
+%endif |
|
1199 | 1228 |
%if %{with geoip} |
1200 | 1229 |
kgeoip \ |
1201 | 1230 |
%endif |
... | ... |
@@ -1733,6 +1762,14 @@ fi |
1733 | 1762 |
%endif |
1734 | 1763 |
|
1735 | 1764 |
|
1765 |
+%if %{with evapi} |
|
1766 |
+%files evapi |
|
1767 |
+%defattr(-,root,root) |
|
1768 |
+%doc %{_docdir}/kamailio/modules/README.evapi |
|
1769 |
+%{_libdir}/kamailio/modules/evapi.so |
|
1770 |
+%endif |
|
1771 |
+ |
|
1772 |
+ |
|
1736 | 1773 |
%if %{with geoip} |
1737 | 1774 |
%files geoip |
1738 | 1775 |
%defattr(-,root,root) |