[asterisk-bugs] [Asterisk 0015348]: When dialing a feature code, devstate function returns NOT_INUSE

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jun 17 17:38:12 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15348 
====================================================================== 
Reported By:                arunpereira
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15348
Category:                   Functions/func_devstate
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.24 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-17 17:38 CDT
Last Modified:              2009-06-17 17:38 CDT
====================================================================== 
Summary:                    When dialing a feature code, devstate function
returns NOT_INUSE
Description: 
Simple way to reproduce is to create a script such as 

exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Set(THISPEER=SIP/${CALLERID(num)}-${tenant})
exten => s,n,NoOp(${THISPEER} has state ${DEVSTATE(${THISPEER})}) 
exten => s,n,Wait(10)
exten => s,n,Hangup


-- Executing [s at macro-app-callwait-test:13]
NoOp("SIP/2001-Whosits-b7350b08", "SIP/2001-Whosits has state NOT_INUSE")
in new stack

However, the script above is run by calling a test star code like *00.
Would this not count as being on a call? 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-17 17:38 arunpereira    New Issue                                    
2009-06-17 17:38 arunpereira    Asterisk Version          => 1.4.24          
2009-06-17 17:38 arunpereira    Regression                => No              
2009-06-17 17:38 arunpereira    SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list