Module: kamailio
Branch: master
Commit: 8047c958b42ea5af2e8f9ede0152f892ac0eea3a
URL:
https://github.com/kamailio/kamailio/commit/8047c958b42ea5af2e8f9ede0152f89…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-04-03T20:16:21+02:00
sdpops: aliased $sdp(raw) to $sdp(body)
---
Modified: src/modules/sdpops/sdpops_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8047c958b42ea5af2e8f9ede0152f89…
Patch:
https://github.com/kamailio/kamailio/commit/8047c958b42ea5af2e8f9ede0152f89…
---
diff --git a/src/modules/sdpops/sdpops_mod.c b/src/modules/sdpops/sdpops_mod.c
index b443d1f84ac..96d0bd202b8 100644
--- a/src/modules/sdpops/sdpops_mod.c
+++ b/src/modules/sdpops/sdpops_mod.c
@@ -2259,6 +2259,12 @@ static int pv_parse_sdp_name(pv_spec_p sp, str *in)
return -1;
switch(in->len) {
+ case 3:
+ if(strncmp(in->s, "raw", 3) == 0)
+ sp->pvp.pvn.u.isname.name.n = 0;
+ else
+ goto error;
+ break;
case 4:
if(strncmp(in->s, "body", 4) == 0)
sp->pvp.pvn.u.isname.name.n = 0;