<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Using Progress didn't solve the problem. If I cannot find another
      way, I will use your solution of recording the ring tone.</p>
    <br>
    <div class="moz-cite-prefix">Le 23/08/2016 à 20:53, Israel Gottlieb
      a écrit :<br>
    </div>
    <blockquote
cite="mid:CAOYD823sJiL2tq3tQ=PbiRbRNN0MaxZfBXjddDY17o-z7JqTxg@mail.gmail.com"
      type="cite">
      <p dir="ltr">Maybe try progress() instead of answer ()</p>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">בתאריך 23 באוג׳ 2016 7:19 PM,‏ "Jean
          Aunis" <<a moz-do-not-send="true"
            href="mailto:jean.aunis@prescom.fr">jean.aunis@prescom.fr</a>>
          כתב:<br type="attribution">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <p>Thank you, I just tried your suggestion. Strangely, the
                announcement is played only if I try to dial a SIP peer
                which is not available (not registered to be more
                precise). If the SIP peer is available, I only get the
                ring tone, and never hear the announcement. Here is the
                dialplan (I had to add an Answer() before the Dial,
                otherwise the announcement is never played, even in the
                first case) :</p>
              <p><tt>exten = 007,1,Answer()<br>
                  same  = n,Dial(SIP/foo&Local/s@playme,<wbr>40)</tt><tt><br>
                </tt></p>
              <p><tt>[playme]</tt><tt><br>
                </tt><tt>exten = s,1,Ringing()</tt><tt><br>
                </tt><tt>same  = n,Wait(10)</tt><tt><br>
                </tt><tt>same  = n,Playback(/var/lib/asterisk/<wbr>sounddir/announce,noanswer)</tt></p>
              When it is working, I can see the following output in the
              CLI, which is not there otherwise :<br>
              <tt>-- SIP/xxxxxxxxx requested media update control 26,
                passing it to Local/s@playme-000005be;1</tt><br>
              <br>
              Otherwise, no error message, Asterisk tells he is playing
              the announcement but I don't hear it.<br>
              <br>
              Best regards<br>
              <br>
              Jean Aunis<br>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>