Asterisk record remote conference

First put this into your extensions.conf

[monitor]
exten => s,1,Answer
exten => s,2,Monitor(wav|/tmp/devcon)
exten => t,1,NoOp  

Then make a sample.call file with the following contents and save it into /tmp/sample.call

Channel: IAX2/astricon@voip-gw.voismart.net/meetmeq
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: monitor
Extension: s
Priority: 1

Change the first line to be the address of the remote conference.

Then at the command line type:

at time

where time is the time you would like it to run at

then you will be presented with:

at>

type cp /tmp/sample.call /var/spool/asterisk/outgoing

then press ctrl-D

This now means that at the time you specified it will start recording the conference.

When the conf is finished you should go to the asterisk console and type soft hangup, press tab and select the conf and press enter. This will end the call.

Someone may have a better idea on how to end it. If so, post it here.


===========================================
SECOND SOLUTION, by Makafre

You can also fully automate remote conference recording by using this method. This will first
create a "local" silent dynamic conference, and bridge it with your external conference. When bridged
it will send the PIN number. As the crontab is set, it will call every week from monday to friday at 8h00am.
You can also create a shell script that will check for the existence of a recording in the monitor directory
every so often and make it send it to you by e-mail.


/var/spool/asterisk/tmp/conf.call:


Channel: local/s@rcrd-conf-meetme
MaxRetries: 0
RetryTime: 30
WaitTime: 5
Context: rcrd-conf-dial
Extension: s
Priority: 1


Extensions.conf:


[rcrd-conf-meetme]
exten => s,1,MeetMe(|1dEmq)

[rcrd-conf-dial]
exten => s,1,Set(FILEPATH=/var/spool/asterisk/monitor/)
exten => s,n,Set(FILENAME=15142346789-${UNIQUEID})
exten => s,n,MixMonitor(${FILEPATH}${FILENAME}.wav,bW(2),nice -n 19 /usr/local/bin/lame --preset phone -t --quiet "${FILEPATH}${FILENAME}.wav" "${FILEPATH}${FILENAME}.mp3" && rm -f "${FILEPATH}${FILENAME}.wav")
exten => s,n,Dial(SIP/yourprovider/15142346789|60|D(wwwwww1234#))

crontab:


0 8 * * 1-5 /bin/cp /var/spool/asterisk/tmp/conf.call /var/spool/asterisk/outgoing



First put this into your extensions.conf

[monitor]
exten => s,1,Answer
exten => s,2,Monitor(wav|/tmp/devcon)
exten => t,1,NoOp  

Then make a sample.call file with the following contents and save it into /tmp/sample.call

Channel: IAX2/astricon@voip-gw.voismart.net/meetmeq
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: monitor
Extension: s
Priority: 1

Change the first line to be the address of the remote conference.

Then at the command line type:

at time

where time is the time you would like it to run at

then you will be presented with:

at>

type cp /tmp/sample.call /var/spool/asterisk/outgoing

then press ctrl-D

This now means that at the time you specified it will start recording the conference.

When the conf is finished you should go to the asterisk console and type soft hangup, press tab and select the conf and press enter. This will end the call.

Someone may have a better idea on how to end it. If so, post it here.


===========================================
SECOND SOLUTION, by Makafre

You can also fully automate remote conference recording by using this method. This will first
create a "local" silent dynamic conference, and bridge it with your external conference. When bridged
it will send the PIN number. As the crontab is set, it will call every week from monday to friday at 8h00am.
You can also create a shell script that will check for the existence of a recording in the monitor directory
every so often and make it send it to you by e-mail.


/var/spool/asterisk/tmp/conf.call:


Channel: local/s@rcrd-conf-meetme
MaxRetries: 0
RetryTime: 30
WaitTime: 5
Context: rcrd-conf-dial
Extension: s
Priority: 1


Extensions.conf:


[rcrd-conf-meetme]
exten => s,1,MeetMe(|1dEmq)

[rcrd-conf-dial]
exten => s,1,Set(FILEPATH=/var/spool/asterisk/monitor/)
exten => s,n,Set(FILENAME=15142346789-${UNIQUEID})
exten => s,n,MixMonitor(${FILEPATH}${FILENAME}.wav,bW(2),nice -n 19 /usr/local/bin/lame --preset phone -t --quiet "${FILEPATH}${FILENAME}.wav" "${FILEPATH}${FILENAME}.mp3" && rm -f "${FILEPATH}${FILENAME}.wav")
exten => s,n,Dial(SIP/yourprovider/15142346789|60|D(wwwwww1234#))

crontab:


0 8 * * 1-5 /bin/cp /var/spool/asterisk/tmp/conf.call /var/spool/asterisk/outgoing



Created by: ZX81, Last modification: Thu 04 of Nov, 2010 (05:26 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+