<div dir="ltr"><font color="#3366ff"><font><font face="tahoma,sans-serif">Can&#39;t help anymore on this.<br><br>But if you&#39;re short on time and need a dirty solution, try the following functions from textops module:<br>

replace_body_all    OR    subst_body<br><br>Match the line &quot;m=type...&quot; using a grep expression and replace it with and empty string.<br><br>I do that to remove lines from SDP body. I ran into some problems to do it neatly, so if you have some text messed up while doing it, try to include \r\n characters in your grep expression.<br>

<br>And finally, why don&#39;t you install the dev version?<br clear="all"></font></font></font><div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif"><br></font><div><font color="#3366ff" face="tahoma, sans-serif">Reda</font></div>

</div><br>
<br><br><div class="gmail_quote">On Tue, May 15, 2012 at 2:22 PM, Grégoire Vandendeurpel <span dir="ltr">&lt;<a href="mailto:g.vandendeurpel@gmail.com" target="_blank">g.vandendeurpel@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello, I already compiled sdpops in 3.2. I tried an other command like sdp_remove_codecs_by_id and this one is working well on the 3.2 version of kamailio!<div><br></div><div>I think, the problem is specifically from the remove media command.</div>


<div><br></div><div>Any suggestion?</div><div class="HOEnZb"><div class="h5"><div><br></div><div>Best regards</div><div><br><div class="gmail_quote">2012/5/15 Reda Aouad <span dir="ltr">&lt;<a href="mailto:reda.aouad@gmail.com" target="_blank">reda.aouad@gmail.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font color="#3366ff"><font><font face="tahoma,sans-serif">Hi,<br><br>You can MAY BE copy take the sdpops module from dev version and compile it with 3.2. Not sure it would work though.<br>


However, it should be easy to install the entire dev version, just as you did with 3.2.3.<span><font color="#888888"><br clear="all">

</font></span></font></font></font><span><font color="#888888"><div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif"><br></font><div><font color="#3366ff" face="tahoma, sans-serif">Reda</font></div>
</div></font></span><div><div><br>
<br><br><div class="gmail_quote">On Tue, May 15, 2012 at 1:15 PM, Grégoire Vandendeurpel <span dir="ltr">&lt;<a href="mailto:g.vandendeurpel@gmail.com" target="_blank">g.vandendeurpel@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




Hello, <div><br></div><div>Thanks for your answer, is there an other way to use it with the 3.2.3 version of Kamailio? Cause I&#39;m doing my final project of my bachloor, and I really need to use it for.</div><div><br>Is it possible to change something in the code or.. to make it working well with my version?</div>





<div><br></div><div>Best regards<div><div><br><br><div class="gmail_quote">2012/5/15 Reda Aouad <span dir="ltr">&lt;<a href="mailto:reda.aouad@gmail.com" target="_blank">reda.aouad@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><font color="#3366ff"><font><font face="tahoma,sans-serif">Hi,<br><br>This function is available in Kamailio 3.3 (currently in dev stage) and not 3.2.<br clear="all"></font></font></font><div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif"><br>







</font><div><font color="#3366ff" face="tahoma, sans-serif">Reda</font></div></div><br>
<br><br><div class="gmail_quote"><div><div>On Tue, May 15, 2012 at 11:49 AM, Grégoire Vandendeurpel <span dir="ltr">&lt;<a href="mailto:g.vandendeurpel@gmail.com" target="_blank">g.vandendeurpel@gmail.com</a>&gt;</span> wrote:<br>







</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hello,<div><br></div><div>I use Kamailio 3.2.3 and I used the command from the sdpops module &quot;<span style="background-color:rgb(254,254,238)">sdp_remove_media(&quot;video&quot;);&quot;</span></div>







<div><span style="background-color:rgb(254,254,238)"><br>
</span></div><div><span style="background-color:rgb(254,254,238)">But when i restarted kamailio, this error appeared:</span></div><div><br></div><div><div>0(2623) ERROR: &lt;core&gt; [cfg.y:<a href="tel:3393" value="+333393" target="_blank">3393</a>]: cfg. parser: failed to find command sdp_remove_media</div>








<div>0(2623) : &lt;core&gt; [cfg.y:<a href="tel:3532" value="+333532" target="_blank">3532</a>]: parse error in config file /etc/kamailio/kamailio.cfg, line 721, column 27: unknown command, missing loadmodule?</div><div>







<br></div><div>Do You know why ? </div><div><br></div><div>
Cause I loeded the sdpops module.</div><div><br></div><div>Thanks in advance for your help</div><span><font color="#888888">-- <br><div><i><font color="#336666"><b>Grégoire Vandendeurpel, </b></font></i></div>

<div><i><font color="#336666"><br></font></i></div>
<i><font color="#336666"><u>IT Sector</u></font></i><br>
</font></span></div>
<br></div></div>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><i><font color="#336666"><b>Grégoire Vandendeurpel, </b></font></i></div><div><i><font color="#336666"><br></font></i></div><i><font color="#336666"><u>IT Sector</u></font></i><br>






</div></div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><i><font color="#336666"><b>Grégoire Vandendeurpel, </b></font></i></div><div><i><font color="#336666"><br></font></i></div><i><font color="#336666"><u>IT Sector</u></font></i><br>



</div>
</div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>