SMS Send fails on 9700 only to alternate port
Please Login to Remove!
I have a program that listens for SMS and sends sms.
On a 9800 that works fine (bell)
On 9300 is works fine(bell)
On 9700 with Rogers and Telus it does not sent out to alternate port.
On telus it shows up in the inbox.
On Rogers it doesn't show up anywhere.
Im trying to figure out if it is the 9700 or the carrier. Either way I have a problem but I'd sure like to know what is going on.
On the 9700 (Rogers) I have debugged and it shows that there are No exceptions. It gets sent and then nothing appears anywhere.
On the 9700 Telus I send it and I get it coming in on the inbox when it should appear on port 3520
I've tried absolutely everything but can't figure this one out.
Any ideas anyone?
It works 100% on the 9800 and 9300 and am wondering how it could fail on a 9700 (both of them).
the 9700 is OS 5.0
the 9300 is OS 5.0
The 9800 is 6.0
I send this way
MessageConnection _conn = (MessageConnection) Connector.open("sms://:3500";
where 3500 is the send port and
3520 is the receive port
addressString = "//phonenumber:3520" ; where 3520 is the receive port
MessageConnection mc = (MessageConnection)_conn;
TextMessage m = (TextMessage) mc.newMessage(MessageConnection.TEXT_MESSAGE , addressString); m.setPayloadText(_msg);
_conn.send(m);
I receive on 3520 using a Datagram
_conn = Connector.open("sms://:3520);
_dcb = (DatagramConnectionBase) _conn;
byte[] buf = new byte[160];
final Datagram inDatagram = _dcb.newDatagram(buf, buf.length);
_dcb.receive(inDatagram);
|