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