How can i send ringtone on Nokia 3310 and 3330 using SMPP Logica API

How can i send ringtone on Nokia 3310 and 3330 using SMPP Logica API SearchSearch
Author Message
Ahmed Sameen Khan
New member
Username: Samskhan

Post Number: 1
Registered: 05-2004
Posted on Monday, May 17, 2004 - 12:06 pm:   

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.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2609
Registered: 10-2002
Posted on Monday, May 17, 2004 - 02:31 pm:   

I'm sorry, but this area of the forum is for support questions related to the Now SMS/MMS Gateway product.

For questions that are not related to support for the Now SMS/MMS Gateway, please post in one of the forum areas that are labeled "not for product support".