[Feature][ZXW-179]merge P52U02 version
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I4fa8f86757e71388ae88400914dae8b50cd00338
diff --git a/ap/app/flags_tool/src/main.c b/ap/app/flags_tool/src/main.c
index 7e64a78..e035ab9 100755
--- a/ap/app/flags_tool/src/main.c
+++ b/ap/app/flags_tool/src/main.c
@@ -56,17 +56,21 @@
static int excute_command_init(char *option_para);
static int excute_command_get(char *option_para);
static int excute_command_set(char *option_para);
+static int excute_command_switch(char *option_para);
static int excute_command_get_ubifs_status(char *option_para);
static int excute_command_set_ubifs_status(char *option_para);
static int excute_command_kernel_get(char *option_para);
static int excute_command_kernel_set(char *option_para);
+static int excute_command_get_nocrc(char *option_para);
+static int excute_command_set_nocrc(char *option_para);
+
/*******************************************************************************
* Global variable declarations *
******************************************************************************/
-static char * g_short_string = "higsubtq";
+static char * g_short_string = "higswubtqac:";
static struct option g_long_options[] =
{
@@ -74,10 +78,13 @@
{"init", no_argument, NULL, 'i'},
{"get", no_argument, NULL, 'g'},
{"set", no_argument, NULL, 's'},
+ {"switch", no_argument, NULL, 'w'},
{"get-ubifs-status", no_argument, NULL, 'u'},
{"set-ubifs-status", no_argument, NULL, 'b'},
{"kernel-get", no_argument, NULL, 't'},
{"kernel-set", no_argument, NULL, 'q'},
+ {"get-nocrc", no_argument, NULL, 'a'},
+ {"set-nocrc", required_argument, NULL, 'c'},
{0, 0, 0, 0}
};
@@ -87,10 +94,13 @@
{'i', excute_command_init},
{'g', excute_command_get},
{'s', excute_command_set},
+ {'w', excute_command_switch},
{'u', excute_command_get_ubifs_status},
{'b', excute_command_set_ubifs_status},
{'t', excute_command_kernel_get},
- {'q', excute_command_kernel_set}
+ {'q', excute_command_kernel_set},
+ {'a', excute_command_get_nocrc},
+ {'c', excute_command_set_nocrc}
};
@@ -99,15 +109,18 @@
******************************************************************************/
static void usage(void)
{
- printf("flags_tool [-higsub] \n "
+ printf("flags_tool [-higswub] \n "
" -h, --help show usage \n"
" -i, --init init flags \n"
" -g, --get get flags data \n"
" -s, --set set flags data \n"
+ " -w, --switch system A/B switch \n"
" -u, --get-ubifs-status get ubifs status \n"
" -b, --set-ubifs-status set ubifs status \n"
" -t, --kernel-get kernel-get flags data \n"
- " -q, --kernel-set kernel-set flags data \n");
+ " -q, --kernel-set kernel-set flags data \n"
+ " -a, --get-nocrc get-nocrc flags data \n"
+ " -c, --set-nocrc set-nocrc flags data \n");
return;
}
@@ -140,6 +153,7 @@
static int excute_command_get(char *option_para)
{
+ int i = 0;
T_FLAGS_INFO flags_info = {0};
if (flags_get(&flags_info) != 0)
@@ -167,6 +181,15 @@
printf("ubifs_status.fs_mtd_name = %s \n", flags_info.ubifs_status.fs_mtd_name);
printf("ubifs_status.fs_ubi_vol_name = %s \n", flags_info.ubifs_status.fs_ubi_vol_name);
+ printf("nvro_flag = %u \n", flags_info.nvro_flag);
+
+ printf("ota_system = %d \n", flags_info.ota_system);
+
+ for (i = 0; i < OTA_PARTITION_NUM_MAX; i++)
+ {
+ printf("index=%d, mtdnum=%d, len=%u \n", i, flags_info.ota_partiton_info[i].mtdnum, flags_info.ota_partiton_info[i].len);
+ }
+
printf("magic_end = 0x%x \n", flags_info.magic_end);
return 0;
@@ -217,6 +240,37 @@
}
}
+static int excute_command_switch(char *option_para)
+{
+ T_FLAGS_INFO flags_info = {0};
+ int ret = -1;
+
+ ret = flags_get(&flags_info);
+ if (ret < 0)
+ {
+ printf("flags switch flags_get fail\n");
+ return ret;
+ }
+ if (flags_info.boot_fota_flag.boot_to == DUAL_SYSTEM)
+ {
+ flags_info.boot_fota_flag.boot_to = DUAL_SYSTEM2; //A->B
+ printf("flags switch system A to system B\n");
+ }
+ else
+ {
+ flags_info.boot_fota_flag.boot_to = DUAL_SYSTEM; //B->A
+ printf("flags switch system B to system A\n");
+ }
+ ret = flags_set(&flags_info);
+ if (ret < 0)
+ {
+ printf("flags switch flags_set fail\n");
+ return ret;
+ }
+ printf("flags AB system switch sucess\n");
+
+ return 0;
+}
static int excute_command_get_ubifs_status(char *option_para)
{
@@ -267,6 +321,7 @@
static int excute_command_kernel_get(char *option_para)
{
+ int i = 0;
int fd = -1;
T_FLAGS_INFO flags_info = {0};
@@ -302,6 +357,15 @@
printf("ubifs_status.fs_mtd_name = %s \n", flags_info.ubifs_status.fs_mtd_name);
printf("ubifs_status.fs_ubi_vol_name = %s \n", flags_info.ubifs_status.fs_ubi_vol_name);
+ printf("nvro_flag = %u \n", flags_info.nvro_flag);
+
+ printf("ota_system = %d \n", flags_info.ota_system);
+
+ for (i = 0; i < OTA_PARTITION_NUM_MAX; i++)
+ {
+ printf("index=%d, mtdnum=%d, len=%u \n", i, flags_info.ota_partiton_info[i].mtdnum, flags_info.ota_partiton_info[i].len);
+ }
+
printf("magic_end = 0x%x \n", flags_info.magic_end);
close(fd);
@@ -361,6 +425,141 @@
}
+static int excute_command_get_nocrc(char *option_para)
+{
+ int i = 0;
+ T_FLAGS_INFO flags_info = {0};
+
+ if (flags_get_nocrc(&flags_info) != 0)
+ {
+ printf("Err: flags get fail \n");
+ return -1;
+ }
+ else
+ {
+ printf("magic_start = 0x%x \n", flags_info.magic_start);
+
+ printf("boot_fota_flag.boot_to = 0x%x \n", flags_info.boot_fota_flag.boot_to);
+ printf("boot_fota_flag.fota_status = %u \n", flags_info.boot_fota_flag.fota_status);
+ printf("boot_fota_flag.system.status = 0x%x \n", flags_info.boot_fota_flag.system.status);
+ printf("boot_fota_flag.system.try_cnt = %d \n", flags_info.boot_fota_flag.system.try_cnt);
+ printf("boot_fota_flag.system2.status = 0x%x \n", flags_info.boot_fota_flag.system2.status);
+ printf("boot_fota_flag.system2.try_cnt = %d \n", flags_info.boot_fota_flag.system2.try_cnt);
+
+ printf("boot_env.dualsys_type = 0x%x \n", flags_info.boot_env.dualsys_type);
+ printf("boot_env.system_boot_env = %s \n", flags_info.boot_env.system_boot_env);
+ printf("boot_env.system2_boot_env = %s \n", flags_info.boot_env.system2_boot_env);
+
+ printf("ubifs_status.fs_status = %d \n", flags_info.ubifs_status.fs_status);
+ printf("ubifs_status.fs_mtd_name = %s \n", flags_info.ubifs_status.fs_mtd_name);
+ printf("ubifs_status.fs_ubi_vol_name = %s \n", flags_info.ubifs_status.fs_ubi_vol_name);
+
+ printf("nvro_flag = %u \n", flags_info.nvro_flag);
+ printf("crc32 = %u \n", flags_info.crc32);
+
+ printf("ota_system = %d \n", flags_info.ota_system);
+
+ for (i = 0; i < OTA_PARTITION_NUM_MAX; i++)
+ {
+ printf("index=%d, mtdnum=%d, len=%u \n", i, flags_info.ota_partiton_info[i].mtdnum, flags_info.ota_partiton_info[i].len);
+ }
+
+ printf("magic_end = 0x%x \n", flags_info.magic_end);
+
+ return 0;
+ }
+}
+
+
+static int excute_command_set_nocrc(char *option_para)
+{
+ T_FLAGS_INFO flags_info = {0};
+
+ const char delim[2] = ",";
+ char *token_1 = NULL;
+ char *token_2 = NULL;
+ char *token_3 = NULL;
+ char *token_4 = NULL;
+ char *token_5 = NULL;
+ char *token_6 = NULL;
+
+ if (NULL == option_para)
+ {
+ usage();
+ printf("Command input invalid value! null option parameters! \n");
+ return -1;
+ }
+
+ if (flags_get_nocrc(&flags_info) != 0)
+ {
+ printf("Err: flags get fail \n");
+ return -1;
+ }
+
+ token_1 = strtok(option_para, delim);
+ if (NULL == token_1)
+ {
+ printf("token_1 delim fail: NULL \n");
+ return -1;
+ }
+
+ token_2 = strtok(NULL, delim);
+ if (NULL == token_2)
+ {
+ printf("token_2 delim fail: NULL \n");
+ return -1;
+ }
+
+ token_3 = strtok(NULL, delim);
+ if (NULL == token_3)
+ {
+ printf("token_3 delim fail: NULL \n");
+ return -1;
+ }
+
+ token_4 = strtok(NULL, delim);
+ if (NULL == token_4)
+ {
+ printf("token_4 delim fail: NULL \n");
+ return -1;
+ }
+
+ token_5 = strtok(NULL, delim);
+ if (NULL == token_5)
+ {
+ printf("token_5 delim fail: NULL \n");
+ return -1;
+ }
+
+ token_6 = strtok(NULL, delim);
+ if (NULL != token_6)
+ {
+ printf("too many command input, fail \n");
+ return -1;
+ }
+
+ flags_info.boot_fota_flag.system2.try_cnt = atoi(token_1);
+
+ strncpy(flags_info.boot_env.system_boot_env, token_2, sizeof(flags_info.boot_env.system_boot_env));
+
+ flags_info.ubifs_status.fs_status = atoi(token_3);
+ strncpy(flags_info.ubifs_status.fs_mtd_name, token_4, sizeof(flags_info.ubifs_status.fs_mtd_name));
+
+ flags_info.magic_end = atoi(token_5);
+
+ if (flags_set_nocrc(&flags_info) != 0)
+ {
+ printf("Err: set flags fail \n");
+ return -1;
+ }
+ else
+ {
+ printf("Log: set flags success \n");
+ return 0;
+ }
+}
+
+
/*******************************************************************************
* Global function declarations *
******************************************************************************/
diff --git a/ap/app/fota_upi_ab/Makefile b/ap/app/fota_upi_ab/Makefile
index e3dfcfd..2a0ea46 100755
--- a/ap/app/fota_upi_ab/Makefile
+++ b/ap/app/fota_upi_ab/Makefile
@@ -70,7 +70,8 @@
LDLIBS += -lpthread
LDLIBS += -lsoftap
-LDLIBS += -lnvram_sc
+LDLIBS += -lnvram_sc
+LDLIBS += -lflags -L$(zte_lib_path)/libflags
# SHA512 functions in libcrypto.a not libssl
#LDLIBS += -lssl
diff --git a/ap/app/hostapd-2.10/hostapd/libwpa_client.a b/ap/app/hostapd-2.10/hostapd/libwpa_client.a
index 4625963..f24fcc8 100755
--- a/ap/app/hostapd-2.10/hostapd/libwpa_client.a
+++ b/ap/app/hostapd-2.10/hostapd/libwpa_client.a
Binary files differ
diff --git a/ap/app/include/at_msg.h b/ap/app/include/at_msg.h
index 943e126..024dcca 100755
--- a/ap/app/include/at_msg.h
+++ b/ap/app/include/at_msg.h
@@ -304,11 +304,18 @@
/* ¶ÔÓ¦VOLTEÓëAT_CTLÖ®¼ä½»»¥µÄÏûÏ¢MSG_CMD_FD2_VOLTE_TO_ATCTL/MSG_CMD_FD2_ATCTL_TO_VOLTE */
typedef struct
{
- char msg_data[MSG_DATA_MAX_LEN-12];
- int msg_len;
int at_fd;
+ int msg_len;
+ char msg_data[MSG_DATA_MAX_LEN-12];
}VOLTE_MSG_DATA;
+typedef struct
+{
+ int at_fd;
+ int msg_len;
+ char msg_data[];
+}VOLTE_MSG_DATA_HEAD;
+
#endif
diff --git a/ap/app/include/flags_api.h b/ap/app/include/flags_api.h
index c779ef4..ac2db80 100755
--- a/ap/app/include/flags_api.h
+++ b/ap/app/include/flags_api.h
@@ -1,6 +1,6 @@
/**
* @file flags_api.h
- * @brief flags分区接口
+ * @brief flags·ÖÇø½Ó¿Ú
*
* Copyright (C) 2023 Sanechips Technology Co., Ltd.
* @author
@@ -8,7 +8,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation. (必选:GPLv2 Licence)
+ * published by the Free Software Foundation. £¨±ØÑ¡£ºGPLv2 Licence£©
*
*/
@@ -42,59 +42,59 @@
* Global function declarations *
******************************************************************************/
/**
- * @brief 初始化flags分区
- * @param[out] p_flags_info flags初始化数据
- * @return 0 初始化成功, -1 初始化失败
+ * @brief ³õʼ»¯flags·ÖÇø
+ * @param[out] p_flags_info flags³õʼ»¯Êý¾Ý
+ * @return 0 ³õʼ»¯³É¹¦, -1 ³õʼ»¯Ê§°Ü
* @note
*/
int flags_init();
/**
- * @brief 获取flags分区内容
- * @param[out] p_flags_info flags分区内容
- * @return 0 获取成功, -1 获取失败
+ * @brief »ñÈ¡flags·ÖÇøÄÚÈÝ
+ * @param[out] p_flags_info flags·ÖÇøÄÚÈÝ
+ * @return 0 »ñÈ¡³É¹¦, -1 »ñȡʧ°Ü
* @note
*/
int flags_get(T_FLAGS_INFO *p_flags_info);
/**
- * @brief 设置flags分区内容
- * @param[out] p_flags_info flags分区内容
- * @return 0 设置成功, -1 设置失败
+ * @brief ÉèÖÃflags·ÖÇøÄÚÈÝ
+ * @param[in] p_flags_info flags·ÖÇøÄÚÈÝ
+ * @return 0 ÉèÖóɹ¦, -1 ÉèÖÃʧ°Ü
* @note
*/
int flags_set(T_FLAGS_INFO *p_flags_info);
/**
- * @brief 获取flags分区中ubifs状态
- * @param[out] status ubifs状态
- * @return 0 获取成功, -1 获取失败
+ * @brief »ñÈ¡flags·ÖÇøÖÐubifs״̬
+ * @param[out] status ubifs״̬
+ * @return 0 »ñÈ¡³É¹¦, -1 »ñȡʧ°Ü
* @note
*/
int flags_get_ubifs_status(T_UBIFS_STATUS *p_ubifs_status);
/**
- * @brief 设置flags分区中ubifs状态
- * @param[in] status ubifs状态
- * @return 0 设置成功, -1 设置失败
+ * @brief ÉèÖÃflags·ÖÇøÖÐubifs״̬
+ * @param[in] status ubifs״̬
+ * @return 0 ÉèÖóɹ¦, -1 ÉèÖÃʧ°Ü
* @note
*/
int flags_set_ubifs_status(T_UBIFS_STATUS *p_ubifs_status);
/**
- * @brief 获取当前系统
- * @return 当前运行系统
+ * @brief »ñÈ¡µ±Ç°ÏµÍ³
+ * @return µ±Ç°ÔËÐÐϵͳ
* @note
*/
int flags_get_current_system();
/**
- * @brief »ñÈ¡flags·ÖÇøÖÐnvro_flag״̬
+ * @brief »ñÈ¡flags·ÖÇøÖÐnvro_flag״̬
* @param[out]
* @return nvro_flag
* @note
@@ -102,13 +102,52 @@
unsigned int flags_get_nvroflag(void);
/**
- * @brief ÉèÖÃflags·ÖÇøÖÐnvro_flag
- * @param[in] flag nvro״̬
- * @return 0 ÉèÖóɹ¦, -1 ÉèÖÃʧ°Ü
+ * @brief ÉèÖÃflags·ÖÇøÖÐnvro_flag
+ * @param[in] flag nvro״̬
+ * @return 0 ÉèÖóɹ¦, -1 ÉèÖÃʧ°Ü
* @note
*/
int flags_set_nvroflag(unsigned int flag);
+/**
+ * @brief »ñÈ¡flags·ÖÇøÄÚÈÝ(ÎÞCRC)
+ * @param[out] p_flags_info flags·ÖÇøÄÚÈÝ
+ * @return 0 »ñÈ¡³É¹¦, -1 »ñȡʧ°Ü
+ * @note ´ËAPI½öÓÃÓÚµ÷²â£¬Õýʽ´úÂë²»¿ÉʹÓÃ
+
+ */
+int flags_get_nocrc(T_FLAGS_INFO *p_flags_info);
+
+
+/**
+ * @brief ÉèÖÃflags·ÖÇøÄÚÈÝ(ÎÞCRC)
+ * @param[in] p_flags_info flags·ÖÇøÄÚÈÝ
+ * @return 0 ÉèÖóɹ¦, -1 ÉèÖÃʧ°Ü
+ * @note ´ËAPI½öÓÃÓÚµ÷²â£¬Õýʽ´úÂë²»¿ÉʹÓÃ
+ */
+int flags_set_nocrc(T_FLAGS_INFO *p_flags_info);
+
+
+/**
+ * @brief ³õʼ»¯CRC32Âë±í(С¶Ë)
+ * @param ÎÞ
+ * @return ÎÞ
+ * @note
+ */
+void crc32init_le(void);
+
+
+/**
+ * @brief ¼ÆËãCRC32УÑéÂë(С¶Ë)
+ * @param[in] crc ³õʼֵ
+ * @param[in] p ÐèÒª¼ÆËãCRC32УÑéÂëµÄÊý¾ÝbufferÖ¸Õë
+ * @param[in] len buffer @pµÄ´óС
+ * @return ¼ÆËãËùµÃµÄCRC32УÑéÂë
+ * @note
+ */
+unsigned int crc32_le(unsigned int crc, unsigned char const *p, size_t len);
+
+
#endif // FLAGS_API_H
diff --git a/ap/app/syslog_monitor/Makefile b/ap/app/syslog_monitor/Makefile
new file mode 100755
index 0000000..e131b47
--- /dev/null
+++ b/ap/app/syslog_monitor/Makefile
@@ -0,0 +1,35 @@
+#*******************************************************************************
+#*******************************************************************************
+include $(COMMON_MK)
+
+##############USER COMIZE BEGIN################
+EXEC1 = syslog_monitor
+
+OBJS1 = syslog_monitor.o
+
+CFLAGS += -I.
+CFLAGS += -I$(APP_DIR)/include
+CFLAGS += -I./../inc
+
+CFLAGS += -g -Werror=implicit-function-declaration
+
+
+LDLIBS +=
+
+##############USER COMIZE END##################
+
+#*******************************************************************************
+# targets
+#*******************************************************************************
+all: $(EXEC1)
+
+$(EXEC1): $(OBJS1)
+ $(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
+ @cp $@ $@.elf
+
+romfs:
+ $(ROMFSINST) $(EXEC1) /bin/$(EXEC1)
+
+clean:
+ -@rm -f $(EXEC1) *.elf *.gdb *.o
+
diff --git a/ap/app/syslog_monitor/syslog_monitor.c b/ap/app/syslog_monitor/syslog_monitor.c
new file mode 100755
index 0000000..2daedde
--- /dev/null
+++ b/ap/app/syslog_monitor/syslog_monitor.c
@@ -0,0 +1,93 @@
+/*******************************************************************************
+ * 版权所有 (C)2023, 深圳市中兴微电子技术有限公司。
+ *
+ * 文件名称: syslog_monitor.c
+ * 文件标识: syslog_monitor
+ * 内容摘要: V3V平台AP核syslog控制模块
+ * 使用方法:
+ *
+ * 修改日期 版本号 修改标记 修改人 修改内容
+ * ------------------------------------------------------------------------------
+ * 2023/09/20 V1.0 Create guowei 创建
+ *
+ *******************************************************************************/
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <stdint.h>
+#include <unistd.h>
+#include <errno.h>
+#include <sys/ipc.h>
+#include <sys/msg.h>
+
+#define MAX_BUFFER_SIZE 1024
+#define SLOG_KEY 0xFFFF6C67
+#define RLOG_KEY 0xFFFF4C47
+
+// Define message queue structure
+struct msg_buffer {
+ long msg_type;
+ char msg[MAX_BUFFER_SIZE];
+} message;
+
+main(int argc,char *argv[])
+{
+ key_t snd_key = SLOG_KEY;
+ key_t rcv_key = RLOG_KEY;
+ int snd_msg_id = 0;
+ int rcv_msg_id = 0;
+ size_t bytesRead = 0;
+ int ret = 0;
+ FILE *fp = NULL;
+
+ rcv_msg_id = msgget(rcv_key, 0666 | IPC_CREAT); //create message queue and return id
+ snd_msg_id = msgget(snd_key, 0666 | IPC_CREAT); //create message queue and return id
+ //printf("syslog_monitor: recver message id %d sender message is %d\n", rcv_msg_id, snd_msg_id);
+
+ while(1)
+ {
+ ret = msgrcv(rcv_msg_id, &message, sizeof(message), 1, 0); //used to receive message
+ // display the message
+ printf("syslog_monitor: receive message content is %s \n", message.msg);
+ if (!ret)
+ {
+ printf("syslog_monitor: received from cap-core message error");
+ return -1;
+ }
+
+ // exec received commond
+ fp = popen(message.msg, "r");
+ if (fp == NULL) {
+ printf("syslog_monitor: exec %s commond fail \n", message.msg);
+ return -1;
+ }
+
+ while (!feof(fp))
+ {
+ bytesRead = fread(message.msg, sizeof(char), sizeof(message.msg) - 1, fp);
+ if (bytesRead == 0)
+ {
+ if (errno == EINTR)
+ {
+ continue;
+ }
+ else
+ {
+ break;
+ }
+ }
+ }
+
+ message.msg[bytesRead] = '\0';
+ //printf("syslog_monitor: %s", message.msg);
+ pclose(fp);
+
+ ret = msgsnd(snd_msg_id, &message, sizeof(message), 0); //send message
+ printf("syslog_monitor: send message content is %s \n", message.msg);
+
+ }
+
+ return 0;
+}
+
diff --git a/ap/app/wpa_supplicant-2.10/wpa_supplicant/libwpa_client.a b/ap/app/wpa_supplicant-2.10/wpa_supplicant/libwpa_client.a
index 21b156b..7628839 100755
--- a/ap/app/wpa_supplicant-2.10/wpa_supplicant/libwpa_client.a
+++ b/ap/app/wpa_supplicant-2.10/wpa_supplicant/libwpa_client.a
Binary files differ
diff --git a/ap/app/zte_amt/amt.c b/ap/app/zte_amt/amt.c
index 5280171..0557c0f 100755
--- a/ap/app/zte_amt/amt.c
+++ b/ap/app/zte_amt/amt.c
@@ -235,7 +235,7 @@
char s1[100] = "";
char s2[50] = "";
memset(s1, 0, sizeof(s1));
- strncpy(s1, str,sizeof(s1) - 1);
+ memcpy(s1, str,sizeof(s1) - 1);
strcat(s1, ",");
Begb = s1; //ÆðʼµØÖ·
Endb = strchr(s1,','); //µÚÒ»¸ö¶ººÅλÖÃ
@@ -247,10 +247,10 @@
Len = 0;
Len = Endb - Begb; //³¤¶È
memset(s2, 0, sizeof(s2)); //½ØÈ¡Á½¸ö¶ººÅ¼äµÄ×Ö·û´®
- strncpy(s2, Begb, sizeof(s2) - 1); //½ØÈ¡Á½¸ö¶ººÅ¼äµÄ×Ö·û´®
+ memcpy(s2, Begb, sizeof(s2) - 1); //½ØÈ¡Á½¸ö¶ººÅ¼äµÄ×Ö·û´®
data[Lc] = atof(s2); //string to int
ptr = Endb + 1; //Ö¸ÏòϸöÊýµÄÆðʼµØÖ·
- strncpy(s1, ptr, sizeof(s1) - 1); //È¥µôÒÑת»¯µÄ×Ö·û´®
+ memcpy(s1, ptr, 99); //È¥µôÒÑת»¯µÄ×Ö·û´®
Begb = s1; //ÆðʼµØÖ·¸üÐÂ
Endb = strchr(s1,','); //ϸö¶ººÅλÖÃ
Lc++;
@@ -734,6 +734,36 @@
/**
+ * @brief ¼ÓÔØ°®¿ÆÎ¢WIFI¹Ì¼þ
+ * @param[in] args Ï̺߳¯Êý²ÎÊý
+ * @return N/A
+ * @note
+ * @see
+ */
+static void* LoadWifiFirmwareThread(void* args)
+{
+ int ret = -1;
+ UNUSED(args);
+
+ prctl(PR_SET_NAME, "LoadWifiFirmwareThread");
+
+ #if (defined(__AIC_8800DW_CHIP__))
+ ret = wifi_ioctl_handle(3); //¼ÓÔØ²âÊԹ̼þ
+ if(ret < 0)
+ {
+ AmtPrintf(AMT_ERROR "%s: load AIC_8800DW firmware fail! ret=%d.\n", __FUNCTION__, ret);
+ }
+ else
+ {
+ AmtPrintf(AMT_INFO "%s: load AIC_8800DW firmware success! ret=%d.\n", __FUNCTION__, ret);
+ }
+ #endif
+
+ return NULL;
+}
+
+
+/**
* @brief AMTÏûÏ¢´ò°ü·¢¸øCP
* @param[in] fd ÎļþÃèÊö·û
* @param[in] msg_id FID
@@ -1791,7 +1821,7 @@
set_fd(g_amt_fd_usb_hotplug);
}
}
-
+
/*********************** Create socket ***********************/
if (socket_port > 0)
{
@@ -1870,6 +1900,15 @@
}
//¼ÓÔØaic8800¹Ì¼þ
+ // Create load wifi firmware thread
+ pthread_t load_wifi_firmware_thread;
+ if (pthread_create(&load_wifi_firmware_thread, NULL, LoadWifiFirmwareThread, NULL) != 0)
+ {
+ AmtPrintf(AMT_ERROR "Failed to create load wifi firmware thread!\n");
+ return -1;
+ }
+
+ #if 0
#if (defined(__AIC_8800DW_CHIP__))
ret = wifi_ioctl_handle(3); //¼ÓÔØ²âÊԹ̼þ
if(ret < 0)
@@ -1881,7 +1920,8 @@
AmtPrintf(AMT_INFO "%s: load AIC_8800DW firmware success! ret=%d.\n", __FUNCTION__, ret);
}
#endif
-
+ #endif
+
g_amt_at_mode = is_amt_atmode();
AmtPrintf(AMT_INFO"%s: g_amt_at_mode=%d\n", __FUNCTION__,g_amt_at_mode);
@@ -1929,16 +1969,19 @@
if (g_amt_fd_usb >= 0)
{
- close(g_amt_fd_usb);
- clr_fd(g_amt_fd_usb);
- g_amt_fd_usb = -1;
+ AmtPrintf(AMT_INFO "amt already open usb,do nothing\n");
+ //close(g_amt_fd_usb);
+ //clr_fd(g_amt_fd_usb);
+ //g_amt_fd_usb = -1;
}
-
- g_amt_fd_usb = init_usb_device();
- if (g_amt_fd_usb >= 0)
+ else
{
- AmtPrintf(AMT_INFO "g_amt_fd_usb = %d.\n", g_amt_fd_usb);
- set_fd(g_amt_fd_usb);
+ g_amt_fd_usb = init_usb_device();
+ if (g_amt_fd_usb >= 0)
+ {
+ AmtPrintf(AMT_INFO "g_amt_fd_usb = %d.\n", g_amt_fd_usb);
+ set_fd(g_amt_fd_usb);
+ }
}
}
}
diff --git a/ap/app/zte_comm/at_ctl/src/atconfig/extat_softap_register.c b/ap/app/zte_comm/at_ctl/src/atconfig/extat_softap_register.c
index aa544ac..1299c82 100755
--- a/ap/app/zte_comm/at_ctl/src/atconfig/extat_softap_register.c
+++ b/ap/app/zte_comm/at_ctl/src/atconfig/extat_softap_register.c
@@ -368,6 +368,7 @@
register_serv_func2("ZRESET",MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_REQUEST,MSG_CMD_RESTART_RSP,ext_reset_req,ext_restart_rsp);//½ö¹©Éú²ú²âÊÔÓÃ
register_serv_func2("ZRESTART=",MODULE_ID_MAIN_CTRL,MSG_CMD_RESTART_REQUEST,MSG_CMD_RESTART_RSP,ext_restart_req,ext_restart_rsp);//ZRESTART=0,0,²ÎÊý1±íʾRESET /RESTART£¬²ÎÊý2±íʾʵ¼ÊÖØÆô²Ù×÷ÊÇ·ñÓɱ¾ºË×Ô¼ºÊµÏÖ
register_serv_func("TC_CONTROL=",MODULE_ID_MAIN_CTRL,ext_tc_control_func);
+#ifndef USE_CAP_SUPPORT
register_serv_func("ATV", 0, ext_atv_set_func);
register_serv_func("ATQ", 0, ext_atq_set_func);
register_serv_func("W", 0, ext_at_w_set_func);
@@ -377,6 +378,7 @@
register_serv_func("D1", 0, ext_at_d1_set_func);
register_serv_func("D2", 0, ext_at_d2_set_func);
register_serv_func("VSIMDEBUG=", 0, ext_vsim_debug_func);
+#endif
register_serv_func("ZDNS=", 0, ext_zdns_func);
}
diff --git a/ap/app/zte_comm/at_ctl/src/atctrl/at_com.c b/ap/app/zte_comm/at_ctl/src/atctrl/at_com.c
index 4203e19..78538a1 100755
--- a/ap/app/zte_comm/at_ctl/src/atctrl/at_com.c
+++ b/ap/app/zte_comm/at_ctl/src/atctrl/at_com.c
@@ -788,14 +788,14 @@
if(fd >= MODULE_ID_ATCTL_TO_VOLTE && fd < MODULE_ID_ATCTL_TO_VOLTE+VOLTE_PTY1_MAX)
{
volte_msg.at_fd = fd - MODULE_ID_ATCTL_TO_VOLTE+1;
- ret = ipc_send_message(MODULE_ID_AT_CTL, MODULE_ID_VOLTE, MSG_CMD_FD1_ATCTL_TO_VOLTE, sizeof(VOLTE_MSG_DATA), (unsigned char *)&volte_msg, IPC_NOWAIT);
+ ret = ipc_send_message(MODULE_ID_AT_CTL, MODULE_ID_VOLTE, MSG_CMD_FD1_ATCTL_TO_VOLTE, volte_msg.msg_len+sizeof(VOLTE_MSG_DATA_HEAD), (unsigned char *)&volte_msg, IPC_NOWAIT);
at_print(AT_ERR,"====>FD1_ATCTL_TO_VOLTE len=%d str=%s\n", len, get_small_str(buf));
while(ret == 0 && snd_len < len)
{/*»¹Ã»·¢Íê¼ÌÐø*/
int next_len = 0;
if((len - snd_len) >= sizeof(volte_msg.msg_data))
{
- next_len = sizeof(volte_msg.msg_data) - 1;
+ next_len = sizeof(volte_msg.msg_data) - 1;
}
else
{
@@ -804,7 +804,7 @@
memset(volte_msg.msg_data, 0x00, sizeof(volte_msg.msg_data));
memcpy(volte_msg.msg_data, buf+snd_len, next_len);
volte_msg.msg_len = next_len;
- ret = ipc_send_message(MODULE_ID_AT_CTL, MODULE_ID_VOLTE, MSG_CMD_FD1_ATCTL_TO_VOLTE, sizeof(VOLTE_MSG_DATA), (unsigned char *)&volte_msg, IPC_NOWAIT);
+ ret = ipc_send_message(MODULE_ID_AT_CTL, MODULE_ID_VOLTE, MSG_CMD_FD1_ATCTL_TO_VOLTE, volte_msg.msg_len+sizeof(VOLTE_MSG_DATA_HEAD), (unsigned char *)&volte_msg, IPC_NOWAIT);
at_print(AT_ERR,"====>FD1_ATCTL_TO_VOLTE+%d str=%s\n", snd_len, get_small_str(buf+snd_len));
snd_len = snd_len + next_len;
}
@@ -813,7 +813,7 @@
{
volte_msg.at_fd = fd - MODULE_ID_VOLTE_TO_ATCTL+1;
- ret = ipc_send_message(MODULE_ID_AT_CTL, MODULE_ID_VOLTE, MSG_CMD_FD2_ATCTL_TO_VOLTE, sizeof(VOLTE_MSG_DATA), (unsigned char *)&volte_msg, IPC_NOWAIT);
+ ret = ipc_send_message(MODULE_ID_AT_CTL, MODULE_ID_VOLTE, MSG_CMD_FD2_ATCTL_TO_VOLTE, volte_msg.msg_len+sizeof(VOLTE_MSG_DATA_HEAD), (unsigned char *)&volte_msg, IPC_NOWAIT);
at_print(AT_ERR,"====>FD2_ATCTL_TO_VOLTE len=%d str=%s, fd=%d\n", len, get_small_str(buf), volte_msg.at_fd);
while(ret == 0 && snd_len < len)
{/*»¹Ã»·¢Íê¼ÌÐø*/
@@ -829,7 +829,7 @@
memset(volte_msg.msg_data, 0x00, sizeof(volte_msg.msg_data));
memcpy(volte_msg.msg_data, buf+snd_len, next_len);
volte_msg.msg_len = next_len;
- ret = ipc_send_message(MODULE_ID_AT_CTL, MODULE_ID_VOLTE, MSG_CMD_FD2_ATCTL_TO_VOLTE, sizeof(VOLTE_MSG_DATA), (unsigned char *)&volte_msg, IPC_NOWAIT);
+ ret = ipc_send_message(MODULE_ID_AT_CTL, MODULE_ID_VOLTE, MSG_CMD_FD2_ATCTL_TO_VOLTE, volte_msg.msg_len+sizeof(VOLTE_MSG_DATA_HEAD), (unsigned char *)&volte_msg, IPC_NOWAIT);
at_print(AT_ERR,"====>FD2_ATCTL_TO_VOLTE+%d str=%s\n", snd_len, get_small_str(buf+snd_len));
snd_len = snd_len + next_len;
}
diff --git a/ap/app/zte_comm/at_ctl/src/atctrl/at_rcvmsg.c b/ap/app/zte_comm/at_ctl/src/atctrl/at_rcvmsg.c
index 0ca983b..6085a1d 100755
--- a/ap/app/zte_comm/at_ctl/src/atctrl/at_rcvmsg.c
+++ b/ap/app/zte_comm/at_ctl/src/atctrl/at_rcvmsg.c
@@ -1299,7 +1299,6 @@
return NULL;
}
-
/*ת·¢·½Ê½Èº·¢AT×Ö·û´®Á÷*/
static void fwd_all_at_str(int fd, char *at_str)
{
@@ -1337,7 +1336,6 @@
}
if(ret < 0)
{/*дʧ°Ü·ÀֹͨµÀ¶ÂÈû*/
-//xf.li@20230930 modify for DRDI start
#ifdef USE_CAP_SUPPORT
struct at_context * context = NULL;
if((context = at_context_find_ctx_by_fd_type(fd, AT_FWD_DOWN)) != 0){
@@ -1351,7 +1349,7 @@
}
}
}
-//xf.li@20230930 modify for DRDI end
+
/*¶Ô½ÓÊÕµ½µÄATÃüÁî×Ö·û´®½øÐе¥¸ö×Ö·û´®´¦Àí ´¦Àí´Ó"at_recv_thread"Ï̴߳«À´µÄATͨµÀÏûÏ¢¡£¸ù¾Ý½ÓÊÕµ½µÄatÃüÁî×Ö·û´®£¬
×é×°ºÍÖØ×é³ÉÍêÕûµÄatÃüÁ²¢´¦Àí¡£*/
int rcv_at_str_proc(int at_fd, char *at_str, int at_len)
diff --git a/ap/app/zte_comm/nvserver/nvserver.c b/ap/app/zte_comm/nvserver/nvserver.c
index c32915c..d54ff01 100755
--- a/ap/app/zte_comm/nvserver/nvserver.c
+++ b/ap/app/zte_comm/nvserver/nvserver.c
@@ -31,76 +31,73 @@
file,char*key,char*value);static int nvunset(char*file,char*key);static int
nvclear(char*file);static int nvreset(char*file);static int nvcommit(char*file);
T_NV_NODE*nv_list;int nvserver_main(int argc,char*argv[]){int msgId=
-(0x12f7+3751-0x219e);T_NV_MSG_INFO rcvBuf;T_NV_MSG_RESULT sndBuf;struct msqid_ds
+(0x1264+3956-0x21d8);T_NV_MSG_INFO rcvBuf;T_NV_MSG_RESULT sndBuf;struct msqid_ds
msgInfo;prctl(PR_SET_NAME,"\x6e\x76\x73\x65\x72\x76\x65\x72",
-(0x1b19+3016-0x26e1),(0x1537+569-0x1770),(0x104f+123-0x10ca));memset(&rcvBuf,
-(0x11f1+2613-0x1c26),sizeof(rcvBuf));memset(&sndBuf,(0x13ed+2776-0x1ec5),sizeof(
-sndBuf));memset(&msgInfo,(0x124+6019-0x18a7),sizeof(msgInfo));msgId=msgget(
-MODULE_ID_NV,IPC_CREAT|(0x1d84+2640-0x2654));if(-(0x159b+1393-0x1b0b)==msgId){
+(0x719+5411-0x1c3c),(0xbdc+2885-0x1721),(0x1078+2587-0x1a93));memset(&rcvBuf,
+(0x8eb+7554-0x266d),sizeof(rcvBuf));memset(&sndBuf,(0x1092+167-0x1139),sizeof(
+sndBuf));memset(&msgInfo,(0x551+6097-0x1d22),sizeof(msgInfo));msgId=msgget(
+MODULE_ID_NV,IPC_CREAT|(0x450+8248-0x2308));if(-(0x125f+4961-0x25bf)==msgId){
printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x6d\x73\x67\x67\x65\x74\x20\x6d\x73\x67\x49\x64\x20\x66\x61\x69\x6c\x2c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64" "\n"
-,errno);return-(0x1053+3811-0x1f35);}if(-(0x57b+4811-0x1845)!=msgctl(msgId,
-IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0x186f+926-0x1c0c)==msgctl(
+,errno);return-(0x3f7+8816-0x2666);}if(-(0x1f3f+838-0x2284)!=msgctl(msgId,
+IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0xf26+1228-0x13f1)==msgctl(
msgId,IPC_SET,&msgInfo))printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x6d\x73\x67\x63\x74\x6c\x20\x6d\x73\x67\x49\x64\x20\x66\x61\x69\x6c\x2c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64" "\n"
-,errno);}if(nvDirInit()!=(0xe8f+3530-0x1c59)){printf(
+,errno);}if(nvDirInit()!=(0xbd7+1403-0x1152)){printf(
"\x6e\x76\x44\x69\x72\x49\x6e\x69\x74\x20\x66\x61\x69\x6c\x65\x21" "\n");return-
-(0x5a2+7666-0x2393);}nvConfig();nvInit();while((0x1a6b+3090-0x267c)){if(-
-(0x25ef+225-0x26cf)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
-MSG_TYPE_NV,(0x263+8625-0x2414))){printf(
+(0x1a44+1778-0x2135);}nvConfig();nvInit();while((0xf1a+5589-0x24ee)){if(-
+(0x2088+16-0x2097)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
+MSG_TYPE_NV,(0x1eb3+370-0x2025))){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6d\x73\x67\x72\x63\x76\x20\x66\x61\x69\x6c\x2c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x21" "\n"
-,errno);continue;}analyMsg(&rcvBuf,&sndBuf);if(-(0x11d+5118-0x151a)==msgsnd(
-msgId,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0x19dd+3290-0x26b7))){printf
-(
+,errno);continue;}analyMsg(&rcvBuf,&sndBuf);if(-(0xc53+4627-0x1e65)==msgsnd(
+msgId,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0x7e5+114-0x857))){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6d\x73\x67\x73\x6e\x64\x20\x66\x61\x69\x6c\x2c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x21" "\n"
-,errno);continue;}}return((0xaa+6507-0x1a15));}static void configdir(char*dir){
+,errno);continue;}}return((0x1665+984-0x1a3d));}static void configdir(char*dir){
DIR*dp;int ret;struct dirent*entry;struct stat statbuf;if((dp=opendir(dir))==
NULL){fprintf(stderr,
"\x63\x61\x6e\x6e\x6f\x74\x20\x6f\x70\x65\x6e\x20\x64\x69\x72\x65\x63\x74\x6f\x72\x79\x3a\x20\x25\x73" "\n"
,dir);return;}chdir(dir);while((entry=readdir(dp))!=NULL){ret=lstat(entry->
-d_name,&statbuf);if(ret<(0x88b+3070-0x1489)){fprintf(stderr,
+d_name,&statbuf);if(ret<(0x1dc0+309-0x1ef5)){fprintf(stderr,
"\x6c\x73\x74\x61\x74\x20\x65\x72\x72\x6f\x72\x3a\x20\x25\x73" "\n",strerror(
errno));chdir("\x2e\x2e");closedir(dp);return;}if(!S_ISDIR(statbuf.st_mode)){if(
-strcmp("\x2e",entry->d_name)==(0x11bb+1718-0x1871)||strcmp("\x2e\x2e",entry->
-d_name)==(0x4ab+2378-0xdf5))continue;if(!isNvConfiged(entry->d_name)){if(
+strcmp("\x2e",entry->d_name)==(0xc1c+6093-0x23e9)||strcmp("\x2e\x2e",entry->
+d_name)==(0xa27+312-0xb5f))continue;if(!isNvConfiged(entry->d_name)){if(
addConfigFile(entry->d_name,NULL)!=RESULT_SUCCESS)printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x63\x6f\x6e\x66\x69\x67\x20\x25\x73\x20\x65\x72\x72\x6f\x72\x21" "\n"
,entry->d_name);}}}chdir("\x2e\x2e");closedir(dp);}static void nvConfig(){char*
-val=NULL;FILE*fp=NULL;char buf[NV_MAX_CONFIG_LEN]={(0xdd6+1142-0x124c)};fp=fopen
+val=NULL;FILE*fp=NULL;char buf[NV_MAX_CONFIG_LEN]={(0x2192+152-0x222a)};fp=fopen
(NV_CONFIG_FILE,"\x72\x6f");if(!fp){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x6f\x70\x65\x6e\x20\x25\x73\x20\x66\x69\x6c\x65\x20\x66\x61\x69\x6c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x21" "\n"
,NV_CONFIG_FILE,errno);return;}while(fgets(buf,NV_MAX_CONFIG_LEN,fp)){if(buf[
-(0xaf8+2382-0x1446)]=='\n'||buf[(0x4ed+3799-0x13c4)]==
-((char)(0x1bd9+239-0x1ca5)))continue;val=strchr(buf,((char)(0xab+3859-0xf81)));
-if(!val){printf(
+(0xa91+3923-0x19e4)]=='\n'||buf[(0x190+2562-0xb92)]==((char)(0x8f8+2485-0x128a))
+)continue;val=strchr(buf,((char)(0x124b+4342-0x2304)));if(!val){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x25\x73\x20\x66\x69\x6c\x65\x20\x66\x6f\x72\x6d\x61\x74\x20\x65\x72\x72\x6f\x72\x3a\x20\x73\x74\x72\x20\x3d\x20\x25\x73\x21" "\n"
-,NV_CONFIG_FILE,buf);continue;}buf[strlen(buf)-(0x211b+506-0x2314)]='\0';*val++=
+,NV_CONFIG_FILE,buf);continue;}buf[strlen(buf)-(0x10c+198-0x1d1)]='\0';*val++=
'\0';if(!isCfgConfiged(buf)){if(addConfigFile(val,buf)!=RESULT_SUCCESS)printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x63\x6f\x6e\x66\x69\x67\x20\x25\x73\x20\x65\x72\x72\x6f\x72\x21" "\n"
,buf);}}fclose(fp);configdir(NV_FS_MAIN_PATH);}static int nvDirInit(){if(access(
-NV_FS_PATH,F_OK)!=(0xef0+351-0x104f)){if(mkdir(NV_FS_PATH,(0xe45+2189-0x14e5))!=
-(0xdd7+2382-0x1725)){printf(
+NV_FS_PATH,F_OK)!=(0xd75+5483-0x22e0)){if(mkdir(NV_FS_PATH,(0x1e15+2387-0x257b))
+!=(0x108+2110-0x946)){printf(
"\x6e\x65\x72\x76\x65\x72\x20\x6d\x6b\x64\x69\x72\x20\x25\x73\x20\x66\x61\x6c\x69\x2c\x65\x72\x72\x6e\x6f\x3d\x25\x64" "\n"
-,NV_FS_PATH,errno);return-(0x21c+1486-0x7e9);}if(mkdir(NV_FS_MAIN_PATH,
-(0x9a5+4367-0x18c7))!=(0xb67+4670-0x1da5)){printf(
+,NV_FS_PATH,errno);return-(0x440+6970-0x1f79);}if(mkdir(NV_FS_MAIN_PATH,
+(0xc54+106-0xad1))!=(0xd45+617-0xfae)){printf(
"\x6e\x65\x72\x76\x65\x72\x20\x6d\x6b\x64\x69\x72\x20\x25\x73\x20\x66\x61\x6c\x69\x2c\x65\x72\x72\x6e\x6f\x3d\x25\x64" "\n"
-,NV_FS_MAIN_PATH,errno);return-(0x1332+4518-0x24d7);}if(mkdir(NV_FS_BACKUP_PATH,
-(0xc4b+1819-0x1179))!=(0x116+948-0x4ca)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0x14a+3087-0xd58);}if(mkdir(NV_FS_BACKUP_PATH,
+(0xf23+5183-0x2175))!=(0xd7b+2919-0x18e2)){printf(
"\x6e\x65\x72\x76\x65\x72\x20\x6d\x6b\x64\x69\x72\x20\x25\x73\x20\x66\x61\x6c\x69\x2c\x65\x72\x72\x6e\x6f\x3d\x25\x64" "\n"
-,NV_FS_BACKUP_PATH,errno);return-(0xa21+3359-0x173f);}}else{if(access(
-NV_FS_MAIN_PATH,F_OK)!=(0x12a4+3900-0x21e0)){if(mkdir(NV_FS_MAIN_PATH,
-(0x19b3+2345-0x20ef))!=(0xb1d+6035-0x22b0)){printf(
+,NV_FS_BACKUP_PATH,errno);return-(0x134f+2749-0x1e0b);}}else{if(access(
+NV_FS_MAIN_PATH,F_OK)!=(0x150+79-0x19f)){if(mkdir(NV_FS_MAIN_PATH,
+(0x1bd3+2160-0x2256))!=(0xd5d+582-0xfa3)){printf(
"\x6e\x65\x72\x76\x65\x72\x20\x6d\x6b\x64\x69\x72\x20\x25\x73\x20\x66\x61\x6c\x69\x2c\x65\x72\x72\x6e\x6f\x3d\x25\x64" "\n"
-,NV_FS_MAIN_PATH,errno);return-(0xa7d+6228-0x22d0);}}if(access(NV_FS_BACKUP_PATH
-,F_OK)!=(0xb67+1885-0x12c4)){if(mkdir(NV_FS_BACKUP_PATH,(0xc78+1969-0x123c))!=
-(0x1684+306-0x17b6)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0xa77+5594-0x2050);}}if(access(NV_FS_BACKUP_PATH
+,F_OK)!=(0xa02+7317-0x2697)){if(mkdir(NV_FS_BACKUP_PATH,(0xf57+3051-0x1955))!=
+(0x4b8+694-0x76e)){printf(
"\x6e\x65\x72\x76\x65\x72\x20\x6d\x6b\x64\x69\x72\x20\x25\x73\x20\x66\x61\x6c\x69\x2c\x65\x72\x72\x6e\x6f\x3d\x25\x64" "\n"
-,NV_FS_BACKUP_PATH,errno);return-(0x4ca+7443-0x21dc);}}}return
-(0x18d+8017-0x20de);}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[
-NV_PATH_LEN]={(0x8f8+2022-0x10de)};char nvBackupFile[NV_PATH_LEN]={
-(0x533+1185-0x9d4)};
+,NV_FS_BACKUP_PATH,errno);return-(0x3fc+7803-0x2276);}}}return(0x4b8+1097-0x901)
+;}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[NV_PATH_LEN]={
+(0x1726+3894-0x265c)};char nvBackupFile[NV_PATH_LEN]={(0xebc+4855-0x21b3)};
#ifdef FOTA_AB
-T_FLAGS_INFO flags_info={(0x792+2805-0x1287)};int ret=(0xdd7+4915-0x210a);
+T_FLAGS_INFO flags_info={(0x1d92+2161-0x2603)};int ret=(0xccd+2810-0x17c7);
#endif
for(list=nv_list;list;list=list->next){snprintf(nvMainFile,NV_PATH_LEN,
"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,list->nvFile);snprintf(nvBackupFile,
@@ -108,73 +105,73 @@
nvMainFile)){if(!checkNvFs(nvBackupFile))restoreNvFs(nvBackupFile,nvMainFile);}
else if(checkNvFs(nvBackupFile)){restoreNvFs(nvMainFile,nvBackupFile);}else{
loadFactroyParam(list);nvcommit(list->nvFile);continue;}loadNvFs(list->nvFile);
-if(!strcmp(list->nvFile,NV_CFG)&&get_update_status()==(0x1391+3374-0x20bd)){
+if(!strcmp(list->nvFile,NV_CFG)&&get_update_status()==(0x8eb+5436-0x1e25)){
reloadFactroyParam(list);delete_not_needed(list);nvcommit(list->nvFile);
#ifdef FOTA_AB
ret=flags_get(&flags_info);flags_info.boot_fota_flag.fota_status=
-(0xd9d+2967-0x1934);ret=flags_set(&flags_info);
+(0x8a4+6695-0x22cb);ret=flags_set(&flags_info);
#endif
-}}}uint hash(const char*s){uint hash=(0x1398+1810-0x1aaa);while(*s){hash=
-NV_HASH_MUL*hash+*s++;}return hash;}static int loadFactroyParam(T_NV_NODE*list){
-char*val=NULL;FILE*fp=NULL;T_NV_CONFIG*config=NULL;char buf[NV_MAX_ITEM_LEN]={
-(0x1656+2747-0x2111)};for(config=list->fileList;config;config=config->next){fp=
+}}}uint hash(const char*s){uint hash=(0x53+270-0x161);while(*s){hash=NV_HASH_MUL
+*hash+*s++;}return hash;}static int loadFactroyParam(T_NV_NODE*list){char*val=
+NULL;FILE*fp=NULL;T_NV_CONFIG*config=NULL;char buf[NV_MAX_ITEM_LEN]={
+(0x74c+5431-0x1c83)};for(config=list->fileList;config;config=config->next){fp=
fopen(config->configFile,"\x72\x6f");if(!fp){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x6f\x70\x65\x6e\x20\x25\x73\x20\x66\x69\x6c\x65\x20\x66\x61\x69\x6c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x21" "\n"
,config->configFile,errno);return RESULT_FILE_OPEN_FAIL;}while(fgets(buf,
-NV_MAX_ITEM_LEN,fp)){if(buf[(0x124d+5276-0x26e9)]=='\n'||buf[(0x2df+8093-0x227c)
-]==((char)(0x147+9511-0x264b)))continue;val=strchr(buf,
-((char)(0x163+3723-0xfb1)));if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0xa7d+4960-0x1ddd)]=='\n'||buf[(0x4b+7374-0x1d19)]
+==((char)(0x1b90+498-0x1d5f)))continue;val=strchr(buf,
+((char)(0x5ef+4774-0x1858)));if(!val){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x25\x73\x20\x66\x69\x6c\x65\x20\x66\x6f\x72\x6d\x61\x74\x20\x65\x72\x72\x6f\x72\x3a\x73\x74\x72\x69\x6e\x67\x20\x3d\x20\x25\x73" "\n"
-,config->configFile,buf);continue;}if(buf[strlen(buf)-(0x95f+1394-0xed0)]=='\n')
-buf[strlen(buf)-(0x161a+1921-0x1d9a)]='\0';*val++='\0';nvset(list->nvFile,buf,
-val,(0x1276+3233-0x1f16));}printf(
+,config->configFile,buf);continue;}if(buf[strlen(buf)-(0x294+695-0x54a)]=='\n')
+buf[strlen(buf)-(0x9f+2063-0x8ad)]='\0';*val++='\0';nvset(list->nvFile,buf,val,
+(0xe9a+1174-0x132f));}printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6c\x6f\x61\x64\x46\x61\x63\x74\x72\x6f\x79\x50\x61\x72\x61\x6d\x20\x25\x73\x21" "\n"
,config->configFile);fclose(fp);}return RESULT_SUCCESS;}static bool checkNvFs(
-char*file){int len=(0x1339+1926-0x1abf);int cnt=(0x610+976-0x9e0);FILE*fp=NULL;
-char*buf=NULL;struct stat statbuff={(0x360+2587-0xd7b)};if(stat(file,&statbuff)<
-(0x6a5+1081-0xade))return false;len=statbuff.st_size;if(len<NV_CHECK_SIZE)return
- false;fp=fopen(file,"\x72\x6f");if(!fp)return false;buf=(char*)malloc(len);if(!
-buf){fclose(fp);return false;}cnt=(0x1d50+1685-0x23e5);while(cnt<len){cnt=cnt+
-fread(buf+cnt,(0x641+6863-0x210f),len-cnt,fp);if(ferror(fp)){clearerr(fp);free(
-buf);fclose(fp);return false;}}if(len!=cnt){free(buf);fclose(fp);return false;}
-if(getSum(buf,len-NV_CHECK_SIZE)+NV_FILE_FLAG!=*(uint*)(buf+len-NV_CHECK_SIZE)){
-free(buf);fclose(fp);return false;}free(buf);fclose(fp);return true;}static int
-copyfile(const char*from,const char*to){int fd_to;int fd_from;char buf[
-(0x11f3+7679-0x1ff2)];ssize_t nread;int ret=-(0x387+8070-0x230c);fd_from=open(
-from,O_RDONLY);if(fd_from<(0x1a92+3130-0x26cc))return-(0x2e4+6521-0x1c5b);fd_to=
-open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,(0x899+7759-0x2548));if(fd_to<
-(0x1030+1273-0x1529)){ret=-(0x419+8950-0x270c);goto out_error;}while(
-(0x5f0+5802-0x1c99)){char*out_ptr;ssize_t nwritten;nread=read(fd_from,buf,sizeof
-(buf));if(nread==(0x9eb+6879-0x24ca)){break;}else{if(nread<(0x60a+110-0x678)){if
-(errno==EINTR||errno==EAGAIN){continue;}else{ret=-(0xcb5+5442-0x21f3);goto
-out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,out_ptr,nread);if(nwritten>
-(0xe7f+5947-0x25ba)){nread-=nwritten;out_ptr+=nwritten;}else{if(nwritten<
-(0x1170+2190-0x19fe)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
-(0x1cb9+299-0x1ddf);goto out_error;}}}}while(nread>(0x260+9380-0x2704));}ret=
-fsync(fd_to);if(ret<(0x525+1403-0xaa0)){printf(
+char*file){int len=(0x810+4646-0x1a36);int cnt=(0xf3d+5720-0x2595);FILE*fp=NULL;
+char*buf=NULL;struct stat statbuff={(0x640+1450-0xbea)};if(stat(file,&statbuff)<
+(0x13fa+2513-0x1dcb))return false;len=statbuff.st_size;if(len<NV_CHECK_SIZE)
+return false;fp=fopen(file,"\x72\x6f");if(!fp)return false;buf=(char*)malloc(len
+);if(!buf){fclose(fp);return false;}cnt=(0x6d5+3192-0x134d);while(cnt<len){cnt=
+cnt+fread(buf+cnt,(0x307+8876-0x25b2),len-cnt,fp);if(ferror(fp)){clearerr(fp);
+free(buf);fclose(fp);return false;}}if(len!=cnt){free(buf);fclose(fp);return
+false;}if(getSum(buf,len-NV_CHECK_SIZE)+NV_FILE_FLAG!=*(uint*)(buf+len-
+NV_CHECK_SIZE)){free(buf);fclose(fp);return false;}free(buf);fclose(fp);return
+true;}static int copyfile(const char*from,const char*to){int fd_to;int fd_from;
+char buf[(0x1ee2+5197-0x232f)];ssize_t nread;int ret=-(0x588+7180-0x2193);
+fd_from=open(from,O_RDONLY);if(fd_from<(0x1f95+1128-0x23fd))return-
+(0x245a+579-0x269b);fd_to=open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,
+(0x175d+162-0x165f));if(fd_to<(0x4c1+8532-0x2615)){ret=-(0x11d+8454-0x2220);goto
+ out_error;}while((0x1eb6+1269-0x23aa)){char*out_ptr;ssize_t nwritten;nread=read
+(fd_from,buf,sizeof(buf));if(nread==(0xb4b+1322-0x1075)){break;}else{if(nread<
+(0x45a+2475-0xe05)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
+(0xe81+3639-0x1cb4);goto out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,
+out_ptr,nread);if(nwritten>(0x185d+834-0x1b9f)){nread-=nwritten;out_ptr+=
+nwritten;}else{if(nwritten<(0x27b+4396-0x13a7)){if(errno==EINTR||errno==EAGAIN){
+continue;}else{ret=-(0x3c4+1288-0x8c7);goto out_error;}}}}while(nread>
+(0x1127+2166-0x199d));}ret=fsync(fd_to);if(ret<(0x43+6050-0x17e5)){printf(
"\x53\x79\x6e\x63\x20\x46\x61\x69\x6c\x65\x64\x3a\x25\x73\x2c\x20\x66\x69\x6c\x65\x20\x70\x61\x74\x68\x3a\x25\x73"
-,strerror(errno),to);goto out_error;}if(close(fd_to)<(0x1f3d+1530-0x2537)){fd_to
-=-(0x75f+6431-0x207d);ret=-(0x1e16+1971-0x25c3);goto out_error;}close(fd_from);
-return(0x1989+2493-0x2346);out_error:printf(
+,strerror(errno),to);goto out_error;}if(close(fd_to)<(0x593+932-0x937)){fd_to=-
+(0x303+8160-0x22e2);ret=-(0x840+5848-0x1f12);goto out_error;}close(fd_from);
+return(0x9d9+6531-0x235c);out_error:printf(
"\x63\x6f\x70\x79\x66\x69\x6c\x65\x20\x25\x73\x20\x74\x6f\x20\x25\x73\x20\x65\x72\x72\x6f\x72\x3a\x25\x64" "\n"
-,from,to,ret);close(fd_from);if(fd_to>=(0xfbd+3801-0x1e96))close(fd_to);return
+,from,to,ret);close(fd_from);if(fd_to>=(0xd89+4711-0x1ff0))close(fd_to);return
ret;}static int restoreNvFs(char*dstFile,char*srcFile){if(copyfile(srcFile,
-dstFile)!=(0x1141+5552-0x26f1))return RESULT_FAIL;return RESULT_SUCCESS;}static
-int loadNvFs(char*file){int len=(0x715+4869-0x1a1a);int cnt=(0xb39+3384-0x1871);
+dstFile)!=(0xf3+5077-0x14c8))return RESULT_FAIL;return RESULT_SUCCESS;}static
+int loadNvFs(char*file){int len=(0x11d0+47-0x11ff);int cnt=(0xb50+1938-0x12e2);
FILE*fp=NULL;char*buf=NULL;char*name=NULL;char*value=NULL;char*eq=NULL;struct
-stat statbuff={(0x1297+1527-0x188e)};char nvFile[NV_PATH_LEN]={
-(0xd67+5218-0x21c9)};sprintf(nvFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file)
-;if(stat(nvFile,&statbuff)<(0x975+3867-0x1890))return RESULT_FAIL;len=statbuff.
+stat statbuff={(0x2229+432-0x23d9)};char nvFile[NV_PATH_LEN]={
+(0x1019+355-0x117c)};sprintf(nvFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file)
+;if(stat(nvFile,&statbuff)<(0x5bc+8384-0x267c))return RESULT_FAIL;len=statbuff.
st_size;if(NV_CHECK_SIZE>len)return RESULT_FAIL;fp=fopen(nvFile,"\x72\x6f");if(!
fp)return RESULT_FILE_OPEN_FAIL;len=len-NV_CHECK_SIZE;buf=(char*)malloc(len+
-(0x1cb9+2360-0x25f0));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
-(0x1040+3256-0x1cf8),len+(0x105a+3083-0x1c64));cnt=(0x709+4120-0x1721);while(cnt
-<len){cnt=cnt+fread(buf+cnt,(0x1f0c+584-0x2153),len-cnt,fp);if(ferror(fp)){
-clearerr(fp);fclose(fp);free(buf);return RESULT_FILE_READ_FAIL;}}if(cnt!=len){
-fclose(fp);free(buf);return RESULT_FILE_READ_FAIL;}buf[len]='\0';name=buf;while(
-*name){if(!(eq=strchr(name,((char)(0x1dc8+1952-0x252b))))){break;}*eq='\0';value
-=eq+(0xe5b+1394-0x13cc);nvset(file,name,value,(0x904+4166-0x1949));*eq=
-((char)(0x2d5+5417-0x17c1));name=value+strlen(value)+(0x11+4583-0x11f7);}free(
+(0x1063+1590-0x1698));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
+(0x52b+8061-0x24a8),len+(0xc10+426-0xdb9));cnt=(0x9f5+4230-0x1a7b);while(cnt<len
+){cnt=cnt+fread(buf+cnt,(0x1f6b+403-0x20fd),len-cnt,fp);if(ferror(fp)){clearerr(
+fp);fclose(fp);free(buf);return RESULT_FILE_READ_FAIL;}}if(cnt!=len){fclose(fp);
+free(buf);return RESULT_FILE_READ_FAIL;}buf[len]='\0';name=buf;while(*name){if(!
+(eq=strchr(name,((char)(0x1ad0+1417-0x201c))))){break;}*eq='\0';value=eq+
+(0x1285+3310-0x1f72);nvset(file,name,value,(0xb48+1256-0x102f));*eq=
+((char)(0x1cd6+531-0x1eac));name=value+strlen(value)+(0x1a24+443-0x1bde);}free(
buf);fclose(fp);return RESULT_SUCCESS;}static void analyMsg(T_NV_MSG_INFO*
msgrecv,T_NV_MSG_RESULT*msgsnd){switch(msgrecv->nvType){case MSG_GET:msgsnd->
result=nvget(msgrecv->file,msgrecv->key,msgsnd->value);break;case MSG_SET:msgsnd
@@ -190,100 +187,100 @@
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x70\x61\x72\x61\x6d\x20\x69\x6c\x6c\x65\x67\x61\x6c\x21" "\n"
);return RESULT_INVAL;}if(configFile){newConfig=(T_NV_CONFIG*)malloc(sizeof(
T_NV_CONFIG));if(!newConfig)return RESULT_MALLOC_FAIL;strncpy(newConfig->
-configFile,configFile,NV_PATH_LEN-(0x5e1+2259-0xeb3));newConfig->configFile[
-NV_PATH_LEN-(0x150+8368-0x21ff)]='\0';newConfig->next=NULL;}for(list=nv_list;
-list;list=list->next){if(strcmp(list->nvFile,nvFile)==(0x543+1630-0xba1))break;}
-if(!list){newList=(T_NV_NODE*)malloc(sizeof(T_NV_NODE));if(!newList){if(
+configFile,configFile,NV_PATH_LEN-(0x8a2+3333-0x15a6));newConfig->configFile[
+NV_PATH_LEN-(0x16b3+1461-0x1c67)]='\0';newConfig->next=NULL;}for(list=nv_list;
+list;list=list->next){if(strcmp(list->nvFile,nvFile)==(0x1765+3600-0x2575))break
+;}if(!list){newList=(T_NV_NODE*)malloc(sizeof(T_NV_NODE));if(!newList){if(
newConfig)free(newConfig);return RESULT_MALLOC_FAIL;}newList->next=NULL;strncpy(
-newList->nvFile,nvFile,NV_PATH_LEN-(0x279+4152-0x12b0));newList->nvFile[
-NV_PATH_LEN-(0x211+357-0x375)]='\0';memset(newList->nvTable,(0x1410+3588-0x2214)
-,NV_HASH_LEN*(0xf3f+5903-0x264a));newList->fileList=newConfig;if(!nv_list)
-nv_list=newList;else{newList->next=nv_list->next;nv_list->next=newList;}}else if
-(!list->fileList)list->fileList=newConfig;else{if(newConfig==NULL)return
-RESULT_FAIL;newConfig->next=list->fileList->next;list->fileList->next=newConfig;
-}return RESULT_SUCCESS;}static bool isCfgConfiged(char*configFile){T_NV_NODE*
-list=NULL;T_NV_CONFIG*config=NULL;for(list=nv_list;list;list=list->next){for(
-config=list->fileList;config;config=config->next){if(!strcmp(config->configFile,
-configFile))return true;}}return false;}static bool isNvConfiged(char*nvFile){
-T_NV_NODE*list=NULL;for(list=nv_list;list;list=list->next){if(!strcmp(list->
-nvFile,nvFile))return true;}return false;}static uint getSum(const char*s,int
-len){uint sum=(0x19a0+2329-0x22b9);char*data=(char*)s;while(len-- >
-(0x7c5+6614-0x219b)){sum+=(*data++);}return sum;}static int saveNvFs(char*nvName
-,char*nvFile){int i=(0x105f+3818-0x1f49);int sum=(0xad7+7136-0x26b7);int bufSize
-=(0x14f0+4020-0x24a4);int itemSize=(0x966+63-0x9a5);int ret=(0x504+6213-0x1d49);
-int fp=(0x515+8326-0x259b);char*buf=NULL;T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL
-;for(list=nv_list;list;list=list->next){if(strcmp(list->nvFile,nvName))continue;
-fp=open(nvFile,O_SYNC|O_RDWR|O_CREAT|O_TRUNC,(0x28b+7592-0x1e93));if(fp==-
-(0xc47+1419-0x11d1)){printf(
+newList->nvFile,nvFile,NV_PATH_LEN-(0x15b+6161-0x196b));newList->nvFile[
+NV_PATH_LEN-(0x1696+2418-0x2007)]='\0';memset(newList->nvTable,
+(0xcb2+6342-0x2578),NV_HASH_LEN*(0xb5a+981-0xf2b));newList->fileList=newConfig;
+if(!nv_list)nv_list=newList;else{newList->next=nv_list->next;nv_list->next=
+newList;}}else if(!list->fileList)list->fileList=newConfig;else{if(newConfig==
+NULL)return RESULT_FAIL;newConfig->next=list->fileList->next;list->fileList->
+next=newConfig;}return RESULT_SUCCESS;}static bool isCfgConfiged(char*configFile
+){T_NV_NODE*list=NULL;T_NV_CONFIG*config=NULL;for(list=nv_list;list;list=list->
+next){for(config=list->fileList;config;config=config->next){if(!strcmp(config->
+configFile,configFile))return true;}}return false;}static bool isNvConfiged(char
+*nvFile){T_NV_NODE*list=NULL;for(list=nv_list;list;list=list->next){if(!strcmp(
+list->nvFile,nvFile))return true;}return false;}static uint getSum(const char*s,
+int len){uint sum=(0x1a7+2114-0x9e9);char*data=(char*)s;while(len-- >
+(0x7b4+1064-0xbdc)){sum+=(*data++);}return sum;}static int saveNvFs(char*nvName,
+char*nvFile){int i=(0xe4+4384-0x1204);int sum=(0xea6+5019-0x2241);int bufSize=
+(0x74b+2658-0x11ad);int itemSize=(0x186+9374-0x2624);int ret=(0x192+1292-0x69e);
+int fp=(0x49+3435-0xdb4);char*buf=NULL;T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;
+for(list=nv_list;list;list=list->next){if(strcmp(list->nvFile,nvName))continue;
+fp=open(nvFile,O_SYNC|O_RDWR|O_CREAT|O_TRUNC,(0x13d3+3275-0x1efe));if(fp==-
+(0x1c93+809-0x1fbb)){printf(
"\x6f\x70\x65\x6e\x20\x25\x73\x20\x66\x61\x69\x6c\x2c\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64" "\n"
,nvFile,errno);return RESULT_FILE_OPEN_FAIL;}buf=(char*)malloc(NV_BLOCK_SIZE);if
-(!buf){close(fp);return RESULT_MALLOC_FAIL;}for(i=(0x2db+4563-0x14ae);i<
+(!buf){close(fp);return RESULT_MALLOC_FAIL;}for(i=(0xb2+8813-0x231f);i<
NV_HASH_LEN;i++){for(item=list->nvTable[i];item;item=item->next){if(strcmp(
nvFile,NV_FS_SHOW)&&!item->saveFlag)continue;itemSize=strlen(item->key)+strlen(
-item->value)+(0x3f1+8945-0x26e0);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp,
-buf,bufSize)<(0xeab+6060-0x2657)){printf(
+item->value)+(0x353+439-0x508);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp,
+buf,bufSize)<(0x926+5003-0x1cb1)){printf(
"\x65\x72\x72\x6f\x72\x20\x25\x73\x20\x25\x64\x3a\x20\x77\x72\x69\x74\x65\x20\x66\x61\x69\x6c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64" "\n"
,__FILE__,__LINE__,errno);close(fp);free(buf);return RESULT_FILE_WRITE_FAIL;}sum
-+=getSum(buf,bufSize);bufSize=(0x39b+535-0x5b2);}sprintf(buf+bufSize,
++=getSum(buf,bufSize);bufSize=(0x4f7+8209-0x2508);}sprintf(buf+bufSize,
"\x25\x73\x3d\x25\x73",item->key,item->value);bufSize+=itemSize;}}if(bufSize!=
-(0x1b8+6729-0x1c01)){if(write(fp,buf,bufSize)<(0xe39+2723-0x18dc)){printf(
+(0x15bc+2125-0x1e09)){if(write(fp,buf,bufSize)<(0xd99+3806-0x1c77)){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x77\x72\x69\x74\x65\x20\x66\x61\x69\x6c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64" "\n"
,errno);close(fp);free(buf);return RESULT_FILE_WRITE_FAIL;}sum+=getSum(buf,
-bufSize);}sum+=NV_FILE_FLAG;if(write(fp,&sum,NV_CHECK_SIZE)<(0x2011+387-0x2194))
-{printf(
+bufSize);}sum+=NV_FILE_FLAG;if(write(fp,&sum,NV_CHECK_SIZE)<(0x13bd+2059-0x1bc8)
+){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x77\x72\x69\x74\x65\x20\x66\x61\x69\x6c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64" "\n"
,errno);close(fp);free(buf);return RESULT_FILE_WRITE_FAIL;}ret=fsync(fp);free(
-buf);close(fp);if(ret<(0xf17+905-0x12a0)){printf(
+buf);close(fp);if(ret<(0x2132+278-0x2248)){printf(
"\x53\x79\x6e\x63\x20\x46\x61\x69\x6c\x65\x64\x3a\x25\x73\x2c\x20\x66\x69\x6c\x65\x20\x70\x61\x74\x68\x3a\x25\x73"
,strerror(errno),nvFile);return ret;}return RESULT_SUCCESS;}return
RESULT_NO_FILE;}static int nvget(char*file,char*key,char*value){int index=
-(0x16e0+1509-0x1cc5);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;for(list=nv_list;
+(0x178d+367-0x18fc);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;for(list=nv_list;
list;list=list->next){if(strcmp(list->nvFile,file))continue;index=hash(key)%
NV_HASH_LEN;for(item=list->nvTable[index];item;item=item->next){if(strcmp(item->
-key,key))continue;strncpy(value,item->value,NV_MAX_VAL_LEN-(0xcf7+779-0x1001));
-value[NV_MAX_VAL_LEN-(0x1bc+8288-0x221b)]='\0';return RESULT_SUCCESS;}}return
+key,key))continue;strncpy(value,item->value,NV_MAX_VAL_LEN-(0xba7+6145-0x23a7));
+value[NV_MAX_VAL_LEN-(0x973+6147-0x2175)]='\0';return RESULT_SUCCESS;}}return
RESULT_NO_ITEM;}static int nvset(char*file,const char*key,const char*value,int
-saveFlag){int index=(0xd61+5268-0x21f5);int ret=(0xaaa+2793-0x1593);int
-key_buf_len=(0x135b+3339-0x2066);int value_buf_len=(0x4b+3162-0xca5);T_NV_NODE*
+saveFlag){int index=(0x18a4+469-0x1a79);int ret=(0x1a4d+2893-0x259a);int
+key_buf_len=(0x8dc+6981-0x2421);int value_buf_len=(0xecd+3035-0x1aa8);T_NV_NODE*
list=NULL;T_NV_ITEM*item=NULL;T_NV_ITEM*newItem=NULL;if(NULL==key||NULL==value)
-return RESULT_FAIL;key_buf_len=strlen(key)+(0x644+4271-0x16f2);value_buf_len=
-strlen(value)+(0xce5+642-0xf66);for(list=nv_list;list;list=list->next){if(strcmp
-(list->nvFile,file))continue;index=hash(key)%NV_HASH_LEN;for(item=list->nvTable[
-index];item;item=item->next){if(strcmp(item->key,key))continue;if(saveFlag)item
-->saveFlag=saveFlag;if(!strcmp(item->value,value))return RESULT_SUCCESS;free(
-item->value);item->value=(char*)malloc(value_buf_len);if(!item->value)return
-RESULT_MALLOC_FAIL;strncpy(item->value,value,value_buf_len-(0x11e4+4978-0x2555))
-;item->value[value_buf_len-(0x140f+1407-0x198d)]='\0';return RESULT_SUCCESS;}
-newItem=(T_NV_ITEM*)malloc(sizeof(T_NV_ITEM));if(!newItem)return
-RESULT_MALLOC_FAIL;newItem->key=(char*)malloc(key_buf_len);if(!newItem->key){
-free(newItem);return RESULT_MALLOC_FAIL;}newItem->value=(char*)malloc(
+return RESULT_FAIL;key_buf_len=strlen(key)+(0xdff+3428-0x1b62);value_buf_len=
+strlen(value)+(0xdd3+764-0x10ce);for(list=nv_list;list;list=list->next){if(
+strcmp(list->nvFile,file))continue;index=hash(key)%NV_HASH_LEN;for(item=list->
+nvTable[index];item;item=item->next){if(strcmp(item->key,key))continue;if(
+saveFlag)item->saveFlag=saveFlag;if(!strcmp(item->value,value))return
+RESULT_SUCCESS;free(item->value);item->value=(char*)malloc(value_buf_len);if(!
+item->value)return RESULT_MALLOC_FAIL;strncpy(item->value,value,value_buf_len-
+(0x145d+4451-0x25bf));item->value[value_buf_len-(0x41f+5275-0x18b9)]='\0';return
+ RESULT_SUCCESS;}newItem=(T_NV_ITEM*)malloc(sizeof(T_NV_ITEM));if(!newItem)
+return RESULT_MALLOC_FAIL;newItem->key=(char*)malloc(key_buf_len);if(!newItem->
+key){free(newItem);return RESULT_MALLOC_FAIL;}newItem->value=(char*)malloc(
value_buf_len);if(!newItem->value){free(newItem->key);free(newItem);return
-RESULT_MALLOC_FAIL;}strncpy(newItem->key,key,key_buf_len-(0xbb9+1232-0x1088));
-newItem->key[key_buf_len-(0x178+2228-0xa2b)]='\0';strncpy(newItem->value,value,
-value_buf_len-(0x1bb1+497-0x1da1));newItem->value[value_buf_len-
-(0xe07+3106-0x1a28)]='\0';newItem->next=NULL;newItem->saveFlag=saveFlag;newItem
-->update_flag=(0xd4d+750-0x103b);if(!list->nvTable[index])list->nvTable[index]=
-newItem;else{newItem->next=list->nvTable[index]->next;list->nvTable[index]->next
-=newItem;}return RESULT_SUCCESS;}ret=addConfigFile(file,NULL);if(ret==
+RESULT_MALLOC_FAIL;}strncpy(newItem->key,key,key_buf_len-(0x620+1716-0xcd3));
+newItem->key[key_buf_len-(0x4c5+6324-0x1d78)]='\0';strncpy(newItem->value,value,
+value_buf_len-(0x1962+852-0x1cb5));newItem->value[value_buf_len-
+(0xa01+2559-0x13ff)]='\0';newItem->next=NULL;newItem->saveFlag=saveFlag;newItem
+->update_flag=(0x1dd7+1043-0x21ea);if(!list->nvTable[index])list->nvTable[index]
+=newItem;else{newItem->next=list->nvTable[index]->next;list->nvTable[index]->
+next=newItem;}return RESULT_SUCCESS;}ret=addConfigFile(file,NULL);if(ret==
RESULT_SUCCESS)return nvset(file,key,value,saveFlag);else return ret;}static int
- nvunset(char*file,char*key){int index=(0x5ea+3796-0x14be);T_NV_NODE*list=NULL;
+ nvunset(char*file,char*key){int index=(0x22+4575-0x1201);T_NV_NODE*list=NULL;
T_NV_ITEM*item=NULL;T_NV_ITEM*prev=NULL;for(list=nv_list;list;list=list->next){
if(strcmp(list->nvFile,file))continue;index=hash(key)%NV_HASH_LEN;for(item=list
->nvTable[index];item;prev=item,item=item->next){if(strcmp(item->key,key))
continue;if(!prev)list->nvTable[index]=item->next;else prev->next=item->next;
free(item->key);free(item->value);free(item);return RESULT_SUCCESS;}}return
-RESULT_NO_ITEM;}static int nvreset(char*file){int ret=(0x347+6086-0x1b0d);
+RESULT_NO_ITEM;}static int nvreset(char*file){int ret=(0xed2+2780-0x19ae);
T_NV_NODE*list=NULL;for(list=nv_list;list;list=list->next){if(strcmp(list->
nvFile,file))continue;ret=nvclear(file);if(ret!=RESULT_SUCCESS)return ret;if(
loadFactroyParam(list)!=RESULT_SUCCESS)return RESULT_FAIL;return nvcommit(file);
-}return RESULT_NO_FILE;}static int nvclear(char*file){int i=(0x1de8+954-0x21a2);
+}return RESULT_NO_FILE;}static int nvclear(char*file){int i=(0xa59+6426-0x2373);
T_NV_NODE*list=NULL;T_NV_ITEM*cur=NULL;T_NV_ITEM*item=NULL;for(list=nv_list;list
;list=list->next){if(strcmp(list->nvFile,file))continue;for(i=
-(0xd1d+3193-0x1996);i<NV_HASH_LEN;i++){for(item=list->nvTable[i];item;){cur=item
-;item=item->next;free(cur->key);free(cur->value);free(cur);}list->nvTable[i]=
-NULL;}return RESULT_SUCCESS;}return RESULT_NO_FILE;}static int nvcommit(char*
-file){int ret=(0x1286+2707-0x1d19);char nvMainFile[NV_PATH_LEN]={
-(0x1d0c+1656-0x2384)};char nvBackupFile[NV_PATH_LEN]={(0x101c+1513-0x1605)};
+(0x1767+1796-0x1e6b);i<NV_HASH_LEN;i++){for(item=list->nvTable[i];item;){cur=
+item;item=item->next;free(cur->key);free(cur->value);free(cur);}list->nvTable[i]
+=NULL;}return RESULT_SUCCESS;}return RESULT_NO_FILE;}static int nvcommit(char*
+file){int ret=(0xf60+313-0x1099);char nvMainFile[NV_PATH_LEN]={
+(0x17e7+731-0x1ac2)};char nvBackupFile[NV_PATH_LEN]={(0xb55+6344-0x241d)};
sprintf(nvMainFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file);sprintf(
nvBackupFile,"\x25\x73\x2f\x25\x73",NV_FS_BACKUP_PATH,file);ret=saveNvFs(file,
nvMainFile);if(ret!=RESULT_SUCCESS)return ret;return restoreNvFs(nvBackupFile,
diff --git a/ap/app/zte_comm/nvserver/nvupdate.c b/ap/app/zte_comm/nvserver/nvupdate.c
index 90ec1af..72c1083 100755
--- a/ap/app/zte_comm/nvserver/nvupdate.c
+++ b/ap/app/zte_comm/nvserver/nvupdate.c
@@ -23,83 +23,83 @@
#endif
extern T_NV_NODE*nv_list;
#ifdef FOTA_AB
-int get_update_status(void){T_FLAGS_INFO flags_info={(0xc56+1828-0x137a)};
-unsigned int status=(0xa61+3485-0x17fe);int ret=(0x1f55+1413-0x24da);ret=
+int get_update_status(void){T_FLAGS_INFO flags_info={(0x872+6138-0x206c)};
+unsigned int status=(0xab1+4701-0x1d0e);int ret=(0xbe7+3997-0x1b84);ret=
flags_get(&flags_info);status=flags_info.boot_fota_flag.fota_status;if(status==
-(0x109+7756-0x1f54))return(0xc18+3727-0x1aa5);else return(0x864+3912-0x17ac);}
+(0x77+16-0x86))return(0xf92+977-0x1361);else return(0xcb3+5679-0x22e2);}
#else
-int get_update_status(void){int update_status;FILE*fd=(0x8aa+3942-0x1810);int
+int get_update_status(void){int update_status;FILE*fd=(0x131a+4105-0x2323);int
ret;char*filename=NULL;if(access(FOTA_UPDATE_STATUS_FILE_OLD,R_OK)==
-(0x3f6+8063-0x2375)){filename=FOTA_UPDATE_STATUS_FILE_OLD;}else{filename=
+(0x5c8+593-0x819)){filename=FOTA_UPDATE_STATUS_FILE_OLD;}else{filename=
FOTA_UPDATE_STATUS_FILE;}printf(
"get_update_status, read_update_status from %s\n",filename);fd=fopen(filename,
"\x72\x62\x2b");if(fd==NULL){printf(
"\x5b\x6e\x76\x73\x65\x72\x76\x65\x72\x5d\x75\x70\x64\x61\x74\x65\x5f\x73\x74\x61\x74\x75\x73\x20\x6f\x70\x65\x6e\x20\x20\x65\x72\x72\x6f\x72\x3a\x25\x73" "\n"
,strerror(errno));goto error0;}ret=fscanf(fd,"\x25\x64",(int*)&update_status);if
-(ret<(0x1f00+438-0x20b6)){printf(
+(ret<(0x1814+608-0x1a74)){printf(
"\x67\x65\x74\x20\x69\x6e\x66\x6f\x20\x66\x72\x6f\x6d\x20\x66\x69\x6c\x65\x20\x65\x72\x72\x6f\x72\x3a\x25\x73" "\n"
,strerror(errno));fclose(fd);goto error0;}printf(
"\x75\x70\x64\x61\x74\x65\x5f\x73\x74\x61\x74\x75\x73\x3d\x25\x64" "\n",
-update_status);fclose(fd);return update_status;error0:return-(0x6c9+5426-0x1bfa)
+update_status);fclose(fd);return update_status;error0:return-(0x6a7+2923-0x1211)
;}
#endif
int nvupdate(char*nv_file,char*config_file,const char*key,const char*value,int
-saveFlag){int index=(0x386+929-0x727);int key_buf_len=(0x32c+3352-0x1044);int
-value_buf_len=(0x17a+585-0x3c3);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;
+saveFlag){int index=(0x1f12+1265-0x2403);int key_buf_len=(0x10ca+5671-0x26f1);
+int value_buf_len=(0x10e1+3265-0x1da2);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;
T_NV_ITEM*newItem=NULL;if(NULL==key||NULL==value)return RESULT_FAIL;printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6e\x76\x75\x70\x64\x61\x74\x65\x20\x6e\x76\x5f\x66\x69\x6c\x65\x3a\x25\x73\x20\x6b\x65\x79\x3a\x25\x73\x20\x76\x61\x6c\x75\x65\x3a\x25\x73" "\n"
-,nv_file,key,value);key_buf_len=strlen(key)+(0xc25+402-0xdb6);value_buf_len=
-strlen(value)+(0xd7+5252-0x155a);for(list=nv_list;list;list=list->next){if(
+,nv_file,key,value);key_buf_len=strlen(key)+(0x1078+5412-0x259b);value_buf_len=
+strlen(value)+(0x98b+5218-0x1dec);for(list=nv_list;list;list=list->next){if(
strcmp(list->nvFile,nv_file))continue;index=hash(key)%NV_HASH_LEN;for(item=list
->nvTable[index];item;item=item->next){if(strcmp(item->key,key))continue;if(
saveFlag)item->saveFlag=saveFlag;if(!strcmp(item->value,value)){item->
-update_flag=(0x414+5234-0x1885);printf(
+update_flag=(0xf16+3257-0x1bce);printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6e\x76\x75\x70\x64\x61\x74\x65\x20\x73\x61\x6d\x65\x73\x6b\x69\x70\x3a\x69\x74\x65\x6d\x2d\x3e\x6b\x65\x79\x3a\x25\x73\x20\x69\x74\x65\x6d\x2d\x3e\x76\x61\x6c\x75\x65\x3a\x25\x73\x20\x76\x61\x6c\x75\x65\x3a\x25\x73\x20\x63\x6f\x6e\x66\x69\x67\x5f\x66\x69\x6c\x65\x3a\x25\x73" "\n"
,item->key,item->value,value,config_file);return RESULT_SUCCESS;}if(strstr(
-config_file,"\x75\x73\x65\x72")){if((0x188+5416-0x16af)==item->update_flag){
+config_file,"\x75\x73\x65\x72")){if((0xfcb+1301-0x14df)==item->update_flag){
printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6e\x76\x75\x70\x64\x61\x74\x65\x20\x73\x65\x63\x6f\x6e\x64\x20\x63\x68\x61\x6e\x67\x65\x3a\x69\x74\x65\x6d\x2d\x3e\x6b\x65\x79\x3a\x25\x73\x20\x69\x74\x65\x6d\x2d\x3e\x76\x61\x6c\x75\x65\x3a\x25\x73\x20\x76\x61\x6c\x75\x65\x3a\x25\x73\x20\x63\x6f\x6e\x66\x69\x67\x5f\x66\x69\x6c\x65\x3a\x25\x73" "\n"
,item->key,item->value,value,config_file);}else{item->update_flag=
-(0x91d+139-0x9a7);printf(
+(0xcc5+3362-0x19e6);printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6e\x76\x75\x70\x64\x61\x74\x65\x20\x75\x73\x65\x72\x73\x6b\x69\x70\x3a\x69\x74\x65\x6d\x2d\x3e\x6b\x65\x79\x3a\x25\x73\x20\x69\x74\x65\x6d\x2d\x3e\x76\x61\x6c\x75\x65\x31\x3a\x25\x73\x20\x76\x61\x6c\x75\x65\x3a\x25\x73\x20\x63\x6f\x6e\x66\x69\x67\x5f\x66\x69\x6c\x65\x3a\x25\x73" "\n"
,item->key,item->value,value,config_file);return RESULT_SUCCESS;}}printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6b\x65\x79\x3d\x25\x73\x20\x63\x68\x61\x6e\x67\x65\x20\x76\x61\x6c\x75\x65\x3a\x25\x73\x20\x74\x6f\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x20" "\n"
,item->key,item->value,value);free(item->value);item->value=(char*)malloc(
value_buf_len);if(!item->value)return RESULT_MALLOC_FAIL;strncpy(item->value,
-value,value_buf_len-(0x103d+3904-0x1f7c));item->value[value_buf_len-
-(0x5c8+305-0x6f8)]='\0';item->update_flag=(0x11e2+1934-0x196f);return
+value,value_buf_len-(0x1061+4302-0x212e));item->value[value_buf_len-
+(0x1bcf+1454-0x217c)]='\0';item->update_flag=(0x2673+18-0x2684);return
RESULT_SUCCESS;}newItem=(T_NV_ITEM*)malloc(sizeof(T_NV_ITEM));if(!newItem){
printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x52\x45\x53\x55\x4c\x54\x5f\x4d\x41\x4c\x4c\x4f\x43\x5f\x46\x41\x49\x4c\x31\x20" "\n"
);return RESULT_MALLOC_FAIL;}newItem->key=(char*)malloc(strlen(key)+
-(0xc37+6367-0x2515));if(!newItem->key){free(newItem);printf(
+(0x18ad+1366-0x1e02));if(!newItem->key){free(newItem);printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x52\x45\x53\x55\x4c\x54\x5f\x4d\x41\x4c\x4c\x4f\x43\x5f\x46\x41\x49\x4c\x32" "\n"
);return RESULT_MALLOC_FAIL;}newItem->value=(char*)malloc(value_buf_len);if(!
newItem->value){free(newItem->key);free(newItem);printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x52\x45\x53\x55\x4c\x54\x5f\x4d\x41\x4c\x4c\x4f\x43\x5f\x46\x41\x49\x4c\x33\x20" "\n"
);return RESULT_MALLOC_FAIL;}strncpy(newItem->key,key,key_buf_len-
-(0x11ea+4455-0x2350));newItem->key[key_buf_len-(0x1e75+556-0x20a0)]='\0';strncpy
-(newItem->value,value,value_buf_len-(0x2cd+1769-0x9b5));newItem->value[
-value_buf_len-(0x555+8051-0x24c7)]='\0';newItem->next=NULL;newItem->saveFlag=
-saveFlag;newItem->update_flag=(0x103f+5836-0x270a);printf(
+(0x1c2c+1971-0x23de));newItem->key[key_buf_len-(0x5cc+6410-0x1ed5)]='\0';strncpy
+(newItem->value,value,value_buf_len-(0x11d7+834-0x1518));newItem->value[
+value_buf_len-(0x8d9+7699-0x26eb)]='\0';newItem->next=NULL;newItem->saveFlag=
+saveFlag;newItem->update_flag=(0xd7a+1778-0x146b);printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x61\x64\x64\x20\x6b\x65\x79\x3d\x25\x73\x2c\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x20" "\n"
,newItem->key,newItem->value);if(!list->nvTable[index])list->nvTable[index]=
newItem;else{newItem->next=list->nvTable[index]->next;list->nvTable[index]->next
=newItem;}return RESULT_SUCCESS;}return RESULT_FAIL;}int reloadFactroyParam(
T_NV_NODE*list){char*val=NULL;FILE*fp=NULL;T_NV_CONFIG*config=NULL;char buf[
-NV_MAX_ITEM_LEN]={(0x16f4+3164-0x2350)};printf(
+NV_MAX_ITEM_LEN]={(0xa1b+3303-0x1702)};printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x72\x65\x6c\x6f\x61\x64\x46\x61\x63\x74\x72\x6f\x79\x50\x61\x72\x61\x6d\x20\x6e\x76\x46\x69\x6c\x65\x3a\x25\x73" "\n"
,list->nvFile);for(config=list->fileList;config;config=config->next){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x72\x65\x6c\x6f\x61\x64\x46\x61\x63\x74\x72\x6f\x79\x50\x61\x72\x61\x6d\x20\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65\x20\x73\x74\x61\x72\x74\x3a\x25\x73\x21" "\n"
,config->configFile);fp=fopen(config->configFile,"\x72\x6f");if(!fp){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x6f\x70\x65\x6e\x20\x25\x73\x20\x66\x69\x6c\x65\x20\x66\x61\x69\x6c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x21" "\n"
,config->configFile,errno);return RESULT_FILE_OPEN_FAIL;}while(fgets(buf,
-NV_MAX_ITEM_LEN,fp)){if(buf[(0x132a+1872-0x1a7a)]=='\n'||buf[(0x1b8+6120-0x19a0)
-]==((char)(0xb13+4768-0x1d90)))continue;val=strchr(buf,
-((char)(0x1a99+2848-0x257c)));if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0xfaa+123-0x1025)]=='\n'||buf[(0x109c+5580-0x2668)]
+==((char)(0x10c4+5080-0x2479)))continue;val=strchr(buf,
+((char)(0xb5d+1165-0xfad)));if(!val){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x25\x73\x20\x66\x69\x6c\x65\x20\x66\x6f\x72\x6d\x61\x74\x20\x65\x72\x72\x6f\x72\x3a\x73\x74\x72\x69\x6e\x67\x20\x3d\x20\x25\x73" "\n"
-,config->configFile,buf);continue;}buf[strlen(buf)-(0xab8+5631-0x20b6)]='\0';*
-val++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0x326+6743-0x1d7c))
+,config->configFile,buf);continue;}buf[strlen(buf)-(0x2103+323-0x2245)]='\0';*
+val++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0xa01+4475-0x1b7b))
;}printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x72\x65\x6c\x6f\x61\x64\x46\x61\x63\x74\x72\x6f\x79\x50\x61\x72\x61\x6d\x20\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65\x20\x65\x6e\x64\x3a\x25\x73\x21" "\n"
,config->configFile);fclose(fp);}return RESULT_SUCCESS;}void dump_list(T_NV_ITEM
@@ -108,12 +108,12 @@
list->next;while(p!=NULL){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x75\x6d\x70\x20\x6b\x65\x79\x3d\x25\x73\x2c\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x2c\x20\x70\x3d\x30\x78\x25\x78" "\n"
,p->key,p->value,((unsigned int)p));p=p->next;}}int delete_not_needed(T_NV_NODE*
-list){int index=(0x1a5c+3012-0x2620);T_NV_ITEM*item=NULL;T_NV_ITEM head={
-(0x8fb+4667-0x1b36)};T_NV_ITEM*prev=&head;printf(
+list){int index=(0x12ab+2750-0x1d69);T_NV_ITEM*item=NULL;T_NV_ITEM head={
+(0x10b+3216-0xd9b)};T_NV_ITEM*prev=&head;printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x65\x6c\x65\x74\x65\x5f\x6e\x6f\x74\x5f\x6e\x65\x65\x64\x65\x64\x20\x65\x6e\x74\x65\x72\x20\x2a\x2a\x2a" "\n"
-);for(index=(0x179+6200-0x19b1);index<NV_HASH_LEN;index++){head.next=list->
-nvTable[index];prev=&head;for(item=prev->next;item;){if((0xf8+4954-0x1451)==item
-->update_flag){prev=item;item=item->next;}else{printf(
+);for(index=(0x28f+7457-0x1fb0);index<NV_HASH_LEN;index++){head.next=list->
+nvTable[index];prev=&head;for(item=prev->next;item;){if((0x1843+126-0x18c0)==
+item->update_flag){prev=item;item=item->next;}else{printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x65\x6c\x65\x74\x65\x20\x6b\x65\x79\x3d\x25\x73\x2c\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x20" "\n"
,item->key,item->value);prev->next=item->next;free(item->key);free(item->value);
free(item);item=prev->next;}}list->nvTable[index]=head.next;}printf(
diff --git a/ap/app/zte_comm/phonebook/src/pb_db.c b/ap/app/zte_comm/phonebook/src/pb_db.c
index 8edc9e6..f56987d 100755
--- a/ap/app/zte_comm/phonebook/src/pb_db.c
+++ b/ap/app/zte_comm/phonebook/src/pb_db.c
@@ -1,7 +1,7 @@
#include "pb_com.h"
T_zPb_DbResult atPb_CreatDb(){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[
-ZPB_MAX_BYTES_DB]={(0x9b3+6861-0x2480)};UINT32 count=(0x1e9c+1882-0x25f6);result
+ZPB_MAX_BYTES_DB]={(0x11dc+3109-0x1e01)};UINT32 count=(0x96f+5598-0x1f4d);result
=atPb_ExecDbSql(ZPB_CREATE_PBM_TABLE,NULL,NULL);if(ZPB_DB_OK!=result){slog(
PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x70\x62\x6d\x3a\x63\x72\x65\x61\x74\x65\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
@@ -18,18 +18,18 @@
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_USIM);result=atPb_ExecDbSql(sql,NULL,NULL);if(
ZPB_DB_OK!=result){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x70\x62\x6d\x3a\x63\x72\x65\x61\x74\x65\x20\x70\x62\x6d\x5f\x64\x65\x76\x69\x63\x65\x5f\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x79\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
-,result);return result;}memset(sql,(0xa12+1453-0xfbf),sizeof(sql));snprintf(sql,
-sizeof(sql)-(0x19bf+175-0x1a6d),
+,result);return result;}memset(sql,(0x119c+3814-0x2082),sizeof(sql));snprintf(
+sql,sizeof(sql)-(0x1434+1628-0x1a8f),
"\x73\x65\x6c\x65\x63\x74\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x66\x72\x6f\x6d\x20\x25\x73"
,ZPB_DB_SIM_CAPABILITY_TABLE);(VOID)atPb_ExecDbSql(sql,atPb_DbCountTableLineCb,&
-count);if((0x6ab+5907-0x1dbe)<count){memset(sql,(0xb09+2270-0x13e7),sizeof(sql))
-;snprintf(sql,sizeof(sql)-(0x1952+2531-0x2334),
+count);if((0x16a9+2932-0x221d)<count){memset(sql,(0xa2+8738-0x22c4),sizeof(sql))
+;snprintf(sql,sizeof(sql)-(0x1396+817-0x16c6),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x53\x69\x6d\x5f\x74\x79\x70\x65\x3e\x3d\x30"
,ZPB_DB_SIM_CAPABILITY_TABLE);result=atPb_ExecDbSql(sql,NULL,NULL);if(ZPB_DB_OK
!=result){slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x53\x65\x74\x53\x69\x6d\x43\x61\x70\x61\x63\x69\x74\x79\x54\x61\x62\x6c\x65\x3a\x66\x61\x69\x6c\x21" "\n"
);return result;}}return ZPB_DB_OK;}T_zPb_DbResult atPb_DropDb(){T_zPb_DbResult
-result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x6ed+3549-0x14ca)};result=
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0xb71+1257-0x105a)};result=
atPb_ExecDbSql(ZTE_DROP_PBM_SQL,NULL,NULL);if(ZPB_DB_OK!=result){slog(PB_PRINT,
SLOG_ERR,
"\x61\x74\x50\x62\x5f\x44\x72\x6f\x70\x44\x62\x3a\x64\x65\x6c\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
@@ -51,7 +51,7 @@
);return ZPB_DB_ERROR_INVALIDPTR;}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x73\x71\x6c\x69\x74\x65\x33\x5f\x6f\x70\x65\x6e\x20\x63\x61\x6c\x6c"
);
-#if (0xda2+786-0x10b4)
+#if (0x4ba+2036-0xcae)
if(!fopen(ZPB_DB_PATH,"\x72")){file=fopen(ZPB_DB_PATH,"\x77");if(!file){printf(
"\x75\x6e\x61\x62\x6c\x65\x20\x74\x6f\x20\x6f\x70\x65\x6e\x20\x20\x66\x69\x6c\x65\x20\x65\x74\x63\x5f\x72\x77\x2f\x70\x62\x6d\x2e\x64\x62" "\n"
);}else{printf(
@@ -68,32 +68,32 @@
"\x70\x62\x3a\x70\x62\x6d\x3a\x63\x61\x6e\x20\x6e\x6f\x74\x20\x63\x6c\x6f\x73\x65\x20\x64\x62"
);return ZPB_DB_ERROR;}
#ifdef WEBS_SECURITY
-if(access(ZPB_TMP_PATH,F_OK)==(0x1693+636-0x190f)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZPB_TMP_PATH,F_OK)==(0x658+6014-0x1dd6)){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x70\x62\x6d\x3a\x74\x6d\x70\x20\x64\x62\x20\x73\x74\x61\x79");if(
-remove(ZPB_TMP_PATH)!=(0x21fd+418-0x239f)){slog(PB_PRINT,SLOG_ERR,
+remove(ZPB_TMP_PATH)!=(0x1a56+244-0x1b4a)){slog(PB_PRINT,SLOG_ERR,
"\x72\x65\x6d\x6f\x76\x65\x20\x5a\x50\x42\x5f\x54\x4d\x50\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
-);}}if(rename(ZPB_SEC_PATH,ZPB_TMP_PATH)!=(0x666+5711-0x1cb5)){slog(PB_PRINT,
+);}}if(rename(ZPB_SEC_PATH,ZPB_TMP_PATH)!=(0xd53+5355-0x223e)){slog(PB_PRINT,
SLOG_ERR,
"\x72\x65\x6e\x61\x6d\x65\x20\x5a\x50\x42\x5f\x53\x45\x43\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
-);}{char rnum_buf[(0x9d8+3427-0x1723)]={(0x1049+755-0x133c)};char cmd[
-(0x21bb+1069-0x2568)]={(0x6b9+858-0xa13)};sc_cfg_get(
+);}{char rnum_buf[(0x5f9+1022-0x9df)]={(0x12b7+3082-0x1ec1)};char cmd[
+(0x3cf+2801-0xe40)]={(0x9d2+218-0xaac)};sc_cfg_get(
"\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(rnum_buf));snprintf(cmd,sizeof(
cmd),
"\x2f\x62\x69\x6e\x2f\x6f\x70\x65\x6e\x73\x73\x6c\x20\x65\x6e\x63\x20\x2d\x65\x20\x2d\x61\x65\x73\x32\x35\x36\x20\x2d\x73\x61\x6c\x74\x20\x2d\x69\x6e\x20\x25\x73\x20\x2d\x6f\x75\x74\x20\x25\x73\x20\x2d\x70\x61\x73\x73\x20\x70\x61\x73\x73\x3a\x25\x73"
,ZPB_DB_PATH,ZPB_SEC_PATH,rnum_buf);zxic_system(cmd);if(access(ZPB_SEC_PATH,F_OK
-)==(0x1f06+565-0x213b)){if(remove(ZPB_TMP_PATH)!=(0x12bc+2884-0x1e00)){slog(
+)==(0xc7a+5029-0x201f)){if(remove(ZPB_TMP_PATH)!=(0xa5+8504-0x21dd)){slog(
PB_PRINT,SLOG_ERR,
"\x72\x65\x6d\x6f\x76\x65\x20\x5a\x50\x42\x5f\x54\x4d\x50\x5f\x50\x41\x54\x48\x31\x20\x66\x61\x69\x6c"
);}}}
#endif
return ZPB_DB_OK;}static check_sql_cmd(const char*pSql){if(pSql!=NULL){if(strstr
-(pSql,"\x3b")||strstr(pSql,"\x2d\x2d")){return(0x1a19+219-0x1af4);}return
-(0x1d9c+1072-0x21cb);}return(0x4c2+2497-0xe83);}T_zPb_DbResult atPb_ExecDbSql(
+(pSql,"\x3b")||strstr(pSql,"\x2d\x2d")){return(0x1c4+1379-0x727);}return
+(0x211+5224-0x1678);}return(0x170f+2554-0x2109);}T_zPb_DbResult atPb_ExecDbSql(
const char*pSql,sqlite3_callback callback,VOID*pFvarg){sqlite3*pDb=NULL;CHAR
-dbErrMsg[(0x11c+9703-0x2683)]={(0x11fa+2311-0x1b01)};if(NULL==pSql){return
+dbErrMsg[(0x1230+2379-0x1afb)]={(0x9e9+5654-0x1fff)};if(NULL==pSql){return
ZPB_DB_ERROR_INVALIDPTR;}
#ifdef WEBS_SECURITY
-if(check_sql_cmd(pSql)==(0xdd9+5534-0x2377)){slog(PB_PRINT,SLOG_ERR,
+if(check_sql_cmd(pSql)==(0xe2+151-0x179)){slog(PB_PRINT,SLOG_ERR,
"\x21\x21\x61\x74\x50\x62\x5f\x45\x78\x65\x63\x44\x62\x53\x71\x6c\x3a\x78\x73\x73\x20\x25\x73" "\n"
,pSql);return ZPB_DB_ERROR_INVALIDPTR;}
#endif
@@ -102,33 +102,34 @@
);return ZPB_DB_ERROR_NOTOPENDB;}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x45\x78\x65\x63\x44\x62\x53\x71\x6c\x3a\x25\x73" "\n"
,pSql);if(sqlite3_exec(pDb,pSql,callback,pFvarg,NULL)){strncpy(dbErrMsg,
-sqlite3_errmsg(pDb),sizeof(dbErrMsg)-(0x1ea+1586-0x81b));slog(PB_PRINT,SLOG_ERR,
+sqlite3_errmsg(pDb),sizeof(dbErrMsg)-(0x3e9+3694-0x1256));slog(PB_PRINT,SLOG_ERR
+,
"\x70\x62\x3a\x70\x62\x6d\x3a\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65\x78\x65\x63\x20\x73\x71\x6c\x2c\x73\x71\x6c\x69\x74\x65\x33\x5f\x65\x72\x72\x6d\x73\x67\x3a\x25\x73\x2e"
,dbErrMsg);(VOID)sqlite3_close(pDb);return ZPB_DB_ERROR;}(VOID)atPb_DbClose(pDb)
;return ZPB_DB_OK;}SINT32 atPb_InitApIndexCb(VOID*fvarg,int line,char**zresult,
-char**lname){SINT32 index=(0x1e77+1809-0x2588);if((0x17d+5463-0x16d3)>line){slog
-(PB_PRINT,SLOG_ERR,
+char**lname){SINT32 index=(0x12ca+3006-0x1e88);if((0x1d71+1480-0x2338)>line){
+slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x49\x6e\x69\x74\x41\x70\x49\x6e\x64\x65\x78\x43\x62\x3a\x72\x65\x63\x6f\x72\x64\x20\x6e\x6f\x20\x64\x61\x74\x61\x2e" "\n"
-);return-(0x1807+726-0x1adc);}index=atoi(zresult[(0xc86+4964-0x1fea)]);if(index>
+);return-(0x8f7+3700-0x176a);}index=atoi(zresult[(0x1ed1+528-0x20e1)]);if(index>
ZPB_AP_MAX_RECORD){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x49\x6e\x69\x74\x41\x70\x49\x6e\x64\x65\x78\x43\x62\x3a\x69\x6e\x64\x65\x78\x20\x6f\x76\x65\x72\x66\x6c\x6f\x77\x2e" "\n"
-);return-(0xfd5+4374-0x20ea);}slog(PB_PRINT,SLOG_DEBUG,
+);return-(0xf93+131-0x1015);}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x49\x6e\x69\x74\x41\x70\x49\x6e\x64\x65\x78\x43\x62\x3a\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3d\x25\x64" "\n"
-,index);g_zPb_ApIndex[index]=PBM_SUCCESS;return(0x823+5454-0x1d71);}
-T_zPb_DbResult atPb_InitApIndex(){CHAR sql[ZPB_MAX_BYTES_DB]={(0x2d4+2812-0xdd0)
-};SINT32 i=(0x10a6+238-0x1193);g_zPb_ApIndex[(0xeab+714-0x1175)]=
-ZPB_AP_MAX_RECORD;for(i=(0x102c+5138-0x243d);i<=g_zPb_ApIndex[
-(0xdda+2723-0x187d)];i++){g_zPb_ApIndex[i]=PBM_ERROR_NOT_FOUND;}snprintf(sql,
-sizeof(sql),
+,index);g_zPb_ApIndex[index]=PBM_SUCCESS;return(0x1c0f+330-0x1d59);}
+T_zPb_DbResult atPb_InitApIndex(){CHAR sql[ZPB_MAX_BYTES_DB]={
+(0x590+5208-0x19e8)};SINT32 i=(0x7cd+912-0xb5c);g_zPb_ApIndex[
+(0x125+5408-0x1645)]=ZPB_AP_MAX_RECORD;for(i=(0x1d6+5036-0x1581);i<=
+g_zPb_ApIndex[(0x12e4+1461-0x1899)];i++){g_zPb_ApIndex[i]=PBM_ERROR_NOT_FOUND;}
+snprintf(sql,sizeof(sql),
"\x73\x65\x6c\x65\x63\x74\x20\x50\x62\x6d\x5f\x69\x6e\x64\x65\x78\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_AP);return atPb_ExecDbSql(sql,atPb_InitApIndexCb,
-ZUFI_NULL);}INT zte_pbm_check_and_creat_dir(char*path){if(-(0x619+7404-0x2304)==
-access(path,(0xb99+245-0xc8e))){slog(PB_PRINT,SLOG_DEBUG,
+ZUFI_NULL);}INT zte_pbm_check_and_creat_dir(char*path){if(-(0xe9c+5089-0x227c)==
+access(path,(0x116+7340-0x1dc2))){slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x70\x62\x6d\x3a\x25\x73\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x2c\x73\x6f\x63\x72\x65\x61\x74\x65\x20\x69\x74\x2e" "\n"
-,ZPB_DB_DIR);if(-(0xfa1+506-0x119a)==mkdir(path,(0x723+1261-0xa11))){slog(
+,ZPB_DB_DIR);if(-(0x403+4403-0x1535)==mkdir(path,(0x12ff+254-0x11fe))){slog(
PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x3a\x66\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x63\x72\x65\x61\x74\x65\x20\x64\x62\x20\x64\x69\x72\x2e" "\n"
-);return-(0xef1+4302-0x1fbe);}}return(0xcd+1986-0x88f);}UINT8
+);return-(0x888+7012-0x23eb);}}return(0x1bbc+942-0x1f6a);}UINT8
zte_pbm_check_web_pbm_dir(VOID){
#ifdef _MBB_OS_UCLINUX
(VOID)zte_pbm_check_and_creat_dir(
@@ -142,24 +143,24 @@
"\x2f\x65\x74\x63\x5f\x72\x77\x2f\x63\x6f\x6e\x66\x69\x67");
#endif
return ZUFI_SUCC;}T_zPb_DbResult atPb_DelSimRecFromPbTable(SINT32 index){
-T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x7b8+3533-0x1585)}
-;snprintf(sql,sizeof(sql),
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1777+1511-0x1d5e)
+};snprintf(sql,sizeof(sql),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x20\x61\x6e\x64\x20\x50\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_USIM,index);result=atPb_ExecDbSql(sql,NULL,NULL);
if(ZPB_DB_OK==result){g_zPb_SimIndex[index]=PBM_ERROR_NOT_FOUND;}return result;}
T_zPb_DbResult atPb_LoadARecToPbmTable(T_zPb_WebContact*pbPara){T_zPb_DbResult
-result=ZPB_DB_ERROR;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1066+5279-0x2505)};if(NULL==
+result=ZPB_DB_ERROR;CHAR sql[ZPB_MAX_BYTES_DB]={(0x655+897-0x9d6)};if(NULL==
pbPara){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x4c\x6f\x61\x64\x41\x52\x65\x63\x54\x6f\x50\x62\x6d\x54\x61\x62\x6c\x65\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74"
);return ZPB_DB_ERROR_INVALIDPTR;}snprintf(sql,sizeof(sql),"insert into %s (Pbm_index,Location,Number,Type,Name,Anr,Anr1,Email,Sne) \
values(\'%d\',\'%d\',\'%s\',\'%d\',\'%s\',\'%s\',\'%s\',\'%s\',\'%s\')",ZPB_DB_PBM_TABLE,pbPara->pbIndex,pbPara->pbLocation,pbPara->mobilNumber,pbPara
->pbType,pbPara->name,pbPara->homeNumber,pbPara->officeNumber,pbPara->email,
pbPara->sne);result=atPb_ExecDbSql(sql,NULL,NULL);if(ZPB_DB_OK==result){CHAR
-pbMax[(0x55+8375-0x20da)]={(0x15f1+1746-0x1cc3)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,
-pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0x16e7+1375-0x1c45))&&(pbPara->
-pbIndex<=atoi(pbMax))){g_zPb_SimIndex[pbPara->pbIndex]=PBM_SUCCESS;}(VOID)
-sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}else{(VOID)sc_cfg_set(
-ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);}slog(PB_PRINT,SLOG_DEBUG,
+pbMax[(0x19bd+1489-0x1f5c)]={(0x14c5+3917-0x2412)};sc_cfg_get(
+ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));if((pbPara->pbIndex>=
+(0x989+5710-0x1fd6))&&(pbPara->pbIndex<=atoi(pbMax))){g_zPb_SimIndex[pbPara->
+pbIndex]=PBM_SUCCESS;}(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}else{
+(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x70\x62\x6d\x3a\x65\x78\x65\x63\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x72\x65\x73\x75\x6c\x74\x20\x25\x64" "\n"
,ZPB_DB_PBM_TABLE,result);return result;}VOID atPb_SqlModifyOneRec(
T_zPb_WebContact*pbmPara,char*sql,int len){printf(
@@ -173,17 +174,17 @@
pbmPara->pbType,pbmPara->name,pbmPara->homeNumber,pbmPara->officeNumber,pbmPara
->email,pbmPara->sne,pbmPara->group,pbmPara->pbId);}}T_zPb_DbResult
atPb_DbGetParamCb(VOID*fvarg,int line,char**zresult,char**lname){T_zPb_Header
-para={(0x17a2+2158-0x2010)};if((0x2450+125-0x24cc)>line){slog(PB_PRINT,SLOG_ERR,
+para={(0x64b+993-0xa2c)};if((0x11e5+1867-0x192f)>line){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x44\x62\x47\x65\x74\x50\x61\x72\x61\x6d\x43\x62\x3a\x72\x65\x63\x6f\x72\x64\x20\x6e\x6f\x20\x64\x61\x74\x61\x2e"
-);return ZPB_DB_ERROR;}para.pbIndex=atoi(zresult[(0xd59+5398-0x226f)]);para.
-pbLocation=atoi(zresult[(0x1c86+681-0x1f2e)]);slog(PB_PRINT,SLOG_DEBUG,
+);return ZPB_DB_ERROR;}para.pbIndex=atoi(zresult[(0xbfd+5795-0x22a0)]);para.
+pbLocation=atoi(zresult[(0x1d1+7823-0x205f)]);slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x44\x62\x47\x65\x74\x50\x61\x72\x61\x6d\x43\x62\x3a\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,para.pbIndex,para.pbLocation);memcpy(fvarg,¶,sizeof(para));return ZPB_DB_OK
;}T_zPb_DbResult atPb_GetIndexLocationById(T_zPb_Header*pbPara){CHAR sql[
-ZPB_MAX_BYTES_DB]={(0x559+6374-0x1e3f)};snprintf(sql,sizeof(sql)-
-(0x116+2032-0x905),
+ZPB_MAX_BYTES_DB]={(0xfa8+848-0x12f8)};snprintf(sql,sizeof(sql)-
+(0x425+986-0x7fe),
"\x73\x65\x6c\x65\x63\x74\x20\x50\x62\x6d\x5f\x69\x6e\x64\x65\x78\x2c\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x69\x64\x3d\x25\x64"
-,ZPB_DB_PBM_TABLE,pbPara->pbId);memset(pbPara,(0x62f+6530-0x1fb1),sizeof(
+,ZPB_DB_PBM_TABLE,pbPara->pbId);memset(pbPara,(0x4a6+630-0x71c),sizeof(
T_zPb_Header));return atPb_ExecDbSql(sql,atPb_DbGetParamCb,pbPara);}VOID
atPb_SqlNewOneRec(T_zPb_WebContact*pbmPara,CHAR*sql,int len){if(
ZPB_LOCATION_USIM==pbmPara->pbLocation){snprintf(sql,len,"insert into %s (Pbm_index,Location,Number,Type,Name,Anr,Anr1,Email,Sne)\
@@ -195,7 +196,7 @@
pbmPara->pbType,pbmPara->name,pbmPara->homeNumber,pbmPara->officeNumber,pbmPara
->email,pbmPara->sne,pbmPara->group);}}T_zPb_DbResult
atPb_WriteContactToPbmTable(T_zPb_WebContact*pPbRecord,BOOL pbNewFlag){
-T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0xc9b+3108-0x18bf)}
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0xa35+5405-0x1f52)}
;if(NULL==pPbRecord){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x57\x72\x69\x74\x65\x43\x6f\x6e\x74\x61\x63\x74\x54\x6f\x50\x62\x6d\x54\x61\x62\x6c\x65\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74"
);return ZPB_DB_ERROR_INVALIDPTR;}slog(PB_PRINT,SLOG_DEBUG,
@@ -206,75 +207,75 @@
ZPB_LOCATION_USIM==pPbRecord->pbLocation){g_zPb_SimIndex[(pPbRecord->pbIndex)]=
PBM_SUCCESS;}else if(ZPB_LOCATION_AP==pPbRecord->pbLocation){g_zPb_ApIndex[(
pPbRecord->pbIndex)]=PBM_SUCCESS;}}return result;}SINT32 atPb_DbCountTableLineCb
-(VOID*fvarg,int line,char**zresult,char**lname){if((0x227f+214-0x2354)>line){
+(VOID*fvarg,int line,char**zresult,char**lname){if((0xf81+3340-0x1c8c)>line){
slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x70\x62\x6d\x3a\x72\x65\x63\x6f\x72\x64\x20\x6e\x6f\x20\x64\x61\x74\x61\x2e"
-);return-(0x1e3d+1739-0x2507);}*(int*)fvarg=atoi(zresult[(0x2140+102-0x21a6)]);
-return(0x3e5+8969-0x26ee);}T_zPb_DbResult atPb_SetSimCapacityTable(
+);return-(0x1e7c+14-0x1e89);}*(int*)fvarg=atoi(zresult[(0x13b8+2503-0x1d7f)]);
+return(0x21f+8492-0x234b);}T_zPb_DbResult atPb_SetSimCapacityTable(
T_zPb_UsimCapacity pbPara){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[
-ZPB_MAX_BYTES_DB]={(0x8d7+359-0xa3e)};UINT32 count=(0x2e6+7740-0x2122);snprintf(
-sql,sizeof(sql)-(0x2dd+4776-0x1584),
+ZPB_MAX_BYTES_DB]={(0x1788+3145-0x23d1)};UINT32 count=(0x5e8+2989-0x1195);
+snprintf(sql,sizeof(sql)-(0x418+73-0x460),
"\x73\x65\x6c\x65\x63\x74\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x66\x72\x6f\x6d\x20\x25\x73"
,ZPB_DB_SIM_CAPABILITY_TABLE);(VOID)atPb_ExecDbSql(sql,atPb_DbCountTableLineCb,&
-count);if((0xd6+236-0x1c2)<count){memset(sql,(0xa92+2971-0x162d),sizeof(sql));
-snprintf(sql,sizeof(sql)-(0x224+1054-0x641),
+count);if((0x620+4183-0x1677)<count){memset(sql,(0xdb7+2782-0x1895),sizeof(sql))
+;snprintf(sql,sizeof(sql)-(0x339+4787-0x15eb),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x53\x69\x6d\x5f\x74\x79\x70\x65\x3e\x3d\x30"
,ZPB_DB_SIM_CAPABILITY_TABLE);result=atPb_ExecDbSql(sql,NULL,NULL);if(ZPB_DB_OK
!=result){slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x53\x65\x74\x53\x69\x6d\x43\x61\x70\x61\x63\x69\x74\x79\x54\x61\x62\x6c\x65\x3a\x66\x61\x69\x6c\x21" "\n"
-);return result;}}memset(sql,(0x765+955-0xb20),sizeof(sql));snprintf(sql,sizeof(
-sql)-(0x468+8294-0x24cd),"insert into %s (Sim_type,Max_record_number,Used_record_number,Max_number_len,Max_name_len,Max_anr_len,Max_anr1_len, \
+);return result;}}memset(sql,(0x82f+1580-0xe5b),sizeof(sql));snprintf(sql,sizeof
+(sql)-(0x101c+912-0x13ab),"insert into %s (Sim_type,Max_record_number,Used_record_number,Max_number_len,Max_name_len,Max_anr_len,Max_anr1_len, \
Max_email_len,Max_sne_len) values(\'%d\',\'%d\',\'%d\',\'%d\',\'%d\',\'%d\',\'%d\',\'%d\',\'%d\')",ZPB_DB_SIM_CAPABILITY_TABLE,pbPara.simType,pbPara.maxRecordNum,pbPara.
usedRecordNum,pbPara.maxNumberLen,pbPara.maxNameLen,pbPara.maxAnrLen,pbPara.
maxAnr1Len,pbPara.maxEmailLen,pbPara.maxSneLen);slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x53\x65\x74\x53\x69\x6d\x43\x61\x70\x61\x63\x69\x74\x79\x54\x61\x62\x6c\x65\x3a\x6f\x6b\x21" "\n"
);return atPb_ExecDbSql(sql,NULL,NULL);}T_zPb_DbResult atPb_SetApCapacityTable()
-{T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={
-(0x194d+3142-0x2593)};SINT32 count=(0x463+1888-0xbc3);T_zPb_ApCapacity pbPara={
-(0xa10+3495-0x17b7)};snprintf(sql,sizeof(sql)-(0x1612+1627-0x1c6c),
+{T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1ea+8280-0x2242)
+};SINT32 count=(0x1920+2502-0x22e6);T_zPb_ApCapacity pbPara={
+(0x1708+3933-0x2665)};snprintf(sql,sizeof(sql)-(0x17d5+427-0x197f),
"\x73\x65\x6c\x65\x63\x74\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x66\x72\x6f\x6d\x20\x25\x73"
,ZPB_DB_DEVICE_CAPABILITY_TABLE);(VOID)atPb_ExecDbSql(sql,
-atPb_DbCountTableLineCb,&count);if((0x456+5142-0x186c)<count){memset(sql,
-(0x441+2696-0xec9),sizeof(sql));snprintf(sql,sizeof(sql)-(0x12b+1968-0x8da),
+atPb_DbCountTableLineCb,&count);if((0x1d7+3446-0xf4d)<count){memset(sql,
+(0x773+3978-0x16fd),sizeof(sql));snprintf(sql,sizeof(sql)-(0xafa+4593-0x1cea),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73",
ZPB_DB_DEVICE_CAPABILITY_TABLE);result=atPb_ExecDbSql(sql,NULL,NULL);if(
ZPB_DB_OK!=result){slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x53\x65\x74\x41\x70\x43\x61\x70\x61\x63\x69\x74\x79\x54\x61\x62\x6c\x65\x3a\x66\x61\x69\x6c\x21" "\n"
-);return result;}}memset(sql,(0x1b3b+331-0x1c86),sizeof(sql));snprintf(sql,
-sizeof(sql)-(0xb56+5426-0x2087),
+);return result;}}memset(sql,(0x5ef+3281-0x12c0),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0x15bb+3248-0x226a),
"\x73\x65\x6c\x65\x63\x74\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_AP);result=atPb_ExecDbSql(sql,
atPb_DbCountTableLineCb,&count);if(ZPB_DB_OK==result){pbPara.usedRecordNum=count
;pbPara.maxRecordNum=ZPB_AP_MAX_RECORD;}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x6d\x61\x78\x5f\x72\x65\x63\x5f\x6e\x75\x6d\x3d\x25\x64\x2c\x75\x73\x65\x64\x3d\x25\x64"
-,pbPara.maxRecordNum,pbPara.usedRecordNum);memset(sql,(0x12d+6342-0x19f3),sizeof
-(sql));snprintf(sql,sizeof(sql)-(0x1e4c+1331-0x237e),
+,pbPara.maxRecordNum,pbPara.usedRecordNum);memset(sql,(0xa44+957-0xe01),sizeof(
+sql));snprintf(sql,sizeof(sql)-(0xa+5450-0x1553),
"\x69\x6e\x73\x65\x72\x74\x20\x69\x6e\x74\x6f\x20\x25\x73\x20\x28\x4d\x61\x78\x5f\x72\x65\x63\x6f\x72\x64\x5f\x6e\x75\x6d\x62\x65\x72\x2c\x55\x73\x65\x64\x5f\x72\x65\x63\x6f\x72\x64\x5f\x6e\x75\x6d\x62\x65\x72\x29\x20\x76\x61\x6c\x75\x65\x73\x28" "\'" "\x25\x64" "\'" "\x2c" "\'" "\x25\x64" "\'" "\x29"
,ZPB_DB_DEVICE_CAPABILITY_TABLE,pbPara.maxRecordNum,pbPara.usedRecordNum);return
atPb_ExecDbSql(sql,NULL,NULL);}T_zPb_DbResult atPb_DbGetIndexByGroupCb(VOID*
fvarg,int line,char**zresult,char**lname){T_zPb_ApIndex*pbIndex=NULL;int i=
-(0x15d6+926-0x1974);if((0x1fd+8977-0x250d)>line){return ZPB_DB_ERROR;}pbIndex=(
+(0x221+6312-0x1ac9);if((0xb84+5227-0x1fee)>line){return ZPB_DB_ERROR;}pbIndex=(
T_zPb_ApIndex*)fvarg;i=pbIndex->count;slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x44\x62\x47\x65\x74\x49\x6e\x64\x65\x78\x42\x79\x47\x72\x6f\x75\x70\x43\x62\x20\x65\x6e\x74\x65\x72\x2c\x69\x3d\x25\x64" "\n"
-,i);pbIndex->apIndex[i+(0x1db+2850-0xcfc)]=atoi(zresult[(0x1a95+1320-0x1fbd)]);
+,i);pbIndex->apIndex[i+(0x7e3+5995-0x1f4d)]=atoi(zresult[(0x2519+187-0x25d4)]);
slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x67\x65\x74\x5f\x69\x6e\x64\x65\x78\x5f\x62\x79\x5f\x67\x72\x6f\x75\x70\x5f\x63\x62\x3a\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3d\x25\x64"
-,pbIndex->apIndex[i+(0xba1+4174-0x1bee)]);pbIndex->count=i+(0x12c+1223-0x5f2);
+,pbIndex->apIndex[i+(0x1995+1647-0x2003)]);pbIndex->count=i+(0xf2+5796-0x1795);
slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x67\x65\x74\x5f\x69\x6e\x64\x65\x78\x5f\x62\x79\x5f\x67\x72\x6f\x75\x70\x5f\x63\x62\x3a\x70\x62\x6d\x20\x63\x6f\x75\x6e\x74\x20\x69\x73\x20\x25\x64"
,pbIndex->count);return ZPB_DB_OK;}T_zPb_DbResult atPb_DelRecFromPbmTableByGroup
(T_zPb_ApIndex*index){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]
-={(0x37+5602-0x1619)};SINT32 countByGroup=(0x7d7+5168-0x1c07);CHAR pbGroup[
-ZPB_PARAM_SIZE20]={(0x9ed+3758-0x189b)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
-pbGroup));snprintf(sql,sizeof(sql)-(0x403+3376-0x1132),
+={(0x1053+3394-0x1d95)};SINT32 countByGroup=(0xd+9956-0x26f1);CHAR pbGroup[
+ZPB_PARAM_SIZE20]={(0x2f1+7620-0x20b5)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
+pbGroup));snprintf(sql,sizeof(sql)-(0x291+6336-0x1b50),
"\x73\x65\x6c\x65\x63\x74\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x20\x61\x6e\x64\x20\x28\x50\x62\x6d\x5f\x67\x72\x6f\x75\x70\x3d" "\"" "\x25\x73" "\"" "\x29"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_AP,pbGroup);(VOID)atPb_ExecDbSql(sql,
-atPb_DbCountTableLineCb,&countByGroup);memset(sql,(0xe7d+681-0x1126),sizeof(sql)
-);snprintf(sql,sizeof(sql)-(0xa03+1497-0xfdb),
+atPb_DbCountTableLineCb,&countByGroup);memset(sql,(0x830+16-0x840),sizeof(sql));
+snprintf(sql,sizeof(sql)-(0x1bab+399-0x1d39),
"\x73\x65\x6c\x65\x63\x74\x20\x50\x62\x6d\x5f\x69\x6e\x64\x65\x78\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x20\x61\x6e\x64\x20\x28\x50\x62\x6d\x5f\x67\x72\x6f\x75\x70\x3d" "\"" "\x25\x73" "\"" "\x29"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_AP,pbGroup);result=atPb_ExecDbSql(sql,
atPb_DbGetIndexByGroupCb,index);if(countByGroup==index->count){memset(sql,
-(0x15a3+1192-0x1a4b),sizeof(sql));snprintf(sql,sizeof(sql)-(0x134a+1170-0x17db),
+(0x15fc+784-0x190c),sizeof(sql));snprintf(sql,sizeof(sql)-(0xd47+5775-0x23d5),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x20\x61\x6e\x64\x20\x28\x50\x62\x6d\x5f\x67\x72\x6f\x75\x70\x3d" "\"" "\x25\x73" "\"" "\x29"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_AP,pbGroup);if(ZPB_DB_OK==atPb_ExecDbSql(sql,NULL
,NULL)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}slog(PB_PRINT,
@@ -282,7 +283,7 @@
"\x70\x62\x3a\x70\x62\x6d\x3a\x65\x78\x65\x63\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x72\x65\x73\x75\x6c\x74\x20\x25\x64" "\n"
,ZPB_DB_PBM_TABLE,result);}else{return ZPB_DB_ERROR;}(VOID)sc_cfg_set(
ZPB_NV_GROUP,"");return result;}VOID atPb_GetLocationIndexForDel(T_zPb_DelInfo*
-recData,SINT32 delTime){T_zPb_Header pbHeader={(0x993+786-0xca5)};if(NULL==
+recData,SINT32 delTime){T_zPb_Header pbHeader={(0x414+2204-0xcb0)};if(NULL==
recData){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x47\x65\x74\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x49\x6e\x64\x65\x78\x46\x6f\x72\x44\x65\x6c\x2d\x2d\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74" "\n"
);return;}pbHeader.pbId=recData->delId[delTime];if(ZPB_DB_OK!=
@@ -293,30 +294,30 @@
"\x70\x62\x3a\x70\x62\x6d\x3a\x64\x65\x6c\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x2c\x64\x65\x6c\x5f\x70\x62\x6d\x5f\x74\x69\x6d\x65\x3d\x25\x64"
,recData->delIndex[delTime],recData->delLocation,delTime);}T_zPb_DbResult
atPb_DelARecFromPbmTable(T_zPb_DelInfo*pbPara,SINT32 delTime){T_zPb_DbResult
-result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1290+3489-0x2031)};if(NULL==
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x148f+4293-0x2554)};if(NULL==
pbPara){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x70\x62\x6d\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74"
);return ZPB_DB_ERROR_INVALIDPTR;}atPb_GetLocationIndexForDel(pbPara,delTime);
slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x44\x65\x6c\x41\x52\x65\x63\x46\x72\x6f\x6d\x50\x62\x6d\x54\x61\x62\x6c\x65\x20\x65\x6e\x74\x65\x72\x2c\x64\x65\x6c\x54\x69\x6d\x65\x3d\x25\x64\x2c\x69\x64\x3d\x25\x64" "\n"
-,delTime,pbPara->delId[delTime]);snprintf(sql,sizeof(sql)-(0xa94+1062-0xeb9),
+,delTime,pbPara->delId[delTime]);snprintf(sql,sizeof(sql)-(0x366+4075-0x1350),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x69\x64\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,pbPara->delId[delTime]);result=atPb_ExecDbSql(sql,NULL,NULL);
if(ZPB_DB_OK==result){if(ZPB_LOCATION_AP==pbPara->delLocation){g_zPb_ApIndex[(
pbPara->delIndex[delTime])]=PBM_ERROR_NOT_FOUND;}else if(ZPB_LOCATION_USIM==
pbPara->delLocation){g_zPb_SimIndex[(pbPara->delIndex[delTime])]=
PBM_ERROR_NOT_FOUND;}}return result;}VOID atPb_ClearSimPbmIndexArray(VOID){
-SINT32 i=(0x12ec+5150-0x2709);for(i=(0x1e47+1969-0x25f7);(i<=g_zPb_SimIndex[
-(0x728+5620-0x1d1c)])&&(i<(ZPB_SIM_MAX_RECORD+(0xcf0+3140-0x1933)));i++){
+SINT32 i=(0x1bf6+2836-0x2709);for(i=(0x18fb+2142-0x2158);(i<=g_zPb_SimIndex[
+(0xb43+6632-0x252b)])&&(i<(ZPB_SIM_MAX_RECORD+(0xe97+3023-0x1a65)));i++){
g_zPb_SimIndex[i]=PBM_ERROR_NOT_FOUND;}}VOID atPb_ClearApPbmIndexArray(VOID){
-SINT32 i=(0x65c+4859-0x1956);for(i=(0x8ea+1607-0xf30);(i<=g_zPb_ApIndex[
-(0x1420+1943-0x1bb7)])&&(i<(ZPB_AP_MAX_RECORD+(0x59a+1255-0xa80)));i++){
+SINT32 i=(0xb58+571-0xd92);for(i=(0x4+6928-0x1b13);(i<=g_zPb_ApIndex[
+(0x21d2+533-0x23e7)])&&(i<(ZPB_AP_MAX_RECORD+(0xad+6950-0x1bd2)));i++){
g_zPb_ApIndex[i]=PBM_ERROR_NOT_FOUND;}}T_zPb_DbResult
atPb_DelAllRecsFromPbmTable(T_zPb_DelInfo*pbPara){T_zPb_DbResult result=
-ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0xdc8+52-0xdfc)};if(NULL==pbPara){slog(
-PB_PRINT,SLOG_ERR,
+ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x2a9+5628-0x18a5)};if(NULL==pbPara){slog
+(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x44\x65\x6c\x41\x6c\x6c\x52\x65\x63\x73\x46\x72\x6f\x6d\x50\x62\x6d\x54\x61\x62\x6c\x65\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74" "\n"
-);return ZPB_DB_ERROR_INVALIDPTR;}snprintf(sql,sizeof(sql)-(0x4f+4465-0x11bf),
+);return ZPB_DB_ERROR_INVALIDPTR;}snprintf(sql,sizeof(sql)-(0x124+2427-0xa9e),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,pbPara->delLocation);result=atPb_ExecDbSql(sql,NULL,NULL);slog
(PB_PRINT,SLOG_DEBUG,
diff --git a/ap/app/zte_comm/phonebook/src/pb_main.c b/ap/app/zte_comm/phonebook/src/pb_main.c
index 8333429..0fd00ca 100755
--- a/ap/app/zte_comm/phonebook/src/pb_main.c
+++ b/ap/app/zte_comm/phonebook/src/pb_main.c
@@ -7,9 +7,9 @@
VOID(*func_ptr)(UINT8*pDatabuf);BOOL need_block;}T_zPbHandleTable;VOID
atWeb_AddOneContact(UINT8*pDatabuf);VOID atWeb_DelOneContact(UINT8*pDatabuf);
VOID atWeb_DelMultiContact(UINT8*pDatabuf);VOID atWeb_DelAllContact(UINT8*
-pDatabuf);T_zPb_optRsp g_PbOptRsp={(0xc86+602-0xee0)};sem_t g_Pb_sem_id={
-(0x612+4068-0x15f6)};int g_zPb_MsqId=-(0x43f+7247-0x208d);int g_zPb_LocalMsqId=-
-(0x690+1481-0xc58);VOID atWeb_AddOneContact(UINT8*pDatabuf){T_zPb_WebContact*
+pDatabuf);T_zPb_optRsp g_PbOptRsp={(0x8f5+216-0x9cd)};sem_t g_Pb_sem_id={
+(0x473+18-0x485)};int g_zPb_MsqId=-(0x8f4+3781-0x17b8);int g_zPb_LocalMsqId=-
+(0x1c89+1107-0x20db);VOID atWeb_AddOneContact(UINT8*pDatabuf){T_zPb_WebContact*
webPbContact=NULL;if(pDatabuf==NULL){printf(
"\x5b\x70\x62\x5d\x2c\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x43\x6f\x6e\x74\x61\x63\x74\x20\x70\x61\x72\x61\x20\x69\x73\x20\x6e\x75\x6c\x6c" "\n"
);return;}webPbContact=(T_zPb_WebContact*)pDatabuf;atWeb_AddOnePb(webPbContact,
@@ -35,22 +35,22 @@
zPb_RecvZpbicInd(UINT8*pDatabuf){T_zAt_ZpbicRes*ptPara=ZUFI_NULL;if(pDatabuf==
NULL){return;}ptPara=(T_zAt_ZpbicRes*)(pDatabuf);printf(
"\x7a\x50\x62\x5f\x52\x65\x63\x76\x5a\x70\x62\x69\x63\x49\x6e\x64\x20\x70\x61\x72\x61\x2c\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2c\x20\x74\x79\x70\x65\x3a\x25\x64" "\n"
-,ptPara->result,ptPara->opertype);if(((0x11a9+1091-0x15eb)==ptPara->result)&&(
-(0xe72+3425-0x1bd2)==ptPara->opertype)){CHAR needPb[(0x17c7+2462-0x2133)]={
-(0x24a+5072-0x161a)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
-(0x121+5002-0x14ab)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
-MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0xb4+8690-0x22a6),NULL,(0xc4b+1784-0x1343))
-;}}}VOID zPb_RecvZuslotInd(UINT8*pDatabuf){T_zAt_ZuslotRes*ptPara=ZUFI_NULL;if(
+,ptPara->result,ptPara->opertype);if(((0x493+1804-0xb9e)==ptPara->result)&&(
+(0x17dc+3803-0x26b6)==ptPara->opertype)){CHAR needPb[(0x473+2149-0xca6)]={
+(0x606+3230-0x12a4)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
+(0x35a+7828-0x21ee)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
+MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0xd33+3035-0x190e),NULL,(0x70+1137-0x4e1));
+}}}VOID zPb_RecvZuslotInd(UINT8*pDatabuf){T_zAt_ZuslotRes*ptPara=ZUFI_NULL;if(
pDatabuf==NULL){return;}ptPara=(T_zAt_ZuslotRes*)(pDatabuf);printf(
"\x7a\x50\x62\x5f\x52\x65\x63\x76\x5a\x70\x62\x69\x63\x49\x6e\x64\x20\x70\x61\x72\x61\x2c\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2c\x20\x74\x79\x70\x65\x3a\x25\x64" "\n"
-,ptPara->slot,ptPara->slot_state);if(ptPara->slot_state==(0xe05+4869-0x210a)){
-CHAR needPb[(0x8df+1646-0xf1b)]={(0x359+8589-0x24e6)};sc_cfg_get(
-NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x5ab+5561-0x1b64)!=strcmp(needPb,
-"\x6e\x6f")){atPb_CfgPbNvInit();atPb_DelAllRecsSimDb();}}}VOID zPb_RecvPbInitRst
-(UINT8*pDatabuf){int pbReadRet=-(0xee4+1175-0x137a);memcpy(&g_PbOptRsp,pDatabuf,
-sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-(0x1acb+1807-0x21d9)){
-atPb_IintPbErr(NULL);return;}pbReadRet=atPb_SendScpbrSet_repeat(g_Pb_sem_id);
-printf(
+,ptPara->slot,ptPara->slot_state);if(ptPara->slot_state==(0x4db+2405-0xe40)){
+CHAR needPb[(0x17f+9382-0x25f3)]={(0x594+507-0x78f)};sc_cfg_get(
+NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x12e2+3136-0x1f22)!=strcmp(needPb
+,"\x6e\x6f")){atPb_CfgPbNvInit();atPb_DelAllRecsSimDb();}}}VOID
+zPb_RecvPbInitRst(UINT8*pDatabuf){int pbReadRet=-(0x69f+5392-0x1bae);memcpy(&
+g_PbOptRsp,pDatabuf,sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-
+(0x1b3b+693-0x1def)){atPb_IintPbErr(NULL);return;}pbReadRet=
+atPb_SendScpbrSet_repeat(g_Pb_sem_id);printf(
"\x7a\x50\x62\x5f\x52\x65\x63\x76\x50\x62\x49\x6e\x69\x74\x52\x73\x74\x20\x72\x65\x73\x75\x6c\x74\x3a\x25\x64" "\n"
,pbReadRet);sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);}void zPbLocalHandleWebMsg(
MSG_BUF*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
@@ -65,18 +65,18 @@
,ptMsgBuf->usMsgCmd);switch(ptMsgBuf->usMsgCmd){case MSG_CMD_WRITE_PB:case
MSG_CMD_DEL_A_PB:case MSG_CMD_DEL_MUTI_PB:case MSG_CMD_DEL_ALL_PB:
ipc_send_message(MODULE_ID_PB,MODULE_ID_PB_LOCAL,ptMsgBuf->usMsgCmd,ptMsgBuf->
-usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,(0x444+6543-0x1dd3));break;
+usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,(0x185+9012-0x24b9));break;
default:break;}}UINT8 zPbMsgCreat(VOID){g_zPb_MsqId=msgget(MODULE_ID_PB,
-IPC_CREAT|(0x564+7227-0x201f));if(g_zPb_MsqId==-(0x19b6+1242-0x1e8f)){return
+IPC_CREAT|(0xf61+5449-0x232a));if(g_zPb_MsqId==-(0x1f25+1594-0x255e)){return
ZUFI_FAIL;}g_zPb_LocalMsqId=msgget(MODULE_ID_PB_LOCAL,IPC_CREAT|
-(0x4b0+1785-0xa29));if(g_zPb_LocalMsqId==-(0x272+784-0x581)){return ZUFI_FAIL;}
-sem_init(&g_Pb_sem_id,(0x55d+3531-0x1328),(0x1af6+2065-0x2307));return ZUFI_SUCC
-;}void detect_modem_state(void){CHAR state[(0xe2a+936-0x11a0)]={
-(0xdad+3853-0x1cba)};sc_cfg_get(
+(0xc17+1874-0x11e9));if(g_zPb_LocalMsqId==-(0x823+1921-0xfa3)){return ZUFI_FAIL;
+}sem_init(&g_Pb_sem_id,(0x793+8022-0x26e9),(0x806+4678-0x1a4c));return ZUFI_SUCC
+;}void detect_modem_state(void){CHAR state[(0xa95+2836-0x1577)]={
+(0x868+2941-0x13e5)};sc_cfg_get(
"\x6d\x6f\x64\x65\x6d\x5f\x6d\x61\x69\x6e\x5f\x73\x74\x61\x74\x65",state,sizeof(
-state));if((0x650+6382-0x1f3e)==strcmp(state,
+state));if((0x20f3+589-0x2340)==strcmp(state,
"\x6d\x6f\x64\x65\x6d\x5f\x73\x69\x6d\x5f\x75\x6e\x64\x65\x74\x65\x63\x74\x65\x64"
-)||(0x11f+5222-0x1585)==strcmp(state,
+)||(0xa92+2813-0x158f)==strcmp(state,
"\x6d\x6f\x64\x65\x6d\x5f\x73\x69\x6d\x5f\x64\x65\x73\x74\x72\x6f\x79")){
sc_cfg_set("\x70\x62\x6d\x5f\x69\x6e\x69\x74\x5f\x66\x6c\x61\x67","\x30");}}void
zPbLocalHandleAtctlMsg(MSG_BUF*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
@@ -95,58 +95,58 @@
MSG_CMD_ZUSLOT_IND:zPb_RecvZuslotInd(ptMsgBuf->aucDataBuf);break;case
MSG_CMD_PBINIT_RSP:ipc_send_message(MODULE_ID_PB,MODULE_ID_PB_LOCAL,ptMsgBuf->
usMsgCmd,ptMsgBuf->usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,
-(0x30+7189-0x1c45));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR
-clearPb[(0x1758+666-0x19c0)]={(0x6fc+3205-0x1381)};sc_cfg_get(
+(0x508+7212-0x2134));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR
+clearPb[(0x1156+706-0x13e6)]={(0x58+2486-0xa0e)};sc_cfg_get(
NV_CLEAR_PB_WHEN_RESTORE,clearPb,sizeof(clearPb));printf(
"\x61\x74\x57\x65\x62\x5f\x52\x65\x73\x74\x6f\x72\x65\x46\x61\x63\x74\x6f\x72\x79\x53\x65\x74\x74\x69\x6e\x67\x20\x65\x6e\x74\x65\x72\x65\x64\x21\x20" "\n"
);printf(
"\x63\x6c\x65\x61\x72\x5f\x70\x62\x5f\x77\x68\x65\x6e\x5f\x72\x65\x73\x74\x6f\x72\x65\x3d\x25\x73\x20" "\n"
-,clearPb);if(strcmp(clearPb,"\x79\x65\x73")==(0x9c6+797-0xce3)){atPb_DropDb();}
-ipc_send_message(MODULE_ID_PB,MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,
-(0xbb0+2325-0x14c5),NULL,(0x7ea+2114-0x102c));}void zPbHandleMainCtrlMsg(MSG_BUF
+,clearPb);if(strcmp(clearPb,"\x79\x65\x73")==(0x7b3+6426-0x20cd)){atPb_DropDb();
+}ipc_send_message(MODULE_ID_PB,MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,
+(0x2fd+8937-0x25e6),NULL,(0x1de3+537-0x1ffc));}void zPbHandleMainCtrlMsg(MSG_BUF
*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
"\x50\x62\x20\x72\x65\x63\x76\x20\x6d\x61\x69\x6e\x20\x63\x74\x72\x6c\x20\x6d\x73\x67\x20\x63\x6d\x64\x3a\x25\x64" "\n"
,ptMsgBuf->usMsgCmd);switch(ptMsgBuf->usMsgCmd){case MSG_CMD_RESET_NOTIFY:
zPbHandleResetToFactory(ptMsgBuf->aucDataBuf);break;default:break;}}void
-pb_msg_thread_proc(void*arg){int iRet=(0x1592+3582-0x2390);MSG_BUF stMsg={
-(0x7eb+6067-0x1f9e)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
+pb_msg_thread_proc(void*arg){int iRet=(0x181a+2591-0x2239);MSG_BUF stMsg={
+(0x1283+2988-0x1e2f)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
int*)arg);prctl(PR_SET_NAME,"\x70\x62\x5f\x6c\x6f\x63\x61\x6c",
-(0x4ef+5160-0x1917),(0x5bd+5190-0x1a03),(0x4c0+338-0x612));while(
-(0x1d4+5884-0x18cf)){iRet=(0x1651+2980-0x21f5);memset(&stMsg,
-(0x127f+2832-0x1d8f),sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,
-(0x12f7+1523-0x18ea),(0x6b6+7150-0x22a4));printf(
+(0x1169+1787-0x1864),(0xae7+2151-0x134e),(0xfd2+1623-0x1629));while(
+(0x404+3434-0x116d)){iRet=(0x422+4821-0x16f7);memset(&stMsg,(0xd32+6486-0x2688),
+sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x10db+5500-0x2657),
+(0x7c5+1500-0xda1));printf(
"\x70\x62\x5f\x6d\x73\x67\x5f\x74\x68\x72\x65\x61\x64\x5f\x70\x72\x6f\x63\x3a\x25\x78\x2c\x25\x78\x20\x4d\x4f\x44\x55\x4c\x45\x5f\x49\x44\x5f\x41\x54\x5f\x43\x54\x4c\x3d\x25\x78" "\n"
-,stMsg.src_id,stMsg.usMsgCmd,MODULE_ID_AT_CTL);if(iRet>=(0x1b+734-0x2f9)){switch
-(stMsg.src_id){case MODULE_ID_WEB_CGI:{zPbHandleWebMsg(&stMsg);break;}case
-MODULE_ID_AT_CTL:{zPbHandleAtctlMsg(&stMsg);break;}case MODULE_ID_PB:{
+,stMsg.src_id,stMsg.usMsgCmd,MODULE_ID_AT_CTL);if(iRet>=(0x318+5503-0x1897)){
+switch(stMsg.src_id){case MODULE_ID_WEB_CGI:{zPbHandleWebMsg(&stMsg);break;}case
+ MODULE_ID_AT_CTL:{zPbHandleAtctlMsg(&stMsg);break;}case MODULE_ID_PB:{
zPbLocalHandleWebMsg(&stMsg);zPbLocalHandleAtctlMsg(&stMsg);break;}case
MODULE_ID_MAIN_CTRL:{zPbHandleMainCtrlMsg(&stMsg);break;}default:{break;}}}else{
printf(
"\x5b\x70\x62\x5d\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x2c\x20\x65\x72\x72\x6d\x73\x67\x20\x3d\x20\x25\x73" "\n"
,errno,strerror(errno));}}}int phonebook_main(int argc,char*argv[]){pthread_t
-recv_thread_tid=(0x705+1756-0xde1);MSG_BUF msgBuf={(0x1fa8+1652-0x261c)};CHAR
-needPb[(0x2023+780-0x22fd)]={(0x1551+4297-0x261a)};prctl(PR_SET_NAME,
-"\x70\x62\x5f\x6d\x61\x69\x6e",(0xe28+1017-0x1221),(0x83d+7085-0x23ea),
-(0xb94+1527-0x118b));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof
-(needPb));if((0x9c+7299-0x1d1f)!=strcmp(needPb,"\x6e\x6f")){
+recv_thread_tid=(0x9a+9090-0x241c);MSG_BUF msgBuf={(0x114c+4109-0x2159)};CHAR
+needPb[(0x779+7182-0x2355)]={(0x8aa+3749-0x174f)};prctl(PR_SET_NAME,
+"\x70\x62\x5f\x6d\x61\x69\x6e",(0xbc+7381-0x1d91),(0x22c+6564-0x1bd0),
+(0x1c84+1667-0x2307));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,
+sizeof(needPb));if((0xccd+2069-0x14e2)!=strcmp(needPb,"\x6e\x6f")){
#ifdef WEBS_SECURITY
-if(access(ZPB_DB_PATH,F_OK)!=(0x11e5+1695-0x1884)){if(access(ZPB_TMP_PATH,F_OK)
-==(0x374+6191-0x1ba3)){if(remove(ZPB_SEC_PATH)!=(0x111+1492-0x6e5)){slog(
-PB_PRINT,SLOG_ERR,
+if(access(ZPB_DB_PATH,F_OK)!=(0x996+7494-0x26dc)){if(access(ZPB_TMP_PATH,F_OK)==
+(0x257a+50-0x25ac)){if(remove(ZPB_SEC_PATH)!=(0x645+3963-0x15c0)){slog(PB_PRINT,
+SLOG_ERR,
"\x72\x65\x6d\x6f\x76\x65\x20\x5a\x50\x42\x5f\x53\x45\x43\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
-);}if(rename(ZPB_TMP_PATH,ZPB_SEC_PATH)!=(0xbec+1462-0x11a2)){slog(PB_PRINT,
+);}if(rename(ZPB_TMP_PATH,ZPB_SEC_PATH)!=(0x1205+3326-0x1f03)){slog(PB_PRINT,
SLOG_ERR,
"\x72\x65\x6e\x61\x6d\x65\x20\x5a\x50\x42\x5f\x54\x4d\x50\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
-);}}if(access(ZPB_SEC_PATH,F_OK)==(0x14b2+2059-0x1cbd)){char rnum_buf[
-(0x15a0+778-0x1892)]={(0x561+2429-0xede)};char cmd[(0x73f+5857-0x1da0)]={
-(0x19a6+3149-0x25f3)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZPB_SEC_PATH,F_OK)==(0x1642+225-0x1723)){char rnum_buf[
+(0x2cb+3129-0xeec)]={(0x733+5157-0x1b58)};char cmd[(0x1c02+1107-0x1fd5)]={
+(0x1692+3668-0x24e6)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
rnum_buf));snprintf(cmd,sizeof(cmd),
"\x2f\x62\x69\x6e\x2f\x6f\x70\x65\x6e\x73\x73\x6c\x20\x65\x6e\x63\x20\x2d\x64\x20\x2d\x61\x65\x73\x32\x35\x36\x20\x2d\x73\x61\x6c\x74\x20\x2d\x69\x6e\x20\x25\x73\x20\x2d\x6f\x75\x74\x20\x25\x73\x20\x2d\x70\x61\x73\x73\x20\x70\x61\x73\x73\x3a\x25\x73"
,ZPB_SEC_PATH,ZPB_DB_PATH,rnum_buf);zxic_system(cmd);}}
#endif
-zPbMsgCreat();atPb_Init();}else{return-(0x13d4+4590-0x25c1);}printf(
+zPbMsgCreat();atPb_Init();}else{return-(0xf6f+1394-0x14e0);}printf(
"\x50\x62\x20\x61\x70\x70\x20\x69\x6e\x69\x74\x20\x66\x69\x6e\x69\x73\x68\x65\x64\x2c\x20\x77\x69\x6c\x6c\x20\x74\x6f\x20\x72\x65\x63\x65\x69\x76\x65\x20\x6d\x73\x67\x2c\x20\x6d\x73\x67\x69\x64\x3a\x25\x64" "\n"
,g_zPb_MsqId);if(pthread_create(&recv_thread_tid,NULL,pb_msg_thread_proc,(void*)
-(&g_zPb_LocalMsqId))==-(0x1ac+7218-0x1ddd)){assert((0xc1b+3857-0x1b2c));}
-detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x522+6149-0x1d27);
-}
+(&g_zPb_LocalMsqId))==-(0x18d+2844-0xca8)){assert((0x664+7313-0x22f5));}
+detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x153d+4168-0x2585)
+;}
diff --git a/ap/app/zte_comm/phonebook/src/pb_proc.c b/ap/app/zte_comm/phonebook/src/pb_proc.c
index a19c6ad..79281f9 100755
--- a/ap/app/zte_comm/phonebook/src/pb_proc.c
+++ b/ap/app/zte_comm/phonebook/src/pb_proc.c
@@ -3,185 +3,185 @@
#include <semaphore.h>
#include <limits.h>
#include "pb_com.h"
-#define ZPB_UCS2 (0x2112+391-0x2298)
-#define ZPB_UCS2_PREFIX (0xb80+5464-0x2058)
-#define ZPB_UCS2_PREFIX_LEN (0x244+5063-0x1609)
-#define ZPB_NON_GSM (0x465+5540-0x19e9)
-#define ZPB_GSM_CHARACTER_SET_SIZE (0x106+1429-0x61b)
-#define ZPB_INIT_LOAD_RECORD_NUM (0x73+1803-0x74c)
+#define ZPB_UCS2 (0x12a6+1446-0x184b)
+#define ZPB_UCS2_PREFIX (0x1c07+2056-0x238f)
+#define ZPB_UCS2_PREFIX_LEN (0xc48+4273-0x1cf7)
+#define ZPB_NON_GSM (0x1e18+823-0x212f)
+#define ZPB_GSM_CHARACTER_SET_SIZE (0x158b+2807-0x2002)
+#define ZPB_INIT_LOAD_RECORD_NUM (0x1517+296-0x160d)
VOID atPb_CvtChCode(UINT16 basePointer,UINT8 srcData,UINT8*chMsb,UINT8*chLsb);
BOOL atPb_CvtU82ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32
destLen);BOOL atPb_CvtU81ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,
UINT32 destLen);extern VOID atPb_ClearSimPbmIndexArray(VOID);extern sem_t
g_Pb_sem_id;extern T_zPb_optRsp g_PbOptRsp;UINT32 g_zPb_DelIndex=
-(0x1f6+5791-0x1895);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+(0x85a+5305-0x1d12)
-]={(0xfc4+1136-0x1434)};SINT32 g_zPb_ApIndex[ZPB_AP_MAX_RECORD+(0xfd+2853-0xc21)
-]={(0x1c7+9518-0x26f5)};T_zPb_DelStatusMultiOrAll g_zPb_DelStatusUsim={
-(0xf0+6592-0x1ab0)};const unsigned char G_ZPB_NEWUCS2TOGSM[
-ZPB_GSM_CHARACTER_SET_SIZE*(0x7c+905-0x403)]={ZPB_NON_GSM,ZPB_NON_GSM,
+(0xe3+7913-0x1fcc);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+(0x80+6286-0x190d)]=
+{(0x22e5+647-0x256c)};SINT32 g_zPb_ApIndex[ZPB_AP_MAX_RECORD+(0xc53+3990-0x1be8)
+]={(0x13b5+3257-0x206e)};T_zPb_DelStatusMultiOrAll g_zPb_DelStatusUsim={
+(0x11b3+2885-0x1cf8)};const unsigned char G_ZPB_NEWUCS2TOGSM[
+ZPB_GSM_CHARACTER_SET_SIZE*(0x246d+88-0x24c3)]={ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,(0x6c0+390-0x83c),ZPB_NON_GSM,ZPB_NON_GSM,
-(0xcfd+1169-0x1181),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,(0x1792+557-0x19b5),ZPB_NON_GSM,ZPB_NON_GSM,
+(0xef6+1787-0x15e4),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,(0x17f1+2167-0x2048),(0x1a31+1046-0x1e26),(0xf85+1827-0x1686),
-(0x7e5+7800-0x263a),(0xf6d+3030-0x1b41),(0xf02+2174-0x175b),(0x10f4+3458-0x1e50)
-,(0x848+328-0x969),(0x1447+3263-0x20de),(0x7b6+5401-0x1ca6),(0x148f+1812-0x1b79)
-,(0x188b+2335-0x217f),(0x1375+687-0x15f8),(0x1f4f+573-0x215f),
-(0xe3f+1533-0x140e),(0x28f+6344-0x1b28),(0x1140+2759-0x1bd7),(0x3b7+1648-0x9f6),
-(0x1af4+3058-0x26b4),(0xeef+4925-0x21f9),(0x16d+7203-0x1d5c),(0x1fe4+954-0x2369)
-,(0x7cc+2636-0x11e2),(0x189+2887-0xc99),(0x17c9+1348-0x1cd5),(0xbba+1361-0x10d2)
-,(0x1b2b+1364-0x2045),(0xd89+6563-0x26f1),(0x863+7218-0x2459),
-(0x1d92+2366-0x2693),(0x32d+2077-0xb0c),(0xc67+2083-0x144b),(0x10+550-0x236),
-(0xc0b+3689-0x1a33),(0xe70+3803-0x1d09),(0x1df+3269-0xe61),(0x3e0+6770-0x1e0e),
-(0x1679+4167-0x267b),(0x10d3+4935-0x23d4),(0xdaf+2333-0x1685),
-(0x11ad+5150-0x2583),(0x39d+9114-0x26ee),(0x101b+583-0x1218),(0x1bb+8883-0x2423)
-,(0x5a5+3618-0x137b),(0x734+3498-0x1491),(0x3a9+3164-0xfb7),(0x934+6623-0x22c4),
-(0x1109+2820-0x1bbd),(0x937+1009-0xcd7),(0x1afc+2263-0x2381),(0xb31+4995-0x1e61)
-,(0x40d+8108-0x2365),(0x1e22+940-0x2179),(0x1215+5116-0x25bb),(0xd4+2259-0x950),
-(0x1288+895-0x15af),(0x1992+3287-0x2610),(0x1ec+3049-0xd7b),(0x6ed+6143-0x1e91),
-ZPB_NON_GSM,(0x58b+7888-0x23fe),ZPB_NON_GSM,(0x2da+3168-0xf29),ZPB_NON_GSM,
-(0x12bc+5184-0x269b),(0x10a6+127-0x10c3),(0x837+4558-0x19a2),
-(0x10f8+3146-0x1cde),(0x1be6+2189-0x240e),(0x49a+7404-0x2120),
-(0xa0c+7099-0x2560),(0x860+7623-0x25bf),(0x4ec+430-0x631),(0x80+6629-0x19fb),
-(0xeb+8067-0x2003),(0x1a38+2773-0x24a1),(0x11a8+603-0x1396),(0x957+3442-0x165b),
-(0x610+3777-0x1462),(0x8df+3809-0x1750),(0x1570+3180-0x216b),(0xaf0+5262-0x1f0c)
-,(0x8f1+5703-0x1ec5),(0x88c+7246-0x2466),(0x2509+563-0x26c7),(0xa2f+1402-0xf33),
-(0x573+4675-0x173f),(0x1079+2228-0x18b5),(0x2507+434-0x2640),
-(0x1488+1096-0x1856),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM
-,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,(0x19a0+2220-0x222c),(0x1517+2614-0x1f2c),(0xca8+438-0xe3c),
+(0x1214+4662-0x2427),(0x8b4+7130-0x248c),(0xc6+7708-0x1ebd),(0xf74+5982-0x26ac),
+(0x580+1653-0xbce),(0x126c+5060-0x2608),(0x831+3684-0x166c),(0x844+2882-0x135c),
+(0x3c4+3041-0xf7a),(0xd9+8495-0x21dc),(0x1f56+123-0x1fa4),(0xaaa+5756-0x20f8),
+(0x1e6+8611-0x235a),(0x3dd+6964-0x1ee1),(0xcda+2593-0x16ca),(0x23c7+191-0x2454),
+(0x1785+94-0x17b0),(0xa1a+2605-0x1413),(0x180b+1867-0x1f21),(0x14b7+1216-0x1941)
+,(0xaeb+2278-0x139a),(0x1e79+662-0x20d7),(0x61a+732-0x8bd),(0x1353+3734-0x21af),
+(0x3a1+7709-0x2183),(0x17e7+1910-0x1f21),(0x1189+4886-0x2462),
+(0x256+5752-0x1890),(0x2e4+8133-0x226a),(0xd27+4713-0x1f90),(0xc81+2313-0x1549),
+(0x1501+1259-0x19aa),(0xd2b+4300-0x1db4),(0xf02+5551-0x246d),(0x5f8+8471-0x26ca)
+,(0x9f0+5178-0x1de4),(0x1ab+4552-0x132c),(0x42a+2773-0xeb7),(0x362+9143-0x26d0),
+(0x6cf+4528-0x1835),(0x457+4662-0x1642),(0x2a7+8733-0x2478),(0x9c3+3326-0x1674),
+(0xa0c+6810-0x2458),(0x10b2+2213-0x1908),(0x16fc+2775-0x2183),
+(0xb30+1495-0x10b6),(0x1546+3985-0x2485),(0x41c+7699-0x21dc),(0x23c3+324-0x24b3)
+,(0x13ac+1473-0x1918),(0x3c0+2952-0xef2),(0xebb+1669-0x14e9),(0xbda+1484-0x114e)
+,(0x1cb9+1723-0x231b),(0x6a+577-0x251),(0x547+7426-0x21ee),ZPB_NON_GSM,
+(0x1112+19-0x10c8),ZPB_NON_GSM,(0x75b+1618-0xd9c),ZPB_NON_GSM,
+(0x5d4+5444-0x1ab7),(0x757+1477-0xcba),(0x1ce1+809-0x1fa7),(0xcd0+265-0xd75),
+(0x5df+3200-0x11fa),(0x1fc+2805-0xc8b),(0xcf3+2091-0x14b7),(0xef6+5166-0x22bc),
+(0x1080+3431-0x1d7e),(0x604+5804-0x1c46),(0x1daa+549-0x1f64),(0x787+251-0x816),
+(0x1cfd+1282-0x2192),(0xacc+4197-0x1ac3),(0xb4c+432-0xc8d),(0x1af9+1821-0x21a6),
+(0x1711+298-0x17ca),(0x13a1+3934-0x228d),(0x3a7+1396-0x8a8),(0x80+5023-0x13ab),
+(0x417+8065-0x2323),(0xfd1+301-0x1088),(0x1492+2631-0x1e62),(0x1fe6+1297-0x247f)
+,(0x11d7+268-0x126a),(0x889+6166-0x2025),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0x20ed+1172-0x2541),ZPB_NON_GSM,
-(0x479+7002-0x1fd2),(0x6fb+7484-0x2413),(0x210+5221-0x1672),ZPB_NON_GSM,
-(0x10e8+5442-0x25cb),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM
-,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0x533+4130-0x1515),
+ZPB_NON_GSM,(0xb4b+3590-0x1950),(0x7f1+4771-0x1a70),(0xe4+2684-0xb5d),
+ZPB_NON_GSM,(0xc8d+6850-0x26f0),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-(0xc44+1506-0x11c6),(0x409+3129-0x1001),(0xa34+4051-0x19c6),(0x1447+3345-0x2117)
-,(0x2016+88-0x202d),(0x1460+264-0x150d),(0xd04+1601-0x1337),(0x7dc+5834-0x1e8a),
-(0xeb0+4786-0x2159),(0x1300+3020-0x1e87),(0x509+8368-0x259a),(0x1974+530-0x1b41)
-,(0x7f2+4756-0x1a41),(0xd23+1691-0x1375),(0x1bc7+620-0x1dea),(0xbf7+5602-0x2190)
-,(0x109+6846-0x1b7e),ZPB_NON_GSM,(0x1969+1956-0x20b0),(0x1ab+3201-0xddd),
-(0xb2d+605-0xd3b),(0xa3d+4484-0x1b72),(0x1627+21-0x15ed),(0x1ad4+2798-0x2566),
-ZPB_NON_GSM,(0x1828+2797-0x230a),(0x1d5f+805-0x202f),(0xee0+3518-0x1c49),
-(0x60f+753-0x8ab),(0xda7+140-0xdd5),(0xee4+1960-0x1633),ZPB_NON_GSM,
-(0x485+7057-0x1ff8),(0x1ff9+1069-0x23a7),(0x1082+755-0x1314),(0xcb1+44-0xc7c),
-(0x2385+176-0x23d4),(0x578+1696-0xb9d),(0x1adc+41-0x1af6),(0x1458+3950-0x23a9),
-(0x1510+3375-0x2236),(0x193b+2924-0x24a3),(0xb1f+1657-0x1193),
-(0x1238+1891-0x1936),(0xbaa+252-0xc41),(0x53d+5064-0x18fe),(0x1c2+7918-0x2047),
-(0x663+6410-0x1f04),(0xe15+3557-0x1b91),ZPB_NON_GSM,(0x5d2+2397-0xeb2),
-(0x180a+2932-0x2376),(0x4b5+928-0x7e6),(0xe9d+277-0xf43),(0x1ed8+1189-0x230e),
-(0x297+1444-0x7bf),ZPB_NON_GSM,(0xc+7404-0x1cec),(0xa78+2923-0x15dd),
-(0x183d+2286-0x20b6),(0xfd7+3329-0x1c63),(0x749+7624-0x2493),(0x109+2293-0x985),
-ZPB_NON_GSM,(0x3bd+5495-0x18bb)};VOID atPb_Init(VOID){UINT32 pbCount=
-(0xf3c+251-0x1037);g_zPb_SimIndex[(0xa9a+4235-0x1b25)]=(0x221+3788-0x10ed);
-sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
-ZPB_OPERATE_SUC);for(pbCount=(0xec5+5634-0x24c6);pbCount<=ZPB_SIM_MAX_RECORD;
-pbCount++){g_zPb_SimIndex[pbCount]=PBM_ERROR_NOT_FOUND;}if(ZPB_DB_OK!=
-atPb_CreatDb()){slog(PB_PRINT,SLOG_ERR,"pb:atPb_Init:create pbm table failed\n")
-;return;}if(ZPB_DB_OK!=atPb_InitApIndex()){slog(PB_PRINT,SLOG_ERR,
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,(0x79d+7347-0x23f0),(0x2ec+1903-0xa1a),(0xdea+3260-0x1a65),
+(0x172c+910-0x1a79),(0xb37+4674-0x1d38),(0xa47+2024-0x11d4),(0xe74+5055-0x2225),
+(0x2ed+1716-0x985),(0x297+8280-0x22e6),(0x1b4+4057-0x1148),(0x1f8d+1725-0x262b),
+(0x5dc+3905-0x14d8),(0x1363+1226-0x17e8),(0x3a7+6333-0x1c1b),(0xe71+51-0xe5b),
+(0x2bf+2634-0xcc0),(0x1b8+4685-0x13bc),ZPB_NON_GSM,(0x94+9805-0x2684),
+(0x17f1+2538-0x218c),(0x12e2+4078-0x2281),(0x102+7766-0x1f09),
+(0xc87+1314-0x115a),(0x5a9+3368-0x1275),ZPB_NON_GSM,(0xa81+648-0xcfe),
+(0x600+2099-0xdde),(0x4a8+8623-0x2602),(0x2fd+6895-0x1d97),(0x15a7+1280-0x1a49),
+(0x8f9+3580-0x169c),ZPB_NON_GSM,(0xf56+4483-0x20bb),(0x156c+1965-0x1c9a),
+(0x129f+5227-0x26a9),(0x1687+1143-0x1a9d),(0x171f+4145-0x26ef),
+(0x1415+76-0x13e6),(0x20f4+1318-0x260b),(0x814+3094-0x140d),(0x1ca5+702-0x1f5a),
+(0x1cfc+315-0x1e33),(0x21c8+384-0x2343),(0xaaa+2915-0x15a8),(0x916+4618-0x1abb),
+(0x726+4654-0x194d),(0x15b3+3665-0x239b),(0x85f+3156-0x144a),
+(0x1944+1218-0x1d9d),ZPB_NON_GSM,(0x550+5603-0x1ab6),(0x8e5+6421-0x21f2),
+(0x137+301-0x1f5),(0x107c+5372-0x2509),(0xb32+1527-0x10ba),(0xb3b+6510-0x242d),
+ZPB_NON_GSM,(0x1531+3129-0x215e),(0x12fb+492-0x14e1),(0xa26+767-0xcb0),
+(0x16cb+2235-0x1f11),(0x13c0+2964-0x1ed6),(0x1245+605-0x1429),ZPB_NON_GSM,
+(0x9c3+695-0xc01)};VOID atPb_Init(VOID){UINT32 pbCount=(0x14b3+2925-0x2020);
+g_zPb_SimIndex[(0xce8+1545-0x12f1)]=(0x1388+1118-0x17e6);sc_cfg_set(ZPB_NV_INIT,
+ZPB_LOADING);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(pbCount=
+(0x661+887-0x9d7);pbCount<=ZPB_SIM_MAX_RECORD;pbCount++){g_zPb_SimIndex[pbCount]
+=PBM_ERROR_NOT_FOUND;}if(ZPB_DB_OK!=atPb_CreatDb()){slog(PB_PRINT,SLOG_ERR,
+"pb:atPb_Init:create pbm table failed\n");return;}if(ZPB_DB_OK!=atPb_InitApIndex
+()){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x49\x6e\x69\x74\x3a\x69\x6e\x69\x74\x20\x61\x70\x49\x6e\x64\x65\x78\x20\x66\x61\x69\x6c\x65\x64" "\n"
);return;}(VOID)atPb_SetApCapacityTable();}VOID atPb_CfgPbNvInit(VOID){(VOID)
sc_cfg_set(ZPB_NV_USIMINDEXMIN,"\x30");(VOID)sc_cfg_set(ZPB_NV_USIMINDEXMAX,
"\x30");(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}int
atpb_CvtUcs2ToAlphaField(char*src,int srcLen,char*dest){int i=
-(0x155a+960-0x191a);int min=32767;int max=(0x137a+253-0x1477);int temp=
-(0x106b+4556-0x2237);int outOff=(0xcc1+4683-0x1f0c);printf(
+(0x22c+9344-0x26ac);int min=32767;int max=(0x80a+5296-0x1cba);int temp=
+(0x3b6+2532-0xd9a);int outOff=(0x1796+1458-0x1d48);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x70\x62\x5f\x43\x76\x74\x55\x63\x73\x32\x54\x6f\x41\x6c\x70\x68\x61\x46\x69\x65\x6c\x64\x2c\x20\x73\x72\x63\x4c\x65\x6e\x3d\x25\x64" "\n"
-,srcLen);if(srcLen<=(0x92b+2319-0x123a)||src==NULL||dest==NULL){return-
-(0x2089+1322-0x25b2);}if(srcLen<=(0x22a9+744-0x258f)){dest[(0x1948+2021-0x212d)]
-=(0x18ec+1522-0x1e5e);memcpy(dest+(0xb04+2703-0x1592),src,srcLen);printf(
+,srcLen);if(srcLen<=(0x1c5f+1016-0x2057)||src==NULL||dest==NULL){return-
+(0x73b+4111-0x1749);}if(srcLen<=(0x892+5131-0x1c9b)){dest[(0xf73+4210-0x1fe5)]=
+(0x3c0+779-0x64b);memcpy(dest+(0x548+4231-0x15ce),src,srcLen);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x70\x62\x5f\x43\x76\x74\x55\x63\x73\x32\x54\x6f\x41\x6c\x70\x68\x61\x46\x69\x65\x6c\x64\x2c\x20\x75\x73\x65\x20\x38\x30\x20\x63\x6f\x64\x65\x2c\x20\x6c\x65\x6e\x20\x3d\x25\x64" "\n"
-,srcLen+(0x17f6+2802-0x22e7));return srcLen+(0xa16+4548-0x1bd9);}for(i=
-(0xbfd+1031-0x1004);i<srcLen;i+=(0xd81+1042-0x1191)){if(src[i]!=
-(0x62a+1911-0xda1)){temp=(int)(((src[i]<<(0xcf+1192-0x56f))&65280)|(src[i+
-(0x3f7+3924-0x134a)]&(0x2045+1938-0x26d8)));
-#if (0x8b6+6368-0x2196)
-if(temp<(0x8e2+6950-0x2408)){max=min+(0x71b+4085-0x168e);break;}
+,srcLen+(0x1090+3170-0x1cf1));return srcLen+(0x96a+2969-0x1502);}for(i=
+(0x1d83+1531-0x237e);i<srcLen;i+=(0x7ca+4464-0x1938)){if(src[i]!=
+(0xd29+1238-0x11ff)){temp=(int)(((src[i]<<(0x1557+3011-0x2112))&65280)|(src[i+
+(0xc83+389-0xe07)]&(0x16ea+41-0x1614)));
+#if (0x8eb+6611-0x22be)
+if(temp<(0x1938+204-0x1a04)){max=min+(0xb0f+433-0xc3e);break;}
#endif
if(min>temp){min=temp;}if(max<temp){max=temp;}}}printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x70\x62\x5f\x43\x76\x74\x55\x63\x73\x32\x54\x6f\x41\x6c\x70\x68\x61\x46\x69\x65\x6c\x64\x2c\x20\x6d\x69\x6e\x3d\x25\x64\x2c\x20\x6d\x61\x78\x3d\x25\x64" "\n"
-,min,max);if((max-min)<(0x1b7+4478-0x12b4)){if((unsigned char)(min&
-(0x236f+415-0x248e))==(unsigned char)(max&(0x953+5659-0x1eee))){dest[
-(0x668+618-0x8d1)]=(unsigned char)(srcLen/(0xddb+6099-0x25ac));dest[
-(0x26b+8238-0x2299)]=(unsigned char)(0xccb+3407-0x1999);min=(int)(min&32640);
-dest[(0x615+5344-0x1af3)]=(unsigned char)((min>>(0xb9d+206-0xc64))&
-(0x131d+4747-0x24a9));outOff=(0x118c+1930-0x1913);printf(
+,min,max);if((max-min)<(0x1fa6+1252-0x2409)){if((unsigned char)(min&
+(0x366+4538-0x14a0))==(unsigned char)(max&(0x1188+3656-0x1f50))){dest[
+(0x43b+5222-0x18a0)]=(unsigned char)(srcLen/(0xca+5685-0x16fd));dest[
+(0x1915+2857-0x243e)]=(unsigned char)(0xb6+2005-0x80a);min=(int)(min&32640);dest
+[(0x1bfa+495-0x1de7)]=(unsigned char)((min>>(0x17f+4933-0x14bd))&
+(0x1023+1610-0x156e));outOff=(0x11e7+4445-0x2341);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x70\x62\x5f\x43\x76\x74\x55\x63\x73\x32\x54\x6f\x41\x6c\x70\x68\x61\x46\x69\x65\x6c\x64\x2c\x20\x75\x73\x65\x20\x38\x31\x20\x63\x6f\x64\x65" "\n"
-);}else{dest[(0x582+2107-0xdbc)]=(unsigned char)(srcLen/(0x60+6777-0x1ad7));dest
-[(0x14c0+3327-0x21bf)]=(unsigned char)(0x1404+3636-0x21b6);dest[
-(0x2db+3026-0xeab)]=(unsigned char)((min>>(0x2420+711-0x26df))&
-(0x201+7200-0x1d22));dest[(0xe4+4072-0x10c9)]=(unsigned char)(min&
-(0xfe9+3181-0x1b57));outOff=(0x1093+5564-0x264b);printf(
+);}else{dest[(0x1957+1921-0x20d7)]=(unsigned char)(srcLen/(0xad6+27-0xaef));dest
+[(0x1b6d+971-0x1f38)]=(unsigned char)(0x174+4121-0x110b);dest[(0x2fd+2526-0xcd9)
+]=(unsigned char)((min>>(0x19d7+2644-0x2423))&(0xb38+3625-0x1862));dest[
+(0x226+5750-0x1899)]=(unsigned char)(min&(0x399+1338-0x7d4));outOff=
+(0xb07+6027-0x228e);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x70\x62\x5f\x43\x76\x74\x55\x63\x73\x32\x54\x6f\x41\x6c\x70\x68\x61\x46\x69\x65\x6c\x64\x2c\x20\x75\x73\x65\x20\x38\x32\x20\x63\x6f\x64\x65" "\n"
-);}for(i=(0xe96+176-0xf46);i<srcLen;i+=(0x5c8+4152-0x15fe)){if(src[i]==
-(0x11f2+4026-0x21ac)){dest[outOff]=(unsigned char)(src[i+(0x1758+340-0x18ab)]&
-(0x94c+3954-0x183f));}else{temp=(int)((((src[i]<<(0xe1+7053-0x1c66))&65280)|(src
-[i+(0x22+3603-0xe34)]&(0xde2+4713-0x1f4c)))-min);dest[outOff]=(unsigned char)(
-temp|(0xd7a+956-0x10b6));}outOff++;}printf(
+);}for(i=(0x1003+3959-0x1f7a);i<srcLen;i+=(0xba0+3338-0x18a8)){if(src[i]==
+(0x88d+7355-0x2548)){dest[outOff]=(unsigned char)(src[i+(0x887+5369-0x1d7f)]&
+(0x186+3645-0xf44));}else{temp=(int)((((src[i]<<(0x16c2+4068-0x269e))&65280)|(
+src[i+(0x112c+3555-0x1f0e)]&(0xbff+4305-0x1bd1)))-min);dest[outOff]=(unsigned
+char)(temp|(0x23c4+285-0x2461));}outOff++;}printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x70\x62\x5f\x43\x76\x74\x55\x63\x73\x32\x54\x6f\x41\x6c\x70\x68\x61\x46\x69\x65\x6c\x64\x2c\x20\x20\x6f\x75\x74\x4f\x66\x66\x3d\x25\x64\x2c\x64\x65\x73\x74\x5b\x25\x64\x5d\x3d\x25\x78" "\n"
-,outOff,outOff,dest[outOff]);return outOff;}dest[(0x531+7482-0x226b)]=
-(0x1a07+1851-0x20c2);memcpy(dest+(0x1d7+5265-0x1667),src,srcLen);printf(
+,outOff,outOff,dest[outOff]);return outOff;}dest[(0xf33+1162-0x13bd)]=
+(0x20b+5103-0x157a);memcpy(dest+(0x1847+3385-0x257f),src,srcLen);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x70\x62\x5f\x43\x76\x74\x55\x63\x73\x32\x54\x6f\x41\x6c\x70\x68\x61\x46\x69\x65\x6c\x64\x2c\x20\x75\x73\x65\x20\x38\x30\x20\x63\x6f\x64\x65\x2c\x20\x6c\x65\x6e\x20\x3d\x25\x64" "\n"
-,srcLen+(0xc56+3009-0x1816));return srcLen+(0x108d+226-0x116e);}int
+,srcLen+(0x17aa+2465-0x214a));return srcLen+(0xe84+5401-0x239c);}int
atPb_GetU80Code(const UINT8*srcCode,UINT32 srcCodeLen,UINT8*destCode,UINT32
destCodeLen){assert(destCode!=NULL&&srcCode!=NULL);if(srcCodeLen==
-(0x372+2314-0xc7c)||destCodeLen==(0x11da+291-0x12fd)||destCodeLen<srcCodeLen){
-return-(0x8d8+5932-0x2003);}memset(destCode,(0x233+5810-0x18e5),destCodeLen);
-destCode[(0x899+2945-0x141a)]=(0x1505+1507-0x1a68);printf(
+(0x175+1076-0x5a9)||destCodeLen==(0x38b+258-0x48d)||destCodeLen<srcCodeLen){
+return-(0x8f4+4949-0x1c48);}memset(destCode,(0x5b2+737-0x893),destCodeLen);
+destCode[(0x1096+3569-0x1e87)]=(0x124a+2936-0x1d42);printf(
"\x63\x68\x65\x6e\x6a\x69\x65\x20\x2d\x2d\x2d\x2d\x2d\x61\x74\x50\x62\x5f\x47\x65\x74\x55\x38\x30\x43\x6f\x64\x65\x2d\x2d\x2d\x2d\x2d\x73\x72\x63\x43\x6f\x64\x65\x5b\x30\x5d\x20\x3d\x20\x25\x64" "\n"
-,srcCode[(0x1743+1274-0x1c3d)]);switch(srcCode[(0x86f+6301-0x210c)]){case
-(0xd29+3001-0x1862):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}case
-(0xc6a+313-0xd22):{atPb_CvtU81ToU80(srcCode+(0xecf+5874-0x25c0),srcCodeLen-
-(0x14fc+1716-0x1baf),destCode+(0x63a+5086-0x1a17),destCodeLen-
-(0x761+7748-0x25a4));return srcCode[(0x937+5239-0x1dad)]*(0x539+7110-0x20fd)+
-(0x1134+52-0x1167);}case(0x858+4156-0x1812):{atPb_CvtU82ToU80(srcCode+
-(0x1e0d+339-0x1f5f),srcCodeLen-(0x1124+3507-0x1ed6),destCode+(0xbc4+761-0xebc),
-destCodeLen-(0xa13+1136-0xe82));return srcCode[(0x103+1318-0x628)]*
-(0xc5b+6688-0x2679)+(0x926+5460-0x1e79);}default:{return-(0x1de5+281-0x1efd);}}}
+,srcCode[(0xa3f+4935-0x1d86)]);switch(srcCode[(0x6a7+6355-0x1f7a)]){case
+(0x194+6164-0x1928):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}case
+(0xff2+5319-0x2438):{atPb_CvtU81ToU80(srcCode+(0x3da+7753-0x2222),srcCodeLen-
+(0xe5d+4314-0x1f36),destCode+(0xce8+3056-0x18d7),destCodeLen-
+(0x18f1+3247-0x259f));return srcCode[(0x21f4+70-0x2239)]*(0x12b2+1888-0x1a10)+
+(0x522+424-0x6c9);}case(0x469+8288-0x2447):{atPb_CvtU82ToU80(srcCode+
+(0xa99+6569-0x2441),srcCodeLen-(0x661+8118-0x2616),destCode+(0x188+9066-0x24f1),
+destCodeLen-(0x1071+5680-0x26a0));return srcCode[(0xe5a+4618-0x2063)]*
+(0x204c+693-0x22ff)+(0x1afb+101-0x1b5f);}default:{return-(0x53b+6903-0x2031);}}}
BOOL atPb_CvtU82ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32
-destLen){UINT8 chNum=(0x1ef5+309-0x202a);UINT16 basePointer=(0xc64+4895-0x1f83);
-UINT8 iCurChar=(0x3a5+3035-0xf80);UINT32 iCurSrc=(0x148+508-0x344);chNum=(UINT32
-)srcData[(0x2f4+8739-0x2517)];basePointer=(UINT16)srcData[(0x5cd+7224-0x2204)];
-basePointer=basePointer<<(0x785+5946-0x1eb7);basePointer=basePointer+srcData[
-(0x1110+2276-0x19f2)];if(chNum*(0x1e6+6701-0x1c11)>destLen){return FALSE;}for(
-iCurSrc=(0x48b+2091-0xcb3);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++){
-UINT8*curDest=destData+(0x9a4+7020-0x250e)*iCurChar;atPb_CvtChCode(basePointer,
-srcData[iCurSrc],curDest,curDest+(0x1dc4+1763-0x24a6));}return TRUE;}BOOL
-atPb_CvtU81ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32 destLen
-){UINT8 chNum=(0xf0f+4722-0x2181);UINT16 basePointer=(0x12b+288-0x24b);UINT8
-iCurChar=(0x5f+1919-0x7de);UINT32 iCurSrc=(0x29c+204-0x368);chNum=srcData[
-(0x1a46+3083-0x2651)];basePointer=((UINT16)srcData[(0xba3+125-0xc1f)])<<
-(0x1c61+131-0x1cdd);if(chNum*(0xca8+499-0xe99)>destLen){return FALSE;}for(
-iCurSrc=(0x10a2+2649-0x1af9);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++
-){UINT8*curDest=destData+(0xb50+3480-0x18e6)*iCurChar;atPb_CvtChCode(basePointer
-,srcData[iCurSrc],curDest,curDest+(0x587+5794-0x1c28));}return TRUE;}VOID
-atPb_CvtChCode(UINT16 basePointer,UINT8 srcData,UINT8*chMsb,UINT8*chLsb){UINT16
-curChar=(0x13d1+2652-0x1e2d);assert(chMsb!=NULL&&chLsb!=NULL);if((srcData&
-(0x415+1877-0xaea))==(0x7c2+2615-0x11f9)){curChar=srcData;}else{curChar=
-basePointer+(srcData&(0x21bf+772-0x2444));}*chMsb=(UINT8)(curChar>>
-(0xecb+4339-0x1fb6));*chLsb=(UINT8)((curChar<<(0x12aa+3470-0x2030))>>
-(0x573+4079-0x155a));return;}int atPb_String2Bytes(const char*pSrc,unsigned char
-*pDst,int nSrcLength){int i=(0x843+2048-0x1043);if(pSrc==NULL||pDst==NULL||
-nSrcLength<(0x176f+10-0x1779)){return-(0x4ff+7489-0x223f);}for(i=
-(0x1454+1116-0x18b0);i<nSrcLength;i+=(0x102f+3098-0x1c47)){if(*pSrc>=
-((char)(0xc70+1567-0x125f))&&*pSrc<=((char)(0x1fa+2473-0xb6a))){*pDst=(*pSrc-
-((char)(0x227c+1191-0x26f3)))<<(0x160+5807-0x180b);}else{*pDst=((toupper(*pSrc)-
-((char)(0x6c4+2820-0x1187)))+(0x1266+1885-0x19b9))<<(0xc08+6023-0x238b);}pSrc++;
-if(*pSrc>=((char)(0xb04+6392-0x23cc))&&*pSrc<=((char)(0x1051+5595-0x25f3))){*
-pDst|=*pSrc-((char)(0xa39+4956-0x1d65));}else{*pDst|=(toupper(*pSrc)-
-((char)(0xb85+6879-0x2623)))+(0x100d+750-0x12f1);}pSrc++;pDst++;}return
-nSrcLength/(0x1361+176-0x140f);}int atPb_Bytes2String(const unsigned char*pSrc,
+destLen){UINT8 chNum=(0x118c+215-0x1263);UINT16 basePointer=(0x432+5101-0x181f);
+UINT8 iCurChar=(0x357+4977-0x16c8);UINT32 iCurSrc=(0x1667+3382-0x239d);chNum=(
+UINT32)srcData[(0x19eb+1923-0x216e)];basePointer=(UINT16)srcData[
+(0x7cc+1729-0xe8c)];basePointer=basePointer<<(0x123b+524-0x143f);basePointer=
+basePointer+srcData[(0xdbc+118-0xe30)];if(chNum*(0x11f5+1449-0x179c)>destLen){
+return FALSE;}for(iCurSrc=(0xca0+3751-0x1b44);iCurSrc<srcLen&&iCurChar<chNum;
+iCurSrc++,iCurChar++){UINT8*curDest=destData+(0x52b+407-0x6c0)*iCurChar;
+atPb_CvtChCode(basePointer,srcData[iCurSrc],curDest,curDest+(0x378+2201-0xc10));
+}return TRUE;}BOOL atPb_CvtU81ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*
+destData,UINT32 destLen){UINT8 chNum=(0xf54+3806-0x1e32);UINT16 basePointer=
+(0x5c6+4923-0x1901);UINT8 iCurChar=(0x1c49+1331-0x217c);UINT32 iCurSrc=
+(0xbc1+5536-0x2161);chNum=srcData[(0x1c1a+1589-0x224f)];basePointer=((UINT16)
+srcData[(0x13+2447-0x9a1)])<<(0xd33+447-0xeeb);if(chNum*(0x10cd+5464-0x2623)>
+destLen){return FALSE;}for(iCurSrc=(0x1865+148-0x18f7);iCurSrc<srcLen&&iCurChar<
+chNum;iCurSrc++,iCurChar++){UINT8*curDest=destData+(0xc0+6812-0x1b5a)*iCurChar;
+atPb_CvtChCode(basePointer,srcData[iCurSrc],curDest,curDest+(0x1820+514-0x1a21))
+;}return TRUE;}VOID atPb_CvtChCode(UINT16 basePointer,UINT8 srcData,UINT8*chMsb,
+UINT8*chLsb){UINT16 curChar=(0xef2+4855-0x21e9);assert(chMsb!=NULL&&chLsb!=NULL)
+;if((srcData&(0xe01+1722-0x143b))==(0x215b+1238-0x2631)){curChar=srcData;}else{
+curChar=basePointer+(srcData&(0x1919+621-0x1b07));}*chMsb=(UINT8)(curChar>>
+(0x18c4+3385-0x25f5));*chLsb=(UINT8)((curChar<<(0xe53+1892-0x15af))>>
+(0x24b1+410-0x2643));return;}int atPb_String2Bytes(const char*pSrc,unsigned char
+*pDst,int nSrcLength){int i=(0x302+2521-0xcdb);if(pSrc==NULL||pDst==NULL||
+nSrcLength<(0x11b+2852-0xc3f)){return-(0x663+6634-0x204c);}for(i=
+(0xef2+5061-0x22b7);i<nSrcLength;i+=(0x542+966-0x906)){if(*pSrc>=
+((char)(0x300+925-0x66d))&&*pSrc<=((char)(0x6e7+4072-0x1696))){*pDst=(*pSrc-
+((char)(0x1c59+1010-0x201b)))<<(0xcfb+1603-0x133a);}else{*pDst=((toupper(*pSrc)-
+((char)(0x13a5+811-0x168f)))+(0x144d+1695-0x1ae2))<<(0x10e2+4598-0x22d4);}pSrc++
+;if(*pSrc>=((char)(0x1445+1281-0x1916))&&*pSrc<=((char)(0x1a0+109-0x1d4))){*pDst
+|=*pSrc-((char)(0x5d6+4676-0x17ea));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x1690+1889-0x1db0)))+(0x128a+3808-0x2160);}pSrc++;pDst++;}return
+nSrcLength/(0x40+5221-0x14a3);}int atPb_Bytes2String(const unsigned char*pSrc,
char*pDst,int nSrcLength){const char tab[]=
"\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x41\x42\x43\x44\x45\x46";int i=
-(0x16fd+508-0x18f9);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x659+8342-0x26ef)){
-return-(0x313+1184-0x7b2);}for(i=(0x2261+1182-0x26ff);i<nSrcLength;i++){*pDst++=
-tab[*pSrc>>(0x115c+715-0x1423)];*pDst++=tab[*pSrc&(0x184a+3657-0x2684)];pSrc++;}
-*pDst='\0';return nSrcLength*(0x109a+2366-0x19d6);}static VOID
-atPb_WebRecodeShow(T_zPb_WebContact const*pFromweb){slog(PB_PRINT,SLOG_DEBUG,
+(0xff+288-0x21f);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1e85+817-0x21b6)){
+return-(0x7e9+278-0x8fe);}for(i=(0x292+677-0x537);i<nSrcLength;i++){*pDst++=tab[
+*pSrc>>(0x1fc2+1823-0x26dd)];*pDst++=tab[*pSrc&(0xa13+2970-0x159e)];pSrc++;}*
+pDst='\0';return nSrcLength*(0x555+5688-0x1b8b);}static VOID atPb_WebRecodeShow(
+T_zPb_WebContact const*pFromweb){slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x66\x72\x6f\x6d\x77\x65\x62\x2e\x49\x6e\x64\x65\x78\x3d\x25\x64" "\n"
,pFromweb->pbIndex);slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x66\x72\x6f\x6d\x77\x65\x62\x2e\x4e\x61\x6d\x65\x3d\x25\x73" "\n",
@@ -200,21 +200,21 @@
){sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x61\x74\x42\x61\x73\x65\x5f\x49\x69\x6e\x74\x50\x62\x4f\x6b\x20" "\n"
);}VOID atPb_RecvCpbsReadRsp(T_zPb_AtCpbsReadRes*cpbsInd){CHAR resInfo[
-(0x22db+1086-0x2705)]={(0x46c+6446-0x1d9a)};if(strncmp(cpbsInd->locType,
-"\x53\x4d",(0x1983+2740-0x2435))==(0xf2c+5214-0x238a)){(VOID)snprintf(resInfo,
-(0xc24+5147-0x202b),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
-NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x116a+2294-0x1a60),
-(0x20ea+908-0x2462));(VOID)snprintf(resInfo,(0x16a4+2850-0x21b2),"\x25\x64",
+(0x9c7+2831-0x14c2)]={(0x763+2891-0x12ae)};if(strncmp(cpbsInd->locType,
+"\x53\x4d",(0x1956+23-0x196b))==(0xb95+1406-0x1113)){(VOID)snprintf(resInfo,
+(0x6c5+7421-0x23ae),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
+NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x4e5+8429-0x25d2),
+(0xa12+2911-0x155d));(VOID)snprintf(resInfo,(0x1c8f+503-0x1e72),"\x25\x64",
cpbsInd->totalEntries);(VOID)sc_cfg_set(NV_PB_TOTALENTRIES,resInfo);
-g_zPb_SimIndex[(0x86a+7366-0x2530)]=(UINT32)(cpbsInd->totalEntries);}else{printf
+g_zPb_SimIndex[(0x873+4280-0x192b)]=(UINT32)(cpbsInd->totalEntries);}else{printf
(
"\x61\x74\x50\x62\x5f\x52\x65\x63\x76\x43\x70\x62\x73\x52\x65\x61\x64\x52\x73\x70\x20\x6e\x6f\x74\x20\x53\x4d\x3a\x25\x73" "\n"
,cpbsInd->locType);}}static VOID atPb_SetScpbrResToNv(CHAR const*pbNvKeyWord,
-UINT32 len){char converted[(0xb21+4208-0x1b87)]={(0x4e7+1543-0xaee)};assert(
-pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0x53+7265-0x1caa),"\x25\x64",
-len);(VOID)sc_cfg_set(pbNvKeyWord,converted);}VOID atPb_ScpbrTestRsp(
-T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0x1b86+1978-0x2340)};
-CHAR pbUsed[(0x14f0+415-0x165d)]={(0xb88+4125-0x1ba5)};sc_cfg_get(
+UINT32 len){char converted[(0x86f+405-0x9fa)]={(0x243+6888-0x1d2b)};assert(
+pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0x1649+1512-0x1c27),"\x25\x64"
+,len);(VOID)sc_cfg_set(pbNvKeyWord,converted);}VOID atPb_ScpbrTestRsp(
+T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0x459+4110-0x1467)};
+CHAR pbUsed[(0x6b6+4937-0x19cd)]={(0x1c05+1287-0x210c)};sc_cfg_get(
NV_PB_USEDENTRIES,pbUsed,sizeof(pbUsed));g_zPb_DelIndex=(UINT32)scpbsInd->
minIndex;pbPara.simType=ZPB_USIM;pbPara.maxRecordNum=scpbsInd->maxIndex;pbPara.
usedRecordNum=atoi(pbUsed);pbPara.maxNumberLen=scpbsInd->maxNumberLen;pbPara.
@@ -223,22 +223,22 @@
atPb_SetScpbrResToNv(ZPB_NV_USIMINDEXMIN,(UINT32)scpbsInd->minIndex);
atPb_SetScpbrResToNv(ZPB_NV_USIMINDEXMAX,(UINT32)scpbsInd->maxIndex);(VOID)
atPb_SetSimCapacityTable(pbPara);}int atPb_SendScpbrSet_repeat(sem_t tSemId){int
- min=(0x242d+601-0x2686);int max=(0x2494+547-0x26b7);int res=
-(0x104a+4851-0x233d);int index=(0x30+9019-0x236b);CHAR pbMin[(0xfd6+4789-0x2259)
-]={(0x5a1+6931-0x20b4)};CHAR pbMax[(0xca+3505-0xe49)]={(0xe69+2275-0x174c)};int
-indexmin=(0x6a8+5562-0x1c62);int indexmax=(0x192c+675-0x1bcf);T_zPb_ScpbrReadRes
- scpbrReadInfo={(0x6aa+6739-0x20fd)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof
-(pbMin));sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));(VOID)sc_cfg_set(
-ZPB_NV_INIT,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0x4a9+2913-0x100a)||strcmp(
-pbMax,"\x30")==(0x1174+2220-0x1a20)){sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);
-printf(
+ min=(0x9a1+2946-0x1523);int max=(0x1bc9+1436-0x2165);int res=
+(0x1c31+1126-0x2097);int index=(0xdb0+706-0x1072);CHAR pbMin[(0x11a0+417-0x130f)
+]={(0x386+7613-0x2143)};CHAR pbMax[(0x9bf+5710-0x1fdb)]={(0x125b+3169-0x1ebc)};
+int indexmin=(0x92b+4719-0x1b9a);int indexmax=(0x120a+2793-0x1cf3);
+T_zPb_ScpbrReadRes scpbrReadInfo={(0x21f4+627-0x2467)};sc_cfg_get(
+ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,
+sizeof(pbMax));(VOID)sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);if(strcmp(pbMin,"\x30")
+==(0x46+3705-0xebf)||strcmp(pbMax,"\x30")==(0x35b+2268-0xc37)){sc_cfg_set(
+ZPB_NV_INIT,ZPB_OPERATE_SUC);printf(
"\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x63\x61\x72\x64\x20\x75\x6e\x73\x75\x70\x70\x6f\x72\x74\x20\x70\x62" "\n"
-);return-(0x141c+4045-0x23e8);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
-"\x25\x64",&max);if((min<(0x1be7+721-0x1eb8)||min>INT_MAX-(0x15b1+2321-0x1ec1))
-||(max<(0xa8a+6305-0x232b)||max>INT_MAX-(0xa65+1996-0x1230))){printf(
+);return-(0x80d+2996-0x13c0);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
+"\x25\x64",&max);if((min<(0x2d5+1547-0x8e0)||min>INT_MAX-(0xd81+5161-0x21a9))||(
+max<(0x1e9+8697-0x23e2)||max>INT_MAX-(0x2a4+1123-0x706))){printf(
"\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x70\x62\x20\x6e\x75\x6d\x20\x65\x72\x72\x20\x6d\x69\x6e\x3a\x25\x64\x2c\x20\x6d\x61\x78\x3a\x25\x64" "\n"
-,min,max);return-(0xd97+2116-0x15da);}while((0xe25+599-0x107b)){if(indexmin<min)
-{indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0xfd9+1016-0x13d0);if(
+,min,max);return-(0xf58+5633-0x2558);}while((0x590+5714-0x1be1)){if(indexmin<min
+){indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0x682+4713-0x18ea);if(
indexmax>max){indexmax=max;break;}printf(
"\x5b\x50\x42\x5d\x20\x31\x31\x31\x20\x69\x6e\x64\x65\x78\x6d\x69\x6e\x3d\x25\x64\x2c\x20\x69\x6e\x64\x65\x78\x6d\x61\x78\x3d\x25\x64\x2c\x28\x25\x64\x2d\x25\x64\x29" "\n"
,indexmin,indexmax,min,max);}else{indexmin=indexmin+ZPB_INIT_LOAD_RECORD_NUM;if(
@@ -250,17 +250,17 @@
,indexmin,indexmax,min,max);}scpbrReadInfo.minIndex=indexmin;scpbrReadInfo.
maxIndex=indexmax;res=ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,
MSG_CMD_READ_PB_REQ,sizeof(T_zPb_ScpbrReadRes),&scpbrReadInfo,
-(0xb1c+3695-0x198b));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-
-(0x7ad+106-0x816)){break;}}return g_PbOptRsp.result;}
-#if (0xf7b+36-0xf9f)
+(0x814+5759-0x1e93));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-
+(0xd9a+6124-0x2585)){break;}}return g_PbOptRsp.result;}
+#if (0xd07+4500-0x1e9b)
int atPb_SendScpbrSet(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){UINT32
-indexmin=(0x871+1165-0xcfe);UINT32 indexmax=(0x971+5000-0x1cf9);CHAR atcmdMsg[
-(0x108d+1959-0x17ee)]={(0xd64+4746-0x1fee)};int res=(0xb90+5294-0x203e);CHAR
-pbMin[(0xd83+5015-0x20e8)]={(0x178f+2182-0x2015)};CHAR pbMax[(0x927+151-0x98c)]=
-{(0x175f+3460-0x24e3)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
+indexmin=(0xc74+3099-0x188f);UINT32 indexmax=(0xbbb+6478-0x2509);CHAR atcmdMsg[
+(0x4f1+6292-0x1d3f)]={(0x16b8+1725-0x1d75)};int res=(0x351+5108-0x1745);CHAR
+pbMin[(0x1120+4335-0x21dd)]={(0x5e4+7397-0x22c9)};CHAR pbMax[(0x9f0+1763-0x10a1)
+]={(0x711+488-0x8f9)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));(VOID)sc_cfg_set(ZPB_NV_INIT
-,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0x1bf+2041-0x9b8)||strcmp(pbMax,"\x30")
-==(0xe1f+329-0xf68)){printf(
+,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0xb0b+3744-0x19ab)||strcmp(pbMax,"\x30")
+==(0x937+7580-0x26d3)){printf(
"\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x63\x61\x72\x64\x20\x75\x6e\x73\x75\x70\x70\x6f\x72\x74\x20\x70\x62" "\n"
);return ZAT_RESULT_OK;}sscanf(pbMin,"\x25\x64",&indexmin);sscanf(pbMax,
"\x25\x64",&indexmax);(VOID)snprintf(atcmdMsg,sizeof(atcmdMsg),
@@ -269,45 +269,45 @@
atcmdMsg,cid,pAtRst,atRstSize);pthread_mutex_unlock(&smsdb_mutex);return res;}
#endif
UINT8 atPb_EncodeText(CHAR*pbDst,CHAR const*pbTextSrc,UINT32 dstLen){UINT8 i=
-(0x1b6f+276-0x1c83);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x223b+825-0x2574)};if
-(pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0x39c+410-0x532)+
-ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0xd98+4974-0x2106)],
-sizeof(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0xa7f+6957-0x25ac);
-(i<strlen(pbTextSrc))&&(i*(0xd3d+737-0x101a)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
-snprintf(strTarget+i*(0x8a3+4268-0x194b)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i
-*(0x75d+2601-0x1182)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i]
-);}strncpy(pbDst,strTarget,dstLen-(0x39d+8917-0x2671));return ZUFI_SUCC;}}return
- ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){T_zPb_WebContact
-pbRecord={(0x27+1043-0x43a)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
-(0x1485+276-0x1599)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0x8b9+1133-0xd26)};int
-text_len=(0xb81+36-0xba5);int tmp_len=(0xbca+3193-0x1843);CHAR tmp[
-ZPB_TEXT_SIZE_BYTES]={(0xe36+4341-0x1f2b)};if(atRes->coding!=ZPB_UCS2){if(
+(0x9f0+3166-0x164e);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x89b+2717-0x1338)};if
+(pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0x25a7+164-0x2647)+
+ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0x938+579-0xb7b)],sizeof
+(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0x75a+2533-0x113f);(i<
+strlen(pbTextSrc))&&(i*(0xb2a+605-0xd83)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
+snprintf(strTarget+i*(0x797+4815-0x1a62)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i
+*(0x67b+7916-0x2563)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i]
+);}strncpy(pbDst,strTarget,dstLen-(0x455+1521-0xa45));return ZUFI_SUCC;}}return
+ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){T_zPb_WebContact
+pbRecord={(0x19f+7502-0x1eed)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
+(0x909+3812-0x17ed)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0x182c+2751-0x22eb)};int
+text_len=(0xe8d+2095-0x16bc);int tmp_len=(0x7ba+2653-0x1217);CHAR tmp[
+ZPB_TEXT_SIZE_BYTES]={(0x1889+2629-0x22ce)};if(atRes->coding!=ZPB_UCS2){if(
atPb_EncodeText(pbDst,atRes->text,ZPB_TEXT_SIZE_BYTES)==ZUFI_SUCC){strncpy(atRes
-->text,pbDst+(0xb0d+4221-0x1b88),sizeof(atRes->text)-(0x501+1990-0xcc6));}else{
+->text,pbDst+(0x8b2+7142-0x2496),sizeof(atRes->text)-(0x9ad+4588-0x1b98));}else{
slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x53\x63\x70\x62\x72\x53\x65\x74\x52\x73\x70\x65\x6e\x63\x6f\x64\x65\x20\x65\x72\x72\x21\x2e" "\n"
);return;}}else{text_len=atPb_String2Bytes(&atRes->text,&text,strlen(atRes->text
));tmp_len=atPb_GetU80Code(&text,text_len,&tmp,ZPB_TEXT_SIZE_BYTES);if(tmp_len<
-(0x255+3036-0xe31))return;memset(&text,(0x527+5285-0x19cc),ZPB_TEXT_SIZE_BYTES);
-text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>(0x765+3069-0x1360)){
-memset(&atRes->text,(0x15f7+3364-0x231b),ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->
-text,text+(0x1aef+1779-0x21e0),strlen(text)-(0xb1f+4649-0x1d46));}}pbRecord.pbId
-=-(0x6+7613-0x1dc2);pbRecord.pbIndex=(SINT32)atRes->index;strncpy(pbRecord.name,
-atRes->text,sizeof(pbRecord.name)-(0x67+311-0x19d));strncpy(pbRecord.mobilNumber
-,atRes->number1,sizeof(pbRecord.mobilNumber)-(0x173b+2196-0x1fce));strncpy(
-pbRecord.officeNumber,atRes->number2,sizeof(pbRecord.officeNumber)-
-(0x421+7543-0x2197));strncpy(pbRecord.homeNumber,atRes->number3,sizeof(pbRecord.
-homeNumber)-(0x143c+999-0x1822));strncpy(pbRecord.email,atRes->email,sizeof(
-pbRecord.email)-(0x249+3831-0x113f));pbRecord.pbLocation=ZPB_LOCATION_USIM;(VOID
+(0xc29+800-0xf49))return;memset(&text,(0x849+2122-0x1093),ZPB_TEXT_SIZE_BYTES);
+text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>(0x55+5552-0x1603)){
+memset(&atRes->text,(0x19e5+2041-0x21de),ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->
+text,text+(0x380+5942-0x1ab4),strlen(text)-(0xbb7+2121-0x13fe));}}pbRecord.pbId=
+-(0x228b+51-0x22bd);pbRecord.pbIndex=(SINT32)atRes->index;strncpy(pbRecord.name,
+atRes->text,sizeof(pbRecord.name)-(0xf7b+489-0x1163));strncpy(pbRecord.
+mobilNumber,atRes->number1,sizeof(pbRecord.mobilNumber)-(0xb04+2932-0x1677));
+strncpy(pbRecord.officeNumber,atRes->number2,sizeof(pbRecord.officeNumber)-
+(0x1102+2846-0x1c1f));strncpy(pbRecord.homeNumber,atRes->number3,sizeof(pbRecord
+.homeNumber)-(0x256+8732-0x2471));strncpy(pbRecord.email,atRes->email,sizeof(
+pbRecord.email)-(0xa07+5413-0x1f2b));pbRecord.pbLocation=ZPB_LOCATION_USIM;(VOID
)atPb_LoadARecToPbmTable(&pbRecord);}VOID atPb_SetDelStatusMultOrAll(){if(
-g_zPb_DelStatusUsim.dealFailNum>(0x71c+236-0x808)){if(g_zPb_DelStatusUsim.
-dealSuccNum>(0xe63+210-0xf35)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
+g_zPb_DelStatusUsim.dealFailNum>(0x1917+3427-0x267a)){if(g_zPb_DelStatusUsim.
+dealSuccNum>(0x36d+3346-0x107f)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
ZPB_MUL_DEL_PART_SUC);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);}}
else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}}
-#if (0x1fb+3848-0x1103)
+#if (0xe26+3951-0x1d95)
VOID atPb_RecvScpbwAddErr(UINT8*pErrCode){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
-ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x90c+6822-0x23b0))
-==(0x315+8889-0x25ce))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73");
+ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x1b3a+1098-0x1f82)
+)==(0x2489+400-0x2619))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73");
printf(
"\x70\x62\x3a\x52\x65\x63\x76\x20\x43\x4d\x45\x20\x45\x72\x72\x43\x6f\x64\x65\x3a\x20\x32\x30\x2e" "\n"
);}else{printf(
@@ -318,84 +318,83 @@
ZPB_NEW_ERROR);printf(
"\x70\x62\x3a\x52\x65\x63\x76\x20\x41\x74\x20\x53\x63\x70\x62\x77\x20\x6d\x6f\x64\x69\x66\x79\x20\x65\x72\x72\x2e" "\n"
);}VOID pb_AsctoHex(UINT16*pcHex,SINT32 iDstLen,UINT8 const*pcASC,SINT32 iSrcLen
-){UINT32 iOddOrEven=(0xcb3+1628-0x130f);UINT8 iTemp=(0x5a+4430-0x11a8);SINT32 i=
-(0xdd6+5562-0x2390);if((NULL==pcHex)||(NULL==pcASC)||((0x94f+5787-0x1fea)==
-iDstLen)||(iDstLen<(iSrcLen/(0xfe9+4751-0x2276)+(0xec0+1091-0x1302)))){return;}
-for(i=(0xb8f+5489-0x2100);i<iSrcLen;i++){if(iOddOrEven%(0x239+3383-0xf6e)==
-(0x836+5424-0x1d66)){iTemp=*(pcASC+i);if((iTemp>=((char)(0xb76+1393-0x10b7)))&&(
-iTemp<=((char)(0x100d+5361-0x24c5)))){*(pcHex+i/(0x1b98+2487-0x254d))|=(UINT8)(
-iTemp-(0x553+4478-0x16a1))<<(0x5e5+3170-0x1243);}else{*(pcHex+i/
-(0x143a+867-0x179b))|=(UINT8)(iTemp-(0x74a+6119-0x1efa))<<(0x18d0+1602-0x1f0e);}
-}else{iTemp=*(pcASC+i);if((iTemp>=((char)(0x6f7+7936-0x25c7)))&&(iTemp<=
-((char)(0x4e7+1271-0x9a5)))){*(pcHex+i/(0x12d0+737-0x15af))|=iTemp-
-(0xbc6+2375-0x14dd);}else{*(pcHex+i/(0x1050+2441-0x19d7))|=iTemp-
-(0x17ec+3310-0x24a3);}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,
-SINT32 iLength){int iRetVal=(0x80c+1998-0xfd9);char cTemp;int i=
-(0xff9+4088-0x1ff1);if(NULL==psUcs2){return-(0x1c98+317-0x1dd4);}for(i=
-(0x8ef+7654-0x26d5);i<iLength;i++){if((0x114b+3926-0x1fa1)>psUcs2[i]){switch(
-psUcs2[i]){case(0x16f+8209-0x2174):case(0x700+1051-0xac0):case
-(0x1325+1500-0x18a5):case(0x440+3833-0x12dc):case(0xbf4+125-0xc13):case
-(0x13dc+3182-0x1fcf):case(0x1496+2064-0x1c2a):case(0x1396+338-0x146b):case
-(0x1555+1245-0x19b4):case(0x10df+630-0x12b1):case(0x5e1+356-0x725):{break;}
-default:{cTemp=(char)G_ZPB_NEWUCS2TOGSM[psUcs2[i]];if(ZPB_NON_GSM==cTemp){
-iRetVal=(0x1ec6+372-0x203a);}break;}}}else{switch(psUcs2[i]){case
-(0x7c1+4863-0x172c):case(0x574+1385-0x737):case(0xcb7+3476-0x16b8):case
-(0x12e5+2200-0x17e2):case(0x885+6867-0x1faf):case(0x89d+8071-0x2484):case
-(0x5b4+6415-0x1afb):case(0xe78+5580-0x20a1):case(0x7a6+3802-0x12c8):case
-(0xf33+488-0xd7d):{break;}default:{iRetVal=(0x446+6004-0x1bba);break;}}}if(
-(0x5b1+3317-0x12a6)==iRetVal){break;}}return iRetVal;}static UINT8
-atPb_EncodeNameToUcs2(char*pbDst,UINT32 iDstLen,char const*pbSrc){UINT16 acHex[
-(0xc1b+392-0xca3)]={(0xb06+3878-0x1a2c)};SINT32 srclen=(0xb63+740-0xe47);SINT32
-rest=(0x735+3651-0x1578);assert(pbDst!=NULL&&pbSrc!=NULL);srclen=(SINT32)strlen(
-pbSrc);slog(PB_PRINT,SLOG_DEBUG,
+){UINT32 iOddOrEven=(0x1295+5066-0x265f);UINT8 iTemp=(0xb2+7758-0x1f00);SINT32 i
+=(0x2a4+1461-0x859);if((NULL==pcHex)||(NULL==pcASC)||((0x4a6+6749-0x1f03)==
+iDstLen)||(iDstLen<(iSrcLen/(0x5f7+4987-0x1970)+(0x31+4305-0x1101)))){return;}
+for(i=(0xa06+6384-0x22f6);i<iSrcLen;i++){if(iOddOrEven%(0x190+8956-0x248a)==
+(0x6cf+2141-0xf2c)){iTemp=*(pcASC+i);if((iTemp>=((char)(0xa83+5304-0x1f0b)))&&(
+iTemp<=((char)(0x2b1+7300-0x1efc)))){*(pcHex+i/(0x856+4460-0x19c0))|=(UINT8)(
+iTemp-(0x20a9+494-0x2267))<<(0x12d8+1449-0x187d);}else{*(pcHex+i/
+(0x4d9+6957-0x2004))|=(UINT8)(iTemp-(0xfe1+5231-0x2419))<<(0x221+744-0x505);}}
+else{iTemp=*(pcASC+i);if((iTemp>=((char)(0x2431+227-0x24e4)))&&(iTemp<=
+((char)(0x40d+3587-0x11d7)))){*(pcHex+i/(0xb+592-0x259))|=iTemp-
+(0x1957+1396-0x1e9b);}else{*(pcHex+i/(0x540+4444-0x169a))|=iTemp-
+(0x183+359-0x2b3);}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,SINT32
+ iLength){int iRetVal=(0x228+5899-0x1932);char cTemp;int i=(0x712+2319-0x1021);
+if(NULL==psUcs2){return-(0x1c7c+1916-0x23f7);}for(i=(0x1174+1209-0x162d);i<
+iLength;i++){if((0x56f+6580-0x1e23)>psUcs2[i]){switch(psUcs2[i]){case
+(0x2119+554-0x2337):case(0x228c+123-0x22ac):case(0x20f8+1608-0x26e4):case
+(0x659+6858-0x20c6):case(0xc6c+4755-0x1ea1):case(0x9dc+4008-0x1909):case
+(0xd27+2398-0x1609):case(0x2c8+679-0x4f2):case(0xa40+3990-0x1958):case
+(0x13ab+1568-0x1927):case(0x745+2068-0xf39):{break;}default:{cTemp=(char)
+G_ZPB_NEWUCS2TOGSM[psUcs2[i]];if(ZPB_NON_GSM==cTemp){iRetVal=
+(0x1c71+1591-0x22a8);}break;}}}else{switch(psUcs2[i]){case(0x3e6+86-0xa8):case
+(0xc9b+7023-0x2464):case(0x83a+8337-0x2538):case(0x9bc+4311-0x16f8):case
+(0x1792+259-0x14ec):case(0x1421+1347-0x15c4):case(0x1c17+829-0x1b8c):case
+(0x9b1+5129-0x1a17):case(0xa11+6180-0x1e7d):case(0xb14+3982-0x1704):{break;}
+default:{iRetVal=(0x1e76+1018-0x2270);break;}}}if((0x10e3+5276-0x257f)==iRetVal)
+{break;}}return iRetVal;}static UINT8 atPb_EncodeNameToUcs2(char*pbDst,UINT32
+iDstLen,char const*pbSrc){UINT16 acHex[(0x5df+3471-0x126e)]={(0xbdc+6223-0x242b)
+};SINT32 srclen=(0xde7+3906-0x1d29);SINT32 rest=(0x1ab+8028-0x2107);assert(pbDst
+!=NULL&&pbSrc!=NULL);srclen=(SINT32)strlen(pbSrc);slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x45\x6e\x63\x6f\x64\x65\x4e\x61\x6d\x65\x54\x6f\x55\x63\x73\x32\x20\x69\x6e\x70\x75\x74\x20\x70\x73\x53\x72\x63\x3d\x25\x73\x2c\x69\x53\x72\x63\x4c\x65\x6e\x3d\x25\x64" "\n"
-,pbSrc,srclen);pb_AsctoHex(acHex,(0x174b+3354-0x2365),(UINT8*)pbSrc,srclen);rest
-=atPb_IfUcs2IsSMS7(acHex,srclen/(0x15e1+3348-0x22f1));if(rest==
-(0x167b+621-0x18e7)){return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest==
-(0xe40+1573-0x1465)){if(strlen(pbSrc)+(0x829+6180-0x204b)<iDstLen){memcpy(pbDst,
-"\x38\x30",(0xed6+3313-0x1bc5));memcpy(pbDst+(0xdb5+6462-0x26f1),pbSrc,srclen);
+,pbSrc,srclen);pb_AsctoHex(acHex,(0x141d+1666-0x199f),(UINT8*)pbSrc,srclen);rest
+=atPb_IfUcs2IsSMS7(acHex,srclen/(0x1143+3880-0x2067));if(rest==
+(0x1a72+2725-0x2516)){return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest
+==(0x2a2+3589-0x10a7)){if(strlen(pbSrc)+(0x654+1699-0xcf5)<iDstLen){memcpy(pbDst
+,"\x38\x30",(0xd22+5790-0x23be));memcpy(pbDst+(0xeff+5767-0x2584),pbSrc,srclen);
return ZUFI_SUCC;}}return ZUFI_FAIL;}SINT32 atPb_FindIdleIndex(T_zPb_WebContact
-const*pbRecv,BOOL pbNewFlag){SINT32 count=(0x952+1235-0xe24);SINT32 total=
-(0xa4a+2540-0x1436);SINT32*IndexType=NULL;if((NULL==pbRecv)){slog(PB_PRINT,
+const*pbRecv,BOOL pbNewFlag){SINT32 count=(0xab7+2249-0x137f);SINT32 total=
+(0x141+3884-0x106d);SINT32*IndexType=NULL;if((NULL==pbRecv)){slog(PB_PRINT,
SLOG_ERR,
"\x70\x62\x3a\x66\x69\x6e\x64\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3a\x74\x68\x65\x20\x70\x61\x72\x61\x20\x6f\x66\x20\x66\x69\x6e\x64\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x20\x61\x72\x65\x20\x4e\x55\x4c\x4c" "\n"
-);return-(0x157+1669-0x7db);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv->
-pbLocation){total=g_zPb_SimIndex[(0xc8c+6019-0x240f)];IndexType=g_zPb_SimIndex;}
+);return-(0x640+756-0x933);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv->
+pbLocation){total=g_zPb_SimIndex[(0x1ed1+170-0x1f7b)];IndexType=g_zPb_SimIndex;}
else if(ZPB_LOCATION_AP==pbRecv->pbLocation){total=g_zPb_ApIndex[
-(0x17e7+1754-0x1ec1)];IndexType=g_zPb_ApIndex;}for(;count<=total;count++){if((
+(0xc73+4539-0x1e2e)];IndexType=g_zPb_ApIndex;}for(;count<=total;count++){if((
NULL!=IndexType)&&(IndexType[count]==PBM_ERROR_NOT_FOUND)){break;}}if(count>
total){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x66\x69\x6e\x64\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3a\x63\x61\x6e\x20\x6e\x6f\x74\x20\x66\x69\x6e\x64\x20\x69\x6e\x64\x65\x78\x5f\x69\x64\x2c\x69\x6e\x64\x65\x78\x5f\x69\x64\x3d\x25\x64" "\n" "\x2e"
-,count);return-(0xd65+1497-0x133d);}slog(PB_PRINT,SLOG_DEBUG,
+,count);return-(0x1979+884-0x1cec);}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x66\x69\x6e\x64\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3a\x20\x69\x6e\x64\x65\x78\x5f\x69\x64\x3d\x25\x64\x2c\x20\x74\x6f\x74\x61\x6c\x20\x69\x73\x20\x25\x64" "\n"
,count,total);return count;}else{return pbRecv->pbIndex;}}BOOL atPb_GetASCII(
-CHAR*pSrc,CHAR*pDst,SINT32 len){SINT32 j=(0x79f+4313-0x1878);SINT32 i=
-(0x514+5281-0x19b5);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0x1b10+2847-0x262f)};CHAR
-str[(0x784+4953-0x1ada)]={(0x139+888-0x4b1)};SINT32 length=(0x9c8+1984-0x1188);
-length=atPb_String2Bytes(pSrc,buf,len);for(i=(0x2f5+8804-0x2559);i<length;i+=
-(0xaa+4394-0x11d2)){if(buf[i]!=(0x1182+2734-0x1c30)||buf[i+(0x14d3+3251-0x2185)]
->(0xa96+465-0xbe8)){return FALSE;}pDst[j++]=buf[i+(0x5d5+5684-0x1c08)];}return
-TRUE;}VOID atWeb_AddOrModOnePbUsim(T_zPb_WebContact*pWebPbContact,BOOL pbNewFlag
-,sem_t semId){int atRes=(0xfdc+687-0x128b);CHAR pbName[ZPB_TEXT_SIZE_BYTES+
-(0x1fa6+1177-0x243c)]={(0x1a29+473-0x1c02)};CHAR buf_src[ZPB_TEXT_SIZE_BYTES+
-(0x8e2+3194-0x1559)]={(0x1e0+6711-0x1c17)};CHAR buf_dest[ZPB_TEXT_SIZE_BYTES+
-(0xe94+5653-0x24a6)]={(0x8b7+4070-0x189d)};T_zPb_ScpbwParam scpbwParam={
-(0xf13+499-0x1106)};int len=(0x16c0+3464-0x2448);atPb_WebRecodeShow(
+CHAR*pSrc,CHAR*pDst,SINT32 len){SINT32 j=(0x237b+35-0x239e);SINT32 i=
+(0x6e8+7058-0x227a);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0x2347+775-0x264e)};CHAR str
+[(0xa4+8637-0x225e)]={(0x1bb2+1389-0x211f)};SINT32 length=(0x6bc+6338-0x1f7e);
+length=atPb_String2Bytes(pSrc,buf,len);for(i=(0xd59+673-0xffa);i<length;i+=
+(0x37b+1328-0x8a9)){if(buf[i]!=(0x14dd+2098-0x1d0f)||buf[i+(0x1409+2121-0x1c51)]
+>(0x161f+1755-0x1c7b)){return FALSE;}pDst[j++]=buf[i+(0x8d4+7218-0x2505)];}
+return TRUE;}VOID atWeb_AddOrModOnePbUsim(T_zPb_WebContact*pWebPbContact,BOOL
+pbNewFlag,sem_t semId){int atRes=(0x211+4605-0x140e);CHAR pbName[
+ZPB_TEXT_SIZE_BYTES+(0x3af+7315-0x203f)]={(0x16f5+3734-0x258b)};CHAR buf_src[
+ZPB_TEXT_SIZE_BYTES+(0x77c+2875-0x12b4)]={(0xd8f+5012-0x2123)};CHAR buf_dest[
+ZPB_TEXT_SIZE_BYTES+(0x964+161-0xa02)]={(0x6aa+4311-0x1781)};T_zPb_ScpbwParam
+scpbwParam={(0x588+1410-0xb0a)};int len=(0x3d0+235-0x4bb);atPb_WebRecodeShow(
pWebPbContact);if(atPb_GetASCII(pWebPbContact->name,pbName,strlen(pWebPbContact
-->name))){scpbwParam.coding=(0xb8+9474-0x25ba);}else{len=atPb_String2Bytes(
+->name))){scpbwParam.coding=(0x72a+3542-0x1500);}else{len=atPb_String2Bytes(
pWebPbContact->name,buf_src,strlen(pWebPbContact->name));len=
atpb_CvtUcs2ToAlphaField(buf_src,len,buf_dest);atPb_Bytes2String(buf_dest,pbName
-,len);scpbwParam.coding=(0xb8c+5501-0x2108);}scpbwParam.pbIndex=pWebPbContact->
+,len);scpbwParam.coding=(0xd5+2066-0x8e6);}scpbwParam.pbIndex=pWebPbContact->
pbIndex;strncpy(scpbwParam.name,pbName,sizeof(scpbwParam.name)-
-(0x1d99+968-0x2160));strncpy(scpbwParam.mobilNumber,pWebPbContact->mobilNumber,
-sizeof(scpbwParam.mobilNumber)-(0x342+4454-0x14a7));strncpy(scpbwParam.
+(0x14b+5033-0x14f3));strncpy(scpbwParam.mobilNumber,pWebPbContact->mobilNumber,
+sizeof(scpbwParam.mobilNumber)-(0x19d+1183-0x63b));strncpy(scpbwParam.
officeNumber,pWebPbContact->officeNumber,sizeof(scpbwParam.officeNumber)-
-(0x1cc9+1961-0x2471));strncpy(scpbwParam.homeNumber,pWebPbContact->homeNumber,
-sizeof(scpbwParam.homeNumber)-(0x1b76+996-0x1f59));strncpy(scpbwParam.email,
-pWebPbContact->email,sizeof(scpbwParam.email)-(0x230c+183-0x23c2));
+(0x20a+5703-0x1850));strncpy(scpbwParam.homeNumber,pWebPbContact->homeNumber,
+sizeof(scpbwParam.homeNumber)-(0xae5+2377-0x142d));strncpy(scpbwParam.email,
+pWebPbContact->email,sizeof(scpbwParam.email)-(0xacb+667-0xd65));
ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,MSG_CMD_ADD_MODIFY_PB_REQ,sizeof(
-T_zPb_ScpbwParam),(unsigned char*)&scpbwParam,(0x744+1811-0xe57));sem_wait(&
-g_Pb_sem_id);if(g_PbOptRsp.result!=(0xb69+5786-0x2202)){(VOID)sc_cfg_set(
+T_zPb_ScpbwParam),(unsigned char*)&scpbwParam,(0x32c+858-0x686));sem_wait(&
+g_Pb_sem_id);if(g_PbOptRsp.result!=(0x512+6008-0x1c89)){(VOID)sc_cfg_set(
ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);if(TRUE==pbNewFlag){printf(
"\x70\x62\x3a\x61\x64\x64\x20\x53\x63\x70\x62\x77\x20\x65\x72\x72\x6f\x72\x2e" "\n"
);}else{printf(
@@ -408,16 +407,16 @@
);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);printf(
"\x70\x62\x3a\x57\x72\x69\x74\x65\x43\x6f\x6e\x74\x61\x63\x74\x54\x6f\x50\x62\x6d\x54\x61\x62\x6c\x65\x20\x65\x72\x72\x6f\x72\x2e" "\n"
);}}VOID atWeb_AddOnePb(T_zPb_WebContact*webPbContact,sem_t semId){SINT32
-idleIndex=(0x1ed3+2047-0x26d1);T_zPb_Header pbHeader={(0x1101+4285-0x21be)};BOOL
- pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0xa28+1039-0xe37)};CHAR ptFlag[
-(0x10a6+2950-0x1c18)]={(0xf1c+3693-0x1d89)};printf(
+idleIndex=(0x5fc+6155-0x1e06);T_zPb_Header pbHeader={(0x836+172-0x8e2)};BOOL
+pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0x1d4+4034-0x1196)};CHAR ptFlag[
+(0x5c3+5549-0x1b5c)]={(0x975+401-0xb06)};printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x50\x62\x2c\x20\x70\x62\x49\x64\x3d\x25\x64\x21" "\n"
-,webPbContact->pbId);if(-(0xf58+780-0x1263)==webPbContact->pbId){slog(PB_PRINT,
-SLOG_DEBUG,
+,webPbContact->pbId);if(-(0x1873+3135-0x24b1)==webPbContact->pbId){slog(PB_PRINT
+,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x50\x62\x20\x6e\x65\x77\x2e" "\n"
);pbNewFlag=TRUE;idleIndex=atPb_FindIdleIndex(webPbContact,pbNewFlag);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x50\x62\x20\x69\x64\x6c\x65\x49\x6e\x64\x65\x78\x3d\x25\x64\x2e" "\n"
-,idleIndex);if(idleIndex!=-(0x1154+1731-0x1816)){webPbContact->pbIndex=idleIndex
+,idleIndex);if(idleIndex!=-(0x124a+4741-0x24ce)){webPbContact->pbIndex=idleIndex
;}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);printf(
"\x5b\x50\x42\x5d\x20\x6d\x65\x6d\x6f\x72\x79\x20\x69\x73\x20\x66\x75\x6c\x6c\x2c\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x61\x64\x64\x20\x72\x65\x63\x6f\x64\x65\x20\x61\x6e\x79\x20\x6d\x6f\x72\x65\x2e" "\n"
);return;}}else{printf(
@@ -436,27 +435,27 @@
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_LOCATION_IS_NULL);}printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x50\x62\x20\x64\x65\x6c\x5f\x69\x64\x3d\x25\x64\x2e" "\n"
,webPbContact->del_id);sc_cfg_get(ZPB_NV_WRITE_FLAG,ptFlag,sizeof(ptFlag));if(
-(0x1d84+724-0x2058)==strcmp("\x30",ptFlag)&&-(0xb53+4237-0x1bdf)!=webPbContact->
-del_id){delRecord.delId[(0x4eb+7160-0x20e3)]=webPbContact->del_id;atWeb_DelOnepb
-(&delRecord,semId);}}VOID atWeb_DelOnepb(T_zPb_DelInfo*delRecord,sem_t semId){
-CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0xdef+2462-0x178d)};int atRes=
-(0x1232+4840-0x251a);SINT32 delTime=(0x163d+4160-0x267d);
+(0x88a+3248-0x153a)==strcmp("\x30",ptFlag)&&-(0x208+773-0x50c)!=webPbContact->
+del_id){delRecord.delId[(0x457+802-0x779)]=webPbContact->del_id;atWeb_DelOnepb(&
+delRecord,semId);}}VOID atWeb_DelOnepb(T_zPb_DelInfo*delRecord,sem_t semId){CHAR
+ errCode[ZSVR_AT_RES_CODE_LEN]={(0x1f55+187-0x2010)};int atRes=
+(0xb4+9124-0x2458);SINT32 delTime=(0x6f8+7510-0x244e);
atPb_GetLocationIndexForDel(delRecord,delTime);printf(
"\x5b\x50\x42\x5d\x20\x64\x65\x6c\x5f\x61\x5f\x70\x62\x6d\x5f\x72\x65\x63\x6f\x72\x64\x2d\x2d\x64\x65\x6c\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64" "\n"
-,delRecord->delIndex[(0x1911+899-0x1c94)],delRecord->delLocation);if(
+,delRecord->delIndex[(0x185d+400-0x19ed)],delRecord->delLocation);if(
ZPB_LOCATION_AP==delRecord->delLocation){if(ZPB_DB_OK==atPb_DelARecFromPbmTable(
delRecord,delTime)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x44\x65\x6c\x4f\x6e\x65\x70\x62\x2d\x2d\x64\x65\x6c\x20\x41\x50\x20\x73\x75\x63\x63\x65\x73\x73" "\n"
);return;}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x64\x65\x6c\x5f\x61\x5f\x70\x62\x6d\x5f\x72\x65\x63\x6f\x72\x64\x3a\x72\x65\x6d\x6f\x76\x65\x20\x72\x65\x63\x20\x66\x72\x6f\x6d\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65\x20\x66\x61\x69\x6c\x65\x64" "\n"
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);}else if(ZPB_LOCATION_USIM==
-delRecord->delLocation){CHAR pbMax[(0xabd+2636-0x14d7)]={(0xbc3+944-0xf73)};
+delRecord->delLocation){CHAR pbMax[(0x839+7201-0x2428)]={(0xd9f+5303-0x2256)};
sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));if((delRecord->delIndex[
-(0xd80+2216-0x1628)]>=(0xb91+5139-0x1fa3))&&(delRecord->delIndex[
-(0x1f5a+388-0x20de)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
+(0x3cc+2993-0xf7d)]>=(0xa01+3146-0x164a))&&(delRecord->delIndex[
+(0x1a88+309-0x1bbd)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
MODULE_ID_AT_CTL,MSG_CMD_DELETE_PB_REQ,sizeof(int),(unsigned char*)&delRecord->
-delIndex[(0x109+2476-0xab5)],(0x1191+1512-0x1779));sem_wait(&g_Pb_sem_id);if(
-g_PbOptRsp.result!=(0x2611+105-0x2679)){sc_cfg_set(ZPB_NV_WRITE_FLAG,
+delIndex[(0x992+1514-0xf7c)],(0x119f+3826-0x2091));sem_wait(&g_Pb_sem_id);if(
+g_PbOptRsp.result!=(0x44+9306-0x249d)){sc_cfg_set(ZPB_NV_WRITE_FLAG,
ZPB_DEL_ERROR);}sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}if(ZPB_DB_OK==
atPb_DelARecFromPbmTable(delRecord,delTime)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
ZPB_OPERATE_SUC);printf(
@@ -466,9 +465,9 @@
"\x70\x62\x3a\x64\x65\x6c\x5f\x61\x5f\x70\x62\x6d\x5f\x72\x65\x63\x6f\x72\x64\x3a\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x69\x73\x20\x4e\x55\x4c\x4c" "\n"
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_LOCATION_IS_NULL);}}VOID
atWeb_DelMultPb(T_zPb_DelInfo*delRecord,sem_t semId){CHAR errCode[
-ZSVR_AT_RES_CODE_LEN]={(0x81a+316-0x956)};int atRes=(0x67f+6331-0x1f3a);SINT32
-delCount=(0x1b27+1025-0x1f28);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
-g_zPb_DelStatusUsim,(0x11b5+4588-0x23a1),sizeof(T_zPb_DelStatusMultiOrAll));
+ZSVR_AT_RES_CODE_LEN]={(0x411+1053-0x82e)};int atRes=(0x655+7165-0x2252);SINT32
+delCount=(0x13b+9501-0x2658);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
+g_zPb_DelStatusUsim,(0x1d0+2317-0xadd),sizeof(T_zPb_DelStatusMultiOrAll));
g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_MULTI_RECORD_USIM;for(;delCount<delRecord->
delTotal;delCount++){slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x33\x3a\x64\x65\x6c\x49\x64\x5b\x25\x64\x5d\x3d\x25\x64\x2c\x64\x65\x6c\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x5b\x25\x64\x5d\x3d\x25\x64" "\n"
@@ -479,14 +478,14 @@
"\x70\x62\x3a\x70\x62\x6d\x3a\x72\x65\x6d\x6f\x76\x65\x20\x74\x68\x65\x20\x69\x28\x25\x64\x29\x20\x72\x65\x63\x20\x66\x72\x6f\x6d\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65\x20\x66\x61\x69\x6c\x65\x64" "\n"
,delCount);g_zPb_DelStatusUsim.dealFailNum++;continue;}g_zPb_DelStatusUsim.
dealSuccNum++;}else if(ZPB_LOCATION_USIM==delRecord->delLocation){CHAR pbMax[
-(0xc3b+4741-0x1e8e)]={(0x5f3+7566-0x2381)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,
-sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0x3b1+2012-0xb8c))&&(
+(0xf5+6265-0x193c)]={(0xbcd+4724-0x1e41)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,
+sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0x23b+8056-0x21b2))&&(
delRecord->delIndex[delCount]<=atoi(pbMax))){printf(
"\x70\x62\x39\x3a\x61\x74\x57\x65\x62\x5f\x44\x65\x6c\x4d\x75\x6c\x74\x50\x62\x3a\x72\x65\x6d\x6f\x76\x65\x20\x74\x68\x65\x20\x69\x6e\x64\x65\x78\x28\x25\x64\x29\x20\x72\x65\x63\x20\x66\x72\x6f\x6d\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65" "\n"
,delRecord->delIndex[delCount]);ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,
MSG_CMD_DELETE_PB_REQ,sizeof(int),(unsigned char*)&delRecord->delIndex[delCount]
-,(0x1c6+4628-0x13da));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0x1ea6+2107-0x26e0)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+,(0xd31+957-0x10ee));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0xdc0+2756-0x1883)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);}else{g_zPb_DelStatusUsim.dealSuccNum++;
sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}}else{continue;}(VOID)
atPb_DelSimRecFromPbTable(delRecord->delIndex[delCount]);}else{slog(PB_PRINT,
@@ -494,14 +493,14 @@
"\x70\x62\x3a\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x69\x73\x20\x4e\x55\x4c\x4c" "\n"
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_LOCATION_IS_NULL);}}
atPb_SetDelStatusMultOrAll();}T_zPb_DbResult atPb_DelRecByGroup(VOID){
-T_zPb_DbResult result=ZPB_DB_OK;T_zPb_ApIndex index={(0xad4+1714-0x1186)};SINT32
- i=(0x7bf+2977-0x135f);result=atPb_DelRecFromPbmTableByGroup(&index);if(
-ZPB_DB_OK!=result){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);return
-result;}(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(i=
-(0x186d+1318-0x1d92);i<=ZPB_AP_MAX_RECORD;i++){if((0x220+1508-0x804)!=index.
-apIndex[i]){g_zPb_ApIndex[(index.apIndex[i])]=PBM_ERROR_NOT_FOUND;}}return
-result;}VOID atPb_DelAllRecsSimDb(VOID){CHAR sql[ZPB_MAX_BYTES_DB]={
-(0x61+1876-0x7b5)};snprintf(sql,sizeof(sql)-(0xc89+5841-0x2359),
+T_zPb_DbResult result=ZPB_DB_OK;T_zPb_ApIndex index={(0x11c4+639-0x1443)};SINT32
+ i=(0x337+3018-0xf00);result=atPb_DelRecFromPbmTableByGroup(&index);if(ZPB_DB_OK
+!=result){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);return result;}(VOID
+)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(i=(0x12e4+5083-0x26be);i<=
+ZPB_AP_MAX_RECORD;i++){if((0xe3f+393-0xfc8)!=index.apIndex[i]){g_zPb_ApIndex[(
+index.apIndex[i])]=PBM_ERROR_NOT_FOUND;}}return result;}VOID
+atPb_DelAllRecsSimDb(VOID){CHAR sql[ZPB_MAX_BYTES_DB]={(0xed4+4871-0x21db)};
+snprintf(sql,sizeof(sql)-(0x9ea+6484-0x233d),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_USIM);if(ZPB_DB_OK==atPb_ExecDbSql(sql,NULL,NULL)
){atPb_ClearSimPbmIndexArray();if(ZPB_DB_OK!=atPb_ExecDbSql(
@@ -510,28 +509,28 @@
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);return;}(VOID)sc_cfg_set(
ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
ZPB_DEL_ERROR);}}VOID atPb_DelAllRecsSim(T_zPb_DelInfo*pdelRecord,sem_t semId){
-CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x13b0+188-0x146c)};int atRes=
-(0xd73+4650-0x1f9d);UINT32 i=(0x1f4+1651-0x867);CHAR sql[ZPB_MAX_BYTES_DB]={
-(0x448+1811-0xb5b)};UINT32 count=(0x448+4715-0x16b3);if(pdelRecord!=NULL){memset
-(&g_zPb_DelStatusUsim,(0x19b1+1260-0x1e9d),sizeof(T_zPb_DelStatusMultiOrAll));
+CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x270+1824-0x990)};int atRes=
+(0x975+4190-0x19d3);UINT32 i=(0x1c45+2155-0x24b0);CHAR sql[ZPB_MAX_BYTES_DB]={
+(0x19b+7537-0x1f0c)};UINT32 count=(0x32f+2594-0xd51);if(pdelRecord!=NULL){memset
+(&g_zPb_DelStatusUsim,(0x1c8+8016-0x2118),sizeof(T_zPb_DelStatusMultiOrAll));
g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_ALL_RECORD_USIM;snprintf(sql,sizeof(sql)-
-(0x9fd+484-0xbe0),
+(0x284+8718-0x2491),
"\x73\x65\x6c\x65\x63\x74\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_USIM);(VOID)atPb_ExecDbSql(sql,
-atPb_DbCountTableLineCb,&count);if((0x1cd+1662-0x84b)<count){CHAR pbMin[
-(0x4d5+1157-0x928)]={(0xa47+337-0xb98)};CHAR pbMax[(0xc83+5978-0x23ab)]={
-(0x15c7+1587-0x1bfa)};UINT32 i_pbMin=(0x382+7608-0x213a);UINT32 i_pbMax=
-(0x1d9+5157-0x15fe);sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
-sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));i_pbMin=atoi(pbMin);i_pbMax=
-atoi(pbMax);if(i_pbMin>ZPB_SIM_MAX_RECORD||i_pbMax>ZPB_SIM_MAX_RECORD){printf(
+atPb_DbCountTableLineCb,&count);if((0x1fca+49-0x1ffb)<count){CHAR pbMin[
+(0x5c3+8471-0x26a8)]={(0xa6+8655-0x2275)};CHAR pbMax[(0x10b5+1322-0x15ad)]={
+(0x30b+2750-0xdc9)};UINT32 i_pbMin=(0xcd2+6015-0x2451);UINT32 i_pbMax=
+(0x83+3942-0xfe9);sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));sc_cfg_get
+(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));i_pbMin=atoi(pbMin);i_pbMax=atoi(pbMax
+);if(i_pbMin>ZPB_SIM_MAX_RECORD||i_pbMax>ZPB_SIM_MAX_RECORD){printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x50\x62\x5f\x44\x65\x6c\x41\x6c\x6c\x52\x65\x63\x73\x53\x69\x6d\x20\x73\x69\x6d\x20\x69\x6e\x64\x65\x78\x20\x74\x6f\x6f\x20\x6c\x61\x72\x67\x65" "\n"
);return;}for(i=i_pbMin;i<=i_pbMax;i++){ipc_send_message(MODULE_ID_PB,
MODULE_ID_AT_CTL,MSG_CMD_DELETE_PB_REQ,sizeof(int),(unsigned char*)&i,
-(0x16e2+1092-0x1b26));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0xba1+624-0xe10)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+(0xe89+796-0x11a5));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0x1647+1324-0x1b72)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);}else{g_zPb_DelStatusUsim.dealSuccNum++;
sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}}snprintf(sql,sizeof(sql)-
-(0xaa+9164-0x2475),
+(0x468+6469-0x1dac),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_USIM);if(ZPB_DB_OK==atPb_ExecDbSql(sql,NULL,NULL)
){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);atPb_ClearSimPbmIndexArray
diff --git a/ap/app/zte_comm/sms/src/sms_code.c b/ap/app/zte_comm/sms/src/sms_code.c
index 7e9ac6e..f0447b6 100755
--- a/ap/app/zte_comm/sms/src/sms_code.c
+++ b/ap/app/zte_comm/sms/src/sms_code.c
@@ -6,659 +6,659 @@
#ifdef WIN32
#include <wchar.h>
#endif
-#define NON_GSM (0x21f4+978-0x25a6)
+#define NON_GSM (0x389+2999-0xf20)
#define NON_GSM_P NON_GSM
extern T_zUfiSms_ConcatInfo g_zUfiSms_ConcatSms;static const wms_udh_s_type*
-const_header;char g_zUfiSms_DigAscMap[(0x153+8812-0x23af)]={
-((char)(0x1484+860-0x17b0)),((char)(0x1e96+1728-0x2525)),
-((char)(0xdf0+5454-0x230c)),((char)(0x87d+2295-0x1141)),
-((char)(0xa2c+467-0xbcb)),((char)(0x1154+1848-0x1857)),
-((char)(0x64f+3981-0x15a6)),((char)(0xfec+5925-0x26da)),
-((char)(0x1c4+3353-0xea5)),((char)(0xa29+2726-0x1496)),
-((char)(0x1209+612-0x142c)),((char)(0xcf6+4924-0x1ff0)),
-((char)(0x12bb+2079-0x1a97)),((char)(0x18c8+2481-0x2235)),
-((char)(0xd6+1009-0x482)),((char)(0x1586+3055-0x212f))};extern SMS_PARAM
-g_zUfiSms_SendingSms;extern UINT16 g_zUfiSms_IsLanguageShift;extern int
-g_zUfiSms_Language;static int SerializeNumbers_sms(const char*pSrc,char*pDst,int
- nSrcLength);const unsigned short g_zUfiSms_AsciiToGsmdefaultTable[]={
-((char)(0xa09+3103-0x1608)),((char)(0x179a+2359-0x20b1)),
-((char)(0x1461+2045-0x1c3e)),((char)(0x1a79+2910-0x25b7)),
-((char)(0x12f3+4208-0x2343)),((char)(0x2ab+5668-0x18af)),
-((char)(0x898+68-0x8bc)),((char)(0x566+7434-0x2250)),((char)(0xb42+3035-0x16fd))
-,((char)(0x41c+2282-0xce6)),((char)(0x1988+1562-0x1f82)),
-((char)(0xe1+5549-0x166e)),((char)(0x302+1171-0x775)),
-((char)(0x180c+2508-0x21b8)),((char)(0x1390+4364-0x247c)),
-((char)(0xbd8+6210-0x23fa)),((char)(0xcea+787-0xfdd)),
-((char)(0x386+5478-0x18cc)),((char)(0x434+6153-0x1c1d)),
-((char)(0xedc+816-0x11ec)),((char)(0xbc0+2557-0x159d)),
-((char)(0xaeb+3524-0x188f)),((char)(0x2d6+1543-0x8bd)),
-((char)(0x927+3991-0x189e)),((char)(0x576+2470-0xefc)),((char)(0x50+1405-0x5ad))
-,((char)(0x1399+2209-0x1c1a)),((char)(0xa41+4326-0x1b07)),
-((char)(0x1722+370-0x1874)),((char)(0x8d2+2635-0x12fd)),
-((char)(0x166+1984-0x906)),((char)(0x159+4939-0x1484)),
-((char)(0xfba+4988-0x2316)),((char)(0x1255+910-0x15c2)),(0x871+5432-0x1d87),
-((char)(0x13b9+3802-0x2270)),(0x21d6+981-0x25a9),((char)(0x1998+2483-0x2326)),
-((char)(0x8a9+418-0xa25)),(0xc40+225-0xcfa),((char)(0x23e5+674-0x265f)),
-((char)(0x1f9c+1742-0x2641)),((char)(0x11bf+1174-0x162b)),
-((char)(0x1b0+7707-0x1fa0)),((char)(0x11a5+4086-0x216f)),
-((char)(0x6a8+7610-0x2435)),((char)(0x1e50+1300-0x2336)),
-((char)(0x451+7767-0x2279)),((char)(0xaaf+5121-0x1e80)),
-((char)(0x829+301-0x925)),((char)(0x1fe6+91-0x200f)),((char)(0x14e0+411-0x1648))
-,((char)(0x16d2+591-0x18ed)),((char)(0x115+3654-0xf26)),
-((char)(0x2a7+6334-0x1b2f)),((char)(0x21ca+782-0x24a1)),
-((char)(0xd5c+4302-0x1df2)),((char)(0x377+3773-0x11fb)),
-((char)(0x73b+1979-0xebc)),((char)(0xbc2+158-0xc25)),((char)(0x82a+3999-0x178d))
-,((char)(0xca2+3265-0x1926)),((char)(0x1d29+6-0x1cf1)),
-((char)(0x5b8+3495-0x1320)),(0x1a82+2495-0x2441),((char)(0xda5+3925-0x1cb9)),
-((char)(0x1f4a+1862-0x264e)),((char)(0xb6f+7033-0x26a5)),
-((char)(0x7f1+5622-0x1da3)),((char)(0x89b+415-0x9f5)),
-((char)(0x1018+5574-0x2598)),((char)(0x1d6b+1775-0x2413)),
-((char)(0xc14+2262-0x14a2)),((char)(0x1c2c+2255-0x24b2)),
-((char)(0x3bc+4987-0x16ed)),((char)(0x18d4+1491-0x1e5c)),
-((char)(0x1787+1773-0x1e28)),((char)(0xd1+661-0x319)),
-((char)(0x831+6411-0x20ee)),((char)(0x12cf+1546-0x188a)),
-((char)(0x690+7736-0x2478)),((char)(0xc7f+6534-0x25b4)),
-((char)(0x1da9+408-0x1eef)),((char)(0x594+4611-0x1744)),
-((char)(0xfe3+1345-0x14d0)),((char)(0x15bb+169-0x160f)),
-((char)(0xb58+6481-0x2453)),((char)(0x1714+2417-0x202e)),
-((char)(0x5f4+5034-0x1946)),((char)(0x1229+1073-0x1601)),
-((char)(0x61f+7706-0x23df)),6972,(0x2345+635-0xa91),(0x23d2+6167-0x20ab),6932,
-(0x10a2+1820-0x17ad),((char)(0x1b8+3721-0x1021)),((char)(0x56b+902-0x890)),
-((char)(0x47a+7327-0x20b7)),((char)(0x8a0+4690-0x1a8f)),
-((char)(0x1d7a+1234-0x21e8)),((char)(0x575+4139-0x153b)),
-((char)(0xf7a+5426-0x2446)),((char)(0x19c7+2468-0x2304)),
-((char)(0x2dd+4830-0x1553)),((char)(0x955+1617-0xf3d)),
-((char)(0xcf3+5923-0x23ac)),((char)(0x182b+381-0x193d)),
-((char)(0x1778+3845-0x2611)),((char)(0x21a2+7-0x213c)),
-((char)(0x598+2102-0xd60)),((char)(0x7b1+726-0xa18)),((char)(0xedd+3707-0x1ce8))
-,((char)(0xc81+6791-0x2697)),((char)(0x1a9d+1742-0x20f9)),
-((char)(0xead+2493-0x17f7)),((char)(0x2323+158-0x234d)),
-((char)(0x524+1228-0x97b)),((char)(0x1c3+3362-0xe6f)),
-((char)(0x13c6+291-0x1472)),((char)(0x1032+3855-0x1ec9)),
-((char)(0x883+6693-0x222f)),((char)(0xe63+2941-0x1966)),(0x2439+6396-0x220d),
-6976,(0x224c+6555-0x20be),6973,((char)(0x364+5841-0x1a15)),
-((char)(0x1bbc+2834-0x26ae)),((char)(0x6a7+4562-0x1859)),
-((char)(0x2cd+6560-0x1c4d)),((char)(0xa3b+668-0xcb7)),
-((char)(0x47f+3484-0x11fb)),((char)(0x6c1+5619-0x1c94)),
-((char)(0x230+2418-0xb82)),((char)(0x4e2+965-0x887)),((char)(0x9d7+3745-0x1858))
-,((char)(0x56c+5901-0x1c59)),((char)(0xc22+6582-0x25b8)),
-((char)(0x786+5745-0x1dd7)),((char)(0x339+3913-0x1262)),
-((char)(0x5eb+1067-0x9f6)),((char)(0xda+8601-0x2253)),
-((char)(0x2e8+5003-0x1653)),((char)(0xdcb+4312-0x1e83)),
-((char)(0x331+1159-0x798)),((char)(0x1196+286-0x1294)),
-((char)(0x1607+3858-0x24f9)),((char)(0xa1a+2092-0x1226)),
-((char)(0xf4+4761-0x136d)),((char)(0x65f+2558-0x103d)),
-((char)(0x6d0+1055-0xacf)),((char)(0xd09+3892-0x1c1d)),
-((char)(0x1c48+846-0x1f76)),((char)(0x16a3+3488-0x2423)),
-((char)(0x6c1+4822-0x1977)),((char)(0x107+9740-0x26f3)),
-((char)(0x100+7979-0x200b)),((char)(0x60d+6767-0x205c)),
-((char)(0x109+688-0x399)),((char)(0x3ea+3473-0x115b)),(0xe2b+1274-0x12e5),
-((char)(0xefa+3789-0x1da7)),(0xed+6495-0x1a4b),(0x23f+810-0x545),
-(0x1788+3007-0x2344),((char)(0x46b+1457-0x9fc)),(0x19c1+229-0x1a47),
-((char)(0x1d4+8721-0x23c5)),((char)(0x17b0+3615-0x25af)),
-((char)(0xddc+3191-0x1a33)),((char)(0x9da+1359-0xf09)),
-((char)(0x12d0+1554-0x18c2)),((char)(0x14f+2183-0x9b6)),
-((char)(0xdcb+4646-0x1fd1)),((char)(0xd28+1406-0x1286)),
-((char)(0x856+4023-0x17ed)),((char)(0xcc9+2597-0x16ce)),
-((char)(0x29f+8076-0x220b)),((char)(0xe4b+4227-0x1eae)),
-((char)(0xcd4+3224-0x194c)),((char)(0xba+47-0xc9)),((char)(0x55+6855-0x1afc)),
-((char)(0xb00+738-0xdc2)),(0x9d1+4991-0x1d45),((char)(0xc92+6238-0x24d0)),
-((char)(0x14ef+2290-0x1dc1)),((char)(0x15a7+35-0x15aa)),
-((char)(0x1cd+4627-0x13c0)),((char)(0x71b+2845-0x1218)),
-((char)(0x1921+166-0x19a7)),(0xab2+1882-0x11ac),((char)(0x7bf+5359-0x1c8e)),
-((char)(0x39b+8872-0x2623)),((char)(0xc2+3274-0xd6c)),
-((char)(0x21b+6078-0x19b9)),(0x16e9+1183-0x1b2d),(0xebd+4391-0x1fd6),
-(0x20d0+79-0x2103),(0xfec+1095-0x142a),((char)(0x9cd+6679-0x23c4)),
-(0x94b+7634-0x26fe),((char)(0x7c4+2501-0x1169)),((char)(0x394+5238-0x17ea)),
-((char)(0x603+7572-0x2377)),((char)(0x9b+5340-0x1557)),((char)(0xdec+158-0xe6a))
-,((char)(0x116c+3853-0x2059)),((char)(0x658+4659-0x186b)),(0x1ff1+1822-0x26b2),
-((char)(0x225+786-0x517)),((char)(0x15ad+2883-0x20d0)),
-((char)(0x99f+4033-0x1940)),((char)(0x180b+952-0x1ba3)),(0xc73+6155-0x2422),
-((char)(0xb96+396-0xd02)),((char)(0xca9+3766-0x1b3f)),
-((char)(0x1a94+2924-0x25e0)),((char)(0xef9+2158-0x1747)),
-((char)(0x1296+1716-0x192a)),(0x1d53+1898-0x245f),((char)(0x57c+3464-0x12e4)),
-((char)(0x611+2599-0x1018)),(0x7d5+687-0xa66),(0x11fa+4200-0x21e3),
-((char)(0x946+7303-0x25ad)),((char)(0x1385+4470-0x24db)),
-((char)(0x6f7+4879-0x19e6)),(0x108b+3084-0x1c1c),(0xda5+6458-0x26d0),
-(0x1887+1415-0x1df1),((char)(0xda9+1293-0x1296)),(0x1203+4654-0x242d),
-(0x15a3+3945-0x2507),((char)(0x23a+9369-0x26b3)),((char)(0x17dd+751-0x1aac)),
-(0x640+2061-0xe46),((char)(0xf7+6377-0x19c0)),((char)(0xf69+263-0x1050)),
-((char)(0x13f6+3298-0x20b8)),((char)(0x379+5137-0x176a)),(0xf9f+867-0x1285),
-(0xba4+3180-0x1808),((char)(0x9d2+7139-0x2595)),((char)(0x67+2362-0x981)),
-((char)(0xfb+1805-0x7e8)),(0xad5+1556-0x106d),((char)(0x183d+1167-0x1cac)),
-(0x3c0+2047-0xbb3),(0x169a+1742-0x1d62),((char)(0x372+6603-0x1d1d)),
-((char)(0x1f78+1564-0x2574)),(0xb03+1403-0x1000),((char)(0x15fb+392-0x1763)),
-((char)(0xe55+1234-0x1307)),((char)(0x9f7+1724-0x1093)),};const unsigned short
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0x89+946-0x439)]={{(0x5ff+8005-0x253b),
-(0x1345+4681-0x24a7)},{(0xb10+6406-0x240c),(0x1661+3073-0x2256)},{
-(0x1848+715-0x1b06),(0x17b7+46-0x17d8)},{(0x1018+4678-0x224a),
-(0xd34+3197-0x1953)},{(0x543+3157-0x1170),(0x4a8+7930-0x2327)},{
-(0x3eb+7746-0x2204),(0xb72+6721-0x2536)},{(0x394+8054-0x22db),
-(0x8a6+6059-0x1ff5)},{(0x97c+1385-0xea9),(0x963+1733-0xfcd)},{
-(0xa09+2964-0x1560),(0x3fd+4061-0x135c)},{(0x1ec5+1976-0x263f),(0xcb4+123-0xcd2)
-},{(0x1cd3+1050-0x20ad),(0xf82+3886-0x1e34)},{(0x1a5a+971-0x1de4),
-(0x9cf+3040-0x14ee)},{(0x6f3+2609-0x10db),(0xb89+1906-0x122e)},{
-(0x70b+5560-0x1c74),(0x28d+989-0x597)},{(0xcc5+5993-0x23d9),(0x86c+2276-0x1076)}
-,{(0x1520+1381-0x1a24),(0x3a0+5842-0x1991)},{(0x1243+4139-0x2209),
-(0x243b+1750-0xa65)},{(0x891+5608-0x1e10),(0x1c3+1487-0x6a5)},{
-(0xbca+6827-0x2606),(0xc7c+1568-0x11a9)},{(0x1ba7+971-0x1efd),
-(0xe98+1998-0x156c)},};const unsigned short Ucs2_To_Gsm7_SPANISH_Table_UCS[][
-(0x1263+5249-0x26e2)]={{(0x1af+1015-0x596),(0xccf+2309-0x1240)},{
-(0x664+5760-0x1cd2),(0xe3f+1369-0xff2)},{(0x1957+877-0x1cb1),
-(0x173d+4397-0x24d7)},{(0x22dc+978-0x269a),(0x10f9+3198-0x19dc)},{
-(0x155c+2894-0x2095),(0x129c+5575-0x24ba)},{(0x11b+6459-0x1a40),
-(0x1d21+2669-0x23ee)},{(0x35b+6180-0x1b68),936},{(0x77c+4182-0x17ba),
-(0x932+3550-0x136d)},{(0x1622+1573-0x1c2e),(0x1fb5+89-0x1c76)},{
-(0x185f+823-0x1b7c),(0xaf7+6800-0x21e9)},};const unsigned char
+const_header;char g_zUfiSms_DigAscMap[(0x939+3581-0x1726)]={
+((char)(0x61c+5858-0x1cce)),((char)(0xdc4+2054-0x1599)),
+((char)(0xf60+4341-0x2023)),((char)(0x1c2a+2026-0x23e1)),
+((char)(0x1161+3232-0x1dcd)),((char)(0x232+4818-0x14cf)),
+((char)(0x1771+268-0x1847)),((char)(0xb86+4104-0x1b57)),
+((char)(0x21b+5760-0x1863)),((char)(0xb8f+4872-0x1e5e)),
+((char)(0x1daa+1229-0x2236)),((char)(0x100c+933-0x136f)),
+((char)(0x5f0+1395-0xb20)),((char)(0x7b+614-0x29d)),((char)(0x536+1101-0x93e)),
+((char)(0xbd7+3435-0x18fc))};extern SMS_PARAM g_zUfiSms_SendingSms;extern UINT16
+ g_zUfiSms_IsLanguageShift;extern int g_zUfiSms_Language;static int
+SerializeNumbers_sms(const char*pSrc,char*pDst,int nSrcLength);const unsigned
+short g_zUfiSms_AsciiToGsmdefaultTable[]={((char)(0x5a1+1342-0xabf)),
+((char)(0xfd+4554-0x12a7)),((char)(0x52+5891-0x1735)),
+((char)(0x13d4+2535-0x1d9b)),((char)(0xf69+1663-0x15c8)),
+((char)(0x18a+3126-0xda0)),((char)(0xe5f+3800-0x1d17)),
+((char)(0xa26+6597-0x23cb)),((char)(0x45a+6150-0x1c40)),
+((char)(0x5e2+1998-0xd90)),((char)(0xb75+6817-0x25f6)),
+((char)(0x1391+4926-0x26af)),((char)(0x962+1918-0x10c0)),
+((char)(0x3c6+6771-0x1e19)),((char)(0x31d+3333-0x1002)),
+((char)(0x149+4800-0x13e9)),((char)(0xa77+1703-0x10fe)),
+((char)(0x110f+4735-0x236e)),((char)(0x606+4349-0x16e3)),
+((char)(0xdea+700-0x1086)),((char)(0xf3d+4398-0x204b)),
+((char)(0x860+6195-0x2073)),((char)(0x1ab3+2358-0x23c9)),
+((char)(0x2ca+5681-0x18db)),((char)(0x1423+2646-0x1e59)),
+((char)(0x1459+1806-0x1b47)),((char)(0x8ef+4513-0x1a70)),
+((char)(0x8e9+443-0xa84)),((char)(0x2c9+2942-0xe27)),((char)(0xc13+6022-0x2379))
+,((char)(0x12fa+3582-0x20d8)),((char)(0x771+4687-0x19a0)),
+((char)(0x229+8563-0x237c)),((char)(0x2e8+4696-0x151f)),(0x174a+2999-0x22df),
+((char)(0xacc+2288-0x1399)),(0xe57+5704-0x249d),((char)(0x67a+4253-0x16f2)),
+((char)(0xceb+5344-0x21a5)),(0xcaf+2107-0x14c3),((char)(0x8f2+3368-0x15f2)),
+((char)(0xf95+959-0x132b)),((char)(0x3c3+787-0x6ac)),((char)(0xff6+1525-0x15c0))
+,((char)(0x19f7+1377-0x1f2c)),((char)(0x1b26+682-0x1da3)),
+((char)(0x11d2+2889-0x1ced)),((char)(0x434+580-0x649)),
+((char)(0x4b5+3496-0x122d)),((char)(0x45+9883-0x26af)),
+((char)(0x6ca+7855-0x2547)),((char)(0x1b5b+2652-0x2584)),
+((char)(0x874+4573-0x1a1d)),((char)(0x1d3f+2003-0x24dd)),
+((char)(0x1e1b+793-0x20fe)),((char)(0xfc2+562-0x11bd)),((char)(0x8b2+947-0xc2d))
+,((char)(0x80f+864-0xb36)),((char)(0x2bf+5037-0x1632)),
+((char)(0x655+1785-0xd13)),((char)(0x5b2+1133-0x9e3)),
+((char)(0xfb2+3000-0x1b2d)),((char)(0xa1+3391-0xda2)),
+((char)(0xbca+3294-0x1869)),(0xcb3+94-0xd11),((char)(0x9da+2983-0x1540)),
+((char)(0x892+3937-0x17b1)),((char)(0x191f+788-0x1bf0)),
+((char)(0x2440+756-0x26f0)),((char)(0x1e01+1662-0x243a)),
+((char)(0x7f7+3394-0x14f3)),((char)(0x862+3705-0x1694)),
+((char)(0x133b+18-0x1305)),((char)(0x934+1683-0xf7e)),
+((char)(0x76b+2797-0x120e)),((char)(0xde0+1361-0x12e6)),
+((char)(0x25c+8829-0x248d)),((char)(0x1b16+574-0x1d07)),
+((char)(0x6b4+3272-0x132e)),((char)(0x4b0+5335-0x1938)),
+((char)(0x31d+6258-0x1b3f)),((char)(0x1440+1680-0x1a7f)),
+((char)(0x2fc+311-0x3e1)),((char)(0x6ff+1598-0xcea)),((char)(0xeb7+1982-0x1621))
+,((char)(0xc9b+5347-0x2129)),((char)(0x217+1459-0x774)),
+((char)(0x120b+498-0x13a6)),((char)(0x11c5+4351-0x226c)),
+((char)(0x1401+1105-0x17f9)),((char)(0x8f1+7538-0x2609)),6972,
+(0x215f+8048-0x25a0),6974,(0x2293+6651-0x217a),(0x66a+5056-0x1a19),
+((char)(0x1171+1338-0x168b)),((char)(0x1b6d+1761-0x21ed)),
+((char)(0x8c7+1522-0xe57)),((char)(0x118+3731-0xf48)),
+((char)(0x1796+2906-0x228c)),((char)(0x117a+3889-0x2046)),
+((char)(0x1167+1722-0x17bb)),((char)(0x9d7+6678-0x2386)),
+((char)(0x2a6+1575-0x865)),((char)(0x331+8060-0x2244)),
+((char)(0x2372+349-0x2465)),((char)(0x2b3+5972-0x199c)),
+((char)(0xfe7+1555-0x158e)),((char)(0xe02+1500-0x1371)),
+((char)(0xd37+6416-0x25d9)),((char)(0xdb9+1422-0x12d8)),
+((char)(0xaa7+4469-0x1bac)),((char)(0x4d9+2541-0xe55)),((char)(0xa36+587-0xc0f))
+,((char)(0x10dc+4655-0x2298)),((char)(0x1832+276-0x18d2)),
+((char)(0x12a1+3565-0x2019)),((char)(0x1932+2460-0x2258)),
+((char)(0x1c22+2728-0x2653)),((char)(0x83+7619-0x1dce)),
+((char)(0x1590+2031-0x1d06)),((char)(0x237f+503-0x24fc)),6952,
+(0x1c41+7735-0x1f38),6953,(0x1b7b+9062-0x23a4),((char)(0x68d+5791-0x1d0c)),
+((char)(0x69+4622-0x1257)),((char)(0xf78+5648-0x2568)),
+((char)(0xc75+1877-0x13aa)),((char)(0xa69+1771-0x1134)),
+((char)(0x1dc0+900-0x2124)),((char)(0x712+4310-0x17c8)),
+((char)(0xa05+6955-0x2510)),((char)(0x14a+6913-0x1c2b)),
+((char)(0x881+7279-0x24d0)),((char)(0x179b+2435-0x20fe)),
+((char)(0x2b9+6004-0x1a0d)),((char)(0x582+4949-0x18b7)),
+((char)(0xfd+6518-0x1a53)),((char)(0x1568+650-0x17d2)),
+((char)(0x3f0+2939-0xf4b)),((char)(0x1886+3282-0x2538)),
+((char)(0x405+3809-0x12c6)),((char)(0x1eab+280-0x1fa3)),
+((char)(0xfd3+2455-0x194a)),((char)(0x1098+487-0x125f)),
+((char)(0x274+3091-0xe67)),((char)(0x146+8722-0x2338)),
+((char)(0x301+3604-0x10f5)),((char)(0x33a+6540-0x1ca6)),
+((char)(0x1f2a+289-0x202b)),((char)(0x16ab+2626-0x20cd)),
+((char)(0x11b5+2227-0x1a48)),((char)(0xd32+134-0xd98)),
+((char)(0x214+3015-0xdbb)),((char)(0x103b+4023-0x1fd2)),
+((char)(0x10f4+150-0x116a)),((char)(0x214f+958-0x24ed)),
+((char)(0x3b5+2489-0xd4e)),(0x3b6+8132-0x233a),((char)(0x811+6304-0x2091)),
+(0x482+4895-0x17a0),(0x69a+2511-0x1045),(0x191+2027-0x979),
+((char)(0x75d+6879-0x221c)),(0x11b1+2247-0x1a19),((char)(0x6ea+5974-0x1e20)),
+((char)(0x535+170-0x5bf)),((char)(0x1a28+2884-0x254c)),
+((char)(0x10f1+5389-0x25de)),((char)(0x9aa+3493-0x172f)),
+((char)(0x4ec+8533-0x2621)),((char)(0x868+960-0xc08)),((char)(0xad+7443-0x1da0))
+,((char)(0x34a+8525-0x2477)),((char)(0x8c8+4149-0x18dd)),
+((char)(0xfd0+4790-0x2266)),((char)(0x217+148-0x28b)),
+((char)(0x1e3+9338-0x263d)),((char)(0x757+7286-0x23ad)),
+((char)(0xf2b+4721-0x217c)),((char)(0x1c3c+753-0x1f0d)),(0x826+5650-0x1e2d),
+((char)(0x15b9+1982-0x1d57)),((char)(0x5db+7914-0x24a5)),
+((char)(0x6b+9864-0x26d3)),((char)(0x1ca+8808-0x2412)),
+((char)(0xd0b+3412-0x1a3f)),((char)(0x15c4+2147-0x1e07)),(0x5d0+4203-0x15db),
+((char)(0x69+853-0x39e)),((char)(0x1594+167-0x161b)),((char)(0x711+3381-0x1426))
+,((char)(0x1af8+91-0x1b33)),(0x149d+129-0x14c3),(0x10dd+3154-0x1d21),
+(0x110a+3340-0x1dfa),(0xfff+5824-0x26b6),((char)(0x27b+6958-0x1d89)),
+(0x7ec+3364-0x14f1),((char)(0x1418+2532-0x1ddc)),((char)(0x117d+2866-0x1c8f)),
+((char)(0x1209+1160-0x1671)),((char)(0xca2+1020-0x107e)),
+((char)(0x173b+3876-0x263f)),((char)(0xcb0+3876-0x1bb4)),
+((char)(0x70a+6097-0x1ebb)),(0x10b+308-0x1e2),((char)(0x73d+3395-0x1460)),
+((char)(0x2293+922-0x260d)),((char)(0xe92+1079-0x12a9)),
+((char)(0x1b6+5467-0x16f1)),(0xb78+533-0xd31),((char)(0x106a+4594-0x223c)),
+((char)(0x729+760-0xa01)),((char)(0x89f+2698-0x1309)),
+((char)(0x257+7271-0x1e9e)),((char)(0x16cd+3913-0x25f6)),(0x1b9d+2649-0x2598),
+((char)(0x9d1+261-0xab6)),((char)(0x1549+3922-0x247b)),(0x1041+3314-0x1d15),
+(0x108+3572-0xe7d),((char)(0x17ec+3227-0x2467)),((char)(0x379+7030-0x1ecf)),
+((char)(0xb2f+2121-0x1358)),(0x5bd+1598-0xb80),(0xd4a+789-0x1050),
+(0xd13+123-0xd71),((char)(0xc5+7869-0x1f62)),(0x13df+3935-0x233a),
+(0xa7a+4355-0x1b78),((char)(0x1b5c+10-0x1b46)),((char)(0x2085+323-0x21a8)),
+(0x311+4114-0x131c),((char)(0xe9a+5854-0x2558)),((char)(0x1366+563-0x1579)),
+((char)(0x28a+4393-0x1393)),((char)(0x1a25+1498-0x1fdf)),(0x47d+1682-0xa92),
+(0x10d2+430-0x1278),((char)(0x9bd+5520-0x1f2d)),((char)(0x1cb4+1239-0x216b)),
+((char)(0x499+4246-0x150f)),(0x2b1+2922-0xd9f),((char)(0x555+2124-0xd81)),
+(0x189d+2167-0x2108),(0x62+1533-0x659),((char)(0x966+5409-0x1e67)),
+((char)(0x6b1+2115-0xed4)),(0x1db+3113-0xd86),((char)(0x15d8+449-0x1779)),
+((char)(0x1764+415-0x18e3)),((char)(0x4fa+2705-0xf6b)),};const unsigned short
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0xde3+125-0xe5e)]={{
+(0x1112+4508-0x22a5),(0x806+8004-0x2663)},{(0x77f+4622-0x1983),
+(0x1765+824-0x1a91)},{(0xbd3+6343-0x248d),(0x1c77+2466-0x260c)},{
+(0xc49+2002-0x1407),(0x15ad+4070-0x2535)},{(0x7c+5453-0x15a1),
+(0xb88+4665-0x1d46)},{(0x1598+4346-0x2669),(0x264+6491-0x1b42)},{
+(0xb60+2396-0x148d),(0x6f7+4563-0x186e)},{(0x191+1761-0x836),(0x9a4+411-0xae4)},
+{(0x678+1072-0xa6b),(0x11b+3579-0xe98)},{(0x1718+3674-0x2534),
+(0x980+3745-0x17c4)},{(0xdd5+2599-0x17bc),(0xb8+3233-0xcdd)},{
+(0x131d+1559-0x18f3),(0x550+2646-0xee5)},{(0x8bf+3889-0x17a7),
+(0x1aed+396-0x1bac)},{(0xc80+5489-0x21a2),(0xa8d+4035-0x197d)},{
+(0xe9c+123-0xec2),(0x232+1191-0x5ff)},{(0xd3c+2253-0x15a8),(0x1298+655-0x1446)},
+{(0xc6+3667-0xeb4),8364},{(0xb48+2112-0x131f),(0xa01+4265-0x19bd)},{
+(0x594+5463-0x1a7c),(0xc74+6503-0x24e8)},{(0x3fc+7757-0x21d4),(0x4b4+972-0x786)}
+,};const unsigned short Ucs2_To_Gsm7_SPANISH_Table_UCS[][(0x1655+2283-0x1f3e)]={
+{(0x25fb+209-0x26bc),(0x40f+3714-0xefd)},{(0xb1+4622-0x12ad),
+(0x123b+5977-0x25ee)},{(0x1d2d+1960-0x24c2),(0x1420+1155-0x1510)},{
+(0x1109+654-0x1383),(0xb23+1150-0xc06)},{(0x82f+3659-0x1665),
+(0x13d2+1704-0x16d1)},{(0x687+681-0x91a),(0xada+6001-0x1eab)},{
+(0x1c98+351-0x1de0),(0x2204+550-0x2082)},{(0xb42+1245-0x1007),
+(0x208d+606-0x1f48)},{(0xe0d+2653-0x1851),(0x183f+1280-0x19a7)},{
+(0x15a5+3068-0x2187),(0xf16+5893-0x227d)},};const unsigned char
Ucs2_To_Gsm7_SPANISH_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xd29+5250-0x21a1),NON_GSM,NON_GSM,
-(0x17cb+1410-0x1d40),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x2c7+8496-0x23ed),NON_GSM,NON_GSM,
+(0x80f+4869-0x1b07),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x1c22+2176-0x2482),(0x5e4+7398-0x22a9),(0xab+9556-0x25dd),
-(0x381+673-0x5ff),(0x32c+383-0x4a9),(0x102a+657-0x1296),(0x184c+1658-0x1ea0),
-(0x553+4416-0x166c),(0x1ec2+1103-0x22e9),(0x1bc+7964-0x20af),
-(0x1075+3238-0x1cf1),(0x1ef3+1642-0x2532),(0x1719+3665-0x253e),
-(0x6b8+6717-0x20c8),(0x1fc1+1859-0x26d6),(0x37d+6240-0x1bae),
-(0x1014+2175-0x1863),(0x12d0+3665-0x20f0),(0x14e2+1507-0x1a93),
-(0x1a2+1115-0x5ca),(0x4dc+151-0x53f),(0x155c+1114-0x1981),(0x16fb+1193-0x1b6e),
-(0xf7+5984-0x1820),(0xc86+3594-0x1a58),(0xab4+2536-0x1463),(0xd66+3406-0x1a7a),
-(0xae4+1072-0xed9),(0x1c35+2788-0x26dd),(0x2d5+2080-0xab8),(0x4f2+1951-0xc53),
-(0xc8+8563-0x21fc),(0xb70+6123-0x235b),(0xcb6+2268-0x1551),(0x1937+3502-0x26a3),
-(0x143d+4256-0x249a),(0x1b8+6972-0x1cb0),(0xa15+6675-0x23e3),(0x20ab+178-0x2117)
-,(0x1729+2269-0x1fbf),(0x50c+2746-0xf7e),(0xb17+3297-0x17af),(0x196b+922-0x1cbb)
-,(0x9ed+4820-0x1c76),(0x173f+2121-0x1f3c),(0x425+7409-0x20c9),(0x230+1898-0x94c)
-,(0x1a54+2664-0x246d),(0xd0+3404-0xdcc),(0xeba+1248-0x1349),(0xaaf+5927-0x2184),
-(0x16e2+1607-0x1cd6),(0x15bc+922-0x1902),(0x851+5065-0x1bc5),(0x134+1928-0x866),
-(0xb7b+1625-0x117d),(0x117+8902-0x2385),(0xbe4+4072-0x1b73),(0x123b+117-0x1256),
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x7af+2310-0x10a4),NON_GSM,(0x10af+159-0x10ed),
-(0x1672+1064-0x1a38),(0x2dd+5249-0x16fb),(0x21d9+180-0x2229),
-(0x16d6+3793-0x2542),(0x8e1+5039-0x1c2a),(0x11dc+3827-0x2068),
-(0x1011+5041-0x235a),(0x6b+4916-0x1336),(0x4e8+6985-0x1fc7),(0x9b5+6089-0x2113),
-(0x1c2d+2652-0x261d),(0x137+2858-0xbf4),(0x9eb+2244-0x1241),(0xb7c+3422-0x186b),
-(0x6e4+4315-0x174f),(0x3b9+531-0x55b),(0x1dab+1944-0x24d1),(0x1659+1024-0x19e6),
-(0xbe0+185-0xc25),(0x771+5715-0x1d4f),(0x4cc+5306-0x1910),(0x13f+1142-0x53e),
-(0x20ec+1083-0x24af),(0xaf7+3878-0x19a4),(0xcf6+842-0xfc6),NON_GSM,NON_GSM,
+NON_GSM,(0x101a+3679-0x1e59),(0x97+9452-0x2562),(0x20c+5145-0x1603),
+(0xd39+3537-0x1ae7),(0x2357+898-0x26d7),(0xe73+4049-0x1e1f),(0x1fe2+228-0x20a0),
+(0x1366+1171-0x17d2),(0x188d+2080-0x2085),(0x3cf+8993-0x26c7),
+(0x1a0+6020-0x18fa),(0x681+1303-0xb6d),(0x11eb+2325-0x1ad4),(0x7a3+1691-0xe11),
+(0xf9a+4738-0x21ee),(0xeaa+3903-0x1dba),(0xbe1+6870-0x2687),(0x3cd+2634-0xde6),
+(0xfa+9091-0x244b),(0x372+2983-0xee6),(0x217+3899-0x111e),(0x6a2+747-0x958),
+(0xad9+5018-0x1e3d),(0xca3+388-0xdf0),(0xee8+1283-0x13b3),(0x1bb9+2689-0x2601),
+(0x1480+3600-0x2256),(0x1eb8+325-0x1fc2),(0x4d8+6163-0x1caf),(0x1acb+356-0x1bf2)
+,(0x2324+772-0x25ea),(0x592+684-0x7ff),(0x152d+3677-0x238a),(0x90c+710-0xb91),
+(0x3a9+5276-0x1803),(0x157d+1062-0x1960),(0x1116+1727-0x1791),
+(0x76a+2701-0x11b2),(0x9fb+1903-0x1124),(0x1c76+1581-0x225c),(0x19d6+907-0x1d19)
+,(0xa60+668-0xcb3),(0x120+3691-0xf41),(0x336+4438-0x1441),(0x1717+867-0x1a2e),
+(0x164f+3635-0x2435),(0x416+7286-0x203e),(0x192+617-0x3ac),(0xe00+356-0xf14),
+(0xd44+1026-0x10f5),(0x18a4+1849-0x1f8b),(0x1b32+2963-0x2672),
+(0x7f5+7650-0x2583),(0x6e3+7758-0x24dc),(0x228b+1049-0x264e),(0x528+2058-0xcdb),
+(0x2261+281-0x2322),(0x741+1042-0xafa),(0xdb2+2039-0x154f),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,(0xcf8+189-0xda4),NON_GSM,(0x11a8+1212-0x1603),
+(0x1a69+204-0x1ad3),(0x8db+7094-0x242e),(0x100f+314-0x10e5),(0x14d7+34-0x1494),
+(0x6b3+4901-0x1972),(0xe1b+6086-0x257a),(0x84c+5029-0x1b89),(0x386+314-0x457),
+(0x135b+608-0x1551),(0x7c1+5922-0x1e78),(0x10cd+4397-0x218e),(0x3b9+2230-0xc02),
+(0x164c+3014-0x21a4),(0x1222+3976-0x213b),(0x128a+3609-0x2033),
+(0x6d3+6189-0x1e8f),(0x6bc+1982-0xe08),(0x136+3211-0xd4e),(0xd3+8360-0x2107),
+(0x1676+3449-0x237a),(0xcf0+5261-0x2107),(0x17af+836-0x1a7c),(0xb30+5070-0x1e86)
+,(0x1288+2978-0x1db1),(0x1d72+442-0x1eb2),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xefb+3666-0x1d32),(0x11a7+1668-0x17eb)
-,NON_GSM,(0x1404+1387-0x196e),(0x320+6025-0x1a85),(0x10df+5419-0x2607),NON_GSM,
-(0xb94+6479-0x2484),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x838+5878-0x1f13),(0xaac+2864-0x159c),NON_GSM,
+(0x153f+4357-0x2643),(0x1298+4880-0x2584),(0xa85+7258-0x26dc),NON_GSM,
+(0x650+5621-0x1be6),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x45f+7551-0x217e),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0xde7+4527-0x1f3b),(0x30c+4170-0x1348),
-(0x79d+3524-0x1545),(0x1b06+1584-0x212d),NON_GSM,(0xd52+267-0xe3e),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x760+972-0xacf),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0x1e39+1310-0x22fb),NON_GSM,(0x175b+2239-0x200f),
-NON_GSM,NON_GSM,NON_GSM,(0x1361+3705-0x217c),NON_GSM,NON_GSM,(0x665+5782-0x1cdd)
-,(0x15b+3156-0xd30),NON_GSM,NON_GSM,NON_GSM,(0x1d1+4877-0x1463),
-(0x14c+8809-0x23a6),(0x8e9+4433-0x1a1d),NON_GSM,(0x9a3+7478-0x26d5),
-(0xee2+5179-0x2318),NON_GSM,NON_GSM,(0x57c+862-0x8d3),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0xfad+2509-0x18fd),(0x1ee9+1062-0x2307),NON_GSM,NON_GSM,NON_GSM,
-(0x1113+1969-0x1848),NON_GSM,(0xdef+6048-0x2583),(0x1e21+941-0x21c8),NON_GSM,
-NON_GSM,(0x313+478-0x473),NON_GSM,NON_GSM,NON_GSM};const unsigned short
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][(0x1cf7+1187-0x2198)]={{
-(0x15c+9356-0x25e3),(0xc4b+1730-0x1223)},{(0x1179+1020-0x156c),
-(0x461+4268-0x1426)},{(0x9cd+4539-0x1b7e),(0xafb+4680-0x1d37)},{
-(0x3c3+779-0x6c3),(0xf52+3413-0x1bd3)},{(0xe75+3608-0x1c81),(0x178a+4124-0x26b2)
-},{(0x54d+5594-0x1b1a),(0x1234+4438-0x237d)},{(0x1dab+795-0x20b8),
-(0x15b7+2921-0x205f)},{(0x973+1944-0x10fc),(0x17ac+3562-0x24b5)},{
-(0x202f+152-0x20b5),(0x3da+2680-0xaac)},{(0x1a39+101-0x1a8b),
-(0x12b5+1068-0x134e)},{(0x757+1908-0xeb7),(0xa6c+129-0xa8f)},{
-(0x66a+7774-0x24b3),(0xf63+2918-0x1720)},{(0x900+2327-0x1201),
-(0x606+6778-0x1ce0)},{(0x15bf+86-0x15fe),(0xeb7+2580-0x1523)},{
-(0x1ed1+1986-0x267b),(0xea0+4800-0x1dbd)},{(0x96c+5443-0x1e96),
-(0x1202+3920-0x1dba)},{(0x1321+4993-0x2683),(0x1330+3199-0x1ee5)},{
-(0x1c01+1962-0x2383),(0x17f1+232-0x185e)},{(0xa63+3309-0x1727),
-(0x144d+2603-0x1dfb)},{(0xac+9266-0x24af),(0x1833+3406-0x2525)},{
-(0x1609+2799-0x20bc),(0x111+8742-0x22dc)},{(0x244+5645-0x1814),
-(0x937+6096-0x2089)},{(0xb8+7924-0x1f6e),(0x612+4732-0x1831)},{
-(0x7ac+1121-0xbcd),(0xbe1+1097-0xfae)},{(0x210+8311-0x2246),(0xdaf+2404-0x1653)}
-,{(0x105c+3112-0x1c3b),(0x1188+4674-0x22fd)},{(0x1de8+641-0x201a),
-(0x15b0+2929-0x204e)},{(0x11bf+4793-0x2423),(0x1df2+1023-0x2117)},{
-(0x110c+718-0x137f),(0x351+5710-0x18dc)},{(0xa9f+1909-0x11b8),
-(0x1b89+2600-0x24dc)},{(0xc7a+5475-0x217c),(0x19d8+334-0x1a64)},{
-(0xce8+1501-0x1260),8364},{(0x1077+1292-0x151a),(0x11a7+3028-0x1c8e)},{
-(0x203+8452-0x2298),(0x116+5433-0x155c)},{(0x17b4+2088-0x1f67),
-(0x978+1727-0xf3d)},{(0x666+2061-0xdf8),(0xccd+1078-0x1020)},{(0xed0+685-0x1101)
-,(0x435+5167-0x176f)},{(0x3c5+1020-0x742),(0x25b7+369-0x2646)},};const unsigned
-short Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][(0x182+4530-0x1332)]={{
-(0x16a5+2554-0x208f),(0x14ad+3751-0x1fc0)},{(0xc69+5826-0x2316),8929},{
-(0x57b+7641-0x233c),8364},{(0x1a8a+2837-0x253a),(0x20d3+3601-0xe38)},};const
-unsigned char Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x42a+3453-0x119d),
-NON_GSM,NON_GSM,(0xdfa+4634-0x2007),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xc65+6008-0x237d),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x79a+5576-0x1d07),(0x57f+4487-0x16f8),
+(0x453+3973-0x13bc),(0xc12+6750-0x2667),NON_GSM,(0xf18+4446-0x2057),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1434+1101-0x1824),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0xdc0+1254-0x124a),NON_GSM,(0x1729+3932-0x267a),NON_GSM
+,NON_GSM,NON_GSM,(0x35b+1334-0x833),NON_GSM,NON_GSM,(0x1b7+873-0x502),
+(0x41c+4144-0x13cd),NON_GSM,NON_GSM,NON_GSM,(0x18b3+1749-0x1f0d),
+(0xc77+853-0xfbd),(0xda1+4266-0x1e2e),NON_GSM,(0x8aa+265-0x9af),
+(0x5bc+7420-0x22b3),NON_GSM,NON_GSM,(0x621+66-0x65c),NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x154a+638-0x174b),(0x5c7+1933-0xd4c),NON_GSM,NON_GSM,NON_GSM,
+(0xf46+2954-0x1a54),NON_GSM,(0x7ba+6196-0x1fe2),(0x1b53+1885-0x22aa),NON_GSM,
+NON_GSM,(0x608+4094-0x1588),NON_GSM,NON_GSM,NON_GSM};const unsigned short
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][(0x749+5164-0x1b73)]={{(0xa1+97-0xfd)
+,(0xd61+6420-0x258b)},{(0x184c+2066-0x2055),(0x617+692-0x7e4)},{
+(0xce1+1783-0x13ce),(0x1535+1563-0x1b44)},{(0x1df+4146-0x1206),
+(0xc36+5429-0x2097)},{(0x13f2+4806-0x26ac),(0x15f6+473-0x16db)},{
+(0x12d8+4865-0x25cc),(0xd4a+3185-0x19ae)},{(0x1b8c+1183-0x201d),
+(0x1087+1279-0x14c5)},{(0xfc9+2296-0x18b2),(0xbc8+2322-0x13f9)},{
+(0xe96+2338-0x17a6),(0x950+561-0x7db)},{(0x181b+2305-0x2109),(0x1efc+919-0x1f00)
+},{(0xa53+1355-0xf8a),(0x11f8+4500-0x232e)},{(0x1034+5860-0x2703),
+(0xdb5+1699-0x10af)},{(0x1390+4379-0x2495),(0x10ed+4539-0x1f08)},{
+(0x911+1067-0xd25),(0x619+647-0x4f8)},{(0xcf+1785-0x7b0),(0x77f+4169-0x1425)},{
+(0x7d8+1597-0xdfc),(0x1430+3435-0x1e03)},{(0xb21+56-0xb3a),(0x11d9+2086-0x1935)}
+,{(0x2b4+5362-0x177e),(0x4d4+1984-0xc19)},{(0x538+8689-0x2700),
+(0x65b+7472-0x230e)},{(0x38a+3867-0x1276),(0xd2+5281-0x1517)},{(0xd75+429-0xee6)
+,(0x10d0+1727-0x1734)},{(0x692+2352-0xf85),(0x197+4736-0x1399)},{
+(0xffa+4559-0x218b),(0x662+5701-0x1c4a)},{(0x2073+744-0x231b),
+(0x63b+6306-0x1e61)},{(0xdf5+5000-0x213c),(0x773+867-0xa16)},{
+(0x19d9+3396-0x26d4),(0x4cf+8385-0x24c3)},{(0x23a0+925-0x26ee),(0xd19+307-0xd79)
+},{(0xdb+4923-0x13c1),(0x13c3+281-0x1402)},{(0x19e4+3261-0x2646),
+(0x1046+3603-0x1d96)},{(0x1c4b+2134-0x2445),(0x6df+7713-0x242b)},{
+(0xffc+4446-0x20f9),(0x116c+2728-0x1b52)},{(0x1ecf+558-0x2098),8364},{
+(0x7c8+2924-0x12cb),(0x934+3295-0x1526)},{(0x9e1+2434-0x12f4),
+(0xbcc+6254-0x2347)},{(0x1a12+59-0x19d8),(0xbf0+2341-0x141b)},{
+(0x4dc+6295-0x1cf8),(0x87c+3083-0x13a4)},{(0xc1+4001-0xfe6),(0x2c5+2804-0xcc4)},
+{(0x815+857-0xaef),(0x1004+96-0xf82)},};const unsigned short
+Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][(0x1e41+450-0x2001)]={{(0x1e7c+591-0x20bb),
+(0xc4d+4302-0x1987)},{(0x127+1526-0x708),8929},{(0x183d+3369-0x254e),8364},{
+(0x284+6031-0x19ae),8364},};const unsigned char
+Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x12e8+563-0x1511),NON_GSM,NON_GSM,
+(0xeb2+2840-0x19bd),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0x196f+364-0x1abb),(0xaf0+911-0xe5e),
-(0x2238+251-0x2311),(0x1fc6+12-0x1faf),(0x34c+2784-0xe2a),(0x320+8391-0x23c2),
-(0x1fa2+1100-0x23c8),(0x231f+449-0x24b9),(0x4c6+4924-0x17da),(0xd86+4478-0x1edb)
-,(0x228a+691-0x2513),(0x52+6966-0x1b5d),(0x15ef+3613-0x23e0),(0x2025+563-0x222b)
-,(0xe66+4750-0x20c6),(0x10ac+1250-0x155f),(0x786+6961-0x2287),
-(0xd5b+2679-0x17a1),(0x9e3+584-0xbf9),(0xca6+6306-0x2515),(0xbf4+1061-0xfe5),
-(0x935+3412-0x1654),(0xb31+5371-0x1ff6),(0x1c7b+1623-0x229b),(0x331+7565-0x2086)
-,(0x1dfa+1391-0x2330),(0xf74+503-0x1131),(0x19dd+3133-0x25df),(0x1bd+107-0x1ec),
-(0x15cc+800-0x18af),(0x1119+4242-0x216d),(0x6c6+5148-0x1aa3),(0x520+4935-0x1867)
-,(0xa27+1600-0x1026),(0x52+8894-0x22ce),(0x9c+3437-0xdc6),(0x480+7109-0x2001),
-(0xa45+2814-0x14fe),(0xc9+6906-0x1b7d),(0x4a2+8759-0x2692),(0x562+4328-0x1602),
-(0x1a49+467-0x1bd3),(0xa2c+4291-0x1aa5),(0x12e5+502-0x1490),(0xb72+315-0xc61),
-(0x67b+499-0x821),(0x139+2972-0xc87),(0x22e6+100-0x22fb),(0x318+3356-0xfe4),
-(0xf75+1884-0x1680),(0xb32+2235-0x139b),(0x8c6+1768-0xf5b),(0x155b+1055-0x1926),
-(0xe08+1644-0x141f),(0x813+5497-0x1d36),(0x1c2+2264-0xa43),(0x6a3+1814-0xd61),
-(0x10b4+2334-0x1979),(0xcaf+2496-0x1615),NON_GSM,(0x14f+7413-0x1e2d),NON_GSM,
-(0x226+4958-0x156e),(0x2f3+7999-0x2221),(0xe7d+4194-0x1e62),(0x5a8+6278-0x1dcd),
-(0xed2+2816-0x1970),(0x1670+3121-0x223e),(0x57f+2894-0x1069),
-(0x1eb9+1345-0x2395),(0x124b+4184-0x223d),(0x1689+2952-0x21aa),
-(0xfb5+1032-0x1355),(0x1d2b+1458-0x2274),(0x10e4+2141-0x18d7),
-(0x2c1+4277-0x130b),(0x785+7289-0x2392),(0x63c+7823-0x245e),(0x6bd+2501-0x1014),
-(0x810+7857-0x2652),(0x1738+3054-0x22b6),(0x276+624-0x475),(0x1131+698-0x1379),
-(0x12f1+3917-0x21cb),(0x1124+3389-0x1ded),(0x1ca0+273-0x1d3c),
-(0x1058+3515-0x1d9d),(0x107+7398-0x1d76),(0x1f01+1002-0x2273),
-(0x14bb+994-0x1824),(0x1d2c+2421-0x2627),NON_GSM,(0x26c+1141-0x6c7),NON_GSM,
-(0x3b6+6035-0x1ae9),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x1624+2096-0x1e34),(0x11b5+2923-0x1cff),(0x179c+325-0x18bf),
+(0x583+7273-0x21c9),(0xa32+2584-0x1448),(0x2b3+6272-0x1b0e),(0x235+3041-0xdf0),
+(0x612+4772-0x188f),(0xbda+4504-0x1d4a),(0xb2d+3753-0x19ad),(0xa58+5917-0x214b),
+(0x3a+4009-0xfb8),(0x402+828-0x712),(0x1bf3+101-0x1c2b),(0x720+6525-0x206f),
+(0xcea+516-0xebf),(0x2136+1133-0x2573),(0x16f7+3591-0x24cd),(0x4db+8234-0x24d3),
+(0x349+7357-0x1fd3),(0xe81+880-0x11bd),(0x144f+2874-0x1f54),(0x137a+3882-0x226e)
+,(0x1521+2975-0x2089),(0x5b1+7474-0x22ab),(0x701+4624-0x18d8),(0x4e5+2065-0xcbc)
+,(0xb30+2334-0x1413),(0x18c8+1539-0x1e8f),(0xf67+2895-0x1a79),
+(0x789+6674-0x215d),(0x37d+1548-0x94a),(0x893+3085-0x14a0),(0x9b3+6744-0x23ca),
+(0x22ad+979-0x263e),(0x1f41+188-0x1fba),(0x577+3088-0x1143),(0x649+821-0x939),
+(0xd46+2619-0x173b),(0x1493+4175-0x249b),(0x74d+7988-0x2639),(0x853+7844-0x26ae)
+,(0xe79+3173-0x1a94),(0x18d+4442-0x129c),(0x13dc+2289-0x1c81),
+(0x624+4362-0x16e1),(0x712+5614-0x1cb2),(0x923+2474-0x127e),(0x1cd8+143-0x1d17),
+(0x2d4+7972-0x21a7),(0x2305+572-0x24ef),(0x5a0+3303-0x1234),(0xcb7+377-0xddc),
+(0xc49+4115-0x1c07),(0x5ab+8161-0x2536),(0x6e5+3975-0x1615),(0x7ec+6849-0x2255),
+(0x13e1+2884-0x1ecc),(0x1726+3843-0x25cf),NON_GSM,(0x1599+678-0x1828),NON_GSM,
+(0x1005+3724-0x1e7b),(0x841+6405-0x2135),(0x1217+5078-0x2570),
+(0x1a06+3394-0x26e7),(0xdcd+3016-0x1933),(0x60f+6234-0x1e06),(0x733+3717-0x1554)
+,(0x5e4+4337-0x1670),(0x11b1+1639-0x17b2),(0x9d8+3590-0x1777),
+(0x2263+604-0x2457),(0xadd+4677-0x1cb9),(0x14cb+1685-0x1af6),
+(0x1719+2548-0x20a2),(0x66d+3001-0x11ba),(0x700+3356-0x13af),
+(0x15fa+1550-0x1b9a),(0x1004+566-0x11cb),(0xc73+2819-0x1706),(0x5e4+3070-0x1171)
+,(0x775+279-0x81a),(0x13e5+2931-0x1ee5),(0x1019+2914-0x1b07),(0x2b6+4279-0x12f8)
+,(0x144f+938-0x1783),(0x3d6+3374-0x108d),(0x1cea+2024-0x245a),
+(0x29d+6192-0x1a54),(0x5e3+6492-0x1ec5),NON_GSM,(0x68d+5351-0x1b5a),NON_GSM,
+(0x14bb+1831-0x1b82),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1320+3391-0x2044),NON_GSM_P,
-NON_GSM,(0x2e9+6792-0x1d70),NON_GSM_P,(0xaa2+6863-0x256e),NON_GSM,
-(0x1942+502-0x1ad9),NON_GSM,NON_GSM,(0x14c3+208-0x1581),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0x14ed+2994-0x207b),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xe27+1869-0x1559),NON_GSM_P,
+NON_GSM,(0x675+3269-0x1339),NON_GSM_P,(0x714+6163-0x1f24),NON_GSM,
+(0x1590+2646-0x1f87),NON_GSM,NON_GSM,(0x1282+2700-0x1cfc),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0xe4b+5959-0x256e),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x1e34+654-0x20ae),(0x663+6733-0x20a2),(0x6d9+218-0x797),(0xc23+3098-0x17e2),
-NON_GSM_P,NON_GSM_P,NON_GSM_P,(0xc60+796-0xf69),NON_GSM,(0x1e3+435-0x377),
-(0x129a+3806-0x215a),NON_GSM,NON_GSM,(0xc01+3757-0x1a6e),NON_GSM,NON_GSM,NON_GSM
-,NON_GSM_P,NON_GSM,(0x1437+4337-0x250f),(0x1e42+78-0x1e85),(0xf26+3008-0x1a8a),
-NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM,(0x1428+4828-0x26a7),NON_GSM,
-(0x194d+296-0x1a17),NON_GSM,NON_GSM,NON_GSM_P,(0x1d94+1961-0x24be),
-(0x127c+3256-0x1f25),(0x10c6+4533-0x225e),(0x206+7939-0x208e),NON_GSM_P,
-NON_GSM_P,NON_GSM_P,(0x14ea+3704-0x2359),NON_GSM_P,(0xd8+552-0x2fb),
-(0x13b3+2860-0x1edb),NON_GSM,NON_GSM_P,(0xa51+4974-0x1db8),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM_P,NON_GSM_P,(0xb41+6834-0x25eb),(0x4f5+7073-0x208a),
-(0x1b7b+1117-0x1f5c),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM_P,(0x1499+3159-0x20ea),
-NON_GSM,(0x15dd+2872-0x2097),NON_GSM,NON_GSM,NON_GSM};const unsigned short
-zte_sms_GSMDefault_To_UCS2_Table_Ex[][(0x21b9+1226-0x2681)]={{
-(0xd07+3550-0x1adb),(0x17fd+841-0x1b3a)},{(0x1c6f+312-0x1d93),(0x21f+1351-0x708)
-},{(0x80a+7363-0x24a5),(0xb6b+6317-0x239d)},{(0x15b3+4256-0x262a),
-(0x2ad+6542-0x1bbe)},{(0x3fa+2964-0xf5f),(0x3d9+8406-0x2453)},{
-(0xa96+4506-0x1bf4),(0xde8+5032-0x2135)},{(0x15b+3159-0xd75),(0x39d+3085-0xf2c)}
-,{(0x782+4221-0x17c1),(0x2175+1373-0x2675)},{(0x99+9213-0x2456),
-(0x430+1117-0x811)},{(0xa76+5674-0x203b),(0x246c+2121-0xc09)},};const unsigned
-short UCS2_To_GSMDefault_Table_UCS2[][(0x151f+3386-0x2257)]={{(0x809+1685-0xe8e)
-,(0x113f+5703-0x23f2)},{(0x406+1161-0x87d),(0xf72+6541-0x2559)},{
-(0x15af+1442-0x1b3e),(0x17c5+3594-0x223c)},{(0x14cb+2205-0x1d54),
-(0x9f4+6133-0x1e4e)},{(0x16f+4374-0x1270),(0x71a+2224-0xc21)},{
-(0x2221+532-0x241f),(0x992+4575-0x17d1)},{(0x135c+2703-0x1dd4),
-(0x10e2+2215-0x15e1)},{(0xad0+5861-0x219d),(0xeab+2819-0x160b)},{
-(0x1274+694-0x1511),(0x163d+1750-0x197b)},{(0x1ba5+1435-0x2126),
-(0x1114+4300-0x1e42)},};const unsigned char UCS2_To_GSMDefault_Table_ASC[]={
+NON_GSM,(0x1a2f+2696-0x24a3),(0x1240+3089-0x1e43),(0x1e3f+138-0x1ead),
+(0x126+3459-0xe4e),NON_GSM_P,NON_GSM_P,NON_GSM_P,(0x232c+335-0x2468),NON_GSM,
+(0x7f5+2593-0x11f7),(0x881+4199-0x18ca),NON_GSM,NON_GSM,(0x1662+1668-0x1ca6),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM,(0x1397+3188-0x1ff2),
+(0x13a+7317-0x1dc4),(0x459+5514-0x1987),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM,
+(0x3f4+1499-0x972),NON_GSM,(0x474+7103-0x1fd5),NON_GSM,NON_GSM,NON_GSM_P,
+(0x147f+575-0x163f),(0x824+2275-0x10f8),(0x563+1557-0xb5b),(0x1f0+3429-0xeda),
+NON_GSM_P,NON_GSM_P,NON_GSM_P,(0xda3+2051-0x159d),NON_GSM_P,(0xdaa+3251-0x1a58),
+(0x18d5+665-0x1b6a),NON_GSM,NON_GSM_P,(0x244+2209-0xade),NON_GSM,NON_GSM,NON_GSM
+,NON_GSM_P,NON_GSM_P,(0x1058+721-0x1321),(0xe92+3204-0x1b0a),(0x5cb+572-0x78b),
+NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM_P,(0x1cfc+1730-0x23b8),NON_GSM,
+(0x15d8+620-0x17c6),NON_GSM,NON_GSM,NON_GSM};const unsigned short
+zte_sms_GSMDefault_To_UCS2_Table_Ex[][(0x7e8+1840-0xf16)]={{(0x54d+3362-0x1265),
+(0x89+7350-0x1d33)},{(0x79f+745-0xa74),(0x1e6d+2136-0x2667)},{
+(0xeac+2770-0x1956),(0xe6c+4514-0x1f93)},{(0xd4b+1153-0x11a3),
+(0xba4+3879-0x1a4e)},{(0xf0+4954-0x141b),(0x705+82-0x6fb)},{(0x1072+4353-0x2137)
+,(0x1f1+8578-0x2318)},{(0x4d9+4122-0x14b6),(0x737+6761-0x2122)},{
+(0x444+526-0x614),(0x14f7+3467-0x2225)},{(0xc96+258-0xd58),(0x1357+2776-0x1db3)}
+,{(0x719+6797-0x2141),(0x26ff+7590-0x23f9)},};const unsigned short
+UCS2_To_GSMDefault_Table_UCS2[][(0x747+7690-0x254f)]={{(0x372+1533-0x95f),
+(0xaed+6801-0x21ea)},{(0x215+2888-0xd4b),(0x1739+4653-0x25c0)},{
+(0x980+3252-0x1621),(0x9cf+2465-0xfdd)},{(0xcc8+4482-0x1e36),(0x573+4601-0x13d1)
+},{(0x27d+634-0x4e2),(0xdd5+4611-0x1c2f)},{(0x1f5b+1958-0x26eb),
+(0x226a+359-0x2031)},{(0x16e1+3664-0x251a),(0xb44+7507-0x24ef)},{
+(0xf65+3913-0x1e96),(0xf9c+5454-0x2147)},{(0x435+4117-0x1431),
+(0x2380+783-0x22f7)},{(0xf87+2654-0x19cb),(0x25eb+666-0x24e7)},};const unsigned
+char UCS2_To_GSMDefault_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xbd+3225-0xd4c),NON_GSM,NON_GSM,
+(0x199b+1200-0x1e3e),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x2088+1549-0x268b),NON_GSM,NON_GSM,(0xbeb+5841-0x22af),NON_GSM,NON_GSM,NON_GSM
-,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
-,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1e77+1756-0x2533),
-(0x135d+2033-0x1b2d),(0x1327+197-0x13ca),(0x30f+8945-0x25dd),(0xa15+557-0xc40),
-(0x1c7c+537-0x1e70),(0x150f+391-0x1670),(0xfb5+5158-0x23b4),(0xc01+1656-0x1251),
-(0x1246+5115-0x2618),(0xd79+3748-0x1bf3),(0xcf8+4723-0x1f40),(0xc35+3898-0x1b43)
-,(0x1b16+2656-0x2549),(0x1445+3509-0x21cc),(0x8e1+7649-0x2693),
-(0x667+4137-0x1660),(0x1f7+2934-0xd3c),(0x13d9+1161-0x1830),(0xc15+3607-0x19f9),
-(0x1514+327-0x1627),(0x4ec+8597-0x264c),(0x232+7155-0x1def),(0x1c5+2608-0xbbe),
-(0xa38+265-0xb09),(0x3ed+8385-0x2475),(0x1897+1657-0x1ed6),(0x2196+240-0x224b),
-(0x47d+1172-0x8d5),(0x107+2874-0xc04),(0x167c+3161-0x2297),(0xdec+4154-0x1de7),
-(0x105c+4798-0x231a),(0x337+7691-0x2101),(0x3d2+854-0x6e6),(0xeaf+799-0x118b),
-(0x1478+4276-0x24e8),(0x14f+5739-0x1775),(0x807+7726-0x25ef),
-(0x10f9+4997-0x2437),(0x20c6+1365-0x25d3),(0x1b2a+688-0x1d91),
-(0xaef+6952-0x25cd),(0xf8+9569-0x260e),(0xe16+5316-0x228e),(0xf9c+5305-0x2408),
-(0x591+3541-0x1318),(0x15e0+1813-0x1ca6),(0xae9+3971-0x1a1c),(0x980+150-0x9c5),
-(0x1263+1511-0x17f8),(0x69d+5679-0x1c79),(0x76a+3475-0x14a9),(0x1c41+216-0x1cc4)
-,(0x21ff+116-0x221d),(0x35d+9206-0x26fc),(0xdc5+4686-0x1fbb),(0x7e9+6100-0x1f64)
-,(0x1a9c+706-0x1d04),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x897+302-0x9b4),NON_GSM,
-(0x8e5+7121-0x2455),(0x9ed+5615-0x1f7a),(0x728+6200-0x1efd),(0x14b+82-0x139),
-(0x1578+2777-0x1fec),(0x1b1+7693-0x1f58),(0x3cb+5669-0x1989),(0x4f0+6399-0x1d87)
-,(0xe31+1088-0x1208),(0x502+8437-0x258d),(0xd29+4827-0x1f99),(0x173+7437-0x1e14)
-,(0x60f+2261-0xe77),(0x8d7+4403-0x199c),(0x182+2457-0xaac),(0x1487+4147-0x244a),
-(0x5aa+438-0x6ef),(0x4ca+6398-0x1d56),(0x2e2+1114-0x6c9),(0x1634+4276-0x2674),
-(0x1377+4529-0x24b3),(0x11e4+2630-0x1bb4),(0x437+2441-0xd49),(0x15d+1465-0x69e),
-(0x4d0+1900-0xbc3),(0x10e8+2729-0x1b17),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x2249+336-0x2379),(0x1579+937-0x1901),(0x14ed+2492-0x1e87),
+(0xe39+3706-0x1c90),(0xe90+2887-0x19d5),(0x1dca+2220-0x2651),(0x367+6055-0x1ae8)
+,(0x345+5084-0x16fa),(0xe06+2203-0x1679),(0xf29+4120-0x1f18),(0xeb2+466-0x105a),
+(0x2004+766-0x22d7),(0x5c+1715-0x6e3),(0x188c+2217-0x2108),(0xa5c+4373-0x1b43),
+(0x87d+5779-0x1ee1),(0xae3+3796-0x1987),(0x19a7+1177-0x1e0f),
+(0x16d2+3838-0x259e),(0x14b+1265-0x609),(0x6e0+2149-0xf11),(0xa43+971-0xdd9),
+(0x5a5+5210-0x19c9),(0x3d6+2631-0xde6),(0x777+266-0x849),(0x25c+9118-0x25c1),
+(0xe40+3848-0x1d0e),(0x4ba+2026-0xc69),(0x172b+2799-0x21de),(0x388+776-0x653),
+(0xebd+6240-0x26df),(0x38b+5478-0x18b2),(0x1599+989-0x1976),(0x113d+5546-0x26a6)
+,(0x342+3383-0x1037),(0x728+853-0xa3a),(0xd2d+5403-0x2204),(0xe35+1674-0x147a),
+(0x12b9+5111-0x266a),(0x159b+4185-0x25ad),(0x12e1+4666-0x24d3),
+(0x159+5689-0x1749),(0x4dc+7642-0x226c),(0xb9c+3811-0x1a34),(0xfc1+3580-0x1d71),
+(0x14d+2585-0xb19),(0x4e4+181-0x54b),(0x814+311-0x8fc),(0x7cf+3512-0x1537),
+(0x131+842-0x42a),(0x758+5965-0x1e53),(0xf59+1354-0x1450),(0x1b73+3009-0x26e0),
+(0x13a1+3469-0x20d9),(0x1338+2603-0x1d0d),(0x1c67+403-0x1da3),(0xea2+747-0x1135)
+,(0x69+5007-0x139f),(0x168a+3977-0x25b9),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x393+4731-0x15fd),NON_GSM,(0xc78+6771-0x268a),(0x9b6+4690-0x1ba6),
+(0x3f2+8958-0x268d),(0x34a+439-0x49d),(0x52b+2430-0xe44),(0x15d2+2474-0x1f16),
+(0x43b+2585-0xded),(0x17e4+3286-0x2452),(0x10f+1568-0x6c6),(0x1c35+711-0x1e92),
+(0x1110+2435-0x1a28),(0x835+3010-0x138b),(0xd3f+1151-0x1151),(0x1870+204-0x18ce)
+,(0x1571+1964-0x1cae),(0x4e8+1884-0xbd4),(0x681+5720-0x1c68),(0xd01+5362-0x2181)
+,(0x1fe8+1933-0x2702),(0x27a+5630-0x1804),(0x500+7782-0x22f1),
+(0x5eb+4201-0x15de),(0x13f4+2341-0x1ca2),(0x66a+642-0x874),(0x1aa+4104-0x1139),
+(0xe66+6318-0x269a),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0x23a0+749-0x2672),(0x185b+2790-0x2301),NON_GSM,
-(0x1919+3067-0x2513),(0x1797+1347-0x1cb6),(0x12f7+1528-0x18ec),NON_GSM,
-(0xa29+4729-0x1c43),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x6d9+6137-0x1eb7),(0x8e2+3449-0x161b),NON_GSM,(0xa37+5296-0x1ee6),
+(0x659+1217-0xaf6),(0x66f+5136-0x1a7c),NON_GSM,(0xb0d+4390-0x1bd4),NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x26f+8687-0x23fe),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0x1dd6+2026-0x2565),(0x11c+5701-0x1753),
-(0xb06+2830-0x15f8),(0x1c98+1462-0x2245),NON_GSM,(0xe27+2049-0x1609),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xbac+1864-0x1297),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0x166f+4104-0x261b),NON_GSM,(0x1f33+978-0x22fa),NON_GSM
-,NON_GSM,NON_GSM,(0xe0c+6229-0x2603),NON_GSM,NON_GSM,(0x780+8071-0x26e9),
-(0x1348+900-0x164d),NON_GSM,NON_GSM,NON_GSM,(0x21b+1632-0x800),
-(0x14ec+4648-0x2705),(0x7e1+3970-0x1746),NON_GSM,(0x4ec+3916-0x1434),
-(0x16a3+2177-0x1f1f),NON_GSM,NON_GSM,(0x1152+1397-0x16c0),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0x12ef+5106-0x2664),(0x14d8+1487-0x1a9f),NON_GSM,NON_GSM,
-NON_GSM,(0x132f+4310-0x2389),NON_GSM,(0x10d2+272-0x11d6),(0x20e9+1426-0x2675),
-NON_GSM,NON_GSM,(0x17f1+2536-0x215b),NON_GSM,NON_GSM,NON_GSM};const unsigned
-short zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={(0x1e79+1366-0x238f),
-(0xeb+8332-0x20d4),(0xfc6+1837-0x16cf),(0x989+2390-0x123a),(0x16b0+2727-0x206d),
-(0x3d2+1405-0x866),(0xe89+4240-0x1e1f),(0x1353+331-0x13b1),(0x983+5498-0x1e0a),
-(0x197+7903-0x1f8f),(0x14ff+631-0x176c),(0xe7b+2073-0x15c0),(0x217d+1025-0x248a)
-,(0x1426+1104-0x1869),(0x1cc+9343-0x258a),(0x19ff+3488-0x26be),
-(0x5b1+8943-0x250c),(0xf45+5014-0x227c),(0x789+7792-0x254f),(0x91f+6558-0x21f6),
-(0x1884+47-0x17f3),8734,(0x15e1+4398-0x26b1),(0x81c+805-0xae5),8364,
-(0x149d+3126-0x2000),(0x101d+4858-0x229b),(0x5d9+3423-0x1298),
-(0xd1b+6137-0x2452),(0x9a7+6701-0x22f2),(0x750+3289-0x135f),(0x5ef+6584-0x1ede),
-(0x499+2046-0xc77),(0x360+740-0x623),(0x11d9+3965-0x2134),(0xfa+4200-0x113f),
-(0x12b9+4562-0x23db),(0x11a5+2342-0x1aa6),(0x173b+3226-0x23af),
-(0x63b+1394-0xb86),(0x1497+3764-0x2323),(0x197d+1247-0x1e33),(0xf55+1117-0x1388)
-,(0x4c6+5041-0x184c),(0x184b+2502-0x21e5),(0x1a1a+3298-0x26cf),
-(0xc3a+2951-0x1793),(0x254+6784-0x1ca5),(0xf99+5602-0x254b),(0x213+9202-0x25d4),
-(0x1210+3987-0x2171),(0x15b9+2455-0x1f1d),(0x713+7065-0x2278),(0x1c2+1502-0x76b)
-,(0x2071+1165-0x24c8),(0xf28+5172-0x2325),(0x91b+3056-0x14d3),
-(0x1952+648-0x1ba1),(0xff8+511-0x11bd),(0x1483+4313-0x2521),(0xb81+235-0xc30),
-(0x132+3590-0xefb),(0xad1+1279-0xf92),(0x1886+3658-0x2691),(0x605+7908-0x241c),
-(0x1397+250-0x1450),(0x10dc+5533-0x2637),(0xc47+203-0xccf),(0xc5f+1461-0x11d0),
-(0x1068+3247-0x1cd2),(0x1a52+1130-0x1e76),(0x118c+106-0x11af),
-(0x1b6b+1602-0x2165),(0x738+6579-0x20a2),(0x2aa+2277-0xb45),(0x2ab+6861-0x1d2d),
-(0xcbc+1685-0x1305),(0x8c8+2501-0x1240),(0x10f5+4780-0x2353),(0x2f2+6138-0x1a9d)
-,(0xe8d+3877-0x1d62),(0x3c2+67-0x3b4),(0x110b+2177-0x193a),(0xcf+1663-0x6fb),
-(0x2e4+1037-0x69d),(0x903+4211-0x1921),(0x879+7356-0x24df),(0x137b+3881-0x224d),
-(0xaf9+4361-0x1baa),(0x1ffd+812-0x22d0),(0xc96+2243-0x14ff),(0xf19+3811-0x1d39),
-(0x2d4+7023-0x1d6e),(0x23e0+898-0x2688),(0x1188+3615-0x1ecb),(0xa68+637-0xc3e),
-(0x1865+2753-0x22a8),(0xd4d+3362-0x1a0e),(0x1266+1336-0x173c),
-(0xfa4+5448-0x2489),(0x5b9+1706-0xbff),(0xe81+967-0x11e3),(0x1d75+1239-0x21e6),
-(0x147c+1283-0x1918),(0x1ca+9175-0x2539),(0x1c3+3940-0x10be),(0xbcc+3677-0x19bf)
-,(0x338+6410-0x1bd7),(0x169d+1299-0x1b44),(0xdfc+4143-0x1dbe),
-(0x7ca+4328-0x1844),(0x9eb+2078-0x119a),(0xd28+1000-0x10a0),(0x268+8436-0x22eb),
-(0x754+975-0xab1),(0x46b+4694-0x164e),(0x5fa+74-0x5d0),(0xc59+377-0xd5d),
-(0x76c+5798-0x1d9c),(0x1ad+3935-0x1095),(0x23a+7264-0x1e22),(0x5b3+925-0x8d7),
-(0x17fa+2078-0x1f9e),(0x51a+3518-0x11f5),(0xcd1+958-0xf9a),(0x2613+151-0x264a),
-(0x10f+1165-0x4a0),(0x7f6+7867-0x25d1)};const unsigned short
-zte_sms_GSMDefault_To_UCS2_Table[]={(0x10df+1500-0x167b),(0xa53+4661-0x1be5),
-(0x3c3+4910-0x16cd),(0x18b+5733-0x174b),(0xd6b+336-0xdd3),(0x4a4+3510-0x1171),
-(0x838+1615-0xd8e),(0x3a9+3225-0xf56),(0x140c+2008-0x1af2),(0x1e12+2367-0x268a),
-(0x1137+4530-0x22df),(0x543+6528-0x1deb),(0x3aa+3991-0x1249),(0xc05+2299-0x14f3)
-,(0xf8d+5653-0x24dd),(0x208a+1034-0x23af),916,(0x1b1+7559-0x1ed9),
-(0x19cd+1749-0x1cfc),(0x14a0+1381-0x1672),(0xf19+2482-0x1530),
-(0x26a7+992-0x26de),(0x8d0+5034-0x18da),(0x17b3+2978-0x1fad),(0xfbc+1674-0x12a3)
-,(0x4e1+4119-0x1160),(0xb16+7298-0x23fa),(0x1f70+1035-0x22db),(0x359+1827-0x9b6)
-,(0x1854+2168-0x1fe6),(0x32b+4746-0x14d6),(0x1655+1168-0x1a1c),
-(0xf4+4175-0x1123),(0xca5+2245-0x1549),(0x90+8068-0x1ff2),(0x1803+2834-0x22f2),
-(0x926+5241-0x1cfb),(0xf86+1303-0x1478),(0x1087+1643-0x16cc),(0x27c+810-0x57f),
-(0xadd+144-0xb45),(0xdd4+2739-0x185e),(0x3bc+7522-0x20f4),(0xa85+4134-0x1a80),
-(0x194c+2146-0x2182),(0x523+8288-0x2556),(0x417+2135-0xc40),(0xd82+4609-0x1f54),
-(0x3ea+2846-0xed8),(0x703+53-0x707),(0x1585+1203-0x1a06),(0x9c6+1363-0xee6),
-(0xf77+4345-0x203c),(0x128d+3286-0x1f2e),(0x3c9+3602-0x11a5),(0xc74+3879-0x1b64)
-,(0x5a9+3294-0x124f),(0xe9b+3955-0x1dd5),(0x1059+1517-0x160c),
-(0x4d5+3031-0x1071),(0xe0d+234-0xebb),(0xadd+599-0xcf7),(0x1d72+1800-0x243c),
-(0x565+4303-0x15f5),(0x366+1892-0xa29),(0x12fc+2362-0x1bf5),(0x482+8232-0x2468),
-(0xb42+4258-0x1ba1),(0x588+8203-0x254f),(0x11b4+129-0x11f0),(0x644+5303-0x1ab5),
-(0xdd5+4148-0x1dc2),(0x9f+5789-0x16f4),(0x15a2+4244-0x25ed),(0x171a+2853-0x21f5)
-,(0xc5+197-0x13f),(0x113+1040-0x4d7),(0x4d+6752-0x1a60),(0x59+3119-0xc3a),
-(0xaa+1452-0x607),(0x9a+3835-0xf45),(0xb61+672-0xdb0),(0x36f+2780-0xdf9),
-(0x28b+7205-0x1e5d),(0x71d+2252-0xf95),(0x1caa+798-0x1f73),(0x80b+4421-0x18fa),
-(0xc07+3852-0x1abc),(0x318+8940-0x25ac),(0xac5+6437-0x2391),(0x4c1+6225-0x1cb8),
-(0x94c+5588-0x1e5c),(0x162+2238-0x94a),(0xce7+802-0xf38),(0x5cb+2700-0xf7b),
-(0x406+3336-0x1067),(0x1d4c+1693-0x232a),(0x5b0+6016-0x1ccf),(0x1243+790-0x14f7)
-,(0x12e2+869-0x15e4),(0x168+1219-0x5c7),(0x626+4389-0x16e6),(0x1574+834-0x1850),
-(0x2f5+7987-0x21c1),(0x8eb+4517-0x1a28),(0x12da+2157-0x1ade),(0x347+7242-0x1f27)
-,(0x706+2974-0x1239),(0x19a+320-0x26e),(0x2f4+7982-0x21b5),(0x124a+1402-0x1756),
-(0x751+1563-0xcfd),(0xf3+8928-0x2363),(0x4b6+4344-0x153d),(0x1693+2248-0x1ee9),
-(0x8cc+4754-0x1aeb),(0x7e7+3535-0x1542),(0xd70+4423-0x1e42),(0xdd3+3519-0x1b1c),
-(0x421+5430-0x18e0),(0x112f+1669-0x173c),(0x114f+2003-0x18a9),
-(0x19bf+877-0x1cb2),(0xf14+1966-0x15de),(0x530+3524-0x11fe),(0x5d0+35-0x502),
-(0x88a+7405-0x247b),(0xf1f+968-0x1207)};int Bytes2String(const unsigned char*
-pSrc,char*pDst,int nSrcLength){const char tab[]="0123456789ABCDEF";int i=
-(0x111a+3975-0x20a1);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x17ab+3721-0x2634))
-{return-(0x46f+8235-0x2499);}for(i=(0x91b+5671-0x1f42);i<nSrcLength;i++){*pDst++
-=tab[*pSrc>>(0xdd+9404-0x2595)];*pDst++=tab[*pSrc&(0x4bd+942-0x85c)];pSrc++;}*
-pDst='\0';return nSrcLength*(0x1557+1244-0x1a31);}int String2Bytes(const char*
-pSrc,unsigned char*pDst,int nSrcLength){int i=(0xd1a+5303-0x21d1);if(pSrc==NULL
-||pDst==NULL||nSrcLength<(0x114d+2413-0x1aba)){return-(0xd50+5756-0x23cb);}for(i
-=(0x4dc+6499-0x1e3f);i<nSrcLength;i+=(0x5+6216-0x184b)){if(*pSrc>=
-((char)(0x1bf+2403-0xaf2))&&*pSrc<=((char)(0x1b64+815-0x1e5a))){*pDst=(*pSrc-
-((char)(0x1d8d+687-0x200c)))<<(0x1e9+510-0x3e3);}else{*pDst=((toupper(*pSrc)-
-((char)(0xdd4+6356-0x2667)))+(0x230b+268-0x240d))<<(0xe66+5186-0x22a4);}pSrc++;
-if(*pSrc>=((char)(0x1014+1584-0x1614))&&*pSrc<=((char)(0x4a1+4336-0x1558))){*
-pDst|=*pSrc-((char)(0x46d+5007-0x17cc));}else{*pDst|=(toupper(*pSrc)-
-((char)(0x1e9c+1587-0x248e)))+(0xa92+1196-0xf34);}pSrc++;pDst++;}return
-nSrcLength/(0x1986+1111-0x1ddb);}int EncodeUcs2(const char*pSrc,unsigned char*
-pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1df8+544-0x2018)){
-return-(0xfc5+5627-0x25bf);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);return
- nSrcLength/(0x519+635-0x792);}int Encode7bit(const char*pSrc,unsigned char*pDst
-,int nSrcLength){int nSrc;int nDst;int nChar;unsigned char nLeft=
-(0x23a+508-0x436);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1af2+1408-0x2072)){
-return-(0x1682+2669-0x20ee);}nSrc=(0xb29+6746-0x2583);nDst=(0x1d7c+1952-0x251c);
-while(nSrc<nSrcLength){nChar=nSrc&(0x7ab+1981-0xf61);if(nChar==
-(0x11df+1581-0x180c)){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>
-(0x9f8+2270-0x12d5))&&(nSrc==(nSrcLength-(0x559+6172-0x1d74)))){nDst++;}}else{*
-pDst=(*pSrc<<((0x20c+369-0x375)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst++;}
-pSrc++;nSrc++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst,
-UINT8 TP_FCS){SINT32 nLength=(0x770+6437-0x2095);SINT32 nDstLength=
-(0x23b8+157-0x2455);UINT8 buf[(0xfa1+4530-0x2053)]={(0x209+2996-0xdbd)};if(NULL
-==pDst){return-(0x3ec+8036-0x234f);}if(TP_FCS!=(0x13bb+3662-0x2209)){buf[
-(0x259+1578-0x883)]=(0x7f8+7062-0x238e);buf[(0x2297+610-0x24f8)]=TP_FCS;buf[
-(0x55f+5931-0x1c88)]=(0x259+5640-0x1861);nDstLength+=Bytes2String(buf,&pDst[
-nDstLength],(0x470+98-0x4cf));}else{buf[(0xaa5+16-0xab5)]=(0x3eb+1994-0xbb5);buf
-[(0xb1f+4130-0x1b40)]=(0x68c+2347-0xfb7);nDstLength+=Bytes2String(buf,&pDst[
-nDstLength],(0xe89+3414-0x1bdd));}return nDstLength;}unsigned long
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,(0x3df+1656-0x9f7),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x4aa+5037-0x17fc),(0x838+4362-0x1934),(0xd23+3747-0x1baa),(0x820+3511-0x15ce),
+NON_GSM,(0x1e51+2193-0x26c3),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0xd08+1325-0x11d8),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xe36+4956-0x2136),
+NON_GSM,(0x1154+4484-0x22cd),NON_GSM,NON_GSM,NON_GSM,(0x1b4d+1926-0x2275),
+NON_GSM,NON_GSM,(0xddb+294-0xee3),(0x3bc+91-0x398),NON_GSM,NON_GSM,NON_GSM,
+(0x1033+3325-0x1cb5),(0x533+5620-0x1b18),(0x13fa+445-0x159a),NON_GSM,
+(0x15fc+2833-0x2109),(0x1389+4975-0x26f3),NON_GSM,NON_GSM,(0x1209+4618-0x240c),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x208a+1238-0x24e3),(0x440+161-0x4d9),NON_GSM,
+NON_GSM,NON_GSM,(0xf8b+1767-0x15f6),NON_GSM,(0x27+1213-0x4d8),(0x34+8678-0x2214)
+,NON_GSM,NON_GSM,(0x3ca+1690-0x9e6),NON_GSM,NON_GSM,NON_GSM};const unsigned
+short zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={(0x97c+6391-0x2233),
+(0x9b0+3626-0x1737),(0x96d+426-0xaf3),(0x919+5327-0x1d43),(0x5a0+6128-0x1ca6),
+(0xaa7+3503-0x176d),(0x15f+6304-0x1905),(0x349+1110-0x6b2),(0x13a6+4044-0x227f),
+(0x12d4+3096-0x1e05),(0x2154+1141-0x25bf),(0x2588+282-0x25ce),(0xedb+263-0xeee),
+(0x589+2852-0x10a0),(0xef6+1544-0x143d),(0x22d7+729-0x24cf),(0x6fa+8152-0x233e),
+(0x82c+2741-0x1282),(0x263+2846-0xcd7),(0x132d+1098-0x16b0),(0x1317+4833-0x2538)
+,8734,(0x549+3003-0x10a6),(0xa0a+3856-0x18be),8364,(0x11fb+919-0x14bf),
+(0xc0+686-0x2f2),(0x176+3167-0xd35),(0x300+4697-0x1497),(0x1985+2273-0x2184),
+(0x1ab4+2560-0x23ea),(0x4c2+1792-0xaf9),(0x5c2+5631-0x1ba1),(0x1b20+957-0x1ebc),
+(0x771+5502-0x1ccd),(0x3ad+5894-0x1a90),(0xdeb+4265-0x1de4),(0x14cb+4177-0x24f7)
+,(0x1b7+1174-0x627),(0x4a+6148-0x1827),(0x152d+2831-0x2014),(0x84a+4074-0x180b),
+(0x4f3+1470-0xa87),(0x203+8299-0x2243),(0x11c9+3005-0x1d5a),(0xc9c+748-0xf5b),
+(0x65+3194-0xcb1),(0x116d+3134-0x1d7c),(0xa7f+4339-0x1b42),(0xb17+3504-0x1896),
+(0xb25+3808-0x19d3),(0x1cb2+2228-0x2533),(0x2068+708-0x22f8),(0x3e7+7589-0x2157)
+,(0x947+4008-0x18b9),(0x7a4+2450-0x10ff),(0xb12+4189-0x1b37),
+(0x108c+1727-0x1712),(0x27b+8660-0x2415),(0x559+4335-0x160d),
+(0x11a0+1174-0x15fa),(0x12bc+1787-0x197a),(0x991+1670-0xfd9),(0x1c3+6768-0x1bf4)
+,(0x1a01+2471-0x22db),(0x592+7259-0x21ac),(0x6f5+3935-0x1612),
+(0x8ab+6165-0x207d),(0x1265+4865-0x2522),(0x1dda+1967-0x2544),
+(0xac9+5016-0x1e1b),(0x1a0a+680-0x1c6b),(0x3bf+8359-0x241e),(0x746+5957-0x1e42),
+(0x11fd+2416-0x1b23),(0x72b+4074-0x16ca),(0x536+6927-0x1ff9),(0x509+3896-0x13f4)
+,(0xdea+1034-0x11a6),(0x1b50+2429-0x247e),(0x13f1+595-0x15f4),
+(0xafc+2200-0x1343),(0x1c68+2561-0x2617),(0x16f4+1918-0x1e1f),
+(0x1a66+1932-0x219e),(0x534+1912-0xc57),(0xcf6+231-0xd87),(0x1210+2923-0x1d24),
+(0x1480+366-0x1596),(0xed8+2821-0x1984),(0x183c+1809-0x1ef3),(0x259+4904-0x14be)
+,(0xc34+3004-0x171b),(0x609+5786-0x1bc9),(0x89b+6985-0x2308),(0x1ffd+714-0x2220)
+,(0x7dc+4467-0x18d1),(0x583+7879-0x23e9),(0x1930+1673-0x1f57),
+(0x23c+4593-0x13ca),(0x233+5219-0x1632),(0x14af+3560-0x2232),(0x1dc2+286-0x1e7a)
+,(0x10cb+5547-0x260f),(0x978+4863-0x1c0f),(0xe28+1977-0x1578),
+(0x81c+4664-0x19ea),(0x283+7369-0x1ee1),(0x521+2368-0xdf5),(0xa35+903-0xd4f),
+(0x18d5+820-0x1b9b),(0x1f7+768-0x488),(0xdc0+3757-0x1bfd),(0x137b+4110-0x2318),
+(0x104b+1909-0x174e),(0x473+3712-0x1280),(0xf86+2339-0x1835),(0x43f+7540-0x213e)
+,(0x174f+3806-0x25b7),(0xb93+4634-0x1d36),(0x2db+8888-0x251b),
+(0xbc3+4248-0x1be2),(0xbad+3413-0x1888),(0x168a+4363-0x26b2),
+(0x106c+4576-0x2157),(0x204+6737-0x1bf5),(0x646+5380-0x1a4e),
+(0x12a1+4283-0x227c)};const unsigned short zte_sms_GSMDefault_To_UCS2_Table[]={
+(0x702+1978-0xe7c),(0x7ef+2519-0x1123),(0x106f+3857-0x1f5c),(0x1470+1072-0x17fb)
+,(0x1e5+4649-0x1326),(0x5ed+1410-0xa86),(0x2170+1594-0x26b1),(0x1cf4+519-0x1e0f)
+,(0x1a7b+73-0x19d2),(0x1179+1576-0x16da),(0x13af+1967-0x1b54),(0x256+297-0x2a7),
+(0x60d+5804-0x1bc1),(0xaab+4806-0x1d64),(0x758+1244-0xb6f),(0x1177+500-0x1286),
+(0x19cf+409-0x17d4),(0x1603+3468-0x2330),(0x1adb+2057-0x1f3e),
+(0x4a0+4197-0x1172),(0xb86+7879-0x26b2),(0x1acd+925-0x1ac1),(0x67a+9253-0x26ff),
+(0x1a60+753-0x19a9),(0x9bd+6780-0x2096),(0x16a7+3593-0x2118),(0x635+504-0x48f),
+(0xcb9+2370-0x155b),(0x15c9+3365-0x2228),(0x226+9355-0x25cb),(0x791+1596-0xcee),
+(0xc90+3402-0x1911),(0x16a4+2843-0x219f),(0x217d+884-0x24d0),(0xb8b+6372-0x244d)
+,(0x126f+1196-0x16f8),(0x623+4199-0x15e6),(0x546+1339-0xa5c),(0xadd+348-0xc13),
+(0x5df+2688-0x1038),(0x1201+2006-0x19af),(0xdd1+1382-0x130e),(0x613+920-0x981),
+(0x63b+2052-0xe14),(0x172f+2768-0x21d3),(0x1ecb+550-0x20c4),(0x21c+1990-0x9b4),
+(0xa8b+6152-0x2264),(0x884+2194-0x10e6),(0x11e6+4912-0x24e5),(0xcc+5848-0x1772),
+(0x6bf+5824-0x1d4c),(0xbb4+854-0xed6),(0x1bac+16-0x1b87),(0x62b+3843-0x14f8),
+(0x224+1882-0x947),(0x1862+3545-0x2603),(0x1f4+512-0x3bb),(0x4b9+7113-0x2048),
+(0xc0c+4042-0x1b9b),(0x226+5623-0x17e1),(0x1418+4126-0x23f9),
+(0x11f3+4733-0x2432),(0x1655+2394-0x1f70),(0x1d8d+772-0x1ff0),
+(0xa3c+3689-0x1864),(0x2610+15-0x25dd),(0xba8+2590-0x1583),(0x2123+196-0x21a3),
+(0xf4+8751-0x22de),(0x418+3479-0x1169),(0x123c+73-0x123e),(0x124c+992-0x15e4),
+(0x2397+13-0x235b),(0x135b+4177-0x2362),(0x363+1681-0x9a9),(0xce2+5285-0x213b),
+(0x4e5+8687-0x2687),(0x56b+8086-0x24b3),(0xf91+5518-0x24d0),(0x11e0+1276-0x168c)
+,(0x1b0a+470-0x1c8f),(0x987+2460-0x12d1),(0xa80+11-0xa38),(0xc95+1093-0x1086),
+(0x395+6546-0x1cd2),(0x7d7+7179-0x238c),(0x393+5856-0x1a1c),(0x43b+8700-0x25df),
+(0x1af2+1983-0x2258),(0x11bc+3036-0x1d3e),(0x771+4661-0x18e2),
+(0x254+5515-0x1709),(0xcd4+6836-0x26b7),(0xf74+3658-0x1ce2),(0x5b6+4896-0x182f),
+(0x56c+5257-0x1936),(0x1c2c+2271-0x24aa),(0x1a4+6490-0x1a9c),(0x1a6d+984-0x1de2)
+,(0xe81+3082-0x1a27),(0x1470+185-0x14c4),(0x92f+7680-0x26c9),(0x1532+543-0x16ea)
+,(0x13eb+3925-0x22d8),(0x1a2f+801-0x1ce7),(0x1517+4534-0x2663),(0x8f1+41-0x8af),
+(0x573+5712-0x1b57),(0x7d5+857-0xac1),(0x433+1180-0x861),(0x260+7519-0x1f50),
+(0x434+1671-0xa4b),(0x72f+5530-0x1c58),(0x3f7+3003-0xf40),(0x918+5044-0x1c59),
+(0x14bd+3362-0x216b),(0x327+604-0x50e),(0xac0+1758-0x1128),(0x1426+1169-0x1840),
+(0x7a9+5647-0x1d40),(0x156c+4218-0x256d),(0x125b+2747-0x1c9c),
+(0x1b40+1546-0x2066),(0x11ba+4021-0x2079),(0x24f5+30-0x2422),(0x1187+221-0x1168)
+,(0xd49+3868-0x1b85)};int Bytes2String(const unsigned char*pSrc,char*pDst,int
+nSrcLength){const char tab[]="0123456789ABCDEF";int i=(0xc0b+2649-0x1664);if(
+pSrc==NULL||pDst==NULL||nSrcLength<(0x1cc+8606-0x236a)){return-
+(0x36b+9005-0x2697);}for(i=(0x2251+787-0x2564);i<nSrcLength;i++){*pDst++=tab[*
+pSrc>>(0x2132+1331-0x2661)];*pDst++=tab[*pSrc&(0x167f+1894-0x1dd6)];pSrc++;}*
+pDst='\0';return nSrcLength*(0x943+5998-0x20af);}int String2Bytes(const char*
+pSrc,unsigned char*pDst,int nSrcLength){int i=(0x1db6+778-0x20c0);if(pSrc==NULL
+||pDst==NULL||nSrcLength<(0xd22+4423-0x1e69)){return-(0x298+5153-0x16b8);}for(i=
+(0x1b60+2586-0x257a);i<nSrcLength;i+=(0x8a8+4349-0x19a3)){if(*pSrc>=
+((char)(0x12b0+3221-0x1f15))&&*pSrc<=((char)(0x8d8+6071-0x2056))){*pDst=(*pSrc-
+((char)(0x3e6+8351-0x2455)))<<(0x3bc+6892-0x1ea4);}else{*pDst=((toupper(*pSrc)-
+((char)(0x1ccf+419-0x1e31)))+(0xe4b+664-0x10d9))<<(0x9cd+3291-0x16a4);}pSrc++;if
+(*pSrc>=((char)(0x13cb+2537-0x1d84))&&*pSrc<=((char)(0xc77+4895-0x1f5d))){*pDst
+|=*pSrc-((char)(0x134+6477-0x1a51));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x10a6+2165-0x18da)))+(0x70c+2355-0x1035);}pSrc++;pDst++;}return
+nSrcLength/(0x312+2822-0xe16);}int EncodeUcs2(const char*pSrc,unsigned char*pDst
+,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0xcb9+4897-0x1fda)){
+return-(0x167a+2465-0x201a);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);
+return nSrcLength/(0x519+6806-0x1fad);}int Encode7bit(const char*pSrc,unsigned
+char*pDst,int nSrcLength){int nSrc;int nDst;int nChar;unsigned char nLeft=
+(0x7e6+3225-0x147f);if(pSrc==NULL||pDst==NULL||nSrcLength<(0xb1c+5682-0x214e)){
+return-(0x42d+3468-0x11b8);}nSrc=(0x2156+968-0x251e);nDst=(0x73a+7982-0x2668);
+while(nSrc<nSrcLength){nChar=nSrc&(0xf02+92-0xf57);if(nChar==(0x59b+5369-0x1a94)
+){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>(0x1245+1973-0x19f9))&&(nSrc==(
+nSrcLength-(0x8d7+3971-0x1859)))){nDst++;}}else{*pDst=(*pSrc<<(
+(0x2e9+7203-0x1f04)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst++;}pSrc++;nSrc
+++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst,UINT8 TP_FCS){
+SINT32 nLength=(0x415+2156-0xc81);SINT32 nDstLength=(0xab+550-0x2d1);UINT8 buf[
+(0x103b+2824-0x1a43)]={(0x20a9+142-0x2137)};if(NULL==pDst){return-
+(0x1764+754-0x1a55);}if(TP_FCS!=(0x13b+7030-0x1cb1)){buf[(0x63a+2871-0x1171)]=
+(0x1d1+1188-0x675);buf[(0x1bc8+1833-0x22f0)]=TP_FCS;buf[(0x84d+7166-0x2449)]=
+(0xcfb+5406-0x2219);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
+(0x1b6b+410-0x1d02));}else{buf[(0x171a+3107-0x233d)]=(0x553+625-0x7c4);buf[
+(0x22c2+204-0x238d)]=(0xc3a+6475-0x2585);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0xb32+356-0xc94));}return nDstLength;}unsigned long
zUfiSms_ConvertAsciiToGsmDefault(const unsigned char*inputs,unsigned char*
-outputs,unsigned long len){unsigned long i=(0x1aff+2992-0x26af);unsigned long j=
-(0xad8+860-0xe34);unsigned long k=(0x974+3384-0x16ac);if(NULL==inputs||NULL==
+outputs,unsigned long len){unsigned long i=(0x4cc+4637-0x16e9);unsigned long j=
+(0x251+1880-0x9a9);unsigned long k=(0xb88+3381-0x18bd);if(NULL==inputs||NULL==
outputs){printf(
"\x73\x6d\x73\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73");
-return(0x65d+2208-0xefd);}for(i=(0x41+4559-0x1210);i<len;i++){j=inputs[i];if(
-g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x171b+3651-0x245f)){outputs[k]=
+return(0x3d1+1369-0x92a);}for(i=(0x1ad1+1413-0x2056);i<len;i++){j=inputs[i];if(
+g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x1895+2589-0x21b3)){outputs[k]=
g_zUfiSms_AsciiToGsmdefaultTable[j];}else{outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0xdd8+6263-0x2647);k++;outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&(0x1805+1019-0x1b01));}k++;}return k;}
+g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0xc0d+5438-0x2143);k++;outputs[k]=(
+g_zUfiSms_AsciiToGsmdefaultTable[j]&(0x8c6+2382-0x1115));}k++;}return k;}
unsigned long zUfiSms_ConvertUcs2ToSpanish(const unsigned char*def,unsigned char
-*gsm_default,unsigned long len){unsigned long i=(0x162d+1779-0x1d20);unsigned
-long k=(0x1543+2494-0x1f01);unsigned long p=(0x16e3+2360-0x201b);unsigned long
-tmp=(0x44b+1836-0xb77);unsigned long s1=(0x1578+4308-0x264c),s2=
-(0xbb2+2041-0x13ab);unsigned long q=(0x824+1096-0xc6c);s1=sizeof(
+*gsm_default,unsigned long len){unsigned long i=(0x1e34+638-0x20b2);unsigned
+long k=(0x199+3375-0xec8);unsigned long p=(0x478+1591-0xaaf);unsigned long tmp=
+(0x1a74+1814-0x218a);unsigned long s1=(0x1dba+337-0x1f0b),s2=(0x31+8004-0x1f75);
+unsigned long q=(0x709+3317-0x13fe);s1=sizeof(
zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0x85a+33-0x87b)]);s2=sizeof(
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0x1859+2067-0x206c)]);s2=sizeof(
Ucs2_To_Gsm7_SPANISH_Table_UCS)/sizeof(Ucs2_To_Gsm7_SPANISH_Table_UCS[
-(0x1751+3292-0x242d)]);for(i=(0x719+5952-0x1e59);i<len;i++){if(def[i]==
-(0x390+4614-0x1596)){i++;if(Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]!=NON_GSM){
+(0x334+6165-0x1b49)]);for(i=(0xcd8+4933-0x201d);i<len;i++){if(def[i]==
+(0x1456+1410-0x19d8)){i++;if(Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]!=NON_GSM){
gsm_default[k]=Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]];k++;continue;}else if((
-Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x7f3+6066-0x1f85)))
-{gsm_default[k]=(0x945+1247-0xe04);k++;continue;}for(q=(0xe9b+424-0x1043);q<s1;q
-++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0xc34+465-0xe04)]){
-gsm_default[k]=(0x475+8334-0x24e8);k++;gsm_default[k]=
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x12a0+2584-0x1cb8)];break;}}}else{tmp
-=(def[i]<<(0x394+4042-0x1356))+def[i+(0xa32+2488-0x13e9)];i++;if(tmp==
-(0x25d6+2848-0x104a)){gsm_default[k]=(0x57b+1180-0x9fc);k++;gsm_default[k]=
-(0x218b+811-0x2451);k++;}for(p=(0x47b+3369-0x11a4);p<s2;p++){if(tmp==
-Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0xe77+4393-0x1f9f)]){gsm_default[k]=
-Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0x13ec+1052-0x1808)];break;}}}k++;}
-gsm_default[k]='\0';return k;}unsigned long zUfiSms_ConvertUcs2ToPortuguese(
-const unsigned char*def,unsigned char*gsm_default,unsigned long len){unsigned
-long i=(0x2ca+9277-0x2707);unsigned long k=(0xb0b+3714-0x198d);unsigned long p=
-(0x1583+1394-0x1af5);unsigned long tmp=(0x937+4092-0x1933);unsigned long s1=
-(0x86d+261-0x972),s2=(0xc4a+4097-0x1c4b);unsigned long q=(0x1c36+2544-0x2626);s1
-=sizeof(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x1d32+2376-0x267a)]);s2=sizeof(
+Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0xf96+2309-0x187b)))
+{gsm_default[k]=(0x1b83+100-0x1bc7);k++;continue;}for(q=(0x694+2825-0x119d);q<s1
+;q++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x4a4+6705-0x1ed4)]){
+gsm_default[k]=(0xe58+2215-0x16e4);k++;gsm_default[k]=
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x1c37+1007-0x2026)];break;}}}else{tmp
+=(def[i]<<(0x74b+7487-0x2482))+def[i+(0xc0c+6679-0x2622)];i++;if(tmp==8364){
+gsm_default[k]=(0x624+3514-0x13c3);k++;gsm_default[k]=(0xed2+3984-0x1dfd);k++;}
+for(p=(0x653+4357-0x1758);p<s2;p++){if(tmp==Ucs2_To_Gsm7_SPANISH_Table_UCS[p][
+(0x1fb+2289-0xaeb)]){gsm_default[k]=Ucs2_To_Gsm7_SPANISH_Table_UCS[p][
+(0x1ab5+813-0x1de2)];break;}}}k++;}gsm_default[k]='\0';return k;}unsigned long
+zUfiSms_ConvertUcs2ToPortuguese(const unsigned char*def,unsigned char*
+gsm_default,unsigned long len){unsigned long i=(0x1b15+2145-0x2376);unsigned
+long k=(0x80a+3244-0x14b6);unsigned long p=(0x8b6+2229-0x116b);unsigned long tmp
+=(0xbea+629-0xe5f);unsigned long s1=(0x1a93+1407-0x2012),s2=(0x4e7+1278-0x9e5);
+unsigned long q=(0x67b+1011-0xa6e);s1=sizeof(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x14f5+1377-0x1a56)]);s2=sizeof(
Ucs2_To_Gsm7_PORTUGUESE_Table_UCS)/sizeof(Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[
-(0x11c2+1002-0x15ac)]);for(i=(0xd77+62-0xdb5);i<len;i++){if(def[i]==
-(0x9b0+4827-0x1c8b)){i++;if(Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]!=NON_GSM){
+(0x108a+4353-0x218b)]);for(i=(0x126+8943-0x2415);i<len;i++){if(def[i]==
+(0x19e6+793-0x1cff)){i++;if(Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]!=NON_GSM){
gsm_default[k]=Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]];k++;continue;}else if((
Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]==NON_GSM)&&(def[i]==
-(0x215+8205-0x2202))){gsm_default[k]=(0x5b1+5444-0x1ad5);k++;continue;}for(q=
-(0x17bd+1432-0x1d55);q<s1;q++){if(def[i]==
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x667+2481-0x1017)]){gsm_default[k]
-=(0x1bd0+2227-0x2468);k++;gsm_default[k]=
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x18d+7114-0x1d57)];break;}}}else{
-tmp=(def[i]<<(0x49b+3930-0x13ed))+def[i+(0x14c6+4351-0x25c4)];i++;if(tmp==8364){
-gsm_default[k]=(0x3ef+6068-0x1b88);k++;gsm_default[k]=(0x240+8676-0x23bf);k++;
-continue;}for(p=(0x1173+1068-0x159f);p<s2;p++){if(tmp==
-Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0xd4a+3110-0x196f)]){gsm_default[k]=
-Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x15b8+2987-0x2163)];break;}}}k++;}
-gsm_default[k]='\0';return k;}unsigned long zUfiSms_ConvertUcs2ToGsmDefault(
-const unsigned char*def,unsigned char*gsm_default,unsigned long len){unsigned
-long i=(0x1107+3374-0x1e35);unsigned long k=(0x1553+3869-0x2470);unsigned long p
-=(0xcd3+560-0xf03);unsigned long tmp=(0x1d75+2445-0x2702);unsigned long s1=
-(0x24f4+94-0x2552),s2=(0x2252+504-0x244a);unsigned long q=(0x719+2890-0x1263);s1
-=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x173c+104-0x17a4)]);s2=sizeof(
-UCS2_To_GSMDefault_Table_UCS2)/sizeof(UCS2_To_GSMDefault_Table_UCS2[
-(0xca+1961-0x873)]);for(i=(0xfec+1498-0x15c6);i<len;i++){if(def[i]==
-(0x18b4+1310-0x1dd2)){i++;if(UCS2_To_GSMDefault_Table_ASC[def[i]]!=NON_GSM){
-gsm_default[k]=UCS2_To_GSMDefault_Table_ASC[def[i]];k++;continue;}else if((
-UCS2_To_GSMDefault_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x1c21+948-0x1fb5))){
-gsm_default[k]=(0x170+3769-0x1009);k++;continue;}for(q=(0x1a5b+588-0x1ca7);q<s1;
-q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x11ba+3612-0x1fd5)]){
-gsm_default[k]=(0x10d7+4731-0x2337);k++;gsm_default[k]=
-zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0xe79+17-0xe8a)];break;}}}else{tmp=(def[
-i]<<(0x14a+6124-0x192e))+def[i+(0xcb1+2542-0x169e)];i++;if(tmp==
-(0x23e9+3040-0xf1d)){gsm_default[k]=(0x992+870-0xcdd);k++;gsm_default[k]=
-(0x26f+5136-0x161a);k++;continue;}for(p=(0x8b7+4019-0x186a);p<s2;p++){if(tmp==
-UCS2_To_GSMDefault_Table_UCS2[p][(0xf73+2939-0x1aed)]){gsm_default[k]=
-UCS2_To_GSMDefault_Table_UCS2[p][(0x253+5129-0x165c)];break;}}}k++;}gsm_default[
-k]='\0';return k;}UINT8 zUfiSms_TsIntToBcd(const UINT8 i){return(UINT8)(((i%
-(0x6c5+7260-0x2317))+((i/(0x1177+2891-0x1cb8))<<(0x1416+953-0x17cb))));}void
+(0xb2b+5988-0x226f))){gsm_default[k]=(0x639+5957-0x1d5e);k++;continue;}for(q=
+(0x1220+1116-0x167c);q<s1;q++){if(def[i]==
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0xff6+82-0x1047)]){gsm_default[k]=
+(0x445+1760-0xb0a);k++;gsm_default[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q
+][(0x113+172-0x1bf)];break;}}}else{tmp=(def[i]<<(0x932+7275-0x2595))+def[i+
+(0x793+6987-0x22dd)];i++;if(tmp==8364){gsm_default[k]=(0x1614+2455-0x1f90);k++;
+gsm_default[k]=(0x38b+1568-0x946);k++;continue;}for(p=(0x11a6+5168-0x25d6);p<s2;
+p++){if(tmp==Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x106+7145-0x1cee)]){
+gsm_default[k]=Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0xd2a+5067-0x20f5)];break;}
+}}k++;}gsm_default[k]='\0';return k;}unsigned long
+zUfiSms_ConvertUcs2ToGsmDefault(const unsigned char*def,unsigned char*
+gsm_default,unsigned long len){unsigned long i=(0x146d+4306-0x253f);unsigned
+long k=(0x1209+2678-0x1c7f);unsigned long p=(0xf47+5141-0x235c);unsigned long
+tmp=(0x805+6010-0x1f7f);unsigned long s1=(0x1ed+5159-0x1614),s2=
+(0x26a+9188-0x264e);unsigned long q=(0xb0b+3916-0x1a57);s1=sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[
+(0x1442+1737-0x1b0b)]);s2=sizeof(UCS2_To_GSMDefault_Table_UCS2)/sizeof(
+UCS2_To_GSMDefault_Table_UCS2[(0xf30+5933-0x265d)]);for(i=(0x1bc+4593-0x13ad);i<
+len;i++){if(def[i]==(0x571+4398-0x169f)){i++;if(UCS2_To_GSMDefault_Table_ASC[def
+[i]]!=NON_GSM){gsm_default[k]=UCS2_To_GSMDefault_Table_ASC[def[i]];k++;continue;
+}else if((UCS2_To_GSMDefault_Table_ASC[def[i]]==NON_GSM)&&(def[i]==
+(0xab9+3165-0x16f6))){gsm_default[k]=(0x180+3217-0xdf1);k++;continue;}for(q=
+(0x228+5630-0x1826);q<s1;q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][
+(0x2fa+5569-0x18ba)]){gsm_default[k]=(0x1c8c+1276-0x216d);k++;gsm_default[k]=
+zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0xbf6+3789-0x1ac3)];break;}}}else{tmp=(
+def[i]<<(0x12a+1103-0x571))+def[i+(0xa53+6699-0x247d)];i++;if(tmp==8364){
+gsm_default[k]=(0xad0+200-0xb7d);k++;gsm_default[k]=(0x90f+72-0x8f2);k++;
+continue;}for(p=(0x20cb+1460-0x267f);p<s2;p++){if(tmp==
+UCS2_To_GSMDefault_Table_UCS2[p][(0xe0+7105-0x1ca0)]){gsm_default[k]=
+UCS2_To_GSMDefault_Table_UCS2[p][(0x1a4c+1293-0x1f59)];break;}}}k++;}gsm_default
+[k]='\0';return k;}UINT8 zUfiSms_TsIntToBcd(const UINT8 i){return(UINT8)(((i%
+(0x1aaa+2066-0x22b2))+((i/(0x15cb+46-0x15ef))<<(0xbd7+862-0xf31))));}void
zUfiSms_DecodeRelativeTime(UINT8 iValidTime,T_zUfiSms_TimeStamp*ptTimeStamp){
-uint32 i=(0x1e6+4350-0x12e4);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
-(0x12b+351-0x28a),sizeof(wms_timestamp_s_type));if(iValidTime<
-(0xb64+1443-0x1077)){i=(iValidTime+(0x1be8+1832-0x230f))*(0x2385+846-0x26ce);
-ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0x160+6220-0x1970)));
-ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0xe6+2167-0x921)));}
-else if(iValidTime<(0x1d99+149-0x1d87)){i=(iValidTime-(0xdd+3406-0xd9c))*
-(0x6dd+2678-0x1135);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
-(0x10a2+3595-0x1ea1)+i/(0x38a+2275-0xc31)));ptTimeStamp->minute=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0x1c78+1828-0x2360)));}else if(iValidTime<
-(0x1bb9+1900-0x2260)){i=iValidTime-(0x1c4c+286-0x1cc4);ptTimeStamp->month=(UINT8
-)zUfiSms_TsIntToBcd((UINT8)(i/(0xb32+5403-0x202f)));ptTimeStamp->day=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0xeb9+2126-0x16e9)));}else{i=(iValidTime-
-(0x6fc+368-0x7ac))*(0x1d6c+2068-0x2579);ptTimeStamp->year=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i/(0x1644+3273-0x21a0)));ptTimeStamp->month=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)((i%(0x6d3+4429-0x16b3))/(0x6eb+4385-0x17ee)));
-ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0x1667+2423-0x1e71))%
-(0x57c+377-0x6d7)));}}else{printf(
+uint32 i=(0x179a+630-0x1a10);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
+(0xf11+2894-0x1a5f),sizeof(wms_timestamp_s_type));if(iValidTime<
+(0x325+6715-0x1cd0)){i=(iValidTime+(0x12ab+1513-0x1893))*(0x1cc2+16-0x1ccd);
+ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0x763+4726-0x199d)));
+ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0xee9+2546-0x189f)));}
+else if(iValidTime<(0xb6f+4180-0x1b1c)){i=(iValidTime-(0x1128+5279-0x2538))*
+(0x19d7+2639-0x2408);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
+(0x46b+8588-0x25eb)+i/(0xd0+2547-0xa87)));ptTimeStamp->minute=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0x10d0+5187-0x24d7)));}else if(iValidTime<
+(0xd99+2456-0x166c)){i=iValidTime-(0x1d95+1201-0x21a0);ptTimeStamp->month=(UINT8
+)zUfiSms_TsIntToBcd((UINT8)(i/(0x4f1+1307-0x9ee)));ptTimeStamp->day=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0x18c2+102-0x190a)));}else{i=(iValidTime-
+(0x1d8b+1264-0x21bb))*(0x1d78+581-0x1fb6);ptTimeStamp->year=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i/(0xf93+5093-0x220b)));ptTimeStamp->month=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)((i%(0x1758+1109-0x1a40))/(0x857+2024-0x1021)));
+ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0x974+3560-0x15ef))%
+(0x1a3f+1849-0x215a)));}}else{printf(
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x72\x65\x6c\x61\x74\x69\x76\x65\x5f\x74\x69\x6d\x65"
);}}int zUfiSms_CharToInt(char*pCharArray,int iLen,unsigned char*pIntArray){int
-i=(0x12d5+4029-0x2292);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}
-for(i=(0xbbf+1454-0x116d);i<iLen;i++){pIntArray[i]=pCharArray[i]-
-((char)(0xc42+688-0xec2));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
+i=(0x51b+3999-0x14ba);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}
+for(i=(0x497+8454-0x259d);i<iLen;i++){pIntArray[i]=pCharArray[i]-
+((char)(0x9fa+2737-0x147b));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
T_zUfiSms_SubmitTpdu*ptSubmit,T_zUfiSms_ConcatInfo*ptConcatSms,
-T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0xc75+218-0xd4f);if(ptConcatSms->
-total_msg>(0x1172+1651-0x17e4)){g_zUfiSms_SendingSms.TP_UDHI=(0x14da+838-0x181f)
-;g_zUfiSms_SendingSms.TP_UD[(0x18ff+535-0x1b16)]=(0xf3a+3310-0x1c23);
-g_zUfiSms_SendingSms.TP_UD[(0x18b5+271-0x19c3)]=(0x62d+7999-0x2567);
-g_zUfiSms_SendingSms.TP_UD[(0x16b2+2206-0x1f4e)]=(0x565+6964-0x2096);
-g_zUfiSms_SendingSms.TP_UD[(0x85d+5272-0x1cf2)]=(char)ptDbSaveData->concat_info[
-(0x1096+1378-0x15f8)]%(0xc5f+5605-0x2145);g_zUfiSms_SendingSms.TP_UD[
-(0x1454+27-0x146b)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
-(0x727+4681-0x196b)]=(char)ptConcatSms->current_sending+(0x178+1410-0x6f9);
-g_zUfiSms_SendingSms.TP_UD[(0x4e8+8514-0x2624)]=(0x132c+2639-0x1d75);for(i=
-(0x90d+864-0xc6d);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD[i
-+(0x11a+4465-0x1284)]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.
-TP_UDLength=ptSubmit->user_data.sm_len+(0x67a+5009-0x1a04);}else{for(i=
-(0x54+7575-0x1deb);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD[
-i]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.TP_UDLength=ptSubmit->
+T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0x832+2725-0x12d7);if(ptConcatSms->
+total_msg>(0x6d0+7847-0x2576)){g_zUfiSms_SendingSms.TP_UDHI=(0x1d1d+656-0x1fac);
+g_zUfiSms_SendingSms.TP_UD[(0x355+1089-0x796)]=(0x636+611-0x894);
+g_zUfiSms_SendingSms.TP_UD[(0x1d6b+1480-0x2332)]=(0x5ca+6833-0x2076);
+g_zUfiSms_SendingSms.TP_UD[(0x151a+30-0x1536)]=(0x2039+1599-0x2675);
+g_zUfiSms_SendingSms.TP_UD[(0x616+2364-0xf4f)]=(char)ptDbSaveData->concat_info[
+(0x223+3952-0x1193)]%(0x1e73+1608-0x23bc);g_zUfiSms_SendingSms.TP_UD[
+(0x75b+2337-0x1078)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
+(0x63b+1576-0xc5e)]=(char)ptConcatSms->current_sending+(0x1af9+2002-0x22ca);
+g_zUfiSms_SendingSms.TP_UD[(0x53+6231-0x18a4)]=(0x1e21+1473-0x23dc);for(i=
+(0xf8d+4681-0x21d6);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD
+[i+(0x1f5+5463-0x1745)]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.
+TP_UDLength=ptSubmit->user_data.sm_len+(0x196+6308-0x1a33);}else{for(i=
+(0xb43+6871-0x261a);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD
+[i]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.TP_UDLength=ptSubmit->
user_data.sm_len;}}void zUfiSms_FillGlobalTpudUcs2(T_zUfiSms_SubmitTpdu*ptSubmit
,T_zUfiSms_ConcatInfo*ptConcatSms,T_zUfiSms_DbStoreData*ptDbSaveData){if(
-ptConcatSms->total_msg>(0x91a+4940-0x1c65)){g_zUfiSms_SendingSms.TP_UDHI=
-(0x10a5+2871-0x1bdb);g_zUfiSms_SendingSms.TP_UD[(0x3ea+8100-0x238e)]=
-(0x6c6+6654-0x20bf);g_zUfiSms_SendingSms.TP_UD[(0x1292+3316-0x1f85)]=
-(0x7b6+1396-0xd25);g_zUfiSms_SendingSms.TP_UD[(0xc56+3354-0x196e)]=
-(0x225f+665-0x24f5);g_zUfiSms_SendingSms.TP_UD[(0x1631+3563-0x2419)]=(char)
-ptDbSaveData->concat_info[(0xbb0+1604-0x11f4)]%(0xb4f+2745-0x1509);
-g_zUfiSms_SendingSms.TP_UD[(0xe12+4506-0x1fa8)]=(char)ptConcatSms->total_msg;
-g_zUfiSms_SendingSms.TP_UD[(0x22f2+748-0x25d9)]=(char)ptConcatSms->
-current_sending+(0x7b5+5073-0x1b85);(void)Bytes2String(ptSubmit->user_data.
-sm_data,&g_zUfiSms_SendingSms.TP_UD[(0xcf9+1892-0x1457)],ptSubmit->user_data.
-sm_len);}else{(void)Bytes2String(ptSubmit->user_data.sm_data,
-g_zUfiSms_SendingSms.TP_UD,ptSubmit->user_data.sm_len);}}unsigned char
-zUfiSms_Low2High(unsigned char x){if(x>=((char)(0x569+3151-0x1157))&&x<
-((char)(0x45f+6696-0x1e20))){x=(x-((char)(0xdb4+2822-0x1859)))+
-((char)(0xa5+4619-0x126f));}return x;}unsigned char zUfiSms_Char2Dec(unsigned
-char x){unsigned char d=(0x1ce4+1804-0x23f0);if(x>=((char)(0xbcb+535-0xda1))&&x<
-((char)(0x4ef+2652-0xf04))){d=(x-((char)(0xc93+5505-0x21d3)))+
-(0x1b9d+1612-0x21df);}else{d=x-((char)(0x671+6328-0x1ef9));}return d;}unsigned
-char zUfiSms_Char2Byte(unsigned char a,unsigned char b){unsigned char data=
-(0x147a+160-0x151a);unsigned char l=(0x3f2+3095-0x1009),h=(0x1103+1991-0x18ca);a
-=zUfiSms_Low2High(a);b=zUfiSms_Low2High(b);h=zUfiSms_Char2Dec(a);l=
-zUfiSms_Char2Dec(b);data=h*(0xe00+3092-0x1a04)+l;return data;}void
-zUfiSms_Str2Bytes(unsigned char*text,int text_len,unsigned char*data,int
-data_len){int i=(0x1ca+1077-0x5ff);while((0x1c6f+1199-0x211c)*i+
-(0xd19+5867-0x2403)<text_len){data[i]=zUfiSms_Char2Byte(text[(0xd3+3962-0x104b)*
-i],text[(0x1c8c+1682-0x231c)*i+(0x202f+452-0x21f2)]);i++;}}int
-zUfiSms_SplitString(char*input,char***output,char cMatchChar){int src=
-(0x17c4+3757-0x2671);int dst=(0x118a+3850-0x2094);int count=(0x2258+840-0x25a0);
-int size=(0x125+4277-0x11d2);char quoted=(0x96f+1346-0xeb1);char**tmpout=NULL;*
+ptConcatSms->total_msg>(0x75a+1181-0xbf6)){g_zUfiSms_SendingSms.TP_UDHI=
+(0x9a+2029-0x886);g_zUfiSms_SendingSms.TP_UD[(0x1031+1612-0x167d)]=
+(0x122+856-0x475);g_zUfiSms_SendingSms.TP_UD[(0x1c9b+1-0x1c9b)]=
+(0x761+4285-0x1819);g_zUfiSms_SendingSms.TP_UD[(0x6ab+1004-0xa95)]=
+(0xf49+3328-0x1c46);g_zUfiSms_SendingSms.TP_UD[(0xfa7+3153-0x1bf5)]=(char)
+ptDbSaveData->concat_info[(0x11fa+2585-0x1c13)]%(0x867+1260-0xc54);
+g_zUfiSms_SendingSms.TP_UD[(0x15b5+3921-0x2502)]=(char)ptConcatSms->total_msg;
+g_zUfiSms_SendingSms.TP_UD[(0x1a54+3249-0x2700)]=(char)ptConcatSms->
+current_sending+(0xc5+3553-0xea5);(void)Bytes2String(ptSubmit->user_data.sm_data
+,&g_zUfiSms_SendingSms.TP_UD[(0x307+6447-0x1c30)],ptSubmit->user_data.sm_len);}
+else{(void)Bytes2String(ptSubmit->user_data.sm_data,g_zUfiSms_SendingSms.TP_UD,
+ptSubmit->user_data.sm_len);}}unsigned char zUfiSms_Low2High(unsigned char x){if
+(x>=((char)(0x64a+6469-0x1f2e))&&x<((char)(0xa95+5185-0x1e6f))){x=(x-
+((char)(0x2e9+420-0x42c)))+((char)(0x1f16+1310-0x23f3));}return x;}unsigned char
+ zUfiSms_Char2Dec(unsigned char x){unsigned char d=(0x9e3+4492-0x1b6f);if(x>=
+((char)(0xb1b+6155-0x22e5))&&x<((char)(0x1ca+6536-0x1b0b))){d=(x-
+((char)(0xb1c+192-0xb9b)))+(0xe81+1359-0x13c6);}else{d=x-
+((char)(0xf2+4759-0x1359));}return d;}unsigned char zUfiSms_Char2Byte(unsigned
+char a,unsigned char b){unsigned char data=(0x16c2+3046-0x22a8);unsigned char l=
+(0x11c3+2078-0x19e1),h=(0xb61+5564-0x211d);a=zUfiSms_Low2High(a);b=
+zUfiSms_Low2High(b);h=zUfiSms_Char2Dec(a);l=zUfiSms_Char2Dec(b);data=h*
+(0x307+4102-0x12fd)+l;return data;}void zUfiSms_Str2Bytes(unsigned char*text,int
+ text_len,unsigned char*data,int data_len){int i=(0x1a3+308-0x2d7);while(
+(0x13b7+4288-0x2475)*i+(0x30f+7412-0x2002)<text_len){data[i]=zUfiSms_Char2Byte(
+text[(0x526+7142-0x210a)*i],text[(0x1a34+2336-0x2352)*i+(0x21cf+510-0x23cc)]);i
+++;}}int zUfiSms_SplitString(char*input,char***output,char cMatchChar){int src=
+(0x92d+540-0xb49);int dst=(0x1c40+968-0x2008);int count=(0x188+727-0x45f);int
+size=(0x1170+1761-0x1849);char quoted=(0x155+4502-0x12eb);char**tmpout=NULL;*
output=(char**)malloc(sizeof(char*)*size);if(NULL==*output){return-
-(0x587+5852-0x1c62);}(*output)[count++]=input;for(src=dst=(0xd68+1996-0x1534);
+(0x1c24+53-0x1c58);}(*output)[count++]=input;for(src=dst=(0x6bc+4808-0x1984);
input[src];){char cInputChar=input[src];if(!quoted&&cInputChar==cMatchChar){
-input[dst++]=(0xa3f+3712-0x18bf);while(input[++src]&&(int)isspace(input[src])){}
-;if(count>=size){size+=(0x55+6469-0x198a);tmpout=(char**)realloc(*output,sizeof(
-char*)*size);if(NULL==tmpout){return-(0x16f9+886-0x1a6e);}*output=tmpout;}(*
+input[dst++]=(0x94d+6770-0x23bf);while(input[++src]&&(int)isspace(input[src])){}
+;if(count>=size){size+=(0xe4b+1159-0x12c2);tmpout=(char**)realloc(*output,sizeof
+(char*)*size);if(NULL==tmpout){return-(0x13e5+2492-0x1da0);}*output=tmpout;}(*
output)[count++]=input+dst;}else if(!quoted&&(cInputChar=='\''||cInputChar==
-((char)(0x30b+9103-0x2678)))){quoted=cInputChar;src++;}else if(cInputChar==
-quoted){quoted=(0x135f+2246-0x1c25);src++;}else{if(cInputChar=='\\'&"ed!=
-'\''){src++;cInputChar=input[src];if(!cInputChar){free(*output);*output=NULL;
-return-(0xcd1+1366-0x1226);}}input[dst++]=cInputChar;src++;}}input[dst]=
-(0x11a0+1409-0x1721);if(quoted){free(*output);*output=NULL;return-
-(0x584+738-0x865);}return count;}int zUfiSms_atohex(char c){int result=
-(0x332+6158-0x1b40);if(c>=((char)(0x65f+3948-0x159b))&&c<=
-((char)(0x1c47+570-0x1e48))){result=c-((char)(0x97a+4556-0x1b16));}else if(c>=
-((char)(0x13c9+4659-0x259b))&&c<=((char)(0x2eb+4685-0x14d2))){result=(c-
-((char)(0x845+2304-0x10e4)))+(0x2ca+7517-0x201d);}else if(c>=
-((char)(0xd28+3884-0x1c13))&&c<=((char)(0x1ab1+604-0x1cc7))){result=(c-
-((char)(0x1d66+2038-0x251b)))+(0x639+5488-0x1b9f);}else{at_print(LOG_DEBUG,
+((char)(0x392+245-0x465)))){quoted=cInputChar;src++;}else if(cInputChar==quoted)
+{quoted=(0xdf2+1130-0x125c);src++;}else{if(cInputChar=='\\'&"ed!='\''){src++
+;cInputChar=input[src];if(!cInputChar){free(*output);*output=NULL;return-
+(0x1ee4+1021-0x22e0);}}input[dst++]=cInputChar;src++;}}input[dst]=
+(0x903+6833-0x23b4);if(quoted){free(*output);*output=NULL;return-
+(0x1843+1103-0x1c91);}return count;}int zUfiSms_atohex(char c){int result=
+(0x39b+7309-0x2028);if(c>=((char)(0xe59+3600-0x1c39))&&c<=
+((char)(0x9fa+6763-0x242c))){result=c-((char)(0x115a+3408-0x1e7a));}else if(c>=
+((char)(0x136b+1386-0x1874))&&c<=((char)(0x1963+179-0x19b0))){result=(c-
+((char)(0x1322+2209-0x1b62)))+(0x664+7610-0x2414);}else if(c>=
+((char)(0xafc+2204-0x1357))&&c<=((char)(0x62b+2967-0x117c))){result=(c-
+((char)(0x1aa9+1271-0x1f5f)))+(0x1373+3223-0x2000);}else{at_print(LOG_DEBUG,
"\x7a\x55\x66\x69\x53\x6d\x73\x5f\x61\x74\x6f\x68\x65\x78\x20\x65\x72\x72\x6f\x72\x2c\x63\x61\x6e\x20\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x63\x68\x61\x72\x3a\x25\x63" "\n"
,c);return result;}return result;}int zUfiSms_DispatchWtoi(unsigned char*in_ptr,
-int iLength,unsigned char*out_ptr){int low=(0x1152+5326-0x2620);int high=
-(0x18ad+711-0x1b74);if(in_ptr==NULL||out_ptr==NULL){printf(
+int iLength,unsigned char*out_ptr){int low=(0xf66+4058-0x1f40);int high=
+(0x25c+587-0x4a7);if(in_ptr==NULL||out_ptr==NULL){printf(
"\x73\x6d\x73\x3a\x69\x6e\x76\x61\x69\x6c\x64\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72" "\n"
-);return ZUFI_FAIL;}while(iLength>(0x819+6771-0x228c)){low=in_ptr[iLength-
-(0x284+126-0x301)]&(0x1c4f+373-0x1db5);high=(in_ptr[iLength-(0x149a+3082-0x20a3)
-]&(0xa36+2658-0x13a8))>>(0x8f9+5072-0x1cc5);out_ptr[(0xd1d+5177-0x2154)*iLength-
-(0xac+2311-0x9b2)]=g_zUfiSms_DigAscMap[low];out_ptr[(0x1527+1283-0x1a28)*iLength
--(0x19c+3977-0x1123)]=g_zUfiSms_DigAscMap[high];iLength--;}return ZUFI_SUCC;}
-unsigned int zte_wms_convert_PORTUGUESE_To_UCS2(const unsigned char*gsmdef,
-unsigned char*ucs2,unsigned int len){unsigned int i=(0x17e2+54-0x1818);unsigned
-int j=(0x889+7035-0x2404);unsigned int k=(0xcc5+5294-0x2173);unsigned int p=
-(0x2b5+4319-0x1394);unsigned int s=(0x15f8+3914-0x2542);s=sizeof(
+);return ZUFI_FAIL;}while(iLength>(0x1043+3685-0x1ea8)){low=in_ptr[iLength-
+(0x5e9+4219-0x1663)]&(0x1496+2057-0x1c90);high=(in_ptr[iLength-
+(0x13d9+4549-0x259d)]&(0x2691+68-0x25e5))>>(0x1389+3234-0x2027);out_ptr[
+(0x917+3886-0x1843)*iLength-(0x20f0+1511-0x26d6)]=g_zUfiSms_DigAscMap[low];
+out_ptr[(0x1261+1792-0x195f)*iLength-(0xf26+2277-0x1809)]=g_zUfiSms_DigAscMap[
+high];iLength--;}return ZUFI_SUCC;}unsigned int
+zte_wms_convert_PORTUGUESE_To_UCS2(const unsigned char*gsmdef,unsigned char*ucs2
+,unsigned int len){unsigned int i=(0xa24+2558-0x1422);unsigned int j=
+(0x91c+4684-0x1b68);unsigned int k=(0x2f5+3328-0xff5);unsigned int p=
+(0x3ca+6969-0x1f03);unsigned int s=(0x1d6+6574-0x1b84);s=sizeof(
zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0xef7+5699-0x253a)]);for(i=
-(0x3c7+4873-0x16d0);i<len;i++){j=gsmdef[i];if(j==(0xf8f+1941-0x1709)){i++;for(p=
-(0x1f8+3319-0xeef);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
-(0x444+823-0x77b)]==gsmdef[i]){ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[
-p][(0x23f+4220-0x12ba)]>>(0x432+4420-0x156e);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0xe74+6050-0x2615)]);break;}}}else{
-ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0xd3c+1817-0x144d);k++;ucs2[k
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x683+4962-0x19e5)]);for(i=
+(0x3b3+6643-0x1da6);i<len;i++){j=gsmdef[i];if(j==(0x1589+2758-0x2034)){i++;for(p
+=(0x1726+1266-0x1c18);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
+(0xcd2+3784-0x1b9a)]==gsmdef[i]){ucs2[k]=
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x2ef+7562-0x2078)]>>
+(0x1730+835-0x1a6b);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x107b+2419-0x19ed)]);break;}}}else
+{ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x436+1589-0xa63);k++;ucs2[k
]=(unsigned char)(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]);}k++;}ucs2[k]='\0';
return k;}unsigned int zte_wms_convert_PORTUGUESE_To_UCS2_USE_GSM7_SS_PORTU_LS(
const unsigned char*gsmdef,unsigned char*ucs2,unsigned int len){unsigned int i=
-(0x1e36+264-0x1f3e);unsigned int j=(0xf4f+2876-0x1a8b);unsigned int k=
-(0x1216+3989-0x21ab);unsigned int p=(0x8c8+1399-0xe3f);unsigned int s=
-(0x5cb+1418-0xb55);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x2149+1169-0x25da)]);for(i=
-(0x11dd+4640-0x23fd);i<len;i++){j=gsmdef[i];if(j==(0x171+184-0x20e)){i++;for(p=
-(0x2ac+2474-0xc56);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0xbfa+4953-0x1f53)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x8d3+2075-0x10ed)]>>(0x8a5+7129-0x2476);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x882+7107-0x2444)]);break;}}}else{ucs2[
-k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x88+5466-0x15da);k++;ucs2[k]=(
+(0x1781+2898-0x22d3);unsigned int j=(0x1087+4669-0x22c4);unsigned int k=
+(0x1028+2341-0x194d);unsigned int p=(0x26c+1444-0x810);unsigned int s=
+(0x9f7+5021-0x1d94);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x82d+7203-0x2450)]);for(i=
+(0x2b4+3650-0x10f6);i<len;i++){j=gsmdef[i];if(j==(0x14c0+3231-0x2144)){i++;for(p
+=(0xf26+4430-0x2074);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x1aac+3075-0x26af)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p]
+[(0x8fa+7687-0x2700)]>>(0x568+1092-0x9a4);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x11a2+1173-0x1636)]);break;}}}else{ucs2
+[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x1bc2+2477-0x2567);k++;ucs2[k]=(
unsigned char)(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]);}k++;}ucs2[k]='\0';
return k;}unsigned long zte_wms_convert_GSMDefault_to_UCS2(const unsigned char*
-gsmdef,unsigned char*ucs2,unsigned long len){unsigned long i=(0x1617+295-0x173e)
-;unsigned long j=(0x15dd+4385-0x26fe);unsigned long k=(0x51+3993-0xfea);unsigned
- long p=(0x2454+612-0x26b8);unsigned long s=(0x397+5709-0x19e4);unsigned long
-is_find=(0x10f6+243-0x11e9);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof
-(zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x462+8629-0x2617)]);for(i=
-(0x1da4+1881-0x24fd);i<len;i++){j=gsmdef[i];if(j==(0x293+4202-0x12e2)){i++;for(p
-=(0x26d7+15-0x26e6);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0xccc+5546-0x2276)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x1805+1803-0x1f0f)]>>(0x466+4320-0x153e);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x12ed+2605-0x1d19)]);is_find=
-(0x19ec+3102-0x2609);break;}}if(!is_find){at_print(LOG_DEBUG,
+gsmdef,unsigned char*ucs2,unsigned long len){unsigned long i=(0x406+4588-0x15f2)
+;unsigned long j=(0xa14+81-0xa65);unsigned long k=(0xea4+4692-0x20f8);unsigned
+long p=(0xbdd+1370-0x1137);unsigned long s=(0x14c4+1390-0x1a32);unsigned long
+is_find=(0x19af+2917-0x2514);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/
+sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x30d+3813-0x11f2)]);for(i=
+(0x13f+2769-0xc10);i<len;i++){j=gsmdef[i];if(j==(0x1495+4566-0x2650)){i++;for(p=
+(0x36d+391-0x4f4);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x4a2+146-0x534)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x1f8+4163-0x123a)]>>(0xb47+540-0xd5b);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0xf9+8755-0x232b)]);is_find=
+(0x5ff+7808-0x247e);break;}}if(!is_find){at_print(LOG_DEBUG,
"\x73\x6d\x73\x3a\x20\x64\x61\x74\x61\x20\x3d\x20\x25\x64\x20\x6e\x6f\x74\x20\x66\x69\x6e\x64\x20\x69\x6e\x20\x67\x73\x6d\x64\x65\x66\x61\x75\x6c\x74\x20\x65\x78\x74\x65\x6e\x73\x69\x6f\x6e\x20\x74\x61\x62\x6c\x65" "\n"
-,gsmdef[i]);i--;ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x1c4+4850-0x14ae)
-;k++;ucs2[k]=(unsigned char)(zte_sms_GSMDefault_To_UCS2_Table[j]);}}else{ucs2[k]
-=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x267+2933-0xdd4);k++;ucs2[k]=(unsigned
+,gsmdef[i]);i--;ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table[j]>>
+(0x13e1+1227-0x18a4);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table[j]);}}else{ucs2[k]=
+zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x1d9c+71-0x1ddb);k++;ucs2[k]=(unsigned
char)(zte_sms_GSMDefault_To_UCS2_Table[j]);}k++;}ucs2[k]='\0';return k;}void
zUfiSms_ConvertUcs2(char*data,UINT16 sms_len,char*out_content){char
-ascii_content[(0x83d+3797-0x1710)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
-(0xbeb+6584-0x25a2)]={(0x33c+3546-0x1116)};UINT16 len=(0xf7+838-0x43d);switch(
+ascii_content[(0x2d5+6586-0x1c8d)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
+(0x1f3+288-0x312)]={(0x1fc8+84-0x201c)};UINT16 len=(0xd7f+5945-0x24b8);switch(
g_zUfiSms_Language){case DCS_PORTUGUESE:if(g_zUfiSms_IsLanguageShift==
WMS_UDH_NAT_LANG_SS){len=zte_wms_convert_PORTUGUESE_To_UCS2((const UINT8*)data,(
UINT8*)ascii_content,sms_len);}else if(g_zUfiSms_IsLanguageShift==
@@ -668,47 +668,47 @@
sms_len);break;}(void)zUfiSms_DispatchWtoi((char*)ascii_content,len,(char*)
out_content);}boolean zUfiSms_DecodeContent(char*msg_content,UINT16 sms_len,
boolean isEsc,char*out_content){boolean endEsc=FALSE;char*p=NULL;static char
-data[(0x69c+514-0x89d)+(0x2f5+1858-0x997)+(0x1249+2692-0x1ccc)]={
-(0x1c3d+1719-0x22f4)};int len=(0x63+5757-0x16e0);if(msg_content==NULL||
-out_content==NULL||sms_len>(0x149d+1954-0x1aff)||sms_len<(0x458+1351-0x99d)){
-return endEsc;}len=sms_len;memset(data,(0x1909+286-0x1a27),(0x93b+5055-0x1c58));
-p=data;if(isEsc){*p=(0x45a+6890-0x1f29);p++;}zUfiSms_Str2Bytes((unsigned char*)
-msg_content,len,(unsigned char*)p,(0x1950+2694-0x2336));if(p[len/
-(0xfa9+3691-0x1e12)-(0x349+2322-0xc5a)]==(0xe6a+4434-0x1fa1)){endEsc=TRUE;}
-zUfiSms_ConvertUcs2(data,len/(0xc72+4557-0x1e3d)+(isEsc?(0x9d8+2727-0x147e):
-(0x1131+1030-0x1537))-(endEsc?(0x151d+2668-0x1f88):(0x848+7352-0x2500)),
+data[(0x23a+6812-0x1cd5)+(0x6f5+5684-0x1c89)+(0x1276+1774-0x1963)]={
+(0x1d8+5381-0x16dd)};int len=(0x366+935-0x70d);if(msg_content==NULL||out_content
+==NULL||sms_len>(0xe74+3665-0x1b85)||sms_len<(0x1a5a+1635-0x20bb)){return endEsc
+;}len=sms_len;memset(data,(0x318+8426-0x2402),(0x533+6004-0x1c05));p=data;if(
+isEsc){*p=(0x1e08+1776-0x24dd);p++;}zUfiSms_Str2Bytes((unsigned char*)
+msg_content,len,(unsigned char*)p,(0x3dd+471-0x514));if(p[len/
+(0xae9+5027-0x1e8a)-(0x917+6354-0x21e8)]==(0x63b+2512-0xff0)){endEsc=TRUE;}
+zUfiSms_ConvertUcs2(data,len/(0x1480+2707-0x1f11)+(isEsc?(0x5ca+7702-0x23df):
+(0x1679+1713-0x1d2a))-(endEsc?(0x11e7+1898-0x1950):(0x105a+1010-0x144c)),
out_content);return endEsc;}byte*zUfiSms_SmsiUtilitoa(uint32 v,byte*s,UINT16 r){
-byte buf[(0x403+8579-0x2565)],c;int n;n=sizeof(buf)-(0x6a+1083-0x4a4);buf[n]=
-'\0';do{c=(byte)(v%r);if(n<=(0x9a+5727-0x16f9)){printf(
+byte buf[(0x217+8644-0x23ba)],c;int n;n=sizeof(buf)-(0x1b5+4369-0x12c5);buf[n]=
+'\0';do{c=(byte)(v%r);if(n<=(0x473+4537-0x162c)){printf(
"\x4f\x56\x45\x52\x46\x4c\x4f\x57\x20");break;}buf[--n]=(byte)((c>
-(0xa78+3046-0x1655))?c+((char)(0x106+9117-0x2462))-(0x161b+838-0x1957):c+
-((char)(0x1058+2394-0x1982)));}while((v/=r)>(0x6b1+7013-0x2216));while((*s++=buf
-[n++])!=(0x396+1656-0xa0e));return(s-(0x331+2638-0xd7e));}byte*
+(0x5b1+8501-0x26dd))?c+((char)(0x215+2052-0x9d8))-(0x1832+1371-0x1d83):c+
+((char)(0x1af7+1047-0x1ede)));}while((v/=r)>(0x88+1447-0x62f));while((*s++=buf[n
+++])!=(0x20d0+816-0x2400));return(s-(0xdf5+3017-0x19bd));}byte*
zUfiSms_SmsiAddrToStr(wms_address_s_type addr,byte*res_ptr,UINT8*type_of_addr){
-byte bcd_idx=(0x4b7+7244-0x2103);UINT8 temp=(0x844+5563-0x1dff);*type_of_addr=
-(0xee2+1552-0x14f2);temp=(UINT8)((uint32)addr.number_type&(0x2108+671-0x23a0));*
-type_of_addr=(UINT8)((*type_of_addr|temp)<<(0x478+6365-0x1d51));temp=(UINT8)((
-uint32)addr.number_plan&(0x306+9226-0x2709));*type_of_addr=*type_of_addr|temp;*
-type_of_addr=*type_of_addr|(0x1694+1386-0x1b7e);while(bcd_idx<addr.
-number_of_digits){if(addr.digits[bcd_idx]==(0xd5f+3189-0x19ca)){addr.digits[
-bcd_idx]=(0xc23+4522-0x1dcd);}res_ptr=zUfiSms_SmsiUtilitoa((uint32)addr.digits[
-bcd_idx],res_ptr,(0x533+4077-0x1510));bcd_idx++;}return res_ptr;}byte*
+byte bcd_idx=(0x755+7435-0x2460);UINT8 temp=(0x1f23+1898-0x268d);*type_of_addr=
+(0x2201+265-0x230a);temp=(UINT8)((uint32)addr.number_type&(0x1a9+1232-0x672));*
+type_of_addr=(UINT8)((*type_of_addr|temp)<<(0x2ac+8756-0x24dc));temp=(UINT8)((
+uint32)addr.number_plan&(0x18d4+3212-0x2559));*type_of_addr=*type_of_addr|temp;*
+type_of_addr=*type_of_addr|(0x13c+3411-0xe0f);while(bcd_idx<addr.
+number_of_digits){if(addr.digits[bcd_idx]==(0x553+1655-0xbc0)){addr.digits[
+bcd_idx]=(0x74b+209-0x81c);}res_ptr=zUfiSms_SmsiUtilitoa((uint32)addr.digits[
+bcd_idx],res_ptr,(0x15b3+4092-0x259f));bcd_idx++;}return res_ptr;}byte*
zUfiSms_SmsiUtilitoaFill(word v,byte*rb_ptr){int n;byte c,*ptr;ptr=rb_ptr+
-(0xd48+3337-0x1a4f);*ptr='\0';for(n=(0x205+2344-0xb2d);n<(0x206+7726-0x2032);++n
-){c=(byte)(v%(0x51c+7446-0x2228));v/=(0x8fa+3512-0x16a8);*--ptr=(c+
-((char)(0x1b92+1778-0x2254)));}return rb_ptr+(0x31a+8819-0x258b);}void
-zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<(0x1c73+1458-0x221b)){
+(0xac5+2111-0x1302);*ptr='\0';for(n=(0x239d+505-0x2596);n<(0x1a9d+843-0x1de6);++
+n){c=(byte)(v%(0xd5+9623-0x2662));v/=(0x15cd+2487-0x1f7a);*--ptr=(c+
+((char)(0x1395+3564-0x2151)));}return rb_ptr+(0xc57+5827-0x2318);}void
+zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<(0x1596+137-0x1615)){
snprintf(str_time,len,"\x30\x25\x78",t);}else{snprintf(str_time,len,"\x25\x78",t
);}}static void zUfiSms_ParseDeliverConcat8(T_zUfiSms_UdhConcat8*concat_8,
-T_zUfiSms_DbStoreData*db_data){int mux=(0x6dc+7182-0x22ea);concat_8->seq_num--;
+T_zUfiSms_DbStoreData*db_data){int mux=(0x1906+1840-0x2036);concat_8->seq_num--;
if(concat_8->total_sm>ZTE_WMS_CONCAT_SMS_COUNT_MAX){mux=(concat_8->seq_num-
concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX)/ZTE_WMS_CONCAT_SMS_COUNT_MAX;}
-db_data->concat_sms=(0x534+5820-0x1bef);db_data->concat_info[
-(0x18a0+2496-0x2260)]=(0xf41+2361-0x177b)*mux+concat_8->msg_ref;db_data->
-concat_info[(0x1185+4905-0x24ac)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX
-+(0x625+1096-0xa6c);db_data->concat_info[(0xe3c+5363-0x232e)]=concat_8->total_sm
--ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
-(0x33b+1041-0x74b)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(concat_8->total_sm%
+db_data->concat_sms=(0xb6c+5908-0x227f);db_data->concat_info[(0xfc1+1555-0x15d4)
+]=(0x227+3971-0x10ab)*mux+concat_8->msg_ref;db_data->concat_info[
+(0x127a+4333-0x2365)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX+
+(0x1447+2098-0x1c78);db_data->concat_info[(0x11a6+5339-0x2680)]=concat_8->
+total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
+(0x515+1205-0x9c9)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(concat_8->total_sm%
ZTE_WMS_CONCAT_SMS_COUNT_MAX);}static void zUfiSms_ParserLangSs(wms_udh_s_type*
user_data_header){if(user_data_header==NULL){return;}switch(user_data_header->u.
nat_lang_ss.nat_lang_id){case WMS_UDH_NAT_LANG_PORTUGUESE:g_zUfiSms_Language=
@@ -717,27 +717,27 @@
user_data_header->u.nat_lang_ss.nat_lang_id){case WMS_UDH_NAT_LANG_PORTUGUESE:
g_zUfiSms_Language=DCS_PORTUGUESE;break;default:break;}}static void
zUfiSms_ParseDeliverConcat16(T_zUfiSms_UdhConcat16*concat_16,
-T_zUfiSms_DbStoreData*db_data){int mux=(0x30+901-0x3b5);concat_16->seq_num--;
-db_data->concat_sms=(0x1862+2737-0x2312);
-#if (0xd85+2316-0x1691)
-db_data->concat_info[(0x90b+1414-0xe91)]=concat_16->msg_ref;db_data->concat_info
-[(0x554+3200-0x11d3)]=concat_16->total_sm;db_data->concat_info[
-(0x3f9+1102-0x845)]=concat_16->seq_num;
+T_zUfiSms_DbStoreData*db_data){int mux=(0x1961+918-0x1cf7);concat_16->seq_num--;
+db_data->concat_sms=(0xf36+3642-0x1d6f);
+#if (0xae2+1720-0x119a)
+db_data->concat_info[(0x1c72+2588-0x268e)]=concat_16->msg_ref;db_data->
+concat_info[(0x351+1421-0x8dd)]=concat_16->total_sm;db_data->concat_info[
+(0x1a34+1854-0x2170)]=concat_16->seq_num;
#endif
if(concat_16->total_sm>ZTE_WMS_CONCAT_SMS_COUNT_MAX){mux=(concat_16->seq_num-
concat_16->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX)/ZTE_WMS_CONCAT_SMS_COUNT_MAX;}
-db_data->concat_info[(0x1764+255-0x1863)]=(0xda1+5895-0x23a9)*mux+concat_16->
-msg_ref;db_data->concat_info[(0xa2f+3874-0x194f)]=concat_16->seq_num%
-ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x1dd+3420-0xf38);db_data->concat_info[
-(0x4c+6658-0x1a4d)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
-ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0x1333+1071-0x1761)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(
+db_data->concat_info[(0xd84+3928-0x1cdc)]=(0x437+4471-0x14af)*mux+concat_16->
+msg_ref;db_data->concat_info[(0x1210+936-0x15b6)]=concat_16->seq_num%
+ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x9c2+284-0xadd);db_data->concat_info[
+(0x515+4677-0x1759)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
+ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0x241+8522-0x238a)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(
concat_16->total_sm%ZTE_WMS_CONCAT_SMS_COUNT_MAX);}static int
zUfiSms_ParseUdhiData(T_zUfiSms_Udh*user_data_header,T_zUfiSms_DbStoreData*
db_data){if(NULL==user_data_header||NULL==db_data){printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73\x2e");return ZUFI_FAIL
;}switch(user_data_header->header_id){case WMS_UDH_CONCAT_8:db_data->concat_sms=
-(0x14ed+381-0x1669);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8),
-db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0x16f9+496-0x18e8);
+(0x1cd6+703-0x1f94);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8),
+db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0x9f3+3943-0x1959);
zUfiSms_ParseDeliverConcat16(&(user_data_header->u.concat_16),db_data);break;
case WMS_UDH_NAT_LANG_SS:g_zUfiSms_IsLanguageShift=WMS_UDH_NAT_LANG_SS;
zUfiSms_ParserLangSs(user_data_header);break;case WMS_UDH_NAT_LANG_LS:
@@ -747,155 +747,157 @@
);break;}return ZUFI_SUCC;}int zUfiSms_FormatDeliverDbdata(
T_zUfiSms_ClientTsData*ts_data_ptr,T_zUfiSms_DbStoreData*db_data){int result=
ZUFI_SUCC;wms_address_s_type*address_ptr=NULL;wms_gw_alphabet_e_type tp_dcs=
-WMS_GW_ALPHABET_MAX32;int i=(0x1c6+4131-0x11e9);int ind=(0x244a+80-0x249a);if((
+WMS_GW_ALPHABET_MAX32;int i=(0x12c1+688-0x1571);int ind=(0xd79+3074-0x197b);if((
NULL==ts_data_ptr)||(NULL==db_data)){printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73\x2e");return ZUFI_FAIL
;}address_ptr=&(ts_data_ptr->u.gw_pp.u.deliver.address);if(
WMS_NUMBER_INTERNATIONAL==address_ptr->number_type){memset(db_data->number,
-(0x418+5105-0x1809),ZTE_WMS_ADDRESS_LEN_MAX+(0x868+4366-0x1975));db_data->number
-[(0x133+6141-0x1930)]=((char)(0x97a+2709-0x13e4));for(i=(0x19bc+667-0x1c57);i<
-address_ptr->number_of_digits;i++){if((0xaf7+6060-0x2299)==address_ptr->digits[i
-]){db_data->number[i+(0x454+3295-0x1132)]=((char)(0xb5d+3412-0x1881));}else{
-db_data->number[i+(0x751+7482-0x248a)]=((char)(0x1ee6+68-0x1efa))+address_ptr->
+(0x137f+4-0x1383),ZTE_WMS_ADDRESS_LEN_MAX+(0xe97+3254-0x1b4c));db_data->number[
+(0x9a0+6813-0x243d)]=((char)(0x1383+1459-0x190b));for(i=(0x1086+5604-0x266a);i<
+address_ptr->number_of_digits;i++){if((0x1012+4466-0x217a)==address_ptr->digits[
+i]){db_data->number[i+(0x10df+3821-0x1fcb)]=((char)(0x16a+8351-0x21d9));}else{
+db_data->number[i+(0x33c+5837-0x1a08)]=((char)(0x39c+3852-0x1278))+address_ptr->
digits[i];}}}else if(WMS_NUMBER_ALPHANUMERIC==address_ptr->number_type){memcpy(
db_data->number,address_ptr->digits,address_ptr->number_of_digits);}else{if(
address_ptr->digit_mode==WMS_DIGIT_MODE_8_BIT){memcpy(&(db_data->number[
-(0xee9+5231-0x2357)]),address_ptr->digits,address_ptr->number_of_digits);}else{
-for(i=(0x19d2+2269-0x22af);i<address_ptr->number_of_digits;i++){if(
-(0x141b+1677-0x1a9e)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0x231+5813-0x18b6));}else{db_data->number[i]=((char)(0xdef+6203-0x25fa))
-+address_ptr->digits[i];}}}}(void)zUfiSms_UtilTimeStamp(ts_data_ptr->u.gw_pp.u.
-deliver.timestamp,db_data->tp_scts,&db_data->julian_date);if(ts_data_ptr->u.
-gw_pp.u.deliver.user_data_header_present){db_data->tp_udhi=(0x12+1061-0x436);}
-else{db_data->tp_udhi=(0x2027+299-0x2152);}if(db_data->tp_udhi==
-(0xab5+4078-0x1aa2)){for(ind=(0x66a+5346-0x1b4c);ind<ts_data_ptr->u.gw_pp.u.
-deliver.user_data.num_headers;ind++){result=zUfiSms_ParseUdhiData(&(ts_data_ptr
-->u.gw_pp.u.deliver.user_data.headers[ind]),db_data);if(
-ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0x1f8+3560-0xfdf)]){printf(
+(0x21d0+1084-0x260b)]),address_ptr->digits,address_ptr->number_of_digits);}else{
+for(i=(0x1971+1150-0x1def);i<address_ptr->number_of_digits;i++){if(
+(0xae3+2963-0x166c)==address_ptr->digits[i]){db_data->number[i]=
+((char)(0x13ff+4003-0x2372));}else{db_data->number[i]=
+((char)(0x2463+316-0x256f))+address_ptr->digits[i];}}}}(void)
+zUfiSms_UtilTimeStamp(ts_data_ptr->u.gw_pp.u.deliver.timestamp,db_data->tp_scts,
+&db_data->julian_date);if(ts_data_ptr->u.gw_pp.u.deliver.
+user_data_header_present){db_data->tp_udhi=(0x37d+6508-0x1ce8);}else{db_data->
+tp_udhi=(0xd0f+4109-0x1d1c);}if(db_data->tp_udhi==(0x400+3194-0x1079)){for(ind=
+(0x13f2+1048-0x180a);ind<ts_data_ptr->u.gw_pp.u.deliver.user_data.num_headers;
+ind++){result=zUfiSms_ParseUdhiData(&(ts_data_ptr->u.gw_pp.u.deliver.user_data.
+headers[ind]),db_data);if(ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[
+(0x8fa+5949-0x2036)]){printf(
"\x74\x68\x65\x20\x63\x6f\x6e\x63\x61\x74\x20\x73\x6d\x73\x20\x73\x65\x67\x6d\x65\x6e\x74\x20\x69\x73\x20\x25\x64\x2c\x61\x6e\x64\x20\x6c\x61\x72\x67\x65\x72\x20\x74\x68\x65\x6e\x20\x74\x68\x65\x20\x20\x73\x75\x70\x70\x6f\x72\x74\x65\x64\x20\x25\x64\x20\x73\x65\x67\x6d\x65\x6e\x74\x73\x2c\x73\x6f\x20\x64\x69\x64\x20\x6e\x6f\x74\x20\x64\x65\x61\x6c\x20\x74\x68\x65\x20\x63\x6f\x6e\x63\x61\x74\x20\x73\x6d\x73\x2e\x20"
-,db_data->concat_info[(0x1b11+628-0x1d84)],ZTE_WMS_CONCAT_SMS_COUNT_MAX);if(
+,db_data->concat_info[(0x69d+5820-0x1d58)],ZTE_WMS_CONCAT_SMS_COUNT_MAX);if(
WMS_STORAGE_TYPE_NV_V01==db_data->mem_store){zUfiSms_DelModemSms(db_data->index)
;}result=ZUFI_FAIL;}}}tp_dcs=ts_data_ptr->u.gw_pp.u.deliver.dcs.alphabet;db_data
->sms_class=ts_data_ptr->u.gw_pp.u.deliver.dcs.msg_class;if(
WMS_GW_ALPHABET_8_BIT>=tp_dcs){db_data->tp_dcs=(unsigned char)
-(0x2ac+6632-0x1c93);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
-unsigned char)(0x7cf+7985-0x26fe);}else{printf(
+(0x840+3028-0x1413);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
+unsigned char)(0x1d8b+11-0x1d94);}else{printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x74\x70\x5f\x64\x63\x73\x3d\x25\x64",tp_dcs);}
db_data->tp_pid=(unsigned char)ts_data_ptr->u.gw_pp.u.deliver.pid;if(ts_data_ptr
->u.gw_pp.u.deliver.dcs.alphabet==WMS_GW_ALPHABET_UCS2){result=
zUfiSms_DispatchWtoi(ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_data,
ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_len,db_data->sms_content);db_data->
alphabet=WMS_GW_ALPHABET_UCS2;}else if(ts_data_ptr->u.gw_pp.u.deliver.dcs.
-alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0x98f+7138-0x2571);ind<ts_data_ptr->u.
-gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[
-(0x1b86+2716-0x261e)*ind]=((char)(0x848+4811-0x1ae3));db_data->sms_content[
-(0x474+552-0x698)*ind+(0xbc1+1751-0x1297)]=((char)(0x1284+4134-0x227a));db_data
-->sms_content[(0xfc1+5836-0x2689)*ind+(0x237b+219-0x2454)]=g_zUfiSms_DigAscMap[(
-(ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_data[ind]&(0x76d+4573-0x185a))>>
-(0x1072+124-0x10ea))];db_data->sms_content[(0x177+2603-0xb9e)*ind+
-(0x883+1383-0xde7)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.
-user_data.sm_data[ind]&(0xce5+1886-0x1434))];db_data->alphabet=
+alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0x641+2935-0x11b8);ind<ts_data_ptr->u.
+gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[(0xd77+5725-0x23d0)
+*ind]=((char)(0x13f6+4396-0x24f2));db_data->sms_content[(0x126a+1315-0x1789)*ind
++(0x1607+1969-0x1db7)]=((char)(0x1691+3232-0x2301));db_data->sms_content[
+(0x829+5001-0x1bae)*ind+(0x527+4855-0x181c)]=g_zUfiSms_DigAscMap[((ts_data_ptr->
+u.gw_pp.u.deliver.user_data.sm_data[ind]&(0xf00+1315-0x1333))>>
+(0xd04+3977-0x1c89))];db_data->sms_content[(0x1afc+2717-0x2595)*ind+
+(0x6a5+7929-0x259b)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.
+user_data.sm_data[ind]&(0xa29+1293-0xf27))];db_data->alphabet=
WMS_GW_ALPHABET_UCS2;}}else if(ts_data_ptr->u.gw_pp.u.deliver.dcs.alphabet==
WMS_GW_ALPHABET_7_BIT_DEFAULT){result=zUfiSms_DispatchWtoi(ts_data_ptr->u.gw_pp.
u.deliver.user_data.sm_data,ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_len,
db_data->sms_content);db_data->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;db_data->
-tp_dcs=(unsigned char)(0x8ca+2687-0x1347);}return result;}int
+tp_dcs=(unsigned char)(0x718+2771-0x11e9);}return result;}int
zUfiSms_FormatSubmitDbdata(T_zUfiSms_ClientTsData*ts_data_ptr,
T_zUfiSms_DbStoreData*db_data){int result=ZUFI_SUCC;wms_address_s_type*
address_ptr=NULL;wms_gw_alphabet_e_type tp_dcs=WMS_GW_ALPHABET_MAX32;int i=
-(0x395+6400-0x1c95);int ind=(0x2224+1013-0x2619);if((NULL==ts_data_ptr)||(NULL==
+(0x477+6961-0x1fa8);int ind=(0x405+55-0x43c);if((NULL==ts_data_ptr)||(NULL==
db_data)){printf("\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73\x2e")
;return ZUFI_FAIL;}address_ptr=&(ts_data_ptr->u.gw_pp.u.submit.address);if((
WMS_NUMBER_INTERNATIONAL==address_ptr->number_type)){db_data->number[
-(0xedd+4754-0x216f)]=((char)(0x18c9+2848-0x23be));for(i=(0x1866+1432-0x1dfe);i<
-address_ptr->number_of_digits;i++){if((0x1f68+1654-0x25d4)==address_ptr->digits[
-i]){db_data->number[i+(0x960+2226-0x1211)]=((char)(0x403+3861-0x12e8));}else{
-db_data->number[i+(0xc6+9542-0x260b)]=((char)(0x1692+506-0x185c))+address_ptr->
-digits[i];}}}else{for(i=(0x3b8+562-0x5ea);i<address_ptr->number_of_digits;i++){
-if((0x19fc+2622-0x2430)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0x7f2+1602-0xe04));}else{db_data->number[i]=((char)(0xa7b+5734-0x20b1))+
-address_ptr->digits[i];}}}tp_dcs=ts_data_ptr->u.gw_pp.u.submit.dcs.alphabet;
-db_data->sms_class=ts_data_ptr->u.gw_pp.u.submit.dcs.msg_class;if(
-WMS_GW_ALPHABET_8_BIT>=tp_dcs){db_data->tp_dcs=(unsigned char)
-(0x1993+2291-0x2285);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
-unsigned char)(0x3df+7376-0x20ad);}else{printf(
+(0x559+5765-0x1bde)]=((char)(0x13c4+791-0x16b0));for(i=(0xda4+714-0x106e);i<
+address_ptr->number_of_digits;i++){if((0x2d1+4854-0x15bd)==address_ptr->digits[i
+]){db_data->number[i+(0x64c+5413-0x1b70)]=((char)(0x60a+8461-0x26e7));}else{
+db_data->number[i+(0x1166+4452-0x22c9)]=((char)(0x23b+1482-0x7d5))+address_ptr->
+digits[i];}}}else{for(i=(0x58d+7726-0x23bb);i<address_ptr->number_of_digits;i++)
+{if((0x14a+2978-0xce2)==address_ptr->digits[i]){db_data->number[i]=
+((char)(0x1572+3641-0x237b));}else{db_data->number[i]=
+((char)(0x1483+4639-0x2672))+address_ptr->digits[i];}}}tp_dcs=ts_data_ptr->u.
+gw_pp.u.submit.dcs.alphabet;db_data->sms_class=ts_data_ptr->u.gw_pp.u.submit.dcs
+.msg_class;if(WMS_GW_ALPHABET_8_BIT>=tp_dcs){db_data->tp_dcs=(unsigned char)
+(0x1f2+5928-0x1919);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
+unsigned char)(0x54b+8115-0x24fc);}else{printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x74\x70\x5f\x64\x63\x73\x3d\x25\x64",tp_dcs);}
db_data->tp_pid=(unsigned char)ts_data_ptr->u.gw_pp.u.submit.pid;db_data->
msg_ref=(unsigned char)ts_data_ptr->u.gw_pp.u.submit.message_reference;if(
ts_data_ptr->u.gw_pp.u.submit.user_data_header_present){db_data->tp_udhi=
-(0x1ae7+3063-0x26dd);}else{db_data->tp_udhi=(0x602+783-0x911);}if(db_data->
-tp_udhi==(0x1e8f+864-0x21ee)){for(ind=(0x1ba+9509-0x26df);ind<ts_data_ptr->u.
-gw_pp.u.submit.user_data.num_headers;ind++){result=zUfiSms_ParseUdhiData(&(
+(0xc4f+403-0xde1);}else{db_data->tp_udhi=(0xa0a+5402-0x1f24);}if(db_data->
+tp_udhi==(0xd9f+3255-0x1a55)){for(ind=(0x129+448-0x2e9);ind<ts_data_ptr->u.gw_pp
+.u.submit.user_data.num_headers;ind++){result=zUfiSms_ParseUdhiData(&(
ts_data_ptr->u.gw_pp.u.submit.user_data.headers[ind]),db_data);if(
-ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0x28b+1769-0x973)]){printf(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0x309+7782-0x216e)]){printf(
"\x74\x68\x65\x20\x63\x6f\x6e\x63\x61\x74\x20\x73\x6d\x73\x20\x73\x65\x67\x6d\x65\x6e\x74\x20\x69\x73\x20\x6c\x61\x72\x67\x65\x72\x20\x74\x68\x65\x6e\x20\x74\x68\x65\x20\x20\x73\x75\x70\x70\x6f\x72\x74\x65\x64\x20\x73\x65\x67\x6d\x65\x6e\x74\x73\x2c\x73\x6f\x20\x64\x69\x64\x20\x6e\x6f\x74\x20\x64\x65\x61\x6c\x20\x74\x68\x65\x20\x63\x6f\x6e\x63\x61\x74\x20\x73\x6d\x73\x2e"
);if(WMS_STORAGE_TYPE_NV_V01==db_data->mem_store){zUfiSms_DelModemSms(db_data->
index);}result=ZUFI_FAIL;}}}if(ts_data_ptr->u.gw_pp.u.submit.dcs.alphabet==
WMS_GW_ALPHABET_UCS2){result=zUfiSms_DispatchWtoi(ts_data_ptr->u.gw_pp.u.submit.
user_data.sm_data,ts_data_ptr->u.gw_pp.u.submit.user_data.sm_len,db_data->
sms_content);db_data->alphabet=WMS_GW_ALPHABET_UCS2;}else if(ts_data_ptr->u.
-gw_pp.u.submit.dcs.alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0x41+5510-0x15c7);
+gw_pp.u.submit.dcs.alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0xb12+5733-0x2177);
ind<ts_data_ptr->u.gw_pp.u.submit.user_data.sm_len;ind++){db_data->sms_content[
-(0x1447+161-0x14e4)*ind]=((char)(0x463+2269-0xd10));db_data->sms_content[
-(0x99a+4825-0x1c6f)*ind+(0x53c+2093-0xd68)]=((char)(0x4fd+1611-0xb18));db_data->
-sms_content[(0x615+6165-0x1e26)*ind+(0x24f+2250-0xb17)]=g_zUfiSms_DigAscMap[((
-ts_data_ptr->u.gw_pp.u.submit.user_data.sm_data[ind]&(0x676+2362-0xec0))>>
-(0xf15+5893-0x2616))];db_data->sms_content[(0x14e6+2746-0x1f9c)*ind+
-(0x2c0+2560-0xcbd)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.submit.user_data
-.sm_data[ind]&(0x10d3+1218-0x1586))];db_data->alphabet=WMS_GW_ALPHABET_UCS2;}}
-else if(ts_data_ptr->u.gw_pp.u.submit.dcs.alphabet==
+(0x56d+3810-0x144b)*ind]=((char)(0x7fc+2211-0x106f));db_data->sms_content[
+(0x1a5+9296-0x25f1)*ind+(0x38b+2481-0xd3b)]=((char)(0x4d9+8457-0x25b2));db_data
+->sms_content[(0x4a7+8541-0x2600)*ind+(0x14d3+2322-0x1de3)]=g_zUfiSms_DigAscMap[
+((ts_data_ptr->u.gw_pp.u.submit.user_data.sm_data[ind]&(0x432+8101-0x22e7))>>
+(0x206+8896-0x24c2))];db_data->sms_content[(0x51+7125-0x1c22)*ind+
+(0x1e4a+590-0x2095)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.submit.
+user_data.sm_data[ind]&(0x7d4+1989-0xf8a))];db_data->alphabet=
+WMS_GW_ALPHABET_UCS2;}}else if(ts_data_ptr->u.gw_pp.u.submit.dcs.alphabet==
WMS_GW_ALPHABET_7_BIT_DEFAULT){result=zUfiSms_DispatchWtoi(ts_data_ptr->u.gw_pp.
u.submit.user_data.sm_data,ts_data_ptr->u.gw_pp.u.submit.user_data.sm_len,
db_data->sms_content);db_data->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;db_data->
-tp_dcs=(unsigned char)(0xaf0+1710-0x119c);}return result;}int InvertNumbers(
-const char*pSrc,char*pDst,int nSrcLength){int nDstLength;char ch;int i=
-(0x415+8740-0x2639);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x10bb+2585-0x1ad4)){
-return-(0x178f+2081-0x1faf);}nDstLength=nSrcLength;for(i=(0x542+2046-0xd40);i<
-nSrcLength;i+=(0x2013+19-0x2024)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
-nSrcLength&(0x132+6166-0x1947)){*(pDst-(0x1753+1762-0x1e33))=
-((char)(0x401+6311-0x1c62));nDstLength++;}*pDst='\0';return nDstLength;}int
+tp_dcs=(unsigned char)(0x760+1296-0xc6e);}return result;}int InvertNumbers(const
+ char*pSrc,char*pDst,int nSrcLength){int nDstLength;char ch;int i=
+(0x1f5a+1298-0x246c);if(pSrc==NULL||pDst==NULL||nSrcLength<(0xdca+1404-0x1346)){
+return-(0x9+5426-0x153a);}nDstLength=nSrcLength;for(i=(0xead+3606-0x1cc3);i<
+nSrcLength;i+=(0xd73+2354-0x16a3)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
+nSrcLength&(0xf87+5505-0x2507)){*(pDst-(0x4ac+1452-0xa56))=
+((char)(0x293+3728-0x10dd));nDstLength++;}*pDst='\0';return nDstLength;}int
code_is_gsm7(const SMS_PARAM*pSrc,unsigned char buf[],int nLength){if(pSrc->
-TP_UDHI==(0x19df+3128-0x2616)){buf[(0x7f0+1423-0xd7c)]=(unsigned char)nLength;
-buf[(0x18e4+1976-0x2098)]=(unsigned char)pSrc->TP_UD[(0x1513+2117-0x1d58)];buf[
-(0x14ef+1678-0x1b78)]=(0x1cd0+1724-0x238c);buf[(0xca9+738-0xf85)]=(unsigned char
-)pSrc->TP_UD[(0xdb0+2770-0x1880)];buf[(0x150a+1915-0x1c7e)]=(unsigned char)pSrc
-->TP_UD[(0x12+1832-0x737)];buf[(0x5e3+1061-0xa00)]=(unsigned char)pSrc->TP_UD[
-(0x1028+4904-0x234c)];buf[(0x18ab+1661-0x1f1f)]=(unsigned char)pSrc->TP_UD[
-(0x10f6+1907-0x1864)];buf[(0x13fd+1498-0x19cd)]=(unsigned char)pSrc->TP_UD[
-(0x196+8229-0x21b4)];buf[(0x9c9+1310-0xedd)]=(unsigned char)(buf[
-(0x17c2+2698-0x2242)]<<(0x2a0+2359-0xbd6));nLength=nLength-(0x4ba+2037-0xca8);
-nLength=Encode7bit(&(pSrc->TP_UD[(0x1687+969-0x1a48)]),&buf[(0x12aa+1615-0x18ee)
-],nLength+(0xb96+4559-0x1d64))+(0x14dd+1068-0x1905)+(0xa28+4744-0x1caa);
-#if (0x1853+1130-0x1cbd)
-nLength+=(0x7b6+7023-0x2323);
+TP_UDHI==(0x861+6015-0x1fdf)){buf[(0x196+6499-0x1af6)]=(unsigned char)nLength;
+buf[(0x1bf1+2722-0x268f)]=(unsigned char)pSrc->TP_UD[(0x9cf+165-0xa74)];buf[
+(0xe16+5115-0x220c)]=(0x55a+5473-0x1abb);buf[(0x5f8+932-0x996)]=(unsigned char)
+pSrc->TP_UD[(0x995+4771-0x1c36)];buf[(0xe9+4293-0x11a7)]=(unsigned char)pSrc->
+TP_UD[(0xbc2+2561-0x15c0)];buf[(0x1037+1345-0x1570)]=(unsigned char)pSrc->TP_UD[
+(0xc8a+1568-0x12a6)];buf[(0xc12+6517-0x257e)]=(unsigned char)pSrc->TP_UD[
+(0x203b+342-0x218c)];buf[(0x1352+4420-0x248c)]=(unsigned char)pSrc->TP_UD[
+(0x5e2+2528-0xfbb)];buf[(0x1a6b+2960-0x25f1)]=(unsigned char)(buf[
+(0x1041+4275-0x20ea)]<<(0x125+3557-0xf09));nLength=nLength-(0x16d3+3189-0x2341);
+nLength=Encode7bit(&(pSrc->TP_UD[(0x16eb+2609-0x2114)]),&buf[
+(0x15e0+4277-0x268a)],nLength+(0x17ea+494-0x19d7))+(0x12d4+3158-0x1f26)+
+(0x1103+4322-0x21df);
+#if (0x80+619-0x2eb)
+nLength+=(0x112+4059-0x10eb);
#endif
-}else{nLength=pSrc->TP_UDLength;buf[(0x14b9+4085-0x24ab)]=nLength;nLength=
-Encode7bit(pSrc->TP_UD,&buf[(0xff0+818-0x131e)],nLength+(0x870+1904-0xfdf))+
-(0xb14+3819-0x19fb);}at_print(LOG_DEBUG,
+}else{nLength=pSrc->TP_UDLength;buf[(0x1f3a+1914-0x26b1)]=nLength;nLength=
+Encode7bit(pSrc->TP_UD,&buf[(0xb3c+548-0xd5c)],nLength+(0x1a32+1319-0x1f58))+
+(0x1f5+2313-0xafa);}at_print(LOG_DEBUG,
"\x62\x75\x66\x20\x69\x73\x20\x25\x73" "\n",buf);return nLength;}int
code_is_ucs2(const SMS_PARAM*pSrc,unsigned char buf[],int nLength){nLength=
-strlen(pSrc->TP_UD);if(pSrc->TP_UDHI==(0x36c+1294-0x879)){buf[
-(0x9c7+6985-0x250d)]=(unsigned char)nLength;buf[(0xaba+4621-0x1cc3)]=(unsigned
-char)pSrc->TP_UD[(0xfed+2263-0x18c4)];buf[(0x237+8391-0x22f9)]=
-(0x764+3422-0x14c2);buf[(0x10a5+476-0x127b)]=(unsigned char)pSrc->TP_UD[
-(0x6e9+2792-0x11cf)];buf[(0x766+4576-0x193f)]=(unsigned char)pSrc->TP_UD[
-(0x894+6186-0x20bb)];buf[(0xe15+2345-0x1736)]=(unsigned char)pSrc->TP_UD[
-(0x359+6816-0x1df5)];buf[(0x418+766-0x70d)]=(unsigned char)pSrc->TP_UD[
-(0x13d8+4905-0x26fc)];buf[(0x1334+4662-0x2567)]=(unsigned char)(EncodeUcs2(&(
-pSrc->TP_UD[(0x9f9+598-0xc49)]),&buf[(0x12+3933-0xf65)],nLength-
-(0x281+401-0x40c))+(0x474+2770-0xf40));nLength=buf[(0x1a5f+2896-0x25ac)]+
-(0xc1+8151-0x2094);}else{buf[(0x145c+4320-0x2539)]=EncodeUcs2(pSrc->TP_UD,&buf[
-(0x6a3+1082-0xad9)],nLength);nLength=buf[(0x1eac+879-0x2218)]+
-(0x99d+5660-0x1fb5);}return nLength;}int Encode8bit(const char*pSrc,unsigned
-char*pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<
-(0xe64+1652-0x14d8)){return-(0xe60+2359-0x1796);}memcpy(pDst,pSrc,nSrcLength);
-return nSrcLength;}int EncodePdu_Submit(const SMS_PARAM*pSrc,char*pDst){int
-nLength=(0x12e7+3986-0x2279);int nDstLength=(0x8c1+4571-0x1a9c);unsigned char
-buf[(0x99b+5691-0x1ed6)]={(0xba+6406-0x19c0)};char tmpSCA[(0x12c6+463-0x1471)]={
-(0x394+1389-0x901)};int check_udl=(0x128b+129-0x130c);memset(tmpSCA,
-(0x476+4359-0x157d),sizeof(tmpSCA));if(pSrc==NULL||pDst==NULL){return-
-(0x14c5+3340-0x21d0);}
-#if (0x1cab+2225-0x255b)
+strlen(pSrc->TP_UD);if(pSrc->TP_UDHI==(0x21f+2590-0xc3c)){buf[
+(0x953+4785-0x1c01)]=(unsigned char)nLength;buf[(0x3dd+521-0x5e2)]=(unsigned
+char)pSrc->TP_UD[(0x104+5630-0x1702)];buf[(0x12e4+3421-0x203c)]=
+(0xc14+2402-0x1576);buf[(0xe98+4048-0x1e62)]=(unsigned char)pSrc->TP_UD[
+(0xab7+4880-0x1dc5)];buf[(0x261+7029-0x1dcf)]=(unsigned char)pSrc->TP_UD[
+(0xdc4+3928-0x1d19)];buf[(0xb6c+440-0xd1c)]=(unsigned char)pSrc->TP_UD[
+(0x34+3670-0xe86)];buf[(0x1611+250-0x1702)]=(unsigned char)pSrc->TP_UD[
+(0xcb3+959-0x106d)];buf[(0xe14+236-0xefd)]=(unsigned char)(EncodeUcs2(&(pSrc->
+TP_UD[(0x201+8564-0x236f)]),&buf[(0x10ed+515-0x12e6)],nLength-
+(0x160b+2784-0x20e5))+(0x8c2+990-0xc9a));nLength=buf[(0xfad+5062-0x2370)]+
+(0x1015+471-0x11e8);}else{buf[(0x7c3+7275-0x242b)]=EncodeUcs2(pSrc->TP_UD,&buf[
+(0xe17+48-0xe43)],nLength);nLength=buf[(0xf98+4512-0x2135)]+(0x18eb+3537-0x26b8)
+;}return nLength;}int Encode8bit(const char*pSrc,unsigned char*pDst,int
+nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x6dd+7587-0x2480)){return-
+(0x418+1947-0xbb2);}memcpy(pDst,pSrc,nSrcLength);return nSrcLength;}int
+EncodePdu_Submit(const SMS_PARAM*pSrc,char*pDst){int nLength=
+(0x12e0+2374-0x1c26);int nDstLength=(0x83f+1461-0xdf4);unsigned char buf[
+(0x3b2+6726-0x1cf8)]={(0x4d6+905-0x85f)};char tmpSCA[(0xa8f+3700-0x18df)]={
+(0x79a+6658-0x219c)};int check_udl=(0x4e5+4440-0x163d);memset(tmpSCA,
+(0x1942+2694-0x23c8),sizeof(tmpSCA));if(pSrc==NULL||pDst==NULL){return-
+(0x2e9+2025-0xad1);}
+#if (0x11ba+4361-0x22c2)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x20\x45\x6e\x63\x6f\x64\x65\x50\x64\x75\x5f\x53\x75\x62\x6d\x69\x74\x20\x6d\x61\x6b\x65\x20\x70\x64\x75\x20\x64\x61\x74\x61" "\n"
);printf(
@@ -906,393 +908,392 @@
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x73\x63\x61\x3a\x25\x73" "\n",pSrc->
SCA);
#endif
-nLength=strlen(pSrc->SCA);buf[(0x218+7401-0x1f01)]=(char)(((nLength)&
-(0x220d+52-0x2240))==(0x19a0+2821-0x24a5)?(nLength):nLength+(0x16c3+1868-0x1e0e)
-)/(0xa27+2010-0x11ff)+(0x924+1069-0xd50);buf[(0x198c+1358-0x1ed9)]=
-(0x794+3965-0x1690);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)-(0x104f+5699-0x2691)
-);if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",(0xc67+5995-0x23ce)))){memset(tmpSCA
-,(0x12f6+1108-0x174a),sizeof(tmpSCA));nLength=nLength-(0x1268+2490-0x1c21);
-#if (0x2cf+8055-0x2245)
-nLength=nLength-(0x1994+2274-0x2275);strncpy(tmpSCA,&(pSrc->SCA[
-(0xcbc+1379-0x121d)]),sizeof(tmpSCA)-(0x66c+7256-0x22c3));
+nLength=strlen(pSrc->SCA);buf[(0x176c+2161-0x1fdd)]=(char)(((nLength)&
+(0x109c+4524-0x2247))==(0x1673+4132-0x2697)?(nLength):nLength+
+(0x17af+1455-0x1d5d))/(0x2ed+3568-0x10db)+(0x1c5+3452-0xf40);buf[
+(0x19d6+991-0x1db4)]=(0x7a1+7787-0x258b);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)
+-(0x7c+4171-0x10c6));if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",
+(0x12c2+43-0x12e9)))){memset(tmpSCA,(0x39a+8411-0x2475),sizeof(tmpSCA));nLength=
+nLength-(0xf44+2516-0x1917);
+#if (0x1dc+6693-0x1c00)
+nLength=nLength-(0xeb9+440-0x1070);strncpy(tmpSCA,&(pSrc->SCA[
+(0x145d+480-0x163b)]),sizeof(tmpSCA)-(0x1520+4304-0x25ef));
#else
-tmpSCA[(0x11c+3162-0xd76)]=((char)(0x17ef+2337-0x20e5));strcpy(&(tmpSCA[
-(0xbe1+2847-0x16ff)]),&(pSrc->SCA[(0xf6d+5111-0x2362)]));
+tmpSCA[(0x5d3+7284-0x2247)]=((char)(0x1981+954-0x1d10));strcpy(&(tmpSCA[
+(0x1acf+282-0x1be8)]),&(pSrc->SCA[(0xc2+5017-0x1459)]));
#endif
-buf[(0x933+7431-0x263a)]=(char)((nLength&(0x18d4+2366-0x2211))==
-(0xb72+2653-0x15cf)?nLength:nLength+(0x488+3086-0x1095))/(0x14e4+317-0x161f)+
-(0x7fd+4377-0x1915);buf[(0x8c6+3361-0x15e6)]=(0x5da+8075-0x24d4);}else if(
-((char)(0x11a6+3587-0x1f7e))==pSrc->SCA[(0x16a6+649-0x192f)]){memset(tmpSCA,
-(0x16f+6244-0x19d3),sizeof(tmpSCA));
-#if (0x1fb4+911-0x2342)
-nLength=nLength-(0x1299+3360-0x1fb8);strncpy(tmpSCA,&(pSrc->SCA[
-(0xe54+1234-0x1325)]),sizeof(tmpSCA)-(0x15f4+2751-0x20b2));
+buf[(0x298+2572-0xca4)]=(char)((nLength&(0x100+7534-0x1e6d))==
+(0xe6d+5505-0x23ee)?nLength:nLength+(0x300+1984-0xabf))/(0x26cf+11-0x26d8)+
+(0xb77+6592-0x2536);buf[(0xf19+3905-0x1e59)]=(0x5b0+2173-0xd9c);}else if(
+((char)(0x105d+2054-0x1838))==pSrc->SCA[(0xa3c+3258-0x16f6)]){memset(tmpSCA,
+(0xa08+3461-0x178d),sizeof(tmpSCA));
+#if (0x141+2295-0xa37)
+nLength=nLength-(0xc4d+1327-0x117b);strncpy(tmpSCA,&(pSrc->SCA[
+(0x15a0+2561-0x1fa0)]),sizeof(tmpSCA)-(0x949+683-0xbf3));
#else
strcpy(tmpSCA,pSrc->SCA);
#endif
-buf[(0x1f11+51-0x1f44)]=(char)((nLength&(0x1732+527-0x1940))==
-(0x1c5+8747-0x23f0)?(nLength):nLength+(0x8b2+5704-0x1ef9))/(0x1996+1702-0x203a)+
-(0x1d79+1455-0x2327);buf[(0xabd+5258-0x1f46)]=(0x1cd+9328-0x25ac);}
-#if (0x105+499-0x2f7)
+buf[(0xa66+4351-0x1b65)]=(char)((nLength&(0x107f+5146-0x2498))==
+(0xb18+4617-0x1d21)?(nLength):nLength+(0x1172+1182-0x160f))/(0x2f3+7499-0x203c)+
+(0xa34+6332-0x22ef);buf[(0x1c9c+1122-0x20fd)]=(0x1ad2+1940-0x21d5);}
+#if (0x1907+3210-0x2590)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x70\x64\x73\x74\x32\x3a\x25\x73" "\n",
pDst);
#endif
-if(nLength<(0xda8+4334-0x1e95)||nLength>=sizeof(tmpSCA))return-
-(0x1774+2103-0x1faa);nDstLength=Bytes2String(buf,pDst,(0x8af+1344-0xded));
+if(nLength<(0xd54+4397-0x1e80)||nLength>=sizeof(tmpSCA))return-
+(0xc94+3428-0x19f7);nDstLength=Bytes2String(buf,pDst,(0x1907+708-0x1bc9));
nDstLength+=InvertNumbers(tmpSCA,&pDst[nDstLength],nLength);
-#if (0x591+2147-0xdf3)
+#if (0x712+3212-0x139d)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x70\x64\x73\x74\x33\x3a\x25\x73" "\n",
pDst);
#endif
-if(pSrc->TPA[(0x5f3+2865-0x1124)]==((char)(0x1efb+2028-0x26bc))){nLength=strlen(
-&(pSrc->TPA[(0x23c+189-0x2f8)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
-TP_UDHI==(0x15c8+2434-0x1f4a)){if(pSrc->TP_SRR==(0x4a0+7636-0x2274)){buf[
-(0x1347+27-0x1362)]=(0xa3a+724-0xcfd);}if(pSrc->TP_SRR==(0x113d+5483-0x26a7)){
-buf[(0xcb5+4210-0x1d27)]=(0x1b4+8350-0x2221);}}if(pSrc->TP_UDHI==
-(0x610+2825-0x1118)){if(pSrc->TP_SRR==(0x2df+2156-0xb4b)){buf[
-(0x12d4+296-0x13fc)]=(0xa50+3286-0x16d5);}if(pSrc->TP_SRR==(0x1dca+739-0x20ac)){
-buf[(0x1d8c+2345-0x26b5)]=(0x19bb+1411-0x1ecd);}}buf[(0xe4b+3953-0x1dbb)]=
-(0x6a0+3786-0x156a);buf[(0xaf9+6657-0x24f8)]=(char)nLength;if(pSrc->TPA[
-(0x4f5+5177-0x192e)]==((char)(0x11d3+3908-0x20ec))){buf[(0xe35+6272-0x26b2)]=
-(0x368+6791-0x1d5e);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
-(0x516+7676-0x230e));nDstLength+=InvertNumbers(&(pSrc->TPA[(0x803+7164-0x23fe)])
-,&pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
-(0x8f6+5531-0x1e8d)))){buf[(0x80+8237-0x20ab)]=(char)nLength-(0x9d9+3024-0x15a7)
-;buf[(0xe77+2777-0x194d)]=(0x7bc+5563-0x1ce6);nDstLength+=Bytes2String(buf,&pDst
-[nDstLength],(0x5a0+8285-0x25f9));nDstLength+=InvertNumbers(&(pSrc->TPA[
-(0x551+6559-0x1eee)]),&pDst[nDstLength],nLength-(0x989+7218-0x25b9));}else{buf[
-(0x373+3789-0x123d)]=(0xa1d+7115-0x2567);nDstLength+=Bytes2String(buf,&pDst[
-nDstLength],(0x11e2+2809-0x1cd7));nDstLength+=InvertNumbers(pSrc->TPA,&pDst[
+if(pSrc->TPA[(0x606+4017-0x15b7)]==((char)(0x165d+2970-0x21cc))){nLength=strlen(
+&(pSrc->TPA[(0x1133+162-0x11d4)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
+TP_UDHI==(0x50a+1167-0x999)){if(pSrc->TP_SRR==(0xb91+2070-0x13a7)){buf[
+(0x3b4+1022-0x7b2)]=(0xa46+5145-0x1e4e);}if(pSrc->TP_SRR==(0x2b+1681-0x6bb)){buf
+[(0x4fa+390-0x680)]=(0x1403+2134-0x1c28);}}if(pSrc->TP_UDHI==(0xa91+5939-0x21c3)
+){if(pSrc->TP_SRR==(0x20f8+671-0x2397)){buf[(0x953+2810-0x144d)]=
+(0x10fb+5395-0x25bd);}if(pSrc->TP_SRR==(0x8b8+2260-0x118b)){buf[
+(0x19d4+2408-0x233c)]=(0x153+5426-0x1614);}}buf[(0x1581+3894-0x24b6)]=
+(0x7bf+1409-0xd40);buf[(0x13e9+1130-0x1851)]=(char)nLength;if(pSrc->TPA[
+(0x18ea+1262-0x1dd8)]==((char)(0xdf3+2525-0x17a5))){buf[(0x17a+8534-0x22cd)]=
+(0xc67+403-0xd69);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
+(0x1127+1328-0x1653));nDstLength+=InvertNumbers(&(pSrc->TPA[(0xf43+3310-0x1c30)]
+),&pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
+(0x9b2+4717-0x1c1b)))){buf[(0x1a4+3570-0xf94)]=(char)nLength-(0x9a7+2729-0x144e)
+;buf[(0x1ef+2345-0xb15)]=(0x1861+1354-0x1d1a);nDstLength+=Bytes2String(buf,&pDst
+[nDstLength],(0xd20+4074-0x1d06));nDstLength+=InvertNumbers(&(pSrc->TPA[
+(0xbc6+5619-0x21b7)]),&pDst[nDstLength],nLength-(0xcc5+1397-0x1238));}else{buf[
+(0x312+5780-0x19a3)]=(0x990+1876-0x1063);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0x1339+2318-0x1c43));nDstLength+=InvertNumbers(pSrc->TPA,&pDst[
nDstLength],nLength);}
-#if (0x10d3+4794-0x238c)
+#if (0x1933+3497-0x26db)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x70\x64\x73\x74\x34\x3a\x25\x73" "\n",
pDst);
#endif
-nLength=(int)pSrc->TP_UDLength;buf[(0xda8+1807-0x14b7)]=pSrc->TP_PID;buf[
-(0x3db+6579-0x1d8d)]=pSrc->TP_DCS;buf[(0x11f+5914-0x1837)]=pSrc->TP_VP;if(pSrc->
+nLength=(int)pSrc->TP_UDLength;buf[(0x10ab+2708-0x1b3f)]=pSrc->TP_PID;buf[
+(0x4ba+674-0x75b)]=pSrc->TP_DCS;buf[(0x53a+226-0x61a)]=pSrc->TP_VP;if(pSrc->
TP_DCS==CODE_GSM7){nLength=code_is_gsm7(pSrc,buf,nLength);}else if(pSrc->TP_DCS
==CODE_UCS2){nLength=code_is_ucs2(pSrc,buf,nLength);}else{nLength=strlen(pSrc->
-TP_UD);if(pSrc->TP_UDHI==(0x4b+1336-0x582)){buf[(0x458+382-0x5d3)]=(unsigned
-char)nLength;buf[(0x1235+506-0x142b)]=(unsigned char)pSrc->TP_UD[
-(0x18fc+2450-0x228e)];buf[(0x1876+658-0x1b03)]=(0x78a+2142-0xfe8);buf[
-(0xb53+3616-0x196d)]=(unsigned char)pSrc->TP_UD[(0xb11+377-0xc88)];buf[
-(0x244+9164-0x2609)]=(unsigned char)pSrc->TP_UD[(0x69b+8182-0x268e)];buf[
-(0xac3+7141-0x26a0)]=(unsigned char)pSrc->TP_UD[(0x1b6f+2346-0x2495)];buf[
-(0x555+1248-0xa2c)]=(unsigned char)pSrc->TP_UD[(0x94+4060-0x106b)];if(nLength-
-(0x1293+3204-0x1f11)<=(0xde8+831-0x1127)||nLength-(0x494+1665-0xb0f)>=sizeof(buf
-)-(0x50d+8086-0x2499))return-(0xcf4+78-0xd41);buf[(0x13b+9170-0x250a)]=(unsigned
- char)(Encode8bit(&(pSrc->TP_UD[(0x13a+8407-0x220b)]),&buf[(0x60b+3920-0x1551)],
-(unsigned short)(nLength-(0x5bf+3334-0x12bf)))+(0x131d+1051-0x1732));nLength=buf
-[(0x6eb+2578-0x10fa)]+(0x1e84+2159-0x26ef);}else{if(nLength<=
-(0x116a+5428-0x269e)||nLength>=sizeof(buf)-(0x117d+1490-0x174b))return-
-(0x478+1505-0xa58);buf[(0x2e1+1244-0x7ba)]=Encode8bit(pSrc->TP_UD,&buf[
-(0x1cc8+1546-0x22ce)],nLength);nLength=buf[(0x1363+2436-0x1ce4)]+
-(0x11c+3700-0xf8c);}}check_udl=nLength-(0x29b+796-0x5b3);nDstLength+=
+TP_UD);if(pSrc->TP_UDHI==(0x1012+2103-0x1848)){buf[(0x1edc+1262-0x23c7)]=(
+unsigned char)nLength;buf[(0x10eb+1194-0x1591)]=(unsigned char)pSrc->TP_UD[
+(0x495+8659-0x2668)];buf[(0x8cd+103-0x92f)]=(0x4c0+6055-0x1c67);buf[
+(0x25ad+94-0x2605)]=(unsigned char)pSrc->TP_UD[(0xad7+607-0xd34)];buf[
+(0x1173+5516-0x26f8)]=(unsigned char)pSrc->TP_UD[(0xb51+4855-0x1e45)];buf[
+(0x10e0+3289-0x1db1)]=(unsigned char)pSrc->TP_UD[(0x141+8837-0x23c2)];buf[
+(0xde3+6325-0x268f)]=(unsigned char)pSrc->TP_UD[(0x53d+5630-0x1b36)];if(nLength-
+(0x7a2+7517-0x24f9)<=(0x1290+2507-0x1c5b)||nLength-(0x1002+1540-0x1600)>=sizeof(
+buf)-(0xc8a+6564-0x2624))return-(0x586+443-0x740);buf[(0x321+8240-0x234e)]=(
+unsigned char)(Encode8bit(&(pSrc->TP_UD[(0x68b+3622-0x14ab)]),&buf[
+(0x54b+440-0x6f9)],(unsigned short)(nLength-(0xb12+1273-0x1005)))+
+(0x344+2623-0xd7d));nLength=buf[(0x1fa9+1722-0x2660)]+(0x727+3611-0x153e);}else{
+if(nLength<=(0x862+3784-0x172a)||nLength>=sizeof(buf)-(0x800+5737-0x1e65))return
+-(0x6e3+5394-0x1bf4);buf[(0xe50+696-0x1105)]=Encode8bit(pSrc->TP_UD,&buf[
+(0x14c0+1169-0x194d)],nLength);nLength=buf[(0x6c5+5229-0x1b2f)]+
+(0x663+4921-0x1998);}}check_udl=nLength-(0x480+463-0x64b);nDstLength+=
Bytes2String(buf,&pDst[nDstLength],nLength);sc_cfg_set(NV_CHECK_UDL,"");if(
-check_udl>(0x1435+147-0x143c)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");}
-#if (0xa60+6272-0x22df)
+check_udl>(0x488+5976-0x1b54)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");}
+#if (0x2045+32-0x2064)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x20\x45\x6e\x63\x6f\x64\x65\x50\x64\x75\x5f\x53\x75\x62\x6d\x69\x74\x20\x65\x6e\x64\x20\x6d\x61\x6b\x65\x20\x70\x64\x75\x20\x64\x61\x74\x61" "\n"
);printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x6c\x65\x6e\x3a\x25\x64\x2c\x20\x74\x70\x75\x64\x3a\x25\x73" "\n"
,nDstLength,pSrc->TP_UD);
#endif
-#if (0xd49+3335-0x1a4f)
+#if (0x20d1+1577-0x26f9)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x70\x64\x73\x74\x35\x3a\x25\x73" "\n",
pDst);
#endif
return nDstLength;}int Decode7bit(const unsigned char*pSrc,char*pDst,int
nSrcLength){int nSrc;int nDst;int nByte;unsigned char nLeft;if(pSrc==NULL||pDst
-==NULL||nSrcLength<(0x1873+3196-0x24ef)){return-(0x1371+2514-0x1d42);}nSrc=
-(0xc71+5042-0x2023);nDst=(0x7a4+2584-0x11bc);nByte=(0x755+3919-0x16a4);nLeft=
-(0x867+5820-0x1f23);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
-(0x174+4811-0x13c0);nLeft=*pSrc>>((0xe47+5180-0x227c)-nByte);pDst++;nDst++;nByte
-++;if(nByte==(0x1f45+1533-0x253b)){*pDst=nLeft;pDst++;nDst++;nByte=
-(0x2560+236-0x264c);nLeft=(0x181+6561-0x1b22);}pSrc++;nSrc++;}*pDst='\0';return
-nDst;}int DecodePushPdu(const char*pSrcPdu,SMS_PARAM*pDst){int nDstLength=
-(0x12+6692-0x1a36);unsigned char tmp=(0x19f+7748-0x1fe3);int ud_length=
-(0x17eb+1691-0x1e86);unsigned char buf[(0xb48+4216-0x1ac0)]={(0xa9d+4410-0x1bd7)
-};char temp_num[(0x13ef+1891-0x1aee)]={(0xde1+1058-0x1203)};unsigned char
-first_octet=(0xc4+8628-0x2278);unsigned char udhl=(0x120b+4877-0x2518);unsigned
-int halftmp=(0x123d+2629-0x1c82);char tp_ra[(0x29+6626-0x1a08)]={
-(0x9a6+190-0xa64)};int tmplen=(0x461+2456-0xdf9);unsigned char IEIDL;int
-pushType=(0xba6+534-0xdbc);const char*pSrc=pSrcPdu;if(pSrcPdu==NULL||pDst==NULL)
-{printf(
+==NULL||nSrcLength<(0x783+7731-0x25b6)){return-(0x209c+455-0x2262);}nSrc=
+(0xcfc+4356-0x1e00);nDst=(0x908+2886-0x144e);nByte=(0x2116+606-0x2374);nLeft=
+(0x7b8+1146-0xc32);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
+(0x653+6425-0x1eed);nLeft=*pSrc>>((0x12c+2743-0xbdc)-nByte);pDst++;nDst++;nByte
+++;if(nByte==(0x6d1+1360-0xc1a)){*pDst=nLeft;pDst++;nDst++;nByte=
+(0x1281+2390-0x1bd7);nLeft=(0x5e3+6221-0x1e30);}pSrc++;nSrc++;}*pDst='\0';return
+ nDst;}int DecodePushPdu(const char*pSrcPdu,SMS_PARAM*pDst){int nDstLength=
+(0x1510+4473-0x2689);unsigned char tmp=(0x312+5306-0x17cc);int ud_length=
+(0x81a+7552-0x259a);unsigned char buf[(0x2a3+2090-0x9cd)]={(0x1668+1493-0x1c3d)}
+;char temp_num[(0x64f+657-0x87c)]={(0x1121+277-0x1236)};unsigned char
+first_octet=(0x1546+2522-0x1f20);unsigned char udhl=(0xc64+6001-0x23d5);unsigned
+ int halftmp=(0xfd6+1574-0x15fc);char tp_ra[(0x1489+3584-0x2286)]={
+(0x285+1649-0x8f6)};int tmplen=(0x1bc0+1697-0x2261);unsigned char IEIDL;int
+pushType=(0xcd5+6378-0x25bf);const char*pSrc=pSrcPdu;if(pSrcPdu==NULL||pDst==
+NULL){printf(
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x70\x61\x72\x61\x20\x6e\x75\x6c\x6c\x2e\x20" "\n"
-);return-(0x13e6+4378-0x24ff);}String2Bytes(pSrc,&tmp,(0x430+3516-0x11ea));
+);return-(0x399+3732-0x122c);}String2Bytes(pSrc,&tmp,(0x1c62+906-0x1fea));
at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x74\x6d\x70\x20\x3d\x20\x25\x64\x2e" "\n"
-,tmp);if(tmp==(0x705+7229-0x2342)){pSrc+=(0x1984+3202-0x2604);}else{tmp=(tmp-
-(0x114d+3219-0x1ddf))*(0xaa4+104-0xb0a);pSrc+=(0x9ef+2244-0x12af);if(tmp>
-(0x2b3+5946-0x19cd)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x60a+2330-0xf04));tmp
-=(0xac1+6532-0x2425);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=tmp;}
-String2Bytes(pSrc,&tmp,(0xd52+344-0xea8));first_octet=tmp;pSrc+=
-(0x6bd+8054-0x2631);String2Bytes(pSrc,&tmp,(0x16f9+933-0x1a9c));halftmp=tmp;if(
-tmp&(0x1539+293-0x165d))tmp+=(0x40+8361-0x20e8);pSrc+=(0x2232+1181-0x26cd);
-memset(tp_ra,(0xe3a+1935-0x15c9),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
-(0xa18+4504-0x1bae));pSrc+=(0xdc0+4620-0x1fca);if((tp_ra[(0xe8f+3700-0x1d03)]&
-(0x1936+474-0x1ac0))==(0x178d+3820-0x2629)){char tempra[(0x619+1884-0xcf5)];char
- acAsc[(0x1c0+9586-0x26b2)];if(halftmp>=(0x255+6005-0x19bc)){halftmp=(tmp/
-(0x2451+54-0x2485))/(0x5b9+3347-0x12c5)+(tmp/(0xd71+1355-0x12ba));}else{halftmp=
-tmp/(0x491+4606-0x168d);}memset(tempra,(0x5c9+6428-0x1ee5),sizeof(tempra));
-memcpy(tempra,pSrc,tmp);memset(acAsc,(0x872+5561-0x1e2b),sizeof(acAsc));
-nDstLength=String2Bytes(tempra,buf,halftmp&(0x13b+5096-0x151c)?(int)halftmp*
-(0x3c2+4487-0x1542)/(0x2105+891-0x247c)+(0x1806+3495-0x25ab):(int)halftmp*
-(0x5ac+2372-0xee9)/(0x76a+2522-0x1140));halftmp=Decode7bit(buf,acAsc,nDstLength)
-;memset(pDst->TPA,(0x19ff+887-0x1d76),sizeof(pDst->TPA));if(halftmp>
-(0x8f3+5890-0x1fd5)){memcpy(pDst->TPA,acAsc,(0x122f+27-0x122a));tmp=
-(0x1fb+5057-0x159c);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
-(0x135a+2975-0x1ed9)){SerializeNumbers_sms(pSrc,pDst->TPA,(0x9ad+6082-0x214f));}
-else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0x4c3+935-0x86a)]&
-(0x2158+1560-0x26df))==(0xb65+2287-0x13c3)){memset(temp_num,(0xf33+4296-0x1ffb),
-sizeof(temp_num));if(pDst->TPA[(0x784+6347-0x204f)]!=((char)(0x834+2293-0x10fe))
+,tmp);if(tmp==(0x888+2826-0x1392)){pSrc+=(0x3e8+3686-0x124c);}else{tmp=(tmp-
+(0x75b+4391-0x1881))*(0x1f9+8287-0x2256);pSrc+=(0xb96+2502-0x1558);if(tmp>
+(0x257+8388-0x22fb)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x2a3+2981-0xe28));tmp
+=(0xd64+344-0xe9c);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=tmp;}
+String2Bytes(pSrc,&tmp,(0x13b+5279-0x15d8));first_octet=tmp;pSrc+=
+(0xff9+5254-0x247d);String2Bytes(pSrc,&tmp,(0x342+2724-0xde4));halftmp=tmp;if(
+tmp&(0x1050+4098-0x2051))tmp+=(0x240+924-0x5db);pSrc+=(0x9f4+2491-0x13ad);memset
+(tp_ra,(0x1034+2132-0x1888),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
+(0xc6b+21-0xc7e));pSrc+=(0x9f5+4316-0x1acf);if((tp_ra[(0x517+1958-0xcbd)]&
+(0x1a47+1412-0x1f7b))==(0x389+591-0x588)){char tempra[(0x18a1+1124-0x1c85)];char
+ acAsc[(0xa94+5823-0x20d3)];if(halftmp>=(0xc5b+5862-0x2333)){halftmp=(tmp/
+(0x19d5+134-0x1a59))/(0x90+9449-0x2572)+(tmp/(0x1c0+3650-0x1000));}else{halftmp=
+tmp/(0x13cc+4530-0x257c);}memset(tempra,(0x167d+1409-0x1bfe),sizeof(tempra));
+memcpy(tempra,pSrc,tmp);memset(acAsc,(0x16a9+3668-0x24fd),sizeof(acAsc));
+nDstLength=String2Bytes(tempra,buf,halftmp&(0x35b+4417-0x1495)?(int)halftmp*
+(0x81+198-0x140)/(0x136d+951-0x1720)+(0xd55+429-0xf00):(int)halftmp*
+(0x4aa+2706-0xf35)/(0x115+1064-0x539));halftmp=Decode7bit(buf,acAsc,nDstLength);
+memset(pDst->TPA,(0x1bd8+2333-0x24f5),sizeof(pDst->TPA));if(halftmp>
+(0x219+1750-0x8cf)){memcpy(pDst->TPA,acAsc,(0x102a+4194-0x206c));tmp=
+(0x1dfa+1648-0x244a);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
+(0x539+4180-0x156d)){SerializeNumbers_sms(pSrc,pDst->TPA,(0x11c5+3810-0x2087));}
+else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0x54f+3343-0x125e)]&
+(0x3b2+1880-0xa79))==(0x614+2377-0xecc)){memset(temp_num,(0x191b+1080-0x1d53),
+sizeof(temp_num));if(pDst->TPA[(0xc2f+4340-0x1d23)]!=((char)(0x1b58+149-0x1bc2))
){snprintf(temp_num,sizeof(temp_num),"\x25\x73\x25\x73","\x2b",pDst->TPA);if(
-strlen(temp_num)>(0xb16+5395-0x2009)){snprintf(pDst->TPA,sizeof(pDst->TPA),
+strlen(temp_num)>(0x1019+5795-0x269c)){snprintf(pDst->TPA,sizeof(pDst->TPA),
"\x25\x33\x32\x73",temp_num);}else{snprintf(pDst->TPA,sizeof(pDst->TPA),
"\x25\x73",temp_num);}}}}pSrc+=tmp;String2Bytes(pSrc,(unsigned char*)&pDst->
-TP_PID,(0xd8d+3934-0x1ce9));pSrc+=(0x13ca+3451-0x2143);String2Bytes(pSrc,(
-unsigned char*)&pDst->TP_DCS,(0x11d9+2122-0x1a21));pSrc+=(0xdca+1643-0x1433);
-SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0x10f0+1805-0x17ef));pSrc+=
-(0xc47+6869-0x270e);String2Bytes(pSrc,&tmp,(0x20c+9005-0x2537));pSrc+=
-(0x106c+2194-0x18fc);memset(pDst->TP_UD,(0x21b0+1172-0x2644),sizeof(pDst->TP_UD)
-);at_print(LOG_DEBUG,
+TP_PID,(0x118b+40-0x11b1));pSrc+=(0xced+5679-0x231a);String2Bytes(pSrc,(unsigned
+ char*)&pDst->TP_DCS,(0x14f2+3411-0x2243));pSrc+=(0x1196+1122-0x15f6);
+SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0x515+3915-0x1452));pSrc+=
+(0x162+2027-0x93f);String2Bytes(pSrc,&tmp,(0x6eb+2154-0xf53));pSrc+=
+(0x2f2+6983-0x1e37);memset(pDst->TP_UD,(0x127+7969-0x2048),sizeof(pDst->TP_UD));
+at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x66\x69\x72\x73\x74\x5f\x6f\x63\x74\x65\x74\x20\x3d\x20\x30\x78\x25\x30\x32\x78\x2e" "\n"
-,first_octet);if(first_octet&(0x1e5+7145-0x1d8e)){const char*temp=pSrc;unsigned
+,first_octet);if(first_octet&(0x7f5+5193-0x1bfe)){const char*temp=pSrc;unsigned
char pduType;unsigned char wspLen;unsigned char udhLen;unsigned char DestPort1;
unsigned char DestPort2;unsigned char RefNum1;unsigned char RefNum2;pushType=
-SMS_NO_PUSH;String2Bytes(temp,&udhl,(0x13f4+2090-0x1c1c));temp+=
-(0x172f+2323-0x2040);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0xb22+3163-0x177b))
-;at_print(LOG_DEBUG,
+SMS_NO_PUSH;String2Bytes(temp,&udhl,(0xada+335-0xc27));temp+=(0x1de5+961-0x21a4)
+;tmplen=String2Bytes(temp,&pDst->TP_IEI,(0x20e2+1496-0x26b8));at_print(LOG_DEBUG
+,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x54\x50\x5f\x49\x45\x49\x20\x3d\x20\x30\x78\x25\x30\x32\x78\x2e" "\n"
-,pDst->TP_IEI);if(pDst->TP_IEI==(0x16a6+1093-0x1ae6)){temp+=(0x1278+197-0x133b)*
-tmplen+(0xc1d+831-0xf5a);tmplen=String2Bytes(temp,&DestPort1,
-(0x1892+2417-0x2201));at_print(LOG_DEBUG,
+,pDst->TP_IEI);if(pDst->TP_IEI==(0x2c9+4253-0x1361)){temp+=(0xadc+3377-0x180b)*
+tmplen+(0x9c4+4401-0x1af3);tmplen=String2Bytes(temp,&DestPort1,
+(0x4d8+5103-0x18c5));at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x44\x65\x73\x74\x50\x6f\x72\x74\x31\x20\x3d\x20\x30\x78\x25\x30\x32\x78\x2e" "\n"
-,DestPort1);temp+=(0xce4+906-0x106c)*tmplen;tmplen=String2Bytes(temp,&DestPort2,
-(0x2b9+944-0x667));at_print(LOG_DEBUG,
+,DestPort1);temp+=(0xa0+4577-0x127f)*tmplen;tmplen=String2Bytes(temp,&DestPort2,
+(0x267+5627-0x1860));at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x44\x65\x73\x74\x50\x6f\x72\x74\x32\x20\x3d\x20\x30\x78\x25\x30\x32\x78\x2e" "\n"
-,DestPort2);if((DestPort1==(0x390+3597-0x1192))&&((DestPort2==
-(0xbd4+4435-0x1ca3))||(DestPort2==(0x12e7+766-0x1560)))){pushType=SMS_PUSH;}}if(
-SMS_PUSH!=pushType){return pushType;}temp=pSrc+udhl*(0x1f33+1117-0x238e)+
-(0xfab+598-0x11fd);tmplen=String2Bytes(temp,&pduType,(0xad2+4375-0x1be7));if(
-pduType==(0x1632+737-0x190d)){pushType=SMS_PUSH;temp+=(0x134a+1543-0x194d);
-tmplen=String2Bytes(temp,&pduType,(0xaa9+5292-0x1f53));if(pduType==
-(0x89c+1333-0xd0d)){pushType=SMS_NOTIFICATION;}else{temp+=(0x1d19+150-0x1dab);
-tmplen=String2Bytes(temp,&pduType,(0x259c+284-0x26b6));if((pduType==
-(0xa4b+1594-0xfc3))||(pduType==(0xe5+7133-0x1c0c))){pushType=SMS_BOOTSTRAP;}}}if
-((pDst->TP_IEI==(0x878+5832-0x1f3c))||(pDst->TP_IEI==(0x15ad+1097-0x19f1))||(
-pDst->TP_IEI==(0x24d4+449-0x268d))){temp=pSrc+(0x1bbd+1711-0x2268);tmplen=
-String2Bytes(temp,&IEIDL,(0x1923+246-0x1a17));if(IEIDL==(udhl-
-(0xdf1+3695-0x1c5e))){}else{temp+=(0x969+4064-0x1947)*(0xa45+2823-0x1546);tmplen
-=String2Bytes(temp,&udhLen,(0x462+7006-0x1fbe));if(udhLen==(0xae2+2169-0x1358)){
-temp+=(0x719+6212-0x1f5b)*tmplen;tmplen=String2Bytes(temp,&RefNum1,
-(0x115b+4343-0x2250));pDst->TP_ReferNum=RefNum1;temp+=(0x685+5248-0x1b03)*tmplen
-;tmplen=String2Bytes(temp,&pDst->TP_AllPieceNum,(0x1be7+1154-0x2067));temp+=
-(0x1ec9+374-0x203d)*tmplen;tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,
-(0x5ec+6349-0x1eb7));temp+=(0x1495+3216-0x2123)*tmplen;}else if(udhLen==
-(0x13cc+3479-0x215f)){temp+=(0x295+3417-0xfec)*tmplen;tmplen=String2Bytes(temp,&
-RefNum1,(0x32d+3254-0xfe1));temp+=(0x7ac+120-0x822)*tmplen;tmplen=String2Bytes(
-temp,&RefNum2,(0xd66+525-0xf71));int ReferNum=RefNum2+RefNum1*
-(0x1a7+7785-0x1f10);pDst->TP_ReferNum=ReferNum;temp+=(0x1620+4336-0x270e)*tmplen
-;tmplen=String2Bytes(temp,&pDst->TP_AllPieceNum,(0x109+8765-0x2344));temp+=
-(0x1f49+1833-0x2670)*tmplen;tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,
-(0x20d8+1283-0x25d9));temp+=(0x1328+2267-0x1c01)*tmplen;}}}at_print(LOG_DEBUG,
+,DestPort2);if((DestPort1==(0x75b+5574-0x1d16))&&((DestPort2==
+(0xf1d+1095-0x12e0))||(DestPort2==(0x32b+7394-0x1f88)))){pushType=SMS_PUSH;}}if(
+SMS_PUSH!=pushType){return pushType;}temp=pSrc+udhl*(0x2f1+4689-0x1540)+
+(0x628+4305-0x16f5);tmplen=String2Bytes(temp,&pduType,(0x1591+4177-0x25e0));if(
+pduType==(0x1433+4315-0x2508)){pushType=SMS_PUSH;temp+=(0x93c+3511-0x16ef);
+tmplen=String2Bytes(temp,&pduType,(0xe1c+5378-0x231c));if(pduType==
+(0xe83+307-0xef2)){pushType=SMS_NOTIFICATION;}else{temp+=(0x75d+2843-0x1274);
+tmplen=String2Bytes(temp,&pduType,(0x143c+396-0x15c6));if((pduType==
+(0x101a+2929-0x1ac9))||(pduType==(0x9a2+5392-0x1dfc))){pushType=SMS_BOOTSTRAP;}}
+}if((pDst->TP_IEI==(0xfb2+1286-0x14b4))||(pDst->TP_IEI==(0x21af+716-0x2476))||(
+pDst->TP_IEI==(0x1fc+3263-0xeb3))){temp=pSrc+(0x7fa+7622-0x25bc);tmplen=
+String2Bytes(temp,&IEIDL,(0x4f1+1162-0x979));if(IEIDL==(udhl-
+(0x1011+5564-0x25cb))){}else{temp+=(0x1dea+298-0x1f12)*(0x9a2+2759-0x1463);
+tmplen=String2Bytes(temp,&udhLen,(0x1315+4813-0x25e0));if(udhLen==
+(0x1189+3308-0x1e72)){temp+=(0x23b8+222-0x2494)*tmplen;tmplen=String2Bytes(temp,
+&RefNum1,(0x8ca+1634-0xf2a));pDst->TP_ReferNum=RefNum1;temp+=(0xa3f+5627-0x2038)
+*tmplen;tmplen=String2Bytes(temp,&pDst->TP_AllPieceNum,(0x5f1+1648-0xc5f));temp
++=(0x186a+2322-0x217a)*tmplen;tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum
+,(0xbd3+3476-0x1965));temp+=(0x8f9+139-0x982)*tmplen;}else if(udhLen==
+(0x497+676-0x737)){temp+=(0xcca+5081-0x20a1)*tmplen;tmplen=String2Bytes(temp,&
+RefNum1,(0x98a+6625-0x2369));temp+=(0x34b+527-0x558)*tmplen;tmplen=String2Bytes(
+temp,&RefNum2,(0x13b5+3335-0x20ba));int ReferNum=RefNum2+RefNum1*
+(0x3e8+6592-0x1ca8);pDst->TP_ReferNum=ReferNum;temp+=(0x384+1431-0x919)*tmplen;
+tmplen=String2Bytes(temp,&pDst->TP_AllPieceNum,(0x4f8+7005-0x2053));temp+=
+(0x98c+3836-0x1886)*tmplen;tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,
+(0x1d58+204-0x1e22));temp+=(0x2063+522-0x226b)*tmplen;}}}at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x52\x65\x66\x65\x72\x4e\x75\x6d\x20\x3d\x20\x25\x64\x2c\x41\x6c\x6c\x4e\x75\x6d\x20\x3d\x25\x64\x2c\x43\x75\x72\x4e\x75\x6d\x20\x3d\x25\x64\x2e" "\n"
,pDst->TP_ReferNum,pDst->TP_AllPieceNum,pDst->TP_CurrentPieceNum);if(
-SMS_NOTIFICATION==pushType){temp=pSrc+udhl*(0xc21+607-0xe7e)+
-(0x1407+1236-0x18d5);tmplen=String2Bytes(temp,&wspLen,(0x9e6+7338-0x268e));temp=
-temp+wspLen*(0x2c4+7655-0x20a9)+(0xc0f+3166-0x186b);}else{temp=pSrc+udhl*
-(0x2f1+5-0x2f4)+(0x14f9+3316-0x21eb);}nDstLength=((strlen(temp)<sizeof(pDst->
-TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0x4a2+4285-0x155e)));memcpy(pDst->
+SMS_NOTIFICATION==pushType){temp=pSrc+udhl*(0x472+6454-0x1da6)+
+(0x29c+5824-0x1956);tmplen=String2Bytes(temp,&wspLen,(0xd2d+5169-0x215c));temp=
+temp+wspLen*(0x2cf+567-0x504)+(0x28b+514-0x48b);}else{temp=pSrc+udhl*
+(0x502+1345-0xa41)+(0x4f3+4402-0x1623);}nDstLength=((strlen(temp)<sizeof(pDst->
+TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0x890+7682-0x2691)));memcpy(pDst->
TP_UD,temp,nDstLength);at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x70\x44\x73\x74\x2d\x3e\x54\x50\x5f\x55\x44\x20\x3d\x20\x25\x73\x2e" "\n"
,pDst->TP_UD);}at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x70\x75\x73\x68\x54\x79\x70\x65\x20\x3d\x20\x25\x64\x2e" "\n"
,pushType);return pushType;}static int SerializeNumbers_sms(const char*pSrc,char
-*pDst,int nSrcLength){int nDstLength;char ch;int i=(0x997+7087-0x2546);if(pSrc==
-NULL||pDst==NULL||nSrcLength<(0x7e1+4584-0x19c9)){return-(0x1fd+5123-0x15ff);}
-nDstLength=nSrcLength;for(i=(0x656+1118-0xab4);i<nSrcLength;i+=
-(0xd84+2465-0x1723)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-
-(0x880+7506-0x25d1))==((char)(0x3c6+6067-0x1b33))){pDst--;nDstLength--;}*pDst=
-'\0';return nDstLength;}UINT16 wms_ts_pack_gw_7_bit_chars(const UINT8*in,UINT16
-in_len,UINT16 shift,UINT16 out_len_max,UINT8*out){UINT16 i=(0x10f7+752-0x13e7);
-UINT16 pos=(0x19ff+2307-0x2302);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+*pDst,int nSrcLength){int nDstLength;char ch;int i=(0x1e0d+1038-0x221b);if(pSrc
+==NULL||pDst==NULL||nSrcLength<(0x133a+3785-0x2203)){return-(0x636+8066-0x25b7);
+}nDstLength=nSrcLength;for(i=(0x201+101-0x266);i<nSrcLength;i+=(0x8b7+57-0x8ee))
+{ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-(0x125+4611-0x1327))==
+((char)(0x162+4345-0x1215))){pDst--;nDstLength--;}*pDst='\0';return nDstLength;}
+UINT16 wms_ts_pack_gw_7_bit_chars(const UINT8*in,UINT16 in_len,UINT16 shift,
+UINT16 out_len_max,UINT8*out){UINT16 i=(0x1c7f+1958-0x2425);UINT16 pos=
+(0x156f+2217-0x1e18);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x70\x61\x63\x6b\x5f\x67\x77\x5f\x37\x5f\x62\x69\x74\x5f\x63\x68\x61\x72\x73"
-);return(0x736+4767-0x19d5);}shift%=(0x1911+135-0x1991);if(shift!=
-(0x8e2+2765-0x13af)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0xbf0+1257-0x10d2)-
-shift)+(0x707+2826-0x1210);if(shift==(0x3dc+6124-0x1bc1)){shift=
-(0x734+6183-0x1f5b);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[
-pos]=in[i]>>shift;if(i+(0xd12+4468-0x1e85)<in_len){out[pos]|=(UINT8)(in[i+
-(0x1b0+3793-0x1080)]<<((0x9d8+3373-0x16fe)-shift));shift++;if(shift==
-(0x134b+4915-0x2677)){shift=(0x77c+6057-0x1f25);i++;}}}return pos;}UINT8
+);return(0x1a27+2096-0x2257);}shift%=(0xeeb+3238-0x1b8a);if(shift!=
+(0x55f+7191-0x2176)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0x1ec+8870-0x248b)-
+shift)+(0x4a9+3518-0x1266);if(shift==(0x1104+3376-0x1e2d)){shift=
+(0x9ea+2654-0x1448);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[
+pos]=in[i]>>shift;if(i+(0x30c+2618-0xd45)<in_len){out[pos]|=(UINT8)(in[i+
+(0x569+1470-0xb26)]<<((0x11b+9517-0x2641)-shift));shift++;if(shift==
+(0x1165+3063-0x1d55)){shift=(0xc11+907-0xf9c);i++;}}}return pos;}UINT8
wms_ts_encode_address(const wms_address_s_type*addr,UINT8*data){UINT8 i,pos=
-(0x160d+1965-0x1dba);if(addr->number_of_digits>WMS_GW_ADDRESS_MAX){at_print(
+(0x1d46+546-0x1f68);if(addr->number_of_digits>WMS_GW_ADDRESS_MAX){at_print(
LOG_DEBUG,
"\x41\x64\x64\x72\x20\x6c\x65\x6e\x20\x74\x6f\x6f\x20\x6c\x6f\x6e\x67\x3a\x20\x25\x64"
-,addr->number_of_digits);return(0xc3+2481-0xa74);}if(addr->number_type==
+,addr->number_of_digits);return(0x4d2+8313-0x254b);}if(addr->number_type==
WMS_NUMBER_ALPHANUMERIC){data[pos]=(UINT8)((addr->number_of_digits*
-(0x1369+3658-0x21ac)+(0x872+5637-0x1e74))/(0x1530+3907-0x246f));}else{data[pos]=
-addr->number_of_digits;}pos++;data[pos]=(0x1283+93-0x1260);data[pos]|=(UINT8)((
-UINT8)addr->number_type<<(0x81+3054-0xc6b));data[pos]|=(UINT8)addr->number_plan;
-pos++;if(addr->number_type==WMS_NUMBER_ALPHANUMERIC){pos+=(UINT8)
-wms_ts_pack_gw_7_bit_chars(addr->digits,addr->number_of_digits,
-(0xb2+4352-0x11b2),WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=(0xd16+616-0xf7e);
-i<addr->number_of_digits;i++){data[pos]=(UINT8)(addr->digits[i++]&
-(0xa9d+2384-0x13de));{data[pos]|=(UINT8)(addr->digits[i]<<(0x465+5947-0x1b9c));}
-pos++;}}return pos;}UINT8 wms_ts_encode_dcs(const wms_gw_dcs_s_type*dcs,UINT8*
-data){UINT8 pos=(0x1694+1118-0x1af2);if(dcs->msg_waiting==
-WMS_GW_MSG_WAITING_NONE){data[pos]=dcs->is_compressed?(0x229c+375-0x23f3):
-(0x16+2248-0x8de);data[pos]|=(dcs->msg_class!=WMS_MESSAGE_CLASS_NONE)?
-(0xa6a+3464-0x17e2):(0x129+4665-0x1362);data[pos]|=dcs->alphabet<<
-(0x5b9+475-0x792);data[pos]|=dcs->msg_class&(0x1431+3448-0x21a6);}else if(dcs->
-msg_waiting==WMS_GW_MSG_WAITING_NONE_1111){data[pos]=(0x98a+7470-0x25c8);if(dcs
-->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]|=(0x246+7077-0x1de7);data[pos]|=dcs
-->msg_class&(0xe71+4315-0x1f49);}else{if(dcs->msg_waiting==
-WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x10dd+4686-0x226b);}else if(dcs->
-msg_waiting==WMS_GW_MSG_WAITING_STORE&&dcs->alphabet==
-WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0x1286+2620-0x1bf2);}else{data[pos]=
-(0x13ef+258-0x1411);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
-(0x1db2+1446-0x2350):(0x14c+6572-0x1af8);data[pos]|=dcs->msg_waiting_kind&
-(0x5c8+2517-0xf9a);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
-UINT8*result){unsigned char low_bit=(bcd&(0x10c5+3343-0x1dc5));unsigned char
-high_bit=((bcd&(0x109+3613-0xe36))>>(0x87c+5462-0x1dce));if(low_bit>
-(0x196+7019-0x1cf8)||high_bit>(0x1863+3147-0x24a5)){at_print(LOG_DEBUG,
+(0x7a4+7073-0x233e)+(0xff5+2093-0x181f))/(0xa48+2867-0x1577));}else{data[pos]=
+addr->number_of_digits;}pos++;data[pos]=(0x2483+493-0x25f0);data[pos]|=(UINT8)((
+UINT8)addr->number_type<<(0xedb+3251-0x1b8a));data[pos]|=(UINT8)addr->
+number_plan;pos++;if(addr->number_type==WMS_NUMBER_ALPHANUMERIC){pos+=(UINT8)
+wms_ts_pack_gw_7_bit_chars(addr->digits,addr->number_of_digits,(0x234+460-0x400)
+,WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=(0x88f+1307-0xdaa);i<addr->
+number_of_digits;i++){data[pos]=(UINT8)(addr->digits[i++]&(0x1aaf+341-0x1bf5));{
+data[pos]|=(UINT8)(addr->digits[i]<<(0x1064+828-0x139c));}pos++;}}return pos;}
+UINT8 wms_ts_encode_dcs(const wms_gw_dcs_s_type*dcs,UINT8*data){UINT8 pos=
+(0xe46+5394-0x2358);if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE){data[pos]=dcs
+->is_compressed?(0x544+6850-0x1fe6):(0x1b36+1144-0x1fae);data[pos]|=(dcs->
+msg_class!=WMS_MESSAGE_CLASS_NONE)?(0x1673+319-0x17a2):(0x9c+3223-0xd33);data[
+pos]|=dcs->alphabet<<(0xc1+5317-0x1584);data[pos]|=dcs->msg_class&
+(0x17cc+2012-0x1fa5);}else if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE_1111){
+data[pos]=(0x1255+1306-0x167f);if(dcs->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]
+|=(0x988+3939-0x18e7);data[pos]|=dcs->msg_class&(0x77b+2672-0x11e8);}else{if(dcs
+->msg_waiting==WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x360+117-0x315);}else if(
+dcs->msg_waiting==WMS_GW_MSG_WAITING_STORE&&dcs->alphabet==
+WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0xb38+6429-0x2385);}else{data[pos]=
+(0x5f8+8121-0x24d1);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
+(0xe58+1780-0x1544):(0x14ab+1998-0x1c79);data[pos]|=dcs->msg_waiting_kind&
+(0xc7f+848-0xfcc);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
+UINT8*result){unsigned char low_bit=(bcd&(0x1326+2191-0x1ba6));unsigned char
+high_bit=((bcd&(0xc09+3913-0x1a62))>>(0x2153+1048-0x2567));if(low_bit>
+(0x1aca+3096-0x26d9)||high_bit>(0x14+6858-0x1ad5)){at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x64\x69\x67\x69\x74\x21");*
-result=(0x82d+961-0xbee);return FALSE;}else{*result=((bcd&(0x125+2678-0xb8c))+((
-(bcd&(0x406+264-0x41e))>>(0x574+624-0x7e0))*(0xb4c+1163-0xfcd)));return TRUE;}}
-UINT8 wms_ts_encode_timestamp(const wms_timestamp_s_type*timestamp,UINT8*data){
-sint7 i;UINT8 pos=(0xcdd+337-0xe2e),j;if(!wms_ts_bcd_to_int(timestamp->year,&j))
-{return(0xf3a+2412-0x18a6);}data[pos]=((timestamp->year&(0x191+9129-0x252b))<<
-(0x42b+2408-0xd8f))+((timestamp->year&(0x352+7659-0x204d))>>(0x160+1471-0x71b));
-pos++;if(wms_ts_bcd_to_int(timestamp->month,&j)){if(j>(0x282+7600-0x2026)||j<
-(0xa1+1841-0x7d1)){at_print(LOG_DEBUG,
+result=(0x5a0+2687-0x101f);return FALSE;}else{*result=((bcd&(0x1a29+991-0x1df9))
++(((bcd&(0x111+429-0x1ce))>>(0xbba+1026-0xfb8))*(0x1036+5801-0x26d5)));return
+TRUE;}}UINT8 wms_ts_encode_timestamp(const wms_timestamp_s_type*timestamp,UINT8*
+data){sint7 i;UINT8 pos=(0x1db+6714-0x1c15),j;if(!wms_ts_bcd_to_int(timestamp->
+year,&j)){return(0xebf+377-0x1038);}data[pos]=((timestamp->year&
+(0x301+2217-0xb9b))<<(0xa94+5506-0x2012))+((timestamp->year&(0x3d0+2618-0xd1a))
+>>(0x9b4+3324-0x16ac));pos++;if(wms_ts_bcd_to_int(timestamp->month,&j)){if(j>
+(0x1851+2980-0x23e9)||j<(0x18e1+22-0x18f6)){at_print(LOG_DEBUG,
"\x4d\x6f\x6e\x74\x68\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);return(0x965+3518-0x1723);}}else{return(0x945+499-0xb38);}data[pos]=((
-timestamp->month&(0xf6a+3444-0x1ccf))<<(0x946+1901-0x10af))+((timestamp->month&
-(0x1bfc+596-0x1d60))>>(0x3b0+8026-0x2306));pos++;if(wms_ts_bcd_to_int(timestamp
-->day,&j)){if(j>(0xfa7+1046-0x139e)||j<(0x1c7a+1975-0x2430)){at_print(LOG_DEBUG,
+,j);return(0xa5f+3274-0x1729);}}else{return(0x14ab+934-0x1851);}data[pos]=((
+timestamp->month&(0x9af+1893-0x1105))<<(0x15b5+936-0x1959))+((timestamp->month&
+(0x4f4+6536-0x1d8c))>>(0x1019+375-0x118c));pos++;if(wms_ts_bcd_to_int(timestamp
+->day,&j)){if(j>(0x1a5+368-0x2f6)||j<(0x934+2864-0x1463)){at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);
-return(0x1418+1986-0x1bda);}}else{return(0x581+6091-0x1d4c);}data[pos]=((
-timestamp->day&(0x147b+2823-0x1f73))<<(0x9f4+2609-0x1421))+((timestamp->day&
-(0x1940+1560-0x1e68))>>(0x21f5+182-0x22a7));pos++;if(wms_ts_bcd_to_int(timestamp
-->hour,&j)){if(j>(0x235+7775-0x207d)){at_print(LOG_DEBUG,
+return(0x17f6+2053-0x1ffb);}}else{return(0x1818+1181-0x1cb5);}data[pos]=((
+timestamp->day&(0x10b3+2816-0x1ba4))<<(0x878+221-0x951))+((timestamp->day&
+(0x1d84+2155-0x24ff))>>(0x1220+5266-0x26ae));pos++;if(wms_ts_bcd_to_int(
+timestamp->hour,&j)){if(j>(0x8d+4513-0x1217)){at_print(LOG_DEBUG,
"\x48\x6f\x75\x72\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j
-);return(0x17d3+374-0x1949);}}else{return(0x1216+3041-0x1df7);}data[pos]=((
-timestamp->hour&(0x161c+1122-0x1a6f))<<(0x14c+9072-0x24b8))+((timestamp->hour&
-(0x177a+2027-0x1e75))>>(0x1039+1440-0x15d5));pos++;if(wms_ts_bcd_to_int(
-timestamp->minute,&j)){if(j>(0x1e3+5148-0x15c4)){at_print(LOG_DEBUG,
+);return(0x4bd+3184-0x112d);}}else{return(0x11fa+176-0x12aa);}data[pos]=((
+timestamp->hour&(0xb0f+7061-0x2695))<<(0x301+324-0x441))+((timestamp->hour&
+(0x827+7557-0x24bc))>>(0x5ff+1194-0xaa5));pos++;if(wms_ts_bcd_to_int(timestamp->
+minute,&j)){if(j>(0x166f+2191-0x1ec3)){at_print(LOG_DEBUG,
"\x4d\x69\x6e\x75\x74\x65\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);return(0x6dd+2366-0x101b);}}else{return(0xdaf+23-0xdc6);}data[pos]=((
-timestamp->minute&(0x6c3+6397-0x1fb1))<<(0x120d+2100-0x1a3d))+((timestamp->
-minute&(0x1501+2018-0x1bf3))>>(0x19c7+428-0x1b6f));pos++;if(wms_ts_bcd_to_int(
-timestamp->second,&j)){if(j>(0x11a5+4528-0x231a)){at_print(LOG_DEBUG,
+,j);return(0xd0f+1105-0x1160);}}else{return(0x10b+459-0x2d6);}data[pos]=((
+timestamp->minute&(0xe8+9002-0x2403))<<(0x302+2375-0xc45))+((timestamp->minute&
+(0x258+3642-0xfa2))>>(0xe88+4973-0x21f1));pos++;if(wms_ts_bcd_to_int(timestamp->
+second,&j)){if(j>(0x1e56+354-0x1f7d)){at_print(LOG_DEBUG,
"\x53\x65\x63\x6f\x6e\x64\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);return(0xdf6+6310-0x269c);}}else{return(0x72a+7730-0x255c);}data[pos]=((
-timestamp->second&(0xea9+4859-0x2195))<<(0x1054+3363-0x1d73))+((timestamp->
-second&(0x5e2+1645-0xb5f))>>(0x11fd+997-0x15de));pos++;i=(sint7)timestamp->
-timezone;if(i>(0x87a+7760-0x269a)||i<-(0x884+901-0xbd9)){at_print(LOG_DEBUG,
+,j);return(0x6bc+2081-0xedd);}}else{return(0xd81+5211-0x21dc);}data[pos]=((
+timestamp->second&(0x1758+3247-0x23f8))<<(0xdef+1467-0x13a6))+((timestamp->
+second&(0xeb8+2999-0x197f))>>(0x67+2919-0xbca));pos++;i=(sint7)timestamp->
+timezone;if(i>(0x130a+2663-0x1d41)||i<-(0xcf9+1877-0x141e)){at_print(LOG_DEBUG,
"\x54\x69\x6d\x65\x7a\x6f\x6e\x65\x20\x69\x73\x20\x6f\x75\x74\x20\x6f\x66\x20\x62\x6f\x75\x6e\x64\x3a\x20\x25\x64"
-,i);return(0x177a+3749-0x261f);}if(i>=(0x1674+1609-0x1cbd)){data[pos]=(UINT8)(((
-UINT8)(i%(0x1776+2566-0x2172)))<<(0x161a+3022-0x21e4));data[pos]|=(i/
-(0x98d+1588-0xfb7));}else{i*=(-(0x1213+3113-0x1e3b));data[pos]=(UINT8)(((UINT8)(
-i%(0x264+8205-0x2267)))<<(0x13cb+4030-0x2385));data[pos]|=(i/
-(0x1089+4282-0x2139));data[pos]|=(0x1a14+358-0x1b72);}pos++;return pos;}UINT8
-wms_ts_get_udh_length(const wms_udh_s_type*udh){UINT8 length=(0xc71+3686-0x1ad7)
-;if(udh!=NULL){switch(udh->header_id){case WMS_UDH_CONCAT_8:length=
-(0xe2+1226-0x5ab)+(0xa23+1760-0x1102)+WMS_UDH_OCTETS_CONCAT8;break;case
-WMS_UDH_CONCAT_16:length=(0x1363+144-0x13f2)+(0x2d0+8017-0x2220)+
-WMS_UDH_OCTETS_CONCAT16;break;case WMS_UDH_SPECIAL_SM:length=(0xb69+1559-0x117f)
-+(0x19c+9457-0x268c)+WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=
-(0x14a4+2280-0x1d8b)+(0x1c4+732-0x49f)+WMS_UDH_OCTETS_PORT8;break;case
-WMS_UDH_PORT_16:length=(0x1eec+1128-0x2353)+(0x13f1+2872-0x1f28)+
-WMS_UDH_OCTETS_PORT16;break;case WMS_UDH_SMSC_CONTROL:length=(0xb1a+3464-0x18a1)
-+(0x13b+5141-0x154f)+udh->u.other.header_length;break;case WMS_UDH_SOURCE:length
-=(0x7a3+446-0x960)+(0x882+4422-0x19c7)+udh->u.other.header_length;break;case
-WMS_UDH_WCMP:length=(0x907+2164-0x117a)+(0x902+1761-0xfe2)+udh->u.other.
-header_length;break;case WMS_UDH_TEXT_FORMATING:if(!udh->u.text_formating.
-is_color_present){length=(0x13ea+823-0x1720)+(0x1c93+1324-0x21be)+
-WMS_UDH_OCTETS_TEXT_FORMATTING;}else{length=(0x1486+324-0x15c9)+
-(0x14e0+4429-0x262c)+WMS_UDH_OCTETS_TEXT_FORMATTING+(0xfef+330-0x1138);}break;
-case WMS_UDH_PRE_DEF_SOUND:length=(0x355+2373-0xc99)+(0x2bb+4776-0x1562)+
-WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_USER_DEF_SOUND:length=
-(0x99d+6606-0x236a)+(0x177+9321-0x25df)+udh->u.user_def_sound.data_length+
-(0x647+4335-0x1735);break;case WMS_UDH_PRE_DEF_ANIM:length=(0x7c1+2218-0x106a)+
-(0x7ba+6178-0x1fdb)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_LARGE_ANIM:length=
-(0x1952+3278-0x261f)+(0x2d+3546-0xe06)+WMS_UDH_LARGE_BITMAP_SIZE*
-WMS_UDH_ANIM_NUM_BITMAPS+(0xf08+348-0x1063);break;case WMS_UDH_SMALL_ANIM:length
-=(0x3e4+3738-0x127d)+(0x1a07+1994-0x21d0)+WMS_UDH_SMALL_BITMAP_SIZE*
-WMS_UDH_ANIM_NUM_BITMAPS+(0x821+43-0x84b);break;case WMS_UDH_LARGE_PICTURE:
-length=(0x16ac+4151-0x26e2)+(0xfa7+5707-0x25f1)+WMS_UDH_LARGE_PIC_SIZE+
-(0x525+7995-0x245f);break;case WMS_UDH_SMALL_PICTURE:length=(0x1c67+568-0x1e9e)+
-(0x4cd+3578-0x12c6)+WMS_UDH_SMALL_PIC_SIZE+(0x10f+4400-0x123e);break;case
-WMS_UDH_VAR_PICTURE:length=(0x333+794-0x64c)+(0x1072+1838-0x179f)+(UINT8)(udh->u
-.var_picture.height*udh->u.var_picture.width/(0xa82+43-0xaa5))+
-(0x15e8+1275-0x1ae0);break;case WMS_UDH_RFC822:length=(0x6d1+3465-0x1459)+
-(0x468+1742-0xb35)+WMS_UDH_OCTETS_RFC822;break;case WMS_UDH_NAT_LANG_SS:length=
-(0x729+7052-0x22b4)+(0x234+2284-0xb1f)+WMS_UDH_OCTETS_NAT_LANG_SS;break;case
-WMS_UDH_NAT_LANG_LS:length=(0x78b+1560-0xda2)+(0x2371+249-0x2469)+
-WMS_UDH_OCTETS_NAT_LANG_LS;break;case WMS_UDH_USER_PROMPT:length=
-(0x1ec7+845-0x2213)+(0x94+8664-0x226b)+WMS_UDH_OCTETS_USER_PROMPT;break;case
-WMS_UDH_EXTENDED_OBJECT:length=(0x79a+7365-0x245e)+(0x20df+1524-0x26d2)+udh->u.
-eo.content.length;if(udh->u.eo.first_segment==TRUE){length+=
-WMS_UDH_OCTETS_EO_HEADER;}break;default:length=(0x4b1+6934-0x1fc6)+
-(0x947+6420-0x225a)+udh->u.other.header_length;break;}}return length;}uint32
-wms_ts_compute_user_data_header_length(const UINT8 num_headers,const
-wms_udh_s_type*headers){uint32 length=(0x19f3+1883-0x214e);uint32 i;if(headers==
-NULL){at_print(LOG_DEBUG,
+,i);return(0x9b1+2280-0x1299);}if(i>=(0x2f8+3797-0x11cd)){data[pos]=(UINT8)(((
+UINT8)(i%(0xa8b+3180-0x16ed)))<<(0x557+2998-0x1109));data[pos]|=(i/
+(0x13cb+1116-0x181d));}else{i*=(-(0x205+8508-0x2340));data[pos]=(UINT8)(((UINT8)
+(i%(0x100b+3831-0x1ef8)))<<(0x733+2117-0xf74));data[pos]|=(i/(0x381+6369-0x1c58)
+);data[pos]|=(0x4d+826-0x37f);}pos++;return pos;}UINT8 wms_ts_get_udh_length(
+const wms_udh_s_type*udh){UINT8 length=(0x283+6202-0x1abd);if(udh!=NULL){switch(
+udh->header_id){case WMS_UDH_CONCAT_8:length=(0x1695+3049-0x227d)+
+(0x163a+2276-0x1f1d)+WMS_UDH_OCTETS_CONCAT8;break;case WMS_UDH_CONCAT_16:length=
+(0xbff+1508-0x11e2)+(0x7b2+540-0x9cd)+WMS_UDH_OCTETS_CONCAT16;break;case
+WMS_UDH_SPECIAL_SM:length=(0x1e4+5225-0x164c)+(0x1682+3366-0x23a7)+
+WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=(0x1548+2232-0x1dff)+
+(0x354+4459-0x14be)+WMS_UDH_OCTETS_PORT8;break;case WMS_UDH_PORT_16:length=
+(0x14b3+2411-0x1e1d)+(0x783+82-0x7d4)+WMS_UDH_OCTETS_PORT16;break;case
+WMS_UDH_SMSC_CONTROL:length=(0x2f5+1449-0x89d)+(0x1a8c+247-0x1b82)+udh->u.other.
+header_length;break;case WMS_UDH_SOURCE:length=(0x3+5716-0x1656)+
+(0x13f6+2155-0x1c60)+udh->u.other.header_length;break;case WMS_UDH_WCMP:length=
+(0x9c5+2377-0x130d)+(0xe33+5226-0x229c)+udh->u.other.header_length;break;case
+WMS_UDH_TEXT_FORMATING:if(!udh->u.text_formating.is_color_present){length=
+(0x1363+2175-0x1be1)+(0x10c+1861-0x850)+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{
+length=(0x984+2826-0x148d)+(0x1c4+7762-0x2015)+WMS_UDH_OCTETS_TEXT_FORMATTING+
+(0x1361+1617-0x19b1);}break;case WMS_UDH_PRE_DEF_SOUND:length=
+(0xf51+4756-0x21e4)+(0x88a+2060-0x1095)+WMS_UDH_OCTETS_PRE_DEF;break;case
+WMS_UDH_USER_DEF_SOUND:length=(0x1880+2585-0x2298)+(0x1309+4960-0x2668)+udh->u.
+user_def_sound.data_length+(0x2368+458-0x2531);break;case WMS_UDH_PRE_DEF_ANIM:
+length=(0x712+4675-0x1954)+(0x15f3+2944-0x2172)+WMS_UDH_OCTETS_PRE_DEF;break;
+case WMS_UDH_LARGE_ANIM:length=(0x22f5+874-0x265e)+(0x17fb+3808-0x26da)+
+WMS_UDH_LARGE_BITMAP_SIZE*WMS_UDH_ANIM_NUM_BITMAPS+(0xb0f+3016-0x16d6);break;
+case WMS_UDH_SMALL_ANIM:length=(0x2eb+3858-0x11fc)+(0xa11+6171-0x222b)+
+WMS_UDH_SMALL_BITMAP_SIZE*WMS_UDH_ANIM_NUM_BITMAPS+(0x11c1+603-0x141b);break;
+case WMS_UDH_LARGE_PICTURE:length=(0x5b1+4335-0x169f)+(0x15d+3695-0xfcb)+
+WMS_UDH_LARGE_PIC_SIZE+(0x61d+7564-0x23a8);break;case WMS_UDH_SMALL_PICTURE:
+length=(0x176c+129-0x17ec)+(0xcbf+898-0x1040)+WMS_UDH_SMALL_PIC_SIZE+
+(0x2162+1248-0x2641);break;case WMS_UDH_VAR_PICTURE:length=(0x1b1f+2179-0x23a1)+
+(0x5fc+2467-0xf9e)+(UINT8)(udh->u.var_picture.height*udh->u.var_picture.width/
+(0x9cd+4973-0x1d32))+(0x1856+2015-0x2032);break;case WMS_UDH_RFC822:length=
+(0x1718+3616-0x2537)+(0x876+3588-0x1679)+WMS_UDH_OCTETS_RFC822;break;case
+WMS_UDH_NAT_LANG_SS:length=(0x10a+3449-0xe82)+(0x1c46+1253-0x212a)+
+WMS_UDH_OCTETS_NAT_LANG_SS;break;case WMS_UDH_NAT_LANG_LS:length=
+(0x1aa3+3084-0x26ae)+(0x201+372-0x374)+WMS_UDH_OCTETS_NAT_LANG_LS;break;case
+WMS_UDH_USER_PROMPT:length=(0x875+2686-0x12f2)+(0x1499+2743-0x1f4f)+
+WMS_UDH_OCTETS_USER_PROMPT;break;case WMS_UDH_EXTENDED_OBJECT:length=
+(0x141+6472-0x1a88)+(0xd59+2621-0x1795)+udh->u.eo.content.length;if(udh->u.eo.
+first_segment==TRUE){length+=WMS_UDH_OCTETS_EO_HEADER;}break;default:length=
+(0x101a+5007-0x23a8)+(0xcbd+4930-0x1ffe)+udh->u.other.header_length;break;}}
+return length;}uint32 wms_ts_compute_user_data_header_length(const UINT8
+num_headers,const wms_udh_s_type*headers){uint32 length=(0x1807+3525-0x25cc);
+uint32 i;if(headers==NULL){at_print(LOG_DEBUG,
"\x4e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x63\x6f\x6d\x70\x75\x74\x65\x5f\x75\x73\x65\x72\x5f\x64\x61\x74\x61\x5f\x68\x65\x61\x64\x65\x72\x5f\x6c\x65\x6e\x67\x74\x68\x21"
-);return(0x1420+3631-0x224f);}if(num_headers>(0x255a+35-0x257d)){length+=
-(0xd38+1475-0x12fa);for(i=(0x61+2069-0x876);i<num_headers&&i<WMS_MAX_UD_HEADERS;
-i++){length+=(uint32)wms_ts_get_udh_length(&headers[i]);}}return length;}uint32
-wms_ts_compute_gw_user_data_length(const wms_gw_dcs_s_type*dcs,const
-wms_gw_user_data_s_type*user_data){uint32 length=(0x1299+1948-0x1a35);if(dcs==
-NULL||user_data==NULL){at_print(LOG_DEBUG,
+);return(0x19e9+1237-0x1ebe);}if(num_headers>(0x15ec+772-0x18f0)){length+=
+(0x1194+2171-0x1a0e);for(i=(0x4d6+2579-0xee9);i<num_headers&&i<
+WMS_MAX_UD_HEADERS;i++){length+=(uint32)wms_ts_get_udh_length(&headers[i]);}}
+return length;}uint32 wms_ts_compute_gw_user_data_length(const wms_gw_dcs_s_type
+*dcs,const wms_gw_user_data_s_type*user_data){uint32 length=(0x1ea4+2017-0x2685)
+;if(dcs==NULL||user_data==NULL){at_print(LOG_DEBUG,
"\x4e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x63\x6f\x6d\x70\x75\x74\x65\x5f\x67\x77\x5f\x75\x73\x65\x72\x5f\x64\x61\x74\x61\x5f\x6c\x65\x6e\x67\x74\x68\x21"
-);return(0xf7d+5202-0x23cf);}length+=wms_ts_compute_user_data_header_length(
+);return(0x1476+2224-0x1d26);}length+=wms_ts_compute_user_data_header_length(
user_data->num_headers,user_data->headers);if(dcs->alphabet==
-WMS_GW_ALPHABET_7_BIT_DEFAULT){length+=((user_data->sm_len*(0x21f6+1255-0x26d6))
-+(0x23+8839-0x22a3))/(0xeb5+982-0x1283);}else{length+=user_data->sm_len;}return
-length;}static int wms_ts_encode_udh_concat_8(UINT8*udh){int pos=
-(0x8da+2912-0x143a);if(const_header->u.concat_8.total_sm==(0xb+8227-0x202e)||
-const_header->u.concat_8.seq_num==(0xb4b+6842-0x2605)||const_header->u.concat_8.
+WMS_GW_ALPHABET_7_BIT_DEFAULT){length+=((user_data->sm_len*(0x7f6+2410-0x1159))+
+(0x1593+367-0x16fb))/(0xad3+1478-0x1091);}else{length+=user_data->sm_len;}return
+ length;}static int wms_ts_encode_udh_concat_8(UINT8*udh){int pos=
+(0x5a4+8518-0x26ea);if(const_header->u.concat_8.total_sm==(0xc9+5483-0x1634)||
+const_header->u.concat_8.seq_num==(0xd87+2640-0x17d7)||const_header->u.concat_8.
seq_num>const_header->u.concat_8.total_sm){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x69\x64\x20\x25\x64\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x6e\x6f\x20\x44\x61\x74\x61"
-,const_header->header_id);return(0x2132+992-0x2512);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0xa9b+6809-0x2534);}udh[pos++]=(UINT8)
WMS_UDH_CONCAT_8;udh[pos++]=(UINT8)WMS_UDH_OCTETS_CONCAT8;udh[pos++]=
const_header->u.concat_8.msg_ref;udh[pos++]=const_header->u.concat_8.total_sm;
udh[pos++]=const_header->u.concat_8.seq_num;return pos;}static int
-wms_ts_encode_udh_concat16(UINT8*udh){int pos=(0x1d10+2417-0x2681);if(
-const_header->u.concat_16.total_sm==(0x832+2304-0x1132)||const_header->u.
-concat_16.seq_num==(0x1b16+2037-0x230b)||const_header->u.concat_16.seq_num>
+wms_ts_encode_udh_concat16(UINT8*udh){int pos=(0x956+3210-0x15e0);if(
+const_header->u.concat_16.total_sm==(0xa5b+3878-0x1981)||const_header->u.
+concat_16.seq_num==(0x129d+4390-0x23c3)||const_header->u.concat_16.seq_num>
const_header->u.concat_16.total_sm){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x69\x64\x20\x25\x64\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x6e\x6f\x20\x44\x61\x74\x61"
-,const_header->header_id);return(0x1aa0+913-0x1e31);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0x20c+5147-0x1627);}udh[pos++]=(UINT8)
WMS_UDH_CONCAT_16;udh[pos++]=(UINT8)WMS_UDH_OCTETS_CONCAT16;udh[pos++]=(UINT8)((
-const_header->u.concat_16.msg_ref&65280)>>(0x34d+3314-0x1037));udh[pos++]=(UINT8
-)(const_header->u.concat_16.msg_ref&(0x594+1174-0x92b));udh[pos++]=const_header
+const_header->u.concat_16.msg_ref&65280)>>(0xc92+6188-0x24b6));udh[pos++]=(UINT8
+)(const_header->u.concat_16.msg_ref&(0xcf7+4429-0x1d45));udh[pos++]=const_header
->u.concat_16.total_sm;udh[pos++]=const_header->u.concat_16.seq_num;return pos;}
-int wms_ts_encode_udh_nat_lang_ss(UINT8*udh){int pos=(0x8da+358-0xa40);udh[pos++
-]=(UINT8)WMS_UDH_NAT_LANG_SS;udh[pos++]=(UINT8)WMS_UDH_OCTETS_NAT_LANG_SS;udh[
+int wms_ts_encode_udh_nat_lang_ss(UINT8*udh){int pos=(0xd75+1215-0x1234);udh[pos
+++]=(UINT8)WMS_UDH_NAT_LANG_SS;udh[pos++]=(UINT8)WMS_UDH_OCTETS_NAT_LANG_SS;udh[
pos++]=(UINT8)const_header->u.nat_lang_ss.nat_lang_id;return pos;}int
-wms_ts_encode_udh_nat_lang_ls(UINT8*udh){int pos=(0x1f41+1891-0x26a4);udh[pos++]
-=(UINT8)WMS_UDH_NAT_LANG_LS;udh[pos++]=(UINT8)WMS_UDH_OCTETS_NAT_LANG_LS;udh[pos
+wms_ts_encode_udh_nat_lang_ls(UINT8*udh){int pos=(0x1e60+172-0x1f0c);udh[pos++]=
+(UINT8)WMS_UDH_NAT_LANG_LS;udh[pos++]=(UINT8)WMS_UDH_OCTETS_NAT_LANG_LS;udh[pos
++]=(UINT8)const_header->u.nat_lang_ls.nat_lang_id;return pos;}int
wms_ts_encode_udh_other(UINT8*udh,wms_udh_id_e_type header_id){int i=
-(0x70c+1254-0xbf2);int pos=(0x737+7921-0x2628);udh[pos++]=(UINT8)const_header->u
-.other.header_id;udh[pos++]=const_header->u.other.header_length;for(i=
-(0x4c3+7686-0x22c9);i<const_header->u.other.header_length;i++){udh[pos++]=
+(0x18f8+1894-0x205e);int pos=(0x1838+2604-0x2264);udh[pos++]=(UINT8)const_header
+->u.other.header_id;udh[pos++]=const_header->u.other.header_length;for(i=
+(0x2549+403-0x26dc);i<const_header->u.other.header_length;i++){udh[pos++]=
const_header->u.other.data[i];}return pos;}UINT8 wms_ts_encode_user_data_header(
UINT8 num_headers,const wms_udh_s_type*headers,UINT8*data){int i,pos=
-(0x413+2764-0xedf);if(num_headers==(0x1a4f+1775-0x213e))return
-(0xd53+5654-0x2369);++pos;for(i=(0x70+8939-0x235b);i<WMS_MAX_UD_HEADERS&&i<
+(0xbfa+1350-0x1140);if(num_headers==(0xc2d+4775-0x1ed4))return
+(0x1b62+1080-0x1f9a);++pos;for(i=(0x127f+2392-0x1bd7);i<WMS_MAX_UD_HEADERS&&i<
num_headers;i++){const_header=&headers[i];switch(const_header->header_id){case
WMS_UDH_CONCAT_8:pos+=wms_ts_encode_udh_concat_8(data+pos);break;case
WMS_UDH_CONCAT_16:pos+=wms_ts_encode_udh_concat16(data+pos);break;
-#if (0x380+4235-0x140b)
+#if (0x163+3586-0xf65)
case WMS_UDH_SPECIAL_SM:pos+=wms_ts_encode_udh_special_sm(data+pos);break;case
WMS_UDH_PORT_8:pos+=wms_ts_encode_udh_port_8(data+pos);break;case
WMS_UDH_PORT_16:pos+=wms_ts_encode_udh_port16(data+pos);break;case
@@ -1312,104 +1313,104 @@
case WMS_UDH_NAT_LANG_SS:pos+=wms_ts_encode_udh_nat_lang_ss(data+pos);break;case
WMS_UDH_NAT_LANG_LS:pos+=wms_ts_encode_udh_nat_lang_ls(data+pos);break;default:
pos+=wms_ts_encode_udh_other(data+pos,const_header->header_id);}}data[
-(0x383+3463-0x110a)]=(UINT8)(pos-(0x55c+8513-0x269c));return((UINT8)(pos-
-(0xb37+1948-0x12d2)));}UINT8 wms_ts_encode_gw_user_data(const wms_gw_dcs_s_type*
+(0x17b7+1097-0x1c00)]=(UINT8)(pos-(0xee6+5266-0x2377));return((UINT8)(pos-
+(0x1d55+999-0x213b)));}UINT8 wms_ts_encode_gw_user_data(const wms_gw_dcs_s_type*
dcs,const wms_gw_user_data_s_type*user_data,UINT8*data){UINT16 i,pos=
-(0x1b55+792-0x1e6d);UINT8 fill_bits=(0x2ad+2670-0xd1b);UINT16
+(0x1a6+6024-0x192e);UINT8 fill_bits=(0x2ca+5493-0x183f);UINT16
total_bits_occupied;UINT8 user_data_header_length;UINT16 user_data_length;data[
pos]=(UINT8)user_data->sm_len;pos++;if(dcs->alphabet==
-WMS_GW_ALPHABET_7_BIT_DEFAULT){if(user_data->num_headers>(0xa44+1355-0xf8f)){if(
-wms_ts_compute_user_data_header_length(user_data->num_headers,user_data->headers
-)<=WMS_SMS_UDL_MAX_8_BIT){user_data_header_length=wms_ts_encode_user_data_header
-(user_data->num_headers,user_data->headers,data+pos);pos+=
-user_data_header_length+(0xe4a+949-0x11fe);total_bits_occupied=(
-user_data_header_length+(0xb46+64-0xb85))*(0x5cf+7935-0x24c6);fill_bits=(
-total_bits_occupied%(0x18e1+131-0x195d));if(fill_bits!=(0x59a+3349-0x12af)){
-fill_bits=(0xc0c+4195-0x1c68)-fill_bits;}user_data_length=(total_bits_occupied+
-fill_bits+(user_data->sm_len*(0xaf+7055-0x1c37)))/(0x1834+493-0x1a1a);data[
-(0x9d4+2959-0x1563)]=(UINT8)user_data_length;data[(0x22b+6331-0x1ae5)]=
+WMS_GW_ALPHABET_7_BIT_DEFAULT){if(user_data->num_headers>(0xf18+1427-0x14ab)){if
+(wms_ts_compute_user_data_header_length(user_data->num_headers,user_data->
+headers)<=WMS_SMS_UDL_MAX_8_BIT){user_data_header_length=
+wms_ts_encode_user_data_header(user_data->num_headers,user_data->headers,data+
+pos);pos+=user_data_header_length+(0x11b0+4313-0x2288);total_bits_occupied=(
+user_data_header_length+(0x14d1+2922-0x203a))*(0x17c5+98-0x181f);fill_bits=(
+total_bits_occupied%(0x6f4+4595-0x18e0));if(fill_bits!=(0x1819+1780-0x1f0d)){
+fill_bits=(0x1924+3250-0x25cf)-fill_bits;}user_data_length=(total_bits_occupied+
+fill_bits+(user_data->sm_len*(0x60d+2865-0x1137)))/(0x12f3+4856-0x25e4);data[
+(0x21dc+380-0x2358)]=(UINT8)user_data_length;data[(0x798+6893-0x2284)]=
user_data_header_length;}else{at_print(LOG_DEBUG,
"\x45\x6e\x63\x6f\x64\x65\x20\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x48\x65\x61\x64\x65\x72\x20\x45\x78\x63\x65\x65\x64\x73\x20\x43\x61\x70\x61\x63\x69\x74\x79\x20\x2d\x20\x53\x6b\x69\x70\x70\x69\x6e\x67\x20\x55\x44\x48"
);}}i=wms_ts_pack_gw_7_bit_chars(user_data->sm_data,user_data->sm_len,fill_bits,
(UINT16)(WMS_MAX_LEN-pos),&data[pos]);pos+=i;}else{if(user_data->num_headers>
-(0x1a5c+24-0x1a74)){if(wms_ts_compute_user_data_header_length(user_data->
+(0x594+5172-0x19c8)){if(wms_ts_compute_user_data_header_length(user_data->
num_headers,user_data->headers)<=WMS_SMS_UDL_MAX_8_BIT){user_data_header_length=
wms_ts_encode_user_data_header(user_data->num_headers,user_data->headers,data+
-pos);data[(0xb98+2865-0x16c9)]=(UINT8)(user_data->sm_len+user_data_header_length
-+(0x3b7+1418-0x940));pos+=user_data_header_length+(0xbb8+3714-0x1a39);}else{
+pos);data[(0xdfc+4729-0x2075)]=(UINT8)(user_data->sm_len+user_data_header_length
++(0xa36+985-0xe0e));pos+=user_data_header_length+(0x1219+4688-0x2468);}else{
at_print(LOG_DEBUG,
"\x45\x6e\x63\x6f\x64\x65\x20\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x48\x65\x61\x64\x65\x72\x20\x45\x78\x63\x65\x65\x64\x73\x20\x43\x61\x70\x61\x63\x69\x74\x79\x20\x2d\x20\x53\x6b\x69\x70\x70\x69\x6e\x67\x20\x55\x44\x48"
);}}memcpy(&data[pos],user_data->sm_data,user_data->sm_len);pos+=user_data->
sm_len;}return(UINT8)pos;}wms_status_e_type wms_ts_encode_deliver(const
wms_gw_deliver_s_type*deliver,T_zUfiSms_RawTsData*raw_ts_data_ptr){
-wms_status_e_type st=WMS_OK_S;UINT8*data;UINT8 pos=(0x9e5+2815-0x14e4),i;if(
+wms_status_e_type st=WMS_OK_S;UINT8*data;UINT8 pos=(0x1834+856-0x1b8c),i;if(
deliver==NULL||raw_ts_data_ptr==NULL){at_print(LOG_DEBUG,
"\x4e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x65\x6e\x63\x6f\x64\x65\x5f\x64\x65\x6c\x69\x76\x65\x72\x21"
);return WMS_NULL_PTR_S;}data=raw_ts_data_ptr->data;(void)memset(data,
-(0x1ae3+2064-0x22f3),WMS_MAX_LEN);data[pos]=(0x762+7759-0x25b1);data[pos]|=
-deliver->more?(0x342+4104-0x134a):(0x1014+4770-0x22b2);data[pos]|=deliver->
-status_report_enabled?(0x1cd+4244-0x1241):(0x128f+4373-0x23a4);data[pos]|=
-deliver->user_data_header_present?(0x3a9+8600-0x2501):(0x156c+1513-0x1b55);data[
-pos]|=deliver->reply_path_present?(0x20e5+1675-0x26f0):(0x1f16+68-0x1f5a);pos++;
-i=wms_ts_encode_address(&deliver->address,&data[pos]);if(i==(0x399+1272-0x891)){
-return WMS_INVALID_PARM_SIZE_S;}pos+=i;data[pos]=deliver->pid;pos++;pos+=
+(0x549+656-0x7d9),WMS_MAX_LEN);data[pos]=(0xb2b+6413-0x2438);data[pos]|=deliver
+->more?(0xc05+6582-0x25bb):(0x2065+985-0x243a);data[pos]|=deliver->
+status_report_enabled?(0x572+5355-0x1a3d):(0x220b+1249-0x26ec);data[pos]|=
+deliver->user_data_header_present?(0x822+2272-0x10c2):(0xae6+6871-0x25bd);data[
+pos]|=deliver->reply_path_present?(0xc81+1165-0x108e):(0xf98+3093-0x1bad);pos++;
+i=wms_ts_encode_address(&deliver->address,&data[pos]);if(i==(0x14d1+3190-0x2147)
+){return WMS_INVALID_PARM_SIZE_S;}pos+=i;data[pos]=deliver->pid;pos++;pos+=
wms_ts_encode_dcs(&deliver->dcs,data+pos);i=wms_ts_encode_timestamp(&deliver->
-timestamp,data+pos);if(i==(0x10a4+1572-0x16c8)){return WMS_INVALID_PARM_VALUE_S;
-}pos+=i;if(wms_ts_compute_gw_user_data_length(&deliver->dcs,&deliver->user_data)
->WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
+timestamp,data+pos);if(i==(0xd5a+2659-0x17bd)){return WMS_INVALID_PARM_VALUE_S;}
+pos+=i;if(wms_ts_compute_gw_user_data_length(&deliver->dcs,&deliver->user_data)>
+WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
"\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x4c\x65\x6e\x67\x74\x68\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x63\x61\x70\x61\x63\x69\x74\x79"
);st=WMS_INVALID_USER_DATA_SIZE_S;}else{i=wms_ts_encode_gw_user_data(&deliver->
dcs,&deliver->user_data,data+pos);pos+=i;}raw_ts_data_ptr->tpdu_type=
WMS_TPDU_DELIVER;raw_ts_data_ptr->len=pos;return st;}UINT8
wms_ts_encode_relative_time(const wms_timestamp_s_type*timestamp){uint32 i;UINT8
- v=(0x134c+4175-0x239b),j;if(timestamp!=NULL){if(!wms_ts_bcd_to_int(timestamp->
+ v=(0x66+8695-0x225d),j;if(timestamp!=NULL){if(!wms_ts_bcd_to_int(timestamp->
year,&j)){at_print(LOG_DEBUG,
"\x59\x65\x61\x72\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j
-);}i=j*(0x1128+5011-0x234e);if(!wms_ts_bcd_to_int(timestamp->month,&j)){at_print
+);}i=j*(0x14d1+1248-0x1844);if(!wms_ts_bcd_to_int(timestamp->month,&j)){at_print
(LOG_DEBUG,
"\x4d\x6f\x6e\x74\x68\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);}i=i+j*(0x356+7777-0x2199);if(!wms_ts_bcd_to_int(timestamp->day,&j)){
+,j);}i=i+j*(0x364+6710-0x1d7c);if(!wms_ts_bcd_to_int(timestamp->day,&j)){
at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);}i
-+=j;if(i>(0x1454+3127-0x206d)){v=(UINT8)((i+(0x138b+4578-0x2567))/
-(0x2d8+530-0x4e3)+(0x1c67+2045-0x23a4));}else if(i>=(0x73b+1149-0xbb7)){v=(UINT8
-)(i+(0x736+1521-0xc81));}else{if(!wms_ts_bcd_to_int(timestamp->day,&j)){at_print
-(LOG_DEBUG,
++=j;if(i>(0x1039+990-0x13f9)){v=(UINT8)((i+(0x26d+1467-0x822))/
+(0x40c+4719-0x1674)+(0x13b1+3603-0x2104));}else if(i>=(0x335+8641-0x24f5)){v=(
+UINT8)(i+(0x11b4+2781-0x1beb));}else{if(!wms_ts_bcd_to_int(timestamp->day,&j)){
+at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);}i
-=j*(0x60c+2559-0xff3)*(0x8b0+1785-0xf6d);if(!wms_ts_bcd_to_int(timestamp->hour,&
-j)){at_print(LOG_DEBUG,
+=j*(0x109b+2869-0x1bb8)*(0xabb+1542-0x1085);if(!wms_ts_bcd_to_int(timestamp->
+hour,&j)){at_print(LOG_DEBUG,
"\x48\x6f\x75\x72\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j
-);}i=i+j*(0x178+2863-0xc6b);if(!wms_ts_bcd_to_int(timestamp->minute,&j)){
+);}i=i+j*(0x1eb7+2127-0x26ca);if(!wms_ts_bcd_to_int(timestamp->minute,&j)){
at_print(LOG_DEBUG,
"\x4d\x69\x6e\x75\x74\x65\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);}i+=j;if(i>(0x4fa+221-0x5cb)*(0x3f1+4641-0x15d6)){v=(UINT8)((i-((
-(0x157d+3347-0x2284)*(0xb15+4265-0x1b82))+(0xd19+4805-0x1fc1)))/
-(0x717+3560-0x14e1)+(0x602+7996-0x24af));}else{v=(UINT8)((i+(0x173a+1161-0x1bbf)
-)/(0x1575+849-0x18c1)-(0x24b5+137-0x253d));}}}else{at_print(LOG_DEBUG,
+,j);}i+=j;if(i>(0xb94+3910-0x1ace)*(0x1109+5045-0x2482)){v=(UINT8)((i-((
+(0x4ed+2180-0xd65)*(0x1173+4034-0x20f9))+(0x46b+2871-0xf85)))/(0x1fc+1141-0x653)
++(0x49b+185-0x4c5));}else{v=(UINT8)((i+(0x1553+2010-0x1d29))/(0x765+1720-0xe18)-
+(0x21cf+1029-0x25d3));}}}else{at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x65\x6e\x63\x6f\x64\x65\x5f\x72\x65\x6c\x61\x74\x69\x76\x65\x5f\x74\x69\x6d\x65"
);}return v;}UINT8 wms_ts_encode_gw_validity(const wms_gw_validity_s_type*
-validity,UINT8*data){UINT8 i,pos=(0x9ed+3125-0x1622);switch(validity->format){
+validity,UINT8*data){UINT8 i,pos=(0x5bb+3440-0x132b);switch(validity->format){
case WMS_GW_VALIDITY_NONE:break;case WMS_GW_VALIDITY_RELATIVE:data[pos]=
wms_ts_encode_relative_time(&validity->u.time);pos++;break;case
WMS_GW_VALIDITY_ABSOLUTE:i=wms_ts_encode_timestamp(&validity->u.time,data+pos);
-if(i==(0x1519+3983-0x24a8)){at_print(LOG_DEBUG,
+if(i==(0xc02+6615-0x25d9)){at_print(LOG_DEBUG,
"\x45\x72\x72\x6f\x72\x20\x77\x68\x69\x6c\x65\x20\x44\x65\x63\x6f\x64\x69\x6e\x67\x20\x41\x62\x73\x6f\x6c\x75\x74\x65\x20\x56\x61\x6c\x69\x64\x69\x74\x79\x20\x54\x69\x6d\x65\x73\x74\x61\x6d\x70"
);}pos+=i;break;case WMS_GW_VALIDITY_ENHANCED:break;default:break;}return pos;}
wms_status_e_type wms_ts_encode_submit(const wms_gw_submit_s_type*submit,
T_zUfiSms_RawTsData*raw_ts_data_ptr){wms_status_e_type st=WMS_OK_S;UINT8*data;
-UINT8 pos=(0x56b+3714-0x13ed),i;if(submit==NULL||raw_ts_data_ptr==NULL){at_print
+UINT8 pos=(0xc66+3014-0x182c),i;if(submit==NULL||raw_ts_data_ptr==NULL){at_print
(LOG_DEBUG,
"\x4e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x65\x6e\x63\x6f\x64\x65\x5f\x73\x75\x62\x6d\x69\x74\x21"
);return WMS_NULL_PTR_S;}data=raw_ts_data_ptr->data;(void)memset(data,
-(0x887+1202-0xd39),WMS_MAX_LEN);data[pos]=(0xbcb+3418-0x1924);data[pos]|=submit
-->reject_duplicates?(0x1f4+8043-0x215b):(0xa27+268-0xb33);if(submit->validity.
-format>(0x11c5+475-0x139d)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}data[pos]|=
-submit->validity.format<<(0x419+585-0x65f);data[pos]|=submit->
-status_report_enabled?(0x184b+2621-0x2268):(0x1d0c+984-0x20e4);data[pos]|=submit
-->user_data_header_present?(0x3f3+8238-0x23e1):(0xe11+2935-0x1988);data[pos]|=
-submit->reply_path_present?(0x1268+2747-0x1ca3):(0xe3c+4824-0x2114);pos++;data[
+(0x24f5+156-0x2591),WMS_MAX_LEN);data[pos]=(0x1070+4834-0x2351);data[pos]|=
+submit->reject_duplicates?(0x13d+6389-0x1a2e):(0x168b+1428-0x1c1f);if(submit->
+validity.format>(0x758+861-0xab2)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}data
+[pos]|=submit->validity.format<<(0xdff+4422-0x1f42);data[pos]|=submit->
+status_report_enabled?(0x1eeb+129-0x1f4c):(0x1335+4584-0x251d);data[pos]|=submit
+->user_data_header_present?(0xec4+117-0xef9):(0x1857+3189-0x24cc);data[pos]|=
+submit->reply_path_present?(0x1117+4583-0x227e):(0x9d+7333-0x1d42);pos++;data[
pos]=(UINT8)submit->message_reference;pos++;i=wms_ts_encode_address(&submit->
-address,&data[pos]);if(i==(0xddf+747-0x10ca)){return WMS_INVALID_PARM_SIZE_S;}
+address,&data[pos]);if(i==(0x82b+6537-0x21b4)){return WMS_INVALID_PARM_SIZE_S;}
pos+=i;data[pos]=submit->pid;pos++;pos+=wms_ts_encode_dcs(&submit->dcs,data+pos)
;pos+=wms_ts_encode_gw_validity(&submit->validity,data+pos);if(
wms_ts_compute_gw_user_data_length(&submit->dcs,&submit->user_data)>
@@ -1420,21 +1421,21 @@
WMS_TPDU_SUBMIT;raw_ts_data_ptr->len=pos;return st;}wms_status_e_type
wms_ts_encode_status_report(const wms_gw_status_report_s_type*status_report,
T_zUfiSms_RawTsData*raw_ts_data_ptr){wms_status_e_type st=WMS_OK_S;UINT8*data;
-UINT8 pos=(0x7c0+5639-0x1dc7),i;if(status_report==NULL||raw_ts_data_ptr==NULL){
+UINT8 pos=(0x1cd8+2075-0x24f3),i;if(status_report==NULL||raw_ts_data_ptr==NULL){
at_print(LOG_DEBUG,
"\x4e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x65\x6e\x63\x6f\x64\x65\x5f\x73\x74\x61\x74\x75\x73\x5f\x72\x65\x70\x6f\x72\x74\x21"
);return WMS_NULL_PTR_S;}data=raw_ts_data_ptr->data;(void)memset(data,
-(0x744+4788-0x19f8),WMS_MAX_LEN);data[pos]=(0x13fa+2667-0x1e55);data[pos]|=
-status_report->more?(0xa4f+2891-0x159a):(0xd96+1691-0x142d);data[pos]|=
-status_report->status_report_qualifier?(0x1bcb+2788-0x268f):(0xdac+2357-0x16e1);
-data[pos]|=status_report->user_data_header_present?(0xed0+684-0x113c):
-(0x1f38+455-0x20ff);pos++;data[pos]=(UINT8)status_report->message_reference;pos
+(0x685+837-0x9ca),WMS_MAX_LEN);data[pos]=(0x177+5628-0x1763);data[pos]|=
+status_report->more?(0x134+5162-0x155e):(0x7f9+5791-0x1e94);data[pos]|=
+status_report->status_report_qualifier?(0xffd+2065-0x17ee):(0x1040+5682-0x2672);
+data[pos]|=status_report->user_data_header_present?(0x9f3+2343-0x12da):
+(0xb57+4440-0x1caf);pos++;data[pos]=(UINT8)status_report->message_reference;pos
++;i=wms_ts_encode_address(&status_report->address,&data[pos]);if(i==
-(0x4eb+94-0x549)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0x757+7342-0x2405)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
wms_ts_encode_timestamp(&status_report->timestamp,data+pos);if(i==
-(0x1177+3170-0x1dd9)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0x199d+1876-0x20f1)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
wms_ts_encode_timestamp(&status_report->discharge_time,data+pos);if(i==
-(0x9e3+1070-0xe11)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;data[pos]=
+(0x814+737-0xaf5)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;data[pos]=
status_report->tp_status;pos++;data[pos]=(UINT8)status_report->mask;pos++;if(
status_report->mask&WMS_TPDU_MASK_PID){data[pos]=status_report->pid;pos++;}if(
status_report->mask&WMS_TPDU_MASK_DCS){pos+=wms_ts_encode_dcs(&status_report->
@@ -1449,7 +1450,7 @@
T_zUfiSms_RawTsData*ptRawTsData){wms_status_e_type st=WMS_OK_S;const
wms_gw_pp_ts_data_s_type*msg;if(ptClientTsData==NULL||ptRawTsData==NULL){return
WMS_NULL_PTR_S;}msg=&ptClientTsData->u.gw_pp;switch(ptClientTsData->format){
-#if (0x1d29+1932-0x24b5)
+#if (0x525+6208-0x1d65)
case WMS_FORMAT_CDMA:case WMS_FORMAT_ANALOG_AWISMS:case WMS_FORMAT_ANALOG_CLI:
case WMS_FORMAT_ANALOG_VOICE_MAIL:case WMS_FORMAT_ANALOG_SMS:case WMS_FORMAT_MWI
:st=wms_ts_encode_bearer_data(&ptClientTsData->u.cdma,ptRawTsData);break;
@@ -1459,7 +1460,7 @@
ptRawTsData);break;case WMS_TPDU_SUBMIT:st=wms_ts_encode_submit(&msg->u.submit,
ptRawTsData);break;case WMS_TPDU_STATUS_REPORT:st=wms_ts_encode_status_report(&
msg->u.status_report,ptRawTsData);break;
-#if (0x1db6+1948-0x2552)
+#if (0x16f7+223-0x17d6)
case WMS_TPDU_SUBMIT_REPORT_ACK:st=wms_ts_encode_submit_report_ack(&msg->u.
submit_report_ack,ptRawTsData);break;case WMS_TPDU_SUBMIT_REPORT_ERROR:st=
wms_ts_encode_submit_report_error(&msg->u.submit_report_error,ptRawTsData);break
@@ -1476,361 +1477,360 @@
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x66\x6f\x72\x6d\x61\x74\x3a\x20\x25\x64",
ptClientTsData->format);break;}ptRawTsData->format=ptClientTsData->format;return
st;}UINT8 wms_ts_unpack_gw_7_bit_chars(const UINT8*in,UINT8 in_len,UINT8
-out_len_max,UINT16 shift,UINT8*out){int i=(0x6bd+2786-0x119f);UINT16 pos=
-(0x2e6+6751-0x1d45);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+out_len_max,UINT16 shift,UINT8*out){int i=(0x3cb+8113-0x237c);UINT16 pos=
+(0xc6+6089-0x188f);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x75\x6e\x70\x61\x63\x6b\x5f\x67\x77\x5f\x37\x5f\x62\x69\x74\x5f\x63\x68\x61\x72\x73"
-);return(0x139b+4902-0x26c1);}if(shift!=(0xd8b+2412-0x16f7))pos=pos+
-(0xcf1+4738-0x1f72);if(shift==(0xbbb+3915-0x1aff)){out[(0x802+220-0x8de)]=in[
-(0xb79+3239-0x1820)]>>(0x1335+862-0x1692);shift=(0x15a4+2004-0x1d78);i=
-(0x103d+3452-0x1db8);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]
-<<shift)&(0x1337+4940-0x2604);if(pos!=(0xc6a+4389-0x1d8f)){
-#if (0xf28+2093-0x1754)
-if(shift==(0x570+8360-0x2618)){out[i]|=(0x2102+199-0x21c9);}else{out[i]|=in[pos-
-(0x20a+1723-0x8c4)]>>((0x211+8697-0x2402)-shift);}
+);return(0x1108+1380-0x166c);}if(shift!=(0xdf7+1272-0x12ef))pos=pos+
+(0xe2b+944-0x11da);if(shift==(0x6c2+1691-0xd56)){out[(0x162b+2412-0x1f97)]=in[
+(0x7cd+7723-0x25f8)]>>(0x2d6+4001-0x1276);shift=(0x234c+589-0x2599);i=
+(0x41b+5621-0x1a0f);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]
+<<shift)&(0x74d+939-0xa79);if(pos!=(0xfda+3706-0x1e54)){
+#if (0xc3f+2993-0x17ef)
+if(shift==(0xe7a+2125-0x16c7)){out[i]|=(0x215b+706-0x241d);}else{out[i]|=in[pos-
+(0xf9b+4896-0x22ba)]>>((0x139+6434-0x1a53)-shift);}
#else
-out[i]|=in[pos-(0xb92+5420-0x20bd)]>>((0x12a7+3123-0x1ed2)-shift);
+out[i]|=in[pos-(0x1135+1371-0x168f)]>>((0x7aa+6349-0x206f)-shift);
#endif
-}shift++;if(shift==(0x511+8118-0x24c0)){shift=(0x975+2092-0x11a1);i++;if(i>=
+}shift++;if(shift==(0x183b+457-0x19fd)){shift=(0x13f9+989-0x17d6);i++;if(i>=
out_len_max){at_print(LOG_DEBUG,
"\x4e\x6f\x74\x20\x65\x6e\x6f\x75\x67\x68\x20\x6f\x75\x74\x70\x75\x74\x20\x62\x75\x66\x66\x65\x72\x20\x66\x6f\x72\x20\x75\x6e\x70\x61\x63\x6b\x69\x6e\x67\x21"
-);break;}out[i]=in[pos]>>(0x6bc+4977-0x1a2c);}}return(UINT8)(pos);}UINT8
+);break;}out[i]=in[pos]>>(0x5c8+1276-0xac3);}}return(UINT8)(pos);}UINT8
wms_ts_decode_address(const UINT8*data,wms_address_s_type*addr){UINT8 i,pos=
-(0x1468+3519-0x2227);i=data[pos];if(i>WMS_GW_ADDRESS_MAX){at_print(LOG_DEBUG,
+(0xd36+1297-0x1247);i=data[pos];if(i>WMS_GW_ADDRESS_MAX){at_print(LOG_DEBUG,
"\x41\x64\x64\x72\x20\x6c\x65\x6e\x20\x74\x6f\x6f\x20\x6c\x6f\x6e\x67\x3a\x20\x25\x64"
-,i);return(0x1074+90-0x10ce);}addr->number_of_digits=i;pos++;addr->digit_mode=
+,i);return(0xf8c+4630-0x21a2);}addr->number_of_digits=i;pos++;addr->digit_mode=
WMS_DIGIT_MODE_4_BIT;addr->number_type=(wms_number_type_e_type)((data[pos]&
-(0x1cfc+984-0x2064))>>(0xb75+2458-0x150b));addr->number_plan=(
-wms_number_plan_e_type)(data[pos]&(0x638+4623-0x1838));pos++;if(addr->
-number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0x1ca0+1088-0x20e0)
-;addr->digit_mode=WMS_DIGIT_MODE_8_BIT;bytes_increment=(addr->number_of_digits+
-(0x8f2+172-0x99d))/(0x18+9183-0x23f5);addr->number_of_digits=(UINT8)(addr->
-number_of_digits*(0x1271+2961-0x1dfe)/(0x188f+1125-0x1ced));(void)
+(0xf02+277-0xfa7))>>(0x3fa+6405-0x1cfb));addr->number_plan=(
+wms_number_plan_e_type)(data[pos]&(0xdb2+5489-0x2314));pos++;if(addr->
+number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0xb9d+3568-0x198d);
+addr->digit_mode=WMS_DIGIT_MODE_8_BIT;bytes_increment=(addr->number_of_digits+
+(0x340+7694-0x214d))/(0x53b+2091-0xd64);addr->number_of_digits=(UINT8)(addr->
+number_of_digits*(0x137b+4004-0x231b)/(0x1fdc+323-0x2118));(void)
wms_ts_unpack_gw_7_bit_chars(&data[pos],addr->number_of_digits,
-WMS_GW_ADDRESS_MAX,(0x6a9+80-0x6f9),addr->digits);pos+=bytes_increment;}else{for
-(i=(0x602+4752-0x1892);i<addr->number_of_digits;i++){addr->digits[i++]=data[pos]
-&(0x629+5797-0x1cbf);addr->digits[i]=(data[pos]&(0xecb+1325-0x1308))>>
-(0x16ed+816-0x1a19);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data
-,wms_gw_dcs_s_type*dcs){UINT8 pos=(0x1929+2595-0x234c);UINT8 i;if(data==NULL||
-dcs==NULL){at_print(LOG_DEBUG,
+WMS_GW_ADDRESS_MAX,(0x1678+1430-0x1c0e),addr->digits);pos+=bytes_increment;}else
+{for(i=(0x1682+4208-0x26f2);i<addr->number_of_digits;i++){addr->digits[i++]=data
+[pos]&(0x11c8+1766-0x189f);addr->digits[i]=(data[pos]&(0x1d91+651-0x1f2c))>>
+(0x2d0+8317-0x2349);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data
+,wms_gw_dcs_s_type*dcs){UINT8 pos=(0x2c3+6123-0x1aae);UINT8 i;if(data==NULL||dcs
+==NULL){at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x64\x63\x73"
-);return(0x169+6663-0x1b70);}dcs->msg_class=WMS_MESSAGE_CLASS_NONE;dcs->
+);return(0xaa0+3617-0x18c1);}dcs->msg_class=WMS_MESSAGE_CLASS_NONE;dcs->
msg_waiting=WMS_GW_MSG_WAITING_NONE;dcs->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;
-dcs->is_compressed=FALSE;i=(data[pos]&(0x941+2351-0x11b0))>>(0x11cd+3232-0x1e67)
-;switch(i){case(0x457+3141-0x109c):dcs->is_compressed=data[pos]&
-(0x12a3+4459-0x23ee);if(data[pos]&(0xb56+5926-0x226c)){dcs->msg_class=(
-wms_message_class_e_type)(data[pos]&(0x12a5+4636-0x24be));}else{dcs->msg_class=
+dcs->is_compressed=FALSE;i=(data[pos]&(0x13e8+777-0x1631))>>(0x2aa+5895-0x19ab);
+switch(i){case(0x81c+7832-0x26b4):dcs->is_compressed=data[pos]&
+(0x10c4+2947-0x1c27);if(data[pos]&(0x2ed+6906-0x1dd7)){dcs->msg_class=(
+wms_message_class_e_type)(data[pos]&(0x47f+2962-0x100e));}else{dcs->msg_class=
WMS_MESSAGE_CLASS_NONE;}dcs->alphabet=(wms_gw_alphabet_e_type)((data[pos]&
-(0x4e2+5371-0x19d1))>>(0x149b+993-0x187a));break;case(0x395+8098-0x2334):if((
-data[pos]&(0x144d+1585-0x1a4e))==(0x2d5+7549-0x2022)){dcs->alphabet=(data[pos]&
-(0x298+4378-0x13ae))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
-msg_class=(wms_message_class_e_type)(data[pos]&(0xa91+4984-0x1e06));dcs->
+(0x1268+473-0x1435))>>(0xba5+1333-0x10d8));break;case(0xc25+6246-0x2488):if((
+data[pos]&(0x746+2542-0x1104))==(0xd9+7098-0x1c63)){dcs->alphabet=(data[pos]&
+(0x402+5821-0x1abb))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
+msg_class=(wms_message_class_e_type)(data[pos]&(0x4a3+1003-0x88b));dcs->
is_compressed=FALSE;dcs->msg_waiting=WMS_GW_MSG_WAITING_NONE_1111;}else{dcs->
is_compressed=FALSE;dcs->msg_class=WMS_MESSAGE_CLASS_NONE;if((data[pos]&
-(0xf8c+2361-0x1895))==(0x843+1631-0xea2)){dcs->msg_waiting=
+(0xc0f+819-0xf12))==(0x1218+3785-0x20e1)){dcs->msg_waiting=
WMS_GW_MSG_WAITING_DISCARD;dcs->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}else if(
-(data[pos]&(0x13f4+4343-0x24bb))==(0x1671+380-0x17dd)){dcs->msg_waiting=
+(data[pos]&(0x14b8+835-0x17cb))==(0x17a0+1023-0x1b8f)){dcs->msg_waiting=
WMS_GW_MSG_WAITING_STORE;dcs->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}else{dcs->
msg_waiting=WMS_GW_MSG_WAITING_STORE;dcs->alphabet=WMS_GW_ALPHABET_UCS2;}dcs->
-msg_waiting_active=(data[pos]&(0x88+5625-0x1679))?TRUE:FALSE;dcs->
-msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x768+4879-0x1a74))
-;}break;default:at_print(LOG_DEBUG,
+msg_waiting_active=(data[pos]&(0x6cf+7220-0x22fb))?TRUE:FALSE;dcs->
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x721+400-0x8ae));}
+break;default:at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x44\x43\x53\x3a\x20\x25\x78",data[pos]);dcs->
alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->is_compressed=FALSE;dcs->msg_waiting
=WMS_GW_MSG_WAITING_NONE;dcs->msg_class=WMS_MESSAGE_CLASS_NONE;break;}if(dcs->
alphabet>WMS_GW_ALPHABET_UCS2){dcs->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}dcs
->raw_dcs_data=data[pos];pos++;return pos;}UINT8 wms_ts_decode_timestamp(const
-UINT8*data,wms_timestamp_s_type*timestamp){UINT8 pos=(0x813+6844-0x22cf),i,j;if(
-data==NULL||timestamp==NULL){at_print(LOG_DEBUG,
+UINT8*data,wms_timestamp_s_type*timestamp){UINT8 pos=(0xf1a+7-0xf21),i,j;if(data
+==NULL||timestamp==NULL){at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x74\x69\x6d\x65\x73\x74\x61\x6d\x70"
-);return(0x7f5+5333-0x1cca);}i=((data[pos]&(0x522+2046-0xd11))<<
-(0xf47+1017-0x133c))+((data[pos]&(0x59b+4804-0x176f))>>(0x47f+262-0x581));if(!
+);return(0x7d2+4925-0x1b0f);}i=((data[pos]&(0x1057+4490-0x21d2))<<
+(0x91b+3316-0x160b))+((data[pos]&(0x622+4338-0x1624))>>(0xdfc+723-0x10cb));if(!
wms_ts_bcd_to_int(i,&j)){at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x44\x69\x67\x69\x74\x73\x20\x69\x6e\x20\x45\x6e\x63\x6f\x64\x65\x64\x20\x54\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x59\x65\x61\x72\x20\x3a\x20\x25\x64"
-,data[pos]);i=(0x16a1+4101-0x26a6);}timestamp->year=i;pos++;i=((data[pos]&
-(0x75a+2331-0x1066))<<(0x1d+5947-0x1754))+((data[pos]&(0x37a+3067-0xe85))>>
-(0x1345+3779-0x2204));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1b54+2192-0x23d8)||j<
-(0x7ec+5885-0x1ee8)){at_print(LOG_DEBUG,
+,data[pos]);i=(0x21bd+971-0x2588);}timestamp->year=i;pos++;i=((data[pos]&
+(0xc7b+4908-0x1f98))<<(0x14c1+3570-0x22af))+((data[pos]&(0x9b1+3836-0x17bd))>>
+(0x1ddc+2262-0x26ae));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1cb8+276-0x1dc0)||j<
+(0x1a5d+1794-0x215e)){at_print(LOG_DEBUG,
"\x4d\x6f\x6e\x74\x68\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);i=(0x1763+3499-0x250d);}}else{at_print(LOG_DEBUG,
+,j);i=(0xcbc+4387-0x1dde);}}else{at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x44\x69\x67\x69\x74\x73\x20\x69\x6e\x20\x45\x6e\x63\x6f\x64\x65\x64\x20\x54\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x4d\x6f\x6e\x74\x68\x20\x3a\x20\x25\x64"
-,data[pos]);i=(0x13c2+1854-0x1aff);}timestamp->month=i;pos++;i=((data[pos]&
-(0x826+7058-0x23a9))<<(0xbcd+6085-0x238e))+((data[pos]&(0x1c7+6352-0x19a7))>>
-(0xbff+3294-0x18d9));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1ea+1380-0x72f)||j<
-(0x955+4015-0x1903)){at_print(LOG_DEBUG,
+,data[pos]);i=(0x2037+921-0x23cf);}timestamp->month=i;pos++;i=((data[pos]&
+(0xa91+59-0xabd))<<(0x10d2+2512-0x1a9e))+((data[pos]&(0x33d+1248-0x72d))>>
+(0x471+5183-0x18ac));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x9ab+1778-0x107e)||j<
+(0x7ba+546-0x9db)){at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);i=
-(0x22c+6814-0x1cc9);}}else{at_print(LOG_DEBUG,
+(0xd59+2314-0x1662);}}else{at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x44\x69\x67\x69\x74\x73\x20\x69\x6e\x20\x45\x6e\x63\x6f\x64\x65\x64\x20\x54\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x44\x61\x79\x20\x3a\x20\x25\x64"
-,data[pos]);i=(0x236+5104-0x1625);}timestamp->day=i;pos++;i=((data[pos]&
-(0x1f6c+315-0x2098))<<(0xb83+6912-0x267f))+((data[pos]&(0x105b+841-0x12b4))>>
-(0x11b+839-0x45e));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x9ea+2048-0x11d3)){
+,data[pos]);i=(0x9f9+3895-0x192f);}timestamp->day=i;pos++;i=((data[pos]&
+(0x6af+5361-0x1b91))<<(0x45d+5497-0x19d2))+((data[pos]&(0x20f+1494-0x6f5))>>
+(0x291+9200-0x267d));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xb96+1100-0xfcb)){
at_print(LOG_DEBUG,
"\x48\x6f\x75\x72\x20\x69\x73\x20\x74\x6f\x6f\x20\x6c\x61\x72\x67\x65\x3a\x20\x25\x64"
-,j);i=(0xe23+3009-0x19e4);}}else{at_print(LOG_DEBUG,
+,j);i=(0x1470+2923-0x1fdb);}}else{at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x44\x69\x67\x69\x74\x73\x20\x69\x6e\x20\x45\x6e\x63\x6f\x64\x65\x64\x20\x54\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x48\x6f\x75\x72\x20\x3a\x20\x25\x64"
-,data[pos]);i=(0x3d4+8072-0x235c);}timestamp->hour=i;pos++;i=((data[pos]&
-(0xde7+2369-0x1719))<<(0xddf+2043-0x15d6))+((data[pos]&(0x817+2395-0x1082))>>
-(0x7cf+5762-0x1e4d));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x18fb+1165-0x1d4d)){
+,data[pos]);i=(0x2b9+1483-0x884);}timestamp->hour=i;pos++;i=((data[pos]&
+(0x866+2055-0x105e))<<(0x4bf+44-0x4e7))+((data[pos]&(0x525+7830-0x22cb))>>
+(0xdf5+5147-0x220c));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1ee2+1286-0x23ad)){
at_print(LOG_DEBUG,
"\x4d\x69\x6e\x75\x74\x65\x20\x69\x73\x20\x74\x6f\x6f\x20\x6c\x61\x72\x67\x65\x3a\x20\x25\x64"
-,j);i=(0x1c1+4355-0x12c4);}}else{at_print(LOG_DEBUG,
+,j);i=(0x10d+7207-0x1d34);}}else{at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x44\x69\x67\x69\x74\x73\x20\x69\x6e\x20\x45\x6e\x63\x6f\x64\x65\x64\x20\x54\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x4d\x69\x6e\x75\x74\x65\x20\x3a\x20\x25\x64"
-,data[pos]);i=(0x1b0+1954-0x952);}timestamp->minute=i;pos++;i=((data[pos]&
-(0xe7+8250-0x2112))<<(0x13c+4235-0x11c3))+((data[pos]&(0x671+1009-0x972))>>
-(0x1e1+5229-0x164a));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1a76+54-0x1a71)){
+,data[pos]);i=(0x27d+3353-0xf96);}timestamp->minute=i;pos++;i=((data[pos]&
+(0x13a9+2702-0x1e28))<<(0x364+8755-0x2593))+((data[pos]&(0x240+2323-0xa63))>>
+(0xfdd+1843-0x170c));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x99+4539-0x1219)){
at_print(LOG_DEBUG,
"\x53\x65\x63\x6f\x6e\x64\x20\x69\x73\x20\x74\x6f\x6f\x20\x6c\x61\x72\x67\x65\x3a\x20\x25\x64"
-,i);i=(0x10d4+1207-0x158b);}}else{at_print(LOG_DEBUG,
+,i);i=(0xf+8839-0x2296);}}else{at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x44\x69\x67\x69\x74\x73\x20\x69\x6e\x20\x45\x6e\x63\x6f\x64\x65\x64\x20\x54\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x53\x65\x63\x6f\x6e\x64\x20\x3a\x20\x25\x64"
-,data[pos]);i=(0x24f4+50-0x2526);}timestamp->second=i;pos++;if(data[pos]&
-(0xdeb+2991-0x1992)){timestamp->timezone=(data[pos]&(0x277+1677-0x8fd))*
-(0x167f+3314-0x2367)+((data[pos]&(0x895+585-0x9ee))>>(0x730+5700-0x1d70));
-timestamp->timezone*=(-(0x4b8+7894-0x238d));}else{timestamp->timezone=(sint7)((
-data[pos]&(0xf9d+2329-0x18a7))*(0xf63+2080-0x1779)+((data[pos]&
-(0x1c62+1599-0x21b1))>>(0x6bd+3405-0x1406)));}if(timestamp->timezone>
-(0x15a6+3683-0x23d9)||timestamp->timezone<-(0x181f+309-0x1924)){at_print(
-LOG_DEBUG,
+,data[pos]);i=(0xe54+4363-0x1f5f);}timestamp->second=i;pos++;if(data[pos]&
+(0xfcf+5428-0x24fb)){timestamp->timezone=(data[pos]&(0x17fb+3113-0x241d))*
+(0x177f+3256-0x242d)+((data[pos]&(0x1ac9+565-0x1c0e))>>(0xf75+3419-0x1ccc));
+timestamp->timezone*=(-(0x9+1963-0x7b3));}else{timestamp->timezone=(sint7)((data
+[pos]&(0x42d+6224-0x1c6e))*(0xf1d+1932-0x169f)+((data[pos]&(0xe90+4904-0x20c8))
+>>(0x298+5933-0x19c1)));}if(timestamp->timezone>(0x695+2015-0xe44)||timestamp->
+timezone<-(0xe51+2302-0x171f)){at_print(LOG_DEBUG,
"\x54\x69\x6d\x65\x7a\x6f\x6e\x65\x20\x69\x73\x20\x6f\x75\x74\x20\x6f\x66\x20\x62\x6f\x75\x6e\x64\x3a\x20\x25\x64"
-,timestamp->timezone);timestamp->timezone=(0x64b+4374-0x1761);}pos++;return pos;
-}static UINT8 wms_ts_decode_udh_concat_8(const UINT8*udh,wms_udh_s_type*
-header_ptr){UINT8 pos=(0x139d+351-0x14fc);if(udh==NULL||header_ptr==NULL){
+,timestamp->timezone);timestamp->timezone=(0x4a1+596-0x6f5);}pos++;return pos;}
+static UINT8 wms_ts_decode_udh_concat_8(const UINT8*udh,wms_udh_s_type*
+header_ptr){UINT8 pos=(0x816+7838-0x26b4);if(udh==NULL||header_ptr==NULL){
at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0xd52+2312-0x165a);}if(udh[pos]<(0x502+4525-0x16ac)){at_print(LOG_DEBUG,
+(0x1194+3271-0x1e5b);}if(udh[pos]<(0x1903+638-0x1b7e)){at_print(LOG_DEBUG,
"\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x43\x6f\x6e\x63\x61\x74\x20\x38\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x527+2806-0x101d);}if(udh[pos+(0xf80+5426-0x24b0)]==
-(0xaaf+6288-0x233f)||udh[pos+(0x5f7+4641-0x1815)]>udh[pos+(0x769+5506-0x1ce9)]){
-at_print(LOG_DEBUG,
+,udh[pos]);return(0xa84+5094-0x1e6a);}if(udh[pos+(0x689+3787-0x1552)]==
+(0x1522+2254-0x1df0)||udh[pos+(0x1614+2018-0x1df3)]>udh[pos+(0x662+4602-0x185a)]
+){at_print(LOG_DEBUG,
"\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x43\x6f\x6e\x74\x61\x63\x74\x20\x38\x20\x77\x69\x74\x68\x20\x6f\x75\x74\x20\x6f\x66\x20\x62\x6f\x75\x6e\x64\x20\x6d\x61\x78\x20\x6d\x65\x73\x73\x61\x67\x65\x73"
-);return(0xd2+6622-0x1ab0);}pos++;header_ptr->header_id=WMS_UDH_CONCAT_8;
+);return(0x468+6626-0x1e4a);}pos++;header_ptr->header_id=WMS_UDH_CONCAT_8;
header_ptr->u.concat_8.msg_ref=udh[pos++];header_ptr->u.concat_8.total_sm=udh[
-pos++];header_ptr->u.concat_8.seq_num=udh[pos++];return(udh[(0x1ac9+1252-0x1fad)
-]+(0xacc+4638-0x1ce9));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0xfdd+3292-0x1cb9);if(udh==NULL||
+pos++];header_ptr->u.concat_8.seq_num=udh[pos++];return(udh[(0x865+652-0xaf1)]+
+(0x2241+803-0x2563));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
+wms_udh_s_type*header_ptr){UINT8 pos=(0x223b+257-0x233c);if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x2004+1086-0x2442);}if(
-udh[pos]<(0xd66+6444-0x268e)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xd66+5934-0x2494);}if(
+udh[pos]<(0x3b2+1292-0x8ba)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x43\x6f\x6e\x63\x61\x74\x31\x36\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0xe78+3090-0x1a8a);}if(udh[pos+(0x1961+1670-0x1fe4)]==
-(0xa99+384-0xc19)||udh[pos+(0x1083+3120-0x1caf)]==(0xd39+4420-0x1e7d)||udh[pos+
-(0xea8+1809-0x15b5)]>udh[pos+(0x4e8+4940-0x1831)])return(0x1231+1435-0x17cc);
+,udh[pos]);return(0x136b+1866-0x1ab5);}if(udh[pos+(0xb66+3868-0x1a7f)]==
+(0x49c+411-0x637)||udh[pos+(0x2a8+3736-0x113c)]==(0x7ea+4912-0x1b1a)||udh[pos+
+(0x1331+4158-0x236b)]>udh[pos+(0x25a4+128-0x2621)])return(0x2436+433-0x25e7);
header_ptr->header_id=WMS_UDH_CONCAT_16;pos++;header_ptr->u.concat_16.msg_ref=
udh[pos++];header_ptr->u.concat_16.msg_ref=(UINT16)(header_ptr->u.concat_16.
-msg_ref<<(0xc9+334-0x20f))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[pos++
-];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[(0x39a+3191-0x1011)]+
-(0xc4+6760-0x1b2b));}static UINT8 wms_ts_udh_decode_first_seg_check(const UINT8
-len,const UINT8*data,UINT8*is_first_segment_ptr){UINT8 pos=(0x116+6794-0x1ba0);
-UINT8 num_headers=(0xd4d+5840-0x241d);UINT8 udhl=(0x643+5342-0x1b21);UINT8 iedl=
-(0x453+7883-0x231e);UINT8 iei=(0x7b2+5016-0x1b4a);*is_first_segment_ptr=TRUE;if(
-data==NULL||data[pos]==(0x1c1+1289-0x6ca)||len==(0x5e0+110-0x64e)){at_print(
-LOG_DEBUG,
+msg_ref<<(0xd28+1489-0x12f1))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[
+pos++];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[
+(0x1ed6+1691-0x2571)]+(0x208a+139-0x2114));}static UINT8
+wms_ts_udh_decode_first_seg_check(const UINT8 len,const UINT8*data,UINT8*
+is_first_segment_ptr){UINT8 pos=(0x12f4+4778-0x259e);UINT8 num_headers=
+(0x19d7+2196-0x226b);UINT8 udhl=(0x933+5517-0x1ec0);UINT8 iedl=
+(0x13e6+1084-0x1822);UINT8 iei=(0x441+7858-0x22f3);*is_first_segment_ptr=TRUE;if
+(data==NULL||data[pos]==(0x406+4787-0x16b9)||len==(0x14b4+1433-0x1a4d)){at_print
+(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x75\x64\x68\x5f\x64\x65\x63\x6f\x64\x65\x5f\x66\x69\x72\x73\x74\x5f\x73\x65\x67\x5f\x63\x68\x65\x63\x6b"
);return FALSE;}udhl=data[pos];pos++;while((pos<udhl)&&(num_headers<
-WMS_MAX_UD_HEADERS)){iei=data[pos];iedl=data[pos+(0x1047+267-0x1151)];if(iei==
-WMS_UDH_CONCAT_16){if(data[pos+(0x278+6580-0x1c27)]!=(0xb51+4860-0x1e4c)){
+WMS_MAX_UD_HEADERS)){iei=data[pos];iedl=data[pos+(0xa50+5956-0x2193)];if(iei==
+WMS_UDH_CONCAT_16){if(data[pos+(0x8+9095-0x238a)]!=(0x1fec+1806-0x26f9)){
at_print(LOG_DEBUG,
"\x57\x4d\x53\x5f\x55\x44\x48\x5f\x43\x4f\x4e\x43\x41\x54\x5f\x31\x36\x20\x6e\x6f\x74\x20\x66\x69\x72\x73\x74\x20\x73\x65\x67\x6d\x65\x6e\x74\x21"
);*is_first_segment_ptr=FALSE;return TRUE;}else{return TRUE;}}else{num_headers++
-;pos+=((0xd65+1128-0x11cb)+iedl);}}return TRUE;}static UINT8
+;pos+=((0xafa+2067-0x130b)+iedl);}}return TRUE;}static UINT8
wms_ts_decode_udh_special_sm(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x1be9+1726-0x22a7);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1735+3322-0x242f);}if(
-udh[pos]<(0xc66+604-0xec0)){at_print(LOG_DEBUG,
+pos=(0xebf+2682-0x1939);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x948+1768-0x1030);}if(
+udh[pos]<(0x22fb+558-0x2527)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x53\x70\x65\x63\x69\x61\x6c\x20\x53\x4d\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x2f+8487-0x2156);}pos++;header_ptr->header_id=
+,udh[pos]);return(0xa5a+1389-0xfc7);}pos++;header_ptr->header_id=
WMS_UDH_SPECIAL_SM;header_ptr->u.special_sm.msg_waiting=(
-wms_gw_msg_waiting_e_type)((udh[pos]>>(0x192c+2459-0x22c0)==(0x1f05+1876-0x2659)
-)?WMS_GW_MSG_WAITING_DISCARD:WMS_GW_MSG_WAITING_STORE);header_ptr->u.special_sm.
-msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(udh[pos++]&(0x4ff+2339-0xda3))
-;header_ptr->u.special_sm.message_count=udh[pos++];return(udh[
-(0x117f+4578-0x2361)]+(0x1cfc+345-0x1e54));}static UINT8
-wms_ts_decode_udh_port_8(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
-(0x504+1400-0xa7c);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1e66+1541-0x246b);}if(
-udh[pos]<(0x5b8+6259-0x1e29)){at_print(LOG_DEBUG,
+wms_gw_msg_waiting_e_type)((udh[pos]>>(0x1066+1672-0x16e7)==(0x84a+682-0xaf4))?
+WMS_GW_MSG_WAITING_DISCARD:WMS_GW_MSG_WAITING_STORE);header_ptr->u.special_sm.
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(udh[pos++]&(0xc12+797-0xeb0));
+header_ptr->u.special_sm.message_count=udh[pos++];return(udh[
+(0x1b18+1613-0x2165)]+(0x1ab2+82-0x1b03));}static UINT8 wms_ts_decode_udh_port_8
+(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x2d6+7696-0x20e6);if(udh
+==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1190+4625-0x23a1);}if(
+udh[pos]<(0x16cd+3067-0x22c6)){at_print(LOG_DEBUG,
"\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x50\x6f\x72\x74\x20\x38\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x2e5+8387-0x23a8);}pos++;header_ptr->header_id=WMS_UDH_PORT_8
-;header_ptr->u.wap_8.dest_port=udh[pos++];header_ptr->u.wap_8.orig_port=udh[pos
-++];return(udh[(0x2d2+247-0x3c9)]+(0xe03+3509-0x1bb7));}static UINT8
-wms_ts_decode_udh_port16(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
-(0x3a8+1920-0xb28);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x4e7+1711-0xb96);}if(udh
-[pos]<(0x2057+1575-0x267a)){at_print(LOG_DEBUG,
+,udh[pos]);return(0x17c2+3759-0x2671);}pos++;header_ptr->header_id=
+WMS_UDH_PORT_8;header_ptr->u.wap_8.dest_port=udh[pos++];header_ptr->u.wap_8.
+orig_port=udh[pos++];return(udh[(0x1de7+1086-0x2225)]+(0x10c1+1508-0x16a4));}
+static UINT8 wms_ts_decode_udh_port16(const UINT8*udh,wms_udh_s_type*header_ptr)
+{UINT8 pos=(0x12b2+3525-0x2077);if(udh==NULL||header_ptr==NULL){at_print(
+LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
+(0xbea+6411-0x24f5);}if(udh[pos]<(0x1a8a+1114-0x1ee0)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x50\x6f\x72\x74\x31\x36\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x474+4323-0x1557);}header_ptr->header_id=WMS_UDH_PORT_16;pos
+,udh[pos]);return(0x1b62+2658-0x25c4);}header_ptr->header_id=WMS_UDH_PORT_16;pos
++;header_ptr->u.wap_16.dest_port=udh[pos++];header_ptr->u.wap_16.dest_port=(
-UINT16)(header_ptr->u.wap_16.dest_port<<(0x598+4837-0x1875))|udh[pos++];
+UINT16)(header_ptr->u.wap_16.dest_port<<(0x17f2+420-0x198e))|udh[pos++];
header_ptr->u.wap_16.orig_port=udh[pos++];header_ptr->u.wap_16.orig_port=(UINT16
-)(header_ptr->u.wap_16.orig_port<<(0xbd9+1138-0x1043))|udh[pos++];return(udh[
-(0x95+9381-0x253a)]+(0xdaa+2620-0x17e5));}static UINT8
+)(header_ptr->u.wap_16.orig_port<<(0x18ff+1534-0x1ef5))|udh[pos++];return(udh[
+(0x157f+1613-0x1bcc)]+(0x17d0+3805-0x26ac));}static UINT8
wms_ts_decode_udh_text_formatting(const UINT8*udh,wms_udh_s_type*header_ptr){
-UINT8 pos=(0x37b+6700-0x1da7);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG
-,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1975+2208-0x2215);}if(
-udh[pos]<(0x111f+877-0x1489)){at_print(LOG_DEBUG,
+UINT8 pos=(0x10a+7023-0x1c79);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG
+,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x692+5213-0x1aef);}if(
+udh[pos]<(0x10fc+1398-0x166f)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x54\x65\x78\x74\x20\x46\x6f\x72\x6d\x61\x74\x74\x69\x6e\x67\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x9c5+2948-0x1549);}if(udh[pos]>=(0x12c9+1260-0x17b1)){
+,udh[pos]);return(0x8f0+3592-0x16f8);}if(udh[pos]>=(0x175+6681-0x1b8a)){
header_ptr->u.text_formating.is_color_present=TRUE;}else{header_ptr->u.
text_formating.is_color_present=FALSE;}pos++;header_ptr->header_id=
WMS_UDH_TEXT_FORMATING;header_ptr->u.text_formating.start_position=udh[pos++];
header_ptr->u.text_formating.text_formatting_length=udh[pos++];header_ptr->u.
text_formating.alignment_type=(wms_udh_alignment_e_type)(udh[pos]&
-(0x1979+12-0x1982));header_ptr->u.text_formating.font_size=(
-wms_udh_font_size_e_type)((udh[pos]&(0x7b9+3684-0x1611))>>(0xc6+11-0xcf));
-header_ptr->u.text_formating.style_bold=(udh[pos]&(0x3ea+3341-0x10e7))>>
-(0x90a+899-0xc89);header_ptr->u.text_formating.style_italic=(udh[pos]&
-(0x1325+1624-0x195d))>>(0x1518+235-0x15fe);header_ptr->u.text_formating.
-style_underlined=(udh[pos]&(0x13a2+3086-0x1f70))>>(0x7e6+6279-0x2067);header_ptr
-->u.text_formating.style_strikethrough=(udh[pos]&(0xd93+4488-0x1e9b))>>
-(0x1688+349-0x17de);pos++;if(header_ptr->u.text_formating.is_color_present){
+(0x1526+411-0x16be));header_ptr->u.text_formating.font_size=(
+wms_udh_font_size_e_type)((udh[pos]&(0xd73+5770-0x23f1))>>(0x708+2616-0x113e));
+header_ptr->u.text_formating.style_bold=(udh[pos]&(0x5b4+8445-0x26a1))>>
+(0x453+7645-0x222c);header_ptr->u.text_formating.style_italic=(udh[pos]&
+(0xbca+1437-0x1147))>>(0x5d1+5774-0x1c5a);header_ptr->u.text_formating.
+style_underlined=(udh[pos]&(0x1aac+3159-0x26c3))>>(0x1b36+694-0x1de6);header_ptr
+->u.text_formating.style_strikethrough=(udh[pos]&(0x222d+1061-0x25d2))>>
+(0x531+7234-0x216c);pos++;if(header_ptr->u.text_formating.is_color_present){
header_ptr->u.text_formating.text_color_foreground=(wms_udh_text_color_e_type)(
-udh[pos]&(0x951+1404-0xebe));header_ptr->u.text_formating.text_color_background=
-(wms_udh_text_color_e_type)((udh[pos]&(0x139c+4477-0x2429))>>(0x1eb9+627-0x2128)
-);pos++;}return(udh[(0x1879+3143-0x24c0)]+(0x3f2+2499-0xdb4));}static UINT8
-wms_ts_decode_udh_pre_def_sound(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
- pos=(0x27d+1377-0x7de);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1085+5281-0x2526);}if(
-udh[pos]<(0x1a9+9332-0x261b)){at_print(LOG_DEBUG,
+udh[pos]&(0xf61+2776-0x1a2a));header_ptr->u.text_formating.text_color_background
+=(wms_udh_text_color_e_type)((udh[pos]&(0x1a51+2482-0x2313))>>
+(0x1578+2094-0x1da2));pos++;}return(udh[(0x53+3113-0xc7c)]+(0xef8+5080-0x22cf));
+}static UINT8 wms_ts_decode_udh_pre_def_sound(const UINT8*udh,wms_udh_s_type*
+header_ptr){UINT8 pos=(0xbe9+5290-0x2093);if(udh==NULL||header_ptr==NULL){
+at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
+(0x254+2570-0xc5e);}if(udh[pos]<(0x505+4066-0x14e5)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x50\x72\x65\x20\x44\x65\x66\x69\x6e\x65\x64\x20\x53\x6f\x75\x6e\x64\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0xe49+572-0x1085);}pos++;header_ptr->header_id=
+,udh[pos]);return(0xd+7279-0x1c7c);}pos++;header_ptr->header_id=
WMS_UDH_PRE_DEF_SOUND;header_ptr->u.pre_def_sound.position=udh[pos++];header_ptr
-->u.pre_def_sound.snd_number=udh[pos++];return(udh[(0x15d3+2260-0x1ea7)]+
-(0xc9b+3352-0x19b2));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8*
-udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x12bd+2906-0x1e17),j;if(udh==NULL||
+->u.pre_def_sound.snd_number=udh[pos++];return(udh[(0x65c+5011-0x19ef)]+
+(0x695+1558-0xcaa));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8*
+udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x19f6+2192-0x2286),j;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x19d+3946-0x1107);}if(
-udh[pos]==(0x552+2087-0xd79)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xbea+2847-0x1709);}if(
+udh[pos]==(0x1fe5+610-0x2247)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x55\x73\x65\x72\x20\x44\x65\x66\x69\x6e\x65\x64\x20\x53\x6f\x75\x6e\x64\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x6e\x6f\x20\x44\x61\x74\x61"
-);return(0x322+6419-0x1c35);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
-header_ptr->u.user_def_sound.data_length=udh[pos++]-(0xc3f+4633-0x1e57);
+);return(0x7cd+1709-0xe7a);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
+header_ptr->u.user_def_sound.data_length=udh[pos++]-(0x13a+8340-0x21cd);
header_ptr->u.user_def_sound.position=udh[pos++];if(header_ptr->u.user_def_sound
.data_length>WMS_UDH_MAX_SND_SIZE){at_print(LOG_DEBUG,
"\x4d\x61\x78\x20\x53\x69\x7a\x65\x20\x45\x78\x63\x65\x65\x64\x20\x48\x65\x61\x64\x65\x72\x20\x69\x64\x20\x25\x64\x20"
-,header_ptr->header_id);return(0xe7f+449-0x1040);}memset(header_ptr->u.
-user_def_sound.user_def_sound,(0x1cf2+2432-0x2573),WMS_UDH_MAX_SND_SIZE);for(j=
-(0xae3+4102-0x1ae9);j<header_ptr->u.user_def_sound.data_length;j++)header_ptr->u
+,header_ptr->header_id);return(0x13a+8398-0x2208);}memset(header_ptr->u.
+user_def_sound.user_def_sound,(0x1019+4006-0x1ec0),WMS_UDH_MAX_SND_SIZE);for(j=
+(0x9dc+7256-0x2634);j<header_ptr->u.user_def_sound.data_length;j++)header_ptr->u
.user_def_sound.user_def_sound[j]=udh[pos++];return pos;}static UINT8
wms_ts_decode_udh_pre_def_anim(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x1365+2114-0x1ba7);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x80+1068-0x4ac);}if(udh[
-pos]!=(0x67f+6858-0x2147)){at_print(LOG_DEBUG,
+pos=(0x3a9+5814-0x1a5f);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x2d0+993-0x6b1);}if(udh[
+pos]!=(0x16d3+3819-0x25bc)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x50\x72\x65\x20\x44\x65\x66\x69\x6e\x65\x64\x20\x41\x6e\x69\x6d\x61\x74\x69\x6f\x6e\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0xcf+4304-0x119f);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x15b0+1775-0x1c9f);}pos++;header_ptr->header_id=
WMS_UDH_PRE_DEF_ANIM;header_ptr->u.pre_def_anim.position=udh[pos++];header_ptr->
u.pre_def_anim.animation_number=udh[pos++];return pos;}static UINT8
wms_ts_decode_udh_large_anim(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x20f2+206-0x21c0),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x210d+527-0x231c);}if(
-udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_LARGE_BITMAP_SIZE+
-(0x543+4528-0x16f2))){at_print(LOG_DEBUG,
+pos=(0xae9+1874-0x123b),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1782+77-0x17cf);}if(udh
+[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_LARGE_BITMAP_SIZE+(0x1012+605-0x126e)))
+{at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x4c\x61\x72\x67\x65\x20\x44\x65\x66\x69\x6e\x65\x64\x20\x41\x6e\x69\x6d\x61\x74\x69\x6f\x6e\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0xb7f+2024-0x1367);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
-pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0xc48+5713-0x2299);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0xd58+3182-0x19c6);k<
+,udh[pos]);return(0x1c8+7617-0x1f89);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
+pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0x103c+3860-0x1f50);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x356+8475-0x2471);k<
WMS_UDH_LARGE_BITMAP_SIZE;k++)header_ptr->u.large_anim.data[j][k]=udh[pos++];
return pos;}static UINT8 wms_ts_decode_udh_small_anim(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x5f6+1124-0xa5a),j,k;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0x1340+2765-0x1e0d),j,k;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x151c+65-0x155d);}if(udh
-[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+(0x1412+1502-0x19ef))
-){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1750+700-0x1a0c);}if(
+udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+
+(0x114+8839-0x239a))){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x4c\x61\x72\x67\x65\x20\x44\x65\x66\x69\x6e\x65\x64\x20\x41\x6e\x69\x6d\x61\x74\x69\x6f\x6e\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x4e5+4845-0x17d2);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
-pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0xbef+6057-0x2398);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x227+1731-0x8ea);k<
+,udh[pos]);return(0x916+6340-0x21da);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
+pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0xa8a+5885-0x2187);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x1953+1521-0x1f44);k<
WMS_UDH_SMALL_BITMAP_SIZE;k++)header_ptr->u.small_anim.data[j][k]=udh[pos++];
return pos;}static UINT8 wms_ts_decode_udh_large_picture(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x218+2262-0xaee),j;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0x34f+4814-0x161d),j;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1474+1444-0x1a18);}if(
-udh[pos]!=WMS_UDH_LARGE_PIC_SIZE+(0x33a+2464-0xcd9)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xa77+2618-0x14b1);}if(
+udh[pos]!=WMS_UDH_LARGE_PIC_SIZE+(0x1088+3975-0x200e)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x4c\x61\x72\x67\x65\x20\x50\x69\x63\x74\x75\x72\x65\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x996+7157-0x258b);}header_ptr->header_id=
+,udh[pos]);return(0x1323+1179-0x17be);}header_ptr->header_id=
WMS_UDH_LARGE_PICTURE;pos++;header_ptr->u.large_picture.position=udh[pos++];for(
-j=(0x48a+8231-0x24b1);j<WMS_UDH_LARGE_PIC_SIZE;j++)header_ptr->u.large_picture.
+j=(0x1c31+375-0x1da8);j<WMS_UDH_LARGE_PIC_SIZE;j++)header_ptr->u.large_picture.
data[j]=udh[pos++];return pos;}static UINT8 wms_ts_decode_udh_small_picture(
-const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0xbd5+6791-0x265c),j;if(
+const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x2c6+5194-0x1710),j;if(
udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1363+3197-0x1fe0);}if(
-udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0x48f+3650-0x12d0)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xf9+5055-0x14b8);}if(udh
+[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0x1299+4120-0x22b0)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x53\x6d\x61\x6c\x6c\x20\x50\x69\x63\x74\x75\x72\x65\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x67\x6e\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x14aa+3148-0x20f6);}header_ptr->header_id=
+,udh[pos]);return(0x119a+2670-0x1c08);}header_ptr->header_id=
WMS_UDH_SMALL_PICTURE;pos++;header_ptr->u.small_picture.position=udh[pos++];for(
-j=(0x906+460-0xad2);j<WMS_UDH_SMALL_PIC_SIZE;j++)header_ptr->u.small_picture.
+j=(0x8d6+2534-0x12bc);j<WMS_UDH_SMALL_PIC_SIZE;j++)header_ptr->u.small_picture.
data[j]=udh[pos++];return pos;}static UINT8 wms_ts_decode_udh_var_picture(const
-UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x1b0+4540-0x136c),j,pic_size;if
+UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x2326+606-0x2584),j,pic_size;if
(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x11d2+1549-0x17df);}if(
-udh[pos]>WMS_UDH_VAR_PIC_SIZE+(0x1b4+6666-0x1bbb)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x23a+2385-0xb8b);}if(udh
+[pos]>WMS_UDH_VAR_PIC_SIZE+(0xfe7+72-0x102c)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x56\x61\x72\x20\x50\x69\x63\x74\x75\x72\x65\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0xb2+1965-0x85f);}if((udh[pos]-(0xfd9+2482-0x1988))!=(udh[pos+
-(0x60d+7410-0x22fd)]*udh[pos+(0x15cf+3711-0x244b)])){at_print(LOG_DEBUG,
+,udh[pos]);return(0x34f+3664-0x119f);}if((udh[pos]-(0x333+2414-0xc9e))!=(udh[pos
++(0x67b+7073-0x221a)]*udh[pos+(0xc0d+5219-0x206d)])){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x56\x61\x72\x20\x50\x69\x63\x74\x75\x72\x65\x2c\x20\x70\x69\x63\x20\x73\x69\x7a\x65\x20\x76\x61\x6c\x75\x65\x20\x6d\x69\x73\x6d\x61\x74\x63\x68\x20\x77\x69\x74\x68\x20\x68\x65\x69\x67\x74\x20\x61\x6e\x64\x20\x77\x65\x69\x67\x68\x74"
-);return(0x10b2+3427-0x1e15);}pic_size=udh[pos++]-(0x1848+1838-0x1f73);
-header_ptr->header_id=WMS_UDH_VAR_PICTURE;header_ptr->u.var_picture.position=udh
-[pos++];header_ptr->u.var_picture.width=(UINT8)(udh[pos++]*(0x1a17+1587-0x2042))
-;header_ptr->u.var_picture.height=udh[pos++];for(j=(0x1518+255-0x1617);j<
-pic_size&&j<WMS_UDH_VAR_PIC_SIZE;j++)header_ptr->u.var_picture.data[j]=udh[pos++
-];return pos;}static UINT8 wms_ts_decode_udh_user_prompt(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x14ec+2531-0x1ecf);if(udh==NULL||
-header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x393+3197-0x1010);}if(
-udh[pos]<(0x847+4255-0x18e5)){at_print(LOG_DEBUG,
+);return(0x33a+604-0x596);}pic_size=udh[pos++]-(0x32a+2447-0xcb6);header_ptr->
+header_id=WMS_UDH_VAR_PICTURE;header_ptr->u.var_picture.position=udh[pos++];
+header_ptr->u.var_picture.width=(UINT8)(udh[pos++]*(0xb9+6935-0x1bc8));
+header_ptr->u.var_picture.height=udh[pos++];for(j=(0xf9f+408-0x1137);j<pic_size
+&&j<WMS_UDH_VAR_PIC_SIZE;j++)header_ptr->u.var_picture.data[j]=udh[pos++];return
+ pos;}static UINT8 wms_ts_decode_udh_user_prompt(const UINT8*udh,wms_udh_s_type*
+header_ptr){UINT8 pos=(0x1f5a+1338-0x2494);if(udh==NULL||header_ptr==NULL){
+at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
+(0x1174+4999-0x24fb);}if(udh[pos]<(0x184+6394-0x1a7d)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x55\x73\x65\x72\x20\x50\x72\x6f\x6d\x70\x74\x20\x70\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x1299+2690-0x1d1b);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x1a3b+1388-0x1fa7);}pos++;header_ptr->header_id=
WMS_UDH_USER_PROMPT;header_ptr->u.user_prompt.number_of_objects=udh[pos++];
-return(udh[(0x208a+1648-0x26fa)]+(0x525+2347-0xe4f));}static UINT8
+return(udh[(0x731+5538-0x1cd3)]+(0x839+5714-0x1e8a));}static UINT8
wms_ts_decode_udh_eo(const UINT8*udh,UINT8 first_segment,wms_udh_s_type*
-header_ptr){UINT8 pos=(0xf93+1090-0x13d5),udh_length;if(udh==NULL||header_ptr==
+header_ptr){UINT8 pos=(0xe6f+721-0x1140),udh_length;if(udh==NULL||header_ptr==
NULL){at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x108+7059-0x1c9b);}if(udh[pos]==(0x1279+3947-0x21e4)){at_print(LOG_DEBUG,
+(0x1bd+8464-0x22cd);}if(udh[pos]==(0x60a+6795-0x2095)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x45\x78\x74\x65\x6e\x64\x65\x64\x20\x4f\x62\x6a\x65\x63\x74\x20\x70\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x6e\x6f\x20\x44\x61\x74\x61"
-);return(0x18f6+2531-0x22d9);}udh_length=udh[pos++];header_ptr->header_id=
+);return(0x92a+1754-0x1004);}udh_length=udh[pos++];header_ptr->header_id=
WMS_UDH_EXTENDED_OBJECT;header_ptr->u.eo.first_segment=first_segment;if(
first_segment==TRUE){if(udh_length<WMS_UDH_OCTETS_EO_HEADER){return
-(0xddd+5463-0x2334);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
-length=udh[pos++]<<(0x130c+4144-0x2334);header_ptr->u.eo.length|=udh[pos++];
+(0x594+1961-0xd3d);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
+length=udh[pos++]<<(0x1d3+3747-0x106e);header_ptr->u.eo.length|=udh[pos++];
header_ptr->u.eo.control=udh[pos++];header_ptr->u.eo.type=(wms_udh_eo_id_e_type)
-udh[pos++];header_ptr->u.eo.position=udh[pos++]<<(0xa96+2782-0x156c);header_ptr
+udh[pos++];header_ptr->u.eo.position=udh[pos++]<<(0x8f0+7442-0x25fa);header_ptr
->u.eo.position|=udh[pos++];}header_ptr->u.eo.content.length=(udh_length-pos)+
-(0x25d+542-0x47a);memcpy(header_ptr->u.eo.content.data,udh+pos,header_ptr->u.eo.
-content.length);pos+=header_ptr->u.eo.content.length;return pos;}static UINT8
-wms_ts_decode_udh_rfc822(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
-(0xf1a+1497-0x14f3);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x9f2+2731-0x149d);}if(
-udh[pos]<(0xe8c+148-0xf1f)){at_print(LOG_DEBUG,
+(0x1d01+2437-0x2685);memcpy(header_ptr->u.eo.content.data,udh+pos,header_ptr->u.
+eo.content.length);pos+=header_ptr->u.eo.content.length;return pos;}static UINT8
+ wms_ts_decode_udh_rfc822(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
+(0x1e40+1029-0x2245);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1876+391-0x19fd);}if(
+udh[pos]<(0x1f18+1533-0x2514)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x52\x66\x63\x38\x32\x32\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x1091+5677-0x26be);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x13b4+1024-0x17b4);}pos++;header_ptr->header_id=
WMS_UDH_RFC822;header_ptr->u.rfc822.header_length=udh[pos++];return(udh[
-(0x217+2175-0xa96)]+(0x1ba4+2837-0x26b8));}static UINT8
+(0xbaa+529-0xdbb)]+(0x8e7+6807-0x237d));}static UINT8
wms_ts_decode_udh_nat_lang_ss(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x48+9439-0x2527);if(udh==NULL||header_ptr==NULL){return(0xe40+4633-0x2059)
-;}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_SS){return(0x115c+3207-0x1de3);}pos++;
-header_ptr->header_id=WMS_UDH_NAT_LANG_SS;if((WMS_UDH_NAT_LANG_TURKISH>udh[pos])
-||(WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){return(0x17a2+1642-0x1e0c);}header_ptr
-->u.nat_lang_ss.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
-(0x12c0+3001-0x1e79)]+(0x6da+1138-0xb4b));}static UINT8
-wms_ts_decode_udh_nat_lang_ls(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x2c3+7299-0x1f46);if(udh==NULL||header_ptr==NULL){return
-(0xe3d+3858-0x1d4f);}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_LS){return
-(0xf78+1436-0x1514);}pos++;header_ptr->header_id=WMS_UDH_NAT_LANG_LS;if((
+pos=(0x16a+4058-0x1144);if(udh==NULL||header_ptr==NULL){return
+(0x3ef+7154-0x1fe1);}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_SS){return
+(0x1748+1852-0x1e84);}pos++;header_ptr->header_id=WMS_UDH_NAT_LANG_SS;if((
WMS_UDH_NAT_LANG_TURKISH>udh[pos])||(WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){
-return(0x16b7+3748-0x255b);}header_ptr->u.nat_lang_ls.nat_lang_id=(
-wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[(0x243+3538-0x1015)]+
-(0x2463+549-0x2687));}static UINT8 wms_ts_decode_udh_other(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x9a+3835-0xf95),i=(0x2f9+8346-0x2393);if(
-udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xae5+1315-0x1008);}if(
-udh[pos+(0xb71+305-0xca1)]>WMS_UDH_OTHER_SIZE){at_print(LOG_DEBUG,
+return(0x122a+4197-0x228f);}header_ptr->u.nat_lang_ss.nat_lang_id=(
+wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[(0x265+7955-0x2178)]+
+(0x1c15+1869-0x2361));}static UINT8 wms_ts_decode_udh_nat_lang_ls(const UINT8*
+udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x1611+557-0x183e);if(udh==NULL||
+header_ptr==NULL){return(0x1719+3961-0x2692);}if(udh[pos]!=
+WMS_UDH_OCTETS_NAT_LANG_LS){return(0x1951+647-0x1bd8);}pos++;header_ptr->
+header_id=WMS_UDH_NAT_LANG_LS;if((WMS_UDH_NAT_LANG_TURKISH>udh[pos])||(
+WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){return(0xcba+4991-0x2039);}header_ptr->u.
+nat_lang_ls.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
+(0x2c9+4420-0x140d)]+(0x18a6+2149-0x210a));}static UINT8 wms_ts_decode_udh_other
+(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x96b+5033-0x1d14),i=
+(0xb03+6038-0x2299);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x47b+7817-0x2304);}if(
+udh[pos+(0x100c+324-0x114f)]>WMS_UDH_OTHER_SIZE){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x4f\x74\x68\x65\x72\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x65\x78\x63\x65\x65\x64\x69\x6e\x67\x20\x32\x32\x36"
-);return(0x1029+5574-0x25ef);}header_ptr->header_id=(wms_udh_id_e_type)udh[pos];
+);return(0x10e7+4800-0x23a7);}header_ptr->header_id=(wms_udh_id_e_type)udh[pos];
header_ptr->u.other.header_id=(wms_udh_id_e_type)udh[pos++];header_ptr->u.other.
-header_length=udh[pos++];for(i=(0x242+1148-0x6be);i<header_ptr->u.other.
+header_length=udh[pos++];for(i=(0x686+946-0xa38);i<header_ptr->u.other.
header_length;i++){header_ptr->u.other.data[i]=udh[pos++];}return pos;}UINT8
wms_ts_decode_user_data_header(const UINT8 len,const UINT8*data,UINT8*
-num_headers_ptr,wms_udh_s_type*udh_ptr){UINT8 pos=(0x1461+4694-0x26b7);UINT8
-header_length=(0x173+5214-0x15d1),num_headers=(0x106f+4160-0x20af);UINT8 udhl;
-UINT8 first_segment=TRUE;if(data==NULL||len==(0x19b7+1405-0x1f34)||data[pos]==
-(0x17b0+2738-0x2262)||num_headers_ptr==NULL||udh_ptr==NULL){at_print(LOG_DEBUG,
+num_headers_ptr,wms_udh_s_type*udh_ptr){UINT8 pos=(0x14+7108-0x1bd8);UINT8
+header_length=(0x1193+1825-0x18b4),num_headers=(0x6d1+2477-0x107e);UINT8 udhl;
+UINT8 first_segment=TRUE;if(data==NULL||len==(0x18b1+2357-0x21e6)||data[pos]==
+(0x1b3+1191-0x65a)||num_headers_ptr==NULL||udh_ptr==NULL){at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x75\x73\x65\x72\x5f\x64\x61\x74\x61\x5f\x68\x65\x61\x64\x65\x72"
-);return(0x1081+3001-0x1c3a);}udhl=data[pos];pos++;while((pos<udhl)&&(
+);return(0x18b8+2574-0x22c6);}udhl=data[pos];pos++;while((pos<udhl)&&(
num_headers<WMS_MAX_UD_HEADERS)){switch(data[pos++]){case WMS_UDH_CONCAT_8:
header_length=wms_ts_decode_udh_concat_8(data+pos,&udh_ptr[num_headers]);break;
case WMS_UDH_CONCAT_16:header_length=wms_ts_decode_udh_concat16(data+pos,&
@@ -1864,66 +1864,66 @@
data+pos,&udh_ptr[num_headers]);break;}if((UINT16)pos+(UINT16)header_length>
WMS_MAX_LEN){at_print(LOG_DEBUG,
"\x6e\x75\x6d\x62\x65\x72\x20\x6f\x66\x20\x62\x79\x74\x65\x73\x20\x64\x65\x63\x6f\x64\x65\x64\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x55\x44\x48\x4c\x20\x76\x61\x6c\x75\x65\x20\x6f\x66\x20\x25\x64"
-,udhl);return(0x1926+2015-0x2105);}else if(header_length!=(0xd6b+15-0xd7a)){pos
-+=header_length;num_headers++;}else{at_print(LOG_DEBUG,
+,udhl);return(0x1551+4137-0x257a);}else if(header_length!=(0xb02+1226-0xfcc)){
+pos+=header_length;num_headers++;}else{at_print(LOG_DEBUG,
"\x42\x61\x64\x20\x55\x44\x48\x3a\x20\x70\x6f\x73\x3d\x25\x64\x2c\x20\x64\x61\x74\x61\x5b\x70\x6f\x73\x5d\x3d\x25\x64"
-,pos,data[pos]);*num_headers_ptr=(0xa21+4344-0x1b19);return(0x12f2+4376-0x240a);
+,pos,data[pos]);*num_headers_ptr=(0x914+5150-0x1d32);return(0x14d4+2146-0x1d36);
}}if(num_headers>=WMS_MAX_UD_HEADERS){at_print(LOG_DEBUG,
"\x64\x65\x63\x6f\x64\x65\x5f\x75\x64\x68\x3a\x20\x4e\x75\x6d\x20\x48\x65\x61\x64\x65\x72\x73\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x57\x4d\x53\x5f\x4d\x41\x58\x5f\x55\x44\x5f\x48\x45\x41\x44\x45\x52\x53"
-);pos=udhl+(0x11f6+5054-0x25b3);}if(pos!=(udhl+(0x849+7345-0x24f9))){at_print(
+);pos=udhl+(0x4f0+740-0x7d3);}if(pos!=(udhl+(0x941+666-0xbda))){at_print(
LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x63\x6f\x75\x6c\x64\x20\x6e\x6f\x74\x20\x62\x65\x20\x64\x65\x63\x6f\x64\x65\x64"
-);num_headers=(0x227+1526-0x81d);udhl=(0x119c+3881-0x20c5);}if(num_headers>
-(0xa9+1288-0x5b1)){*num_headers_ptr=num_headers;}return udhl;}UINT8
+);num_headers=(0xba+4746-0x1344);udhl=(0x17df+1251-0x1cc2);}if(num_headers>
+(0x12c1+4151-0x22f8)){*num_headers_ptr=num_headers;}return udhl;}UINT8
wms_ts_decode_gw_user_data(const wms_gw_dcs_s_type*dcs,const UINT8 len,const
UINT8*data,const UINT8 user_data_header_present,wms_gw_user_data_s_type*
-user_data){UINT8 i,pos=(0x90b+7313-0x259c);UINT8 fill_bits=(0x17e6+3127-0x241d);
-UINT8 user_data_length;UINT8 user_data_header_length=(0xaa3+6100-0x2277);if(dcs
+user_data){UINT8 i,pos=(0x111d+4247-0x21b4);UINT8 fill_bits=(0x10c3+1114-0x151d)
+;UINT8 user_data_length;UINT8 user_data_header_length=(0x4d0+4026-0x148a);if(dcs
==NULL||data==NULL||user_data==NULL){at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x67\x77\x5f\x75\x73\x65\x72\x5f\x64\x61\x74\x61"
-);return(0x13cf+1716-0x1a83);}(void)memset(user_data,(0x1f42+1345-0x2483),sizeof
-(wms_gw_user_data_s_type));if(len==(0x90b+2257-0x11dc)){return
-(0x1255+1157-0x16da);}if(dcs->alphabet==WMS_GW_ALPHABET_7_BIT_DEFAULT){if(len>
-WMS_SMS_UDL_MAX_7_BIT){at_print(LOG_DEBUG,
+);return(0x772+2837-0x1287);}(void)memset(user_data,(0x88f+7517-0x25ec),sizeof(
+wms_gw_user_data_s_type));if(len==(0xba+4670-0x12f8)){return(0xe39+6222-0x2687);
+}if(dcs->alphabet==WMS_GW_ALPHABET_7_BIT_DEFAULT){if(len>WMS_SMS_UDL_MAX_7_BIT){
+at_print(LOG_DEBUG,
"\x75\x73\x65\x72\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3e\x20\x6d\x61\x78\x20\x76\x61\x6c\x75\x65\x20\x66\x6f\x72\x20\x67\x77\x20\x37\x2d\x62\x69\x74\x20\x61\x6c\x70\x68\x61\x62\x65\x74"
-);return(0x147c+4282-0x2536);}user_data_length=len;if(user_data_header_present){
+);return(0x102+8429-0x21ef);}user_data_length=len;if(user_data_header_present){
user_data_header_length=wms_ts_decode_user_data_header(data[pos],data+pos,&
user_data->num_headers,user_data->headers);}if(user_data_header_length>len){
at_print(LOG_DEBUG,
"\x75\x73\x65\x72\x20\x64\x61\x74\x61\x20\x68\x65\x61\x64\x65\x72\x20\x6c\x65\x6e\x67\x74\x68\x20\x3e\x20\x74\x6f\x74\x61\x6c\x20\x6c\x65\x6e\x67\x74\x68"
-);return(0x1824+441-0x19dd);}if(user_data_header_length>(0x1c54+1260-0x2140)){
-fill_bits=((len*(0x986+5101-0x1d6c))-((user_data_header_length+
-(0x244+1481-0x80c))*(0xc6d+789-0xf7a)))%(0x925+5497-0x1e97);user_data_length=(
-UINT8)(((len*(0x1227+4061-0x21fd))-((user_data_header_length+
-(0x17a6+3278-0x2473))*(0x514+8468-0x2620)))/(0xc7a+555-0xe9e));pos=
-user_data_header_length+(0xdb1+463-0xf7f);if(fill_bits!=(0x16ab+2809-0x21a4)){
-fill_bits=(0x1c63+99-0x1cbe)-fill_bits;}}i=wms_ts_unpack_gw_7_bit_chars(&data[
-pos],user_data_length,WMS_MAX_LEN,fill_bits,user_data->sm_data);user_data->
-sm_len=user_data_length;}else{if(len>WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
+);return(0x1f53+1951-0x26f2);}if(user_data_header_length>(0xc08+3932-0x1b64)){
+fill_bits=((len*(0x4bb+655-0x743))-((user_data_header_length+
+(0x1405+2199-0x1c9b))*(0x213+4378-0x1325)))%(0x4ff+1663-0xb77);user_data_length=
+(UINT8)(((len*(0x7a6+4241-0x1830))-((user_data_header_length+(0x10d+3015-0xcd3))
+*(0x777+7300-0x23f3)))/(0xa51+7318-0x26e0));pos=user_data_header_length+
+(0x6d+6718-0x1aaa);if(fill_bits!=(0x325+8382-0x23e3)){fill_bits=
+(0xd68+3103-0x197f)-fill_bits;}}i=wms_ts_unpack_gw_7_bit_chars(&data[pos],
+user_data_length,WMS_MAX_LEN,fill_bits,user_data->sm_data);user_data->sm_len=
+user_data_length;}else{if(len>WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
"\x75\x73\x65\x72\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3e\x20\x6d\x61\x78\x20\x76\x61\x6c\x75\x65\x20\x66\x6f\x72\x20\x38\x2d\x62\x69\x74\x20\x63\x68\x61\x72\x61\x72\x61\x63\x74\x65\x72\x73"
-);return(0x8f8+247-0x9ef);}user_data_length=len;if(user_data_header_present){
+);return(0x12c9+3752-0x2171);}user_data_length=len;if(user_data_header_present){
user_data_header_length=wms_ts_decode_user_data_header(data[pos],data+pos,&
user_data->num_headers,user_data->headers);if(user_data_header_length>len){
at_print(LOG_DEBUG,
"\x75\x73\x65\x72\x20\x64\x61\x74\x61\x20\x68\x65\x61\x64\x65\x72\x20\x6c\x65\x6e\x67\x74\x68\x20\x3e\x20\x74\x6f\x74\x61\x6c\x20\x6c\x65\x6e\x67\x74\x68"
-);return(0xc64+1857-0x13a5);}pos+=user_data_header_length+(0x24+1383-0x58a);
-user_data_length=(len-user_data_header_length)-(0x152a+2098-0x1d5b);}memcpy(
+);return(0x1080+854-0x13d6);}pos+=user_data_header_length+(0x8e1+4609-0x1ae1);
+user_data_length=(len-user_data_header_length)-(0x775+3743-0x1613);}memcpy(
user_data->sm_data,data+pos,user_data_length);user_data->sm_len=user_data_length
;i=(UINT8)user_data->sm_len;}pos+=i;return pos;}wms_status_e_type
wms_ts_decode_deliver(const T_zUfiSms_RawTsData*ptRawTsData,
wms_gw_deliver_s_type*deliver){wms_status_e_type st=WMS_OK_S;uint32 pos=
-(0x118f+3752-0x2037),i;const UINT8*data=ptRawTsData->data;if(ptRawTsData==NULL||
+(0x597+1317-0xabc),i;const UINT8*data=ptRawTsData->data;if(ptRawTsData==NULL||
deliver==NULL){printf(
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x64\x65\x6c\x69\x76\x65\x72"
-);return WMS_NULL_PTR_S;}else if((data[pos]&(0xb8c+1763-0x126c))!=
-(0x808+1409-0xd89)){printf(
+);return WMS_NULL_PTR_S;}else if((data[pos]&(0x1f8+5599-0x17d4))!=
+(0x1207+692-0x14bb)){printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x74\x70\x64\x75\x20\x74\x79\x70\x65\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x64\x65\x6c\x69\x76\x65\x72"
);return WMS_INVALID_TPDU_TYPE_S;}else{deliver->more=(data[pos]&
-(0x256+8607-0x23f1))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
-(0xa99+3802-0x1953))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
-(0x1713+3651-0x2516))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
-(0xf11+6025-0x261a))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&
-deliver->address);if(i==(0x1355+3091-0x1f68)){printf(
+(0x1a7d+2657-0x24da))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
+(0x2ea+6293-0x1b5f))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
+(0x68a+6958-0x2178))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
+(0x1678+2055-0x1dff))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&
+deliver->address);if(i==(0x91b+4303-0x19ea)){printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x70\x61\x72\x61\x6d\x20\x73\x69\x7a\x65\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x64\x65\x6c\x69\x76\x65\x72"
);return WMS_INVALID_PARM_SIZE_S;}pos+=i;deliver->pid=(wms_pid_e_type)data[pos];
pos++;pos+=wms_ts_decode_dcs(data+pos,&deliver->dcs);if(deliver->dcs.
@@ -1931,75 +1931,75 @@
WMS_PID_RETURN_CALL){deliver->dcs.msg_waiting=WMS_GW_MSG_WAITING_STORE;deliver->
dcs.msg_waiting_active=TRUE;deliver->dcs.msg_waiting_kind=
WMS_GW_MSG_WAITING_VOICEMAIL;}}i=wms_ts_decode_timestamp(data+pos,&deliver->
-timestamp);if(i==(0x2e2+6850-0x1da4)){printf(
+timestamp);if(i==(0x652+7852-0x24fe)){printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x70\x61\x72\x61\x6d\x20\x76\x61\x6c\x75\x65\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x64\x65\x6c\x69\x76\x65\x72"
);return WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=wms_ts_decode_gw_user_data(&
-deliver->dcs,data[pos-(0x8b1+5378-0x1db2)],data+pos,deliver->
+deliver->dcs,data[pos-(0x1074+827-0x13ae)],data+pos,deliver->
user_data_header_present,&deliver->user_data);if(i>WMS_SMS_UDL_MAX_8_BIT){printf
(
"\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x4c\x65\x6e\x67\x74\x68\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x63\x61\x70\x61\x63\x69\x74\x79\x3a\x20\x55\x44\x4c\x20\x3d\x20\x25\x6c\x75"
,i);st=WMS_INVALID_USER_DATA_SIZE_S;}pos+=i;return st;}}UINT8
wms_ts_decode_gw_validity(const UINT8*data,wms_gw_validity_s_type*validity){
-UINT8 i,pos=(0xc9+9498-0x25e3);if(data==NULL||validity==NULL){at_print(LOG_DEBUG
-,
+UINT8 i,pos=(0x1798+3402-0x24e2);if(data==NULL||validity==NULL){at_print(
+LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x67\x77\x5f\x76\x61\x6c\x69\x64\x69\x74\x79"
-);return(0x126+5281-0x15c7);}else{switch(validity->format){case
-WMS_GW_VALIDITY_NONE:memset(validity,(0xeb4+1146-0x132e),sizeof(
+);return(0x1275+3858-0x2187);}else{switch(validity->format){case
+WMS_GW_VALIDITY_NONE:memset(validity,(0x10ac+4126-0x20ca),sizeof(
wms_gw_validity_s_type));break;case WMS_GW_VALIDITY_RELATIVE:
zUfiSms_DecodeRelativeTime(data[pos],&validity->u.time);pos++;break;case
WMS_GW_VALIDITY_ABSOLUTE:i=wms_ts_decode_timestamp(data+pos,&validity->u.time);
pos+=i;break;case WMS_GW_VALIDITY_ENHANCED:break;default:break;}return pos;}}
wms_status_e_type wms_ts_decode_submit(const T_zUfiSms_RawTsData*ptRawTsData,
wms_gw_submit_s_type*submit){wms_status_e_type st=WMS_OK_S;uint32 pos=
-(0x67b+3708-0x14f7),i;const UINT8*data;if(ptRawTsData==NULL||submit==NULL){
+(0x12cf+2569-0x1cd8),i;const UINT8*data;if(ptRawTsData==NULL||submit==NULL){
printf(
"\x4e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x73\x75\x62\x6d\x69\x74\x21"
);return WMS_NULL_PTR_S;}data=ptRawTsData->data;submit->reject_duplicates=(data[
-pos]&(0x1027+5130-0x242d))?TRUE:FALSE;submit->validity.format=(
-wms_gw_validity_format_e_type)((data[pos]&(0xdf0+3855-0x1ce7))>>
-(0x379+7233-0x1fb7));submit->status_report_enabled=(data[pos]&
-(0x1199+2508-0x1b45))?TRUE:FALSE;submit->user_data_header_present=(data[pos]&
-(0xf34+4622-0x2102))?TRUE:FALSE;submit->reply_path_present=(data[pos]&
-(0xe99+1191-0x12c0))?TRUE:FALSE;pos++;submit->message_reference=data[pos];pos++;
-i=wms_ts_decode_address(&data[pos],&submit->address);if(i==(0x1ec8+74-0x1f12)){
+pos]&(0x9b8+4022-0x196a))?TRUE:FALSE;submit->validity.format=(
+wms_gw_validity_format_e_type)((data[pos]&(0x6f2+263-0x7e1))>>
+(0x19c+4720-0x1409));submit->status_report_enabled=(data[pos]&
+(0x17a8+2640-0x21d8))?TRUE:FALSE;submit->user_data_header_present=(data[pos]&
+(0xf26+831-0x1225))?TRUE:FALSE;submit->reply_path_present=(data[pos]&
+(0x459+7948-0x22e5))?TRUE:FALSE;pos++;submit->message_reference=data[pos];pos++;
+i=wms_ts_decode_address(&data[pos],&submit->address);if(i==(0x2077+787-0x238a)){
return WMS_INVALID_PARM_SIZE_S;}pos+=i;submit->pid=(wms_pid_e_type)data[pos];pos
++;pos+=wms_ts_decode_dcs(data+pos,&submit->dcs);i=wms_ts_decode_gw_validity(
data+pos,&submit->validity);if((submit->validity.format!=WMS_GW_VALIDITY_NONE)&&
-(i==(0xab0+2577-0x14c1))){return WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=
-wms_ts_decode_gw_user_data(&submit->dcs,data[pos-(0xac5+6687-0x24e3)],data+pos,
+(i==(0x1438+957-0x17f5))){return WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=
+wms_ts_decode_gw_user_data(&submit->dcs,data[pos-(0x880+4189-0x18dc)],data+pos,
submit->user_data_header_present,&submit->user_data);if(i>WMS_SMS_UDL_MAX_8_BIT)
{printf(
"\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x4c\x65\x6e\x67\x74\x68\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x63\x61\x70\x61\x63\x69\x74\x79\x3a\x20\x55\x44\x4c\x20\x3d\x20\x25\x6c\x75"
,i);st=WMS_INVALID_USER_DATA_SIZE_S;}pos+=i;return st;}wms_status_e_type
wms_ts_decode_status_report(const T_zUfiSms_RawTsData*ptRawTsData,
wms_gw_status_report_s_type*status_report){wms_status_e_type st=WMS_OK_S;uint32
-pos=(0x14d1+1541-0x1ad6),i;const UINT8*data;if(ptRawTsData==NULL||status_report
-==NULL){printf(
+pos=(0xc8b+5457-0x21dc),i;const UINT8*data;if(ptRawTsData==NULL||status_report==
+NULL){printf(
"\x4e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x73\x74\x61\x74\x75\x73\x5f\x72\x65\x70\x6f\x72\x74\x21"
);return WMS_NULL_PTR_S;}data=ptRawTsData->data;status_report->more=data[pos]&
-(0xb3a+4412-0x1c72)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]&
-(0x377+493-0x544)?TRUE:FALSE;status_report->user_data_header_present=(data[pos]&
-(0x12a6+5144-0x267e))?TRUE:FALSE;pos++;status_report->message_reference=data[pos
-];pos++;i=wms_ts_decode_address(&data[pos],&status_report->address);if(i==
-(0x1bec+2305-0x24ed)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0x1b07+1354-0x204d)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]
+&(0x3c3+7852-0x224f)?TRUE:FALSE;status_report->user_data_header_present=(data[
+pos]&(0xe19+3329-0x1ada))?TRUE:FALSE;pos++;status_report->message_reference=data
+[pos];pos++;i=wms_ts_decode_address(&data[pos],&status_report->address);if(i==
+(0xe73+1516-0x145f)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
wms_ts_decode_timestamp(data+pos,&status_report->timestamp);if(i==
-(0x4fc+5320-0x19c4)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0x402+3962-0x137c)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
wms_ts_decode_timestamp(data+pos,&status_report->discharge_time);if(i==
-(0xe65+1740-0x1531)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;status_report->
+(0x17e3+97-0x1844)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;status_report->
tp_status=(wms_tp_status_e_type)data[pos];pos++;status_report->mask=data[pos];
-status_report->pid=(wms_pid_e_type)(0x1cc+769-0x4cd);status_report->user_data.
-sm_len=(0xf8b+2368-0x18cb);status_report->mask&=(0x15ef+1128-0x1958);if((
-status_report->mask!=(0x107c+3907-0x1ec0))&&(status_report->mask!=
-(0x500+8283-0x255b))){pos++;if(status_report->mask&WMS_TPDU_MASK_PID){
+status_report->pid=(wms_pid_e_type)(0x650+7193-0x2269);status_report->user_data.
+sm_len=(0x689+7120-0x2259);status_report->mask&=(0x1bf6+1807-0x2206);if((
+status_report->mask!=(0xc63+6542-0x24f2))&&(status_report->mask!=
+(0x191c+3445-0x2691))){pos++;if(status_report->mask&WMS_TPDU_MASK_PID){
status_report->pid=(wms_pid_e_type)data[pos];pos++;}if(status_report->mask&
WMS_TPDU_MASK_DCS){pos+=wms_ts_decode_dcs(data+pos,&status_report->dcs);}if(
status_report->mask&WMS_TPDU_MASK_USER_DATA){pos++;i=wms_ts_decode_gw_user_data(
-&status_report->dcs,data[pos-(0xcab+6440-0x25d2)],data+pos,status_report->
+&status_report->dcs,data[pos-(0x4+8413-0x20e0)],data+pos,status_report->
user_data_header_present,&status_report->user_data);if(i>WMS_SMS_UDL_MAX_8_BIT){
printf(
"\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x4c\x65\x6e\x67\x74\x68\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x63\x61\x70\x61\x63\x69\x74\x79\x3a\x20\x55\x44\x4c\x20\x3d\x20\x25\x6c\x75"
,i);st=WMS_INVALID_USER_DATA_SIZE_S;}pos+=i;}}else{status_report->mask=
-(0x17b8+432-0x1968);}return st;}wms_status_e_type wms_ts_decode(const
+(0xfc2+5606-0x25a8);}return st;}wms_status_e_type wms_ts_decode(const
T_zUfiSms_RawTsData*ptRawTsData,T_zUfiSms_ClientTsData*ptClientTsData){
wms_status_e_type st=WMS_OK_S;wms_gw_pp_ts_data_s_type*msg;if(ptRawTsData==NULL
||ptClientTsData==NULL){return WMS_NULL_PTR_S;}msg=&ptClientTsData->u.gw_pp;
diff --git a/ap/app/zte_comm/sms/src/sms_db.c b/ap/app/zte_comm/sms/src/sms_db.c
index 9417556..71a980c 100755
--- a/ap/app/zte_comm/sms/src/sms_db.c
+++ b/ap/app/zte_comm/sms/src/sms_db.c
@@ -101,85 +101,85 @@
#define OUTDATEINTERVAL 7776000
typedef struct{char*buf_addr;int buf_len;}T_zUfiSms_BufInfo;typedef struct{int
valid;char*strSQL;}T_zUfiSms_SQLMap;sqlite3*g_zUfiSms_DbPointer=
-(0x1308+1214-0x17c6);extern T_zUfiSms_ParaInfo g_zUfiSms_CurSmsPara;extern
+(0x265+4027-0x1220);extern T_zUfiSms_ParaInfo g_zUfiSms_CurSmsPara;extern
unsigned long g_zUfiSms_StoreCapablity[ZTE_WMS_MEMORY_MAX];extern
T_zUfiSms_DelSms g_zUfiSms_DelMsg;static int isSucess(T_zUfiSms_DbResult dbRst){
return dbRst==ZTE_WMS_DB_OK?ZUFI_SUCC:ZUFI_FAIL;}time_t zte_getsecond(
-T_zUfiSms_Date date){time_t timet;struct tm tmtime={(0x23f+2537-0xc28)};int
-tmp_i=(0x1486+1456-0x1a36);
-#if (0x1155+5035-0x2500)
-if(atoi(date.year)>(0x215+5255-0x1639)||atoi(date.year)<(0x1939+542-0x1b57)){
+T_zUfiSms_Date date){time_t timet;struct tm tmtime={(0xb30+1627-0x118b)};int
+tmp_i=(0x403+2588-0xe1f);
+#if (0xd89+4898-0x20ab)
+if(atoi(date.year)>(0x879+2626-0x1258)||atoi(date.year)<(0x559+6503-0x1ec0)){
printf("[SMS] getsecond error, year out of range: %d!!!",atoi(date.year));return
-(0x9c+2222-0x94a);}
+(0xb11+5886-0x220f);}
#endif
-tmp_i=atoi(date.year);if(tmp_i<(0x916+6739-0x2369)||tmp_i>INT_MAX-
-(0xd2c+3190-0x19a1)){at_print(LOG_ERR,
+tmp_i=atoi(date.year);if(tmp_i<(0xbd7+3606-0x19ed)||tmp_i>INT_MAX-
+(0x8d8+4352-0x19d7)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x79\x65\x61\x72\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0x6ef+6643-0x20e2);}tmtime.tm_year=tmp_i+(0x1da1+2824-0x20d9)-
-(0x1d67+4223-0x267a);tmp_i=atoi(date.month);if(tmp_i<(0x1689+2486-0x203f)||tmp_i
->INT_MAX-(0x1d9f+1577-0x23c7)){at_print(LOG_ERR,
+,tmp_i);return(0xdb4+3202-0x1a36);}tmtime.tm_year=tmp_i+(0x117d+5399-0x1ec4)-
+(0x891+5426-0x1657);tmp_i=atoi(date.month);if(tmp_i<(0xc8c+6660-0x2690)||tmp_i>
+INT_MAX-(0x1359+3423-0x20b7)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x6d\x6f\x6e\x74\x68\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0x377+8942-0x2665);}tmtime.tm_mon=tmp_i-(0x174c+81-0x179c);tmp_i=
-atoi(date.day);if(tmp_i<(0x119c+4380-0x22b8)||tmp_i>INT_MAX-(0x622+3151-0x1270))
+,tmp_i);return(0xef0+4426-0x203a);}tmtime.tm_mon=tmp_i-(0xa72+6256-0x22e1);tmp_i
+=atoi(date.day);if(tmp_i<(0xf82+5434-0x24bc)||tmp_i>INT_MAX-(0x707+6806-0x219c))
{at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x64\x61\x79\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0xa2f+6728-0x2477);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);if
-(tmp_i<(0x10df+3456-0x1e5f)||tmp_i>INT_MAX-(0x129+9658-0x26e2)){at_print(LOG_ERR
+,tmp_i);return(0x19a4+566-0x1bda);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);if
+(tmp_i<(0xb32+6031-0x22c1)||tmp_i>INT_MAX-(0x133d+1649-0x19ad)){at_print(LOG_ERR
,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x68\x6f\x75\x72\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0xf2f+600-0x1187);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if(
-tmp_i<(0xe6f+92-0xecb)||tmp_i>INT_MAX-(0x7f4+3513-0x15ac)){at_print(LOG_ERR,
+,tmp_i);return(0x1a1+2753-0xc62);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if(
+tmp_i<(0xc33+2590-0x1651)||tmp_i>INT_MAX-(0xc08+5093-0x1fec)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x6d\x69\x6e\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0x1662+3230-0x2300);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
-tmp_i<(0x1020+4264-0x20c8)||tmp_i>INT_MAX-(0x19f+6393-0x1a97)){at_print(LOG_ERR,
+,tmp_i);return(0x1bca+2553-0x25c3);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
+tmp_i<(0x2ad+8930-0x258f)||tmp_i>INT_MAX-(0x193a+3151-0x2588)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x73\x65\x63\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0x25a+343-0x3b1);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
+,tmp_i);return(0xf20+2373-0x1865);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
return timet;}T_zUfiSms_DbResult zUfiSms_OpenDb(void){int retry_times=
-(0x967+4028-0x1923);int open_rst=SQLITE_ERROR;if(g_zUfiSms_DbPointer!=NULL){
+(0xc8b+3734-0x1b21);int open_rst=SQLITE_ERROR;if(g_zUfiSms_DbPointer!=NULL){
sqlite3_close(g_zUfiSms_DbPointer);g_zUfiSms_DbPointer=NULL;}do{open_rst=
sqlite3_open(ZTE_WMS_DB_PATH,&g_zUfiSms_DbPointer);}while(open_rst==
-SQLITE_CANTOPEN&&retry_times++<(0xbd5+2426-0x1545));printf(
+SQLITE_CANTOPEN&&retry_times++<(0xf1+6288-0x1977));printf(
"\x7a\x55\x66\x69\x53\x6d\x73\x5f\x4f\x70\x65\x6e\x44\x62\x3a\x20\x72\x65\x74\x72\x79\x5f\x74\x69\x6d\x65\x73\x20\x3d\x20\x25\x64\x2c\x20\x6f\x70\x65\x6e\x5f\x72\x73\x74\x20\x3d\x20\x25\x64" "\n"
,retry_times,open_rst);return open_rst==SQLITE_OK?ZTE_WMS_DB_OK:
ZTE_SMS_DB_ERROR_NOT_OPEN_DB;}T_zUfiSms_DbResult zUfiSms_CloseDb(void){if(
sqlite3_close(g_zUfiSms_DbPointer)!=SQLITE_OK){return ZTE_SMS_DB_ERROR;}
g_zUfiSms_DbPointer=NULL;return ZTE_WMS_DB_OK;}T_zUfiSms_DbResult
zUfiSms_ExecSql(const char*exec_sql,zte_wms_db_callback callback,void*fvarg){int
- try_times=(0x1fb8+902-0x233e);int sqlRst=SQLITE_ERROR;while(try_times++<
-(0x18a3+483-0x1a7c)){sqlRst=sqlite3_exec(g_zUfiSms_DbPointer,exec_sql,callback,
+ try_times=(0xcd0+6334-0x258e);int sqlRst=SQLITE_ERROR;while(try_times++<
+(0x6f1+7937-0x25e8)){sqlRst=sqlite3_exec(g_zUfiSms_DbPointer,exec_sql,callback,
fvarg,NULL);if(sqlRst!=SQLITE_BUSY&&sqlRst!=SQLITE_LOCKED&&sqlRst!=SQLITE_IOERR)
{break;}printf(
"\x7a\x55\x66\x69\x53\x6d\x73\x5f\x45\x78\x65\x63\x53\x71\x6c\x3a\x20\x74\x72\x79\x5f\x74\x69\x6d\x65\x73\x3d\x25\x64\x2c\x20\x53\x51\x4c\x3d\x25\x73\x2c\x20\x45\x72\x72\x6d\x73\x67\x3d\x25\x73" "\n"
,try_times,exec_sql,sqlite3_errmsg(g_zUfiSms_DbPointer));sleep(
-(0x1793+305-0x18c3));}if(sqlRst!=SQLITE_OK){printf(
+(0x1bba+1330-0x20eb));}if(sqlRst!=SQLITE_OK){printf(
"\x7a\x55\x66\x69\x53\x6d\x73\x5f\x45\x78\x65\x63\x53\x71\x6c\x3a\x20\x74\x72\x79\x5f\x74\x69\x6d\x65\x73\x3d\x25\x64\x2c\x20\x53\x51\x4c\x3d\x25\x73\x2c\x20\x45\x72\x72\x6d\x73\x67\x3d\x25\x73" "\n"
,try_times,exec_sql,sqlite3_errmsg(g_zUfiSms_DbPointer));return ZTE_SMS_DB_ERROR
;}else{
#ifdef WEBS_SECURITY
-if(access(ZTE_WMS_TMP1_PATH,F_OK)==(0x314+8918-0x25ea)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZTE_WMS_TMP1_PATH,F_OK)==(0xa38+6913-0x2539)){slog(PB_PRINT,SLOG_ERR,
"\x7a\x55\x66\x69\x53\x6d\x73\x5f\x45\x78\x65\x63\x53\x71\x6c\x20\x64\x62\x20\x73\x74\x61\x79"
-);if(remove(ZTE_WMS_TMP1_PATH)!=(0xbfc+2065-0x140d)){slog(SMS_PRINT,SLOG_ERR,
+);if(remove(ZTE_WMS_TMP1_PATH)!=(0xa21+2819-0x1524)){slog(SMS_PRINT,SLOG_ERR,
"\x72\x65\x6d\x6f\x76\x65\x20\x57\x4d\x53\x5f\x54\x4d\x50\x31\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
-);}}{char rnum_buf[(0x2d1+8284-0x2315)]={(0x172+5435-0x16ad)};char cmd[
-(0x9bc+1757-0x1019)]={(0x167d+2839-0x2194)};sc_cfg_get(
+);}}{char rnum_buf[(0x211+6557-0x1b96)]={(0xd65+5256-0x21ed)};char cmd[
+(0x252+3837-0x10cf)]={(0x7dc+1469-0xd99)};sc_cfg_get(
"\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(rnum_buf));snprintf(cmd,sizeof(
cmd),
"\x2f\x62\x69\x6e\x2f\x6f\x70\x65\x6e\x73\x73\x6c\x20\x65\x6e\x63\x20\x2d\x65\x20\x2d\x61\x65\x73\x32\x35\x36\x20\x2d\x73\x61\x6c\x74\x20\x2d\x69\x6e\x20\x25\x73\x20\x2d\x6f\x75\x74\x20\x25\x73\x20\x2d\x70\x61\x73\x73\x20\x70\x61\x73\x73\x3a\x25\x73"
,ZTE_WMS_DB_PATH,ZTE_WMS_TMP1_PATH,rnum_buf);zxic_system(cmd);if(access(
-ZTE_WMS_TMP1_PATH,F_OK)==(0x5ea+7342-0x2298)){if(remove(ZTE_WMS_SEC_PATH)!=
-(0x94+2292-0x988)){slog(SMS_PRINT,SLOG_ERR,
+ZTE_WMS_TMP1_PATH,F_OK)==(0x1f75+1909-0x26ea)){if(remove(ZTE_WMS_SEC_PATH)!=
+(0x654+5287-0x1afb)){slog(SMS_PRINT,SLOG_ERR,
"\x72\x65\x6d\x6f\x76\x65\x20\x57\x4d\x53\x5f\x53\x45\x43\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
-);}if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=(0x15d6+4176-0x2626)){slog(
+);}if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=(0xbd3+5788-0x226f)){slog(
SMS_PRINT,SLOG_ERR,
"\x72\x65\x6e\x61\x6d\x65\x20\x57\x4d\x53\x5f\x54\x4d\x50\x31\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
);}}}
#endif
return ZTE_WMS_DB_OK;}}int zUfiSms_GetFirstColumnInt(void*fvarg,int columns,char
-**zresult,char**lname){if(columns>=(0x12b5+2038-0x1aaa)){if(zresult[
-(0x8b0+3124-0x14e4)]==NULL){*(int*)fvarg=(0x89b+3394-0x15dd);}else{*(int*)fvarg=
-atoi(zresult[(0x606+6620-0x1fe2)]);}return SQLITE_OK;}else{return SQLITE_ERROR;}
-}int zUfiSms_SetCmdStatus(T_zUfiSms_StatusInfo*ptSetStatus){T_zUfiSms_DbResult
-result=ZTE_WMS_DB_OK;char*strSQL=NULL;printf(
+**zresult,char**lname){if(columns>=(0x1663+1714-0x1d14)){if(zresult[
+(0x169b+1687-0x1d32)]==NULL){*(int*)fvarg=(0x1413+3232-0x20b3);}else{*(int*)
+fvarg=atoi(zresult[(0xddb+825-0x1114)]);}return SQLITE_OK;}else{return
+SQLITE_ERROR;}}int zUfiSms_SetCmdStatus(T_zUfiSms_StatusInfo*ptSetStatus){
+T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;char*strSQL=NULL;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x74\x43\x6d\x64\x53\x74\x61\x74\x75\x73\x20\x65\x6e\x74\x65\x72\x2e" "\n"
);strSQL=sqlite3_mprintf(
"\x49\x4e\x53\x45\x52\x54\x20\x4f\x52\x20\x52\x45\x50\x4c\x41\x43\x45\x20\x49\x4e\x54\x4f\x20\x25\x73\x28\x43\x6d\x64\x2c\x43\x6d\x64\x5f\x53\x74\x61\x74\x75\x73\x2c\x45\x72\x72\x5f\x43\x6f\x64\x65\x2c\x53\x65\x6e\x64\x5f\x46\x61\x69\x6c\x5f\x43\x6f\x75\x6e\x74\x2c\x44\x65\x6c\x5f\x43\x6f\x75\x6e\x74\x29\x20"
@@ -188,28 +188,28 @@
ptSetStatus->err_code,ptSetStatus->send_failed_count,ptSetStatus->
delete_failed_count);result=zUfiSms_ExecSql(strSQL,NULL,NULL);sqlite3_free(
strSQL);return isSucess(result);}void zUfiSms_SetParameterNv(T_zUfiSms_ParaInfo*
-para){if((0xc1b+6779-0x2696)==(int)para->status_report_on){sc_cfg_set(
+para){if((0x154a+1100-0x1996)==(int)para->status_report_on){sc_cfg_set(
NV_REPORT_ENABLE,"\x30");}else{sc_cfg_set(NV_REPORT_ENABLE,"\x31");}if(
-(0xe12+5524-0x23a6)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY,
-"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0x375+2032-0xb65)==(int)
-para->outdate_delete_on){sc_cfg_set(NV_OUTDATE_DELETE,"\x30");}else{sc_cfg_set(
+(0xcd4+941-0x1081)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY,
+"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0xbbb+3286-0x1891)==(int
+)para->outdate_delete_on){sc_cfg_set(NV_OUTDATE_DELETE,"\x30");}else{sc_cfg_set(
NV_OUTDATE_DELETE,"\x31");}if(*(para->default_store)!='\0'){sc_cfg_set(
-NV_DEFAULT_STORE,(char*)para->default_store);}if((0xd04+3347-0x1a17)==(int)para
+NV_DEFAULT_STORE,(char*)para->default_store);}if((0x9cc+6042-0x2166)==(int)para
->mem_store){sc_cfg_set(NV_PRA_MEMSTORE,"\x30");}else{sc_cfg_set(NV_PRA_MEMSTORE
-,"\x31");}if((0xd1a+3956-0x1b8f)==(int)para->tp_validity_period){sc_cfg_set(
-NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0x1d18+1401-0x21e4)==(int)
+,"\x31");}if((0x264+4874-0x146f)==(int)para->tp_validity_period){sc_cfg_set(
+NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0x5bb+5863-0x1bf5)==(int)
para->tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x6f\x6e\x65\x77\x65\x65\x6b");}
-else if((0x1080+4532-0x218d)==(int)para->tp_validity_period){sc_cfg_set(
-NV_SMS_VP,"\x6f\x6e\x65\x5f\x64\x61\x79");}else if((0x5d9+7529-0x22b3)==(int)
+else if((0x1327+1857-0x19c1)==(int)para->tp_validity_period){sc_cfg_set(
+NV_SMS_VP,"\x6f\x6e\x65\x5f\x64\x61\x79");}else if((0x20f1+1089-0x24a3)==(int)
para->tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x74\x77\x65\x6c\x76\x65\x68");}
printf(
"\x77\x6d\x73\x5f\x64\x62\x5f\x73\x65\x74\x5f\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x20\x3a\x3a\x20\x73\x65\x74\x20\x74\x70\x5f\x76\x61\x6c\x69\x64\x69\x74\x79\x5f\x70\x65\x72\x69\x6f\x64\x20\x25\x64" "\n"
,(int)para->tp_validity_period);}int zUfiSms_SetDbParameters(T_zUfiSms_ParaInfo*
para){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;char*strSQL=NULL;int count=
-(0x369+8708-0x256d);if(NULL==para){return-(0x43+4780-0x12ee);}zUfiSms_ExecSql(
+(0x1b36+1974-0x22ec);if(NULL==para){return-(0x2+2991-0xbb0);}zUfiSms_ExecSql(
"\x53\x45\x4c\x45\x43\x54\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x46\x52\x4f\x4d\x20"
ZTE_WMS_DB_PARAMETER_TABLE"\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x31\x3b",
-zUfiSms_GetFirstColumnInt,&count);if(count>(0x1c2b+188-0x1ce7)){strSQL=
+zUfiSms_GetFirstColumnInt,&count);if(count>(0x16d1+2408-0x2039)){strSQL=
sqlite3_mprintf(
"\x55\x50\x44\x41\x54\x45\x20\x25\x73\x20\x53\x45\x54\x20\x53\x6d\x73\x5f\x52\x65\x70\x6f\x72\x74\x3d\x27\x25\x64\x27\x2c\x53\x6d\x73\x5f\x53\x63\x61\x3d\x27\x25\x71\x27\x2c\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x64\x27\x2c\x54\x70\x5f\x56\x61\x6c\x69\x64\x69\x74\x79\x3d\x27\x25\x64\x27\x2c\x53\x65\x6e\x64\x5f\x52\x65\x74\x72\x79\x3d\x27\x25\x64\x27\x2c\x4f\x75\x74\x64\x61\x74\x65\x5f\x44\x65\x6c\x65\x74\x65\x3d\x27\x25\x64\x27\x2c\x44\x65\x66\x61\x75\x6c\x74\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x71\x27\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x31\x3b"
,ZTE_WMS_DB_PARAMETER_TABLE,(int)para->status_report_on,para->sca,(int)para->
@@ -222,13 +222,13 @@
mem_store,(int)para->tp_validity_period,(int)para->sendfail_retry_on,(int)para->
outdate_delete_on,para->default_store);}result=zUfiSms_ExecSql(strSQL,NULL,NULL)
;sqlite3_free(strSQL);if(result==ZTE_WMS_DB_OK){zUfiSms_SetParameterNv(para);
-return(0x635+5724-0x1c91);}return-(0x3c6+7678-0x21c3);}int zUfiSms_GetTotalCount
+return(0xa40+5729-0x20a1);}return-(0x2b6+7006-0x1e13);}int zUfiSms_GetTotalCount
(const char*pDbTable,int*pTotalCount){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;
char*strSQL=NULL;strSQL=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x71\x27\x3b"
,pDbTable);result=zUfiSms_ExecSql(strSQL,zUfiSms_GetFirstColumnInt,pTotalCount);
sqlite3_free(strSQL);return isSucess(result);}int zUfiSms_GetSmsMaxReferInDb(
-void){int max_sms_ref=-(0x855+330-0x99e);zUfiSms_ExecSql(
+void){int max_sms_ref=-(0x191d+2484-0x22d0);zUfiSms_ExecSql(
"\x53\x45\x4c\x45\x43\x54\x20\x4d\x61\x78\x5f\x53\x6d\x73\x5f\x52\x65\x66\x20\x46\x52\x4f\x4d\x20"
ZTE_WMS_DB_PARAMETER_TABLE
"\x20\x57\x48\x45\x52\x45\x20\x69\x64\x20\x3d\x20\x31\x3b",
@@ -237,20 +237,20 @@
content,int len){sqlite3_stmt*stmt=NULL;char*strSQL=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x69\x6e\x64\x2c\x43\x63\x5f\x53\x65\x71\x2c\x43\x63\x5f\x43\x6f\x6e\x74\x65\x6e\x74\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x71\x27\x3b"
,id,mem_store);(void)sqlite3_prepare(g_zUfiSms_DbPointer,strSQL,-
-(0xc12+5113-0x200a),&stmt,(0x6cb+1489-0xc9c));while(SQLITE_ROW==sqlite3_step(
-stmt)){char*column_text=NULL;memset(pac->IndStr,(0x188+3456-0xf08),sizeof(pac->
-IndStr));memset(pac->Seg_Seq,(0x4d0+588-0x71c),sizeof(pac->Seg_Seq));if((
-column_text=sqlite3_column_text(stmt,(0xab1+3110-0x16d7)))!=NULL)strncpy(pac->
-IndStr,column_text,sizeof(pac->FormatInd)-(0xf25+3129-0x1b5d));if((column_text=
-sqlite3_column_text(stmt,(0xca2+4284-0x1d5d)))!=NULL)strncpy(pac->Seg_Seq,
-column_text,sizeof(pac->FormatSeq)-(0x822+7251-0x2474));if((column_text=
-sqlite3_column_text(stmt,(0x194a+1176-0x1de0)))!=NULL)strncpy(content,
-column_text,len-(0x1d7a+1535-0x2378));printf(
+(0x5d8+4312-0x16af),&stmt,(0x3e5+1576-0xa0d));while(SQLITE_ROW==sqlite3_step(
+stmt)){char*column_text=NULL;memset(pac->IndStr,(0x9bc+190-0xa7a),sizeof(pac->
+IndStr));memset(pac->Seg_Seq,(0x88b+6296-0x2123),sizeof(pac->Seg_Seq));if((
+column_text=sqlite3_column_text(stmt,(0x1291+1461-0x1846)))!=NULL)strncpy(pac->
+IndStr,column_text,sizeof(pac->FormatInd)-(0x21e6+786-0x24f7));if((column_text=
+sqlite3_column_text(stmt,(0x964+7177-0x256c)))!=NULL)strncpy(pac->Seg_Seq,
+column_text,sizeof(pac->FormatSeq)-(0x155f+2895-0x20ad));if((column_text=
+sqlite3_column_text(stmt,(0x1ee3+1556-0x24f5)))!=NULL)strncpy(content,
+column_text,len-(0x3e2+4071-0x13c8));printf(
"\x5b\x53\x4d\x53\x5d\x20\x74\x65\x65\x74\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x43\x6f\x6e\x63\x61\x74\x49\x6e\x66\x6f\x3a\x25\x73\x2c\x25\x73" "\n"
,pac->IndStr,pac->Seg_Seq);}(void)sqlite3_finalize(stmt);sqlite3_free(strSQL);
-return(0x194a+2990-0x24f8);}int zUfiSms_UpdateConcatSmsToDb(
-T_zUfiSms_DbStoreData*db_data,const char*mem_store,char*format_concat,char*
-content,T_zUfiSms_DbStoreStr*pac,int concat_num,long id){char*sql=NULL;
+return(0x13b3+827-0x16ee);}int zUfiSms_UpdateConcatSmsToDb(T_zUfiSms_DbStoreData
+*db_data,const char*mem_store,char*format_concat,char*content,
+T_zUfiSms_DbStoreStr*pac,int concat_num,long id){char*sql=NULL;
T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;sql=sqlite3_mprintf(
"\x55\x50\x44\x41\x54\x45\x20\x73\x6d\x73\x20\x53\x45\x54\x20\x69\x6e\x64\x3d\x27\x25\x73\x27\x2c\x54\x61\x67\x3d\x27\x25\x64\x27\x2c\x43\x63\x5f\x53\x65\x71\x3d\x27\x25\x73\x27\x2c\x43\x63\x5f\x4e\x75\x6d\x3d\x27\x25\x64\x27\x2c\x20"
"\x43\x63\x5f\x43\x6f\x6e\x74\x65\x6e\x74\x3d\x27\x25\x71\x27\x2c\x43\x6f\x6e\x74\x65\x6e\x74\x3d\x27\x25\x71\x27\x2c\x59\x65\x61\x72\x3d\x27\x25\x71\x27\x2c\x4d\x6f\x6e\x74\x68\x3d\x27\x25\x71\x27\x2c\x20"
@@ -270,8 +270,8 @@
"\x43\x6f\x6e\x74\x65\x6e\x74\x2c\x53\x6d\x73\x5f\x52\x65\x70\x6f\x72\x74\x5f\x52\x65\x63\x69\x76\x65\x64\x2c\x44\x72\x61\x66\x74\x5f\x47\x72\x6f\x75\x70\x5f\x49\x64\x2c\x59\x65\x61\x72\x2c\x4d\x6f\x6e\x74\x68\x2c\x44\x61\x79\x2c\x48\x6f\x75\x72\x2c\x4d\x69\x6e\x75\x74\x65\x2c\x53\x65\x63\x6f\x6e\x64\x2c\x54\x69\x6d\x65\x5a\x6f\x6e\x65\x2c\x4d\x6b\x74\x69\x6d\x65\x2c\x44\x69\x73\x70\x6c\x61\x79\x4d\x6f\x64\x65\x29\x20"
"\x56\x41\x4c\x55\x45\x53\x28" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c\x20\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c\x20\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c\x20" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c\x20\x27\x25\x64\x27\x29\x3b"
,pac->FormatInd,mem_store,db_data->tag,db_data->number,db_data->concat_sms,
-db_data->concat_info[(0xd8c+3952-0x1cfc)],db_data->concat_info[
-(0x869+5596-0x1e44)],pac->FormatSeq,concat_num,format_concat,db_data->tp_dcs,
+db_data->concat_info[(0x56d+4880-0x187d)],db_data->concat_info[
+(0x35b+1562-0x974)],pac->FormatSeq,concat_num,format_concat,db_data->tp_dcs,
db_data->msg_ref,content,"\x30",db_data->draft_group_id,db_data->julian_date.
year,db_data->julian_date.month,db_data->julian_date.day,db_data->julian_date.
hour,db_data->julian_date.min,db_data->julian_date.sec,db_data->julian_date.
@@ -280,23 +280,22 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x49\x6e\x73\x65\x72\x74\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x54\x6f\x44\x62\x20\x73\x71\x6c\x3d\x25\x73\x2e" "\n"
,sql);result=zUfiSms_ExecSql(sql,NULL,NULL);sqlite3_free(sql);return isSucess(
result);}int zUfiSms_GetConcatMaxReferInDb(void){int ConcatMaxRefer=
-(0x5d4+1237-0xaa9);int result=(0x135+5733-0x179a);result=zUfiSms_ExecSql(
+(0x84d+6879-0x232c);int result=(0xc2d+1533-0x122a);result=zUfiSms_ExecSql(
"\x53\x45\x4c\x45\x43\x54\x20\x4d\x61\x78\x5f\x43\x63\x5f\x52\x65\x66\x20\x46\x52\x4f\x4d\x20"
ZTE_WMS_DB_PARAMETER_TABLE
"\x20\x57\x48\x45\x52\x45\x20\x69\x64\x20\x3d\x20\x31\x3b",
zUfiSms_GetFirstColumnInt,&ConcatMaxRefer);if(ZTE_WMS_DB_OK!=result){return-
-(0x9ff+7356-0x26ba);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap=
-(0x107a+4597-0x226f);const T_zUfiSms_SQLMap SQL_MAP[]={{(0x37+6153-0x183f),
-ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0x9a9+5221-0x1e0d),ZTE_WMS_DEL_SIM_SQL},{
-(0x164+8708-0x2367),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0x946+2684-0x13c1),
-ZTE_WMS_CREATE_SMS_REP_SQL},{(0xa24+2176-0x12a3),ZTE_WMS_CREATE_PAR_SQL},{
-(0x21+4281-0x10d9),ZTE_WMS_CREATE_INFO_SQL},{(0xef6+3942-0x1e5b),
-ZTE_WMS_CREATE_CELL_BRO_SQL},{(0x207d+477-0x2259),
-ZTE_WMS_CREATE_SEND_CONTENT_SQL},};for(iMap=(0xdbf+1311-0x12de);iMap<sizeof(
-SQL_MAP)/sizeof(T_zUfiSms_SQLMap);iMap++){if(SQL_MAP[iMap].valid==
-(0x24b4+386-0x2635)){if(zUfiSms_ExecSql(SQL_MAP[iMap].strSQL,NULL,NULL)!=
-ZTE_WMS_DB_OK){return ZUFI_FAIL;}}}return ZUFI_SUCC;}int zUfiSms_CreateAllTable(
-void){if(ZTE_WMS_DB_OK!=zUfiSms_OpenDb()){printf(
+(0x7ac+5837-0x1e78);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap=
+(0x4cf+6219-0x1d1a);const T_zUfiSms_SQLMap SQL_MAP[]={{(0x1fb+7321-0x1e93),
+ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0x15e5+3010-0x21a6),ZTE_WMS_DEL_SIM_SQL},{
+(0xc9+7747-0x1f0b),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0x130f+2686-0x1d8c),
+ZTE_WMS_CREATE_SMS_REP_SQL},{(0x111+2349-0xa3d),ZTE_WMS_CREATE_PAR_SQL},{
+(0xa44+909-0xdd0),ZTE_WMS_CREATE_INFO_SQL},{(0xb70+5858-0x2251),
+ZTE_WMS_CREATE_CELL_BRO_SQL},{(0x1e9+3342-0xef6),ZTE_WMS_CREATE_SEND_CONTENT_SQL
+},};for(iMap=(0xb76+3469-0x1903);iMap<sizeof(SQL_MAP)/sizeof(T_zUfiSms_SQLMap);
+iMap++){if(SQL_MAP[iMap].valid==(0xdfa+843-0x1144)){if(zUfiSms_ExecSql(SQL_MAP[
+iMap].strSQL,NULL,NULL)!=ZTE_WMS_DB_OK){return ZUFI_FAIL;}}}return ZUFI_SUCC;}
+int zUfiSms_CreateAllTable(void){if(ZTE_WMS_DB_OK!=zUfiSms_OpenDb()){printf(
"\x5b\x53\x4d\x53\x5d\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x6f\x70\x65\x6e\x20\x64\x61\x74\x61\x62\x61\x73\x65\x2e\x72\x65\x74\x75\x72\x6e\x2e" "\n"
);return ZTE_SMS_DB_ERROR_NOT_OPEN_DB;}return zUfiSms_CreateTables();}int
zUfiSms_DropAllTable(void){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;if(
@@ -325,10 +324,10 @@
"\x27\x25\x64\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x20"
"\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x75\x27\x2c\x20\x27\x25\x64\x27\x29\x3b"
,ptDbSaveData->index,pStorePos,ptDbSaveData->tag,ptDbSaveData->number,
-ptDbSaveData->concat_sms,ptDbSaveData->concat_info[(0x433+4934-0x1779)],
-ptDbSaveData->concat_info[(0x158c+4283-0x2646)],ptDbSaveData->concat_info[
-(0x1259+3963-0x21d2)],ptDbSaveData->tp_dcs,ptDbSaveData->msg_ref,pContent,"\x30"
-,ptDbSaveData->draft_group_id,ptDbSaveData->julian_date.year,ptDbSaveData->
+ptDbSaveData->concat_sms,ptDbSaveData->concat_info[(0xb31+3766-0x19e7)],
+ptDbSaveData->concat_info[(0x63+4353-0x1163)],ptDbSaveData->concat_info[
+(0xc02+4742-0x1e86)],ptDbSaveData->tp_dcs,ptDbSaveData->msg_ref,pContent,"\x30",
+ptDbSaveData->draft_group_id,ptDbSaveData->julian_date.year,ptDbSaveData->
julian_date.month,ptDbSaveData->julian_date.day,ptDbSaveData->julian_date.hour,
ptDbSaveData->julian_date.min,ptDbSaveData->julian_date.sec,ptDbSaveData->
julian_date.timezone,(unsigned int)zte_getsecond(ptDbSaveData->julian_date),
@@ -349,25 +348,25 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x55\x70\x64\x61\x74\x65\x4e\x6f\x72\x6d\x61\x6c\x53\x6d\x73\x54\x6f\x44\x62\x20\x73\x71\x6c\x3d\x25\x73" "\n"
,strSQL);result=zUfiSms_ExecSql(strSQL,NULL,NULL);sqlite3_free(strSQL);return
isSucess(result);}int zUfiSms_GetFirstColumnStr(void*fvarg,int columns,char**
-zresult,char**lname){if(columns>=(0x1ba2+525-0x1dae)&&fvarg!=NULL){if(zresult[
-(0x32+6137-0x182b)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
-strncpy(para->buf_addr,zresult[(0x4f0+2212-0xd94)],para->buf_len-
-(0x1517+3041-0x20f7));return SQLITE_OK;}}return SQLITE_ERROR;}int
+zresult,char**lname){if(columns>=(0x643+6739-0x2095)&&fvarg!=NULL){if(zresult[
+(0x205b+1248-0x253b)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
+strncpy(para->buf_addr,zresult[(0xdeb+1088-0x122b)],para->buf_len-
+(0xdb5+2435-0x1737));return SQLITE_OK;}}return SQLITE_ERROR;}int
zUfiSms_GetStorePosById(char*item,char*item_data,int item_len,int id){
T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;T_zUfiSms_BufInfo buf_info={
-(0x9a3+4217-0x1a1c)};char*strSQL=NULL;if(NULL==item||NULL==item_data){return
+(0xc74+3592-0x1a7c)};char*strSQL=NULL;if(NULL==item||NULL==item_data){return
ZUFI_FAIL;}buf_info.buf_addr=item_data;buf_info.buf_len=item_len;strSQL=
sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x25\x71\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x3b"
,item,id);result=zUfiSms_ExecSql(strSQL,zUfiSms_GetFirstColumnStr,&buf_info);
-sqlite3_free(strSQL);if((ZTE_WMS_DB_OK!=result)||((0x7ed+4395-0x1918)==strcmp(
+sqlite3_free(strSQL);if((ZTE_WMS_DB_OK!=result)||((0xb5d+1709-0x120a)==strcmp(
item_data,""))){at_print(LOG_ERR,
"\x67\x65\x74\x20\x74\x61\x62\x6c\x65\x5f\x6d\x65\x6d\x62\x65\x72\x20\x62\x79\x20\x69\x64\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
);return ZUFI_FAIL;}return ZUFI_SUCC;}int zUfiSms_DeleteSmsInDb(void){char sql[
-(0x1766+3837-0x25e3)]={(0xd58+2299-0x1653)};snprintf(sql,sizeof(sql),
+(0x185b+2433-0x215c)]={(0x1413+250-0x150d)};snprintf(sql,sizeof(sql),
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x61\x6e\x64\x20\x69\x64\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_SIM_TABLE,g_zUfiSms_DelMsg.sim_id[g_zUfiSms_DelMsg.sim_index-
-(0x492+7193-0x20aa)]);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}int
+(0x196+7334-0x1e3b)]);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}int
zUfiSms_DeleteAllSimSmsInDb(void){return isSucess(zUfiSms_ExecSql(
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27"
ZTE_WMS_DB_SIM_TABLE"\x27\x3b",NULL,NULL));}int zUfiSms_DeleteNvSms(void){if(
@@ -376,11 +375,11 @@
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27"
ZTE_WMS_DB_NV_TABLE"\x27\x3b",NULL,NULL)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x64\x65\x6c\x65\x74\x65\x20\x66\x61\x69\x6c" "\n"
-);return WMS_CMD_FAILED;}}else{int i=(0x44f+105-0x4b8);printf(
+);return WMS_CMD_FAILED;}}else{int i=(0x392+411-0x52d);printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x64\x65\x6c\x65\x74\x65\x20\x6e\x76\x5f\x63\x6f\x75\x6e\x74\x3d\x25\x64" "\n"
-,g_zUfiSms_DelMsg.nv_count);for(i=(0x1d89+1458-0x233b);i<g_zUfiSms_DelMsg.
-nv_count;i++){char sql[(0xf57+2415-0x1846)]={(0x1a10+2395-0x236b)};snprintf(sql,
-sizeof(sql),
+,g_zUfiSms_DelMsg.nv_count);for(i=(0xd57+1157-0x11dc);i<g_zUfiSms_DelMsg.
+nv_count;i++){char sql[(0x173b+2524-0x2097)]={(0x18db+2791-0x23c2)};snprintf(sql
+,sizeof(sql),
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x61\x6e\x64\x20\x69\x64\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_NV_TABLE,g_zUfiSms_DelMsg.nv_id[i]);if(ZTE_WMS_DB_OK!=
zUfiSms_ExecSql(sql,NULL,NULL)){printf(
@@ -388,39 +387,40 @@
,i);return WMS_CMD_FAILED;}}}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x64\x65\x6c\x65\x74\x65\x20\x73\x75\x63\x63\x65\x73\x73" "\n"
);return WMS_CMD_SUCCESS;}int zUfiSms_GetSmsIndex(int id,T_zUfiSms_ModifyTag*
-ptModifyTag,int is_cc){char sql[(0x232+5719-0x1809)]={(0x14b5+2499-0x1e78)};
-T_zUfiSms_BufInfo buf_info={(0xfc+7665-0x1eed)};char str_index[
-(0x104c+5600-0x262a)*WMS_MESSAGE_LIST_MAX]={(0x61d+4387-0x1740)};buf_info.
+ptModifyTag,int is_cc){char sql[(0xd14+3944-0x1bfc)]={(0x598+7707-0x23b3)};
+T_zUfiSms_BufInfo buf_info={(0x1d78+507-0x1f73)};char str_index[
+(0x389+6504-0x1cef)*WMS_MESSAGE_LIST_MAX]={(0x17c1+1819-0x1edc)};buf_info.
buf_addr=str_index;buf_info.buf_len=sizeof(str_index);snprintf(sql,sizeof(sql),
"\x53\x45\x4c\x45\x43\x54\x20\x69\x6e\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x3b"
,id);if(zUfiSms_ExecSql(sql,zUfiSms_GetFirstColumnStr,&buf_info)!=ZTE_WMS_DB_OK)
{at_print(LOG_ERR,
"\x6f\x70\x65\x6e\x20\x74\x61\x62\x6c\x65\x20\x73\x6d\x73\x20\x66\x61\x69\x6c\x65\x64"
-);return ZUFI_FAIL;}if((0x4b2+5528-0x1a49)==is_cc){int i=(0x16b1+4120-0x26c9);
-int j=(0x586+4262-0x162c);int count=(0x6b8+940-0xa64);char**out_result=NULL;
-count=zUfiSms_SplitString(str_index,&out_result,((char)(0x8d+215-0x129)));for(i=
-(0x47+9058-0x23a9);i<count;i++){if((0x1b33+578-0x1d75)!=strcmp(out_result[i],"")
-){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->num_of_indices=j;
-free(out_result);}else{ptModifyTag->indices[(0xe49+5772-0x24d5)]=atoi(str_index)
-;ptModifyTag->num_of_indices=(0x97+5824-0x1756);}ptModifyTag->total_indices=
-ptModifyTag->num_of_indices;printf(
+);return ZUFI_FAIL;}if((0x1006+5219-0x2468)==is_cc){int i=(0x695+6825-0x213e);
+int j=(0x1de3+137-0x1e6c);int count=(0x1ec+8865-0x248d);char**out_result=NULL;
+count=zUfiSms_SplitString(str_index,&out_result,((char)(0x1d7c+591-0x1f90)));for
+(i=(0x1f43+1921-0x26c4);i<count;i++){if((0xd48+1065-0x1171)!=strcmp(out_result[i
+],"")){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->
+num_of_indices=j;free(out_result);}else{ptModifyTag->indices[
+(0x1491+3231-0x2130)]=atoi(str_index);ptModifyTag->num_of_indices=
+(0x14b8+2033-0x1ca8);}ptModifyTag->total_indices=ptModifyTag->num_of_indices;
+printf(
"\x6d\x6f\x64\x69\x66\x79\x5f\x74\x61\x67\x5f\x70\x74\x72\x2d\x3e\x74\x6f\x74\x61\x6c\x5f\x69\x6e\x64\x69\x63\x65\x73\x3d\x25\x64" "\n"
,ptModifyTag->total_indices);return ZUFI_SUCC;}int zUfiSms_IsConcatSms(int id){
-char sql[(0x7c1+3155-0x1394)]={(0x1fd+1240-0x6d5)};int is_cc=
-(0x1357+4087-0x234e);T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;snprintf(sql,sizeof
+char sql[(0x725+5922-0x1dc7)]={(0x14f+6136-0x1947)};int is_cc=
+(0x15ed+2504-0x1fb5);T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;snprintf(sql,sizeof
(sql),
"\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x6d\x73\x20\x46\x52\x4f\x4d\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_SMS_TABLE,id);result=zUfiSms_ExecSql(sql,zUfiSms_GetFirstColumnInt,&
is_cc);if(ZTE_WMS_DB_OK!=result){at_print(LOG_ERR,
"\x6f\x70\x65\x6e\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x66\x61\x69\x6c\x65\x64"
-,ZTE_WMS_DB_SMS_TABLE);return-(0xd41+2707-0x17d3);}return is_cc;}int
+,ZTE_WMS_DB_SMS_TABLE);return-(0xbda+4731-0x1e54);}return is_cc;}int
zUfiSms_UpdateSmsTagInDb(unsigned long id,unsigned int tags){char sql[
-(0x952+4085-0x18c7)]={(0x8f3+3531-0x16be)};snprintf(sql,sizeof(sql),
+(0x947+5828-0x1f8b)]={(0xb69+2391-0x14c0)};snprintf(sql,sizeof(sql),
"\x55\x50\x44\x41\x54\x45\x20\x25\x73\x20\x53\x45\x54\x20\x54\x61\x67\x3d\x27\x25\x64\x27\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_SMS_TABLE,tags,id);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}
int zUfiSms_GetTagCountInDb(T_zUfiSms_MemoryType mem_store,unsigned int tags,int
*pTotalCount){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;char sql[
-(0xcd3+4788-0x1f07)]={(0x347+4217-0x13c0)};if(pTotalCount==NULL){return
+(0x19f5+2335-0x2294)]={(0xe93+1731-0x1556)};if(pTotalCount==NULL){return
ZUFI_FAIL;}if(mem_store==ZTE_WMS_MEMORY_MAX){snprintf(sql,sizeof(sql),
"\x53\x45\x4c\x45\x43\x54\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x46\x52\x4f\x4d\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x54\x61\x67\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_SMS_TABLE,tags);}else if(mem_store==ZTE_WMS_MEMORY_NV){snprintf(sql,
@@ -430,18 +430,18 @@
"\x53\x45\x4c\x45\x43\x54\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x46\x52\x4f\x4d\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x41\x4e\x44\x20\x54\x61\x67\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_SMS_TABLE,ZTE_WMS_DB_SIM_TABLE,tags);}result=zUfiSms_ExecSql(sql,(
zte_wms_db_callback)zUfiSms_GetFirstColumnInt,pTotalCount);return isSucess(
-result);}int zUfiSms_DeleteDraftSms(long iSmsId){char sql[(0x1200+1150-0x15fe)]=
-{(0x1424+640-0x16a4)};snprintf(sql,sizeof(sql),
+result);}int zUfiSms_DeleteDraftSms(long iSmsId){char sql[(0xd59+5400-0x21f1)]={
+(0x1540+4190-0x259e)};snprintf(sql,sizeof(sql),
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x6c\x64\x27\x3b"
,ZTE_WMS_DB_SMS_TABLE,iSmsId);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}
-int zUfiSms_SetConcatMaxRefer(int ref){char sql[(0xd2+2801-0xb43)]={
-(0x889+3937-0x17ea)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0x8a5+6440-0x21cd);}
+int zUfiSms_SetConcatMaxRefer(int ref){char sql[(0x1849+3191-0x2440)]={
+(0x1b0c+21-0x1b21)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0x94a+7301-0x25cf);}
snprintf(sql,sizeof(sql),
"\x55\x50\x44\x41\x54\x45\x20\x25\x73\x20\x53\x45\x54\x20\x4d\x61\x78\x5f\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x31\x3b"
,ZTE_WMS_DB_PARAMETER_TABLE,ref);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL))
-;}int zUfiSms_SetMaxReference(int ref){char sql[(0xba1+6528-0x24a1)]={
-(0x5ec+8257-0x262d)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x149d+4073-0x2486);}
-snprintf(sql,sizeof(sql),
+;}int zUfiSms_SetMaxReference(int ref){char sql[(0x4a2+1087-0x861)]={
+(0x434+3374-0x1162)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x80d+208-0x8dd);}snprintf
+(sql,sizeof(sql),
"\x55\x50\x44\x41\x54\x45\x20\x25\x73\x20\x53\x45\x54\x20\x4d\x61\x78\x5f\x53\x6d\x73\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x31\x3b"
,ZTE_WMS_DB_PARAMETER_TABLE,ref);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL))
;}int zUfiSms_InsertReportStatusToDb(unsigned char*pNumber,T_zUfiSms_Date*
@@ -453,75 +453,74 @@
->hour,ptSmsDate->min,ptSmsDate->sec,ptSmsDate->timezone);result=zUfiSms_ExecSql
(strSQL,NULL,NULL);sqlite3_free(strSQL);return isSucess(result);}int
zUfiSms_GetFirstColumnParaInfo(void*fvarg,int columns,char**zresult,char**lname)
-{if(columns>=(0x393+4641-0x15b3)&&fvarg!=NULL){if(zresult[(0x9dd+3576-0x17d5)]!=
+{if(columns>=(0xce0+3309-0x19cc)&&fvarg!=NULL){if(zresult[(0x5d0+4402-0x1702)]!=
NULL){T_zUfiSms_ParaInfo*para=(T_zUfiSms_ParaInfo*)fvarg;strncpy(para->sca,
-zresult[(0x7a4+5272-0x1c3c)],sizeof(para->sca)-(0x6cb+3439-0x1439));para->
-mem_store=atoi(zresult[(0xb9c+1748-0x126f)]);para->tp_validity_period=atoi(
-zresult[(0x3d9+3011-0xf9a)]);para->status_report_on=atoi(zresult[
-(0x4ab+4861-0x17a5)]);para->sendfail_retry_on=atoi(zresult[(0x273+6558-0x1c0d)])
-;para->outdate_delete_on=atoi(zresult[(0x679+7783-0x24db)]);(void)strncpy(para->
-default_store,zresult[(0x1016+2694-0x1a96)],sizeof(para->default_store)-
-(0x319+5615-0x1907));return SQLITE_OK;}}return SQLITE_ERROR;}int
+zresult[(0x7ec+7923-0x26df)],sizeof(para->sca)-(0xf8c+2208-0x182b));para->
+mem_store=atoi(zresult[(0x10b0+4020-0x2063)]);para->tp_validity_period=atoi(
+zresult[(0x198f+693-0x1c42)]);para->status_report_on=atoi(zresult[
+(0x4e0+5782-0x1b73)]);para->sendfail_retry_on=atoi(zresult[(0x11b1+4482-0x232f)]
+);para->outdate_delete_on=atoi(zresult[(0xca8+3051-0x188e)]);(void)strncpy(para
+->default_store,zresult[(0x888+2819-0x1385)],sizeof(para->default_store)-
+(0x12c6+4600-0x24bd));return SQLITE_OK;}}return SQLITE_ERROR;}int
zUfiSms_GetDbParameters(void){char*strSQL=
"\x53\x45\x4c\x45\x43\x54\x20\x53\x6d\x73\x5f\x53\x63\x61\x2c\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x2c\x54\x70\x5f\x56\x61\x6c\x69\x64\x69\x74\x79\x2c\x53\x6d\x73\x5f\x52\x65\x70\x6f\x72\x74\x2c\x53\x65\x6e\x64\x5f\x52\x65\x74\x72\x79\x2c\x4f\x75\x74\x64\x61\x74\x65\x5f\x44\x65\x6c\x65\x74\x65\x2c\x44\x65\x66\x61\x75\x6c\x74\x5f\x53\x74\x6f\x72\x65\x20\x46\x52\x4f\x4d\x20"
ZTE_WMS_DB_PARAMETER_TABLE"\x3b";memset(&g_zUfiSms_CurSmsPara,
-(0xa5f+1936-0x11ef),sizeof(T_zUfiSms_ParaInfo));return isSucess(zUfiSms_ExecSql(
+(0x563+6183-0x1d8a),sizeof(T_zUfiSms_ParaInfo));return isSucess(zUfiSms_ExecSql(
strSQL,zUfiSms_GetFirstColumnParaInfo,&g_zUfiSms_CurSmsPara));}int
zUfiSms_GetSendContent(void*fvarg,int column,char**zresult,char**lname){
-T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;if(column>=(0x1e29+240-0x1f18)
-&¶!=NULL)(void)strncpy(para->buf_addr,zresult[(0x1026+4648-0x224e)],para->
-buf_len-(0x13eb+4893-0x2707));return(0x206+8512-0x2346);}int
-zUfiSms_GetSmsContent(char*pSmsBuf,int len){T_zUfiSms_BufInfo buf_info={
-(0x1d9c+1510-0x2382)};char*strSQL=
+T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;if(column>=(0x17b0+1145-0x1c28)
+&¶!=NULL)(void)strncpy(para->buf_addr,zresult[(0x1165+3953-0x20d6)],para->
+buf_len-(0xab4+3709-0x1930));return(0x6d5+123-0x750);}int zUfiSms_GetSmsContent(
+char*pSmsBuf,int len){T_zUfiSms_BufInfo buf_info={(0x3aa+2758-0xe70)};char*
+strSQL=
"\x53\x45\x4c\x45\x43\x54\x20\x6d\x73\x67\x5f\x63\x6f\x6e\x74\x65\x6e\x74\x20\x46\x52\x4f\x4d\x20"
ZTE_WMS_DB_SEND_CONTENT_TABLE"\x3b";buf_info.buf_addr=pSmsBuf;buf_info.buf_len=
-len;memset(buf_info.buf_addr,(0x58+2868-0xb8c),len);return isSucess(
+len;memset(buf_info.buf_addr,(0xb39+2721-0x15da),len);return isSucess(
zUfiSms_ExecSql(strSQL,zUfiSms_GetSendContent,&buf_info));}int
zUfiSms_SearchConcatSmsInDb(T_zUfiSms_DbStoreData*ptDbSaveData,char*pMemStore){
-char*sql=NULL;sqlite3_stmt*stmt=NULL;int id=-(0x181a+2738-0x22cb);switch(
+char*sql=NULL;sqlite3_stmt*stmt=NULL;int id=-(0x4e0+3343-0x11ee);switch(
ptDbSaveData->tag){case WMS_TAG_TYPE_MO_SENT_V01:case
WMS_TAG_TYPE_MO_NOT_SENT_V01:{sql=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x65\x71\x2c\x69\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x41\x4e\x44\x20\x28\x54\x61\x67\x20\x3d\x20\x27\x25\x64\x27\x20\x4f\x52\x20\x54\x61\x67\x3d\x20\x27\x25\x64\x27\x29\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0x63f+3884-0x156b)],
-ptDbSaveData->concat_info[(0x1c8+4475-0x1342)],pMemStore,
-WMS_TAG_TYPE_MO_SENT_V01,WMS_TAG_TYPE_MO_NOT_SENT_V01);break;}case
-(0x56d+4845-0x1856):{sql=sqlite3_mprintf(
-"\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x65\x71\x2c\x69\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x41\x4e\x44\x20\x54\x61\x67\x20\x3d\x20\x27\x25\x64\x27\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0xc49+6059-0x23f4)],
-ptDbSaveData->concat_info[(0x799+1326-0xcc6)],pMemStore,(0x1043+5270-0x24d5));
-break;}case WMS_TAG_TYPE_MT_READ_V01:case WMS_TAG_TYPE_MT_NOT_READ_V01:{sql=
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x6eb+562-0x91d)],ptDbSaveData
+->concat_info[(0x1f2+4726-0x1467)],pMemStore,WMS_TAG_TYPE_MO_SENT_V01,
+WMS_TAG_TYPE_MO_NOT_SENT_V01);break;}case(0x1519+3733-0x23aa):{sql=
sqlite3_mprintf(
+"\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x65\x71\x2c\x69\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x41\x4e\x44\x20\x54\x61\x67\x20\x3d\x20\x27\x25\x64\x27\x3b"
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0xf3+6186-0x191d)],ptDbSaveData
+->concat_info[(0x7e8+1462-0xd9d)],pMemStore,(0x1136+2085-0x1957));break;}case
+WMS_TAG_TYPE_MT_READ_V01:case WMS_TAG_TYPE_MT_NOT_READ_V01:{sql=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x65\x71\x2c\x69\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x41\x4e\x44\x20\x28\x54\x61\x67\x20\x3d\x20\x27\x25\x64\x27\x20\x4f\x52\x20\x54\x61\x67\x3d\x20\x27\x25\x64\x27\x29\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0x448+1810-0xb5a)],ptDbSaveData
-->concat_info[(0x1bb6+577-0x1df6)],pMemStore,WMS_TAG_TYPE_MT_READ_V01,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0xab1+632-0xd29)],ptDbSaveData
+->concat_info[(0x1ccd+2275-0x25af)],pMemStore,WMS_TAG_TYPE_MT_READ_V01,
WMS_TAG_TYPE_MT_NOT_READ_V01);break;}default:{sql=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x65\x71\x2c\x69\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0x70c+4631-0x1923)],
-ptDbSaveData->concat_info[(0x1068+397-0x11f4)],pMemStore);at_print(LOG_ERR,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x1041+672-0x12e1)],
+ptDbSaveData->concat_info[(0xd8d+2913-0x18ed)],pMemStore);at_print(LOG_ERR,
"\x74\x61\x67\x20\x25\x64\x20\x69\x73\x20\x75\x6e\x6b\x6e\x6f\x77\x6e",
ptDbSaveData->tag);break;}}printf(
"\x5b\x53\x4d\x53\x5d\x20\x74\x65\x65\x74\x3a\x25\x73" "\n",sql);if(
-sqlite3_prepare(g_zUfiSms_DbPointer,sql,-(0x1164+4362-0x226d),&stmt,
-(0x8ff+3311-0x15ee))!=SQLITE_OK){at_print(LOG_ERR,
+sqlite3_prepare(g_zUfiSms_DbPointer,sql,-(0xf1c+1406-0x1499),&stmt,
+(0x21b0+1156-0x2634))!=SQLITE_OK){at_print(LOG_ERR,
"\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65\x78\x65\x63\x20\x73\x71\x6c\x2c\x73\x71\x6c\x69\x74\x65\x33\x5f\x65\x72\x72\x6d\x73\x67\x3a\x25\x73\x2e" "\n"
-,sqlite3_errmsg(g_zUfiSms_DbPointer));sqlite3_free(sql);return-
-(0x2a9+7322-0x1f42);}while(SQLITE_ROW==sqlite3_step(stmt)){int j=
-(0x250+9009-0x2581);char**out_result=NULL;char*column_text=sqlite3_column_text(
-stmt,(0xb0+5125-0x14b5));int count=-(0x121d+3249-0x1ecd);if(column_text!=NULL)
-count=zUfiSms_SplitString(column_text,&out_result,((char)(0x1d21+752-0x1fd6)));
-for(j=(0x10b2+2101-0x18e7);j<count;j++){if((0xb5a+4881-0x1e6b)==strcmp(
-out_result[j],"")){if(j+(0xcd3+651-0xf5d)==ptDbSaveData->concat_info[
-(0x88b+5924-0x1fad)]){id=sqlite3_column_int(stmt,(0xf26+2446-0x18b3));break;}}}
-if(out_result!=NULL){free(out_result);out_result=NULL;}if(-(0xa98+6950-0x25bd)!=
-id){break;}}(void)sqlite3_finalize(stmt);sqlite3_free(sql);return id;}int
+,sqlite3_errmsg(g_zUfiSms_DbPointer));sqlite3_free(sql);return-(0x84+2001-0x854)
+;}while(SQLITE_ROW==sqlite3_step(stmt)){int j=(0x460+2268-0xd3c);char**
+out_result=NULL;char*column_text=sqlite3_column_text(stmt,(0xc9b+5646-0x22a9));
+int count=-(0x1472+4481-0x25f2);if(column_text!=NULL)count=zUfiSms_SplitString(
+column_text,&out_result,((char)(0x40+8608-0x21a5)));for(j=(0x702+7530-0x246c);j<
+count;j++){if((0xce9+604-0xf45)==strcmp(out_result[j],"")){if(j+
+(0x19b0+3144-0x25f7)==ptDbSaveData->concat_info[(0x2a8+3257-0xf5f)]){id=
+sqlite3_column_int(stmt,(0x1f1f+522-0x2128));break;}}}if(out_result!=NULL){free(
+out_result);out_result=NULL;}if(-(0x1f64+756-0x2257)!=id){break;}}(void)
+sqlite3_finalize(stmt);sqlite3_free(sql);return id;}int
zUfiSms_CheckDbOutdateSms_Callback(void*fvarg,int columns,char**zresult,char**
-lname){if(fvarg!=NULL&&columns>=(0x178f+2110-0x1fcc)){if(zresult[
-(0xd15+2883-0x1858)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
-result->id[result->all_or_count]=atoi(zresult[(0x1a4b+2710-0x24e1)]);result->
+lname){if(fvarg!=NULL&&columns>=(0x241b+140-0x24a6)){if(zresult[
+(0x468+726-0x73e)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
+result->id[result->all_or_count]=atoi(zresult[(0x1522+1249-0x1a03)]);result->
all_or_count++;return SQLITE_OK;}}return SQLITE_ERROR;}VOID
zUfiSms_CheckDbOutdateSms(const char*pDbTable,T_zUfiSms_DelReq*pSmsDel){char
-acSql[(0x1388+3920-0x2258)]={(0x569+1877-0xcbe)};struct timeval tp;if(
-(0x2a0+1941-0xa35)!=gettimeofday(&tp,NULL)){printf(
+acSql[(0x706+4744-0x190e)]={(0x189a+2835-0x23ad)};struct timeval tp;if(
+(0x6bb+6739-0x210e)!=gettimeofday(&tp,NULL)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x67\x65\x74\x74\x69\x6d\x65\x6f\x66\x64\x61\x79\x20\x65\x72\x72\x6f\x72\x21\x21\x21"
);return;}if(tp.tv_sec<=OUTDATEINTERVAL){return;}snprintf(acSql,sizeof(acSql),
"\x53\x45\x4c\x45\x43\x54\x20\x69\x64\x20\x46\x52\x4f\x4d\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x6b\x74\x69\x6d\x65\x3c\x27\x25\x75\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x3b"
@@ -531,21 +530,21 @@
"\x6f\x70\x65\x6e\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x66\x61\x69\x6c\x65\x64"
,ZTE_WMS_DB_CMD_STATUS_TABLE);}return;}int
zUfiSms_GetCurrentRecvTotalSeq_Callback(void*fvarg,int column,char**zresult,char
-**lname){if(fvarg!=NULL&&column>=(0x741+4713-0x19a8)){if(zresult[
-(0x96c+6563-0x230f)]!=NULL&&zresult[(0xe2d+5666-0x244e)]!=NULL){SMS_MSG_INFO*msg
-=(SMS_MSG_INFO*)fvarg;memset(msg->id,(0x1232+1274-0x172c),sizeof(msg->id));
-memset(msg->total_seq,(0xf82+1504-0x1562),sizeof(msg->total_seq));strncpy(msg->
-id,zresult[(0x333+4219-0x13ae)],sizeof(msg->id)-(0xb02+6086-0x22c7));strncpy(msg
-->total_seq,zresult[(0xbc8+5005-0x1f54)],sizeof(msg->total_seq)-
-(0xcf0+4415-0x1e2e));printf(
+**lname){if(fvarg!=NULL&&column>=(0x1813+608-0x1a71)){if(zresult[
+(0x96c+1771-0x1057)]!=NULL&&zresult[(0x1d4+6277-0x1a58)]!=NULL){SMS_MSG_INFO*msg
+=(SMS_MSG_INFO*)fvarg;memset(msg->id,(0x1298+68-0x12dc),sizeof(msg->id));memset(
+msg->total_seq,(0xd43+906-0x10cd),sizeof(msg->total_seq));strncpy(msg->id,
+zresult[(0xc43+4412-0x1d7f)],sizeof(msg->id)-(0xc2+1855-0x800));strncpy(msg->
+total_seq,zresult[(0xb70+267-0xc7a)],sizeof(msg->total_seq)-(0x1538+3718-0x23bd)
+);printf(
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x43\x75\x72\x72\x65\x6e\x74\x52\x65\x63\x76\x54\x6f\x74\x61\x6c\x53\x65\x71\x5f\x43\x61\x6c\x6c\x62\x61\x63\x6b\x20\x69\x64\x20\x3d\x20\x25\x73\x2c\x20\x74\x6f\x74\x61\x6c\x5f\x73\x65\x71\x20\x3d\x20\x25\x73" "\n"
,msg->id,msg->total_seq);return SQLITE_OK;}}return SQLITE_ERROR;}int
zUfiSms_GetCurrentRecvTotalSeq(T_zUfiSms_DbStoreData*ptDbSaveData,SMS_MSG_INFO*
pmsg){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;char*strSQL=NULL;strSQL=
sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x69\x64\x2c\x20\x43\x63\x5f\x4e\x75\x6d\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x20\x6e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0x1970+785-0x1c81)],
-ptDbSaveData->concat_info[(0x2fa+8350-0x2397)]);printf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x4c2+8002-0x2404)],
+ptDbSaveData->concat_info[(0x7d0+5946-0x1f09)]);printf(
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x43\x75\x72\x72\x65\x6e\x74\x52\x65\x63\x76\x54\x6f\x74\x61\x6c\x53\x65\x71\x20\x73\x71\x6c\x20\x3a\x20\x25\x73\x20" "\n"
,strSQL);result=zUfiSms_ExecSql(strSQL,zUfiSms_GetCurrentRecvTotalSeq_Callback,
pmsg);sqlite3_free(strSQL);return isSucess(result);}
diff --git a/ap/app/zte_comm/sms/src/sms_fnc.c b/ap/app/zte_comm/sms/src/sms_fnc.c
index 04febed..601a832 100755
--- a/ap/app/zte_comm/sms/src/sms_fnc.c
+++ b/ap/app/zte_comm/sms/src/sms_fnc.c
@@ -8,22 +8,22 @@
#include "sms_fnc.h"
#include "sms_db.h"
#include "sms_code.h"
-#define SMS_RETRY_COUNT (0x7d6+3840-0x16d3)
-#define SHORT_INT_LEN (0x1758+2289-0x2043)
+#define SMS_RETRY_COUNT (0x848+2671-0x12b4)
+#define SHORT_INT_LEN (0x195f+3131-0x2594)
SMS_LOCATION g_zUfiSms_CurLocation=SMS_LOCATION_SIM;int
-g_zUfiSms_ConcatSmsReference=(0x519+2161-0xd8a);T_zUfiSms_ParaInfo
+g_zUfiSms_ConcatSmsReference=(0x214+8506-0x234e);T_zUfiSms_ParaInfo
g_zUfiSms_CurSmsPara={"",WMS_STORAGE_TYPE_UIM_V01,
-ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0x503+5985-0x1c64),(0x5a5+1237-0xa7a)
-,(0x1caa+2077-0x24c7),"\x6e\x76"};int g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;int
- g_zUfiSms_Dcs=(0x1c+1033-0x425);unsigned long g_zUfiSms_StoreCapablity[
-ZTE_WMS_MEMORY_MAX]={(0x172c+2383-0x2017),ZTE_WMS_DB_MSG_COUNT_MAX};
-T_zSms_SendSmsReq g_zUfiSms_FinalCmgsBuf;SMS_PARAM g_zUfiSms_SendingSms;UINT16
-g_zUfiSms_IsLanguageShift=(0x178c+1851-0x1ec7);extern int g_zUfiSms_MsgRefer;
-extern T_zUfiSms_DelSms g_zUfiSms_DelMsg;extern T_zUfiSms_DelIndexInfo
-g_deleteIndex;extern T_zUfiSms_ModifyIndexInfo g_modifyIndex;extern
-T_zUfiSms_ModifySms g_zUfiSms_modifyMsg;extern UINT8 g_zUfiSms_MemFullFlag[
-ZTE_WMS_MEMORY_MAX];extern int g_zUfiSms_ConcatTotalNum;extern
-T_zUfiSms_ConcatInfo g_zUfiSms_ConcatSms;extern T_zUfiSms_GroupInfo
+ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0xd27+2921-0x1890),
+(0x857+6243-0x20ba),(0x7ef+1448-0xd97),"\x6e\x76"};int g_zUfiSms_Language=
+NOT_DEFINE_LANGUAGE;int g_zUfiSms_Dcs=(0x1346+3940-0x22aa);unsigned long
+g_zUfiSms_StoreCapablity[ZTE_WMS_MEMORY_MAX]={(0xe29+772-0x10c9),
+ZTE_WMS_DB_MSG_COUNT_MAX};T_zSms_SendSmsReq g_zUfiSms_FinalCmgsBuf;SMS_PARAM
+g_zUfiSms_SendingSms;UINT16 g_zUfiSms_IsLanguageShift=(0x914+1390-0xe82);extern
+int g_zUfiSms_MsgRefer;extern T_zUfiSms_DelSms g_zUfiSms_DelMsg;extern
+T_zUfiSms_DelIndexInfo g_deleteIndex;extern T_zUfiSms_ModifyIndexInfo
+g_modifyIndex;extern T_zUfiSms_ModifySms g_zUfiSms_modifyMsg;extern UINT8
+g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_MAX];extern int g_zUfiSms_ConcatTotalNum;
+extern T_zUfiSms_ConcatInfo g_zUfiSms_ConcatSms;extern T_zUfiSms_GroupInfo
g_zUfiSms_GroupSms;extern int g_zUfiSms_UnitLen;extern UINT8
g_zUfiSms_IsConcatSendSuc;extern int g_zUfiSms_SendFailedCount;extern
T_zUfiSms_DbStoreData g_zUfiSms_DbStoreData[ZTE_WMS_CONCAT_SMS_COUNT_MAX];extern
@@ -31,16 +31,16 @@
eLocation){switch(eLocation){case SMS_LOCATION_SIM:{g_zUfiSms_CurLocation=
SMS_LOCATION_SIM;break;}case SMS_LOCATION_ME:{g_zUfiSms_CurLocation=
SMS_LOCATION_ME;break;}default:{return;}}}int zUfiSms_SetDeleteInfo(
-T_zUfiSms_DelReq*ptDelMsg){char acStorePos[(0x2c3+731-0x56c)];int i=
-(0x84c+477-0xa29);g_zUfiSms_DelMsg.nv_count=(0x1e73+819-0x21a6);g_zUfiSms_DelMsg
-.nv_index=(0x161b+3380-0x234f);g_zUfiSms_DelMsg.sim_count=(0xfa0+5311-0x245f);
-g_zUfiSms_DelMsg.sim_index=(0x940+2321-0x1251);for(i=(0x836+5518-0x1dc4);i<
-ptDelMsg->all_or_count;i++){memset(acStorePos,(0xf16+3304-0x1bfe),sizeof(
+T_zUfiSms_DelReq*ptDelMsg){char acStorePos[(0x365+3837-0x1230)];int i=
+(0x24a+463-0x419);g_zUfiSms_DelMsg.nv_count=(0x7da+4504-0x1972);g_zUfiSms_DelMsg
+.nv_index=(0x1784+1841-0x1eb5);g_zUfiSms_DelMsg.sim_count=(0xd8b+5964-0x24d7);
+g_zUfiSms_DelMsg.sim_index=(0xb92+479-0xd71);for(i=(0xc49+3357-0x1966);i<
+ptDelMsg->all_or_count;i++){memset(acStorePos,(0x2576+183-0x262d),sizeof(
acStorePos));if(ZUFI_FAIL==zUfiSms_GetStorePosById("Mem_Store",acStorePos,sizeof
-(acStorePos),ptDelMsg->id[i])){return ZUFI_FAIL;}if((0x1211+1172-0x16a5)==strcmp
+(acStorePos),ptDelMsg->id[i])){return ZUFI_FAIL;}if((0x11e1+3702-0x2057)==strcmp
(acStorePos,ZTE_WMS_DB_NV_TABLE)){g_zUfiSms_DelMsg.nv_id[g_zUfiSms_DelMsg.
nv_count]=ptDelMsg->id[i];g_zUfiSms_DelMsg.nv_count++;g_zUfiSms_DelMsg.
-nv_index_count++;}else if((0x1afc+1260-0x1fe8)==strcmp(acStorePos,
+nv_index_count++;}else if((0x687+6718-0x20c5)==strcmp(acStorePos,
ZTE_WMS_DB_SIM_TABLE)){g_zUfiSms_DelMsg.sim_id[g_zUfiSms_DelMsg.sim_count]=
ptDelMsg->id[i];g_zUfiSms_DelMsg.sim_count++;g_zUfiSms_DelMsg.sim_index_count++;
}}return ZUFI_SUCC;}void zUfiSms_ChangeMainState(T_zUfiSms_MainState iNewState){
@@ -68,66 +68,65 @@
SMS_STATE_RECVING:case SMS_STATE_RECVED:case SMS_STATE_DELSAVING:case
SMS_STATE_DELSAVED:{break;}default:{return;}}sc_cfg_set(NV_SMS_STATE,
ptStrSmsState[iNewState]);}int zUfiSms_CheckStoreDir(void){if(-
-(0x1878+1628-0x1ed3)==access(ZTE_WMS_DB_DIR,F_OK)){printf(
+(0xd93+2948-0x1916)==access(ZTE_WMS_DB_DIR,F_OK)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x3a\x25\x73\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x2c\x73\x6f\x63\x72\x65\x61\x74\x65\x20\x69\x74\x2e" "\n"
-,ZTE_WMS_DB_DIR);if(-(0xf18+3600-0x1d27)==mkdir(ZTE_WMS_DB_DIR,
-(0x767+2736-0x1018))){printf(
+,ZTE_WMS_DB_DIR);if(-(0x53a+8335-0x25c8)==mkdir(ZTE_WMS_DB_DIR,
+(0x11d5+3764-0x1e8a))){printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x3a\x66\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x63\x72\x65\x61\x74\x65\x20\x64\x62\x20\x64\x69\x72\x2e" "\n"
);return ZUFI_FAIL;}}return ZUFI_SUCC;}int zUfiSms_CheckSmsDb(void){if(-
-(0x1678+1003-0x1a62)==access(ZTE_WMS_DB_PATH,F_OK)){printf(
+(0x88d+3783-0x1753)==access(ZTE_WMS_DB_PATH,F_OK)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x3a\x25\x73\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x2c\x73\x6f\x20\x67\x65\x74\x20\x64\x65\x66\x61\x75\x6c\x74\x20\x63\x6f\x6e\x66\x69\x67\x2e" "\n"
,ZTE_WMS_DB_PATH);return ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x3d\x3d\x3d\x3d\x3d\x3d\x25\x73\x20\x65\x78\x69\x73\x74\x2e" "\n"
,ZTE_WMS_DB_PATH);return ZUFI_SUCC;}void zUfiSms_GetDefaultCfgPara(void){
-unsigned char sts_flag=(0x15f9+3254-0x22af);unsigned char mem_store_flag=
-(0x3e8+4901-0x170d);unsigned int tp_validity_period=(0x697+3953-0x1608);char
-Temp_sms_vp[(0x745+6690-0x215f)]={(0x153+1026-0x555)};CHAR reportEnable[
-(0x1bf3+2715-0x265c)]={(0xa8a+5448-0x1fd2)};CHAR smsLocation[
-(0x1646+2394-0x1f6e)]={(0xe22+1542-0x1428)};CHAR sendfailRetry[
-(0x2660+24-0x2646)]={(0x13c1+2337-0x1ce2)};CHAR outdateDelete[
-(0xf05+4607-0x20d2)]={(0x15ff+2375-0x1f46)};CHAR defaultStore[
-(0x1961+325-0x1a74)]={(0x660+7292-0x22dc)};sc_cfg_get(NV_REPORT_ENABLE,
-reportEnable,sizeof(reportEnable));sc_cfg_get(NV_SMS_LOCATION_SET,smsLocation,
-sizeof(smsLocation));sc_cfg_get(NV_SENDFAIL_RETRY,sendfailRetry,sizeof(
-sendfailRetry));sc_cfg_get(NV_OUTDATE_DELETE,outdateDelete,sizeof(outdateDelete)
-);sc_cfg_get(NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if(
-(0x1a9+7702-0x1fbf)==strcmp(reportEnable,"\x31")){sts_flag=(0x146a+3626-0x2293);
-}g_zUfiSms_CurSmsPara.status_report_on=sts_flag;if((0x1cc8+275-0x1ddb)==strcmp(
-smsLocation,"\x4d\x45")){mem_store_flag=(0x534+4447-0x1693);}else{mem_store_flag
-=(0x10e1+21-0x10f5);}g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(
-(0xf09+877-0x1276)==mem_store_flag?WMS_STORAGE_TYPE_NV_V01:
-WMS_STORAGE_TYPE_UIM_V01);sc_cfg_get(NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));
-tp_validity_period=(0x17f+635-0x2fb);if((0x1018+4670-0x2256)==strncmp(
-Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",(0xf6f+4592-0x2158))){
-tp_validity_period=(0x8ac+4858-0x1aa7);}if((0xb5f+3894-0x1a95)==strncmp(
-Temp_sms_vp,"\x6f\x6e\x65\x5f\x64\x61\x79",(0x3a5+3942-0x1304))){
-tp_validity_period=(0x5e8+4145-0x1572);}if((0x48c+1450-0xa36)==strncmp(
-Temp_sms_vp,"\x6f\x6e\x65\x77\x65\x65\x6b",(0x6d+8598-0x21fc))){
-tp_validity_period=(0x179+6966-0x1c02);}if((0x1267+1730-0x1929)==strncmp(
-Temp_sms_vp,"\x74\x77\x65\x6c\x76\x65\x68",(0xa26+3021-0x15ec))){
-tp_validity_period=(0x25fa+214-0x2641);}g_zUfiSms_CurSmsPara.tp_validity_period=
-tp_validity_period;if((0x165d+935-0x1a04)==strcmp(sendfailRetry,"\x31")){
-g_zUfiSms_CurSmsPara.sendfail_retry_on=(0x1201+408-0x1398);}else{
-g_zUfiSms_CurSmsPara.sendfail_retry_on=(0xd91+6459-0x26cc);}if(
-(0x1576+1136-0x19e6)==strcmp(outdateDelete,"\x31")){g_zUfiSms_CurSmsPara.
-outdate_delete_on=(0x1d8+4010-0x1181);}else{g_zUfiSms_CurSmsPara.
-outdate_delete_on=(0x73d+2113-0xf7e);}if((0xb82+3116-0x17ae)==strcmp(
-defaultStore,"\x73\x69\x6d")){strncpy(g_zUfiSms_CurSmsPara.default_store,
-"\x73\x69\x6d",sizeof(g_zUfiSms_CurSmsPara.default_store)-(0xc4c+5258-0x20d5));}
-else{strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
-g_zUfiSms_CurSmsPara.default_store)-(0x61c+5012-0x19af));}}void
-zUfiSms_GetDefaultPara(void){memset(&g_zUfiSms_CurSmsPara,(0x98+4962-0x13fa),
+unsigned char sts_flag=(0x29f+6146-0x1aa1);unsigned char mem_store_flag=
+(0x4d9+3438-0x1247);unsigned int tp_validity_period=(0x564+2193-0xdf5);char
+Temp_sms_vp[(0x538+6713-0x1f69)]={(0x1781+282-0x189b)};CHAR reportEnable[
+(0x102+2365-0xa0d)]={(0x121c+4367-0x232b)};CHAR smsLocation[(0x1eb+8299-0x2224)]
+={(0x153+5967-0x18a2)};CHAR sendfailRetry[(0xb44+4874-0x1e1c)]={
+(0x585+3138-0x11c7)};CHAR outdateDelete[(0xc5a+4757-0x1ebd)]={(0xa66+1189-0xf0b)
+};CHAR defaultStore[(0x1d4d+421-0x1ec0)]={(0x1796+2633-0x21df)};sc_cfg_get(
+NV_REPORT_ENABLE,reportEnable,sizeof(reportEnable));sc_cfg_get(
+NV_SMS_LOCATION_SET,smsLocation,sizeof(smsLocation));sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));sc_cfg_get(
+NV_OUTDATE_DELETE,outdateDelete,sizeof(outdateDelete));sc_cfg_get(
+NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if((0x2323+77-0x2370)==
+strcmp(reportEnable,"\x31")){sts_flag=(0x50a+2409-0xe72);}g_zUfiSms_CurSmsPara.
+status_report_on=sts_flag;if((0x621+6220-0x1e6d)==strcmp(smsLocation,"\x4d\x45")
+){mem_store_flag=(0x1aa+6980-0x1cee);}else{mem_store_flag=(0x4c9+4964-0x182c);}
+g_zUfiSms_CurSmsPara.mem_store=(unsigned int)((0x687+5883-0x1d82)==
+mem_store_flag?WMS_STORAGE_TYPE_NV_V01:WMS_STORAGE_TYPE_UIM_V01);sc_cfg_get(
+NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));tp_validity_period=(0x847+247-0x83f);
+if((0x12f3+4393-0x241c)==strncmp(Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",
+(0x80c+5989-0x1f6a))){tp_validity_period=(0x9d3+1528-0xecc);}if(
+(0x507+5640-0x1b0f)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x5f\x64\x61\x79",
+(0x58f+2471-0xf2f))){tp_validity_period=(0x1105+2139-0x18b9);}if(
+(0x1f2+1753-0x8cb)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x77\x65\x65\x6b",
+(0x4c2+2558-0xeb9))){tp_validity_period=(0x84d+2847-0x12bf);}if(
+(0x1735+4036-0x26f9)==strncmp(Temp_sms_vp,"\x74\x77\x65\x6c\x76\x65\x68",
+(0x3c+8837-0x22ba))){tp_validity_period=(0xcb6+1523-0x121a);}
+g_zUfiSms_CurSmsPara.tp_validity_period=tp_validity_period;if((0x278+3306-0xf62)
+==strcmp(sendfailRetry,"\x31")){g_zUfiSms_CurSmsPara.sendfail_retry_on=
+(0x1af4+753-0x1de4);}else{g_zUfiSms_CurSmsPara.sendfail_retry_on=
+(0xcb+5070-0x1499);}if((0xf6d+919-0x1304)==strcmp(outdateDelete,"\x31")){
+g_zUfiSms_CurSmsPara.outdate_delete_on=(0xfda+5656-0x25f1);}else{
+g_zUfiSms_CurSmsPara.outdate_delete_on=(0x1c07+863-0x1f66);}if((0x3e2+716-0x6ae)
+==strcmp(defaultStore,"\x73\x69\x6d")){strncpy(g_zUfiSms_CurSmsPara.
+default_store,"\x73\x69\x6d",sizeof(g_zUfiSms_CurSmsPara.default_store)-
+(0x7ab+4090-0x17a4));}else{strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76"
+,sizeof(g_zUfiSms_CurSmsPara.default_store)-(0x1a88+1336-0x1fbf));}}void
+zUfiSms_GetDefaultPara(void){memset(&g_zUfiSms_CurSmsPara,(0xa12+4662-0x1c48),
sizeof(T_zUfiSms_ParaInfo));g_zUfiSms_CurSmsPara.status_report_on=
-(0xf61+5275-0x23fc);g_zUfiSms_CurSmsPara.mem_store=WMS_STORAGE_TYPE_NV_V01;
+(0xc91+1069-0x10be);g_zUfiSms_CurSmsPara.mem_store=WMS_STORAGE_TYPE_NV_V01;
g_zUfiSms_CurSmsPara.tp_validity_period=
ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW;g_zUfiSms_CurSmsPara.sendfail_retry_on
-=(0x153b+2190-0x1dc9);g_zUfiSms_CurSmsPara.outdate_delete_on=(0x9a6+2233-0x125f)
-;strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
-g_zUfiSms_CurSmsPara.default_store)-(0x1a3+6946-0x1cc4));}
-#if (0x1437+1571-0x1a5a)
+=(0xa4a+1939-0x11dd);g_zUfiSms_CurSmsPara.outdate_delete_on=(0x6c+448-0x22c);
+strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
+g_zUfiSms_CurSmsPara.default_store)-(0x2332+437-0x24e6));}
+#if (0x233+7029-0x1da8)
T_zUfiSms_CmdStatus zUfiSms_SetParameters(T_zUfiSms_CmdMsgBuff*ptSmsBuffer){
T_zUfiSms_ParaInfo*ptSmsParameter=NULL;T_zUfiSms_ParaInfo tNewSmsParameter={
-(0x1070+718-0x133e)};if(NULL==ptSmsBuffer){return WMS_CMD_FAILED;}ptSmsParameter
+(0x772+7650-0x2554)};if(NULL==ptSmsBuffer){return WMS_CMD_FAILED;}ptSmsParameter
=(T_zUfiSms_ParaInfo*)(&(ptSmsBuffer->cmd_info.set_sms_para));memcpy((void*)&
tNewSmsParameter,(void*)ptSmsParameter,sizeof(T_zUfiSms_ParaInfo));
#ifndef TSP_MODEL
@@ -136,28 +135,28 @@
"\x73\x65\x74\x20\x63\x66\x67\x20\x72\x6f\x75\x74\x65\x73\x20\x66\x61\x69\x6c\x65\x64\x2e"
);return WMS_CMD_FAILED;}}
#endif
-if(strlen(ptSmsParameter->sca)!=(0x8+2493-0x9c5)){if(ZUFI_SMS_FAILURE==
+if(strlen(ptSmsParameter->sca)!=(0x348+5671-0x196f)){if(ZUFI_SMS_FAILURE==
zUfiSms_SetCsca(ptSmsParameter)){return WMS_CMD_FAILED;}}if(ZUFI_SMS_FAILURE==
zUfiSms_SetDbParameters(ptSmsParameter)){return WMS_CMD_FAILED;}else{sc_cfg_set(
"\x73\x6d\x73\x5f\x63\x65\x6e\x74\x65\x72\x5f\x6e\x75\x6d",ptSmsParameter->sca);
}memcpy((void*)&g_zUfiSms_CurSmsPara,(void*)&tNewSmsParameter,sizeof(
T_zUfiSms_ParaInfo));return WMS_CMD_SUCCESS;}
#endif
-int zUfiSms_LoadSmsPara(){int count=(0x1990+1431-0x1f27);if(ZUFI_SUCC!=
+int zUfiSms_LoadSmsPara(){int count=(0x699+4251-0x1734);if(ZUFI_SUCC!=
zUfiSms_IsDbEmpty(ZTE_WMS_DB_PARAMETER_TABLE,&count)){return ZUFI_FAIL;}if(count
-==(0x15e9+1571-0x1c0c)){zUfiSms_GetDefaultCfgPara();if((0x971+5154-0x1d93)!=
+==(0x1b9d+1130-0x2007)){zUfiSms_GetDefaultCfgPara();if((0xe7a+1374-0x13d8)!=
zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){return ZUFI_FAIL;}}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x68\x61\x76\x65\x20\x64\x65\x66\x61\x75\x6c\x74\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x20\x69\x6e\x20\x64\x61\x74\x61\x62\x61\x73\x65\x2e" "\n"
);if(ZUFI_SUCC!=zUfiSms_GetDbParameters()){return ZUFI_FAIL;}if(
WMS_STORAGE_TYPE_NV_V01!=g_zUfiSms_CurSmsPara.mem_store&&
WMS_STORAGE_TYPE_UIM_V01!=g_zUfiSms_CurSmsPara.mem_store){zUfiSms_GetDefaultPara
-();if((0x1d51+1635-0x23b4)!=zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){
+();if((0x954+5233-0x1dc5)!=zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){
printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x65\x74\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x20\x66\x61\x69\x6c\x73\x20\x32\x2e" "\n"
);return ZUFI_FAIL;}}}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x4c\x6f\x61\x64\x53\x6d\x73\x50\x61\x72\x61\x20\x73\x75\x63\x63\x2e" "\n"
);return ZUFI_SUCC;}int zUfiSms_CheckMemoryFull(T_zUfiSms_MemoryType mem_store){
-int total_count=(0x7e1+744-0xac9);if((ZTE_WMS_MEMORY_SIM==mem_store)||(
+int total_count=(0xa81+4652-0x1cad);if((ZTE_WMS_MEMORY_SIM==mem_store)||(
ZTE_WMS_MEMORY_MAX==mem_store)){if(ZUFI_FAIL==zUfiSms_GetTotalCount(
ZTE_WMS_DB_SIM_TABLE,&total_count)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x3a\x67\x65\x74\x20\x74\x61\x62\x6c\x65\x20\x74\x6f\x74\x61\x6c\x20\x63\x6f\x75\x6e\x74\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
@@ -174,13 +173,13 @@
,total_count);if(total_count>=(int)g_zUfiSms_StoreCapablity[
WMS_STORAGE_TYPE_NV_V01]){g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]=TRUE;}
else{g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]=FALSE;}}return ZUFI_SUCC;}
-int zUfiSms_SetStorePara(char*mem_store){if((0x151c+2192-0x1dac)==strcmp(
+int zUfiSms_SetStorePara(char*mem_store){if((0x20d+3742-0x10ab)==strcmp(
mem_store,"\x53\x4d")){g_zUfiSms_CurSmsPara.mem_store=(unsigned int)
WMS_STORAGE_TYPE_UIM_V01;(void)sc_cfg_set(NV_SMS_LOCATION_SET,"\x30");}else if(
-(0x399+8215-0x23b0)==strcmp(mem_store,"\x4d\x45")){g_zUfiSms_CurSmsPara.
+(0x726+3293-0x1403)==strcmp(mem_store,"\x4d\x45")){g_zUfiSms_CurSmsPara.
mem_store=(unsigned int)WMS_STORAGE_TYPE_NV_V01;(void)sc_cfg_set(
-NV_SMS_LOCATION_SET,"\x31");}else if((0x81c+4052-0x17f0)==strcmp(mem_store,
-"\x53\x52")){g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0x1539+1079-0x196e);(
+NV_SMS_LOCATION_SET,"\x31");}else if((0x83d+5354-0x1d27)==strcmp(mem_store,
+"\x53\x52")){g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0xaad+3800-0x1983);(
void)sc_cfg_set(NV_SMS_LOCATION_SET,"\x32");}else{g_zUfiSms_CurSmsPara.mem_store
=(unsigned int)WMS_STORAGE_TYPE_NONE_V01;(void)sc_cfg_set(NV_SMS_LOCATION_SET,
"\x2d\x31");}if(ZUFI_FAIL==zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){
@@ -188,40 +187,40 @@
"\x63\x61\x6e\x20\x6e\x6f\x74\x20\x73\x65\x74\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x2e" "\n"
);return ZUFI_FAIL;}return ZUFI_SUCC;}int zUfiSms_SetScaPara(char*sca){strncpy(
g_zUfiSms_CurSmsPara.sca,sca,sizeof(g_zUfiSms_CurSmsPara.sca)-
-(0x177d+2587-0x2197));if(ZUFI_FAIL==zUfiSms_SetDbParameters(&
-g_zUfiSms_CurSmsPara)){at_print(LOG_ERR,
+(0xa9d+1720-0x1154));if(ZUFI_FAIL==zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara
+)){at_print(LOG_ERR,
"\x63\x61\x6e\x20\x6e\x6f\x74\x20\x73\x65\x74\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x2e" "\n"
);return ZUFI_FAIL;}return ZUFI_SUCC;}void zUfiSms_SetGlobalDcsLang(unsigned
-char cDcs){if(cDcs==(0xefa+545-0x111a)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language
-=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x12b7+3018-0x1e7f)){g_zUfiSms_Dcs=DCS_USC;
-g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x538+3711-0x13b4)){
+char cDcs){if(cDcs==(0x2b+5473-0x158b)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language
+=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x84f+5194-0x1c97)){g_zUfiSms_Dcs=DCS_USC;
+g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x8f+712-0x354)){
g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;}else if(cDcs==
-(0xe48+3212-0x1acf)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
+(0x794+7993-0x26c8)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
DCS_GSM7_PORTUGUESE;}else{g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
DCS_GSM7_DEFAULT;}}int zUfiSms_FillGroupSms(T_zUfiSms_SendReq*ptSendMsg,
T_zUfiSms_GroupInfo*ptGroupSms){int i;if(NULL==ptSendMsg||NULL==ptGroupSms||
ZTE_WMS_SEND_NUM_MAX<ptSendMsg->receiver_count){return ZUFI_FAIL;}ptGroupSms->
-total_receiver=ptSendMsg->receiver_count;for(i=(0x1fca+641-0x224b);i<ptGroupSms
+total_receiver=ptSendMsg->receiver_count;for(i=(0x42d+4300-0x14f9);i<ptGroupSms
->total_receiver;i++){strncpy(ptGroupSms->receivers[i],ptSendMsg->dest_num[i],
ZTE_WMS_ADDRESS_LEN_MAX);printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x46\x69\x6c\x6c\x47\x72\x6f\x75\x70\x53\x6d\x73\x20\x72\x65\x63\x65\x69\x76\x65\x72\x73\x5b\x25\x64\x5d\x3d\x25\x73" "\n"
-,i,ptGroupSms->receivers[i]);}ptGroupSms->current_receiver=(0x42b+8283-0x2486);
+,i,ptGroupSms->receivers[i]);}ptGroupSms->current_receiver=(0x2d2+5782-0x1968);
return ZUFI_SUCC;}int zUfiSms_FillConcatSms(T_zUfiSms_SendReq*pSendSrcMsg,
-T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0x6ed+5667-0x1d10);int
-iUnitlen=(0x1023+2068-0x1837);int iSegNo=(0x311+4574-0x14ef);unsigned char*
+T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0x271+2405-0xbd6);int
+iUnitlen=(0x1656+3808-0x2536);int iSegNo=(0x2308+944-0x26b8);unsigned char*
pSmsConverted=NULL;unsigned char acConvertContent[
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*(0x1dd+2171-0xa54)+
+(0x3e2+7120-0x1fae)]={(0x6ac+2884-0x11f0)};unsigned char acTmpContent[
ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*
-(0x1079+5280-0x2515)+(0x488+4946-0x17d6)]={(0x6f+9672-0x2637)};unsigned char
-acTmpContent[ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*
-(0x12a+9419-0x25f1)+(0x135f+1307-0x1876)]={(0x75d+2138-0xfb7)};int iTimeZone=
-(0x84+2336-0x9a4);int tmp_i=(0xa42+4879-0x1d51);if(NULL==pSendSrcMsg||NULL==
-pDestConcatMsg){return-(0x14d1+583-0x1717);}iTotalLen=pSendSrcMsg->msg_len;if(
+(0x1199+2617-0x1bce)+(0x89b+7220-0x24cb)]={(0x17d4+1587-0x1e07)};int iTimeZone=
+(0x348+3171-0xfab);int tmp_i=(0x1704+1582-0x1d32);if(NULL==pSendSrcMsg||NULL==
+pDestConcatMsg){return-(0xabd+6127-0x22ab);}iTotalLen=pSendSrcMsg->msg_len;if(
ZUFI_FAIL==zUfiSms_GetSmsContent(acTmpContent,sizeof(acTmpContent))){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x53\x6d\x73\x43\x6f\x6e\x74\x65\x6e\x74\x20\x46\x61\x69\x6c\x2e" "\n"
-);return-(0x634+8159-0x2612);}printf(
+);return-(0xff+1947-0x899);}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x53\x6d\x73\x43\x6f\x6e\x74\x65\x6e\x74\x3a\x25\x73\x2e" "\n"
,acTmpContent);(void)String2Bytes(acTmpContent,acConvertContent,(int)strlen(
-acTmpContent));memset(acTmpContent,(0x465+432-0x615),sizeof(acTmpContent));if(
+acTmpContent));memset(acTmpContent,(0x2392+525-0x259f),sizeof(acTmpContent));if(
DCS_USC==g_zUfiSms_Dcs){pSmsConverted=acConvertContent;}else{if(
NOT_DEFINE_LANGUAGE==g_zUfiSms_Language){iTotalLen=
zUfiSms_ConvertAsciiToGsmDefault(acConvertContent,acTmpContent,pSendSrcMsg->
@@ -231,97 +230,96 @@
zUfiSms_ConvertUcs2ToPortuguese(acConvertContent,acTmpContent,pSendSrcMsg->
msg_len);}else{iTotalLen=zUfiSms_ConvertUcs2ToGsmDefault(acConvertContent,
acTmpContent,pSendSrcMsg->msg_len);}pSendSrcMsg->msg_len=iTotalLen;pSmsConverted
-=acTmpContent;}if(iTotalLen>(sizeof(acConvertContent)-(0x18a4+584-0x1aeb))){
-iTotalLen=sizeof(acConvertContent)-(0x222+5816-0x18d9);}pDestConcatMsg->sms_len=
+=acTmpContent;}if(iTotalLen>(sizeof(acConvertContent)-(0x122b+3666-0x207c))){
+iTotalLen=sizeof(acConvertContent)-(0x9d7+4475-0x1b51);}pDestConcatMsg->sms_len=
iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
-DCS_PORTUGUESE&&iTotalLen>(0x1fbc+28-0x1f3d))||((g_zUfiSms_Dcs==DCS_USC)&&
+DCS_PORTUGUESE&&iTotalLen>(0x1dd+789-0x457))||((g_zUfiSms_Dcs==DCS_USC)&&
iTotalLen>ZTE_WMS_SMS_MSG_CHAR_MAX)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x3d\x3d\x3d\x3d\x3d\x73\x65\x6e\x64\x20\x63\x6f\x6e\x74\x61\x63\x74\x20\x73\x6d\x73\x2e" "\n"
);if(g_zUfiSms_Dcs==DCS_USC){iUnitlen=ZTE_WMS_SMS_CONCAT_ELEMNT_UCS_LEN*
-(0x20f1+248-0x21e7);}else{if(g_zUfiSms_Language==NOT_DEFINE_LANGUAGE||
+(0x2661+46-0x268d);}else{if(g_zUfiSms_Language==NOT_DEFINE_LANGUAGE||
g_zUfiSms_Language==DCS_GSM7_DEFAULT){iUnitlen=ZTE_WMS_SMS_CONCAT_ELEMNT_ASC_LEN
;}else{iUnitlen=ZTE_WMS_SMS_CONCAT_ELEMNT_LANGUAGE_LEN;}}while(iTotalLen>
-(0xea5+5806-0x2553)&&iSegNo<ZTE_WMS_CONCAT_SMS_COUNT_MAX){memcpy(pDestConcatMsg
+(0x1db1+1567-0x23d0)&&iSegNo<ZTE_WMS_CONCAT_SMS_COUNT_MAX){memcpy(pDestConcatMsg
->msg_contents[iSegNo],pSmsConverted,iUnitlen);iTotalLen-=iUnitlen;pSmsConverted
+=iUnitlen;iSegNo++;}pDestConcatMsg->total_msg=iSegNo;}else{iUnitlen=iTotalLen;
-pDestConcatMsg->total_msg=(0xfa3+1296-0x14b2);memcpy(pDestConcatMsg->
-msg_contents[(0xc2c+5262-0x20ba)],pSmsConverted,iTotalLen);printf(
+pDestConcatMsg->total_msg=(0x1013+1486-0x15e0);memcpy(pDestConcatMsg->
+msg_contents[(0x1024+1999-0x17f3)],pSmsConverted,iTotalLen);printf(
"\x5b\x53\x4d\x53\x5d\x20\x3d\x3d\x3d\x3d\x3d\x73\x65\x6e\x64\x20\x6e\x6f\x72\x6d\x61\x6c\x20\x73\x6d\x73\x2e\x6c\x65\x6e\x3a\x25\x64\x2e\x63\x6f\x6e\x74\x65\x6e\x74\x3a\x25\x73\x2e" "\n"
-,iUnitlen,pDestConcatMsg->msg_contents[(0x12b4+100-0x1318)]);}
+,iUnitlen,pDestConcatMsg->msg_contents[(0x1e45+286-0x1f63)]);}
g_zUfiSms_ConcatTotalNum=pDestConcatMsg->total_msg;pDestConcatMsg->
-current_sending=(0x1042+3616-0x1e62);memcpy(&(pDestConcatMsg->date),&(
-pSendSrcMsg->date),sizeof(T_zUfiSms_Date));tmp_i=atoi(pDestConcatMsg->date.
-timezone);if(tmp_i<INT_MIN+(0xb6c+5987-0x22ce)||tmp_i>INT_MAX-(0xb91+148-0xc24))
-{printf(
+current_sending=(0x87b+4812-0x1b47);memcpy(&(pDestConcatMsg->date),&(pSendSrcMsg
+->date),sizeof(T_zUfiSms_Date));tmp_i=atoi(pDestConcatMsg->date.timezone);if(
+tmp_i<INT_MIN+(0x9dc+7454-0x26f9)||tmp_i>INT_MAX-(0x121a+3524-0x1fdd)){printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x70\x44\x65\x73\x74\x43\x6f\x6e\x63\x61\x74\x4d\x73\x67\x20\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x3a\x25\x64\x2e" "\n"
-,tmp_i);return ZUFI_FAIL;}iTimeZone=tmp_i*(0xd7a+4016-0x1d26);memset(
-pDestConcatMsg->date.timezone,(0x386+1713-0xa37),sizeof(pDestConcatMsg->date.
-timezone));if(iTimeZone>(0xb02+1081-0xf3b)){snprintf(pDestConcatMsg->date.
+,tmp_i);return ZUFI_FAIL;}iTimeZone=tmp_i*(0x1133+3269-0x1df4);memset(
+pDestConcatMsg->date.timezone,(0x5e6+4776-0x188e),sizeof(pDestConcatMsg->date.
+timezone));if(iTimeZone>(0x1a98+1419-0x2023)){snprintf(pDestConcatMsg->date.
timezone,sizeof(pDestConcatMsg->date.timezone),"\x2b\x25\x64",iTimeZone);}else{
snprintf(pDestConcatMsg->date.timezone,sizeof(pDestConcatMsg->date.timezone),
"\x25\x64",iTimeZone);}pSmsConverted=NULL;return iUnitlen;}void
zUfiSms_FillDateheader(T_zUfiSms_SubmitTpdu*ptSubmit,T_zUfiSms_ConcatInfo*
ptConcatSms,T_zUfiSms_DbStoreData*ptDbSaveData){unsigned char iHeaderNum=
-(0x1a56+217-0x1b2f);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
-user_data_header_present=TRUE;if((0x13b8+3184-0x2028)==ptConcatSms->
+(0x139a+199-0x1461);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
+user_data_header_present=TRUE;if((0x1cab+349-0x1e08)==ptConcatSms->
current_sending){g_zUfiSms_ConcatSmsReference++;(void)zUfiSms_SetConcatMaxRefer(
g_zUfiSms_ConcatSmsReference);}ptSubmit->user_data.headers[iHeaderNum].header_id
=WMS_UDH_CONCAT_8;ptSubmit->user_data.headers[iHeaderNum].u.concat_8.total_sm=
ptConcatSms->total_msg;ptSubmit->user_data.headers[iHeaderNum].u.concat_8.
-seq_num=ptConcatSms->current_sending+(0x9ab+3856-0x18ba);ptSubmit->user_data.
+seq_num=ptConcatSms->current_sending+(0x17cf+3100-0x23ea);ptSubmit->user_data.
headers[iHeaderNum].u.concat_8.msg_ref=g_zUfiSms_ConcatSmsReference%
-(0x14d3+4451-0x2537);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
-(0xc48+2280-0x152f);ptDbSaveData->concat_info[(0x21a+2606-0xc48)]=
+(0x1443+3134-0x1f82);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
+(0xc2c+473-0xe04);ptDbSaveData->concat_info[(0x11ef+1669-0x1874)]=
g_zUfiSms_ConcatSmsReference;}int zUfiSms_MakeFinalCmgsBuf(){SMS_PARAM tSmsData;
-int iPduLength=(0x1eff+1489-0x24d0);int nSmscLength=(0xcd+6586-0x1a87);char
-Tempstrr[(0xb90+3111-0x17b5)]={(0x1b20+669-0x1dbd)};char Temp_sms_vp[
-(0xd10+3837-0x1c05)]={(0x1968+3396-0x26ac)};char tmpBuf1[(0x6db+6711-0x210f)]={
-(0xf21+3744-0x1dc1)};char tmpBuf2[(0xa7d+3478-0x180d)]={(0x278+196-0x33c)};CHAR
-smsCenter[(0x8fc+5241-0x1d43)]={(0x20d8+1284-0x25dc)};memset(&tSmsData,
-(0x14a1+1915-0x1c1c),sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,
-(0x139d+3255-0x2054),sizeof(T_zSms_SendSmsReq));if(CODE_GSM7==
-g_zUfiSms_SendingSms.TP_DCS){int i=(0x24aa+161-0x254b);for(;i<
-g_zUfiSms_SendingSms.TP_UDLength;i++){tSmsData.TP_UD[i]=g_zUfiSms_SendingSms.
-TP_UD[i];}tSmsData.TP_UDLength=g_zUfiSms_SendingSms.TP_UDLength;}else{snprintf(
-tSmsData.TP_UD,sizeof(tSmsData.TP_UD),"\x25\x73",g_zUfiSms_SendingSms.TP_UD);
-tSmsData.TP_UDLength=strlen(tSmsData.TP_UD);}sc_cfg_get(NV_SMS_CENTER_NUM,
-smsCenter,sizeof(smsCenter));snprintf(tSmsData.SCA,sizeof(tSmsData.SCA),
-"\x25\x73",smsCenter);snprintf(tSmsData.TPA,sizeof(tSmsData.TPA),"\x25\x73",
-g_zUfiSms_SendingSms.TPA);tSmsData.TP_DCS=g_zUfiSms_SendingSms.TP_DCS;sc_cfg_get
-(NV_REPORT_ENABLE,Tempstrr,sizeof(Tempstrr));if(((0x460+7016-0x1fc8)==strncmp(
-Tempstrr,"\x31",(0xf03+904-0x128a)))&&(g_zUfiSms_ConcatSms.current_sending==
-g_zUfiSms_ConcatSms.total_msg-(0x484+3285-0x1158))){tSmsData.TP_SRR=
-(0xe05+4324-0x1ee8);}else{tSmsData.TP_SRR=(0xbfa+4366-0x1d08);}tSmsData.TP_UDHI=
-g_zUfiSms_SendingSms.TP_UDHI;tSmsData.TP_VP=(0x279+7676-0x1f76);sc_cfg_get(
-NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));if((0x4f7+852-0x84b)==strncmp(
-Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",(0x1a81+1837-0x21a7))){tSmsData.TP_VP
-=(0x1aec+3157-0x2642);}else if((0xa0c+575-0xc4b)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x5f\x64\x61\x79",(0x11bf+4145-0x21e9))){tSmsData.TP_VP=
-(0x5c3+2668-0xf88);}else if((0x21b+2449-0xbac)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x77\x65\x65\x6b",(0x1cb6+2180-0x2533))){tSmsData.TP_VP=
-(0x72b+3601-0x148f);}else if((0x156c+3941-0x24d1)==strncmp(Temp_sms_vp,
-"\x74\x77\x65\x6c\x76\x65\x68",(0xa8a+2676-0x14f7))){tSmsData.TP_VP=
-(0x1ae1+2318-0x2360);}tSmsData.TP_PID=(0xaba+3049-0x16a3);
-#if (0x1d02+184-0x1db9)
+int iPduLength=(0x9b4+3937-0x1915);int nSmscLength=(0x502+1572-0xb26);char
+Tempstrr[(0x2247+835-0x2588)]={(0xcb4+4285-0x1d71)};char Temp_sms_vp[
+(0x1bc6+2643-0x2611)]={(0xd00+73-0xd49)};char tmpBuf1[(0x12eb+3684-0x214c)]={
+(0x532+4949-0x1887)};char tmpBuf2[(0x126d+338-0x13b9)]={(0x98b+4947-0x1cde)};
+CHAR smsCenter[(0x14a5+39-0x149a)]={(0x5bf+994-0x9a1)};memset(&tSmsData,
+(0x159+3606-0xf6f),sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,
+(0xcf+748-0x3bb),sizeof(T_zSms_SendSmsReq));if(CODE_GSM7==g_zUfiSms_SendingSms.
+TP_DCS){int i=(0x23b0+228-0x2494);for(;i<g_zUfiSms_SendingSms.TP_UDLength;i++){
+tSmsData.TP_UD[i]=g_zUfiSms_SendingSms.TP_UD[i];}tSmsData.TP_UDLength=
+g_zUfiSms_SendingSms.TP_UDLength;}else{snprintf(tSmsData.TP_UD,sizeof(tSmsData.
+TP_UD),"\x25\x73",g_zUfiSms_SendingSms.TP_UD);tSmsData.TP_UDLength=strlen(
+tSmsData.TP_UD);}sc_cfg_get(NV_SMS_CENTER_NUM,smsCenter,sizeof(smsCenter));
+snprintf(tSmsData.SCA,sizeof(tSmsData.SCA),"\x25\x73",smsCenter);snprintf(
+tSmsData.TPA,sizeof(tSmsData.TPA),"\x25\x73",g_zUfiSms_SendingSms.TPA);tSmsData.
+TP_DCS=g_zUfiSms_SendingSms.TP_DCS;sc_cfg_get(NV_REPORT_ENABLE,Tempstrr,sizeof(
+Tempstrr));if(((0x161d+2267-0x1ef8)==strncmp(Tempstrr,"\x31",
+(0x15df+3275-0x22a9)))&&(g_zUfiSms_ConcatSms.current_sending==
+g_zUfiSms_ConcatSms.total_msg-(0x34+3678-0xe91))){tSmsData.TP_SRR=
+(0x1e1f+1626-0x2478);}else{tSmsData.TP_SRR=(0x117c+1783-0x1873);}tSmsData.
+TP_UDHI=g_zUfiSms_SendingSms.TP_UDHI;tSmsData.TP_VP=(0xe72+6314-0x261d);
+sc_cfg_get(NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));if((0x21b2+313-0x22eb)==
+strncmp(Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",(0xeb1+601-0x1103))){tSmsData
+.TP_VP=(0x163a+3730-0x23cd);}else if((0x350+6943-0x1e6f)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x5f\x64\x61\x79",(0x150b+4105-0x250d))){tSmsData.TP_VP=
+(0x5a1+7047-0x2081);}else if((0x4f6+7354-0x21b0)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x77\x65\x65\x6b",(0x120+6862-0x1be7))){tSmsData.TP_VP=
+(0x8bb+1612-0xe5a);}else if((0x1378+2216-0x1c20)==strncmp(Temp_sms_vp,
+"\x74\x77\x65\x6c\x76\x65\x68",(0x15b3+4321-0x268d))){tSmsData.TP_VP=
+(0x919+7191-0x24a1);}tSmsData.TP_PID=(0xb47+2576-0x1557);
+#if (0xb35+6294-0x23ca)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x62\x65\x67\x69\x6e\x3a\x25\x73" "\n",
g_zUfiSms_FinalCmgsBuf.pdu);
#endif
iPduLength=EncodePdu_Submit(&tSmsData,g_zUfiSms_FinalCmgsBuf.pdu);
-#if (0x166a+449-0x182a)
+#if (0x1db4+164-0x1e57)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x4d\x61\x6b\x65\x46\x69\x6e\x61\x6c\x43\x6d\x67\x73\x42\x75\x66\x20\x6d\x61\x6b\x65\x20\x70\x64\x75\x20\x64\x61\x74\x61" "\n"
);printf("\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x25\x73" "\n",
g_zUfiSms_FinalCmgsBuf.pdu);
#endif
-(void)String2Bytes(g_zUfiSms_FinalCmgsBuf.pdu,tmpBuf1,(0x458+6238-0x1cb4));
+(void)String2Bytes(g_zUfiSms_FinalCmgsBuf.pdu,tmpBuf1,(0x766+6656-0x2164));
Bytes2String(tmpBuf1,tmpBuf2,strlen(tmpBuf1));nSmscLength=atoi(tmpBuf2);if(
-nSmscLength<(0x2000+228-0x20e4)||nSmscLength>INT_MAX-(0x1dc5+2138-0x261e)){
+nSmscLength<(0x1717+43-0x1742)||nSmscLength>INT_MAX-(0x207d+718-0x234a)){
at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x6e\x53\x6d\x73\x63\x4c\x65\x6e\x67\x74\x68\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,nSmscLength);nSmscLength=(0x1606+3850-0x2510);;}nSmscLength++;
-g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0xe07+3001-0x19be)-nSmscLength;
-#if (0x7ac+4549-0x1970)
+,nSmscLength);nSmscLength=(0x16af+92-0x170b);;}nSmscLength++;
+g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0x1548+2328-0x1e5e)-nSmscLength;
+#if (0x12e2+4638-0x24ff)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x4d\x61\x6b\x65\x46\x69\x6e\x61\x6c\x43\x6d\x67\x73\x42\x75\x66\x20\x6d\x61\x6b\x65\x20\x65\x6e\x64\x20\x70\x64\x75\x20\x64\x61\x74\x61" "\n"
);printf(
@@ -331,22 +329,22 @@
return ZUFI_SUCC;}int zUfiSms_FillSubmitTpdu(T_zUfiSms_ConcatInfo*ptConcatSms,
T_zUfiSms_GroupInfo*ptGroupSms,int iSmsLen,T_zUfiSms_SubmitTpdu*ptSubmit,
T_zUfiSms_DbStoreData*ptDbSaveData){if(NULL==ptSubmit||NULL==ptConcatSms||NULL==
-ptGroupSms||NULL==ptDbSaveData){return-(0x1034+4961-0x2394);}ptSubmit->
+ptGroupSms||NULL==ptDbSaveData){return-(0x159f+3268-0x2262);}ptSubmit->
reject_duplicates=FALSE;ptSubmit->reply_path_present=FALSE;ptSubmit->
user_data_header_present=FALSE;ptSubmit->status_report_enabled=
-g_zUfiSms_CurSmsPara.status_report_on;if(((0xa3a+2082-0x125b)<ptConcatSms->
-total_msg)&&(ptConcatSms->current_sending+(0x15ea+2139-0x1e44)<ptConcatSms->
-total_msg)){ptSubmit->status_report_enabled=(0x35d+1277-0x85a);}ptSubmit->
+g_zUfiSms_CurSmsPara.status_report_on;if(((0x475+8439-0x256b)<ptConcatSms->
+total_msg)&&(ptConcatSms->current_sending+(0x9a9+2261-0x127d)<ptConcatSms->
+total_msg)){ptSubmit->status_report_enabled=(0x1393+706-0x1655);}ptSubmit->
message_reference=g_zUfiSms_MsgRefer;ptSubmit->pid=WMS_PID_DEFAULT;ptSubmit->dcs
-.msg_class=(wms_message_class_e_type)(0x54b+4549-0x170c);ptSubmit->dcs.
-is_compressed=(0x1fdb+1031-0x23e2);ptSubmit->dcs.alphabet=(g_zUfiSms_Dcs==
-DCS_ASC)?WMS_GW_ALPHABET_7_BIT_DEFAULT:WMS_GW_ALPHABET_UCS2;ptSubmit->validity.
-format=WMS_GW_VALIDITY_RELATIVE;zUfiSms_DecodeRelativeTime(g_zUfiSms_CurSmsPara.
+.msg_class=(wms_message_class_e_type)(0x216+6111-0x19f1);ptSubmit->dcs.
+is_compressed=(0x97c+6288-0x220c);ptSubmit->dcs.alphabet=(g_zUfiSms_Dcs==DCS_ASC
+)?WMS_GW_ALPHABET_7_BIT_DEFAULT:WMS_GW_ALPHABET_UCS2;ptSubmit->validity.format=
+WMS_GW_VALIDITY_RELATIVE;zUfiSms_DecodeRelativeTime(g_zUfiSms_CurSmsPara.
tp_validity_period,&ptSubmit->validity.u.time);ptSubmit->user_data.num_headers=
-(0xef+1613-0x73c);if(ptConcatSms->total_msg>(0x17d2+82-0x1823)){
+(0x3d8+1735-0xa9f);if(ptConcatSms->total_msg>(0x373+1617-0x9c3)){
zUfiSms_FillDateheader(ptSubmit,ptConcatSms,ptDbSaveData);ptDbSaveData->
-concat_info[(0x1349+468-0x151b)]=ptConcatSms->current_sending+
-(0x1da+7716-0x1ffd);ptDbSaveData->concat_info[(0xb7d+4630-0x1d92)]=ptConcatSms->
+concat_info[(0x180d+1231-0x1cda)]=ptConcatSms->current_sending+
+(0x1b2+2811-0xcac);ptDbSaveData->concat_info[(0x18cd+91-0x1927)]=ptConcatSms->
total_msg;}if(g_zUfiSms_Language==DCS_PORTUGUESE){UINT8 i=ptSubmit->user_data.
num_headers;ptSubmit->user_data_header_present=TRUE;ptSubmit->user_data.headers[
i].header_id=WMS_UDH_NAT_LANG_SS;ptSubmit->user_data.headers[ptSubmit->user_data
@@ -354,51 +352,52 @@
user_data.num_headers++;g_zUfiSms_IsLanguageShift=WMS_UDH_NAT_LANG_SS;}ptSubmit
->user_data.sm_len=iSmsLen;memcpy(ptSubmit->user_data.sm_data,ptConcatSms->
msg_contents[ptConcatSms->current_sending],iSmsLen);if(ptGroupSms->receivers[
-ptGroupSms->current_receiver][(0xe2+6987-0x1c2d)]==((char)(0x3ab+7275-0x1feb))){
-(void)zUfiSms_CharToInt(ptGroupSms->receivers[ptGroupSms->current_receiver]+
-(0x1204+1032-0x160b),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])
--(0xc32+6190-0x245f),ptSubmit->address.digits);ptSubmit->address.number_type=
+ptGroupSms->current_receiver][(0x1b2f+2394-0x2489)]==((char)(0x6d5+5164-0x1ad6))
+){(void)zUfiSms_CharToInt(ptGroupSms->receivers[ptGroupSms->current_receiver]+
+(0xed6+4498-0x2067),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])-
+(0x21a3+220-0x227e),ptSubmit->address.digits);ptSubmit->address.number_type=
WMS_NUMBER_INTERNATIONAL;ptSubmit->address.number_of_digits=strlen(ptGroupSms->
-receivers[ptGroupSms->current_receiver])-(0x179b+3914-0x26e4);}else if(
-ptGroupSms->receivers[ptGroupSms->current_receiver][(0xc86+2944-0x1806)]==
-((char)(0x1b66+1059-0x1f59))&&ptGroupSms->receivers[ptGroupSms->current_receiver
-][(0x2f1+427-0x49b)]==((char)(0xcb2+4178-0x1cd4))){(void)zUfiSms_CharToInt(
-ptGroupSms->receivers[ptGroupSms->current_receiver]+(0xdac+2373-0x16ef),strlen(
-ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x788+2713-0x121f),
+receivers[ptGroupSms->current_receiver])-(0x6af+2308-0xfb2);}else if(ptGroupSms
+->receivers[ptGroupSms->current_receiver][(0xb8b+267-0xc96)]==
+((char)(0xec+6699-0x1ae7))&&ptGroupSms->receivers[ptGroupSms->current_receiver][
+(0x4ea+8571-0x2664)]==((char)(0x130f+3761-0x2190))){(void)zUfiSms_CharToInt(
+ptGroupSms->receivers[ptGroupSms->current_receiver]+(0x1cb+9310-0x2627),strlen(
+ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x476+8605-0x2611),
ptSubmit->address.digits);ptSubmit->address.number_type=WMS_NUMBER_INTERNATIONAL
;ptSubmit->address.number_of_digits=strlen(ptGroupSms->receivers[ptGroupSms->
-current_receiver])-(0x55+5646-0x1661);}else{(void)zUfiSms_CharToInt(ptGroupSms->
-receivers[ptGroupSms->current_receiver],strlen(ptGroupSms->receivers[ptGroupSms
-->current_receiver]),ptSubmit->address.digits);ptSubmit->address.number_type=
-WMS_NUMBER_UNKNOWN;ptSubmit->address.number_of_digits=strlen(ptGroupSms->
-receivers[ptGroupSms->current_receiver]);}ptSubmit->address.digit_mode=(
-wms_digit_mode_e_type)(0xeca+5604-0x24ae);ptSubmit->address.number_mode=(
-wms_number_mode_e_type)(0x1ada+2298-0x23d4);ptSubmit->address.number_plan=
-WMS_NUMBER_PLAN_TELEPHONY;memset(&g_zUfiSms_SendingSms,(0x929+3673-0x1782),
-sizeof(SMS_PARAM));snprintf(g_zUfiSms_SendingSms.TPA,sizeof(g_zUfiSms_SendingSms
-.TPA),"\x25\x73",ptGroupSms->receivers[ptGroupSms->current_receiver]);if(
-g_zUfiSms_Language!=NOT_DEFINE_LANGUAGE){g_zUfiSms_SendingSms.TP_DCS=CODE_GSM7;}
-else{if(g_zUfiSms_Dcs==DCS_USC){g_zUfiSms_SendingSms.TP_DCS=CODE_UCS2;}else{
-g_zUfiSms_SendingSms.TP_DCS=CODE_GSM8;}}if(g_zUfiSms_SendingSms.TP_DCS==
-CODE_GSM7){zUfiSms_FillGlobalTpudGsm7(ptSubmit,ptConcatSms,ptDbSaveData);}else{
+current_receiver])-(0x709+7999-0x2646);}else{(void)zUfiSms_CharToInt(ptGroupSms
+->receivers[ptGroupSms->current_receiver],strlen(ptGroupSms->receivers[
+ptGroupSms->current_receiver]),ptSubmit->address.digits);ptSubmit->address.
+number_type=WMS_NUMBER_UNKNOWN;ptSubmit->address.number_of_digits=strlen(
+ptGroupSms->receivers[ptGroupSms->current_receiver]);}ptSubmit->address.
+digit_mode=(wms_digit_mode_e_type)(0xdbc+3145-0x1a05);ptSubmit->address.
+number_mode=(wms_number_mode_e_type)(0xded+204-0xeb9);ptSubmit->address.
+number_plan=WMS_NUMBER_PLAN_TELEPHONY;memset(&g_zUfiSms_SendingSms,
+(0x275+8872-0x251d),sizeof(SMS_PARAM));snprintf(g_zUfiSms_SendingSms.TPA,sizeof(
+g_zUfiSms_SendingSms.TPA),"\x25\x73",ptGroupSms->receivers[ptGroupSms->
+current_receiver]);if(g_zUfiSms_Language!=NOT_DEFINE_LANGUAGE){
+g_zUfiSms_SendingSms.TP_DCS=CODE_GSM7;}else{if(g_zUfiSms_Dcs==DCS_USC){
+g_zUfiSms_SendingSms.TP_DCS=CODE_UCS2;}else{g_zUfiSms_SendingSms.TP_DCS=
+CODE_GSM8;}}if(g_zUfiSms_SendingSms.TP_DCS==CODE_GSM7){
+zUfiSms_FillGlobalTpudGsm7(ptSubmit,ptConcatSms,ptDbSaveData);}else{
zUfiSms_FillGlobalTpudUcs2(ptSubmit,ptConcatSms,ptDbSaveData);}(void)
zUfiSms_MakeFinalCmgsBuf();return ZUFI_SUCC;}void zUfiSms_FillSca(
T_zUfiSms_ClientMsg*ptClientMsg){char sca[ZTE_WMS_SCA_LEN_MAX]={
-(0xb61+4678-0x1da7)};int i=(0x1a24+1543-0x202b);if(NULL==ptClientMsg){return;}
+(0x1205+3336-0x1f0d)};int i=(0x4b3+6624-0x1e93);if(NULL==ptClientMsg){return;}
memcpy((void*)sca,(void*)(g_zUfiSms_CurSmsPara.sca),sizeof(g_zUfiSms_CurSmsPara.
-sca));if(sca[(0x1eba+1938-0x264c)]==((char)(0x23d8+695-0x2664))){ptClientMsg->u.
+sca));if(sca[(0x458+7716-0x227c)]==((char)(0x388+445-0x51a))){ptClientMsg->u.
gw_message.sc_address.number_type=WMS_NUMBER_INTERNATIONAL;}ptClientMsg->u.
gw_message.sc_address.digit_mode=WMS_DIGIT_MODE_8_BIT;ptClientMsg->u.gw_message.
sc_address.number_plan=WMS_NUMBER_PLAN_TELEPHONY;ptClientMsg->u.gw_message.
-sc_address.number_of_digits=strlen(sca);if(sca[(0x946+6908-0x2442)]==
-((char)(0x112d+3556-0x1ee6))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits--;for(i=(0x1205+1477-0x17ca);i<ptClientMsg->u.gw_message.
-sc_address.number_of_digits;i++){sca[i]=sca[i+(0x329+5949-0x1a65)];}}else if(sca
-[(0x1774+950-0x1b2a)]==((char)(0x1965+1069-0x1d62))&&sca[(0x1986+1876-0x20d9)]==
-((char)(0x96b+4311-0x1a12))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits-=(0x1745+2014-0x1f21);for(i=(0x8a6+4989-0x1c23);i<ptClientMsg->
-u.gw_message.sc_address.number_of_digits;i++){sca[i]=sca[i+(0xa5d+1096-0xea3)];}
-}(void)zUfiSms_CharToInt(sca,ptClientMsg->u.gw_message.sc_address.
+sc_address.number_of_digits=strlen(sca);if(sca[(0x73b+7234-0x237d)]==
+((char)(0xc73+2892-0x1794))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits--;for(i=(0x17c0+3486-0x255e);i<ptClientMsg->u.gw_message.
+sc_address.number_of_digits;i++){sca[i]=sca[i+(0x1671+51-0x16a3)];}}else if(sca[
+(0x1b08+770-0x1e0a)]==((char)(0x1807+283-0x18f2))&&sca[(0xa24+2694-0x14a9)]==
+((char)(0xb4c+2058-0x1326))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits-=(0x10f5+3242-0x1d9d);for(i=(0x10f+1043-0x522);i<ptClientMsg->u
+.gw_message.sc_address.number_of_digits;i++){sca[i]=sca[i+(0x1025+5336-0x24fb)];
+}}(void)zUfiSms_CharToInt(sca,ptClientMsg->u.gw_message.sc_address.
number_of_digits,ptClientMsg->u.gw_message.sc_address.digits);}void
zUfiSms_FillDbSaveData(T_zUfiSms_ClientMsg*ptClientMsg,T_zUfiSms_ClientTsData*
ptClientData,T_zUfiSms_ConcatInfo*ptConcatSms,T_zUfiSms_GroupInfo*ptGroupSms,int
@@ -408,12 +407,12 @@
}ptDbSaveData->mem_store=ptClientMsg->msg_hdr.mem_store;ptDbSaveData->index=
ptClientMsg->msg_hdr.index;ptDbSaveData->mode=ptClientMsg->msg_hdr.message_mode;
ptDbSaveData->tag=ptClientMsg->msg_hdr.tag;memset(ptDbSaveData->number,
-(0x8cf+5226-0x1d39),ZTE_WMS_ADDRESS_LEN_MAX+(0x455+3874-0x1376));memcpy(
+(0x21b+732-0x4f7),ZTE_WMS_ADDRESS_LEN_MAX+(0xda3+4738-0x2024));memcpy(
ptDbSaveData->number,ptGroupSms->receivers[ptGroupSms->current_receiver],strlen(
ptGroupSms->receivers[ptGroupSms->current_receiver]));ptDbSaveData->tp_dcs=
DCS_USC;ptDbSaveData->tp_pid=ptClientData->u.gw_pp.u.submit.pid;ptDbSaveData->
msg_ref=ptClientData->u.gw_pp.u.submit.message_reference;memset(ptDbSaveData->
-sms_content,(0x1cf+5400-0x16e7),sizeof(ptDbSaveData->sms_content));if(
+sms_content,(0x11bc+4824-0x2494),sizeof(ptDbSaveData->sms_content));if(
g_zUfiSms_Dcs==DCS_USC){ptDbSaveData->alphabet=WMS_GW_ALPHABET_UCS2;}else if(
g_zUfiSms_Dcs==DCS_ASC){ptDbSaveData->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}(
void)zUfiSms_DispatchWtoi(ptConcatSms->msg_contents[ptConcatSms->current_sending
@@ -424,7 +423,7 @@
ptDbSaveData){T_zUfiSms_ClientTsData tClientTsData;ptClientMsg->msg_hdr.
mem_store=WMS_MEMORY_STORE_NV_GW;ptClientMsg->msg_hdr.tag=WMS_TAG_MO_NOT_SENT;
ptClientMsg->msg_hdr.message_mode=WMS_MESSAGE_MODE_GW;ptClientMsg->u.gw_message.
-is_broadcast=FALSE;memset((void*)&tClientTsData,(0x129f+2310-0x1ba5),sizeof(
+is_broadcast=FALSE;memset((void*)&tClientTsData,(0x625+5835-0x1cf0),sizeof(
wms_client_ts_data_s_type));tClientTsData.format=WMS_FORMAT_GW_PP;tClientTsData.
u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)zUfiSms_FillSubmitTpdu(&
g_zUfiSms_ConcatSms,&g_zUfiSms_GroupSms,g_zUfiSms_UnitLen,&tClientTsData.u.gw_pp
@@ -433,95 +432,94 @@
ptClientMsg,&tClientTsData,&g_zUfiSms_ConcatSms,&g_zUfiSms_GroupSms,
g_zUfiSms_UnitLen,ptDbSaveData);}int zUfiSms_StoreNormalSmsToDb(
T_zUfiSms_DbStoreData*ptDbSaveData,const char*pMemStore,long iSmsId){int result=
-ZUFI_SUCC;char*pContent=NULL;int iTotalCount=(0x385+5147-0x17a0);pContent=(char*
-)malloc((0x58c+7269-0x21ed)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent==
-NULL){return ZUFI_FAIL;}memset(pContent,(0xe11+1498-0x13eb),(0x14a5+406-0x1637)*
+ZUFI_SUCC;char*pContent=NULL;int iTotalCount=(0x24f5+319-0x2634);pContent=(char*
+)malloc((0x19a+7431-0x1e9d)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent==
+NULL){return ZUFI_FAIL;}memset(pContent,(0x9a9+182-0xa5f),(0x1423+385-0x15a0)*
ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(WMS_GW_ALPHABET_7_BIT_DEFAULT==
-ptDbSaveData->alphabet){static char data[(0x1713+1313-0x1c30)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x3ab+7881-0x2273)]={(0x14a0+1613-0x1aed)};
-memset(data,(0x66c+3124-0x12a0),(0x1534+770-0x1832)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x77c+5484-0x1ce7));(void)zUfiSms_DecodeContent
+ptDbSaveData->alphabet){static char data[(0x1287+70-0x12c9)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x5a2+4243-0x1634)]={(0xcd8+6672-0x26e8)};
+memset(data,(0xa6a+3641-0x18a3),(0x9d7+6945-0x24f4)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x1e13+358-0x1f78));(void)zUfiSms_DecodeContent
((char*)ptDbSaveData->sms_content,strlen(ptDbSaveData->sms_content),FALSE,data);
-strncpy(pContent,data,(0xd2a+6625-0x2707)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-
-(0x5a2+493-0x78e));}else{strncpy(pContent,ptDbSaveData->sms_content,
-(0x2363+63-0x239e)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x96d+2895-0x14bb));}
-ptDbSaveData->tp_dcs=(unsigned char)(0xd8+8-0xde);if(-(0xad4+3040-0x16b3)==
-iSmsId){if(ZUFI_FAIL==zUfiSms_GetTotalCount(pMemStore,&iTotalCount)){free(
+strncpy(pContent,data,(0x1cb9+2054-0x24bb)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX
+-(0x724+6832-0x21d3));}else{strncpy(pContent,ptDbSaveData->sms_content,
+(0xa28+2313-0x132d)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x1532+2064-0x1d41));
+}ptDbSaveData->tp_dcs=(unsigned char)(0xe2d+4152-0x1e63);if(-(0x766+5653-0x1d7a)
+==iSmsId){if(ZUFI_FAIL==zUfiSms_GetTotalCount(pMemStore,&iTotalCount)){free(
pContent);pContent=NULL;return ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x74\x6f\x72\x65\x4e\x6f\x72\x6d\x61\x6c\x53\x6d\x73\x54\x6f\x44\x62\x20\x69\x54\x6f\x74\x61\x6c\x43\x6f\x75\x6e\x74\x3d\x25\x64" "\n"
,iTotalCount);if(iTotalCount>=g_zUfiSms_StoreCapablity[(strcmp(pMemStore,
"\x6e\x76")?ZTE_WMS_MEMORY_SIM:ZTE_WMS_MEMORY_NV)]){free(pContent);pContent=NULL
-;return-(0x159d+312-0x16d4);}if(ZUFI_FAIL==zUfiSms_InsertNormalSmsToDb(
+;return-(0x230+588-0x47b);}if(ZUFI_FAIL==zUfiSms_InsertNormalSmsToDb(
ptDbSaveData,pMemStore,pContent)){result=ZUFI_FAIL;}}else{if(ZUFI_FAIL==
zUfiSms_UpdateNormalSmsToDb(ptDbSaveData,pMemStore,pContent,iSmsId)){result=
ZUFI_FAIL;}}free(pContent);pContent=NULL;return result;}static int
zUfiSms_ConcatDataFree(T_zUfiSms_DbStoreData*ptDbSaveData,int count,char**
-out_result){int i=(0xb50+1701-0x11f5);for(i=(0x5f0+1966-0xd9e);i<count;i++){if(
-ptDbSaveData->concat_info[(0x37+3396-0xd79)]==i+(0x1c12+2448-0x25a1)){free(
-out_result[i]);out_result[i]=NULL;break;}}return(0x9d0+1972-0x1184);}int
+out_result){int i=(0x13d0+4311-0x24a7);for(i=(0x606+200-0x6ce);i<count;i++){if(
+ptDbSaveData->concat_info[(0x198b+719-0x1c58)]==i+(0x148+8810-0x23b1)){free(
+out_result[i]);out_result[i]=NULL;break;}}return(0x1097+2178-0x1919);}int
zUfiSms_AddNewSmsToConcatData(T_zUfiSms_DbStoreData*ptDbSaveData,char*
pOldContent,char*pFormatNewContent,char*pRealNewContent,T_zUfiSms_DbStoreStr*pac
-,int*pConcatTotalNum,int len){int count=(0x10dd+1128-0x1545);char**out_result=
-NULL;char cSegChar=((char)(0xf95+758-0x1250));int i=(0x155b+1540-0x1b5f);int
-iTotalSegNum=(0x2eb+1213-0x7a8);char acContentSeg[(0x1100+4389-0x2223)*
-ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX*ZTE_WMS_SMS_COUNT_MAX]={
-(0x136+3786-0x1000)};char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==
-pOldContent){return-(0x206+6741-0x1c5a);}count=zUfiSms_SplitString(pOldContent,&
-out_result,cSegChar);for(i=(0x16e9+1115-0x1b44);i<count;i++){if(ptDbSaveData->
-concat_info[(0x837+5735-0x1e9c)]==i+(0xcb5+3770-0x1b6e)){out_result[i]=(char*)
-malloc(sizeof(ptDbSaveData->sms_content));memset(out_result[i],
-(0x1e26+260-0x1f2a),sizeof(ptDbSaveData->sms_content));if(
-WMS_GW_ALPHABET_7_BIT_DEFAULT==ptDbSaveData->alphabet){isEsc=
-zUfiSms_DecodeContent(ptDbSaveData->sms_content,strlen(ptDbSaveData->sms_content
-),isEsc,out_result[i]);}else{strncpy(out_result[i],ptDbSaveData->sms_content,
-sizeof(ptDbSaveData->sms_content)-(0xdb3+1592-0x13ea));}break;}}for(i=
-(0x1c76+805-0x1f9b);i<count;i++){snprintf(acContentSeg+strlen(acContentSeg),
-sizeof(acContentSeg)-strlen(acContentSeg),"\x25\x73",out_result[i]);strcat(
-pFormatNewContent,out_result[i]);if(i!=count-(0x16d0+4069-0x26b4)){strcat(
-pFormatNewContent,"\x3b");}}strncpy(pRealNewContent,acContentSeg,len);
+,int*pConcatTotalNum,int len){int count=(0x6b4+7083-0x225f);char**out_result=
+NULL;char cSegChar=((char)(0x41c+5797-0x1a86));int i=(0x73+801-0x394);int
+iTotalSegNum=(0x137c+3046-0x1f62);char acContentSeg[(0x35+3680-0xe93)*
+ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX*ZTE_WMS_SMS_COUNT_MAX]={(0xdf+8512-0x221f)
+};char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==pOldContent){return-
+(0xbe2+3458-0x1963);}count=zUfiSms_SplitString(pOldContent,&out_result,cSegChar)
+;for(i=(0x226a+536-0x2482);i<count;i++){if(ptDbSaveData->concat_info[
+(0x6d3+1466-0xc8b)]==i+(0x4cf+5196-0x191a)){out_result[i]=(char*)malloc(sizeof(
+ptDbSaveData->sms_content));memset(out_result[i],(0x90b+1169-0xd9c),sizeof(
+ptDbSaveData->sms_content));if(WMS_GW_ALPHABET_7_BIT_DEFAULT==ptDbSaveData->
+alphabet){isEsc=zUfiSms_DecodeContent(ptDbSaveData->sms_content,strlen(
+ptDbSaveData->sms_content),isEsc,out_result[i]);}else{strncpy(out_result[i],
+ptDbSaveData->sms_content,sizeof(ptDbSaveData->sms_content)-(0x725+7054-0x22b2))
+;}break;}}for(i=(0x9a4+639-0xc23);i<count;i++){snprintf(acContentSeg+strlen(
+acContentSeg),sizeof(acContentSeg)-strlen(acContentSeg),"\x25\x73",out_result[i]
+);strcat(pFormatNewContent,out_result[i]);if(i!=count-(0x10ac+2681-0x1b24)){
+strcat(pFormatNewContent,"\x3b");}}strncpy(pRealNewContent,acContentSeg,len);
zUfiSms_ConcatDataFree(ptDbSaveData,count,out_result);free(out_result);
out_result=NULL;count=zUfiSms_SplitString(pac->IndStr,&out_result,cSegChar);for(
-i=(0x11b2+2447-0x1b41);i<count;i++){if(ptDbSaveData->concat_info[
-(0x1bc4+934-0x1f68)]==i+(0x158f+3541-0x2363)){out_result[i]=(char*)malloc(
-SHORT_INT_LEN);memset(out_result[i],(0x437+4152-0x146f),SHORT_INT_LEN);snprintf(
-out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->index);break;}}for(i=
-(0x1846+165-0x18eb);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd),
+i=(0xb58+2630-0x159e);i<count;i++){if(ptDbSaveData->concat_info[
+(0x396+6287-0x1c23)]==i+(0xb90+2117-0x13d4)){out_result[i]=(char*)malloc(
+SHORT_INT_LEN);memset(out_result[i],(0x125f+1609-0x18a8),SHORT_INT_LEN);snprintf
+(out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->index);break;}}for(i=
+(0x1fe7+297-0x2110);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd),
sizeof(pac->FormatInd)-strlen(pac->FormatInd),"\x25\x73",out_result[i]);if(i!=
-count-(0x7bf+7068-0x235a)){snprintf(pac->FormatInd+strlen(pac->FormatInd),sizeof
-(pac->FormatInd)-strlen(pac->FormatInd),"\x3b");}}zUfiSms_ConcatDataFree(
+count-(0xb2a+315-0xc64)){snprintf(pac->FormatInd+strlen(pac->FormatInd),sizeof(
+pac->FormatInd)-strlen(pac->FormatInd),"\x3b");}}zUfiSms_ConcatDataFree(
ptDbSaveData,count,out_result);free(out_result);out_result=NULL;count=
-zUfiSms_SplitString(pac->Seg_Seq,&out_result,cSegChar);for(i=(0x24fc+217-0x25d5)
-;i<count;i++){if(ptDbSaveData->concat_info[(0x87c+2862-0x13a8)]==i+
-(0xc15+1575-0x123b)){out_result[i]=(char*)malloc(SHORT_INT_LEN);memset(
-out_result[i],(0x19d3+2382-0x2321),SHORT_INT_LEN);snprintf(out_result[i],
-SHORT_INT_LEN,"\x25\x64",ptDbSaveData->concat_info[(0x1ca2+418-0x1e42)]);break;}
-}for(i=(0x299+6240-0x1af9);i<count;i++){snprintf(pac->FormatSeq+strlen(pac->
-FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x25\x73",out_result[i
-]);if(i!=count-(0xf81+4283-0x203b)){snprintf(pac->FormatSeq+strlen(pac->
-FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x3b");}if(
-(0x1002+4325-0x20e7)!=strcmp(out_result[i],"")){iTotalSegNum++;}}*
+zUfiSms_SplitString(pac->Seg_Seq,&out_result,cSegChar);for(i=
+(0x18f3+2071-0x210a);i<count;i++){if(ptDbSaveData->concat_info[
+(0x17cd+145-0x185c)]==i+(0x14a8+226-0x1589)){out_result[i]=(char*)malloc(
+SHORT_INT_LEN);memset(out_result[i],(0xd6f+2867-0x18a2),SHORT_INT_LEN);snprintf(
+out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->concat_info[
+(0xb0f+3075-0x1710)]);break;}}for(i=(0x18d+132-0x211);i<count;i++){snprintf(pac
+->FormatSeq+strlen(pac->FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq)
+,"\x25\x73",out_result[i]);if(i!=count-(0x57+4882-0x1368)){snprintf(pac->
+FormatSeq+strlen(pac->FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),
+"\x3b");}if((0x158b+3595-0x2396)!=strcmp(out_result[i],"")){iTotalSegNum++;}}*
pConcatTotalNum=iTotalSegNum;zUfiSms_ConcatDataFree(ptDbSaveData,count,
-out_result);free(out_result);out_result=NULL;return(0x2dc+192-0x39c);}int
+out_result);free(out_result);out_result=NULL;return(0x1603+3929-0x255c);}int
zUfiSms_UpdateConcatSms(T_zUfiSms_DbStoreData*ptDbSaveData,const char*pStorePos,
-long iSmsId){T_zUfiSms_DbStoreStr ac={(0xf6c+2522-0x1946)};char*pOldContent=NULL
+long iSmsId){T_zUfiSms_DbStoreStr ac={(0xb5b+2834-0x166d)};char*pOldContent=NULL
;char*pFormatNewContent=NULL;char*pRealNewContent=NULL;int iTotalNum=
-(0x253b+388-0x26bf);int result=ZUFI_SUCC;int spaceLen=(0x10b6+468-0x1286)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xff5+2240-0x18b1)
+(0x29b+729-0x574);int result=ZUFI_SUCC;int spaceLen=(0xcac+2929-0x1819)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xd74+5947-0x24ab)
;pOldContent=(char*)malloc(spaceLen);pFormatNewContent=(char*)malloc(spaceLen);
pRealNewContent=(char*)malloc(spaceLen);if(pOldContent==NULL||pFormatNewContent
==NULL||pRealNewContent==NULL){if(pOldContent)free(pOldContent);if(
pFormatNewContent)free(pFormatNewContent);if(pRealNewContent)free(
-pRealNewContent);return ZUFI_FAIL;}memset(pRealNewContent,(0x178a+2574-0x2198),
-spaceLen);memset(pOldContent,(0x29c+6914-0x1d9e),spaceLen);memset(
-pFormatNewContent,(0xbd4+1562-0x11ee),spaceLen);(void)zUfiSms_GetConcatInfo(
+pRealNewContent);return ZUFI_FAIL;}memset(pRealNewContent,(0xab3+482-0xc95),
+spaceLen);memset(pOldContent,(0x246+1077-0x67b),spaceLen);memset(
+pFormatNewContent,(0x27d+8943-0x256c),spaceLen);(void)zUfiSms_GetConcatInfo(
pStorePos,iSmsId,&ac,pOldContent,spaceLen);printf(
"\x5b\x53\x4d\x53\x5d\x20\x74\x65\x65\x74\x20\x2d\x30\x20\x49\x6e\x64\x53\x74\x72\x3a\x25\x73\x2c\x53\x65\x67\x5f\x53\x65\x71\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x49\x6e\x64\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x53\x65\x71\x3a\x25\x73" "\n"
-,ac.IndStr,ac.Seg_Seq,ac.FormatInd,ac.FormatSeq);if(-(0x4f4+93-0x550)==
+,ac.IndStr,ac.Seg_Seq,ac.FormatInd,ac.FormatSeq);if(-(0x511+3834-0x140a)==
zUfiSms_AddNewSmsToConcatData(ptDbSaveData,pOldContent,pFormatNewContent,
pRealNewContent,&ac,&iTotalNum,spaceLen)){result=ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x74\x65\x65\x74\x20\x30\x20\x49\x6e\x64\x53\x74\x72\x3a\x25\x73\x2c\x53\x65\x67\x5f\x53\x65\x71\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x49\x6e\x64\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x53\x65\x71\x3a\x25\x73" "\n"
,ac.IndStr,ac.Seg_Seq,ac.FormatInd,ac.FormatSeq);ptDbSaveData->tp_dcs=
-(0x17c+5352-0x1662);if(ZUFI_FAIL==zUfiSms_UpdateConcatSmsToDb(ptDbSaveData,
+(0x766+2196-0xff8);if(ZUFI_FAIL==zUfiSms_UpdateConcatSmsToDb(ptDbSaveData,
pStorePos,pFormatNewContent,pRealNewContent,&ac,iTotalNum,iSmsId)){result=
ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x74\x65\x65\x74\x20\x31\x20\x49\x6e\x64\x53\x74\x72\x3a\x25\x73\x2c\x53\x65\x67\x5f\x53\x65\x71\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x49\x6e\x64\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x53\x65\x71\x3a\x25\x73" "\n"
@@ -530,33 +528,33 @@
pFormatNewContent=NULL;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x55\x70\x64\x61\x74\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x20\x73\x75\x63\x63\x65\x73\x73\x2e" "\n"
);return result;}int zUfiSms_InsertConcatSms(T_zUfiSms_DbStoreData*ptDbSaveData,
-const char*pStorePos){T_zUfiSms_DbStoreStr ac={(0xc77+1969-0x1428)};int
-iSms_TotalCount=(0x203+4028-0x11bf);int i=(0x57d+5144-0x1995);char acTmpContent[
-(0x16d+8207-0x207c)];int iConcatNum=(0x4ea+4482-0x166c);char*pFormatConcat=NULL;
-char*pContent=NULL;int spaceLen=(0xcc0+3934-0x1c1a)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xbdb+5830-0x229d)
+const char*pStorePos){T_zUfiSms_DbStoreStr ac={(0x4a4+828-0x7e0)};int
+iSms_TotalCount=(0xbd6+3370-0x1900);int i=(0x4b4+8521-0x25fd);char acTmpContent[
+(0x9c4+2312-0x11cc)];int iConcatNum=(0x1a8f+2242-0x2351);char*pFormatConcat=NULL
+;char*pContent=NULL;int spaceLen=(0x707+3314-0x13f5)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xd67+5395-0x2276)
;if(NULL==ptDbSaveData||NULL==pStorePos){return ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x65\x6e\x74\x65\x72\x20\x49\x6e\x73\x65\x72\x74\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x2e" "\n"
-);memset(acTmpContent,(0x14f5+2962-0x2087),sizeof(acTmpContent));iSms_TotalCount
-=ptDbSaveData->concat_info[(0x4d8+1721-0xb90)];for(i=(0x14ba+4205-0x2526);i<
+);memset(acTmpContent,(0x15d3+3393-0x2314),sizeof(acTmpContent));iSms_TotalCount
+=ptDbSaveData->concat_info[(0x1d03+1867-0x244d)];for(i=(0x317+3150-0xf64);i<
iSms_TotalCount;i++){strcat(ac.IndStr,"\x3b");strcat(ac.Seg_Seq,"\x3b");strcat(
acTmpContent,"\x3b");}pFormatConcat=(char*)malloc(spaceLen);if(NULL==
-pFormatConcat){return ZUFI_FAIL;}memset(pFormatConcat,(0xa8d+3356-0x17a9),
+pFormatConcat){return ZUFI_FAIL;}memset(pFormatConcat,(0xbdb+3932-0x1b37),
spaceLen);pContent=(char*)malloc(spaceLen);if(pContent==NULL){free(pFormatConcat
-);return ZUFI_FAIL;}memset(pContent,(0x854+6613-0x2229),spaceLen);if(-
-(0x77f+5886-0x1e7c)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
+);return ZUFI_FAIL;}memset(pContent,(0x40a+5348-0x18ee),spaceLen);if(-
+(0x9a5+5590-0x1f7a)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
pFormatConcat,pContent,&ac,&iConcatNum,spaceLen)){free(pFormatConcat);free(
pContent);pFormatConcat=NULL;pContent=NULL;return ZUFI_FAIL;}ptDbSaveData->
-tp_dcs=(0x1f4a+514-0x214a);if(ZUFI_FAIL==zUfiSms_InsertConcatSmsToDb(
+tp_dcs=(0x640+4018-0x15f0);if(ZUFI_FAIL==zUfiSms_InsertConcatSmsToDb(
ptDbSaveData,pStorePos,pFormatConcat,pContent,&ac,iConcatNum)){free(
pFormatConcat);free(pContent);pFormatConcat=NULL;pContent=NULL;return ZUFI_FAIL;
}free(pFormatConcat);free(pContent);pFormatConcat=NULL;pContent=NULL;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x49\x6e\x73\x65\x72\x74\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x20\x73\x75\x63\x63\x65\x73\x73\x2e" "\n"
);return ZUFI_SUCC;}int zUfiSms_StoreConcatSmsToDb(T_zUfiSms_DbStoreData*
-ptDbSaveData,char*pMemStore){long iSmsId=(0x1896+77-0x18e3);int total_count=
-(0x1bb+2481-0xb6c);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
+ptDbSaveData,char*pMemStore){long iSmsId=(0x15e6+2719-0x2085);int total_count=
+(0xfca+3336-0x1cd2);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
iSmsId=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,pMemStore);if(-
-(0xe16+6346-0x26df)!=iSmsId){printf(
+(0xff7+5487-0x2565)!=iSmsId){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x74\x6f\x72\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x54\x6f\x44\x62\x20\x45\x6e\x74\x65\x72\x20\x55\x70\x64\x61\x74\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x20\x53\x6d\x73\x49\x64\x3a\x25\x64\x2e" "\n"
,iSmsId);return zUfiSms_UpdateConcatSms(ptDbSaveData,pMemStore,iSmsId);}else{if(
ZUFI_FAIL==zUfiSms_GetTotalCount(pMemStore,&total_count)){printf(
@@ -568,103 +566,104 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x74\x6f\x72\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x54\x6f\x44\x62\x20\x53\x6d\x73\x20\x6d\x65\x6d\x6f\x72\x79\x20\x69\x73\x20\x46\x75\x6c\x6c\x2e" "\n"
);return ZUFI_FAIL;}return zUfiSms_InsertConcatSms(ptDbSaveData,pMemStore);}}int
zUfiSms_WriteSmsToDb(T_zUfiSms_DbStoreData*ptDbSaveData,zUfiSms_StoreType
-iMemStore,long iSmsId){char acDbMemStore[(0x170d+1309-0x1c20)];int iTotalCount=
-(0x5a0+5350-0x1a86);int id=(0x13bf+4438-0x2515);UINT8 needCheckMemory=
-(0xf07+2071-0x171d);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(acDbMemStore
-,(0x1473+964-0x1837),sizeof(acDbMemStore));if(WMS_STORAGE_TYPE_UIM_V01==
-iMemStore){strncpy(acDbMemStore,ZTE_WMS_DB_SIM_TABLE,sizeof(acDbMemStore)-
-(0x653+6333-0x1f0f));}else{strncpy(acDbMemStore,ZTE_WMS_DB_NV_TABLE,sizeof(
-acDbMemStore)-(0x6a0+5570-0x1c61));}if((0xba0+5438-0x20dd)==ptDbSaveData->
+iMemStore,long iSmsId){char acDbMemStore[(0xa0c+367-0xb71)];int iTotalCount=
+(0x74b+2848-0x126b);int id=(0x2f8+4282-0x13b2);UINT8 needCheckMemory=
+(0x16d9+48-0x1708);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(acDbMemStore,
+(0xc3d+5019-0x1fd8),sizeof(acDbMemStore));if(WMS_STORAGE_TYPE_UIM_V01==iMemStore
+){strncpy(acDbMemStore,ZTE_WMS_DB_SIM_TABLE,sizeof(acDbMemStore)-
+(0xa14+6454-0x2349));}else{strncpy(acDbMemStore,ZTE_WMS_DB_NV_TABLE,sizeof(
+acDbMemStore)-(0xec8+168-0xf6f));}if((0x496+7922-0x2387)==ptDbSaveData->
concat_sms){id=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,&acDbMemStore);if(-
-(0x19bb+933-0x1d5f)!=id){needCheckMemory=(0x2354+575-0x2593);}}if(
-needCheckMemory==(0x600+3313-0x12f0)){if(ZUFI_FAIL==zUfiSms_GetTotalCount(
+(0x495+5814-0x1b4a)!=id){needCheckMemory=(0x784+3984-0x1714);}}if(
+needCheckMemory==(0x14e0+1378-0x1a41)){if(ZUFI_FAIL==zUfiSms_GetTotalCount(
acDbMemStore,&iTotalCount)){return ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x53\x6d\x73\x54\x6f\x44\x62\x20\x69\x54\x6f\x74\x61\x6c\x43\x6f\x75\x6e\x74\x3d\x25\x64\x28\x6e\x65\x65\x64\x43\x68\x65\x63\x6b\x4d\x65\x6d\x6f\x72\x79\x3d\x3d\x31\x29" "\n"
,iTotalCount);if(iTotalCount>=g_zUfiSms_StoreCapablity[(strcmp(acDbMemStore,
"\x6e\x76")?ZTE_WMS_MEMORY_SIM:ZTE_WMS_MEMORY_NV)]){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x53\x6d\x73\x54\x6f\x44\x62\x20\x6d\x65\x6d\x6f\x72\x79\x20\x66\x75\x6c\x6c\x2c\x20\x65\x72\x72\x6f\x72" "\n"
);return ZTE_WMS_NV_MEMORY_FULL;}}if(ptDbSaveData->concat_info[
-(0x1fa+1354-0x742)]==(0x3ac+432-0x55c)||ptDbSaveData->concat_info[
-(0xf0a+2648-0x1960)]>ptDbSaveData->concat_info[(0x16c5+996-0x1aa8)]){
-ptDbSaveData->concat_sms=(0x308+2691-0xd8b);}printf(
+(0x1c70+618-0x1ed8)]==(0x52f+6829-0x1fdc)||ptDbSaveData->concat_info[
+(0x218c+95-0x21e9)]>ptDbSaveData->concat_info[(0xd1a+2619-0x1754)]){ptDbSaveData
+->concat_sms=(0x698+621-0x905);}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x53\x6d\x73\x54\x6f\x44\x62\x20\x54\x6f\x74\x61\x6c\x43\x6f\x75\x6e\x74\x3a\x25\x64\x2e\x63\x6f\x6e\x63\x61\x74\x5f\x73\x6d\x73\x3a\x25\x64\x2e\x63\x6f\x6e\x63\x61\x74\x5f\x69\x6e\x66\x6f\x5b\x31\x5d\x3a\x25\x64" "\n"
,iTotalCount,ptDbSaveData->concat_sms,ptDbSaveData->concat_info[
-(0x16a4+2620-0x20df)]);if((0x4e0+6927-0x1fee)==ptDbSaveData->concat_sms){if(
-ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0x59d+8124-0x2558)]){
+(0x5f5+3304-0x12dc)]);if((0x80a+5958-0x1f4f)==ptDbSaveData->concat_sms){if(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0x176b+727-0x1a41)]){
return ZUFI_FAIL;}else{return zUfiSms_StoreConcatSmsToDb(ptDbSaveData,
acDbMemStore);}}else{return zUfiSms_StoreNormalSmsToDb(ptDbSaveData,acDbMemStore
,iSmsId);}}T_zUfiSms_CmdStatus zUfiSms_SendOutSms(T_zUfiSms_DbStoreData*
-ptDbSaveData,int cid){int atRes=(0x1336+2238-0x1bf4);if(NULL==ptDbSaveData){
+ptDbSaveData,int cid){int atRes=(0xc9c+4403-0x1dcf);if(NULL==ptDbSaveData){
return WMS_CMD_FAILED;}if(!g_zUfiSms_IsConcatSendSuc){ptDbSaveData->tag=
WMS_TAG_TYPE_MO_NOT_SENT_V01;if(ZUFI_SUCC==zUfiSms_WriteSmsToDb(ptDbSaveData,
-WMS_STORAGE_TYPE_NV_V01,-(0xbaf+3942-0x1b14))){g_zUfiSms_MsgRefer++;ptDbSaveData
-->msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}
-}else{CHAR sendfailRetry[(0x4cb+7081-0x2042)]={(0x1138+5057-0x24f9)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x1665+97-0x16c6)==
-strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x38f+3796-0x1260);}
-atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{
-zSms_RecvCmgsOk();}}return WMS_CMD_SUCCESS;}int zUfiSms_SendConcatSms(int cid){
-int atRes=(0x148+1414-0x6ce);T_zUfiSms_ClientMsg tClientMsg;
-T_zUfiSms_DbStoreData tDbSaveData;int result=ZUFI_FAIL;if(g_zUfiSms_ConcatSms.
-current_sending>=g_zUfiSms_ConcatSms.total_msg){return ZUFI_FAIL;}memset((void*)
-&tClientMsg,(0x1b1b+1175-0x1fb2),sizeof(T_zUfiSms_ClientMsg));memset((void*)&
-tDbSaveData,(0x19eb+991-0x1dca),sizeof(tDbSaveData));zUfiSms_SetPduData(&
-tClientMsg,&tDbSaveData);if(!g_zUfiSms_IsConcatSendSuc){tDbSaveData.tag=
+WMS_STORAGE_TYPE_NV_V01,-(0x1577+3858-0x2488))){g_zUfiSms_MsgRefer++;
+ptDbSaveData->msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(
+g_zUfiSms_MsgRefer);}}else{CHAR sendfailRetry[(0x14d2+1813-0x1bb5)]={
+(0xdf6+3784-0x1cbe)};sc_cfg_get(NV_SENDFAIL_RETRY,sendfailRetry,sizeof(
+sendfailRetry));if((0x11af+3363-0x1ed2)==strcmp("\x31",sendfailRetry)){
+g_zUfiSms_SendFailedRetry=(0x8a2+2129-0x10f0);}atRes=zSms_SendCmgsReq();if(atRes
+!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{zSms_RecvCmgsOk();}}return
+WMS_CMD_SUCCESS;}int zUfiSms_SendConcatSms(int cid){int atRes=
+(0x637+4542-0x17f5);T_zUfiSms_ClientMsg tClientMsg;T_zUfiSms_DbStoreData
+tDbSaveData;int result=ZUFI_FAIL;if(g_zUfiSms_ConcatSms.current_sending>=
+g_zUfiSms_ConcatSms.total_msg){return ZUFI_FAIL;}memset((void*)&tClientMsg,
+(0x740+2280-0x1028),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,
+(0x15c+2211-0x9ff),sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&
+tDbSaveData);if(!g_zUfiSms_IsConcatSendSuc){tDbSaveData.tag=
WMS_TAG_TYPE_MO_NOT_SENT_V01;(void)zUfiSms_WriteSmsToDb(&tDbSaveData,
-WMS_STORAGE_TYPE_NV_V01,-(0x1630+544-0x184f));g_zUfiSms_SendFailedCount++;}else{
-CHAR sendfailRetry[(0x491+6402-0x1d61)]={(0x756+496-0x946)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x1218+2239-0x1ad7)==
-strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x38f+5860-0x1a70);}
+WMS_STORAGE_TYPE_NV_V01,-(0x1caa+1589-0x22de));g_zUfiSms_SendFailedCount++;}else
+{CHAR sendfailRetry[(0xca6+6595-0x2637)]={(0x13fd+3177-0x2066)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x463+8737-0x2684)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x331+5051-0x16e9);}
atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{
zSms_RecvCmgsOk();}}g_zUfiSms_ConcatSms.current_sending++;if(g_zUfiSms_ConcatSms
.current_sending<g_zUfiSms_ConcatSms.total_msg){if(g_zUfiSms_ConcatSms.sms_len<
-g_zUfiSms_UnitLen*(g_zUfiSms_ConcatSms.current_sending+(0xe24+577-0x1064))){
+g_zUfiSms_UnitLen*(g_zUfiSms_ConcatSms.current_sending+(0xc73+5278-0x2110))){
g_zUfiSms_UnitLen=g_zUfiSms_ConcatSms.sms_len-g_zUfiSms_UnitLen*
g_zUfiSms_ConcatSms.current_sending;}}if(g_zUfiSms_ConcatSms.current_sending==
g_zUfiSms_ConcatSms.total_msg&&!g_zUfiSms_IsConcatSendSuc){T_zUfiSms_StatusInfo
-tSendStatus;memset((void*)&tSendStatus,(0x8f2+5043-0x1ca5),sizeof(
+tSendStatus;memset((void*)&tSendStatus,(0x1ab2+1519-0x20a1),sizeof(
T_zUfiSms_StatusInfo));tSendStatus.err_code=ZTE_SMS_CMS_NONE;tSendStatus.
send_failed_count=g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=
-(0x1d30+348-0x1e8c);tSendStatus.cmd_status=WMS_CMD_FAILED;tSendStatus.cmd=
+(0x78d+7095-0x2344);tSendStatus.cmd_status=WMS_CMD_FAILED;tSendStatus.cmd=
WMS_SMS_CMD_MSG_SEND;(void)zUfiSms_SetCmdStatus(&tSendStatus);sc_cfg_set(
NV_SMS_SEND_RESULT,"\x66\x61\x69\x6c");sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");
return ZUFI_FAIL;}if(!g_zUfiSms_IsConcatSendSuc){zUfiSms_SendConcatSms(cid);}
-return result;}int zSvr_sendCmgs(VOID){int atRes=(0x15a3+4249-0x263c);int i=
-(0xf91+5015-0x2328);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR
-sendfailRetry[(0x1d03+2087-0x24f8)]={(0x3ba+2226-0xc6c)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0xbfa+6606-0x25c8)==
-strcmp("\x31",sendfailRetry)){for(i=(0x9a+8532-0x21ee);i<SMS_RETRY_COUNT;i++){
+return result;}int zSvr_sendCmgs(VOID){int atRes=(0x19cf+2658-0x2431);int i=
+(0x10ac+748-0x1398);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR
+sendfailRetry[(0xfc0+1264-0x147e)]={(0x1a98+817-0x1dc9)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x656+7859-0x2509)==
+strcmp("\x31",sendfailRetry)){for(i=(0x13b0+2824-0x1eb8);i<SMS_RETRY_COUNT;i++){
atRes=zSms_SendCmgsReq();if(atRes==ZSMS_RESULT_OK){break;}}}}return atRes;}
T_zUfiSms_CmdStatus zUfiSms_SendSms(VOID){T_zUfiSms_ClientMsg tClientMsg;
-T_zUfiSms_DbStoreData tDbSaveData;int res=(0x2bd+6010-0x1a37);if(-
-(0x28b+229-0x36f)==g_zUfiSms_UnitLen){printf(
+T_zUfiSms_DbStoreData tDbSaveData;int res=(0xc3b+4746-0x1ec5);if(-
+(0x9b1+7480-0x26e8)==g_zUfiSms_UnitLen){printf(
"\x5b\x53\x4d\x53\x5d\x20\x21\x21\x21\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x53\x6d\x73\x3a\x20\x4e\x6f\x20\x63\x6f\x6e\x74\x65\x6e\x74\x21\x2e" "\n"
);return WMS_CMD_FAILED;}while(g_zUfiSms_ConcatSms.current_sending<
-g_zUfiSms_ConcatSms.total_msg){memset((void*)&tClientMsg,(0x1a6f+463-0x1c3e),
-sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x125+6733-0x1b72),
+g_zUfiSms_ConcatSms.total_msg){memset((void*)&tClientMsg,(0x582+1527-0xb79),
+sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x55b+3362-0x127d),
sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&tDbSaveData);if(!
g_zUfiSms_IsConcatSendSuc){tDbSaveData.tag=WMS_TAG_TYPE_MO_NOT_SENT_V01;(void)
-zUfiSms_WriteSmsToDb(&tDbSaveData,WMS_STORAGE_TYPE_NV_V01,-(0x30b+9076-0x267e));
+zUfiSms_WriteSmsToDb(&tDbSaveData,WMS_STORAGE_TYPE_NV_V01,-(0xda6+4354-0x1ea7));
g_zUfiSms_SendFailedCount++;}else{res=zSvr_sendCmgs();if(res!=ZSMS_RESULT_OK){
zSms_RecvCmgsErr();}else{zSms_RecvCmgsOk();}}g_zUfiSms_ConcatSms.current_sending
++;if(g_zUfiSms_ConcatSms.current_sending<g_zUfiSms_ConcatSms.total_msg){if(
g_zUfiSms_ConcatSms.sms_len<g_zUfiSms_UnitLen*(g_zUfiSms_ConcatSms.
-current_sending+(0xc4f+5255-0x20d5))){g_zUfiSms_UnitLen=g_zUfiSms_ConcatSms.
+current_sending+(0x138d+132-0x1410))){g_zUfiSms_UnitLen=g_zUfiSms_ConcatSms.
sms_len-g_zUfiSms_UnitLen*g_zUfiSms_ConcatSms.current_sending;}}if(
g_zUfiSms_ConcatSms.current_sending==g_zUfiSms_ConcatSms.total_msg&&!
g_zUfiSms_IsConcatSendSuc){T_zUfiSms_StatusInfo tSendStatus;memset((void*)&
-tSendStatus,(0x889+1798-0xf8f),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
+tSendStatus,(0x6bc+1299-0xbcf),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
err_code=ZTE_SMS_CMS_NONE;tSendStatus.send_failed_count=
-g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0xef3+3111-0x1b1a);
+g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0x708+6245-0x1f6d);
tSendStatus.cmd_status=WMS_CMD_FAILED;tSendStatus.cmd=WMS_SMS_CMD_MSG_SEND;(void
)zUfiSms_SetCmdStatus(&tSendStatus);sc_cfg_set(NV_SMS_SEND_RESULT,
"\x66\x61\x69\x6c");sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");}}
-#if (0x920+2634-0x136a)
-if(g_zUfiSms_ConcatSms.total_msg>(0xa6+6101-0x187a)){printf(
+#if (0xbba+384-0xd3a)
+if(g_zUfiSms_ConcatSms.total_msg>(0x1160+1446-0x1705)){printf(
"\x3d\x3d\x3d\x3d\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x2e" "\n"
);zUfiSms_SendConcatSms(cid);}else{memset((void*)&tClientMsg,
-(0x1767+2445-0x20f4),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,
-(0x8d7+4254-0x1975),sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&
+(0x1802+3381-0x2537),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,
+(0x9ef+2970-0x1589),sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&
tDbSaveData);printf(
"\x3d\x3d\x3d\x3d\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x6e\x6f\x72\x61\x6d\x6c\x53\x6d\x73\x2e" "\n"
);if(WMS_CMD_FAILED==zUfiSms_SendOutSms(&tDbSaveData,cid)){printf(
@@ -672,80 +671,80 @@
);g_zUfiSms_SendFailedCount++;return WMS_CMD_FAILED;}}
#endif
return WMS_CMD_SUCCESS;}int zUfiSms_FormatDeliverTimestamp(T_zUfiSms_Date tData,
-T_zUfiSms_TimeStamp*ptTimestamp){unsigned char tTimeZone[(0x188f+2442-0x2214)]={
-(0x115a+4051-0x212d)};int tmp_i=(0x1627+523-0x1832);memset(ptTimestamp,
-(0x1316+2566-0x1d1c),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
-(0x70+5390-0x157d)){ptTimestamp->year=zUfiSms_atohex(
-((char)(0x1558+2693-0x1fad)))*(0x1600+3704-0x2468)+zUfiSms_atohex(tData.year[
-(0x16c9+1561-0x1ce2)]);}else if(strlen(tData.year)==(0xb09+681-0xdb0)){
-ptTimestamp->year=zUfiSms_atohex(tData.year[(0xc0+8822-0x2336)])*
-(0x1d9+4203-0x1234)+zUfiSms_atohex(tData.year[(0x1c52+254-0x1d4f)]);}else if(
-strlen(tData.year)==(0x9d+9518-0x25c7)){ptTimestamp->year=zUfiSms_atohex(tData.
-year[(0x16d9+2142-0x1f35)])*(0x1ba8+725-0x1e6d)+zUfiSms_atohex(tData.year[
-(0xe46+3614-0x1c61)]);}else{printf(
+T_zUfiSms_TimeStamp*ptTimestamp){unsigned char tTimeZone[(0x1480+1859-0x1bbe)]={
+(0xf71+1096-0x13b9)};int tmp_i=(0xcd0+1913-0x1449);memset(ptTimestamp,
+(0x2b3+1147-0x72e),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
+(0x6b+6574-0x1a18)){ptTimestamp->year=zUfiSms_atohex(
+((char)(0x18a2+2259-0x2145)))*(0x97d+1931-0x10f8)+zUfiSms_atohex(tData.year[
+(0x757+7437-0x2464)]);}else if(strlen(tData.year)==(0x1175+676-0x1417)){
+ptTimestamp->year=zUfiSms_atohex(tData.year[(0xddd+2476-0x1789)])*
+(0xd46+3090-0x1948)+zUfiSms_atohex(tData.year[(0x9b2+2267-0x128c)]);}else if(
+strlen(tData.year)==(0x1605+223-0x16e0)){ptTimestamp->year=zUfiSms_atohex(tData.
+year[(0xa36+5744-0x20a4)])*(0x22f9+279-0x2400)+zUfiSms_atohex(tData.year[
+(0x102c+4348-0x2125)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x79\x65\x61\x72\x2e");return ZUFI_FAIL;}if(
-strlen(tData.month)==(0x165d+1912-0x1dd4)){ptTimestamp->month=zUfiSms_atohex(
-((char)(0x11a+7482-0x1e24)))*(0x214+5411-0x1727)+zUfiSms_atohex(tData.month[
-(0x922+6269-0x219f)]);}else if(strlen(tData.month)==(0x5ad+112-0x61b)){
-ptTimestamp->month=zUfiSms_atohex(tData.month[(0x1b+1555-0x62e)])*
-(0x128+1321-0x641)+zUfiSms_atohex(tData.month[(0x13b3+3833-0x22ab)]);}else{
+strlen(tData.month)==(0x2a2+7773-0x20fe)){ptTimestamp->month=zUfiSms_atohex(
+((char)(0x2b0+7962-0x219a)))*(0x306+7553-0x2077)+zUfiSms_atohex(tData.month[
+(0x1db1+1805-0x24be)]);}else if(strlen(tData.month)==(0x79b+2564-0x119d)){
+ptTimestamp->month=zUfiSms_atohex(tData.month[(0x2fa+7341-0x1fa7)])*
+(0x11c1+2322-0x1ac3)+zUfiSms_atohex(tData.month[(0xaa1+6841-0x2559)]);}else{
printf("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.day)
-==(0x14d6+1898-0x1c3f)){ptTimestamp->day=zUfiSms_atohex(
-((char)(0x8cb+3115-0x14c6)))*(0x16cf+2346-0x1fe9)+zUfiSms_atohex(tData.day[
-(0xec0+494-0x10ae)]);}else if(strlen(tData.day)==(0x984+3978-0x190c)){
-ptTimestamp->day=zUfiSms_atohex(tData.day[(0x1200+5175-0x2637)])*
-(0x32b+6320-0x1bcb)+zUfiSms_atohex(tData.day[(0x348+5785-0x19e0)]);}else{printf(
+==(0x14fc+2831-0x200a)){ptTimestamp->day=zUfiSms_atohex(
+((char)(0x1198+5502-0x26e6)))*(0x12d+321-0x25e)+zUfiSms_atohex(tData.day[
+(0xdc5+3343-0x1ad4)]);}else if(strlen(tData.day)==(0x264+4346-0x135c)){
+ptTimestamp->day=zUfiSms_atohex(tData.day[(0x1770+1599-0x1daf)])*
+(0x232+216-0x2fa)+zUfiSms_atohex(tData.day[(0xc8c+6496-0x25eb)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.hour)==
-(0x2a3+5138-0x16b4)){ptTimestamp->hour=zUfiSms_atohex(((char)(0xad6+1048-0xebe))
-)*(0x4ed+4996-0x1861)+zUfiSms_atohex(tData.hour[(0x2bf+7009-0x1e20)]);}else if(
-strlen(tData.hour)==(0xa86+4679-0x1ccb)){ptTimestamp->hour=zUfiSms_atohex(tData.
-hour[(0x1f7c+1328-0x24ac)])*(0xae9+6702-0x2507)+zUfiSms_atohex(tData.hour[
-(0x11f0+476-0x13cb)]);}else{printf(
-"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x68\x6f\x75\x72\x2e");}if(strlen(tData.min)==
-(0x474+2649-0xecc)){ptTimestamp->minute=zUfiSms_atohex(((char)(0x2e3+135-0x33a))
-)*(0xc13+4343-0x1cfa)+zUfiSms_atohex(tData.min[(0x22ec+944-0x269c)]);}else if(
-strlen(tData.min)==(0x2499+540-0x26b3)){ptTimestamp->minute=zUfiSms_atohex(tData
-.min[(0x3ff+3758-0x12ad)])*(0x215+7145-0x1dee)+zUfiSms_atohex(tData.min[
-(0xfb5+2242-0x1876)]);}else{printf(
-"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x6d\x69\x6e\x75\x74\x65\x2e");}if(strlen(tData
-.sec)==(0x94+4204-0x10ff)){ptTimestamp->second=zUfiSms_atohex(
-((char)(0x4b6+1927-0xc0d)))*(0x19a6+3154-0x25e8)+zUfiSms_atohex(tData.sec[
-(0x769+4225-0x17ea)]);}else if(strlen(tData.sec)==(0x485+3367-0x11aa)){
-ptTimestamp->second=zUfiSms_atohex(tData.sec[(0x2003+1389-0x2570)])*
-(0x551+2807-0x1038)+zUfiSms_atohex(tData.sec[(0xa18+4883-0x1d2a)]);}else{printf(
+(0xbfd+2186-0x1486)){ptTimestamp->hour=zUfiSms_atohex(
+((char)(0x1525+4399-0x2624)))*(0x12c+848-0x46c)+zUfiSms_atohex(tData.hour[
+(0x449+7716-0x226d)]);}else if(strlen(tData.hour)==(0x1430+2302-0x1d2c)){
+ptTimestamp->hour=zUfiSms_atohex(tData.hour[(0x1409+4532-0x25bd)])*
+(0x689+2410-0xfe3)+zUfiSms_atohex(tData.hour[(0x1347+4156-0x2382)]);}else{printf
+("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x68\x6f\x75\x72\x2e");}if(strlen(tData.min)==
+(0x2d8+1435-0x872)){ptTimestamp->minute=zUfiSms_atohex(
+((char)(0x1423+3891-0x2326)))*(0x36+3327-0xd25)+zUfiSms_atohex(tData.min[
+(0x12d5+4082-0x22c7)]);}else if(strlen(tData.min)==(0x11b2+79-0x11ff)){
+ptTimestamp->minute=zUfiSms_atohex(tData.min[(0x1157+3973-0x20dc)])*
+(0x415+7587-0x21a8)+zUfiSms_atohex(tData.min[(0x1c4b+2385-0x259b)]);}else{printf
+("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x6d\x69\x6e\x75\x74\x65\x2e");}if(strlen(
+tData.sec)==(0x65+521-0x26d)){ptTimestamp->second=zUfiSms_atohex(
+((char)(0x1da9+491-0x1f64)))*(0x333+1976-0xadb)+zUfiSms_atohex(tData.sec[
+(0x2465+235-0x2550)]);}else if(strlen(tData.sec)==(0x1b74+1334-0x20a8)){
+ptTimestamp->second=zUfiSms_atohex(tData.sec[(0xfe6+3046-0x1bcc)])*
+(0x591+6695-0x1fa8)+zUfiSms_atohex(tData.sec[(0xd9c+1166-0x1229)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x73\x65\x63\x6f\x6e\x64\x2e");}tmp_i=atoi(
-tData.timezone);if(tmp_i<INT_MIN+(0x147f+1050-0x1898)||tmp_i>INT_MAX-
-(0x135c+2358-0x1c91)){printf(
+tData.timezone);if(tmp_i<INT_MIN+(0x1757+1373-0x1cb3)||tmp_i>INT_MAX-
+(0x523+3364-0x1246)){printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x74\x44\x61\x74\x61\x20\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x3a\x25\x64\x2e" "\n"
-,tmp_i);return ZUFI_FAIL;}memset(tTimeZone,(0x20a1+439-0x2258),sizeof(tTimeZone)
-);snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0xb6c+6217-0x23b1));if(
-tData.timezone[(0xabf+5606-0x20a5)]==((char)(0x1a71+66-0x1a86))){if(strlen(
-tTimeZone)==(0x892+3265-0x1551)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0x1754+1193-0x1bcd)))*(0x1cd3+2342-0x25e9)+zUfiSms_atohex(tTimeZone[
-(0x61f+6693-0x2043)]);}else if(strlen(tTimeZone)==(0x114d+2112-0x198a)){
-ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x423+3377-0x1153)])*
-(0x705+3456-0x147b)+zUfiSms_atohex(tTimeZone[(0x18e0+410-0x1a78)]);}else{printf(
-"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2d\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}
-ptTimestamp->timezone=(0x1c8f+421-0x1e34)-ptTimestamp->timezone;}else{if(strlen(
-tTimeZone)==(0x163+1591-0x799)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0x3d8+2635-0xdf3)))*(0x1855+2217-0x20ee)+zUfiSms_atohex(tTimeZone[
-(0xa32+2557-0x142f)]);}else if(strlen(tTimeZone)==(0x3f1+4931-0x1732)){
-ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0xe0+7423-0x1ddf)])*
-(0xacf+4311-0x1b9c)+zUfiSms_atohex(tTimeZone[(0xfc2+585-0x120a)]);}else{printf(
-"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2b\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}}
+,tmp_i);return ZUFI_FAIL;}memset(tTimeZone,(0x13c+3710-0xfba),sizeof(tTimeZone))
+;snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0xce0+4450-0x1e3e));if(
+tData.timezone[(0x17ec+1730-0x1eae)]==((char)(0x13a3+733-0x1653))){if(strlen(
+tTimeZone)==(0x29f+7038-0x1e1b)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0x11ab+1918-0x18f9)))*(0x1dd9+1671-0x2450)+zUfiSms_atohex(tTimeZone[
+(0x7af+4646-0x19d4)]);}else if(strlen(tTimeZone)==(0x113c+2424-0x1ab1)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x24f9+86-0x254e)])*
+(0x13f4+2681-0x1e63)+zUfiSms_atohex(tTimeZone[(0x71a+6742-0x216e)]);}else{printf
+("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2d\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}
+ptTimestamp->timezone=(0x7c6+1869-0xf13)-ptTimestamp->timezone;}else{if(strlen(
+tTimeZone)==(0x1a66+3037-0x2642)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0xafb+3090-0x16dd)))*(0x1e21+2105-0x264a)+zUfiSms_atohex(tTimeZone[
+(0x910+5830-0x1fd6)]);}else if(strlen(tTimeZone)==(0x1403+4421-0x2546)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x730+1665-0xdb1)])*
+(0x189d+1288-0x1d9b)+zUfiSms_atohex(tTimeZone[(0x112+6883-0x1bf4)]);}else{printf
+("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2b\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}}
return ZUFI_SUCC;}void zUfiSms_FillDeliver(T_zUfiSms_DeliverPdu*deliver,
T_zUfiSms_ConcatInfo*concat_sms,T_zUfiSms_DbStoreData*ptDbSaveData){static
-UINT16 msg_ref=(0x1fcc+1398-0x2542);deliver->user_data_header_present=TRUE;if(
-(0x20ba+301-0x21e7)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference++
+UINT16 msg_ref=(0x1bd0+2657-0x2631);deliver->user_data_header_present=TRUE;if(
+(0x34b+5877-0x1a40)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference++
;(void)zUfiSms_SetConcatMaxRefer(g_zUfiSms_ConcatSmsReference);}deliver->
-user_data_header_present=TRUE;deliver->user_data.num_headers=(0x1cda+991-0x20b8)
-;deliver->user_data.headers[(0x1c88+765-0x1f85)].header_id=WMS_UDH_CONCAT_8;
-deliver->user_data.headers[(0x1ea3+545-0x20c4)].u.concat_8.msg_ref=msg_ref;
-deliver->user_data.headers[(0x561+5603-0x1b44)].u.concat_8.total_sm=concat_sms->
-total_msg;deliver->user_data.headers[(0x12f2+2214-0x1b98)].u.concat_8.seq_num=
-concat_sms->current_sending+(0x1392+398-0x151f);ptDbSaveData->concat_sms=
-(0xb98+6847-0x2656);ptDbSaveData->concat_info[(0x610+2409-0xf79)]=msg_ref;}void
-zUfiSms_FillDeliverPdu(T_zUfiSms_DeliverPdu*ptDeliver,T_zUfiSms_ConcatInfo*
+user_data_header_present=TRUE;deliver->user_data.num_headers=(0x94d+1410-0xece);
+deliver->user_data.headers[(0xad9+84-0xb2d)].header_id=WMS_UDH_CONCAT_8;deliver
+->user_data.headers[(0x78c+4579-0x196f)].u.concat_8.msg_ref=msg_ref;deliver->
+user_data.headers[(0x1686+1608-0x1cce)].u.concat_8.total_sm=concat_sms->
+total_msg;deliver->user_data.headers[(0xc66+6226-0x24b8)].u.concat_8.seq_num=
+concat_sms->current_sending+(0xebc+1368-0x1413);ptDbSaveData->concat_sms=
+(0xa3+7172-0x1ca6);ptDbSaveData->concat_info[(0x1358+1558-0x196e)]=msg_ref;}void
+ zUfiSms_FillDeliverPdu(T_zUfiSms_DeliverPdu*ptDeliver,T_zUfiSms_ConcatInfo*
concat_sms,T_zUfiSms_GroupInfo*group_sms,int iSmsLen,T_zUfiSms_DbStoreData*
ptDbSaveData){if(NULL==concat_sms||NULL==group_sms){return;}ptDeliver->more=
FALSE;ptDeliver->reply_path_present=FALSE;ptDeliver->status_report_enabled=
@@ -753,21 +752,21 @@
dcs.msg_class=WMS_MESSAGE_CLASS_NONE;ptDeliver->dcs.is_compressed=FALSE;if(
g_zUfiSms_Dcs==DCS_ASC){ptDeliver->dcs.alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}
else{ptDeliver->dcs.alphabet=WMS_GW_ALPHABET_UCS2;}if(concat_sms->total_msg>
-(0x2261+1183-0x26ff)){zUfiSms_FillDeliver(ptDeliver,concat_sms,ptDbSaveData);
-ptDbSaveData->concat_sms=(0x20cc+1461-0x2680);ptDbSaveData->concat_info[
-(0x369+4143-0x1396)]=concat_sms->current_sending+(0x2c0+2664-0xd27);ptDbSaveData
-->concat_info[(0x6b9+4295-0x177f)]=concat_sms->total_msg;ptDbSaveData->
-concat_info[(0x942+6663-0x2349)]=ptDeliver->user_data.headers[(0x2a1+1523-0x894)
-].u.concat_8.msg_ref;}else{ptDeliver->user_data_header_present=FALSE;ptDeliver->
-user_data.num_headers=(0x841+3980-0x17cd);}ptDeliver->user_data.sm_len=iSmsLen;
-memcpy(ptDeliver->user_data.sm_data,concat_sms->msg_contents[concat_sms->
+(0x1251+493-0x143d)){zUfiSms_FillDeliver(ptDeliver,concat_sms,ptDbSaveData);
+ptDbSaveData->concat_sms=(0x1157+5530-0x26f0);ptDbSaveData->concat_info[
+(0x81d+4488-0x19a3)]=concat_sms->current_sending+(0x266b+8-0x2672);ptDbSaveData
+->concat_info[(0xce3+220-0xdbe)]=concat_sms->total_msg;ptDbSaveData->concat_info
+[(0x364+65-0x3a5)]=ptDeliver->user_data.headers[(0x4e7+1402-0xa61)].u.concat_8.
+msg_ref;}else{ptDeliver->user_data_header_present=FALSE;ptDeliver->user_data.
+num_headers=(0x45f+10-0x469);}ptDeliver->user_data.sm_len=iSmsLen;memcpy(
+ptDeliver->user_data.sm_data,concat_sms->msg_contents[concat_sms->
current_sending],iSmsLen);if(group_sms->receivers[group_sms->current_receiver][
-(0x7db+2058-0xfe5)]==((char)(0xd52+4538-0x1ee1))){(void)zUfiSms_CharToInt(
-group_sms->receivers[group_sms->current_receiver]+(0x1334+141-0x13c0),strlen(
-group_sms->receivers[group_sms->current_receiver])-(0xfdd+2217-0x1885),ptDeliver
+(0x1a32+2637-0x247f)]==((char)(0x3cf+1441-0x945))){(void)zUfiSms_CharToInt(
+group_sms->receivers[group_sms->current_receiver]+(0xf2f+739-0x1211),strlen(
+group_sms->receivers[group_sms->current_receiver])-(0x9a8+3862-0x18bd),ptDeliver
->address.digits);ptDeliver->address.number_type=WMS_NUMBER_INTERNATIONAL;
ptDeliver->address.number_of_digits=(UINT8)strlen(group_sms->receivers[group_sms
-->current_receiver])-(0x624+3088-0x1233);}else{(void)zUfiSms_CharToInt(group_sms
+->current_receiver])-(0x9e4+7185-0x25f4);}else{(void)zUfiSms_CharToInt(group_sms
->receivers[group_sms->current_receiver],strlen(group_sms->receivers[group_sms->
current_receiver]),ptDeliver->address.digits);ptDeliver->address.number_type=
WMS_NUMBER_UNKNOWN;ptDeliver->address.number_of_digits=(UINT8)strlen(group_sms->
@@ -780,7 +779,7 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x61\x76\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x20\x6d\x65\x6d\x5f\x73\x74\x6f\x72\x65\x3d\x25\x64\x28\x4e\x56\x3d\x3d\x30\x31\x29" "\n"
,ptSaveSms->mem_store);if(ptSaveSms->mem_store==WMS_STORAGE_TYPE_NV_V01){if(
ZUFI_FAIL==zUfiSms_WriteSmsToDb(ptDbSaveData,WMS_STORAGE_TYPE_NV_V01,-
-(0xa82+275-0xb94))){at_print(LOG_ERR,
+(0x115c+1674-0x17e5))){at_print(LOG_ERR,
"\x77\x72\x69\x74\x65\x20\x73\x6d\x73\x20\x74\x6f\x20\x6e\x76\x20\x66\x61\x69\x6c\x65\x64\x2e"
);return WMS_CMD_FAILED;}}else{return WMS_CMD_FAILED;}g_zUfiSms_MsgRefer++;
ptDbSaveData->msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(
@@ -796,19 +795,19 @@
,T_zUfiSms_GroupInfo*ptGroupSms,int iSmsLength){T_zUfiSms_ClientTsData
tClientTsData;T_zUfiSms_ClientMsg tClientMsg;T_zUfiSms_DbStoreData tDbSaveData;
T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;int current_sending=
-(0x74d+4430-0x189b);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
-(0x1367+1788-0x1a62)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
-current_sending=(0x16b2+2869-0x21e7);ptConcatSms->current_sending<ptConcatSms->
+(0xc30+3913-0x1b79);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
+(0x1279+1343-0x17b7)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
+current_sending=(0x1640+2894-0x218e);ptConcatSms->current_sending<ptConcatSms->
total_msg;ptConcatSms->current_sending++){memset((void*)&tClientMsg,
-(0xd41+6411-0x264c),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
-(0x79b+2259-0x106e),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
-(0x1df6+1120-0x2256),sizeof(T_zUfiSms_DbStoreData));tClientMsg.msg_hdr.mem_store
-=(ptSaveSms->mem_store==WMS_STORAGE_TYPE_UIM_V01)?WMS_STORAGE_TYPE_UIM_V01:
+(0x1dd7+993-0x21b8),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
+(0x5a7+7812-0x242b),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
+(0x254a+166-0x25f0),sizeof(T_zUfiSms_DbStoreData));tClientMsg.msg_hdr.mem_store=
+(ptSaveSms->mem_store==WMS_STORAGE_TYPE_UIM_V01)?WMS_STORAGE_TYPE_UIM_V01:
WMS_STORAGE_TYPE_NV_V01;tClientMsg.msg_hdr.tag=(T_zUfiSms_SmsTag)ptSaveSms->tags
;tClientMsg.msg_hdr.message_mode=WMS_MESSAGE_MODE_GW;tClientMsg.u.gw_message.
is_broadcast=FALSE;tClientTsData.format=WMS_FORMAT_GW_PP;switch(ptSaveSms->tags)
{case WMS_TAG_TYPE_MO_SENT_V01:case WMS_TAG_TYPE_MO_NOT_SENT_V01:case
-(0x1624+3020-0x21ec):{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)
+(0x21c+4740-0x149c):{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)
zUfiSms_FillSubmitTpdu(ptConcatSms,ptGroupSms,iSmsLength,&tClientTsData.u.gw_pp.
u.submit,&tDbSaveData);break;}case WMS_TAG_TYPE_MT_READ_V01:case
WMS_TAG_TYPE_MT_NOT_READ_V01:{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_DELIVER;(
@@ -820,42 +819,42 @@
zUfiSms_FillSca(&tClientMsg);zUfiSms_FillDbSaveData(&tClientMsg,&tClientTsData,
ptConcatSms,ptGroupSms,iSmsLength,&tDbSaveData);strncpy(tDbSaveData.
draft_group_id,ptSaveSms->draft_group_id,sizeof(tDbSaveData.draft_group_id)-
-(0x738+6865-0x2208));if(TRUE==g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){result=
+(0xd1c+5183-0x215a));if(TRUE==g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){result=
WMS_CMD_FAILED;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x61\x76\x65\x53\x6d\x73\x54\x6f\x44\x62\x20\x4e\x56\x20\x6d\x65\x6d\x6f\x72\x79\x20\x69\x73\x20\x66\x75\x6c\x6c\x2c\x73\x61\x76\x65\x20\x65\x72\x72\x6f\x72" "\n"
-);}else{if(tDbSaveData.concat_sms==(0x11eb+2808-0x1ce2)){result=
+);}else{if(tDbSaveData.concat_sms==(0xb1c+5315-0x1fde)){result=
zUfiSms_SaveConcatSms(ptSaveSms,ptConcatSms,ptGroupSms,&tDbSaveData,iSmsLength);
-current_sending=ptConcatSms->current_sending+(0x1f64+561-0x2194);if(ptConcatSms
-->sms_len<iSmsLength*(current_sending+(0x511+1938-0xca2))){iSmsLength=
+current_sending=ptConcatSms->current_sending+(0x369+2365-0xca5);if(ptConcatSms->
+sms_len<iSmsLength*(current_sending+(0x1038+1009-0x1428))){iSmsLength=
ptConcatSms->sms_len-iSmsLength*current_sending;}}else{result=
zUfiSms_SaveNormalSms(ptSaveSms,&tDbSaveData);}}}return result;}int
-zUfiSms_DeleteSmsInSim(){char str_index[(0x18dc+3611-0x2677)]={
-(0x133+3166-0xd91)};int index=(0x83+3304-0xd6b);int is_cc=(0xcdb+1807-0x13ea);
-int iSmsId=(0x23f4+141-0x2481);T_zUfiSms_ModifyTag tDeleteInfo={
-(0xa84+1749-0x1159)};char StrValue[(0x998+3726-0x181c)]={(0x6d3+4721-0x1944)};
-memset(&tDeleteInfo,(0x11d5+1292-0x16e1),sizeof(T_zUfiSms_ModifyTag));iSmsId=
-g_zUfiSms_DelMsg.sim_id[g_zUfiSms_DelMsg.sim_index];if(-(0x1a7c+1112-0x1ed3)==(
-is_cc=zUfiSms_IsConcatSms(iSmsId))){printf(
+zUfiSms_DeleteSmsInSim(){char str_index[(0x11ff+4700-0x23db)]={(0xc4+2905-0xc1d)
+};int index=(0x8b+9812-0x26df);int is_cc=(0xe36+4008-0x1dde);int iSmsId=
+(0x2400+225-0x24e1);T_zUfiSms_ModifyTag tDeleteInfo={(0x175f+2680-0x21d7)};char
+StrValue[(0xefa+1307-0x140b)]={(0x181a+1927-0x1fa1)};memset(&tDeleteInfo,
+(0x50c+6879-0x1feb),sizeof(T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_DelMsg.sim_id[
+g_zUfiSms_DelMsg.sim_index];if(-(0x94f+4648-0x1b76)==(is_cc=zUfiSms_IsConcatSms(
+iSmsId))){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x6d\x73\x49\x6e\x53\x69\x6d\x20\x63\x68\x65\x63\x6b\x20\x63\x6f\x6e\x63\x61\x74\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
);return ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x6d\x73\x49\x6e\x53\x69\x6d\x20\x69\x73\x5f\x63\x63\x3a\x25\x64\x2c\x20\x69\x64\x3d\x25\x64" "\n"
-,is_cc,iSmsId);if((0xcfa+5591-0x22d0)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(
+,is_cc,iSmsId);if((0x1406+83-0x1458)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(
iSmsId,&tDeleteInfo,is_cc)){return ZUFI_FAIL;}g_zUfiSms_DelMsg.sim_index++;
g_zUfiSms_DelMsg.sim_index_count--;while(tDeleteInfo.num_of_indices>
-(0x1c95+247-0x1d8c)){index=tDeleteInfo.indices[tDeleteInfo.id_index];
-g_deleteIndex.index[g_deleteIndex.total]=index;g_deleteIndex.total++;tDeleteInfo
-.id_index++;tDeleteInfo.num_of_indices--;}}else{memset(str_index,
-(0x889+939-0xc34),sizeof(str_index));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
-"\x69\x6e\x64",str_index,sizeof(str_index),iSmsId)){at_print(LOG_ERR,
+(0x5c+2476-0xa08)){index=tDeleteInfo.indices[tDeleteInfo.id_index];g_deleteIndex
+.index[g_deleteIndex.total]=index;g_deleteIndex.total++;tDeleteInfo.id_index++;
+tDeleteInfo.num_of_indices--;}}else{memset(str_index,(0x65f+3733-0x14f4),sizeof(
+str_index));if(ZUFI_FAIL==zUfiSms_GetStorePosById("\x69\x6e\x64",str_index,
+sizeof(str_index),iSmsId)){at_print(LOG_ERR,
"\x67\x65\x74\x20\x69\x6e\x64\x65\x78\x20\x66\x72\x6f\x6d\x20\x64\x62\x20\x66\x61\x69\x6c\x64\x2e"
);return ZUFI_FAIL;}index=atoi(str_index);g_deleteIndex.index[g_deleteIndex.
total]=index;g_deleteIndex.total++;g_zUfiSms_DelMsg.sim_index++;g_zUfiSms_DelMsg
.sim_index_count--;}(void)zUfiSms_DeleteSmsInDb();return ZUFI_SUCC;}
-T_zUfiSms_CmdStatus zUfiSms_DeleteSimSms(VOID){int atRes=(0x118f+3998-0x212d);
-char StrValue[(0x75c+2170-0xfcc)]={(0xd24+5184-0x2164)};zUfiSms_SetSmsLocation(
-SMS_LOCATION_SIM);memset(&g_deleteIndex,(0x1b8b+1928-0x2313),sizeof(
+T_zUfiSms_CmdStatus zUfiSms_DeleteSimSms(VOID){int atRes=(0xb34+6970-0x266e);
+char StrValue[(0x635+266-0x735)]={(0x5df+7433-0x22e8)};zUfiSms_SetSmsLocation(
+SMS_LOCATION_SIM);memset(&g_deleteIndex,(0x758+3068-0x1354),sizeof(
T_zUfiSms_DelIndexInfo));while(g_zUfiSms_DelMsg.sim_index_count>
-(0x95b+4836-0x1c3f)){if(ZUFI_FAIL==zUfiSms_DeleteSmsInSim()){printf(
+(0x4ab+4771-0x174e)){if(ZUFI_FAIL==zUfiSms_DeleteSmsInSim()){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x69\x6d\x53\x6d\x73\x20\x64\x65\x6c\x65\x74\x65\x20\x61\x6c\x6c\x3a\x25\x64\x20\x73\x6d\x73\x20\x66\x61\x69\x6c\x65\x64" "\n"
,WMS_STORAGE_TYPE_UIM_V01);return WMS_CMD_FAILED;}}while(g_deleteIndex.cur_index
<g_deleteIndex.total){atRes=zSms_SendCmgdReq(g_deleteIndex.index[g_deleteIndex.
@@ -864,69 +863,70 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x69\x6d\x53\x6d\x73\x20\x73\x75\x63\x63\x65\x73\x73" "\n"
);return WMS_CMD_SUCCESS;}void zUfiSms_GetReportStatus(char*pdu_tmp,int*stat){
unsigned char tmp;unsigned char first_octet;if(pdu_tmp==NULL){return;}(void)
-String2Bytes(pdu_tmp,&tmp,(0x81+8292-0x20e3));if(tmp==(0x1327+3611-0x2142)){
-pdu_tmp+=(0xf6f+578-0x11af);}else{tmp=(tmp+(0x1ab9+2941-0x2635))*
-(0x135+1050-0x54d);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
-(0x1828+3488-0x25c6));first_octet=tmp;if(first_octet&(0x94b+5511-0x1ed0)){*stat=
-(0x168+4760-0x13fb);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
-T_zUfiSms_TpduType iTpduType;UINT8 mti=(0x53f+458-0x709);mti=(T_zUfiSms_TpduType
-)(pData[(0x26a2+103-0x2709)]&(0xb5b+3509-0x190d));switch(mti){case
-(0x1d69+1538-0x236b):iTpduType=WMS_TPDU_DELIVER;break;case(0x147+3625-0xf6f):
-iTpduType=WMS_TPDU_SUBMIT;break;case(0x1c0b+988-0x1fe5):iTpduType=
+String2Bytes(pdu_tmp,&tmp,(0x58b+3126-0x11bf));if(tmp==(0x18b1+258-0x19b3)){
+pdu_tmp+=(0x35b+1849-0xa92);}else{tmp=(tmp+(0x5fa+3129-0x1232))*
+(0x210+2802-0xd00);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
+(0x1313+1044-0x1725));first_octet=tmp;if(first_octet&(0x99d+2214-0x1241)){*stat=
+(0x21d8+397-0x2360);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
+T_zUfiSms_TpduType iTpduType;UINT8 mti=(0x7f1+1758-0xecf);mti=(
+T_zUfiSms_TpduType)(pData[(0x4ad+5209-0x1906)]&(0x1381+3889-0x22af));switch(mti)
+{case(0x3fd+102-0x463):iTpduType=WMS_TPDU_DELIVER;break;case(0xbec+6028-0x2377):
+iTpduType=WMS_TPDU_SUBMIT;break;case(0x67d+6384-0x1f6b):iTpduType=
WMS_TPDU_STATUS_REPORT;break;default:iTpduType=WMS_TPDU_MAX;break;}return
iTpduType;}static void zUfiSms_FormatDeliverNumber(wms_address_s_type tAddress,
-unsigned char*pNumber){UINT8 number_type=(0x8+9042-0x235a);memset(pNumber,
-(0x777+2940-0x12f3),ZTE_WMS_ADDRESS_LEN_MAX+(0xf53+32-0xf72));if(tAddress.
-number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x1cf+47-0x1fe)]=
-((char)(0x51c+2940-0x106d));pNumber++;}if(tAddress.digit_mode!=
+unsigned char*pNumber){UINT8 number_type=(0x706+692-0x9ba);memset(pNumber,
+(0x3ca+6983-0x1f11),ZTE_WMS_ADDRESS_LEN_MAX+(0x2b+1384-0x592));if(tAddress.
+number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x48b+299-0x5b6)]=
+((char)(0x14e5+3706-0x2334));pNumber++;}if(tAddress.digit_mode!=
WMS_DIGIT_MODE_8_BIT){(void)zUfiSms_SmsiAddrToStr(tAddress,(byte*)pNumber,&
number_type);}else{memcpy(pNumber,tAddress.digits,tAddress.number_of_digits*
-sizeof(tAddress.digits[(0x80a+5668-0x1e2e)]));}}byte*zUfiSms_UtilTimeStamp(
+sizeof(tAddress.digits[(0x1c6b+1717-0x2320)]));}}byte*zUfiSms_UtilTimeStamp(
T_zUfiSms_TimeStamp zte_wms_time,byte*res_ptr,T_zUfiSms_Date*date){UINT8 tmp;if(
-NULL==date){return NULL;}*res_ptr++=((char)(0x169c+2977-0x221b));tmp=
-zte_wms_time.year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x4a1+8796-0x26ee))+((
-tmp>>(0x659+3364-0x1379))*(0x112a+1285-0x1625)),res_ptr);zUfiSms_SprintfTime(
-date->year,sizeof(date->year),zte_wms_time.year);*res_ptr++=
-((char)(0x471+7827-0x22d5));tmp=zte_wms_time.month;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0x1aa7+502-0x1c8e))+((tmp>>(0x5b0+4473-0x1725))*
-(0x1741+2164-0x1fab)),res_ptr);zUfiSms_SprintfTime(date->month,sizeof(date->
-month),zte_wms_time.month);*res_ptr++=((char)(0x268+179-0x2ec));tmp=zte_wms_time
-.day;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x11c4+1808-0x18c5))+((tmp>>
-(0x11e9+2426-0x1b5f))*(0x1823+525-0x1a26)),res_ptr);zUfiSms_SprintfTime(date->
-day,sizeof(date->day),zte_wms_time.day);*res_ptr++=((char)(0x1b94+2419-0x24db));
-tmp=zte_wms_time.hour;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x36a+7544-0x20d3))
-+((tmp>>(0x1132+391-0x12b5))*(0x2124+1314-0x263c)),res_ptr);zUfiSms_SprintfTime(
-date->hour,sizeof(date->hour),zte_wms_time.hour);*res_ptr++=
-((char)(0x1455+2614-0x1e51));tmp=zte_wms_time.minute;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0x2c1+5458-0x1804))+((tmp>>(0xe5+9073-0x2452))*
-(0xbfc+231-0xcd9)),res_ptr);zUfiSms_SprintfTime(date->min,sizeof(date->min),
-zte_wms_time.minute);*res_ptr++=((char)(0x193+700-0x415));tmp=zte_wms_time.
-second;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x585+2345-0xe9f))+((tmp>>
-(0x1f2+233-0x2d7))*(0x907+1532-0xef9)),res_ptr);zUfiSms_SprintfTime(date->sec,
-sizeof(date->sec),zte_wms_time.second);if(zte_wms_time.timezone<
-(0x157+2335-0xa76)){*res_ptr++=((char)(0x693+6952-0x218e));tmp=(UINT8)(
-zte_wms_time.timezone*(-(0xc0+5474-0x1621)));snprintf(date->timezone,sizeof(date
-->timezone),"\x2d\x25\x64",-(0x1d57+654-0x1fe4)*zte_wms_time.timezone);}else{*
-res_ptr++=((char)(0x67c+2391-0xfa8));tmp=(UINT8)zte_wms_time.timezone;snprintf(
-date->timezone,sizeof(date->timezone),"\x2b\x25\x64",zte_wms_time.timezone);}
-res_ptr=zUfiSms_SmsiUtilitoaFill(tmp,res_ptr);*res_ptr++=
-((char)(0x1f6f+1834-0x2677));return res_ptr;}T_zUfiSms_CmdStatus
+NULL==date){return NULL;}*res_ptr++=((char)(0xa61+6164-0x2253));tmp=zte_wms_time
+.year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x2d0+6770-0x1d33))+((tmp>>
+(0x23+9041-0x2370))*(0x14ea+614-0x1746)),res_ptr);zUfiSms_SprintfTime(date->year
+,sizeof(date->year),zte_wms_time.year);*res_ptr++=((char)(0x2b2+4073-0x126c));
+tmp=zte_wms_time.month;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0xd52+6449-0x2674)
+)+((tmp>>(0x1e34+1292-0x233c))*(0x4e8+6202-0x1d18)),res_ptr);zUfiSms_SprintfTime
+(date->month,sizeof(date->month),zte_wms_time.month);*res_ptr++=
+((char)(0xeb8+3288-0x1b61));tmp=zte_wms_time.day;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0x1612+3326-0x2301))+((tmp>>(0x2d+3244-0xcd5))*
+(0x4ef+4286-0x15a3)),res_ptr);zUfiSms_SprintfTime(date->day,sizeof(date->day),
+zte_wms_time.day);*res_ptr++=((char)(0xac2+4180-0x1aea));tmp=zte_wms_time.hour;
+res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x2f0+6213-0x1b26))+((tmp>>
+(0x3fb+5027-0x179a))*(0x177+5316-0x1631)),res_ptr);zUfiSms_SprintfTime(date->
+hour,sizeof(date->hour),zte_wms_time.hour);*res_ptr++=
+((char)(0x1de7+1431-0x2344));tmp=zte_wms_time.minute;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0x786+4224-0x17f7))+((tmp>>(0xa18+5712-0x2064))*
+(0x116a+1583-0x178f)),res_ptr);zUfiSms_SprintfTime(date->min,sizeof(date->min),
+zte_wms_time.minute);*res_ptr++=((char)(0x23fb+366-0x252f));tmp=zte_wms_time.
+second;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x152b+3475-0x22af))+((tmp>>
+(0x1570+975-0x193b))*(0x17b7+1178-0x1c47)),res_ptr);zUfiSms_SprintfTime(date->
+sec,sizeof(date->sec),zte_wms_time.second);if(zte_wms_time.timezone<
+(0x736+3858-0x1648)){*res_ptr++=((char)(0xf3d+5964-0x265c));tmp=(UINT8)(
+zte_wms_time.timezone*(-(0x1214+903-0x159a)));snprintf(date->timezone,sizeof(
+date->timezone),"\x2d\x25\x64",-(0x212a+908-0x24b5)*zte_wms_time.timezone);}else
+{*res_ptr++=((char)(0x1ca+8217-0x21b8));tmp=(UINT8)zte_wms_time.timezone;
+snprintf(date->timezone,sizeof(date->timezone),"\x2b\x25\x64",zte_wms_time.
+timezone);}res_ptr=zUfiSms_SmsiUtilitoaFill(tmp,res_ptr);*res_ptr++=
+((char)(0x13f+53-0x152));return res_ptr;}T_zUfiSms_CmdStatus
zUfiSms_HandleReport(unsigned char*ptPduData){T_zUfiSms_RawTsData tRawTsData;
-T_zUfiSms_ClientTsData tClientTsData;int iReportStatus=(0x5c9+3140-0x120d);
-unsigned char acDeliverNumber[ZTE_WMS_ADDRESS_LEN_MAX+(0x189+4578-0x136a)];
-unsigned char tTpScts[ZTE_WMS_TP_SCTS_LEN_MAX+(0x2aa+7716-0x20cd)];
-T_zUfiSms_Date tSmsDate;char acRecFlag[(0x146+6574-0x1aef)]={(0xd39+2663-0x17a0)
-};int iRpCount=(0x1e9d+1389-0x240a);char tmp[(0x8dc+6529-0x2253)];int tmp_i=
-(0x462+2254-0xd30);unsigned int pos=(0x3ea+3682-0x124c);if(NULL==ptPduData){
-return WMS_CMD_FAILED;}memset(acDeliverNumber,(0x89c+4154-0x18d6),sizeof(
-acDeliverNumber));memset(&tSmsDate,(0x1249+3275-0x1f14),sizeof(T_zUfiSms_Date));
-memset(tTpScts,(0x7b1+6964-0x22e5),sizeof(tTpScts));memset(&tRawTsData,
-(0x15d9+4295-0x26a0),sizeof(T_zUfiSms_RawTsData));memset(&tClientTsData,
-(0x22fb+627-0x256e),sizeof(T_zUfiSms_ClientTsData));snprintf(tmp,sizeof(tmp),
-"\x25\x58",ptPduData[(0x514+8276-0x2568)]);tmp_i=atoi(tmp);if(tmp_i<
-(0x20b7+735-0x2396)||tmp_i>INT_MAX-(0x276+6843-0x1d30)){at_print(LOG_ERR,
+T_zUfiSms_ClientTsData tClientTsData;int iReportStatus=(0x34+8622-0x21e2);
+unsigned char acDeliverNumber[ZTE_WMS_ADDRESS_LEN_MAX+(0x148c+873-0x17f4)];
+unsigned char tTpScts[ZTE_WMS_TP_SCTS_LEN_MAX+(0x15cc+3853-0x24d8)];
+T_zUfiSms_Date tSmsDate;char acRecFlag[(0x1d96+2324-0x26a5)]={
+(0x19da+817-0x1d0b)};int iRpCount=(0x1c72+1197-0x211f);char tmp[
+(0xa6c+5874-0x2154)];int tmp_i=(0x3c8+4672-0x1608);unsigned int pos=
+(0x7e5+6792-0x226d);if(NULL==ptPduData){return WMS_CMD_FAILED;}memset(
+acDeliverNumber,(0x1310+4301-0x23dd),sizeof(acDeliverNumber));memset(&tSmsDate,
+(0x1efb+1771-0x25e6),sizeof(T_zUfiSms_Date));memset(tTpScts,(0x792+3363-0x14b5),
+sizeof(tTpScts));memset(&tRawTsData,(0x97b+7234-0x25bd),sizeof(
+T_zUfiSms_RawTsData));memset(&tClientTsData,(0xf35+1989-0x16fa),sizeof(
+T_zUfiSms_ClientTsData));snprintf(tmp,sizeof(tmp),"\x25\x58",ptPduData[
+(0x2e1+2823-0xde8)]);tmp_i=atoi(tmp);if(tmp_i<(0xfb0+5738-0x261a)||tmp_i>INT_MAX
+-(0x214+8614-0x23b9)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x70\x74\x50\x64\x75\x44\x61\x74\x61\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return WMS_CMD_FAILED;}pos=tmp_i+(0x4c2+4699-0x171c);if(pos>=
+,tmp_i);return WMS_CMD_FAILED;}pos=tmp_i+(0x1e42+1385-0x23aa);if(pos>=
ZSMS_PDU_SIZE){return WMS_CMD_FAILED;}memcpy((void*)tRawTsData.data,(void*)(
ptPduData+pos),sizeof(tRawTsData.data));tRawTsData.tpdu_type=zUfiSms_GetTpduType
(ptPduData+pos);tRawTsData.format=WMS_FORMAT_GW_PP;(void)wms_ts_decode(&
@@ -935,60 +935,60 @@
"\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x67\x77\x2f\x77\x63\x64\x6d\x61\x20\x73\x6d\x73\x20\x72\x65\x70\x6f\x72\x74\x20\x73\x74\x61\x74\x75\x73\x2e"
);return WMS_CMD_FAILED;}switch(tClientTsData.u.gw_pp.u.status_report.tp_status)
{case WMS_TP_STATUS_RECEIVED_OK:case WMS_TP_STATUS_UNABLE_TO_CONFIRM_DELIVERY:
-case WMS_TP_STATUS_REPLACED:{iReportStatus=(0x119+5159-0x153f);break;}case
+case WMS_TP_STATUS_REPLACED:{iReportStatus=(0x11d+868-0x480);break;}case
WMS_TP_STATUS_TRYING_CONGESTION:case WMS_TP_STATUS_TRYING_SME_BUSY:case
WMS_TP_STATUS_TRYING_NO_RESPONSE_FROM_SME:case
WMS_TP_STATUS_TRYING_SERVICE_REJECTED:case
WMS_TP_STATUS_TRYING_QOS_NOT_AVAILABLE:case WMS_TP_STATUS_TRYING_SME_ERROR:{
-iReportStatus=(0xa38+6764-0x24a1);break;}default:{iReportStatus=
-(0x23a+1600-0x878);break;}}zUfiSms_FormatDeliverNumber(tClientTsData.u.gw_pp.u.
+iReportStatus=(0xba5+2022-0x1388);break;}default:{iReportStatus=
+(0xae3+2190-0x136f);break;}}zUfiSms_FormatDeliverNumber(tClientTsData.u.gw_pp.u.
status_report.address,acDeliverNumber);(void)zUfiSms_UtilTimeStamp(tClientTsData
.u.gw_pp.u.status_report.timestamp,tTpScts,&tSmsDate);if(ZUFI_FAIL==
zUfiSms_InsertReportStatusToDb(acDeliverNumber,&tSmsDate,iReportStatus)){
at_print(LOG_ERR,
"\x75\x70\x64\x61\x74\x65\x20\x73\x6d\x73\x20\x72\x65\x70\x6f\x72\x74\x20\x73\x74\x61\x74\x75\x73\x20\x66\x61\x69\x6c\x65\x64\x2e"
-);return WMS_CMD_FAILED;}memset(acRecFlag,(0x4fc+3593-0x1305),sizeof(acRecFlag))
-;sc_cfg_get(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag,sizeof(acRecFlag));iRpCount=
-atoi(acRecFlag);if(iRpCount<(0xa59+6151-0x2260)||iRpCount>INT_MAX-
-(0x2c+6893-0x1b18)){at_print(LOG_ERR,
+);return WMS_CMD_FAILED;}memset(acRecFlag,(0x15bd+1894-0x1d23),sizeof(acRecFlag)
+);sc_cfg_get(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag,sizeof(acRecFlag));iRpCount=
+atoi(acRecFlag);if(iRpCount<(0xe8c+1094-0x12d2)||iRpCount>INT_MAX-
+(0x2a7+4108-0x12b2)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x69\x52\x70\x43\x6f\x75\x6e\x74\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,iRpCount);return WMS_CMD_FAILED;}memset(acRecFlag,(0x823+6402-0x2125),sizeof(
+,iRpCount);return WMS_CMD_FAILED;}memset(acRecFlag,(0xf38+5037-0x22e5),sizeof(
acRecFlag));snprintf(acRecFlag,sizeof(acRecFlag),"\x25\x64",iRpCount+
-(0x1d01+1392-0x2270));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return
+(0xe78+1894-0x15dd));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return
WMS_CMD_SUCCESS;}void zUfiSms_DelModemSms(int in_index){
-#if (0x1c5a+1800-0x2362)
-char StrValue[(0x17f5+2461-0x2188)]={(0x15c3+788-0x18d7)};printf(
+#if (0xf33+5557-0x24e8)
+char StrValue[(0x18ab+2118-0x20e7)]={(0xe9c+5658-0x24b6)};printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x4d\x6f\x64\x65\x6d\x53\x6d\x73\x20\x66\x75\x6e\x20\x75\x73\x65\x64\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21" "\n"
);snat_print(LOG_DEBUGStrValue,sizeof(StrValue),"\x25\x64",in_index);
zSvr_InnerSendMsg(ZUFI_MODULE_ID_AT_LOCAL,ZUFI_MODULE_ID_AT_UNSOLI,
MSG_CMD_AT_DEL_SIM_SMS,strlen(StrValue),StrValue);
#endif
-int atRes=(0x1487+1795-0x1b8a);atRes=zSms_SendCmgdReq(in_index);if(atRes==
+int atRes=(0x461+2479-0xe10);atRes=zSms_SendCmgdReq(in_index);if(atRes==
ZSMS_RESULT_OK){zSms_RecvCmgdOk();}else{zSms_RecvCmgdErr();}zSms_RecvCmgdFinish(
);}VOID zUfiSms_getModifyInfo(T_zUfiSms_ModifyFlag*ptModifyBuff){int i=
-(0x2bb+6582-0x1c71);memset(&g_zUfiSms_modifyMsg,(0x13d2+55-0x1409),sizeof(
-T_zUfiSms_ModifySms));for(i=(0x228f+971-0x265a);i<ptModifyBuff->total_id;i++){
+(0x214f+763-0x244a);memset(&g_zUfiSms_modifyMsg,(0xb08+1679-0x1197),sizeof(
+T_zUfiSms_ModifySms));for(i=(0x1b1+601-0x40a);i<ptModifyBuff->total_id;i++){
g_zUfiSms_modifyMsg.sim_id[g_zUfiSms_modifyMsg.sim_count]=ptModifyBuff->id[i];
g_zUfiSms_modifyMsg.sim_count++;g_zUfiSms_modifyMsg.sim_index_count++;}}int
-zUfiSms_GetUnreadSmsIndexInSim(){char str_index[(0x2f7+1819-0x992)]={
-(0x105a+4019-0x200d)};int index=(0x1c68+1992-0x2430);int is_cc=
-(0x1303+974-0x16d1);int iSmsId=(0x13db+2840-0x1ef3);T_zUfiSms_ModifyTag
-tModifyInfo={(0x1202+2351-0x1b31)};char StrValue[(0x625+100-0x67f)]={
-(0x720+3683-0x1583)};memset(&tModifyInfo,(0x148+8057-0x20c1),sizeof(
+zUfiSms_GetUnreadSmsIndexInSim(){char str_index[(0x622+4905-0x18cb)]={
+(0x6c8+7426-0x23ca)};int index=(0x52b+3291-0x1206);int is_cc=
+(0x1d7c+1718-0x2432);int iSmsId=(0x1aec+1696-0x218c);T_zUfiSms_ModifyTag
+tModifyInfo={(0xa9+523-0x2b4)};char StrValue[(0x1751+261-0x184c)]={
+(0x41c+8732-0x2638)};memset(&tModifyInfo,(0xa48+6225-0x2299),sizeof(
T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_modifyMsg.sim_id[g_zUfiSms_modifyMsg.
-sim_index];if(-(0x40+4487-0x11c6)==(is_cc=zUfiSms_IsConcatSms(iSmsId))){at_print
-(LOG_ERR,
+sim_index];if(-(0x2528+109-0x2594)==(is_cc=zUfiSms_IsConcatSms(iSmsId))){
+at_print(LOG_ERR,
"\x63\x68\x65\x63\x6b\x20\x63\x6f\x6e\x63\x61\x74\x20\x66\x61\x69\x6c\x65\x64\x2e"
);return ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x55\x6e\x72\x65\x61\x64\x53\x6d\x73\x49\x6e\x64\x65\x78\x49\x6e\x53\x69\x6d\x20\x69\x73\x5f\x63\x63\x3a\x25\x64"
-,is_cc);if((0x18+4399-0x1146)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(iSmsId,&
+,is_cc);if((0x321+1200-0x7d0)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(iSmsId,&
tModifyInfo,is_cc)){return ZUFI_FAIL;}g_zUfiSms_modifyMsg.sim_index++;
g_zUfiSms_modifyMsg.sim_index_count--;while(tModifyInfo.num_of_indices>
-(0x131a+4188-0x2376)){index=tModifyInfo.indices[tModifyInfo.id_index];
+(0x319+6917-0x1e1e)){index=tModifyInfo.indices[tModifyInfo.id_index];
g_modifyIndex.index[g_modifyIndex.total]=index;g_modifyIndex.total++;tModifyInfo
.id_index++;tModifyInfo.num_of_indices--;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x55\x6e\x72\x65\x61\x64\x53\x6d\x73\x49\x6e\x64\x65\x78\x49\x6e\x53\x69\x6d\x20\x5b\x31\x20\x3d\x3d\x20\x69\x73\x5f\x63\x63\x5d\x20\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64\x2c\x20\x74\x6f\x74\x61\x6c\x3d\x25\x64" "\n"
-,index,g_modifyIndex.total);}}else{memset(str_index,(0xd6a+2039-0x1561),sizeof(
+,index,g_modifyIndex.total);}}else{memset(str_index,(0x20b9+154-0x2153),sizeof(
str_index));if(ZUFI_FAIL==zUfiSms_GetStorePosById("\x69\x6e\x64",str_index,
sizeof(str_index),iSmsId)){at_print(LOG_ERR,
"\x67\x65\x74\x20\x69\x6e\x64\x65\x78\x20\x66\x72\x6f\x6d\x20\x64\x62\x20\x66\x61\x69\x6c\x64\x2e"
@@ -997,14 +997,14 @@
g_zUfiSms_modifyMsg.sim_index_count--;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x55\x6e\x72\x65\x61\x64\x53\x6d\x73\x49\x6e\x64\x65\x78\x49\x6e\x53\x69\x6d\x20\x5b\x31\x20\x21\x3d\x20\x69\x73\x5f\x63\x63\x5d\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64\x2c\x20\x74\x6f\x74\x61\x6c\x3d\x25\x64" "\n"
,index,g_modifyIndex.total);}return ZUFI_SUCC;}void zUfiSms_ModifyModemSms(
-T_zUfiSms_ModifyFlag*ptModifyBuff){int atRes=(0xac1+2148-0x1325);char StrValue[
-(0x6b+1224-0x529)]={(0x780+1784-0xe78)};printf(
+T_zUfiSms_ModifyFlag*ptModifyBuff){int atRes=(0x95c+1732-0x1020);char StrValue[
+(0xb4f+5648-0x2155)]={(0x1110+941-0x14bd)};printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x4d\x6f\x64\x69\x66\x79\x4d\x6f\x64\x65\x6d\x53\x6d\x73\x20\x70\x74\x4d\x6f\x64\x69\x66\x79\x42\x75\x66\x66\x2d\x3e\x74\x79\x70\x65\x20\x3d\x20\x25\x64\x21" "\n"
,ptModifyBuff->type);{zUfiSms_getModifyInfo(ptModifyBuff);memset(&g_modifyIndex,
-(0x2010+1092-0x2454),sizeof(T_zUfiSms_ModifyIndexInfo));printf(
+(0x17c+5316-0x1640),sizeof(T_zUfiSms_ModifyIndexInfo));printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x4d\x6f\x64\x69\x66\x79\x4d\x6f\x64\x65\x6d\x53\x6d\x73\x20\x70\x74\x4d\x6f\x64\x69\x66\x79\x42\x75\x66\x66\x2d\x3e\x74\x6f\x74\x61\x6c\x5f\x69\x64\x20\x3d\x20\x25\x64\x21" "\n"
,ptModifyBuff->total_id);while(g_zUfiSms_modifyMsg.sim_index_count>
-(0x3e4+4640-0x1604)){if(ZUFI_FAIL==zUfiSms_GetUnreadSmsIndexInSim()){at_print(
+(0x75+6487-0x19cc)){if(ZUFI_FAIL==zUfiSms_GetUnreadSmsIndexInSim()){at_print(
LOG_ERR,
"\x64\x65\x6c\x65\x74\x65\x20\x61\x6c\x6c\x3a\x25\x64\x20\x73\x6d\x73\x20\x66\x61\x69\x6c\x65\x64" "\n"
,WMS_STORAGE_TYPE_UIM_V01);return;}}while(g_modifyIndex.cur_index<g_modifyIndex.
@@ -1023,21 +1023,21 @@
zUfiSms_DecodeSmsData(T_zUfiSms_DbStoreData*pDb_Data,int msg_index,
zUfiSms_StoreType iStorePos,T_SmsStatus bSms_Status,wms_message_format_enum_v01
format,long iPdu_Len,unsigned char*pPdu_Received){T_zUfiSms_RawTsData raw_ts;
-T_zUfiSms_ClientTsData ts_data_ptr;char tmp[(0x1b2a+1726-0x21de)];int tmp_i=
-(0x36a+135-0x3f1);unsigned int pos=(0x1140+2457-0x1ad9);int result=ZUFI_SUCC;if(
-NULL==pDb_Data){return ZUFI_FAIL;}pDb_Data->mem_store=(unsigned long)iStorePos;
-pDb_Data->index=(unsigned short)msg_index;if(RECEIVED_UNREAD==bSms_Status){
-pDb_Data->tag=WMS_TAG_TYPE_MT_NOT_READ_V01;}else if(RECEIVED_READ==bSms_Status){
-pDb_Data->tag=WMS_TAG_TYPE_MT_READ_V01;}else if(STORED_UNSEND==bSms_Status){
-pDb_Data->tag=WMS_TAG_TYPE_MO_NOT_SENT_V01;}else{pDb_Data->tag=
+T_zUfiSms_ClientTsData ts_data_ptr;char tmp[(0x2f+3699-0xe98)];int tmp_i=
+(0xdd6+1489-0x13a7);unsigned int pos=(0x19d2+1913-0x214b);int result=ZUFI_SUCC;
+if(NULL==pDb_Data){return ZUFI_FAIL;}pDb_Data->mem_store=(unsigned long)
+iStorePos;pDb_Data->index=(unsigned short)msg_index;if(RECEIVED_UNREAD==
+bSms_Status){pDb_Data->tag=WMS_TAG_TYPE_MT_NOT_READ_V01;}else if(RECEIVED_READ==
+bSms_Status){pDb_Data->tag=WMS_TAG_TYPE_MT_READ_V01;}else if(STORED_UNSEND==
+bSms_Status){pDb_Data->tag=WMS_TAG_TYPE_MO_NOT_SENT_V01;}else{pDb_Data->tag=
WMS_TAG_TYPE_MO_SENT_V01;}pDb_Data->mode=(unsigned short)format;memset(&raw_ts,
-(0x1045+2552-0x1a3d),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
-(0x1396+281-0x14af),sizeof(wms_client_ts_data_s_type));memset(tmp,
-(0x6ba+7484-0x23f6),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
-pPdu_Received[(0xf0+8625-0x22a1)]);tmp_i=atoi(tmp);if(tmp_i<(0x1bdc+1063-0x2003)
-||tmp_i>INT_MAX-(0x151+6652-0x1b4c)){at_print(LOG_ERR,
+(0x359+5317-0x181e),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
+(0x75c+6283-0x1fe7),sizeof(wms_client_ts_data_s_type));memset(tmp,
+(0x4a5+726-0x77b),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",pPdu_Received
+[(0xbb9+3231-0x1858)]);tmp_i=atoi(tmp);if(tmp_i<(0x8f1+3254-0x15a7)||tmp_i>
+INT_MAX-(0x2315+92-0x2370)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x70\x50\x64\x75\x5f\x52\x65\x63\x65\x69\x76\x65\x64\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return ZUFI_FAIL;}pos=tmp_i+(0x5db+1098-0xa24);if(pos>=iPdu_Len){return
+,tmp_i);return ZUFI_FAIL;}pos=tmp_i+(0xb3+8206-0x20c0);if(pos>=iPdu_Len){return
ZUFI_FAIL;}raw_ts.len=iPdu_Len-pos;memcpy((void*)raw_ts.data,(void*)(
pPdu_Received+pos),WMS_MAX_LEN);raw_ts.tpdu_type=zUfiSms_GetTpduType(
pPdu_Received+pos);raw_ts.format=(WMS_MESSAGE_FORMAT_CDMA_V01==format)?
@@ -1047,61 +1047,62 @@
pDb_Data);break;}case WMS_MESSAGE_FORMAT_GW_BC_V01:case
WMS_MESSAGE_FORMAT_MWI_V01:{result=ZUFI_FAIL;break;}default:{result=ZUFI_FAIL;
break;}}return result;}T_zUfiSms_CmdStatus IsSmsLoadSuccess(void){char IsInit[
-(0x2449+215-0x24fc)]={(0x2df+6326-0x1b95)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit,
-sizeof(IsInit));if((0x431+6539-0x1dbc)==strcmp("\x6f\x6b",IsInit)){printf(
+(0x325+1965-0xaae)]={(0xe24+4072-0x1e0c)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit,
+sizeof(IsInit));if((0x528+6657-0x1f29)==strcmp("\x6f\x6b",IsInit)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x20\x4c\x6f\x61\x64\x20\x73\x75\x63\x63\x65\x73\x73\x21" "\n"
);return WMS_CMD_SUCCESS;}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x20\x4c\x6f\x61\x64\x20\x77\x72\x6f\x6e\x67\x20\x21" "\n"
);return WMS_CMD_FAILED;}}
-#if (0xd1d+6464-0x265d)
+#if (0x1625+4176-0x2675)
int zUfiSms_FormatSms(CHAR*pSmsRawContent,int contentSize,T_zUfiSms_SmsItem*
-ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x79b+6768-0x21df)))
-;if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0x727+7422-0x2424)),
-((char)(0x1916+2314-0x21f4)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((
-char*)(P2+(0x20a+6638-0x1bf7)),((char)(0x16ab+2989-0x222c)));atBase_PreProcRes(
-pSmsRawContent,contentSize);if((0x5cc+2529-0xfac)==iCmdId){if(P3==P2+
-(0x69a+590-0x8e7)){sscanf(pSmsRawContent,"\x25\x64\x20\x25\x64\x20\x25\x64\x20",
-&ptSmsPara->index,&ptSmsPara->stat,&ptSmsPara->length);}else{sscanf(
-pSmsRawContent,"\x25\x64\x20\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&
-ptSmsPara->index,&ptSmsPara->stat,ptSmsPara->alpha,&ptSmsPara->length);}}else if
-((0x605+2583-0x101a)==iCmdId){if(P2==P1+(0x1f02+185-0x1fba)){sscanf(
-pSmsRawContent,"\x25\x64\x20\x25\x64\x20",&ptSmsPara->stat,&ptSmsPara->length);}
-else{sscanf(pSmsRawContent,"\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&
-ptSmsPara->stat,ptSmsPara->alpha,&ptSmsPara->length);}}atBase_RestoreString(
-ptSmsPara->alpha);atBase_RestoreString(ptSmsPara->pdu);return ZUFI_SUCC;}
+ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x38b+8454-0x2465)))
+;if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0x4d9+1745-0xba9)),
+((char)(0x1834+855-0x1b5f)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((char
+*)(P2+(0x1bf+8356-0x2262)),((char)(0xd18+4021-0x1ca1)));atBase_PreProcRes(
+pSmsRawContent,contentSize);if((0xa12+4275-0x1ac4)==iCmdId){if(P3==P2+
+(0xf3a+1895-0x16a0)){sscanf(pSmsRawContent,
+"\x25\x64\x20\x25\x64\x20\x25\x64\x20",&ptSmsPara->index,&ptSmsPara->stat,&
+ptSmsPara->length);}else{sscanf(pSmsRawContent,
+"\x25\x64\x20\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&ptSmsPara->index,&
+ptSmsPara->stat,ptSmsPara->alpha,&ptSmsPara->length);}}else if(
+(0xbfa+4246-0x1c8e)==iCmdId){if(P2==P1+(0x19cb+8-0x19d2)){sscanf(pSmsRawContent,
+"\x25\x64\x20\x25\x64\x20",&ptSmsPara->stat,&ptSmsPara->length);}else{sscanf(
+pSmsRawContent,"\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&ptSmsPara->stat,
+ptSmsPara->alpha,&ptSmsPara->length);}}atBase_RestoreString(ptSmsPara->alpha);
+atBase_RestoreString(ptSmsPara->pdu);return ZUFI_SUCC;}
#endif
void zUfiSms_CmglRespProc(T_zSms_SmsInd*pSmsItem){T_zUfiSms_CmdStatus result=
-WMS_CMD_PROCESSING;T_zUfiSms_DbStoreData db_data={(0x1d8c+772-0x2090)};
+WMS_CMD_PROCESSING;T_zUfiSms_DbStoreData db_data={(0xf5d+1231-0x142c)};
zUfiSms_StoreType mem_store=WMS_STORAGE_TYPE_UIM_V01;unsigned char pdu_tmp[
-ZSMS_PDU_SIZE]={(0x3f0+3242-0x109a)};int total_count=(0xd62+4394-0x1e8c);int
-sim_capability=(0x422+2768-0xef2);printf(
+ZSMS_PDU_SIZE]={(0xcb4+4402-0x1de6)};int total_count=(0x1212+66-0x1254);int
+sim_capability=(0x15c9+3905-0x250a);printf(
"\x5b\x53\x4d\x53\x5d\x20\x45\x6e\x74\x65\x72\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x6c\x52\x65\x73\x70\x50\x72\x6f\x63\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x21" "\n"
,pSmsItem->index,pSmsItem->stat,pSmsItem->length);printf(
"\x5b\x53\x4d\x53\x5d\x20\x70\x64\x75\x20\x64\x61\x74\x61\x5f\x6c\x65\x6e\x3a\x25\x64\x2c\x20\x73\x74\x72\x3a\x25\x73\x21" "\n"
-,strlen(pSmsItem->pdu),pSmsItem->pdu);memset(&db_data,(0x173a+2627-0x217d),
-sizeof(db_data));memset(pdu_tmp,(0x238b+187-0x2446),sizeof(pdu_tmp));(void)
+,strlen(pSmsItem->pdu),pSmsItem->pdu);memset(&db_data,(0x2e0+731-0x5bb),sizeof(
+db_data));memset(pdu_tmp,(0x1295+2781-0x1d72),sizeof(pdu_tmp));(void)
String2Bytes(pSmsItem->pdu,pdu_tmp,(int)strlen(pSmsItem->pdu));
-#if (0xc9d+3607-0x1ab3)
-zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0x14d+1313-0x669)==
+#if (0x582+6125-0x1d6e)
+zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0x645+6186-0x1e6a)==
pSmsItem->stat){printf(
"\x5b\x53\x4d\x53\x5d\x20\x45\x6e\x74\x65\x72\x20\x70\x53\x6d\x73\x49\x74\x65\x6d\x2d\x3e\x73\x74\x61\x74\x20\x3d\x3d\x20\x35" "\n"
);(void)zUfiSms_HandleReport(pdu_tmp);zUfiSms_DelModemSms(pSmsItem->index);
return;}
#endif
-#if (0x1021+462-0x11ee)
+#if (0x905+1464-0xebc)
printf("\x2a\x2a\x2a\x2a\x75\x6e\x64\x65\x63\x6f\x64\x65\x3a\x25\x73" "\n",
pdu_tmp);
#endif
(void)zUfiSms_DecodeSmsData(&db_data,pSmsItem->index,mem_store,(T_SmsStatus)
pSmsItem->stat,WMS_MESSAGE_FORMAT_GW_PP_V01,pSmsItem->length,pdu_tmp);
-#if (0x238+7182-0x1e45)
+#if (0x1008+3922-0x1f59)
printf("\x2a\x2a\x2a\x2a\x64\x65\x63\x6f\x64\x65\x65\x64\x3a\x25\x73" "\n",
db_data.sms_content);
#endif
-(void)zUfiSms_WriteSmsToDb(&db_data,mem_store,-(0x259+382-0x3d6));{}
-#if (0x720+2836-0x1233)
+(void)zUfiSms_WriteSmsToDb(&db_data,mem_store,-(0x11a+1318-0x63f));{}
+#if (0x4f1+6530-0x1e72)
if(SMS_LOCATION_SIM==g_zUfiSms_CurLocation){CHAR simCapability[
-(0x9f0+6686-0x23dc)]={(0xc6+2959-0xc55)};sc_cfg_get(
+(0xd3+4000-0x1041)]={(0x454+2780-0xf30)};sc_cfg_get(
ZTE_WMS_NVCONFIG_SIM_CAPABILITY,simCapability,sizeof(simCapability));
sim_capability=atoi(simCapability);(void)zUfiSms_GetTotalCount(
ZTE_WMS_DB_SIM_TABLE,&total_count);if(total_count==sim_capability){
@@ -1111,18 +1112,18 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x68\x65\x63\x6b\x73\x74\x6f\x72\x65\x44\x69\x72\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
);return;}
#ifdef WEBS_SECURITY
-if(access(ZTE_WMS_DB_PATH,F_OK)!=(0x1f4+6395-0x1aef)){if((access(
-ZTE_WMS_TMP1_PATH,F_OK)==(0x41b+7738-0x2255))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
-(0x30d+198-0x3d3))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
-(0x1cd6+563-0x1f09)){printf(
+if(access(ZTE_WMS_DB_PATH,F_OK)!=(0x17a+9519-0x26a9)){if((access(
+ZTE_WMS_TMP1_PATH,F_OK)==(0x1ac2+2328-0x23da))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
+(0xc19+2997-0x17ce))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
+(0x18ab+1439-0x1e4a)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x57\x4d\x53\x5f\x54\x4d\x50\x31\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
-);}}if((access(ZTE_WMS_TMP0_PATH,F_OK)==(0x731+1385-0xc9a))&&(access(
-ZTE_WMS_SEC_PATH,F_OK)!=(0xcdd+2494-0x169b))){if(rename(ZTE_WMS_TMP0_PATH,
-ZTE_WMS_SEC_PATH)!=(0x23a8+673-0x2649)){printf(
+);}}if((access(ZTE_WMS_TMP0_PATH,F_OK)==(0x25d+614-0x4c3))&&(access(
+ZTE_WMS_SEC_PATH,F_OK)!=(0x12f1+749-0x15de))){if(rename(ZTE_WMS_TMP0_PATH,
+ZTE_WMS_SEC_PATH)!=(0x1198+887-0x150f)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x57\x4d\x53\x5f\x54\x4d\x50\x30\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
-);}}if(access(ZTE_WMS_SEC_PATH,F_OK)==(0x56b+6173-0x1d88)){char rnum_buf[
-(0x1503+2461-0x1e88)]={(0x631+2303-0xf30)};char cmd[(0x3b3+8217-0x234c)]={
-(0x1300+1167-0x178f)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZTE_WMS_SEC_PATH,F_OK)==(0x10c8+3850-0x1fd2)){char rnum_buf[
+(0x15e8+823-0x1907)]={(0xd16+4379-0x1e31)};char cmd[(0x4fc+3519-0x123b)]={
+(0x490+634-0x70a)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
rnum_buf));snprintf(cmd,sizeof(cmd),
"\x2f\x62\x69\x6e\x2f\x6f\x70\x65\x6e\x73\x73\x6c\x20\x65\x6e\x63\x20\x2d\x64\x20\x2d\x61\x65\x73\x32\x35\x36\x20\x2d\x73\x61\x6c\x74\x20\x2d\x69\x6e\x20\x25\x73\x20\x2d\x6f\x75\x74\x20\x25\x73\x20\x2d\x70\x61\x73\x73\x20\x70\x61\x73\x73\x3a\x25\x73"
,ZTE_WMS_SEC_PATH,ZTE_WMS_DB_PATH,rnum_buf);zxic_system(cmd);}}
@@ -1134,47 +1135,47 @@
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_SendSmsStatusInfo(
MSG_SMS_DEFAULT);g_zUfiSms_MsgRefer=zUfiSms_GetSmsMaxReferInDb();
g_zUfiSms_ConcatSmsReference=zUfiSms_GetConcatMaxReferInDb();}void
-zUfiSms_CfgSmsNvInit(void){char tmp[(0x1a50+3057-0x2637)]={(0xea3+651-0x112e)};
+zUfiSms_CfgSmsNvInit(void){char tmp[(0x6bf+6442-0x1fdf)]={(0x1438+1940-0x1bcc)};
sc_cfg_set(NV_SMS_STORE,"");sc_cfg_set(NV_SMS_LOAD_RESULT,"");sc_cfg_set(
ZTE_WMS_NVCONFIG_RECEVIED,"");sc_cfg_set(NV_SMS_CENTER_NUM,"");snprintf(tmp,
sizeof(tmp),"\x25\x64",ZTE_WMS_DB_MSG_COUNT_MAX);sc_cfg_set(
ZTE_WMS_NVCONFIG_NV_CAPABILITY,tmp);}VOID zUfiSms_InitCmdStatus(
T_zUfiSms_StatusInfo*pStatusInfo,T_zUfiSms_CmdType iCmdId){memset((void*)
-pStatusInfo,(0xe47+682-0x10f1),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
+pStatusInfo,(0x9af+2297-0x12a8),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
iCmdId;pStatusInfo->cmd_status=WMS_CMD_PROCESSING;pStatusInfo->err_code=
-ZTE_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0x6b4+868-0xa18);pStatusInfo->
-delete_failed_count=(0x1570+1840-0x1ca0);(void)zUfiSms_SetCmdStatus(pStatusInfo)
-;}void zUfiSms_CfgInit(void){char tmp[(0x6b+2432-0x9e1)]={(0x8bb+5415-0x1de2)};
-sc_cfg_set(NV_SMS_STATE,"");sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,"");sc_cfg_set(
-NV_SMS_LOAD_RESULT,"");sc_cfg_set(NV_SMS_RECV_RESULT,"");snprintf(tmp,sizeof(tmp
-),"\x25\x64",ZTE_WMS_DB_MSG_COUNT_MAX);sc_cfg_set(ZTE_WMS_NVCONFIG_NV_CAPABILITY
-,tmp);sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CAPABILITY,"");sc_cfg_set(
-ZTE_WMS_NVCONFIG_SMS_REPORT,"");sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");sc_cfg_set(
-NV_SMS_CENTER_NUM,"");}int zUfiSms_IsUnreadSms(T_zUfiSms_MemoryType mem_store){
-int total_count=(0x13b8+4560-0x2588);char buf[(0x145+9310-0x258f)]={
-(0x7ab+4156-0x17e7)};if(ZUFI_FAIL==zUfiSms_GetTagCountInDb(mem_store,
-WMS_TAG_TYPE_MT_NOT_READ_V01,&total_count)){return FALSE;}sprintf(buf,"\x25\x64"
-,total_count);sc_cfg_set(
+ZTE_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0xd62+6342-0x2628);pStatusInfo
+->delete_failed_count=(0x921+4946-0x1c73);(void)zUfiSms_SetCmdStatus(pStatusInfo
+);}void zUfiSms_CfgInit(void){char tmp[(0x3f9+6390-0x1ce5)]={(0x1f4d+608-0x21ad)
+};sc_cfg_set(NV_SMS_STATE,"");sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,"");
+sc_cfg_set(NV_SMS_LOAD_RESULT,"");sc_cfg_set(NV_SMS_RECV_RESULT,"");snprintf(tmp
+,sizeof(tmp),"\x25\x64",ZTE_WMS_DB_MSG_COUNT_MAX);sc_cfg_set(
+ZTE_WMS_NVCONFIG_NV_CAPABILITY,tmp);sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CAPABILITY,
+"");sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,"");sc_cfg_set(NV_SMS_DB_CHANGE,
+"\x31");sc_cfg_set(NV_SMS_CENTER_NUM,"");}int zUfiSms_IsUnreadSms(
+T_zUfiSms_MemoryType mem_store){int total_count=(0xf1d+3093-0x1b32);char buf[
+(0x119f+4606-0x2389)]={(0x5b5+7395-0x2298)};if(ZUFI_FAIL==
+zUfiSms_GetTagCountInDb(mem_store,WMS_TAG_TYPE_MT_NOT_READ_V01,&total_count)){
+return FALSE;}sprintf(buf,"\x25\x64",total_count);sc_cfg_set(
"\x73\x6d\x73\x5f\x75\x6e\x72\x65\x61\x64\x5f\x63\x6f\x75\x6e\x74",buf);if(
-(0x6b7+1267-0xbaa)==total_count){return FALSE;}else{return TRUE;}}VOID
+(0x6d3+2689-0x1154)==total_count){return FALSE;}else{return TRUE;}}VOID
zUfiSms_SendSmsStatusInfo(wms_message_status_info sms_op){
-T_zUfi_SmsStatusInfoInd ind={(0x1dab+1248-0x228b)};CHAR temp[(0xf2d+3024-0x1acb)
-]={(0x6e5+4640-0x1905)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=
-(0x14f9+3630-0x2326);}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=
-(0x1b77+2264-0x244e);}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.
-sms_unread_ind=(0xac1+4263-0x1b67);}else{ind.sms_unread_ind=(0x85b+3749-0x1700);
+T_zUfi_SmsStatusInfoInd ind={(0x551+4702-0x17af)};CHAR temp[(0x1778+2900-0x229a)
+]={(0x1aaa+1719-0x2161)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=
+(0xa74+5182-0x1eb1);}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=
+(0x204a+765-0x2346);}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.
+sms_unread_ind=(0x5f6+3391-0x1334);}else{ind.sms_unread_ind=(0x2c6+5158-0x16ec);
}sc_cfg_get("\x73\x6d\x73\x5f\x75\x6e\x72\x65\x61\x64\x5f\x63\x6f\x75\x6e\x74",
temp,sizeof(temp));ind.sms_unread_count=atoi(temp);if((g_zUfiSms_MemFullFlag[
WMS_STORAGE_TYPE_NV_V01]==TRUE)||(g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_UIM_V01
-]==TRUE)){ind.sms_memory_full_ind=(0xb81+4874-0x1e8a);}else{ind.
-sms_memory_full_ind=(0xf45+2207-0x17e4);}printf(
+]==TRUE)){ind.sms_memory_full_ind=(0x1265+4778-0x250e);}else{ind.
+sms_memory_full_ind=(0xa2+920-0x43a);}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x53\x6d\x73\x53\x74\x61\x74\x75\x73\x49\x6e\x66\x6f\x20\x75\x6e\x72\x65\x61\x64\x20\x3d\x20\x25\x64\x2c\x20\x66\x75\x6c\x6c\x3d\x25\x64\x2c\x20\x6e\x65\x77\x3d\x25\x64\x2c\x20\x72\x65\x61\x64\x69\x6e\x67\x3d\x25\x64" "\n"
,ind.sms_unread_ind,ind.sms_memory_full_ind,ind.sms_new_ind,ind.sms_is_reading);
ipc_send_message(MODULE_ID_SMS,MODULE_ID_MMI,MSG_CMD_SMS_STATUS_INFO_IND,sizeof(
-T_zUfi_SmsStatusInfoInd),&ind,(0x452+1876-0xba6));if(ind.sms_memory_full_ind==
-(0xb46+1864-0x128d)){sc_cfg_set(NV_SMS_INIT_STATUS,
+T_zUfi_SmsStatusInfoInd),&ind,(0xb6d+2248-0x1435));if(ind.sms_memory_full_ind==
+(0x66d+3542-0x1442)){sc_cfg_set(NV_SMS_INIT_STATUS,
"\x73\x6d\x73\x5f\x6d\x65\x6d\x6f\x72\x79\x5f\x66\x75\x6c\x6c");}else if(ind.
-sms_unread_ind==(0x939+3810-0x181a)){sc_cfg_set(NV_SMS_INIT_STATUS,
+sms_unread_ind==(0x16a8+2713-0x2140)){sc_cfg_set(NV_SMS_INIT_STATUS,
"\x73\x6d\x73\x5f\x75\x6e\x72\x65\x61\x64");}else{sc_cfg_set(NV_SMS_INIT_STATUS,
"\x73\x6d\x73\x5f\x6e\x6f\x72\x6d\x61\x6c");}return;}VOID BakNotificationSms(
char*pushSms,int pushSmsLen){FILE*fp=NULL;int len;fp=fopen(
@@ -1183,7 +1184,7 @@
"\x5b\x53\x4d\x53\x5d\x20\x42\x61\x6b\x4e\x6f\x74\x69\x66\x69\x63\x61\x74\x69\x6f\x6e\x53\x6d\x73\x20\x66\x6f\x70\x65\x6e\x20\x65\x72\x72\x6f\x72" "\n"
);at_print(LOG_ERR,
"\x66\x6f\x70\x65\x6e\x28\x20\x2f\x75\x73\x72\x2f\x64\x6d\x2f\x66\x6f\x74\x61\x5f\x70\x75\x73\x68\x5f\x6d\x73\x67\x2e\x64\x61\x74\x61\x20\x2c\x20\x27\x77\x2b\x27\x29\x20\x65\x72\x72\x6f\x72\x21"
-);return;}len=fwrite(pushSms,(0xeb8+760-0x11af),pushSmsLen,fp);if(len==
+);return;}len=fwrite(pushSms,(0xf6b+384-0x10ea),pushSmsLen,fp);if(len==
pushSmsLen){printf(
"\x5b\x53\x4d\x53\x5d\x20\x42\x61\x6b\x4e\x6f\x74\x69\x66\x69\x63\x61\x74\x69\x6f\x6e\x53\x6d\x73\x20\x77\x72\x69\x74\x65\x20\x74\x6f\x20\x4e\x6f\x74\x69\x66\x69\x63\x61\x74\x69\x6f\x6e\x62\x61\x6b\x20\x66\x69\x6c\x65\x20\x4f\x4b\x2c\x20\x6c\x65\x6e\x3d\x25\x64\x20" "\n"
,len);printf(
diff --git a/ap/app/zte_comm/sms/src/sms_main.c b/ap/app/zte_comm/sms/src/sms_main.c
index e6956bd..d469767 100755
--- a/ap/app/zte_comm/sms/src/sms_main.c
+++ b/ap/app/zte_comm/sms/src/sms_main.c
@@ -15,43 +15,43 @@
g_zUfiSms_FinalCmgsBuf;extern int g_zUfiSms_CurConcatSegNo;extern
T_zUfiSms_DbStoreData g_zUfiSms_DbStoreData[ZTE_WMS_CONCAT_SMS_COUNT_MAX];extern
int g_zUfiSms_SendFailedCount;extern int g_zUfiSms_ConcatTotalNum;extern UINT8
-g_zUfiSms_IsConcatSendSuc;int iSmsIndex=(0x1a5+4164-0x11e9);int g_zSms_MsqId=-
-(0x285+1323-0x7af);int g_zSms_LocalMsqId=-(0x789+2328-0x10a0);sem_t g_sms_sem_id
-;T_zSms_optRsp g_smsOptRsp={(0xd2+7472-0x1e02)};static const T_zSmsHandleTable
+g_zUfiSms_IsConcatSendSuc;int iSmsIndex=(0x175b+2788-0x223f);int g_zSms_MsqId=-
+(0x6d+1120-0x4cc);int g_zSms_LocalMsqId=-(0x1108+5600-0x26e7);sem_t g_sms_sem_id
+;T_zSms_optRsp g_smsOptRsp={(0x14d+7976-0x2075)};static const T_zSmsHandleTable
SmsHandleWebTab[]={{MSG_CMD_SEND_SMS,atWeb_SendSms,TRUE},{
MSG_CMD_DEL_SMS_BY_INDEX,atWeb_DelSmsByIndex,TRUE},{MSG_CMD_SMS_MODIFY_TAG,
atWeb_ReadSms,TRUE},{MSG_CMD_DRAFTS_SAVE,atWeb_SaveSms,FALSE},{
MSG_CMD_SMS_LOCATION_SET,atWeb_SetSms,TRUE},{MSG_CMD_SMS_OUTDATE_CHECK,
-atWeb_OutdateSmsCheck,TRUE},{(0xdaa+3222-0x1a40),NULL,FALSE}};VOID atWeb_SendSms
+atWeb_OutdateSmsCheck,TRUE},{(0xc5b+4535-0x1e12),NULL,FALSE}};VOID atWeb_SendSms
(UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;T_zUfiSms_StatusInfo tStatus={
-(0x164c+1111-0x1aa3)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)
+(0xed2+4925-0x220f)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)
pDatabuf;zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_SEND);(void)
zUfiSms_SendRawSms((T_zUfiSms_SendReq*)ptMessage->msg_data);}VOID
-atWeb_DelSmsByIndex(UINT8*pDatabuf){T_zUfiSms_DelReq tDelReq={(0xfcb+457-0x1194)
-};T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={
-(0x541+2834-0x1053)};assert(pDatabuf!=NULL);printf(
+atWeb_DelSmsByIndex(UINT8*pDatabuf){T_zUfiSms_DelReq tDelReq={
+(0x1372+1941-0x1b07)};T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;
+T_zUfiSms_StatusInfo tStatus={(0x7b+6252-0x18e7)};assert(pDatabuf!=NULL);printf(
"[SMS] atWeb_DelSmsByIndex recv msg\n");memcpy(&tDelReq,pDatabuf,sizeof(
T_zUfiSms_DelReq));zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_DELETE);result
=zUfiSms_DeleteSms(&tDelReq);tStatus.cmd_status=result;(void)
zUfiSms_SetCmdStatus(&tStatus);zUfiMmi_SendSmsStatus();}VOID atWeb_DelSmsByType(
UINT8*pDatabuf){
-#if (0x4a6+4403-0x15d9)
+#if (0x2a2+724-0x576)
WEB_DEL_SMS_BY_TYPE*req=NULL;req=(WEB_DEL_SMS_BY_TYPE*)pDatabuf;assert(req!=NULL
);if(req->eLocation!=ZSMS_LOCATION_SIM){ZTE_LOG(LOG_ERR,
"\x7a\x53\x6d\x73\x5f\x50\x72\x65\x70\x44\x65\x6c\x42\x79\x54\x79\x70\x65\x20\x70\x61\x72\x61\x20\x4e\x55\x4c\x4c\x2e" "\n"
);return;}zSms_ChangeMainState(ZSMS_STATE_DELING);ZTE_LOG(LOG_DEBUG,
"\x7a\x53\x6d\x73\x5f\x50\x72\x65\x70\x44\x65\x6c\x42\x79\x54\x79\x70\x65\x20\x70\x73\x74\x52\x65\x71\x2d\x3e\x65\x42\x6f\x78\x4e\x61\x6d\x65\x3d\x25\x64" "\n"
-,req->eBoxName);SMS_DeleteRecordFromXML(SMS_LOCATION_SIM,(0x141f+3062-0x2015),
-req->eBoxName);if(req->eBoxName==SMS_INBOX){sms_LoadSmsFromSim();}
+,req->eBoxName);SMS_DeleteRecordFromXML(SMS_LOCATION_SIM,(0x760+7080-0x2308),req
+->eBoxName);if(req->eBoxName==SMS_INBOX){sms_LoadSmsFromSim();}
#endif
}VOID atWeb_ReadSms(UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;
T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={
-(0xcd9+6357-0x25ae)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)
+(0x752+4661-0x1987)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)
pDatabuf;zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_MODIFY_TAG);result=
zUfiSms_ModifySmsTag((T_zUfiSms_ModifyFlag*)ptMessage->msg_data);tStatus.
cmd_status=result;(void)zUfiSms_SetCmdStatus(&tStatus);}VOID atWeb_SaveSms(UINT8
*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;T_zUfiSms_CmdStatus result=
-WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x1532+4418-0x2674)};assert(
+WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x1383+4952-0x26db)};assert(
pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)pDatabuf;zUfiSms_InitCmdStatus(&
tStatus,WMS_SMS_CMD_MSG_WRITE);result=zUfiSms_WriteRawSms((T_zUfiSms_SaveReq*)
ptMessage->msg_data);if(g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){tStatus.
@@ -61,251 +61,250 @@
zUfiSms_ChangeMainState(SMS_STATE_SAVING);sc_cfg_set(NV_SMS_SAVE_RESULT,
"\x6f\x6b");}VOID atWeb_SetSms(UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;
T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={
-(0x3b+5469-0x1598)};printf(
+(0x5a+7485-0x1d97)};printf(
"\x49\x4e\x54\x4f\x20\x61\x74\x57\x65\x62\x5f\x53\x65\x74\x53\x6d\x73\x2e" "\n")
;assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)pDatabuf;
zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_CFG_SET_PARAMETERS);result=
zUfiSms_SetSmsPara((T_zUfiSms_ParaInfo*)ptMessage->msg_data);tStatus.cmd_status=
result;(void)zUfiSms_SetCmdStatus(&tStatus);}VOID atWeb_OutdateSmsCheck(UINT8*
-pDatabuf){T_zUfiSms_DelReq tSmsDel={(0x1b5d+477-0x1d3a)};
+pDatabuf){T_zUfiSms_DelReq tSmsDel={(0x1f3a+143-0x1fc9)};
zUfiSms_CheckDbOutdateSms(ZTE_WMS_DB_NV_TABLE,&tSmsDel);printf(
"\x2d\x2d\x2d\x2d\x6f\x75\x74\x20\x63\x6f\x75\x6e\x20\x6e\x76\x74\x3a\x20\x25\x64\x2d\x2d\x2d\x2d" "\n"
-,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x7eb+1972-0xf9f)){
-atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x591+2777-0x106a),sizeof(
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x10d0+5610-0x26ba)){
+atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x1aac+1950-0x224a),sizeof(
T_zUfiSms_DelReq));zUfiSms_CheckDbOutdateSms(ZTE_WMS_DB_SIM_TABLE,&tSmsDel);
printf(
"\x2d\x2d\x2d\x2d\x6f\x75\x74\x20\x63\x6f\x75\x6e\x74\x20\x73\x69\x6d\x3a\x20\x25\x64\x2d\x2d\x2d\x2d" "\n"
-,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x561+4185-0x15ba)){
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x455+3588-0x1259)){
atWeb_DelSmsByIndex(&tSmsDel);}}VOID zSms_HandleWebMsg(MSG_BUF*ptMsgBuf){UINT32
-i=(0x1e4a+796-0x2166);assert(ptMsgBuf!=NULL);printf(
+i=(0xbd7+1362-0x1129);assert(ptMsgBuf!=NULL);printf(
"\x73\x6d\x73\x20\x72\x65\x63\x76\x20\x6d\x73\x67\x20\x66\x72\x6f\x6d\x20\x77\x65\x62\x73\x65\x72\x76\x65\x72\x3a\x25\x64" "\n"
-,ptMsgBuf->usMsgCmd);while((0x1027+1208-0x14df)!=SmsHandleWebTab[i].msg_id){if(
+,ptMsgBuf->usMsgCmd);while((0x5c4+2389-0xf19)!=SmsHandleWebTab[i].msg_id){if(
ptMsgBuf->usMsgCmd==SmsHandleWebTab[i].msg_id){if(SmsHandleWebTab[i].need_block
&&ptMsgBuf->src_id!=MODULE_ID_SMS){ipc_send_message(MODULE_ID_SMS,
MODULE_ID_SMS_LOCAL,ptMsgBuf->usMsgCmd,ptMsgBuf->usDataLen,(unsigned char*)
-ptMsgBuf->aucDataBuf,(0x17bc+534-0x19d2));}else if(NULL!=SmsHandleWebTab[i].
+ptMsgBuf->aucDataBuf,(0x1683+2784-0x2163));}else if(NULL!=SmsHandleWebTab[i].
func_ptr){SmsHandleWebTab[i].func_ptr(ptMsgBuf->aucDataBuf);}break;}i++;}}SINT32
zSms_SendMsg(USHORT Msg_cmd,USHORT us_DataLen,UCHAR*pData){printf(
"\x73\x6d\x73\x20\x73\x65\x6e\x64\x20\x6d\x73\x67\x20\x63\x6d\x64\x3a\x25\x64" "\n"
,Msg_cmd);ipc_send_message(MODULE_ID_SMS,MODULE_ID_AT_CTL,Msg_cmd,us_DataLen,(
-unsigned char*)pData,(0xef1+4672-0x2131));return(0x161a+3782-0x24e0);}SINT32
-zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x191a+1852-0x2056)};
-memset(&sendSmsInfo,(0x9c+1137-0x50d),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
+unsigned char*)pData,(0x5eb+1465-0xba4));return(0x1833+3080-0x243b);}SINT32
+zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x1ef+4005-0x1194)};
+memset(&sendSmsInfo,(0xd36+4938-0x2080),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
length=g_zUfiSms_FinalCmgsBuf.length;if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<
-ZSMS_PDU_SIZE-(0xd92+3323-0x1a8c)){memcpy(sendSmsInfo.pdu,g_zUfiSms_FinalCmgsBuf
-.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));}else{printf(
+ZSMS_PDU_SIZE-(0x17f4+2325-0x2108)){memcpy(sendSmsInfo.pdu,
+g_zUfiSms_FinalCmgsBuf.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6d\x67\x73\x52\x65\x71\x20\x70\x64\x75\x20\x74\x6f\x6f\x20\x6c\x6f\x6e\x67\x3a\x25\x73" "\n"
,g_zUfiSms_FinalCmgsBuf.pdu);memcpy(sendSmsInfo.pdu,g_zUfiSms_FinalCmgsBuf.pdu,
-ZSMS_PDU_SIZE-(0x504+8504-0x263a));}*(sendSmsInfo.pdu+strlen(
+ZSMS_PDU_SIZE-(0x8a0+3323-0x1599));}*(sendSmsInfo.pdu+strlen(
g_zUfiSms_FinalCmgsBuf.pdu))=ZSMS_CTRL_Z_CHAR;
-#if (0x10ac+4793-0x2364)
+#if (0xd6c+5366-0x2261)
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6d\x67\x73\x52\x65\x71\x20\x73\x65\x6e\x64\x20\x64\x61\x74\x61" "\n"
);printf("\n" "\x5b\x53\x4d\x53\x5d\x25\x73" "\n",sendSmsInfo.pdu);
#endif
zSms_SendMsg(MSG_CMD_SENDSMS_REQ,sizeof(T_zSms_SendSmsReq),&sendSmsInfo);
-sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x11c+4929-0x145c)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0xaea+4367-0x1bf8)){return
ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmgsOk(VOID){
printf(
"\x73\x6d\x73\x20\x73\x65\x6e\x64\x65\x64\x20\x73\x75\x63\x63\x65\x73\x73\x2e\x20" "\n"
);g_zUfiSms_CurConcatSegNo++;if(g_zUfiSms_CurConcatSegNo>
ZTE_WMS_CONCAT_SMS_COUNT_MAX){return;}g_zUfiSms_DbStoreData[
-g_zUfiSms_CurConcatSegNo-(0xb46+1624-0x119d)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0x50c+2132-0xd5f)].tag=WMS_TAG_TYPE_MO_SENT_V01;
zUfiSms_CmgsRespProc();}VOID zSms_RecvCmgsErr(VOID){printf(
"\x73\x6d\x73\x20\x73\x65\x6e\x64\x65\x64\x20\x66\x61\x69\x6c\x2e\x20" "\n");
g_zUfiSms_CurConcatSegNo++;if(g_zUfiSms_CurConcatSegNo>
ZTE_WMS_CONCAT_SMS_COUNT_MAX){return;}g_zUfiSms_SendFailedCount++;printf(
"\x73\x65\x6e\x64\x20\x73\x6d\x73\x20\x66\x61\x69\x6c\x65\x64\x2c\x73\x6f\x20\x77\x72\x69\x74\x65\x20\x73\x6d\x73\x20\x74\x6f\x20\x64\x72\x61\x66\x74\x62\x6f\x78\x2e" "\n"
-);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0xa31+5191-0x1e77)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x1a65+484-0x1c48)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x5a5+7111-0x216b)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0xd+7206-0x1c32)){
g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc();}SINT32 zSms_SendCmgdReq
-(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0x455+8369-0x2506)};delSmsReq.index=
+(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0x495+7210-0x20bf)};delSmsReq.index=
index;zSms_SendMsg(MSG_CMD_DELSMS_REQ,sizeof(T_zSms_DelSmsReq),&delSmsReq);
-sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x82a+6188-0x2055)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x169d+1984-0x1e5c)){return
ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmgdOk(VOID){CHAR
-strUsed[(0xc68+5533-0x21fb)]={(0x1e3+6325-0x1a98)};int used=(0x13e3+3569-0x21d4)
-;int tmp_i=(0x10f8+1312-0x1618);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+strUsed[(0x163b+3263-0x22f0)]={(0xb09+1363-0x105c)};int used=(0xe2a+2488-0x17e2)
+;int tmp_i=(0x1d9b+1724-0x2457);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x65\x74\x20\x73\x69\x6d\x5f\x64\x65\x6c\x5f\x72\x65\x73\x75\x6c\x74\x20\x74\x6f\x20\x4f\x4b\x2e\x20" "\n"
);sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));tmp_i=atoi(
-strUsed);if(tmp_i<(0x2c+5151-0x144b)||tmp_i>INT_MAX-(0xbc1+1745-0x1291)){
+strUsed);if(tmp_i<(0x7c1+7287-0x2438)||tmp_i>INT_MAX-(0x1fe6+826-0x231f)){
at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x57\x4d\x53\x5f\x4e\x56\x43\x4f\x4e\x46\x49\x47\x5f\x53\x49\x4d\x5f\x43\x41\x52\x44\x5f\x55\x53\x45\x44\x20\x74\x6d\x70\x5f\x69\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);tmp_i=(0x1044+1553-0x1655);}used=tmp_i-(0x345+3352-0x105c);if(used<
-(0x600+5981-0x1d5d)){used=(0xca9+1166-0x1137);}memset(&strUsed,
-(0x1396+1813-0x1aab),(0x13df+1807-0x1ae4));snprintf(strUsed,sizeof(strUsed),
+,tmp_i);tmp_i=(0x188f+1356-0x1ddb);}used=tmp_i-(0x17ec+1614-0x1e39);if(used<
+(0x17d+6253-0x19ea)){used=(0xff7+281-0x1110);}memset(&strUsed,
+(0x480+3544-0x1258),(0x1ea7+691-0x2150));snprintf(strUsed,sizeof(strUsed),
"\x25\x64",used);sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed);}VOID
zSms_RecvCmgdErr(VOID){sc_cfg_set(NV_SMS_DEL_RESULT,"\x66\x61\x69\x6c");printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x65\x74\x20\x73\x69\x6d\x5f\x64\x65\x6c\x5f\x72\x65\x73\x75\x6c\x74\x20\x74\x6f\x20\x66\x61\x69\x6c\x2e\x20" "\n"
-);}VOID zSms_RecvCmgdFinish(VOID){char StrValue[(0x12e5+3076-0x1edf)]={
-(0xf08+502-0x10fe)};CHAR strTotal[(0xf5d+5511-0x24da)]={(0x903+5521-0x1e94)};
-CHAR strUsed[(0xf9c+2542-0x1980)]={(0x57+2208-0x8f7)};int total=
-(0x1437+86-0x148d);int used=(0x5ad+6681-0x1fc6);int remain=(0x743+5625-0x1d3c);
+);}VOID zSms_RecvCmgdFinish(VOID){char StrValue[(0x36+960-0x3ec)]={
+(0xfc3+5420-0x24ef)};CHAR strTotal[(0x561+1001-0x940)]={(0xde1+139-0xe6c)};CHAR
+strUsed[(0x2230+1197-0x26d3)]={(0x1db5+1698-0x2457)};int total=
+(0x141+8622-0x22ef);int used=(0xf06+4478-0x2084);int remain=(0xa4c+1519-0x103b);
sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
-strUsed);if(used<(0x2138+527-0x2347)||used>INT_MAX-(0x326+3793-0x11f6)){at_print
+strUsed);if(used<(0x1c5+3662-0x1013)||used>INT_MAX-(0x9ab+4295-0x1a71)){at_print
(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x57\x4d\x53\x5f\x4e\x56\x43\x4f\x4e\x46\x49\x47\x5f\x53\x49\x4d\x5f\x43\x41\x52\x44\x5f\x55\x53\x45\x44\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,used);used=(0x1d61+378-0x1edb);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
-strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0x25d1+264-0x26d9)||
-total>INT_MAX-(0x65+7921-0x1f55)){at_print(LOG_ERR,
+,used);used=(0xfcf+70-0x1015);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
+strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0x995+4159-0x19d4)||
+total>INT_MAX-(0x1672+1563-0x1c8c)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x57\x4d\x53\x5f\x4e\x56\x43\x4f\x4e\x46\x49\x47\x5f\x53\x49\x4d\x5f\x43\x41\x52\x44\x5f\x54\x4f\x54\x41\x4c\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,total);total=(0x243+6689-0x1c64);}remain=total-used;if(remain<
-(0x359+2899-0xeac)){remain=(0x6f7+2962-0x1289);}memset(&StrValue,
-(0x2069+634-0x22e3),(0x2367+765-0x265a));snprintf(StrValue,sizeof(StrValue),
+,total);total=(0xfa5+2245-0x186a);}remain=total-used;if(remain<
+(0x1855+1500-0x1e31)){remain=(0x10c8+121-0x1141);}memset(&StrValue,
+(0x13f9+159-0x1498),(0x3fa+22-0x406));snprintf(StrValue,sizeof(StrValue),
"\x25\x64",remain);sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CARD_REMAIN,StrValue);printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x69\x6d\x53\x6d\x73\x20\x75\x73\x65\x64\x3d\x25\x64\x2c\x72\x65\x6d\x61\x69\x6e\x3d\x25\x64\x2c\x74\x6f\x74\x61\x6c\x3d\x25\x64" "\n"
,used,remain,total);zUfiSms_ChangeMainState(SMS_STATE_DELED);sc_cfg_set(
NV_SMS_DB_CHANGE,"\x31");}int zSms_SendZmenaReq(SINT32 avail){T_zSms_StroageReq
-storageReq={(0x14a+9231-0x2559)};storageReq.type=avail;zSms_SendMsg(
+storageReq={(0x1aaa+1576-0x20d2)};storageReq.type=avail;zSms_SendMsg(
MSG_CMD_STORAGE_CAP_REQ,sizeof(T_zSms_StroageReq),&storageReq);sem_wait(&
-g_sms_sem_id);if(g_smsOptRsp.result==(0x24cd+156-0x2568)){return ZSMS_RESULT_OK;
-}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCmgrReq(UINT8 index){
-T_zSms_ModifyTagReq modTagReq={(0x101f+420-0x11c3)};modTagReq.index=index;
+g_sms_sem_id);if(g_smsOptRsp.result==(0x7ad+864-0xb0c)){return ZSMS_RESULT_OK;}
+else{return ZSMS_RESULT_ERROR;}}int zSms_SendCmgrReq(UINT8 index){
+T_zSms_ModifyTagReq modTagReq={(0x672+3162-0x12cc)};modTagReq.index=index;
zSms_SendMsg(MSG_CMD_MODIFY_TAG_REQ,sizeof(T_zSms_ModifyTagReq),&modTagReq);
-sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x470+1090-0x8b1)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x26f+8783-0x24bd)){return
ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}int zSms_SetCscaReq(PSTR sca){
T_zSms_SetScaReq setscareq;strncpy(setscareq.sca,sca,sizeof(setscareq.sca)-
-(0xdf8+4233-0x1e80));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),&
-setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0xd1+5497-0x1649)){
+(0x2297+696-0x254e));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),&
+setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x350+6553-0x1ce8)){
return ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCnmiReq(PSTR
- pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0xa7+3126-0xcdd)};if(
-(0x81a+3342-0x1528)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
-(0x7ad+1253-0xc91);}else{notifySetReq.mt=(0x928+4992-0x1ca6);}zSms_SendMsg(
+ pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0x89a+7517-0x25f7)};if(
+(0x941+7146-0x252b)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
+(0x38c+825-0x6c4);}else{notifySetReq.mt=(0x1ac+3846-0x10b0);}zSms_SendMsg(
MSG_CMD_NOTIFY_SET_REQ,sizeof(T_zSms_NotifySetReq),¬ifySetReq);sem_wait(&
-g_sms_sem_id);if(g_smsOptRsp.result==(0x216f+727-0x2445)){return ZSMS_RESULT_OK;
+g_sms_sem_id);if(g_smsOptRsp.result==(0xe65+1828-0x1588)){return ZSMS_RESULT_OK;
}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmtInd(UINT8*pDatabuf){CHAR
-needSMS[(0x7e3+2573-0x11be)]={(0x3ca+1080-0x802)};sc_cfg_get(NV_NEED_SUPPORT_SMS
-,needSMS,sizeof(needSMS));if((0x13e4+1804-0x1af0)==strcmp(needSMS,"\x6e\x6f")){
+needSMS[(0x96c+1036-0xd46)]={(0x548+7064-0x20e0)};sc_cfg_get(NV_NEED_SUPPORT_SMS
+,needSMS,sizeof(needSMS));if((0x1b5+2564-0xbb9)==strcmp(needSMS,"\x6e\x6f")){
printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
-);return;}T_zSms_SmsInd tCmtRsp={(0x107+6511-0x1a76)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0xf30+4823-0x2207)};memcpy(&tCmtRsp,(
T_zSms_SmsInd*)pDatabuf,sizeof(T_zSms_SmsInd));zUfiSms_CmtRespProc(&tCmtRsp);
zUfiMmi_SendSmsStatus();sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}VOID
-zSms_RecvCmtiInd(UINT8*pDatabuf){char sms_Main_state[(0xfb6+1251-0x147b)]={
-(0x1656+1991-0x1e1d)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf
-;CHAR needSMS[(0x2d7+8306-0x2317)]={(0x31+4623-0x1240)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x92c+2071-0x1143)==strcmp(
+zSms_RecvCmtiInd(UINT8*pDatabuf){char sms_Main_state[(0xaab+6055-0x2234)]={
+(0x16f1+3192-0x2369)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf
+;CHAR needSMS[(0x46+470-0x1ea)]={(0xdbc+1126-0x1222)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x12f7+5047-0x26ae)==strcmp(
needSMS,"\x6e\x6f")){printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
);return;}sc_cfg_get(NV_SMS_STATE,sms_Main_state,sizeof(sms_Main_state));if(
strcmp(sms_Main_state,"\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67")==
-(0x930+2892-0x147c)){printf(
+(0x337+9024-0x2677)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x69\x52\x73\x70\x3a\x20\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67" "\n"
-);return;}if((0x6d5+7236-0x2319)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0x557+1913-0xcce))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0x137c+852-0x16d0)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0x83d+2717-0x12d8))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
zUfiSms_ChangeMainState(SMS_STATE_RECVING);zSms_SendZmgrReq(smsIdxInd->index);}
else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x69\x52\x73\x70\x20\x3a\x73\x74\x6f\x72\x65\x20\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x6e\x6f\x74\x20\x53\x4d\x2e" "\n"
);}sc_cfg_set(NV_SMS_RECV_RESULT,"");}VOID zSms_RecvCdsInd(UINT8*pDatabuf){CHAR
-needSMS[(0x247+2131-0xa68)]={(0x2312+925-0x26af)};sc_cfg_get(NV_NEED_SUPPORT_SMS
-,needSMS,sizeof(needSMS));if((0x28+1959-0x7cf)==strcmp(needSMS,"\x6e\x6f")){
-printf(
+needSMS[(0x161c+2731-0x2095)]={(0xf1b+1503-0x14fa)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x4+737-0x2e5)==strcmp(needSMS,
+"\x6e\x6f")){printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
-);return;}T_zSms_SmsInd tCmtRsp={(0xf40+4662-0x2176)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0x546+556-0x772)};memcpy(&tCmtRsp,(
T_zSms_SmsInd*)pDatabuf,sizeof(T_zSms_SmsInd));zUfiSms_CdsRespProc(&tCmtRsp);
zUfiMmi_SendSmsStatus();sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}VOID
-zSms_RecvCdsiInd(UINT8*pDatabuf){char sms_Main_state[(0x1075+736-0x1337)]={
-(0x1dd3+894-0x2151)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
-CHAR needSMS[(0xe78+1196-0x12f2)]={(0x1b22+1720-0x21da)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xf10+2652-0x196c)==strcmp(
+zSms_RecvCdsiInd(UINT8*pDatabuf){char sms_Main_state[(0x9d7+6323-0x226c)]={
+(0xb17+3293-0x17f4)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
+CHAR needSMS[(0x1a3b+891-0x1d84)]={(0x1368+3008-0x1f28)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x19cc+599-0x1c23)==strcmp(
needSMS,"\x6e\x6f")){printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
);return;}sc_cfg_get(NV_SMS_STATE,sms_Main_state,sizeof(sms_Main_state));if(
strcmp(sms_Main_state,"\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67")==
-(0x1b28+1636-0x218c)){printf(
+(0x1df+5768-0x1867)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x69\x52\x73\x70\x3a\x20\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67" "\n"
-);return;}if((0x9b8+6995-0x250b)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0xa8a+1712-0x1138))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0x1609+3188-0x227d)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0x15c2+2055-0x1dc7))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
zUfiSms_ChangeMainState(SMS_STATE_RECVING);zSms_SendZmgrReq(smsIdxInd->index);}
else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x69\x52\x73\x70\x20\x3a\x73\x74\x6f\x72\x65\x20\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x6e\x6f\x74\x20\x53\x4d\x2e" "\n"
);}sc_cfg_set(NV_SMS_RECV_RESULT,"");}int zSms_SendCnmaReq(int ack_mode){
-T_zSms_SmsAckReq ackReq={(0x1563+1128-0x19cb)};CHAR ackPduStr[
-(0xdc7+6031-0x2524)]={(0xbb3+6162-0x23c5)};ackReq.ackmode=ack_mode;if(ack_mode==
-(0x1439+3953-0x23a8)){zUfiSms_EncodePdu_DeliverReport(ackPduStr,
-(0x712+1932-0xdcb));memcpy(ackReq.pdu,ackPduStr,strlen(ackPduStr));
-#if (0x63b+8267-0x2686)
-if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0x1e2c+1909-0x25a0)){memcpy(ackReq.pdu,
+T_zSms_SmsAckReq ackReq={(0xf3f+3025-0x1b10)};CHAR ackPduStr[(0x4b6+5620-0x1a78)
+]={(0x1775+2620-0x21b1)};ackReq.ackmode=ack_mode;if(ack_mode==(0x665+1337-0xb9c)
+){zUfiSms_EncodePdu_DeliverReport(ackPduStr,(0xf05+3925-0x1d87));memcpy(ackReq.
+pdu,ackPduStr,strlen(ackPduStr));
+#if (0xd56+633-0xfcf)
+if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0x50f+8662-0x26e4)){memcpy(ackReq.pdu,
ackPduStr,strlen(ackPduStr));}else{at_print(LOG_DEBUG
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6e\x6d\x61\x52\x65\x71\x20\x70\x64\x75\x20\x74\x6f\x6f\x20\x6c\x6f\x6e\x67\x3a\x25\x73" "\n"
-,ackPduStr);memcpy(ackReq.pdu,ackPduStr,ZSMS_PDU_SIZE-(0x78+3146-0xcc0));}
+,ackPduStr);memcpy(ackReq.pdu,ackPduStr,ZSMS_PDU_SIZE-(0xa1f+5146-0x1e37));}
#endif
*(ackReq.pdu+strlen(ackPduStr))=ZSMS_CTRL_Z_CHAR;printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6e\x6d\x61\x52\x65\x71\x2e\x20\x70\x64\x75\x3d\x20\x25\x73" "\n"
-,ackReq.pdu);ackReq.length=strlen(ackPduStr)/(0x204d+1611-0x2696);}zSms_SendMsg(
+,ackReq.pdu);ackReq.length=strlen(ackPduStr)/(0xc4f+5213-0x20aa);}zSms_SendMsg(
MSG_CMD_SMSACK_REQ,sizeof(T_zSms_SmsAckReq),&ackReq);sem_wait(&g_sms_sem_id);if(
-g_smsOptRsp.result==(0x14cc+3075-0x20ce)){return ZSMS_RESULT_OK;}else{return
+g_smsOptRsp.result==(0x782+1603-0xdc4)){return ZSMS_RESULT_OK;}else{return
ZSMS_RESULT_ERROR;}}int zSms_SendZmgrReq(int index){T_zSms_ReadSmsReq readSmsReq
-={(0x1fa0+305-0x20d1)};iSmsIndex=index;printf(
+={(0x114c+4050-0x211e)};iSmsIndex=index;printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x5a\x6d\x67\x72\x52\x65\x71\x20\x47\x65\x74\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2e" "\n"
,iSmsIndex);readSmsReq.index=index;zSms_SendMsg(MSG_CMD_READSMS_REQ,sizeof(
-T_zSms_ReadSmsReq),&readSmsReq);return(0x10f8+1790-0x17f6);}VOID
-zSms_RecvZmgrRsp(UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0x36f+7855-0x221e)};
-memcpy(&tCmgrRsp,(T_zSms_SmsInd*)pDatabuf,sizeof(T_zSms_SmsInd));tCmgrRsp.index=
-iSmsIndex;zUfiSms_ZmgrRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();}VOID
-zSms_RecvZmgrOk(UINT8*pDatabuf){T_zSms_optRsp smsOptRsp={(0xe8d+112-0xefd)};
-memcpy(&smsOptRsp,(T_zSms_optRsp*)pDatabuf,sizeof(T_zSms_optRsp));if(smsOptRsp.
-result==(0x11cf+3629-0x1ffb)){sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{
-printf(
+T_zSms_ReadSmsReq),&readSmsReq);return(0x914+2429-0x1291);}VOID zSms_RecvZmgrRsp
+(UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0x60b+4230-0x1691)};memcpy(&tCmgrRsp,(
+T_zSms_SmsInd*)pDatabuf,sizeof(T_zSms_SmsInd));tCmgrRsp.index=iSmsIndex;
+zUfiSms_ZmgrRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();}VOID zSms_RecvZmgrOk(
+UINT8*pDatabuf){T_zSms_optRsp smsOptRsp={(0x1af+9053-0x250c)};memcpy(&smsOptRsp,
+(T_zSms_optRsp*)pDatabuf,sizeof(T_zSms_optRsp));if(smsOptRsp.result==
+(0x5cd+2103-0xe03)){sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x72\x45\x72\x72\x20\x20\x53\x4d\x53\x20\x7a\x6d\x67\x72\x20\x69\x73\x20\x66\x61\x69\x6c" "\n"
);sc_cfg_set(NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(
SMS_STATE_RECVED);}}VOID zSms_RecvZpbicInd(UINT8*pDatabuf){T_zAt_ZpbicRes*ptPara
=ZUFI_NULL;if(pDatabuf==NULL){return;}ptPara=(T_zAt_ZpbicRes*)(pDatabuf);if((
-(0x16c7+4126-0x26e4)==ptPara->result)&&((0xa52+3625-0x187b)==ptPara->opertype)){
-CHAR needSms[(0x6f4+6897-0x21b3)]={(0x152+1866-0x89c)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0x149c+2189-0x1d29)!=strcmp(
+(0x73c+5634-0x1d3d)==ptPara->result)&&((0x1027+2545-0x1a18)==ptPara->opertype)){
+CHAR needSms[(0xed0+4629-0x20b3)]={(0x191d+1153-0x1d9e)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0x1534+4064-0x2514)!=strcmp(
needSms,"\x6e\x6f")){zSvr_Zpbic_Sms_Init();}}}VOID zSms_RecvCpmsInd(UINT8*
pDatabuf){T_zSms_CpmsInd*cpmsInd=(T_zSms_CpmsInd*)pDatabuf;CHAR strBuf[
-(0x187+3515-0xf38)]={(0x1e05+369-0x1f76)};int remainSpace=(0x19b8+1744-0x2088);
+(0x1dc+1979-0x98d)]={(0xbf2+4658-0x1e24)};int remainSpace=(0x16c1+1199-0x1b70);
snprintf(strBuf,sizeof(strBuf),"\x25\x64",cpmsInd->total);sc_cfg_set(
ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,strBuf);sc_cfg_set(
-ZTE_WMS_NVCONFIG_SIM_CAPABILITY,strBuf);memset(&strBuf,(0x350+134-0x3d6),
-(0x1e40+2006-0x260c));snprintf(strBuf,sizeof(strBuf),"\x25\x64",cpmsInd->used);
+ZTE_WMS_NVCONFIG_SIM_CAPABILITY,strBuf);memset(&strBuf,(0x3d9+6008-0x1b51),
+(0xc30+4327-0x1d0d));snprintf(strBuf,sizeof(strBuf),"\x25\x64",cpmsInd->used);
sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strBuf);remainSpace=cpmsInd->total-
-cpmsInd->used;memset(&strBuf,(0x2525+377-0x269e),(0x1174+738-0x144c));snprintf(
+cpmsInd->used;memset(&strBuf,(0x704+482-0x8e6),(0x67f+4776-0x191d));snprintf(
strBuf,sizeof(strBuf),"\x25\x64",remainSpace);sc_cfg_set(
ZTE_WMS_NVCONFIG_SIM_CARD_REMAIN,strBuf);sc_cfg_set(NV_SMS_STORE,"\x6f\x6b");}
-#define AT_CMD_MAX (0xad2+6343-0x2359)
+#define AT_CMD_MAX (0xd49+5232-0x2179)
#define ZAT_TAB_REPLACE ((unsigned char )(\
-(0x16b9+2121-0x1e06)))
-#define ZAT_NULL_FILL ((unsigned char )(\
-(0x7d6+3449-0x1452)))
+(0xe58+1504-0x133c)))
+#define ZAT_NULL_FILL ((unsigned char )((0x8b6+384-0x939))\
+)
#define ZAT_SPACE_REPLACE ((unsigned char )(\
-(0x387+5632-0x1889)))
-#define ZAT_LF_REPLACE ((unsigned char )((0x5d1+583-0x71d))\
+(0x18eb+3448-0x2565)))
+#define ZAT_LF_REPLACE ((unsigned char )((0xb58+822-0xd93))\
)
#define ZAT_CR_REPLACE ((unsigned char )(\
-(0xf21+1565-0x1444)))
+(0x161+5518-0x15f5)))
static void atBase_PreProcRes(char*pParaLine,int paraSize){signed long flg=
-(0x534+4537-0x16ed);unsigned long i=(0x1744+2282-0x202e);unsigned long length=
-(0x1123+3526-0x1ee9);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=
-(char*)malloc(AT_CMD_MAX);if(NULL==pStrDestMalloc){return;}memset(pStrDestMalloc
-,(0xedb+4874-0x21e5),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
-length=strlen(pParaLine);if((length==(0x9f5+2524-0x13d1))||(length>=AT_CMD_MAX))
-{free(pStrDestMalloc);return;}for(i=(0x1f5b+1947-0x26f6);(i<length)&&(pDest-
-pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x11c7+1031-0x15ac))==*pSource){flg=(
-(0xa0f+4572-0x1beb)==flg)?(0x926+3915-0x1870):(0x84+3282-0xd56);if(
-((char)(0x5af+6856-0x2055))==*(pSource+(0x30c+1386-0x875))){*pDest++=(char)
-ZAT_NULL_FILL;}}else if((((char)(0x18bd+2592-0x22b1))==*pSource)&&(
-(0x1816+2200-0x20ae)==flg)){*pDest++=((char)(0xae0+6598-0x2486));if(
-((char)(0x419+4618-0x15f7))==*(pSource+(0xe6a+990-0x1247))){*pDest++=
-((char)(0x1739+1563-0x1d1b));}else if('\0'==*(pSource+(0x776+566-0x9ab))){*pDest
-++=(char)ZAT_NULL_FILL;}}else{if((((char)(0x17f1+684-0x1a7d))==*pSource)&&(
-(0x19e3+1821-0x20ff)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
-pSource)&&((0x3f6+3817-0x12de)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
-'\n'==*pSource)&&((0x191d+2758-0x23e2)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}
-else if(('\r'==*pSource)&&((0x18a3+186-0x195c)==flg)){*pDest++=(char)
-ZAT_CR_REPLACE;}else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,
-(0x5d0+1546-0xbda),paraSize);strncpy(pParaLine,pStrDestMalloc,paraSize-
-(0xb59+831-0xe97));free(pStrDestMalloc);}VOID zSms_RecvCscaInd(UINT8*pDatabuf){
-T_zSms_CscaInd cscaInd={(0x314+8851-0x25a7)};
-#if (0x313+8630-0x24c8)
+(0xda0+566-0xfd6);unsigned long i=(0x1eb3+1068-0x22df);unsigned long length=
+(0xf17+3367-0x1c3e);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=(
+char*)malloc(AT_CMD_MAX);if(NULL==pStrDestMalloc){return;}memset(pStrDestMalloc,
+(0x1abb+1361-0x200c),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
+length=strlen(pParaLine);if((length==(0x1aeb+1330-0x201d))||(length>=AT_CMD_MAX)
+){free(pStrDestMalloc);return;}for(i=(0x74c+1344-0xc8c);(i<length)&&(pDest-
+pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x21d6+1233-0x2685))==*pSource){flg=(
+(0x2222+1106-0x2674)==flg)?(0x957+1773-0x1043):(0x465+182-0x51b);if(
+((char)(0xea6+5984-0x25e4))==*(pSource+(0xff7+1070-0x1424))){*pDest++=(char)
+ZAT_NULL_FILL;}}else if((((char)(0x12c5+134-0x131f))==*pSource)&&(
+(0x338+2983-0xedf)==flg)){*pDest++=((char)(0xd3c+5912-0x2434));if(
+((char)(0x2b1+5360-0x1775))==*(pSource+(0xdaa+3259-0x1a64))){*pDest++=
+((char)(0xa9f+2169-0x12df));}else if('\0'==*(pSource+(0xbb9+598-0xe0e))){*pDest
+++=(char)ZAT_NULL_FILL;}}else{if((((char)(0x1491+3161-0x20ca))==*pSource)&&(
+(0x8af+6095-0x207d)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
+pSource)&&((0x3d9+5659-0x19f3)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
+'\n'==*pSource)&&((0x22f+7637-0x2003)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}else
+ if(('\r'==*pSource)&&((0x2256+933-0x25fa)==flg)){*pDest++=(char)ZAT_CR_REPLACE;
+}else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,(0x1555+3062-0x214b),
+paraSize);strncpy(pParaLine,pStrDestMalloc,paraSize-(0x384+1797-0xa88));free(
+pStrDestMalloc);}VOID zSms_RecvCscaInd(UINT8*pDatabuf){T_zSms_CscaInd cscaInd={
+(0xa27+7273-0x2690)};
+#if (0x59+5825-0x1719)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x7a\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x73\x63\x61\x49\x6e\x64\x20\x64\x61\x74\x61\x62\x75\x66\x3a\x25\x73" "\n"
,pDatabuf);
#endif
atBase_PreProcRes(pDatabuf,strlen(pDatabuf));sscanf(pDatabuf,
"\x25\x32\x31\x73\x20\x25\x32\x31\x73",cscaInd.sca,cscaInd.tosca);
-#if (0x4a8+6126-0x1c95)
+#if (0x38f+3878-0x12b4)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x7a\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x73\x63\x61\x49\x6e\x64\x20\x73\x63\x61\x3a\x25\x73\x2c\x20\x74\x6f\x73\x63\x61\x25\x73" "\n"
,cscaInd.sca,cscaInd.tosca);
@@ -313,22 +312,22 @@
sc_cfg_set(NV_SMS_CENTER_NUM,cscaInd.sca);zUfiSms_SetScaPara(cscaInd.sca);}VOID
zSms_RecvZmglInd(UINT8*pDatabuf){zUfiSms_CmglRespProc((T_zSms_SmsInd*)pDatabuf);
}int zSms_SendSmsInitReq(VOID){zSms_SendMsg(MSG_CMD_SMSINIT_REQ,
-(0xa4f+2569-0x1458),NULL);return(0xe91+1329-0x13c2);}VOID zSms_initAtOk(VOID){
-T_zUfiSms_StatusInfo tStatus={(0x8d9+578-0xb1b)};sc_cfg_set(NV_SMS_STORE,
+(0x15b7+196-0x167b),NULL);return(0xb51+127-0xbd0);}VOID zSms_initAtOk(VOID){
+T_zUfiSms_StatusInfo tStatus={(0x568+552-0x790)};sc_cfg_set(NV_SMS_STORE,
"\x6f\x6b");sc_cfg_set(NV_SMS_LOAD_RESULT,"\x6f\x6b");tStatus.cmd_status=
WMS_CMD_SUCCESS;tStatus.cmd=WMS_SMS_CMD_INIT;(void)zUfiSms_SetCmdStatus(&tStatus
);zUfiSms_ChangeMainState(SMS_STATE_LOADED);}VOID zSms_initAtErr(VOID){
-T_zUfiSms_StatusInfo tStatus={(0x15d0+3194-0x224a)};sc_cfg_set(
-NV_SMS_LOAD_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_LOADED)
-;tStatus.cmd_status=WMS_CMD_FAILED;tStatus.cmd=WMS_SMS_CMD_INIT;(void)
+T_zUfiSms_StatusInfo tStatus={(0x263+8551-0x23ca)};sc_cfg_set(NV_SMS_LOAD_RESULT
+,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_LOADED);tStatus.
+cmd_status=WMS_CMD_FAILED;tStatus.cmd=WMS_SMS_CMD_INIT;(void)
zUfiSms_SetCmdStatus(&tStatus);}VOID zSms_RecvSmsInitRst(UINT8*pDatabuf){memcpy(
&g_smsOptRsp,pDatabuf,sizeof(T_zSms_optRsp));if(g_smsOptRsp.result==
-(0x288+2492-0xc43)){zSms_initAtOk();}else{zSms_initAtErr();}}UINT8
+(0x165f+1230-0x1b2c)){zSms_initAtOk();}else{zSms_initAtErr();}}UINT8
zSms_SmsMsgCreat(VOID){g_zSms_MsqId=msgget(MODULE_ID_SMS,IPC_CREAT|
-(0x1358+3067-0x1dd3));if(g_zSms_MsqId==-(0x12d+7118-0x1cfa)){return ZUFI_FAIL;}
-g_zSms_LocalMsqId=msgget(MODULE_ID_SMS_LOCAL,IPC_CREAT|(0xa95+842-0xc5f));if(
-g_zSms_LocalMsqId==-(0x1764+3798-0x2639)){return ZUFI_FAIL;}sem_init(&
-g_sms_sem_id,(0xcff+1578-0x1329),(0x81a+6309-0x20bf));return ZUFI_SUCC;}void
+(0x1f9+5559-0x1630));if(g_zSms_MsqId==-(0x473+7249-0x20c3)){return ZUFI_FAIL;}
+g_zSms_LocalMsqId=msgget(MODULE_ID_SMS_LOCAL,IPC_CREAT|(0xb52+4785-0x1c83));if(
+g_zSms_LocalMsqId==-(0xf79+351-0x10d7)){return ZUFI_FAIL;}sem_init(&g_sms_sem_id
+,(0x523+1527-0xb1a),(0x188d+1027-0x1c90));return ZUFI_SUCC;}void
zSms_HandleAtctlLocalMsg(MSG_BUF*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
"\x73\x6d\x73\x20\x6c\x6f\x63\x61\x6c\x20\x72\x65\x63\x76\x20\x6d\x73\x67\x20\x63\x6d\x64\x3a\x25\x64" "\n"
,ptMsgBuf->usMsgCmd);switch(ptMsgBuf->usMsgCmd){case MSG_CMD_ZPBIC_IND:
@@ -352,44 +351,44 @@
case MSG_CMD_NEWSMS_IND:case MSG_CMD_ZPBIC_IND:case MSG_CMD_ZMGL_IND:case
MSG_CMD_NEWSMS_STATUS_IND:ipc_send_message(MODULE_ID_SMS,MODULE_ID_SMS_LOCAL,
ptMsgBuf->usMsgCmd,ptMsgBuf->usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,
-(0xf47+3566-0x1d35));break;default:break;}}VOID zSms_HandleResetToFactory(){CHAR
- clearSms[(0x1b29+2706-0x2589)]={(0x595+6080-0x1d55)};sc_cfg_get(
+(0x196a+2204-0x2206));break;default:break;}}VOID zSms_HandleResetToFactory(){
+CHAR clearSms[(0x18b2+1237-0x1d55)]={(0x1ddd+2036-0x25d1)};sc_cfg_get(
NV_CLEAR_SMS_WHEN_RESTORE,clearSms,sizeof(clearSms));printf(
"\x61\x74\x57\x65\x62\x5f\x52\x65\x73\x74\x6f\x72\x65\x46\x61\x63\x74\x6f\x72\x79\x53\x65\x74\x74\x69\x6e\x67\x20\x65\x6e\x74\x65\x72\x65\x64\x21\x20" "\n"
);printf(
"\x63\x6c\x65\x61\x72\x5f\x73\x6d\x73\x5f\x77\x68\x65\x6e\x5f\x72\x65\x73\x74\x6f\x72\x65\x3d\x25\x73\x20" "\n"
-,clearSms);if(strcmp(clearSms,"\x79\x65\x73")==(0x1096+1062-0x14bc)){printf(
+,clearSms);if(strcmp(clearSms,"\x79\x65\x73")==(0x13cb+1618-0x1a1d)){printf(
"\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x72\x6f\x70\x41\x6c\x6c\x54\x61\x62\x6c\x65\x20\x65\x6e\x74\x65\x72\x65\x64\x21\x20" "\n"
);zUfiSms_DropAllTable();}else{printf(
"\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x72\x6f\x70\x41\x6c\x6c\x54\x61\x62\x6c\x65\x45\x78\x63\x65\x70\x74\x53\x6d\x73\x20\x65\x6e\x74\x65\x72\x65\x64\x21\x20" "\n"
);zUfiSms_DropAllTableExceptSms();}ipc_send_message(MODULE_ID_SMS,
-MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,(0x184f+382-0x19cd),NULL,
-(0xdff+4532-0x1fb3));}void zSms_HandleMainCtrlMsg(MSG_BUF*ptMsgBuf){assert(
+MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,(0x1b62+182-0x1c18),NULL,
+(0x1dc3+408-0x1f5b));}void zSms_HandleMainCtrlMsg(MSG_BUF*ptMsgBuf){assert(
ptMsgBuf!=NULL);printf(
"\x73\x6d\x73\x20\x72\x65\x63\x76\x20\x6d\x61\x69\x6e\x20\x63\x74\x72\x6c\x20\x6d\x73\x67\x20\x63\x6d\x64\x3a\x25\x64" "\n"
,ptMsgBuf->usMsgCmd);switch(ptMsgBuf->usMsgCmd){case MSG_CMD_RESET_NOTIFY:
zSms_HandleResetToFactory(ptMsgBuf->aucDataBuf);break;default:break;}}void
-sms_msg_thread_proc(void*arg){int iRet=(0x177a+2584-0x2192);MSG_BUF stMsg={
-(0x45c+4675-0x169f)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((int
-*)arg);prctl(PR_SET_NAME,"\x73\x6d\x73\x5f\x6c\x6f\x63\x61\x6c",
-(0x1dcf+1349-0x2314),(0xca1+2283-0x158c),(0x14d5+4159-0x2514));while(
-(0xc79+5387-0x2183)){iRet=(0x1b1+4609-0x13b2);memset(&stMsg,(0x1094+1469-0x1651)
-,sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x6da+2789-0x11bf),
-(0x87a+2186-0x1104));if(iRet>=(0x1482+1130-0x18ec)){switch(stMsg.src_id){case
+sms_msg_thread_proc(void*arg){int iRet=(0x128f+3342-0x1f9d);MSG_BUF stMsg={
+(0x1850+3552-0x2630)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((
+int*)arg);prctl(PR_SET_NAME,"\x73\x6d\x73\x5f\x6c\x6f\x63\x61\x6c",
+(0x1737+2859-0x2262),(0x1e7+2701-0xc74),(0xc11+2609-0x1642));while(
+(0x1299+4983-0x260f)){iRet=(0x533+4027-0x14ee);memset(&stMsg,(0x106+7603-0x1eb9)
+,sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x1383+581-0x15c8),
+(0x8c4+5118-0x1cc2));if(iRet>=(0x1321+2450-0x1cb3)){switch(stMsg.src_id){case
MODULE_ID_WEB_CGI:{zSms_HandleWebMsg(&stMsg);break;}case MODULE_ID_AT_CTL:{
zSms_HandleAtctlMsg(&stMsg);break;}case MODULE_ID_SMS:{zSms_HandleWebMsg(&stMsg)
;zSms_HandleAtctlLocalMsg(&stMsg);break;}case MODULE_ID_MAIN_CTRL:{
zSms_HandleMainCtrlMsg(&stMsg);break;}default:{break;}}}else{at_print(AT_DEBUG,
"\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x2c\x20\x65\x72\x72\x6d\x73\x67\x20\x3d\x20\x25\x73" "\n"
,errno,strerror(errno));}}}int sms_main(int argc,char*argv[]){pthread_t
-recv_thread_tid=(0x76c+2862-0x129a);MSG_BUF msgBuf={(0x79+7385-0x1d52)};CHAR
-needSMS[(0x12f0+3128-0x1ef6)]={(0x156d+1590-0x1ba3)};prctl(PR_SET_NAME,
-"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x1b10+1394-0x2082),(0x173b+1659-0x1db6),
-(0x7bb+5471-0x1d1a));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
-sizeof(needSMS));if((0x74f+5139-0x1b62)!=strcmp(needSMS,"\x6e\x6f")){
+recv_thread_tid=(0x1823+2513-0x21f4);MSG_BUF msgBuf={(0x1187+3656-0x1fcf)};CHAR
+needSMS[(0xa0+1507-0x651)]={(0x1d2+7042-0x1d54)};prctl(PR_SET_NAME,
+"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x1827+3126-0x245d),(0x641+3445-0x13b6),
+(0x14a+5695-0x1789));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
+sizeof(needSMS));if((0xf23+1268-0x1417)!=strcmp(needSMS,"\x6e\x6f")){
zUfiSms_InitDb();zUfiSms_CfgSmsNvInit();zUfiMmi_SendSmsStatus();zSms_SmsMsgCreat
-();}else{return-(0x739+5558-0x1cee);}printf(
+();}else{return-(0x1d2+3247-0xe80);}printf(
"\x73\x6d\x73\x20\x61\x70\x70\x20\x69\x6e\x69\x74\x20\x66\x69\x6e\x69\x73\x68\x65\x64\x2c\x20\x77\x69\x6c\x6c\x20\x74\x6f\x20\x72\x65\x63\x65\x69\x76\x65\x20\x6d\x73\x67\x2c\x20\x6d\x73\x67\x69\x64\x3a\x25\x64" "\n"
,g_zSms_MsqId);if(pthread_create(&recv_thread_tid,NULL,sms_msg_thread_proc,(void
-*)(&g_zSms_LocalMsqId))==-(0x440+6622-0x1e1d)){assert((0x11df+816-0x150f));}
-sms_msg_thread_proc(&g_zSms_MsqId);return(0x1e8+1557-0x7fd);}
+*)(&g_zSms_LocalMsqId))==-(0x103+6918-0x1c08)){assert((0xa80+574-0xcbe));}
+sms_msg_thread_proc(&g_zSms_MsqId);return(0xd46+3843-0x1c49);}
diff --git a/ap/app/zte_comm/sms/src/sms_proc.c b/ap/app/zte_comm/sms/src/sms_proc.c
index a73d809..1cc316c 100755
--- a/ap/app/zte_comm/sms/src/sms_proc.c
+++ b/ap/app/zte_comm/sms/src/sms_proc.c
@@ -5,117 +5,117 @@
T_zUfiSms_ConcatInfo g_zUfiSms_ConcatSms;T_zUfiSms_GroupInfo g_zUfiSms_GroupSms;
T_zUfiSms_DbStoreData g_zUfiSms_DbStoreData[ZTE_WMS_CONCAT_SMS_COUNT_MAX];UINT8
g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_MAX]={FALSE,FALSE};T_zUfiSms_DelSms
-g_zUfiSms_DelMsg;T_zUfiSms_DelIndexInfo g_deleteIndex={(0x8e1+1940-0x1075)};
-T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0x1396+4636-0x25b2)};
-T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0xd65+3839-0x1c64)};int
-g_zUfiSms_UnitLen=(0xb40+2733-0x15ed);int g_zUfiSms_ConcatTotalNum=
-(0x1633+2984-0x21db);int g_zUfiSms_CurConcatSegNo=(0xd7+8674-0x22b9);UINT8
-g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0x831+2712-0x12c9)
-;int g_zUfiSms_MsgRefer=(0x77f+5288-0x1c27);int g_zUfiSms_SendFailedRetry=
-(0x7e6+7390-0x24c4);char g_Zmena_value[(0x15cd+4337-0x26bc)]={
-(0x1983+2890-0x24cd)};int g_displaymode=(0xb80+4537-0x1d39);extern SMS_LOCATION
+g_zUfiSms_DelMsg;T_zUfiSms_DelIndexInfo g_deleteIndex={(0xfed+5814-0x26a3)};
+T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0x180f+1275-0x1d0a)};
+T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0x2353+886-0x26c9)};int
+g_zUfiSms_UnitLen=(0xedb+3627-0x1d06);int g_zUfiSms_ConcatTotalNum=
+(0x1cad+1440-0x224d);int g_zUfiSms_CurConcatSegNo=(0x10e5+4553-0x22ae);UINT8
+g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0xfbf+5273-0x2458)
+;int g_zUfiSms_MsgRefer=(0x1b0+1732-0x874);int g_zUfiSms_SendFailedRetry=
+(0x13ea+3552-0x21ca);char g_Zmena_value[(0xba5+3506-0x1955)]={
+(0xe6b+3139-0x1aae)};int g_displaymode=(0x11c2+2044-0x19be);extern SMS_LOCATION
g_zUfiSms_CurLocation;extern T_zUfiSms_CmdStatus zUfiSms_HandleReport(unsigned
char*ptPduData);extern void zUfiSms_GetReportStatus(char*pdu_tmp,int*stat);
extern VOID zUfiSms_ResendAtCmdZmena(int cid);extern int zUfiSms_DecodeSmsData(
T_zUfiSms_DbStoreData*pDb_Data,int msg_index,zUfiSms_StoreType iStorePos,
T_SmsStatus bSms_Status,wms_message_format_enum_v01 format,long iPdu_Len,
unsigned char*pPdu_Received);typedef struct{long mtype;char mtext[
-(0x8e9+2629-0x1322)];}FOTA_MSG_BUF;
-#define WEBUI_NOTIFY_PUSH_MSG_ (0x190+9502-0x26ab)
+(0xf93+4296-0x204f)];}FOTA_MSG_BUF;
+#define WEBUI_NOTIFY_PUSH_MSG_ (0xdcc+5001-0x2152)
typedef struct{unsigned int isread_record;unsigned int inbox_full;}
T_zUfiMmi_SmsRecord;void zUfiMmi_SendSmsStatus(void){int iSmsNum=
-(0x1fed+1533-0x25ea);T_zUfiMmi_SmsRecord tRecord={(0x4ab+7917-0x2398)};CHAR
-smsNum[(0x929+1430-0xe8d)]={(0x31d+8344-0x23b5)};sc_cfg_get(NV_SMS_IN_NUM,smsNum
-,sizeof(smsNum));iSmsNum=atoi(smsNum);tRecord.isread_record=zUfiSms_IsUnreadSms(
-ZTE_WMS_MEMORY_MAX);if(iSmsNum>=ZSMS_NUM_MAX_CPE){tRecord.inbox_full=
-(0x16f4+2789-0x21d8);}else{tRecord.inbox_full=(0x402+8134-0x23c8);}}VOID
-zUfiSms_Init(VOID){zUfiSms_CfgInit();zUfiSms_ChangeMainState(SMS_STATE_INITING);
-}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=(0xd36+2309-0x163b);
-T_zUfiSms_StatusInfo tStatus={(0x896+574-0xad4)};CHAR outDate[
-(0x274+3690-0x10ac)]={(0x562+4948-0x18b6)};zUfiSms_Init();zUfiSms_InitCmdStatus(
+(0x11f4+3657-0x203d);T_zUfiMmi_SmsRecord tRecord={(0x1885+2145-0x20e6)};CHAR
+smsNum[(0x1e4f+127-0x1e9c)]={(0x145d+2663-0x1ec4)};sc_cfg_get(NV_SMS_IN_NUM,
+smsNum,sizeof(smsNum));iSmsNum=atoi(smsNum);tRecord.isread_record=
+zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_MAX);if(iSmsNum>=ZSMS_NUM_MAX_CPE){tRecord.
+inbox_full=(0xd9c+854-0x10f1);}else{tRecord.inbox_full=(0xb10+2309-0x1415);}}
+VOID zUfiSms_Init(VOID){zUfiSms_CfgInit();zUfiSms_ChangeMainState(
+SMS_STATE_INITING);}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=(0x17f+8421-0x2264)
+;T_zUfiSms_StatusInfo tStatus={(0x56b+8266-0x25b5)};CHAR outDate[
+(0x11b+5276-0x1585)]={(0x278+7454-0x1f96)};zUfiSms_Init();zUfiSms_InitCmdStatus(
&tStatus,WMS_SMS_CMD_INIT);zSms_SendSmsInitReq();at_print(LOG_DEBUG,
"corem zSvr_Zpbic_Sms_Init has send init req\n");zSms_SendZmenaReq(
-(0x688+2606-0x10b6));at_print(LOG_DEBUG,
+(0xab6+4361-0x1bbf));at_print(LOG_DEBUG,
"\x63\x6f\x72\x65\x6d\x20\x7a\x53\x76\x72\x5f\x5a\x70\x62\x69\x63\x5f\x53\x6d\x73\x5f\x49\x6e\x69\x74\x20\x68\x61\x73\x20\x73\x65\x6e\x64\x20\x7a\x6d\x65\x6e\x61\x20\x72\x65\x71" "\n"
);sc_cfg_get(NV_OUTDATE_DELETE,outDate,sizeof(outDate));at_print(LOG_DEBUG,
"\x63\x6f\x72\x65\x6d\x20\x7a\x53\x76\x72\x5f\x5a\x70\x62\x69\x63\x5f\x53\x6d\x73\x5f\x49\x6e\x69\x74\x20\x6f\x75\x74\x64\x61\x74\x65\x20\x63\x68\x65\x63\x6b\x20\x25\x73" "\n"
-,outDate);if((0x2087+1037-0x2494)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck
-(ZUFI_NULL);}}VOID zUfiSms_DeleteAllSimSms(VOID){zUfiSms_DeleteAllSimSmsInDb();}
-#if (0xd44+570-0xf7e)
-VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0x10b1+5123-0x2482)]={
-(0x16ea+2723-0x218d)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
-g_Zmena_rsp&&((0x5b5+3114-0x11df)!=strcmp(
-"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0xaf9+4639-0x1d18)!=strcmp
-("\x4c\x69\x6d\x69\x74\x65\x64\x20\x53\x65\x72\x76\x69\x63\x65",netType))){
+,outDate);if((0xa7+9302-0x24fd)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck(
+ZUFI_NULL);}}VOID zUfiSms_DeleteAllSimSms(VOID){zUfiSms_DeleteAllSimSmsInDb();}
+#if (0x1046+788-0x135a)
+VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0x2387+538-0x256f)]={
+(0x22f+4744-0x14b7)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
+g_Zmena_rsp&&((0xa67+441-0xc20)!=strcmp(
+"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0x2d8+2290-0xbca)!=strcmp(
+"\x4c\x69\x6d\x69\x74\x65\x64\x20\x53\x65\x72\x76\x69\x63\x65",netType))){
atUnsoli_Report_Zmena(NULL,cid);}}
#endif
void zUfiSms_Ack_new_msg(BOOL needAck){
-#if (0x190b+1789-0x2008)
-CHAR ackPduStr[(0x1792+3719-0x2489)]={(0x2e5+6057-0x1a8e)};SMS_PARAM reportParam
-={(0x1740+2245-0x2005)};int total_length=(0x95c+548-0xb80);UINT8 TP_FCS=
-(0x13c8+1046-0x17de);CHAR strValue[(0xb48+1444-0x10ea)]={(0x447+1569-0xa68)};if(
-needAck){TP_FCS=(0x61b+1771-0xd06);sprintf(strValue,"\x25\x64",
-(0x5a2+4473-0x171a));}else{TP_FCS=(0x12d+7422-0x1d58);sprintf(strValue,
-"\x25\x64",(0x14c2+659-0x1753));}sprintf(reportParam.SCA,"\x25\x73",cfg_get(
+#if (0xcd8+1092-0x111c)
+CHAR ackPduStr[(0xdf6+3428-0x19ca)]={(0xa37+5722-0x2091)};SMS_PARAM reportParam=
+{(0x58+7895-0x1f2f)};int total_length=(0x11a0+2494-0x1b5e);UINT8 TP_FCS=
+(0x164d+286-0x176b);CHAR strValue[(0x1f95+1903-0x2702)]={(0x124f+4863-0x254e)};
+if(needAck){TP_FCS=(0x5f2+7330-0x2294);sprintf(strValue,"\x25\x64",
+(0x1572+3283-0x2244));}else{TP_FCS=(0xdc1+2602-0x1718);sprintf(strValue,
+"\x25\x64",(0x58+3039-0xc35));}sprintf(reportParam.SCA,"\x25\x73",cfg_get(
"\x73\x6d\x73\x5f\x63\x65\x6e\x74\x65\x72\x5f\x6e\x75\x6d"));total_length=
zUfiSms_EncodePdu_DeliverReport(&reportParam,ackPduStr,TP_FCS);memset(&
-g_zUfiSms_ackPdu,(0x1362+2050-0x1b64),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu
+g_zUfiSms_ackPdu,(0x1979+1973-0x212e),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu
.length=String2Bytes(ackPduStr,g_zUfiSms_ackPdu.pdu,strlen(ackPduStr));memset(
-g_zUfiSms_ackPdu.pdu,(0x90f+6470-0x2255),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
+g_zUfiSms_ackPdu.pdu,(0xa66+2162-0x12d8),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
g_zUfiSms_ackPdu.pdu,&ackPduStr,sizeof(ackPduStr));atBase_SendMsgToSelf(
ZAT_CNMA_CMD,strValue,sizeof(strValue));
#endif
-#if (0x1206+1030-0x160c)
-CHAR strValue[(0x591+4348-0x168b)]={(0x5b8+8305-0x2629)};if(needAck){snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0x14a5+2417-0x1e15));}else{snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0x124d+2891-0x1d96));}zSvr_InnerSendMsg(
+#if (0x7f4+6914-0x22f6)
+CHAR strValue[(0x226+9013-0x2559)]={(0x738+5951-0x1e77)};if(needAck){snprintf(
+strValue,sizeof(strValue),"\x25\x64",(0x113+452-0x2d6));}else{snprintf(strValue,
+sizeof(strValue),"\x25\x64",(0x1dad+1111-0x2202));}zSvr_InnerSendMsg(
ZUFI_MODULE_ID_AT_LOCAL,ZUFI_MODULE_ID_AT_UNSOLI,MSG_CMD_AT_CNMA,strlen(strValue
),strValue);
#endif
-if(needAck){zSms_SendCnmaReq((0xd2d+4871-0x2033));}else{zSms_SendCnmaReq(
-(0xae6+906-0xe6e));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq*
-ptSendMsg){if(NULL==ptSendMsg||(0x630+118-0x6a6)==ptSendMsg->receiver_count){
+if(needAck){zSms_SendCnmaReq((0x1cb4+450-0x1e75));}else{zSms_SendCnmaReq(
+(0x114b+412-0x12e5));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq*
+ptSendMsg){if(NULL==ptSendMsg||(0x195f+1333-0x1e94)==ptSendMsg->receiver_count){
return WMS_CMD_FAILED;}at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x52\x61\x77\x53\x6d\x73\x20\x72\x65\x63\x65\x69\x76\x65\x72\x5f\x63\x6f\x75\x6e\x74\x3a\x25\x64\x2f\x64\x65\x73\x74\x5f\x6e\x75\x6d\x3a\x25\x73\x2f\x6d\x73\x67\x5f\x6c\x65\x6e\x3a\x25\x64\x2f\x69\x64\x3a\x25\x64\x2e" "\n"
-,ptSendMsg->receiver_count,ptSendMsg->dest_num[(0x3a0+5887-0x1a9f)],ptSendMsg->
+,ptSendMsg->receiver_count,ptSendMsg->dest_num[(0x21ab+242-0x229d)],ptSendMsg->
msg_len,ptSendMsg->id);
-#if (0x1083+2663-0x1ae9)
+#if (0xc6c+4598-0x1e61)
at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x52\x61\x77\x53\x6d\x73\x20\x64\x63\x73\x3a\x25\x64" "\n"
,ptSendMsg->dcs);
#endif
-sc_cfg_set(NV_SMS_SEND_RESULT,"");g_zUfiSms_SendFailedCount=(0x314+3347-0x1027);
-if(ptSendMsg->isDelete==TRUE||-(0x2bc+4040-0x1283)!=ptSendMsg->id){(void)
+sc_cfg_set(NV_SMS_SEND_RESULT,"");g_zUfiSms_SendFailedCount=(0x1cc8+2412-0x2634)
+;if(ptSendMsg->isDelete==TRUE||-(0x1882+351-0x19e0)!=ptSendMsg->id){(void)
zUfiSms_DeleteDraftSms(ptSendMsg->id);}zUfiSms_SetGlobalDcsLang(ptSendMsg->dcs);
-memset(&g_zUfiSms_GroupSms,(0x4d1+4618-0x16db),sizeof(g_zUfiSms_GroupSms));if(
+memset(&g_zUfiSms_GroupSms,(0x982+647-0xc09),sizeof(g_zUfiSms_GroupSms));if(
ZUFI_FAIL==zUfiSms_FillGroupSms(ptSendMsg,&g_zUfiSms_GroupSms)){return
-WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0x8b0+6771-0x2323),sizeof(
+WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0x86c+3822-0x175a),sizeof(
g_zUfiSms_ConcatSms));g_zUfiSms_UnitLen=zUfiSms_FillConcatSms(ptSendMsg,&
g_zUfiSms_ConcatSms);g_zUfiSms_IsConcatSendSuc=TRUE;g_zUfiSms_CurConcatSegNo=
-(0x2280+358-0x23e6);memset(g_zUfiSms_DbStoreData,(0x113d+5018-0x24d7),sizeof(
-g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0xe94+13-0xe97)){g_displaymode
-=(0xd5f+5372-0x225a);at_print(LOG_DEBUG,
+(0x2287+263-0x238e);memset(g_zUfiSms_DbStoreData,(0xda5+2633-0x17ee),sizeof(
+g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0x14a3+4687-0x26e8)){
+g_displaymode=(0xb0b+2660-0x156e);at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x53\x6d\x73\x3a\x20\x6d\x73\x67\x5f\x64\x69\x73\x70\x6c\x61\x79\x6d\x6f\x64\x65\x20\x3d\x20\x31" "\n"
-);}else{g_displaymode=(0xa11+5189-0x1e56);at_print(LOG_DEBUG,
+);}else{g_displaymode=(0x828+1969-0xfd9);at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x53\x6d\x73\x3a\x20\x6d\x73\x67\x5f\x64\x69\x73\x70\x6c\x61\x79\x6d\x6f\x64\x65\x20\x3d\x20\x30" "\n"
);}return zUfiSms_SendSms();}T_zUfiSms_CmdStatus zUfiSms_WriteRawSms(
T_zUfiSms_SaveReq*pSaveBuff){T_zUfiSms_ConcatInfo tConcatSms;T_zUfiSms_GroupInfo
- tGroupSms;int iSmsLen=(0xf32+2593-0x1953);T_zUfiSms_CmdStatus result=
+ tGroupSms;int iSmsLen=(0x18a9+229-0x198e);T_zUfiSms_CmdStatus result=
WMS_CMD_SUCCESS;if(NULL==pSaveBuff){return WMS_CMD_FAILED;}if(
g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x52\x61\x77\x53\x6d\x73\x20\x6e\x76\x20\x6d\x65\x6d\x6f\x72\x79\x20\x69\x73\x20\x66\x75\x6c\x6c\x2c\x72\x65\x74\x75\x72\x6e" "\n"
);return WMS_CMD_FAILED;}if(pSaveBuff->isDelete==TRUE){(void)
zUfiSms_DeleteDraftSms(pSaveBuff->id);}zUfiSms_SetGlobalDcsLang(pSaveBuff->dcs);
-memset(&tConcatSms,(0x524+3575-0x131b),sizeof(T_zUfiSms_ConcatInfo));memset(&
-tGroupSms,(0xc46+2343-0x156d),sizeof(T_zUfiSms_GroupInfo));(void)
+memset(&tConcatSms,(0x542+8400-0x2612),sizeof(T_zUfiSms_ConcatInfo));memset(&
+tGroupSms,(0x15e9+3253-0x229e),sizeof(T_zUfiSms_GroupInfo));(void)
zUfiSms_FillGroupSms(pSaveBuff,&tGroupSms);iSmsLen=zUfiSms_FillConcatSms(
pSaveBuff,&tConcatSms);at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x52\x61\x77\x53\x6d\x73\x20\x74\x6f\x74\x61\x6c\x5f\x72\x65\x63\x65\x69\x76\x65\x72\x3d\x25\x64\x2c\x69\x53\x6d\x73\x4c\x65\x6e\x3d\x25\x64" "\n"
,tGroupSms.total_receiver,iSmsLen);for(tGroupSms.current_receiver=
-(0xc7+7712-0x1ee7);tGroupSms.current_receiver<tGroupSms.total_receiver;tGroupSms
-.current_receiver++){tConcatSms.current_sending=(0x477+7748-0x22bb);result=
-zUfiSms_SaveSmsToDb(pSaveBuff,&tConcatSms,&tGroupSms,iSmsLen);at_print(LOG_DEBUG
-,
+(0x138f+1395-0x1902);tGroupSms.current_receiver<tGroupSms.total_receiver;
+tGroupSms.current_receiver++){tConcatSms.current_sending=(0xd32+4744-0x1fba);
+result=zUfiSms_SaveSmsToDb(pSaveBuff,&tConcatSms,&tGroupSms,iSmsLen);at_print(
+LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x52\x61\x77\x53\x6d\x73\x20\x63\x75\x72\x72\x65\x6e\x74\x5f\x72\x65\x63\x65\x69\x76\x65\x72\x3d\x25\x64\x2c\x72\x65\x73\x75\x6c\x74\x3d\x25\x64" "\n"
,tGroupSms.current_receiver,result);}sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);if(g_zUfiSms_MemFullFlag[
@@ -127,16 +127,16 @@
memoryFullbeforeDelete=FALSE;BOOL unreadBeforeDelete=FALSE;if(NULL==ptDelBuff){
return WMS_CMD_FAILED;}at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x21\x21\x21\x21\x21\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x6d\x73\x21\x21\x63\x6f\x75\x6e\x74\x3a\x25\x64\x2f\x69\x64\x5b\x25\x64\x5d\x2e" "\n"
-,ptDelBuff->all_or_count,ptDelBuff->id[(0xcdd+6680-0x26f5)]);(void)
+,ptDelBuff->all_or_count,ptDelBuff->id[(0x1374+2002-0x1b46)]);(void)
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_ChangeMainState(
-SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0x354+6815-0x1df3),sizeof(
+SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0xf19+2717-0x19b6),sizeof(
T_zUfiSms_DelSms));if(ZUFI_FAIL==zUfiSms_SetDeleteInfo(ptDelBuff)){at_print(
LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x21\x21\x21\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x74\x44\x65\x6c\x65\x74\x65\x49\x6e\x66\x6f\x20\x66\x61\x69\x6c\x2e" "\n"
);zUfiSms_ChangeMainState(SMS_STATE_DELED);return WMS_CMD_FAILED;}at_print(
LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x21\x21\x21\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x74\x44\x65\x6c\x65\x74\x65\x49\x6e\x66\x6f\x20\x52\x65\x61\x64\x20\x74\x6f\x20\x44\x65\x6c\x65\x74\x65\x3a\x6e\x76\x5f\x63\x6f\x75\x6e\x74\x3a\x25\x64\x2f\x73\x69\x6d\x5f\x63\x6f\x75\x6e\x74\x3a\x25\x64\x2e" "\n"
-,g_zUfiSms_DelMsg.nv_count,g_zUfiSms_DelMsg.sim_count);if((0x4a0+154-0x53a)<
+,g_zUfiSms_DelMsg.nv_count,g_zUfiSms_DelMsg.sim_count);if((0x163+9074-0x24d5)<
g_zUfiSms_DelMsg.nv_count){if(g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]){
memoryFullbeforeDelete=TRUE;}unreadBeforeDelete=zUfiSms_IsUnreadSms(
ZTE_WMS_MEMORY_NV);result=(T_zUfiSms_CmdStatus)zUfiSms_DeleteNvSms();(void)
@@ -147,113 +147,114 @@
memoryFullbeforeDelete&&!g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]){
at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x20\x73\x65\x6e\x64\x20\x41\x54\x2b\x5a\x4d\x45\x4e\x41\x3d\x30" "\n"
-);zSms_SendZmenaReq((0x45b+8435-0x254e));}if(memoryFullbeforeDelete&&!
+);zSms_SendZmenaReq((0x53a+3079-0x1141));}if(memoryFullbeforeDelete&&!
g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]||unreadBeforeDelete&&!
zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_DEFAULT);}}if((0x1fda+1747-0x26ad)<g_zUfiSms_DelMsg.sim_count){result=
+MSG_SMS_DEFAULT);}}if((0x288+4582-0x146e)<g_zUfiSms_DelMsg.sim_count){result=
zUfiSms_DeleteSimSms();(void)zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_SIM);}
at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x6d\x73\x20\x72\x65\x73\x75\x6c\x74\x3d\x25\x64" "\n"
,result);return result;}T_zUfiSms_CmdStatus zUfiSms_ModifySmsTag(
-T_zUfiSms_ModifyFlag*ptModifyBuff){unsigned long i=(0x1f39+589-0x2186);
-T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0x1523+2084-0x1d15)]
-={(0x1f35+1594-0x256f)};if(NULL==ptModifyBuff){at_print(LOG_ERR,
+T_zUfiSms_ModifyFlag*ptModifyBuff){unsigned long i=(0x2e2+2467-0xc85);
+T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0x1c7+4916-0x14c9)]=
+{(0x2e1+6710-0x1d17)};if(NULL==ptModifyBuff){at_print(LOG_ERR,
"\x69\x6e\x70\x75\x74\x73\x20\x69\x73\x20\x6e\x75\x6c\x6c\x2e");return
-WMS_CMD_FAILED;}for(i=(0xe60+4861-0x215d);i<ptModifyBuff->total_id;i++){if(
-ptModifyBuff->id[i]<(0x78c+557-0x9b8)||ZUFI_FAIL==zUfiSms_UpdateSmsTagInDb(
+WMS_CMD_FAILED;}for(i=(0x1fef+844-0x233b);i<ptModifyBuff->total_id;i++){if(
+ptModifyBuff->id[i]<(0xf81+4585-0x2169)||ZUFI_FAIL==zUfiSms_UpdateSmsTagInDb(
ptModifyBuff->id[i],ptModifyBuff->tags)){result=WMS_CMD_FAILED;}else{result=
WMS_CMD_SUCCESS;}}if(ZUFI_FAIL==zUfiSms_GetStorePosById(
"\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65",acStorePos,sizeof(acStorePos),
-ptModifyBuff->id[(0xe80+3598-0x1c8e)])){return ZUFI_FAIL;}if((0xa55+6863-0x2524)
-==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_READING);}if((0x475+225-0x556)==strcmp(acStorePos,ZTE_WMS_DB_SIM_TABLE)
-&&ptModifyBuff->total_id>(0x25c+1945-0x9f5)){zUfiSms_ModifyModemSms(ptModifyBuff
-);}return result;}T_zUfiSms_CmdStatus zUfiSms_SetSmsPara(T_zUfiSms_ParaInfo*
-ptParaBuff){int atRes=(0x8+4341-0x10fd);CHAR sca[ZTE_WMS_ADDRESS_DIGIT_MAX_V01+
-(0x4dc+887-0x852)]={(0xc27+1530-0x1221)};CHAR store[(0xd39+4675-0x1f68)]={
-(0x250+1605-0x895)};CHAR defaultStore[(0x1107+2035-0x18c8)]={(0x20b2+770-0x23b4)
-};if(ptParaBuff==ZUFI_NULL){return WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=
-(0x7b7+2486-0x116d)){strncpy(sca,ptParaBuff->sca,sizeof(sca)-(0x266+6211-0x1aa8)
-);at_print(LOG_DEBUG,
+ptModifyBuff->id[(0xc71+528-0xe81)])){return ZUFI_FAIL;}if((0x1a42+193-0x1b03)==
+strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){zUfiSms_SendSmsStatusInfo(
+MSG_SMS_READING);}if((0x2021+1062-0x2447)==strcmp(acStorePos,
+ZTE_WMS_DB_SIM_TABLE)&&ptModifyBuff->total_id>(0xcd0+228-0xdb4)){
+zUfiSms_ModifyModemSms(ptModifyBuff);}return result;}T_zUfiSms_CmdStatus
+zUfiSms_SetSmsPara(T_zUfiSms_ParaInfo*ptParaBuff){int atRes=(0x113+4512-0x12b3);
+CHAR sca[ZTE_WMS_ADDRESS_DIGIT_MAX_V01+(0x1c42+1380-0x21a5)]={
+(0x3eb+5921-0x1b0c)};CHAR store[(0x1f00+1298-0x23fe)]={(0x10b3+762-0x13ad)};CHAR
+ defaultStore[(0x1ec4+2048-0x2692)]={(0x8e1+2233-0x119a)};if(ptParaBuff==
+ZUFI_NULL){return WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=
+(0x85a+7361-0x251b)){strncpy(sca,ptParaBuff->sca,sizeof(sca)-(0x8fd+420-0xaa0));
+at_print(LOG_DEBUG,
"\x73\x65\x6e\x64\x20\x5a\x41\x54\x5f\x43\x53\x43\x41\x5f\x53\x45\x54\x5f\x43\x4d\x44\x20\x6d\x65\x73\x73\x61\x67\x65\x20\x63\x73\x63\x61\x20\x69\x73\x20\x25\x73\x2e" "\n"
,sca);atRes=zSms_SetCscaReq(ptParaBuff->sca);if(atRes!=ZSMS_RESULT_OK){return
WMS_CMD_FAILED;}}sc_cfg_get(NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));
-if((*(ptParaBuff->default_store)!='\0')&&((0x42b+6284-0x1cb7)!=strcmp(
+if((*(ptParaBuff->default_store)!='\0')&&((0x7b4+4258-0x1856)!=strcmp(
defaultStore,ptParaBuff->default_store))){{strncpy(store,ptParaBuff->
-default_store,sizeof(store)-(0x1568+121-0x15e0));}atRes=zSms_SendCnmiReq(store);
-if(atRes!=ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0x712+6485-0x2066)==
+default_store,sizeof(store)-(0x3d1+4351-0x14cf));}atRes=zSms_SendCnmiReq(store);
+if(atRes!=ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0x78b+6957-0x22b7)==
zUfiSms_SetDbParameters(ptParaBuff)){at_print(LOG_ERR,
"\x73\x65\x74\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x20\x74\x6f\x20\x74\x61\x62\x6c\x65\x20\x66\x61\x69\x6c\x65\x64\x2e"
);return WMS_CMD_FAILED;}return WMS_CMD_SUCCESS;}void zUfiSms_CmgrNvSet(void){
-char sms_rec_flag[(0xb4c+4672-0x1d87)]={(0x1e84+1183-0x2323)};char remind_flag[
-(0x1138+318-0x1271)];int sms_count=(0x140+5727-0x179f);int remind_count=
-(0x5e2+3617-0x1403);memset(sms_rec_flag,(0x455+7095-0x200c),sizeof(sms_rec_flag)
+char sms_rec_flag[(0x92c+640-0xba7)]={(0x37f+8464-0x248f)};char remind_flag[
+(0x6c8+7314-0x2355)];int sms_count=(0x107d+1048-0x1495);int remind_count=
+(0x8a9+5894-0x1faf);memset(sms_rec_flag,(0xe78+5864-0x2560),sizeof(sms_rec_flag)
);sc_cfg_get(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag,sizeof(sms_rec_flag));
-sms_count=atoi(sms_rec_flag);if(sms_count<(0xdbc+4530-0x1f6e)||sms_count>INT_MAX
--(0x1425+3263-0x20e3)){at_print(LOG_ERR,
+sms_count=atoi(sms_rec_flag);if(sms_count<(0x4fa+1307-0xa15)||sms_count>INT_MAX-
+(0x10b0+4777-0x2358)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x73\x6d\x73\x5f\x63\x6f\x75\x6e\x74\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,sms_count);return;}memset(sms_rec_flag,(0x62c+6438-0x1f52),sizeof(sms_rec_flag)
+,sms_count);return;}memset(sms_rec_flag,(0xeb4+2272-0x1794),sizeof(sms_rec_flag)
);snprintf(sms_rec_flag,sizeof(sms_rec_flag),"\x25\x64",sms_count+
-(0x89f+2926-0x140c));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);
+(0x120+2393-0xa78));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);
sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED_LED,sms_rec_flag);memset(remind_flag,
-(0x77f+736-0xa5f),sizeof(remind_flag));snprintf(remind_flag,sizeof(remind_flag),
-"\x25\x64",remind_count+(0x94c+3313-0x163c));sc_cfg_set(
+(0xa3+8614-0x2249),sizeof(remind_flag));snprintf(remind_flag,sizeof(remind_flag)
+,"\x25\x64",remind_count+(0x10ea+4494-0x2277));sc_cfg_set(
ZTE_WMS_NVCONFIG_RECEVIED_REMIND,remind_flag);sc_cfg_set(NV_SMS_RECV_RESULT,
"\x6f\x6b");sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");}void zUfiSms_CdsRespProc(
T_zSms_SmsInd*ptRespData){unsigned char acFormatPdu[ZSMS_PDU_SIZE]={
-(0xd75+1346-0x12b7)};T_zUfiSms_DbStoreData tDbStoreData={(0x2c2+2998-0xe78)};int
- isPushSms=(0x35c+5898-0x1a66);if(strcmp(ptRespData->pdu,"")==
-(0x130c+2361-0x1c45)){CHAR srState[(0x41+5927-0x1736)]={(0x11c6+1762-0x18a8)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x673+8096-0x2613)!=strcmp(
-srState,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
+(0x8a9+3049-0x1492)};T_zUfiSms_DbStoreData tDbStoreData={(0xb37+80-0xb87)};int
+isPushSms=(0xaa+8409-0x2183);if(strcmp(ptRespData->pdu,"")==(0x161+9495-0x2678))
+{CHAR srState[(0x1f68+1766-0x261c)]={(0x37+8818-0x22a9)};sc_cfg_get(NV_SR_STATE,
+srState,sizeof(srState));if((0x1517+492-0x1703)!=strcmp(srState,
+"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_RECVED)
;}else{sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");}
return;}zUfiSms_GetReportStatus(ptRespData->pdu,&ptRespData->stat);(void)
String2Bytes(ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if(
-(0x1978+721-0x1c44)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
+(0xf04+3522-0x1cc1)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");
zUfiSms_Ack_new_msg(TRUE);return;}return;}int zUfiSms_CheckIfWholeSms(
T_zUfiSms_DbStoreData*data,SMS_MSG_INFO*pmsg){if(data->concat_sms!=
-(0x1431+2564-0x1e34)){return(0x459+5420-0x1985);}zUfiSms_GetCurrentRecvTotalSeq(
+(0x9e7+5569-0x1fa7)){return(0x1ed8+1968-0x2688);}zUfiSms_GetCurrentRecvTotalSeq(
data,pmsg);at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x68\x65\x63\x6b\x49\x66\x57\x68\x6f\x6c\x65\x53\x6d\x73\x20\x69\x64\x20\x3d\x20\x25\x73\x2c\x20\x74\x6f\x74\x61\x6c\x53\x65\x71\x20\x3d\x20\x25\x64\x2c\x72\x65\x66\x20\x3d\x25\x64\x2c\x74\x6f\x74\x61\x6c\x20\x3d\x25\x64\x2c\x20\x73\x65\x71\x3d\x25\x64" "\n"
-,pmsg->id,atoi(pmsg->total_seq),data->concat_info[(0x121a+3144-0x1e62)],data->
-concat_info[(0x837+5867-0x1f21)],data->concat_info[(0xf9f+1228-0x1469)]);if(data
-->concat_info[(0x957+4486-0x1adc)]==atoi(pmsg->total_seq)){return
-(0xa68+6787-0x24eb);}return-(0x6ca+3751-0x1570);}void
-zUfiSms_TrafficChangeSmsTag(T_zUfiSms_DbStoreData*data){CHAR smsNumber[
-(0x10b2+94-0x10de)]={(0x1cd0+1112-0x2128)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
-smsNumber,sizeof(smsNumber));if((0x3b8+282-0x4d2)==strcmp(smsNumber,data->number
-)){data->tag=WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=(0x281+6510-0x1bee);
-}}void zUfiSms_HandleTrafficSms(T_zUfiSms_DbStoreData*data){int iSmsId=
-(0x359+6694-0x1d7f);SMS_MSG_INFO msg={(0x3c4+5631-0x19c3)};CHAR smsNumber[
-(0x19b0+2201-0x2217)]={(0x234+4839-0x151b)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
+,pmsg->id,atoi(pmsg->total_seq),data->concat_info[(0x120+236-0x20c)],data->
+concat_info[(0x810+6607-0x21de)],data->concat_info[(0x242+6779-0x1cbb)]);if(data
+->concat_info[(0x170b+2978-0x22ac)]==atoi(pmsg->total_seq)){return
+(0x4f0+830-0x82e);}return-(0x7d9+1324-0xd04);}void zUfiSms_TrafficChangeSmsTag(
+T_zUfiSms_DbStoreData*data){CHAR smsNumber[(0x49+665-0x2b0)]={
+(0x100f+1753-0x16e8)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,smsNumber,sizeof(
+smsNumber));if((0x1eec+844-0x2238)==strcmp(smsNumber,data->number)){data->tag=
+WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=(0x20f+2486-0xbc4);}}void
+zUfiSms_HandleTrafficSms(T_zUfiSms_DbStoreData*data){int iSmsId=
+(0xb70+2469-0x1515);SMS_MSG_INFO msg={(0x183f+2483-0x21f2)};CHAR smsNumber[
+(0x991+4273-0x1a10)]={(0x91a+4197-0x197f)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
smsNumber,sizeof(smsNumber));at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x20\x74\x44\x62\x53\x74\x6f\x72\x65\x44\x61\x74\x61\x2e\x6e\x75\x6d\x62\x65\x72\x20\x3d\x20\x25\x73\x2c\x20\x74\x72\x61\x66\x66\x69\x63\x5f\x73\x6d\x73\x5f\x6e\x75\x6d\x62\x65\x72\x20\x3d\x20\x25\x73" "\n"
-,data->number,smsNumber);if((0x143+6525-0x1ac0)==strcmp(smsNumber,data->number))
-{if((0x8e6+1583-0xf15)!=zUfiSms_CheckIfWholeSms(data,&msg)){at_print(LOG_DEBUG,
+,data->number,smsNumber);if((0x232+680-0x4da)==strcmp(smsNumber,data->number)){
+if((0xf8+6634-0x1ae2)!=zUfiSms_CheckIfWholeSms(data,&msg)){at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x20\x63\x6d\x74\x20\x69\x6e\x64\x2c\x20\x72\x65\x63\x76\x20\x73\x6d\x73\x2c\x20\x62\x75\x74\x20\x6e\x6f\x74\x20\x77\x68\x6f\x6c\x65\x20\x73\x6d\x73\x2c\x20\x77\x61\x69\x74\x20\x74\x6f\x20\x72\x65\x63\x76\x20\x6e\x65\x78\x74\x20\x73\x65\x67" "\n"
);return;}sc_cfg_set(NV_TRAFFIC_RECV_SMS_ID,msg.id);sc_cfg_set(
NV_TRAFFIC_SMS_NUMBER,"\x30");at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x48\x61\x6e\x64\x6c\x65\x54\x72\x61\x66\x66\x69\x63\x53\x6d\x73\x20\x20\x20\x74\x72\x61\x66\x66\x69\x63\x5f\x72\x65\x63\x76\x5f\x73\x6d\x73\x5f\x69\x64\x20\x3d\x20\x25\x73" "\n"
,msg.id);}}void zUfiSms_CmtRespProc(T_zSms_SmsInd*ptRespData){zUfiSms_StoreType
iStorePos=WMS_STORAGE_TYPE_NV_V01;unsigned char acFormatPdu[ZSMS_PDU_SIZE]={
-(0x1c8+9313-0x2629)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x1022+3206-0x1ca8);SMS_PARAM one_sms={(0x16f3+2775-0x21ca)};int
-unread_sms_before_recv_new_sms=(0x415+7525-0x217a);memset(&tDbStoreData,
-(0xf9d+1583-0x15cc),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x1249+4380-0x2365)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x61b+8049-0x258c);SMS_PARAM one_sms={(0x167b+2931-0x21ee)};int
+unread_sms_before_recv_new_sms=(0xb43+2680-0x15bb);memset(&tDbStoreData,
+(0x14b0+3-0x14b3),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x45\x6e\x74\x65\x72\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2f\x70\x64\x75\x3a\x25\x73\x21" "\n"
,ptRespData->index,ptRespData->stat,ptRespData->length,ptRespData->pdu);if(
-strcmp(ptRespData->pdu,"")==(0x1425+817-0x1756)){CHAR srState[
-(0xd5a+5709-0x2375)]={(0x1857+3186-0x24c9)};sc_cfg_get(NV_SR_STATE,srState,
-sizeof(srState));if((0x234a+591-0x2599)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0x281+2982-0xe27)){CHAR srState[(0x898+7733-0x269b)
+]={(0x1283+2300-0x1b7f)};sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if(
+(0xabb+3363-0x17de)!=strcmp(srState,
"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_RECVED)
;}else{sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");}
return;}isPushSms=DecodePushPdu(ptRespData->pdu,&one_sms);at_print(LOG_DEBUG,
"\x5b\x73\x6d\x73\x5d\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x20\x25\x64" "\n"
,isPushSms);if(SMS_NOTIFICATION==isPushSms){BakNotificationSms(one_sms.TP_UD,
-strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x100+4447-0x125f));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x716+7637-0x24eb));}if(
SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
,one_sms.index);at_print(LOG_DEBUG,
@@ -265,32 +266,32 @@
,one_sms.TP_CurrentPieceNum);zUfiSms_ChangeMainState(SMS_STATE_RECVED);
zUfiSms_Ack_new_msg(TRUE);return;}zUfiSms_GetReportStatus(ptRespData->pdu,&
ptRespData->stat);(void)String2Bytes(ptRespData->pdu,acFormatPdu,(int)strlen(
-ptRespData->pdu));if((0x10a5+1524-0x1694)==ptRespData->stat){(void)
+ptRespData->pdu));if((0x7e3+1000-0xbc6)==ptRespData->stat){(void)
zUfiSms_HandleReport(acFormatPdu);sc_cfg_set(NV_SR_STATE,
"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");zUfiSms_Ack_new_msg(TRUE);return
;}(void)zUfiSms_DecodeSmsData(&tDbStoreData,ptRespData->index,iStorePos,(
T_SmsStatus)ptRespData->stat,WMS_MESSAGE_FORMAT_GW_PP_V01,ptRespData->length,
acFormatPdu);if(tDbStoreData.sms_class==WMS_MESSAGE_CLASS_2){iStorePos=
WMS_STORAGE_TYPE_UIM_V01;}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){
-unread_sms_before_recv_new_sms=(0x408+738-0x6e9);}else{
-unread_sms_before_recv_new_sms=(0x1cbb+1894-0x2421);}zUfiSms_TrafficChangeSmsTag
-(&tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,
-iStorePos,-(0x395+2205-0xc31))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
-(0xdcf+4704-0x202e));return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){
+unread_sms_before_recv_new_sms=(0x158f+915-0x1921);}else{
+unread_sms_before_recv_new_sms=(0x429+5170-0x185b);}zUfiSms_TrafficChangeSmsTag(
+&tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,
+iStorePos,-(0x598+7648-0x2377))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
+(0x1f0+5788-0x188b));return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){
zUfiSms_Ack_new_msg(TRUE);}zUfiSms_CmgrNvSet();zUfiSms_CheckMemoryFull(
ZTE_WMS_MEMORY_NV);zUfiSms_ChangeMainState(SMS_STATE_RECVED);
zUfiSms_SendSmsStatusInfo(MSG_SMS_NEW);zUfiSms_HandleTrafficSms(&tDbStoreData);
return;}void zUfiSms_ZmgrRespProc(T_zSms_SmsInd*ptRespData){zUfiSms_StoreType
iStorePos=WMS_STORAGE_TYPE_NV_V01;unsigned char acFormatPdu[ZSMS_PDU_SIZE]={
-(0xf36+3440-0x1ca6)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x1dd+3665-0x102e);SMS_PARAM one_sms={(0xf9d+2700-0x1a29)};CHAR defaultStore[
-(0x9e2+3297-0x1691)]={(0x3d9+1672-0xa61)};memset(&tDbStoreData,
-(0x6f6+6009-0x1e6f),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x161a+440-0x17d2)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0xa8+3643-0xee3);SMS_PARAM one_sms={(0x1074+3175-0x1cdb)};CHAR defaultStore[
+(0x1725+3866-0x260d)]={(0xc53+2116-0x1497)};memset(&tDbStoreData,
+(0x10b+4032-0x10cb),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x45\x6e\x74\x65\x72\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2f\x70\x64\x75\x3a\x25\x73\x21" "\n"
,ptRespData->index,ptRespData->stat,ptRespData->length,ptRespData->pdu);if(
-strcmp(ptRespData->pdu,"")==(0x952+2525-0x132f)){CHAR srState[
-(0x3df+5717-0x1a02)]={(0x4a4+6317-0x1d51)};sc_cfg_get(NV_SR_STATE,srState,sizeof
-(srState));if((0x6c6+2965-0x125b)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0x45b+3952-0x13cb)){CHAR srState[(0x1b8+3287-0xe5d)
+]={(0x883+1605-0xec8)};sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if(
+(0x2ed+5762-0x196f)!=strcmp(srState,
"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_RECVED)
;}else{sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");}
@@ -299,7 +300,50 @@
,isPushSms);at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x25\x64\x20" "\n"
,isPushSms);if(SMS_NOTIFICATION==isPushSms){BakNotificationSms(one_sms.TP_UD,
-strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0xc2f+6373-0x2514));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x494+3514-0x124e));}if(
+SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
+"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
+,one_sms.index);at_print(LOG_DEBUG,
+"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x52\x65\x66\x65\x72\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
+,one_sms.TP_ReferNum);at_print(LOG_DEBUG,
+"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x41\x6c\x6c\x50\x69\x65\x63\x65\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
+,one_sms.TP_AllPieceNum);at_print(LOG_DEBUG,
+"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x43\x75\x72\x72\x65\x6e\x74\x50\x69\x65\x63\x65\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
+,one_sms.TP_CurrentPieceNum);zUfiSms_ChangeMainState(SMS_STATE_RECVED);return;}
+zUfiSms_GetReportStatus(ptRespData->pdu,&ptRespData->stat);(void)String2Bytes(
+ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if((0xb9b+46-0xbc4)==
+ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);sc_cfg_set(NV_SR_STATE
+,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");return;}sc_cfg_get(
+NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if((0x1201+3926-0x2157)==
+strcmp(defaultStore,"\x73\x69\x6d")){iStorePos=WMS_STORAGE_TYPE_UIM_V01;}(void)
+zUfiSms_DecodeSmsData(&tDbStoreData,ptRespData->index,iStorePos,(T_SmsStatus)
+ptRespData->stat,WMS_MESSAGE_FORMAT_GW_PP_V01,ptRespData->length,acFormatPdu);if
+(tDbStoreData.sms_class==WMS_MESSAGE_CLASS_2){iStorePos=WMS_STORAGE_TYPE_UIM_V01
+;}zUfiSms_TrafficChangeSmsTag(&tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==
+zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-(0x125b+4441-0x23b3))){return;}if(
+tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}zUfiSms_CmgrNvSet();
+zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_ChangeMainState(
+SMS_STATE_RECVED);zUfiSms_HandleTrafficSms(&tDbStoreData);return;}void
+zUfiSms_CmgrRespProc(T_zSms_SmsInd*ptRespData){zUfiSms_StoreType iStorePos=
+WMS_STORAGE_TYPE_NV_V01;unsigned char acFormatPdu[ZSMS_PDU_SIZE]={
+(0xa00+5639-0x2007)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x155a+2930-0x20cc);SMS_PARAM one_sms={(0x10bc+4972-0x2428)};int
+unread_sms_before_recv_new_sms=(0x91a+6395-0x2215);memset(&tDbStoreData,
+(0x9d0+3299-0x16b3),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+"\x5b\x53\x4d\x53\x5d\x20\x45\x6e\x74\x65\x72\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2f\x70\x64\x75\x3a\x25\x73\x21" "\n"
+,ptRespData->index,ptRespData->stat,ptRespData->length,ptRespData->pdu);
+zUfiSms_SendSmsStatusInfo(MSG_SMS_READING);if(strcmp(ptRespData->pdu,"")==
+(0x5b3+5167-0x19e2)){CHAR srState[(0x6a4+7228-0x22ae)]={(0xc7b+4980-0x1fef)};
+sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x1302+4963-0x2665)!=strcmp(
+srState,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
+NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_RECVED)
+;}else{sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");}
+return;}isPushSms=DecodePushPdu(ptRespData->pdu,&one_sms);at_print(LOG_DEBUG,
+"\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x20\x25\x64" "\n"
+,isPushSms);at_print(LOG_DEBUG,
+"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x25\x64\x20" "\n"
+,isPushSms);if(SMS_NOTIFICATION==isPushSms){BakNotificationSms(one_sms.TP_UD,
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x239a+63-0x23d9));}if(
SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
,one_sms.index);at_print(LOG_DEBUG,
@@ -311,123 +355,81 @@
,one_sms.TP_CurrentPieceNum);zUfiSms_ChangeMainState(SMS_STATE_RECVED);return;}
zUfiSms_GetReportStatus(ptRespData->pdu,&ptRespData->stat);(void)String2Bytes(
ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if(
-(0x154c+3045-0x212c)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
-sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");return;}
-sc_cfg_get(NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if(
-(0x3+856-0x35b)==strcmp(defaultStore,"\x73\x69\x6d")){iStorePos=
-WMS_STORAGE_TYPE_UIM_V01;}(void)zUfiSms_DecodeSmsData(&tDbStoreData,ptRespData->
-index,iStorePos,(T_SmsStatus)ptRespData->stat,WMS_MESSAGE_FORMAT_GW_PP_V01,
-ptRespData->length,acFormatPdu);if(tDbStoreData.sms_class==WMS_MESSAGE_CLASS_2){
-iStorePos=WMS_STORAGE_TYPE_UIM_V01;}zUfiSms_TrafficChangeSmsTag(&tDbStoreData);
-if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-
-(0xe74+5337-0x234c))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
-zUfiSms_CmgrNvSet();zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);
-zUfiSms_ChangeMainState(SMS_STATE_RECVED);zUfiSms_HandleTrafficSms(&tDbStoreData
-);return;}void zUfiSms_CmgrRespProc(T_zSms_SmsInd*ptRespData){zUfiSms_StoreType
-iStorePos=WMS_STORAGE_TYPE_NV_V01;unsigned char acFormatPdu[ZSMS_PDU_SIZE]={
-(0xbf2+6580-0x25a6)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x1826+1574-0x1e4c);SMS_PARAM one_sms={(0x1ef8+1287-0x23ff)};int
-unread_sms_before_recv_new_sms=(0x1a39+1052-0x1e55);memset(&tDbStoreData,
-(0xa17+2512-0x13e7),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
-"\x5b\x53\x4d\x53\x5d\x20\x45\x6e\x74\x65\x72\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2f\x70\x64\x75\x3a\x25\x73\x21" "\n"
-,ptRespData->index,ptRespData->stat,ptRespData->length,ptRespData->pdu);
-zUfiSms_SendSmsStatusInfo(MSG_SMS_READING);if(strcmp(ptRespData->pdu,"")==
-(0xc12+5644-0x221e)){CHAR srState[(0xf56+5949-0x2661)]={(0x6df+8226-0x2701)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x170+4053-0x1145)!=strcmp(
-srState,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
-NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_RECVED)
-;}else{sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");}
-return;}isPushSms=DecodePushPdu(ptRespData->pdu,&one_sms);at_print(LOG_DEBUG,
-"\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x20\x25\x64" "\n"
-,isPushSms);at_print(LOG_DEBUG,
-"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x25\x64\x20" "\n"
-,isPushSms);if(SMS_NOTIFICATION==isPushSms){BakNotificationSms(one_sms.TP_UD,
-strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x227+2021-0xa0c));}if(
-SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
-"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
-,one_sms.index);at_print(LOG_DEBUG,
-"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x52\x65\x66\x65\x72\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
-,one_sms.TP_ReferNum);at_print(LOG_DEBUG,
-"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x41\x6c\x6c\x50\x69\x65\x63\x65\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
-,one_sms.TP_AllPieceNum);at_print(LOG_DEBUG,
-"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x43\x75\x72\x72\x65\x6e\x74\x50\x69\x65\x63\x65\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
-,one_sms.TP_CurrentPieceNum);zUfiSms_ChangeMainState(SMS_STATE_RECVED);return;}
-zUfiSms_GetReportStatus(ptRespData->pdu,&ptRespData->stat);(void)String2Bytes(
-ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if((0x360+5796-0x19ff)
-==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);sc_cfg_set(
-NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");return;}(void)
-zUfiSms_DecodeSmsData(&tDbStoreData,ptRespData->index,iStorePos,(T_SmsStatus)
-ptRespData->stat,WMS_MESSAGE_FORMAT_GW_PP_V01,ptRespData->length,acFormatPdu);if
-(tDbStoreData.sms_class==WMS_MESSAGE_CLASS_2){iStorePos=WMS_STORAGE_TYPE_UIM_V01
-;}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){unread_sms_before_recv_new_sms=
-(0x11ca+1880-0x1921);}else{unread_sms_before_recv_new_sms=(0xd38+315-0xe73);}if(
-ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-
-(0x445+4752-0x16d4))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
-zUfiSms_CmgrNvSet();zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);
-zUfiSms_ChangeMainState(SMS_STATE_RECVED);return;}void zUfiSms_CmgsRespProc(VOID
-){T_zUfiSms_StatusInfo tStatusInfo={(0x1b75+14-0x1b83)};g_zUfiSms_DbStoreData->
-msg_displaymode=g_displaymode;if(g_zUfiSms_DbStoreData->msg_displaymode!=
-(0x1422+4451-0x2584)){if((0xc6c+5275-0x2107)==zUfiSms_WriteSmsToDb(&
-g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x5f0+5735-0x1c56)],
-WMS_STORAGE_TYPE_NV_V01,-(0x1aa5+2189-0x2331))){g_zUfiSms_MsgRefer++;(void)
-zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}}printf(
+(0x1301+3511-0x20b3)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
+sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");return;}(
+void)zUfiSms_DecodeSmsData(&tDbStoreData,ptRespData->index,iStorePos,(
+T_SmsStatus)ptRespData->stat,WMS_MESSAGE_FORMAT_GW_PP_V01,ptRespData->length,
+acFormatPdu);if(tDbStoreData.sms_class==WMS_MESSAGE_CLASS_2){iStorePos=
+WMS_STORAGE_TYPE_UIM_V01;}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){
+unread_sms_before_recv_new_sms=(0x348+100-0x3ab);}else{
+unread_sms_before_recv_new_sms=(0xd28+4110-0x1d36);}if(ZTE_WMS_NV_MEMORY_FULL==
+zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-(0xbb2+5255-0x2038))){return;}if(
+tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}zUfiSms_CmgrNvSet();
+zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_ChangeMainState(
+SMS_STATE_RECVED);return;}void zUfiSms_CmgsRespProc(VOID){T_zUfiSms_StatusInfo
+tStatusInfo={(0xd54+6250-0x25be)};g_zUfiSms_DbStoreData->msg_displaymode=
+g_displaymode;if(g_zUfiSms_DbStoreData->msg_displaymode!=(0x693+2856-0x11ba)){if
+((0x1789+1526-0x1d7f)==zUfiSms_WriteSmsToDb(&g_zUfiSms_DbStoreData[
+g_zUfiSms_CurConcatSegNo-(0x12a1+3830-0x2196)],WMS_STORAGE_TYPE_NV_V01,-
+(0x95c+353-0xabc))){g_zUfiSms_MsgRefer++;(void)zUfiSms_SetMaxReference(
+g_zUfiSms_MsgRefer);}}printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x67\x73\x52\x73\x70\x20\x73\x65\x67\x4e\x6f\x3a\x25\x64\x2f\x54\x6f\x74\x61\x6c\x4e\x75\x6d\x3a\x25\x64\x2f\x46\x61\x69\x6c\x4e\x75\x6d\x3a\x25\x64\x2e" "\n"
,g_zUfiSms_CurConcatSegNo,g_zUfiSms_ConcatTotalNum,g_zUfiSms_SendFailedCount);if
(g_zUfiSms_CurConcatSegNo==g_zUfiSms_ConcatTotalNum){g_zUfiSms_CurConcatSegNo=
-(0x16b+1106-0x5bd);memset((void*)&tStatusInfo,(0x2b3+1904-0xa23),sizeof(
+(0xf39+3895-0x1e70);memset((void*)&tStatusInfo,(0x179d+2646-0x21f3),sizeof(
T_zUfiSms_StatusInfo));tStatusInfo.err_code=ZTE_SMS_CMS_NONE;tStatusInfo.
send_failed_count=g_zUfiSms_SendFailedCount;tStatusInfo.delete_failed_count=
-(0x83a+3062-0x1430);if(g_zUfiSms_SendFailedCount==(0x9aa+6396-0x22a6)){
+(0x1047+5114-0x2441);if(g_zUfiSms_SendFailedCount==(0x17a2+193-0x1863)){
tStatusInfo.cmd_status=WMS_CMD_SUCCESS;sc_cfg_set(NV_SMS_SEND_RESULT,"\x6f\x6b")
;}else{tStatusInfo.cmd_status=WMS_CMD_FAILED;sc_cfg_set(NV_SMS_SEND_RESULT,
"\x66\x61\x69\x6c");}tStatusInfo.cmd=WMS_SMS_CMD_MSG_SEND;(void)
zUfiSms_SetCmdStatus(&tStatusInfo);sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);if(g_zUfiSms_MemFullFlag[
WMS_STORAGE_TYPE_NV_V01]){zUfiSms_SendSmsStatusInfo(MSG_SMS_DEFAULT);}}else{}}
-int zte_fota_notifyPushMsg(int cmd){FOTA_MSG_BUF msg={(0x11ab+4421-0x22f0)};int
-errs=(0x17db+3580-0x25d7);key_t req_id=ftok(
+int zte_fota_notifyPushMsg(int cmd){FOTA_MSG_BUF msg={(0x2cf+5594-0x18a9)};int
+errs=(0x1030+2981-0x1bd5);key_t req_id=ftok(
"\x2f\x6d\x65\x64\x69\x61\x2f\x7a\x74\x65\x2f\x7a\x74\x65\x5f\x73\x6f\x63\x6b\x65\x74\x2f\x66\x6f\x74\x61\x5f\x64\x6d\x61\x70\x70\x5f\x6d\x73\x67"
-,(0xbcf+5683-0x2201));int msgid=msgget(req_id,(0xb9a+1919-0x1319));if(msgid!=-
-(0x1c11+878-0x1f7e)){msg.mtype=(0x5d1+3502-0x137e);msg.mtext[(0xf42+3073-0x1b43)
-]=WEBUI_NOTIFY_PUSH_MSG_;errs=msgsnd(msgid,&msg,sizeof(msg)-sizeof(long),
-(0x3c0+2358-0xcf6));}return(errs<(0x1661+356-0x17c5)?(0x1116+825-0x144f):
-(0x189b+2402-0x21fc));}
-#if (0x10f8+5399-0x260f)
+,(0x132+3038-0xd0f));int msgid=msgget(req_id,(0xf8d+1348-0x14d1));if(msgid!=-
+(0xa06+4450-0x1b67)){msg.mtype=(0x1c30+1280-0x212f);msg.mtext[
+(0xca4+3003-0x185f)]=WEBUI_NOTIFY_PUSH_MSG_;errs=msgsnd(msgid,&msg,sizeof(msg)-
+sizeof(long),(0xc9b+6533-0x2620));}return(errs<(0xf35+2005-0x170a)?
+(0x24+7127-0x1bfb):(0x889+6241-0x20e9));}
+#if (0x453+2261-0xd28)
int atSms_SendCmglReq(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){return
zSvr_SendAtSyn(ZAT_CMGL_CMD,"\x41\x54\x2b\x43\x4d\x47\x4c\x3d\x30" "\r\n",cid,
pAtRst,atRstSize);}VOID atSms_RecvCmglRsp(T_zAt_AtRes*pResLine){return;}
#endif
-#if (0xd4d+1912-0x14c5)
+#if (0x27c+7086-0x1e2a)
int atSms_SendZmglReq(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){int res
-=(0x8c3+5452-0x1e0f);pthread_mutex_lock(&smsdb_mutex);res=zSvr_SendAtSyn(
+=(0x1245+1580-0x1871);pthread_mutex_lock(&smsdb_mutex);res=zSvr_SendAtSyn(
ZAT_ZMGL_CMD,"\x41\x54\x2b\x5a\x4d\x47\x4c\x3d\x34" "\r\n",cid,pAtRst,atRstSize)
;pthread_mutex_unlock(&smsdb_mutex);return res;}VOID atSms_initAtOk(VOID){
-T_zUfiSms_StatusInfo tStatus={(0xe7f+689-0x1130)};sc_cfg_set(NV_SMS_LOAD_RESULT,
-"\x6f\x6b");tStatus.cmd_status=WMS_CMD_SUCCESS;tStatus.cmd=WMS_SMS_CMD_INIT;(
-void)zUfiSms_SetCmdStatus(&tStatus);zUfiSms_ChangeMainState(SMS_STATE_LOADED);}
-int atSms_initAtErr(UINT8*pErrCode){T_zUfiSms_StatusInfo tStatus={
-(0xb+346-0x165)};sc_cfg_set(NV_SMS_LOAD_RESULT,"\x66\x61\x69\x6c");
+T_zUfiSms_StatusInfo tStatus={(0x1259+2020-0x1a3d)};sc_cfg_set(
+NV_SMS_LOAD_RESULT,"\x6f\x6b");tStatus.cmd_status=WMS_CMD_SUCCESS;tStatus.cmd=
+WMS_SMS_CMD_INIT;(void)zUfiSms_SetCmdStatus(&tStatus);zUfiSms_ChangeMainState(
+SMS_STATE_LOADED);}int atSms_initAtErr(UINT8*pErrCode){T_zUfiSms_StatusInfo
+tStatus={(0x1c4d+404-0x1de1)};sc_cfg_set(NV_SMS_LOAD_RESULT,"\x66\x61\x69\x6c");
zUfiSms_ChangeMainState(SMS_STATE_LOADED);tStatus.cmd_status=WMS_CMD_FAILED;
tStatus.cmd=WMS_SMS_CMD_INIT;(void)zUfiSms_SetCmdStatus(&tStatus);return FALSE;}
VOID atSms_RecvZmglRsp(T_zAt_AtRes*pResLine){static T_zUfiSms_SmsItem tSmsPara={
-(0x93b+4620-0x1b47)};printf(
+(0x6d4+7440-0x23e4)};printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x6c\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->result);if(pResLine->pduFlag==ZAT_ATRES_PDU_FLAG){
zUfiSms_CmglRespProc(pResLine,&tSmsPara);}else{memset(&tSmsPara,
-(0xb86+3465-0x190f),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
-->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x60a+629-0x87e));printf(
+(0x127f+2660-0x1ce3),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
+->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x14c3+3664-0x2312));printf(
"\x5b\x53\x4d\x53\x5d\x20\x5a\x6d\x67\x6c\x20\x52\x65\x73\x70\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2e" "\n"
,tSmsPara.index,tSmsPara.stat,tSmsPara.length);}}int atSms_SendCmgrReq(PSTR
-pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0xdba+5849-0x247f)
-]={(0x78a+8001-0x26cb)};iSmsIndex=atoi(pAtCmdPara);printf(
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x487+5419-0x199e)
+]={(0xbaa+3942-0x1b10)};iSmsIndex=atoi(pAtCmdPara);printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6d\x67\x72\x52\x65\x71\x20\x47\x65\x74\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2e" "\n"
,iSmsIndex);snprintf(pAtcmdStr,sizeof(pAtcmdStr),
"\x41\x54\x2b\x43\x4d\x47\x52\x3d\x25\x73" "\r\n",pAtCmdPara);return
zSvr_SendAtSyn(ZAT_CMGR_CMD,pAtcmdStr,cid,pAtRst,atRstSize);}VOID
atSms_RecvCmgrRsp(T_zAt_AtRes*pResLine){
-#if (0x622+7928-0x251a)
-static T_zUfiSms_SmsItem tSmsPara={(0xcf3+3085-0x1900)};T_zUfiSms_CmgrSetRsp
-tCmgrRsp={(0xea8+4032-0x1e68)};printf(
+#if (0xb34+2055-0x133b)
+static T_zUfiSms_SmsItem tSmsPara={(0x2c3+1882-0xa1d)};T_zUfiSms_CmgrSetRsp
+tCmgrRsp={(0x246c+184-0x2524)};printf(
"\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x67\x72\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->result){printf(
@@ -436,14 +438,14 @@
.stat=tSmsPara.stat;sscanf(pResLine->resParas,"\x25\x35\x30\x30\x73",tCmgrRsp.
pdu);zUfiSms_CmgrRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();sc_cfg_set(
"\x73\x6d\x73\x5f\x72\x65\x63\x76\x5f\x72\x65\x73\x75\x6c\x74","\x6f\x6b");}else
-{memset(&tSmsPara,(0x1b1+7193-0x1dca),sizeof(T_zUfiSms_SmsItem));(void)
-zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0x19b5+2555-0x23ae));tSmsPara.
+{memset(&tSmsPara,(0x722+4536-0x18da),sizeof(T_zUfiSms_SmsItem));(void)
+zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0x21c4+552-0x23ea));tSmsPara.
index=iSmsIndex;printf(
"\x3d\x3d\x3d\x3d\x3d\x3d\x43\x6d\x67\x72\x20\x52\x65\x73\x70\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2e" "\n"
,tSmsPara.index,tSmsPara.stat,tSmsPara.length);}
#endif
}int atSms_SendZmgrReq(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR
-pAtcmdStr[(0xc60+1789-0x1349)]={(0x681+3045-0x1266)};iSmsIndex=atoi(pAtCmdPara);
+pAtcmdStr[(0x12d9+163-0x1368)]={(0xb93+6784-0x2613)};iSmsIndex=atoi(pAtCmdPara);
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x5a\x6d\x67\x72\x52\x65\x71\x20\x47\x65\x74\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2e" "\n"
,iSmsIndex);snprintf(pAtcmdStr,sizeof(pAtcmdStr),
@@ -456,8 +458,8 @@
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x72\x45\x72\x72\x20\x20\x53\x4d\x53\x20\x7a\x6d\x67\x72\x20\x69\x73\x20\x66\x61\x69\x6c" "\n"
);{sc_cfg_set(NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(
SMS_STATE_RECVED);}}VOID atSms_RecvZmgrRsp(T_zAt_AtRes*pResLine){static
-T_zUfiSms_SmsItem tSmsPara={(0x918+4792-0x1bd0)};T_zUfiSms_CmgrSetRsp tCmgrRsp={
-(0x278+5758-0x18f6)};printf(
+T_zUfiSms_SmsItem tSmsPara={(0x433+5184-0x1873)};T_zUfiSms_CmgrSetRsp tCmgrRsp={
+(0x5a1+1109-0x9f6)};printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x72\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->result){printf(
@@ -465,56 +467,56 @@
);return;}tCmgrRsp.index=tSmsPara.index;tCmgrRsp.length=tSmsPara.length;tCmgrRsp
.stat=tSmsPara.stat;sscanf(pResLine->resParas,"\x25\x35\x30\x30\x73",tCmgrRsp.
pdu);zUfiSms_ZmgrRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();sc_cfg_set(
-NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,(0xc23+4538-0x1ddd),sizeof
+NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,(0x21d1+512-0x23d1),sizeof
(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine->resParas,sizeof(pResLine
-->resParas),&tSmsPara,(0x1594+3771-0x244d));tSmsPara.index=iSmsIndex;printf(
+->resParas),&tSmsPara,(0x38d+2839-0xea2));tSmsPara.index=iSmsIndex;printf(
"\x5b\x53\x4d\x53\x5d\x20\x5a\x6d\x67\x72\x20\x52\x65\x73\x70\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2e" "\n"
,tSmsPara.index,tSmsPara.stat,tSmsPara.length);}}int atSms_SendCmgdReq(PSTR
-pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x41b+5674-0x1a31)
-]={(0x22f6+699-0x25b1)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[
+(0x1547+4480-0x26b3)]={(0x791+464-0x961)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
"\x41\x54\x2b\x43\x4d\x47\x44\x3d\x25\x73" "\r\n",pAtCmdPara);return
zSvr_SendAtSyn(ZAT_CMGD_CMD,pAtcmdStr,cid,pAtRst,atRstSize);}VOID
-atSms_RecvCmgdOk(VOID){CHAR strUsed[(0x49+4676-0x1283)]={(0x946+3879-0x186d)};
-int used=(0x350+8264-0x2398);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+atSms_RecvCmgdOk(VOID){CHAR strUsed[(0x7af+2741-0x125a)]={(0x7fa+542-0xa18)};int
+ used=(0x28b+2367-0xbca);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x65\x74\x20\x73\x69\x6d\x5f\x64\x65\x6c\x5f\x72\x65\x73\x75\x6c\x74\x20\x74\x6f\x20\x4f\x4b\x2e\x20" "\n"
);sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
-strUsed)-(0x153b+1173-0x19cf);if(used<(0x88d+7560-0x2615)){used=
-(0x19b1+1125-0x1e16);}memset(&strUsed,(0x23a+5867-0x1925),(0x1129+2095-0x194e));
+strUsed)-(0xa28+1753-0x1100);if(used<(0x54+7394-0x1d36)){used=
+(0x1771+195-0x1834);}memset(&strUsed,(0x476+6369-0x1d57),(0x760+3411-0x14a9));
snprintf(strUsed,sizeof(strUsed),"\x25\x64",used);sc_cfg_set(
ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed);}VOID atSms_RecvCmgdErr(VOID){sc_cfg_set
(NV_SMS_DEL_RESULT,"\x66\x61\x69\x6c");printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x65\x74\x20\x73\x69\x6d\x5f\x64\x65\x6c\x5f\x72\x65\x73\x75\x6c\x74\x20\x74\x6f\x20\x66\x61\x69\x6c\x2e\x20" "\n"
-);}VOID atSms_RecvCmgdFinish(VOID){char StrValue[(0x5bf+6103-0x1d8c)]={
-(0x17fc+2285-0x20e9)};CHAR strTotal[(0xe34+4889-0x2143)]={(0xa54+6038-0x21ea)};
-CHAR strUsed[(0x1707+3518-0x24bb)]={(0x1500+119-0x1577)};int total=
-(0xf5d+1728-0x161d);int used=(0x87c+3183-0x14eb);int remain=(0x1b57+2824-0x265f)
-;sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
+);}VOID atSms_RecvCmgdFinish(VOID){char StrValue[(0x539+1707-0xbda)]={
+(0xc39+1095-0x1080)};CHAR strTotal[(0x1a49+412-0x1bdb)]={(0x9a8+1129-0xe11)};
+CHAR strUsed[(0x440+1604-0xa7a)]={(0xbb6+3159-0x180d)};int total=
+(0x1803+431-0x19b2);int used=(0xd12+431-0xec1);int remain=(0x18a+4209-0x11fb);
+sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
strUsed);sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,strTotal,sizeof(strTotal));
-total=atoi(strTotal);remain=total-used;if(remain<(0x7a0+1256-0xc88)){remain=
-(0x4c1+2311-0xdc8);}memset(&StrValue,(0x900+2562-0x1302),(0x1c44+2442-0x25c4));
+total=atoi(strTotal);remain=total-used;if(remain<(0x5ef+4834-0x18d1)){remain=
+(0x2c1+7943-0x21c8);}memset(&StrValue,(0x3b5+4643-0x15d8),(0x12bf+441-0x146e));
snprintf(StrValue,sizeof(StrValue),"\x25\x64",remain);sc_cfg_set(
ZTE_WMS_NVCONFIG_SIM_CARD_REMAIN,StrValue);printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x69\x6d\x53\x6d\x73\x20\x75\x73\x65\x64\x3d\x25\x64\x2c\x72\x65\x6d\x61\x69\x6e\x3d\x25\x64\x2c\x74\x6f\x74\x61\x6c\x3d\x25\x64" "\n"
,used,remain,total);zUfiSms_ChangeMainState(SMS_STATE_DELED);sc_cfg_set(
NV_SMS_DB_CHANGE,"\x31");}int atSms_SendCmgsReq(PSTR pAtCmdPara,int cid,PSTR
-pAtRst,int atRstSize){int atRes=(0x5+3414-0xd5b);CHAR pAtcmdStr[ZSMS_PDU_SIZE]={
-(0x344+806-0x66a)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+pAtRst,int atRstSize){int atRes=(0x176+4899-0x1499);CHAR pAtcmdStr[ZSMS_PDU_SIZE
+]={(0xc83+1061-0x10a8)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
"\x41\x54\x2b\x43\x4d\x47\x53\x3d\x25\x64" "\r\n",g_zUfiSms_FinalCmgsBuf.length)
;atRes=zSvr_SendAtSyn(ZAT_CMGS_CMD,pAtcmdStr,cid,pAtRst,atRstSize);if(atRes!=
-ZAT_RESULT_SMS){return atRes;}memset(pAtcmdStr,(0xa89+240-0xb79),ZSMS_PDU_SIZE);
-if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-(0x28f+1874-0x9e0)){memcpy(
-pAtcmdStr,g_zUfiSms_FinalCmgsBuf.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));}else{
-printf(
+ZAT_RESULT_SMS){return atRes;}memset(pAtcmdStr,(0x1d50+1701-0x23f5),
+ZSMS_PDU_SIZE);if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-
+(0x1a5b+1634-0x20bc)){memcpy(pAtcmdStr,g_zUfiSms_FinalCmgsBuf.pdu,strlen(
+g_zUfiSms_FinalCmgsBuf.pdu));}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6d\x67\x73\x52\x65\x71\x20\x70\x64\x75\x20\x74\x6f\x6f\x20\x6c\x6f\x6e\x67\x3a\x25\x73" "\n"
,g_zUfiSms_FinalCmgsBuf.pdu);memcpy(pAtcmdStr,g_zUfiSms_FinalCmgsBuf.pdu,
-ZSMS_PDU_SIZE-(0x18+3742-0xeb4));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.pdu)
-)=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0x644+2314-0xf4e),atRstSize);return
+ZSMS_PDU_SIZE-(0x3fb+2523-0xdd4));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.pdu
+))=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0x1563+2381-0x1eb0),atRstSize);return
zSvr_SendAtSyn(ZAT_CMGS_CMD,pAtcmdStr,cid,pAtRst,atRstSize);}VOID
atSms_RecvCmgsOk(UINT8*pResLine,int cid){at_print(LOG_DEBUG,
"\x73\x6d\x73\x20\x73\x65\x6e\x64\x65\x64\x20\x73\x75\x63\x63\x65\x73\x73\x2e\x20" "\n"
);g_zUfiSms_CurConcatSegNo++;if(g_zUfiSms_CurConcatSegNo>
ZTE_WMS_CONCAT_SMS_COUNT_MAX){return;}g_zUfiSms_DbStoreData[
-g_zUfiSms_CurConcatSegNo-(0x556+8424-0x263d)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0xee5+1835-0x160f)].tag=WMS_TAG_TYPE_MO_SENT_V01;
zUfiSms_CmgsRespProc(cid);}VOID atSms_RecvCmgsErr(UINT8*pResLine,int cid){
at_print(LOG_DEBUG,
"\x73\x6d\x73\x20\x73\x65\x6e\x64\x65\x64\x20\x66\x61\x69\x6c\x2e\x20" "\n");
@@ -522,16 +524,16 @@
ZTE_WMS_CONCAT_SMS_COUNT_MAX){return;}g_zUfiSms_SendFailedCount++;at_print(
LOG_DEBUG,
"\x73\x65\x6e\x64\x20\x73\x6d\x73\x20\x66\x61\x69\x6c\x65\x64\x2c\x73\x6f\x20\x77\x72\x69\x74\x65\x20\x73\x6d\x73\x20\x74\x6f\x20\x64\x72\x61\x66\x74\x62\x6f\x78\x2e" "\n"
-);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x1d+5374-0x151a)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x16d9+2445-0x2065)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0xb0c+6884-0x25ef)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x862+7653-0x2646)){
g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc(cid);}VOID
atSms_RecvCmgsRsp(T_zAt_AtRes*pResLine){return;}VOID atSms_RecvCmtRsp(
-T_zAt_AtRes*pResLine){CHAR needSMS[(0x312+879-0x64f)]={(0xfc9+885-0x133e)};
-sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x166c+4237-0x26f9)
-==strcmp(needSMS,"\x6e\x6f")){printf(
+T_zAt_AtRes*pResLine){CHAR needSMS[(0x3d8+1787-0xaa1)]={(0x1342+135-0x13c9)};
+sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1325+603-0x1580)==
+strcmp(needSMS,"\x6e\x6f")){printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
-);return;}static T_zUfiSms_SmsItem tSmsPara={(0x6c+9383-0x2513)};
-T_zUfiSms_CmtSetRsp tCmtRsp={(0x162+8950-0x2458)};if(NULL==pResLine){return;}
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0x894+2418-0x1206)};
+T_zUfiSms_CmtSetRsp tCmtRsp={(0x1ec6+845-0x2213)};if(NULL==pResLine){return;}
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
@@ -541,120 +543,120 @@
"\x25\x35\x30\x30\x73",tCmtRsp.pdu);pthread_mutex_lock(&smsdb_mutex);
zUfiSms_CmtRespProc(&tCmtRsp);zUfiMmi_SendSmsStatus();pthread_mutex_unlock(&
smsdb_mutex);sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,
-(0x421+6740-0x1e75),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0x425+983-0x7fc),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
resParas,sizeof(pResLine->resParas));printf(
"\x5b\x53\x4d\x53\x5d\x20\x63\x6d\x74\x20\x69\x6e\x64\x21\x20\x70\x52\x65\x73\x4c\x69\x6e\x65\x2d\x3e\x72\x65\x73\x50\x61\x72\x61\x73\x3a\x25\x73\x2e" "\n"
,pResLine->resParas);sscanf(pResLine->resParas,"\x25\x73\x20\x25\x64",tSmsPara.
alpha,&tSmsPara.length);printf(
"\x5b\x53\x4d\x53\x5d\x20\x63\x6d\x74\x20\x69\x6e\x64\x21\x20\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2e" "\n"
,tSmsPara.length);}}VOID atSms_RecvCmtiRsp(T_zAt_AtRes*pResLine){CHAR needSMS[
-(0x2059+1664-0x26a7)]={(0x275+4935-0x15bc)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0xbe5+23-0xbfc)==strcmp(needSMS,"\x6e\x6f")){printf
-(
+(0x15f2+1252-0x1aa4)]={(0x1c91+1981-0x244e)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0xd55+2617-0x178e)==strcmp(needSMS,"\x6e\x6f")){
+printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
-);return;}char sms_Main_state[(0x1af9+1841-0x220c)]={(0x1da4+2237-0x2661)};char*
+);return;}char sms_Main_state[(0x187a+1016-0x1c54)]={(0xe9d+2561-0x189e)};char*
memory=NULL;printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x69\x52\x73\x70\x20\x65\x6e\x74\x65\x72\x20\x25\x73\x2e" "\n"
,pResLine->resParas);if(NULL==pResLine){return;}if(ZAT_CMTI_CMD!=pResLine->
atCmdId){return;}sc_cfg_get(NV_SMS_STATE,sms_Main_state,sizeof(sms_Main_state));
if(strcmp(sms_Main_state,"\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67")==
-(0x1a5f+1953-0x2200)){printf(
+(0x1876+1671-0x1efd)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x69\x52\x73\x70\x3a\x20\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67" "\n"
);return;}memory=strstr(pResLine->resParas,"\"");if(NULL!=memory){memory++;}if(
-(0x19cb+963-0x1d8e)==strncmp("\x53\x4d",memory,(0x938+6286-0x21c4))){
+(0xbfc+5992-0x2364)==strncmp("\x53\x4d",memory,(0xef+6862-0x1bbb))){
zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0xf8f+5473-0x24ec);printf(
+SMS_STATE_RECVING);memory+=(0x479+6008-0x1bed);printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x65\x6e\x64\x20\x63\x6d\x67\x72\x3a\x20\x25\x73" "\n"
,memory);zSvr_InnerSendMsg(ZUFI_MODULE_ID_AT_LOCAL,ZUFI_MODULE_ID_AT_UNSOLI,
MSG_CMD_AT_ZMGR,strlen(memory),memory);}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x69\x52\x73\x70\x20\x3a\x73\x74\x6f\x72\x65\x20\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x6e\x6f\x74\x20\x53\x4d\x2e" "\n"
);}sc_cfg_set(NV_SMS_RECV_RESULT,"");}VOID atSms_RecvCdsRsp(T_zAt_AtRes*pResLine
-){CHAR needSMS[(0x1a08+1299-0x1ee9)]={(0x1f52+456-0x211a)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1967+391-0x1aee)==strcmp(
+){CHAR needSMS[(0x82+8421-0x2135)]={(0x635+2813-0x1132)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x9d4+6900-0x24c8)==strcmp(
needSMS,"\x6e\x6f")){printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
-);return;}static T_zUfiSms_SmsItem tSmsPara={(0xcfa+4914-0x202c)};
-T_zUfiSms_CmgrSetRsp tCmgrRsp={(0x670+5744-0x1ce0)};if(NULL==pResLine){return;}
-if(pResLine->pduFlag==ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0x8e0+3039-0x14bf)};
+T_zUfiSms_CmgrSetRsp tCmgrRsp={(0xb3+3336-0xdbb)};if(NULL==pResLine){return;}if(
+pResLine->pduFlag==ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->
result){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x52\x73\x70\x20\x67\x65\x74\x20\x72\x65\x73\x75\x6c\x74\x20\x45\x72\x72\x6f\x72\x2e" "\n"
);return;}tCmgrRsp.length=tSmsPara.length;sscanf(pResLine->resParas,
"\x25\x35\x30\x30\x73",tCmgrRsp.pdu);pthread_mutex_lock(&smsdb_mutex);
zUfiSms_CdsRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();pthread_mutex_unlock(&
smsdb_mutex);sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,
-(0x7d+7101-0x1c3a),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0x509+6021-0x1c8e),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
resParas,sizeof(pResLine->resParas));printf(
"\x5b\x53\x4d\x53\x5d\x20\x63\x64\x73\x20\x69\x6e\x64\x21\x20\x70\x52\x65\x73\x4c\x69\x6e\x65\x2d\x3e\x72\x65\x73\x50\x61\x72\x61\x73\x3a\x25\x73\x2e" "\n"
,pResLine->resParas);sscanf(pResLine->resParas,"\x25\x73\x20\x25\x64",tSmsPara.
alpha,&tSmsPara.length);printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x52\x73\x70\x20\x63\x64\x73\x20\x69\x6e\x64\x21\x20\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2e" "\n"
,tSmsPara.length);}}VOID atSms_RecvCdsiRsp(T_zAt_AtRes*pResLine){CHAR needSMS[
-(0x10f5+194-0x1185)]={(0x663+3288-0x133b)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x1f0+8572-0x236c)==strcmp(needSMS,"\x6e\x6f")){
+(0x17c+6107-0x1925)]={(0x1660+166-0x1706)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0x568+4273-0x1619)==strcmp(needSMS,"\x6e\x6f")){
printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
-);return;}char sms_Main_state[(0x4d1+7551-0x2232)]={(0x1df3+775-0x20fa)};char*
+);return;}char sms_Main_state[(0x2504+464-0x26b6)]={(0xeac+5559-0x2463)};char*
memory=NULL;printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x69\x52\x73\x70\x20\x65\x6e\x74\x65\x72\x20\x25\x73\x2e" "\n"
,pResLine->resParas);if(NULL==pResLine){return;}if(ZAT_CDSI_CMD!=pResLine->
atCmdId){return;}sc_cfg_get(NV_SMS_STATE,sms_Main_state,sizeof(sms_Main_state));
if(strcmp(sms_Main_state,"\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67")==
-(0x17e7+1138-0x1c59)){printf(
+(0x1e2a+1048-0x2242)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x69\x52\x73\x70\x3a\x20\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67" "\n"
);return;}memory=strstr(pResLine->resParas,"\"");if(NULL!=memory){memory++;}
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x69\x52\x73\x70\x3a\x20\x6d\x65\x6d\x6f\x72\x79\x20\x3d\x20\x25\x73" "\n"
-,memory);if((0xf80+2316-0x188c)==strncmp("\x53\x4d",memory,(0x3b+3928-0xf91))){
+,memory);if((0x1747+2590-0x2165)==strncmp("\x53\x4d",memory,(0xaf3+450-0xcb3))){
zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0x437+1728-0xaf3);printf(
+SMS_STATE_RECVING);memory+=(0x1081+658-0x130f);printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x65\x6e\x64\x20\x63\x6d\x67\x72\x3a\x20\x25\x73" "\n"
,memory);zSvr_InnerSendMsg(ZUFI_MODULE_ID_AT_LOCAL,ZUFI_MODULE_ID_AT_UNSOLI,
MSG_CMD_AT_ZMGR,strlen(memory),memory);}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x69\x52\x73\x70\x20\x3a\x73\x74\x6f\x72\x65\x20\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x6e\x6f\x74\x20\x53\x4d\x2e" "\n"
);}sc_cfg_set(NV_SMS_RECV_RESULT,"");}int atSms_SendZmenaReq(PSTR pAtCmdPara,int
- cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x1122+4728-0x2386)]={
-(0x12df+102-0x1345)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+ cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x8a+5928-0x179e)]={
+(0x87f+4524-0x1a2b)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
"\x41\x54\x2b\x5a\x4d\x45\x4e\x41\x3d\x25\x73" "\r\n",pAtCmdPara);return
zSvr_SendAtSyn(ZAT_ZMENA_CMD,pAtcmdStr,cid,pAtRst,atRstSize);}VOID
atSms_RecvZmenaOk(VOID){g_Zmena_rsp=TRUE;return;}VOID atSms_RecvZmenaErr(VOID){
g_Zmena_rsp=FALSE;return;}int atSms_SendCnmaReq(PSTR pAtCmdPara,int cid,PSTR
-pAtRst,int atRstSize){int atRes=(0x1f+7412-0x1d13);CHAR pAtcmdStr[ZSMS_PDU_SIZE]
-={(0x18a1+1518-0x1e8f)};CHAR ackPduStr[(0x1f72+1329-0x2471)]={
-(0x8f5+3705-0x176e)};if(atoi(pAtCmdPara)==(0xe0+3989-0x1074)){snprintf(pAtcmdStr
-,sizeof(pAtcmdStr),"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73" "\r\n",pAtCmdPara)
-;atRes=zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,pAtRst,atRstSize);printf(
+pAtRst,int atRstSize){int atRes=(0x127f+441-0x1438);CHAR pAtcmdStr[ZSMS_PDU_SIZE
+]={(0x7a2+1803-0xead)};CHAR ackPduStr[(0x939+5414-0x1e2d)]={(0x1f26+1846-0x265c)
+};if(atoi(pAtCmdPara)==(0x8c3+1517-0xeaf)){snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73" "\r\n",pAtCmdPara);atRes=
+zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,pAtRst,atRstSize);printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6e\x6d\x61\x52\x65\x71\x20\x31\x31\x31\x31\x31\x31\x20\x61\x63\x6b\x20\x6f\x6b\x20\x3d\x20\x25\x73\x2e" "\n"
-,pAtcmdStr);return(0xd63+2933-0x18d8);}else{zUfiSms_EncodePdu_DeliverReport(
-ackPduStr,(0xd1a+6209-0x2488));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+,pAtcmdStr);return(0x1429+608-0x1689);}else{zUfiSms_EncodePdu_DeliverReport(
+ackPduStr,(0x2a3+58-0x20a));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73\x2c\x25\x64" "\r\n",pAtCmdPara,strlen(
-ackPduStr)/(0x644+3795-0x1515));atRes=zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,
+ackPduStr)/(0xd1+6580-0x1a83));atRes=zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,
pAtRst,atRstSize);if(atRes!=ZAT_RESULT_SMS){return atRes;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6e\x6d\x61\x52\x65\x71\x20\x3d\x20\x25\x73\x2e" "\n"
-,pAtcmdStr);memset(pAtcmdStr,(0x1591+1621-0x1be6),ZSMS_PDU_SIZE);if(strlen(
-ackPduStr)<ZSMS_PDU_SIZE-(0x942+3753-0x17ea)){memcpy(pAtcmdStr,ackPduStr,strlen(
+,pAtcmdStr);memset(pAtcmdStr,(0x139b+3129-0x1fd4),ZSMS_PDU_SIZE);if(strlen(
+ackPduStr)<ZSMS_PDU_SIZE-(0x789+3084-0x1394)){memcpy(pAtcmdStr,ackPduStr,strlen(
ackPduStr));}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6d\x67\x73\x52\x65\x71\x20\x70\x64\x75\x20\x74\x6f\x6f\x20\x6c\x6f\x6e\x67\x3a\x25\x73" "\n"
-,ackPduStr);memcpy(pAtcmdStr,ackPduStr,ZSMS_PDU_SIZE-(0xcb0+4926-0x1fec));}*(
+,ackPduStr);memcpy(pAtcmdStr,ackPduStr,ZSMS_PDU_SIZE-(0x271+5876-0x1963));}*(
pAtcmdStr+strlen(ackPduStr))=ZSMS_CTRL_Z_CHAR;printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6e\x6d\x61\x52\x65\x71\x2e\x20\x70\x64\x75\x3d\x20\x25\x73" "\n"
-,pAtcmdStr);memset(pAtRst,(0x16c+8992-0x248c),atRstSize);return zSvr_SendAtSyn(
+,pAtcmdStr);memset(pAtRst,(0x7a9+7386-0x2483),atRstSize);return zSvr_SendAtSyn(
ZAT_CNMA_CMD,pAtcmdStr,cid,pAtRst,atRstSize);}}VOID atSms_RecvCnmaRsp(
T_zAt_AtRes*pResLine){return;}VOID atUnsoli_Delete_Sim_Sms(UINT8*pDatabuf,int
-cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x724+4278-0x17da)};int atRes=
-(0x1412+1172-0x18a6);if(pDatabuf==NULL){return;}atRes=atSms_SendCmgdReq(pDatabuf
-,cid,errCode,ZSVR_AT_RES_CODE_LEN);if(atRes==ZSMS_RESULT_OK){atSms_RecvCmgdOk();
-}else{atSms_RecvCmgdErr();}atSms_RecvCmgdFinish();}VOID atUnsoli_Report_Cnma(
-UINT8*pDatabuf,int cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x1ac9+321-0x1c0a)}
+cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x13f0+418-0x1592)};int atRes=
+(0x2a0+4137-0x12c9);if(pDatabuf==NULL){return;}atRes=atSms_SendCmgdReq(pDatabuf,
+cid,errCode,ZSVR_AT_RES_CODE_LEN);if(atRes==ZSMS_RESULT_OK){atSms_RecvCmgdOk();}
+else{atSms_RecvCmgdErr();}atSms_RecvCmgdFinish();}VOID atUnsoli_Report_Cnma(
+UINT8*pDatabuf,int cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0xb34+2887-0x167b)}
;if(pDatabuf==NULL){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x55\x6e\x73\x6f\x6c\x69\x5f\x52\x65\x70\x6f\x72\x74\x5f\x43\x6e\x6d\x61\x20\x6e\x75\x6c\x6c"
);return;}atSms_SendCnmaReq(pDatabuf,cid,errCode,ZSVR_AT_RES_CODE_LEN);}VOID
atUnsoli_Report_Zmena(UINT8*pDatabuf,int cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]
-={(0xa66+3291-0x1741)};int atRes=(0x13cb+1218-0x188d);if(pDatabuf==NULL){printf(
+={(0x1562+609-0x17c3)};int atRes=(0x837+5014-0x1bcd);if(pDatabuf==NULL){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x55\x6e\x73\x6f\x6c\x69\x5f\x52\x65\x70\x6f\x72\x74\x5f\x5a\x6d\x65\x6e\x61\x20\x6e\x75\x6c\x6c"
);return;}atRes=atSms_SendZmenaReq(pDatabuf,cid,errCode,ZSVR_AT_RES_CODE_LEN);if
(atRes==ZSMS_RESULT_OK){atSms_RecvZmenaOk();}else{atSms_RecvZmenaErr();}}VOID
atUnsoli_Report_Zmgr(UINT8*pDatabuf,int cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]=
-{(0x551+816-0x881)};if(pDatabuf==NULL){printf(
+{(0x4b7+6882-0x1f99)};if(pDatabuf==NULL){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x55\x6e\x73\x6f\x6c\x69\x5f\x52\x65\x70\x6f\x72\x74\x5f\x5a\x6d\x67\x72\x20\x6e\x75\x6c\x6c"
);return;}atSms_SendZmgrReq(pDatabuf,cid,errCode,ZSVR_AT_RES_CODE_LEN);}
#endif
diff --git a/ap/app/zte_comm/wlan/aic_tools/rftest/wifi_test.c b/ap/app/zte_comm/wlan/aic_tools/rftest/wifi_test.c
index 6871592..af33c6f 100755
--- a/ap/app/zte_comm/wlan/aic_tools/rftest/wifi_test.c
+++ b/ap/app/zte_comm/wlan/aic_tools/rftest/wifi_test.c
@@ -137,6 +137,10 @@
if (argC < 4) {
is_param_err = 1;
}
+ } else if ((strcasecmp(argV[2], "SET_NOTCH") == 0)) {
+ if (argC < 4) {
+ is_param_err = 1;
+ }
} else if ((strcasecmp(argV[2], "BT_RESET") == 0)) {
char bt_reset_hci_cmd[32] = "01 03 0c 00";
if (argC == 3) {
@@ -285,12 +289,9 @@
signed char *buff = &priv_cmd.buf[0];
printf("done:\n"
"efuse txpwr offset 2.4g:\n"
- " [0]=%d(remain:%x,ch1~4)\n"
- " [1]=%d(remain:%x,ch5~9)\n"
- " [2]=%d(remain:%x,ch10~13)\n",
- buff[0], buff[3],
- buff[1], buff[4],
- buff[2], buff[5]);
+ " [0]=%d(ch1~4)\n"
+ " [1]=%d(ch5~9)\n"
+ " [2]=%d(ch10~13)\n", buff[0], buff[1], buff[2]);
#if 0
printf("efuse txpwr offset 5g:\n"
" [0]=%d(ch36~64)\n"
@@ -299,12 +300,7 @@
" [3]=%d(ch142~165)\n", buff[3], buff[4], buff[5], buff[6]);
#endif
} else if (strcasecmp(argV[2], "RDWR_EFUSE_DRVIBIT") == 0) {
- int val = *(int *)&priv_cmd.buf[0];
- if (val < 0) {
- printf("failed to rd/wr efuse drv_ibit, ret=%d\n", val);
- } else {
- printf("done: efsue 2.4g txgain tbl pa drv_ibit: %x (remain: %x)\n", priv_cmd.buf[0], priv_cmd.buf[1]);
- }
+ printf("done: efsue 2.4g txgain tbl pa drv_ibit: %x\n", priv_cmd.buf[0]);
} else if (strcasecmp(argV[2], "GET_BT_RX_RESULT") == 0) {
printf("done: get bt rx total=%d, ok=%d, err=%d\n", *(unsigned int *)priv_cmd.buf,
*(unsigned int *)&priv_cmd.buf[4],