The Following User Says Thank You to stas123 For This Useful Post: | ||
|
2010-12-24
, 11:12
|
|
Posts: 302 |
Thanked: 193 times |
Joined on Oct 2008
@ England
|
#2
|
|
2011-12-30
, 11:57
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#4
|
|
2011-12-30
, 12:07
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#5
|
The Following User Says Thank You to vi_ For This Useful Post: | ||
|
2012-04-06
, 10:01
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#6
|
|
2012-04-06
, 12:21
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#7
|
import dbus, gobject import sqlite3 as db from dbus.mainloop.glib import DBusGMainLoop con = None def new_msg_func(id, local_uid, remote_uid, remote_ebook_uid, group_uid, service): #handle only chat/sms events if service != "RTCOM_EL_SERVICE_SMS" and service!="RTCOM_EL_SERVICE_CHAT": return cur = con.cursor() # select free_text (message body) and outgoing/incoming flag cur.execute("select free_text,outgoing from events where id = ?", (id,)); data = cur.fetchone() #incoming (0) or outgoing (1) message? if data[1] == 0: # update message cur.execute("update events set free_text = ? where id = ?", (data[0].upper(), id)) dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) bus = dbus.SessionBus() bus.add_signal_receiver(new_msg_func, dbus_interface="rtcomeventlogger.signal", signal_name="NewEvent") con = db.connect('/home/user/.rtcom-eventlogger/el-v1.db', isolation_level=None) loop = gobject.MainLoop() loop.run()
|
2012-04-07
, 10:39
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#8
|
The Following User Says Thank You to droll For This Useful Post: | ||
|
2012-04-07
, 17:10
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#9
|
|
2012-04-07
, 18:10
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#10
|
[s]droll
Im' eager to see your app for putting Contact name into "missed call" sms. Wanted!
Mobilicity is my provider, and it doesn't support incoming Unicode messages yet. Instead, it displays each unicode character as a pair of characters from GSM 03.38.
I want to write a bit of code to detect this and to display these messages as proper unicode on my phone.
How do I intercept incoming SMS messages and modify their content?