[asterisk-users] monitor application, file name change on attended transfer
Binan AL Halabi
binanalhalabi at yahoo.com
Sun Oct 21 20:14:26 CDT 2012
Hi,
You are using b flag in monitor command. This means don't begin recording untill call is bridged.
So what you get if you delete this flag ?
// Binan
________________________________
Från: Grzegorz Pycia <grzegorz.pycia at thulium.pl>
Till: asterisk-users at lists.digium.com
Skickat: lördag, 20 oktober 2012 23:49
Ämne: [asterisk-users] monitor application, file name change on attended transfer
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
--
_____________________________________________________________________
-- 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/20121021/ca865bdd/attachment.htm>
More information about the asterisk-users
mailing list