Module: kamailio
Branch: master
Commit: e7b207e933d0f4284009059753d5b6a80ebfa9f7
URL:
https://github.com/kamailio/kamailio/commit/e7b207e933d0f4284009059753d5b6a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-04-03T08:11:07+02:00
pv: $K(IP4) and $K(IP6) - support SDP style for address family
---
Modified: src/modules/pv/pv_core.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e7b207e933d0f4284009059753d5b6a…
Patch:
https://github.com/kamailio/kamailio/commit/e7b207e933d0f4284009059753d5b6a…
---
diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c
index 129247f2688..1f998bfc1d3 100644
--- a/src/modules/pv/pv_core.c
+++ b/src/modules/pv/pv_core.c
@@ -3894,6 +3894,10 @@ int pv_parse_K_name(pv_spec_p sp, str *in)
sp->pvp.pvn.u.isname.name.n = 4;
else if(strncmp(in->s, "WSS", 3) == 0)
sp->pvp.pvn.u.isname.name.n = 7;
+ else if(strncmp(in->s, "IP4", 3) == 0)
+ sp->pvp.pvn.u.isname.name.n = 0;
+ else if(strncmp(in->s, "IP6", 3) == 0)
+ sp->pvp.pvn.u.isname.name.n = 1;
else
goto error;
break;