<!-- 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)
- [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)
- [ ] 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 -->
- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
http_async_client module needs to parse http replies. Currently HTTP/2 is not supported by the core parser.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2132
-- Commit Summary --
* core: add support for parsing http/2 replies parsing
-- File Changes --
M src/core/parser/msg_parser.h (7)
M src/core/parser/parse_fline.c (34)
M src/core/parser/parse_fline.h (5)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2132.patchhttps://github.com/kamailio/kamailio/pull/2132.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/2132
Module: kamailio
Branch: 5.3
Commit: 8b558ce9aa0625bdc2d3c66d795a450ce982a716
URL: https://github.com/kamailio/kamailio/commit/8b558ce9aa0625bdc2d3c66d795a450…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2019-11-21T10:08:13+01:00
tm: execute TMCB_REQUEST_FWDED cb as BRANCH_ROUTE when necessary
(cherry picked from commit bc40eaa4fe446bffd9f41d5d6b21becd7b7fdc87)
---
Modified: src/modules/tm/t_fwd.c
---
Diff: https://github.com/kamailio/kamailio/commit/8b558ce9aa0625bdc2d3c66d795a450…
Patch: https://github.com/kamailio/kamailio/commit/8b558ce9aa0625bdc2d3c66d795a450…
---
diff --git a/src/modules/tm/t_fwd.c b/src/modules/tm/t_fwd.c
index 33a50d7799..81a0f20841 100644
--- a/src/modules/tm/t_fwd.c
+++ b/src/modules/tm/t_fwd.c
@@ -374,15 +374,19 @@ static int prepare_new_uac( struct cell *t, struct sip_msg *i_req,
goto error03;
}
}
+ /* run the specific callbacks for this transaction */
+ if (unlikely(has_tran_tmcbs(t, TMCB_REQUEST_FWDED)))
+ run_trans_callbacks( TMCB_REQUEST_FWDED , t, i_req, 0,
+ -i_req->REQ_METHOD);
+
tm_ctx_set_branch_index(T_BR_UNDEFINED);
set_route_type(backup_route_type);
+ } else {
+ /* run the specific callbacks for this transaction */
+ if (unlikely(has_tran_tmcbs(t, TMCB_REQUEST_FWDED)))
+ run_trans_callbacks( TMCB_REQUEST_FWDED , t, i_req, 0,
+ -i_req->REQ_METHOD);
}
-
- /* run the specific callbacks for this transaction */
- if (unlikely(has_tran_tmcbs(t, TMCB_REQUEST_FWDED)))
- run_trans_callbacks( TMCB_REQUEST_FWDED , t, i_req, 0,
- -i_req->REQ_METHOD);
-
if (likely( !(flags & UAC_DNS_FAILOVER_F) && i_req->dst_uri.s &&
i_req->dst_uri.len)){
/* no dns failover and non-empty dst_uri => use it as dst
Module: kamailio
Branch: 5.2
Commit: 7b10327189fc6c1cf1c53fc7c90bed84753ec54b
URL: https://github.com/kamailio/kamailio/commit/7b10327189fc6c1cf1c53fc7c90bed8…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2019-11-21T10:05:00+01:00
tm: execute TMCB_REQUEST_FWDED cb as BRANCH_ROUTE when necessary
(cherry picked from commit bc40eaa4fe446bffd9f41d5d6b21becd7b7fdc87)
---
Modified: src/modules/tm/t_fwd.c
---
Diff: https://github.com/kamailio/kamailio/commit/7b10327189fc6c1cf1c53fc7c90bed8…
Patch: https://github.com/kamailio/kamailio/commit/7b10327189fc6c1cf1c53fc7c90bed8…
---
diff --git a/src/modules/tm/t_fwd.c b/src/modules/tm/t_fwd.c
index 2ad86a3f88..99f6034039 100644
--- a/src/modules/tm/t_fwd.c
+++ b/src/modules/tm/t_fwd.c
@@ -376,15 +376,19 @@ static int prepare_new_uac( struct cell *t, struct sip_msg *i_req,
goto error03;
}
}
+ /* run the specific callbacks for this transaction */
+ if (unlikely(has_tran_tmcbs(t, TMCB_REQUEST_FWDED)))
+ run_trans_callbacks( TMCB_REQUEST_FWDED , t, i_req, 0,
+ -i_req->REQ_METHOD);
+
tm_ctx_set_branch_index(T_BR_UNDEFINED);
set_route_type(backup_route_type);
+ } else {
+ /* run the specific callbacks for this transaction */
+ if (unlikely(has_tran_tmcbs(t, TMCB_REQUEST_FWDED)))
+ run_trans_callbacks( TMCB_REQUEST_FWDED , t, i_req, 0,
+ -i_req->REQ_METHOD);
}
-
- /* run the specific callbacks for this transaction */
- if (unlikely(has_tran_tmcbs(t, TMCB_REQUEST_FWDED)))
- run_trans_callbacks( TMCB_REQUEST_FWDED , t, i_req, 0,
- -i_req->REQ_METHOD);
-
if (likely( !(flags & UAC_DNS_FAILOVER_F) && i_req->dst_uri.s &&
i_req->dst_uri.len)){
/* no dns failover and non-empty dst_uri => use it as dst