[asterisk-users] records inbound and outbound calls
Danny Nicholas
danny at debsinc.com
Wed Mar 2 13:59:08 CST 2011
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at 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 <danny at 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-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at 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 sedwards at 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()
More information about the asterisk-users
mailing list