[Home]

Summary:ASTERISK-16058: SIP device shows "IN USE" / Busy when it is not
Reporter:ipckmb01 (ipckmb01)Labels:
Date Opened:2010-05-05 16:36:44Date Closed:2011-06-07 14:05:14
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Functions/func_devstate
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Actual Asterisk version number:  1.6.2.2

Whether viewing the status using DEVICE_STATE or looking at a dynamically added agent in a queue where the agent is the actual technology (SIP/XXXXXX), the device is "In Use" when it is not.

This is not consistent.  Most of the time Asterisk works fine.  But occasionally an extension shows up "in use".  Unregistering and re-registering the phone does not change this.  Sip parameter qualify=yes with timert1=3000 does not correct this.  CLI command sip qualify peer XXXXX does not change this.

Funnying thing though .... agent makes an outbound call and the DEVICE_STATE corrects itself.

Anybody else seeing this?


****** ADDITIONAL INFORMATION ******

Here is an except that display with a quick shell command
-- command ---
asterisk -rx "sip show peer $1" |grep " ... filter
asterisk -rx "core show channels" |grep $1
asterisk -rx "queue show" | grep $1
asterisk -rx "sip show inuse" |grep "$1\|Peer"

---- ---
Here is a result when the agent actually has a call
 * Name       : 12796
 Callerid     : "Agent 1 12796" <12796>
 Timer T1     : 3000
 Addr->IP     : 192.168.48.27 Port 18134
 Codec Order  : (ulaw:20,alaw:20,gsm:20)
 Status       : OK (101 ms)
 Useragent    : eyeBeam release 1104a stamp 54436
SIP/12796-00003377   12601@from-internal: Up      AppQueue((Outgoing Line))
     SIP/12796 (dynamic) (In use) has taken 4 calls (last was 258 secs ago)
     SIP/12796 (dynamic) (In use) has taken 4 calls (last was 258 secs ago)
* Peer name               In use          Limit
12796                     1/0/0           50

---- ---
Now here is a result when the agent was seen as busy by device state but truely was not:

 * Name       : 12796
 Callerid     : "Agent 1 12796" <12796>
 Timer T1     : 3000
 Addr->IP     : 192.168.48.27 Port 18134
 Codec Order  : (ulaw:20,alaw:20,gsm:20)
 Status       : OK (101 ms)
 Useragent    : eyeBeam release 1104a stamp 54436
     SIP/12796 (dynamic) (In use) has taken no calls yet; logged on 97 secs ago
     SIP/12796 (dynamic) (In use) has taken no calls yet; logged on 89 secs ago
* Peer name               In use          Limit
12796                     0/0/0           50
Comments:By: Leif Madsen (lmadsen) 2010-05-07 11:25:13

This feels more like a support issue (or possibly something fixed in a newer version). I'd suggest using the asterisk-users mailing list or #asterisk on IRC.

If the status is not being setup correctly, please provide the SIP trace along with the console output where the status update is not being set correctly. Thanks!

By: Paul Belanger (pabelanger) 2010-05-13 09:18:17

Thanks for your comments. This does not appear to be a bug report and we are closing it. We appreciate the difficulties you are facing, but it would make more sense to raise your question in the support tracker, http://www.asterisk.org/support