Hello,
The Problem is that SDP body is rewritten, but Content-Length isn't updated.
Attached a trace from PCSCF.
Event 207
Incoming INVITE: Content length of SDP body is 313.
[cid:image001.png@01D9C520.8D438CA0]
Event 218
Outgoing INVITE: SDP body is rewritten triggered by "rtpengine_manage".
[cid:image002.png@01D9C521.F9C28DD0]
Content length of SDP body isn't updated. It should be 242.
Event 212: Received from RTP Proxy
[cid:image003.png@01D9C521.F9C28DD0]
Kamailio Version 5.5.X
LOGs from rtpengine.c:
Changed File according Logs attached..
2023-08-01T10:25:41.118366+02:00 172.29.21.25 vict-pcscf-rhel8[1170319] - [logSDID@20306 resource="rtpengine"] ERROR: rtpengine [rtpengine.c:4070]: newbody 'v=0#015#012o=- 3863667612 3863667612 IN IP4 172.23.12.62#015#012s=pjmedia#015#012b=AS:84#015#012t=0 0#015#012a=X-nat:0#015#012m=audio 30444 RTP/AVP 8 101#015#012c=IN IP4 172.29.21.32#015#012b=TIAS:64000#015#012a=sendrecv#015#012a=rtpmap:8 PCMA/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101 0-16#015#012'
2023-08-01T10:25:41.118730+02:00 172.29.21.25 vict-pcscf-rhel8[1170319] - [logSDID@20306 resource="rtpengine"] ERROR: rtpengine [rtpengine.c:4071]: newbody.len [242]
2023-08-01T10:25:41.119049+02:00 172.29.21.25 vict-pcscf-rhel8[1170319] - [logSDID@20306 resource="rtpengine"] ERROR: rtpengine [rtpengine.c:4110]: rtpengine_offer_answer-03
Any suggestions on how to solve this problem?
Thanks!
BR
Theo
Module: kamailio
Branch: master
Commit: 02a39e53b550ee50c61d0b0540282588497ff360
URL: https://github.com/kamailio/kamailio/commit/02a39e53b550ee50c61d0b054028258…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-09-13T15:43:31+02:00
pv: docs for xavp_params_implode_qval() function
---
Modified: src/modules/pv/doc/pv_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/02a39e53b550ee50c61d0b054028258…
Patch: https://github.com/kamailio/kamailio/commit/02a39e53b550ee50c61d0b054028258…
---
diff --git a/src/modules/pv/doc/pv_admin.xml b/src/modules/pv/doc/pv_admin.xml
index d2ef27c10e1..336997a2477 100644
--- a/src/modules/pv/doc/pv_admin.xml
+++ b/src/modules/pv/doc/pv_admin.xml
@@ -421,6 +421,41 @@ $xavp(x[0]=>c) = "d";
$xavp(x[0]=>a) = "b";
xavp_params_implode("x", "$var(out)");
# results in: $var(out) is "a=b;c=d;e=f;"
+...
+ </programlisting>
+ </example>
+ </section>
+ <section id="pv.f.xavp_params_implode_qval">
+ <title>
+ <function moreinfo="none">xavp_params_implode_qval(xname, pvname)</function>
+ </title>
+ <para>
+ Serialize the subfields in an XAVP to a parameters string format,
+ enclosing string values in double quotes.
+ </para>
+ <para>
+ Number values are serialized as unsigned integer string format.
+ </para>
+ <para>
+ The first parameter has to be the name of XAVP (only the string
+ name, not the in $xavp(name)). The second parameter
+ is the name of output variable (in full name, like $var(output)).
+ </para>
+ <para>
+ The value is stored as string type.
+ </para>
+ <para>
+ Function can be used from ANY ROUTE.
+ </para>
+ <example>
+ <title><function>xavp_params_implode_qval</function> usage</title>
+ <programlisting format="linespecific">
+...
+$xavp(x=>e) = "f";
+$xavp(x[0]=>c) = 5;
+$xavp(x[0]=>a) = "b";
+xavp_params_implode("x", "$var(out)");
+# results in: $var(out) is: a="b";c=5;e="f";
...
</programlisting>
</example>