#### Pre-Submission Checklist
- [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
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [X] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
- [ ] PR should be backported to stable branches
- [X] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
when handling non sip messages in a module thru the callback, if we return `NONSIP_MSG_DROP` the tcp/websocket connection is closed. this was observed when receiving non sip messages with websocket module.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2396
-- Commit Summary --
* core: don't close tcp connection for dropped non sip messages
-- File Changes --
M src/core/receive.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2396.patchhttps://github.com/kamailio/kamailio/pull/2396.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/2396
Module: kamailio
Branch: master
Commit: 491a8327933cb4471260fdd09ff93296a7a0ccfd
URL: https://github.com/kamailio/kamailio/commit/491a8327933cb4471260fdd09ff9329…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-14T09:22:12+02:00
misc/examples: kemi lua - added debug callback function
- commented - can be enabled to track the execution trace of the lua
script
---
Modified: misc/examples/kemi/kamailio-basic-kemi-lua.lua
---
Diff: https://github.com/kamailio/kamailio/commit/491a8327933cb4471260fdd09ff9329…
Patch: https://github.com/kamailio/kamailio/commit/491a8327933cb4471260fdd09ff9329…
---
diff --git a/misc/examples/kemi/kamailio-basic-kemi-lua.lua b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
index f5906d0bde..a896529965 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-lua.lua
+++ b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
@@ -12,6 +12,43 @@
-- the execution of the script. Use KSR.x.exit() after it or KSR.x.drop()
--
+-- debug callback function to print details of execution trace
+--[[
+local ksr_exec_level=0
+
+local function ksr_exec_hook(event)
+ local s = "";
+ local t = debug.getinfo(3)
+ s = s .. ksr_exec_level .. ">>> " .. string.rep(" ", ksr_exec_level);
+ if t~=nil and t.currentline>=0 then
+ s = s .. t.short_src .. ":" .. t.currentline .. " ";
+ end
+ t=debug.getinfo(2)
+ if event=="call" then
+ ksr_exec_level = ksr_exec_level + 1;
+ else
+ ksr_exec_level = ksr_exec_level - 1;
+ if ksr_exec_level < 0 then
+ ksr_exec_level = 0;
+ end
+ end
+ if t.what=="main" then
+ if event=="call" then
+ s = s .. "begin " .. t.short_src;
+ else
+ s = s .. "end " .. t.short_src;
+ end
+ elseif t.what=="Lua" then
+ s = s .. event .. " " .. t.name or "(Lua)" .. " <" .. t.linedefined .. ":" .. t.short_src .. ">";
+ else
+ s = s .. event .. " " .. t.name or "(C)" .. " [" .. t.what .. "] ";
+ end
+ KSR.info(s .. "\n");
+end
+
+debug.sethook(ksr_exec_hook, "cr")
+ksr_exec_level=0
+]]--
-- global variables corresponding to defined values (e.g., flags) in kamailio.cfg
FLT_ACC=1
<!-- 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)
- [ ] 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
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [X] 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 -->
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
- Adds a new methods_blacklist_auto modparam that allows to
ignore SIP method ids before mirroring traffic to a SIP capture
server when trace_mode=1.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2374
-- Commit Summary --
* siptrace: add methods_blacklist_auto modparam
-- File Changes --
M src/modules/siptrace/README (98)
M src/modules/siptrace/doc/siptrace_admin.xml (109)
M src/modules/siptrace/siptrace.c (56)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2374.patchhttps://github.com/kamailio/kamailio/pull/2374.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/2374