<div dir="ltr"><div><div><div><div><div><div>Lee I recommend you use the MixMonitor application along with a combination of Playback to play your message to the Calling party and the A argument to Dial to play a file to the called party.<br><br></div>So for your outbound calls:<br><br>exten => _NXXXXXX,1,NoOP()<br>same => n,MixMonitor(recording-${CDR(UNIQUEID)}.wav)<br>same => n,Playback(this-call-may-be-monitored-or-recorded,noanswer)<br></div><div></div>same => n,Dial(SIP/${EXTEN},A(this-call-may-be-monitored-or-recorded))<br><br></div>While your inbound calls would look like<br><br></div>exten => s,1,NoOP()<br></div>same => n,Answer()<br>same => n,MixMonitor(recording-${CDR(UNIQUEID)}.wav)<br>same => n,Playback(this-call-may-be-monitored-or-recorded)<br></div>same => n,Dial(SIP/1001,Playback(this-call-may-be-monitored-or-recorded,))<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 30, 2014 at 12:21 PM, lee <span dir="ltr"><<a href="mailto:lee@yagibdah.de" target="_blank">lee@yagibdah.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Thorsten Göllner <<a href="mailto:tg@ovm-group.com">tg@ovm-group.com</a>> writes:<br>
<br>
> Am 26.10.2014 00:43, schrieb lee:<br>
>> Hi,<br>
>><br>
>> how can I make asterisk do something when an outgoing call is picked up?<br>
>><br>
>><br>
>> The background is that I would like to record incoming and outgoing<br>
>> phone calls. In order to do this, I need to play an announcement<br>
>> telling the person calling or being called that the call will be<br>
>> recorded.<br>
>><br>
><br>
</span><span class="">> Maybe this will do a good job for recording all calls:<br>
> <a href="http://www.voip-info.org/wiki/view/Asterisk+cmd+ChanSpy" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+cmd+ChanSpy</a><br>
><br>
> And playing an announcement, when a call is picked, should be done<br>
> within your dialplan with this function:<br>
> <a href="http://www.voip-info.org/wiki/view/Asterisk+cmd+Playback" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+cmd+Playback</a><br>
<br>
</span>Thank you --- I'm not sure what to do with these. I've been able to use<br>
Playback to play an announcement, and ChanSpy just looks complicated.<br>
<br>
What if I press a button on the phone while a call is going on? Can I<br>
somehow make it so that recording starts when I do that?<br>
<span class="im HOEnZb"><br>
<br>
--<br>
Again we must be afraid of speaking of daemons for fear that daemons<br>
might swallow us. Finally, this fear has become reasonable.<br>
<br>
</span><div class="HOEnZb"><div class="h5">--<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></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.<br>---Heinlein</div>
</div></div>