Sip subscribe presence

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

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