<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>From what I can see in your logs, you are first sending a
      command to play the file (line 1) and only then you create the
      media session (line 4). First you have to create the session
      (rtpproxy_offer()), and then play the sound. <br>
      The snipped you pasted below, shows the right order, however, they
      are somehow executed the other way around. You should look into
      that.<br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 01/05/2016 11:39 AM, Aqs Younas
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGVOjVWJO=ks36JRNDYPA8MfGkAt3FpzjfKEDpTDAKBO7rtiGA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Thanks for Replying. The asked pastebin is <br>
          <br>
          <a moz-do-not-send="true" href="http://pastebin.com/Hu8mkbTj">http://pastebin.com/Hu8mkbTj</a><br>
          <br>
          Please do tell if you need anything else.<br>
        </div>
        <br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 5 January 2016 at 13:27, Răzvan
          Crainea <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> <tt>Hello!<br>
                <br>
                Try to increase rtpproxy debugging and post the logs on
                pastebin.<br>
                <br>
                Best regards,<br>
              </tt>
              <pre cols="72">Răzvan Crainea
OpenSIPS Solutions
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
              <div>
                <div class="h5">
                  <div>On 01/04/2016 09:45 PM, Aqs Younas wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">
                      <div>Hi users.<br>
                        <br>
                      </div>
                      <div>I am trying to play caller a file before
                        dialing callee. I used the makeann from rtpproxy
                        to pre encode a  wav file didyou8r1c.wav(mono,
                        16bit, 8k), which gave didyou8r1c.wav.0 and
                        didyou8r1c.wav.8. <br>
                        <br>
                        Both files are located in /opt/test/ directory.
                        My invite block is given below. <br>
                        <br>
                        if (has_body("application/sdp")) {<br>
                                                 if (rtpproxy_offer())<br>
                                                        t_on_reply("1");<br>
                                                        xlog("Trying to
                        Play Caller file");<br>
                                                       
                        rtpproxy_stream2uac("/opt/test/didyou8r1c",
                        "-1");<br>
                                }<br>
                        <br>
                      </div>
                      <div>But i see this error in rtpproxy logs. <br>
                        <br>
                        Jan  4 04:07:08 66-226-76-150 rtpproxy[3977]: <a
                          moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:GLOBAL:handle_command">INFO:GLOBAL:handle_command</a></a>:
                        play request failed: session
                        ZjU2NDU4Y2M1ODJlYjVmZjNmODY4MGI2MmU5ZTNkZjI.,
                        tags 253e361d;1/NONE not found<br>
                        <br>
                      </div>
                      <div>I hope someone can help me in figuring out
                        what i am doing wrong. <br>
                      </div>
                      <div><br>
                      </div>
                      <div>Best Regards.<br>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
              </blockquote>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
            <a moz-do-not-send="true"
              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>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>