Re: [asterisk-users] can anyone tell me how to set asterisk to record all phonecall

2011-03-06 Thread John Wu
Hi Jeremy
Thanks for your reply, I did what u said, but still can not work. the
/var/spool/asterisk/monitor
do not have any file. Attachment is my extensions.conf


On Sat, Mar 5, 2011 at 12:37 PM, Jeremy Kister asterisk...@jeremykister.com
 wrote:

 On 3/4/2011 9:49 PM, John Wu wrote:

 I need to use asterisk to record all phonecall I have test using
 mixmonitor to record a call.


 this is one way it can be done

 make sure you have 'lame' installed.

 - in your extensions.conf:

 [global]
 VSA=/var/spool/asterisk

 [outbound-or-wherever-you-dial]
 exten = _XXX,1,Macro(Snoop,${EXTEN})
 exten = _XXX,n,Dial(SIP/${EXTEN},${TIMEOUT})
 exten = _XXX,n,StopMixMonitor
 ; above in case you're in some loop  Dial fails,
 ; e.g., swift+monitor crash asterisk


 [macro-Snoop]
 ; ${ARG1} channel
 exten = s,1,GotoIf($[${SNOOPING} = 1]?snooping)
 exten = s,n,Set(SNOOPING=1)
 exten = s,n,Set(=${STRFTIME(${EPOCH},,%Y)})
 exten = s,n,Set(MM=${STRFTIME(${EPOCH},,%m)})
 exten = s,n,Set(DD=${STRFTIME(${EPOCH},,%d)})
 exten = s,n,Set(HMS=${STRFTIME(${EPOCH},,%H%M%S)})
 exten = s,n,Set(FILENAME=${HMS}-${CALLERID(num)}-${ARG1}-${UNIQUEID})
 exten = s,n,Set(MIXMON_ARGS=mkdir -p ${VSA}/monitor/${}/${MM}/${DD} 
 nice -n 19 /usr/local/bin/lame --silent --resample 11.025 -b 16 -t -m m
 ${VSA}/monitor/${FILENAME}.wav
 ${VSA}/monitor/${}/${MM}/${DD}/${FILENAME}.mp3  rm -f
 ${VSA}/monitor/${FILENAME}.wav)
 exten = s,n,MixMonitor(${FILENAME}.wav,,${MIXMON_ARGS})
 exten = s,n(snooping),NoOp(snooping on ${CHANNEL})



 that'll end up putting a mp3 of the call in
 /var/spool/asterisk/monitor//MM/DD/HHMMSS-CALLERID.mp3

 don't forget any legal issues you might have to work around, recording the
 fact that you declared the message is being recorded.


 --

 Jeremy Kister
 http://jeremy.kister.net./

 --
 _
 -- 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



extensions.conf
Description: Binary data
--
_
-- 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

Re: [asterisk-users] can anyone tell me how to set asterisk to record all phonecall

2011-03-06 Thread Steve Edwards

On Mon, 7 Mar 2011, John Wu wrote:

Thanks for your reply, I did what u said, but still can not work. the 
/var/spool/asterisk/monitor do not have any file. Attachment is my 
extensions.conf


I don't think Jeremy intended for you to copy his example literally.

Do you really have your endpoints pointed at 
'[outbound-or-wherever-you-dial]?'


I suggest you take a step back and read 'Asterisk: The Future of 
Telephony' to get a bit more insight into how Asterisk works.


You can buy a paper copy or google for the free PDF.

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

--
_
-- 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


Re: [asterisk-users] can anyone tell me how to set asterisk to record all phonecall

2011-03-06 Thread John Wu
Thanks Steve,
But I do not have many time to read asterisk usage. I will read it when I
got free time.
I find other ones use [macro-record-enable] to achieve auto record phone
call. Can I directly
use it? and how to debug the configure file?

On Mon, Mar 7, 2011 at 10:16 AM, Steve Edwards asterisk@sedwards.comwrote:

 On Mon, 7 Mar 2011, John Wu wrote:

  Thanks for your reply, I did what u said, but still can not work. the
 /var/spool/asterisk/monitor do not have any file. Attachment is my
 extensions.conf


 I don't think Jeremy intended for you to copy his example literally.

 Do you really have your endpoints pointed at
 '[outbound-or-wherever-you-dial]?'

 I suggest you take a step back and read 'Asterisk: The Future of Telephony'
 to get a bit more insight into how Asterisk works.

 You can buy a paper copy or google for the free PDF.

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


 --
 _
 -- 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

--
_
-- 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

Re: [asterisk-users] can anyone tell me how to set asterisk to record all phonecall

2011-03-06 Thread John Wu
In my asterisk config files, extensions_additional.conf do not exist so
should I set [macro-record-enable]
in extensions_additional.conf or in extensions.conf? My version is
1.8.0beta5

