kamailio.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
List overview
Download
sr-dev
June 2023
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
sr-dev@lists.kamailio.org
10 participants
308 discussions
Start a n
N
ew thread
git:master:3bc5a577: modules: readme files regenerated - microhttpd ... [skip ci]
by Kamailio Dev
Module: kamailio Branch: master Commit: 3bc5a5775c490d0bfd43030f7eb437ead0d86d89 URL:
https://github.com/kamailio/kamailio/commit/3bc5a5775c490d0bfd43030f7eb437e…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org> Committer: Kamailio Dev <kamailio.dev(a)kamailio.org> Date: 2023-06-27T13:32:05+02:00 modules: readme files regenerated - microhttpd ... [skip ci] --- Modified: src/modules/microhttpd/README --- Diff:
https://github.com/kamailio/kamailio/commit/3bc5a5775c490d0bfd43030f7eb437e…
Patch:
https://github.com/kamailio/kamailio/commit/3bc5a5775c490d0bfd43030f7eb437e…
--- diff --git a/src/modules/microhttpd/README b/src/modules/microhttpd/README index f568f0aa8a..d4ed745ec2 100644 --- a/src/modules/microhttpd/README +++ b/src/modules/microhttpd/README @@ -26,10 +26,21 @@ Daniel-Constantin Mierla 3. Parameters 3.1. listen_port (int) + 3.2. event_callback (str) + + 4. Functions + + 4.1. mhttpd_reply(code, reason, ctype, body) + + 5. Event Routes + + 5.1. microhttpd:request List of Examples 1.1. Set listen_port parameter + 1.2. Set event_callback parameter + 1.3. mhttpd_reply usage Chapter 1. Admin Guide @@ -44,6 +55,15 @@ Chapter 1. Admin Guide 3. Parameters 3.1. listen_port (int) + 3.2. event_callback (str) + + 4. Functions + + 4.1. mhttpd_reply(code, reason, ctype, body) + + 5. Event Routes + + 5.1. microhttpd:request 1. Overview @@ -68,6 +88,7 @@ Chapter 1. Admin Guide 3. Parameters 3.1. listen_port (int) + 3.2. event_callback (str) 3.1. listen_port (int) @@ -79,3 +100,60 @@ Chapter 1. Admin Guide ... modparam("microhttpd", "listen_port", 8284) ... + +3.2. event_callback (str) + + The name of the function in the kemi configuration file (embedded + scripting language such as Lua, Python, ...) to be executed instead of + event_route[microhttpd:request] block. + + The function has one string parameter with the value + "microhttpd:request". + + Default value is 'empty' (no function is executed for events). + + Example 1.2. Set event_callback parameter +... +modparam("microhttpd", "event_callback", "ksr_microhttpd_event") +... +-- event callback function implemented in Lua +function ksr_microhttpd_event(evname) + KSR.info("===== microhttpd module triggered event: " .. evname .. "\n"); + return 1; +end +... + +4. Functions + + 4.1. mhttpd_reply(code, reason, ctype, body) + +4.1. mhttpd_reply(code, reason, ctype, body) + + Send back a reply with content-type and body. + + Example 1.3. mhttpd_reply usage +... +event_route[microhttpd:request] { + mhttpd_reply("200", "OK", "text/html", + "<html><body>OK</body></html>"); +} +... + +5. Event Routes + + 5.1. microhttpd:request + +5.1. microhttpd:request + + The event route is executed when a new HTTP request is received. +... +... +loadmodule "microhttpd.so +... +event_route[microhttpd:request] { + xinfo("request: $mhttpd(method) - url: $mhttpd(url) - data: [$mhttpd(data)]\ +n"); + mhttpd_reply("200", "OK", "text/html", + "<html><body>OK</body></html>"); +} +...
1 year, 5 months
1
0
0
0
git:master:5ba80fdb: microhttpd: docs - updates with parameters, functions and event routes
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 5ba80fdb5f549f26fad974965f5172834719e9ca URL:
https://github.com/kamailio/kamailio/commit/5ba80fdb5f549f26fad974965f51728…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2023-06-27T13:22:39+02:00 microhttpd: docs - updates with parameters, functions and event routes --- Modified: src/modules/microhttpd/doc/microhttpd_admin.xml --- Diff:
https://github.com/kamailio/kamailio/commit/5ba80fdb5f549f26fad974965f51728…
Patch:
https://github.com/kamailio/kamailio/commit/5ba80fdb5f549f26fad974965f51728…
--- diff --git a/src/modules/microhttpd/doc/microhttpd_admin.xml b/src/modules/microhttpd/doc/microhttpd_admin.xml index 9d51c7ec2f4..4efe9d2511a 100644 --- a/src/modules/microhttpd/doc/microhttpd_admin.xml +++ b/src/modules/microhttpd/doc/microhttpd_admin.xml @@ -50,7 +50,8 @@ </para> </section> </section> -<section> + + <section> <title>Parameters</title> <section id="microhttpd.p.listen"> <title><varname>listen_port</varname> (int)</title> @@ -71,7 +72,84 @@ modparam("microhttpd", "listen_port", 8284) </programlisting> </example> </section> + <section id="microhttpd.p.event_callback"> + <title><varname>event_callback</varname> (str)</title> + <para> + The name of the function in the kemi configuration file (embedded + scripting language such as Lua, Python, ...) to be executed instead + of event_route[microhttpd:request] block. + </para> + <para> + The function has one string parameter with the value "microhttpd:request". + </para> + <para> + <emphasis> + Default value is 'empty' (no function is executed for events). + </emphasis> + </para> + <example> + <title>Set <varname>event_callback</varname> parameter</title> + <programlisting format="linespecific"> +... +modparam("microhttpd", "event_callback", "ksr_microhttpd_event") +... +-- event callback function implemented in Lua +function ksr_microhttpd_event(evname) + KSR.info("===== microhttpd module triggered event: " .. evname .. "\n"); + return 1; +end +... +</programlisting> + </example> + </section> + </section> + + <section> + <title>Functions</title> + <section id="microhttpd.f.mhttpd_reply"> + <title> + <function moreinfo="none">mhttpd_reply(code, reason, ctype, body)</function> + </title> + <para> + Send back a reply with content-type and body. + </para> + <example> + <title><function>mhttpd_reply</function> usage</title> + <programlisting format="linespecific"> +... +event_route[microhttpd:request] { + mhttpd_reply("200", "OK", "text/html", + "<html><body>OK</body></html>"); +} +... +</programlisting> + </example> + </section> + </section> + <section> + <title>Event Routes</title> + <section id="microhttpd.evr.request"> + <title> + <function moreinfo="none">microhttpd:request</function> + </title> + <para> + The event route is executed when a new HTTP request is received. + </para> + <programlisting format="linespecific"> +... +... +loadmodule "microhttpd.so +... +event_route[microhttpd:request] { + xinfo("request: $mhttpd(method) - url: $mhttpd(url) - data: [$mhttpd(data)]\n"); + mhttpd_reply("200", "OK", "text/html", + "<html><body>OK</body></html>"); +} +... + </programlisting> </section> + </section> + </chapter>
1 year, 5 months
1
0
0
0
git:master:b22f3718: microhttpd: implemented request handler callback
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: b22f3718d8fc23860eafb8d1fb17d7ff4ec532ec URL:
https://github.com/kamailio/kamailio/commit/b22f3718d8fc23860eafb8d1fb17d7f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2023-06-27T13:14:44+02:00 microhttpd: implemented request handler callback - execute event_route[microhttpd:request] when receiving an HTTP request --- Modified: src/modules/microhttpd/microhttpd_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/b22f3718d8fc23860eafb8d1fb17d7f…
Patch:
https://github.com/kamailio/kamailio/commit/b22f3718d8fc23860eafb8d1fb17d7f…
1 year, 5 months
1
0
0
0
git:5.4:dc938876: utils/kamcmd: fix memory leak
by Victor Seva
Module: kamailio Branch: 5.4 Commit: dc938876d4434afe649a374979fcca4bb4b1f103 URL:
https://github.com/kamailio/kamailio/commit/dc938876d4434afe649a374979fcca4…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2023-06-27T13:01:48+02:00 utils/kamcmd: fix memory leak fixes #3478 (cherry picked from commit badc81cb427ba5aaf03ca26e4c2654d58ee08588) (cherry picked from commit 402bab6f63b515a13a72ac2dad6e40075ded1479) --- Modified: utils/kamcmd/kamcmd.c --- Diff:
https://github.com/kamailio/kamailio/commit/dc938876d4434afe649a374979fcca4…
Patch:
https://github.com/kamailio/kamailio/commit/dc938876d4434afe649a374979fcca4…
--- diff --git a/utils/kamcmd/kamcmd.c b/utils/kamcmd/kamcmd.c index eee600c9abc..489ac08af16 100644 --- a/utils/kamcmd/kamcmd.c +++ b/utils/kamcmd/kamcmd.c @@ -1399,6 +1399,8 @@ void free_cfg_grp_lst() while(grp){ last=grp; grp=grp->next; + if(last->var_names) + free(last->var_names); free(last); } cfg_grp_lst=0;
1 year, 5 months
1
0
0
0
git:5.5:f39f320b: utils/kamcmd: fix memory leak
by Victor Seva
Module: kamailio Branch: 5.5 Commit: f39f320b6be93eb20936805b4e0396ce48da7985 URL:
https://github.com/kamailio/kamailio/commit/f39f320b6be93eb20936805b4e0396c…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2023-06-27T13:01:24+02:00 utils/kamcmd: fix memory leak fixes #3478 (cherry picked from commit badc81cb427ba5aaf03ca26e4c2654d58ee08588) (cherry picked from commit 402bab6f63b515a13a72ac2dad6e40075ded1479) --- Modified: utils/kamcmd/kamcmd.c --- Diff:
https://github.com/kamailio/kamailio/commit/f39f320b6be93eb20936805b4e0396c…
Patch:
https://github.com/kamailio/kamailio/commit/f39f320b6be93eb20936805b4e0396c…
--- diff --git a/utils/kamcmd/kamcmd.c b/utils/kamcmd/kamcmd.c index 2d1cd9c93be..b302c4a6dad 100644 --- a/utils/kamcmd/kamcmd.c +++ b/utils/kamcmd/kamcmd.c @@ -1399,6 +1399,8 @@ void free_cfg_grp_lst() while(grp){ last=grp; grp=grp->next; + if(last->var_names) + free(last->var_names); free(last); } cfg_grp_lst=0;
1 year, 5 months
1
0
0
0
git:5.6:edd4744a: utils/kamcmd: fix memory leak
by Victor Seva
Module: kamailio Branch: 5.6 Commit: edd4744a4cd7be96549f5515512187b801335d66 URL:
https://github.com/kamailio/kamailio/commit/edd4744a4cd7be96549f5515512187b…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2023-06-27T13:00:56+02:00 utils/kamcmd: fix memory leak fixes #3478 (cherry picked from commit badc81cb427ba5aaf03ca26e4c2654d58ee08588) (cherry picked from commit 402bab6f63b515a13a72ac2dad6e40075ded1479) --- Modified: utils/kamcmd/kamcmd.c --- Diff:
https://github.com/kamailio/kamailio/commit/edd4744a4cd7be96549f5515512187b…
Patch:
https://github.com/kamailio/kamailio/commit/edd4744a4cd7be96549f5515512187b…
--- diff --git a/utils/kamcmd/kamcmd.c b/utils/kamcmd/kamcmd.c index 459fbfc30ae..e5b91430360 100644 --- a/utils/kamcmd/kamcmd.c +++ b/utils/kamcmd/kamcmd.c @@ -1403,6 +1403,8 @@ void free_cfg_grp_lst() while(grp){ last=grp; grp=grp->next; + if(last->var_names) + free(last->var_names); free(last); } cfg_grp_lst=0;
1 year, 5 months
1
0
0
0
git:5.7:402bab6f: utils/kamcmd: fix memory leak
by Victor Seva
Module: kamailio Branch: 5.7 Commit: 402bab6f63b515a13a72ac2dad6e40075ded1479 URL:
https://github.com/kamailio/kamailio/commit/402bab6f63b515a13a72ac2dad6e400…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2023-06-27T12:58:17+02:00 utils/kamcmd: fix memory leak fixes #3478 (cherry picked from commit badc81cb427ba5aaf03ca26e4c2654d58ee08588) --- Modified: utils/kamcmd/kamcmd.c --- Diff:
https://github.com/kamailio/kamailio/commit/402bab6f63b515a13a72ac2dad6e400…
Patch:
https://github.com/kamailio/kamailio/commit/402bab6f63b515a13a72ac2dad6e400…
--- diff --git a/utils/kamcmd/kamcmd.c b/utils/kamcmd/kamcmd.c index f3a3a19f11f..97e0a7311d1 100644 --- a/utils/kamcmd/kamcmd.c +++ b/utils/kamcmd/kamcmd.c @@ -1403,6 +1403,8 @@ void free_cfg_grp_lst() while(grp){ last=grp; grp=grp->next; + if(last->var_names) + free(last->var_names); free(last); } cfg_grp_lst=0;
1 year, 5 months
1
0
0
0
git:master:777ecf6b: github: don't execute codeql for each push [skip ci]
by Victor Seva
Module: kamailio Branch: master Commit: 777ecf6bd8735538bf61f4f6e10d46ad7c39981b URL:
https://github.com/kamailio/kamailio/commit/777ecf6bd8735538bf61f4f6e10d46a…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2023-06-27T10:01:27+02:00 github: don't execute codeql for each push [skip ci] * set schedule cifuzz and codeql --- Modified: .github/workflows/cifuzz.yml Modified: .github/workflows/codeql.yml --- Diff:
https://github.com/kamailio/kamailio/commit/777ecf6bd8735538bf61f4f6e10d46a…
Patch:
https://github.com/kamailio/kamailio/commit/777ecf6bd8735538bf61f4f6e10d46a…
--- diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml index f44d25e808..d376f8a1b3 100644 --- a/.github/workflows/cifuzz.yml +++ b/.github/workflows/cifuzz.yml @@ -1,5 +1,9 @@ name: CIFuzz -on: [pull_request] +on: + pull_request: + branches: [ "master" ] + schedule: + - cron: "30 0 * * *" permissions: contents: read jobs: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 60d66b6996..5fde27446e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,13 +1,10 @@ name: "CodeQL" on: - push: - branches-ignore: - - 'dependabot/**' pull_request: branches: [ "master" ] schedule: - - cron: "35 19 * * 3" + - cron: "30 0 * * *" permissions: contents: read jobs:
1 year, 5 months
1
0
0
0
git:master:7e94c365: github: permissions for actions [skip ci]
by Victor Seva
Module: kamailio Branch: master Commit: 7e94c365359ca24ae7410121a5e4b4f7382b0b79 URL:
https://github.com/kamailio/kamailio/commit/7e94c365359ca24ae7410121a5e4b4f…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2023-06-27T08:35:38+02:00 github: permissions for actions [skip ci] --- Modified: .github/workflows/cifuzz.yml Modified: .github/workflows/codeql.yml --- Diff:
https://github.com/kamailio/kamailio/commit/7e94c365359ca24ae7410121a5e4b4f…
Patch:
https://github.com/kamailio/kamailio/commit/7e94c365359ca24ae7410121a5e4b4f…
--- diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml index 081e0a833d..f44d25e808 100644 --- a/.github/workflows/cifuzz.yml +++ b/.github/workflows/cifuzz.yml @@ -1,5 +1,7 @@ name: CIFuzz on: [pull_request] +permissions: + contents: read jobs: Fuzzing: runs-on: ubuntu-latest diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 0b56d6e918..60d66b6996 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,12 +2,14 @@ name: "CodeQL" on: push: - branches: [ "master", "3.1", "3.2", "3.3", "4.0", "4.1", "4.2", "4.3", "4.4", "5.0", "5.1", "5.2", "5.3", "5.4", "5.5", "5.6" ] + branches-ignore: + - 'dependabot/**' pull_request: branches: [ "master" ] schedule: - cron: "35 19 * * 3" - +permissions: + contents: read jobs: analyze: name: Analyze
1 year, 5 months
1
0
0
0
git:master:02a066e9: pkg/kamailio/deb: kamailio-microhttpd-modules
by Victor Seva
Module: kamailio Branch: master Commit: 02a066e95f6b58f04663dc21c4061883d568677b URL:
https://github.com/kamailio/kamailio/commit/02a066e95f6b58f04663dc21c406188…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2023-06-27T08:24:08+02:00 pkg/kamailio/deb: kamailio-microhttpd-modules --- Modified: pkg/kamailio/deb/bionic/control Modified: pkg/kamailio/deb/bionic/rules Modified: pkg/kamailio/deb/bookworm/control Modified: pkg/kamailio/deb/bookworm/rules Modified: pkg/kamailio/deb/bullseye/control Modified: pkg/kamailio/deb/bullseye/rules Modified: pkg/kamailio/deb/buster/control Modified: pkg/kamailio/deb/buster/rules Modified: pkg/kamailio/deb/debian/control Modified: pkg/kamailio/deb/debian/rules Modified: pkg/kamailio/deb/focal/control Modified: pkg/kamailio/deb/focal/rules Modified: pkg/kamailio/deb/jammy/control Modified: pkg/kamailio/deb/jammy/rules Modified: pkg/kamailio/deb/jessie/control Modified: pkg/kamailio/deb/jessie/rules Modified: pkg/kamailio/deb/precise/control Modified: pkg/kamailio/deb/precise/rules Modified: pkg/kamailio/deb/sid/control Modified: pkg/kamailio/deb/sid/rules Modified: pkg/kamailio/deb/stretch/control Modified: pkg/kamailio/deb/stretch/rules Modified: pkg/kamailio/deb/trusty/control Modified: pkg/kamailio/deb/trusty/rules Modified: pkg/kamailio/deb/wheezy/control Modified: pkg/kamailio/deb/wheezy/rules Modified: pkg/kamailio/deb/xenial/control Modified: pkg/kamailio/deb/xenial/rules --- Diff:
https://github.com/kamailio/kamailio/commit/02a066e95f6b58f04663dc21c406188…
Patch:
https://github.com/kamailio/kamailio/commit/02a066e95f6b58f04663dc21c406188…
1 year, 5 months
1
0
0
0
← Newer
1
...
13
14
15
16
17
18
19
...
31
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Results per page:
10
25
50
100
200