[asterisk-users] Asterisk and LDAP : LDAPget doesnt work
wilfried bordoni
wbordoni at apteo.com
Wed May 20 02:32:54 CDT 2009
I have a little problem that i can't solve by myself:
My LDAP server is OK, i'm sure of that.
All my LDAP users register without any problem.
My goal is to retrieve the name of the Queue for a person, but when
LDAPget is called, I have no output in the asterisk CLI and it hangs up...
ldap.conf:
[queuename]
host = xxxxxx.com
; version = 3
user = cn=admin,dc=xxxxxx,dc=com
pass = xxxxxx
filter = (AstAccountCallerID=%s)
attribute = AstQueueName
base = dc=xxxxxx,dc=com
extensions.conf:
exten => 888,1,Answer()
exten => 888,n,Wait(1)
exten => 888,n,LDAPget(QueueName=queuename/103)
exten => 888,n,Playback(sales-instructions)
exten => 888,n,AddQueueMember(${QueueName})
res_ldap.conf:
[sip]
name = cn
callerid = AstAccountCallerID
host = AstAccountHost
type = AstAccountType
qualify = AstAccountQualify
secret = AstAccountSecret
context = AstAccountContext
dtmfmode = AstAccountDTMFMode
[queue]
name = AstQueueName
extconfig.conf:
sipusers => ldap,"dc=destinsconseils,dc=smartgestion,dc=com",sip
sippeers => ldap,"dc=destinsconseils,dc=smartgestion,dc=com",sip
queues => ldap,"dc=destinsconseils,dc=smartgestion,dc=com",queue
asterisk CLI:
-- Executing [888 at default:1] Answer("SIP/will-008b5488", "") in new stack
-- Executing [888 at default:2] Wait("SIP/will-008b5488", "1") in new stack
== Spawn extension (default, 888, 3) exited non-zero on 'SIP/will-008b5488'
any ideas please ? i'm using asterisk 1.6.0.1 with openldap on ubuntu 8.10
!DSPAM:4a13b22590261191119901!
More information about the asterisk-users
mailing list