Sip subscribe rls

Version 1 (Adrian Georgescu, 10/26/2008 10:53 am)

1 1 Adrian Georgescu
== sip_subscribe_rls ==
2 1 Adrian Georgescu
3 1 Adrian Georgescu
To use this script you must to have a valid [wiki:configuration_file configuration file].
4 1 Adrian Georgescu
5 1 Adrian Georgescu
=== Description ===
6 1 Adrian Georgescu
7 1 Adrian Georgescu
8 1 Adrian Georgescu
{{{
9 1 Adrian Georgescu
adigeo@ag-imac3:~/work/pypjua$sip_subscribe_rls -h
10 1 Adrian Georgescu
Usage: sip_subscribe_rls [options] [presentity@presentity-domain.com]
11 1 Adrian Georgescu
12 1 Adrian Georgescu
This script will SUBSCRIBE to the presence event published by the specified
13 1 Adrian Georgescu
SIP address assuming it is a resource list handled by a RLS server. The RLS
14 1 Adrian Georgescu
server will the subscribe inbehalf of the account, collect NOTIFYs with the
15 1 Adrian Georgescu
presence infomration of the recipients and provide periodically aggregated
16 1 Adrian Georgescu
NOTIFY back to the subscriber. If a SIP address is not specified, it will
17 1 Adrian Georgescu
subscribe to the account's own presence. It will then interprete PIDF bodies
18 1 Adrian Georgescu
contained in NOTIFYs and display their meaning. The program will un-SUBSCRIBE
19 1 Adrian Georgescu
and quit when CTRL+D is pressed.
20 1 Adrian Georgescu
21 1 Adrian Georgescu
Options:
22 1 Adrian Georgescu
  -h, --help            show this help message and exit
23 1 Adrian Georgescu
  -a NAME, --account-name=NAME
24 1 Adrian Georgescu
                        The account name from which to read account settings.
25 1 Adrian Georgescu
                        Corresponds to section Account_NAME in the
26 1 Adrian Georgescu
                        configuration file. If not supplied, the section
27 1 Adrian Georgescu
                        Account will be read.
28 1 Adrian Georgescu
  --sip-address=SIP_ADDRESS
29 1 Adrian Georgescu
                        SIP address of the user in the form user@domain
30 1 Adrian Georgescu
  -p PASSWORD, --password=PASSWORD
31 1 Adrian Georgescu
                        Password to use to authenticate the local account.
32 1 Adrian Georgescu
                        This overrides the setting from the config file.
33 1 Adrian Georgescu
  -n DISPLAY_NAME, --display-name=DISPLAY_NAME
34 1 Adrian Georgescu
                        Display name to use for the local account. This
35 1 Adrian Georgescu
                        overrides the setting from the config file.
36 1 Adrian Georgescu
  -e EXPIRES, --expires=EXPIRES
37 1 Adrian Georgescu
                        "Expires" value to set in SUBSCRIBE. Default is 300
38 1 Adrian Georgescu
                        seconds.
39 1 Adrian Georgescu
  -o IP[:PORT], --outbound-proxy=IP[:PORT]
40 1 Adrian Georgescu
                        Outbound SIP proxy to use. By default a lookup of the
41 1 Adrian Georgescu
                        domain is performed based on SRV and A records. This
42 1 Adrian Georgescu
                        overrides the setting from the config file.
43 1 Adrian Georgescu
  -c CONTENT_TYPE, --content-type=CONTENT_TYPE
44 1 Adrian Georgescu
                        "Content-Type" the UA expects to receving in a NOTIFY
45 1 Adrian Georgescu
                        for this subscription. For the known events this does
46 1 Adrian Georgescu
                        not need to be specified, but may be overridden".
47 1 Adrian Georgescu
  -s, --trace-sip       Dump the raw contents of incoming and outgoing SIP
48 1 Adrian Georgescu
                        messages (disabled by default).
49 1 Adrian Georgescu
  -l, --log-pjsip       Print PJSIP logging output (disabled by default).
50 1 Adrian Georgescu
51 1 Adrian Georgescu
}}}