<div dir="ltr">I am trying to build a solution where Opensips 3.2+ with RTPengine acts as a UAC, answers a call with 200OK, plays media from file, and will terminate the call right after playing announcement.  <div><br></div><div>Opensips is responding with 200OK with SDP body and making the correct changes for the IP, but when the ACK comes back from the UAS, Opensips doesn't seem to absorb it and retransmits the 200OK.  <br><div><br></div><div>Code snippet handling this scenario</div><div><br></div><div>        rtpengine_manage("from-tag=$ft replace-session-connection trust-address replace-origin codec-strip-g729",,$var(body));<br>        append_to_reply("Contact: <sip:$socket_out>\r\n");<br>        append_to_reply("Content-Type: application/sdp\r\n");<br>        t_reply_with_body(200, "OK", $var(body));<br>        rtpengine_play_media("from-tag=$ft file=/etc/rtpengine/unk_num.wav");<br>        sleep(10);<br>        rtpengine_delete("from-tag=$ft");<br>        #t_reply(603, "Decline");<br>        exit();</div></div><div><br></div><div><br></div><div>What do I need to add to handle this scenario correctly?</div><div><br></div><div>Note: 

I was able to get this to work with Early Media (183 reply_with_body, and send t_reply(603, "Decline")), but we have customers using late media invite as well, so the Early Media option wouldn't work in that case.  

</div><div><br></div><div>Thank you.</div><div><br></div><div>Kevin Kennedy</div></div>