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