<div dir="ltr">Yes, sorry, my idea was too simplistic, as it did not take into account that the caller would already be hearing the ringing and therefore the announcement would need to be somehow mixed with that ringing...</div><div class="gmail_extra"><br><div class="gmail_quote">On 24 August 2016 at 08:27, Jean Aunis <span dir="ltr"><<a href="mailto:jean.aunis@prescom.fr" target="_blank">jean.aunis@prescom.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div 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><span class="">
    <br>
    <div>Le 23/08/2016 à 20:53, Israel Gottlieb
      a écrit :<br>
    </div>
    <blockquote 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 href="mailto:jean.aunis@prescom.fr" target="_blank">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/s<wbr>ounddir/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>
  </span></div>

<br>--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016<br>
      <a href="http://www.asterisk.org/community/astricon-user-conference" rel="noreferrer" target="_blank">http://www.asterisk.org/<wbr>community/astricon-user-<wbr>conference</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Getting+<wbr>Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-<wbr>users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><img alt="Digium logo" src="http://www.digium.com/images/graphics/digium_RGB_signature.gif" width="288" height="50" style="color:rgb(0,0,0);font-family:Times;font-size:medium"><br><div><span style="color:rgb(0,0,0);font-size:medium;font-family:Times"><font color="#000000" face="Calibri, Helvetica, Arial, Sans"><span style="font-weight:bold;font-size:12px"><b><span>David Duffett</span></b></span><br><span style="font-size:11px">Digium, Inc. · <span>Director, Worldwide Asterisk Community</span><br><span>6 Landscape Close </span></span></font></span><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,Arial,Sans;font-size:11px">· </span><span style="font-size:11px;color:rgb(0,0,0);font-family:Calibri,Helvetica,Arial,Sans">Weston on the Green</span><span style="font-size:11px;color:rgb(0,0,0);font-family:Calibri,Helvetica,Arial,Sans"> · </span><span style="font-size:11px;color:rgb(0,0,0);font-family:Calibri,Helvetica,Arial,Sans">Bicester </span><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,Arial,Sans;font-size:11px">· </span><span style="font-size:11px;color:rgb(0,0,0);font-family:Calibri,Helvetica,Arial,Sans">Oxfordshire OX25 3SX</span><span style="font-size:11px;color:rgb(0,0,0);font-family:Calibri,Helvetica,Arial,Sans"> · </span><span style="font-size:11px;color:rgb(0,0,0);font-family:Calibri,Helvetica,Arial,Sans">UK</span></div><div><span style="color:rgb(0,0,0);font-size:medium;font-family:Times"><font color="#000000" face="Calibri, Helvetica, Arial, Sans"><span style="font-size:11px"><span>direct/fax:</span> <span>+1 256 428 6119</span><span> · mobile:</span> <span>+44 7722 442236</span><br><span><span>twitter: </span><span>dduffett</span> <span>· linkedin: </span><span><a href="http://www.linkedin.com/in/davidduffett" target="_blank">www.linkedin.com/in/davidduffett</a></span> <span></span><span></span><br></span><span>Check us out at: <a href="http://digium.com/" target="_blank">http://digium.com</a> · <a href="http://www.asterisk.org/" target="_blank">http://asterisk.org</a> </span></span></font></span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px"> </span><br></div></div></div></div></div>
</div>