- Add sqlite as an option to Makefile.groups
- Add sqlite to INSTALL documentation
- [X] Commit message has the format required by CONTRIBUTING guide
- [X] Commits are split per component (core, individual modules, libs, utils, ...)
- [X] Each component has a single commit (if not, squash them into one commit)
- [X] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [X] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
db_sqlite couldn't be enable previously using group_include=sqlite. This fixes that.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2952
-- Commit Summary --
* sqlite: module group creation
-- File Changes --
M INSTALL (10)
M src/Makefile.groups (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2952.patchhttps://github.com/kamailio/kamailio/pull/2952.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2952
Module: kamailio
Branch: master
Commit: e976054f71692b536f59a81347e8254886f08a69
URL: https://github.com/kamailio/kamailio/commit/e976054f71692b536f59a81347e8254…
Author: JailBird <jailbird(a)fdf.net>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-03T13:02:06+01:00
sqlite: module group creation
- Add sqlite as an option to Makefile.groups
- Add sqlite to INSTALL documentation
---
Modified: INSTALL
Modified: src/Makefile.groups
---
Diff: https://github.com/kamailio/kamailio/commit/e976054f71692b536f59a81347e8254…
Patch: https://github.com/kamailio/kamailio/commit/e976054f71692b536f59a81347e8254…
---
diff --git a/INSTALL b/INSTALL
index 63c03062f4..7982d1d380 100644
--- a/INSTALL
+++ b/INSTALL
@@ -102,6 +102,7 @@ Requirements:
- python and devel headers for the Python module
- jdk and gcj for Java module
- the jansson library for the jansson module used for JSON document handling
+- libsqlite3 if you need SQLite support (the db_sqlite module)
Some modules have other requirements on third-party libraries. This is documented
in the README for the specific module.
@@ -120,6 +121,7 @@ OS Notes:
- expat-1.95.8 (/usr/ports/textproc/expat2) for libexpat
- libxml2-2.6.18 (/usr/ports/textproc/libxml2) for libxml2
- radiusclient-0.4.7 (/usr/ports/net/radiusclient) for libradiusclient-ng
+ - sqlite3-3.35.5 (/usr/ports/databases/sqlite3) for libsqlite3
NOTE: you'll need to add radiusclient_ng=4 to the gmake command line if you
use the 0.4.* version.
@@ -135,6 +137,7 @@ OS Notes:
http://download.berlios.de/radiusclient-ng/radiusclient-ng-0.5.1.tar.gz
(you need to download and install it, since there is no "official"
openbsd port for it) for libradiusclient-ng
+ - sqlite3-3.35.5 (/usr/ports/databases/sqlite3) for libsqlite3
Compile example (all the modules and SIP server core in a tar.gz):
gmake bin include_modules="mysql jabber cpl-c auth_radius group_radius uri_radius pa"
@@ -145,6 +148,7 @@ OS Notes:
- expat-1.95.8nb2 (/usr/pkgsrc/textproc/expat) for libexpat
- libxml2-2.6.19 (/usr/pkgsrc/textproc/libxml2) for libxml2
- radiusclient-ng-0.5.1 (see OpenBSD)
+ - sqlite3-3.36.0 (/usr/pkgsrc/databases/sqlite3) for libsqlite
Compile example (all the modules and SIP server in a tar.gz):
gmake bin include_modules="mysql jabber cpl-c auth_radius group_radius uri_radius pa"
@@ -172,6 +176,7 @@ OS Notes:
- libexpat1-dev for libexpat
- libxml2-dev for libxml2
- libradiusclient-ng-dev for libradiusclient
+ - libsqlite3-dev for libsqlite
- other libraries are needed for some other modules,
see README of the module you want to use
Kamailio have APT deb repositories that allow you to
@@ -258,8 +263,8 @@ Including groups of modules:
- db - Modules in this group use databases and need a database driver to run.
Included are drivers for the text mode db (dbtext) and for dumping
- large amount of data to files (db_flatstore). See also the mysql or
- postgres groups.
+ large amount of data to files (db_flatstore). See also the mysql,
+ postgres, or sqlite groups.
- standard_dep - Modules in this group are considered a standard part of Kamailio
(due to widespread usage) but they have dependencies that must be satisfied
@@ -290,6 +295,7 @@ are grouped based on Debian packaging rules. For example:
mysql - Include all the db modules dependent and the MySQL db driver
postgres - Include all the db modules and the PostgreSQL db driver
+ sqlite - Include all the db modules and the SQLite db driver
radius - Include all modules on radiusclient
presence - Include all the presence modules
diff --git a/src/Makefile.groups b/src/Makefile.groups
index 62a585cafb..c388489a66 100644
--- a/src/Makefile.groups
+++ b/src/Makefile.groups
@@ -319,6 +319,10 @@ module_group_mysql=$(module_group_mysql_driver) $(module_group_db)
module_group_postgres_driver=$(mod_list_postgres)
module_group_postgres=$(module_group_postgres_driver) $(module_group_db)
+# For sqlite
+module_group_sqlite_driver=$(mod_list_sqlite)
+module_group_sqlite=$(module_group_sqlite_driver) $(module_group_db)
+
# For radius
module_group_radius=$(mod_list_radius)
### Description
If two kamailio servers share the same dialog db table, on restart, they both load all dialogues info stored in db into memory and
dlg.stats_alive returns the same amount of alive dialogues on both serves.
### Expected behavior
I would expect that dlg.stats_alive would return just the dialogues info that belongs to the server ( socket_info is not empty )
### Possible Solutions
Introduce an optional parameter to the RPC command to filter just the dialogues that belongs to the server
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2920
We use Kamailio 5.5.0 and topos/topos_redis as well as the uac module to register with sipconnect 1.1 based trunks. When we want to originate a call via such a trunk, we encounter the following problem with ACK routing.
200 OK sent by Trunk
`U 217.10.68.150:5060 -> 172.31.16.103:5060 #7583
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 3.67.244.157:5060;branch=z9hG4bK496f.744a3c48b24be1ba5fdda68cf5fe3878.1.
Record-Route: <sip:172.20.40.8;lr>.
Record-Route: <sip:217.10.68.150;lr>.
Call-ID: 7cd83e052202a97f4e28728276e0c758@35.157.121.101:5060.
From: "01705441258" <sip:2908206t0@sipconnect.sipgate.de>;tag=as010d26b4.
To: <sip:+493046996025@voip.sandbox.aaron.ai>;tag=221f5413-4c48-4f53-97e8-d96ea6413f26.
CSeq: 102 INVITE.
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, MESSAGE, REFER.
Contact: <sip:217.10.77.61:5060>.
Supported: replaces.
Content-Type: application/sdp.
Content-Length: 242.
..
v=0.
o=- 56188352 56188354 IN IP4 212.9.44.180.
s=sGW.
c=IN IP4 212.9.44.180.
t=0 0.
m=audio 27558 RTP/AVP 8 101.
a=maxptime:150.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=sendrecv.
a=rtcp:27559.
a=ptime:20.
`
ACK sent by Kamailio
`ACK sip:217.10.68.150:5060 SIP/2.0.
Via: SIP/2.0/UDP 3.67.244.157:5060;branch=z9hG4bK496f.af6a45e3907d2bea8ea65cc42f223fb2.0.
Max-Forwards: 69.
From: "01705441258" <sip:01705441258@35.157.121.101>;tag=as010d26b4.
To: <sip:+493046996025@voip.sandbox.aaron.ai:5060>;tag=221f5413-4c48-4f53-97e8-d96ea6413f26.
Call-ID: 7cd83e052202a97f4e28728276e0c758@35.157.121.101:5060.
CSeq: 102 ACK.
User-Agent: Asterisk PBX 13.38.1.
Content-Length: 0.
Route: <sip:217.10.68.150;lr>.
Route: <sip:172.20.40.8;lr>.
Contact: <sip:btpsh-61a6122b-a-1@3.67.244.157>.
..
`
The ACK is not accepted by the trunk, because the R-URI does not contain the address fromt the 200 OK/Contact. 200 OK is then retransmitted by the trunk.
[kamailio-uac-topos-bug-report.zip](https://github.com/kamailio/kamailio/fil…
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2961