Project

General

Profile

Xcap pres rules » History » Revision 11

Revision 10 (Adrian Georgescu, 04/13/2009 10:54 AM) → Revision 11/12 (Adrian Georgescu, 01/24/2010 03:41 PM)

== xcap-pres-rules xcap_pres_rules == 

 [[TOC(SipTesting*, sip_*, xcap*,depth=2)]] 

 > This script is available in ''sipclients'' package that must be installed separately from SIP SIMPLe client SDK package. 

 === Description === 

 {{{ 
 adigeo@ag-imac3:~$xcap-pres_rules adigeo@ag-imac3:~$xcap_pres_rules -h 
 Usage: xcap-pres-rules xcap_pres_rules [options] 

 This example script will use the specified SIP account to manage presence 
 rules via XCAP. The program will quit when CTRL+D is pressed. 

 Options: 
   -h, --help              show this help message and exit 
   -a ACCOUNT_NAME, --account-name=ACCOUNT_NAME 
                         The name of the account to use. 
   -s, --show-xml          Show the presence rules XML whenever it is changed and 
                         at start-up. 
 }}} 

 === Example === 

 {{{ 
 adigeo@ag-imac3:~$xcap-pres-rules adigeo@ag-imac3:~$xcap_pres_rules 
 Retrieving current presence rules from https://xcap.sipthor.net/xcap-root/ 
 Allowed watchers: 
	 2233350608@sip2sip.info 
	 31208005163@ag-projects.com 
	 31208005166@ag-projects.com 
	 31208005167@ag-projects.com 
	 adi@umts.ro 
	 alice@example.com 
	 317105169@eurovoice.ro 
	 bob@example.com 
 Blocked watchers: 
	 test1@merge.net.nl 
 Polite-blocked watchers: 
 Press (a) to allow, (d) to deny, (p) to politely block a new watcher or (r) to remove a watcher from the rules.  
 (s) will show the presence rules xml. 
 a 
 watcher> abc@example.com 
 Watcher sip:abc@example.com is now authorized 
 }}}