Project

General

Profile

Sip subscribe rls » History » Version 6

Adrian Georgescu, 10/26/2008 06:37 PM

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