How can i send ringtone on Nokia 3310 and 3330 using SMPP Logica API | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through August 08, 2004 ⬆ |
◄ ► |
Author | Message | |||
Ahmed Sameen Khan Unregistered guest |
Hi I am trying to send Ringtone using Java Logica API Ringtone sent from the program but not receive on Nokia 3310. here is the code Response resp = session.bind(breq); if (resp.getCommandStatus() == Data.ESME_ROK) { SubmitSM request = new SubmitSM(); request.setSourceAddr("xxx"); request.setDestAddr("xxxxxxxxxxxx"); request.setProtocolId((byte) 0); ByteBuffer message = new ByteBuffer(); message.appendByte((byte)6); message.appendByte((byte)5); message.appendByte((byte)4); message.appendShort((short)0x1581); message.appendShort((short)0x1581); ByteBuffer toneData = loadByteBuffer ("c:/my/test.ott"); System.out.println("Ringtone Data" + toneData.toString()); message.appendBuffer(toneData); request.setMessagePayload(message); request.setEsmClass((byte)(Data.SM_UDH_GSM)); request.setDataCoding((byte)0x0F5); System.out.println("ring tone request " + request.debugString()); resp = session.submit(request); } catch (Exception ex) { ex.printStackTrace(); if (resp.getCommandStatus() == Data.ESME_ROK) { System.out.println("Message submitted. Status=" + resp.getCommandStatus()); } else { System.out.println("Message submission failed. Status=" + resp.getCommandStatus()); } session.unbind(); }else { System.out.println("Couldn't bind. Status=" + resp.getCommandStatus()); } } catch(Exception es) { System.out.println("Connection fails"); } When i comment ESMClass like // request.setEsmClass((byte)(Data.SM_UDH_GSM)); then sms receive on Nokia 3310 and This message is shown in SMS "Message cannot be displayed here" Please help me in this situation? | |||
sreedhar v Unregistered guest |
mee to getting the same kind of error... can any one solve this? | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 3197 Registered: 10-2002 |
The SMSC probably doesn't support the message_payload attribute. Just send it as the short_message. |