<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 Razvan,</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></span>I want Ringing replaced with Playing media for user that called (UAC). Yet caller hear nothing. I should drop 180 ? I should call this method when I received INVITE? <br></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"><br></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">Best Regards,</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">H.Yavari<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">Hi, Yavari!<br clear="none"><div dir="ltr"><br clear="none">In your scenario, you want to play media to UAC, not UAS, right? Does it <br clear="none">work properly now, can the caller hear the ringing?<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 01:34 PM, H Yavari wrote:<br clear="none">> Hi,<br clear="none">> Your hint solved the problem of the playing and now I see this in logs:<br clear="none">> INFO:handle_play: -1 times playing prompt /var/rtpproxy/prompts/092 codec 8.<br clear="none">><br clear="none">> "Shouldn't you use the rtpproxy_stream2uac() function for playing<br clear="none">> ringback tone?" Why? and How I should this?<br clear="none">> ------------------------------------------------------------------------<br clear="none">><br clear="none">> 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><<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">>
<mailto:<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 clear="none">><br clear="none">><br clear="none">><br clear="none">><br clear="none">> _______________________________________________<br clear="none">> Users mailing list<br clear="none">> <a shape="rect" ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br clear="none">> <a shape="rect" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><div class="yqt7756822468" id="yqtfd14798"><br clear="none">><br clear="none"><br clear="none">_______________________________________________<br clear="none">Users mailing list<br clear="none"><a shape="rect" ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br clear="none"><a shape="rect" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br clear="none"></div></div><br><br></div> </div> </div> </div></body></html>