Xcap pres rules » History » Version 1
Adrian Georgescu, 10/26/2008 04:37 PM
| 1 | 1 | Adrian Georgescu | == xcap_pres_rules == |
|---|---|---|---|
| 2 | |||
| 3 | To use this script you must to have a valid [wiki:configuration_file configuration file]. |
||
| 4 | |||
| 5 | === Description === |
||
| 6 | |||
| 7 | {{{ |
||
| 8 | adigeo@ag-imac3:~/work/pypjua/scripts$./xcap_pres_rules.py -h |
||
| 9 | Usage: xcap_pres_rules.py [options] |
||
| 10 | |||
| 11 | This example script will use the specified SIP account to manage presence |
||
| 12 | rules via XCAP. The program will quit when CTRL+D is pressed. |
||
| 13 | |||
| 14 | Options: |
||
| 15 | -h, --help show this help message and exit |
||
| 16 | -a NAME, --account-name=NAME |
||
| 17 | The account name from which to read account settings. |
||
| 18 | Corresponds to section Account_NAME in the |
||
| 19 | configuration file. If not supplied, the section |
||
| 20 | Account will be read. |
||
| 21 | --sip-address=SIP_ADDRESS |
||
| 22 | SIP address of the user in the form user@domain |
||
| 23 | -p PASSWORD, --password=PASSWORD |
||
| 24 | Password to use to authenticate the local account. |
||
| 25 | This overrides the setting from the config file. |
||
| 26 | -n DISPLAY_NAME, --display-name=DISPLAY_NAME |
||
| 27 | Display name to use for the local account. This |
||
| 28 | overrides the setting from the config file. |
||
| 29 | -x XCAP_ROOT, --xcap-root=XCAP_ROOT |
||
| 30 | The XCAP root to use to access the pres-rules document |
||
| 31 | for authorizing subscriptions to presence. |
||
| 32 | }}} |