On Mon, Mar 7, 2011 at 10:45 AM, John Wu jwjo...@gmail.com wrote:

 Thanks Steve,
 But I do not have many time to read asterisk usage. I will read it when I
 got free time.
 I find other ones use [macro-record-enable] to achieve auto record phone
 call. Can I directly
 use it? and how to debug the configure file?


 On Mon, Mar 7, 2011 at 10:16 AM, Steve Edwards 
 asterisk@sedwards.comwrote:

 On Mon, 7 Mar 2011, John Wu wrote:

  Thanks for your reply, I did what u said, but still can not work. the
 /var/spool/asterisk/monitor do not have any file. Attachment is my
 extensions.conf


 I don't think Jeremy intended for you to copy his example literally.

 Do you really have your endpoints pointed at
 '[outbound-or-wherever-you-dial]?'

 I suggest you take a step back and read 'Asterisk: The Future of
 Telephony' to get a bit more insight into how Asterisk works.

 You can buy a paper copy or google for the free PDF.

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


 --
 _
 -- 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



--
_
-- 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

Re: [asterisk-users] can anyone tell me how to set asterisk to record all phonecall

2011-03-06 Thread Steve Edwards

Un-top-posting...

Please do not copy me privately. I obviously already read the mailing list 
-- that's how I found your first post.



On Mon, 7 Mar 2011, John Wu wrote:


Thanks for your reply, I did what u said, but still can not work. the 
/var/spool/asterisk/monitor do not have any file. Attachment is my 
extensions.conf



On Mon, Mar 7, 2011 at 10:16 AM, Steve Edwards

I don't think Jeremy intended for you to copy his example literally.

Do you really have your endpoints pointed at 
'[outbound-or-wherever-you-dial]?'


I suggest you take a step back and read 'Asterisk: The Future of 
Telephony' to get a bit more insight into how Asterisk works.


You can buy a paper copy or google for the free PDF.


On Mon, 7 Mar 2011, John Wu wrote:

But I do not have many time to read asterisk usage. I will read it when 
I got free time. I find other ones use [macro-record-enable] to achieve 
auto record phone call. Can I directly use it? and how to debug the 
configure file?


Please take the time before posting again.

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

--
_
-- 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


[asterisk-users] can anyone tell me how to set asterisk to record all phonecall

2011-03-04 Thread John Wu
Hi all,
I need to use asterisk to record all phonecall I have test using
mixmonitor to record a call.
Now I need to set the configure file to let asterisk auto record all
calls. I have searched many
document but still can not succeed. My version is 1.8beta and I prefer
using mixmonitor.

Regards!

--
_
-- 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


Re: [asterisk-users] can anyone tell me how to set asterisk to record all phonecall

2011-03-04 Thread Jeremy Kister

On 3/4/2011 9:49 PM, John Wu wrote:

I need to use asterisk to record all phonecall I have test using
mixmonitor to record a call.


this is one way it can be done

make sure you have 'lame' installed.

- in your extensions.conf:

[global]
VSA=/var/spool/asterisk

[outbound-or-wherever-you-dial]
exten = _XXX,1,Macro(Snoop,${EXTEN})
exten = _XXX,n,Dial(SIP/${EXTEN},${TIMEOUT})
exten = _XXX,n,StopMixMonitor
; above in case you're in some loop  Dial fails,
; e.g., swift+monitor crash asterisk


[macro-Snoop]
; ${ARG1} channel
exten = s,1,GotoIf($[${SNOOPING} = 1]?snooping)
exten = s,n,Set(SNOOPING=1)
exten = s,n,Set(=${STRFTIME(${EPOCH},,%Y)})
exten = s,n,Set(MM=${STRFTIME(${EPOCH},,%m)})
exten = s,n,Set(DD=${STRFTIME(${EPOCH},,%d)})
exten = s,n,Set(HMS=${STRFTIME(${EPOCH},,%H%M%S)})
exten = s,n,Set(FILENAME=${HMS}-${CALLERID(num)}-${ARG1}-${UNIQUEID})
exten = s,n,Set(MIXMON_ARGS=mkdir -p ${VSA}/monitor/${}/${MM}/${DD} 
 nice -n 19 /usr/local/bin/lame --silent --resample 11.025 -b 16 -t -m 
m ${VSA}/monitor/${FILENAME}.wav 
${VSA}/monitor/${}/${MM}/${DD}/${FILENAME}.mp3  rm -f 
${VSA}/monitor/${FILENAME}.wav)

exten = s,n,MixMonitor(${FILENAME}.wav,,${MIXMON_ARGS})
exten = s,n(snooping),NoOp(snooping on ${CHANNEL})



that'll end up putting a mp3 of the call in 
/var/spool/asterisk/monitor//MM/DD/HHMMSS-CALLERID.mp3


don't forget any legal issues you might have to work around, recording 
the fact that you declared the message is being recorded.



--

Jeremy Kister
http://jeremy.kister.net./

--
_
-- 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