/
opensips.spec
1745 lines (1471 loc) · 57.2 KB
/
opensips.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%if 0%{?rhel}
# copied from lm_sensors exclusive arch
%ifnarch alpha i386 i486 i586 i686 pentium3 pentium4 athlon x86_64
%global _without_snmpstats 1
%endif
%endif
%if 0%{?el5:1}
%global _without_db_perlvdb 1
%endif
%if 0%{?rhel} > 6 || 0%{?fedora} > 20
%global _with_cachedb_redis 1
%endif
%if 0%{?rhel} > 6 || 0%{?fedora} > 21
%global _with_cachedb_mongodb 1
%endif
%if 0%{?fedora} > 23
%global _without_aaa_radius 1
%endif
%global EXCLUDE_MODULES %{!?_with_cachedb_cassandra:cachedb_cassandra} %{!?_with_cachedb_couchbase:cachedb_couchbase} %{!?_with_cachedb_mongodb:cachedb_mongodb} %{!?_with_cachedb_redis:cachedb_redis} %{!?_with_db_oracle:db_oracle} %{!?_with_osp:osp} %{!?_with_sngtc:sngtc} %{?_without_aaa_radius:aaa_radius} %{?_without_db_perlvdb:db_perlvdb} %{?_without_snmpstats:snmpstats}
Summary: Very fast and configurable SIP server
Name: opensips
Version: 3.1.0
Release: 1%{?dist}
License: GPLv2+
Group: System Environment/Daemons
Source0: http://download.opensips.org/%{name}-%{version}.tar.gz
URL: http://opensips.org
BuildRequires: expat-devel
BuildRequires: libxml2-devel
BuildRequires: bison
BuildRequires: flex
BuildRequires: subversion
BuildRequires: which
BuildRequires: mysql-devel
BuildRequires: postgresql-devel
Requires: m4
BuildRequires: net-snmp-devel
BuildRequires: unixODBC-devel
BuildRequires: openssl-devel
BuildRequires: expat-devel
BuildRequires: xmlrpc-c-devel
BuildRequires: libconfuse-devel
%if 0%{?rhel}
BuildRequires: db4-devel
%else
BuildRequires: libdb-devel
%endif
BuildRequires: openldap-devel
BuildRequires: curl-devel
# BuildRequires: GeoIP-devel
BuildRequires: libmaxminddb-devel
BuildRequires: pcre-devel
BuildRequires: python-devel
%if 0%{?fedora} > 16 || 0%{?rhel} > 6
BuildRequires: systemd-units
%endif
BuildRequires: libxslt
BuildRequires: lynx
BuildRequires: ncurses-devel
BuildRequires: json-c-devel
#Initscripts
%if 0%{?fedora} > 16 || 0%{?rhel} > 6
# Users and groups
Requires(pre): shadow-utils
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
Requires(post): chkconfig
Requires(preun):chkconfig
Requires(preun):initscripts
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
C Shell-like scripting language provides full control over the server's
behaviour. Its modular architecture allows only required functionality to be
loaded.
.
Among others, the following modules are available: Digest Authentication, CPL
scripts, Instant Messaging, MySQL support, Presence Agent, Radius
Authentication, Record Routing, SMS Gateway, Jabber/XMPP Gateway, Transaction
Module, Registrar and User Location, Load Balaning/Dispatching/LCR,
XMLRPC Interface.
.
This package contains the main OpenSIPS binary along with the principal modules
and support binaries including opensipsmc configuration tool.
%package b2bua-module
Summary: B2B User Agent modules for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description b2bua-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides modules for B2BUA support in OpenSIPS. Both the
implementation and control (XML based scenario description) are included.
%package berkeley-bin
Summary: Berkeley Database module for OpenSIPS - helper program
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description berkeley-bin
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the berkeley database module for OpenSIPS, a
high-performance embedded DB kernel. You should normally install
opensips-berkeley-module and not this package directly.
%package berkeley-module
Summary: Berkeley Database module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description berkeley-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the berkeley database module for OpenSIPS, a
high-performance embedded DB kernel. All database tables are stored
in files, no additional server is necessary
%package carrierroute-module
Summary: Carrierroute module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description carrierroute-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the carrierroute module for OpenSIPS, an integrated
solution for routing, balancing and blacklisting.
%if 0%{?_with_cachedb_cassandra:1}
%package cassandra-module
Summary: Interface module to interact with a Cassandra server
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
BuildRequires: thrift-cpp-devel
%description cassandra-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
Cassandra module is an implementation of a cache system designed to
work with a cassandra server.
%endif
%package cgrates-module
Summary: CGRateS connector for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description cgrates-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides a connnector to the CGRateS rating/billing engine.
%package compression-module
Summary: Headers and body compression module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
BuildRequires: zlib-devel
%description compression-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the compression module, that is able to compress
SIP headers and body, as well as shrink the size of a SIP package.
%if 0%{?_with_cachedb_couchbase:1}
%package couchbase-module
Summary: Interface module to interact with a Couchbase server
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
BuildRequires: libcouchbase-devel
%description couchbase-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This module is an implementation of a cache system designed to work with a Couchbase server.
It uses the libcouchbase client library to connect to the server instance,
It uses the Key-Value interface exported from the core.
%endif
%package cpl-module
Summary: CPL module (CPL interpreter engine) for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description cpl-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides a CPL (Call Processing Language) interpreter for
OpenSIPS, turning OpenSIPS into a CPL server (storage and interpreter).
%package dbhttp-module
Summary: HTTP database connectivity module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description dbhttp-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the HTTP-based database driver for OpenSIPS
%package dialplan-module
Summary: Generic string translation module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description dialplan-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides dialplan module that implements generic string
translations based on matching and replacement rules. It can be used to
manipulate R-URI or a PV and to translated to a new format/value.
%package emergency-module
Summary: Emerrgency call module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description emergency-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
The emergency module provides emergency call treatment for OpenSIPS, following
the architecture i2 specification of the American entity NENA. (National
Emergency Number Association).
%package geoip-module
Summary: IP address-to-location looku (MaxMind GeoIP API) for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description geoip-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This module is a lightweight wrapper for the MaxMind GeoIP API.
It adds IP address-to-location lookup capability to OpenSIPS
scripts. Lookups are executed against the freely-available GeoLite City
database; and the non-free GeoIP City database is drop-in
compatible Lookups are executed against the freely-available GeoLite City
database; and the non-free GeoIP City database is drop-in compatible
%package http-modules
Summary: HTTP transport layer and Management Interface for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
BuildRequires: libmicrohttpd-devel
%description http-modules
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides an HTTP transport layer and Management Interface for
OpenSIPS.
%package identity-module
Summary: SIP Identity module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description identity-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides support for SIP Identity (see RFC 4474).
%package jabber-module
Summary: Jabber gateway module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description jabber-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the SIP to Jabber translator module for OpenSIPS.
%package json-module
Summary: Support for JSON handling in OpenSIPS script
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description json-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package introduces a new type of variable that provides both
serialization and de-serialization from JSON format. The script variable
provides ways to access (from script) objects and arrays to add,replace or
delete values from the script.
%package ldap-modules
Summary: LDAP modules for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description ldap-modules
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the ldap and h350 modules for OpenSIPS, enabling LDAP
queries from the OpenSIPS config and storage of SIP account data in an LDAP
directory.
%package lua-module
Summary: Lua extensions for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%if 0%{?fedora} > 0
BuildRequires: compat-lua-devel
%else
BuildRequires: lua-devel
%endif
%description lua-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides an interface for OpenSIPS to utilize Lua extensions.
%package memcached-module
Summary: Interface module to interact with a memcached server
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
BuildRequires: libmemcached-devel
%description memcached-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides an implementation of a cache system designed to work
with a memcached server. It uses libmemcached client library to connect to
several memcached servers that store data. It registers the three functions for
storing, fetching and removing a value to the core memcache management
interface.
%if 0%{?_with_cachedb_mongodb:1}
%package mongodb-module
Summary: Interface module to interact with a MongoDB server
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
BuildRequires: mongo-c-driver-devel
BuildRequires: cyrus-sasl-devel
%description mongodb-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This module is an implementation of a cache system designed to work with
MongoDB servers.
%endif
%package mysql-module
Summary: MySQL database connectivity module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
Requires: mysql-libs
%description mysql-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the MySQL database driver for OpenSIPS.
%if 0%{?_with_db_oracle:1}
%package oracle-module
Summary: Oracle Storage Support for the OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
BuildRequires: oracle-instantclient-devel
%description oracle-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
The %{name}-db_oracle package contains the Oracle plugin for %{name}, which allows
a Oracle-Database to be used for persistent storage.
%endif
%if 0%{?_with_osp:1}
%package osp-module
Summary: OSP Support for the OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
BuildRequires: OSPToolkit-devel
%description osp-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
The OSP module enables OpenSIPS to support secure, multi-lateral peering using
the OSP standard defined by ETSI (TS 101 321 V4.1.1).
%endif
%package perl-modules
Summary: Perl extensions and database driver for OpenSIPS
Group: System Environment/Daemons
# require perl-devel for >F7 and perl for <=F6
BuildRequires: perl(ExtUtils::MakeMaker)
%if 0%{?rhel}
BuildRequires: perl(ExtUtils::Embed)
%else
%if 0%{?rhel} == 5
BuildRequires: perl(ExtUtils::Embed), perl-devel
%else
BuildRequires: perl(ExtUtils::Embed)
%endif
%endif
Requires: %{name} = %{version}-%{release}
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description perl-modules
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides an interface for OpenSIPS to write Perl extensions and
the db_perlvdb database driver for OpenSIPS.
%package postgres-module
Summary: PostgreSQL database connectivity module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
Requires: postgresql-libs
%description postgres-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the PostgreSQL database driver for OpenSIPS.
%package presence-modules
Summary: SIMPLE presence modules for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description presence-modules
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides several OpenSIPS modules for implementing presence
server and presence user agent for RICH presence, registrar-based presence,
external triggered presence and XCAP support.
%package python-module
Summary: Python scripting support
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description python-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This module provides a Python interface to implement your scripting logic.
%package rabbitmq-modules
Summary: Interface module to interact with a RabbitMQ server
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
BuildRequires: librabbitmq-devel
%description rabbitmq-modules
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the implementation of a RabbitMQ client for the Event
Interface. It is used to send AMQP messages to a RabbitMQ server each time
the Event Interface triggers an event subscribed for. It also provides a
module to publish RabbitMQ messages to a RabbitMQ server.
%package radius-modules
Summary: Radius modules for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%if 0%{!?_without_aaa_radius:1}
BuildRequires: radiusclient-ng-devel
%endif
%description radius-modules
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the RADIUS driver for the AAA API from OpenSIPS.
%if 0%{?_with_cachedb_redis:1}
%package redis-module
Summary: Interface module to interact with a Redis server
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
BuildRequires: hiredis-devel
%description redis-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides an implementation of a cache system designed to
work with a Redis server. It uses hiredis client library to connect
to either a single Redis server instance, or to a Redis Server inside
a Redis Cluster. It uses the Key-Value interface exported from the core.
%endif
%package regex-module
Summary: PCRE regexp modules for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description regex-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides a module for matching operations against regular
expressions using the powerful PCRE library. By default, OpenSIPS support
sed-like regular expressions; PCRE library brings perl-like regular
expressions.
%package restclient-module
Summary: REST client module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description restclient-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the REST client support for OpenSIPS.
%package sctp-module
Summary: SCTP transport module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
Requires: lksctp-tools
BuildRequires: lksctp-tools-devel
%description sctp-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the SCTP support for OpenSIPS.
%package siprec-module
Summary: SIP Call Recording Implementation for the SIPREC Protocol
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
BuildRequires: libuuid-devel
%description siprec-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This module provides the means to Record Calls using the SIPREC protocol.
%if 0%{?_with_sngtc:1}
%package sngtc-module
Summary: Sangoma media transcoding interface for the OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description sngtc-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
The sngtc package implements interface to Sangoma media transcoding.
%endif
%if 0%{!?_without_snmpstats:1}
%package snmpstats-module
Summary: SNMP AgentX subagent module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: lm_sensors-devel
%description snmpstats-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the snmpstats module for OpenSIPS. This module acts
as an AgentX subagent which connects to a master agent.
%endif
%package sqlite-module
Summary: SQLite database connectivity module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
BuildRequires: sqlite-devel
%description sqlite-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the SQLite database driver for OpenSIPS.
%package tls-module
Summary: TLS transport module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
Requires: %{name}-tlsmgm-module
Requires: openssl
BuildRequires: openssl-devel
%description tls-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the TLS support for OpenSIPS.
%package tlsmgm-module
Summary: TLS management module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description tlsmgm-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides support for TLS management for OpenSIPS.
%package unixodbc-module
Summary: unixODBC database connectivity module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description unixodbc-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the unixODBC database driver for OpenSIPS.
%package uuid-module
Summary: UUID (Universally Unique Identifier) generator
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description uuid-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the a UUID generated for OpenSIPS script.
%package wss-module
Summary: WebSocket Secure (WSS) transport module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
Requires: %{name}-tlsmgm-module
%description wss-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the WebSocket Secure (WSS) support for OpenSIPS.
%package xml-module
Summary: Support for XML documents handling in OpenSIPS script
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description xml-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package introduces a new type of variable that provides both
serialization and de-serialization from a XML document. The script variable
provides ways to access (from script) objects and arrays to add, replace or
delete values from the script.
%package xmlrpc-module
Summary: XMLRPC support for OpenSIPS's Management Interface
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
Requires: %{name}-http-modules
%description xmlrpc-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the XMLRPC transport implementation for OpenSIPS's
Management Interface.
%package xmpp-module
Summary: XMPP gateway module for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description xmpp-module
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the SIP to XMPP IM translator module for OpenSIPS.
%prep
%setup -q -n %{name}-%{version}
%build
LOCALBASE=/usr NICER=0 CFLAGS="%{optflags}" %{?_with_db_oracle:ORAHOME="$ORACLE_HOME"} %{__make} all %{?_smp_mflags} TLS=1 \
exclude_modules="%EXCLUDE_MODULES" \
cfg_target=%{_sysconfdir}/opensips/ \
modules_prefix=%{buildroot}%{_prefix} \
modules_dir=%{_lib}/%{name}/modules
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install TLS=1 LIBDIR=%{_lib} \
exclude_modules="%EXCLUDE_MODULES" \
basedir=%{buildroot} prefix=%{_prefix} \
cfg_prefix=%{buildroot} \
modules_prefix=%{buildroot}/%{_prefix} \
modules_dir=%{_lib}/%{name}/modules \
DBTEXTON=yes # fixed dbtext documentation installation
# clean some things
%if 0%{?el5}
rm -rf $RPM_BUILD_ROOT/%{_libdir}/opensips/perl/OpenSIPS/VDB*
%endif
mkdir -p $RPM_BUILD_ROOT/%{perl_vendorlib}
if [ -d "$RPM_BUILD_ROOT/%{_prefix}/perl" ]; then
# for fedora>=11
mv $RPM_BUILD_ROOT/%{_prefix}/perl/* \
$RPM_BUILD_ROOT/%{perl_vendorlib}/
else
# for fedora<=10
mv $RPM_BUILD_ROOT/%{_libdir}/opensips/perl/* \
$RPM_BUILD_ROOT/%{perl_vendorlib}/
fi
mv $RPM_BUILD_ROOT/%{_sysconfdir}/opensips/tls/README \
$RPM_BUILD_ROOT/%{_docdir}/opensips/README.tls
rm -f $RPM_BUILD_ROOT%{_docdir}/opensips/INSTALL
mv $RPM_BUILD_ROOT/%{_docdir}/opensips docdir
# recode documentation
for i in docdir/*; do
mv -f $i $i.old
iconv -f iso8859-1 -t UTF-8 $i.old > $i
rm -f $i.old
done
%if 0%{?fedora} > 16 || 0%{?rhel} > 6
# install systemd files
install -D -m 0644 -p packaging/redhat_fedora/%{name}.service $RPM_BUILD_ROOT%{_unitdir}/%{name}.service
install -D -m 0644 -p packaging/redhat_fedora/%{name}.tmpfiles.conf $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/%{name}.conf
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/%{name}
%else
install -p -D -m 755 packaging/redhat_fedora/opensips.init $RPM_BUILD_ROOT%{_initrddir}/opensips
%endif
#install sysconfig file
install -D -p -m 644 packaging/redhat_fedora/%{name}.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%pre
getent group %{name} >/dev/null || groupadd -r %{name}
getent passwd %{name} >/dev/null || \
useradd -r -g %{name} -d %{_localstatedir}/run/%{name} -s /sbin/nologin \
-c "OpenSIPS SIP Server" %{name} 2>/dev/null || :
%post
%if 0%{?fedora} > 16 || 0%{?rhel} > 6
if [ $1 -eq 1 ] ; then
# Initial installation
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
%else
/sbin/chkconfig --add %{name}
%endif
%preun
%if 0%{?fedora} > 16 || 0%{?rhel} > 6
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
/bin/systemctl --no-reload disable %{name}.service > /dev/null 2>&1 || :
/bin/systemctl stop %{name}.service > /dev/null 2>&1 || :
fi
%else
if [ $1 = 0 ]; then
/sbin/service %{name} stop > /dev/null 2>&1
/sbin/chkconfig --del %{name}
fi
%endif
%files
%{_sbindir}/opensips
%{_sbindir}/osipsconfig
%attr(750,%{name},%{name}) %dir %{_sysconfdir}/opensips
%attr(750,%{name},%{name}) %dir %{_sysconfdir}/opensips/tls
%attr(750,%{name},%{name}) %dir %{_sysconfdir}/opensips/tls/rootCA
%attr(750,%{name},%{name}) %dir %{_sysconfdir}/opensips/tls/rootCA/certs
%attr(750,%{name},%{name}) %dir %{_sysconfdir}/opensips/tls/rootCA/private
%attr(750,%{name},%{name}) %dir %{_sysconfdir}/opensips/tls/user
%dir %{_libdir}/opensips/
%dir %{_libdir}/opensips/modules/
%if 0%{?fedora} > 16 || 0%{?rhel} > 6
%{_unitdir}/%{name}.service
%{_sysconfdir}/tmpfiles.d/%{name}.conf
%dir %attr(0755, %{name}, %{name}) %{_localstatedir}/run/%{name}
%else
%attr(755,root,root) %{_initrddir}/opensips
%endif
%if 0%{!?_without_aaa_radius:1}
%config(noreplace) %{_sysconfdir}/opensips/dictionary.opensips
%endif
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(640,%{name},%{name}) %config(noreplace) %{_sysconfdir}/opensips/opensips.cfg
# these files are just an examples so no need to restrict access to them
%config(noreplace) %{_sysconfdir}/opensips/tls/ca.conf
%config(noreplace) %{_sysconfdir}/opensips/tls/request.conf
%config(noreplace) %{_sysconfdir}/opensips/tls/rootCA/cacert.pem
%config(noreplace) %{_sysconfdir}/opensips/tls/rootCA/certs/01.pem
%config(noreplace) %{_sysconfdir}/opensips/tls/rootCA/index.txt
%config(noreplace) %{_sysconfdir}/opensips/tls/rootCA/private/cakey.pem
%config(noreplace) %{_sysconfdir}/opensips/tls/rootCA/serial
%config(noreplace) %{_sysconfdir}/opensips/tls/user.conf
%config(noreplace) %{_sysconfdir}/opensips/tls/user/user-calist.pem
%config(noreplace) %{_sysconfdir}/opensips/tls/user/user-cert.pem
%config(noreplace) %{_sysconfdir}/opensips/tls/user/user-cert_req.pem
%config(noreplace) %{_sysconfdir}/opensips/tls/user/user-privkey.pem
%dir %{_datadir}/opensips/
%dir %{_datadir}/opensips/dbtext/
%dir %{_datadir}/opensips/dbtext/opensips/
%dir %{_datadir}/opensips/menuconfig_templates/
%{_datadir}/opensips/dbtext/opensips/*
%{_datadir}/opensips/menuconfig_templates/*.m4
%{_mandir}/man5/opensips.cfg.5*
%{_mandir}/man8/opensips.8*
%doc docdir/AUTHORS
%doc docdir/NEWS
%doc docdir/README
%doc docdir/README-MODULES
%doc COPYING
%{_libdir}/opensips/modules/acc.so
%{_libdir}/opensips/modules/alias_db.so
%{_libdir}/opensips/modules/auth.so
%{_libdir}/opensips/modules/auth_aaa.so
%{_libdir}/opensips/modules/auth_db.so
%{_libdir}/opensips/modules/avpops.so
%{_libdir}/opensips/modules/benchmark.so
%{_libdir}/opensips/modules/cachedb_local.so
%{_libdir}/opensips/modules/cachedb_sql.so
%{_libdir}/opensips/modules/call_control.so
%{_libdir}/opensips/modules/cfgutils.so
%{_libdir}/opensips/modules/clusterer.so
%{_libdir}/opensips/modules/db_cachedb.so
%{_libdir}/opensips/modules/db_flatstore.so
%{_libdir}/opensips/modules/db_text.so
%{_libdir}/opensips/modules/db_virtual.so
%{_libdir}/opensips/modules/dialog.so
%{_libdir}/opensips/modules/dispatcher.so
%{_libdir}/opensips/modules/diversion.so
%{_libdir}/opensips/modules/dns_cache.so
%{_libdir}/opensips/modules/domain.so
%{_libdir}/opensips/modules/domainpolicy.so
%{_libdir}/opensips/modules/drouting.so
%{_libdir}/opensips/modules/enum.so
%{_libdir}/opensips/modules/event_datagram.so
%{_libdir}/opensips/modules/event_flatstore.so
%{_libdir}/opensips/modules/event_jsonrpc.so
%{_libdir}/opensips/modules/event_route.so
%{_libdir}/opensips/modules/event_routing.so
%{_libdir}/opensips/modules/event_virtual.so
%{_libdir}/opensips/modules/event_xmlrpc.so
%{_libdir}/opensips/modules/exec.so
%{_libdir}/opensips/modules/fraud_detection.so
%{_libdir}/opensips/modules/freeswitch.so
%{_libdir}/opensips/modules/freeswitch_scripting.so
%{_libdir}/opensips/modules/gflags.so
%{_libdir}/opensips/modules/group.so
%{_libdir}/opensips/modules/imc.so
%{_libdir}/opensips/modules/jsonrpc.so
%{_libdir}/opensips/modules/load_balancer.so
%{_libdir}/opensips/modules/mangler.so
%{_libdir}/opensips/modules/mathops.so
%{_libdir}/opensips/modules/maxfwd.so
%{_libdir}/opensips/modules/mediaproxy.so
%{_libdir}/opensips/modules/mi_datagram.so
%{_libdir}/opensips/modules/mi_fifo.so
%{_libdir}/opensips/modules/mid_registrar.so
%{_libdir}/opensips/modules/msilo.so
%{_libdir}/opensips/modules/nat_traversal.so
%{_libdir}/opensips/modules/nathelper.so
%{_libdir}/opensips/modules/options.so
%{_libdir}/opensips/modules/path.so
%{_libdir}/opensips/modules/permissions.so
%{_libdir}/opensips/modules/pike.so
%{_libdir}/opensips/modules/proto_bin.so
%{_libdir}/opensips/modules/proto_hep.so
%{_libdir}/opensips/modules/proto_smpp.so
%{_libdir}/opensips/modules/proto_ws.so
%{_libdir}/opensips/modules/qos.so
%{_libdir}/opensips/modules/ratelimit.so
%{_libdir}/opensips/modules/registrar.so
%{_libdir}/opensips/modules/rr.so
%{_libdir}/opensips/modules/rtpengine.so
%{_libdir}/opensips/modules/rtpproxy.so
%{_libdir}/opensips/modules/script_helper.so
%{_libdir}/opensips/modules/signaling.so
%{_libdir}/opensips/modules/sip_i.so
%{_libdir}/opensips/modules/sipcapture.so
%{_libdir}/opensips/modules/sipmsgops.so
%{_libdir}/opensips/modules/tracer.so
%{_libdir}/opensips/modules/sl.so
%{_libdir}/opensips/modules/speeddial.so
%{_libdir}/opensips/modules/sql_cacher.so
%{_libdir}/opensips/modules/sst.so
%{_libdir}/opensips/modules/statistics.so
%{_libdir}/opensips/modules/stun.so
%{_libdir}/opensips/modules/textops.so
%{_libdir}/opensips/modules/tm.so
%{_libdir}/opensips/modules/topology_hiding.so
%{_libdir}/opensips/modules/uac.so
%{_libdir}/opensips/modules/uac_auth.so
%{_libdir}/opensips/modules/uac_redirect.so
%{_libdir}/opensips/modules/uac_registrant.so
%{_libdir}/opensips/modules/userblacklist.so
%{_libdir}/opensips/modules/usrloc.so
%doc docdir/README.acc