Summary:ASTERISK-05249: [patch] [post-1.2] Enabling pause and resume while monitoring a channel
Reporter:Josip Gracin (jgracin)Labels:
Date Opened:2005-10-05 15:36:02Date Closed:2006-01-13 17:32:57.000-0600
Versions:Frequency of
Environment:Attachments:( 0) patch1.diff
( 1) patch2-with-unpause.diff
Description:Currently, once the monitoring of a channel starts, it is not possible to temporarily stop it and resume it afterwards.  The attached patch adds two new applications ("PauseMonitor" and "ResumeMonitor") as well as two equally titled manager-API actions, which enable users to pause monitoring of a channel and resuming of it.

This feature is useful, for example, when an application wants to avoid recording music-on-hold when a channel is placed on hold.


The code in the attached patch is hereby placed in the public domain by its author Josip Gracin on October 5th, 2005.
Comments:By: BJ Weschke (bweschke) 2005-12-12 21:10:51.000-0600

This patch is no longer going in cleanly against the latest /trunk version of Asterisk. Can you please fix it?

By: Jason Parker (jparker) 2005-12-12 22:55:15.000-0600

It might also be good to make it Pause/Unpause instead of Pause/Resume, so it can be consistant with other things that use Pause (PauseQueueMember/UnpauseQueueMember).

By: BJ Weschke (bweschke) 2005-12-14 20:20:10.000-0600

jgracin: any update? Thanks.

By: Josip Gracin (jgracin) 2005-12-15 02:13:31.000-0600

Hi guys!  Sorry for not responding earlier.  I'm currently very short of spare time so I still didn't get to fixing this.  I'll get on to it ASAP.

By: Josip Gracin (jgracin) 2005-12-15 03:46:13.000-0600

I've attached the new patch.  This patch applies cleanly, and the code compiles without problems.  I've changed 'Resume' to 'Unpause'.

I've not re-tested this new patch because I currently don't have the time.  The old patch had been tested, and I think the new one should work.

By: Matt O'Gorman (mogorman) 2006-01-13 17:32:44.000-0600

commited into trunk 8070