|
2010-01-29
, 15:13
|
Posts: 292 |
Thanked: 131 times |
Joined on Dec 2009
|
#2
|
|
2010-02-11
, 23:42
|
|
Posts: 354 |
Thanked: 151 times |
Joined on Mar 2008
@ London (UK) / Zielona Góra (PL)
|
#3
|
Hope this helps some people out, if people could also test it and report back that would be great. It shouldn't really take too long to write a simple GUI and package this up properly. Also, other things, like only on WiFi / only on GPRS should be quite easy to implement.
user@n900:~/MyDocs/Dev$ python list-connections.py adlnet-14 - 5d2108f0-a1ac-40db-bae0-6c17de4f86e5
user@n900:~/MyDocs/Dev$ /usr/bin/dbus-send --type=method_call --print-reply --dest=org.freedesktop.Telepathy.AccountManager /org/freedesktop/Telepathy/AccountManager org.freedesktop.DBus.Properties.Get string:org.freedesktop.Telepathy.AccountManager string:ValidAccounts method return sender=:1.20 -> dest=:1.369 reply_serial=2 variant array [ object path "/org/freedesktop/Telepathy/Account/sofiasip/sip/evad002_40sip_2eipfon_2epl0" ]
accounts = { "/org/freedesktop/Telepathy/Account/sofiasip/sip/evad002_40sip_2eipfon_2epl0": ["5d2108f0-a1ac-40db-bae0-6c17de4f86e5"], }
user@n900:~/MyDocs/Dev$ python im-per-connection.py
Having set up a SIP account for an internal SIP server on my N900, it was quite irritating to have to constantly disable it after leaving WiFi to stop the messages about not being able to connect. So, I wrote a quick script which allows mapping of IM accounts to connections.
I've hardly tested it, but it works for me, and it's a kludgey but good enough hack until this feature (hopefully) gets integrated.
The script:
To list your accounts, use the command
Hope this helps some people out, if people could also test it and report back that would be great. It shouldn't really take too long to write a simple GUI and package this up properly. Also, other things, like only on WiFi / only on GPRS should be quite easy to implement.