[asterisk-bugs] [Asterisk 0010635]: new function EXTSTATE() returns state of an extension
noreply at bugs.digium.com
noreply at bugs.digium.com
Tue Sep 4 06:50:45 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-04-2007 06:50 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()?
======================================================================
----------------------------------------------------------------------
Corydon76 - 09-04-07 06:50
----------------------------------------------------------------------
I'd prefer to see you implement this as component pieces, i.e. implement a
HINT lookup of ${HINT(context,extension)} and then use that in DEVSTATE,
i.e.
${DEVSTATE(${HINT(context,extension)})}. This allows for more versatile
uses of the device string in the hint.
Issue History
Date Modified Username Field Change
======================================================================
09-04-07 06:50 Corydon76 Note Added: 0069869
======================================================================
More information about the asterisk-bugs
mailing list