What are the LDAP searches like?
On 05/01/2010, Jorge Salamero Sanz <bencer at 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: user at 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 [78 at users:1] Answer("SIP/demo-00000000",
"") in new stack
> -- Executing [78 at users:2] Queue("SIP/demo-00000000",
"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 -
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvc
>
> *CLI> queue show foobar
> [1] 6356 segmentation fault (core dumped) asterisk -
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvc
>
> *CLI> queue add member SIP/foo to foobar
> [1] 6394 segmentation fault (core dumped) asterisk -
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvc
>
> 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