<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px"><div id="yui_3_16_0_ym19_1_1465893018567_38486">Hi</div><div id="yui_3_16_0_ym19_1_1465893018567_38487"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_38488">when I try to remove these extra SDP line I insert the following code to the script:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37958">in INTERNAL_REPLY onreply_route</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37958"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37958">if($T_reply_code=="200")</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37959">        {    </div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37960">    <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1465893018567_37961">        </span>     if(has_body("application/sdp"))</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_38578">            {</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_38578">                xlog("L_INFO", "RTPENGINE received internal reply $T_reply_code $rr SDP extra lines will be removed");</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37962">    <span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1465893018567_37963">  </span>    </div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37964"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1465893018567_37965">    </span>        set_rtpengine_set("0");</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37966"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1465893018567_37967">   </span>        rtpengine_manage();</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37968">       </div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37970">                replace_body_all("a=rtcp.*\r?\n","");</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37971">                replace_body_all("a=ssrc.*\r?\n","");</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37972">                replace_body_all("a=ice.*\r?\n","");</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37973">                replace_body_all("a=candidate.*\r?\n","");</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37974">                xlog("L_INFO", "RTPENGINE received internal reply $T_reply_code $rr SDP extra lines removed");</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37975">            </div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37976">            }</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37977">        </div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37978">}</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37978"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37978">This code does not work as expected. SDP lines are not removed.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37978"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37978">does  this approach is correct or should it be done some other way?</div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37978"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1465893018567_37978"><br></div><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Friday, June 10, 2016 1:31 PM, Dmitry <mbike2000ru@yahoo.com> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv5934610935"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px;"><div id="yiv5934610935yui_3_16_0_ym19_1_1465407321673_300200"><span id="yiv5934610935yui_3_16_0_ym19_1_1465407321673_300586">When I make internal call between 2 internal subscribers (yate softphones). The subscriber B answeres, after all the Kamailio/rtpengine sends a 200ok  reply to the subscriber A,</span></div><div id="yiv5934610935yui_3_16_0_ym19_1_1465407321673_300200"><span><br clear="none"></span></div><div dir="ltr" id="yiv5934610935yui_3_16_0_ym19_1_1465407321673_300200"><span id="yiv5934610935yui_3_16_0_ym19_1_1465407321673_300743">but the softphone does not recognize it (it does not ACK it). I think it is because of its SDP which the RTPENGINE replaced with it's one.</span></div><div dir="ltr" id="yiv5934610935yui_3_16_0_ym19_1_1465407321673_300200"><span><br clear="none"></span></div><div dir="ltr" id="yiv5934610935yui_3_16_0_ym19_1_1465407321673_300200"><span><br clear="none"></span></div><div dir="ltr" id="yiv5934610935yui_3_16_0_ym19_1_1465407321673_300200"><span id="yiv5934610935yui_3_16_0_ym19_1_1465407321673_301027">is it possible to instruct the RTPENGINE not to insert these extra lines  or should I use, say LUA, to remove these extra SDP lines.</span></div><div dir="ltr" id="yiv5934610935yui_3_16_0_ym19_1_1465407321673_300200"><span><br clear="none"></span></div><div dir="ltr" id="yiv5934610935yui_3_16_0_ym19_1_1465407321673_300200"><span><br clear="none"></span></div><div dir="ltr" id="yiv5934610935yui_3_16_0_ym19_1_1465407321673_300200"><span id="yiv5934610935yui_3_16_0_ym19_1_1465407321673_301043">What is the correct  way here</span></div> <div class="yiv5934610935qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv5934610935yqt6607615862" id="yiv5934610935yqt46080"><div class="yiv5934610935yahoo_quoted" style="display:block;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"><font size="2" face="Arial"> On Saturday, May 7, 2016 11:36 PM, Dmitry <mbike2000ru@yahoo.com> wrote:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div class="yiv5934610935y_msg_container"><div id="yiv5934610935"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px;"><h1 id="yiv5934610935yui_3_16_0_ym19_1_1462472490656_201556" style="font-family:'Times New Roman';"><span id="yiv5934610935yui_3_16_0_ym19_1_1462472490656_201620" style="font-weight:normal;">[SR-Users] question about RTPengine</span></h1><div id="yiv5934610935yui_3_16_0_ym19_1_1462472490656_202219"><span style="font-weight:normal;"><br clear="none"></span></div><div dir="ltr"><span style="font-weight:normal;">Does it mean that rtpengine_manage() determine the session state itself? i.e it is not needed to find out in the configuration file that INVITE contains SDP or not because rtpengine_manage() determins internally what this INVITE is? am I correct?</span></div> <div class="yiv5934610935qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv5934610935yqt2133443135" id="yiv5934610935yqt62506"><div class="yiv5934610935yahoo_quoted" style="display:block;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"><font size="2" face="Arial"> On Friday, May 6, 2016 5:52 PM, Alex Balashov <abalashov@evaristesys.com> wrote:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div class="yiv5934610935y_msg_container">‎It's just a description of stateful behaviour in relation to the SDP offer-answer cycle.<br clear="none">‎<br clear="none">--<br clear="none">Alex Balashov | Principal | Evariste Systems LLC<br clear="none">1447 Peachtree Street NE, Suite 700<br clear="none">Atlanta, GA 30309<br clear="none">United States<br clear="none"><br clear="none">Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)<br clear="none">Web: <a rel="nofollow" shape="rect" target="_blank" href="http://www.evaristesys.com/,">http://www.evaristesys.com/, </a><a rel="nofollow" shape="rect" target="_blank" href="http://www.csrpswitch.com/">http://www.csrpswitch.com/</a><br clear="none"><br clear="none">Sent from my BlackBerry.<br clear="none">  Original Message  <br clear="none">From: Dmitry<br clear="none">Sent: Friday, May 6, 2016 07:43<br clear="none">To: <a rel="nofollow" shape="rect" ymailto="mailto:sr-users@lists.sip-router.org" target="_blank" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><div class="yiv5934610935yqt2216990721" id="yiv5934610935yqtfd88344"><br clear="none">Reply To: Dmitry<br clear="none">Subject: [SR-Users] question about RTPengine<br clear="none"><br clear="none"><br clear="none">_______________________________________________<br clear="none">SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:sr-users@lists.sip-router.org" target="_blank" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br clear="none"></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></div></div></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></div></div></div><br><br></div>  </div> </div>  </div></div></body></html>