[asterisk-users] monitor application, file name change on attended transfer
Grzegorz Pycia
grzegorz.pycia at thulium.pl
Sat Oct 20 16:49:35 CDT 2012
Hi
I have some problem with monitor application when call i transferred in
attended mode and the transfer occurs before call is answered.
Here is how it looks:
A calls ----> B(let's assume ${UNIQUEUEID}=1)
exten => _XXXX,1,NoOp
seme => n,Set(MONITOR_FILENAME=call-${UNIQUEID})
same => n,monitor(alaw,/var/spool/asterisk/monitor/${MONITOR_FILENAME},bm)
When B answers the call, files call-1-in* and call1-out* are created.
During The call, B tries to make attended transfer A is put on hold and
B calls C using the same dialplan logic:
B calls ----> C(let's assume ${UNIQUEUEID}=2)
At the time off invoking monitor application none off the call-2
channels are monitored so the monitor application starts without errors,
if B waits till C answers, everything is OK monitor starts recording and
files call-2-in* and call-2-out* are created, When B transfers the call
call-2 monitor is stopped. And call-2 files contain only the call
between B and C.
But there is problem when B does not wait until C answers the call, if
transfer is done before C answers the call, the call-2* are not created
and the call is still recorded to the call-1* files, but when the
transferred call between A and C ends, the call-1* files get renamed to
call-2* and the MONITOR_EXEC application is called with call-2* file
names as parameters.
This makes it impossible to locate the call record since the file names
get changed, can someone tell if I should file a BUG report or is it
intended to act like this?
Regards
More information about the asterisk-users
mailing list