# Storing sent SMS

**URL:** <https://forum.sierrawireless.com/t/storing-sent-sms/5379>\
**Category:** Open AT\
**Created:** [December 14, 2011, 10:31am UTC](https://forum.sierrawireless.com/t/storing-sent-sms/5379 "2011-12-14T10:31:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bultro](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Bultro](https://forum.sierrawireless.com/u/Bultro)\
**Post date:** [December 14, 2011, 10:31am UTC](https://forum.sierrawireless.com/t/storing-sent-sms/5379/1 "2011-12-14T10:31:43Z")

</div>

I’m using adl\_smsSend with success, but i don’t understand how to store (or not to store) sent messages in SIM or flash memory.  
Currently they appear not to be stored, cause if i manually execute AT+CPMS or AT+CMGL i get nothing.  
The handler for received messages allows a return value to decide wether to store them, but the handler for sent messages must return void…

---

<div class="post-metadata">

**Author:** ![Rex\_alex](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rex\_alex](https://forum.sierrawireless.com/u/Rex_alex)\
**Post date:** [December 14, 2011, 11:24am UTC](https://forum.sierrawireless.com/t/storing-sent-sms/5379/2 "2011-12-14T11:24:56Z")

</div>

Hi,

When subscribing to the SMS service try to use adl\_smsSubscribeExt() API, and in the handler try to return the value ADL\_SMS\_FILTER\_INDICATION\_AND\_DELETE .

---

<div class="post-metadata">

**Author:** ![Bultro](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Bultro](https://forum.sierrawireless.com/u/Bultro)\
**Post date:** [December 14, 2011, 2:09pm UTC](https://forum.sierrawireless.com/t/storing-sent-sms/5379/3 "2011-12-14T14:09:16Z")

</div>

That’s only for the received SMS handle. The sent SMS handler must return void, or you get a warning

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [December 14, 2011, 8:57pm UTC](https://forum.sierrawireless.com/t/storing-sent-sms/5379/4 "2011-12-14T20:57:16Z")

</div>

Why do you want to store them?

[catb.org/~esr/faqs/smart-questions.html#goal](http://www.catb.org/~esr/faqs/smart-questions.html#goal)

---

<div class="post-metadata">

**Author:** ![Bultro](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Bultro](https://forum.sierrawireless.com/u/Bultro)\
**Post date:** [December 15, 2011, 11:38am UTC](https://forum.sierrawireless.com/t/storing-sent-sms/5379/5 "2011-12-15T11:38:10Z")

</div>

Same reason for billions of mobile phones worldwide store them. Keep a log on the SIM that can be read by any device

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [December 15, 2011, 8:18pm UTC](https://forum.sierrawireless.com/t/storing-sent-sms/5379/6 "2011-12-15T20:18:22Z")

</div>

AT+CMGW

---

<div class="post-metadata">

**Author:** ![Bultro](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Bultro](https://forum.sierrawireless.com/u/Bultro)\
**Post date:** [December 16, 2011, 11:53am UTC](https://forum.sierrawireless.com/t/storing-sent-sms/5379/7 "2011-12-16T11:53:38Z")

</div>

OK, so one has to directly execute the AT command.  
It’s weird that ADL can handle autostoring of received messages, but not sent ones
