- URL: https://github.com/kamailio/kamailio/commit/7d67062d4d0bc310501dc4dd7d96b94…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:44:53+02:00
misc: examples/kemi - small typo in lua example
(cherry picked from commit c1d3fdb31871078b666278a933dbab20a0a8dca3)
(cherry picked from commit c90fb35fbd5091e929f8b3b5064d8fe9ef674487)
- URL: https://github.com/kamailio/kamailio/commit/41359f55bc70d32896b6a9bfa47ff33…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:45:11+02:00
tm: safety checks for branch request len
(cherry picked from commit c45913497f222c67bcccdbc8724b25bb083c556f)
(cherry picked from commit 4f9f7160511a5f9301e2fb5764d857f58eb8f95b)
- URL: https://github.com/kamailio/kamailio/commit/a79403f99a59b4cf829139ec1a0b326…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:45:43+02:00
evapi: cast to void* when printing logs with pointer value
(cherry picked from commit 4ad790f697554332ea590793d3ec56e13437e82f)
(cherry picked from commit 129986178fb1e11e1e3132155445c16f7ba8ac78)
- URL: https://github.com/kamailio/kamailio/commit/ea10a5f8f65a3bfa2c6a1dbbc413676…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:45:53+02:00
pua_reginfo: free xml doc in case of error
- a few whitespacing fixes
(cherry picked from commit 7ae675bd90b4420ebaa17768c97aa09219f53116)
(cherry picked from commit 88935e040472ac0b5633173dfcd97251c09fa5c2)
- URL: https://github.com/kamailio/kamailio/commit/8eb99e94d4cc8411b3265259429b664…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:46:33+02:00
outbound: pass recv info struct by address
- fix performance inefficiency for passing large structs by value
(cherry picked from commit 56ea88ef9a0628d7ca644f31840101ffe573e5c3)
(cherry picked from commit 40e3773f28faf392475b142f54f301d7c0ec6f6e)
- URL: https://github.com/kamailio/kamailio/commit/386285a75da5fec4e1bc44967200600…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:46:43+02:00
path: updates for outboud module api
(cherry picked from commit 97c7081df94eaabd8e48b084671ea831b5ec9024)
(cherry picked from commit 8ca76f01711e59fd1567bfcbd785cb0b7b8b3942)
- URL: https://github.com/kamailio/kamailio/commit/787a4726b85898c825e4782054a1e0c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:46:52+02:00
rr: updates for outboud module api
(cherry picked from commit 6aca846dce4b797a66aaa865fb5a1e81f7806b4c)
(cherry picked from commit 749dcc5b6d03889609685957538dc90bccce5703)
- URL: https://github.com/kamailio/kamailio/commit/82e8f89fe3f7f4268495a2260c06e3d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:47:08+02:00
core: define macro for signature to be used for server and user-agent
(cherry picked from commit d26ccdea61230bfc7720a2523c7b6dd8d2692d6d)
(cherry picked from commit 34eafd03b97c857682f9177ec4d7d1f983ff5bf2)
- URL: https://github.com/kamailio/kamailio/commit/6ee76b6f4aa3a0844a421f35447c009…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:47:21+02:00
websocket: use signature macro instead of offsetting inside server hdr define
- pass rcv info structure by address
- remove function name from logs
(cherry picked from commit c0e687d820f9bbf2b6b1ef6892e5b34c30f25a63)
(cherry picked from commit 3a288421dbbffca9952200533668a653d6a4c170)
- URL: https://github.com/kamailio/kamailio/commit/57ac3a5f94e07b4c7fe56edcd785b05…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:47:32+02:00
acc_diameter: use file specific include guard
(cherry picked from commit 3d73e8cb9f7431383c5a4ce798e2610f37ff92dc)
(cherry picked from commit 83f20f6b0e8a3e4a6c6b5351526f67b63f10da3e)
- URL: https://github.com/kamailio/kamailio/commit/f6a3e5827fc7c2b76dd7e35bc356657…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:47:43+02:00
auth_diameter: use file specific include guard
(cherry picked from commit 9053c70fe7e147b784c53a57014796282701c74d)
(cherry picked from commit a27d7da420ca0713201ca5f55ed79749d9ce213c)
- URL: https://github.com/kamailio/kamailio/commit/b986e1d41f46916f2e19fce8dade019…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:47:54+02:00
uid_uri_db: use file specific include guard
(cherry picked from commit 7749069cd05b9619ee32237773097441e241bac4)
(cherry picked from commit ac73bd096869a1cb13ba3145ad45a76838d023a9)
- URL: https://github.com/kamailio/kamailio/commit/e0bdfe73d8e6b8f07ac5838d3fe1ee8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:48:03+02:00
core: kemi - added missing is_MESSAGE()
- GH #2331
(cherry picked from commit 8db5a12f7fab1a1fc7d50c87bbf1aee325b067c2)
(cherry picked from commit b50e0041c0d485d82434381f66c1f6d21a2d003a)
- URL: https://github.com/kamailio/kamailio/commit/11c668e405e73d7cacd6579fe78608a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:48:12+02:00
core: kemi - added KSR.is_KDQM()
(cherry picked from commit 17d3040365400d14d251247c9c3319fc003f2cb2)
(cherry picked from commit fed572ae474ca95eb35f712a4173451a8f98d825)
- URL: https://github.com/kamailio/kamailio/commit/773908abccae6c6bcd3a50fb8a667ab…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:48:54+02:00
doc/docbook: added entities for kamctl and kamcli
(cherry picked from commit 80e46395a3a937a5c5691c438db11bc059be6b38)
(cherry picked from commit f53ad6d78d77d160682e151b92cba4dc8a0c2fba)
- URL: https://github.com/kamailio/kamailio/commit/0bd7c3ebb366024fbb49894d925b101…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:49:03+02:00
core: async task logging on no callback
(cherry picked from commit 8893e6f2b30577b065f11a406faf5c5935714f78)
(cherry picked from commit be5ded1ec663ba8b364e0bafaac1a07de1e656f5)
- URL: https://github.com/kamailio/kamailio/commit/244e6e35575bfa1e625cee41c39e924…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:49:18+02:00
tls: Makefile - option to link against libssl static libs
(cherry picked from commit 3e7278f28c43b830a197e2f7b212ec6f06e5acbf)
(cherry picked from commit 1f1b0517ddcb11c51e7211a902c2ca7eb338ef49)
- URL: https://github.com/kamailio/kamailio/commit/24a5582aefce2a4de39cd03441e6269…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:49:29+02:00
tls: better log messages when failing to create ssl ctx
(cherry picked from commit d2906da97d2429bfdff089203f933de2d282a86d)
(cherry picked from commit 7b241198698db2ee483be13ab87d4d5bb37c7d85)
- URL: https://github.com/kamailio/kamailio/commit/94baf1022b3e4fe1073015bbc4ae28e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:49:47+02:00
pv: removed commented code for retcode var - exported from core
(cherry picked from commit f658a7a8263efd4b0ed5816959741380a964221d)
(cherry picked from commit b80ed7c5220dda8ff73a8db48617d92b104b7482)
- URL: https://github.com/kamailio/kamailio/commit/db9cfcde555d63dcca0cd94d4c418cc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:50:00+02:00
ctl: renamed global io_h to clt_io_h
- tcp core also uses a glibal io_h
(cherry picked from commit 19b3deb88afe5d787ca366885c660e66f17c3409)
(cherry picked from commit dd59a3ac58253242257a8660310bb68274432ee3)
- URL: https://github.com/kamailio/kamailio/commit/f7260300a7dfb12ef7d5da97b6f05f5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:50:09+02:00
erlang: renamed global io_h to clt_io_h
- tcp core also uses a glibal io_h
(cherry picked from commit b6abc7618af7b8b3470e76aae7a0fd5ba0869949)
(cherry picked from commit c8f98ff7b7f734d0daa765cdb0332ea1952a97c7)
- URL: https://github.com/kamailio/kamailio/commit/91c4689744ff315cdc73cfce54b7614…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:50:23+02:00
core: io_wait.h - typedef fd_map_t, more details in log when is a fd conflict
(cherry picked from commit 50af00c7ef7037b6e55a3d3254a38935532bb0fa)
(cherry picked from commit 69dca2b460b7802eed50072e3672a20a249b8851)
- URL: https://github.com/kamailio/kamailio/commit/61c883255975395035943fb74f4f2b6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:50:35+02:00
core: tcp - log details of the exiting tcp connection on insert failure
(cherry picked from commit 4deb51419ab66931459709fe44acd3e7a0acc18d)
(cherry picked from commit be50e55355f1e33297121e0a7ac4c28fc4235e70)
- URL: https://github.com/kamailio/kamailio/commit/5920bc039ddc300fc7174feca9c8695…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:50:46+02:00
topos: allow 183 without contact header
- some UAs do not add it, even it can create the session for PRACK,
which requires it
(cherry picked from commit 785326cdfbee849a8436e7c07003ff0539d259cd)
(cherry picked from commit c09e2190a6e308e3446625afaaed5e9841883476)
- URL: https://github.com/kamailio/kamailio/commit/a456847533031d2af1b57017aa2ff26…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:51:48+02:00
app_python: check if f_code field in frame is set before using in log message
(cherry picked from commit b02c247023ea3ea0ef9753efdb04aff7d5d3bbb4)
(cherry picked from commit ed1fb65f4e8b63e66c3c80d6382a2d98046265ff)
- URL: https://github.com/kamailio/kamailio/commit/9e91083f62a9e6d79e4d3f6c88f0743…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:52:11+02:00
siputils: contact ops - removed old defines set on for very long time
- bits of formatting code and comments
(cherry picked from commit 2b8b2904399478984d3983ce447c98832419570a)
(cherry picked from commit c0097b69c78919262be2c9c4babb462bc9354e15)
- URL: https://github.com/kamailio/kamailio/commit/2c27b129d6187737fdebdd782698683…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:52:56+02:00
sipdump: make month in the file name from 1 to 12
- tm_mon is from 0-11
- backport of 97593d20875d26c38511f564fd7071bf79baa56b
(cherry picked from commit bfa58cdebc84aeca8220eb9d583b597706907a1d)
- URL: https://github.com/kamailio/kamailio/commit/4c67a6e3e45e0be06e55747e1c7603c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:53:36+02:00
pv: use SIP_REQUEST/SIP_REPLY for value of $mt
(cherry picked from commit 7e402da261e1ced56019037d3dce9e72b5b2b0ea)
(cherry picked from commit 9dff6197dcae5c4051194753382f95c5edaa379e)
- URL: https://github.com/kamailio/kamailio/commit/24e041cfc1060f01cb335abcffcde4d…
Author: Kristian F. Høgh <kfh(a)uni-tel.dk>
Date: 2020-07-16T17:53:56+02:00
registrar: expires_range should not make expires < min_expires
(cherry picked from commit c753932ebfa055d923c92b916937eec99cd14d23)
(cherry picked from commit a6f117620f97fd8dd22e160938d6d322cce955bd)
- URL: https://github.com/kamailio/kamailio/commit/3d868e5de0c9928c2a5f9b363600522…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:54:19+02:00
uac: docs - updated examples to use avps with string names
- the recommended format instead of interger ids
(cherry picked from commit 295e9a23df952bc98c2a2803d796e358363b2e22)
(cherry picked from commit d232e2e48b1b668270dcab419638adeffa5cf0b2)
- URL: https://github.com/kamailio/kamailio/commit/6ebb3c5d3dbaf6794f66b878678c6fa…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-07-16T17:54:46+02:00
cnxcc: remove useless warn messages
if the cid is not equal, an error message is going to be thrown.
Add more info in the later debug message.
(cherry picked from commit d6361c2e501cd9c08319f40897d765d1de1b1a32)
(cherry picked from commit 147e5dd582dc8e4a00e1ef5868cf2eb18c0c4dd0)
- URL: https://github.com/kamailio/kamailio/commit/0915bfbf47e9bb417033785d24a64bf…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:54:56+02:00
dialog: use the dlg hash table slot to unlock on dmq handling
- the dlg can be destroyed on dmq replication and unlocking may fail
(cherry picked from commit f4036c535033a333cb551b5af70703135305e7b3)
(cherry picked from commit 47e41a7cacab71f19e6c9c319d3ede83183e074d)
- URL: https://github.com/kamailio/kamailio/commit/56adcc0c2a1a8a42be526b1c1c8371f…
Author: Emmanuel Schmidbauer <emmanuel.schmidbauer(a)textnow.com>
Date: 2020-07-16T17:55:11+02:00
dialog: improve warning message to help better identify lookup failures
(cherry picked from commit c4684574e0e0e1cca4c1489a16513182f821a643)
(cherry picked from commit 15fbad460e4cd3187ff9103440ecd41eb427cf3a)
- URL: https://github.com/kamailio/kamailio/commit/8e4ec27eb9e81082981f48f481c1982…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:55:46+02:00
carrierroute: more details on error message checking file permissions
- GH #2369
(cherry picked from commit 31c7493d0d822239a76df4b504b2c319de09c19c)
(cherry picked from commit 77a8fab36f878938cfd1b630439b9d0bde2f975b)
- URL: https://github.com/kamailio/kamailio/commit/6b804b1d028d1c48afac100b85f60fc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:55:57+02:00
carrierroute: docs - note about config file ownership
- GH #2369
(cherry picked from commit 214c762c46d5cd5892d2ddc06a25193a01164e8b)
(cherry picked from commit 35d977aed4c7137d34d4cf8216d503ac48f1e423)
- URL: https://github.com/kamailio/kamailio/commit/df84ba18409d9180f3afee2cf3cdaf8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:56:25+02:00
jsonrpcs: more debug messages in case field of scanning failure
(cherry picked from commit 0a4fa9594d871a41c2ef6b811e2b342ed6ccfe09)
(cherry picked from commit 070efaa8497773c3a903c26d7f5f31632ad99703)
- URL: https://github.com/kamailio/kamailio/commit/5c297f25680f256f6f6a598cec61509…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:56:38+02:00
kamctl: set Path to '.' when parameter not set for 'ul add'
(cherry picked from commit 301525dfbbad2ffcec6738ef5eff952645ab9dfe)
(cherry picked from commit c33d634f400d5219dd1a820b209a123ef3e27020)
- URL: https://github.com/kamailio/kamailio/commit/33619b7465f3ec91225d4417e8c33cd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:56:53+02:00
usrloc: rpc scan flags, cflags and methods fields as unsigned int
(cherry picked from commit 2c622627ea145eddcf891ba9b89b756457074991)
(cherry picked from commit f959dec0c073c2b2dae904ee3d844872de989a2d)
- URL: https://github.com/kamailio/kamailio/commit/5853ffb449283c43dade2f4c50b95d7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:57:22+02:00
ims_charging: db_url param type set to PARAM_STR
- the variable pointer is str* not char*
- GH #2385
(cherry picked from commit 71bc55240a144dbad9d9d8afc942b81237c806d2)
(cherry picked from commit 3b2578660f8a2cfd528a425b833b8970662bf80a)
- URL: https://github.com/kamailio/kamailio/commit/c32f7956db220906fd97aa41d14e963…
Author: Jose Luis Verdeguer <pepeluxx(a)gmail.com>
Date: 2020-07-16T17:57:34+02:00
cnxcc: avoid duplicated call info
Don't store call if call-id is already registered for that client
(cherry picked from commit fb8cc72f1bd76bb2fd4d4e2e5fa2afc50eef59ad)
(cherry picked from commit 31055879fccd14659e378bc28a79df82aa9b446b)
- URL: https://github.com/kamailio/kamailio/commit/4a82f43fd5f69f367845be1abd2c237…
Author: Jose Luis Verdeguer <pepeluxx(a)gmail.com>
Date: 2020-07-16T17:57:46+02:00
cnxcc: update docs [skip ci]
* new error return values
* delete return value from set_max_credit not in code
(cherry picked from commit bc0264f4802c266901a1eb7a296f80f1dbfcc828)
(cherry picked from commit d14c2513390fb6e3bad2e73e6548d7e6e9232c46)
- URL: https://github.com/kamailio/kamailio/commit/3c49aff1d0ad7d59dfd219646e72924…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:58:14+02:00
lib/srdb1: init timeval structs to silent analyzer
(cherry picked from commit 0780e781c319254307c85bd873c58c6478a28da8)
(cherry picked from commit 6b438b9aad7044c79e4216d2c09ea95d5f0cc61c)
- URL: https://github.com/kamailio/kamailio/commit/208dec0a5b09cda7aeed33f80594976…
Author: kvrban <k.vrban(a)googlemail.com>
Date: 2020-07-16T17:58:26+02:00
tcpops: target variable passed on tcp_get_conid function was empty
(cherry picked from commit a2932492e24ac3c3afe4d33f025c7501c93fda49)
(cherry picked from commit 511719e61405bc7f718de180331c43c2883a62f5)
- URL: https://github.com/kamailio/kamailio/commit/ed095a9f353c521318b074bceee6280…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:58:39+02:00
core: tcp - more details on error log messages
(cherry picked from commit fefb3f1b2dbae8d9df24fecee763c5a1cd588107)
(cherry picked from commit f6ad586b6b461ff061428b4286521eb3d06de397)
- URL: https://github.com/kamailio/kamailio/commit/ed1dff3b5eb9060e909695d09e0dd17…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:58:50+02:00
core: tcp - safety checks on emptly local tcp connection list
(cherry picked from commit 67f9de8a946335e2bf16fe0e6063877cd4d51fb7)
(cherry picked from commit 003378f244d2c51773615905e7f98d3733b45b22)
- URL: https://github.com/kamailio/kamailio/commit/7250695b4d83ed8362f0848ff4cca8b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:59:07+02:00
core: tcp - test connection reference counter to avoid going negative
(cherry picked from commit 6a637cf84906ec5315c77e5458180f7d9d69a481)
(cherry picked from commit 55edf5e1ff6afc895f8263854cbfe6c98c6e4d72)
- URL: https://github.com/kamailio/kamailio/commit/e1193bd7ac659e58fdbf009c8982723…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:59:19+02:00
db_redis: use safer localtime_r() function
(cherry picked from commit 0cc1e167b9e54bb4a652162445efe89b02939eed)
(cherry picked from commit 8e849681b7da3f6d94576620019363faba0c111e)
- URL: https://github.com/kamailio/kamailio/commit/e89b9c4c53cc3dc9e8140f2cd08469f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:59:29+02:00
carrierroute: do not test return for strcpy() and strcat()
- they return the dst or src parameter, resulting in code analyzer
reporting
(cherry picked from commit 65159728a4425f45559de55fd5549731e717d74e)
(cherry picked from commit d597ecd290508b4be3dac459494db3d0eaffd6e7)
- URL: https://github.com/kamailio/kamailio/commit/940348fed8790aba3bb559ed879b6b8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:59:41+02:00
core: io wait - unhash in case delete operation fails because of EBADF
- EBADF: epfd or fd is not a valid file descriptor
(cherry picked from commit 846cc5b97a907b5314ccf03772776e0d23434042)
(cherry picked from commit dc040c863172f827a4b508cc04c29ee9e9b61c83)
- URL: https://github.com/kamailio/kamailio/commit/949beac64205de00a7a90141c3cf874…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:59:52+02:00
core: tcp - debug message when removing connection from list
(cherry picked from commit 317f707425a4cf0be144d2c874fcdf2ad8d7f992)
(cherry picked from commit 33ccba4be33fc24bd6a8c3539020b798f3e9a616)
- URL: https://github.com/kamailio/kamailio/commit/f1a7f58febc5698ee94f196de476ec5…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Date: 2020-07-16T18:00:02+02:00
core: don't close tcp connection for dropped non sip messages
(cherry picked from commit 007f98692bb6f7cb35adbb86ec6fb06f034614cc)
(cherry picked from commit 0cf30ae1c4128bca8882109ec34c34a2dd2b4cef)
(cherry picked from commit 2691b6a69bcddf0fd0daa92f27f27c6f8fb2a5a8)
- URL: https://github.com/kamailio/kamailio/commit/b4789a0a4c72818ab9ef5d26ee3d13b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T18:00:11+02:00
core: parser - trim trailing whitespaces in header name
(cherry picked from commit 7135feee9cdc93efa8c0c3e4abf24a9335ce42de)
(cherry picked from commit 63e227383d9c5112f287299981d217f1558a15a8)
(cherry picked from commit 434dfd38aad2a0e9115ceba55d871fba5d6628f2)
- URL: https://github.com/kamailio/kamailio/commit/27d5945103de6cc6c71cc1ebb2e3579…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T18:00:22+02:00
core: strutils - trim trailing spaces when comparing hdr names
(cherry picked from commit 6d76b79b81bf448fa1f34753c1d000dc6c1870e0)
(cherry picked from commit d0f7c7056b32351cac0b20ce24b074d9be8459a2)
(cherry picked from commit 340deabc375272dc3f0a921786890dab8ee778b3)
Module: kamailio
Branch: 5.4
Commit: afc66f390e135f091dfa7abcc058175817350589
URL: https://github.com/kamailio/kamailio/commit/afc66f390e135f091dfa7abcc058175…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:31:06+02:00
misc/examples: kemi lua - added debug callback function
- commented - can be enabled to track the execution trace of the lua
script
(cherry picked from commit 491a8327933cb4471260fdd09ff93296a7a0ccfd)
---
Modified: misc/examples/kemi/kamailio-basic-kemi-lua.lua
---
Diff: https://github.com/kamailio/kamailio/commit/afc66f390e135f091dfa7abcc058175…
Patch: https://github.com/kamailio/kamailio/commit/afc66f390e135f091dfa7abcc058175…
---
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
Module: kamailio
Branch: 5.4
Commit: 4f3c646772e3a6c769e8ff58bb42cf19186c39f4
URL: https://github.com/kamailio/kamailio/commit/4f3c646772e3a6c769e8ff58bb42cf1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-16T17:31:06+02:00
sipdump: docs - note about use of drop() in event route
(cherry picked from commit f984505b3ed41b7faf0fca5ab978c52240cd60a0)
---
Modified: src/modules/sipdump/doc/sipdump_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/4f3c646772e3a6c769e8ff58bb42cf1…
Patch: https://github.com/kamailio/kamailio/commit/4f3c646772e3a6c769e8ff58bb42cf1…
---
diff --git a/src/modules/sipdump/doc/sipdump_admin.xml b/src/modules/sipdump/doc/sipdump_admin.xml
index f783cb957f..0a603c2803 100644
--- a/src/modules/sipdump/doc/sipdump_admin.xml
+++ b/src/modules/sipdump/doc/sipdump_admin.xml
@@ -284,6 +284,10 @@ sipdump_send("cfg");
Executed when sipdump handles messages and mode parameter has flag 2 set.
The variable $sipdump(...) is available inside the event route.
</para>
+ <para>
+ If drop() is used in event_route, then writing to file is no longer
+ done when mode parameter has also the flag 1 set.
+ </para>
<programlisting format="linespecific">
...
event_route[sipdump:msg] {