XCAP RLS services
Version 2 (Adrian Georgescu, 11/26/2008 11:05 pm)
1 | 2 | Adrian Georgescu | == xcap_rls_services == |
---|---|---|---|
2 | 2 | Adrian Georgescu | |
3 | 2 | Adrian Georgescu | To use this script you must to have a valid [wiki:configuration_file configuration file]. |
4 | 2 | Adrian Georgescu | |
5 | 2 | Adrian Georgescu | === Description === |
6 | 2 | Adrian Georgescu | |
7 | 2 | Adrian Georgescu | This script adds and removed buddies in RLS document. |
8 | 2 | Adrian Georgescu | |
9 | 2 | Adrian Georgescu | Source code: [source:scripts/xcap_rls_services.py scripts/xcap_rls_services.py] |
10 | 2 | Adrian Georgescu | |
11 | 2 | Adrian Georgescu | {{{ |
12 | 2 | Adrian Georgescu | adigeo@ag-oxygen:~$xcap_rls_services -h |
13 | 2 | Adrian Georgescu | Usage: xcap_rls_services [options] [service URI] |
14 | 2 | Adrian Georgescu | |
15 | 2 | Adrian Georgescu | This example script will use the specified SIP account to manage rls services |
16 | 2 | Adrian Georgescu | via XCAP. The program will quit when CTRL+D is pressed. You can specify the |
17 | 2 | Adrian Georgescu | service URI as an argument (if domain name is not specified, the user's domain |
18 | 2 | Adrian Georgescu | name will be used). If it is not specified, it defaults to username- |
19 | 2 | Adrian Georgescu | buddies@domain. |
20 | 2 | Adrian Georgescu | |
21 | 2 | Adrian Georgescu | Options: |
22 | 2 | Adrian Georgescu | -h, --help show this help message and exit |
23 | 2 | Adrian Georgescu | -a NAME, --account-name=NAME |
24 | 2 | Adrian Georgescu | The account name from which to read account settings. |
25 | 2 | Adrian Georgescu | Corresponds to section Account_NAME in the |
26 | 2 | Adrian Georgescu | configuration file. If not supplied, the section |
27 | 2 | Adrian Georgescu | Account will be read. |
28 | 2 | Adrian Georgescu | --sip-address=SIP_ADDRESS |
29 | 2 | Adrian Georgescu | SIP address of the user in the form user@domain |
30 | 2 | Adrian Georgescu | -p PASSWORD, --password=PASSWORD |
31 | 2 | Adrian Georgescu | Password to use to authenticate the local account. |
32 | 2 | Adrian Georgescu | This overrides the setting from the config file. |
33 | 2 | Adrian Georgescu | -x XCAP_ROOT, --xcap-root=XCAP_ROOT |
34 | 2 | Adrian Georgescu | The XCAP root to use to access the rls-services |
35 | 2 | Adrian Georgescu | document to manage. |
36 | 2 | Adrian Georgescu | -s, --show-xml Show the RLS services XML whenever it is changed and |
37 | 2 | Adrian Georgescu | at start-up. |
38 | 2 | Adrian Georgescu | }}} |