Re: [sr-dev] Releasing Kamailio v5.3.0
Hello, Kamailio v5.3.0 will be released today. Till the announcement is out, write first to sr-dev or irc channel if you want to push new commits to branch 5.3. Cheers, Daniel On 08.10.19 18:27, Daniel-Constantin Mierla wrote: > Hello, > > date correction ... > > On 08.10.19 17:02, Daniel-Constantin Mierla wrote: >> Hello, >> >> if there are no known major issues that need longer time to take care of >> them, in my opinion we could consider releasing the next major version >> 5.3.0 next week, for me Thursday, October 10 > ... obviously I wanted to mean Thursday, October 17 - next week! > > Cheers, > Daniel > > >> seems to work the best, >> still allowing a bit more than one week for testing. >> >> Any other suggestions? >> >> Cheers, >> Daniel >> -- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- https://asipto.com/u/kat ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.3:195c0150: pkg/kamailio/deb: version set 5.3.0
Module: kamailio Branch: 5.3 Commit: 195c0150c83cdea3ec2f1dcd4c53f59d37280be7 URL: https://github.com/kamailio/kamailio/commit/195c0150c83cdea3ec2f1dcd4c53f59d37280be7 Author: Victor Seva Committer: Victor Seva Date: 2019-10-17T09:16:28+02:00 pkg/kamailio/deb: version set 5.3.0 --- Modified: pkg/kamailio/deb/bionic/changelog Modified: pkg/kamailio/deb/buster/changelog Modified: pkg/kamailio/deb/debian/changelog Modified: pkg/kamailio/deb/jessie/changelog Modified: pkg/kamailio/deb/precise/changelog Modified: pkg/kamailio/deb/sid/changelog Modified: pkg/kamailio/deb/stretch/changelog Modified: pkg/kamailio/deb/trusty/changelog Modified: pkg/kamailio/deb/wheezy/changelog Modified: pkg/kamailio/deb/xenial/changelog --- Diff: https://github.com/kamailio/kamailio/commit/195c0150c83cdea3ec2f1dcd4c53f59d37280be7.diff Patch: https://github.com/kamailio/kamailio/commit/195c0150c83cdea3ec2f1dcd4c53f59d37280be7.patch ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] statsc module - server crashes every 10 hours (#2101)
Are you able to provide the output for last commands? -- 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/2101#issuecomment-543073786___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.3:e0de1a68: nathelper: removed exe flag from c file
Module: kamailio Branch: 5.3 Commit: e0de1a6842b03b06c56f84ae2dfc153b18f3a7c1 URL: https://github.com/kamailio/kamailio/commit/e0de1a6842b03b06c56f84ae2dfc153b18f3a7c1 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2019-10-17T10:51:32+02:00 nathelper: removed exe flag from c file (cherry picked from commit 82195c2a51c5020ca0024f59492a4e2faef0e15a) --- Modified: src/modules/nathelper/nathelper.c --- Diff: https://github.com/kamailio/kamailio/commit/e0de1a6842b03b06c56f84ae2dfc153b18f3a7c1.diff Patch: https://github.com/kamailio/kamailio/commit/e0de1a6842b03b06c56f84ae2dfc153b18f3a7c1.patch --- diff --git a/src/modules/nathelper/nathelper.c b/src/modules/nathelper/nathelper.c old mode 100755 new mode 100644 ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.3:a9e65d76: pkg: rpm/specs - set version to 5.3.0
Module: kamailio Branch: 5.3 Commit: a9e65d76af4f7485b876b97ab8b6d6f1a28d56a7 URL: https://github.com/kamailio/kamailio/commit/a9e65d76af4f7485b876b97ab8b6d6f1a28d56a7 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2019-10-17T10:57:23+02:00 pkg: rpm/specs - set version to 5.3.0 --- Modified: pkg/kamailio/alpine/APKBUILD Modified: pkg/kamailio/obs/kamailio.spec Modified: pkg/kamailio/oracle/el6/kamailio.spec Modified: pkg/kamailio/oracle/el7/kamailio.spec --- Diff: https://github.com/kamailio/kamailio/commit/a9e65d76af4f7485b876b97ab8b6d6f1a28d56a7.diff Patch: https://github.com/kamailio/kamailio/commit/a9e65d76af4f7485b876b97ab8b6d6f1a28d56a7.patch --- diff --git a/pkg/kamailio/alpine/APKBUILD b/pkg/kamailio/alpine/APKBUILD index 74a6566248..d26f2b59db 100644 --- a/pkg/kamailio/alpine/APKBUILD +++ b/pkg/kamailio/alpine/APKBUILD @@ -4,7 +4,7 @@ # Maintainer: Nathan Angelacos pkgname=kamailio -pkgver=5.1.0 +pkgver=5.3.0 pkgrel=0 # If building from a git snapshot, specify the gitcommit diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec index 9dc8a2a249..71a462b450 100644 --- a/pkg/kamailio/obs/kamailio.spec +++ b/pkg/kamailio/obs/kamailio.spec @@ -1,5 +1,5 @@ %define namekamailio -%define ver 5.2.0 +%define ver 5.3.0 %define rel dev1.0%{dist} %if 0%{?fedora} == 27 diff --git a/pkg/kamailio/oracle/el6/kamailio.spec b/pkg/kamailio/oracle/el6/kamailio.spec index e787ecd388..65e64975a7 100644 --- a/pkg/kamailio/oracle/el6/kamailio.spec +++ b/pkg/kamailio/oracle/el6/kamailio.spec @@ -1,5 +1,5 @@ %define namekamailio -%define ver 4.4.0 +%define ver 5.3.0 %define rel 0 %define _sharedir %{_prefix}/share diff --git a/pkg/kamailio/oracle/el7/kamailio.spec b/pkg/kamailio/oracle/el7/kamailio.spec index df65630a85..26df8f9047 100644 --- a/pkg/kamailio/oracle/el7/kamailio.spec +++ b/pkg/kamailio/oracle/el7/kamailio.spec @@ -1,5 +1,5 @@ %define namekamailio -%define ver 4.4.0 +%define ver 5.3.0 %define rel 0 %define _sharedir %{_prefix}/share ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.3:67cd116c: statsc: free parsed params in case of error
Module: kamailio Branch: 5.3 Commit: 67cd116cdb05511cbf889a6f4418830c35ec77c3 URL: https://github.com/kamailio/kamailio/commit/67cd116cdb05511cbf889a6f4418830c35ec77c3 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2019-10-17T10:51:45+02:00 statsc: free parsed params in case of error - wrap some lines of codes in blocks (cherry picked from commit 27020d88b4d3206a8f193dc5343ea8bb5b39b5a1) --- Modified: src/modules/statsc/statsc_mod.c --- Diff: https://github.com/kamailio/kamailio/commit/67cd116cdb05511cbf889a6f4418830c35ec77c3.diff Patch: https://github.com/kamailio/kamailio/commit/67cd116cdb05511cbf889a6f4418830c35ec77c3.patch --- diff --git a/src/modules/statsc/statsc_mod.c b/src/modules/statsc/statsc_mod.c index 75c88c9cd5..0cbe246965 100644 --- a/src/modules/statsc/statsc_mod.c +++ b/src/modules/statsc/statsc_mod.c @@ -205,7 +205,7 @@ int statsc_nmap_add(str *sname, str *rname) return 0; } sl = _statsc_info->slist; - while(sl->next!=NULL) sl = sl->next; + while(sl->next!=NULL) { sl = sl->next; } sl->next = sm; _statsc_info->slots++; return 0; @@ -287,18 +287,23 @@ int statsc_track_param(modparam_t type, void* val) param_t *pit=NULL; str s; - if(val==NULL) + if(val==NULL) { return -1; - if(statsc_init()<0) + } + if(statsc_init()<0) { return -1; + } s.s = (char*)val; s.len = strlen(s.s); - if(s.s[s.len-1]==';') + if(s.s[s.len-1]==';') { s.len--; - if (parse_params(&s, CLASS_ANY, &phooks, ¶ms_list)<0) + } + if (parse_params(&s, CLASS_ANY, &phooks, ¶ms_list)<0) { return -1; + } for (pit = params_list; pit; pit=pit->next) { if(statsc_nmap_add(&pit->name, &pit->body)<0) { + free_params(params_list); LM_ERR("cannot enable tracking statistics\n"); return -1; } @@ -369,8 +374,9 @@ static void statsc_rpc_report(rpc_t* rpc, void* ctx) sname.s = NULL; } rpc->scan(ctx, "*d", &range); - if(range<0 || range>statsc_items) + if(range<0 || range>statsc_items) { range = 0; + } } tn = time(NULL); ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] pv: adding xavp_copy with destination index (#2097)
@jchavanton - if you have time go ahead with the merge, otherwise I can also merge it tomorrow. -- 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/2097#issuecomment-543096638___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] dispatcher: ds_list_exist support pv as param (only logging level adjustment was kept) (#2099)
As I don't know the reasons about this change, why its wrong to inform the user with INFO level about the not found destination sets? -- 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/2099#issuecomment-543098983___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.3:ce8a69d8: utils: kamdbctl - version set to 5.3.0
Module: kamailio Branch: 5.3 Commit: ce8a69d891521c862b8374df88f77bb42a760f09 URL: https://github.com/kamailio/kamailio/commit/ce8a69d891521c862b8374df88f77bb42a760f09 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2019-10-17T12:31:38+02:00 utils: kamdbctl - version set to 5.3.0 --- Modified: utils/kamctl/kamdbctl --- Diff: https://github.com/kamailio/kamailio/commit/ce8a69d891521c862b8374df88f77bb42a760f09.diff Patch: https://github.com/kamailio/kamailio/commit/ce8a69d891521c862b8374df88f77bb42a760f09.patch --- diff --git a/utils/kamctl/kamdbctl b/utils/kamctl/kamdbctl index 4597afe09b..f291228180 100755 --- a/utils/kamctl/kamdbctl +++ b/utils/kamctl/kamdbctl @@ -5,7 +5,7 @@ #=== ### version for this script -VERSION='5.2.0' +VERSION='5.3.0' PATH=$PATH:/usr/local/sbin/ ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] statsc module - server crashes every 10 hours (#2101)
I am out of country, hence the delay: (gdb) frame 6 #6 0x7eff7d65db79 in statsc_timer (ticks=113205942, param=0x0) at statsc_mod.c:274 274 statsc_svalue(&sm->rname, sm->vals + n); (gdb) p *sm $1 = {sname = {s = 0x5da5103e , len = 1571098986}, rname = {s = 0x5da51296 , len = 9}, vals = 0x7eff79693bb3, next = 0x7eff79693f40} (gdb) -- 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/2101#issuecomment-543124028___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.3:52dc42ef: Makefile.defs: version set to 5.3.0
Module: kamailio Branch: 5.3 Commit: 52dc42ef6e4929ce67403d43909df2f015146c5e URL: https://github.com/kamailio/kamailio/commit/52dc42ef6e4929ce67403d43909df2f015146c5e Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2019-10-17T13:20:27+02:00 Makefile.defs: version set to 5.3.0 - new major release --- Modified: src/Makefile.defs --- Diff: https://github.com/kamailio/kamailio/commit/52dc42ef6e4929ce67403d43909df2f015146c5e.diff Patch: https://github.com/kamailio/kamailio/commit/52dc42ef6e4929ce67403d43909df2f015146c5e.patch --- diff --git a/src/Makefile.defs b/src/Makefile.defs index e4d728dc2c..20593fe378 100644 --- a/src/Makefile.defs +++ b/src/Makefile.defs @@ -106,8 +106,8 @@ INSTALL_FLAVOUR=$(FLAVOUR) # version number VERSION = 5 PATCHLEVEL = 3 -SUBLEVEL = 0 -EXTRAVERSION = -rc1 +SUBLEVEL = 0 +EXTRAVERSION = # memory manager switcher # 0 - f_malloc (fast malloc) ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:5.3:4cc67ada: ChangeLog: content updated for v5.3.0
Module: kamailio Branch: 5.3 Commit: 4cc67ada604216d2a07def024302b3912ccc4e5d URL: https://github.com/kamailio/kamailio/commit/4cc67ada604216d2a07def024302b3912ccc4e5d Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2019-10-17T13:27:09+02:00 ChangeLog: content updated for v5.3.0 --- Modified: ChangeLog --- Diff: https://github.com/kamailio/kamailio/commit/4cc67ada604216d2a07def024302b3912ccc4e5d.diff Patch: https://github.com/kamailio/kamailio/commit/4cc67ada604216d2a07def024302b3912ccc4e5d.patch ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] removing 200-canceling response from kamailio
Hi how to remove the "200-canceling" response from kamailio it is very urgent. -- Thanks and regards Vinod.M.N ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] removing 200-canceling response from kamailio
vinod mn writes: > how to remove the "200-canceling" response from kamailio it is very > urgent. So you ask, how to make Kamailio break RFC3261? -- Juha ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] removing 200-canceling response from kamailio
May be yes.. For a cancel message from a user kamailio is send "200-canceling" so I want to supress this for some reasons. On Thu, Oct 17, 2019 at 5:25 PM Juha Heinanen wrote: > vinod mn writes: > > > how to remove the "200-canceling" response from kamailio it is very > > urgent. > > So you ask, how to make Kamailio break RFC3261? > > -- Juha > > ___ > Kamailio (SER) - Development Mailing List > sr-dev@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev > -- Thanks and regards Vinod.M.N ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] RPM repos at https://rpm.kamailio.org (#2084)
Hello, I see it that codefresh requires to login with external service (like github), but there is no one belonging to the project, each developer has its own github account. There is kamailio.dev used to push changes to README files, I will see if that can be used or we need to create a new dedicated github account. -- 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/2084#issuecomment-543147155___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] RPM repos at https://rpm.kamailio.org (#2084)
We can use kamailio-sync github user, but do We want to allow this? ![github](https://user-images.githubusercontent.com/63080/67008901-c931ac00-f0ea-11e9-8192-6cd59720c1f9.png) -- 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/2084#issuecomment-543152366___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] removing 200-canceling response from kamailio
vinod mn writes: > For a cancel message from a user kamailio is send "200-canceling" so I want > to supress this for some reasons. Relay the request statelessly and then on reply route drop the 200. -- Juha ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] Kamailio v5.3.0 Released - new major version is out
Kamailio v5.3.0 is out – it comes with 6 new modules and a considerable set of improvements touching more than 100 existing modules. You can read detailed release notes at: * https://www.kamailio.org/w/kamailio-v5-3-0-release-notes/ Many thanks to all developers and community members that made possible this release. v5.3.0 brings more flexibility and optimizations for KEMI interpreters, enhancements to load balancer, dialog tracking, uac remote registration and tls with libssl 1.1.x implementations, new variables, transformations and plenty of other new features. Enjoy Kamailio v5.3.0! Thank you for flying Kamailio! Daniel -- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] Kamailio v5.3.0 Released - new major version is out
congratulations!!! -- regards, abdul basit On Thu, 17 Oct 2019 at 18:11, Daniel-Constantin Mierla wrote: > Kamailio v5.3.0 is out – it comes with 6 new modules and a considerable > set of improvements touching more than 100 existing modules. > > You can read detailed release notes at: > >* https://www.kamailio.org/w/kamailio-v5-3-0-release-notes/ > > Many thanks to all developers and community members that made possible > this release. > > v5.3.0 brings more flexibility and optimizations for KEMI interpreters, > enhancements to load balancer, dialog tracking, uac remote registration > and tls with libssl 1.1.x implementations, new variables, > transformations and plenty of other new features. > > Enjoy Kamailio v5.3.0! > > Thank you for flying Kamailio! > Daniel > > -- > Daniel-Constantin Mierla -- www.asipto.com > www.twitter.com/miconda -- www.linkedin.com/in/miconda > > > ___ > Kamailio (SER) - Development Mailing List > sr-dev@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev > ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] dispatcher: ds_list_exist support pv as param (only logging level adjustment was kept) (#2099)
Hi Henning, I run info level logging often and this is the only module logging that level of verbosity. This seems like debug level to me. For me it means info level logging will now be filled with this lines. The function return the fact that the set exist or not, why would anyone use the logs. The most likely explanation is that the author forgot to lower the log level to debug. -- 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/2099#issuecomment-543294128___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] debian buster systemd pid file location
Looks like systemd service pid files should nowadays be placed in /run dir instead of /var/run. I noticed this when I got complaint about fail2ban to syslog: Oct 17 20:59:35 lab systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly. I haven't tried yet with Kamailio, but suspect that a similar warning would be issued. So how about making the change in https://github.com/kamailio/kamailio/blob/master/pkg/kamailio/deb/buster/kamailio.service -- Juha ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] pv: adding xavp_copy with destination index (#2097)
@jchavanton pushed 1 commit. d271fc6dd979aed4efd3edef388c672d65bc1485 pv: xavp_copy improved examples -- You are receiving this because you are subscribed to this thread. View it on GitHub: https://github.com/kamailio/kamailio/pull/2097/files/20a4f976e2a3825b2fa33b368fa38d03737e8a55..d271fc6dd979aed4efd3edef388c672d65bc1485 ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] pv: adding xavp_copy with destination index (#2097)
Just retested and verified the examples in the doc. I will merge shortly. -- 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/2097#issuecomment-543369218___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:master:e2a08a77: pv: xavp_copy improved examples
Module: kamailio Branch: master Commit: e2a08a77b03565c2bdc863f1aa7d9c5a22af4a7e URL: https://github.com/kamailio/kamailio/commit/e2a08a77b03565c2bdc863f1aa7d9c5a22af4a7e Author: Julien Chavanton Committer: Julien Chavanton Date: 2019-10-17T14:50:31-07:00 pv: xavp_copy improved examples --- Modified: src/modules/pv/doc/pv_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/e2a08a77b03565c2bdc863f1aa7d9c5a22af4a7e.diff Patch: https://github.com/kamailio/kamailio/commit/e2a08a77b03565c2bdc863f1aa7d9c5a22af4a7e.patch --- diff --git a/src/modules/pv/doc/pv_admin.xml b/src/modules/pv/doc/pv_admin.xml index c66f14df67..3fa032d864 100644 --- a/src/modules/pv/doc/pv_admin.xml +++ b/src/modules/pv/doc/pv_admin.xml @@ -290,22 +290,23 @@ $xavp(a=>x) = "a-0-x"; $xavp(a[0]=>y) = "a-0-y"; $xavp(a=>x) = "a-1-x"; $xavp(a[0]=>y) = "a-1-y"; -xinfo("$$xavp(a[0]) = [$xavp(a[0]=>x)][$xavp(a[0]=>y)]\n"); -xinfo("$$xavp(a[1]) = [$xavp(a[1]=>x)][$xavp(a[1]=>y)]\n"); +$xavp(a=>x) = "a-2-x"; +$xavp(a[0]=>y) = "a-2-y"; + +xinfo("BEFORE $xavp(a[0]=>x) == [a-2-x] == $xavp(a[0]=>y) == [a-2-y]\n"); +xinfo("BEFORE $xavp(a[1]=>x) == [a-1-x] == $xavp(a[1]=>y) == [a-1-y]\n"); +xinfo("BEFORE $xavp(a[2]=>x) == [a-0-x] == $xavp(a[2]=>y) == [a-0-y]\n"); # reorder $var(source_index) = 1; $var(destination_name) = "b"; +xavp_copy("a", "2", "b"); xavp_copy("a", "$var(source_index)", "$var(destination_name)"); xavp_copy("a", "0", "$var(destination_name)"); -xinfo("reordered: $$xavp(b[0]) = [$xavp(b[0]=>x)][$xavp(b[0]=>y)]\n"); -xinfo("reordered: $$xavp(b[1]) = [$xavp(b[1]=>x)][$xavp(b[1]=>y)]\n"); -# results in: -# INFO: $xavp(a[0]) = [a-1-x][a-1-y] -# INFO: $xavp(a[1]) = [a-0-x][a-0-y] -# INFO: reordered: $xavp(b[0]) = [a-0-x][a-0-y] -# INFO: reordered: $xavp(b[1]) = [a-1-x][a-1-y] +xinfo("AFTER $xavp(b[0]=>x) == [a-0-x] == $xavp(b[0]=>y) == [a-0-y]\n"); +xinfo("AFTER $xavp(b[1]=>x) == [a-1-x] == $xavp(b[1]=>y) == [a-1-y]\n"); +xinfo("AFTER $xavp(b[2]=>x) == [a-2-x] == $xavp(b[2]=>y) == [a-2-y]\n"); ... @@ -332,24 +333,24 @@ xinfo("reordered: $$xavp(b[1]) = [$xavp(b[1]=>x)][$xavp(b[1]=>y)]\n"); ... # Using xavp_copy to reorder an existing xavp stack inplace -$xavp(a=>x) = "a-0-x"; -$xavp(a[0]=>y) = "a-0-y"; -$xavp(a=>x) = "a-1-x"; -$xavp(a[0]=>y) = "a-1-y"; -$xavp(a=>x) = "a-2-x"; -$xavp(a[0]=>y) = "a-2-y"; +$xavp(d=>x) = "d-0-x"; +$xavp(d[0]=>y) = "d-0-y"; +$xavp(d=>x) = "d-1-x"; +$xavp(d[0]=>y) = "d-1-y"; +$xavp(d=>x) = "d-2-x"; +$xavp(d[0]=>y) = "d-2-y"; -# INFO: NEW $xavp(a[0]) = [a-2-x][a-2-y] -# INFO: NEW $xavp(a[1]) = [a-1-x][a-1-y] -# INFO: NEW $xavp(a[2]) = [a-0-x][a-0-y] +xinfo("NEW $xavp(d[0]=>x) == [d-2-x] and $xavp(d[0]=>y) == [d-2-y]\n"); +xinfo("NEW $xavp(d[1]=>x) == [d-1-x] and $xavp(d[1]=>y) == [d-1-y]\n"); +xinfo("NEW $xavp(d[2]=>x) == [d-0-x] and $xavp(d[2]=>y) == [d-0-y]\n"); -xavp_copy("a", "1", "c"); -xavp_copy("a", "2", "a", "1"); -xavp_copy("c", "0", "a", "2"); +xavp_copy("d", "0", "e"); +xavp_copy("d", "2", "d", "0"); +xavp_copy("e", "0", "d", "2"); -# INFO: AFTER $xavp(a[0]) = [a-2-x][a-2-y] -# INFO: AFTER $xavp(a[1]) = [a-0-x][a-0-y] -# INFO: AFTER $xavp(a[2]) = [a-1-x][a-1-y] +xinfo("AFTER $xavp(d[0]=>x) == [d-0-x] $xavp(d[0]=>y) == [d-0-y]\n"); +xinfo("AFTER $xavp(d[1]=>x) == [d-1-x] $xavp(d[1]=>y) == [d-1-y]\n"); +xinfo("AFTER $xavp(d[2]=>x) == [d-2-x] $xavp(d[2]=>y) == [d-2-y]\n"); ... ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:master:a6b11416: pv: adding xavp_copy with destination index
Module: kamailio Branch: master Commit: a6b114162ea830863abbd196508d4913060f3f07 URL: https://github.com/kamailio/kamailio/commit/a6b114162ea830863abbd196508d4913060f3f07 Author: Julien Chavanton Committer: Julien Chavanton Date: 2019-10-17T14:50:25-07:00 pv: adding xavp_copy with destination index --- Modified: src/modules/pv/doc/pv_admin.xml Modified: src/modules/pv/pv.c --- Diff: https://github.com/kamailio/kamailio/commit/a6b114162ea830863abbd196508d4913060f3f07.diff Patch: https://github.com/kamailio/kamailio/commit/a6b114162ea830863abbd196508d4913060f3f07.patch ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:master:90c7f756: modules: readme files regenerated - pv ... [skip ci]
Module: kamailio Branch: master Commit: 90c7f7564eb3e9d12f05a60041bbd4be63f336e5 URL: https://github.com/kamailio/kamailio/commit/90c7f7564eb3e9d12f05a60041bbd4be63f336e5 Author: Kamailio Dev Committer: Kamailio Dev Date: 2019-10-18T00:01:10+02:00 modules: readme files regenerated - pv ... [skip ci] --- Modified: src/modules/pv/README --- Diff: https://github.com/kamailio/kamailio/commit/90c7f7564eb3e9d12f05a60041bbd4be63f336e5.diff Patch: https://github.com/kamailio/kamailio/commit/90c7f7564eb3e9d12f05a60041bbd4be63f336e5.patch ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] dispatcher: ds_list_exist support pv as param (only logging level adjustment was kept) (#2099)
the `INFO` level for this message is actually misleading ops that get into panic saying `something's not working` when is perfectly normal not to have entries in some group. just merge it :) -- 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/2099#issuecomment-543399345___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] pv: adding xavp_copy with destination index (#2097)
merged ... -- 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/2097#issuecomment-543401016___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] pv: adding xavp_copy with destination index (#2097)
Closed #2097. -- 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/2097#event-2723028104___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:master:e7bbf352: pv: xavp_copy fix docs
Module: kamailio Branch: master Commit: e7bbf35275120d763e089a73362bbc7293511e91 URL: https://github.com/kamailio/kamailio/commit/e7bbf35275120d763e089a73362bbc7293511e91 Author: Julien Chavanton Committer: Julien Chavanton Date: 2019-10-17T16:22:04-07:00 pv: xavp_copy fix docs --- Modified: src/modules/pv/doc/pv_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/e7bbf35275120d763e089a73362bbc7293511e91.diff Patch: https://github.com/kamailio/kamailio/commit/e7bbf35275120d763e089a73362bbc7293511e91.patch --- diff --git a/src/modules/pv/doc/pv_admin.xml b/src/modules/pv/doc/pv_admin.xml index 3fa032d864..86186e02fe 100644 --- a/src/modules/pv/doc/pv_admin.xml +++ b/src/modules/pv/doc/pv_admin.xml @@ -311,7 +311,7 @@ xinfo("AFTER $xavp(b[2]=>x) == [a-2-x] == $xavp(b[2]=>y) == [a-2-y]\n"); - + xavp_copy(source_name, source_index, destination_name, destination_index) ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] [kamailio/kamailio] [Feature Request]: Add **connection** IP and Port vars (specifically for tcp_accept_haproxy=yes) (#2103)
### Description When using Kamailio with `tcp_accept_haproxy=yes`, the `$si` and `$sp` variables have the real IP & Port information from the original connection to the LB leaving no way to access the connection IP & Port from where the packet is received from Kamailio perspective. ### Possible Solutions Create two new pseudovariables that contain the connection IP & Port where the packet was received for use cases where `tcp_accept_haproxy=yes`. Suggested names (but could be any): $CI and $CP meaning -> Connection IP and Connection Port. ### Example With `tcp_accept_haproxy=yes`: UAC (1.1.1.1:45621) -> (2.2.2.2:5060) LB **with** Proxy Protocol (3.3.3.3:57482) -> (4.4.4.4:5060) Kamailio. ``` $si = 1.1.1.1 $sp = 45621 $CI = 3.3.3.3 $CP = 57482 ``` With `tcp_accept_haproxy=no`: UAC (1.1.1.1:45621) -> (2.2.2.2:5060) LB **without** Proxy Protocol (3.3.3.3:57482) -> (4.4.4.4:5060) Kamailio. ``` $si = 3.3.3.3 $sp = 57482 $CI = 3.3.3.3 $CP = 57482 ``` I don't think there is any way to get the `3.3.3.3:57482` IP and Port from the example above when using `tcp_accept_haproxy=yes` but I could be wrong. Thanks! Joel. -- 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/2103___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] removing 200-canceling response from kamailio
Hi how to remove the "200-canceling" response from kamailio it is very urgent. -- Thanks and regards Vinod.M.N ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [SR-Users] Releasing Kamailio v5.3.0
Hi Daniel, Will the kamailio-docker also be updated to the new version? Regards, Grant ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] dispatcher: ds_list_exist support pv as param (only logging level adjustment was kept) (#2099)
I consider it should be merged as well: there is no relevant need to have a log message other than debug to confirm one or the other goal of the function -- in this case the function is to detect if a destinations group exists or not, by returning appropriate code in each case, so custom log messages can be printed in config routing blocks. Anyhow, to differentiate between error and not found, I will change a bit the return codes. So, I am going to close this one and push a slightly different commit soon. -- 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/2099#issuecomment-543540072___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:master:fcabdc01: dispatcher: adjustments to ds_list_exist()
Module: kamailio Branch: master Commit: fcabdc012d5490cfc740d0e0773fd88ed07c2b64 URL: https://github.com/kamailio/kamailio/commit/fcabdc012d5490cfc740d0e0773fd88ed07c2b64 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2019-10-18T08:49:34+02:00 dispatcher: adjustments to ds_list_exist() - info log messages made debug - return -2 if evaluating the fixup param fails --- Modified: src/modules/dispatcher/dispatch.c Modified: src/modules/dispatcher/dispatcher.c --- Diff: https://github.com/kamailio/kamailio/commit/fcabdc012d5490cfc740d0e0773fd88ed07c2b64.diff Patch: https://github.com/kamailio/kamailio/commit/fcabdc012d5490cfc740d0e0773fd88ed07c2b64.patch --- diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c index 483ddb418f..18b713ce02 100644 --- a/src/modules/dispatcher/dispatch.c +++ b/src/modules/dispatcher/dispatch.c @@ -1482,16 +1482,16 @@ static inline int ds_get_index(int group, int ds_list_idx, ds_set_t **index) int ds_list_exist(int set) { ds_set_t *si = NULL; - LM_DBG("-- Looking for set %d\n", set); + LM_DBG("looking for destination set [%d]\n", set); /* get the index of the set */ si = ds_avl_find(_ds_list, set); if(si == NULL) { - LM_INFO("destination set [%d] not found\n", set); + LM_DBG("destination set [%d] not found\n", set); return -1; /* False */ } - LM_INFO("destination set [%d] found\n", set); + LM_DBG("destination set [%d] found\n", set); return 1; /* True */ } diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c index da5d4c8f62..0be0968ac2 100644 --- a/src/modules/dispatcher/dispatcher.c +++ b/src/modules/dispatcher/dispatcher.c @@ -1025,9 +1025,8 @@ static int w_ds_list_exist(struct sip_msg *msg, char *param, char *p2) if(fixup_get_ivalue(msg, (gparam_p)param, &set) != 0) { LM_ERR("cannot get set id param value\n"); - return -1; + return -2; } - LM_DBG("--- Looking for dispatcher set %d\n", set); return ds_list_exist(set); } ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:master:619b2603: dispatcher: docs - details of returned code by ds_list_exists()
Module: kamailio Branch: master Commit: 619b2603b486efea29fd314f360647f6d8ef3aec URL: https://github.com/kamailio/kamailio/commit/619b2603b486efea29fd314f360647f6d8ef3aec Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2019-10-18T08:52:23+02:00 dispatcher: docs - details of returned code by ds_list_exists() --- Modified: src/modules/dispatcher/doc/dispatcher_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/619b2603b486efea29fd314f360647f6d8ef3aec.diff Patch: https://github.com/kamailio/kamailio/commit/619b2603b486efea29fd314f360647f6d8ef3aec.patch --- diff --git a/src/modules/dispatcher/doc/dispatcher_admin.xml b/src/modules/dispatcher/doc/dispatcher_admin.xml index 823935b096..75d26de330 100644 --- a/src/modules/dispatcher/doc/dispatcher_admin.xml +++ b/src/modules/dispatcher/doc/dispatcher_admin.xml @@ -1529,6 +1529,11 @@ failure_route[tryagain] { + + It returns true (value 1) if the group exists, or otherwise false + (-1 when the group is not found; -2 when evaluating the parameter + fails). + This function can be used from ANY_ROUTE. ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev