Thanks a lot, but my problem was the asterisk version!<br><br>The whisper mode on the ChanSpy of the 1.4.26 version is broken!<br><br>Upgraded version and it worked OK<br><br><br><br><div class="gmail_quote">2010/8/10 Jim Dickenson <span dir="ltr">&lt;<a href="mailto:dickenson@cfmc.com">dickenson@cfmc.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;">Your ami packet is not setting the w option for chanspy, nor I am sure you can do this.<div>
<br></div><div>You might want to create an additional exten that takes a variable from your ami packet and does the chanspy that way.</div><div><br></div><div>I use an ami packet like this with extension that do the work.</div>
<div><br></div><div><div>Action: Originate</div><div>Channel: Local/do_playback@cfmc_cdi_private</div><div>Exten: do_chanspy</div><div>Context: cfmc_cdi_private</div><div>Priority: 1</div><div>Variable: CfMC_ActionID=PlayBack</div>
<div>Variable: CfMC_WhatToPlay=lyrics-louie-louie</div><div>Variable: CfMC_WhoHear=SIP/GXP280_18-00000002</div><div>ActionID: PlayBack</div><div>Async: true</div><div><br></div><div><br></div><div><div>exten =&gt; do_playback,1,Answer()</div>
<div>exten =&gt; do_playback,n,UserEvent(BeforePlayBack,ActionID:${CfMC_ActionID} &amp; ${UNIQUEID} &amp; ${CHANNEL} &amp; ${CfMC_WhatToPlay} &amp; ${CfMC_WhoHear})</div><div>exten =&gt; do_playback,n,Wait(0.3)</div><div>
exten =&gt; do_playback,n,Playback(${CfMC_WhatToPlay})</div><div>; PLAYBACKSTATUS - SUCCESS FAILED</div><div>exten =&gt; do_playback,n,UserEvent(AfterPlayBack,ActionID:${CfMC_ActionID} &amp; ${UNIQUEID} &amp; ${CHANNEL} &amp; ${CfMC_WhatToPlay} &amp; ${CfMC_WhoHear} &amp; ${PLAYBACKSTATUS})</div>
<div>exten =&gt; do_playback,n,Hangup()</div></div><div><br></div><div><div>exten =&gt; do_chanspy,1,Answer()</div><div>exten =&gt; do_chanspy,n,UserEvent(BeforeChanSpy,ActionID:${CfMC_ActionID} &amp; ${UNIQUEID} &amp; ${CHANNEL} &amp; ${CfMC_WhatToPlay} &amp; ${CfMC_WhoHear})</div>
<div>exten =&gt; do_chanspy,n,ChanSpy(${CfMC_WhoHear},qW)</div><div>exten =&gt; do_chanspy,n,UserEvent(AfterChanSpy,ActionID:${CfMC_ActionID} &amp; ${UNIQUEID} &amp; ${CHANNEL} &amp; ${CfMC_WhatToPlay} &amp; ${CfMC_WhoHear})</div>
<div>exten =&gt; do_chanspy,n,Hangup()</div></div><div><br></div><div><br></div><div>
<div style="font-family: Helvetica;"><div style="margin: 0px;">-- </div><div style="margin: 0px;">Jim Dickenson</div><div style="margin: 0px;"><a href="mailto:dickenson@cfmc.com" target="_blank">mailto:dickenson@cfmc.com</a></div>
<div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">CfMC</div><div style="margin: 0px;"><a href="http://www.cfmc.com/" target="_blank">http://www.cfmc.com/</a></div><div><font face="Monaco" size="2"><span style="font-size: 10px;"><br>
</span></font></div></div><br>
</div>
<br><div><div><div></div><div class="h5"><div>On Aug 9, 2010, at 5:19 PM, Gabriel Ortiz Lour wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5">Hi all,<br><br>  How can I playback a file within an active call?<br>
<br>I&#39;ve tried with ChanSpy whisper mode like this (using AMI):<br><br>Action: Originate<br>Channel: Local/9999@default<br>Priority: 0<br>Variable: MSG=test<br>
Application: ChanSpy<br>Data: SIP/1234-123<br>Async: 1<br><br>and  in the dialplan:<br><br>[default]<br>exten =&gt; 9999,1,Answer()<br>exten =&gt; 9999,n,Wait(2)<br>exten =&gt; 9999,n,Playback(${MSG})<br><br>  Where SIP/1234-123 is the up bridged channel.<br>

<br>But this is not working (it seams that will work on the rolling CLI, but no sound at all)<br><br>Is there a better way to do it?<br></div></div><div class="im">
-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a 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>
               <a 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>   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></div>
</blockquote></div><br></div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a 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>
               <a 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>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>