<div dir="ltr"><div>Hi,</div><div><br></div><div>I tried adding the line that you suggested, but I still get an error message.</div><div>The route that I wrote is:</div><div><br></div>```<div><font face="monospace">route[play_audio] {</font></div><div><font face="monospace">  rtpengine_offer("to-tag=$ft from-tag=$ft");</font></div><div><font face="monospace">  append_to_reply("Content-Type: application/sdp\r\n");</font></div><div><font face="monospace">  $var(body) = $(rb{re.subst,/(IP4.).*/\1$si/g});</font></div><div><font face="monospace">  t_reply_with_body(183, "Session Progress", $var(body));</font></div><div><font face="monospace">  rtpengine_manage();</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">  $var(play_duration) = 300;</font></div><div><font face="monospace">  rtpengine_play_media("file=/path/to/music.wav to-tag=$ft", $var(</font><span style="font-family:monospace">play_duration</span><span style="font-family:monospace">));</span></div><div><font face="monospace">}<br></font><div>```</div></div><div><br></div><div>The error message that I'm getting is:</div><div><br></div><div>ERROR:rtpengine:rtpe_function_call: proxy replied with error: No participant party specified</div><div>ERROR:rtpengine:rtpengine:rtpengine_playmedia_f: could not start media!<br></div><div><br></div><div>Any idea on what is wrong?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 7, 2024 at 4:15 AM Jehanzaib Younis <<a href="mailto:jehanzaib.kiani@gmail.com">jehanzaib.kiani@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="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"><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" target="_blank">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>
_______________________________________________<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>