-----Original Message-----
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Steve Edwards
Sent: Wednesday, March 02, 2011 12:36 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] records inbound and outbound calls

Un-top-posting...

> 2011/3/2 Danny Nicholas <da...@debsinc.com>

> How I did it
> 
> exten => 3009,1,Answer()
> exten => 3009,2,MixMonitor(test.wav|av(0)V(0))
> exten => 3009,3,Dial(SIP/144)
> exten => 3009,4,Hangup()

> From: asterisk-users-boun...@lists.digium.com 
> [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of 
> salaheddine elharit

> thank you i have one question waht is 3009 is the called

On Wed, 2 Mar 2011, Danny Nicholas wrote:

> I made a sub-context 3009 in default to let me call from my phone 
> "sipphone" to my phone "144" and record the conversation.

3009 is an extension, not a [sub]context.

I'd add a suggestion to use the 'n' priority to make maintenance easier.

I use 
'mixmonitor(/tmp/${EXTEN}-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}.wav)' 
on my dev box so the file name has the number I dialed as well as the 
timestamp.

Also, recording calls without warning is illegal in [many|most|all] 
countries.

-- 
Thanks in advance,
Steve Edwards       sedwa...@sedwards.com      Voice: +1-760-468-3867 PST

I believe this satisfies all of the requirements...

exten => 3009,1,Answer()
exten =>
3009,n,MixMonitor(3009-#{STRFTIME(${EPOCH},,%Y-%m-%d-$H-%M-%S)}.wav|av(0)V(0
))
exten => 3009,n,Dial(SIP/144,30,A(this-call-may-be-monitored-or-recorded))
exten => 3009,n,Hangup()


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to