<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Use an AMI packet like this:<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</div><div>ActionID: PlayBack</div><div>Async: true</div><div><br></div><div><br></div><div>With dialplan like this:</div><div><br></div><div><div>exten => do_playback,1,Answer()</div><div>exten => do_playback,n,UserEvent(BeforePlayBack,ActionID:${CfMC_ActionID} & ${UNIQUEID} & ${CHANNEL} & ${CfMC_WhatToPlay} & ${CfMC_WhoHear})</div><div>exten => do_playback,n,Wait(0.3)</div><div>exten => do_playback,n,Playback(${CfMC_WhatToPlay})</div><div>; PLAYBACKSTATUS - SUCCESS FAILED</div><div>exten => do_playback,n,UserEvent(AfterPlayBack,ActionID:${CfMC_ActionID} & ${UNIQUEID} & ${CHANNEL} & ${CfMC_WhatToPlay} & ${CfMC_WhoHear} & ${PLAYBACKSTATUS})</div><div>exten => do_playback,n,Hangup()</div></div><div><br></div><div><div>exten => do_chanspy,1,Answer()</div><div>exten => do_chanspy,n,UserEvent(BeforeChanSpy,ActionID:${CfMC_ActionID} & ${UNIQUEID} & ${CHANNEL} & ${CfMC_WhatToPlay} & ${CfMC_WhoHear})</div><div>exten => do_chanspy,n,ChanSpy(${CfMC_WhoHear},qW)</div><div>exten => do_chanspy,n,UserEvent(AfterChanSpy,ActionID:${CfMC_ActionID} & ${UNIQUEID} & ${CHANNEL} & ${CfMC_WhatToPlay} & ${CfMC_WhoHear})</div><div>exten => do_chanspy,n,Hangup()</div></div><div><br></div><div><br></div><div>You need to issue an AMI packet for each leg of the call. Each leg will hear the same audio feed offset by however long it takes the packets to be processed. In general this is a few milliseconds and should not be a big deal.</div><div>
<div style="font-family: Helvetica; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">-- </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Jim Dickenson</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="mailto:dickenson@cfmc.com">mailto:dickenson@cfmc.com</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">CfMC</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="http://www.cfmc.com/">http://www.cfmc.com/</a></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br></span></font></div></div><br class="Apple-interchange-newline">
</div>
<br><div><div>On Dec 15, 2011, at 10:27 PM, virendra bhati wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi,<br><br>Plese give a little example of script so that it will be clear.<br><br><div class="gmail_quote">On Thu, Dec 15, 2011 at 11:09 PM, Jim Dickenson <span dir="ltr"><<a href="mailto:dickenson@cfmc.com">dickenson@cfmc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">You also use AMI to inject audio into the conversation using the ChanSpy application.<br>
<font color="#888888"><div>
<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;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Monaco">-- </div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Monaco">
Jim Dickenson</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Monaco"><a href="mailto:dickenson@cfmc.com" target="_blank">mailto:dickenson@cfmc.com</a></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Monaco;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Monaco">
CfMC</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Monaco"><a href="http://www.cfmc.com/" target="_blank">http://www.cfmc.com/</a></div><div><font face="Monaco"><span style="font-size:10px"><br>
</span></font></div></div></span><br>
</div></font><div><div></div><div class="h5">
<br><div><div>On Dec 15, 2011, at 9:23 AM, Danny Nicholas wrote:</div><br><blockquote type="cite"><span style="border-collapse:separate;font-family:'Hoefler Text';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div link="#000000" vlink="#000000" lang="EN-US">
<div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">You can’t per se, but you can call an AGI using stream?<u></u><u></u></span></div>
<div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div>
<div><div style="border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;border-top-style:solid;border-top-color:rgb(181,196,223);border-top-width:1pt;padding-top:3pt;padding-right:0in;padding-bottom:0in;padding-left:0in">
<div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"><span> </span><a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a><span> </span>[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>]<span> </span><b>On Behalf Of<span> </span></b><a href="mailto:c.savinovich@itntelecom.com" target="_blank">c.savinovich@itntelecom.com</a><br>
<b>Sent:</b><span> </span>Thursday, December 15, 2011 11:22 AM<br><b>To:</b><span> </span>Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b><span> </span>Re: [asterisk-users] Play audio file for both Caller and Callee in a call<u></u><u></u></span></div>
</div></div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><u></u> <u></u></div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:black">Dear Danny:<u></u><u></u></span></div></div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:black"><u></u> <u></u></span></div></div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:black"> How can you use Playback in the middle of 2 channels engaged in a conversation?<u></u><u></u></span></div></div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:black"><u></u> <u></u></span></div></div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:black">Thanks<u></u><u></u></span></div></div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:black">C. Savinovich<u></u><u></u></span></div></div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:black"><u></u> <u></u></span></div></div><blockquote style="border-top-style:none;border-right-style:none;border-bottom-style:none;border-width:initial;border-color:initial;border-left-style:solid;border-left-color:blue;border-left-width:1.5pt;padding-top:0in;padding-right:0in;padding-bottom:0in;padding-left:6pt;margin-left:6pt;margin-top:5pt;margin-bottom:5pt">
<div><p class="MsoNormal" style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:12pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:black">-------- Original Message --------<br>
Subject: Re: [asterisk-users] Play audio file for both Caller and<br>Callee in a call<br>From: "Danny Nicholas" <<a href="mailto:danny@debsinc.com" target="_blank"><span style="color:windowtext">danny@debsinc.com</span></a>><br>
Date: Thu, December 15, 2011 9:31 am<br>To: "'Asterisk Users Mailing List - Non-Commercial Discussion'"<br><<a href="mailto:asterisk-users@lists.digium.com" target="_blank"><span style="color:windowtext">asterisk-users@lists.digium.com</span></a>><u></u><u></u></span></p>
<div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-family:Verdana,sans-serif;color:rgb(31,73,125)">Playback? What flavor of Asterisk are you using?</span><span style="font-family:Verdana,sans-serif;color:black"><u></u><u></u></span></div>
</div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-family:Verdana,sans-serif;color:rgb(31,73,125)"> </span><span style="font-family:Verdana,sans-serif;color:black"><u></u><u></u></span></div>
</div><div><div style="border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;border-top-style:solid;border-top-color:windowtext;border-top-width:1pt;padding-top:3pt;padding-right:0in;padding-bottom:0in;padding-left:0in">
<div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif;color:black">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif;color:black"><span> </span><a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank"><u><span style="color:blue">asterisk-users-bounces@lists.digium.com</span></u></a><span> </span>[<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank"><u><span style="color:blue">mailto:asterisk-users-bounces@lists.digium.com</span></u></a>]<span> </span><b>On Behalf Of<span> </span></b>ISABEL ORDAS ARNAL<br>
<b>Sent:</b><span> </span>Thursday, December 15, 2011 10:29 AM<br><b>To:</b><span> </span><a href="mailto:asterisk-users@lists.digium.com" target="_blank"><u><span style="color:blue">asterisk-users@lists.digium.com</span></u></a><br>
<b>Subject:</b><span> </span>[asterisk-users] Play audio file for both Caller and Callee in a call</span><span style="font-family:Verdana,sans-serif;color:black"><u></u><u></u></span></div></div></div></div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-family:Verdana,sans-serif;color:black"> <u></u><u></u></span></div></div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-family:Verdana,sans-serif;color:black">Dear all,<u></u><u></u></span></div></div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-family:Verdana,sans-serif;color:black">Anyone of you knows how to play an audio file at the beginning of a call for both Caller and Callee?<u></u><u></u></span></div></div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-family:Verdana,sans-serif;color:black">A(x) of Dial application only plays audio for callee. I don’t want to use MeetMe because I want to use Monitor and MixMonitor.<u></u><u></u></span></div></div><div>
<div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-family:Verdana,sans-serif;color:black"> <u></u><u></u></span></div>
</div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-family:Verdana,sans-serif;color:black">Thank you!<u></u><u></u></span></div>
</div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="color:black" lang="ES"> </span><span style="font-family:Verdana,sans-serif;color:black"><u></u><u></u></span></div>
</div><div class="MsoNormal" style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif;text-align:center" align="center"><span style="color:black" lang="ES"><hr align="center" size="2" width="100%">
</span></div><div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-size:7.5pt;font-family:Arial,sans-serif;color:gray" lang="ES">Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo.<br>
This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at.<br><a href="http://www.tid.es/ES/PAGINAS/disclaimer.aspx" target="_blank"><u><span style="color:blue">http://www.tid.es/ES/PAGINAS/disclaimer.aspx</span></u></a></span><span style="font-family:Verdana,sans-serif;color:black"><u></u><u></u></span></div>
</div></div><div class="MsoNormal" style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif;text-align:center" align="center"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:black"><hr align="center" size="2" width="100%">
</span></div><div style="margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:black">--<br>
_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by<span> </span><a href="http://www.api-digital.com/" target="_blank"><u><span style="color:blue">http://www.api-digital.com</span></u></a><span> </span>--<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br><a href="http://www.asterisk.org/hello" target="_blank"><u><span style="color:blue">http://www.asterisk.org/hello</span></u></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"><u><span style="color:blue">http://lists.digium.com/mailman/listinfo/asterisk-users</span></u></a><u></u><u></u></span></div>
</div></blockquote></div>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by<span> </span><a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a><span> </span>--<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></span></blockquote></div><br></div></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><br clear="all"><br>-- <br><div dir="ltr"><br>Thanks and regards<br>
<br> Virendra Bhati<br>+91-8885268942<br>Software Engineer<br></div><br>
</div>
--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">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">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">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br></div></body></html>