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 18:52] – [Phone LDAP Directory CLI Scripts] abelbeck | userdoc:tt_ldap_client [2013/11/18 14:37] (current) – [Phone LDAP Directory CLI Scripts] abelbeck | ||
|---|---|---|---|
| Line 90: | Line 90: | ||
| In addition to the HTTPS CGI script described above, AstLinux also supports Command-Line-Interface (CLI) scripts to access LDAP directory data.  By default the scripts are configured to access the LDAP server with anonymous access (possibly ' | In addition to the HTTPS CGI script described above, AstLinux also supports Command-Line-Interface (CLI) scripts to access LDAP directory data.  By default the scripts are configured to access the LDAP server with anonymous access (possibly ' | ||
| - | If the local LDAP Server is enabled and populated with a directory, the typical LDAP Client setting  | + | !!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  | ||
| {{: | {{: | ||
| + | \\ | ||
| + | \\ | ||
| + | **ldap-phone-num-lookup** | ||
| - | !!Note: AstLinux 1.1.4 or later is required!! | + | 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, | ||
| - | **ldap-phone-name-lookup** | + | By default the ' | 
| - | Usage: ldap-phone-name-lookup [--tls] name | + | Standard output returns the first '' | 
| - | The 'name'  | + | Use the optional  | 
| + | \\ | ||
| + | \\ | ||
| + | **ldap-phone-name-lookup** | ||
| - | Standard output returns (multiple)  | + | 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  | ||
| + |       -o, --output-num list  Comma separated list to display numbers. Default: telephonenumber, | ||
| - | **ldap-phone-num-lookup** | + | By default the ' | 
| - |   Usage: ldap-phone-num-lookup [--tls]  | + | Standard output returns (multiple)  | 
| - | The 'number'  | + | Use the optional  | 
| - | + | ||
| - | Standard  | + | |
| ==== Asterisk Usage Examples ==== | ==== Asterisk Usage Examples ==== | ||
| Examples how the '' | 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, | ||