Active Topics

 


Reply
Thread Tools
Posts: 398 | Thanked: 301 times | Joined on Sep 2007 @ Texas
#241
If you don't mind, where do you use seq_id? That seems to be the last variable set from the sqlite related code.

FWIW, I removed the sqlite from gvSMS and it didn't seem to change the behavior.

While I'm at it, ADDR_TYPE of 129 seems to be required for T-Mobile domestic (US) numbers. Using 132 fails. I tried to use your international support. Then to make things more interesting, ADDR_TYPE 129 or 132 works fine on AT&T domestic numbers.

Originally Posted by ossipena View Post
don't touch the sqlite! it fetches the unique id needed for adding a message. it seems to be easier than api way apparently and since it only reads one column through it shouldn't mess the db up.
thanks,
Frank
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#242
seq_id is given to api command. there is no direct requirement but if it works without it, the rtcom-eventlogger probably creates one automatically. but it needs to be unique number in database or problems will probably come.

just realized what is wrong in new sms.py: it outputs 8bit text but of course sms is 7 bit


e: is there a easy way to convert?
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search

Last edited by ossipena; 2010-05-31 at 16:55.
 
Posts: 398 | Thanked: 301 times | Joined on Sep 2007 @ Texas
#243
Should the existing code:
put_to_sent_sms(own_number, number, 0, strippednumber, message)

be:
put_to_sent_sms(own_number, number, seq_id, strippednumber, message)

?

Originally Posted by ossipena View Post
seq_id is given to api command. there is no direct requirement but if it works without it, the rtcom-eventlogger probably creates one automatically. but it needs to be unique number in database or problems will probably come.
Frank
 

The Following User Says Thank You to Frank Banul For This Useful Post:
Posts: 4 | Thanked: 0 times | Joined on May 2010
#244
what's that? help!

~ $ python /opt/vertsms/vertsms_gui.py
response was: -5
Traceback (most recent call last):
File "/opt/vertsms/vertsms_gui.py", line 422, in send
s = sms.SMS(text, number)
File "/opt/vertsms/vertsms/sms.py", line 125, in __init__
self.write_to_rtcomm(msg, number)
File "/opt/vertsms/vertsms/sms.py", line 226, in write_to_rtcomm
cursor.execute('SELECT id FROM Events')
sqlite3.OperationalError: no such table: Events
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#245
Originally Posted by Xonir View Post
what's that? help!

~ $ python /opt/vertsms/vertsms_gui.py
response was: -5
Traceback (most recent call last):
File "/opt/vertsms/vertsms_gui.py", line 422, in send
s = sms.SMS(text, number)
File "/opt/vertsms/vertsms/sms.py", line 125, in __init__
self.write_to_rtcomm(msg, number)
File "/opt/vertsms/vertsms/sms.py", line 226, in write_to_rtcomm
cursor.execute('SELECT id FROM Events')
sqlite3.OperationalError: no such table: Events
I'll remove those sqlite lines as soon as I get new octification working so shouldn't be a problem in next version. is your rtcom-eventlogger database corrupt?
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
Posts: 4 | Thanked: 23 times | Joined on May 2010
#246
hello

I translated the program to Arabic language
Please help me
I have a problem
When selecting the second character of any number deletes the entered text
Please i need to solution of the problem

Attached Files
File Type: deb vertsms-ar_0.6_all.deb (28.3 KB, 116 views)
 
Posts: 4 | Thanked: 0 times | Joined on May 2010
#247
Originally Posted by ossipena View Post
I'll remove those sqlite lines as soon as I get new octification working so shouldn't be a problem in next version. is your rtcom-eventlogger database corrupt?
I don't know..how can I check it?
 
Posts: 398 | Thanked: 301 times | Joined on Sep 2007 @ Texas
#248
If the sqlite code stays, you'll also need to take into account the name change between PR1.2 and PR1.x. Maybe the below?

Originally Posted by Frank Banul View Post
Code:
        try:
            connection = sqlite3.connect(os.path.join(os.environ['HOME'], '.rtcom-eventlogger', 'el-v1.db'))
        except:
            connection = sqlite3.connect(os.path.join(os.environ['HOME'], '.rtcom-eventlogger', 'el.db'))
        cursor = connection.cursor()        
        cursor.execute('SELECT id FROM Events')
        id_array = cursor.fetchall()  
        seq_id = max(id_array)[0] + 1
 
Posts: 4 | Thanked: 0 times | Joined on May 2010
#249
Originally Posted by Frank Banul View Post
If the sqlite code stays, you'll also need to take into account the name change between PR1.2 and PR1.x. Maybe the below?
wow..this error is disappears

now, it save the message in conversation, but it's not received by the recipient!

vertsms gui says me: it was not possible to send the message to.. (or samething like that..)

Last edited by Xonir; 2010-06-01 at 17:44.
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#250
i am so pissed to this forum at this moment so I will be at radio silence. and further developing vertsms will be done but more slowly.

I will add settings to the gui so one can configure TON themselves. that should stop errors with message sending but it requires user interaction at first. this comes after I get that frigging PDU string creation working...

and about my decision.. you can thank the mother****ers here personally who only b*tch until they get tired and switch to whining. and when they get tired to whining, they restart the b*tching. I am trying to be happy but their negativity spreads like a disease here.

Might not come back until meego is up and running, but we'll see.
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
Reply

Tags
portrait sms, python


 
Forum Jump


All times are GMT. The time now is 12:14.