Module: kamailio
Branch: master
Commit: ea2babf79d8b66cbfdccdae51ddf806964b16138
URL:
https://github.com/kamailio/kamailio/commit/ea2babf79d8b66cbfdccdae51ddf806…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-09-11T16:25:08+02:00
pv: allow via oc param names with dashes
---
Modified: src/modules/pv/pv_core.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ea2babf79d8b66cbfdccdae51ddf806…
Patch:
https://github.com/kamailio/kamailio/commit/ea2babf79d8b66cbfdccdae51ddf806…
---
diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c
index dc611de7f1a..4fa8e4677aa 100644
--- a/src/modules/pv/pv_core.c
+++ b/src/modules/pv/pv_core.c
@@ -4519,12 +4519,16 @@ int pv_parse_via_name(pv_spec_p sp, str *in)
sp->pvp.pvn.u.isname.name.n = 8;
else if(strncmp(in->s, "ocalgo", 6) == 0)
sp->pvp.pvn.u.isname.name.n = 10;
+ else if(strncmp(in->s, "oc-seq", 6) == 0)
+ sp->pvp.pvn.u.isname.name.n = 12;
else
goto error;
break;
case 7:
if(strncmp(in->s, "protoid", 7) == 0)
sp->pvp.pvn.u.isname.name.n = 3;
+ else if(strncmp(in->s, "oc-algo", 7) == 0)
+ sp->pvp.pvn.u.isname.name.n = 10;
else
goto error;
break;
@@ -4540,6 +4544,12 @@ int pv_parse_via_name(pv_spec_p sp, str *in)
else
goto error;
break;
+ case 11:
+ if(strncmp(in->s, "oc-validity", 11) == 0)
+ sp->pvp.pvn.u.isname.name.n = 11;
+ else
+ goto error;
+ break;
default:
goto error;
}