Sip subscribe presence » History » Version 20
Adrian Georgescu, 01/24/2010 03:44 PM
| 1 | 1 | Adrian Georgescu | |
|---|---|---|---|
| 2 | 20 | Adrian Georgescu | h2. sip-subscribe-presence |
| 3 | 19 | Adrian Georgescu | |
| 4 | 1 | Adrian Georgescu | |
| 5 | |||
| 6 | |||
| 7 | 20 | Adrian Georgescu | > This script is available in _sipclients_ package that must be installed separately from SIP SIMPLe client SDK package. |
| 8 | |||
| 9 | |||
| 10 | h3. Description |
||
| 11 | |||
| 12 | |||
| 13 | !{ nolink}http://www.openxcap.org/chrome/site/SIMPLE-Server.png! |
||
| 14 | |||
| 15 | <pre> |
||
| 16 | 18 | Adrian Georgescu | adigeo@ag-imac3:~$sip-subscribe-presence -h |
| 17 | Usage: sip-subscribe-presence [options] [target-user@target-domain.com] |
||
| 18 | 1 | Adrian Georgescu | |
| 19 | 5 | Adrian Georgescu | This script will SUBSCRIBE to the presence event published by the specified |
| 20 | SIP target. If a SIP target is not specified, it will subscribe to its own |
||
| 21 | address. It will then interprete PIDF bodies contained in NOTIFYs and display |
||
| 22 | 1 | Adrian Georgescu | their meaning. The program will un-SUBSCRIBE and quit when CTRL+D is pressed. |
| 23 | |||
| 24 | 16 | Adrian Georgescu | Options: |
| 25 | 1 | Adrian Georgescu | -h, --help show this help message and exit |
| 26 | -a ACCOUNT_NAME, --account-name=ACCOUNT_NAME |
||
| 27 | The name of the account to use. |
||
| 28 | -s, --trace-sip Dump the raw contents of incoming and outgoing SIP |
||
| 29 | messages (disabled by default). |
||
| 30 | -j, --trace-pjsip Print PJSIP logging output (disabled by default). |
||
| 31 | |||
| 32 | 20 | Adrian Georgescu | </pre> |
| 33 | 16 | Adrian Georgescu | |
| 34 | 1 | Adrian Georgescu | |
| 35 | 20 | Adrian Georgescu | h3. Example |
| 36 | |||
| 37 | |||
| 38 | <pre> |
||
| 39 | 18 | Adrian Georgescu | adigeo@ag-imac3:~$sip-subscribe-presence -a umts ag@ag-projects.com |
| 40 | 2 | Adrian Georgescu | Accounts available: 'alice', 'ew', 'mrg', 'pbx', 'tf', 'umts', 'unet', default |
| 41 | Using account 'umts': adi@umts.ro |
||
| 42 | Resolved DNS SRV record "_sip._udp.umts.ro" --> proxy.sipthor.net:5060 |
||
| 43 | Resolved DNS A record "proxy.sipthor.net" --> 81.23.228.150, 81.23.228.129, 85.17.186.7 |
||
| 44 | Subscribing to "<sip:ag@ag-projects.com>" for the presence event, at 85.17.186.7:5060 |
||
| 45 | Received NOTIFY: |
||
| 46 | ---------------- |
||
| 47 | Presence for 31208005169@ag-projects.com: |
||
| 48 | Person id yipgulqr |
||
| 49 | Timestamp: 2008-10-26 10:37:32 |
||
| 50 | Activities |
||
| 51 | Note(en): I am working |
||
| 52 | Mood: sad, contended, mean |
||
| 53 | Time offset from UTC: 60 minutes |
||
| 54 | --- |
||
| 55 | Service id apgjjwtz |
||
| 56 | Timestamp: 2008-10-26 10:37:42 |
||
| 57 | Status: open |
||
| 58 | ---------------- |
||
| 59 | Received NOTIFY: |
||
| 60 | ---------------- |
||
| 61 | Presence for 31208005169@ag-projects.com: |
||
| 62 | Person id ksgxtgwo |
||
| 63 | Timestamp: 2008-10-26 10:41:04 |
||
| 64 | Mood: impressed, flirtatious, thirsty |
||
| 65 | Time offset from UTC: 60 minutes |
||
| 66 | Person id yipgulqr |
||
| 67 | Timestamp: 2008-10-26 10:37:32 |
||
| 68 | Activities |
||
| 69 | Note(en): I am working |
||
| 70 | Mood: sad, contended, mean |
||
| 71 | Time offset from UTC: 60 minutes |
||
| 72 | --- |
||
| 73 | Service id apgjjwtz |
||
| 74 | Timestamp: 2008-10-26 10:37:42 |
||
| 75 | Status: open |
||
| 76 | Service id hxpzsnfp |
||
| 77 | Timestamp: 2008-10-26 10:41:00 |
||
| 78 | Status: open |
||
| 79 | ---------------- |
||
| 80 | Received NOTIFY: |
||
| 81 | ---------------- |
||
| 82 | Presence for 31208005169@ag-projects.com: |
||
| 83 | Person id ksgxtgwo |
||
| 84 | Timestamp: 2008-10-26 10:41:04 |
||
| 85 | Mood: impressed, flirtatious, thirsty |
||
| 86 | Time offset from UTC: 60 minutes |
||
| 87 | Person id yipgulqr |
||
| 88 | Timestamp: 2008-10-26 10:37:32 |
||
| 89 | Activities |
||
| 90 | Note(en): I am working |
||
| 91 | Mood: sad, contended, mean |
||
| 92 | 1 | Adrian Georgescu | Time offset from UTC: 60 minutes |
| 93 | 2 | Adrian Georgescu | --- |
| 94 | Service id apgjjwtz |
||
| 95 | Timestamp: 2008-10-26 10:37:42 |
||
| 96 | Status: open |
||
| 97 | Service id hxpzsnfp |
||
| 98 | Timestamp: 2008-10-26 10:41:07 |
||
| 99 | Status: closed |
||
| 100 | ---------------- |
||
| 101 | |||
| 102 | 20 | Adrian Georgescu | </pre> |