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