<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt">Hi,<br><br>You are using b flag in monitor command. This means don't begin recording untill call is bridged.<br>So what you get if you delete this flag ? <br><div><span><br></span></div><div>// Binan<br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">Från:</span></b> Grzegorz Pycia &lt;grzegorz.pycia@thulium.pl&gt;<br> <b><span style="font-weight: bold;">Till:</span></b> asterisk-users@lists.digium.com <br> <b><span style="font-weight: bold;">Skickat:</span></b> lördag, 20 oktober 2012 23:49<br> <b><span style="font-weight: bold;">Ämne:</span></b> [asterisk-users] monitor application, file name change on
 attended transfer<br> </font> </div> <br>
Hi<br><br>I have some problem with monitor application when call i transferred in attended mode and the transfer occurs before call is answered.<br><br>Here is how it looks:<br><br>A calls ----&gt; B(let's assume ${UNIQUEUEID}=1)<br><br>exten =&gt; _XXXX,1,NoOp<br>seme =&gt; n,Set(MONITOR_FILENAME=call-${UNIQUEID})<br>same =&gt; n,monitor(alaw,/var/spool/asterisk/monitor/${MONITOR_FILENAME},bm)<br><br>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:<br><br>B calls ----&gt; C(let's assume ${UNIQUEUEID}=2)<br><br>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.<br><br>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.<br><br>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?<br><br>Regards<br><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; http://www.asterisk.org/hello<br><br>asterisk-users mailing
 list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp; http://lists.digium.com/mailman/listinfo/asterisk-users<br><br><br> </div> </div>  </div></body></html>