Re: [asterisk-users] Realtime LDAP Queues crashes
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 [...@users:1] Queue(SIP/jsalamero-0001, 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-0001' voip*CLI sip show peers Name/username HostDyn Forcerport ACL Port Status Realtime 1234/1234 87.222.XXX.XXX D N 5060 OK (91 ms) Cached RT jsalamero/jsalamero87.222.XXX.XXX D N 1024 OK (86 ms) Cached RT /94.23.xxx.xxx5060 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-0001 (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 [...@users:1] Queue(SIP/jsalamero-0005, 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-0005' -- SIP/demo-0007 is ringing -- SIP/1234-0006 is ringing -- Stopped music on hold on SIP/jsalamero-0005 == Spawn
Re: [asterisk-users] Realtime LDAP Queues crashes
What are the LDAP searches like? On 05/01/2010, Jorge Salamero Sanz ben...@cauterized.net wrote: Hi all, I've updated Asterisk trunk LDAP schema [0] [1] to include queues and other attributes needed for a working LDAP backend (I'll open a bug to include these changes on svn). SIP users and dialplan are perfectly working, but when I call a queue the whole Asterisk (1.6.2.0) crashes: on extconfig: [settings] sipusers = ldap,dc=nodomain,sip sippeers = ldap,dc=nodomain,sip extensions = ldap,dc=nodomain,extensions voicemail = ldap,dc=nodomain,voicemail queue_members = ldap,dc=nodomain,queue_member queues = ldap,dc=nodomain,queue on res_ldap.conf: see [1] for the Queues on LDAP I have: ou=Queues,dc=nodomain ou: Queues objectClass: top objectClass: organizationalUnit cn=foobar,ou=Queues,dc=nodomain objectClass: applicationProcess objectClass: AsteriskQueue AstQueueName: foobar AstQueueContext: default AstQueueTimeout: 180 cn: foobar the dialplan (on extensions.conf, the same if it's on LDAP): [frontdesk] exten = 78,1,Answer exten = 78,n,Queue(foobar) exten = 78,n,Hangup [default] include = common include = frontdesk switch = Realtime and the user on LDAP: uid=foo,ou=Users,dc=nodomain cn: foo foo uid: foo sn: foo uidNumber: 2002 gidNumber: 1901 homeDirectory: /nonexistent userPassword: {SHA}C+7Hteo/D9vJXQ3UfzxbwnXaijM= eboxSha1Password: {SHA}C+7Hteo/D9vJXQ3UfzxbwnXaijM= eboxMd5Password: {MD5}rL0Y20zC+Fzt72VPzMSk2A== eboxLmPassword: 5BFAFBEBFB6A0942AAD3B435B51404EE eboxNtPassword: AC8E657F83DF82BEEA5D43BDAF7800CC eboxDigestPassword: {MD5}x0Z+Prb70OIF3iARsuJ3Xg== eboxRealmPassword: {MD5}c7467e3eb6fbd0e205de2011b2e2775e givenName: foo description: foo AstAccountType: friend AstAccountContext: users AstAccountCallerID: 1001 AstAccountMailbox: 1001 AstAccountHost: dynamic AstAccountNAT: yes AstAccountQualify: yes AstAccountCanReinvite: no AstAccountDTMFMode: rfc2833 AstAccountInsecure: port AstAccountLastQualifyMilliseconds: 0 AstAccountIPAddress: 0.0.0.0 AstAccountPort: 0 AstAccountExpirationTimestamp: 0 AstAccountRegistrationServer: 0 AstAccountUserAgent: 0 AstAccountFullContact: sip:0.0.0.0 AstContext: users AstVoicemailMailbox: 1001 AstVoicemailPassword: 1001 AstVoicemailEmail: u...@domain AstVoicemailAttach: yes AstVoicemailDelete: no AstQueueMembername: foobar AstQueueMemberof: foobar objectClass: AsteriskQueueMember objectClass: AsteriskSIPUser objectClass: AsteriskVoiceMail objectClass: inetOrgPerson objectClass: passwordHolder objectClass: posixAccount AstQueueInterface: SIP/1001 when i call the queue extension, on slapd I can see how Asterisk fetches the AsteriskQueue objectClass, and then fetches the foo user, but then crashes like this: -- Executing [...@users:1] Answer(SIP/demo-, ) in new stack -- Executing [...@users:2] Queue(SIP/demo-, foobar) in new stack [Jan 5 13:26:28] WARNING[6195]: app_queue.c:1134 create_queue_member: No location at interface '' [1]6124 segmentation fault (core dumped) asterisk - vvc *CLI queue show foobar [1]6356 segmentation fault (core dumped) asterisk - vvc *CLI queue add member SIP/foo to foobar [1]6394 segmentation fault (core dumped) asterisk - vvc any clue on what's wrong ? how could i debug this ? maybe there is some attribute missing ? or the LDAP schema is wrong ? anyone with a working setup like this ? thanks in advance ! [0] http://people.ebox-platform.com/~bencer/asterisk.ldif [1] http://people.ebox-platform.com/~bencer/res_ldap.conf.mas ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Sent from my mobile device http://www.suretecsystems.com/services/openldap/ http://www.suretectelecom.com ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Realtime LDAP Queues crashes
Hi all, I've updated Asterisk trunk LDAP schema [0] [1] to include queues and other attributes needed for a working LDAP backend (I'll open a bug to include these changes on svn). SIP users and dialplan are perfectly working, but when I call a queue the whole Asterisk (1.6.2.0) crashes: on extconfig: [settings] sipusers = ldap,dc=nodomain,sip sippeers = ldap,dc=nodomain,sip extensions = ldap,dc=nodomain,extensions voicemail = ldap,dc=nodomain,voicemail queue_members = ldap,dc=nodomain,queue_member queues = ldap,dc=nodomain,queue on res_ldap.conf: see [1] for the Queues on LDAP I have: ou=Queues,dc=nodomain ou: Queues objectClass: top objectClass: organizationalUnit cn=foobar,ou=Queues,dc=nodomain objectClass: applicationProcess objectClass: AsteriskQueue AstQueueName: foobar AstQueueContext: default AstQueueTimeout: 180 cn: foobar the dialplan (on extensions.conf, the same if it's on LDAP): [frontdesk] exten = 78,1,Answer exten = 78,n,Queue(foobar) exten = 78,n,Hangup [default] include = common include = frontdesk switch = Realtime and the user on LDAP: uid=foo,ou=Users,dc=nodomain cn: foo foo uid: foo sn: foo uidNumber: 2002 gidNumber: 1901 homeDirectory: /nonexistent userPassword: {SHA}C+7Hteo/D9vJXQ3UfzxbwnXaijM= eboxSha1Password: {SHA}C+7Hteo/D9vJXQ3UfzxbwnXaijM= eboxMd5Password: {MD5}rL0Y20zC+Fzt72VPzMSk2A== eboxLmPassword: 5BFAFBEBFB6A0942AAD3B435B51404EE eboxNtPassword: AC8E657F83DF82BEEA5D43BDAF7800CC eboxDigestPassword: {MD5}x0Z+Prb70OIF3iARsuJ3Xg== eboxRealmPassword: {MD5}c7467e3eb6fbd0e205de2011b2e2775e givenName: foo description: foo AstAccountType: friend AstAccountContext: users AstAccountCallerID: 1001 AstAccountMailbox: 1001 AstAccountHost: dynamic AstAccountNAT: yes AstAccountQualify: yes AstAccountCanReinvite: no AstAccountDTMFMode: rfc2833 AstAccountInsecure: port AstAccountLastQualifyMilliseconds: 0 AstAccountIPAddress: 0.0.0.0 AstAccountPort: 0 AstAccountExpirationTimestamp: 0 AstAccountRegistrationServer: 0 AstAccountUserAgent: 0 AstAccountFullContact: sip:0.0.0.0 AstContext: users AstVoicemailMailbox: 1001 AstVoicemailPassword: 1001 AstVoicemailEmail: u...@domain AstVoicemailAttach: yes AstVoicemailDelete: no AstQueueMembername: foobar AstQueueMemberof: foobar objectClass: AsteriskQueueMember objectClass: AsteriskSIPUser objectClass: AsteriskVoiceMail objectClass: inetOrgPerson objectClass: passwordHolder objectClass: posixAccount AstQueueInterface: SIP/1001 when i call the queue extension, on slapd I can see how Asterisk fetches the AsteriskQueue objectClass, and then fetches the foo user, but then crashes like this: -- Executing [...@users:1] Answer(SIP/demo-, ) in new stack -- Executing [...@users:2] Queue(SIP/demo-, foobar) in new stack [Jan 5 13:26:28] WARNING[6195]: app_queue.c:1134 create_queue_member: No location at interface '' [1]6124 segmentation fault (core dumped) asterisk - vvc *CLI queue show foobar [1]6356 segmentation fault (core dumped) asterisk - vvc *CLI queue add member SIP/foo to foobar [1]6394 segmentation fault (core dumped) asterisk - vvc any clue on what's wrong ? how could i debug this ? maybe there is some attribute missing ? or the LDAP schema is wrong ? anyone with a working setup like this ? thanks in advance ! [0] http://people.ebox-platform.com/~bencer/asterisk.ldif [1] http://people.ebox-platform.com/~bencer/res_ldap.conf.mas ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users