Hello,
I have some feature required changes in acc module.
In acc module we getting cdrs in database only which have
METHOD=INVITE
METHOD=BYE
but in my setup I also get
METHOD=OPTIONS
so I need this entry also in acc table in kamailio database.
so which changes i need to do in kamailio acc module.... or other......
my cdrs log I paste below which have mehod=options
"Sep 7 07:16:53 sip /usr/local/sbin/kamailio[29264]: NOTICE: acc [acc.c:317]: acc_log_request(): ACC: request accounted: timestamp=1504783013;method=OPTIONS;from_tag=eUC9UgGrD;to_tag=j90H6yy5pU6Xc;call_id=2xJd0KCt-P;code=200;reason=OK;calling=46566464645;called=you;egressIP=kamailio.org;src_ip=1.0.0.127;to=<sip:+918866213320@sip.call.org>;tag=j90H6yy5pU6Xc;from=sip:918888888888@localhost;contact=;pai=;uri=sip:you@kamailio.org;onnet=0;rate=0.000333333"
Thanks..
--
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/1229
Module: kamailio
Branch: 5.0
Commit: 6c749dea59d8f35b8a5303baba540edc2295cd92
URL: https://github.com/kamailio/kamailio/commit/6c749dea59d8f35b8a5303baba540ed…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-09-07T15:29:58+02:00
tm: reset T_ASYNC_CONTINUE once t_continue() callback is executed
- by having it still set, the reply field was not reset, causing to free
an invalid pointer when transaction was destroyed, reported by Vitaliy
Aleksandrov
- set reply of suspended request branch to FAKED_REPLY on continue,
the code was already set to 500 - make it coherent with the local
replied transactions
- reset cloned reply under lock for suspended reply branch and free it
later via backup pointer - safer if someone risks to access the
suspended reply branch (should happen now, just future proof)
(cherry picked from commit b672d8ef63715cf816390a05ce7a441377c3e468)
---
Modified: src/modules/tm/t_suspend.c
---
Diff: https://github.com/kamailio/kamailio/commit/6c749dea59d8f35b8a5303baba540ed…
Patch: https://github.com/kamailio/kamailio/commit/6c749dea59d8f35b8a5303baba540ed…
Module: kamailio
Branch: master
Commit: c4bd6709cf3abb1fb0685fc89641d85c6752eb34
URL: https://github.com/kamailio/kamailio/commit/c4bd6709cf3abb1fb0685fc89641d85…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-09-06T20:46:22+02:00
modules: readme files regenerated - lcr ... [skip ci]
---
Modified: src/modules/lcr/README
---
Diff: https://github.com/kamailio/kamailio/commit/c4bd6709cf3abb1fb0685fc89641d85…
Patch: https://github.com/kamailio/kamailio/commit/c4bd6709cf3abb1fb0685fc89641d85…
---
diff --git a/src/modules/lcr/README b/src/modules/lcr/README
index 3ac0c7a185..aca7e6d6a2 100644
--- a/src/modules/lcr/README
+++ b/src/modules/lcr/README
@@ -571,8 +571,8 @@ modparam("lcr", "lcr_rule_table", "rules")
3.17. prefix_column (string)
- Name of the column holding prefix of Request-URI user part and prefix
- of gateway.
+ Name of the column in lcr_rule and lcr_gw tables holding prefix of
+ Request-URI user part and prefix of gateway, respectively.
Default value is “prefix”.
Module: kamailio
Branch: master
Commit: b0f941e1ef9a013472ea42bade3c8ecae9111768
URL: https://github.com/kamailio/kamailio/commit/b0f941e1ef9a013472ea42bade3c8ec…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: 2017-09-06T21:34:56+03:00
modules/lcr: improved description of prefix_column param
---
Modified: src/modules/lcr/doc/lcr_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/b0f941e1ef9a013472ea42bade3c8ec…
Patch: https://github.com/kamailio/kamailio/commit/b0f941e1ef9a013472ea42bade3c8ec…
---
diff --git a/src/modules/lcr/doc/lcr_admin.xml b/src/modules/lcr/doc/lcr_admin.xml
index 8c4552d1ba..5d1d92c99a 100644
--- a/src/modules/lcr/doc/lcr_admin.xml
+++ b/src/modules/lcr/doc/lcr_admin.xml
@@ -519,8 +519,8 @@ modparam("lcr", "lcr_rule_table", "rules")
<section>
<title><varname>prefix_column</varname> (string)</title>
<para>
- Name of the column holding prefix of Request-URI user
- part and prefix of gateway.
+ Name of the column in lcr_rule and lcr_gw tables holding prefix
+ of Request-URI user part and prefix of gateway, respectively.
</para>
<para>
<emphasis>
Module: kamailio
Branch: master
Commit: b672d8ef63715cf816390a05ce7a441377c3e468
URL: https://github.com/kamailio/kamailio/commit/b672d8ef63715cf816390a05ce7a441…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-09-06T11:13:16+02:00
tm: reset T_ASYNC_CONTINUE once t_continue() callback is executed
- by having it still set, the reply field was not reset, causing to free
an invalid pointer when transaction was destroyed, reported by Vitaliy
Aleksandrov
- set reply of suspended request branch to FAKED_REPLY on continue,
the code was already set to 500 - make it coherent with the local
replied transactions
- reset cloned reply under lock for suspended reply branch and free it
later via backup pointer - safer if someone risks to access the
suspended reply branch (should happen now, just future proof)
---
Modified: src/modules/tm/t_suspend.c
---
Diff: https://github.com/kamailio/kamailio/commit/b672d8ef63715cf816390a05ce7a441…
Patch: https://github.com/kamailio/kamailio/commit/b672d8ef63715cf816390a05ce7a441…
Module: kamailio
Branch: 5.0
Commit: d5f89eb46c6d463d162dab0af1a7b56af513549c
URL: https://github.com/kamailio/kamailio/commit/d5f89eb46c6d463d162dab0af1a7b56…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-09-06T09:15:14+02:00
tm: more info in some log messages
(cherry picked from commit 8599f6fca16367a3e2a0dd4a638c667459482cd5)
---
Modified: src/modules/tm/t_lookup.c
---
Diff: https://github.com/kamailio/kamailio/commit/d5f89eb46c6d463d162dab0af1a7b56…
Patch: https://github.com/kamailio/kamailio/commit/d5f89eb46c6d463d162dab0af1a7b56…
---
diff --git a/src/modules/tm/t_lookup.c b/src/modules/tm/t_lookup.c
index 265633ca69..474ad63cbe 100644
--- a/src/modules/tm/t_lookup.c
+++ b/src/modules/tm/t_lookup.c
@@ -930,7 +930,7 @@ int t_reply_matching( struct sip_msg *p_msg , int *p_branch )
*p_branch =(int) branch_id;
REF_UNSAFE( T );
UNLOCK_HASH(hash_index);
- LM_DBG("reply matched (T=%p)!\n",T);
+ LM_DBG("reply (%p) matched an active transaction (T=%p)!\n", p_msg, T);
if(likely(!(p_msg->msg_flags&FL_TM_RPL_MATCHED))) {
/* if this is a 200 for INVITE, we will wish to store to-tags to be
* able to distinguish retransmissions later and not to call
@@ -997,8 +997,8 @@ int t_check_msg( struct sip_msg* p_msg , int *param_branch )
ret=0;
/* is T still up-to-date ? */
- LM_DBG("msg id=%d global id=%d T start=%p\n",
- p_msg->id,global_msg_id,T);
+ LM_DBG("msg (%p) id=%d global id=%d T start=%p\n",
+ p_msg,p_msg->id,global_msg_id,T);
if ( p_msg->id != global_msg_id || T==T_UNDEFINED )
{
global_msg_id = p_msg->id;
@@ -1063,17 +1063,17 @@ int t_check_msg( struct sip_msg* p_msg , int *param_branch )
if ( T && T!=T_UNDEFINED && T->flags & (T_IN_AGONY)) {
LM_WARN("transaction %p scheduled for deletion "
"and called from t_check_msg (flags=%x) (but it might be ok)"
- "\n", T, T->flags);
+ " (msg %p)\n", T, T->flags, p_msg);
}
#endif
- LM_DBG("msg id=%d global id=%d T end=%p\n",
- p_msg->id,global_msg_id,T);
+ LM_DBG("msg (%p) id=%d global id=%d T end=%p\n",
+ p_msg,p_msg->id,global_msg_id,T);
} else { /* ( p_msg->id == global_msg_id && T!=T_UNDEFINED ) */
if (T){
- LM_DBG("T already found!\n");
+ LM_DBG("T (%p) already found for msg (%p)!\n", T, p_msg);
ret=1;
}else{
- LM_DBG("T previously sought and not found\n");
+ LM_DBG("T previously sought and not found for msg (%p)\n", p_msg);
ret=-1;
}
if (likely(param_branch))
Module: kamailio
Branch: master
Commit: 8599f6fca16367a3e2a0dd4a638c667459482cd5
URL: https://github.com/kamailio/kamailio/commit/8599f6fca16367a3e2a0dd4a638c667…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-09-06T09:09:13+02:00
tm: more info in some log messages
---
Modified: src/modules/tm/t_lookup.c
---
Diff: https://github.com/kamailio/kamailio/commit/8599f6fca16367a3e2a0dd4a638c667…
Patch: https://github.com/kamailio/kamailio/commit/8599f6fca16367a3e2a0dd4a638c667…
---
diff --git a/src/modules/tm/t_lookup.c b/src/modules/tm/t_lookup.c
index 94787f1965..1fff011dee 100644
--- a/src/modules/tm/t_lookup.c
+++ b/src/modules/tm/t_lookup.c
@@ -930,7 +930,7 @@ int t_reply_matching( struct sip_msg *p_msg , int *p_branch )
*p_branch =(int) branch_id;
REF_UNSAFE( T );
UNLOCK_HASH(hash_index);
- LM_DBG("reply matched (T=%p)!\n",T);
+ LM_DBG("reply (%p) matched an active transaction (T=%p)!\n", p_msg, T);
if(likely(!(p_msg->msg_flags&FL_TM_RPL_MATCHED))) {
/* if this is a 200 for INVITE, we will wish to store to-tags to be
* able to distinguish retransmissions later and not to call
@@ -997,8 +997,8 @@ int t_check_msg( struct sip_msg* p_msg , int *param_branch )
ret=0;
/* is T still up-to-date ? */
- LM_DBG("msg id=%d global id=%d T start=%p\n",
- p_msg->id,global_msg_id,T);
+ LM_DBG("msg (%p) id=%d global id=%d T start=%p\n",
+ p_msg,p_msg->id,global_msg_id,T);
if ( p_msg->id != global_msg_id || T==T_UNDEFINED )
{
global_msg_id = p_msg->id;
@@ -1063,17 +1063,17 @@ int t_check_msg( struct sip_msg* p_msg , int *param_branch )
if ( T && T!=T_UNDEFINED && T->flags & (T_IN_AGONY)) {
LM_WARN("transaction %p scheduled for deletion "
"and called from t_check_msg (flags=%x) (but it might be ok)"
- "\n", T, T->flags);
+ " (msg %p)\n", T, T->flags, p_msg);
}
#endif
- LM_DBG("msg id=%d global id=%d T end=%p\n",
- p_msg->id,global_msg_id,T);
+ LM_DBG("msg (%p) id=%d global id=%d T end=%p\n",
+ p_msg,p_msg->id,global_msg_id,T);
} else { /* ( p_msg->id == global_msg_id && T!=T_UNDEFINED ) */
if (T){
- LM_DBG("T already found!\n");
+ LM_DBG("T (%p) already found for msg (%p)!\n", T, p_msg);
ret=1;
}else{
- LM_DBG("T previously sought and not found\n");
+ LM_DBG("T previously sought and not found for msg (%p)\n", p_msg);
ret=-1;
}
if (likely(param_branch))
Module: kamailio
Branch: master
Commit: 303294547399610a4eedcd382631e7d442fd76ad
URL: https://github.com/kamailio/kamailio/commit/303294547399610a4eedcd382631e7d…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-09-05T08:01:33+02:00
modules: readme files regenerated - presence_xml ... [skip ci]
---
Modified: src/modules/presence_xml/README
---
Diff: https://github.com/kamailio/kamailio/commit/303294547399610a4eedcd382631e7d…
Patch: https://github.com/kamailio/kamailio/commit/303294547399610a4eedcd382631e7d…
---
diff --git a/src/modules/presence_xml/README b/src/modules/presence_xml/README
index 4b26628d6a..045edce2d9 100644
--- a/src/modules/presence_xml/README
+++ b/src/modules/presence_xml/README
@@ -119,8 +119,8 @@ Chapter 1. Admin Guide
* presence.
* sl.
* xcap_client.
- Only compulsory if not using an integrated xcap server (if
- 'integrated_xcap_server' parameter is not set).
+ Needed only when not using the integrated xcap server (if
+ 'integrated_xcap_server' parameter is set to 0).
2.2. External Libraries or Applications
@@ -223,15 +223,15 @@ modparam("presence_xml", "force_active", 1)
This parameter is a flag for the type of XCAP servers used. If the XCAP
server is integrated with Kamailio presence_xml module and access the
same database tables directly, like the embedded XCAP server
- implemented in xcap_server module, the parameter should be set to a
- positive value. Apart from updating in xcap table, if the integrated
- server is not running on the same Kamailio instance, it must send an
- RPC command presence.refreshWatchers [pres_uri] [event] when a user
- modifies a rules document, to instruct the presence_xml module to
- update states from the database and, if needed, send NOTIFY updates.
-
- Otherwise, it uses xcap_client module to fetch documents from the XCAP
- servers with HTTP requests.
+ implemented in xcap_server module, the parameter has to be set to 1.
+ Apart from updating in xcap table, if the integrated server is not
+ running on the same Kamailio instance, it must send an RPC command
+ presence.refreshWatchers [pres_uri] [event] when a user modifies a
+ rules document, to instruct the presence_xml module to update states
+ from the database and, if needed, send NOTIFY updates.
+
+ Otherwise (if set to 0) it uses xcap_client module to fetch documents
+ from the XCAP servers with HTTP requests.
Default value is “0”.
Hello,
in the following email (about one year ago) it was mentioned that kamailio was close to having the capability to configure ipsec SAs dinamically by interacting with the OS.
This is needed in pcscf AKA authentication procedure.
https://lists.kamailio.org/pipermail/sr-dev/2016-June/035627.html
I'm interested in knowing the current status of this feature.
In latest (5.0.2) kamailio sources I was not able to find any sign of ipsec SA programming (setkey system()s, pfkey_*() calls, xfrm netlink messages).
Anyone has news about this ?
Thanks
Internet Email Confidentiality Footer ******************************************************************************************************************************************** La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto. ***************** This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred. ********************************************************************************************************************************************
Updated RPM spec file to support build fedora, RHEL, openSUSE via openSUSE build service.
Removed unnecessary RPM spec files
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1227
-- Commit Summary --
* pkg/kamailio/centos. Updated RPM spec file to support build fedora, RHEL, openSUSE via openSUSE build service
* pkg/kamailio: Removed unnecessary RPM spec files
-- File Changes --
A pkg/kamailio/centos/6 (1)
D pkg/kamailio/centos/6/README (29)
D pkg/kamailio/centos/6/kamailio.init (134)
D pkg/kamailio/centos/6/kamailio.spec (1279)
D pkg/kamailio/centos/6/kamailio.sysconfig (30)
M pkg/kamailio/centos/7/kamailio.spec (558)
D pkg/kamailio/fedora/17/README (67)
D pkg/kamailio/fedora/17/kamailio-build.appl (49)
D pkg/kamailio/fedora/17/kamailio.appl (42)
D pkg/kamailio/fedora/17/kamailio.service (14)
D pkg/kamailio/fedora/17/kamailio.spec (1325)
D pkg/kamailio/fedora/17/kamailio.sysconfig (12)
D pkg/kamailio/fedora/18/README (1)
D pkg/kamailio/fedora/18/kamailio-build.appl (49)
D pkg/kamailio/fedora/18/kamailio.appl (42)
D pkg/kamailio/fedora/18/kamailio.service (1)
D pkg/kamailio/fedora/18/kamailio.spec (1)
D pkg/kamailio/fedora/18/kamailio.sysconfig (1)
A pkg/kamailio/oracle (1)
D pkg/kamailio/oracle/el6/kamailio.default (30)
D pkg/kamailio/oracle/el6/kamailio.init (128)
D pkg/kamailio/oracle/el6/kamailio.spec (852)
D pkg/kamailio/oracle/el7/kamailio.service (17)
D pkg/kamailio/oracle/el7/kamailio.spec (851)
D pkg/kamailio/oracle/el7/kamailio.sysconfig (36)
D pkg/kamailio/oracle/kamailio.logrotate (7)
D pkg/kamailio/oracle/kamailio.rsyslog (2)
D pkg/kamailio/rpm/kamailio.default (30)
D pkg/kamailio/rpm/kamailio.init (128)
D pkg/kamailio/rpm/kamailio.init.SuSE (133)
D pkg/kamailio/rpm/kamailio.spec-4.1 (409)
D pkg/kamailio/rpm/kamailio.spec.CenOS (745)
D pkg/kamailio/rpm/kamailio.spec.SuSE (389)
A pkg/kamailio/suse/1315 (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1227.patchhttps://github.com/kamailio/kamailio/pull/1227.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/1227
This is RPM packaging scripts for openSUSE Build Service https://build.opensuse.org/
Scitps build RPM pckages for following dists:
1) CentOS 6 and 7
2) RHEL 6 and 7
3) Fedora 25 adn 26
4) openSUSE 42.2 and 42.3
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1228
-- Commit Summary --
* pkg/kamailio/OBS: Added RPM packaging scripts for openSUSE Build Service
-- File Changes --
A pkg/kamailio/OBS/README (6)
A pkg/kamailio/OBS/kamailio.init (141)
A pkg/kamailio/OBS/kamailio.service (17)
A pkg/kamailio/OBS/kamailio.spec (1756)
A pkg/kamailio/OBS/kamailio.sysconfig (18)
A pkg/kamailio/OBS/kamailio.tmpfiles (1)
A pkg/kamailio/OBS/meta (43)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1228.patchhttps://github.com/kamailio/kamailio/pull/1228.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/1228
### Description
On Fedora distr package `radiusclient-ng` is replaced by `freeradius-client`. [More info](https://src.fedoraproject.org/rpms/radiusclient-ng/commits/master)
After updating `spec` file build of `acc_radius_mod` is still not possible details of error
```
[ 529s] In file included from acc_radius_mod.c:44:0:
[ 529s] ../misc_radius/radius.h:38:12: fatal error: radiusclient-ng.h: No such file or directory
[ 529s] #include <radiusclient-ng.h>
[ 529s] ^~~~~~~~~~~~~~~~~~~
[ 529s] compilation terminated.
[ 529s] make[2]: *** [../../Makefile.rules:100: acc_radius_mod.o] Error 1
[ 529s] make[1]: *** [Makefile:511: modules] Error 1
[ 529s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/kamailio-5.0.3/src'
[ 529s] make: *** [Makefile:27: every-module] Error 2
```
Think need use package `freeradius-client` and if this not installed then try to use `radiusclient-ng`.
--
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/1226
Hello,
Kamailio SIP Server v5.0.3 stable release is out!
This is a maintenance release of the latest stable branch, 5.0, that
includes fixes since the release of v5.0.2. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.0.x. Deployments running previous 5.0.x
versions are strongly recommended to be upgraded to v5.0.3.
For more details about version 5.0.3 (including links and guidelines to
download the tarball or from GIT repository), visit:
* https://www.kamailio.org/w/2017/09/kamailio-v5-0-3-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Many thanks to all contributing and using Kamailio!
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Hello,
I am considering to release Kamailio v5.0.3 sometime next week,
therefore it is the time to backport patches with fixes from master that
apply to 5.0 branch. If you are aware of such fix that has to be
backported, reply here or make a pull request on github project.
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com
<!--
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
when using db_text, can't use relative path, only full path is working in kamailio 4.4
modparam("lcr", "db_url", "text://dbtext") -- do not work
modparam("lcr", "db_url", "text:///usr/local/etc/kamailio/dbtext") -- works as expected
### Troubleshooting
#### Reproduction
<!--
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).
-->
```
0(1) DEBUG: db_text [dbt_file.c:104]: dbt_load_file(): db is [/usr/local/etc/kamailio/]
0(1) DEBUG: db_text [dbt_file.c:119]: dbt_load_file(): loading file [/usr/local/etc/kamailio/]
0(1) DEBUG: db_text [dbt_tb.c:181]: dbt_table_new(): mtime is 1504165928
0(1) ERROR: db_text [dbt_base.c:215]: dbt_query(): table version not loaded! (too few columns)
0(1) ERROR: db_text [dbt_base.c:357]: dbt_query(): failed to query the table!
0(1) ERROR: <core> [db.c:397]: db_table_version(): error in db_query
0(1) ERROR: <core> [db.c:436]: db_check_table_version(): querying version for table lcr_rule
0(1) ERROR: lcr [lcr_mod.c:649]: mod_init(): error during table version check
0(1) ERROR: <core> [sr_module.c:967]: init_mod(): Error while initializing module lcr (/usr/local/lib64/kamailio/modules/lcr.so)
```
#### 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.
-->
use full path
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 4.4.6 (x86_64/linux) 897942
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: 897942
compiled on 06:27:57 Aug 31 2017 with gcc 6.3.0
```
* **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`)
-->
```
Debian GNU/Linux 9 \n \l
4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 GNU/Linux
```
--
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/1224
### Description
Running kamailio in kubernetes (steps [here](https://github.com/CyCoreSystems/astricon-2016/issues/1)) but getting an "invalid host or interface name" error when parsing the alias in kamailio.cfg
As per
https://github.com/kamailio/kamailio/blob/9df27ff7afbf1cf8ee7b3afd1741355e9… DOTS and MINUS are not allowed?
GCE FQDN of server nodes currently have a format like this: ```gke-foo-cluster-default-pool-4b9e42c9-50mh.c.foo-project-0.internal```
### Troubleshooting
Doesn't exist. node names in the cloud are not customizable.
#### Reproduction
set the alias in kamailio.cfg to ```my-server.my-domain.internal```
#### Debugging Data
N/A
#### Log Messages
```
2017-08-31T03:34:27Z gke-foo-cluster-default-pool-4b9e42c9-50mh confd[15]: INFO Backend set to env
2017-08-31T03:34:27Z gke-foo-cluster-default-pool-4b9e42c9-50mh confd[15]: INFO Starting confd
2017-08-31T03:34:27Z gke-foo-cluster-default-pool-4b9e42c9-50mh confd[15]: INFO Backend nodes set to
2017-08-31T03:34:27Z gke-foo-cluster-default-pool-4b9e42c9-50mh confd[15]: INFO /etc/kamailio/kamailio.cfg has md5sum 17481ad2235ef9698da57c6e90d5ac2b should be fb5d75c2654ab2264b11fab5802bd4b7
2017-08-31T03:34:27Z gke-foo-cluster-default-pool-4b9e42c9-50mh confd[15]: INFO Target config /etc/kamailio/kamailio.cfg out of sync
2017-08-31T03:34:27Z gke-foo-cluster-default-pool-4b9e42c9-50mh confd[15]: INFO Target config /etc/kamailio/kamailio.cfg has been updated
0(1) CRITICAL: <core> [cfg.y:3372]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 35, column 30-36: syntax error
0(1) CRITICAL: <core> [cfg.y:3372]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 35, column 30-36: invalid host or interface name
0(1) CRITICAL: <core> [cfg.y:3375]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 35, column 37:
ERROR: bad config file (3 errors)
```
#### SIP Traffic
N/A
### Possible Solutions
Let the parser accept server and domain names with "-"
### Additional Information
Kamailio version: upstream? as per the Dockerfile the image is coming from:
```
FROM debian:jessie
# Debian Linux
RUN apt-get update && apt-get install -y curl && apt-get clean
# Install kamailio
RUN curl -qO http://deb.kamailio.org/kamailiodebkey.gpg && \
apt-key add kamailiodebkey.gpg && \
echo "deb http://deb.kamailio.org/kamailio jessie main\ndeb-src http://deb.kamailio.org/kamailio jessie main" > /etc/apt/sources.list.d/kamailio.list
RUN apt-get update && apt-get install -y kamailio kamailio-json-modules kamailio-postgres-modules kamailio-redis-modules kamailio-utils-modules && apt-get clean
# Install confd (we need at least 0.7.0 for the "exists" function
RUN curl -o /usr/sbin/confd -O -J -L "https://github.com/kelseyhightower/confd/releases/download/v0.11.0/confd-0.…"
RUN chmod +x /usr/sbin/confd
```
* **Operating System**:
Debian Jessie
```
Linux gke-foo-cluster-default-pool-4b9e42c9-50mh 4.4.52+ #1 SMP Thu Jun 15 15:23:01 PDT 2017 x86_64 GNU/Linux
```
Please confirm if this docker image is built from the Kamailio's upstream version in order to fix it if not.
tks.
--
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/1223