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