```
make[2]: --libs: No such file or directory
CC (gcc) [M db_mongodb.so] db_mongodb_mod.o
CC (gcc) [M db_mongodb.so] mongodb_connection.o
CC (gcc) [M db_mongodb.so] mongodb_dbase.o
mongodb_dbase.c: In function ‘db_mongodb_convert_result’:
mongodb_dbase.c:776:25: warning: ‘bson_as_json’ is deprecated: Use bson_as_legacy_extended_json instead [-Wdeprecated-declarations]
776 | jstr = bson_as_json(itdoc, NULL);
| ^~~~
In file included from /usr/include/libmongoc-1.0/mongoc/mongoc.h:22,
from /usr/include/libmongoc-1.0/mongoc.h:18,
from mongodb_connection.h:26,
from mongodb_dbase.c:27:
/usr/include/libbson-1.0/bson/bson.h:535:1: note: declared here
535 | bson_as_json (const bson_t *bson, size_t *length) BSON_GNUC_DEPRECATED_FOR (bson_as_legacy_extended_json);
| ^~~~~~~~~~~~
mongodb_dbase.c: In function ‘db_mongodb_query’:
mongodb_dbase.c:1003:17: warning: ‘bson_as_json’ is deprecated: Use bson_as_legacy_extended_json instead [-Wdeprecated-declarations]
1003 | jstr = bson_as_json(seldoc, NULL);
| ^~~~
/usr/include/libbson-1.0/bson/bson.h:535:1: note: declared here
535 | bson_as_json (const bson_t *bson, size_t *length) BSON_GNUC_DEPRECATED_FOR (bson_as_legacy_extended_json);
| ^~~~~~~~~~~~
mongodb_dbase.c:1039:25: warning: ‘bson_as_json’ is deprecated: Use bson_as_legacy_extended_json instead [-Wdeprecated-declarations]
1039 | jstr = bson_as_json(mgcon->colsdoc, NULL);
| ^~~~
/usr/include/libbson-1.0/bson/bson.h:535:1: note: declared here
535 | bson_as_json (const bson_t *bson, size_t *length) BSON_GNUC_DEPRECATED_FOR (bson_as_legacy_extended_json);
| ^~~~~~~~~~~~
mongodb_dbase.c: In function ‘db_mongodb_insert’:
mongodb_dbase.c:1177:17: warning: ‘bson_as_json’ is deprecated: Use bson_as_legacy_extended_json instead [-Wdeprecated-declarations]
1177 | jstr = bson_as_json(doc, NULL);
| ^~~~
/usr/include/libbson-1.0/bson/bson.h:535:1: note: declared here
535 | bson_as_json (const bson_t *bson, size_t *length) BSON_GNUC_DEPRECATED_FOR (bson_as_legacy_extended_json);
| ^~~~~~~~~~~~
mongodb_dbase.c: In function ‘db_mongodb_delete’:
mongodb_dbase.c:1271:17: warning: ‘bson_as_json’ is deprecated: Use bson_as_legacy_extended_json instead [-Wdeprecated-declarations]
1271 | jstr = bson_as_json(doc, NULL);
| ^~~~
/usr/include/libbson-1.0/bson/bson.h:535:1: note: declared here
535 | bson_as_json (const bson_t *bson, size_t *length) BSON_GNUC_DEPRECATED_FOR (bson_as_legacy_extended_json);
| ^~~~~~~~~~~~
make[3]: Entering directory '/root/rpmbuild/BUILD/kamailio-6.0.0-dev3/src/lib/srdb1'
make[3]: 'libsrdb1.so.1.0' is up to date.
make[3]: Leaving directory '/root/rpmbuild/BUILD/kamailio-6.0.0-dev3/src/lib/srdb1'
LD (gcc) [M db_mongodb.so] db_mongodb.so
make[2]: --libs: No such file or directory
make[2]: --libs: No such file or directory
CC (gcc) [M ndb_mongodb.so] mongodb_client.o
mongodb_client.c: In function ‘mongodbc_exec_cmd’:
mongodb_client.c:266:17: warning: ‘bson_as_json’ is deprecated: Use bson_as_legacy_extended_json instead [-Wdeprecated-declarations]
266 | rpl->jsonrpl.s = bson_as_json(&reply, NULL);
| ^~~
In file included from /usr/include/libmongoc-1.0/mongoc/mongoc.h:22,
from /usr/include/libmongoc-1.0/mongoc.h:18,
from mongodb_client.h:25,
from mongodb_client.c:34:
/usr/include/libbson-1.0/bson/bson.h:535:1: note: declared here
535 | bson_as_json (const bson_t *bson, size_t *length) BSON_GNUC_DEPRECATED_FOR (bson_as_legacy_extended_json);
| ^~~~~~~~~~~~
mongodb_client.c:271:25: warning: ‘mongoc_collection_command’ is deprecated: Use mongoc_collection_command_simple instead [-Wdeprecated-declarations]
271 | rpl->cursor = mongoc_collection_command(rpl->collection,
| ^~~
In file included from /usr/include/libmongoc-1.0/mongoc/mongoc-client.h:26,
from /usr/include/libmongoc-1.0/mongoc/mongoc-bulkwrite.h:22,
from /usr/include/libmongoc-1.0/mongoc/mongoc.h:28:
/usr/include/libmongoc-1.0/mongoc/mongoc-collection.h:51:1: note: declared here
51 | mongoc_collection_command (mongoc_collection_t *collection,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mongodb_client.c:306:17: warning: ‘bson_as_json’ is deprecated: Use bson_as_legacy_extended_json instead [-Wdeprecated-declarations]
306 | rpl->jsonrpl.s = bson_as_json(cdoc, NULL);
| ^~~
/usr/include/libbson-1.0/bson/bson.h:535:1: note: declared here
535 | bson_as_json (const bson_t *bson, size_t *length) BSON_GNUC_DEPRECATED_FOR (bson_as_legacy_extended_json);
| ^~~~~~~~~~~~
mongodb_client.c: In function ‘mongodbc_next_reply’:
mongodb_client.c:482:9: warning: ‘bson_as_json’ is deprecated: Use bson_as_legacy_extended_json instead [-Wdeprecated-declarations]
482 | rpl->jsonrpl.s = bson_as_json(cdoc, NULL);
| ^~~
/usr/include/libbson-1.0/bson/bson.h:535:1: note: declared here
535 | bson_as_json (const bson_t *bson, size_t *length) BSON_GNUC_DEPRECATED_FOR (bson_as_legacy_extended_json);
| ^~~~~~~~~~~~
CC (gcc) [M ndb_mongodb.so] ndb_mongodb_mod.o
LD (gcc) [M ndb_mongodb.so] ndb_mongodb.so
make[2]: --libs: No such file or directory
make[2]: --libs: No such file or directory
CC (gcc) [M db_mysql.so] db_mysql.o
CC (gcc) [M db_mysql.so] km_db_mysql.o
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4037
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4037(a)github.com>
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for bug reports.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* https://lists.kamailio.org/mailman3/postorius/lists/sr-users.lists.kamailio…
If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:
* https://lists.kamailio.org/mailman3/postorius/lists/sr-dev.lists.kamailio.o…
Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
Note that an issue report may be closed automatically after about 2 months
if there is no interest from developers or community users on pursuing it, being
considered expired. In such case, it can be reopened by writing a comment that includes
the token `/notexpired`. About two weeks before considered expired, the issue is
marked with the label `stale`, trying to notify the submitter and everyone else
that might be interested in it. To remove the label `stale`, write a comment that
includes the token `/notstale`. Also, any comment postpone the `expire` timeline,
being considered that there is interest in pursuing the issue.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
The Python3 modules violate Python's exception handling contract.
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Troubleshooting
#### Reproduction
```
KSR.pc.sets("$fU",None)
```
#### Debugging Data
```
Unhandled exception in the Python code:
TypeError: kemi-param-ss() argument 2 must be str, not None
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/kamailio/trace.py", line 212, in pac
return proc(*a, **k)
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/kamailio/_basic.py", line 181, in ksr_request_route
self.do_route(msg)
File "/usr/local/lib/python3.11/dist-packages/kamailio/_basic.py", line 261, in do_route
self.route_static(msg)
File "/usr/local/lib/python3.11/dist-packages/kamailio/_basic.py", line 287, in route_static
if self.fix_addrs(msg):
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/kamailio/_basic.py", line 334, in fix_addrs
PV.tU = dnr
^^^^^
File "/usr/local/lib/python3.11/dist-packages/kamailio/var.py", line 46, in __setattr__
return self.__setitem__(k, v)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/kamailio/var.py", line 73, in __setitem__
KSR.pv.sets("$fU", v)
SystemError: <built-in function sets> returned a result with an exception set
```
### Possible Solutions
See PR #4044
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
seen with 5.6 and 5.8
```
* **Operating System**:
Debian Stable but doesn't matter
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4045
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4045(a)github.com>
i am using the 10 algorithm for the call load distribution it is good but when i put more load on it at create a race condition
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4047
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4047(a)github.com>
hey kindly help me with error as i am using the call load distribution algorithm how i resolve this error
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4046
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4046(a)github.com>
```
CC (gcc) [M lost.so] pidf.o
CC (gcc) [M lost.so] response.o
CC (gcc) [M lost.so] utilities.o
utilities.c: In function ‘lost_held_post_request’:
utilities.c:1420:9: warning: ‘xmlKeepBlanksDefault’ is deprecated [-Wdeprecated-declarations]
1420 | xmlKeepBlanksDefault(1);
| ^~~~~~~~~~~~~~~~~~~~
In file included from pidf.h:37,
from utilities.c:49:
/usr/include/libxml2/libxml/parser.h:957:17: note: declared here
957 | xmlKeepBlanksDefault (int val);
| ^~~~~~~~~~~~~~~~~~~~
utilities.c: In function ‘lost_held_location_request’:
utilities.c:1518:9: warning: ‘xmlKeepBlanksDefault’ is deprecated [-Wdeprecated-declarations]
1518 | xmlKeepBlanksDefault(1);
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/parser.h:957:17: note: declared here
957 | xmlKeepBlanksDefault (int val);
| ^~~~~~~~~~~~~~~~~~~~
utilities.c: In function ‘lost_find_service_request’:
utilities.c:1671:9: warning: ‘xmlKeepBlanksDefault’ is deprecated [-Wdeprecated-declarations]
1671 | xmlKeepBlanksDefault(1);
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/parser.h:957:17: note: declared here
957 | xmlKeepBlanksDefault (int val);
| ^~~~~~~~~~~~~~~~~~~~
utilities.c: In function ‘lost_parse_geo’:
utilities.c:1050:41: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
1050 | snprintf(loc->latitude, len, "%s", (char *)bufLat);
| ^
utilities.c:1050:9: note: ‘snprintf’ output between 1 and 128 bytes into a destination of size 127
1050 | snprintf(loc->latitude, len, "%s", (char *)bufLat);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utilities.c:1060:42: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
1060 | snprintf(loc->longitude, len, "%s", (char *)bufLon);
| ^
utilities.c:1060:9: note: ‘snprintf’ output between 1 and 128 bytes into a destination of size 127
1060 | snprintf(loc->longitude, len, "%s", (char *)bufLon);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utilities.c:1074:49: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
1074 | snprintf(loc->altitude, len, "%s", (char *)bufAlt);
| ^
utilities.c:1074:17: note: ‘snprintf’ output between 1 and 128 bytes into a destination of size 127
1074 | snprintf(loc->altitude, len, "%s", (char *)bufAlt);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LD (gcc) [M lost.so] lost.so
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4038
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4038(a)github.com>
kamcmd tm.t_uac_start INVITE sip:1346@192.168.10.22:5080 . . 'From: <sip:1000@192.168.10.11>\r\n' 'To: <sip:1346@192.168.10.22:5080>\r\n'
error: 400 - Invalid headers
the log is :
/usr/bin/kamailio[2773]: ERROR: <core> [core/parser/msg_parser.c:260]: get_hdr_field(): no eol - bad body for <From> (hdr type: 4) [<sip:1000@192.168.10.11>\r\n]
/usr/bin/kamailio[2773]: ERROR: <core> [core/parser/msg_parser.c:339]: parse_headers(): bad header field [From: <sip:1000@192.168.10.11>\r\n]
kamailio -v
version: kamailio 5.7.0 (x86_64/linux) f1e91d
please help me, thank you
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4042
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4042(a)github.com>