[asterisk-bugs] [Asterisk 0018173]: DEVICE_STATE not returning accurate result
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Oct 20 09:31:59 CDT 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=18173
======================================================================
Reported By: russell
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18173
Category: Functions/func_devstate
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: 1.8.0-rc5
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-10-20 08:38 CDT
Last Modified: 2010-10-20 09:31 CDT
======================================================================
Summary: DEVICE_STATE not returning accurate result
Description:
Dialplan:
exten => 7012,1,Answer()
same => n,Wait(1)
same => n,NoOp(The state of SIP/0004F2060EB4 is
${DEVICE_STATE(SIP/0004F2060EB4)})
Console output:
-- Executing [7012 at phones:1] Answer("SIP/0004F2060EB4-0000000a", "")
in new stack
-- Executing [7012 at phones:2] Wait("SIP/0004F2060EB4-0000000a", "1") in
new stack
-- Executing [7012 at phones:3] NoOp("SIP/0004F2060EB4-0000000a", "The
state of SIP/0004F2060EB4 is NOT_INUSE") in new stack
The calling device is reported as NOT_INUSE.
======================================================================
----------------------------------------------------------------------
(0128233) schmidts (manager) - 2010-10-20 09:31
https://issues.asterisk.org/view.php?id=18173#c128233
----------------------------------------------------------------------
i have tried this and it works with your dialplan for me:
NoOp("SIP/user19998-00000000", "devstate: INUSE")
you have to set callcounter=yes and counteronpeer=yes in your sip general
conf or use call-limit=somevalue in your sip.conf at your peer.
Issue History
Date Modified Username Field Change
======================================================================
2010-10-20 09:31 schmidts Note Added: 0128233
======================================================================
More information about the asterisk-bugs
mailing list