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 19:00] – [Phone LDAP Directory CLI Scripts] abelbeck | userdoc:tt_ldap_client [2013/11/18 14:37] (current) – [Phone LDAP Directory CLI Scripts] abelbeck | ||
|---|---|---|---|
| Line 96: | Line 96: | ||
| {{: | {{: | ||
| \\ | \\ | ||
| + | \\ | ||
| + | **ldap-phone-num-lookup** | ||
| - | **ldap-phone-name-lookup** | + | Usage: |
| + | |||
| + | 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, | ||
| - | Usage: ldap-phone-name-lookup [--tls] name | + | By default the ' |
| - | The 'name' | + | Standard output returns the first '' |
| - | Standard | + | Use the optional '' |
| + | \\ | ||
| + | \\ | ||
| + | **ldap-phone-name-lookup** | ||
| - | **ldap-phone-num-lookup** | + | Usage: |
| + | |||
| + | 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, | ||
| - | Usage: ldap-phone-num-lookup [--tls] number | + | By default the ' |
| - | The ' | + | Standard output returns |
| - | Standard output returns | + | Use the optional |
| ==== 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, | ||