ISABEL ORDAS ARNAL
2011-Dec-15 16:28 UTC
[asterisk-users] Play audio file for both Caller and Callee in a call
Dear all, Anyone of you knows how to play an audio file at the beginning of a call for both Caller and Callee? 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. Thank you! ________________________________ 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. This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at. http://www.tid.es/ES/PAGINAS/disclaimer.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111215/530d9e8b/attachment.htm>
Danny Nicholas
2011-Dec-15 16:31 UTC
[asterisk-users] Play audio file for both Caller and Callee in a call
Playback? What flavor of Asterisk are you using? From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of ISABEL ORDAS ARNAL Sent: Thursday, December 15, 2011 10:29 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Play audio file for both Caller and Callee in a call Dear all, Anyone of you knows how to play an audio file at the beginning of a call for both Caller and Callee? 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. Thank you! _____ 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. This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at. http://www.tid.es/ES/PAGINAS/disclaimer.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111215/3726549a/attachment.htm>
c.savinovich at itntelecom.com
2011-Dec-15 17:22 UTC
[asterisk-users] Play audio file for both Caller and Callee in a call
<html><body><span style="font-family:Verdana; color:#000000;
font-size:10pt;"><div>Dear
Danny:</div><div><br></div><div>
How can you use Playback in the middle of 2 channels engaged in a
conversation?</div><div><br></div><div>Thanks</div><div>C.
Savinovich</div><div><br></div>
<blockquote id="replyBlockquote" webmail="1"
style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px;
font-size: 10pt; color: black; font-family: verdana;">
<div id="wmQuoteWrapper">
-------- 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">danny@debsinc.com</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">asterisk-users@lists.digium.com</a>><br>
<br>
<!--[if !mso]><style>
#wmQuoteWrapper v\:* {behavior:url(#default#VML);}
#wmQuoteWrapper o\:* {behavior:url(#default#VML);}
#wmQuoteWrapper w\:* {behavior:url(#default#VML);}
#wmQuoteWrapper .shape {behavior:url(#default#VML);}
</style><![endif]--><style>
#wmQuoteWrapper /* Font Definitions */ @font-face {font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
#wmQuoteWrapper @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2
4;}
#wmQuoteWrapper /* Style Definitions */ p.MsoNormal, #wmQuoteWrapper
li.MsoNormal, #wmQuoteWrapper div.MsoNormal {margin:0in; margin-bottom:.0001pt;
font-size:11.0pt; font-family:"Calibri","sans-serif";}
#wmQuoteWrapper a:link, #wmQuoteWrapper span.MsoHyperlink
{mso-style-priority:99; color:blue; text-decoration:underline;}
#wmQuoteWrapper a:visited, #wmQuoteWrapper span.MsoHyperlinkFollowed
{mso-style-priority:99; color:purple; text-decoration:underline;}
#wmQuoteWrapper span.EmailStyle17 {mso-style-type:personal;
font-family:"Calibri","sans-serif"; color:windowtext;}
#wmQuoteWrapper span.EmailStyle18 {mso-style-type:personal-reply;
font-family:"Calibri","sans-serif"; color:#1F497D;}
#wmQuoteWrapper .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;}
#wmQuoteWrapper @page WordSection1 {size:8.5in 11.0in; margin:70.85pt 85.05pt
70.85pt 85.05pt;}
#wmQuoteWrapper div.WordSection1 {page:WordSection1;}
</style><div class="WordSection1"><div
class="MsoNormal" style="font-size:12pt;"><span
style="color: rgb(31, 73, 125);">Playback? What flavor of
Asterisk are you using?<o:p></o:p></span></div><div
class="MsoNormal" style="font-size:12pt;"><span
style="color: rgb(31, 73,
125);"><o:p> </o:p></span></div><div><div
style="border-right: medium none; border-width: 1pt medium medium;
border-style: solid none none; border-color: rgb(181, 196, 223)
-moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;"><div
class="MsoNormal"
style="font-size:12pt;"><b><span style="font-size:
10pt; font-family:
"Tahoma","sans-serif";">From:</span></b><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif";"> <a
href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>
[<a
href="mailto:asterisk-users-bounces@lists.digium.com">mailto:asterisk-users-bounces@lists.digium.com</a>]
<b>On Behalf Of </b>ISABEL ORDAS
ARNAL<br><b>Sent:</b> Thursday, December 15, 2011 10:29
AM<br><b>To:</b> <a
href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br><b>Subject:</b>
[asterisk-users] Play audio file for both Caller and Callee in a
call<o:p></o:p></span></div></div></div><div
class="MsoNormal"
style="font-size:12pt;"><o:p> </o:p></div><div
class="MsoNormal" style="font-size:12pt;">Dear all,
<o:p></o:p></div><div class="MsoNormal"
style="font-size:12pt;">Anyone of you knows how to play an audio
file at the beginning of a call for both Caller and
Callee?<o:p></o:p></div><div class="MsoNormal"
style="font-size:12pt;">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. <o:p></o:p></div><div
class="MsoNormal"
style="font-size:12pt;"><o:p> </o:p></div><div
class="MsoNormal" style="font-size:12pt;">Thank
you!<o:p></o:p></div><div class="MsoNormal"
style="font-size:12pt;"><span style="font-size: 12pt;
font-family: "Times New Roman","serif";"
lang="ES"><o:p> </o:p></span></div><div
class="MsoNormal" style="font-size:12pt;text-align: center;"
align="center"><span style="font-size: 12pt; font-family:
"Times New Roman","serif";"
lang="ES"><hr width="100%" align="center"
size="2"></span></div><div
class="MsoNormal" style="font-size:12pt;"><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 target="_blank"
href="http://www.tid.es/ES/PAGINAS/disclaimer.aspx">http://www.tid.es/ES/PAGINAS/disclaimer.aspx</a></span><span
style="font-size: 12pt; font-family: "Times New
Roman","serif";"
lang="ES"><o:p></o:p></span></div></div><hr>--<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>
</div>
</blockquote></span></body></html>
ISABEL ORDAS ARNAL
2011-Dec-19 09:23 UTC
[asterisk-users] Play audio file for both Caller and Callee in a call
Hi all,
I made it easier, AMI was not required, it can be solved directly in the
dialplan:
same => n,Dial(SIP/${TRUNK}/${ARG2}${NUM},60,M(inject^${CALLERNUMBER}))
[macro-inject]
same => s,1,Originate(Local/trunk at
injectWarning,app,Playback,Message-Callee)
same => n,Originate(Local/${ARG1}@injectWarning,app,Playback,Message-Caller)
[injectWarning]
exten => _+34[69]XXXXXXXX,1,Answer()
same => n, ChanSpy(SIP/${EXTEN},qw)
same => n, Hangup()
exten =>trunk,1,Answer()
same => n, ChanSpy(SIP/${TRUNK},qw)
same => n, Hangup()
Thank you all!
===================================================================Date: Thu, 15
Dec 2011 23:56:15 -0800
From: Jim Dickenson <dickenson at cfmc.com>
Subject: Re: [asterisk-users] Play audio file for both Caller and
Callee in a call
To: Asterisk Users Mailing List - Non-Commercial Discussion
<asterisk-users at lists.digium.com>
Message-ID: <92E76A79-3929-4978-82F2-EE8C1DB50949 at cfmc.com>
Content-Type: text/plain; charset="windows-1252"
Use an AMI packet like this:
Action: Originate
Channel: Local/do_playback at cfmc_cdi_private
Exten: do_chanspy
Context: cfmc_cdi_private
Priority: 1
Variable: CfMC_ActionID=PlayBack
Variable: CfMC_WhatToPlay=lyrics-louie-louie
Variable: CfMC_WhoHear=SIP/GXP280
ActionID: PlayBack
Async: true
With dialplan like this:
exten => do_playback,1,Answer()
exten => do_playback,n,UserEvent(BeforePlayBack,ActionID:${CfMC_ActionID}
& ${UNIQUEID} & ${CHANNEL} & ${CfMC_WhatToPlay} &
${CfMC_WhoHear}) exten => do_playback,n,Wait(0.3) exten =>
do_playback,n,Playback(${CfMC_WhatToPlay})
; PLAYBACKSTATUS - SUCCESS FAILED
exten => do_playback,n,UserEvent(AfterPlayBack,ActionID:${CfMC_ActionID}
& ${UNIQUEID} & ${CHANNEL} & ${CfMC_WhatToPlay} &
${CfMC_WhoHear} & ${PLAYBACKSTATUS}) exten => do_playback,n,Hangup()
exten => do_chanspy,1,Answer()
exten => do_chanspy,n,UserEvent(BeforeChanSpy,ActionID:${CfMC_ActionID} &
${UNIQUEID} & ${CHANNEL} & ${CfMC_WhatToPlay} & ${CfMC_WhoHear})
exten => do_chanspy,n,ChanSpy(${CfMC_WhoHear},qW)
exten => do_chanspy,n,UserEvent(AfterChanSpy,ActionID:${CfMC_ActionID} &
${UNIQUEID} & ${CHANNEL} & ${CfMC_WhatToPlay} & ${CfMC_WhoHear})
exten => do_chanspy,n,Hangup()
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.
--
Jim Dickenson
mailto:dickenson at cfmc.com
CfMC
http://www.cfmc.com/
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.
This message is intended exclusively for its addressee. We only send and receive
email on the basis of the terms set out at.
http://www.tid.es/ES/PAGINAS/disclaimer.aspx