Carlos Chavez
2010-Apr-20 17:02 UTC
[asterisk-users] How to record a call in a single file when transfered...
I have a customer that needs to record all calls coming in and out. The problem I am having is when a call comes in to the operator and it is transferred to another extension. The first mixmonitor begins recording when the operator picks up but the recording stops when the call is transferred. I need to have a single recording for the complete call no matter how many times it is transferred. Any tips? -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez Prats Director de Tecnolog?a +52-55-91169161 ext 2001 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100420/08547b6b/attachment.pgp
Leif Madsen
2010-Apr-20 19:04 UTC
[asterisk-users] How to record a call in a single file when transfered...
Carlos Chavez wrote:> I have a customer that needs to record all calls coming in and out. > The problem I am having is when a call comes in to the operator and it > is transferred to another extension. The first mixmonitor begins > recording when the operator picks up but the recording stops when the > call is transferred. I need to have a single recording for the > complete call no matter how many times it is transferred. Any tips?See AUDIOHOOK_INHERIT() dialplan function. Leif.
Carlos Chavez
2010-Apr-20 21:09 UTC
[asterisk-users] How to record a call in a single file when transfered...
On Tue, 2010-04-20 at 15:04 -0400, Leif Madsen wrote:> Carlos Chavez wrote: > > I have a customer that needs to record all calls coming in and out. > > The problem I am having is when a call comes in to the operator and it > > is transferred to another extension. The first mixmonitor begins > > recording when the operator picks up but the recording stops when the > > call is transferred. I need to have a single recording for the > > complete call no matter how many times it is transferred. Any tips? > > See AUDIOHOOK_INHERIT() dialplan function. >Thank you for that. I am having trouble trying to implement this. Since my macro-stdexten begins with: exten => s,1,Mixmonitor(${UNIQUEID}.wav,b) I need some logic to prevent a name change of the file. How can I know if the call is already being recorded because it is a transfer or if I need to start recording for a new call? It seems that I cannot read the value of ${AUDIOHOOK_INHERIT(MixMonitor)} to determine if it has already been set so what other variable can I test? -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez Prats Director de Tecnolog?a +52-55-91169161 ext 2001 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100420/fb8df24a/attachment.pgp
Leif Madsen
2010-Apr-21 01:07 UTC
[asterisk-users] How to record a call in a single file when transfered...
Carlos Chavez wrote:> On Tue, 2010-04-20 at 15:04 -0400, Leif Madsen wrote: >> Carlos Chavez wrote: >>> I have a customer that needs to record all calls coming in and out. >>> The problem I am having is when a call comes in to the operator and it >>> is transferred to another extension. The first mixmonitor begins >>> recording when the operator picks up but the recording stops when the >>> call is transferred. I need to have a single recording for the >>> complete call no matter how many times it is transferred. Any tips? >> See AUDIOHOOK_INHERIT() dialplan function. >> > Thank you for that. I am having trouble trying to implement this. > Since my macro-stdexten begins with: > > exten => s,1,Mixmonitor(${UNIQUEID}.wav,b) > > I need some logic to prevent a name change of the file. How can I know > if the call is already being recorded because it is a transfer or if I > need to start recording for a new call? It seems that I cannot read the > value of ${AUDIOHOOK_INHERIT(MixMonitor)} to determine if it has already > been set so what other variable can I test?You could set an inherited channel variable as the first thing you do before calling MixMonitor(). Something like: exten => s,1,Verbose(2,Starting Call Recording) ; I always start my first priority with something innocuous exten => s,n,GotoIf($[${EXISTS(${CALL_RECORDED})}]?skip_rec_start) exten => s,n,Set(__CALL_RECORDED=1) exten => s,n,MixMonitor(${UNIQUEID}.wav,b) exten => s,n(skip_rec_start),Verbose(2,Call recording already enabled) exten => s,n,... Something like that may work. Leif.
Carlos Chavez
2010-Apr-21 22:30 UTC
[asterisk-users] How to record a call in a single file when transfered...
On Tue, 2010-04-20 at 21:07 -0400, Leif Madsen wrote:> You could set an inherited channel variable as the first thing you do before > calling MixMonitor(). Something like: > > exten => s,1,Verbose(2,Starting Call Recording) ; I always start my first > priority with something innocuous > exten => s,n,GotoIf($[${EXISTS(${CALL_RECORDED})}]?skip_rec_start) > exten => s,n,Set(__CALL_RECORDED=1) > exten => s,n,MixMonitor(${UNIQUEID}.wav,b) > exten => s,n(skip_rec_start),Verbose(2,Call recording already enabled) > exten => s,n,... >Ok. I got that working now. The only inconvenience is that I cannot use the h extension to rename and move the wav file to its final destination but I am getting around that by running a cron job. Thank you very much. Another question if I may, with variable inheritance is it possible to do something like: Set(__CDR(userfield)=${INITIALCID})? That way I can follow the call no matter where it is transferred to by having the original outside callerid in the userfield. -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez Prats Director de Tecnolog?a +52-55-91169161 ext 2001 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100421/f657bf14/attachment.pgp