<!--
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:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot 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
phonenum module is not working with KEMI framework, when debugged I found phonenum module functions "pv_parse_phonenum_name" "sr_phonenum_add_item" are not invoked with KEMI framework. With default config file these modules are invoked from config parser.
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
I am using lua KEMI framework and included phonenum module
### Troubleshooting
#### Reproduction
1. Any KEMI Framework
2. Include phonenum module
3. Test to validate phonenum
<!--
If the issue can be reproduced, describe how it can be done.
-->
#### Debugging Data
<!--
If you got a core dump, use gdb to extract troubleshooting data - full backtrace,
local variables and the list of the code at the issue location.
gdb /path/to/kamailio /path/to/corefile
bt full
info locals
list
If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->
```
(paste your debugging data here)
```
#### Log Messages
<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your log messages here)
```
#### SIP Traffic
<!--
If the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your sip traffic here)
```
### Possible Solutions
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a fix.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
(paste your output here)
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
```
(paste your output here)
```
--
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/1883
#### 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:
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ x Related to issue #1995
#### Description
Packaged MongoDB driver for Alpine dist
Need wait utils merged [PR for alpine dist](https://github.com/alpinelinux/aports/pull/9273)
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2000
-- Commit Summary --
* pkg/kamailio/alpine: packaged MongoDB module [skip ci]
-- File Changes --
M pkg/kamailio/alpine/APKBUILD (9)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2000.patchhttps://github.com/kamailio/kamailio/pull/2000.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/2000
The ims_usrloc_scscf module lacks module documentation in git master:
~/repositories/kamailio/src/modules/ims_usrloc_scscf> ls -la README doc*
ls: cannot access 'README': No such file or directory
ls: cannot access 'doc*': No such file or directory
The purpose of this module and also its parameters that are exported should be documented in a doc/*.xml files like the other modules. This are the exported parameters from the source code:
{"timer_interval", INT_PARAM, &timer_interval },
{"desc_time_order", INT_PARAM, &desc_time_order },
{"matching_mode", INT_PARAM, &matching_mode },
{"cseq_delay", INT_PARAM, &cseq_delay },
{"fetch_rows", INT_PARAM, &ul_fetch_rows },
{"hash_size", INT_PARAM, &ul_hash_size },
{"subs_hash_size", INT_PARAM, &subs_hash_size },
{"contacts_hash_size", INT_PARAM, &contacts_hash_size },
{"nat_bflag", INT_PARAM, &nat_bflag },
{"contact_delete_delay", INT_PARAM, &contact_delete_delay },
{"usrloc_debug_file", PARAM_STR, &usrloc_debug_file},
{"enable_debug_file", INT_PARAM, &usrloc_debug},
{"user_data_dtd", PARAM_STRING, &scscf_user_data_dtd},
{"user_data_xsd", PARAM_STRING, &scscf_user_data_xsd},
{"support_wildcardPSI", INT_PARAM, &scscf_support_wildcardPSI},
{"unreg_validity", INT_PARAM, &unreg_validity},
{"maxcontact_behaviour",INT_PARAM, &maxcontact_behaviour},
{"maxcontact", INT_PARAM, &maxcontact},
{"maxcontact_3gpp", INT_PARAM, &maxcontact_3gpp},
{"max_subscribes", INT_PARAM, &max_subscribes},
{"sub_dialog_hash_size",INT_PARAM, &sub_dialog_hash_size},
{"db_mode", INT_PARAM, &db_mode},
{"db_url", PARAM_STR, &db_url},
{"timer_procs", INT_PARAM, &ul_timer_procs},
--
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/1644
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [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 -->
- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
ims_usrloc_scscf module documentation is added.
removed unnecessary files.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1835
-- Commit Summary --
* ims_registrar_scscf : fixed wrong comment for emergency register
* ims_registrar_scscf: removed screensharing log file.
* ims_usrloc_scscf: removed NewFile.xml file
* ims_usrloc_scscf: doc is added
-- File Changes --
M src/modules/ims_registrar_scscf/config.c (4)
D src/modules/ims_registrar_scscf/screensharing.log (66)
D src/modules/ims_usrloc_scscf/NewFile.xml (9)
A src/modules/ims_usrloc_scscf/doc/Makefile (4)
A src/modules/ims_usrloc_scscf/doc/ims_usrloc_scscf.xml (62)
A src/modules/ims_usrloc_scscf/doc/ims_usrloc_scscf_admin.xml (340)
A src/modules/ims_usrloc_scscf/doc/ims_usrloc_scscf_faq.xml (58)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1835.patchhttps://github.com/kamailio/kamailio/pull/1835.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/1835
I got this warning when building 5.2 on Debian Buster:
CC (gcc) [M db_mysql.so] km_dbase.o
In file included from km_dbase.c:38:
/usr/include/mariadb/mysql_version.h:3:2: warning: #warning This file should not be included by clients, include only <mysql.h> [-Wcpp]
#warning This file should not be included by clients, include only <mysql.h>
^~~~~~~
-- Juha
Module: kamailio
Branch: master
Commit: 89cc5ddeebd7cb900aff8000a7593f5c52b880ff
URL: https://github.com/kamailio/kamailio/commit/89cc5ddeebd7cb900aff8000a7593f5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-07-31T17:17:46+02:00
core: helper function to get debug level for logging from config
---
Modified: src/core/dprint.c
Modified: src/core/dprint.h
---
Diff: https://github.com/kamailio/kamailio/commit/89cc5ddeebd7cb900aff8000a7593f5…
Patch: https://github.com/kamailio/kamailio/commit/89cc5ddeebd7cb900aff8000a7593f5…
---
diff --git a/src/core/dprint.c b/src/core/dprint.c
index 46d69a1f97..1b180474c1 100644
--- a/src/core/dprint.c
+++ b/src/core/dprint.c
@@ -169,6 +169,16 @@ int get_debug_level(char *mname, int mnlen) {
_local_debug_level : cfg_get(core, core_cfg, debug);
}
+/**
+ * @brief return the log level - the local one if it set,
+ * otherwise the global value
+ */
+int get_cfg_debug_level(void) {
+ /*important -- no LOGs inside, because it will loop */
+ return (_local_debug_level != UNSET_LOCAL_DEBUG_LEVEL) ?
+ _local_debug_level : cfg_get(core, core_cfg, debug);
+}
+
/**
* @brief return the log facility - the local one if it set,
* otherwise the global value
diff --git a/src/core/dprint.h b/src/core/dprint.h
index 8a7a283875..c3096c5555 100644
--- a/src/core/dprint.h
+++ b/src/core/dprint.h
@@ -141,6 +141,7 @@ struct log_level_info {
/** @brief per process debug level handling */
int get_debug_level(char *mname, int mnlen);
+int get_cfg_debug_level(void);
int get_debug_facility(char *mname, int mnlen);
void set_local_debug_level(int level);
void set_local_debug_facility(int facility);
<!--
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:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot 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
run
```bash
make prefix=/ include_modules="db_mysql" all -j4
```
and not found openssl lib
but here is my openssl path
```bash
pkg-config --cflags openssl
-I/usr/local/Cellar/openssl/1.0.2s/include
pkg-config --libs openssl
-L/usr/local/Cellar/openssl/1.0.2s/lib -lssl -lcrypto
```
### Troubleshooting
<img width="641" alt="屏幕快照 2019-07-31 下午6 54 47" src="https://user-images.githubusercontent.com/7347198/62206568-b3063080-b3c4-11…">
#### Log Messages
```
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src/ all
generating core/autover.h ...
CC (gcc) [kamailio] core/ver.o
CC (gcc) [kamailio] core/parser/parse_event.o
CC (gcc) [kamailio] core/parser/parse_expires.o
CC (gcc) [kamailio] core/parser/parse_fline.o
CC (gcc) [kamailio] core/parser/parse_from.o
CC (gcc) [kamailio] core/parser/parse_hname2.o
CC (gcc) [kamailio] core/parser/parse_identity.o
CC (gcc) [kamailio] core/parser/parse_identityinfo.o
CC (gcc) [kamailio] core/parser/parse_methods.o
CC (gcc) [kamailio] core/parser/parse_nameaddr.o
CC (gcc) [kamailio] core/parser/parse_option_tags.o
CC (gcc) [kamailio] core/parser/parse_param.o
CC (gcc) [kamailio] core/parser/parse_ppi_pai.o
CC (gcc) [kamailio] core/parser/parse_privacy.o
CC (gcc) [kamailio] core/parser/parse_refer_to.o
CC (gcc) [kamailio] core/parser/parse_require.o
CC (gcc) [kamailio] core/parser/parse_retry_after.o
CC (gcc) [kamailio] core/parser/parse_rpid.o
CC (gcc) [kamailio] core/parser/parse_rr.o
CC (gcc) [kamailio] core/parser/parse_sipifmatch.o
CC (gcc) [kamailio] core/parser/parse_subscription_state.o
CC (gcc) [kamailio] core/parser/parse_supported.o
CC (gcc) [kamailio] core/parser/parse_to.o
CC (gcc) [kamailio] core/parser/parse_uri.o
CC (gcc) [kamailio] core/parser/parse_via.o
CC (gcc) [kamailio] core/parser/parser_f.o
CC (gcc) [kamailio] core/parser/digest/digest.o
CC (gcc) [kamailio] core/parser/digest/digest_parser.o
CC (gcc) [kamailio] core/parser/digest/param_parser.o
CC (gcc) [kamailio] core/parser/contact/contact.o
CC (gcc) [kamailio] core/parser/contact/parse_contact.o
CC (gcc) [kamailio] core/parser/sdp/sdp.o
CC (gcc) [kamailio] core/parser/sdp/sdp_helpr_funcs.o
CC (gcc) [kamailio] core/rand/fastrand.o
CC (gcc) [kamailio] core/rand/isaac/rand.o
CC (gcc) [kamailio] core/cfg/cfg.o
CC (gcc) [kamailio] core/cfg/cfg_ctx.o
CC (gcc) [kamailio] core/cfg/cfg_script.o
CC (gcc) [kamailio] core/cfg/cfg_select.o
CC (gcc) [kamailio] core/cfg/cfg_struct.o
yacc -d -b core/cfg core/cfg.y
yacc -d -b core/cfg core/cfg.y
CC (gcc) [M db_mysql.so] db_mysql.o
CC (gcc) [M db_mysql.so] km_db_mysql.o
CC (gcc) [M db_mysql.so] km_dbase.o
CC (gcc) [M db_mysql.so] km_my_con.o
flex -o core/lex.yy.c core/cfg.lex
CC (gcc) [M db_mysql.so] km_res.o
CC (gcc) [kamailio] core/cfg.tab.o
CC (gcc) [M db_mysql.so] km_row.o
CC (gcc) [M db_mysql.so] km_val.o
CC (gcc) [M db_mysql.so] my_cmd.o
CC (gcc) [M db_mysql.so] my_con.o
CC (gcc) [M db_mysql.so] my_fld.o
CC (gcc) [M db_mysql.so] my_res.o
CC (gcc) [M db_mysql.so] my_uri.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_cmd.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_con.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_ctx.o
CC (gcc) [kamailio] core/lex.yy.o
CC (gcc) [L libsrdb1.1.0.0.dylib] db.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_drv.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_fld.o
CC (gcc) [L libsrdb1.1.0.0.dylib] db_id.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_gen.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_pool.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_rec.o
CC (gcc) [L libsrdb1.1.0.0.dylib] db_pool.o
CC (gcc) [L libsrdb1.1.0.0.dylib] db_query.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_res.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_uri.o
CC (gcc) [L libsrdb1.1.0.0.dylib] db_res.o
CC (gcc) [L libsrdb1.1.0.0.dylib] db_row.o
LD (gcc) [L libsrdb2.1.0.0.dylib] libsrdb2.1.0.0.dylib
LD (gcc) [kamailio] kamailio
CC (gcc) [L libsrdb1.1.0.0.dylib] db_ut.o
CC (gcc) [L libsrdb1.1.0.0.dylib] db_val.o
LD (gcc) [L libsrdb1.1.0.0.dylib] libsrdb1.1.0.0.dylib
LD (gcc) [M db_mysql.so] db_mysql.so
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [db_mysql.so] Error 1
make[1]: *** [modules] Error 1
make: *** [all] Error 2
```
### Possible Solutions
didn't know; it seems hard code on `kamailio`.
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
(paste your output here)
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
```
uname -a
Darwin *****MacBook-Pro.local 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 20 18:42:21 PDT 2019; root:xnu-4903.270.47~4/RELEASE_X86_64 x86_64```
--
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/2021