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 15:38] droemel [Asterisk Usage Examples] |
userdoc:tt_ldap_client [2013/11/18 08:37] (current) abelbeck [Phone LDAP Directory CLI Scripts] |
||
---|---|---|---|
Line 97: | Line 97: | ||
\\ | \\ | ||
\\ | \\ | ||
- | **ldap-phone-name-lookup** | + | **ldap-phone-num-lookup** |
- | Usage: ldap-phone-name-lookup [--tls] name | + | Usage: ldap-phone-num-lookup |
+ | |||
+ | 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, | ||
- | The 'name' is matched as: '' | + | By default the 'number' is matched as: '' |
- | Standard output returns | + | Standard output returns |
- | **ldap-phone-num-lookup** | + | Use the optional '' |
+ | \\ | ||
+ | \\ | ||
+ | **ldap-phone-name-lookup** | ||
- | Usage: ldap-phone-num-lookup [--tls] | + | 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 'number' is matched as: '' | + | By default the 'name' is matched as: '' |
- | Standard output returns the first '' | + | Standard output returns |
+ | |||
+ | Use the optional | ||
==== Asterisk Usage Examples ==== | ==== Asterisk Usage Examples ==== | ||
Line 122: | Line 139: | ||
; CallerID(num) lookup, first LDAP then AstDB | ; CallerID(num) lookup, first LDAP then AstDB | ||
exten => s, | exten => s, | ||
- | same => n,ExecIf($[ $[" | + | same => n,ExecIf($[ $[" |
same => n, | same => n, | ||
same => n,ExecIf($[ $[" | same => n,ExecIf($[ $[" | ||
Line 129: | Line 146: | ||
And in your incoming context put this line somewhere: | And in your incoming context put this line somewhere: | ||
- | exten => s, | + | exten => s, |