Skip to content

Commit

Permalink
sipcapture: Fix HEP relay over TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
benceszigeti committed Aug 17, 2023
1 parent 5afeb6a commit 7c68fff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions modules/sipcapture/sipcapture.c
Original file line number Diff line number Diff line change
Expand Up @@ -4289,12 +4289,18 @@ static int w_hep_relay(struct sip_msg *msg)

if (uri.proto == 0 || uri.proto == PROTO_UDP) {
hep_proto = PROTO_HEP_UDP;
} else if (uri.proto == PROTO_TCP || uri.proto == PROTO_TLS) {
} else if (uri.proto == PROTO_TCP) {
if (hep_version == 1 || hep_version == 2) {
LM_ERR("TCP and TLS not supported for HEPv%d\n", hep_version);
LM_ERR("TCP not supported for HEPv%d\n", hep_version);
return -1;
}
hep_proto = PROTO_HEP_TCP;
} else if (uri.proto == PROTO_TLS) {
if (hep_version == 1 || hep_version == 2) {
LM_ERR("TLS not supported for HEPv%d\n", hep_version);
return -1;
}
hep_proto = PROTO_HEP_TLS;
} else {
LM_ERR("cannot send hep with proto %s\n",
proto2str(uri.proto, proto_buf));
Expand Down

0 comments on commit 7c68fff

Please sign in to comment.