Skip to content
Success

Changes

Summary

  1. SMS optimise: Do VLR check for destination subscriber earlier (details)
Commit 9ac48c51cc455b4500bd933f5746c2873a76f12e by keith
SMS optimise: Do VLR check for destination subscriber earlier

sms_from_result() calls a number of sqlite3_column_XXX functions
to build the SMS in memory.

If the destination subscriber is not attached, the sms
will be free'd immediatly anyway in smsq_take_next_sms()
so let's check if the destination subscriber is present
and attached before we call all the sqlite3 routines.

Change-Id: Ibd07b9d200b48108d705ed4c461cc4ddfa421fd2
The file was modifiedsrc/libmsc/db.c
The file was modifiedtests/sms_queue/sms_queue_test.ok
The file was modifiedsrc/libmsc/sms_queue.c
The file was modifiedtests/sms_queue/sms_queue_test.c