<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Jim,<div>First i'm a little bit confused, because your code was a little bit difficult to read, but now i understand.</div><div>it works fine in my Setup, Big Thanks for your help.</div><div><br></div><div>bye </div><div>Daniel</div><div><br></div><div><br></div><div><div><div>Am 16.05.2010 um 16:11 schrieb Jim Dickenson:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>We do the following:<br><br>Action: Originate<br>Channel: Local/do_playback@cfmc_cdi_private<br>Exten: do_chanspy<br>Context: cfmc_cdi_private<br>Priority: 1<br>Variable: CfMC_ActionID=PlayBack<br>Variable: CfMC_WhatToPlay=lyrics-louie-louie<br>Variable: CfMC_WhoHear=SIP/GXP280_18-00000002<br>ActionID: PlayBack<br>Async: true<br><br><br>exten => do_playback,1,Answer()<br>exten => do_playback,n,UserEvent(BeforePlayBack,ActionID:${CfMC_ActionID} & ${UNIQUEID} & ${CHANNEL} & ${CfMC_WhatToPlay} & ${CfMC_WhoHear})<br>exten => do_playback,n,Wait(0.3)<br>exten => do_playback,n,Playback(${CfMC_WhatToPlay})<br>; PLAYBACKSTATUS - SUCCESS FAILED<br>exten => do_playback,n,UserEvent(AfterPlayBack,ActionID:${CfMC_ActionID} & ${UNIQUEID} & ${CHANNEL} & ${CfMC_WhatToPlay} & ${CfMC_WhoHear} & ${PLAYBACKSTATUS})<br>exten => do_playback,n,Hangup()<br><br><br>exten => do_chanspy,1,Answer()<br>exten => do_chanspy,n,UserEvent(BeforeChanSpy,ActionID:${CfMC_ActionID} & ${UNIQUEID} & ${CHANNEL} & ${CfMC_WhatToPlay} & ${CfMC_WhoHear})<br>exten => do_chanspy,n,ChanSpy(${CfMC_WhoHear},qW)<br>exten => do_chanspy,n,UserEvent(AfterChanSpy,ActionID:${CfMC_ActionID} & ${UNIQUEID} & ${CHANNEL} & ${CfMC_WhatToPlay} & ${CfMC_WhoHear})<br>exten => do_chanspy,n,Hangup()<br><br><br>-- <br>Jim Dickenson<br><a href="mailto:dickenson@cfmc.com">mailto:dickenson@cfmc.com</a><br><br>CfMC<br>http://www.cfmc.com/<br><br><br><br>On May 16, 2010, at 4:16 AM, Daniel Knoll wrote:<br><br><blockquote type="cite">Hello User-List,<br></blockquote><blockquote type="cite">is it possible to play a sound file directly to a caller channel? <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Like this AMI command<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Action: Originate<br></blockquote><blockquote type="cite">Channel: SIP/20-00001d41<br></blockquote><blockquote type="cite">Application: Playback<br></blockquote><blockquote type="cite">Data: /path/to/audio/file<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I get an Error Message. My intension is to play a sound file to a caller and the other callers don't hear this.<br></blockquote><blockquote type="cite">Can someone help me ?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks a lot <br></blockquote><blockquote type="cite">Bye Daniel<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-- <br></blockquote><blockquote type="cite">_____________________________________________________________________<br></blockquote><blockquote type="cite">-- Bandwidth and Colocation Provided by http://www.api-digital.com --<br></blockquote><blockquote type="cite">New to Asterisk? Join us for a live introductory webinar every Thurs:<br></blockquote><blockquote type="cite"> http://www.asterisk.org/hello<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">asterisk-users mailing list<br></blockquote><blockquote type="cite">To UNSUBSCRIBE or update options visit:<br></blockquote><blockquote type="cite"> http://lists.digium.com/mailman/listinfo/asterisk-users<br></blockquote><br><br>-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> http://www.asterisk.org/hello<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> http://lists.digium.com/mailman/listinfo/asterisk-users<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><p style="line-height: 1.4; "><font class="Apple-style-span" color="#666666" face="Verdana"><span class="Apple-style-span" style="font-size: x-small; line-height: 12px; "><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; line-height: normal; "></span></span></font></p><font class="Apple-style-span" color="#666666" face="Verdana"><p style="line-height: 1.4; "><font color="#666666" face="Verdana" size="2"><font l="" color="#666666" face="Verdana"><span class="Apple-style-span" style="font-size: x-small; ">Daniel Knoll</span></font></font></p><p style="line-height: 1.4; "><font color="#666666" face="Verdana" size="2"><font l="" color="#666666" face="Verdana"><span class="Apple-style-span" style="font-size: x-small; ">Liberdas</span><span class="Apple-style-span" style="font-size: x-small; ">t</span><span class="Apple-style-span" style="font-size: x-small; ">r</span><span class="Apple-style-span" style="font-size: x-small; ">.</span><span class="Apple-style-span" style="font-size: x-small; "> </span><span class="Apple-style-span" style="font-size: x-small; ">9</span></font><font l="" color="#666666" face="Verdana" size="1"> <br>12047 Berlin</font></font></p><p style="line-height: 1.4; "><font color="#666666" face="Verdana" size="2"><font l="" color="#666666" face="Verdana" size="1"><b>fon</b> +49 (0)179 20 16 50 8<b><br></b><b>mail</b> <a href="mailto:daniel@danielknoll.de">daniel@danielknoll.de</a><br><b>web</b> </font><font l="" color="#666666" face="Verdana"><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">w</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">w</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">w</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">.</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">d</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">a</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">n</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">i</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">e</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">l</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">k</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">n</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">o</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">l</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">l</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">.</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">d</a></span><span class="Apple-style-span" style="font-size: x-small; "><a href="http://www.danielknoll.de/">e</a></span></font></font></p></font><p></p></div><div><br></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>