View Single Post
blubbi's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#160
Originally Posted by Dawnmist View Post
I've been using 1.0.6 with the Exetel (AU) provider for the last month or so. A couple of the above I can answer for what/how they're supposed to work (and how they do for the Exetel sender, though I can't guarantee it's working correctly for other providers).

The "Sender" is used to be able to specify the sender number (your phone number) - some web sms providers require that the sender number is a part of the message sent to the provider, and the sender number is not necessarily the same as the account name. The Sender field in the Advanced Settings gives you somewhere to specify what number should be put in the web sms provider's sender field when it's required (as it is for Exetel).

As for the history of messages, when the message is sent successfully it should already be being saved in the standard N900 conversations. If it's not being saved on your provider, it'll probably be a bug in the recognition of a "successful send" for that provider.
100% Ack.

Thanks

Maya, I already asked you to provide some details about the error codes returned, without these error codes it is impossible for me to check for success or failure. Currently www2sms just prints the result and checks if urllib exited normaly, but does not check for replies from the provider. So all www2sms can tell you is, if urllib got a valid response from the webserver.
Well it checks if the response contains an "OK" and if this is found it assumes the SMS was delivered. But this is just a bad and unclean guess.


Code:
			result = urllib2.urlopen(urlSon).read()
		except URLError, e:
			return False, 'Error connecting to service:%s\n\n %s' %(e.reason, result)
		except HTTPError, e:
			return False, 'Error %s returned from service\n\n %s' %(e.code, result)
		UpdatePbar(self, MainWindow, app, "2", "Checking reply")
		re_suc = re.compile('OK')
		if re_suc.search(result):
		    return True, '%s' %(result)
		else:
		    return False, 'Failed. Provider responded: %s' %(result)
		MainWindow.Stat.close()