Xcap dialog rules

Version 1 (Adrian Georgescu, 11/17/2009 09:43 pm)

1 1 Adrian Georgescu
== xcap_dialog_rules ==
2 1 Adrian Georgescu
3 1 Adrian Georgescu
[[TOC(SipTesting*, sip_*, xcap*,depth=2)]]
4 1 Adrian Georgescu
5 1 Adrian Georgescu
=== Description ===
6 1 Adrian Georgescu
7 1 Adrian Georgescu
{{{
8 1 Adrian Georgescu
adigeo@ag-imac3:~$xcap_dialog_rules -h
9 1 Adrian Georgescu
Usage: xcap_dialog_rules [options]
10 1 Adrian Georgescu
11 1 Adrian Georgescu
This example script will use the specified SIP account to manage dialog
12 1 Adrian Georgescu
rules via XCAP. The program will quit when CTRL+D is pressed.
13 1 Adrian Georgescu
14 1 Adrian Georgescu
Options:
15 1 Adrian Georgescu
  -h, --help            show this help message and exit
16 1 Adrian Georgescu
  -a ACCOUNT_NAME, --account-name=ACCOUNT_NAME
17 1 Adrian Georgescu
                        The name of the account to use.
18 1 Adrian Georgescu
  -s, --show-xml        Show the dialog rules XML whenever it is changed and
19 1 Adrian Georgescu
                        at start-up.
20 1 Adrian Georgescu
}}}
21 1 Adrian Georgescu
22 1 Adrian Georgescu
=== Example ===
23 1 Adrian Georgescu
24 1 Adrian Georgescu
{{{
25 1 Adrian Georgescu
adigeo@ag-imac3:~$xcap_dialog_rules
26 1 Adrian Georgescu
Retrieving current dialog rules from https://xcap.sipthor.net/xcap-root/
27 1 Adrian Georgescu
Allowed watchers:
28 1 Adrian Georgescu
	2233350608@sip2sip.info
29 1 Adrian Georgescu
	31208005163@ag-projects.com
30 1 Adrian Georgescu
	31208005166@ag-projects.com
31 1 Adrian Georgescu
	31208005167@ag-projects.com
32 1 Adrian Georgescu
	adi@umts.ro
33 1 Adrian Georgescu
	alice@example.com
34 1 Adrian Georgescu
	317105169@eurovoice.ro
35 1 Adrian Georgescu
	bob@example.com
36 1 Adrian Georgescu
Blocked watchers:
37 1 Adrian Georgescu
	test1@merge.net.nl
38 1 Adrian Georgescu
Polite-blocked watchers:
39 1 Adrian Georgescu
Press (a) to allow, (d) to deny, (p) to politely block a new watcher or (r) to remove a watcher from the rules. 
40 1 Adrian Georgescu
(s) will show the presence rules xml.
41 1 Adrian Georgescu
a
42 1 Adrian Georgescu
watcher> abc@example.com
43 1 Adrian Georgescu
Watcher sip:abc@example.com is now authorized
44 1 Adrian Georgescu
}}}