<!-- Kamailio Project uses GitHub Issues only for bugs in the code or feature requests.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* http://lists.sip-router.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.sip-router.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 you submit a feature request (or enhancement), you can delete the text of the template and only add the description of what you would like to be added.
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
<!-- Explain what you did, what you expected to happen, and what actually happened. --> After upgrading from 5.0 to 5.1.0, the use_domain parameter of the group module doesn't seem to work properly. The configuration file was not changed for the upgrade.
### Troubleshooting
#### Reproduction
Verified proper configuration ``` #!define WITH_GROUP
...
#!ifdef WITH_MULTIDOMAIN #!define MULTIDOMAIN 1 #!else #!define MULTIDOMAIN 0 #!endif
...
#!ifdef WITH_GROUP # ----- group params ----- modparam("group", "db_url", DBURL) modparam("group", "use_domain", MULTIDOMAIN) #!endif
```
#### 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). -->
The actual phone number has been replaced by `+1NXXNXXXXXX` below. ``` kamailio[5663]: DEBUG: <core> [core/select.c:412]: run_select(): Calling SELECT 0x7f072eecf700 kamailio[5663]: DEBUG: db_postgres [km_val.c:154]: db_postgres_val2str(): PQescapeStringConn: in: 12 chars, out: 12 chars kamailio[5663]: DEBUG: db_postgres [km_val.c:154]: db_postgres_val2str(): PQescapeStringConn: in: 3 chars, out: 3 chars kamailio[5663]: DEBUG: db_postgres [km_val.c:154]: db_postgres_val2str(): PQescapeStringConn: in: 0 chars, out: 0 chars kamailio[5663]: DEBUG: db_postgres [km_dbase.c:248]: db_postgres_submit_query(): sending query ok: 0x7f072efefca0 (2) - [select grp from grp where username='+1NXXNXXXXXX' AND grp='did' AND domain=''] kamailio[5663]: DEBUG: <core> [db_res.c:119]: db_new_result(): allocate 56 bytes for result set at 0x7f072efce170 kamailio[5663]: DEBUG: db_postgres [km_dbase.c:530]: db_postgres_store_result(): 0x7f072efefca0 PQresultStatus(PGRES_TUPLES_OK) PQgetResult(0x14f5d00) kamailio[5663]: DEBUG: db_postgres [km_res.c:95]: db_postgres_get_columns(): 1 columns returned from the query kamailio[5663]: DEBUG: <core> [db_res.c:156]: db_allocate_columns(): allocate 8 bytes for result names at 0x7f072f065478 kamailio[5663]: DEBUG: <core> [db_res.c:167]: db_allocate_columns(): allocate 4 bytes for result types at 0x7f072f065118 kamailio[5663]: DEBUG: db_postgres [km_res.c:112]: db_postgres_get_columns(): allocate 16 bytes for RES_NAMES[0] at 0x7f072efef9e8 kamailio[5663]: DEBUG: db_postgres [km_res.c:119]: db_postgres_get_columns(): RES_NAMES(0x7f072efef9e8)[0]=[grp] kamailio[5663]: DEBUG: db_postgres [km_res.c:154]: db_postgres_get_columns(): use DB1_STRING result type kamailio[5663]: DEBUG: db_postgres [km_res.c:200]: db_postgres_convert_rows(): no rows returned from the query kamailio[5663]: DEBUG: group [group.c:182]: is_user_in_helper(): user is not in group 'did' ```
#### 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). -->
Since the group isn't found with the domain, the call is rejected (but the SIP traffic isn't an issue 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`
``` version: kamailio 5.1.0 (x86_64/linux) flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: unknown compiled on 18:49:15 Dec 11 2017 with gcc 7.2.1 ```
* **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`) -->
``` Linux example.com 4.14.3-300.fc27.x86_64 #1 SMP Mon Dec 4 17:18:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux ```
What is the first parameter for is_user_in() function?
From my kamailio.cfg file: `is_user_in("Request-URI", "did"))`
It should be fixed by the commit referenced above.
Closed #1363.
Thanks @miconda