<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - help urgent........2-way sms - Comments</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms</link>
 <description>Comments for &quot;help urgent........2-way sms&quot;</description>
 <language>en</language>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41705</link>
 <description>&lt;p&gt;Its ok,&lt;br /&gt;
          What ever you have helped is lot.&lt;br /&gt;
Thanx............&lt;/p&gt;</description>
 <pubDate>Fri, 21 Sep 2007 13:10:11 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">comment 41705 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41701</link>
 <description>&lt;p&gt;&lt;br /&gt;
There is nothing like an &quot;SDK on CDMA&quot;. It just that you were reading the Help on CDMA. There will be definitely something for GSM also in the SDK help.&lt;br /&gt;
And currently you are working with  Symbian OS v9.2 and i am working with Symbian OS 8.0a.&lt;/p&gt;

&lt;p&gt;Symbian OS 9.2 is 3rd Edition and it has got lot of advancements from 2nd Edition. So I am really sorry but I won&#039;t be able to guide you much with any topic specific to 3rd edition.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Fri, 21 Sep 2007 12:13:26 +0200</pubDate>
 <dc:creator>jp4symbian</dc:creator>
 <guid isPermaLink="false">comment 41701 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41700</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;What is a teleservice?&lt;/p&gt;

&lt;p&gt;The code that you provided the link to and the description which I got from the sdk differ in the use of teleservices...&lt;br /&gt;
You told you are working on GSM and my SDK was on CDMA.&lt;br /&gt;
So,&lt;br /&gt;
       I guess that it should contain information regarding which stack is being used---CDMA or GSM&lt;/p&gt;

&lt;p&gt;Can you tell about it?&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Fri, 21 Sep 2007 11:59:38 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">comment 41700 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41660</link>
 <description>&lt;p&gt;It works with single quotes.&lt;/p&gt;

&lt;p&gt; AS per error code and description, do you mean to say that I should copy the problem from &quot;Problems &quot; column of emulator?&lt;/p&gt;

&lt;p&gt;I will take care of that from next time.&lt;/p&gt;

&lt;p&gt;Thanx..&lt;/p&gt;</description>
 <pubDate>Thu, 20 Sep 2007 13:41:43 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">comment 41660 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41658</link>
 <description>&lt;p&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight:bold&quot;&gt;Please make it a point to always write what error you are getting, I mean the error description and also the error code.&lt;/span&gt;&lt;br /&gt;
How do I know whether its a compile time or build time or run time error?&lt;/p&gt;

