Module: kamailio
Branch: master
Commit: e4b4b95c8933796b2cf8d5ad478e66347aa8ebf0
URL:
https://github.com/kamailio/kamailio/commit/e4b4b95c8933796b2cf8d5ad478e663…
Author: Supreeth Herle <herlesupreeth(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-30T10:18:47+01:00
ims_ipsec_pcscf: add q value to Security-Server header for IPSec
---
Modified: src/modules/ims_ipsec_pcscf/cmd.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e4b4b95c8933796b2cf8d5ad478e663…
Patch:
https://github.com/kamailio/kamailio/commit/e4b4b95c8933796b2cf8d5ad478e663…
---
diff --git a/src/modules/ims_ipsec_pcscf/cmd.c b/src/modules/ims_ipsec_pcscf/cmd.c
index 594d442710f..906fc3eec53 100644
--- a/src/modules/ims_ipsec_pcscf/cmd.c
+++ b/src/modules/ims_ipsec_pcscf/cmd.c
@@ -724,7 +724,7 @@ int add_security_server_header(struct sip_msg *m, ipsec_t *s)
memset(sec_hdr_buf, 0, sizeof(sec_hdr_buf));
sec_header->len = snprintf(sec_hdr_buf, sizeof(sec_hdr_buf) - 1,
"Security-Server: "
- "ipsec-3gpp;prot=esp;mod=trans;spi-c=%d;spi-s=%d;port-c=%d;port-s=%"
+ "ipsec-3gpp;q=0.1;prot=esp;mod=trans;spi-c=%d;spi-s=%d;port-c=%d;port-s=%"
"d;alg=%.*s;ealg=%.*s\r\n",
s->spi_pc, s->spi_ps, s->port_pc, s->port_ps, s->r_alg.len,
s->r_alg.s, s->r_ealg.len, s->r_ealg.s);