# Difficulty in receiving sms in legato application using sms api service

**URL:** <https://forum.legato.io/t/difficulty-in-receiving-sms-in-legato-application-using-sms-api-service/2400>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [March 30, 2017, 6:35am UTC](https://forum.legato.io/t/difficulty-in-receiving-sms-in-legato-application-using-sms-api-service/2400 "2017-03-30T06:35:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rups](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@rups](https://forum.legato.io/u/rups)\
**Post date:** [March 30, 2017, 6:35am UTC](https://forum.legato.io/t/difficulty-in-receiving-sms-in-legato-application-using-sms-api-service/2400/1 "2017-03-30T06:35:34Z")

</div>

Hi everyone,

I am using sms service to send and receive sms  
sms send works fine but sms is not getting received using my application.

when I run my receive code i.e. le\_sms\_AddRxMessageHandler, then it gives some ‘memory pool overflow’ indication in logs  
**LE\_FILENAME le\_mem\_ForceAlloc() 841 | Memory pool ‘.le\_sms\_ClientData’ overflowed. Expanded to 1 blocks.**  
and application is not executing ‘messageHandler’ function code.  
as my all methods like sms\_getType, sms\_getTel, sms\_getText etc are called in this handler function, it is not getting executed and sms text could not be retrieved.

logs:

```
LE_FILENAME InitPool() 303 | Memory pool name 'framework.hashMap_refle_sms_ClientHandler' is truncated to 'framework.hashMap_refle_sms_Cli'

 LE_FILENAME msgMessage_CreatePool() 112 | Pool name truncated to 'msgs-d26b22be0fe85bc15a90af10f7' for protocol 'd26b22be0fe85bc15a90af10f7d8a763'.

LE_FILENAME InitPool() 303 | Memory pool name 'framework.msgs-d26b22be0fe85bc15a90af10f7' is truncated to 'framework.msgs-d26b22be0fe85bc1'

 LE_FILENAME le_fdMonitor_Create() 672 | FD Monitor object name 'curlbasedproject.CurlBasedProjectComponent.le_sms' truncated to 'curlbasedproject.CurlBasedProje'.

 LE_FILENAME le_mem_ForceAlloc() 841 | Memory pool '.le_sms_ClientThreadData' overflowed. Expanded to 1 blocks.

le_sms_client.c DoConnectService() 391 | ======= Starting client for 'curlbasedproject.CurlBasedProjectComponent.le_sms' service le_sms_SetPreferredStorage() 3691 | Sending message to server and waiting for response : 4 bytes sent

 LE_FILENAME le_mem_ForceAlloc() 841 | Memory pool '.le_sms_ClientData' overflowed. Expanded to 1 blocks.

le_sms_AddRxMessageHandler() 612 | Sending message to server and waiting for response : 4 bytes sent

le_sms_RemoveRxMessageHandler() 686 | Sending message to server and waiting for response : 4 bytes sent

```

kindly give solution to receive sms .

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/dfrey/32/563_2.png) [@dfrey](https://forum.legato.io/u/dfrey)\
**Post date:** [March 30, 2017, 2:52pm UTC](https://forum.legato.io/t/difficulty-in-receiving-sms-in-legato-application-using-sms-api-service/2400/2 "2017-03-30T14:52:49Z")

</div>

I haven’t tried implementing sms receive, but what I can tell you is that the memory pool overflow is not a problem. It’s just a log message that indicates that the memory pool has been expanded to meet the allocation requirements.
