1 | = Skype plugin for BitlBee |
---|
2 | Miklos Vajna <vmiklos-at-vmiklos-dot-hu> |
---|
3 | |
---|
4 | == Status |
---|
5 | |
---|
6 | [quote, 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 | |
---|
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 |
---|
17 | returned and saw that it was still open. So I wrote it. |
---|
18 | |
---|
19 | It's pretty stable (one day I wanted to restart it because of an upgrade |
---|
20 | and just noticed it was running for 2+ months without crashing), I use |
---|
21 | it for my daily work. Being a plug-in, no patching is required, you can |
---|
22 | just install it after installing BitlBee itself. |
---|
23 | |
---|
24 | NOTE: You will see that this implementation of the Skype plug-in still requires |
---|
25 | a Skype instance to be running. This is because I'm not motivated to reverse |
---|
26 | engineer Skype's |
---|
27 | http://en.wikipedia.org/wiki/Skype_Protocol#Obfuscation_Layer[obfuscation |
---|
28 | layer]. (Not mentioning that you should ask your lawyer about if it is legal or |
---|
29 | not..) |
---|
30 | |
---|
31 | == Requirements |
---|
32 | |
---|
33 | * Skype >= 1.4.0.99. The latest version I've tested is 4.1.0.20. |
---|
34 | * BitlBee >= 3.0. The latest version I've tested is @BITLBEE_VERSION@. Use |
---|
35 | old versions (see the NEWS file about which one) if you have older BitlBee |
---|
36 | installed. |
---|
37 | * Skype4Py >= 0.9.28.7. Previous versions won't work due to API changes. |
---|
38 | The latest version I've tested is 1.0.32.0. |
---|
39 | |
---|
40 | * Python >= 2.5. Skype4Py does not work with 2.4. |
---|
41 | |
---|
42 | * OS: `bitlbee-skype` has been tested under Linux and Mac OS X. The plugin part |
---|
43 | has been tested under Free/Open/NetBSD as well. The daemon part has been |
---|
44 | tested on Windows, too. |
---|
45 | |
---|
46 | == How to set it up |
---|
47 | |
---|
48 | Before you start. The setup is the following: BitlBee can't connect directly to |
---|
49 | Skype servers (the company's ones). It needs a running Skype client to do so. |
---|
50 | In fact BitlBee will connect to `skyped` (a tcp server, provided in this |
---|
51 | package) and `skyped` will connect to to your Skype client. |
---|
52 | |
---|
53 | The benefit of this architecture is that you can run Skype and `skyped` |
---|
54 | on a machine different to the one where you run BitlBee (it can be even |
---|
55 | a public server) and/or your IRC client. |
---|
56 | |
---|
57 | NOTE: The order is important. First `skyped` starts Skype. Then `skyped` |
---|
58 | connects to Skype, finally BitlBee can connect to `skyped`. |
---|
59 | |
---|
60 | === Installing |
---|
61 | |
---|
62 | Either use your package manager to install the Skype plugin, using something |
---|
63 | like: |
---|
64 | |
---|
65 | ---- |
---|
66 | # apt-get install skyped bitlbee-plugin-skype |
---|
67 | ---- |
---|
68 | |
---|
69 | Or install http://sourceforge.net/projects/skype4py/[Skype4Py], and build |
---|
70 | BitlBee with `--skype=1`. |
---|
71 | |
---|
72 | === Configuring |
---|
73 | |
---|
74 | See the manpage of `skyped`. |
---|
75 | |
---|
76 | == Setting up Skype in a VNC server (optional) |
---|
77 | |
---|
78 | Optionally, if you want to run Skype on a server, you might want to setup up |
---|
79 | a `VNC` server as well. I used `tightvnc` but probably other `VNC` servers will |
---|
80 | work, too. |
---|
81 | |
---|
82 | First run |
---|
83 | |
---|
84 | ---- |
---|
85 | $ vncpasswd ~/.vnc/passwd |
---|
86 | ---- |
---|
87 | |
---|
88 | and create a password. You will need it at least once. |
---|
89 | |
---|
90 | Now create `~/.vnc/xstartup` with the following contents: |
---|
91 | |
---|
92 | ---- |
---|
93 | #!/bin/sh |
---|
94 | |
---|
95 | blackbox |
---|
96 | ---- |
---|
97 | |
---|
98 | Adjust the permissions: |
---|
99 | |
---|
100 | ---- |
---|
101 | $ chmod +x ~/.vnc/xstartup |
---|
102 | ---- |
---|
103 | |
---|
104 | Then start the server: |
---|
105 | |
---|
106 | ---- |
---|
107 | $ vncserver |
---|
108 | ---- |
---|
109 | |
---|
110 | Then connect to it, start an `xterm`, set up Skype (username, password, |
---|
111 | enable X11 API and allow the `Skype4Py` client), quit from Skype, and |
---|
112 | start `skyped`. If you want to watch its traffic, enable debug messages |
---|
113 | and foreground mode: |
---|
114 | |
---|
115 | ---- |
---|
116 | $ skyped -n -d |
---|
117 | ---- |
---|
118 | |
---|
119 | == Features |
---|
120 | |
---|
121 | - Download nicks and away statuses from Skype |
---|
122 | |
---|
123 | - Noticing joins / parts while we're connected |
---|
124 | |
---|
125 | - Sending messages |
---|
126 | |
---|
127 | - Receiving messages |
---|
128 | |
---|
129 | - Receiving away status changes |
---|
130 | |
---|
131 | - `skyped` (the tcp daemon that is a gateway between Skype and tcp) |
---|
132 | |
---|
133 | - Error handling when `skyped` is not running and when it exits |
---|
134 | |
---|
135 | - Marking received messages as seen so that Skype won't say there are unread messages |
---|
136 | |
---|
137 | - Adding / removing contacts |
---|
138 | |
---|
139 | - Set away state when you do a `/away`. |
---|
140 | |
---|
141 | - When you `account off`, Skype will set status to `Offline` |
---|
142 | |
---|
143 | - When you `account on`, Skype will set status to `Online` |
---|
144 | |
---|
145 | - Detect when somebody wants to add you and ask for confirmation |
---|
146 | |
---|
147 | - Detect when somebody wants to transfer a file |
---|
148 | |
---|
149 | - Group chat support: |
---|
150 | |
---|
151 | * Detect if we're invited |
---|
152 | |
---|
153 | * Send / receive group chat messages |
---|
154 | |
---|
155 | * Invite others (using `/invite <nick>`) |
---|
156 | |
---|
157 | * Part from group chats |
---|
158 | |
---|
159 | * Starting a group chat (using `/j #nick`) |
---|
160 | |
---|
161 | - Topic changes in group chats: |
---|
162 | |
---|
163 | * Show the current topic (if any) on join |
---|
164 | |
---|
165 | * Notice when someone changes the topic |
---|
166 | |
---|
167 | * Support changing the topic using `/topic` |
---|
168 | |
---|
169 | - Viewing the profile using the `info` command. |
---|
170 | |
---|
171 | - Handling skype actions (when the `CHATMESSAGE` has `EMOTED` type) |
---|
172 | |
---|
173 | - Setting your display name using the `nick` command. |
---|
174 | |
---|
175 | - Running Skype on a machine different to BitlBee is possible, the |
---|
176 | communication is encrypted. |
---|
177 | |
---|
178 | - Managing outgoing calls (with call duration at the end): |
---|
179 | |
---|
180 | * `/ctcp nick call` |
---|
181 | * `/ctcp nick hangup` |
---|
182 | |
---|
183 | - Managing outgoing SkypeOut or conference calls: |
---|
184 | |
---|
185 | * `account skype set call +18005551234` |
---|
186 | * `account skype set call nick1 nick2` |
---|
187 | * `account skype set -del call` |
---|
188 | |
---|
189 | - Managing incoming calls via questions, just like when you add / remove |
---|
190 | contacts. |
---|
191 | |
---|
192 | - Querying the current SkypeOut balance: |
---|
193 | |
---|
194 | * `account skype set balance query` |
---|
195 | |
---|
196 | - For debug purposes, it's possible to send any command to `skyped`. To |
---|
197 | achieve this, you need to: |
---|
198 | |
---|
199 | * `account skype set skypeconsole true` |
---|
200 | |
---|
201 | * then writing `skypeconsole: <command>` will work in the control |
---|
202 | channel. |
---|
203 | |
---|
204 | * `account skype set skypeconsole_receive true` will make the |
---|
205 | `skypeconsole` account dump all the recieved raw traffic for you |
---|
206 | |
---|
207 | - If you want to automatically join bookmarked groupchats right after |
---|
208 | you logged in, do: |
---|
209 | |
---|
210 | * `account skype set auto_join true` |
---|
211 | |
---|
212 | - Edited messages are shown with the `EDIT:` prefix. If you don't like |
---|
213 | this, you can set your own prefix using: |
---|
214 | |
---|
215 | * `account skype set edit_prefix "updated message:"` |
---|
216 | |
---|
217 | - The `echo123` test account is hidden by default. If you want to see it: |
---|
218 | |
---|
219 | * `account skype set test_join true` |
---|
220 | |
---|
221 | - Mood texts are not shown by default. |
---|
222 | |
---|
223 | * If you want to see them: `account skype set show_moods true` |
---|
224 | * If you want to change your mood text: `account skype set mood_text 'foo bar'` |
---|
225 | |
---|
226 | - Group support: |
---|
227 | |
---|
228 | * To enable: `account skype set read_groups true` |
---|
229 | * Skype groups are told to BitlBee |
---|
230 | * The usual `/invite` in a group channel adds the buddy to the group in skype |
---|
231 | as well (and if necessary, it creates a new group in Skype) |
---|
232 | |
---|
233 | == What needs to be done (aka. TODO) |
---|
234 | |
---|
235 | - Notice if foo invites bar. Currently you can see only that bar joined. |
---|
236 | |
---|
237 | - Public chats. See |
---|
238 | link:https://developer.skype.com/jira/browse/SCL-381[this feature |
---|
239 | request], this is because it is still not possible (under Linux) to |
---|
240 | `join_chat` to a public chat.. |
---|
241 | |
---|
242 | - Add yasrd (Yet Another Skype-Related Daemon) to allow using a public |
---|
243 | server for users who are behind NAT. |
---|
244 | |
---|
245 | == I would like to have support for ... |
---|
246 | |
---|
247 | If something does not work and it's not in the TODO section, then please |
---|
248 | contact me! Please also try the bzr version before reporting a bug, your |
---|
249 | problem may be already fixed there. |
---|
250 | |
---|
251 | In fact, of course, I wrote this documentation after figured out how to do this |
---|
252 | setup, so maybe I left out some steps. If you needed 'any' additional tricks, |
---|
253 | then it would be nice to include them here. |
---|
254 | |
---|
255 | == Known bugs |
---|
256 | |
---|
257 | - File transfers are view-only from BitlBee. Quoting the |
---|
258 | https://developer.skype.com/Docs/ApiDoc/FILETRANSFER_object[relevant |
---|
259 | documentation]: 'File transfers cannot be initiated nor accepted via |
---|
260 | API commands.' So it's not something I can add support for, sadly. |
---|
261 | |
---|
262 | == Screenshots |
---|
263 | |
---|
264 | You can reach some screenshots link:shot[here]. |
---|
265 | |
---|
266 | == Additional resources |
---|
267 | |
---|
268 | The Skype API documentation is |
---|
269 | http://developer.skype.com/resources/public_api_ref.zip[here] if you're |
---|
270 | interested. |
---|
271 | |
---|
272 | == Testimonials |
---|
273 | |
---|
274 | ---- |
---|
275 | 00:56 < scathe> I like your skype plugin :) |
---|
276 | ---- |
---|
277 | |
---|
278 | ---- |
---|
279 | It's really working great so far. |
---|
280 | |
---|
281 | Good Job and thank you! |
---|
282 | Sebastian |
---|
283 | ---- |
---|
284 | |
---|
285 | ---- |
---|
286 | Big respect for your work, i really appreciate it. |
---|
287 | |
---|
288 | Martin |
---|
289 | ---- |
---|
290 | |
---|
291 | ---- |
---|
292 | Thanks for bitlbee-skype. As a blind Linux user, I cannot use the |
---|
293 | skype GUI client because qt apps ar not accessible yet with the |
---|
294 | available screen readers. bitlbee-skype allows me to make use of skype |
---|
295 | without having to interact much with the GUI client, which helps me a |
---|
296 | lot. |
---|
297 | |
---|
298 | Lukas |
---|
299 | ---- |
---|
300 | |
---|
301 | ---- |
---|
302 | 02:12 < newton> i must say, i love this little bee ;) |
---|
303 | 02:15 < newton> tried it out today with the skype plugin, good work! |
---|
304 | ---- |
---|
305 | |
---|
306 | ---- |
---|
307 | 18:10 < miCSu> it works fine |
---|
308 | ---- |
---|
309 | |
---|
310 | ---- |
---|
311 | 13:56 < seo> i just want to thank you :) |
---|
312 | 13:56 < seo> for bitlbee-skype |
---|
313 | 13:57 < seo> it's working very well, so, again, thank you for your work, and for sharing it |
---|
314 | ---- |
---|
315 | |
---|
316 | ---- |
---|
317 | 22:16 < ecraven> vmiklos: thanks a lot for the skype plugin for bitlbee! |
---|
318 | ---- |
---|
319 | |
---|
320 | ---- |
---|
321 | I'm blind and so I have to use a screen reader, in my case Gnome-Orca. |
---|
322 | But since Skype is written in QT, while Orca uses gtk+, I have no direct |
---|
323 | access to the Skype interface. That's why I desided to use Skyped and |
---|
324 | Erc. |
---|
325 | The text console is fully accessible. |
---|
326 | Thank you very much. |
---|
327 | |
---|
328 | Hermann |
---|
329 | ---- |
---|
330 | |
---|
331 | ---- |
---|
332 | i love that bitlbeeplugin. big thx for that. |
---|
333 | |
---|
334 | michael |
---|
335 | ---- |
---|
336 | |
---|
337 | ---- |
---|
338 | 23:47 < krisfremen> thanks for creating this fabulous piece of software vmiklos :) |
---|
339 | ---- |
---|
340 | |
---|
341 | == Thanks |
---|
342 | |
---|
343 | to the following people: |
---|
344 | |
---|
345 | * people in link:AUTHORS[AUTHORS] for their contributions |
---|
346 | |
---|
347 | * Arkadiusz Wahlig, author of skype4py, for making suggestions to skyped |
---|
348 | |
---|
349 | * Gabor Adam Toth (tg), for noticing extra code is needed to handle multiline |
---|
350 | messages |
---|
351 | |
---|
352 | * Cristobal Palmer (tarheelcoxn), for helping to testing the plugin in a |
---|
353 | timezone different to mine |
---|
354 | |
---|
355 | * people on `#bitlbee` for feedback |
---|
356 | |
---|
357 | Back to my link:/projects[projects page]. |
---|
358 | |
---|
359 | // vim: ft=asciidoc |
---|