[0c60f96] | 1 | = Skype plugin for BitlBee |
---|
[668a122] | 2 | Miklos Vajna <vmiklos@vmiklos.hu> |
---|
[afe221f] | 3 | |
---|
[56e4ac4] | 4 | == Status |
---|
| 5 | |
---|
[4eaadf6] | 6 | [Wilmer van der Gaast (author of BitlBee)] |
---|
| 7 | ____ |
---|
| 8 | Okay, this exists now, with lots of thanks to vmiklos for his *excellent* |
---|
| 9 | work!! |
---|
| 10 | |
---|
| 11 | It's not in the main BitlBee and it'll never be for various reasons, but |
---|
| 12 | because it's a plugin that shouldn't be a problem. |
---|
| 13 | ____ |
---|
| 14 | |
---|
[56e4ac4] | 15 | One day I browsed the BitlBee bugtracker and found |
---|
| 16 | http://bugs.bitlbee.org/bitlbee/ticket/82[this] ticket. Then after a while I |
---|
[1138b25] | 17 | returned and saw that it was still open. So I wrote it. |
---|
[56e4ac4] | 18 | |
---|
[1138b25] | 19 | It's pretty stable, I use it for my daily work. |
---|
[75742cc] | 20 | |
---|
[4c3a4c8] | 21 | NOTE: You will see that this implementation of the Skype plug-in still requires |
---|
[54c269d] | 22 | a Skype instance to be running. This is because I'm not motivated to reverse |
---|
| 23 | engineer Skype's |
---|
| 24 | http://en.wikipedia.org/wiki/Skype_Protocol#Obfuscation_Layer[obfuscation |
---|
| 25 | layer]. (Not mentioning that you should ask your lawyer about if it is legal or |
---|
| 26 | not..) |
---|
| 27 | |
---|
[22d97b4] | 28 | == Requirements |
---|
| 29 | |
---|
[6adca511] | 30 | * Skype >= 1.4.0.99. (1.4.0.74 did not work for me, 1.4.0.118 seems to be OK.) |
---|
[d044a5a] | 31 | * bitlbee 1.1.1dev. (This is the latest version I've tested, probably |
---|
[9fcaedc0] | 32 | newer versions probably will work, too.) |
---|
[7e66424] | 33 | * Skype4Py >= 0.9.28.1. Previous versions uses `DBus` by default. The latest version I've tested is 0.9.28.3. |
---|
[22d97b4] | 34 | * Python 2.5. Skype4Py does not work with 2.4. |
---|
| 35 | * pygobject |
---|
| 36 | |
---|
[760ed1f] | 37 | `bitlbee-skype` has been tested under Linux and Windows. Skype is available |
---|
| 38 | under OSX, too, so it probably works, but this has not been tested. |
---|
| 39 | |
---|
[9e03e55] | 40 | == How to set it up |
---|
[afe221f] | 41 | |
---|
[751b149] | 42 | Before you start. The setup is the following: BitlBee can't connect directly to |
---|
| 43 | Skype servers (the company's ones). It needs a running Skype client to do so. |
---|
| 44 | In fact BitlBee will connect to `skyped` (a tcp server, provided in this |
---|
[4c3a4c8] | 45 | package) and `skyped` will connect to to your Skype client. |
---|
[751b149] | 46 | |
---|
[7e4f0ca1] | 47 | NOTE: The order is important. First you have to start Skype. Then `skyped` can |
---|
[64f8b8ea] | 48 | connect to it, finally BitlBee can connect to `skyped`. (In fact `skyped` |
---|
| 49 | automatically reconnect if you restart Skype.) |
---|
[7e4f0ca1] | 50 | |
---|
[11eed8f] | 51 | - If you happen to be a happy Frugalware user, you can install the `bitlbee` |
---|
| 52 | and `bitlbee-skype` packages from |
---|
| 53 | http://ftp.frugalware.org/pub/other/people/vmiklos/bmf/[my repo]. |
---|
| 54 | |
---|
[d044a5a] | 55 | - You need the BitlBee testing/development version: |
---|
[afe221f] | 56 | |
---|
[0c60f96] | 57 | ---- |
---|
[d044a5a] | 58 | wget http://get.bitlbee.org/src/bitlbee-1.1.1dev.tar.gz |
---|
| 59 | tar xf bitlbee-1.1.1dev.tar.gz |
---|
| 60 | cd bitlbee-1.1.1dev |
---|
[0c60f96] | 61 | ---- |
---|
[afe221f] | 62 | |
---|
[d044a5a] | 63 | NOTE: You no longer need additional patches, as of version 1.1.1dev. |
---|
[b8b0bfd] | 64 | |
---|
[afe221f] | 65 | - Now compile and install it: |
---|
| 66 | |
---|
[0c60f96] | 67 | ---- |
---|
[8e3058b] | 68 | ./configure |
---|
[afe221f] | 69 | make |
---|
| 70 | make install install-dev |
---|
[0c60f96] | 71 | ---- |
---|
[afe221f] | 72 | |
---|
| 73 | - Get the plugin code: |
---|
| 74 | |
---|
[0c60f96] | 75 | ---- |
---|
[23ba69e] | 76 | git clone git://vmiklos.hu/~vmiklos/bitlbee-skype |
---|
[0c60f96] | 77 | ---- |
---|
[afe221f] | 78 | |
---|
[b8351a2] | 79 | (Or you can use the tarballs below, see the Changelog about what |
---|
| 80 | features/bugfixes will you miss in this case). |
---|
| 81 | |
---|
[afe221f] | 82 | - Compile and install it: |
---|
| 83 | |
---|
[0c60f96] | 84 | ---- |
---|
[8e3058b] | 85 | make prepare |
---|
| 86 | ./configure |
---|
[afe221f] | 87 | make |
---|
[8e3058b] | 88 | make install |
---|
[0c60f96] | 89 | ---- |
---|
[afe221f] | 90 | |
---|
[c15f71a] | 91 | - Install http://skype4py.sourceforge.net/[Skype4Py]. |
---|
| 92 | |
---|
| 93 | (You may remember that previous versions of `skyped` did not require this |
---|
| 94 | package. This because it now uses the X11 interface of Skype (because the |
---|
[4c3a4c8] | 95 | previously used `DBus` interface had |
---|
[c15f71a] | 96 | http://forum.skype.com/index.php?s=&showtopic=94545&view=findpost&p=431710[known |
---|
| 97 | problems]), but I wanted to prevent a large code duplication from that project. |
---|
| 98 | In addition it then no longer requires the `dbus-python` package, just |
---|
| 99 | `pygobject`.) |
---|
| 100 | |
---|
[2fcad6e] | 101 | - Start Skype and `skyped` (the tcp server): |
---|
[afe221f] | 102 | |
---|
[0c60f96] | 103 | ---- |
---|
[2fcad6e] | 104 | skype |
---|
| 105 | skyped |
---|
[0c60f96] | 106 | ---- |
---|
[ba20c39] | 107 | |
---|
[4c3a4c8] | 108 | NOTE: It's important to start `skyped` on the same machine and using the same |
---|
[7e66424] | 109 | user! |
---|
[afe221f] | 110 | |
---|
[4c3a4c8] | 111 | - Start your `IRC` client, connect to BitlBee and add your account: |
---|
[7338d59] | 112 | |
---|
| 113 | ---- |
---|
| 114 | account add skype <user> <pass> |
---|
| 115 | account set 0/server localhost |
---|
| 116 | ---- |
---|
| 117 | |
---|
[4c3a4c8] | 118 | IMPORTANT: <user> should be your Skype account name. This way you won't see |
---|
[7338d59] | 119 | yourself joining to `&bitlbee`. |
---|
| 120 | |
---|
| 121 | NOTE: the <pass> option is not used currently. |
---|
| 122 | |
---|
[23b84e1] | 123 | == Setting up Skype in a VNC server (optional) |
---|
| 124 | |
---|
| 125 | Optionally, if you want to run Skype on a server, you might want to setup up |
---|
[4c3a4c8] | 126 | a `VNC` server as well. I used `tightvnc` but probably other `VNC` servers will |
---|
[23b84e1] | 127 | work, too. |
---|
| 128 | |
---|
| 129 | First run |
---|
| 130 | |
---|
| 131 | ---- |
---|
| 132 | vncpasswd ~/.vnc/passwd |
---|
| 133 | ---- |
---|
| 134 | |
---|
| 135 | and create a password. You will need it at least once. |
---|
| 136 | |
---|
| 137 | Now create `~/.vnc/xstartup` with the following contents: |
---|
| 138 | |
---|
| 139 | ---- |
---|
| 140 | #!/bin/sh |
---|
| 141 | |
---|
[19b805c] | 142 | sleep 1 |
---|
| 143 | skype & |
---|
| 144 | sleep 5 |
---|
| 145 | skyped |
---|
[23b84e1] | 146 | ---- |
---|
| 147 | |
---|
[57087df] | 148 | Adjust the permissions: |
---|
| 149 | |
---|
| 150 | ---- |
---|
| 151 | chmod +x ~/.vnc/xstartup |
---|
| 152 | ---- |
---|
| 153 | |
---|
[23b84e1] | 154 | Then start the server: |
---|
| 155 | |
---|
| 156 | ---- |
---|
| 157 | vncserver |
---|
| 158 | ---- |
---|
| 159 | |
---|
[4c3a4c8] | 160 | Then connect to it, and set up Skype (username, password, enable auto-login, and |
---|
[23b84e1] | 161 | allow the `SkypeApiPythonShell` client when Skype asks about it). |
---|
| 162 | |
---|
[dffa24f] | 163 | Please be aware about that Skype has serious memory leak issues. After running |
---|
| 164 | with for a few weeks it may eat >300 MB of memory. Just don't forget to restart |
---|
| 165 | your VNC server regularly. (How ugly.) |
---|
| 166 | |
---|
[9e03e55] | 167 | == What works |
---|
[b6d26ac] | 168 | |
---|
[adce2de] | 169 | - Download nicks and away statuses from Skype |
---|
[b6d26ac] | 170 | |
---|
[39a0d64] | 171 | - Noticing joins / parts while we're connected |
---|
| 172 | |
---|
[93ece66] | 173 | - Sending messages |
---|
| 174 | |
---|
[8dd21bb] | 175 | - Receiving messages |
---|
| 176 | |
---|
[72f697b] | 177 | - Receiving away status changes |
---|
| 178 | |
---|
[62bb4e4] | 179 | - `skyped` (the tcp daemon that is a gateway between Skype and tcp) |
---|
[ed2e37f] | 180 | |
---|
[62bb4e4] | 181 | - Error handling when `skyped` is not running and when it exits |
---|
[afe221f] | 182 | |
---|
[62bb4e4] | 183 | - Marking received messages as seen so that Skype won't say there are unread messages |
---|
[440665b] | 184 | |
---|
[6627d92] | 185 | - Adding / removing contacts |
---|
| 186 | |
---|
[23411c6] | 187 | - Set away state when you do a `/away`. |
---|
| 188 | |
---|
[d3cbd17] | 189 | - When you `account off`, Skype will set status to `Offline` |
---|
[348a3a2] | 190 | |
---|
[d3cbd17] | 191 | - When you `account on`, Skype will set status to `Online` |
---|
[348a3a2] | 192 | |
---|
[d3cbd17] | 193 | - Detect when somebody wants to add you and ask for confirmation |
---|
[8dd21bb] | 194 | |
---|
[df9255d] | 195 | - Detect when somebody wants to transfer a file |
---|
| 196 | |
---|
[d6a371e] | 197 | - Group chat support: |
---|
| 198 | |
---|
| 199 | * Detect if we're invited |
---|
| 200 | |
---|
| 201 | * Send / receive group chat messages |
---|
[93ece66] | 202 | |
---|
[ff58445] | 203 | * Invite others (using `/invite <nick>`) |
---|
[c5dd164] | 204 | |
---|
[d6a371e] | 205 | * Part from group chats |
---|
[c5dd164] | 206 | |
---|
[ff58445] | 207 | * Starting a group chat (using `/j #nick`) |
---|
| 208 | |
---|
[e103e73] | 209 | - Topic changes in group chats: |
---|
| 210 | |
---|
| 211 | * Show the current topic (if any) on join |
---|
| 212 | |
---|
| 213 | * Notice when someone changes the topic |
---|
| 214 | |
---|
| 215 | * Support changing the topic using `/topic` |
---|
| 216 | |
---|
[d6a371e] | 217 | == What needs to be done (aka. TODO) |
---|
[c5dd164] | 218 | |
---|
[846ceffb] | 219 | - Add a question callback for calls. |
---|
| 220 | |
---|
[d6a371e] | 221 | - Notice if foo invites bar. Currently you can see only that bar joined. |
---|
| 222 | |
---|
[4285920] | 223 | - Public chats. See link:http://forum.skype.com/index.php?showtopic=98872[this |
---|
| 224 | forum thread], it is still unclear how could it be done for you to be able to |
---|
| 225 | `/join` to a public chat.. |
---|
[d6a371e] | 226 | |
---|
[0c60f96] | 227 | == I would like to have support for ... |
---|
| 228 | |
---|
[23b84e1] | 229 | If something does not work and it's not in the TODO section, then please |
---|
[80d9004] | 230 | contact me! Please also try the git version before reporting a bug, your |
---|
| 231 | problem may be already fixed there. |
---|
[23b84e1] | 232 | |
---|
| 233 | In fact, of course, I wrote this documentation after figured out how to do this |
---|
| 234 | setup, so maybe I left out some steps. If you needed 'any' additional tricks, |
---|
| 235 | then it would be nice to include them here. |
---|
[afe221f] | 236 | |
---|
[f78f949] | 237 | == Known bugs |
---|
| 238 | |
---|
[5652d43] | 239 | - None at this time. |
---|
[f78f949] | 240 | |
---|
[0c60f96] | 241 | == Screenshots |
---|
| 242 | |
---|
[668a122] | 243 | You can reach some screenshots link:shot[here]. |
---|
[ddd3502] | 244 | |
---|
[25d87e4] | 245 | == Additional resources |
---|
[a60c3c2] | 246 | |
---|
[25d87e4] | 247 | You can reach the Changelog link:Changelog[here], and a gitweb interface |
---|
[3d73b02] | 248 | http://repo.or.cz/w/bitlbee-skype.git[here]. |
---|
[a60c3c2] | 249 | |
---|
[c09f90f] | 250 | The Skype API documentation is |
---|
| 251 | https://developer.skype.com/Docs/ApiDoc[here] if you're interested. |
---|
| 252 | |
---|
[65e4020] | 253 | == Thanks |
---|
| 254 | |
---|
| 255 | for the following people: |
---|
| 256 | |
---|
| 257 | * Wilmer van der Gaast, for answering questions about the bitlbee plugin interface |
---|
| 258 | |
---|
[56a3616] | 259 | * Arkadiusz Wahlig, author of skype4py, for making suggestions to skyped |
---|
[65e4020] | 260 | |
---|
| 261 | * Gabor Adam TOTH, for usable bugreports |
---|
| 262 | |
---|
[eb9cbb8] | 263 | Back to my link:/projects[projects page]. |
---|
| 264 | |
---|
[0c60f96] | 265 | // vim: ft=asciidoc |
---|