Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
userdoc:tt_ldap_client [2013/10/25 13:46] abelbeck [Phone LDAP Directory CLI Scripts] |
userdoc:tt_ldap_client [2013/11/18 08:35] abelbeck [Phone LDAP Directory CLI Scripts] |
||
---|---|---|---|
Line 92: | Line 92: | ||
!!Note: AstLinux 1.1.4 or later is required!! | !!Note: AstLinux 1.1.4 or later is required!! | ||
+ | If the local LDAP Server is enabled and populated with a directory, the typical LDAP Client setting to anonymously access via localhost is as follows: | ||
+ | |||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | **ldap-phone-num-lookup** | ||
+ | |||
+ | Usage: ldap-phone-num-lookup [-ht] [--tls] [-m|--match-num list] [-o|--output-name list] number | ||
+ | | ||
+ | Options: | ||
+ | -h, --help | ||
+ | -t, --tls Enable TLS using start_tls | ||
+ | -m, --match-num list Comma separated list to match number. Default: telephonenumber, | ||
+ | -o, --output-name list Comma separated list to display the name. Default: displayname, | ||
+ | |||
+ | By default the ' | ||
+ | |||
+ | Standard output returns the first '' | ||
+ | |||
+ | Use the optional '' | ||
+ | \\ | ||
+ | \\ | ||
**ldap-phone-name-lookup** | **ldap-phone-name-lookup** | ||
- | Usage: ldap-phone-name-lookup [--tls] name | + | Usage: ldap-phone-name-lookup |
+ | |||
+ | Options: | ||
+ | -h, --help | ||
+ | -t, --tls Enable TLS using start_tls | ||
+ | -m, --match-name list Comma separated list to match name. Default: cn, | ||
+ | -o, --output-num list Comma separated list to display numbers. Default: telephonenumber, | ||
- | The ' | + | The ' |
Standard output returns (multiple) phone numbers separated by a tilde (~). | Standard output returns (multiple) phone numbers separated by a tilde (~). | ||
- | **ldap-phone-num-lookup** | + | Use the optional '' |
- | | + | ==== Asterisk |
- | The 'number' | + | Examples how the '' |
+ | |||
+ | **CallerID number lookup via LDAP and AstDB** | ||
+ | |||
+ | < | ||
+ | ; CallerID(num) lookup, first LDAP then AstDB | ||
+ | exten => s,1,NoOp(CallerID lookup, first LDAP then AstDB ...) | ||
+ | | ||
+ | same => n,ExecIf($[" | ||
+ | same => n,ExecIf($[ $[" | ||
+ | same => n, | ||
+ | |||
+ | And in your incoming context put this line somewhere: | ||
+ | |||
+ | exten => s, | ||
- | Standard output returns the first '' | ||