<div dir="ltr">I was able to figure out how to do this in Opensips 3.3<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(183, "SessionProgress", $var(body));<br> rtpengine_play_media("from-tag=$ft file=/etc/rtpengine/music.wav");<br> sleep(10);<br> rtpengine_delete("from-tag=$ft");<br></div><div> t_reply(603, "Forbidden")</div><div> exit;</div><div><br></div><div>Still having problems with late media invite on this, but trying with 200 OK instead of 183 but not able to absorb the ACK coming back.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 1, 2023 at 8:02 PM Kevin Kennedy <<a href="mailto:kennedy4260@gmail.com">kennedy4260@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Devang,<div dir="auto">Curious if you have found a solution to this problem, as I am having the same problem with Opensips 3.3 and rtpengine.</div><div dir="auto"><br></div><div dir="auto">Thank you.</div><div dir="auto"><br></div><div dir="auto">Kevin </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 14, 2023, 3:54 AM Devang Dhandhalya via Users <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello All<div><br></div><div>I am facing the problem that when I make a call, I am not able to hear the audio file on my softphone(zoiper3&5, microsip) which is playing from opensips using rtpengine module, but when i capture the that call sip trace and load that pcap in wireshark i am able to hear audio file music.<br><br>Here is the code snippet: </div><div> rtpengine_offer();<br> append_to_reply("Content-Type: application/sdp\r\n");<br> $var(body) = $(rb{re.subst,/(IP4.).*/\1127.0.0.1/g});<br> t_reply_with_body(183, "Session Progress", $var(body));<br> rtpengine_play_media("file=/home/file_example_WAV_2MG_G711.org_1.wav");<br><br>opensips version: 3.2.5</div><div>I am using a Standard wave audio file with 8KHz, 16bit mono, I used other formats (i.e.mp3) as well but still in softphones I am not able to Hear voice but in wireshark I am able to hear mp3 file voice.<br>I would appreciate it if someone has an idea what to do. Please feel free to ask if you think I have forgotten to describe something that might be important or something is unclear in what I have written.<br><br>Regards<br>Devang Dhandhalya</div><div></div></div>
<br>
<div><b>Disclaimer</b><br></div><div><div><span>In addition to generic Disclaimer which you have agreed on our website, any views or opinions presented in this email are solely those of the originator and do not necessarily represent those of the Company or its sister concerns. Any liability (in negligence, contract or otherwise) arising from any third party taking any action, or refraining from taking any action on the basis of any of the information contained in this email is hereby excluded.</span></div></div><div><span><br></span></div><div><span><b>Confidentiality</b></span></div><div><span>This communication (including any attachment/s) is intended only for the use of the addressee(s) and contains information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying of this communication is prohibited. Please inform originator if you have received it in error.</span></div><div><span><br></span></div><div><span><b>Caution for viruses, malware etc.</b></span></div><div><span>This communication, including any attachments, may not be free of viruses, trojans, similar or new contaminants/malware, interceptions or interference, and may not be compatible with your systems. You shall carry out virus/malware scanning on your own before opening any attachment to this e-mail. The sender of this e-mail and Company including its sister concerns shall not be liable for any damage that may incur to you as a result of viruses, incompleteness of this message, a delay in receipt of this message or any other computer problems. </span></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" rel="noreferrer" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
</blockquote></div>