[asterisk-bugs] [Asterisk 0010635]: new function EXTSTATE() returns state of an extension

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Sep 5 10:04:32 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10635 
====================================================================== 
Reported By:                adamgundy
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10635
Category:                   Functions/NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.11  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             09-03-2007 19:37 CDT
Last Modified:              09-05-2007 10:04 CDT
====================================================================== 
Summary:                    new function EXTSTATE() returns state of an
extension
Description: 
the attached patch is based on the DEVSTATE() function, modified to return
the state of an extension, rather than a device. this means you can write
dialplan logic based on the state of an extension (in use, ringing, on hold
etc). the extension just needs to have a hint so we can determine which
devices to check.

any chance we can get this in 1.6 to go with DEVSTATE()?
====================================================================== 

---------------------------------------------------------------------- 
 adamgundy - 09-05-07 10:04  
---------------------------------------------------------------------- 
I had thought of that, but I didn't really like the idea of propagating the
concept of 'hints' around the dialplan, with EXTSTATE() you are solely
asking for the state of an extension, currently that uses hints, but it
could use some other mechanism too... DEVSTATE() is already a bit weird
because you suddenly have to start dealing with devices, not extensions.

if there's really no way this is going to be accepted then I guess I can
write a HINT() function, but I think it's a bad idea, or at least not the
correct way to do this (HINT() is probably a useful function for other
stuff of course). 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-05-07 10:04  adamgundy      Note Added: 0069978                          
======================================================================




More information about the asterisk-bugs mailing list