Problem with counter of members of queue

General discussions about AsteriskNOW.

Moderators: Moderator, Support

Problem with counter of members of queue

Postby lucasdgr » Fri Oct 07, 2011 5:58 am

I use the sentence "$ {QUEUE_MEMBER (1200)}" and "$ {QUEUE_MEMBER (1200,logged)}" to know how many members it has a queue.
I noticed that on occasions the account is incorrect.
The only way I found to solve this is "service asterisk restart"

I have in production AsteriskNOW 1.7.1, Asterisk 1.6.2.20 and with digium te121pf card.

Code: Select all
[b]asterisk*CLI> queue show[/b]
SIP/1004(Unavailable) has taken no calls yet
[b]SIP/1005 (Not in use) has taken no calls yet [/b]
SIP/1004(Unavailable) has taken no calls yet


Code: Select all
[b]asterisk*CLI> sip show peers[/b]
1004                      (Unspecified)    D   N   A  5060     UNKNOWN
[b]1005               (Unspecified)    D   N   A  5060     UNKNOWN[/b]
1006               (Unspecified)    D   N   A  5060     UNKNOWN


here, QUEUE_MEMBER return 1, when in reality, it should return 0.

sip.cof
Code: Select all
[general]
context = default  ;Contexto por defecto para las llamadas entrantes
bindport = 5060  ;puerto para conexiones SIP
bindaddr = 0.0.0.0
srvlookup = yes
disallow = all
allow = ulaw
allow = alaw
allow = gsm
allow = g723
language = es  ;lenguage por defecto
callcounter = yes  ; este parametro es para llevar un mejor registro de estado de las cuentas SIP

[1005 ]
secret = xxxx
language = es
deny = 0.0.0.0/0.0.0.0
dtmfmode = rfc2833
canreinvite = no
context = from-internal
host = dynamic
type = friend
nat = yes
port = 5060
qualify = yes
callgroup =
pickupgroup =
dial = SIP/1005
accountcode =
mailbox = 1005 @device
permit = 0.0.0.0/0.0.0.0
callerid = "1005 " <1005 >
call-limit = 50
faxdetect = no


queue.conf
Code: Select all
[general]
persistentmembers=no

[1200]
;cola General
announce-holdtime=yes
announce-position=yes
autofill=no
eventmemberstatus=no
eventwhencalled=no
joinempty=yes
leavewhenempty=no
maxlen=0
announce=custom/anuncio_de_agente_general
periodic-announce=custom/todos_op_ocupados_aguarde_por_favor
periodic-announce-frequency=15
queue-callswaiting=silence/1
queue-thereare=silence/1
queue-youarenext=silence/1
reportholdtime=no
retry=5
ringinuse=no
servicelevel=60
strategy=ringall
timeout=15
weight=0
wrapuptime=0
member=>SIP/1004
member=>SIP/1005
member=>SIP/1006


Thank you for your help.
Regards.
lucasdgr
Newsterisk
 
Posts: 13
Joined: Tue Aug 02, 2011 2:10 pm
Location: Argentina

Return to AsteriskNOW General

Who is online

Users browsing this forum: No registered users and 1 guest