<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 28 August 2014 07:56, Leandro Dardini <span dir="ltr"><<a href="mailto:ldardini@gmail.com" target="_blank">ldardini@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Can you post an example? <div><br></div><div>
Leandro</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-28 0:47 GMT+02:00 Ishfaq Malik <span dir="ltr"><<a href="mailto:ish@pack-net.co.uk" target="_blank">ish@pack-net.co.uk</a>></span>:<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Do the pause/unpause in a Macro or Gosub and reference that from the features.conf<div>
<br></div><div>Also, make sure you put the filename into a variable and give it full inheritance so you can resume recording to the same file (using the a option)</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On 27 August 2014 21:20, Leandro Dardini <span dir="ltr"><<a href="mailto:ldardini@gmail.com" target="_blank">ldardini@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">Hello,<div>I have a recording started in the dialplan with the MixMonitor application. I want to be able to stop it during a call and maybe restart it.</div>


<div><br></div><div>I tried using the value defined in [featuremap] but it starts another MixMonitor application even if there already one instead of stopping it.</div>
<div><br></div><div>Any idea on how I can stop the MixMonitor application while it is running?</div><div><br></div><div>[featuremap]</div><div>automixmon => *1 <br></div><div><br></div><div>I tried also to use the [applicationmap]] but it doesn't seem to work. Pressing #1 do nothing. Here my dialplan:</div>



<div><br></div><div><div>       9999 => {</div><div>            Set(__DYNAMIC_FEATURE=pauseMonitor);</div><div>            MixMonitor(test);</div><div>            Dial(SIP/1000@srv01,30,TtX);</div><div>       }</div></div>



<div><br></div><div><br></div><div>[applicationmap]</div><div>pauseMonitor   => #1,self/both,stopMixMonitor<br></div><div><br></div><div>Any advice?<br></div><div><br></div><div><br></div><div><br></div><div><br></div>



</div>
<br></div></div></blockquote></div></div></blockquote></div></div></div></div></blockquote><div><br></div><div><br></div><div><br></div><div>extensions.conf:</div><div><br></div><div><div>[macro-pause-recording]</div><div>
exten => s,1,Verbose(Stopping Recording)</div><div>exten => s,n,StopMixMonitor()</div><div><br></div><div>[macro-unpause-recording]</div><div>exten => s,1,Verbose(Resuming Recording)</div><div>exten => s,n,MixMonitor(${REC_FILE_NAME},a)</div>
</div><div><br></div><div><br></div><div><br></div><div>features.conf</div><div><br></div><div><div>StopMixMonitor   => #00,peer/both,Macro(pause-recording)</div><div>;                                                  </div>
<div>MixMonitor => #01,peer/both,Macro(unpause-recording)</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Make sure you set REC_FILE_NAME early on with a double underscore and remember to add Set(__DYNAMIC_FEATURES=MixMonitor#StopMixMonitor) early on too</div>
<div><br></div></div>-- <br><div dir="ltr"><pre>Ishfaq Malik 
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: <a href="mailto:ish@pack-net.co.uk" target="_blank">ish@pack-net.co.uk</a>
w: <a href="http://www.pack-net.co.uk" target="_blank">http://www.pack-net.co.uk</a>

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street 
Manchester, M1 2JW
COMPANY REG NO. 04920552
</pre></div>
</div></div>