&lt;p&gt;I think the syntax of your Locate() is wrong.&lt;br /&gt;
The correct way is:&lt;br /&gt;
TInt separator=SmsBody.Locate(&#039;,&#039;);    // Use single quotes instead of double quotes&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Thu, 20 Sep 2007 13:14:03 +0200</pubDate>
 <dc:creator>jp4symbian</dc:creator>
 <guid isPermaLink="false">comment 41658 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41657</link>
 <description>&lt;p&gt;You can&#039;t just write string constants like that in Symbian. Use _L() or _LIT.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Thu, 20 Sep 2007 13:12:23 +0200</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 41657 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41656</link>
 <description>&lt;p&gt;I use the following lines:-&lt;/p&gt;

&lt;p&gt;CRichText&amp; body=iSmsMtm-&gt;Body();&lt;br /&gt;
TPtrC SmsBody(body.Read(0));&lt;br /&gt;
TInt separator=SmsBody.Locate(&quot;,&quot;);//get error here&lt;/p&gt;

&lt;p&gt;What am I doing wrong?&lt;/p&gt;</description>
 <pubDate>Thu, 20 Sep 2007 13:03:09 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">comment 41656 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41603</link>
 <description>&lt;p&gt;&lt;br /&gt;
Yes exactly. That is the way I have now come to know that you are programming for the 3rd Edition. Actually that should have been the first thing that you specify before giving any query.&lt;/p&gt;

&lt;p&gt;There are quite a lot of differences between 2nd and 3rd edition S60, hence the solutions also differ. All the time i thought you were working into 2nd edition.  &lt;img src=&quot;/sites/all/modules/smileys/packs/example/puzzled.png&quot; title=&quot;Puzzled&quot; alt=&quot;Puzzled&quot; /&gt; &lt;/p&gt;

&lt;p&gt;And also the link you have given is CDMA specific. I am currently programming for 2nd edition GSM devices.&lt;/p&gt;</description>
 <pubDate>Wed, 19 Sep 2007 07:35:43 +0200</pubDate>
 <dc:creator>jp4symbian</dc:creator>
 <guid isPermaLink="false">comment 41603 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41601</link>
 <description>&lt;p&gt;I dont know how to find a link in the sdk&lt;/p&gt;

&lt;p&gt;but in top of my sdk page, it displays&lt;br /&gt;
               » Symbian OS v9.2 » Symbian OS guide » Messaging » Using CDMA SMS Messaging » How to use the CDMA SMS MTM&lt;/p&gt;

&lt;p&gt;is that the link?&lt;/p&gt;</description>
 <pubDate>Wed, 19 Sep 2007 06:20:26 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">comment 41601 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41591</link>
 <description>&lt;p&gt;&lt;br /&gt;
Kindly give a link of the SDK that you are using for the information that you have provided instead of so much text so that it becomes easy for the reader to locate in his SDK.&lt;/p&gt;</description>
 <pubDate>Tue, 18 Sep 2007 14:35:22 +0200</pubDate>
 <dc:creator>jp4symbian</dc:creator>
 <guid isPermaLink="false">comment 41591 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41587</link>
 <description>&lt;p&gt;I got some help from sdk&lt;br /&gt;
   I am pasting it here for references to others&lt;/p&gt;

&lt;p&gt;Incoming messages&lt;br /&gt;
Messaging receives SMS messages via a number of watcher components that listen to the CDMA stack for incoming messages that belong to particular teleservices (WMT, WEMT, VMN, WPT). When an incoming message belonging to one of these teleservices is received, its contents are read, and a new entry for the message is created in the message server&#039;s store (in the global inbox folder). The usual case is that these messages will then be read by the user through the email application, but other messaging clients can receive notifications when a new message is created in the store, and process the message if appropriate.&lt;/p&gt;

&lt;p&gt;To receive such notifications, a class must implement the session observer interface MMsvSessionObserver. The interface has just one function: &lt;/p&gt;

&lt;p&gt;void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3)=0;&lt;br /&gt;
When a new message is created in the store, the framework calls this function with aEvent set to EMsvEntriesCreated, and aArg1 is set to a CMsvEntrySelection* that specifies the IDs of the entries that have been created. The following checks the event type, and gets the entry ID selection:&lt;/p&gt;

