<div dir="ltr">Hello,<div><br></div><div>thanks for replay. I will check how to make the script as per your suggestion, many thanks for it.</div><div><br></div><div>Filippo</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 21 feb 2022 alle ore 16:15 Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
if you want to run kamailio development branch, then you should be able<br>
to do it with the body line iterator:<br>
<br>
*<br>
<a href="https://www.kamailio.org/docs/modules/devel/modules/textopsx.html#textopsx.f.bl_iterator_start" rel="noreferrer" target="_blank">https://www.kamailio.org/docs/modules/devel/modules/textopsx.html#textopsx.f.bl_iterator_start</a><br>
<br>
For stable branches at this moment I would run some inline<br>
Lua/Python/JavaScript/... script that builds the new body as wanted and<br>
then use KSR.textops.set_body(...) function.<br>
<br>
If you use rtpengine/rtpproxy, then you should also do msg_apply_changes().<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 21.02.22 15:55, Filippo Graziola wrote:<br>
> Hi all, I'm facing a strange behaviour from a client (iOS application<br>
> based on pjsip library) which is doing as follow when receiving a call<br>
> (on phone locked):<br>
> - accept the call rejecting video (m=video 0...) in SDP<br>
> - reinvite to negotiate again video media<br>
><br>
> Specifically the reinvite passing through kamailio (+rtpengine) has<br>
> this SDP body after rtpengine offer (the client use TLS so I can't see<br>
> the original message):<br>
><br>
> v=0<br>
> o=- 3854443139 3854443142 IN IP4 PUBLIC_RTP_ENGINE_IP<br>
> s=pjmedia<br>
> b=AS:386<br>
> t=0 0<br>
> a=X-nat:0<br>
> m=audio 46734 RTP/AVP 8 101<br>
> c=IN IP4 PUBLIC_RTP_ENGINE_IP<br>
> b=TIAS:96000<br>
> a=ssrc:1456418416 cname:441b90ac6db72f22<br>
> a=rtpmap:8 PCMA/8000<br>
> a=rtpmap:101 telephone-event/8000<br>
> a=fmtp:101 0-16<br>
> a=sendrecv<br>
> a=rtcp:46735<br>
> m=video 0 RTP/AVP 96<br>
> c=IN IP4 PUBLIC_RTP_ENGINE_IP<br>
> b=TIAS:256000<br>
> m=video 46776 RTP/AVP 98<br>
> c=IN IP4 PUBLIC_RTP_ENGINE_IP<br>
> b=TIAS:256000<br>
> a=rtpmap:98 H264/90000<br>
> a=fmtp:98 profile-level-id=42e01e; packetization-mode=1<br>
> a=sendrecv<br>
> a=rtcp:46777<br>
><br>
> from this I can understand that the client is doing something strange,<br>
> because there is still the rejection line (I know that this question<br>
> should go to the pjsip guys) but I would also like to know if it is<br>
> possible to "clean" this sdp by kamailio.<br>
> A few clients receiving this sdp are answering with only audio.<br>
> Reading the docs, sdpops/textops modules allow modifying lines by<br>
> prefix or media, but till now I have no luck to exclude only the line<br>
> "m=video 0 RTP/AVP 96" and his attributes without touching the correct<br>
> video request. Could someone please give me some hints on it?<br>
><br>
> __________________________________________________________<br>
> Kamailio - Users Mailing List - Non Commercial Discussions<br>
> * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
> Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
> Edit mailing list options or unsubscribe:<br>
> * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
-- <br>
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a><br>
<a href="http://www.twitter.com/miconda" rel="noreferrer" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">www.linkedin.com/in/miconda</a><br>
Kamailio Advanced Training - Online<br>
Feb 21-24, 2022 (America Timezone)<br>
* <a href="https://www.asipto.com/sw/kamailio-advanced-training-online/" rel="noreferrer" target="_blank">https://www.asipto.com/sw/kamailio-advanced-training-online/</a><br>
<br>
</blockquote></div>