[asterisk-bugs] [Asterisk 0017657]: call recording in attended transfer

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jul 16 00:22:15 CDT 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17657 
====================================================================== 
Reported By:                sparksupport
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17657
Category:                   Applications/app_mixmonitor
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.33 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-07-16 00:22 CDT
Last Modified:              2010-07-16 00:22 CDT
====================================================================== 
Summary:                    call recording in attended transfer
Description: 
Hello,

Call recordings for my attended transfer are stored in two seperate
files.
A calls B and then B transfer the call to C using *2 feature, then B and C
talk. After that B hangups and then A and C talk.  
In this scenario first recording file contains talk between A & B and A &
C
and second file contains talk between B & C and then A & C . Is there a
way to merge these recordings into a single file (atleast avoid the
multiple recording of the same face i.e between A & C)

Following is the way mixmonitor have been setup in dialplan.

--------------

[macro-record-enable]
include => macro-record-enable-custom
exten => s,1,GotoIf($["${BLINDTRANSFER}" = ""]?check)
exten => s,n,ResetCDR(w)
exten => s,n,StopMixMonitor()
exten => s,n(check),ExecIf($["${ARG1}"=""],MacroExit,)
exten => s,n,GotoIf($["${ARG2}"="Group"]?Group:OUT)
exten => s,n(Group),Set(LOOPCNT=${FIELDQTY(ARG1,-)})
exten => s,n,Set(ITER=1)
exten =>
s,n(begin),Set(RECSET="${DB(AMPUSER/${CUT(ARG1,-,${ITER})}/recording)}")
exten => s,n,GotoIf($["${RECSET}"="" | "${CUT(RECSET,\\\|,2):3}" !=
"Always"]?continue)
exten => s,n,Set(TEXTEN=${CUT(ARG1,-,${ITER}))
exten => s,n,Noop(Recording enable for ${TEXTEN})
exten =>
s,n,Set(CALLFILENAME=g${TEXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})
exten => s,n,Goto(record)
exten => s,n(continue),Set(ITER=$[${ITER}+1])
exten => s,n,GotoIf($[${ITER}<=${LOOPCNT}]?begin)
exten => s,n(OUT),GotoIf($["${ARG2}"="IN"]?IN)
exten => s,n,ExecIf($["${CUT(DB(AMPUSER/${ARG1}/recording),\\\|,1):4}" !=
"Always"],MacroExit,)
exten => s,n,Noop(Recording enable for ${ARG1})
exten =>
s,n,Set(CALLFILENAME=OUT${ARG1}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})
exten => s,n,Goto(record)
exten => s,n(IN),ExecIf($["${CUT(DB(AMPUSER/${ARG1}/recording),\\\|,2):3}"
!= "Always"],MacroExit,)
exten => s,n,Noop(Recording enable for ${ARG1})
exten =>
s,n,Set(CALLFILENAME=IN${ARG1}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})
exten => s,n(record),System(/bin/mkdir -p
/var/spool/asterisk/monitor/freepbx/${STRFTIME(${EPOCH},,%Y)}/${STRFTIME(${EPOCH},,%m)}/${STRFTIME(${EPOCH},,%d)}/${ARG1}/${UNIQUEID})
exten =>
s,n,MixMonitor(/var/spool/asterisk/monitor/freepbx/${STRFTIME(${EPOCH},,%Y)}/${STRFTIME(${EPOCH},,%m)}/${STRFTIME(${EPOCH},,%d)}/${ARG1}/${UNIQUEID}/${CALLFILENAME}.${MIXMON_FORMAT},,${MIXMON_POST})
exten => s,n,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)
exten => s,n,MacroExit()
--------------------------

Please help.
Thanks

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-16 00:22 sparksupport   New Issue                                    
2010-07-16 00:22 sparksupport   Asterisk Version          => 1.4.33          
2010-07-16 00:22 sparksupport   Regression                => No              
2010-07-16 00:22 sparksupport   SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list