Xcap pres rules » History » Version 12
Adrian Georgescu, 01/24/2010 03:41 PM
1 | 1 | Adrian Georgescu | |
---|---|---|---|
2 | 12 | Adrian Georgescu | h2. xcap-pres-rules |
3 | 1 | Adrian Georgescu | |
4 | |||
5 | |||
6 | 12 | Adrian Georgescu | |
7 | > This script is available in _sipclients_ package that must be installed separately from SIP SIMPLe client SDK package. |
||
8 | |||
9 | |||
10 | h3. Description |
||
11 | |||
12 | |||
13 | <pre> |
||
14 | 11 | Adrian Georgescu | adigeo@ag-imac3:~$xcap-pres_rules -h |
15 | Usage: xcap-pres-rules [options] |
||
16 | 1 | Adrian Georgescu | |
17 | This example script will use the specified SIP account to manage presence |
||
18 | rules via XCAP. The program will quit when CTRL+D is pressed. |
||
19 | 9 | Adrian Georgescu | |
20 | 1 | Adrian Georgescu | Options: |
21 | -h, --help show this help message and exit |
||
22 | -a ACCOUNT_NAME, --account-name=ACCOUNT_NAME |
||
23 | The name of the account to use. |
||
24 | -s, --show-xml Show the presence rules XML whenever it is changed and |
||
25 | 9 | Adrian Georgescu | at start-up. |
26 | 12 | Adrian Georgescu | </pre> |
27 | 9 | Adrian Georgescu | |
28 | 2 | Adrian Georgescu | |
29 | 12 | Adrian Georgescu | h3. Example |
30 | |||
31 | |||
32 | <pre> |
||
33 | 11 | Adrian Georgescu | adigeo@ag-imac3:~$xcap-pres-rules |
34 | 2 | Adrian Georgescu | Retrieving current presence rules from https://xcap.sipthor.net/xcap-root/ |
35 | Allowed watchers: |
||
36 | 2233350608@sip2sip.info |
||
37 | 31208005163@ag-projects.com |
||
38 | 31208005166@ag-projects.com |
||
39 | 31208005167@ag-projects.com |
||
40 | adi@umts.ro |
||
41 | alice@example.com |
||
42 | 317105169@eurovoice.ro |
||
43 | 1 | Adrian Georgescu | bob@example.com |
44 | 2 | Adrian Georgescu | Blocked watchers: |
45 | test1@merge.net.nl |
||
46 | Polite-blocked watchers: |
||
47 | 3 | Adrian Georgescu | Press (a) to allow, (d) to deny, (p) to politely block a new watcher or (r) to remove a watcher from the rules. |
48 | (s) will show the presence rules xml. |
||
49 | 2 | Adrian Georgescu | a |
50 | watcher> abc@example.com |
||
51 | Watcher sip:abc@example.com is now authorized |
||
52 | 12 | Adrian Georgescu | </pre> |