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