[sr-dev] git:master:31d2e205: crypto: add crypto_hmac_sha256() function

2020-10-14 Thread Vitalii Aleksandrov
Module: kamailio Branch: master Commit: 31d2e205cb4c17631abe8458a8a3b80323910637 URL: https://github.com/kamailio/kamailio/commit/31d2e205cb4c17631abe8458a8a3b80323910637 Author: Vitalii Aleksandrov Committer: Vitalii Aleksandrov Date: 2020-10-13T15:07:16+03:00 crypto: add crypto_hmac_sha256()

Re: [sr-dev] event_route [xhttp:request] is not run

2020-10-14 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > I looked at the code and indeed there was an issue with the flag-based > protocol detection. I pushed a commit to fix it, let me know if works ok > now. Works now, thanks, -- Juha ___ Kamailio (SER) - Development Mai

Re: [sr-dev] event_route [xhttp:request] is not run

2020-10-14 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Actually that error message log is after non-sip msg callback. That part > should not be affected by my changes and execution should not get there > if xhttp module is properly loaded and configured. Can you check if > other error messages are printed? Maybe the

Re: [sr-dev] event_route [xhttp:request] is not run

2020-10-14 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > For the moment set core parameter: > > sip_parser_mode=0 Didn't help. Still Oct 14 20:53:47 lohi /usr/bin/sip-proxy[23198]: ERROR: [core/receive.c:356]: receive_msg(): no via found in request -- Juha ___ Kamaili

[sr-dev] event_route [xhttp:request] is not run

2020-10-14 Thread Juha Heinanen
With current master, event_route [xhttp:request] is not run. Instead error message shows up: Oct 14 20:00:48 lohi /usr/bin/sip-proxy[8820]: ERROR: [core/receive.c:356]: receive_msg(): no via found in request After spending one hour in trying to figure out, what is wrong in my config, I build K

