Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userdoc:tt_ldap_client [2013/10/25 13:48] abelbeck [Phone LDAP Directory CLI Scripts] |
userdoc:tt_ldap_client [2013/11/18 08:37] 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!! | ||
- | **ldap-phone-name-lookup** | + | 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: |
- | Usage: ldap-phone-name-lookup [--tls] name | + | {{:userdoc:ldap-client-system-defaults.jpg? |
+ | \\ | ||
+ | \\ | ||
+ | **ldap-phone-num-lookup** | ||
- | The ' | + | 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, | ||
- | Standard output returns | + | By default the ' |
- | **ldap-phone-num-lookup** | + | Standard output returns the first '' |
- | Usage: ldap-phone-num-lookup [--tls] number | + | Use the optional '' |
+ | \\ | ||
+ | \\ | ||
+ | **ldap-phone-name-lookup** | ||
- | The ' | + | Usage: ldap-phone-name-lookup [-ht] [--tls] [-m|--match-name list] [-o|--output-num list] name |
+ | |||
+ | 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: | ||
- | Standard output returns the first '' | + | By default the ' |
+ | |||
+ | Standard output returns | ||
+ | |||
+ | Use the optional | ||
==== Asterisk Usage Examples ==== | ==== Asterisk Usage Examples ==== | ||
+ | |||
+ | Examples how the '' | ||
+ | |||
+ | **CallerID number lookup via LDAP and AstDB** | ||
+ | |||
+ | < | ||
+ | ; CallerID(num) lookup, first LDAP then AstDB | ||
+ | exten => s, | ||
+ | same => n,ExecIf($[ $[" | ||
+ | same => n, | ||
+ | same => n,ExecIf($[ $[" | ||
+ | same => n, | ||
+ | |||
+ | And in your incoming context put this line somewhere: | ||
+ | |||
+ | exten => s, | ||