From d38703aee1b8e2d745e7c8ff0f6d021cfdb618e9 Mon Sep 17 00:00:00 2001 From: sungmin ha Date: Fri, 28 Sep 2012 14:41:08 +0900 Subject: [PATCH] added checking flight mode when MT sms --- debian/changelog | 8 ++++++++ debian/control | 2 +- packaging/vmodemd-emul.spec | 2 +- vmodem/server/server_rx_sms.c | 7 +++++-- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index cb35160..3154fdd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +vmodemd-emul (0.2.23) unstable; urgency=low + + * added checking flight mode when MT sms + * Git: slp/pkgs/v/vmodem-daemon-emulator + * Tag: vmodemd-emul_0.2.23 + + -- Sungmin ha Fri, 28 Sep 2012 14:38:29 +0900 + vmodemd-emul (0.2.22) unstable; urgency=low * modified for sending MO call dialling or alert when connect with event injector diff --git a/debian/control b/debian/control index e9a74a3..21a522a 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: devel Priority: extra Maintainer: SungMin Ha ,Jihye Kim ,Yeongkyoon Lee Build-Depends: bison, flex, autoconf, gcc, debhelper, libglib2.0-dev, libxml2-dev, libvconf-dev -Standards-Version: 0.2.22 +Standards-Version: 0.2.23 Package: vmodemd-emul Architecture: i386 diff --git a/packaging/vmodemd-emul.spec b/packaging/vmodemd-emul.spec index 7f71a92..e2a9bac 100644 --- a/packaging/vmodemd-emul.spec +++ b/packaging/vmodemd-emul.spec @@ -1,6 +1,6 @@ #git:slp/pkgs/v/vmodem-daemon-emulator Name: vmodemd-emul -Version: 0.2.22 +Version: 0.2.23 Release: 1 Summary: Modem Emulator Group: System/ModemEmulator diff --git a/vmodem/server/server_rx_sms.c b/vmodem/server/server_rx_sms.c index d421322..b2715dc 100644 --- a/vmodem/server/server_rx_sms.c +++ b/vmodem/server/server_rx_sms.c @@ -38,6 +38,7 @@ #include "at_recv.h" #include "at_gen_resp.h" #include "sms_util.h" +#include "flight.h" #include #include @@ -84,6 +85,7 @@ int server_rx_sms_SendMsg(void *ptr_data, int data_len) { unsigned char rawdata[0x100]; int rawdata_len = 0, rssi = 5; + bool flightMode = false; unsigned char data[data_len]; LXT_MESSAGE packet; @@ -102,13 +104,14 @@ int server_rx_sms_SendMsg(void *ptr_data, int data_len) sms_msg_hook_modify(packet.data, packet.length); - // check RSSI level + // check RSSI level and flight mode + flightMode = is_flight_mode(); if(vconf_get_int(VCONFKEY_TELEPHONY_RSSI, &rssi)) { TRACE(MSGL_WARN, "vconf_get_int(%s) fail\n", VCONFKEY_TELEPHONY_RSSI); } - if(smsSentStatus == 0 && rssi != 0) + if(smsSentStatus == 0 && rssi != 0 && flightMode == false) { FuncServer->Cast(&GlobalPS, LXT_ID_CLIENT_EVENT_INJECTOR, &packet); -- 2.7.4