[asterisk-bugs] [Asterisk 0011212]: [patch] expose zap DND mode to the dialplan

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Jan 11 18:18:53 CST 2008


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=11212 
====================================================================== 
Reported By:                tzafrir
Assigned To:                kpfleming
====================================================================== 
Project:                    Asterisk
Issue ID:                   11212
Category:                   Channels/chan_zap
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 96398 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-10-2007 05:08 CST
Last Modified:              01-11-2008 18:18 CST
====================================================================== 
Summary:                    [patch] expose zap DND mode to the dialplan
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'
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 01-11-08 18:18  
---------------------------------------------------------------------- 
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 http://bugs.digium.com/view.php?id=11212)
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 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-11-08 18:18  svnbot         Checkin                                      
01-11-08 18:18  svnbot         Note Added: 0076778                          
01-11-08 18:18  svnbot         Status                   ready for testing =>
assigned
01-11-08 18:18  svnbot         Assigned To              tzafrir => kpfleming
======================================================================




More information about the asterisk-bugs mailing list