Skip to content

Commit

Permalink
Merge pull request #3156 from purecloudlabs/hotfix/sipcapture-relay-o…
Browse files Browse the repository at this point in the history
…ver-tls

sipcapture: Fix HEP relay over TLS
  • Loading branch information
bogdan-iancu committed Aug 18, 2023
2 parents 5afeb6a + 7c68fff commit b162850
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 b162850

Please sign in to comment.