XCAP RLS services » History » Version 12
Adrian Georgescu, 04/19/2012 03:32 PM
1 | 1 | ||
---|---|---|---|
2 | 11 | Adrian Georgescu | h2. xcap-rls-services |
3 | 10 | Adrian Georgescu | |
4 | 1 | ||
5 | |||
6 | |||
7 | 11 | Adrian Georgescu | > 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 | This script adds and removed buddies in the RLS services XCAP document. Can be used to prepare the buddy list prior to execute source:"scripts/sip_subscribe_rls.py" script. |
||
14 | |||
15 | <pre> |
||
16 | 10 | Adrian Georgescu | adigeo@ag-imac3:~$xcap-rls-services -h |
17 | Usage: xcap-rls-services [options] [service URI] |
||
18 | 2 | Adrian Georgescu | |
19 | This example script will use the specified SIP account to manage rls services |
||
20 | via XCAP. The program will quit when CTRL+D is pressed. You can specify the |
||
21 | service URI as an argument (if domain name is not specified, the user's domain |
||
22 | name will be used). If it is not specified, it defaults to username- |
||
23 | buddies@domain. |
||
24 | 8 | Adrian Georgescu | |
25 | 1 | Options: |
|
26 | -h, --help show this help message and exit |
||
27 | -a ACCOUNT_NAME, --account-name=ACCOUNT_NAME |
||
28 | The name of the account to use. |
||
29 | 8 | Adrian Georgescu | -s, --show-xml Show the presence rules XML whenever it is changed and |
30 | at start-up. |
||
31 | 2 | Adrian Georgescu | |
32 | 11 | Adrian Georgescu | </pre> |
33 | 1 | ||
34 | 11 | Adrian Georgescu | |
35 | h3. Example |
||
36 | |||
37 | <pre> |
||
38 | 4 | Adrian Georgescu | adigeo@ag-imac3:~$xcap-rls-services |
39 | Retrieving current RLS services from https://xcap.sipthor.net/xcap-root/ |
||
40 | Managing service URI sip:31208005169-buddies@ag-projects.com |
||
41 | |||
42 | Buddies: |
||
43 | 8 | Adrian Georgescu | adi@umts.ro |
44 | 4 | Adrian Georgescu | alice@ag-projects.com |
45 | Press (a) to add or (r) to remove a buddy. (s) will show the RLS services xml. (d) will delete the currently selected service. |
||
46 | RLS services document: |
||
47 | <?xml version='1.0' encoding='UTF-8'?> |
||
48 | <rls-services xmlns:rl="urn:ietf:params:xml:ns:resource-lists" xmlns="urn:ietf:params:xml:ns:rls-services"> |
||
49 | <service uri="sip:31208005169-buddies@ag-projects.com"> |
||
50 | <list> |
||
51 | 8 | Adrian Georgescu | <rl:entry uri="sip:adi@umts.ro"/> |
52 | 4 | Adrian Georgescu | <rl:entry uri="sip:alice@ag-projects.com"/> |
53 | </list> |
||
54 | <packages> |
||
55 | <package>presence</package> |
||
56 | </packages> |
||
57 | 1 | </service> |
|
58 | 4 | Adrian Georgescu | </rls-services> |
59 | |||
60 | |||
61 | Buddies: |
||
62 | 8 | Adrian Georgescu | adi@umts.ro |
63 | 4 | Adrian Georgescu | alice@ag-projects.com |
64 | 8 | Adrian Georgescu | Press (a) to add or (r) to remove a buddy. (s) will show the RLS services xml. (d) will delete the currently selected service. |
65 | 4 | Adrian Georgescu | |
66 | |||
67 | 11 | Adrian Georgescu | </pre> |