'Not in use problem'

Hello, I have a problem with ‘not in use status’ of queue members.

There is Asterisk 1.6.2.11 installed.
Sip conf, Queues, Queue members and CDR configured to work with PostgreSQL.

My sip.conf:

[general]

jbenable=yes
jbforce=no
jbimpl=fixed
jblog=no
jbmaxsize=50
jbresyncthreshold=1000


context=inbound_trunk
[b]limitonpeers = yes[/b]    
allowguest=no
bindport=10000
bindaddr=0.0.0.0
srvlookup=no
pedantic=no
realm=asterisk
tos_sip=cs3
tos_audio=ef
tos_video=af41
maxexpiry=1800
minexpiry=60
defaultexpiry=120
t1min=100
buggymwi=yes
disallow=all
allow=alaw
allow=ulaw
mohinterpret=default
language=ru
relaxdtmf=yes
callerid=AsteriskCallManager1.0
useragent=Asterisk Call Manager 1.0
dtmfmode=auto
callevents=yes
sipdebug = no
rtptimeout=60
rtpholdtimeout=300
registertimeout=20
registerattempts=0
localnet=192.168.98.0/255.255.255.0
canreinvite=no
nat=no

In the sip table I have filled call-limit column.

Queues configured to keep queue members by SIP:

But in queue status I see “not in use” status:

-- Registered SIP '7700' at 192.168.98.111 port 14262
> Saved useragent "eyeBeam release 1102q stamp 51814" for peer 7700
NOTICE[17150]: chan_sip.c:21479 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 7700
ast-01*CLI> queue show 5112
5112 has 0 calls (max unlimited) in 'leastrecent' strategy (0s holdtime, 0s talktime), W:1, C:0, A:0, SL:0.0% within 20s
   Members:
      7700 (SIP/7700) with penalty 6 (realtime) ([b]Not in use[/b]) has taken no calls yet

So, please, someone help me. What I am doing wrong?

Not sure that I follow what you are saying the problem is?

Not in use means the phone is not currently in use. Was it in use at the time you did the status?

sales has 1 calls (max unlimited) in 'rrmemory' strategy (18s holdtime, 423s talktime), W:0, C:364, A:24, SL:0.0% within 0s
   Members:
      SIP/8450 (dynamic) (Not in use) has taken 9 calls (last was 1453 secs ago)
      SIP/8505 (dynamic) (Not in use) has taken 49 calls (last was 5705 secs ago)
      SIP/8545 (dynamic) (In use) has taken 2 calls (last was 2248 secs ago)
      SIP/8448 (dynamic) (Not in use) has taken 3 calls (last was 1479 secs ago)
      SIP/8445 (dynamic) (Ringing) has taken 134 calls (last was 236 secs ago)
   Callers:
      1. IAX2/xxxbrg-15586 (wait: 0:04, prio: 0)

Hello mazzic, thanks for your reply!

In this this example I am calling from SIP/7700 to number 222, then this call placed to queue 5150 and ringing to SIP/7701, after answer of SIP/7701 I see status of SIP members in queue 5150 and see that 7101 is ‘not in use’.
I can’t understand what is wrong.


 == Spawn extension (macro-agent-to-agent, s, 8) exited non-zero on 'SIP/7700-0000001a' in macro 'agent-to-agent'
  == Spawn extension (cti-agents, 7701, 2) exited non-zero on 'SIP/7700-0000001a'
  == MixMonitor close filestream
  == End MixMonitor Recording SIP/7700-0000001a
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [222@cti-agents:1] NoOp("SIP/7700-0000001c", "test call in queue") in new stack
    -- Executing [222@cti-agents:2] Macro("SIP/7700-0000001c", "to-acd,5150,222,noproxy") in new stack
    -- Executing [s@macro-to-acd:1] NoOp("SIP/7700-0000001c", "### new call to 222 is going to queue 5150") in new stack
    -- Executing [s@macro-to-acd:2] Set("SIP/7700-0000001c", "fname=201009011404-7700-s") in new stack
    -- Executing [s@macro-to-acd:3] Answer("SIP/7700-0000001c", "") in new stack
    -- Executing [s@macro-to-acd:4] BackGround("SIP/7700-0000001c", "silence/1") in new stack
    -- <SIP/7700-0000001c> Playing 'silence/1.alaw' (language 'ru')
    -- Executing [s@macro-to-acd:5] BackGround("SIP/7700-0000001c", "queues/5150-ru&queues/welcome-ru&queues/5150-en&queues/welcome-en") in new stack
    -- Executing [s@macro-to-acd:6] MixMonitor("SIP/7700-0000001c", "/REC/201009011404-7700-s.wav") in new stack
    -- Executing [s@macro-to-acd:7] Queue("SIP/7700-0000001c", "5150,t") in new stack
  == Begin MixMonitor Recording SIP/7700-0000001c
    -- Started music on hold, class 'default', on SIP/7700-0000001c
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- SIP/7701-0000001d is ringing
    -- SIP/7701-0000001d answered SIP/7700-0000001c
    -- Stopped music on hold on SIP/7700-0000001c

ast-01*CLI> queue show 5150
5150 has 0 calls (max unlimited) in 'leastrecent' strategy (0s holdtime, 0s talktime), W:1, C:0, A:0, SL:0.0% within 20s
   Members:
      7700 (SIP/7700) with penalty 1 (realtime) (Not in use) has taken no calls yet
      7701 (SIP/7701) with penalty 1 (realtime) (Not in use) has taken no calls yet
   No Callers

When I hung up the call on SIP/7701 I am looking to queue status again and see ‘7701 has taken 1 calls’:

ast-01*CLI> queue show 5150
5150 has 0 calls (max unlimited) in 'leastrecent' strategy (0s holdtime, 17s talktime), W:1, C:1, A:0, SL:100.0% within 20s
   Members:
      7700 (SIP/7700) with penalty 1 (realtime) (Not in use) has taken no calls yet
      7701 (SIP/7701) with penalty 1 (realtime) (Not in use) has taken 1 calls (last was 875 secs ago)
   No Callers

So, I absolutely don’t understand anything and I will be glad of any help .

Thanks in advance

If you have just hung up and no other call has arrived, “not in use” is correct. You would only have a prolem if it showed “not in use” whilst actually handling the call.

I think you are confusing this with unavailable.

Thanks David,

Yes, in first example i see ‘not in use’ status when the call is active!
I called from SIP/7700 to queue 5150, then SIP/7701 is ringing and SIP/7701 has picked up this call.
The call is active, nobody hungs up!
But I see ‘not in use’ status in queue.

Hello Guys

we are experiencing same issue with 1.8.33 ( realtime ) mysql , have you managed to solve this problem?

Best Regards
Dmitri O