<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">> Dear Razvan,<br clear="none">> Thanks for your reply. RTPproxy and OpenSIPS have communication with<br clear="none">> each other and all of call's RTP streams passed from RTPproxy. So there<br clear="none">> isn't any problem between them.In logs only exist this info:<br clear="none">> DBG:rtpproxy:force_rtp_proxy_body: proxy reply: 57548 192.168.1.20#012<br
clear="none">> and nothing for : rtpproxy_stream2uas("/var/rtpproxy/prompts/test",<br clear="none">> "-1") or any errors.<br clear="none">> "What do you mean the function does not work properly?" I mean this<br clear="none">> function not work for me and not send any command to RTPproxy.<br clear="none">> If you can, give me a choice to use your patch.<br clear="none">> Thanks so.<br clear="none">><br clear="none">> Best Regards,<br clear="none">> H.Yavari<br clear="none">><br clear="none">> PS:<br clear="none">> I enabled the RTPproxy logging and this is result of calling the method<br clear="none">> :rtpproxy_stream2uas("/var/rtpproxy/prompts/092", "-1") :::<br clear="none">><br clear="none">> DBUG:handle_command: received command "6387_7 P-1<br clear="none">> <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">> /var/rtpproxy/prompts/092.8 session as5f218e73;1 "<br clear="none">> ERR:handle_play: can't create player<br clear="none">> DBUG:doreply: sending reply "6387_7 E6<br clear="none"><br></div><br><br></div> </div> </div> </div></body></html>