<div dir="ltr">Hi all,<div><br></div><div>I tried to implement simple announcer by using play_media function in latest rtpengine module. I implemented simple Lua script and I tried to test the implementation with simple SIPp scenario.</div><div><br></div><div>Here is the Lua function to reply the received INVITE request.</div><div><br></div><div>```Lua</div><div><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container" style="box-sizing:border-box;border-collapse:collapse;border-spacing:0px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="gmail-LC93" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible">function ksr_route_announcer()<br>    KSR.info("======= Announcer =====\n");<br>    local u = KSR.pv.gete("$rU");<br>    KSR.info("username is: " .. u .. "\n");<br>    if u == "ann" then<br>         KSR.info("announcer has been called.\n");<br>         if KSR.textops.has_body_type("application/sdp") then<br>              KSR.info("request contains SDP.\n");<br>              KSR.tm.t_newtran();<br>              KSR.rtpengine.rtpengine_manage0();<br>              KSR.tm.t_reply(200, "OK");<br>              KSR.x.exit();<br>         end<br>    end<br>end<br></td></tr></tbody></table></div><div>```</div><div><br></div><div>According to kamailio logs rtpengine modified the INVITE SDP, but I want to add SDP to 200 OK response. How should I manage rtpengine to append SDP answer to the 200 OK response?</div><div><br></div><div>The attached is the SIPp log, as you can see that last 200 OK doesn't contain SDP.</div><div><br></div><div>Regards,</div><div>Ali</div></div>