[asterisk-users] Realtime LDAP Queues crashes

Jorge Salamero Sanz bencer at cauterized.net
Tue Jan 12 09:49:00 CST 2010


On Friday 08 January 2010 01:38:42 Gavin Henry wrote:
> What are the LDAP searches like?
> 

after updating and applying this patch: 
http://issues.asterisk.org/view.php?id=13573

doesn't crash and the queries i get are ok:

conn=0 op=67 SRCH base="dc=nodomain" scope=2 deref=0 
filter="(&(objectClass=AsteriskQueue)(AstQueueName=barbaros))"                                                                                
<= bdb_equality_candidates: (AstQueueName) not indexed                                                                                                                                             
conn=0 op=67 ENTRY dn="cn=barbaros,ou=queues,dc=nodomain"                                                                                                                                          
conn=0 op=67 SEARCH RESULT tag=101 err=0 nentries=1 text=                                                                                                                                          
conn=0 op=68 SRCH base="dc=nodomain" scope=2 deref=0 
filter="(&(objectClass=AsteriskQueueMember)(AstQueueInterface=*)
(AstQueueMemberof=barbaros))"                                                 
<= bdb_equality_candidates: (AstQueueMemberof) not indexed                                                                                                                                         
conn=0 op=68 ENTRY dn="uid=1234,ou=users,dc=nodomain"                                                                                                                                              
conn=0 op=68 ENTRY dn="uid=demo,ou=users,dc=nodomain"                                                                                                                                              
conn=0 op=68 SEARCH RESULT tag=101 err=0 nentries=2 text=   

but the queue is shown as empty:

    -- Executing [222 at users:1] Queue("SIP/jsalamero-00000001", "barbaros") in 
new stack
[Jan 12 16:32:37] WARNING[4238]: app_queue.c:1855 rt_handle_member_record: 
Realtime field uniqueid is empty for memeber 1234
[Jan 12 16:32:37] WARNING[4238]: app_queue.c:1855 rt_handle_member_record: 
Realtime field uniqueid is empty for memeber demo
    -- Started music on hold, class 'default', on channel 
'SIP/jsalamero-00000001'
voip*CLI> sip show peers
Name/username              Host            Dyn Forcerport ACL Port     Status     
Realtime
1234/1234                  87.222.XXX.XXX   D   N      5060     OK (91 ms) 
Cached RT
jsalamero/jsalamero        87.222.XXX.XXX   D   N      1024     OK (86 ms) 
Cached RT
xxxx/xxxx        94.23.xxx.xxx                5060     Unmonitored
3 sip peers [Monitored: 2 online, 0 offline Unmonitored: 1 online, 0 offline]
voip*CLI> queue show barbaros
barbaros has 1 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s 
talktime), W:0, C:0, A:0, SL:0.0% within 0s
   No Members
   Callers:
      1. SIP/jsalamero-00000001 (wait: 0:44, prio: 0)

[Jan 12 16:33:21] WARNING[4227]: app_queue.c:1855 rt_handle_member_record: 
Realtime field uniqueid is empty for memeber 1234
[Jan 12 16:33:21] WARNING[4227]: app_queue.c:1855 rt_handle_member_record: 
Realtime field uniqueid is empty for memeber demo
[Jan 12 16:33:21] WARNING[4227]: app_queue.c:1855 rt_handle_member_record: 
Realtime field uniqueid is empty for memeber 1234
[Jan 12 16:33:21] WARNING[4227]: app_queue.c:1855 rt_handle_member_record: 
Realtime field uniqueid is empty for memeber demo

after adding by hand the users 1234 and demo to the queue, it works:

queue add member SIP/demo to barbaros
queue add member SIP/1234 to barbaros

voip*CLI> queue show barbaros
barbaros has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s 
talktime), W:0, C:0, A:2, SL:0.0% within 0s
   Members:
      SIP/demo (dynamic) (Not in use) has taken no calls yet
      SIP/1234 (dynamic) (Not in use) has taken no calls yet
   No Callers
voip*CLI>
[Jan 12 16:42:24] WARNING[4227]: app_queue.c:1855 rt_handle_member_record: 
Realtime field uniqueid is empty for memeber 1234
[Jan 12 16:42:24] WARNING[4227]: app_queue.c:1855 rt_handle_member_record: 
Realtime field uniqueid is empty for memeber demo
[Jan 12 16:42:24] WARNING[4227]: app_queue.c:1855 rt_handle_member_record: 
Realtime field uniqueid is empty for memeber 1234
[Jan 12 16:42:24] WARNING[4227]: app_queue.c:1855 rt_handle_member_record: 
Realtime field uniqueid is empty for memeber demo
    -- Executing [222 at users:1] Queue("SIP/jsalamero-00000005", "barbaros") in 
new stack
[Jan 12 16:42:51] WARNING[4754]: app_queue.c:1855 rt_handle_member_record: 
Realtime field uniqueid is empty for memeber 1234
[Jan 12 16:42:51] WARNING[4754]: app_queue.c:1855 rt_handle_member_record: 
Realtime field uniqueid is empty for memeber demo
    -- Started music on hold, class 'default', on channel 
'SIP/jsalamero-00000005'
    -- SIP/demo-00000007 is ringing
    -- SIP/1234-00000006 is ringing
    -- Stopped music on hold on SIP/jsalamero-00000005
  == Spawn extension (users, 222, 1) exited non-zero on 
'SIP/jsalamero-00000005'

any way to avoid this manual fix ?

btw gavin, would you merge the schemas from my last email ?




More information about the asterisk-users mailing list