OK good,
Let's just check first that LDAP is working ...
Try this...
exten=>s,1,LDAPget(MYCALLERID=cidname/${CALLERIDNUM})
exten=>s,2,GoTo(7000,1)
exten->s,102,GoTo(7000,1)
exten=>7000,1,NoOp(${MYCALLERID})
exten=>7000,2,Set (CALLERID(name)=${MYCALLERID})
exten=>7000,3,agi(selintra,Alias,SIP/nnnn SIP/nnnn SIP/nnnnn,${EXTEN})
exten=>7000,4,Hangup
This will show the LDAP returned caller id value on the console just before it hands control to the agi.
Best
S