Skip to main content

Standard IP extension with LDAP lookup

Posted by sdennis on Tue, 07/01/2008

exten => s,1,LDAPget(CALLERID(name)=cidname/${CALLERID(num)},${CALLERID(num)},${CALLERID(num)})
exten => s,n,Set(CALLERID(name)=${CALLERID(name)})
exten => s,n,Goto(local-extensions${TL_DASH}${tenant},${ARG1},1)

This uses the http://www.mezzo.net/asterisk/app_ldap.html ldap module to pull callerID name from an ldap server.

In initial testing this seems to work great. In our case it pulls from the Telephone, Fax, Mobile fields in Active Directory.

This is a copy of tl-stdexten with the LDAP changes.

Alex can you look at this and make sure we aren't breaking anything.

Thanks,

Sean