Upgrade 3CX to v18 and get it hosted free!

Asterisk record remote conference

Author image

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/[email protected]/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


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.
Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.