My network blocks SIP on 3G, so when I start using its 3G service after leaving a wireless network my N900 goes absolutely crazy about not being to connect. Although this is a specific annoyance I have, it's a general problem with loads of similar cases, such as "I only want my work jabber/skype/MSN/etc. account enabled when I'm at work".
So, I wrote a small daemon and a fun UI to make this easy. It's actually really simple: once you configure which connections accounts should listen for, it uses libconic to listen for connect/disconnect events and enables and disables accounts as appropriate. You should also be able to override its actions temporarily without it clobbering your setting.
A sneaky peek at the UI. See if you can guess where I've been visiting recently.
I think the UI is pretty easy to use, and should cover most use cases.
I just uploaded it to extras-devel. It's called Automatic Connections.
If you've just tried version 0.1 and hildon-application-manager reported that it failed to install, or came across the following problem on the terminal:
"Setting up loldongs (0.1) ...
/var/lib/dpkg/info/loldongs.postinst: line 15: /etc/init.d/loldongs: not found"
then the fix is to edit /var/lib/dpkg/info/loldongs.postinst and remove or comment out the last line, line 15. The installation will then continue. The same is for removing 0.1 (and possibly upgrading).
Sorry about this, it's partly my fault, partly maemo's upstart. The same thing happened with avahi-daemon.
I've already uploaded a new version which fixes this problem.
... as i just thought about something like that. My phone at home is just a router with included SIP, that translates this SIP to a line. I can also connect to that router by SIP, but also to the ISP by SIP directly, so now i can connect to the router when i am at home, and to the ISP SIP when somewhere else. Great. Will try this tomorrow.
I installed the software, and chose "only on some connections" for my local net SIP-Account. But it does not deactivate when on 3G, not at home. Do i need to reboot?
Gunni, you should not need a restart. I'm not sure what's up here. You can get logs by uncommenting the obvious first few lines of /usr/bin/loldongs if things still don't work. When you select "only on some connections", also make sure you actually select some connections, but that might not be a problem.
John, I am on T-Mobile in England.
Woody14619, go ahead! You just need a bit of D-Bus and Telepathy to do that! It's out of scope for this app though.
That looks great, will try ASAP. (I have a SIP connection at home, but not elsewhere, so this should come in very handy.)
Nice little app...thought it would be handy for myself....but not quote....
At the mo, if I want to select my network carrier Vodafone, it lets me, althnough I do notice Vodafone is displayed twice in the list of options, and when I selectone of them, it automatically selects both....bug?
What I wanrt to be able to do, is to select between eithner 3G or 2G.....currrently your app does not appear to allow that?
When I select Vodafone 2G, I want no IM accounts enabled.... When I select Vodafone 3G, I want the IM accounts enabled automatically
Possible?
Seems to do its job so far, this is a feature I wanted since I cannot connect to Skype/SIP on T-Mobile USA (maybe because I use the cheap unlimited dataplan?). Also that I use IM on my computer at work so I have no need to login when I'm on work's wifi. And so on. This program fits the need perfectly.
There are probably unlimited ways to expand upon this idea. Status (away/busy) by connection, or change status to busy when a calendar event is active (meetings), or disable autoconnect during certain time of day or day of week. In case you are looking for more things to do in the future.