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