&lt;p&gt;void CClientApp::HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* , TAny* )&lt;br /&gt;
    {&lt;br /&gt;
    CMsvEntrySelection* entries = NULL;&lt;/p&gt;

&lt;p&gt;    switch (aEvent)&lt;br /&gt;
        {&lt;br /&gt;
        case EMsvEntriesCreated:&lt;br /&gt;
            entries = static_cast&lt;CMsvEntrySelection*&gt;(aArg1);&lt;br /&gt;
            break;&lt;br /&gt;
        default:&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
The observer will receive notifications for all types of entry, not just SMS, so it&#039;s necessary to read the message properties to check that the entry is appropriate to process. &lt;/p&gt;

&lt;p&gt;The following code does the first stage in this checking. It:&lt;/p&gt;

&lt;p&gt;gets the index entry for the message. Getting an index entry is cheap and quick compared to getting the entire message, so it&#039;s a good idea to do any required checks on this first.&lt;/p&gt;

&lt;p&gt;tests if the entry is an SMS message, by checking the index entry&#039;s iMtm and iType fields&lt;/p&gt;

&lt;p&gt;tests if it&#039;s an incoming message, by checking that the entry is in the Inbox&lt;/p&gt;

&lt;p&gt;if (entries)&lt;br /&gt;
    {&lt;br /&gt;
    TInt count = entries-&gt;Count();&lt;/p&gt;

&lt;p&gt;    // check each entry to see if we want to process it&lt;br /&gt;
    while (count--)&lt;br /&gt;
        {&lt;br /&gt;
        // get the index entry&lt;br /&gt;
        TMsvId serviceId;&lt;br /&gt;
        TMsvEntry entry;&lt;br /&gt;
        iMtm-&gt;Session().GetEntry((*entries)[count], serviceId, entry);&lt;br /&gt;
        // if the entry is an SMS message&lt;br /&gt;
        if (entry.iMtm == KUidMsgTypeSMS &amp;&amp; entry.iType == KUidMsvMessageEntry&lt;br /&gt;
            // and if it&#039;s an incoming message (as its in the inbox)&lt;br /&gt;
            &amp;&amp; entry.Parent() == KMsvGlobalInBoxIndexEntryId)&lt;br /&gt;
An application can now perform further checks, e.g. for particular message content. For example, the following code:&lt;/p&gt;

&lt;p&gt;sets the client MTM&#039;s context to the message&lt;/p&gt;

&lt;p&gt;reads the message body and tests that it begins with the string specified by a value iMatchText&lt;/p&gt;

&lt;p&gt;gets the message teleservice ID and tests that it is equal to a value iMatchTeleservice&lt;/p&gt;

&lt;p&gt;iMtm-&gt;SwitchCurrentEntryL((*entries)[count]);&lt;br /&gt;
iMtm-&gt;LoadMessageL();&lt;br /&gt;
TBool match = ETrue;&lt;br /&gt;
// Check the message body against any specified match text      &lt;br /&gt;
if (iMatchText.Length())&lt;br /&gt;
    {&lt;br /&gt;
    CRichText&amp; body = iMtm-&gt;Body();&lt;br /&gt;
    TPtrC text(body.Read(0, iMatchText.Length()));&lt;br /&gt;
    match = (text.Compare(iMatchText) == 0); &lt;br /&gt;
    }&lt;/p&gt;

&lt;p&gt;// Check the message teleservice against the match teleservice&lt;br /&gt;
if (iMatchTeleservice)&lt;br /&gt;
    {&lt;br /&gt;
    match &amp;= (iMtm-&gt;SmsHeader().CdmaMessage().TeleserviceId() == iMatchTeleservice);&lt;br /&gt;
    }&lt;br /&gt;
If you determine that your application should process the message, you can prevent the user from seeing the message in the Inbox of the standard messaging application. To do this, you can set the message entry&#039;s visible flag to false, using TMsvEntry::SetVisible(EFalse). You should delete the message (as the user will not be able to do so) once its processing is complete.&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Common GSM/CDMA message fields&lt;br /&gt;
Common GSM and CDMA message fields are accessed through the TMsvMessageSms class and its base class TMsvMessageBio. &lt;/p&gt;

&lt;p&gt;Use CSmsHeader::SmsMessage() to get a TMsvMessageSms object:&lt;/p&gt;

&lt;p&gt;TMsvMessageSms&amp; fields = iMtm-&gt;SmsHeader().SmsMessage();&lt;br /&gt;
The fields include:&lt;/p&gt;

&lt;p&gt;Character set for SMS messages (Encoding(), SetEncoding()): text is stored in Unicode on the Symbian OS phone and is converted into the appropriate character set when the message is sent.&lt;/p&gt;

&lt;p&gt;Originating address&lt;/p&gt;

&lt;p&gt;Message Service Center Time Stamp&lt;/p&gt;

&lt;p&gt;Validity period&lt;/p&gt;

&lt;p&gt;Functions to manipulate the EMS Information Elements in a message are also provided by this class: see EMS.&lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Originating address&lt;br /&gt;
The Originating Address is a mandatory parameter on all point-to-point SMS messages. &lt;/p&gt;

&lt;p&gt;It does not need to be set on outgoing messages, as the address of the originating phone is set by default. &lt;/p&gt;

&lt;p&gt;For incoming messages, the parameter can be got as follows:&lt;/p&gt;

&lt;p&gt;TPtrC originatingAddress = fields.OriginatingAddress();&lt;br /&gt;
When a reply message is created using CSmsClientMtm::ReplyL(), the reply address is set to this value unless a CDMA call-back number (see below) has been specified.&lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Message Service Center Time Stamp&lt;br /&gt;
Delivered messages can include a Message Center Time Stamp that gives the time that the message was accepted by the destination message center.&lt;/p&gt;

&lt;p&gt;The following gets the time stamp. The time is expressed as the message center&#039;s local time plus the difference between the message center&#039;s time zone and Coordinated Universal Time (UTC) in quarter of hours.&lt;/p&gt;

&lt;p&gt;TDateTime timeStamp;&lt;br /&gt;
TInt quarterHourUTCOffset;&lt;br /&gt;
User::LeaveIfError(iFields-&gt;GetMessageServiceCenterTimeStamp(timeStamp,quarterHourUTCOffset));&lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Validity period&lt;br /&gt;
The message validity period sets a time after which the message center should discard the message if it has not been delivered to the destination. The time can be expressed either as an absolute value or relative to the time the message is received by the message center.&lt;/p&gt;

&lt;p&gt;An absolute time is represented using the standard Symbian OS type TDateTime. The following sets the message validity period to 10:30am on 2004/01/01:&lt;/p&gt;

&lt;p&gt;TDateTime time(2004,EJanuary,01,10,30,0,0);&lt;br /&gt;
iFields-&gt;SetValidityPeriodAbsoluteL(time);&lt;br /&gt;
A relative time can be expressed in one of a number of units [C.S0015-A Table 4.5.6-1], such as days or weeks. Flags for these unit types are given in the enum TSmsRelativeTimeUnit. The following sets a relativity validity period of 1 day:&lt;/p&gt;

&lt;p&gt;TSmsRelativeTimeUnit timeUnit=ETimeUnitDays;&lt;br /&gt;
TUint32 relativeTime=1;&lt;br /&gt;
iFields-&gt;SetValidityPeriodRelativeL(timeUnit, relativeTime);&lt;br /&gt;
The validity period can be got and set only on outgoing messages (as incoming messages must either be valid or will have been discarded by the message center).&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;CDMA-specific message fields&lt;br /&gt;
CDMA-specific message fields are held in a TMsvMessageCdma object, which can be obtained using CSmsHeader::CdmaMessage(). &lt;/p&gt;

&lt;p&gt;In the following example, CDMAFields is an TMsvMessageCdma reference.&lt;/p&gt;

&lt;p&gt;TMsvMessageCdma&amp; CDMAFields = iMtm-&gt;SmsHeader().CdmaMessage();&lt;br /&gt;
The fields are:&lt;/p&gt;

&lt;p&gt;Teleservice&lt;/p&gt;

&lt;p&gt;Originating Subaddress&lt;/p&gt;

&lt;p&gt;Deferred Delivery Time&lt;/p&gt;

&lt;p&gt;Priority&lt;/p&gt;

&lt;p&gt;Privacy&lt;/p&gt;

&lt;p&gt;Number of Messages&lt;/p&gt;

&lt;p&gt;Callback Number&lt;/p&gt;

&lt;p&gt;Message Display Mode&lt;/p&gt;

&lt;p&gt;Message Deposit Index&lt;/p&gt;

&lt;p&gt;User Response Code&lt;/p&gt;

&lt;p&gt;Alert On Message Delivery&lt;/p&gt;

&lt;p&gt;Language Indicator&lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Teleservice&lt;br /&gt;
SMS messages received in the messaging inbox belong to one of the teleservices WMT, WEMT, VMN, or WPT. You can find which one using TeleserviceId():&lt;/p&gt;

&lt;p&gt;tia637::TTeleserviceId teleserviceId = CDMAFields.TeleserviceId();&lt;br /&gt;
tia637::TTeleserviceId is an integer type; constants to identify each teleservice are defined in the tia637 namespace.&lt;/p&gt;

&lt;p&gt;There is no corresponding function to set the teleservice. &lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Originating Subaddress&lt;br /&gt;
As well as an originating address, a message can have an originating subaddress. The originating subaddress can be got for incoming messages as follows:&lt;/p&gt;

&lt;p&gt;HBufC* originatingSubAddress = fields.GetOriginatingSubAddressL();&lt;br /&gt;
Note that ownership of the returned HBufC* is passed to the caller.&lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Deferred Delivery Time&lt;br /&gt;
The deferred delivery time sets a time at which the message center should deliver the message. Similiarly to the validity period field, this can be got and set on outgoing messages, and can be specified either as an absolute time or relative to when the message is received by the message center.&lt;/p&gt;

&lt;p&gt;The setter functions are SetDeferredDeliveryTimeAbsoluteL() and SetValidityPeriodRelativeL(). The following sets the desired delivery time to be 09:30 am on 2004/03/02:&lt;/p&gt;

&lt;p&gt;TDateTime time(2004,EMarch,02,09,30,0,0);&lt;br /&gt;
CDMAFields.SetDeferredDeliveryTimeAbsoluteL(time);&lt;br /&gt;
The getter functions are GetDeferredDeliveryTimeAbsoluteL() and GetDeferredDeliveryTimeRelativeL(). The following tests if the format is relative, and if so, gets the relative time:&lt;/p&gt;

&lt;p&gt;    TSmsTimePeriodFormat deliveryTimeFormat = CDMAFields.DeliveryTimeFormat();&lt;br /&gt;
    if (deliveryTimeFormat == ESmsTimePeriodRelative)&lt;br /&gt;
        {&lt;br /&gt;
        // Relative format&lt;br /&gt;
        TSmsRelativeTimeUnit timeUnit;&lt;br /&gt;
        TUint32 relativeTime;&lt;br /&gt;
        CDMAFields.GetDeferredDeliveryTimeRelativeL(timeUnit, relativeTime);&lt;br /&gt;
Note the difference with the scheduled sending functionality, which controls when the message is sent from the phone to the message center.&lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Number of Messages&lt;br /&gt;
The Number of Messages is a decimal number with range (0 to 99) representing the number of messages stored at the Voice Mail System.&lt;/p&gt;

&lt;p&gt;To get the number of messages, use GetNumberOfMessages(). It is set only by the Voice Mail Notification service.&lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Priority&lt;br /&gt;
A message can have one of four priority levels, from Normal to Emergency [C.S0015-A 4.5.9-1]. &lt;/p&gt;

&lt;p&gt;The priority level does not alter the phone&#039;s handling of the message, but can be used at application level, for example to highlight urgent messages for the user&#039;s attention.&lt;/p&gt;

&lt;p&gt;The level can be got and set on outgoing messages, and got on incoming messages. The priority levels are specified by constants in the tia637 namespace. The following sets the priority level to urgent.&lt;/p&gt;

&lt;p&gt;tia637::TPriorityIndicator priority = tia637::KBdUrgent;&lt;br /&gt;
CDMAFields.SetPriorityIndicatorL(priority);&lt;/p&gt;

&lt;p&gt;A default priority level for new messages is set from the current default message settings.&lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Privacy&lt;br /&gt;
A message can have one of four privacy levels: Unrestricted, Restricted, Confidential, and Secret.&lt;/p&gt;

&lt;p&gt;The privacy level does not alter the phone&#039;s handling of the message, and can be used at application level for any suitable purpose.&lt;/p&gt;

&lt;p&gt;The level can be got and set on outgoing messages, and got on incoming messages. The privacy levels are specified by constants in the tia637 namespace. The following sets the privacy level to confidential.&lt;/p&gt;

&lt;p&gt;tia637::TPrivacy privacy = tia637::KBdConfidential;&lt;br /&gt;
CDMAFields.SetPrivacyIndicatorL(privacy);&lt;br /&gt;
A default privacy level for new messages is set from the current default message settings.&lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Callback Number&lt;br /&gt;
The callback number sets the number to be dialled in reply to a received SMS message. This does not need to be set by the application unless the number is different from the number of the sending phone. &lt;/p&gt;

&lt;p&gt;The callback number can be got and set on outgoing messages, and got on incoming messages. It is passed as a descriptor. &lt;/p&gt;

&lt;p&gt;CDMAFields.SetCallbackNumberL(iInput);&lt;br /&gt;
A default callback number for new messages is set from the current default message settings. &lt;/p&gt;

&lt;p&gt;When a reply message is created using CSmsClientMtm::ReplyL(), the reply address is set to this value if it is specified (or to the originator address if it is not).&lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Message Display Mode&lt;br /&gt;
A delivered message can specify a flag setting to indicate to the phone when to display the received message: the options are to display immediately, or according to a default or user configured setting.&lt;/p&gt;

&lt;p&gt;The modes are defined by constants in the tia637 namespace, which belong to the tia637::TBdMode integer type. The following gets the mode:&lt;/p&gt;

&lt;p&gt;tia637::TBdMode display = 0;&lt;br /&gt;
err = CDMAFields.GetMessageDisplayModeL(display);&lt;br /&gt;
The message display mode for new outgoing messages is set from the current service settings.&lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Message Deposit Index&lt;br /&gt;
A delivered message can have a Message Deposit Index field that provides a unique reference to the message&#039;s user data. This allows a phone, when replying to a received message, to include the Message Deposit Index of the received message to indicate to the message center that the original contents of the message are to be included in the reply.&lt;/p&gt;

&lt;p&gt;The MTM sets the index field in this way when a reply message is created, so an application does not normally need to access this field.&lt;/p&gt;

&lt;p&gt;Index values belong to the tia637::TMessageDepositIndex integer type. The following gets the index:&lt;/p&gt;

&lt;p&gt;tia637::TMessageDepositIndex index;&lt;br /&gt;
err = CDMAFields.GetMessageDepositIndexL(index);&lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;User Response Code&lt;br /&gt;
The User Response Code is used in SMS User Acknowledgement Messages to respond to previously received short messages. The GetUserResponseCodeL() and SetUserResponseCodeL() functions allow this to be retrieved and set. The code is message centre-specific and identifies a predefined response.&lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Alert On Message Delivery&lt;br /&gt;
The Alert on Message Delivery subparameter indicates that alerting is requested. Such methods as vibrating and sound may be used (e.g. by a UI MTM). The possible values are defined by tia637::TAlertPriority.&lt;/p&gt;

&lt;p&gt;The subparameter can be retrieved from deliver messages, and set on submit messages. The following sets the alert to high:&lt;/p&gt;

&lt;p&gt;CDMAFields.SetAlertOnDeliveryL(tia637::KBdUseHighPriorityAlert);&lt;/p&gt;

&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Language Indicator&lt;br /&gt;
The Language Indicator subparameter indicates the language of the message so that the receiving mobile station can discard those messages that are not in the userâ€™s preferred language. The possible language values are defined by tia637::TLanguageIndicator.&lt;/p&gt;

&lt;p&gt;The subparameter can be retrieved from deliver messages, and set on submit messages. The following sets the language indicator value to Spanish:&lt;/p&gt;

&lt;p&gt;CDMAFields.SetLanguageIndicatorL(tia637::KLanguageSpanish);&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Tue, 18 Sep 2007 13:10:14 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">comment 41587 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41586</link>
 <description>&lt;p&gt;I wiil take some time to try this out.&lt;/p&gt;</description>
 <pubDate>Tue, 18 Sep 2007 13:08:52 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">comment 41586 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41576</link>
 <description>&lt;p&gt;&lt;br /&gt;
Yes I think you are right. But don&#039;t take the hassle to write the code again for SMS handling. &lt;/p&gt;

&lt;p&gt;There is an example &quot;smssend&quot; in SDK. Simply take the SMSHandler from there (or from the links i already gave earlier in this post) and implement it in your code. But simultanesouly, you also need to understand the working of SMSHandler class.&lt;/p&gt;

&lt;p&gt;You can disable the sound of the SMS received using the following code in your MessageReceivedL() function:&lt;br /&gt;
TMsvEntry entry = serverEntry-&gt;Entry(); // currently handled message entry&lt;br /&gt;
entry.SetInPreparation(EFalse);&lt;br /&gt;
entry.SetNew( EFalse );&lt;br /&gt;
entry.SetUnread( EFalse );&lt;br /&gt;
entry.SetVisible( EFalse );&lt;br /&gt;
serverEntry-&gt;ChangeL( entry );  // commit changes&lt;/p&gt;

&lt;p&gt;But this does not give uniform results on Nokia 6600 and FP1 phones. Sometimes you may hear the SMS tone. But it will work flawlessly for FP2 phones and above. But I think this is the only way....&lt;/p&gt;</description>
 <pubDate>Tue, 18 Sep 2007 11:03:00 +0200</pubDate>
 <dc:creator>jp4symbian</dc:creator>
 <guid isPermaLink="false">comment 41576 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41574</link>
 <description>&lt;p&gt;Ok!!!!!!&lt;br /&gt;
 &lt;br /&gt;
    My work is to listen for incoming &quot;sms&quot;es.&lt;/p&gt;

&lt;p&gt;     So, I think my approach should be(from what I have understood):-&lt;/p&gt;

&lt;p&gt;             1.create instance of CMsvSession with a class inheriting MMsvSessionObserver as parameter&lt;br /&gt;
             2.In HandleSessionEvent(),    I should handle  &quot;EMsvEntriesCreated&quot;  for listening to incoming messages&lt;br /&gt;
             3.there I should decode the header and body of the sms&lt;/p&gt;

&lt;p&gt;   Tell me if I am write or wrong!!!!!!!!!!!!&lt;/p&gt;

&lt;p&gt;        Then again I think one problem should arise:-- If the sms goes into INBOX, then it will cause the sms ringtone to be played&lt;br /&gt;
and I dont want any such sounds.Can I disable the sound?&lt;/p&gt;</description>
 <pubDate>Tue, 18 Sep 2007 10:41:12 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">comment 41574 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comment-41566</link>
 <description>&lt;p&gt;&lt;br /&gt;
There is as such no problem with these lines.&lt;br /&gt;
You need to post the error codes and descriptions to be more clear about your problem.&lt;/p&gt;

&lt;p&gt;Please make sure you understand the working of SMS APIs in Symbian before you start developing an application.&lt;/p&gt;</description>
 <pubDate>Tue, 18 Sep 2007 08:54:19 +0200</pubDate>
 <dc:creator>jp4symbian</dc:creator>
 <guid isPermaLink="false">comment 41566 at http://www.newlc.com</guid>
</item>
<item>
 <title>help urgent........2-way sms</title>
 <link>http://www.newlc.com/en/forum/help-urgent-2-way-sms</link>
 <description>&lt;p&gt;Hi friends,&lt;/p&gt;

&lt;p&gt;I have to mke a ppt on it as soon as possible.&lt;/p&gt;

&lt;p&gt;What is a 2-way sms?&lt;/p&gt;

&lt;p&gt;can it be impemented in &quot;symbian&quot; using &quot;GSM modem&quot;?&lt;br /&gt;
I went through google search an found that &quot;symbian&quot; has got some problem relating&lt;br /&gt;
receiving messages through &quot;GSM Modem Interface&quot;.&lt;/p&gt;

&lt;p&gt;Then , how to implement the concept of 2-way SMS on symbian?&lt;/p&gt;

&lt;p&gt;I also do not know what is a &quot;GSM MODEM&quot;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/forum/help-urgent-2-way-sms&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/forum/help-urgent-2-way-sms#comments</comments>
 <category domain="http://www.newlc.com/en/forums/messaging">Messaging</category>
 <pubDate>Wed, 12 Sep 2007 12:24:47 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">18943 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
