Module: kamailio
Branch: master
Commit: 2fd5d881563126f7425730f798afcbfc2feeac65
URL: https://github.com/kamailio/kamailio/commit/2fd5d881563126f7425730f798afcbf…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2023-08-12T13:46:24+02:00
modules: readme files regenerated - rabbitmq ... [skip ci]
---
Modified: src/modules/rabbitmq/README
Modified: src/modules/xhttp/README
---
Diff: https://github.com/kamailio/kamailio/commit/2fd5d881563126f7425730f798afcbf…
Patch: https://github.com/kamailio/kamailio/commit/2fd5d881563126f7425730f798afcbf…
---
diff --git a/src/modules/rabbitmq/README b/src/modules/rabbitmq/README
index 942afffa83f..889512b6a48 100644
--- a/src/modules/rabbitmq/README
+++ b/src/modules/rabbitmq/README
@@ -176,7 +176,7 @@ modparam("rabbitmq", "direct_reply_to", 1)
* content_type - the content_type of the messagebody.
* messagebody - the messagebody to be published.
- This function can be used from REQUEST_ROUTE.
+ This function can be used from any route.
Example 1.5. rabbitmq_publish usage
rabbitmq_publish("exchange", "routing_key", "application/json", "$avp(json_reque
diff --git a/src/modules/xhttp/README b/src/modules/xhttp/README
index 9a59c839aa1..ec009bacafb 100644
--- a/src/modules/xhttp/README
+++ b/src/modules/xhttp/README
@@ -83,8 +83,8 @@ Chapter 1. Admin Guide
SIP parser can easily handle HTTP requests just by adding a fake Via
header.
- The <module>xmlrpc</module> module uses the same concept. The xHTTP
- module offers a generic way of handling the HTTP protocol, by calling
+ The xmlrpc module uses the same concept. The xHTTP module offers a
+ generic way of handling the HTTP protocol, by calling
event_route[xhttp:request] in your config. You can check the HTTP URL
via the config variable $hu. Note that use of $ru will raise errors
since the structure of an HTTP URL is not compatible with that of a SIP
@@ -222,7 +222,10 @@ event_route[xhttp:request] {
6.1. xhttp:request
- The event route is executed when a new HTTP request is received.
+ The event route is executed when a new HTTP request is received. Most
+ of the variables related to a SIP request can be used inside this event
+ route to get HTTP request attributes (e.g., $si - source IP, $hdr(X) -
+ body of header X, $rm - request method, $rb - request body, ...).
...
tcp_accept_no_cl=yes
...
Enabling rabbitmq_publish function on any route so we can send events on reply reception.
Also disabling peer verification on the TLS handshake if no CA file is configured.
<!-- 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, ...)
- [ ] 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)
- [ ] 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
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3537
-- Commit Summary --
* rabbitmq: Enabling rabbitmq_publish for any route and disabling peer
-- File Changes --
M src/modules/rabbitmq/doc/rabbitmq_admin.xml (2)
M src/modules/rabbitmq/rabbitmq.c (8)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3537.patchhttps://github.com/kamailio/kamailio/pull/3537.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3537
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3537(a)github.com>
Module: kamailio
Branch: master
Commit: 170067e633ef32ea7b17adad46fdfe2c85fadda0
URL: https://github.com/kamailio/kamailio/commit/170067e633ef32ea7b17adad46fdfe2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-08-12T13:31:15+02:00
xhttp: note about available variables during http request processing
---
Modified: src/modules/xhttp/doc/xhttp_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/170067e633ef32ea7b17adad46fdfe2…
Patch: https://github.com/kamailio/kamailio/commit/170067e633ef32ea7b17adad46fdfe2…
---
diff --git a/src/modules/xhttp/doc/xhttp_admin.xml b/src/modules/xhttp/doc/xhttp_admin.xml
index f0e6d3fdeb8..1c7d29a051a 100644
--- a/src/modules/xhttp/doc/xhttp_admin.xml
+++ b/src/modules/xhttp/doc/xhttp_admin.xml
@@ -22,7 +22,7 @@
Via header.
</para>
<para>
- The <module>xmlrpc</module> module uses the same concept.
+ The xmlrpc module uses the same concept.
The xHTTP module offers a generic way of handling the <acronym>HTTP</acronym>
protocol, by calling <emphasis>event_route[xhttp:request]</emphasis>
in your config. You can check the HTTP URL via the config variable
@@ -228,7 +228,10 @@ event_route[xhttp:request] {
<function moreinfo="none">xhttp:request</function>
</title>
<para>
- The event route is executed when a new HTTP request is received.
+ The event route is executed when a new HTTP request is received. Most
+ of the variables related to a SIP request can be used inside this event
+ route to get HTTP request attributes (e.g., $si - source IP, $hdr(X)
+ - body of header X, $rm - request method, $rb - request body, ...).
</para>
<programlisting format="linespecific">
...
#### 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)
- [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
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] 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
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3497
-- Commit Summary --
* sipcapture: use memcpy instead of strncpy for coherence
* rtpproxy: use memcpy instead of strcpy for coherence
-- File Changes --
M src/modules/rtpproxy/rtpproxy.c (40)
M src/modules/sipcapture/sipcapture.c (16)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3497.patchhttps://github.com/kamailio/kamailio/pull/3497.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3497
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3497(a)github.com>