Hi, Senko! Budi pozdravljen :)<br><br><div class="gmail_quote">2009/1/14 Senko Rasic <span dir="ltr"><<a href="mailto:senko@senko.net" target="_blank">senko@senko.net</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>
Ivan Vučica wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This is what I need to set up in Ekiga for the thing to work:<br>
</blockquote>
<br></div>
I've tried connecting to VIP using Ekiga 2.0.12 using<br>
these directions and failed, and found a page by one<br>
VIPNet user saying that Ekiga 3.x is required (which I couldn't<br>
install for some reason and check this).</blockquote><div><br>I forgot to mention that I used latest ekiga-snapshot Debian package from <a href="http://snapshots.ekiga.net/" target="_blank">http://snapshots.ekiga.net/</a> ; I documented my attempt here [1] but I didn't post it here since I posted in Croatian and didn't think anyone here would speak it.<br>
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It might be instructive to capture network traffic (e.g.<br>
using Wireshark) with Ekiga2 and Ekiga3 usage and see what<br>
gets transmitted differently.</blockquote><div><br>I did something similar already when I was looking why Ekiga2 couldn't connect. Actually, I sniffed traffic from Vipnet's client (a rebranded Counterpath Bria) and compared it to Ekiga2 and couldn't find anything significant except that (apparently!) Ekiga2 gave up sooner than Bria. I could be wrong.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Currently I am unable to set up outbound proxy in Empathy. Same thing for either User+Registrar or AuthenticationUser+Password. Is this a bug in Telepathy, or should I bug the Empathy guys? :)<br>
</blockquote>
<br></div>
The UI in Empathy doesn't let you specify all optional params for SIP<br>
(Empathy devs can comment whether that's intentional feature or a bug),<br>
but you can set/change a lot more options by using commandline<br>
tool mc-account.</blockquote><div><br>Thank you for this one! <br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
The SIP protocol is handled by telepathy-sofiasip connection manager.<br>
To see which params can be set, look at its .manager file<br>
(e.g. /usr/share/telepathy/managers/sofiasip.manager on ubuntu).<br>
(the 's/b/q/i' characters on the right side of '=' signify param<br>
type: string, boolean, unsigned int, or signed int, respectively)).<br>
<br>
After you set up the account in Empathy, look it up using:<br>
mc-account list<br>
mc-account show <account> (e.g. sofiasip0)<br>
<br>
You can change param with:<br>
mc-account set <account> <param-type>:<param-name>=<value><br>
<br>
e.g. for registrar:<br>
mc-account set sofiasip string:registrar=<a href="http://ims.vip.hr" target="_blank">ims.vip.hr</a><br>
<br>
Using these I tried blindly setting up a few params (registrar,<br>
proxy, extra auth user/pass), but still got Forbidden from VIP,<br>
so it's possible that I couldn't get the combination right,<br>
or that indeed telepathy-sofiasip itself doesn't support some<br>
feature required to work with VIP. Network traffic dump could<br>
help us find out which.</blockquote><div><br>Indeed it might. I'd try turning off STUN server , I think that helped when I was getting the 403s. Go figure: Vipnet's client uses IP address from network interface, and it doesn't use STUN server to determine external IP address. I figured this out from a netsniff when I was setting up Ekiga. Vipnet's client was sending 192.168.0.x and Ekiga was sending 217.14.x.x. <br>
<br>I'll try playing with mc-account as soon as I'm at my box again.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Btw to enable Telepathy debugging for SIP:<br>
0. be sure you're offline<br>
1. set env params (example using bash):<br>
export SOFIASIP_DEBUG=all<br>
export SOFIASIP_PERSIST=1<br>
export TPORT_LOG=2 (more verbose debugging of SIP stack)<br>
2. tell Empathy to go online</blockquote><div><br>Aye :)<br>Will do if blind playing around with mc-account doesn't help.<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
From what I understand, using Telepathy I should be able to "plug in" to existing connections created using Empathy. I have absolutely zero experience with DBus and Telepathy, but I would love to implement it into a MMORPG client I'm working on ( <a href="http://yetanother.tibiaclient.com/" target="_blank">http://yetanother.tibiaclient.com/</a> ).<br>
Are there any helpful, simple but complete C examples? Python example on the wiki doesn't exactly show how to receive or send messages. A simple printf()+scanf() based example would be of great help. Googling didn't help exactly.<br>
Any such example out there?<br>
</blockquote>
<br></div>
Your best bet is using telepathy-glib, which is our C library wrapping<br>
the Telepathy interfaces in a nice GObject-y way (it's used for both<br>
services and clients). The API reference is fairly documented though<br>
intro/tutorial is lacking, but you can look at the bundled examples and<br>
test suite to get a feel of it.<br>
<br>
One part that telepathy-glib doesn't cover at the moment is actually<br>
figuring out which accounts are online (and getting the connections),<br>
because current mission-control implements an outdated API version,<br>
which isn't supported by telepathy-glib. The new mission-control v5<br>
is under development, but it's not ready for use yet.<br>
<br>
But for this you can use libempathy - a core part of Empathy client<br>
which presents somewhat higher-level API than telepathy-glib, and<br>
more importantly (in this case), works with current mission-control.<br>
So you can use libempathy API (and even libempathy-gtk widgets,<br>
if you're writing GTK+ app) to enumerate/select accounts and get<br>
the connections, and pass that on to telepathy-glib.<br>
<br>
There's a few examples in:<br>
<a href="http://people.collabora.co.uk/%7Erobot101/telepathy-guadec-2008-senko.pdf" target="_blank">http://people.collabora.co.uk/~robot101/telepathy-guadec-2008-senko.pdf</a><br>
(also check out other presentations from<br>
<a href="http://telepathy.freedesktop.org/wiki/Presentations" target="_blank">http://telepathy.freedesktop.org/wiki/Presentations</a> page) that might<br>
help you get started.</blockquote></div><br>Thanks for the intro -- I'll check them out. If I go the telepathy-glib way, can I query dbus directly for the account list? Anything in my way?<br><br>I'll also look at libempathy, thanks!<br>
<br clear="all">[1] <a href="http://khaoticone.blogspot.com/2009/01/vip-over-ip-voip-imsviphr-ekiga-linux.html" target="_blank">http://khaoticone.blogspot.com/2009/01/vip-over-ip-voip-imsviphr-ekiga-linux.html</a><br>
-- <br>Regards,<br><br>Ivan Vučica<br><br>OBJECT Networks :: <a href="http://www.objectnetworks.net" target="_blank">www.objectnetworks.net</a><br>Cateia Games :: <a href="http://www.cateia.com" target="_blank">www.cateia.com</a><br>
Zagrebački računalni savez :: <a href="http://www.zrs.hr" target="_blank">www.zrs.hr</a><br>