<div dir="ltr">Hi Eran,<div><br></div><div>Have you tried rtpengine_manage() before playing the media ?</div><div> <br> rtpengine_manage();<br> rtpengine_play_media("file=<span style="font-family:monospace">ringback_tone_file.</span><span style="font-family:monospace">wav</span>");</div><div> exit;</div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div>Regards,</div>
<div>Jehanzaib</div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 7, 2024 at 2:10 AM Eran Leshem <<a href="mailto:eranl@kayhut.com">eranl@kayhut.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="ltr">Hi, I would like to create a special extension that will answer by playing a wav file back to the caller.<div><br></div><div>The call will be as such:</div><div>1. The caller will call the special extension: "wav-call"</div><div>2. Instead of someone answering his call, the calling person will hear a sound (a song, a wav file), being played back to him.</div><div>3. After that, the caller will hang-up.</div><div><br>I have tried to do it in several ways, but failed.<br>I looked at the documentation and I have tried using:<br><br><font face="monospace">rtpengine_play_media("file=/path/to/ringback_tone_file.wav");<br></font><br><div>but, did not succeed.</div><div>I keep getting: "Unknown call-ID"</div></div><div><br></div><div>My machine:<br><div>- Linux Mint 21.3 which is based on Ubuntu 22.04 LTS (Jammy Jellyfish),</div><div>- 16 GB memory,</div><div>- OpenSIPS version 3.4</div></div><div>- RTPEngine is installed.</div><div><br></div><div>Any ideas?</div><div>- Thanks, Eran L.</div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>