Re: [sr-dev] [kamailio/kamailio] dispatcher: algorithm 13 latency optimized round-robin with failover (#2493)

2020-10-14 Thread lgtm-com[bot]
This pull request **introduces 1 alert** when merging dbfe2d8310ba009b5ececf2053ea50b7daf91cf5 into e3e6471b114b2358c20cbc9a60ee745ac1bce162 - [view on LGTM.com](https://lgtm.com/projects/g/kamailio/kamailio/rev/pr-ca081d1848726dda18d7eb8a3db9ae4f35f0b78c) **new alerts:** * 1 for Comparison re

Re: [sr-dev] event_route [xhttp:request] is not run

2020-10-14 Thread Daniel-Constantin Mierla
I looked at the code and indeed there was an issue with the flag-based protocol detection. I pushed a commit to fix it, let me know if works ok now. Cheers, Daniel On 14.10.20 20:16, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> Actually that error message log is after non-sip msg

[sr-dev] git:master:9a3b5d8c: core: fixed use of flags-based protocol detection

2020-10-14 Thread Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 9a3b5d8c017f4de6a647184b0a1c464de9671b74 URL: https://github.com/kamailio/kamailio/commit/9a3b5d8c017f4de6a647184b0a1c464de9671b74 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2020-10-14T20:18:39+02:00 core: fixed use of fla

Re: [sr-dev] event_route [xhttp:request] is not run

2020-10-14 Thread Daniel-Constantin Mierla
Actually that error message log is after non-sip msg callback. That part should not be affected by my changes and execution should not get there if xhttp module is properly loaded and configured. Can you check if other error messages are printed? Maybe the regression was introduced with flag-based

Re: [sr-dev] [kamailio/kamailio] dispatcher: algorithm 13 latency optimized round-robin with failover (#2493)

2020-10-14 Thread Julien Chavanton
@jchavanton pushed 1 commit. dbfe2d8310ba009b5ececf2053ea50b7daf91cf5 dispatcher: algorithm 13 -- You are receiving this because you are subscribed to this thread. View it on GitHub: https://github.com/kamailio/kamailio/pull/2493/files/f7c98e2fa2539f01d29335e0dcbed16eeac5c52e..dbfe2d8310ba009b

Re: [sr-dev] event_route [xhttp:request] is not run

2020-10-14 Thread Daniel-Constantin Mierla
For the moment set core parameter: sip_parser_mode=0 I will update the code to detect is http and skip strict checking. It is work-in-progress done during the last days when I added also faster flag-based protocol detection... Cheers, Daniel On 14.10.20 19:09, Juha Heinanen wrote: > With curren

[sr-dev] pstn_route add_route(): route name not defined error

2020-10-14 Thread sai Sudheer
Hii,I am trying to use pstn_route module for the first time, and i want to route the invite to specific pstn server based on its prefix.I have loaded the module & setup the DB, and it's giving error saying route name (from DB) is not defined after adding the a prefix into DB table., and there we

Re: [sr-dev] [kamailio/kamailio] Kamailio Crash (#2494)

2020-10-14 Thread iliesh
(gdb) frame 0 ``` #0 0x7fe8703c342d in update_dialog_vars_dbinfo (cell=0x7fe8765627b8, var=0x7574617473706973) at dlg_db_handler.c:755 755 SET_STR_VALUE(values+2, var->key); ``` (gdb) p *var ``` Cannot access memory at address 0x7574617473706973 ``` (gdb) p full_version ``` $1 =

Re: [sr-dev] [kamailio/kamailio] Kamailio Crash (#2494)

2020-10-14 Thread Daniel-Constantin Mierla
The commit e4cf6739e62c2ac1e5364315aaed1a7b73919253, which introduced changes as in second c code snippet, was done few days after you opened this issue, so it was crashing before it, this one being an attempt to fix it. Can you get from the last core file the gdb output for: ``` frame 0 p *var

Re: [sr-dev] [kamailio/kamailio] Kamailio Crash (#2494)

2020-10-14 Thread iliesh
I have 2 different versions of Kamailio running on 2 different boxes, on one of them I have version: ``` version: kamailio 5.4.1 (x86_64/linux) a6cb74 ``` which works fine, but on another one I have version: ``` version: kamailio 5.4.1 (x86_64/linux) a505f5 ``` which is crashing. Then looks that

Re: [sr-dev] git:master:573a5667: pv: new function xavp_slist_explode("slist", "sep", "mode", "xname")

2020-10-14 Thread Daniel-Constantin Mierla
Welcome! Note that I just pushed a new commit changing a bit the behaviour, now storing tokens in an xavp sublist, to keep the root list smaller. Docs were update as well. Cheers, Daniel On 14.10.20 15:57, Alex Balashov wrote: > Very useful! Saves a lot of effort in having to do this manually al

[sr-dev] git:master:e3e6471b: modules: readme files regenerated - pv ... [skip ci]

2020-10-14 Thread Kamailio Dev
Module: kamailio Branch: master Commit: e3e6471b114b2358c20cbc9a60ee745ac1bce162 URL: https://github.com/kamailio/kamailio/commit/e3e6471b114b2358c20cbc9a60ee745ac1bce162 Author: Kamailio Dev Committer: Kamailio Dev Date: 2020-10-14T16:16:29+02:00 modules: readme files regenerated - pv ... [sk

[sr-dev] git:master:695448dc: pv: exported xavp_slist_explode() to kemi

2020-10-14 Thread Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 695448dc49812225c743e385edf846405c94b3e2 URL: https://github.com/kamailio/kamailio/commit/695448dc49812225c743e385edf846405c94b3e2 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2020-10-14T16:15:09+02:00 pv: exported xavp_slis

[sr-dev] git:master:d2c444c5: pv: docs - reflect use of xavp fields for tokens by xavp_slist_explode()

2020-10-14 Thread Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: d2c444c58b8f6f084f27e0129dc0cf02dfb6f7ba URL: https://github.com/kamailio/kamailio/commit/d2c444c58b8f6f084f27e0129dc0cf02dfb6f7ba Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2020-10-14T16:13:19+02:00 pv: docs - reflect use

[sr-dev] git:master:2b4ec1cf: pv: xavp_slist_explode() stores tockes in xavp fields

2020-10-14 Thread Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 2b4ec1cf1d30f5520ef68f9e7e653100fa8ce68e URL: https://github.com/kamailio/kamailio/commit/2b4ec1cf1d30f5520ef68f9e7e653100fa8ce68e Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2020-10-14T16:13:19+02:00 pv: xavp_slist_explode

[sr-dev] git:master:75d4082e: modules: readme files regenerated - pv ... [skip ci]

2020-10-14 Thread Kamailio Dev
Module: kamailio Branch: master Commit: 75d4082e510948f88f7254e22c05a02118260041 URL: https://github.com/kamailio/kamailio/commit/75d4082e510948f88f7254e22c05a02118260041 Author: Kamailio Dev Committer: Kamailio Dev Date: 2020-10-14T16:01:13+02:00 modules: readme files regenerated - pv ... [sk

Re: [sr-dev] git:master:573a5667: pv: new function xavp_slist_explode("slist", "sep", "mode", "xname")

2020-10-14 Thread Alex Balashov
Very useful! Saves a lot of effort in having to do this manually all over the place. Thank you! — Sent from mobile, with due apologies for brevity and errors. > On Oct 14, 2020, at 9:56 AM, Daniel-Constantin Mierla > wrote: > > Module: kamailio > Branch: master > Commit: 573a56676ac116714689

[sr-dev] git:master:573a5667: pv: new function xavp_slist_explode("slist", "sep", "mode", "xname")

2020-10-14 Thread Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 573a56676ac11671468903a83efdfbbe6fb0dff0 URL: https://github.com/kamailio/kamailio/commit/573a56676ac11671468903a83efdfbbe6fb0dff0 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2020-10-14T15:45:08+02:00 pv: new function xavp_

[sr-dev] git:master:df63402a: pv: docs for xvp_slist_explode()

2020-10-14 Thread Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: df63402a57a7ef6da0d2eb3f88ee68c116c38549 URL: https://github.com/kamailio/kamailio/commit/df63402a57a7ef6da0d2eb3f88ee68c116c38549 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2020-10-14T15:55:29+02:00 pv: docs for xvp_slist

Re: [sr-dev] [kamailio/kamailio] etc: kamailio.cfg Make the FLAGS declaration slightly clearer (#2500)

2020-10-14 Thread Daniel-Constantin Mierla
The guidelines are for commit message, not for pull request title and comments. I made the proposed change manually myself this time, see commit 59b4a820aba7487552e98c8b082e7abd56fa8e81 . -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view

Re: [sr-dev] [kamailio/kamailio] Kamailio Crash (#2494)

2020-10-14 Thread Daniel-Constantin Mierla
The second snippet is in the master branch as well as in the 5.4. I did a diff to src/modules/dialog/dlg_var.c and is identical in the two branches. And it is safer than the first snippet, if still crashes it is not from there net. Or maybe you mixed the versions and what you wanted to write? -

[sr-dev] how to get a value from SIP INVITE Header

2020-10-14 Thread sai sudheer
Hii Please help me to get the a value from SIP INVITE header reached to kamailio like INVITE sip:+341930203...@sub.domain.com;myid=+3...@sub.domain.com SIP/2.0 and i want to save the myid value +34 into a variable, without the domain name.      $var(uri) = $sel(ruri);      xavp_params_explode

Re: [sr-dev] [kamailio/kamailio] Kamailio Crash (#2494)

2020-10-14 Thread iliesh
Hi, Unfortunately, this issue is still persisting, Kamailio crashed again twice with the same symptoms. /usr/local/sbin/kamailio -V ``` version: kamailio 5.4.1 (x86_64/linux) f57c90 ``` (gdb) frame 0 ``` #0 0x7fe8703c342d in update_dialog_vars_dbinfo (cell=0x7fe8765627b8, var=0x757461747370

Re: [sr-dev] [kamailio/kamailio] Kamailio Crash (#2494)

2020-10-14 Thread iliesh
Reopened #2494. -- 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/2494#event-3875739443___ Kamailio (SER) - Development Mailing List sr-dev

[sr-dev] git:master:b0b2ab6d: modules: readme files regenerated - registrar ... [skip ci]

2020-10-14 Thread Kamailio Dev
Module: kamailio Branch: master Commit: b0b2ab6d2ebdabb64a054b47ee68a3276de71185 URL: https://github.com/kamailio/kamailio/commit/b0b2ab6d2ebdabb64a054b47ee68a3276de71185 Author: Kamailio Dev Committer: Kamailio Dev Date: 2020-10-14T11:46:17+02:00 modules: readme files regenerated - registrar

Re: [sr-dev] [kamailio/kamailio] registrar: added new parameter sock_addr (#2498)

2020-10-14 Thread Daniel-Constantin Mierla
Renamed the mod param to `sock_mode` and advertised address is stored when this param is set to 1. See docs for more details. If any problem with it, then open a bug in the tracker. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on G

[sr-dev] git:master:b495a00c: registrar: docs updated to reflect sock_mode parameter

2020-10-14 Thread Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: b495a00c9a6fb2e073e7bd2a2b394facc9d76ea5 URL: https://github.com/kamailio/kamailio/commit/b495a00c9a6fb2e073e7bd2a2b394facc9d76ea5 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2020-10-14T11:34:03+02:00 registrar: docs update

[sr-dev] git:master:32bf022a: registrar: renamed parameter to use advertise addr for socket

2020-10-14 Thread Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 32bf022ad48ff1d7ac02ce2201373e8b684d4f6f URL: https://github.com/kamailio/kamailio/commit/32bf022ad48ff1d7ac02ce2201373e8b684d4f6f Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2020-10-14T11:31:52+02:00 registrar: renamed par

[sr-dev] git:master:28e69c4c: modules: readme files regenerated - crypto ... [skip ci]

2020-10-14 Thread Kamailio Dev
Module: kamailio Branch: master Commit: 28e69c4cf214cbedb17ddccbf88a4acf8456adeb URL: https://github.com/kamailio/kamailio/commit/28e69c4cf214cbedb17ddccbf88a4acf8456adeb Author: Kamailio Dev Committer: Kamailio Dev Date: 2020-10-14T11:31:20+02:00 modules: readme files regenerated - crypto ...

Re: [sr-dev] [kamailio/kamailio] registrar: added new parameter sock_addr (#2498)

2020-10-14 Thread Daniel-Constantin Mierla
Merged #2498 into master. -- 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/2498#event-3875587657___ Kamailio (SER) - Development Mailing Lis

[sr-dev] git:master:e3ec71b4: registrar: added option to store advertised address in socket field (#2498)

2020-10-14 Thread GitHub
Module: kamailio Branch: master Commit: e3ec71b45181c2413b4aba4e2ea5e1b371a6da56 URL: https://github.com/kamailio/kamailio/commit/e3ec71b45181c2413b4aba4e2ea5e1b371a6da56 Author: Konstantin Committer: GitHub Date: 2020-10-14T11:22:20+02:00 registrar: added option to store advertised address in

Re: [sr-dev] [kamailio/kamailio] registrar: added new parameter sock_addr (#2498)

2020-10-14 Thread Daniel-Constantin Mierla
Thanks! I will squash and merge, but I plan to do some changes to this code to make it a bit more open for extensions in the future (e.g., maybe one wants to store socket name at some point). -- You are receiving this because you are subscribed to this thread. Reply to this email directly or vi

Re: [sr-dev] [kamailio/kamailio] crypto: add crypto_hmac_sha256() function (#2505)

2020-10-14 Thread Daniel-Constantin Mierla
Merged #2505 into master. -- 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/2505#event-3875562938___ Kamailio (SER) - Development Mailing Lis

Re: [sr-dev] [kamailio/kamailio] crypto: add crypto_hmac_sha256() function (#2505)

2020-10-14 Thread Daniel-Constantin Mierla
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/pull/2505#issuecomment-708273831___ Kamailio (SER) - Development Mailing List sr-dev@lis

[sr-dev] git:master:e7fe760e: Merge pull request #2505 from vitalikvoip/master

2020-10-14 Thread GitHub
Module: kamailio Branch: master Commit: e7fe760e6a4a0f0c5eaedd0eb3530c5b3e1c7d05 URL: https://github.com/kamailio/kamailio/commit/e7fe760e6a4a0f0c5eaedd0eb3530c5b3e1c7d05 Author: Daniel-Constantin Mierla Committer: GitHub Date: 2020-10-14T11:16:44+02:00 Merge pull request #2505 from vitalikvoi

Re: [sr-dev] [kamailio/kamailio] etc: kamailio.cfg Make the FLAGS declaration slightly clearer (#2500)

2020-10-14 Thread Daniel-Constantin Mierla
Closed #2500. -- 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/2500#event-3875556090___ Kamailio (SER) - Development Mailing List sr-dev@lis

[sr-dev] git:master:59b4a820: etc: kamailio.cfg - relocated comment related to branch flags

2020-10-14 Thread Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 59b4a820aba7487552e98c8b082e7abd56fa8e81 URL: https://github.com/kamailio/kamailio/commit/59b4a820aba7487552e98c8b082e7abd56fa8e81 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2020-10-14T11:13:01+02:00 etc: kamailio.cfg - re