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