[asterisk-users] Call recording - methodology
Silver Thorne
zoraxus at gmail.com
Fri Apr 8 12:09:48 CDT 2011
Dan et al;
This looks like a perfect solution.
However, I have one issue. If I initiate the macro manually (put it in
the proper context/dialplan) it works. I see the *.wav file being
created and growing in the /var/spool/asterisk/monitor directory.
If I try to implement it adding the MixMonApp =>
*1,self/both,Macro,mixmon to the [applicationmap] in features.conf, I
cannot get it to work.
Steps.
1. added the example macro to the dialplan in extensions.conf
2. added the line MixMonApp => *1,self/both,Macro,mixmon to the
features.conf file under [applicationmap]
3. sip reload / dialplan reload / reload res_features
4. see the message that 'Mapping Feature 'apps' to app 'Macro(callrec)'
5. make incoming call - answer with SIP phone
6. I press *1 on the keypad, I hear the tones, but it does not begin
recording
7. see nothing in the CLI and no new files get created in
/var/spool/asterisk/monitor directory.
What am I missing? Probably something simple.
Any words of wisdom?
Glen
On 4/6/2011 07:29, Dan Journo wrote:
>
> > I am looking for a solution to record calls that come into our Asterisk
>
> > server. I am hoping for something that is easy to use - however, if I
>
> > have to modify it to make it easier to use, I do not mind.
>
> > Does anyone know of any opensource or otherwise solutions out there
> that
>
> > I can try out?
>
> We give our clients to option of either recording all calls, or
> allowing the operator to press *1 during a call to start recording
> manually.
>
> Using Asterisk 1.4, this is what we do:-
>
> We created a Macro in extensions.conf like this:-
>
> [macro-mixmon]
>
> exten => s,1,GotoIf($["${XAD}" = "0" | "${XAD}" =
> ""]?startrec:donothing)
>
> exten => s,n(startrec),GotoIf($["${ARG1}"=""]?beep:nobeep)
>
> exten => s,n(beep),Playback(/var/lib/asterisk/sounds/rec1)
>
> exten => s,n(nobeep),Set(XAD=1)
>
> exten => s,n,MixMonitor(FILENAME.wav,b)
>
> exten => s,n(donothing),MacroExit
>
> (please note, FILENAME.wav is usually ${UNIQUEID:0:10}, but I changed
> it to make it easier for you to understand. You'll need to change it
> back to something like ${UNIQUEID:0:10}.wav if you are recording
> multiple calls because otherwise they'll be constantly saved to
> FILENAME.wav and you'll lose all the previous calls.)
>
> (please note, /var/lib/asterisk/sounds/rec1 is a beep tone so that the
> operator knows that he's successfully started the recording.)
>
> Then to recording every call, we add this before the
> DIAL(SIP/extension) command in extensions.conf:-
>
> exten => _9.,14,Macro(mixmon,nobeep)
>
> If you don't want to record every call, you can give the operator the
> option of press *1. We did this by adding the following to features.conf:-
>
> MixMonApp => *1,self/both,Macro,mixmon
>
> Hope that helps.
>
> Dan Journo
>
> Kesher Communications (UK)
>
> Business Phone Systems <http://www.keshercommunications.com/> | Hosted
> PBX <http://www.keshercommunications.com/hostedpbx.html>
>
>
> --
> _____________________________________________________________________
> -- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110408/37470604/attachment.htm>
More information about the asterisk-users
mailing list