<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div dir="ltr"><span>Hi,<br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" dir="ltr"><span>Your hint solved the problem of the playing and now I see this in logs: INFO:handle_play: -1 times playing prompt /var/rtpproxy/prompts/092 codec 8.</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" dir="ltr"><span><br></span></div><div dir="ltr">"Shouldn't you use the rtpproxy_stream2uac() function for playing ringback tone?" Why? and How I should this?<br></div>  <div style="font-family:
 HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12pt;"> <div class="y_msg_container"> <hr size="1"><br><div dir="ltr">Hi, Yavari!<br clear="none"><br clear="none">That error indicates that RTPProxy couldn't find any available codecs <br clear="none">for your client. Please check the files in /var/rtpproxy/prompts/092.* <br clear="none">to make sure you have the proper files installed.<br clear="none"><br clear="none">I find something weird in your examples: you're saying that you are <br clear="none">calling the function like this, which is correct:<br clear="none"><br clear="none">rtpproxy_stream2uas("/var/rtpproxy/prompts/092", "-1");<br clear="none"><br clear="none">However, RTPProxy prints the comand as: /var/rtpproxy/prompts/092.8, <br clear="none">which is incorrect, since the codec should
 not be appended to the file. <br clear="none">Are you using different configure versions?<br clear="none"><br clear="none">Also, shouldn't you use the rtpproxy_stream2uac() function for playing <br clear="none">ringback tone?<br clear="none"><br clear="none">Best regards,<br clear="none"><br clear="none">Razvan Crainea<br clear="none">OpenSIPS Core Developer<br clear="none"><a shape="rect" href="http://www.opensips-solutions.com/" target="_blank">http://www.opensips-solutions.com</a><br clear="none"><br clear="none">On 02/26/2014 09:22 AM, H Yavari wrote:<br clear="none">&gt; Dear Razvan,<br clear="none">&gt; Thanks for your reply. RTPproxy and OpenSIPS have communication with<br clear="none">&gt; each other and all of call's RTP streams passed from RTPproxy. So there<br clear="none">&gt; isn't any problem between them.In logs only exist this info:<br clear="none">&gt; DBG:rtpproxy:force_rtp_proxy_body: proxy reply: 57548 192.168.1.20#012<br
 clear="none">&gt; and nothing for : rtpproxy_stream2uas("/var/rtpproxy/prompts/test",<br clear="none">&gt; "-1") or any errors.<br clear="none">&gt; "What do you mean the function does not work properly?" I mean this<br clear="none">&gt; function not work for me and not send any command to RTPproxy.<br clear="none">&gt; If you can, give me a choice to use your patch.<br clear="none">&gt; Thanks so.<br clear="none">&gt;<br clear="none">&gt; Best Regards,<br clear="none">&gt; H.Yavari<br clear="none">&gt;<br clear="none">&gt; PS:<br clear="none">&gt; I enabled the RTPproxy logging and this is result of calling the method<br clear="none">&gt; :rtpproxy_stream2uas("/var/rtpproxy/prompts/092", "-1") :::<br clear="none">&gt;<br clear="none">&gt; DBUG:handle_command: received command "6387_7 P-1<br clear="none">&gt; <a shape="rect" ymailto="mailto:562e15da4cdd600161336f3235ce8213@192.168.1.116"
 href="mailto:562e15da4cdd600161336f3235ce8213@192.168.1.116">562e15da4cdd600161336f3235ce8213@192.168.1.116</a><br clear="none">&gt; /var/rtpproxy/prompts/092.8 session as5f218e73;1 "<br clear="none">&gt; ERR:handle_play: can't create player<br clear="none">&gt; DBUG:doreply: sending reply "6387_7 E6<br clear="none"><br></div><br><br></div> </div> </div>  </div></body></html>