Skip to content

Commit abe2faa

Browse files
Merge branch 'OpenSIPS:master' into master
2 parents f0dfc24 + dfd616b commit abe2faa

File tree

97 files changed

+5013
-684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+5013
-684
lines changed

.github/workflows/rtp.io.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
workflow_dispatch:
1313

1414
env:
15-
LLVM_VER: 18
15+
LLVM_VER: 19
1616
LLVM_VER_OLD: 16
1717
GHCR_REPO: ghcr.io/${{ github.repository_owner }}/opensips
1818

.lgtm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extraction:
2222
- libldap2-dev
2323
- libcurl4-gnutls-dev
2424
- libgeoip-dev
25-
- libpcre3-dev
25+
- libpcre2-dev
2626
- libmemcached-dev
2727
- libmicrohttpd-dev
2828
- librabbitmq-dev

Makefile.conf.template

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#aaa_diameter= Diameter implementation for the core AAA API | freeDiameter (libfdcore + libfdproto) v1.2.1 or higher
22
#aaa_radius= Radius implementation for the core AAA API | Radius client development library, typically radiusclient-ng 0.5.0 or higher
33
#auth_jwt= JWT auth support | JWT client development library, libjwt-dev
4+
#auth_web3= Web3 auth support | CURL library - libcurl
45
#cachedb_cassandra= Implementation of a cache system designed to work with Cassandra servers | thrift 0.6.1
56
#cachedb_couchbase= Implementation of a cache system designed to work with CouchBase servers | libcouchbase >= 2.0
67
#cachedb_dynamodb= Implementation of a cache system designed to work with Dynamodb servers | libaws-cpp-sdk-core and libaws-cpp-sdk-dynamodb
@@ -19,13 +20,13 @@
1920
#db_postgres= Provides Postgres connectivity for OpenSIPS | PostgreSQL library and development library - typically libpq5 and libpq-dev
2021
#db_sqlite= Provides SQLite connectivity for OpenSIPS | SQLite library and development library - typically libsqlite3 and libsqlite3-dev
2122
#db_unixodbc= Allows to use the unixodbc package with OpenSIPS | ODBC library and ODBC development library
22-
#dialplan= Implements generic string translations based on matching and replacement rules | PCRE development library, typically libpcre-dev
23+
#dialplan= Implements generic string translations based on matching and replacement rules | PCRE development library, typically libpcre2-dev
2324
#emergency= Provides emergency call treatment for OpenSIPS | CURL dev library - typically libcurl4-openssl-dev
2425
#event_rabbitmq= Provides the implementation of a RabbitMQ client for the Event Interface | RabbitMQ development library, librabbitmq-dev
2526
#event_sqs= Provides the implementation of a Amazon SQS client for the Event Interface | AWS SDK C++, aws-sdk-cpp
2627
#event_kafka= Provides the implementation of an Apache Kafka producer for the Event Interface | Kafka development library, librdkafka-dev
2728
#h350= Enables access to SIP account data stored in an LDAP [RFC4510] directory containing H.350 commObjects | OpenLDAP library & development files, typically libldap and libldap-dev
28-
#regex= Offers matching operations against regular expressions using the powerful PCRE library. | Development library for PCRE, typically libpcre-dev
29+
#regex= Offers matching operations against regular expressions using the powerful PCRE library. | Development library for PCRE, typically libpcre2-dev
2930
#identity= Adds support for SIP Identity (see RFC 4474). | SSL library, typically libssl
3031
#jabber= Integrates XODE XML parser for parsing Jabber messages | Expat library.
3132
#json= Introduces a new type of variable that provides both serialization and de-serialization from JSON format. | JSON library, libjson
@@ -74,7 +75,7 @@
7475
#uuid= UUID generator | uuid-dev
7576

7677
# the below definition must be one single line (no wrapping) to make the "menuconfig" tool happy
77-
exclude_modules?= aaa_diameter aaa_radius auth_jwt b2b_logic_xml cachedb_cassandra cachedb_couchbase cachedb_dynamodb cachedb_memcached cachedb_mongodb cachedb_redis carrierroute cgrates compression cpl_c db_berkeley db_http db_mysql db_oracle db_perlvdb db_postgres db_sqlite db_unixodbc dialplan emergency event_rabbitmq event_kafka event_sqs h350 httpd http2d identity jabber json launch_darkly ldap lua mi_xmlrpc_ng mmgeoip osp perl pi_http presence presence_dialoginfo presence_mwi presence_reginfo presence_xml presence_dfks proto_ipsec proto_sctp proto_tls proto_wss pua pua_bla pua_dialoginfo pua_mi pua_reginfo pua_usrloc pua_xmpp python regex rabbitmq_consumer rest_client rls rtp.io siprec sngtc snmpstats stir_shaken tls_mgm tls_openssl tls_wolfssl uuid xcap xcap_client xml xmpp
78+
exclude_modules?= aaa_diameter aaa_radius auth_jwt auth_web3 b2b_logic_xml cachedb_cassandra cachedb_couchbase cachedb_dynamodb cachedb_memcached cachedb_mongodb cachedb_redis carrierroute cgrates compression cpl_c db_berkeley db_http db_mysql db_oracle db_perlvdb db_postgres db_sqlite db_unixodbc dialplan emergency event_rabbitmq event_kafka event_sqs h350 httpd http2d identity jabber json launch_darkly ldap lua mi_xmlrpc_ng mmgeoip osp perl pi_http presence presence_dialoginfo presence_mwi presence_reginfo presence_xml presence_dfks proto_ipsec proto_sctp proto_tls proto_wss pua pua_bla pua_dialoginfo pua_mi pua_reginfo pua_usrloc pua_xmpp python regex rabbitmq_consumer rest_client rls rtp.io siprec sngtc snmpstats stir_shaken tls_mgm tls_openssl tls_wolfssl uuid xcap xcap_client xml xmpp
7879

7980
include_modules?=
8081

db/schema/trie_table.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</column>
4848

4949
<column id="enabled">
50-
<name>priority</name>
50+
<name>enabled</name>
5151
<type>int</type>
5252
<size>11</size>
5353
<default>1</default>

modules/auth/auth_mod.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,10 @@ static inline int auth_get_ha1(struct sip_msg *msg, dig_cred_t* digest,
393393
return 1;
394394
}
395395
} else {
396-
return 1;
396+
if (!user_spec.type)
397+
LM_ERR("before calling pv_xxx_authorize(), you MUST first define"
398+
" the 'username_spec' modparam\n");
399+
return -1;
397400
}
398401
/* get password from PV */
399402
memset(&sval, 0, sizeof(pv_value_t));
@@ -406,7 +409,10 @@ static inline int auth_get_ha1(struct sip_msg *msg, dig_cred_t* digest,
406409
return -1;
407410
}
408411
} else {
409-
return 1;
412+
if (!passwd_spec.type)
413+
LM_ERR("before calling pv_xxx_authorize(), you MUST first define"
414+
" the 'password_spec' modparam\n");
415+
return -1;
410416
}
411417
const struct digest_auth_calc *digest_calc;
412418
digest_calc = get_digest_calc(digest->alg.alg_parsed);

modules/auth_web3/Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Web3 Authentication Module Makefile
2+
3+
include ../../Makefile.defs
4+
auto_gen=
5+
NAME=auth_web3.so
6+
7+
# Include additional source files
8+
EXTRA_SRCS=keccak256.c
9+
10+
DEFS+=-DOPENSIPS_MOD_INTERFACE
11+
12+
LIBS+=-lcurl
13+
14+
include ../../Makefile.modules

0 commit comments

Comments
 (0)