Summary:ASTERISK-14331: When dialing a feature code, devstate function returns NOT_INUSE
Reporter:Arun Pereira (arunpereira)Labels:
Date Opened:2009-06-17 17:38:12Date Closed:2011-06-07 14:08:09
Versions:Frequency of
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@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?
Comments:By: Leif Madsen (lmadsen) 2009-08-31 09:15:52

You haven't provided enough information to determine if that is the case or not. What does your sip.conf configuration look like (relevant parts)? What does your dialplan look like? Do you have hints and call-limit setup correctly? Does your call status look correct everywhere else?

Please provide the relevant information in order for someone to reproduce your scenario to determine if this is a bug or a configuration issue. Thanks!

By: Leif Madsen (lmadsen) 2009-09-22 08:52:25

Closed due to lack of response from the reporter. If you're able to provide the requested information, and it isn't a configuration issue, then please reopen the issue. Thanks!