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