<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Aqs,<br>
      <br>
      Try using the "r" flag when calling the rtpproxy_offer()<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 05.01.2016 23:22, Aqs Younas wrote:<br>
    </div>
    <blockquote
cite="mid:CAGVOjVW+BaV-ngsTjHOsCqFJxir=_Mkp4eui7iLTkbdSmyoo=w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Thank you Guys. I used different versions of opensips
                with 2 rtpproxy versions, In every combination I see
                play command being executed before offer, but in route
                block code was reverse. I don't know why
                opensips/rtpproxy is behaving this way.  Finally i got
                things working with opensips <br>
                <br>
                version: opensips 1.8.8-notls (x86_64/linux)<br>
                flags: STATS: On, USE_IPV6, USE_TCP, DISABLE_NAGLE,
                USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC,
                FAST_LOCK-ADAPTIVE_WAIT<br>
                ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
                MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>
                poll method support: poll, epoll_lt, epoll_et, sigio_rt,
                select.<br>
                svnrevision: unknown<br>
                @(#) $Id$<br>
                main.c compiled on 15:50:20 Jan  5 2016 with gcc 4.9.2<br>
                <br>
              </div>
              And rptproxy 1.2.<br>
            </div>
            <br>
          </div>
          But caller hears the prompt after callee answer it. Can I make
          it play before dialing (sending invite to) callee?<br>
          <br>
          My Invite block.<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.wav", "1");<br>
                  }<br>
          <br>
          <br>
          <br>
        </div>
        <div>I could provide debug logs with opensips_2.1 and
          rtpproxy_2.1 if it helps tackle the problem. <br>
        </div>
      </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>