<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    2012-01-26 10:11, Eyal skrev:
    <blockquote
      cite="mid:ACF1979B7D3CA54089C1ABDA3528B1F901DF9D40@media2.media.ltd"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.hps
        {mso-style-name:hps;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Thanks<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">But
            this is not what I am looking for, in this way I can start
            the sound file from some point in the file but the callers
            must hear the file until the end.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I
            need something that allows me to start from some place in
            the file and end it in some other place in the file (say
            song from time 01:32 until 01:57),<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Or<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 11pt; font-family:
            &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31,
            73, 125);">Like the <b>controlplayback</b> doing
            fast-forward but without having to click any key by caller.</span></p>
      </div>
    </blockquote>
    <br>
    You can do that by combining ControlPlayback and use TIMEOUT
    function.<br>
    <br>
    If you don't want the user to be able to use any keys you can use
    all keys as stop-keys in ControlPlayback and have some logic restart
    the playback at position ${CPLAYBACKOFFSET}. <br>
    <br>
    For more details do:<br>
    <br>
    core show application ControlPlayback <br>
    core show function TIMEOUT <br>
    <br>
    /Johan<br>
    <br>
    <br>
    <br>
    <blockquote
      cite="mid:ACF1979B7D3CA54089C1ABDA3528B1F901DF9D40@media2.media.ltd"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <div style="border:none;border-top:solid #B5C4DF
          1.0pt;padding:3.0pt 0cm 0cm 0cm">
          <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
              <a class="moz-txt-link-abbreviated" href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>
              [<a class="moz-txt-link-freetext" href="mailto:asterisk-users-bounces@lists.digium.com">mailto:asterisk-users-bounces@lists.digium.com</a>] <b>On
                Behalf Of </b>Nasir Iqbal<br>
              <b>Sent:</b> Thursday, January 26, 2012 10:53 AM<br>
              <b>To:</b> Asterisk Users Mailing List - Non-Commercial
              Discussion<br>
              <b>Subject:</b> Re: [asterisk-users] play sound file<o:p></o:p></span></p>
        </div>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">check this&nbsp;<a moz-do-not-send="true"
            href="http://www.voip-info.org/wiki/view/Asterisk+cmd+ControlPlayback">http://www.voip-info.org/wiki/view/Asterisk+cmd+ControlPlayback</a><o:p></o:p></p>
        <div>
          <p class="MsoNormal"><br clear="all">
            Nasir Iqbal<br>
            <br>
            ICTBroadcast<o:p></o:p></p>
          <div>
            <p class="MsoNormal">SMS, Fax and Voice broadcasting
              solution<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><a moz-do-not-send="true"
                href="http://www.ictbroadcast.com/" target="_blank">http://www.ictbroadcast.com/</a><o:p></o:p></p>
          </div>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><br>
            <br>
            <o:p></o:p></p>
          <div>
            <p class="MsoNormal">On Wed, Jan 25, 2012 at 8:29 PM, Eyal
              &lt;<a moz-do-not-send="true" href="mailto:eyal@mcr-m.com">eyal@mcr-m.com</a>&gt;
              wrote:<o:p></o:p></p>
            <div>
              <div>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi,<o:p></o:p></p>
                <p class="MsoNormal"
                  style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">How
                  can I <span
style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#333333;background:whitesmoke">play&nbsp;a&nbsp;sound
                    file&nbsp;from&nbsp;the middle&nbsp;and&nbsp;end it&nbsp;after&nbsp;a certain
                    number&nbsp;of&nbsp;seconds?</span><o:p></o:p></p>
              </div>
            </div>
            <p class="MsoNormal"><br>
              --<br>
_____________________________________________________________________<br>
              -- Bandwidth and Colocation Provided by <a
                moz-do-not-send="true" href="http://www.api-digital.com"
                target="_blank">http://www.api-digital.com</a> --<br>
              New to Asterisk? Join us for a live introductory webinar
              every Thurs:<br>
              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a moz-do-not-send="true"
                href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
              <br>
              asterisk-users mailing list<br>
              To UNSUBSCRIBE or update options visit:<br>
              &nbsp; <a moz-do-not-send="true"
                href="http://lists.digium.com/mailman/listinfo/asterisk-users"
                target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><o:p></o:p></p>
          </div>
          <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a>

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Johan Wilfer                 email: <a class="moz-txt-link-abbreviated" href="mailto:johan@jttech.se">johan@jttech.se</a>
JT Tech | Developer          webb: <a class="moz-txt-link-freetext" href="http://jttech.se">http://jttech.se</a></pre>
  </body>
</html>