Summary: | ASTERISK-10733: [patch] expose zap DND mode to the dialplan | ||
Reporter: | Tzafrir Cohen (tzafrir) | Labels: | |
Date Opened: | 2007-11-10 05:08:46.000-0600 | Date Closed: | 2008-01-11 18:18:57.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_zap |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) zap_dnd.diff | |
Description: | chan_zap has a number of channel-specific features which seem to replicate core feature functionality. It seems that those features won't go away or get deprecated as "users need them". One of them is the DND (Do-Not-Disturb) mode. struct zt_pvt in chan_zap has a boolean field "DND". When this field is set, no calls can go to that Zaptel channel. Right now it can be set / unset in two ways: 1. dialing *78 (set or *79 (unset) from that phone, if the dialplan did not catch those numbers 2. Using a manger command. (1) also generates a verbose message and a manager event, whereas (2) doesn't. This patch adds a cli command 'zap set dnd', and it uses the same code as used from *78 and *79. It also shows 'DND' in 'zap show channel' | ||
Comments: | By: Joshua C. Colp (jcolp) 2007-11-12 07:58:09.000-0600 There's a small issue with the patch. DND can never be turned off, it always gets set to 1 no matter what is passed in. By: Olle Johansson (oej) 2007-12-16 03:29:10.000-0600 Ok, we need an update of the patch. By: Digium Subversion (svnbot) 2008-01-11 18:18:51.000-0600 Repository: asterisk Revision: 98488 U trunk/CHANGES U trunk/channels/chan_zap.c ------------------------------------------------------------------------ r98488 | kpfleming | 2008-01-11 18:18:49 -0600 (Fri, 11 Jan 2008) | 8 lines Add 'zap set dnd' CLI command, and ensure that the AMI DNDState event always gets generated. (closes issue ASTERISK-10733) Reported by: tzafrir Patches: zap_dnd.diff uploaded by tzafrir (modified by me) (license 46) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=98488 |