[Feature][ZXW-65]merged P49 base code

Change-Id: I3e09c0c3d47483bc645f02310380ecb7fc6f4041
diff --git a/ap/app/Script/scripts/lan.sh b/ap/app/Script/scripts/lan.sh
index 407c47b..a1c74d1 100755
--- a/ap/app/Script/scripts/lan.sh
+++ b/ap/app/Script/scripts/lan.sh
@@ -120,9 +120,9 @@
         echo 1 > /sys/module/fast_common/parameters/lan_dos_enable
     fi
 
+	dhcps_in_cap=`nv get dhcps_in_cap`
 
-
-
+	if [ "x$dhcps_in_cap" != "x1" ]; then
     echo "" > $path_conf/udhcpd.leases
 
     . $path_sh/user-config-udhcpd.sh
@@ -132,7 +132,7 @@
         echo "Info: config-udhcpd.sh lan -r 1 start" >> $test_log
         . $path_sh/config-udhcpd.sh "lan" -r 1
     fi
-
+	fi
     dnsmasq -i $lan_if -r $path_conf/resolv.conf &
     . $path_sh/upnp.sh
     
diff --git a/ap/app/Script/scripts/ppp_updown.sh b/ap/app/Script/scripts/ppp_updown.sh
index f36ea86..c9662d8 100755
--- a/ap/app/Script/scripts/ppp_updown.sh
+++ b/ap/app/Script/scripts/ppp_updown.sh
@@ -47,7 +47,7 @@
 
 	ps_ip=$ps_ip_ab"."$ps_ip_c1"."$ps_ip_d
 	
-	ifconfig $ps_if $ps_ip up
+	ifconfig $ps_if $ps_ip netmask 255.255.255.0 up
 	if [ $? -ne 0 ];then
 	    echo "Error: ifconfig $ps_if $ps_ip up failed." >> $test_log
     fi
@@ -98,6 +98,19 @@
 	route_info=`ip route|grep default`
 	
 	if [ "$route_info" == "" ];then
+		dns=`nv get $ps_if"_pridns"`
+		dns2=`nv get $ps_if"_secdns"`
+		if [ "-$dns" == "-" -o "-$dns" == "-0.0.0.0" ] && [ "-$dns2" == "-" -o "-$dns2" == "-0.0.0.0" ]; then
+			echo "Error:PPP no valid dns, use default dns." >> $test_log
+			dns="114.114.114.114"
+			dns2="8.8.8.8"
+		fi
+		if [ "-$dns" != "-" -a "-$dns" != "-0.0.0.0" ]; then
+			echo "nameserver $dns" >> /etc/resolv.conf
+		fi
+		if [ "-$dns2" != "-" -a "-$dns2" != "-0.0.0.0" ]; then
+			echo "nameserver $dns2" >> /etc/resolv.conf
+		fi
 		route add default dev $ps_if
 	else
 		echo "Debug: default route already exist." >> $test_log
@@ -477,6 +490,9 @@
 		linkdown_dhcpv6_server_set
 		route6_del
 		slaac_kill
+	fi
+	route_info=`ip route|grep default`
+	if [ "$route_info" == "" ];then
 		echo "" > /etc/resolv.conf
 	fi
 fi
diff --git a/ap/app/Script/scripts/psext_up.sh b/ap/app/Script/scripts/psext_up.sh
index 7a51bbf..d0f79aa 100755
--- a/ap/app/Script/scripts/psext_up.sh
+++ b/ap/app/Script/scripts/psext_up.sh
@@ -5,6 +5,7 @@
 fi
 echo "Info: psext_up.sh $1 start" >> $test_log
 path_conf=`nv get path_conf`
+dhcps_in_cap=`nv get dhcps_in_cap`
 
 echo 1 > /proc/sys/net/ipv4/ip_forward
 c_id=$1
@@ -27,12 +28,14 @@
 	if [ $? -ne 0 ];then
 	    echo "Error: ifconfig $eth_br netmask $mask failed." >> $test_log
 	fi
+	if [ "x$dhcps_in_cap" != "x1" ]; then
     if [ -e ${pidfile} ]; then
       kill `cat $pidfile`
 	  rm -f $pidfile
     fi
 	touch $leases
 	udhcpd -f $confile &
+	fi
 }
 
 #»ñÈ¡ip²¢ÅäÖÃps¡¢eth
@@ -41,7 +44,7 @@
     pdp_ip=`nv get $ps_if"_pdp_ip"`
 	ps_ip=`nv get $ps_if"_ip"`
 	br_ip=`nv get $ext_br"_ip"`
-	ifconfig $ps_if $ps_ip up 2>>$test_log
+	ifconfig $ps_if $ps_ip netmask 255.255.255.0 up 2>>$test_log
 	if [ $? -ne 0 ];then
 	    echo "Error: ifconfig $ps_if $ps_ip up failed." >> $test_log
     fi
diff --git a/ap/app/Script/scripts/psext_up_ipv6.sh b/ap/app/Script/scripts/psext_up_ipv6.sh
index 07ef6dc..3432452 100755
--- a/ap/app/Script/scripts/psext_up_ipv6.sh
+++ b/ap/app/Script/scripts/psext_up_ipv6.sh
@@ -23,6 +23,7 @@
 ps_ip=`nv get $ps_if"_ipv6_ip"`
 pdp_ip=`nv get $ps_if"_ipv6_pdp"`
 local_ipv6_addr=`nv get $ps_if"_ipv6_local"`
+dhcps_in_cap=`nv get dhcps_in_cap`
 
 #获取ip并配置ps、eth
 linkup_get_addr()
@@ -88,18 +89,23 @@
     echo 1 > /proc/sys/net/ipv6/conf/$br_if/accept_ra
     #enable ipv6 neigh discovery proxy
     echo 1 > /proc/sys/net/ipv6/conf/all/proxy_ndp
-
+	if [ "x$dhcps_in_cap" != "x1" ]; then
     zte_ndp -a -s $br_if -d $ps_if -l $ndp_log -p &
+	fi
 }
 
 linkup_dhcpv6_set()
 {
+	if [ "x$dhcps_in_cap" != "x1" ]; then
 	dhcp6s -dDf -c $dhcp6s_conf $br_if &
+	fi
 }
 
 linkup_radvd_set() 
 {
+	if [ "x$dhcps_in_cap" != "x1" ]; then
 	radvd -d 3 -C $radvd_conf -p $radvd_pidfile &
+	fi
 }
 
 mtu=`nv get mtu`
diff --git a/ap/app/ab_bootinfo/ab_bootinfo.c b/ap/app/ab_bootinfo/ab_bootinfo.c
index 446cc02..3f1e0cf 100644
--- a/ap/app/ab_bootinfo/ab_bootinfo.c
+++ b/ap/app/ab_bootinfo/ab_bootinfo.c
@@ -1,21 +1,24 @@
 #include <stdio.h>
 #include <stdlib.h>
-#include "upi_public.h"
+#include "zxic_fota_ab_upgrade.h"
 
 int main(int argc, char *argv[])
 {
-    int ret = upi_get_current_system(); 
+    int ret = zxic_dual_get_current_system(); 
 
     switch (ret)
     {
-        case 1:
+        case Z_DUAL_SYSTEM:
             printf("ab_bootinfo:ab_a\n");
+            ret = 1;
             break;
-        case 2:
+        case Z_DUAL_SYSTEM2:
             printf("ab_bootinfo:ab_b\n");
+            ret = 2;
             break;
         default:
             printf("[error]ab_bootinfo:%d\n", ret);
+            ret = 1;
             break;
     }
     return ret;
diff --git a/ap/app/dlt-daemon/makefile b/ap/app/dlt-daemon/makefile
new file mode 100755
index 0000000..ea42076
--- /dev/null
+++ b/ap/app/dlt-daemon/makefile
@@ -0,0 +1,84 @@
+
+include $(COMMON_BASE_MK)
+
+NAME=dlt-daemon
+SRC_DIR=dlt-daemon-2.18.8
+INSTALL_DIR=$(APP_DIR)/$(NAME)/install
+BUILD_DIR=$(SRC_DIR)/build
+GEN_MAKEFILE=$(BUILD_DIR)/Makefile
+
+CONFIG_OPTS = -DCMAKE_SYSTEM_NAME=Linux
+CONFIG_OPTS += -DCMAKE_SYSTEM_PROCESSOR=arm
+CONFIG_OPTS += -DCMAKE_C_COMPILER=$(CROSS_COMPILE_PREFIX)gcc
+CONFIG_OPTS += -DCMAKE_CXX_COMPILER=$(CROSS_COMPILE_PREFIX)g++
+CONFIG_OPTS += -DCMAKE_AR=$(CROSS_COMPILE_PREFIX)ar
+CONFIG_OPTS += -DCMAKE_C_FLAGS=" -march=armv7-a  -g "
+CONFIG_OPTS += -DCMAKE_CXX_FLAGS=" -march=armv7-a  -g "
+CONFIG_OPTS += -DCMAKE_C_LINK_FLAGS=" -march=armv7-a  "
+CONFIG_OPTS += -DCMAKE_CXX_LINK_FLAGS=" -march=armv7-a  "
+CONFIG_OPTS += -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR)
+CONFIG_OPTS += -DCMAKE_INSTALL_LIBDIR=$(INSTALL_DIR)/lib
+CONFIG_OPTS += -DCONFIGURATION_FILES_DIR=$(INSTALL_DIR)/etc
+CONFIG_OPTS += -DRT_LIBRARY=$(CROSS_COMPILE_RT_LIBRARY)
+
+CONFIG_OPTS += -DWITH_SYSTEMD=OFF
+CONFIG_OPTS += -DWITH_SYSTEMD_WATCHDOG=OFF
+CONFIG_OPTS += -DWITH_SYSTEMD_JOURNAL=OFF
+CONFIG_OPTS += -DWITH_DOC=OFF
+CONFIG_OPTS += -DWITH_MAN=OFF
+CONFIG_OPTS += -DWITH_DLT_ADAPTOR=OFF
+CONFIG_OPTS += -DWITH_DLT_CONSOLE=OFF
+CONFIG_OPTS += -DWITH_DLT_EXAMPLES=OFF
+CONFIG_OPTS += -DWITH_DLT_SYSTEM=OFF
+CONFIG_OPTS += -DWITH_DLT_DBUS=OFF
+CONFIG_OPTS += -DWITH_DLT_TESTS=ON
+CONFIG_OPTS += -DWITH_DLT_UNIT_TESTS=OFF
+CONFIG_OPTS += -DWITH_DLT_SHM_ENABLE=OFF
+CONFIG_OPTS += -DWITH_DLTTEST=OFF
+CONFIG_OPTS += -DWITH_DLT_PKGCONFIG=ON
+CONFIG_OPTS += -DWITH_DLT_CXX11_EXT=OFF
+CONFIG_OPTS += -DWITH_DLT_COREDUMPHANDLER=OFF
+CONFIG_OPTS += -DWITH_DLT_KPI=OFF
+CONFIG_OPTS += -DWITH_DLT_FATAL_LOG_TRAP=OFF
+CONFIG_OPTS += -DWITH_CHECK_CONFIG_FILE=OFF
+CONFIG_OPTS += -DWITH_TESTSCRIPTS=OFF
+CONFIG_OPTS += -DWITH_GPROF=OFF
+CONFIG_OPTS += -DWITH_DLT_USE_IPv6=ON
+CONFIG_OPTS += -DDLT_USER=genivi
+CONFIG_OPTS += -DBUILD_SHARED_LIBS=ON
+CONFIG_OPTS += -DTARGET_CPU_NAME=
+#CONFIG_OPTS += -DCMAKE_INSTALL_PREFIX=/usr
+CONFIG_OPTS += -DCMAKE_BUILD_TYPE=RelWithDebInfo
+CONFIG_OPTS += -DCMAKE_HOST_SYSTEM_PROCESSOR=x86_64
+CONFIG_OPTS += -DCMAKE_SYSTEM_PROCESSOR=arm
+CONFIG_OPTS += -DWITH_DLT_LOGSTORAGE_CTRL_UDEV=OFF
+CONFIG_OPTS += -DDLT_IPC=UNIX_SOCKET
+CONFIG_OPTS += -DWITH_UDP_CONNECTION=OFF
+CONFIG_OPTS += -DWITH_DLT_DISABLE_MACRO=OFF
+
+CONFIG_OPTS += -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
+
+
+all: $(GEN_MAKEFILE)
+	make -C $(BUILD_DIR) all
+	make -C $(BUILD_DIR) install
+
+$(GEN_MAKEFILE):
+	mkdir -p $(BUILD_DIR)
+	cd $(BUILD_DIR); cmake  $(CONFIG_OPTS)  ..
+
+clean:
+	-rm -fr $(BUILD_DIR) $(INSTALL_DIR)
+
+romfs:
+	$(ROMFSINST) $(INSTALL_DIR)/bin/dlt-daemon /bin/dlt-daemon
+	$(ROMFSINST) $(INSTALL_DIR)/bin/dlt-test-user /bin/dlt-test-user
+	$(ROMFSINST) $(INSTALL_DIR)/etc/dlt.conf /etc/dlt.conf
+	cd $(INSTALL_DIR)/lib; \
+	for i in *.so*; do \
+		if [ -L $$i ]; then \
+			$(ROMFSINST) -s `find $$i -printf %l` /lib/$$i; \
+		elif [ -f $$i ]; then \
+			$(ROMFSINST) /lib/$$i; \
+		fi; \
+	done
diff --git a/ap/app/include/absvr_msg.h b/ap/app/include/absvr_msg.h
index e156d9c..8e1834a 100755
--- a/ap/app/include/absvr_msg.h
+++ b/ap/app/include/absvr_msg.h
@@ -3,12 +3,12 @@
  * @brief Extern MSG APIs of absvr_msg

  *

  * Copyright (C) 2023 Sanechips Technology Co., Ltd.

- * @author 

- * @ingroup 

- * 

+ * @author

+ * @ingroup

+ *

  * 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. 

+ * published by the Free Software Foundation.

  *

  */

 

@@ -33,48 +33,51 @@
  ******************************************************************************/

 enum absvr_msg_cmd

 {

-	ABSVR_GET_UPGRADE_TYPE_REQ = MSG_CMD_ABSVR_BASE,

-	ABSVR_GET_UPGRADE_TYPE_RSP,

+    ABSVR_GET_UPGRADE_TYPE_REQ = MSG_CMD_ABSVR_BASE,

+    ABSVR_GET_UPGRADE_TYPE_RSP,

 

-	ABSVR_VRITFY_REQ,

-	ABSVR_VRITFY_RSP,

+    ABSVR_VRITFY_REQ,

+    ABSVR_VRITFY_RSP,

 

-	ABSVR_UPDATE_REQ,

-	ABSVR_UPDATING_RSP,

-	ABSVR_UPDATE_RSP,

+    ABSVR_UPDATE_REQ,

+    ABSVR_UPDATING_RSP,

+    ABSVR_UPDATE_RSP,

 

-	ABSVR_SYNC_REQ,

-	ABSVR_SYNC_RSP,

+    ABSVR_SYNC_REQ,

+    ABSVR_SYNC_RSP,

 

-	ABSVR_GET_UPGRADE_STATUS_REQ,

-	ABSVR_GET_UPGRADE_STATUS_RSP,

+    ABSVR_GET_UPGRADE_STATUS_REQ,

+    ABSVR_GET_UPGRADE_STATUS_RSP,

 

-	ABSVR_GET_CURRENT_SYSTEM_REQ,

-	ABSVR_GET_CURRENT_SYSTEM_RSP,

-	

-	ABSVR_GET_BOOT_TO_SYSTEM_REQ,

-	ABSVR_GET_BOOT_TO_SYSTEM_RSP,

+    ABSVR_GET_CURRENT_SYSTEM_REQ,

+    ABSVR_GET_CURRENT_SYSTEM_RSP,

 

-	ABSVR_SET_BOOT_TO_SYSTEM_REQ,

-	ABSVR_SET_BOOT_TO_SYSTEM_RSP,

+    ABSVR_GET_BOOT_TO_SYSTEM_REQ,

+    ABSVR_GET_BOOT_TO_SYSTEM_RSP,

 

-	ABSVR_GET_SYSTEM_STATUS_REQ,

-	ABSVR_GET_SYSTEM_STATUS_RSP,

+    ABSVR_SET_BOOT_TO_SYSTEM_REQ,

+    ABSVR_SET_BOOT_TO_SYSTEM_RSP,

 

-	ABSVR_SET_SYSTEM_STATUS_REQ,

-	ABSVR_SET_SYSTEM_STATUS_RSP,

+    ABSVR_GET_SYSTEM_STATUS_REQ,

+    ABSVR_GET_SYSTEM_STATUS_RSP,

 

-	ABSVR_GET_FOTA_STATUS_FOR_NV_REQ,

-	ABSVR_GET_FOTA_STATUS_FOR_NV_RSP,

+    ABSVR_SET_SYSTEM_STATUS_REQ,

+    ABSVR_SET_SYSTEM_STATUS_RSP,

 

-	ABSVR_SET_FOTA_STATUS_FOR_NV_REQ,

-	ABSVR_SET_FOTA_STATUS_FOR_NV_RSP,

+    ABSVR_GET_FOTA_STATUS_FOR_NV_REQ,

+    ABSVR_GET_FOTA_STATUS_FOR_NV_RSP,

 

-	ABSVR_GET_SYNC_STATUS_REQ,

-	ABSVR_GET_SYNC_STATUS_RSP,

+    ABSVR_SET_FOTA_STATUS_FOR_NV_REQ,

+    ABSVR_SET_FOTA_STATUS_FOR_NV_RSP,

 

-	ABSVR_SET_SYNC_STATUS_REQ,

-	ABSVR_SET_SYNC_STATUS_RSP

+    ABSVR_GET_SYNC_STATUS_REQ,

+    ABSVR_GET_SYNC_STATUS_RSP,

+

+    ABSVR_SET_SYNC_STATUS_REQ,

+    ABSVR_SET_SYNC_STATUS_RSP,

+

+    ABSVR_CONFIG_PACKAGE_PATH_REQ,

+    ABSVR_CONFIG_PACKAGE_PATH_RSP

 };

 

 

diff --git a/ap/app/include/at_msg.h b/ap/app/include/at_msg.h
index cd36562..5984e4a 100755
--- a/ap/app/include/at_msg.h
+++ b/ap/app/include/at_msg.h
@@ -244,6 +244,9 @@
 
 	MSG_CMD_AT_FILTER_REQ,                  //AP֪ͨCPÐèÒª¹ýÂËÖ÷¶¯Éϱ¨µÄATÃüÁî
 	MSG_CMD_SYNC_ATCMD_STREAM,              //AP²à·¢ÆðNVͬ²½£¬ÒòATÃüÁîÁ÷½Ï³¤ÇÒÃüÁ˫ÒýºÅ£¬µ¥¶Àͬ²½
+	MSG_CMD_ADD_MNET_WHITELIST,					//CP²à·¢ÆðÊ¡µç°×Ãûµ¥ÃüÁîÐÂÔö
+	MSG_CMD_DEL_MNET_WHITELIST,					//CP²à·¢ÆðÊ¡µç°×Ãûµ¥ÃüÁîɾ³ý
+	MSG_CMD_CLEAR_MNET_WHITELIST,				//CP²à·¢ÆðÊ¡µç°×Ãûµ¥¹Ø±Õ
 
 /**------------------------ÒÔÏÂÊÇOPENCPUµÄÏûÏ¢ID-----------------------------**/
 	MSG_CMD_PDP_ACT_REQ,		//pdp¼¤»îÒµÎñÇëÇ󣬶ÔÓ¦½á¹¹ÌåAT_PDP_ACT_INFO
diff --git a/ap/app/msg_test/Makefile b/ap/app/msg_test/Makefile
new file mode 100755
index 0000000..20fbee9
--- /dev/null
+++ b/ap/app/msg_test/Makefile
@@ -0,0 +1,42 @@
+#*******************************************************************************
+#*******************************************************************************
+include $(COMMON_MK)
+
+##############USER COMIZE BEGIN################
+EXEC1 = msgsnd
+EXEC2 = msgrcv
+
+OBJS1 = msgsnd.o
+OBJS2 = msgrcv.o
+                                   
+CFLAGS += -I.
+CFLAGS += -I$(APP_DIR)/include
+CFLAGS += -I./../inc
+
+CFLAGS += -g -Werror=implicit-function-declaration
+
+
+LDLIBS  += 
+
+##############USER COMIZE END##################
+
+#*******************************************************************************
+# targets
+#*******************************************************************************
+all: $(EXEC1) $(EXEC2)
+
+$(EXEC1): $(OBJS1)
+	$(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
+	@cp $@ $@.elf
+	
+$(EXEC2): $(OBJS2)
+	$(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
+	@cp $@ $@.elf
+
+romfs:
+	$(ROMFSINST) $(EXEC1) /bin/$(EXEC1)
+	$(ROMFSINST) $(EXEC2) /bin/$(EXEC2)
+
+clean:
+	-@rm -f $(EXEC1) $(EXEC2) *.elf *.gdb *.o
+
diff --git a/ap/app/msg_test/msgrcv.c b/ap/app/msg_test/msgrcv.c
new file mode 100755
index 0000000..e3e69aa
--- /dev/null
+++ b/ap/app/msg_test/msgrcv.c
@@ -0,0 +1,22 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/ipc.h>
+#include <sys/msg.h>
+// Define message queue structure
+struct msg_buffer {
+   long msg_type;
+   char msg[100];
+} message;
+main(int argc,char *argv[]) {
+   key_t my_key;
+   int msg_id;
+   int ret;
+   my_key = atoi(argv[1]); //create unique key
+   msg_id = msgget(my_key, 0666 | IPC_CREAT); //create message queue and return id
+   printf("Message id: %d\n", msg_id);
+   ret = msgrcv(msg_id, &message, sizeof(message), 1, 0); //used to receive message
+   // display the message
+   printf("Received Message len is %d, message is : %s \n", ret, message.msg);
+   //msgctl(msg_id, IPC_RMID, NULL); //destroy the message queue
+   return 0;
+}
diff --git a/ap/app/msg_test/msgsnd.c b/ap/app/msg_test/msgsnd.c
new file mode 100755
index 0000000..6c5a5f0
--- /dev/null
+++ b/ap/app/msg_test/msgsnd.c
@@ -0,0 +1,22 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/ipc.h>
+#include <sys/msg.h>
+// structure for message queue
+struct msg_buffer {
+   long msg_type;
+   char msg[100];
+} message;
+main(int argc,char *argv[]) {
+   key_t my_key;
+   int msg_id;
+   int ret;
+   my_key = atoi(argv[1]); //create unique key
+   msg_id = msgget(my_key, 0666 | IPC_CREAT); //create message queue and return id
+   printf("Message id: %d\n", msg_id);
+   message.msg_type = 1;
+   printf("Write Message : ");
+   fgets(message.msg, 100, stdin);
+   ret = msgsnd(msg_id, &message, sizeof(message), 0); //send message
+   printf("Sent message ret is %d message is : %s \n", ret, message.msg);
+}
diff --git a/ap/app/msg_test/readme b/ap/app/msg_test/readme
new file mode 100644
index 0000000..d847e08
--- /dev/null
+++ b/ap/app/msg_test/readme
@@ -0,0 +1,53 @@
+1、目录结构:
+├── Makefile			makefile
+├── msgrcv.c			消息队列接收测试程序
+├── msgsnd.c			消息队列发送测试程序
+└── readme				本文件
+
+
+2、说明
+2.1、针对msgget/msgrcv/msgsnd接口
+2.2、msgget依靠key创建消息队列,约定:0x0~0xFFFEFFFF为本核消息区间,0xFFFF0000~0xFFFFFFFF为车载双核跨核消息(针对非跨核工程,依然是本核消息)。
+
+3、使用说明
+3.0、只针对车载版本的测试程序,测试程序名为 msgsnd/msgrcv。
+3.1、AP侧跨核发送测试:msgsnd key (key为int型整数,这里选取0xFFFF0000~0xFFFFFFFF范围,例如-200)
+	 CAP侧运行msgrcv key,使用相同的key进行接收,会获取AP侧发送的消息内容并进行打印。
+3.2、AP侧跨核接收测试:msgrcv key (这里同样选择-200),CAP核运行msgsnd -200进行发送。
+3.3、AP侧本核发送测试:key取值范围0x0~0xFFFEFFFF即为本核消息。
+3.4、AP侧本核接收测试:同上。
+
+4、示例:
+4.1、跨核AP->CAP
+	AP:
+		# msgsnd -200
+		Message id: 10
+		Write Message : helloworld
+		Sent message ret is 0 message is : helloworld
+	CAP:
+	
+		# msgrcv -200
+		Message id: 10
+		Received Message len is 104, message is : helloworld
+		
+4.2、跨核CAP->AP
+	CAP:
+		# msgsnd -200
+		Message id: 11
+		Write Message : nihaoshijie
+		Sent message ret is 0 message is : nihaoshijie
+	AP:
+		# msgrcv -200
+		Message id: 11
+		Received Message len is 104, message is : nihaoshijie
+		
+4.3、本核消息队列
+	AP:
+		# msgsnd 100
+		Message id: 12
+		Write Message : huanying
+		Sent message ret is 0 message is : huanying
+	AP:
+		# msgrcv 100
+		Message id: 12
+		Received Message len is 104, message is : huanying
\ No newline at end of file
diff --git a/ap/app/pppd/linux/Makefile.top b/ap/app/pppd/linux/Makefile.top
index 2e481c7..09cb231 100644
--- a/ap/app/pppd/linux/Makefile.top
+++ b/ap/app/pppd/linux/Makefile.top
@@ -22,8 +22,8 @@
 	cd chat; $(MAKE) $(MFLAGS) all
 	cd pppd/plugins; $(MAKE) $(MFLAGS) all
 	cd pppd; $(MAKE) $(MFLAGS) all
-	cd pppstats; $(MAKE) $(MFLAGS) all
-	cd pppdump; $(MAKE) $(MFLAGS) all
+#	cd pppstats; $(MAKE) $(MFLAGS) all
+#	cd pppdump; $(MAKE) $(MFLAGS) all
 
 install: $(BINDIR) $(MANDIR)/man8 install-progs install-devel
 
diff --git a/ap/app/sc_absvr/sc_absvr.c b/ap/app/sc_absvr/sc_absvr.c
index 595f6a7..78ae298 100755
--- a/ap/app/sc_absvr/sc_absvr.c
+++ b/ap/app/sc_absvr/sc_absvr.c
@@ -3,8 +3,8 @@
  * @brief Implementation of sc_absvr.

  *

  * Copyright (C) 2023 Sanechips Technology Co., Ltd.

- * @author 

- * 

+ * @author

+ *

  * 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£©

@@ -36,7 +36,7 @@
 

 /*******************************************************************************

  *                             Macro definitions                               *

- ******************************************************************************/	

+ ******************************************************************************/

 #define MSG_DATABUF_MAX_LEN (128)

 

 #define DEBUG 1

@@ -48,22 +48,25 @@
  ******************************************************************************/

 typedef struct

 {

-	int result; // 0: ³É¹¦ ·Ç0: ʧ°Ü

-	unsigned char dataBuf[MSG_DATABUF_MAX_LEN];

+    int result; // 0: ³É¹¦ ·Ç0: ʧ°Ü

+    unsigned char dataBuf[MSG_DATABUF_MAX_LEN];

 } absvr_common_result_t;

 

 

 typedef struct

 {

-	int boot_to_system;

-	int reboot_flag;

+    int boot_to_system;

+    int reboot_flag;

 

-	int system;

-	int status;

+    int system;

+    int status;

 

-	int status_for_nv;

+    int status_for_nv;

 

-	int sync_status;

+    int sync_status;

+

+    char package_path[128];

+    int len;

 } absvr_common_req_msg_t;

 

 

@@ -96,6 +99,7 @@
 static int absvr_set_fota_status_for_nv(MSG_BUF *msg);

 static int absvr_get_sync_status(MSG_BUF *msg);

 static int absvr_set_sync_status(MSG_BUF *msg);

+static int absvr_config_package_path(MSG_BUF *msg);

 

 static int absvr_msg_proc(MSG_BUF *msg);

 

@@ -105,279 +109,315 @@
  ******************************************************************************/

 static void flush_upgrade_status(z_upgrade_status_info_t *p_status)

 {

-	absvr_common_result_t absvr_common_result = {0};

-	

-	memcpy(absvr_common_result.dataBuf, p_status, sizeof(z_upgrade_status_info_t));

-	

-	if (0 != send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_UPDATING_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result)))

-	{

-		slog(ABSVR_PRINT, SLOG_ERR, "Err: flush_upgrade_status send_soc_msg fail \n");

-	}

+    absvr_common_result_t absvr_common_result = {0};

 

-	return;

+    memcpy(absvr_common_result.dataBuf, p_status, sizeof(z_upgrade_status_info_t));

+

+    if (0 != send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_UPDATING_RSP, sizeof(absvr_common_result),

+                          (unsigned char *)(&absvr_common_result)))

+    {

+        slog(ABSVR_PRINT, SLOG_ERR, "Err: flush_upgrade_status send_soc_msg fail \n");

+    }

+

+    return;

 }

 

 

 static int absvr_get_upgrade_type(MSG_BUF *msg)

 {

-	absvr_common_result_t absvr_common_result = {0};

-	int ret = -1;

+    absvr_common_result_t absvr_common_result = {0};

+    int ret = -1;

 

-	ret = zxic_dual_get_upgrade_type();

+    ret = zxic_dual_get_upgrade_type();

 

-	absvr_common_result.result = ret;

+    absvr_common_result.result = ret;

 

-	return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_GET_UPGRADE_TYPE_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_GET_UPGRADE_TYPE_RSP, sizeof(absvr_common_result),

+                        (unsigned char *)(&absvr_common_result));

 }

- 

+

 

 static int absvr_verify(MSG_BUF *msg)

 {

-	absvr_common_result_t absvr_common_result = {0};

+    absvr_common_result_t absvr_common_result = {0};

 

-	absvr_common_result.result = zxic_dual_verify();

+    absvr_common_result.result = zxic_dual_verify();

 

-	return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_VRITFY_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_VRITFY_RSP, sizeof(absvr_common_result),

+                        (unsigned char *)(&absvr_common_result));

 }

 

 

 static int absvr_update(MSG_BUF *msg)

 {

-	absvr_common_result_t absvr_common_result = {0};

-	

-	z_upgrade_status_info_t status = {0};

-	z_upgrade_flush_status_t flush_status = {0};

+    absvr_common_result_t absvr_common_result = {0};

 

-	flush_status.status = &status;

-	flush_status.status_cb = &flush_upgrade_status;

+    z_upgrade_status_info_t status = {0};

+    z_upgrade_flush_status_t flush_status = {0};

 

-	absvr_common_result.result = zxic_dual_upgrade(&flush_status);

+    flush_status.status = &status;

+    flush_status.status_cb = &flush_upgrade_status;

 

-	return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_UPDATE_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

+    absvr_common_result.result = zxic_dual_upgrade(&flush_status);

+

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_UPDATE_RSP, sizeof(absvr_common_result),

+                        (unsigned char *)(&absvr_common_result));

 }

 

 

 static int absvr_sync(MSG_BUF *msg)

 {

-	absvr_common_result_t absvr_common_result = {0};

+    absvr_common_result_t absvr_common_result = {0};

 

-	absvr_common_result.result = zxic_dual_sync_system();

+    absvr_common_result.result = zxic_dual_sync_system();

 

-	return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_SYNC_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_SYNC_RSP, sizeof(absvr_common_result),

+                        (unsigned char *)(&absvr_common_result));

 }

 

 

 static int absvr_get_upgrade_status(MSG_BUF *msg)

 {

-	absvr_common_result_t absvr_common_result = {0};

-	int ret = -1;

+    absvr_common_result_t absvr_common_result = {0};

+    int ret = -1;

 

-	z_upgrade_status_info_t upgrade_info = {0};

+    z_upgrade_status_info_t upgrade_info = {0};

 

-	ret = zxic_dual_get_upgrade_status(&upgrade_info);

+    ret = zxic_dual_get_upgrade_status(&upgrade_info);

 

-	absvr_common_result.result = ret;

-	memcpy(absvr_common_result.dataBuf, &upgrade_info, sizeof(z_upgrade_status_info_t));

+    absvr_common_result.result = ret;

+    memcpy(absvr_common_result.dataBuf, &upgrade_info, sizeof(z_upgrade_status_info_t));

 

-	return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_GET_UPGRADE_STATUS_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_GET_UPGRADE_STATUS_RSP,

+                        sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

 }

 

 

 static int absvr_get_current_system(MSG_BUF *msg)

 {

-	absvr_common_result_t absvr_common_result = {0};

-	int ret = -1;

+    absvr_common_result_t absvr_common_result = {0};

+    int ret = -1;

 

-	ret = zxic_dual_get_current_system();

+    ret = zxic_dual_get_current_system();

 

-	absvr_common_result.result = ret;

+    absvr_common_result.result = ret;

 

-	return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_GET_CURRENT_SYSTEM_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_GET_CURRENT_SYSTEM_RSP,

+                        sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

 }

 

 

 static int absvr_get_boot_to_system(MSG_BUF *msg)

 {

-	absvr_common_result_t absvr_common_result = {0};

-	int ret = -1;

+    absvr_common_result_t absvr_common_result = {0};

+    int ret = -1;

 

-	ret = zxic_dual_get_boot_to_system();

+    ret = zxic_dual_get_boot_to_system();

 

-	absvr_common_result.result = ret;

+    absvr_common_result.result = ret;

 

-	return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_GET_BOOT_TO_SYSTEM_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_GET_BOOT_TO_SYSTEM_RSP,

+                        sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

 }

 

 

 static int absvr_set_boot_to_system(MSG_BUF *msg)

 {

-	absvr_common_req_msg_t *common_req_msg = NULL;

-	

-	absvr_common_result_t absvr_common_result = {0};

-	int ret = -1;

+    absvr_common_req_msg_t *common_req_msg = NULL;

 

-	common_req_msg = (absvr_common_req_msg_t *)(msg->aucDataBuf);

+    absvr_common_result_t absvr_common_result = {0};

+    int ret = -1;

 

-	ret = zxic_dual_set_boot_to_system(common_req_msg->boot_to_system, common_req_msg->reboot_flag);

-	

-	absvr_common_result.result = ret;

+    common_req_msg = (absvr_common_req_msg_t *)(msg->aucDataBuf);

 

-	return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_SET_BOOT_TO_SYSTEM_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

+    ret = zxic_dual_set_boot_to_system(common_req_msg->boot_to_system, common_req_msg->reboot_flag);

+

+    absvr_common_result.result = ret;

+

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_SET_BOOT_TO_SYSTEM_RSP,

+                        sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

 }

 

 

 static int absvr_get_system_status(MSG_BUF *msg)

 {

-	absvr_common_result_t absvr_common_result = {0};

-	int ret = -1;

+    absvr_common_result_t absvr_common_result = {0};

+    int ret = -1;

 

-	z_upgrade_system_info_t system_info = {0};

+    z_upgrade_system_info_t system_info = {0};

 

-	ret = zxic_dual_get_system_status(&system_info);

+    ret = zxic_dual_get_system_status(&system_info);

 

-	absvr_common_result.result = ret;

-	memcpy(absvr_common_result.dataBuf, &system_info, sizeof(z_upgrade_system_info_t));

+    absvr_common_result.result = ret;

+    memcpy(absvr_common_result.dataBuf, &system_info, sizeof(z_upgrade_system_info_t));

 

-	return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_GET_SYSTEM_STATUS_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_GET_SYSTEM_STATUS_RSP,

+                        sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

 }

 

 

 static int absvr_set_system_status(MSG_BUF *msg)

 {

-	absvr_common_req_msg_t *common_req_msg = NULL;

-	

-	absvr_common_result_t absvr_common_result = {0};

-	int ret = -1;

+    absvr_common_req_msg_t *common_req_msg = NULL;

 

-	common_req_msg = (absvr_common_req_msg_t *)(msg->aucDataBuf);

+    absvr_common_result_t absvr_common_result = {0};

+    int ret = -1;

 

-	ret = zxic_dual_set_system_status(common_req_msg->system, common_req_msg->status);

-	

-	absvr_common_result.result = ret;

+    common_req_msg = (absvr_common_req_msg_t *)(msg->aucDataBuf);

 

-	return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_SET_SYSTEM_STATUS_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

+    ret = zxic_dual_set_system_status(common_req_msg->system, common_req_msg->status);

+

+    absvr_common_result.result = ret;

+

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_SET_SYSTEM_STATUS_RSP,

+                        sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

 }

 

 

 static int absvr_get_fota_status_for_nv(MSG_BUF *msg)

 {

-	absvr_common_result_t absvr_common_result = {0};

-	int ret = -1;

+    absvr_common_result_t absvr_common_result = {0};

+    int ret = -1;

 

-	ret = zxic_dual_get_fota_status_for_nv();

+    ret = zxic_dual_get_fota_status_for_nv();

 

-	absvr_common_result.result = ret;

+    absvr_common_result.result = ret;

 

-	return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_GET_FOTA_STATUS_FOR_NV_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_GET_FOTA_STATUS_FOR_NV_RSP,

+                        sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

 }

 

 

 static int absvr_set_fota_status_for_nv(MSG_BUF *msg)

 {

-	absvr_common_req_msg_t *common_req_msg = NULL;

-	

-	absvr_common_result_t absvr_common_result = {0};

-	int ret = -1;

+    absvr_common_req_msg_t *common_req_msg = NULL;

 

-	common_req_msg = (absvr_common_req_msg_t *)(msg->aucDataBuf);

+    absvr_common_result_t absvr_common_result = {0};

+    int ret = -1;

 

-	ret = zxic_dual_set_fota_status_for_nv(common_req_msg->status_for_nv);

-	

-	absvr_common_result.result = ret;

+    common_req_msg = (absvr_common_req_msg_t *)(msg->aucDataBuf);

 

-	return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_SET_FOTA_STATUS_FOR_NV_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

+    ret = zxic_dual_set_fota_status_for_nv(common_req_msg->status_for_nv);

+

+    absvr_common_result.result = ret;

+

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_SET_FOTA_STATUS_FOR_NV_RSP,

+                        sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

 }

 

 

 static int absvr_get_sync_status(MSG_BUF *msg)

-{	

-	absvr_common_result_t absvr_common_result = {0};

+{

+    absvr_common_result_t absvr_common_result = {0};

 

-	zxic_dual_get_sync_status(&(absvr_common_result.result));

-	

-	return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_GET_SYNC_STATUS_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

+    zxic_dual_get_sync_status(&(absvr_common_result.result));

+

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_GET_SYNC_STATUS_RSP, sizeof(absvr_common_result),

+                        (unsigned char *)(&absvr_common_result));

 }

 

 

 static int absvr_set_sync_status(MSG_BUF *msg)

 {

-	absvr_common_req_msg_t *common_req_msg = NULL;

-	

-	absvr_common_result_t absvr_common_result = {0};

-	int ret = -1;

+    absvr_common_req_msg_t *common_req_msg = NULL;

 

-	common_req_msg = (absvr_common_req_msg_t *)(msg->aucDataBuf);

+    absvr_common_result_t absvr_common_result = {0};

+    int ret = -1;

 

-	ret = zxic_dual_set_sync_status(common_req_msg->sync_status);

-	

-	absvr_common_result.result = ret;

+    common_req_msg = (absvr_common_req_msg_t *)(msg->aucDataBuf);

 

-	return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_SET_SYNC_STATUS_RSP, sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

+    ret = zxic_dual_set_sync_status(common_req_msg->sync_status);

+

+    absvr_common_result.result = ret;

+

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_SET_SYNC_STATUS_RSP, sizeof(absvr_common_result),

+                        (unsigned char *)(&absvr_common_result));

+}

+

+

+static int absvr_config_package_path(MSG_BUF *msg)

+{

+    absvr_common_req_msg_t *common_req_msg = NULL;

+

+    absvr_common_result_t absvr_common_result = {0};

+    int ret = -1;

+

+    common_req_msg = (absvr_common_req_msg_t *)(msg->aucDataBuf);

+

+    ret = zxic_dual_config_package_path(common_req_msg->package_path, common_req_msg->len);

+

+    absvr_common_result.result = ret;

+

+    return send_soc_msg(FAR_PS, MODULE_ID_ABCLIENT, (unsigned short)ABSVR_CONFIG_PACKAGE_PATH_RSP,

+                        sizeof(absvr_common_result), (unsigned char *)(&absvr_common_result));

 }

 

 

 static int absvr_msg_proc(MSG_BUF *msg)

 {

-	int ret = 0;

+    int ret = 0;

 

-	if( NULL == msg)

-	{

-		slog(ABSVR_PRINT, SLOG_ERR, "Err: absvr_msg_proc msg is NULL \n");

-		return -1;

-	}

+    if ( NULL == msg)

+    {

+        slog(ABSVR_PRINT, SLOG_ERR, "Err: absvr_msg_proc msg is NULL \n");

+        return -1;

+    }

 

-	slog(ABSVR_PRINT, SLOG_NORMAL, "absvr_msg_proc start process msg [%hu] \n", msg->usMsgCmd);

-	

-	switch(msg->usMsgCmd)

-	{		

-		case ABSVR_GET_UPGRADE_TYPE_REQ:

-			ret = absvr_get_upgrade_type(msg);

-			break;

-		case ABSVR_VRITFY_REQ:

-			ret = absvr_verify(msg);

-			break;

-		case ABSVR_UPDATE_REQ:

-			ret = absvr_update(msg);

-			break;

-		case ABSVR_SYNC_REQ:

-			ret = absvr_sync(msg);

-			break;

-		case ABSVR_GET_UPGRADE_STATUS_REQ:

-			ret = absvr_get_upgrade_status(msg);

-			break;

-		case ABSVR_GET_CURRENT_SYSTEM_REQ:

-			ret = absvr_get_current_system(msg);

-			break;

-		case ABSVR_GET_BOOT_TO_SYSTEM_REQ:

-			ret = absvr_get_boot_to_system(msg);

-			break;

-		case ABSVR_SET_BOOT_TO_SYSTEM_REQ:

-			ret = absvr_set_boot_to_system(msg);

-			break;

-		case ABSVR_GET_SYSTEM_STATUS_REQ:

-			ret = absvr_get_system_status(msg);

-			break;

-		case ABSVR_SET_SYSTEM_STATUS_REQ:

-			ret = absvr_set_system_status(msg);

-			break;

-		case ABSVR_GET_FOTA_STATUS_FOR_NV_REQ:

-			ret = absvr_get_fota_status_for_nv(msg);

-			break;

-		case ABSVR_SET_FOTA_STATUS_FOR_NV_REQ:

-			ret = absvr_set_fota_status_for_nv(msg);

-			break;

-		case ABSVR_GET_SYNC_STATUS_REQ:

-			ret = absvr_get_sync_status(msg);

-			break;

-		case ABSVR_SET_SYNC_STATUS_REQ:

-			ret = absvr_set_sync_status(msg);

-			break;

-		default:

-			slog(ABSVR_PRINT, SLOG_ERR, "Err: absvr_msg_proc unknow usMsgCmd [%hu] \n", msg->usMsgCmd);

-			break;

-	}

+    slog(ABSVR_PRINT, SLOG_NORMAL, "absvr_msg_proc start process msg [%hu] \n", msg->usMsgCmd);

 

-	return ret;

+    switch (msg->usMsgCmd)

+    {

+        case ABSVR_GET_UPGRADE_TYPE_REQ:

+            ret = absvr_get_upgrade_type(msg);

+            break;

+        case ABSVR_VRITFY_REQ:

+            ret = absvr_verify(msg);

+            break;

+        case ABSVR_UPDATE_REQ:

+            ret = absvr_update(msg);

+            break;

+        case ABSVR_SYNC_REQ:

+            ret = absvr_sync(msg);

+            break;

+        case ABSVR_GET_UPGRADE_STATUS_REQ:

+            ret = absvr_get_upgrade_status(msg);

+            break;

+        case ABSVR_GET_CURRENT_SYSTEM_REQ:

+            ret = absvr_get_current_system(msg);

+            break;

+        case ABSVR_GET_BOOT_TO_SYSTEM_REQ:

+            ret = absvr_get_boot_to_system(msg);

+            break;

+        case ABSVR_SET_BOOT_TO_SYSTEM_REQ:

+            ret = absvr_set_boot_to_system(msg);

+            break;

+        case ABSVR_GET_SYSTEM_STATUS_REQ:

+            ret = absvr_get_system_status(msg);

+            break;

+        case ABSVR_SET_SYSTEM_STATUS_REQ:

+            ret = absvr_set_system_status(msg);

+            break;

+        case ABSVR_GET_FOTA_STATUS_FOR_NV_REQ:

+            ret = absvr_get_fota_status_for_nv(msg);

+            break;

+        case ABSVR_SET_FOTA_STATUS_FOR_NV_REQ:

+            ret = absvr_set_fota_status_for_nv(msg);

+            break;

+        case ABSVR_GET_SYNC_STATUS_REQ:

+            ret = absvr_get_sync_status(msg);

+            break;

+        case ABSVR_SET_SYNC_STATUS_REQ:

+            ret = absvr_set_sync_status(msg);

+            break;

+        case ABSVR_CONFIG_PACKAGE_PATH_REQ:

+            ret = absvr_config_package_path(msg);

+            break;

+        default:

+            slog(ABSVR_PRINT, SLOG_ERR, "Err: absvr_msg_proc unknow usMsgCmd [%hu] \n", msg->usMsgCmd);

+            break;

+    }

+

+    return ret;

 }

 

 

@@ -387,40 +427,40 @@
 

 int main(void)

 {

-	int iRet = 0;

+    int iRet = 0;

 

-	int iMsgHandle = 0;	

-	MSG_BUF stMsg = {0};

-	LONG msgSize =  sizeof(MSG_BUF) - sizeof(LONG);

+    int iMsgHandle = 0;

+    MSG_BUF stMsg = {0};

+    LONG msgSize =  sizeof(MSG_BUF) - sizeof(LONG);

 

-	/*¸ù¾ÝNV³õʼ»¯´òÓ¡¼¶±ð£¬²¢×¢²á¶¯Ì¬µ÷Õû´òÓ¡¼¶±ðÐźÅÁ¿*/

-	loglevel_init();

-	slog(ABSVR_PRINT, SLOG_NORMAL, "sc_absvr begin ======= build date: %s %s \n", __DATE__, __TIME__);

-	

-	iMsgHandle = msgget(MODULE_ID_ABSVR, IPC_CREAT | 0600);

-	if (-1 == iMsgHandle)

-	{

-		slog(ABSVR_PRINT, SLOG_ERR, "Err: can not create msg queue for sc_absvr \n");

-		return -1;

-	}

+    /*¸ù¾ÝNV³õʼ»¯´òÓ¡¼¶±ð£¬²¢×¢²á¶¯Ì¬µ÷Õû´òÓ¡¼¶±ðÐźÅÁ¿*/

+    loglevel_init();

+    slog(ABSVR_PRINT, SLOG_NORMAL, "sc_absvr begin ======= build date: %s %s \n", __DATE__, __TIME__);

 

-	for (;;)

-	{

-		memset(&stMsg, 0, sizeof(stMsg));

-		iRet = 0;

-		iRet = msgrcv(iMsgHandle, &stMsg, msgSize, 0, 0);

-		if (-1 == iRet)

-		{

-			slog(ABSVR_PRINT, SLOG_ERR, "Err: recv msg fail errno = %d \n", errno);

-			continue;

-		}

-		

-		if (0 != absvr_msg_proc(&stMsg))

-		{

-			slog(ABSVR_PRINT, SLOG_ERR, "Err: absvr_msg_proc src_id[%d] usMsgCmd[%hu] fail \n", stMsg.src_id, stMsg.usMsgCmd);			

-		}

-	}

-	

-	return 0;

+    iMsgHandle = msgget(MODULE_ID_ABSVR, IPC_CREAT | 0600);

+    if (-1 == iMsgHandle)

+    {

+        slog(ABSVR_PRINT, SLOG_ERR, "Err: can not create msg queue for sc_absvr \n");

+        return -1;

+    }

+

+    for (;;)

+    {

+        memset(&stMsg, 0, sizeof(stMsg));

+        iRet = 0;

+        iRet = msgrcv(iMsgHandle, &stMsg, msgSize, 0, 0);

+        if (-1 == iRet)

+        {

+            slog(ABSVR_PRINT, SLOG_ERR, "Err: recv msg fail errno = %d \n", errno);

+            continue;

+        }

+

+        if (0 != absvr_msg_proc(&stMsg))

+        {

+            slog(ABSVR_PRINT, SLOG_ERR, "Err: absvr_msg_proc src_id[%d] usMsgCmd[%hu] fail \n", stMsg.src_id, stMsg.usMsgCmd);

+        }

+    }

+

+    return 0;

 }

 

diff --git a/ap/app/shm_test/Makefile b/ap/app/shm_test/Makefile
new file mode 100755
index 0000000..0e1093f
--- /dev/null
+++ b/ap/app/shm_test/Makefile
@@ -0,0 +1,34 @@
+#*******************************************************************************
+#*******************************************************************************
+include $(COMMON_MK)
+
+##############USER COMIZE BEGIN################
+EXEC = shm_test
+OBJS = shm_test.o
+
+CFLAGS += -I.
+CFLAGS += -I$(APP_DIR)/include
+CFLAGS += -I./../inc
+
+CFLAGS += -g -Werror=implicit-function-declaration
+
+LDLIBS  += -lpthread 
+
+##############USER COMIZE END##################
+
+#*******************************************************************************
+# targets
+#*******************************************************************************
+all: $(EXEC)
+
+$(EXEC): $(OBJS)
+	$(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
+	@cp $@ $@.elf
+
+
+romfs:
+	$(ROMFSINST) $(EXEC) /bin/$(EXEC)
+
+clean:
+	-@rm -f $(EXEC) *.elf *.gdb *.o
+
diff --git a/ap/app/shm_test/shm_test.c b/ap/app/shm_test/shm_test.c
new file mode 100755
index 0000000..2bc1dea
--- /dev/null
+++ b/ap/app/shm_test/shm_test.c
@@ -0,0 +1,297 @@
+#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <signal.h>
+#include <time.h>
+#include <pthread.h>
+#include <sys/prctl.h>
+#include <sys/ipc.h>
+#include <sys/shm.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+/**
+ * ºê¶¨Òå
+ */
+#define SHM_TEST_ALLOC_THREAD     (0)
+#define SHM_TEST_MEMGET_THREAD    (1)
+#define SHM_TEST_SHMCTL_THREAD    (2)
+#define SHM_TEST_WRITE_THREAD     (3)
+#define SHM_TEST_THREAD_NUM       (4)
+#define SHM_TEST_STR_NUM          (20)
+#define SHM_TEST_CAP_INIT_VALUE   (0x16)
+
+#define SHM_TEST_MARK_0X1         (0x1)
+#define SHM_TEST_MARK_0X3         (0x3)
+#define SHM_TEST_MARK_0X5         (0x5)
+#define SHM_TEST_MARK_0X7         (0x7)
+#define SHM_TEST_MARK_NUM         (0xA)
+
+#define SHM_PAGE_SIZE             (4096)
+#define SHM_ALLOC_ONE_PAGE_SIZE   (1024)
+#define SHM_ALLOC_TWO_PAGE_SIZE   (8100)
+#define SHM_ALLOC_FOUR_PAGE_SIZE  (16000)
+
+#define SHM_TEST_READ_FROM_SHM_PAGE0 (0x0A)
+#define SHM_TEST_WRITE_TO_SHM_PAGE1  (0x1B)
+#define SHM_TEST_READ_FROM_SHM_PAGE2 (0x2A)
+#define SHM_TEST_WRITE_TO_SHM_PAGE3  (0x3B)
+
+/**
+ * È«¾Ö±äÁ¿¶¨Òå
+ */
+pthread_t shm_mem_thread;
+pthread_t shm_alloc_thread;
+pthread_t shm_ppcross_thread;
+pthread_t shm_shmdt_thread;
+
+int  g_shmid[SHM_TEST_THREAD_NUM] = {0};
+char *g_pshm[SHM_TEST_THREAD_NUM] = {NULL};
+int   g_mark_path[SHM_TEST_MARK_NUM] = {0xFFFF};
+
+void *ap_mem_shm_alloc(void* args)
+{
+	int  shmid = 0;
+	char *pshm = NULL;
+	key_t key = 0xFFFFF001;
+
+	prctl(PR_SET_NAME, "shm_alloc_task");
+
+	/*alloc two pages*/
+	shmid = shmget(key, SHM_ALLOC_TWO_PAGE_SIZE, 0666|IPC_CREAT);
+	if(shmid < 0)
+		printf("shmid return error\n");
+
+	pshm = (char *)shmat(shmid, 0, 0);
+	if (pshm == NULL)
+		printf("shmat return error\n");
+
+	g_shmid[SHM_TEST_ALLOC_THREAD] = shmid;
+	g_pshm[SHM_TEST_ALLOC_THREAD]	= pshm;
+	shmdt(pshm);
+	if(shmctl(shmid, IPC_RMID,0) == -1)
+		printf("shmctl error\n");
+
+	while(1)
+	{
+		sleep(50);
+	}
+}
+
+void *ap_mmap_shm(void* args)
+{
+	int  shmid = 0;
+	char *pshm = NULL;
+	key_t key = 0xFFFFF002;
+
+	prctl(PR_SET_NAME, "shm_mem_task");
+
+	/*alloc two pages*/
+	shmid = shmget(key, SHM_ALLOC_TWO_PAGE_SIZE, 0666|IPC_CREAT);
+	if(shmid < 0)
+		printf("shmid return error\n");
+
+	pshm = (char *)shmat(shmid, 0, 0);
+	if (pshm == NULL)
+		printf("shmat return error\n");
+	
+	g_shmid[SHM_TEST_MEMGET_THREAD] = shmid;
+	g_pshm[SHM_TEST_MEMGET_THREAD]  = pshm;
+	shmdt(pshm);
+	if(shmctl(shmid, IPC_RMID,0) == -1)
+		printf("shmctl error\n");
+
+	while(1)
+	{
+		sleep(50);
+	}
+}
+
+void *ap_write_and_shmdt(void* args)
+{
+	int   shmid    = 0;
+	int   test_num = 0;
+	int   *pshm    = NULL;
+	key_t key      = 0xFFFFF003;
+
+	prctl(PR_SET_NAME, "shm_task");
+	
+	shmid = shmget(key, SHM_ALLOC_ONE_PAGE_SIZE, 0666|IPC_CREAT);
+	
+	if(shmid < 0)
+		printf("shmid return error\n");
+
+	pshm = (int *)shmat(shmid, 0, 0);
+	if (pshm == NULL)
+		printf("shmat return error\n");
+	
+	g_shmid[SHM_TEST_WRITE_THREAD] = shmid;
+	g_pshm[SHM_TEST_WRITE_THREAD]  = pshm;
+
+	while(1)
+	{
+ 		test_num = *(int *)pshm;
+		if(test_num == SHM_TEST_CAP_INIT_VALUE)
+		{		
+			*(int *)pshm = SHM_TEST_MARK_0X1 + 1;
+			g_mark_path[1] = SHM_TEST_MARK_0X1;
+			printf("shmat test_num 0x16, g_mark_path[1] = %x\n", g_mark_path[1]);
+			break;
+		}
+		sleep(1);
+	}
+
+	while(1)
+	{
+		test_num = *(int *)pshm;
+		if(test_num == SHM_TEST_MARK_0X3)
+		{
+			*(int *)pshm = SHM_TEST_MARK_0X3 + 1;
+			g_mark_path[3] = SHM_TEST_MARK_0X3;
+			printf("shmat test_num 3, g_mark_path[3] before= %x\n", g_mark_path[3]);
+			break;
+		}
+		sleep(1);
+	}
+
+	while(1)
+	{
+		test_num = *(int *)pshm;
+		if(test_num == SHM_TEST_MARK_0X5)
+		{
+			*(int *)pshm = SHM_TEST_MARK_0X5 + 1;
+			g_mark_path[5] = SHM_TEST_MARK_0X5;
+			printf("shmat test_num 5, g_mark_path5 before= %x\n", g_mark_path[5]);
+			break;
+		}
+		sleep(1);
+	}
+
+	while(1)
+	{
+		test_num = *(int *)pshm;
+		if(test_num == SHM_TEST_MARK_0X7)
+		{
+			*(int *)pshm = SHM_TEST_MARK_0X7 + 1;		
+			g_mark_path[7] = SHM_TEST_MARK_0X7;
+			printf("shmat test_num 7, g_mark_path7 before= %x\n", g_mark_path[7]);
+			break;
+		}
+		sleep(1);
+	}
+	memcpy(pshm + 32, "123456", SHM_TEST_STR_NUM);
+
+	shmdt(pshm);
+
+	while(1)
+	{
+		sleep(2);
+	}
+}
+
+void *ap_fourpage_cross_shm(void* args)
+{
+    int i = 0;
+	int   shmid    = 0;
+	char  test_num = 0;
+	char  *pshm    = NULL;
+	key_t key      = 0xFFFFF004;
+
+	prctl(PR_SET_NAME, "shm_cross_task");
+
+	/*alloc four pages*/
+	shmid = shmget(key, SHM_ALLOC_FOUR_PAGE_SIZE, 0666|IPC_CREAT);
+	if(shmid < 0)
+		printf("shmid return error\n");
+
+	pshm = (char *)shmat(shmid, 0, 0);
+	if (pshm == NULL)
+		printf("shmat return error\n");
+
+	g_shmid[SHM_TEST_SHMCTL_THREAD] = shmid;
+	g_pshm[SHM_TEST_SHMCTL_THREAD]	= pshm;
+
+	for(;;)
+	{
+		while(1)
+		{
+			test_num = *(char *)pshm;
+			if(test_num == SHM_TEST_READ_FROM_SHM_PAGE0)
+			{
+				*(char *)(pshm + SHM_PAGE_SIZE) = SHM_TEST_WRITE_TO_SHM_PAGE1;
+				g_mark_path[2] =  SHM_TEST_READ_FROM_SHM_PAGE0;
+				printf("shmat test_num, AP write %x to shm\n",SHM_TEST_WRITE_TO_SHM_PAGE1);
+				break;
+			}
+			sleep(5);
+		}
+		while(1)
+		{
+			test_num = *(char *)(pshm + 2 * SHM_PAGE_SIZE);
+			if(test_num == SHM_TEST_READ_FROM_SHM_PAGE2)
+			{
+				*(char *)(pshm + 3 * SHM_PAGE_SIZE) = SHM_TEST_WRITE_TO_SHM_PAGE3;
+				g_mark_path[4] =  SHM_TEST_READ_FROM_SHM_PAGE2;
+				printf("shmat test_num, AP write %x to shm\n", SHM_TEST_WRITE_TO_SHM_PAGE3);
+				break;
+			}
+			sleep(5);
+		}
+		if (i++ >= 10)
+			break;
+	}
+	shmdt(pshm);
+	if(shmctl(shmid, IPC_RMID,0) == -1)
+		printf("shmctl error\n");
+
+	printf("shmctl end\n");
+	while(1)
+	{
+		sleep(5);
+	}
+}
+
+int main (int argc, char *argv[])
+{
+	int ret = 0;
+	
+	ret = pthread_create(&shm_mem_thread, NULL, ap_mem_shm_alloc, NULL);
+	if(ret != 0) 
+	{
+		printf("pthread_create shm_mem_thread error\n");
+	}
+
+	ret = pthread_create(&shm_alloc_thread, NULL, ap_mmap_shm, NULL);
+	if(ret != 0) 
+	{
+		printf("pthread_create shm_alloc_thread error\n");
+	}
+
+	ret = pthread_create(&shm_ppcross_thread, NULL, ap_fourpage_cross_shm, NULL);
+	if(ret != 0) 
+	{
+		printf("pthread_create shm_ppcross_thread error\n");
+	}
+
+	ret = pthread_create(&shm_shmdt_thread, NULL, ap_write_and_shmdt, NULL);
+	if(ret != 0) 
+	{
+		printf("pthread_create shm_shmdt_thread error\n");
+	}
+	if(shm_mem_thread > 0) 
+		pthread_join(shm_mem_thread, NULL);
+	
+	if(shm_alloc_thread > 0) 
+		pthread_join(shm_alloc_thread, NULL);
+
+	if(shm_ppcross_thread > 0) 
+		pthread_join(shm_ppcross_thread, NULL);
+	
+	if(shm_shmdt_thread > 0) 
+		pthread_join(shm_shmdt_thread, NULL);
+
+	return 0;
+}
+
diff --git a/ap/app/test_tools/glibc/procmem b/ap/app/test_tools/glibc/procmem
new file mode 100755
index 0000000..ed13de1
--- /dev/null
+++ b/ap/app/test_tools/glibc/procmem
Binary files differ
diff --git a/ap/app/test_tools/glibc/procrank b/ap/app/test_tools/glibc/procrank
new file mode 100755
index 0000000..6af70e5
--- /dev/null
+++ b/ap/app/test_tools/glibc/procrank
Binary files differ
diff --git a/ap/app/test_tools/glibc/strace b/ap/app/test_tools/glibc/strace
new file mode 100755
index 0000000..5f20587
--- /dev/null
+++ b/ap/app/test_tools/glibc/strace
Binary files differ
diff --git a/ap/app/tzdata/Makefile b/ap/app/tzdata/Makefile
new file mode 100755
index 0000000..6665c92
--- /dev/null
+++ b/ap/app/tzdata/Makefile
@@ -0,0 +1,28 @@
+############################################################################

+#

+# Makefile --  Build for rootfs makefile.

+#

+# Copyright (c) 2001-2004, SnapGear (www.snapgear.com)

+# Copyright (c) 2001, Lineo

+#

+# Add by yinweiyang 2023-06-26 

+# 

+############################################################################

+CP        = cp

+ROMFS_DIR = $(ROMFSDIR)

+

+.PHONY: romfs tzdata

+

+all:

+

+romfs:

+	chmod +x ./zoneinfo/*

+	mkdir -p $(ROMFS_DIR)/usr/share/zoneinfo

+ifneq ($(CONFIG_TZDATA_MODULE),)

+	#$(CP) -rf ./zoneinfo/$(CONFIG_TZDATA_MODULE)/*  $(ROMFS_DIR)/usr/share/zoneinfo

+	$(CP) -rf ./zoneinfo/$(CONFIG_TZDATA_MODULE)  $(ROMFS_DIR)/usr/share/zoneinfo/	

+else

+	$(CP) -rf ./zoneinfo/*  $(ROMFS_DIR)/usr/share/zoneinfo

+endif

+

+

diff --git a/ap/app/tzdata/zoneinfo/America/Chicago b/ap/app/tzdata/zoneinfo/America/Chicago
new file mode 100755
index 0000000..3dd8f0f
--- /dev/null
+++ b/ap/app/tzdata/zoneinfo/America/Chicago
Binary files differ
diff --git a/ap/app/tzdata/zoneinfo/America/New_York b/ap/app/tzdata/zoneinfo/America/New_York
new file mode 100755
index 0000000..7553fee
--- /dev/null
+++ b/ap/app/tzdata/zoneinfo/America/New_York
Binary files differ
diff --git a/ap/app/tzdata/zoneinfo/Asia/Hong_Kong b/ap/app/tzdata/zoneinfo/Asia/Hong_Kong
new file mode 100755
index 0000000..dc9058e
--- /dev/null
+++ b/ap/app/tzdata/zoneinfo/Asia/Hong_Kong
Binary files differ
diff --git a/ap/app/tzdata/zoneinfo/Asia/Seoul b/ap/app/tzdata/zoneinfo/Asia/Seoul
new file mode 100755
index 0000000..fd91d5b
--- /dev/null
+++ b/ap/app/tzdata/zoneinfo/Asia/Seoul
Binary files differ
diff --git a/ap/app/tzdata/zoneinfo/Asia/Shanghai b/ap/app/tzdata/zoneinfo/Asia/Shanghai
new file mode 100755
index 0000000..dbd132f
--- /dev/null
+++ b/ap/app/tzdata/zoneinfo/Asia/Shanghai
Binary files differ
diff --git a/ap/app/tzdata/zoneinfo/Asia/Singapore b/ap/app/tzdata/zoneinfo/Asia/Singapore
new file mode 100755
index 0000000..9dd49cb
--- /dev/null
+++ b/ap/app/tzdata/zoneinfo/Asia/Singapore
Binary files differ
diff --git a/ap/app/tzdata/zoneinfo/Asia/Taipei b/ap/app/tzdata/zoneinfo/Asia/Taipei
new file mode 100755
index 0000000..4810a0b
--- /dev/null
+++ b/ap/app/tzdata/zoneinfo/Asia/Taipei
Binary files differ
diff --git a/ap/app/tzdata/zoneinfo/Asia/Tokyo b/ap/app/tzdata/zoneinfo/Asia/Tokyo
new file mode 100755
index 0000000..0244140
--- /dev/null
+++ b/ap/app/tzdata/zoneinfo/Asia/Tokyo
Binary files differ
diff --git a/ap/app/tzdata/zoneinfo/Asia/Urumqi b/ap/app/tzdata/zoneinfo/Asia/Urumqi
new file mode 100755
index 0000000..964a5c2
--- /dev/null
+++ b/ap/app/tzdata/zoneinfo/Asia/Urumqi
Binary files differ
diff --git a/ap/app/tzdata/zoneinfo/Etc/UTC b/ap/app/tzdata/zoneinfo/Etc/UTC
new file mode 100755
index 0000000..c3b97f1
--- /dev/null
+++ b/ap/app/tzdata/zoneinfo/Etc/UTC
Binary files differ
diff --git a/ap/app/tzdata/zoneinfo/Europe/London b/ap/app/tzdata/zoneinfo/Europe/London
new file mode 100755
index 0000000..4527515
--- /dev/null
+++ b/ap/app/tzdata/zoneinfo/Europe/London
Binary files differ
diff --git a/ap/app/tzdata/zoneinfo/Europe/Moscow b/ap/app/tzdata/zoneinfo/Europe/Moscow
new file mode 100755
index 0000000..bdbbaeb
--- /dev/null
+++ b/ap/app/tzdata/zoneinfo/Europe/Moscow
Binary files differ
diff --git a/ap/app/tzdata/zoneinfo/Europe/Paris b/ap/app/tzdata/zoneinfo/Europe/Paris
new file mode 100755
index 0000000..cf6e2e2
--- /dev/null
+++ b/ap/app/tzdata/zoneinfo/Europe/Paris
Binary files differ
diff --git a/ap/app/tzdata/zoneinfo/Europe/Rome b/ap/app/tzdata/zoneinfo/Europe/Rome
new file mode 100755
index 0000000..5cc3040
--- /dev/null
+++ b/ap/app/tzdata/zoneinfo/Europe/Rome
Binary files differ
diff --git a/ap/app/zte_amt/amt.c b/ap/app/zte_amt/amt.c
index 6178997..5280171 100755
--- a/ap/app/zte_amt/amt.c
+++ b/ap/app/zte_amt/amt.c
@@ -88,6 +88,10 @@
 static volatile int *g_amt_fd_current = NULL;

 static int g_amt_iMsgHandle = 0;

 unsigned int g_amt_at_mode = 0;

+#ifdef USE_CAP_SUPPORT

+static int g_amt_fd_cap = -1;

+#endif

+

 

 

 

@@ -136,15 +140,15 @@
 {

 	int  write_len = PortSend(fd, buf, buf_len, NO_WAIT);

 

-        if (write_len <= 0)

-        {

-            AmtPrintf(AMT_ERROR "%s: PortSend 'data' to device(fd = %d): write_len(%d) is wrong.\n", __FUNCTION__, fd, write_len);

-        }

+    if (write_len <= 0)

+    {

+    	AmtPrintf(AMT_ERROR "%s: PortSend 'data' to device(fd = %d): write_len(%d) is wrong.\n", __FUNCTION__, fd, write_len);

+    }

 	else

 	{

-            AmtPrintf(AMT_INFO "%s: PortSend 'data' to device(fd = %d): write_len(%d),buf_len(%d) \n", __FUNCTION__, fd, write_len,buf_len);

+        AmtPrintf(AMT_INFO "%s: PortSend 'data' to device(fd = %d): write_len(%d),buf_len(%d) \n", __FUNCTION__, fd, write_len,buf_len);

 	}

-        return write_len;

+    return write_len;

 }

 

 

@@ -253,6 +257,57 @@
     }while(Endb!=NULL); 

 }

 

+#ifdef USE_CAP_SUPPORT

+/**

+ * @brief ¶ÁÈ¡cap²àµÄ·´À¡ÏûÏ¢Ï̺߳¯Êý

+ * @param[in] args Ï̺߳¯Êý²ÎÊý

+ * @return N/A

+ * @note

+ * @see 

+ */

+static void* ReadFromCAPThread(void* args)

+{

+    // Read from AP-CAP channel

+    char *receive_buffer = NULL;

+

+	UNUSED(args);

+	

+	receive_buffer = malloc(MAX_PACKET_LENGTH);

+    if (receive_buffer == NULL)

+    {

+        return NULL;

+    }

+

+	prctl(PR_SET_NAME, "AmtReadFromCAP");

+

+    while (1)

+    {

+        int read_len = Amt_ReceiveData(g_amt_fd_cap, (unsigned char *)receive_buffer, MAX_PACKET_LENGTH);

+

+        if (read_len > 0)

+        {

+            AmtPrintf(AMT_INFO "%s: Receive cap data, read_len = %d!.\n", __FUNCTION__, read_len);

+

+            if (g_amt_fd_current && *g_amt_fd_current >= 0)

+            {

+                if(g_amt_at_mode != 1)

+                {

+                    Amt_SendData(*g_amt_fd_current, (unsigned char *)receive_buffer, read_len);

+                }

+            }

+            else

+            {

+                AmtPrintf(AMT_ERROR "%s: Current fd is wrong.\n", __FUNCTION__);

+            }

+        }

+    }

+

+    free(receive_buffer);

+    return NULL;

+}

+#endif

+

+

 /**

  * @brief ¶ÁÈ¡cp²àµÄ·´À¡ÏûÏ¢Ï̺߳¯Êý

  * @param[in] args Ï̺߳¯Êý²ÎÊý

@@ -797,6 +852,105 @@
     return 0;

 }

 

+#ifdef USE_CAP_SUPPORT

+/**

+ * @brief AMTÏûÏ¢·¢ËÍ

+ * @param[in] fd ÎļþÃèÊö·û

+ * @param[in] buf ½ÓÊÕÊý¾Ýbuffer

+ * @param[in] buf_len ½ÓÊÕÊý¾Ýbuffer³¤¶È

+ * @return ·µ»Ø·¢Ë͵ÄÊý¾Ý³¤¶È

+ * @note

+ * @see 

+ */

+static int Amt_SendDataToCAP(int fd, unsigned char* buf, unsigned int buf_len)

+{

+    int write_len = PortSend(fd, (unsigned char*)&buf_len, sizeof(unsigned int), WAIT_ALL);

+

+    if (write_len != sizeof(unsigned int))

+    {

+        AmtPrintf(AMT_ERROR "%s: Failed to send data_len to fd(%d)! write_len = %d.\n",

+                  __FUNCTION__, fd, write_len);

+        write_len = 0;

+    }

+    else

+    {

+        if (buf != NULL && buf_len > 0)

+        {

+            write_len = PortSend(fd, buf, buf_len, WAIT_ALL);

+

+            if (write_len != (int)buf_len)

+            {

+                AmtPrintf(AMT_ERROR "%s: Failed to send data to fd(%d)! (write_len = %d) != (buf_len = %d).\n",

+                          __FUNCTION__, fd, write_len, buf_len);

+            }

+        }

+    }

+

+    return write_len;

+}

+

+

+/**

+ * @brief AMTÏûÏ¢´ò°ü·¢¸øCAP

+ * @param[in] fd ÎļþÃèÊö·û

+ * @param[in] msg_id FID

+ * @param[in] buf ½ÓÊÕÊý¾Ýbuffer

+ * @param[in] buf_len ½ÓÊÕÊý¾Ýbuffer³¤¶È

+ * @return ³É¹¦·µ»Ø0

+ * @note

+ * @see 

+ */

+static int Amt_SendMessageToCAP(int fd, unsigned int msg_id, unsigned char* buf, unsigned int buf_len)

+{

+    // STX  TID  FID   Data  Check  ETX

+    unsigned int CmdCount = 1 + 1 + 1 + buf_len + 1   + 1;

+    unsigned char *pRsp = NULL;

+    unsigned char *pSTX = NULL;

+    unsigned char *pETX = NULL;

+    unsigned char *pTID = NULL;

+    unsigned char *pFID = NULL;

+    unsigned char *pCheck = NULL;

+    unsigned char *pData = NULL;

+    unsigned char CheckSum = 0;

+    unsigned int i = 0;

+

+    pRsp = malloc(CmdCount);

+	if(pRsp == NULL)

+		return -1;

+    memset(pRsp, 0, CmdCount);

+

+    pSTX = &pRsp[0];

+    pETX = &pRsp[1 + 1 + 1 + buf_len + 1];

+    pTID = &pRsp[1];

+    pFID = &pRsp[1 + 1];

+    pCheck = &pRsp[1 + 1 + 1 + buf_len];

+    pData = &pRsp[1 + 1 + 1];

+	

+    *pSTX = 0x02;

+    *pETX = 0x02;

+    *pTID = (msg_id & 0xFF00) >> 8;

+    *pFID = (msg_id & 0xFF);

+

+    if (buf != NULL && buf_len > 0)

+    {

+        memcpy(pData, buf, buf_len);

+    }

+

+    CheckSum = 0;

+

+    for (i = 0; i < (1 + 1 + buf_len); i++)

+        CheckSum ^= pRsp[1 + i];

+

+    *pCheck = CheckSum;

+

+    Amt_SendDataToCAP(fd, pRsp, CmdCount);

+

+    free(pRsp);

+    return 0;

+}

+#endif

+

+

 

 /**

  * @brief AMTÏûÏ¢´¦Àíº¯Êý

@@ -1075,8 +1229,25 @@
     }

 	else if((msg_id >= FID_FUN_TEST_START)&&(msg_id <= FID_FUN_TEST_END))

 	{

-       Amt_FuncTest_ProcessMsg(msg_id, buf, buf_len);

+		Amt_FuncTest_ProcessMsg(msg_id, buf, buf_len);

 	}

+	#ifdef USE_CAP_SUPPORT

+	else if((msg_id >= FID_CAP_TEST_START)&&(msg_id <= FID_CAP_TEST_END))

+	{

+		 AmtPrintf(AMT_INFO "%s: receive cap msg.\n", __FUNCTION__);

+        // Send message to CAP

+        if (Amt_SendMessageToCAP(g_amt_fd_cap, msg_id, buf, buf_len) == -1)

+        {

+            AmtPrintf(AMT_ERROR "%s: Failed to send data to cap, msg_id = %#04x, buf_len = %d.\n",

+                      __FUNCTION__, msg_id, buf_len);

+        }

+        else

+        {

+            AmtPrintf(AMT_INFO "%s: Send data to cap, msg_id = %#04x, buf_len = %d.\n",

+                      __FUNCTION__, msg_id, buf_len);

+        }

+	}

+	#endif

     else // CP message

     {

         AmtPrintf(AMT_INFO "%s: receive old cp msg.\n", __FUNCTION__);

@@ -1291,6 +1462,34 @@
     return sockfd;

 }

 

+#ifdef USE_CAP_SUPPORT

+static int init_cap_channel(void)

+{

+    int fd = open(AMT_CAP_DEV, O_RDWR);

+

+    if (fd < 0)

+    {

+        AmtPrintf(AMT_ERROR "Failed to open \"%s\"!\n", AMT_CAP_DEV);

+        return -1;

+    }

+

+    if(ioctl(fd, RPMSG_CREATE_CHANNEL, (4*1024))!= 0)   // ´´½¨Í¨µÀ´óС4K

+    {

+        AmtPrintf(AMT_ERROR "ioctrl:RPMSG_CREATE_CHANNEL fail!\n");

+    }

+    if(ioctl(fd, RPMSG_SET_INT_FLAG, NULL)!= 0)       // ·¢ËÍÏûϢʱ£¬´¥·¢ÖжÏ

+    {

+        AmtPrintf(AMT_ERROR "ioctrl:RPMSG_SET_INT_FLAG fail!\n");

+    }

+    if(ioctl(fd, RPMSG_CLEAR_POLL_FLAG, NULL)!= 0)      // ×èÈûµÄ·½Ê½¶Á

+    {

+        AmtPrintf(AMT_ERROR "ioctrl:RPMSG_CLEAR_POLL_FLAG fail!\n");

+	}

+    return fd;

+}

+#endif

+

+

 static void set_fd(int fd)

 {

     FD_SET(fd, &g_amt_fdsread);

@@ -1603,6 +1802,27 @@
             set_fd(g_amt_fd_socket_server);

         }

     }

+	

+    #ifdef USE_CAP_SUPPORT

+	/********************** Init AP-CAP channel ********************/

+	g_amt_fd_cap = init_cap_channel();

+    if (g_amt_fd_cap < 0)

+    {

+        return -1;

+    }

+    else

+    {

+        AmtPrintf(AMT_INFO "g_amt_fd_cap = %d.\n", g_amt_fd_cap);

+    }

+

+	 // Create CAP read thread

+    pthread_t cap_read_thread;

+    if (pthread_create(&cap_read_thread, NULL, ReadFromCAPThread, NULL) != 0)

+    {

+        AmtPrintf(AMT_ERROR "Failed to create CAP read thread!\n");

+        return -1;

+    }

+	#endif

 

     // Create CP read thread

     pthread_t cp_read_thread;

@@ -1833,6 +2053,10 @@
         close(g_amt_fd_socket_server);

     }

 

+	#ifdef USE_CAP_SUPPORT

+	close(g_amt_fd_cap);

+	#endif

+

     AmtPrintf(AMT_INFO "AMT exit!\n");

     return 0;

 }

diff --git a/ap/app/zte_amt/amt.h b/ap/app/zte_amt/amt.h
index 5dce06d..10e7c23 100755
--- a/ap/app/zte_amt/amt.h
+++ b/ap/app/zte_amt/amt.h
@@ -38,6 +38,9 @@
 

 #define AMT_USB_DEV    "/dev/ttyGS0"

 #define AMT_CP_CHANNEL "/dev/rpm9"

+#ifdef USE_CAP_SUPPORT

+#define AMT_CAP_DEV    "/dev/rpmsg15"

+#endif

 

 

 #define AMT_DETECT_USB_OFFLINE   "offline@/devices/platform/zx29_hsotg.0/gadget/tty/ttyGS0"

@@ -85,6 +88,12 @@
 #define FID_OPEN_UART           (FID_FUN_TEST_START + 6)

 #define FID_CLOSE_UART          (FID_FUN_TEST_START + 7)

 

+#ifdef USE_CAP_SUPPORT

+//ÐèÒª·¢Ë͵½capºË´¦ÀíµÄÏûÏ¢·¶Î§

+#define FID_CAP_TEST_START             0x2000

+#define FID_CAP_TEST_END               0x2400

+#endif

+

 

 

 #define min(X, Y)				\

diff --git a/ap/app/zte_comm/at_ctl/inc/mnet_whitelist.h b/ap/app/zte_comm/at_ctl/inc/mnet_whitelist.h
new file mode 100755
index 0000000..7264720
--- /dev/null
+++ b/ap/app/zte_comm/at_ctl/inc/mnet_whitelist.h
@@ -0,0 +1,45 @@
+/**

+ * @file mnet_whitelist.h 

+ * @brief Ìṩat_ctlCPºÍAP¼äÔöɾÖ÷¶¯Éϱ¨ATÃüÁîµÄ½Ó¿Ú

+ *

+ * Copyright (C) 2017 Sanechips Technology Co., Ltd.

+ * @author 

+ * 

+ * 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. 

+ *

+ */

+#ifndef __MNET_WHITELIST_H__

+#define __MNET_WHITELIST_H__

+

+/*******************************************************************************

+ *                           Include header files                              *

+ ******************************************************************************/

+/*******************************************************************************

+ *                             Macro definitions                               *

+ ******************************************************************************/

+/*******************************************************************************

+ *                             Type definitions                                *

+ ******************************************************************************/

+/*******************************************************************************

+ *                       Global function declarations                          *

+ ******************************************************************************/

+/**

+ * @brief CPÏòAP²àÐÂÔöÖ÷¶¯Éϱ¨ATÃüÁî

+ * @param 

+ * @return 

+ * @note   

+ * @warning 

+ */

+void mnet_whitelist_add(char* at_str);

+/**

+ * @brief CPÏòAP²àɾ³ýÖ÷¶¯Éϱ¨ATÃüÁî

+ * @param 

+ * @return 

+ * @note   

+ * @warning 

+ */

+void mnet_whitelist_del(char* at_str);

+

+#endif

diff --git a/ap/app/zte_comm/at_ctl/src/atconfig/mnet_whitelist.c b/ap/app/zte_comm/at_ctl/src/atconfig/mnet_whitelist.c
new file mode 100755
index 0000000..5a7e9d0
--- /dev/null
+++ b/ap/app/zte_comm/at_ctl/src/atconfig/mnet_whitelist.c
@@ -0,0 +1,89 @@
+/**

+ * @file mnet_whitelist.c

+ * @brief at_ctlCAPºÍAP¼äÊ¡µçºÚ°×Ãûµ¥½»»¥½Ó¿Ú

+ *

+ * Copyright (C) 2017 Sanechips Technology Co., Ltd.

+ * @author 

+ * 

+ * 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. 

+ *

+ */

+

+/*******************************************************************************

+ *                           Include header files                              *

+ ******************************************************************************/

+#ifdef MULTI_CPU

+

+#include "at_context.h"

+#include "at_register.h"

+#include "recv_thread.h"

+#include "ps_normal.h"

+#include "softap_api.h"

+#include "ref_nv_def.h"

+#include "mnet_whitelist.h"

+

+/*******************************************************************************

+ *                             Macro definitions                               *

+ ******************************************************************************/

+/*******************************************************************************

+ *                             Type definitions                                *

+ ******************************************************************************/

+/*******************************************************************************

+ *                        Local function declarations                          *

+ ******************************************************************************/

+/*******************************************************************************

+ *                         Local variable definitions                          *

+ ******************************************************************************/

+/*******************************************************************************

+ *                        Global variable definitions                          *

+ ******************************************************************************/

+

+extern char PsmIndAtCmdPrefix[AT_CMD_MAX];

+

+/*******************************************************************************

+ *                      Local function implementations                         *

+ ******************************************************************************/

+

+void mnet_whitelist_add(char* at_str)

+{

+	if(at_strstr(PsmIndAtCmdPrefix, at_str)){

+		return;

+	}else{

+		if( (strlen(PsmIndAtCmdPrefix) + strlen(at_str)) > sizeof(PsmIndAtCmdPrefix)){			

+			return;

+		}

+		sprintf(PsmIndAtCmdPrefix, "%s%s", PsmIndAtCmdPrefix, at_str);

+	}

+	

+}

+

+void mnet_whitelist_del(char* at_str)

+{

+	int i=0, j=0, len = strlen(PsmIndAtCmdPrefix);

+	if(0 == strlen(at_str) || 0 == strlen(PsmIndAtCmdPrefix)){

+		return;

+	}else{

+		char* pos = NULL;

+		char str[AT_CMD_MAX] = {0};

+		if(NULL != (pos = (at_strstr(PsmIndAtCmdPrefix, at_str)))){

+			while(i<strlen(at_str)){

+				pos[i++] = '\0';

+			}

+			i=0;

+			strcpy(str, "");

+			while(i<len){

+				if(PsmIndAtCmdPrefix[i] != '\0') {

+					str[j++] = PsmIndAtCmdPrefix[i];

+				}

+				i++;

+			}

+			strcpy(PsmIndAtCmdPrefix, "");

+			strcpy(PsmIndAtCmdPrefix, str);

+		}

+	}

+}

+

+

+#endif

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 1d42f11..4203e19 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
@@ -772,7 +772,7 @@
 		int ret = -1;

 		int snd_len = 0;

 		VOLTE_MSG_DATA volte_msg;

-

+		msgget(MODULE_ID_VOLTE, IPC_CREAT | 0600);

 		if(len >= sizeof(volte_msg.msg_data))//if(len >= MSG_DATA_MAX_LEN)

 		{

 			snd_len = sizeof(volte_msg.msg_data) - 1;			

@@ -786,11 +786,10 @@
 		memcpy(volte_msg.msg_data, buf, snd_len);

 		volte_msg.msg_len = snd_len;

 		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);

-			at_print(AT_ERR,"====>FD1_ATCTL_TO_VOLTE str=%s\n", buf);

+			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;

@@ -806,16 +805,16 @@
 				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);

-				at_print(AT_ERR,"====>FD1_ATCTL_TO_VOLTE+%d str=%s\n", snd_len, buf+snd_len);

+				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;

 			}

 		}

-		else 	

-		{			

+		else

+		{

 			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);

-			at_print(AT_ERR,"====>FD2_ATCTL_TO_VOLTE str=%s, fd=%d\n", buf, volte_msg.at_fd);

+			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)

 			{/*»¹Ã»·¢Íê¼ÌÐø*/

 				int next_len = 0;

@@ -831,7 +830,7 @@
 				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);

-				at_print(AT_ERR,"====>FD2_ATCTL_TO_VOLTE+%d str=%s\n", snd_len, buf+snd_len);

+				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_context.c b/ap/app/zte_comm/at_ctl/src/atctrl/at_context.c
index b4bb4c5..432158d 100755
--- a/ap/app/zte_comm/at_ctl/src/atctrl/at_context.c
+++ b/ap/app/zte_comm/at_ctl/src/atctrl/at_context.c
@@ -105,6 +105,30 @@
 #endif

 }

 

+static void turnon_echo_by_fd(int fd)

+{

+	if(fd >=0 ){

+		struct termios termios_old;

+		bzero(&termios_old, sizeof(termios_old));

+		tcgetattr(fd, &termios_old); 	//get the serial port attributions

+		termios_old.c_lflag |= ECHO;	//±¾µØÄ£Ê½ÉèÖûØÏÔ

+		tcflush(fd, TCIFLUSH);			//Òç³öµÄÊý¾Ý¿ÉÒÔ½ÓÊÕ,µ«²»¶Á

+		tcsetattr(fd, TCSANOW, &termios_old);	//ÉèÖÃÐÂÊôÐÔ, TCSANOW: ËùÓɸıäÁ¢¼´ÉúЧ

+	}

+}

+

+static void turnoff_echo_by_fd(int fd)

+{

+	if(fd >=0 ){

+		struct termios termios_old;

+		bzero(&termios_old, sizeof(termios_old));

+		tcgetattr(fd, &termios_old); 	//get the serial port attributions

+		termios_old.c_lflag &= ~ECHO;	//±¾µØÄ£Ê½¹Ø±Õ»ØÏÔ

+		tcflush(fd, TCIFLUSH);			//Òç³öµÄÊý¾Ý¿ÉÒÔ½ÓÊÕ,µ«²»¶Á

+		tcsetattr(fd, TCSANOW, &termios_old);	//ÉèÖÃÐÂÊôÐÔ, TCSANOW: ËùÓɸıäÁ¢¼´ÉúЧ

+	}

+}

+

 #ifdef USE_CAP_SUPPORT

 static void cap_at_chn_init(void)

 {

@@ -144,8 +168,7 @@
 	int rpm_fd;

 };

 struct cap_usb_proxy_info g_cap_usb_proxy[USB_PORT_MAX];

-int g_usbtocap_plug_flag;

-int g_captoap_plug_flag;

+

 static void usbtocap_mainloop(void *param)

 {

 	int i = (int)param;

@@ -154,6 +177,8 @@
 	int rfd = -1;

 	int wfd = -1;

 	struct cap_usb_proxy_info *proxy = &g_cap_usb_proxy[i];

+	fd_set readfds;

+	struct timeval timeout;

 

 	prctl(PR_SET_NAME, "usbtocap", 0, 0, 0);

 	wfd = proxy->rpm_fd;

@@ -161,15 +186,23 @@
 	

 	while(i < USB_PORT_MAX){

 		rfd = proxy->usb_fd;

+		FD_ZERO(&readfds);

+		FD_SET(rfd, &readfds);

+		timeout.tv_sec = 0;

+		timeout.tv_usec = g_farps_select_timeout*1000;

+		ret = at_select(rfd + 1, &readfds, NULL, NULL, &timeout);

+		if (ret <= 0){

+			if(ret < 0 && errno != EINTR)

+				at_print(AT_ERR,"select usbtocap_read%d faild, errno = %d\n", i, errno);

+			continue;

+		}

 		datalen = at_read(rfd, buf, sizeof(buf));

-		if(datalen <= 0)

-		{	

+		if(datalen <= 0){

 			at_print(AT_ERR,"usbtocap_read from %d failed, len:%d, errno:%d\n", rfd, datalen, errno);

 			continue;

 		}

 		ret = at_sys_write(wfd, buf, datalen);

-		if(ret <= 0)

-		{	

+		if(ret <= 0){

 			at_print(AT_ERR,"usbtocap_write from %d failed, len:%d, ret:%d\n", wfd, datalen, ret);

 			continue;

 		}

@@ -190,16 +223,24 @@
 	rfd = proxy->rpm_fd;

 	proxy->captoap_pid = syscall(SYS_gettid);

 	while(i < USB_PORT_MAX){

-		wfd = proxy->usb_fd;

 		datalen = at_read(rfd, buf, sizeof(buf));

-		if(datalen <= 0)

-		{	

+		if(datalen <= 0){

 			at_print(AT_ERR,"captoap_read from %d failed, len:%d, errno:%d\n", rfd, datalen, errno);

 			continue;

 		}

+		wfd = proxy->usb_fd;

+		if(at_strstr(buf, "ATE0\r\n\r\nOK\r\n")){

+			turnoff_echo_by_fd(wfd);

+			at_sys_write(wfd, "\r\nOK\r\n", strlen("\r\nOK\r\n"));

+			continue;

+		}

+		if(at_strstr(buf, "ATE1\r\n\r\nOK\r\n")){

+			turnon_echo_by_fd(wfd);

+			at_sys_write(wfd, "\r\nOK\r\n", strlen("\r\nOK\r\n"));

+			continue;

+		}

 		ret = at_sys_write(wfd, buf, datalen);

-		if(ret <= 0)

-		{	

+		if(ret <= 0){

 			at_print(AT_ERR,"captoap_write from %d failed, len:%d, ret:%d\n", wfd, datalen, ret);

 			continue;

 		}

@@ -364,18 +405,6 @@
 int g_farps_fd1=-1;

 int g_farps_fd2=-1;

 

-static void turnon_echo_by_fd(int fd)

-{

-	if(fd >=0 ){

-		struct termios termios_old;

-		bzero(&termios_old, sizeof(termios_old));

-		tcgetattr(fd, &termios_old); 	//get the serial port attributions

-		termios_old.c_lflag |= ECHO;			//±¾µØÄ£Ê½ÉèÖûØÏÔ

-		tcflush(fd, TCIFLUSH);			//Òç³öµÄÊý¾Ý¿ÉÒÔ½ÓÊÕ,µ«²»¶Á

-		tcsetattr(fd, TCSANOW, &termios_old);	//ÉèÖÃÐÂÊôÐÔ, TCSANOW: ËùÓɸıäÁ¢¼´ÉúЧ

-	}

-}

-

 /* ³õʼ»¯linux²àatͨµÀ*/

 static void linux_at_channel_init()

 {

@@ -417,10 +446,10 @@
 		¿ª»úʱ£¬Îª¼ÓËÙat¿ÚµÄatÃüÁî´¦Àí£¬ÔÚat_ctl³õʼ»¯Ê±£¬¾Í½«¶Ë¿Ú´ò¿ª£¬ÔÚºóÃæÔÙÊÕµ½¶Ë¿Ú´ò¿ªÏûÏ¢ºó£¬

 		ÎÞÐèÔÙ´ò¿ª¡£

 	*/

-	char port_name[20] = {0};

+	char port_name[64] = {0};

 	sc_cfg_get("notify_forbiden_ports",port_name,sizeof(port_name));

 	

-	if(strcmp("/dev/ttyS0",port_name))

+	if(strstr(port_name,"/dev/ttyS0") == NULL)

 	{

 		g_farps_fd0 = at_open("/dev/ttyS0",O_RDWR);	

 		at_print(AT_ERR,"init open ttyS0 => fd: %d er_no: %d\n", g_farps_fd0, errno);

@@ -432,10 +461,15 @@
 		}

 	}

 #ifdef USE_CAP_SUPPORT

-	sc_cfg_get("cap_port_name",port_name,sizeof(port_name));

-	

-	if(strstr("/dev/ttyGS0",port_name) == NULL){

+	char cap_port_name[64] = {0};

+	sc_cfg_get("cap_port_name",cap_port_name,sizeof(cap_port_name));

 #endif

+	

+	if((strstr(port_name,"/dev/ttyGS0") == NULL)

+#ifdef USE_CAP_SUPPORT

+		&& (strstr(cap_port_name, "/dev/ttyGS0") == NULL)

+#endif

+	){

 		g_farps_fd1 = at_open("/dev/ttyGS0",O_RDWR);

 		at_print(AT_ERR,"init open ttyGS0 => fd: %d er_no: %d\n", g_farps_fd1, errno);

 		if(g_farps_fd1 >= 0){

@@ -444,14 +478,12 @@
 				g_farps_fd1=-1;

 			}

 		}

-#ifdef USE_CAP_SUPPORT

-	}else{

-		strncpy(g_cap_usb_proxy[0].usb_name, "/dev/ttyGS0", sizeof(g_cap_usb_proxy[0].usb_name)-1);

-		strncpy(g_cap_usb_proxy[0].rpm_name, "/dev/rpmsg30", sizeof(g_cap_usb_proxy[0].rpm_name)-1);

-		cap_usb_proxy_init(0);

 	}

-	if(strstr("/dev/ttyGS1",port_name) == NULL){

+	if((strstr(port_name,"/dev/ttyGS1") == NULL)

+#ifdef USE_CAP_SUPPORT

+		&& (strstr(cap_port_name, "/dev/ttyGS1") == NULL)

 #endif

+	){

 		g_farps_fd2 = at_open("/dev/ttyGS1",O_RDWR);

 		at_print(AT_ERR,"init open ttyGS1 => fd: %d er_no: %d\n", g_farps_fd2, errno);

 		if(g_farps_fd2 >= 0){

@@ -460,8 +492,14 @@
 				g_farps_fd2=-1;

 			}

 		}

+	}

 #ifdef USE_CAP_SUPPORT

-	}else{

+	if((strstr(port_name,"/dev/ttyGS0") == NULL) && (strstr(cap_port_name, "/dev/ttyGS0") != NULL)){

+		strncpy(g_cap_usb_proxy[0].usb_name, "/dev/ttyGS0", sizeof(g_cap_usb_proxy[0].usb_name)-1);

+		strncpy(g_cap_usb_proxy[0].rpm_name, "/dev/rpmsg30", sizeof(g_cap_usb_proxy[0].rpm_name)-1);

+		cap_usb_proxy_init(0);

+	}

+	if((strstr(port_name,"/dev/ttyGS1") == NULL) && (strstr(cap_port_name, "/dev/ttyGS1") != NULL)){

 		strncpy(g_cap_usb_proxy[1].usb_name, "/dev/ttyGS1", sizeof(g_cap_usb_proxy[1].usb_name)-1);

 		strncpy(g_cap_usb_proxy[1].rpm_name, "/dev/rpmsg31", sizeof(g_cap_usb_proxy[1].rpm_name)-1);

 		cap_usb_proxy_init(1);

diff --git a/ap/app/zte_comm/at_ctl/src/atctrl/at_socmsg.c b/ap/app/zte_comm/at_ctl/src/atctrl/at_socmsg.c
index d86f7cb..1e7de82 100644
--- a/ap/app/zte_comm/at_ctl/src/atctrl/at_socmsg.c
+++ b/ap/app/zte_comm/at_ctl/src/atctrl/at_socmsg.c
@@ -22,6 +22,7 @@
 #include "at_register.h"

 #include "ps_normal.h"

 #include "ps_pdp.h"

+#include "mnet_whitelist.h"

 /*******************************************************************************

  *                             Macro definitions                               *

  ******************************************************************************/

@@ -44,6 +45,7 @@
 /*******************************************************************************

  *                      Global function implementations                        *

  ******************************************************************************/

+extern char PsmIndAtCmdPrefix[AT_CMD_MAX];

 extern void ext_reset_proc();

 extern void ztcard_msg_proc(char *at_paras);

 extern void zusbflag_stat_proc(char *at_paras);

@@ -179,6 +181,15 @@
 	        //zusbflag_stat_proc(dstMsg);

 	        return 1;

 #endif

+		case MSG_CMD_ADD_MNET_WHITELIST:

+			mnet_whitelist_add(dstMsg);

+			return 1;

+		case MSG_CMD_DEL_MNET_WHITELIST:

+			mnet_whitelist_del(dstMsg);

+			return 1;

+		case MSG_CMD_CLEAR_MNET_WHITELIST:

+			strcpy(PsmIndAtCmdPrefix, "");

+			return 1;

 

     }

   

diff --git a/ap/app/zte_comm/nvserver/nvserver.c b/ap/app/zte_comm/nvserver/nvserver.c
index d00b176..bafb391 100755
--- a/ap/app/zte_comm/nvserver/nvserver.c
+++ b/ap/app/zte_comm/nvserver/nvserver.c
@@ -30,144 +30,145 @@
 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=
-(0xf9d+1777-0x168e);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",(0x692+5200-0x1ae2)
-,(0x37d+8962-0x267f),(0xe2a+4064-0x1e0a));memset(&rcvBuf,(0x2bf+4784-0x156f),
-sizeof(rcvBuf));memset(&sndBuf,(0x135+7123-0x1d08),sizeof(sndBuf));memset(&
-msgInfo,(0x1335+1600-0x1975),sizeof(msgInfo));msgId=msgget(MODULE_ID_NV,
-IPC_CREAT|(0x1cf7+159-0x1c16));if(-(0x550+6473-0x1e98)==msgId){printf(
+(0xbcf+3132-0x180b);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",
+(0x1288+5023-0x2627),(0x1526+2305-0x1e27),(0x10af+1375-0x160e));memset(&rcvBuf,
+(0x1342+863-0x16a1),sizeof(rcvBuf));memset(&sndBuf,(0x1ea7+622-0x2115),sizeof(
+sndBuf));memset(&msgInfo,(0xe22+5489-0x2393),sizeof(msgInfo));msgId=msgget(
+MODULE_ID_NV,IPC_CREAT|(0x1837+1448-0x1c5f));if(-(0x86c+1477-0xe30)==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-(0x1e2+4748-0x146d);}if(-(0x15fb+3897-0x2533)!=msgctl(msgId,
-IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0x4a0+8126-0x245d)==msgctl(
+,errno);return-(0x4bc+8531-0x260e);}if(-(0xb3+7137-0x1c93)!=msgctl(msgId,
+IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0x30a+4585-0x14f2)==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()!=(0x1386+1034-0x1790)){printf(
+,errno);}if(nvDirInit()!=(0x193+7308-0x1e1f)){printf(
 "\x6e\x76\x44\x69\x72\x49\x6e\x69\x74\x20\x66\x61\x69\x6c\x65\x21" "\n");return-
-(0x103+4607-0x1301);}nvConfig();nvInit();while((0x92a+6724-0x236d)){if(-
-(0x713+565-0x947)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
-MSG_TYPE_NV,(0x160d+1056-0x1a2d))){printf(
+(0x9bc+1602-0xffd);}nvConfig();nvInit();while((0x1e51+613-0x20b5)){if(-
+(0x312+7393-0x1ff2)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
+MSG_TYPE_NV,(0x1197+4387-0x22ba))){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(-(0x1723+2233-0x1fdb)==msgsnd(
-msgId,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0xc5a+11-0xc65))){printf(
+,errno);continue;}analyMsg(&rcvBuf,&sndBuf);if(-(0x8e0+3234-0x1581)==msgsnd(
+msgId,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0x1643+201-0x170c))){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((0x3b8+8720-0x25c8));}static void configdir(char*dir){
-DIR*dp;int ret;struct dirent*entry;struct stat statbuf;if((dp=opendir(dir))==
+,errno);continue;}}return((0x1b99+1384-0x2101));}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<(0x409+5808-0x1ab9)){fprintf(stderr,
+d_name,&statbuf);if(ret<(0x1294+4731-0x250f)){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)==(0xb93+2285-0x1480)||strcmp("\x2e\x2e",entry->
-d_name)==(0xce3+3622-0x1b09))continue;if(!isNvConfiged(entry->d_name)){if(
+strcmp("\x2e",entry->d_name)==(0x22ec+961-0x26ad)||strcmp("\x2e\x2e",entry->
+d_name)==(0x97f+5608-0x1f67))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]={(0x97b+272-0xa8b)};fp=fopen(
-NV_CONFIG_FILE,"\x72\x6f");if(!fp){printf(
+val=NULL;FILE*fp=NULL;char buf[NV_MAX_CONFIG_LEN]={(0x4e2+6383-0x1dd1)};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[
-(0xf7d+5635-0x2580)]=='\n'||buf[(0x572+6671-0x1f81)]==((char)(0x377+1667-0x9d7))
-)continue;val=strchr(buf,((char)(0x17ab+3339-0x2479)));if(!val){printf(
+(0xbe8+1358-0x1136)]=='\n'||buf[(0x962+1248-0xe42)]==((char)(0x982+5121-0x1d60))
+)continue;val=strchr(buf,((char)(0xb7+5106-0x146c)));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)-(0x1cb9+1681-0x2349)]='\0';*val++
+,NV_CONFIG_FILE,buf);continue;}buf[strlen(buf)-(0x17b6+1612-0x1e01)]='\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)!=(0x967+3017-0x1530)){if(mkdir(NV_FS_PATH,(0xaba+2657-0x132e))
-!=(0xbc7+1659-0x1242)){printf(
+NV_FS_PATH,F_OK)!=(0x96+2717-0xb33)){if(mkdir(NV_FS_PATH,(0x541+7294-0x1fd2))!=
+(0xdb3+1109-0x1208)){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-(0x8d6+3871-0x17f4);}if(mkdir(NV_FS_MAIN_PATH,
-(0xe1a+713-0xef6))!=(0x1124+2701-0x1bb1)){printf(
+,NV_FS_PATH,errno);return-(0x202a+1643-0x2694);}if(mkdir(NV_FS_MAIN_PATH,
+(0x7eb+5252-0x1a82))!=(0x5af+4090-0x15a9)){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-(0xadc+3711-0x195a);}if(mkdir(NV_FS_BACKUP_PATH,
-(0x1133+5774-0x25d4))!=(0x10ef+1653-0x1764)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0x1bda+2498-0x259b);}if(mkdir(NV_FS_BACKUP_PATH,
+(0x1d3a+2893-0x269a))!=(0x48+4657-0x1279)){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-(0x5b1+3287-0x1287);}}else{if(access(
-NV_FS_MAIN_PATH,F_OK)!=(0x838+2209-0x10d9)){if(mkdir(NV_FS_MAIN_PATH,
-(0x25a+3379-0xda0))!=(0x63d+3509-0x13f2)){printf(
+,NV_FS_BACKUP_PATH,errno);return-(0x1366+4000-0x2305);}}else{if(access(
+NV_FS_MAIN_PATH,F_OK)!=(0x140d+2932-0x1f81)){if(mkdir(NV_FS_MAIN_PATH,
+(0xbd3+3999-0x1985))!=(0x173b+3553-0x251c)){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-(0xd01+6301-0x259d);}}if(access(NV_FS_BACKUP_PATH
-,F_OK)!=(0x1a7f+1439-0x201e)){if(mkdir(NV_FS_BACKUP_PATH,(0xd63+905-0xeff))!=
-(0x13a9+1438-0x1947)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0x38d+7953-0x229d);}}if(access(NV_FS_BACKUP_PATH
+,F_OK)!=(0x952+6362-0x222c)){if(mkdir(NV_FS_BACKUP_PATH,(0x2089+616-0x2104))!=
+(0x28a+8367-0x2339)){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-(0x14c2+732-0x179d);}}}return
-(0xdc8+1270-0x12be);}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[
-NV_PATH_LEN]={(0x1067+1826-0x1789)};char nvBackupFile[NV_PATH_LEN]={
-(0x15bd+2250-0x1e87)};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(
+,NV_FS_BACKUP_PATH,errno);return-(0x18e5+1427-0x1e77);}}}return
+(0x465+7647-0x2244);}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[
+NV_PATH_LEN]={(0x11d3+1068-0x15ff)};char nvBackupFile[NV_PATH_LEN]={
+(0x595+3941-0x14fa)};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,NV_PATH_LEN,"\x25\x73\x2f\x25\x73",NV_FS_BACKUP_PATH,list->nvFile);
 if(checkNvFs(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()==
-(0x658+3729-0x14e7)){reloadFactroyParam(list);delete_not_needed(list);nvcommit(
+(0xe7a+3991-0x1e0f)){reloadFactroyParam(list);delete_not_needed(list);nvcommit(
 list->nvFile);
 #ifdef FOTA_AB
-dual_AB_set_fota_status_for_nv((0x10f+5819-0x17ca));
+dual_AB_set_fota_status_for_nv((0x427+7830-0x22bd));
 #endif
-}}}uint hash(const char*s){uint hash=(0x506+7684-0x230a);while(*s){hash=
+}}}uint hash(const char*s){uint hash=(0xf22+439-0x10d9);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]={
-(0x1810+1389-0x1d7d)};for(config=list->fileList;config;config=config->next){fp=
+(0x13af+560-0x15df)};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[(0x519+663-0x7b0)]=='\n'||buf[(0x17dd+2775-0x22b4)]
-==((char)(0x5b+5361-0x1529)))continue;val=strchr(buf,((char)(0x210+1561-0x7ec)))
-;if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0xd07+2175-0x1586)]=='\n'||buf[(0x10dd+2946-0x1c5f)
+]==((char)(0xe0f+5201-0x223d)))continue;val=strchr(buf,
+((char)(0x99c+3118-0x158d)));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)-(0x1d91+1330-0x22c2)]==
-'\n')buf[strlen(buf)-(0x3ca+3390-0x1107)]='\0';*val++='\0';nvset(list->nvFile,
-buf,val,(0x1faa+588-0x21f5));}printf(
+,config->configFile,buf);continue;}if(buf[strlen(buf)-(0x1679+1250-0x1b5a)]==
+'\n')buf[strlen(buf)-(0x1267+321-0x13a7)]='\0';*val++='\0';nvset(list->nvFile,
+buf,val,(0x7d8+1773-0xec4));}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=(0x203+5707-0x184e);int cnt=(0xd2+428-0x27e);FILE*fp=NULL;
-char*buf=NULL;struct stat statbuff={(0xec2+4197-0x1f27)};if(stat(file,&statbuff)
-<(0x12e6+1104-0x1736))return false;len=statbuff.st_size;if(len<NV_CHECK_SIZE)
+char*file){int len=(0x942+1170-0xdd4);int cnt=(0x17aa+1648-0x1e1a);FILE*fp=NULL;
+char*buf=NULL;struct stat statbuff={(0x20a+8437-0x22ff)};if(stat(file,&statbuff)
+<(0x74d+6896-0x223d))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=(0x256+5568-0x1816);while(cnt<len){cnt=
-cnt+fread(buf+cnt,(0x1865+293-0x1989),len-cnt,fp);if(ferror(fp)){clearerr(fp);
+);if(!buf){fclose(fp);return false;}cnt=(0x1ae6+606-0x1d44);while(cnt<len){cnt=
+cnt+fread(buf+cnt,(0xd4a+4244-0x1ddd),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[(0x246b+2358-0x1da1)];ssize_t nread;int ret=-(0xb67+718-0xe34);fd_from=
-open(from,O_RDONLY);if(fd_from<(0x44a+113-0x4bb))return-(0x451+1685-0xae4);fd_to
-=open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,(0x73d+8248-0x25d5));if(fd_to<
-(0x102b+4386-0x214d)){ret=-(0xd21+6588-0x26da);goto out_error;}while(
-(0x677+4919-0x19ad)){char*out_ptr;ssize_t nwritten;nread=read(fd_from,buf,sizeof
-(buf));if(nread==(0x407+5708-0x1a53)){break;}else{if(nread<(0x1e38+2156-0x26a4))
-{if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-(0x8b9+5996-0x2021);goto 
-out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,out_ptr,nread);if(nwritten>
-(0x1ad4+690-0x1d86)){nread-=nwritten;out_ptr+=nwritten;}else{if(nwritten<
-(0x13d5+2399-0x1d34)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
-(0x4ad+5382-0x19ae);goto out_error;}}}}while(nread>(0x935+2807-0x142c));}ret=
-fsync(fd_to);if(ret<(0xf8c+3864-0x1ea4)){printf(
+char buf[(0x12d1+2121-0xb1a)];ssize_t nread;int ret=-(0x15cb+2856-0x20f2);
+fd_from=open(from,O_RDONLY);if(fd_from<(0xf0c+4428-0x2058))return-
+(0x5b9+4654-0x17e5);fd_to=open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,
+(0xe35+4298-0x1d5f));if(fd_to<(0x1609+4181-0x265e)){ret=-(0xbaa+4678-0x1ded);
+goto out_error;}while((0xab5+436-0xc68)){char*out_ptr;ssize_t nwritten;nread=
+read(fd_from,buf,sizeof(buf));if(nread==(0x32c+2809-0xe25)){break;}else{if(nread
+<(0x17+6967-0x1b4e)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
+(0x88c+4026-0x1842);goto out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,
+out_ptr,nread);if(nwritten>(0x452+6890-0x1f3c)){nread-=nwritten;out_ptr+=
+nwritten;}else{if(nwritten<(0x1f6f+130-0x1ff1)){if(errno==EINTR||errno==EAGAIN){
+continue;}else{ret=-(0x1033+160-0x10ce);goto out_error;}}}}while(nread>
+(0xaad+5676-0x20d9));}ret=fsync(fd_to);if(ret<(0x9e3+6117-0x21c8)){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)<(0x1182+5388-0x268e)){fd_to
-=-(0x1fc9+961-0x2389);ret=-(0x13c5+1023-0x17be);goto out_error;}close(fd_from);
-return(0x1137+617-0x13a0);out_error:printf(
+,strerror(errno),to);goto out_error;}if(close(fd_to)<(0xcd5+2193-0x1566)){fd_to=
+-(0x4dc+5175-0x1912);ret=-(0x156a+2827-0x206f);goto out_error;}close(fd_from);
+return(0x1025+16-0x1035);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>=(0x9fd+3476-0x1791))close(fd_to);return 
+,from,to,ret);close(fd_from);if(fd_to>=(0x2d0+5093-0x16b5))close(fd_to);return 
 ret;}static int restoreNvFs(char*dstFile,char*srcFile){if(copyfile(srcFile,
-dstFile)!=(0x1721+2720-0x21c1))return RESULT_FAIL;return RESULT_SUCCESS;}static 
-int loadNvFs(char*file){int len=(0xf3f+654-0x11cd);int cnt=(0x1630+323-0x1773);
+dstFile)!=(0x2008+226-0x20ea))return RESULT_FAIL;return RESULT_SUCCESS;}static 
+int loadNvFs(char*file){int len=(0x4ba+7636-0x228e);int cnt=(0x57f+3363-0x12a2);
 FILE*fp=NULL;char*buf=NULL;char*name=NULL;char*value=NULL;char*eq=NULL;struct 
-stat statbuff={(0x70a+3788-0x15d6)};char nvFile[NV_PATH_LEN]={
-(0xe23+2248-0x16eb)};sprintf(nvFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file)
-;if(stat(nvFile,&statbuff)<(0x502+149-0x597))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+
-(0xb1b+3129-0x1753));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
-(0xd63+4577-0x1f44),len+(0x1a7b+645-0x1cff));cnt=(0x8ef+2116-0x1133);while(cnt<
-len){cnt=cnt+fread(buf+cnt,(0x496+3505-0x1246),len-cnt,fp);if(ferror(fp)){
+stat statbuff={(0x92b+4766-0x1bc9)};char nvFile[NV_PATH_LEN]={(0x5af+1084-0x9eb)
+};sprintf(nvFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file);if(stat(nvFile,&
+statbuff)<(0x1225+2211-0x1ac8))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+
+(0xe6d+2069-0x1681));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
+(0x60a+7514-0x2364),len+(0x35c+1903-0xaca));cnt=(0x18c1+723-0x1b94);while(cnt<
+len){cnt=cnt+fread(buf+cnt,(0xb44+5102-0x1f31),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)(0x1ab1+653-0x1d01))))){break;}*eq='\0';value=
-eq+(0x50b+5471-0x1a69);nvset(file,name,value,(0xeb1+3329-0x1bb1));*eq=
-((char)(0x1805+782-0x1ad6));name=value+strlen(value)+(0x141+9350-0x25c6);}free(
-buf);fclose(fp);return RESULT_SUCCESS;}static void analyMsg(T_NV_MSG_INFO*
+*name){if(!(eq=strchr(name,((char)(0x18c1+550-0x1aaa))))){break;}*eq='\0';value=
+eq+(0x1bf0+2740-0x26a3);nvset(file,name,value,(0x95a+4190-0x19b7));*eq=
+((char)(0x1458+1395-0x198e));name=value+strlen(value)+(0x1a27+2930-0x2598);}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
 ->result=nvset(msgrecv->file,msgrecv->key,msgrecv->value,msgrecv->saveflag);
@@ -182,103 +183,104 @@
 "\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-(0x8e2+877-0xc4e));newConfig->configFile[
-NV_PATH_LEN-(0x827+4579-0x1a09)]='\0';newConfig->next=NULL;}for(list=nv_list;
-list;list=list->next){if(strcmp(list->nvFile,nvFile)==(0x7ff+236-0x8eb))break;}
-if(!list){newList=(T_NV_NODE*)malloc(sizeof(T_NV_NODE));if(!newList){if(
+configFile,configFile,NV_PATH_LEN-(0xc4b+1299-0x115d));newConfig->configFile[
+NV_PATH_LEN-(0xe3d+3313-0x1b2d)]='\0';newConfig->next=NULL;}for(list=nv_list;
+list;list=list->next){if(strcmp(list->nvFile,nvFile)==(0x674+3934-0x15d2))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-(0x6d1+2315-0xfdb));newList->nvFile[
-NV_PATH_LEN-(0xcc4+406-0xe59)]='\0';memset(newList->nvTable,(0xca0+493-0xe8d),
-NV_HASH_LEN*(0xdd1+1493-0x13a2));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=
-(0x1424+4397-0x2551);char*data=(char*)s;while(len-- >(0x109d+4867-0x23a0)){sum+=
-(*data++);}return sum;}static int saveNvFs(char*nvName,char*nvFile){int i=
-(0xcaf+3241-0x1958);int sum=(0x7b1+3097-0x13ca);int bufSize=(0x38+2128-0x888);
-int itemSize=(0x194+5992-0x18fc);int ret=(0x11a+7134-0x1cf8);int fp=
-(0x779+6093-0x1f46);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,(0x590+8888-0x26a8));if(fp==-
-(0x7c2+6181-0x1fe6)){printf(
+newList->nvFile,nvFile,NV_PATH_LEN-(0x764+6527-0x20e2));newList->nvFile[
+NV_PATH_LEN-(0x6f5+6917-0x21f9)]='\0';memset(newList->nvTable,
+(0xf21+5584-0x24f1),NV_HASH_LEN*(0x19b0+758-0x1ca2));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=(0x122c+4412-0x2368);char*data=(char*)s;while(len-- >
+(0xe55+5822-0x2513)){sum+=(*data++);}return sum;}static int saveNvFs(char*nvName
+,char*nvFile){int i=(0x1014+15-0x1023);int sum=(0x1a66+267-0x1b71);int bufSize=
+(0x120+8267-0x216b);int itemSize=(0x1cf9+2208-0x2599);int ret=
+(0x33b+4287-0x13fa);int fp=(0x235+749-0x522);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,
+(0x4fb+5219-0x17be));if(fp==-(0x1c63+1855-0x23a1)){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=(0x855+4427-0x19a0);i<
+(!buf){close(fp);return RESULT_MALLOC_FAIL;}for(i=(0xc97+6691-0x26ba);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)+(0xaed+3813-0x19d0);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp,
-buf,bufSize)<(0x207+773-0x50c)){printf(
+item->value)+(0x6da+3834-0x15d2);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp,
+buf,bufSize)<(0xdc+3162-0xd36)){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=(0x72c+3029-0x1301);}sprintf(buf+bufSize,
++=getSum(buf,bufSize);bufSize=(0x22c5+97-0x2326);}sprintf(buf+bufSize,
 "\x25\x73\x3d\x25\x73",item->key,item->value);bufSize+=itemSize;}}if(bufSize!=
-(0x9e0+6384-0x22d0)){if(write(fp,buf,bufSize)<(0x757+853-0xaac)){printf(
+(0xc03+4782-0x1eb1)){if(write(fp,buf,bufSize)<(0x1759+1299-0x1c6c)){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)<(0x127a+1921-0x19fb)
-){printf(
+bufSize);}sum+=NV_FILE_FLAG;if(write(fp,&sum,NV_CHECK_SIZE)<(0x359+8546-0x24bb))
+{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<(0x69c+591-0x8eb)){printf(
+buf);close(fp);if(ret<(0x445+564-0x679)){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=
-(0x1718+29-0x1735);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)%
+(0xcbf+5419-0x21ea);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-(0x124d+3545-0x2025))
-;value[NV_MAX_VAL_LEN-(0x181c+268-0x1927)]='\0';return RESULT_SUCCESS;}}return 
+key,key))continue;strncpy(value,item->value,NV_MAX_VAL_LEN-(0x12bc+4341-0x23b0))
+;value[NV_MAX_VAL_LEN-(0x701+6117-0x1ee5)]='\0';return RESULT_SUCCESS;}}return 
 RESULT_NO_ITEM;}static int nvset(char*file,const char*key,const char*value,int 
-saveFlag){int index=(0x15ff+1341-0x1b3c);int ret=(0x153a+1644-0x1ba6);int 
-key_buf_len=(0x67+8383-0x2126);int value_buf_len=(0x7ad+5162-0x1bd7);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)+(0x200b+73-0x2053);value_buf_len=
-strlen(value)+(0x54d+4926-0x188a);for(list=nv_list;list;list=list->next){if(
+saveFlag){int index=(0x3f7+3888-0x1327);int ret=(0xe76+295-0xf9d);int 
+key_buf_len=(0x1667+1744-0x1d37);int value_buf_len=(0x5ba+5145-0x19d3);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)+(0xec4+4523-0x206e);value_buf_len=
+strlen(value)+(0x34b+8639-0x2509);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-
-(0xd1f+3066-0x1918));item->value[value_buf_len-(0x814+2114-0x1055)]='\0';return 
+(0xaa3+6760-0x250a));item->value[value_buf_len-(0x239+7917-0x2125)]='\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-(0xa8+6175-0x18c6));
-newItem->key[key_buf_len-(0x7d2+1506-0xdb3)]='\0';strncpy(newItem->value,value,
-value_buf_len-(0xfa0+3677-0x1dfc));newItem->value[value_buf_len-
-(0x8c9+7665-0x26b9)]='\0';newItem->next=NULL;newItem->saveFlag=saveFlag;newItem
-->update_flag=(0x179+2470-0xb1f);if(!list->nvTable[index])list->nvTable[index]=
+RESULT_MALLOC_FAIL;}strncpy(newItem->key,key,key_buf_len-(0x11f+793-0x437));
+newItem->key[key_buf_len-(0x1fa4+112-0x2013)]='\0';strncpy(newItem->value,value,
+value_buf_len-(0x4cb+2289-0xdbb));newItem->value[value_buf_len-
+(0x132b+3439-0x2099)]='\0';newItem->next=NULL;newItem->saveFlag=saveFlag;newItem
+->update_flag=(0xcd7+5313-0x2198);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=(0x825+7553-0x25a6);T_NV_NODE*list=NULL;
+ nvunset(char*file,char*key){int index=(0x180+8747-0x23ab);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=(0x5ca+4630-0x17e0);
+RESULT_NO_ITEM;}static int nvreset(char*file){int ret=(0x24ec+29-0x2509);
 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=(0x821+6218-0x206b);
-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=
-(0x1772+1118-0x1bd0);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=(0x125b+636-0x14d7);char nvMainFile[NV_PATH_LEN]={
-(0x689+7094-0x223f)};char nvBackupFile[NV_PATH_LEN]={(0xff4+613-0x1259)};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,nvMainFile);}
+}return RESULT_NO_FILE;}static int nvclear(char*file){int i=(0x1bc0+1858-0x2302)
+;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=
+(0x8ad+5240-0x1d25);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=(0x61f+7281-0x2290);char nvMainFile[NV_PATH_LEN]={
+(0x1b4a+2406-0x24b0)};char nvBackupFile[NV_PATH_LEN]={(0x1459+2394-0x1db3)};
+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,
+nvMainFile);}
 #ifdef __cplusplus
 }
 #endif
diff --git a/ap/app/zte_comm/nvserver/nvserver_rpc.c b/ap/app/zte_comm/nvserver/nvserver_rpc.c
index eb1efee..c5e6c5e 100755
--- a/ap/app/zte_comm/nvserver/nvserver_rpc.c
+++ b/ap/app/zte_comm/nvserver/nvserver_rpc.c
@@ -82,59 +82,74 @@
 * ·µ »Ø Öµ:     0±íʾ³É¹¦
 * ÆäËü˵Ã÷:     void
 *******************************************************************************/
-static void analyMsg(T_NV_MSG_INFO *msgrecv, T_NV_MSG_RESULT *msgsnd, T_sc_rpc_header *rpc_data, T_sc_rpc_header *rpc_data2)
+static void analyMsg(T_NV_MSG_INFO *msgrecv, T_NV_MSG_RESULT *msgsnd, T_sc_rpc_msg *rpc_data, T_sc_rpc_msg *rpc_data2)
 {
     unsigned int timeout = 10;
-    int try_cnt = 0;
+    int send_once_flag   = 0;
+    int ret;
 
-    memset(rpc_data, 0, sizeof(T_sc_rpc_header));
-    memset(rpc_data2, 0, sizeof(T_sc_rpc_header));
-
-    rpc_data->msg_type = RPC_MSG_TYPE_REQUEST;
-    rpc_data->func_id = RPC_FUNC_ID_NV;
-    rpc_data->data_len = sizeof(T_NV_MSG_INFO);
-    memcpy(rpc_data->data, msgrecv, sizeof(T_NV_MSG_INFO));
+    rpc_data->header.msg_type  = RPC_MSG_TYPE_REQUEST;
+    rpc_data->header.func_id   = RPC_FUNC_ID_NV;
+    rpc_data->header.data_len  = sizeof(T_NV_MSG_INFO) - NV_MAX_FILE_LEN - NV_MAX_KEY_LEN - NV_MAX_VAL_LEN;
+    rpc_data->header.file_len  = strlen(msgrecv->file) + 1;
+    rpc_data->header.data_len  += rpc_data->header.file_len;
+    memcpy(rpc_data->data, msgrecv, rpc_data->header.data_len);
+    rpc_data->header.key_len   = strlen(msgrecv->key) + 1;
+    memcpy(rpc_data->data+rpc_data->header.data_len, msgrecv->key, rpc_data->header.key_len);
+    rpc_data->header.data_len  += rpc_data->header.key_len;
+    rpc_data->header.value_len = strlen(msgrecv->value);
+    if (rpc_data->header.value_len > 0)
+    {
+        rpc_data->header.value_len +=  1;
+        memcpy(rpc_data->data+rpc_data->header.data_len, msgrecv->value, rpc_data->header.value_len);
+        rpc_data->header.data_len  += rpc_data->header.value_len;
+    }
 
     do
     {
-        if (try_cnt > 0)
+        if (send_once_flag == 0)
         {
-            sc_rpc_clear(g_rpc_fd);
+            ret = sc_rpc_send(g_rpc_fd, rpc_data, 0);
+            if (ret == 0)
+            {
+                send_once_flag = 1; // send success
+            }
+            else
+            {
+                assert(0); // send fail
+            }
         }
-        sc_rpc_send(g_rpc_fd, rpc_data, 0);
-        try_cnt++;
-        //sleep(1);
-        //continue;
-    } while (0 != sc_rpc_recv(g_rpc_fd, rpc_data2, timeout)); //µÈ´ýÍê³É
-    if (rpc_data2->msg_type != RPC_MSG_TYPE_REPLY)
+
+        ret = sc_rpc_recv(g_rpc_fd, rpc_data2, timeout);
+        if (ret == 0)
+        {
+            break; // recv success and break
+        }
+   
+    } while (1); //µÈ´ýÍê³É
+
+    if (rpc_data2->header.msg_type != RPC_MSG_TYPE_REPLY)
         assert(0);
 
-    memcpy(msgsnd, rpc_data2->data, sizeof(T_NV_MSG_RESULT));
+    memcpy(msgsnd, rpc_data2->data, rpc_data2->header.data_len);
 }
 
 static int nv_rpc_wait_ready(int fd)
 {
     T_sc_rpc_header *rpc_data;
-    unsigned int timeout = 200; // ms
-    int write_flag = 1;
+    unsigned int timeout = 100; // ms
 
     rpc_data = malloc(sizeof(T_sc_rpc_header));
     if (rpc_data == NULL)
         return -1;
+    
     while(1)
     {
         rpc_data->msg_type = RPC_MSG_TYPE_READY;
-        if (write_flag)
-        {
-            if (write(fd, rpc_data, sizeof(T_sc_rpc_header)) != 0)
-                write_flag = 0; // write ok and write sonly once
-        }
-        if (read(fd, rpc_data, sizeof(T_sc_rpc_header)) == 0)
-        {
+        if (write(fd, rpc_data, sizeof(T_sc_rpc_header)) == sizeof(T_sc_rpc_header))
+            break;            
+        else    
             usleep(timeout * 1000);
-            continue;
-        }
-        break; /* read some data mean channel ok */
     }
 
     free(rpc_data);
@@ -159,11 +174,11 @@
     T_NV_MSG_INFO rcvBuf;
     T_NV_MSG_RESULT sndBuf;
     struct msqid_ds msgInfo;
-    T_sc_rpc_header *rpc_data;
-    T_sc_rpc_header *rpc_data2;
+    T_sc_rpc_msg *rpc_data;
+    T_sc_rpc_msg *rpc_data2;
     long pid_backup;       /*  app-libnvram pid backup */
 
-    prctl(PR_SET_NAME, "nvserver", 0, 0, 0);
+    prctl(PR_SET_NAME, "nvserver_rpc", 0, 0, 0);
 
     memset(&msgInfo, 0, sizeof(msgInfo));
 
@@ -185,13 +200,13 @@
         }
     }
 
-    rpc_data = malloc(sizeof(T_sc_rpc_header));
+    rpc_data = malloc(sizeof(T_sc_rpc_msg));
     if (rpc_data == NULL)
     {
         perror("[error]nvrpc malloc error\n");
         return -2;
     }
-    rpc_data2 = malloc(sizeof(T_sc_rpc_header));
+    rpc_data2 = malloc(sizeof(T_sc_rpc_msg));
     if (rpc_data2 == NULL)
     {
         perror("[error]nvrpc malloc2 error\n");
@@ -201,7 +216,7 @@
 
     if (nv_rpc_wait_ready(g_rpc_fd) < 0)
     {
-       assert(0);
+        assert(0);
     }
     sc_rpc_clear(g_rpc_fd);
     printf("apnv and nv-rpc-daemon are ready both.");
diff --git a/ap/app/zte_comm/nvserver/nvupdate.c b/ap/app/zte_comm/nvserver/nvupdate.c
index 34b867f..7f9fb65 100755
--- a/ap/app/zte_comm/nvserver/nvupdate.c
+++ b/ap/app/zte_comm/nvserver/nvupdate.c
@@ -23,80 +23,80 @@
 extern T_NV_NODE*nv_list;
 #ifdef FOTA_AB
 int get_update_status(void){int ret=dual_AB_get_fota_status_for_nv();if(ret==
-(0x1b20+1519-0x210e))return(0x306+5932-0x1a30);else return(0x1f8f+1256-0x2477);}
+(0x999+318-0xad6))return(0x173+1220-0x635);else return(0x130a+602-0x1564);}
 #else
-int get_update_status(void){int update_status;FILE*fd=(0xa5f+1004-0xe4b);int ret
-;char*filename=NULL;if(access(FOTA_UPDATE_STATUS_FILE_OLD,R_OK)==
-(0x20d+3207-0xe94)){filename=FOTA_UPDATE_STATUS_FILE_OLD;}else{filename=
+int get_update_status(void){int update_status;FILE*fd=(0xa38+3938-0x199a);int 
+ret;char*filename=NULL;if(access(FOTA_UPDATE_STATUS_FILE_OLD,R_OK)==
+(0x870+3973-0x17f5)){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<(0xa56+5614-0x2044)){printf(
+(ret<(0x2a2+201-0x36b)){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-
-(0x16ed+1906-0x1e5e);}
+update_status);fclose(fd);return update_status;error0:return-(0x7ad+7742-0x25ea)
+;}
 #endif
 int nvupdate(char*nv_file,char*config_file,const char*key,const char*value,int 
-saveFlag){int index=(0x217d+308-0x22b1);int key_buf_len=(0x870+5158-0x1c96);int 
-value_buf_len=(0x151f+3443-0x2292);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;
+saveFlag){int index=(0x431+1502-0xa0f);int key_buf_len=(0xc71+64-0xcb1);int 
+value_buf_len=(0x553+6951-0x207a);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)+(0x1395+382-0x1512);value_buf_len=
-strlen(value)+(0x11ca+3310-0x1eb7);for(list=nv_list;list;list=list->next){if(
+,nv_file,key,value);key_buf_len=strlen(key)+(0xda+4091-0x10d4);value_buf_len=
+strlen(value)+(0x8b+8660-0x225e);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=(0xa11+4766-0x1cae);printf(
+update_flag=(0x5a4+6662-0x1fa9);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((0x366+6518-0x1cdb)==item->update_flag){
+config_file,"\x75\x73\x65\x72")){if((0xd8c+1756-0x1467)==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=
-(0x1f23+1956-0x26c6);printf(
+(0x16fc+89-0x1754);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-(0x2f0+7223-0x1f26));item->value[value_buf_len-
-(0xced+6218-0x2536)]='\0';item->update_flag=(0xd9+8465-0x21e9);return 
+value,value_buf_len-(0x15e9+2371-0x1f2b));item->value[value_buf_len-
+(0x30+6450-0x1961)]='\0';item->update_flag=(0x1047+2801-0x1b37);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)+
-(0xbb3+3338-0x18bc));if(!newItem->key){free(newItem);printf(
+(0x1bf+8770-0x2400));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-
-(0x990+5357-0x1e7c));newItem->key[key_buf_len-(0x665+5789-0x1d01)]='\0';strncpy(
-newItem->value,value,value_buf_len-(0x1819+248-0x1910));newItem->value[
-value_buf_len-(0x1249+3460-0x1fcc)]='\0';newItem->next=NULL;newItem->saveFlag=
-saveFlag;newItem->update_flag=(0x456+5565-0x1a12);printf(
+(0x1737+3997-0x26d3));newItem->key[key_buf_len-(0x573+2465-0xf13)]='\0';strncpy(
+newItem->value,value,value_buf_len-(0x24c3+480-0x26a2));newItem->value[
+value_buf_len-(0xa5d+1659-0x10d7)]='\0';newItem->next=NULL;newItem->saveFlag=
+saveFlag;newItem->update_flag=(0x511+7176-0x2118);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]={(0x1b5f+1247-0x203e)};printf(
+NV_MAX_ITEM_LEN]={(0x9e8+3243-0x1693)};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[(0x1d54+38-0x1d7a)]=='\n'||buf[(0xe01+639-0x1080)]==
-((char)(0x263+1910-0x9b6)))continue;val=strchr(buf,((char)(0x543+1228-0x9d2)));
-if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0x579+4079-0x1568)]=='\n'||buf[(0x2b8+3136-0xef8)]
+==((char)(0xf70+3343-0x1c5c)))continue;val=strchr(buf,((char)(0x8a+4197-0x10b2))
+);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)-(0x16b+4876-0x1476)]='\0';*
-val++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0x75a+7588-0x24fd))
+,config->configFile,buf);continue;}buf[strlen(buf)-(0x2299+1021-0x2695)]='\0';*
+val++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0x3fb+3242-0x10a4))
 ;}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
@@ -105,12 +105,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=(0x197+7483-0x1ed2);T_NV_ITEM*item=NULL;T_NV_ITEM head={
-(0x21c1+57-0x21fa)};T_NV_ITEM*prev=&head;printf(
+list){int index=(0x286+7147-0x1e71);T_NV_ITEM*item=NULL;T_NV_ITEM head={
+(0x92b+3549-0x1708)};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=(0x1d1c+2424-0x2694);index<NV_HASH_LEN;index++){head.next=list->
-nvTable[index];prev=&head;for(item=prev->next;item;){if((0x1b62+698-0x1e1b)==
-item->update_flag){prev=item;item=item->next;}else{printf(
+);for(index=(0x1394+248-0x148c);index<NV_HASH_LEN;index++){head.next=list->
+nvTable[index];prev=&head;for(item=prev->next;item;){if((0xe0+7470-0x1e0d)==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/nvserver/sc_rpc.c b/ap/app/zte_comm/nvserver/sc_rpc.c
index c741601..283db4f 100755
--- a/ap/app/zte_comm/nvserver/sc_rpc.c
+++ b/ap/app/zte_comm/nvserver/sc_rpc.c
@@ -38,7 +38,7 @@
 /*******************************************************************************
  *                                   宏定义                                     *
  *******************************************************************************/
-#define RPC_CHN_MAX_BUF_LEN 8192
+#define RPC_CHN_MAX_BUF_LEN 18432
 
 /*******************************************************************************
  *                                数据类型定义                                  *
@@ -130,21 +130,22 @@
     return 0;
 }
 
-int sc_rpc_send(int fd, T_sc_rpc_header *data, unsigned int flag)
+int sc_rpc_send(int fd, T_sc_rpc_msg *data, unsigned int flag)
 {
     ssize_t ret;
-
-    ret = full_write(fd, data, sizeof(T_sc_rpc_header));
-    if (ret != sizeof(T_sc_rpc_header))
+    T_sc_rpc_header *header = (T_sc_rpc_header *)data;
+	
+    ret = full_write(fd, data, sizeof(T_sc_rpc_header) + header->data_len);
+    if (ret != sizeof(T_sc_rpc_header) + header->data_len)
     {
-        printf("[rpc] write error, len=%d != %d!\n", ret, (int)sizeof(T_sc_rpc_header));
+        printf("[rpc] write error, len=%d != %d!\n", ret, (int)sizeof(T_sc_rpc_header)+ header->data_len);
         return -1;
     }
 
     return 0;
 }
 
-int sc_rpc_recv(int fd, T_sc_rpc_header *data, unsigned int timeout)
+int sc_rpc_recv(int fd, T_sc_rpc_msg *data, unsigned int timeout)
 {
 #if 1
     fd_set readfds;
@@ -152,7 +153,8 @@
     int ret;
     struct timeval timeout_t = {timeout, 0};
     int errNo = 0;
-
+    T_sc_rpc_header *header = 0;
+	
     FD_ZERO(&readfds);
     FD_SET(fd, &readfds);
 
@@ -172,10 +174,11 @@
         return -2;
     }
 
-    len = full_read(fd, data, sizeof(T_sc_rpc_header));
-    if (len != sizeof(T_sc_rpc_header))
+    len = safe_read(fd, data, sizeof(T_sc_rpc_msg));
+    header = (T_sc_rpc_header *)data;
+    if (len != sizeof(T_sc_rpc_header)+ header->data_len)
     {
-        printf("[nvrpc] read error, len=%d != %d!\n", len, (int)sizeof(T_sc_rpc_header));
+        printf("[nvrpc] read error, len=%d != %d!\n", len, (int)sizeof(T_sc_rpc_header)+ header->data_len);
         return -3;
     }
 
diff --git a/ap/app/zte_comm/nvserver/sc_rpc.h b/ap/app/zte_comm/nvserver/sc_rpc.h
index e49be97..ebf88c2 100755
--- a/ap/app/zte_comm/nvserver/sc_rpc.h
+++ b/ap/app/zte_comm/nvserver/sc_rpc.h
@@ -30,17 +30,26 @@
 {
     unsigned int msg_type;
     unsigned int func_id;
+    unsigned int file_len;
+    unsigned int key_len;
+    unsigned int value_len;
     unsigned int data_len;
-    char       data[4096];
+
 } T_sc_rpc_header;
 
+typedef struct 
+{
+    T_sc_rpc_header header;
+    char            data[3072];
+} T_sc_rpc_msg;
+
 int sc_rpc_open(const char *rpmsg_dev);
 
 int sc_rpc_clear(int fd);
 
-int sc_rpc_send(int fd, T_sc_rpc_header *data, unsigned int flag);
+int sc_rpc_send(int fd, T_sc_rpc_msg *data, unsigned int flag);
 
-int sc_rpc_recv(int fd, T_sc_rpc_header *data, unsigned int timeout);
+int sc_rpc_recv(int fd, T_sc_rpc_msg *data, unsigned int timeout);
 
 int sc_rpc_close(int fd);
 
diff --git a/ap/app/zte_comm/phonebook/src/pb_db.c b/ap/app/zte_comm/phonebook/src/pb_db.c
index 1c2b923..b04efc1 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]={(0x6aa+7403-0x2395)};UINT32 count=(0x62f+7694-0x243d);result=
+ZPB_MAX_BYTES_DB]={(0xc0+3851-0xfcb)};UINT32 count=(0x3df+7563-0x216a);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,(0x8ac+3747-0x174f),sizeof(sql));snprintf(sql
-,sizeof(sql)-(0x121c+3753-0x20c4),
+,result);return result;}memset(sql,(0x761+1994-0xf2b),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0xee8+2631-0x192e),
 "\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((0xb70+2933-0x16e5)<count){memset(sql,(0x4d1+8143-0x24a0),sizeof(sql))
-;snprintf(sql,sizeof(sql)-(0x1495+1867-0x1bdf),
+count);if((0x1a15+1568-0x2035)<count){memset(sql,(0x9f2+4064-0x19d2),sizeof(sql)
+);snprintf(sql,sizeof(sql)-(0xe26+1455-0x13d4),
 "\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]={(0x199+7350-0x1e4f)};result=
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1299+2757-0x1d5e)};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 (0x75+1715-0x728)

+#if (0x4b9+6498-0x1e1b)

 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)==(0x8e8+4281-0x19a1)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZPB_TMP_PATH,F_OK)==(0x1+9725-0x25fe)){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)!=(0x612+4795-0x18cd)){slog(PB_PRINT,SLOG_ERR,
+remove(ZPB_TMP_PATH)!=(0x29a+6954-0x1dc4)){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)!=(0x11f0+150-0x1286)){slog(PB_PRINT,
+);}}if(rename(ZPB_SEC_PATH,ZPB_TMP_PATH)!=(0x143c+2035-0x1c2f)){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[(0x7d5+553-0x9e6)]={(0xa89+5833-0x2152)};char cmd[
-(0x1193+2709-0x1ba8)]={(0x187b+1074-0x1cad)};sc_cfg_get(
+);}{char rnum_buf[(0x10f7+3433-0x1e48)]={(0x629+2266-0xf03)};char cmd[
+(0x4d9+492-0x645)]={(0x11c5+3402-0x1f0f)};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
-)==(0x248+2657-0xca9)){if(remove(ZPB_TMP_PATH)!=(0x8c6+4527-0x1a75)){slog(
+)==(0x11dc+3704-0x2054)){if(remove(ZPB_TMP_PATH)!=(0x130f+4250-0x23a9)){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(0x622+8367-0x26d1);}return
-(0x1327+2405-0x1c8b);}return(0x1b4b+253-0x1c48);}T_zPb_DbResult atPb_ExecDbSql(
+(pSql,"\x3b")||strstr(pSql,"\x2d\x2d")){return(0x16d9+1261-0x1bc6);}return
+(0x18f4+1477-0x1eb8);}return(0x1ca+3801-0x10a3);}T_zPb_DbResult atPb_ExecDbSql(
 const char*pSql,sqlite3_callback callback,VOID*pFvarg){sqlite3*pDb=NULL;CHAR 
-dbErrMsg[(0x1790+92-0x176c)]={(0x7b1+6581-0x2166)};if(NULL==pSql){return 
+dbErrMsg[(0x1cfa+1772-0x2366)]={(0x24f+2999-0xe06)};if(NULL==pSql){return 
 ZPB_DB_ERROR_INVALIDPTR;}
 #ifdef WEBS_SECURITY

-if(check_sql_cmd(pSql)==(0xa41+5720-0x2099)){slog(PB_PRINT,SLOG_ERR,
+if(check_sql_cmd(pSql)==(0x19e0+4-0x19e4)){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,34 +102,33 @@
 );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)-(0x806+5766-0x1e8b));slog(PB_PRINT,SLOG_ERR
-,
+sqlite3_errmsg(pDb),sizeof(dbErrMsg)-(0x1d45+3-0x1d47));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=(0xe2f+5051-0x21ea);if((0x202+6081-0x19c2)>line){slog(
+char**lname){SINT32 index=(0x346+8915-0x2619);if((0x35c+2174-0xbd9)>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-(0x71d+3326-0x141a);}index=atoi(zresult[(0x1940+1579-0x1f6b)]);if(index
->ZPB_AP_MAX_RECORD){slog(PB_PRINT,SLOG_ERR,
+);return-(0x12b0+2301-0x1bac);}index=atoi(zresult[(0x174d+2615-0x2184)]);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-(0x953+3426-0x16b4);}slog(PB_PRINT,SLOG_DEBUG,
+);return-(0x4aa+7533-0x2216);}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(0xe0c+2704-0x189c);}
+,index);g_zPb_ApIndex[index]=PBM_SUCCESS;return(0x717+8001-0x2658);}
 T_zPb_DbResult atPb_InitApIndex(){CHAR sql[ZPB_MAX_BYTES_DB]={
-(0x231+8830-0x24af)};SINT32 i=(0x1261+978-0x1632);g_zPb_ApIndex[
-(0xeb1+5161-0x22da)]=ZPB_AP_MAX_RECORD;for(i=(0x11d5+3664-0x2024);i<=
-g_zPb_ApIndex[(0x2147+776-0x244f)];i++){g_zPb_ApIndex[i]=PBM_ERROR_NOT_FOUND;}
+(0x338+7132-0x1f14)};SINT32 i=(0x318+4776-0x15bf);g_zPb_ApIndex[
+(0x4c8+3964-0x1444)]=ZPB_AP_MAX_RECORD;for(i=(0x73d+4017-0x16ed);i<=
+g_zPb_ApIndex[(0xa22+1032-0xe2a)];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(-(0x2c+5623-0x1622)==
-access(path,(0x7d7+4994-0x1b59))){slog(PB_PRINT,SLOG_DEBUG,
+ZUFI_NULL);}INT zte_pbm_check_and_creat_dir(char*path){if(-(0x1e87+878-0x21f4)==
+access(path,(0x882+4579-0x1a65))){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(-(0x8e0+7707-0x26fa)==mkdir(path,(0xf60+5-0xd66))){slog(PB_PRINT
-,SLOG_ERR,
+,ZPB_DB_DIR);if(-(0xf71+4767-0x220f)==mkdir(path,(0x6ad+3559-0x1295))){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-(0x1259+3197-0x1ed5);}}return(0xf03+3889-0x1e34);}UINT8 
+);return-(0x5d4+988-0x9af);}}return(0xd67+1178-0x1201);}UINT8 
 zte_pbm_check_web_pbm_dir(VOID){
 #ifdef _MBB_OS_UCLINUX

 (VOID)zte_pbm_check_and_creat_dir(
@@ -143,24 +142,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]={(0x3c3+1019-0x7be)};
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x6c8+879-0xa37)};
 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]={(0x1542+3015-0x2109)};if(NULL==
+result=ZPB_DB_ERROR;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1727+1005-0x1b14)};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[(0xa08+935-0xd7d)]={(0x134f+451-0x1512)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,
-pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0x1048+4268-0x20f3))&&(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[(0x14e4+4276-0x2566)]={(0x388+5681-0x19b9)};sc_cfg_get(ZPB_NV_USIMINDEXMAX
+,pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0x2bc+2282-0xba5))&&(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(
@@ -174,17 +173,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={(0xf9a+5446-0x24e0)};if((0x539+3417-0x1291)>line){slog(PB_PRINT,SLOG_ERR,
+para={(0x57d+4373-0x1692)};if((0x99a+6960-0x24c9)>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[(0xa3+4999-0x142a)]);para.
-pbLocation=atoi(zresult[(0x7bc+2221-0x1068)]);slog(PB_PRINT,SLOG_DEBUG,
+);return ZPB_DB_ERROR;}para.pbIndex=atoi(zresult[(0xd04+908-0x1090)]);para.
+pbLocation=atoi(zresult[(0x1a5+5616-0x1794)]);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,&para,sizeof(para));return ZPB_DB_OK
 ;}T_zPb_DbResult atPb_GetIndexLocationById(T_zPb_Header*pbPara){CHAR sql[
-ZPB_MAX_BYTES_DB]={(0x23d0+757-0x26c5)};snprintf(sql,sizeof(sql)-
-(0x73b+2296-0x1032),
+ZPB_MAX_BYTES_DB]={(0x478+59-0x4b3)};snprintf(sql,sizeof(sql)-
+(0x1dc7+1444-0x236a),
 "\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,(0x16a+3990-0x1100),sizeof(
+,ZPB_DB_PBM_TABLE,pbPara->pbId);memset(pbPara,(0x302+1793-0xa03),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)\

@@ -196,8 +195,8 @@
 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]={(0x144d+3678-0x22ab)
-};if(NULL==pPbRecord){slog(PB_PRINT,SLOG_ERR,
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x20dd+814-0x240b)}
+;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,
 "\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\x70\x75\x74\x20\x69\x6e\x64\x65\x78\x20\x69\x73\x20\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64" "\n"
@@ -207,75 +206,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((0x14ec+1309-0x1a08)>line){
+(VOID*fvarg,int line,char**zresult,char**lname){if((0x107d+1349-0x15c1)>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-(0x1048+881-0x13b8);}*(int*)fvarg=atoi(zresult[(0x232d+194-0x23ef)]);
-return(0x140+353-0x2a1);}T_zPb_DbResult atPb_SetSimCapacityTable(
+);return-(0x1413+823-0x1749);}*(int*)fvarg=atoi(zresult[(0xdb6+32-0xdd6)]);
+return(0x18df+447-0x1a9e);}T_zPb_DbResult atPb_SetSimCapacityTable(
 T_zPb_UsimCapacity pbPara){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[
-ZPB_MAX_BYTES_DB]={(0x224c+720-0x251c)};UINT32 count=(0x388+6815-0x1e27);
-snprintf(sql,sizeof(sql)-(0x738+202-0x801),
+ZPB_MAX_BYTES_DB]={(0xfda+4338-0x20cc)};UINT32 count=(0x23b+6495-0x1b9a);
+snprintf(sql,sizeof(sql)-(0x1b4f+1943-0x22e5),
 "\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((0x148+2212-0x9ec)<count){memset(sql,(0x3a4+2655-0xe03),sizeof(sql));
-snprintf(sql,sizeof(sql)-(0xae5+3159-0x173b),
+count);if((0xecb+1123-0x132e)<count){memset(sql,(0x1b8d+2670-0x25fb),sizeof(sql)
+);snprintf(sql,sizeof(sql)-(0x1d4+6900-0x1cc7),
 "\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,(0x40f+3467-0x119a),sizeof(sql));snprintf(sql,
-sizeof(sql)-(0x8bd+6412-0x21c8),"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,(0x13a0+127-0x141f),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0xa15+1403-0xf8f),"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]={
-(0x1547+3287-0x221e)};SINT32 count=(0x11fb+537-0x1414);T_zPb_ApCapacity pbPara={
-(0x1651+1723-0x1d0c)};snprintf(sql,sizeof(sql)-(0x1343+3795-0x2215),
+(0x132d+1750-0x1a03)};SINT32 count=(0xf96+1827-0x16b9);T_zPb_ApCapacity pbPara={
+(0x1fb0+1738-0x267a)};snprintf(sql,sizeof(sql)-(0x5db+6528-0x1f5a),
 "\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((0xce7+6026-0x2471)<count){memset(sql,
-(0x668+5791-0x1d07),sizeof(sql));snprintf(sql,sizeof(sql)-(0x26a4+24-0x26bb),
+atPb_DbCountTableLineCb,&count);if((0x552+7774-0x23b0)<count){memset(sql,
+(0x876+6136-0x206e),sizeof(sql));snprintf(sql,sizeof(sql)-(0x1d71+1184-0x2210),
 "\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,(0x296+2858-0xdc0),sizeof(sql));snprintf(sql,sizeof
-(sql)-(0x817+5342-0x1cf4),
+);return result;}}memset(sql,(0x652+836-0x996),sizeof(sql));snprintf(sql,sizeof(
+sql)-(0xc1f+3364-0x1942),
 "\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,(0x6d6+265-0x7df),sizeof(
-sql));snprintf(sql,sizeof(sql)-(0x168+5714-0x17b9),
+,pbPara.maxRecordNum,pbPara.usedRecordNum);memset(sql,(0x103+3055-0xcf2),sizeof(
+sql));snprintf(sql,sizeof(sql)-(0xe5f+1625-0x14b7),
 "\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=
-(0x736+5237-0x1bab);if((0xcac+5641-0x22b4)>line){return ZPB_DB_ERROR;}pbIndex=(
+(0x78c+1686-0xe22);if((0x21c8+1235-0x269a)>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+(0x226d+230-0x2352)]=atoi(zresult[(0x1490+2841-0x1fa9)]);
+,i);pbIndex->apIndex[i+(0x4a7+5526-0x1a3c)]=atoi(zresult[(0x1dd2+2088-0x25fa)]);
 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+(0x1118+368-0x1287)]);pbIndex->count=i+(0xa2f+1598-0x106c);
+,pbIndex->apIndex[i+(0x98b+5885-0x2087)]);pbIndex->count=i+(0x680+1861-0xdc4);
 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]
-={(0x1144+3752-0x1fec)};SINT32 countByGroup=(0x1a22+2768-0x24f2);CHAR pbGroup[
-ZPB_PARAM_SIZE20]={(0xca4+6062-0x2452)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
-pbGroup));snprintf(sql,sizeof(sql)-(0x19ac+492-0x1b97),
+={(0x109d+1088-0x14dd)};SINT32 countByGroup=(0xe6c+3400-0x1bb4);CHAR pbGroup[
+ZPB_PARAM_SIZE20]={(0x1c7c+16-0x1c8c)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
+pbGroup));snprintf(sql,sizeof(sql)-(0xeca+5652-0x24dd),
 "\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,(0x106f+1802-0x1779),sizeof(
-sql));snprintf(sql,sizeof(sql)-(0x9f2+899-0xd74),
+atPb_DbCountTableLineCb,&countByGroup);memset(sql,(0x2441+610-0x26a3),sizeof(sql
+));snprintf(sql,sizeof(sql)-(0xae5+6172-0x2300),
 "\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,
-(0x8ef+4796-0x1bab),sizeof(sql));snprintf(sql,sizeof(sql)-(0x107d+1155-0x14ff),
+(0x1a91+946-0x1e43),sizeof(sql));snprintf(sql,sizeof(sql)-(0x81c+3752-0x16c3),
 "\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,
@@ -283,7 +282,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={(0x554+2866-0x1086)};if(NULL==
+recData,SINT32 delTime){T_zPb_Header pbHeader={(0x1f99+1385-0x2502)};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!=
@@ -294,30 +293,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]={(0x24f0+296-0x2618)};if(NULL==
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1c8a+759-0x1f81)};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)-(0xe25+5486-0x2392),
+,delTime,pbPara->delId[delTime]);snprintf(sql,sizeof(sql)-(0xd9d+4815-0x206b),
 "\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=(0x2102+1131-0x256c);for(i=(0x176b+3593-0x2573);(i<=g_zPb_SimIndex[
-(0xb33+4281-0x1bec)])&&(i<(ZPB_SIM_MAX_RECORD+(0x1cd+3374-0xefa)));i++){
+SINT32 i=(0xa10+4351-0x1b0e);for(i=(0x810+1294-0xd1d);(i<=g_zPb_SimIndex[
+(0x1222+3900-0x215e)])&&(i<(ZPB_SIM_MAX_RECORD+(0x11bb+2631-0x1c01)));i++){
 g_zPb_SimIndex[i]=PBM_ERROR_NOT_FOUND;}}VOID atPb_ClearApPbmIndexArray(VOID){
-SINT32 i=(0x1253+3993-0x21eb);for(i=(0x2228+944-0x25d7);(i<=g_zPb_ApIndex[
-(0xf3a+966-0x1300)])&&(i<(ZPB_AP_MAX_RECORD+(0x164+4881-0x1474)));i++){
+SINT32 i=(0x1a9+6771-0x1c1b);for(i=(0x157f+520-0x1786);(i<=g_zPb_ApIndex[
+(0x9b6+3669-0x180b)])&&(i<(ZPB_AP_MAX_RECORD+(0x784+7702-0x2599)));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]={(0x1616+3044-0x21fa)};if(NULL==pbPara){
-slog(PB_PRINT,SLOG_ERR,
+ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x934+4047-0x1903)};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)-(0x24b4+435-0x2666),
+);return ZPB_DB_ERROR_INVALIDPTR;}snprintf(sql,sizeof(sql)-(0x1e97+2024-0x267e),
 "\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 6fe67ee..02d6581 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={(0x1564+460-0x1730)};sem_t g_Pb_sem_id={
-(0x174d+3937-0x26ae)};int g_zPb_MsqId=-(0x197+3498-0xf40);int g_zPb_LocalMsqId=-
-(0x1459+3542-0x222e);VOID atWeb_AddOneContact(UINT8*pDatabuf){T_zPb_WebContact*
+pDatabuf);T_zPb_optRsp g_PbOptRsp={(0x75c+2204-0xff8)};sem_t g_Pb_sem_id={
+(0x8ea+7100-0x24a6)};int g_zPb_MsqId=-(0x57d+1148-0x9f8);int g_zPb_LocalMsqId=-
+(0x9d5+179-0xa87);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,21 +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(((0x171b+1788-0x1e16)==ptPara->result)&&(
-(0x1763+3708-0x25de)==ptPara->opertype)){CHAR needPb[(0xe9a+733-0x1145)]={
-(0x2293+568-0x24cb)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
-(0x199b+2551-0x2392)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
-MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0x3e7+383-0x566),NULL,(0xce2+4158-0x1d20));
-}}}VOID zPb_RecvZuslotInd(UINT8*pDatabuf){T_zAt_ZuslotRes*ptPara=ZUFI_NULL;if(
-pDatabuf==NULL){return;}ptPara=(T_zAt_ZuslotRes*)(pDatabuf);printf(
+,ptPara->result,ptPara->opertype);if(((0x36a+6064-0x1b19)==ptPara->result)&&(
+(0x10bb+3612-0x1ed6)==ptPara->opertype)){CHAR needPb[(0x137b+4647-0x2570)]={
+(0x15ed+1466-0x1ba7)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
+(0x179f+1279-0x1c9e)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
+MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0x1150+4297-0x2219),NULL,
+(0x123f+3080-0x1e47));}}}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==(0x19eb+1936-0x217b)){
-CHAR needPb[(0x84f+6067-0x1fd0)]={(0x14c4+1966-0x1c72)};sc_cfg_get(
-NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x1660+2323-0x1f73)!=strcmp(needPb
+,ptPara->slot,ptPara->slot_state);if(ptPara->slot_state==(0xcd3+6398-0x25d1)){
+CHAR needPb[(0xdc8+3823-0x1c85)]={(0x586+6207-0x1dc5)};sc_cfg_get(
+NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x150f+4438-0x2665)!=strcmp(needPb
 ,"\x6e\x6f")){atPb_CfgPbNvInit();atPb_DelAllRecsSimDb();}}}VOID 
-zPb_RecvPbInitRst(UINT8*pDatabuf){int pbReadRet=-(0x1ee0+1332-0x2413);memcpy(&
+zPb_RecvPbInitRst(UINT8*pDatabuf){int pbReadRet=-(0x92f+1981-0x10eb);memcpy(&
 g_PbOptRsp,pDatabuf,sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-
-(0xb60+2845-0x167c)){atPb_IintPbErr(NULL);return;}pbReadRet=
+(0xb83+2161-0x13f3)){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(
@@ -65,17 +66,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,(0x1227+4894-0x2545));break;
+usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,(0x12ed+3515-0x20a8));break;
 default:break;}}UINT8 zPbMsgCreat(VOID){g_zPb_MsqId=msgget(MODULE_ID_PB,
-IPC_CREAT|(0x830+682-0x95a));if(g_zPb_MsqId==-(0xde9+5837-0x24b5)){return 
+IPC_CREAT|(0x215a+833-0x231b));if(g_zPb_MsqId==-(0x4bb+2335-0xdd9)){return 
 ZUFI_FAIL;}g_zPb_LocalMsqId=msgget(MODULE_ID_PB_LOCAL,IPC_CREAT|
-(0x5d3+1259-0x93e));if(g_zPb_LocalMsqId==-(0x434+3029-0x1008)){return ZUFI_FAIL;
-}sem_init(&g_Pb_sem_id,(0xd07+716-0xfd3),(0x617+4986-0x1991));return ZUFI_SUCC;}
-void detect_modem_state(void){CHAR state[(0xe98+4947-0x21b9)]={(0x359+470-0x52f)
-};sc_cfg_get("\x6d\x6f\x64\x65\x6d\x5f\x6d\x61\x69\x6e\x5f\x73\x74\x61\x74\x65",
-state,sizeof(state));if((0x3f5+3145-0x103e)==strcmp(state,
+(0x1c07+1719-0x213e));if(g_zPb_LocalMsqId==-(0x17b9+3126-0x23ee)){return 
+ZUFI_FAIL;}sem_init(&g_Pb_sem_id,(0xa14+5420-0x1f40),(0xd81+3148-0x19cd));return
+ ZUFI_SUCC;}void detect_modem_state(void){CHAR state[(0xf74+4970-0x22ac)]={
+(0x6ac+5953-0x1ded)};sc_cfg_get(
+"\x6d\x6f\x64\x65\x6d\x5f\x6d\x61\x69\x6e\x5f\x73\x74\x61\x74\x65",state,sizeof(
+state));if((0x1117+1632-0x1777)==strcmp(state,
 "\x6d\x6f\x64\x65\x6d\x5f\x73\x69\x6d\x5f\x75\x6e\x64\x65\x74\x65\x63\x74\x65\x64"
-)||(0x1066+4166-0x20ac)==strcmp(state,
+)||(0x295+2980-0xe39)==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(
@@ -94,28 +96,28 @@
 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,
-(0x157b+138-0x1605));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR 
-clearPb[(0x991+4308-0x1a33)]={(0x6b+382-0x1e9)};sc_cfg_get(
+(0x28+7431-0x1d2f));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR 
+clearPb[(0x1bfb+1631-0x2228)]={(0x18e7+3316-0x25db)};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")==(0x17b8+2415-0x2127)){atPb_DropDb()
-;}ipc_send_message(MODULE_ID_PB,MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,
-(0x11c4+4120-0x21dc),NULL,(0x3a3+2933-0xf18));}void zPbHandleMainCtrlMsg(MSG_BUF
+,clearPb);if(strcmp(clearPb,"\x79\x65\x73")==(0xdfa+312-0xf32)){atPb_DropDb();}
+ipc_send_message(MODULE_ID_PB,MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,
+(0x6d2+7351-0x2389),NULL,(0xa24+4661-0x1c59));}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=(0x9d1+7427-0x26d4);MSG_BUF stMsg={
-(0x1420+1409-0x19a1)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
+pb_msg_thread_proc(void*arg){int iRet=(0x8f8+2650-0x1352);MSG_BUF stMsg={
+(0x2062+153-0x20fb)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
 int*)arg);prctl(PR_SET_NAME,"\x70\x62\x5f\x6c\x6f\x63\x61\x6c",
-(0x9fd+7046-0x2583),(0x93f+413-0xadc),(0x3e6+6690-0x1e08));while(
-(0x1ff5+223-0x20d3)){iRet=(0x1334+2898-0x1e86);memset(&stMsg,(0x3dd+5359-0x18cc)
-,sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x18b6+1055-0x1cd5),
-(0x305+4752-0x1595));printf(
+(0x729+3892-0x165d),(0x1653+1294-0x1b61),(0xc20+5332-0x20f4));while(
+(0x5a+2205-0x8f6)){iRet=(0xc4+1153-0x545);memset(&stMsg,(0x1d66+1490-0x2338),
+sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x946+3527-0x170d),
+(0xeed+395-0x1078));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>=(0x1739+4047-0x2708)){
+,stMsg.src_id,stMsg.usMsgCmd,MODULE_ID_AT_CTL);if(iRet>=(0x1487+3850-0x2391)){
 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 
@@ -123,29 +125,29 @@
 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=(0x502+2820-0x1006);MSG_BUF msgBuf={(0x19ba+2607-0x23e9)};CHAR 
-needPb[(0x1f66+869-0x2299)]={(0x10d8+4139-0x2103)};prctl(PR_SET_NAME,
-"\x70\x62\x5f\x6d\x61\x69\x6e",(0x983+2731-0x142e),(0x1bd0+822-0x1f06),
-(0x1d30+466-0x1f02));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof
-(needPb));if((0xd77+1866-0x14c1)!=strcmp(needPb,"\x6e\x6f")){
+recv_thread_tid=(0x667+1-0x668);MSG_BUF msgBuf={(0x178+4862-0x1476)};CHAR needPb
+[(0x3d7+8170-0x238f)]={(0x2d6+3605-0x10eb)};prctl(PR_SET_NAME,
+"\x70\x62\x5f\x6d\x61\x69\x6e",(0xf08+4252-0x1fa4),(0x1247+1247-0x1726),
+(0x2bd+8586-0x2447));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof
+(needPb));if((0x165d+3752-0x2505)!=strcmp(needPb,"\x6e\x6f")){
 #ifdef WEBS_SECURITY

-if(access(ZPB_DB_PATH,F_OK)!=(0x969+3207-0x15f0)){if(access(ZPB_TMP_PATH,F_OK)==
-(0xd0d+2542-0x16fb)){if(remove(ZPB_SEC_PATH)!=(0x75a+5680-0x1d8a)){slog(PB_PRINT
-,SLOG_ERR,
+if(access(ZPB_DB_PATH,F_OK)!=(0x116+7591-0x1ebd)){if(access(ZPB_TMP_PATH,F_OK)==
+(0x10bb+3699-0x1f2e)){if(remove(ZPB_SEC_PATH)!=(0x1368+1564-0x1984)){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)!=(0x10bd+4943-0x240c)){slog(PB_PRINT,
+);}if(rename(ZPB_TMP_PATH,ZPB_SEC_PATH)!=(0xef+8962-0x23f1)){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)==(0x1b2d+2435-0x24b0)){char rnum_buf[
-(0x14a3+4562-0x265d)]={(0xdbd+245-0xeb2)};char cmd[(0x2106+5-0x208b)]={
-(0x747+669-0x9e4)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZPB_SEC_PATH,F_OK)==(0xed5+258-0xfd7)){char rnum_buf[
+(0x1bbb+2448-0x2533)]={(0xe9d+2857-0x19c6)};char cmd[(0xdb+1914-0x7d5)]={
+(0xbba+420-0xd5e)};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-(0xc01+1703-0x12a7);}printf(
+zPbMsgCreat();atPb_Init();}else{return-(0x15bd+3301-0x22a1);}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))==-(0x1e52+844-0x219d)){assert((0x197f+2023-0x2166));}
-detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x1125+5261-0x25b2)
-;}
+(&g_zPb_LocalMsqId))==-(0x39c+8783-0x25ea)){assert((0x16ea+3880-0x2612));}
+detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x1a65+166-0x1b0b);
+}
diff --git a/ap/app/zte_comm/phonebook/src/pb_proc.c b/ap/app/zte_comm/phonebook/src/pb_proc.c
index 3e0d06d..3745426 100755
--- a/ap/app/zte_comm/phonebook/src/pb_proc.c
+++ b/ap/app/zte_comm/phonebook/src/pb_proc.c
@@ -3,85 +3,83 @@
 #include <semaphore.h>

 #include <limits.h>

 #include "pb_com.h"

-#define ZPB_UCS2                    (0x4d9+208-0x5a8)

-#define ZPB_UCS2_PREFIX             (0x1c27+2704-0x2637)

-#define ZPB_UCS2_PREFIX_LEN         (0xd11+594-0xf61)

-#define ZPB_NON_GSM                     (0xf41+815-0x1250)

-#define ZPB_GSM_CHARACTER_SET_SIZE      (0x75b+5128-0x1ae3)

-#define ZPB_INIT_LOAD_RECORD_NUM    (0x10b+2557-0xad6)

+#define ZPB_UCS2                    (0x141b+2829-0x1f27)

+#define ZPB_UCS2_PREFIX             (0x1b80+1648-0x2170)

+#define ZPB_UCS2_PREFIX_LEN         (0x41b+3211-0x10a4)

+#define ZPB_NON_GSM                     (0xb67+5938-0x2279)

+#define ZPB_GSM_CHARACTER_SET_SIZE      (0xe51+5993-0x253a)

+#define ZPB_INIT_LOAD_RECORD_NUM    (0x7d9+5456-0x1cf7)

 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=
-(0xe8b+4904-0x21b3);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+
-(0x1808+3023-0x23d6)]={(0xae6+2771-0x15b9)};SINT32 g_zPb_ApIndex[
-ZPB_AP_MAX_RECORD+(0x5c1+2093-0xded)]={(0xaed+594-0xd3f)};
-T_zPb_DelStatusMultiOrAll g_zPb_DelStatusUsim={(0x232f+327-0x2476)};const 
-unsigned char G_ZPB_NEWUCS2TOGSM[ZPB_GSM_CHARACTER_SET_SIZE*(0x83c+2835-0x134d)]
-={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,(0x1f51+90-0x1fa1),ZPB_NON_GSM,
-ZPB_NON_GSM,(0xdcf+101-0xe27),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+(0x1d35+296-0x1e5d);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+(0xaf6+6254-0x2363)
+]={(0x1594+2064-0x1da4)};SINT32 g_zPb_ApIndex[ZPB_AP_MAX_RECORD+
+(0x90c+5944-0x2043)]={(0x1030+1403-0x15ab)};T_zPb_DelStatusMultiOrAll 
+g_zPb_DelStatusUsim={(0x1fc+2743-0xcb3)};const unsigned char G_ZPB_NEWUCS2TOGSM[
+ZPB_GSM_CHARACTER_SET_SIZE*(0xd2f+2441-0x16b6)]={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,(0xe4b+5789-0x24de),ZPB_NON_GSM,ZPB_NON_GSM,
+(0x1110+2532-0x1ae7),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,(0x1426+3015-0x1fcd),(0x4db+2508-0xe86),
-(0x839+3607-0x162e),(0x1347+1811-0x1a37),(0x11f3+5039-0x25a0),(0x458+2467-0xdd6)
-,(0xab7+7236-0x26d5),(0x3dd+4120-0x13ce),(0xf13+1795-0x15ee),
-(0x15b0+1602-0x1bc9),(0x1a6a+113-0x1ab1),(0x855+6245-0x208f),
-(0x1288+2440-0x1be4),(0x1f06+323-0x201c),(0x1739+629-0x1980),(0x5eb+5097-0x19a5)
-,(0x84a+6437-0x213f),(0xdbc+839-0x10d2),(0x217+7659-0x1fd0),(0x16d8+3842-0x25a7)
-,(0x15e8+1061-0x19d9),(0x76a+6187-0x1f60),(0x458+140-0x4ae),(0x21c1+891-0x2505),
-(0xa1d+2742-0x149b),(0x1365+730-0x1606),(0x234f+788-0x2629),(0x8f7+1030-0xcc2),
-(0xf88+3757-0x1df9),(0x22f+8988-0x250e),(0x4b8+1631-0xad9),(0x159+1094-0x560),
-(0x1426+3929-0x237f),(0x579+5990-0x1c9e),(0xc29+5556-0x219b),(0x21ec+213-0x227e)
-,(0xcf3+1396-0x1223),(0x9fc+3612-0x17d3),(0x158b+3351-0x225c),
-(0x57b+7247-0x2183),(0x618+7928-0x24c8),(0x1c58+7-0x1c16),(0x11b5+2157-0x19d8),
-(0x438+5909-0x1b02),(0x60f+1451-0xb6e),(0x4dc+2524-0xe6b),(0x96d+5862-0x2005),
-(0x217b+499-0x231f),(0xe3b+3906-0x1d2d),(0x551+2470-0xea6),(0x12e4+4276-0x2346),
-(0x238d+899-0x26bd),(0x725+7775-0x2530),(0x1afd+3056-0x2698),
-(0x10f4+1144-0x1516),(0x10b7+247-0x1157),(0xaff+3745-0x1948),
-(0x1a98+2525-0x241c),(0x857+4541-0x19ba),(0x2a8+4894-0x156b),ZPB_NON_GSM,
-(0x1e5+1470-0x746),ZPB_NON_GSM,(0x537+8236-0x2552),ZPB_NON_GSM,
-(0x667+8067-0x2589),(0x1737+1408-0x1c55),(0x73+5362-0x1502),(0x597+4393-0x165c),
-(0x42f+3587-0x11cd),(0x1e63+221-0x1eda),(0x142a+2646-0x1e19),(0x276+7699-0x2021)
-,(0x1385+3891-0x224f),(0x151d+2054-0x1cb9),(0xdf3+3844-0x1c8c),
-(0x125c+4130-0x2212),(0xfe2+2995-0x1b28),(0x481+8922-0x26ed),(0x528+626-0x72b),
-(0x1356+4706-0x2548),(0x367+8898-0x25b8),(0x172f+3904-0x25fd),
-(0x544+4206-0x153f),(0x13e0+4812-0x2638),(0x18a7+86-0x1888),(0xdf+4864-0x1369),
-(0xa20+7436-0x26b5),(0xc95+1767-0x1304),(0x178b+433-0x18c3),(0x2ef+3334-0xf7b),
+ZPB_NON_GSM,(0x5c8+1202-0xa5a),(0x455+2133-0xc89),(0x372+2997-0xf05),
+(0xb33+1967-0x12bf),(0x15d7+4182-0x262b),(0x7af+1638-0xdf0),(0x6c0+5573-0x1c5f),
+(0x2160+1144-0x25b1),(0x9c7+6074-0x2159),(0x6a+8354-0x20e3),(0x3c6+5786-0x1a36),
+(0xea5+150-0xf10),(0x6d1+939-0xa50),(0x9a0+5198-0x1dc1),(0x1712+188-0x17a0),
+(0x1d8+8700-0x23a5),(0xf48+5151-0x2337),(0x284+2057-0xa5c),(0x1193+1661-0x17de),
+(0x70d+7789-0x2547),(0x299+8732-0x2481),(0x562+1896-0xc95),(0x1def+1266-0x22ab),
+(0xba2+1660-0x11e7),(0x13e7+180-0x1463),(0x193+2563-0xb5d),(0x1a88+278-0x1b64),
+(0xd51+4010-0x1cc0),(0xa30+170-0xa9e),(0x1fad+1027-0x2373),(0x1941+1434-0x1e9d),
+(0x1bec+43-0x1bd8),(0x43c+3067-0x1037),(0xb99+1119-0xfb7),(0x4bb+6564-0x1e1d),
+(0xff3+4672-0x21f0),(0x1509+4454-0x262b),(0x1973+1321-0x1e57),
+(0xd4d+6469-0x264c),(0x1754+3197-0x238a),(0x23ed+26-0x23bf),(0x2585+245-0x2631),
+(0x9f7+3354-0x16c7),(0xd8c+5175-0x2178),(0x115b+813-0x143c),(0x17e7+2723-0x223d)
+,(0xa82+5513-0x1fbd),79,(0x511+5253-0x1946),(0x16a5+787-0x1967),
+(0xd3b+5134-0x20f7),(0x15ef+1941-0x1d31),(0x467+909-0x7a0),(0x7f6+7509-0x24f6),
+(0x50c+7300-0x213a),(0x130b+2325-0x1bc9),(0xc4+8809-0x22d5),(0x97f+7231-0x2565),
+(0x1d55+1413-0x2280),(0x13cc+1618-0x19c3),ZPB_NON_GSM,(0x7f3+4320-0x1876),
+ZPB_NON_GSM,(0x3e6+2400-0xd35),ZPB_NON_GSM,(0x16a+7230-0x1d47),(0x74b+754-0x9db)
+,(0x99b+3293-0x1615),(0xc11+5576-0x2175),(0x1d9c+166-0x1ddd),
+(0x1f54+1979-0x26a9),(0x1843+1783-0x1ed3),(0xcaa+5252-0x20c6),
+(0x14d9+1505-0x1a51),(0x18d7+973-0x1c3a),(0x684+3041-0x11fa),(0xb05+2747-0x1554)
+,(0xcbb+4405-0x1d83),(0x11e8+1505-0x175b),(0x8f4+6724-0x22c9),
+(0x1b1c+1398-0x2022),(0xf88+4817-0x21e8),(0x408+6870-0x1e6c),(0x2dd+4986-0x15e4)
+,(0x1152+3077-0x1ce3),(0x513+8803-0x2701),(0x13f5+2819-0x1e82),
+(0xb79+2768-0x15d2),(0x4df+2241-0xd28),(0x15a2+1164-0x19b5),(0xa9f+3343-0x1734),
 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,
 ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,(0xb89+4453-0x1cae),ZPB_NON_GSM,(0x15d7+3484-0x2372),
-(0xf11+5796-0x2591),(0x23ef+622-0x265a),ZPB_NON_GSM,(0xdc6+294-0xe8d),
+ZPB_NON_GSM,ZPB_NON_GSM,(0xfb5+3086-0x1b83),ZPB_NON_GSM,(0x22aa+278-0x23bf),
+(0x2a1+386-0x3ff),(0x622+1264-0xb0f),ZPB_NON_GSM,(0x2353+244-0x23e8),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,(0xf2c+1294-0x13da),
-(0x560+1698-0xbc1),(0x5cc+1235-0xa5e),(0x2195+544-0x2374),(0x920+1745-0xfb0),
-(0x1dbd+1571-0x2385),(0x35b+4444-0x14a9),(0x8c4+7190-0x24be),
-(0x135c+1570-0x1975),(0x766+6544-0x20b1),(0x19d1+2614-0x23e8),
-(0x17e8+2132-0x1ff7),(0x108a+1646-0x16b3),(0x19e4+365-0x1b08),
-(0x193c+2173-0x2170),(0x9c0+546-0xb99),(0x898+1149-0xccc),ZPB_NON_GSM,
-(0x1a83+140-0x1ab2),(0xdbd+4824-0x2046),(0x99c+48-0x97d),(0x1c5a+457-0x1dd4),
-(0x4f5+8647-0x266d),(0xc8a+1495-0x1205),ZPB_NON_GSM,(0x152+2034-0x939),
-(0x1278+797-0x1540),(0xd91+5749-0x23b1),(0xacf+499-0xc6d),(0xa69+5753-0x2084),
-(0x724+5073-0x1a9c),ZPB_NON_GSM,(0x1131+4896-0x2433),(0x861+2657-0x1243),
-(0x15d9+2872-0x20b0),(0x14b6+1172-0x18e9),(0x486+3910-0x136b),
-(0x1407+1027-0x178f),(0x74c+3007-0x12fc),(0x1cc8+459-0x1e76),(0x20a4+999-0x2482)
-,(0x1e56+1645-0x24bf),(0x157f+1248-0x1a5a),(0x19d3+761-0x1c67),
-(0x1ca+3196-0xde1),(0x4fa+5054-0x18b1),(0x8f7+1126-0xcf4),(0x110+7034-0x1c21),
-(0x5aa+6587-0x1efc),ZPB_NON_GSM,(0x1128+1208-0x1563),(0x104+6902-0x1bf2),
-(0xa0+2205-0x8ce),(0x10c2+66-0x1095),(0xbfd+3057-0x177f),(0xf3b+5514-0x2449),
-ZPB_NON_GSM,(0x15e1+3566-0x23c3),(0x20d9+261-0x21d8),(0x13b8+1718-0x19f9),
-(0x950+3247-0x158a),(0x920+652-0xb2e),(0x1c7+6872-0x1c26),ZPB_NON_GSM,
-(0x1c7b+2671-0x2671)};VOID atPb_Init(VOID){UINT32 pbCount=(0xed8+1035-0x12e3);
-g_zPb_SimIndex[(0x16ca+4150-0x2700)]=(0x26c2+71-0x2709);sc_cfg_set(ZPB_NV_INIT,
-ZPB_LOADING);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(pbCount=
-(0x9c9+4276-0x1a7c);pbCount<=ZPB_SIM_MAX_RECORD;pbCount++){g_zPb_SimIndex[
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0xae5+6214-0x22cb),
+(0x1d28+201-0x1db0),(0xed+7348-0x1d60),(0x619+6817-0x2079),(0x9ea+1161-0xe32),
+(0x5fc+6351-0x1e70),(0x5bd+4927-0x18ee),(0x959+2462-0x12db),(0x18aa+1267-0x1d94)
+,(0x12c7+94-0x12e0),(0x54c+7659-0x2318),(0x453+448-0x5ce),(0x29a+1378-0x7b7),
+(0x12cf+1413-0x180b),(0x670+6164-0x1e3b),(0x1bda+196-0x1c55),(0xc1d+6340-0x2498)
+,ZPB_NON_GSM,(0x76a+943-0xabc),(0x441+5211-0x184d),(0x18c8+2544-0x2269),
+(0x12b2+714-0x152d),(0x8d5+642-0xb08),(0x1d6+151-0x211),ZPB_NON_GSM,
+(0x1133+767-0x1427),(0x1535+1071-0x190f),(0x7fc+5957-0x1eec),(0x718+3572-0x14b7)
+,(0x1214+2406-0x1b1c),(0x1d8+4820-0x1453),ZPB_NON_GSM,(0x451+2804-0xf27),
+(0x2dc+99-0x2c0),(0x696+2058-0xe3f),(0x10ac+4938-0x2395),(0xe3b+4642-0x1ffc),
+(0x91d+251-0x99d),(0x360+7262-0x1faf),(0x9e8+465-0xb9c),(0xd0a+1275-0x11fc),
+(0xfa9+4659-0x21d8),(0x4a+37-0x6a),(0x19b6+1866-0x209b),(0x1216+1555-0x17c4),
+(0x4f+5670-0x166e),(0x153c+1143-0x194a),(0x1a55+1816-0x2104),(0x1090+719-0x12f6)
+,ZPB_NON_GSM,(0x105d+3943-0x1f47),(0x465+6811-0x1ef8),(0x3ca+113-0x3cc),
+(0xd86+5902-0x2425),(0x7b9+5984-0x1eaa),(0x1104+5106-0x247a),ZPB_NON_GSM,
+(0xdb4+1790-0x14a6),(0x507+5130-0x190b),(0x5c9+2251-0xe1f),(0x931+441-0xa75),
+(0xcf9+1874-0x13cd),(0xf2f+5595-0x2491),ZPB_NON_GSM,(0x87b+4058-0x17dc)};VOID 
+atPb_Init(VOID){UINT32 pbCount=(0xd3d+1061-0x1162);g_zPb_SimIndex[
+(0x3b8+8042-0x2322)]=(0x48f+3613-0x12ac);sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);(
+VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(pbCount=
+(0x1701+2011-0x1edb);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,
@@ -89,101 +87,102 @@
 );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=(0x5e8+2136-0xe40)
-;int min=32767;int max=(0x1a21+204-0x1aed);int temp=(0x1305+4781-0x25b2);int 
-outOff=(0x123c+678-0x14e2);printf(
+atpb_CvtUcs2ToAlphaField(char*src,int srcLen,char*dest){int i=
+(0x1b69+332-0x1cb5);int min=32767;int max=(0x17c2+211-0x1895);int temp=
+(0x67d+8007-0x25c4);int outOff=(0x47a+2591-0xe99);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<=(0x216a+566-0x23a0)||src==NULL||dest==NULL){return-
-(0x2e2+6606-0x1caf);}if(srcLen<=(0xc71+2278-0x1555)){dest[(0x228+2680-0xca0)]=
-(0x1881+3371-0x252c);memcpy(dest+(0x57f+5337-0x1a57),src,srcLen);printf(
+,srcLen);if(srcLen<=(0x276+2258-0xb48)||src==NULL||dest==NULL){return-
+(0x9c+9276-0x24d7);}if(srcLen<=(0x1ce9+399-0x1e76)){dest[(0x1315+2499-0x1cd8)]=
+(0x3a0+7912-0x2208);memcpy(dest+(0x2d2+4506-0x146b),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+(0x1d84+1488-0x2353));return srcLen+(0x45b+7700-0x226e);}for(i=
-(0x52b+8630-0x26e1);i<srcLen;i+=(0x6d8+6620-0x20b2)){if(src[i]!=
-(0x872+2489-0x122b)){temp=(int)(((src[i]<<(0x1e48+1896-0x25a8))&65280)|(src[i+
-(0x399+6095-0x1b67)]&(0x1516+4732-0x2693)));
-#if (0x3a5+4529-0x1556) 
-if(temp<(0xab1+2714-0x154b)){max=min+(0x1354+2133-0x1b27);break;}
+,srcLen+(0xfc6+932-0x1369));return srcLen+(0x4c7+76-0x512);}for(i=
+(0x42+2002-0x814);i<srcLen;i+=(0xe93+7-0xe98)){if(src[i]!=(0x48f+6260-0x1d03)){
+temp=(int)(((src[i]<<(0x680+1950-0xe16))&65280)|(src[i+(0x18b7+911-0x1c45)]&
+(0x1c49+1848-0x2282)));
+#if (0x750+5742-0x1dbe) 
+if(temp<(0x1865+1112-0x1cbd)){max=min+(0x300+3756-0x112a);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)<(0x12af+1900-0x199a)){if((unsigned char)(min&
-(0x366+3361-0x1007))==(unsigned char)(max&(0x608+6351-0x1e57))){dest[
-(0x6a7+6745-0x20ff)]=(unsigned char)(srcLen/(0xb2c+5477-0x208f));dest[
-(0xdbc+1677-0x1449)]=(unsigned char)(0x29c+8301-0x2288);min=(int)(min&32640);
-dest[(0x172a+3076-0x232c)]=(unsigned char)((min>>(0xfd5+1767-0x16b5))&
-(0xe5b+735-0x103b));outOff=(0xf7+7909-0x1fd9);printf(
+,min,max);if((max-min)<(0x109a+4797-0x22d6)){if((unsigned char)(min&
+(0x10e6+832-0x13a6))==(unsigned char)(max&(0x664+52-0x618))){dest[
+(0x1084+5233-0x24f4)]=(unsigned char)(srcLen/(0xe74+1887-0x15d1));dest[
+(0x114d+5137-0x255e)]=(unsigned char)(0x3a2+3526-0x10e7);min=(int)(min&32640);
+dest[(0xa3d+2268-0x1317)]=(unsigned char)((min>>(0x1348+2770-0x1e13))&
+(0x1cda+660-0x1e6f));outOff=(0x22f+8799-0x248b);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[(0x1330+2748-0x1deb)]=(unsigned char)(srcLen/(0x2a1+3395-0xfe2));
-dest[(0xf62+6034-0x26f4)]=(unsigned char)(0x45f+4066-0x13bf);dest[
-(0x157c+4202-0x25e4)]=(unsigned char)((min>>(0x1226+3024-0x1dee))&
-(0x1d09+482-0x1dec));dest[(0x1062+3392-0x1d9f)]=(unsigned char)(min&
-(0xb90+6500-0x23f5));outOff=(0x24c1+58-0x24f7);printf(
+);}else{dest[(0x468+8166-0x244d)]=(unsigned char)(srcLen/(0x1580+2041-0x1d77));
+dest[(0x10f5+4076-0x20e1)]=(unsigned char)(0x711+4536-0x1847);dest[
+(0x1b63+2123-0x23ac)]=(unsigned char)((min>>(0x1352+4059-0x2325))&
+(0x269+2673-0xbdb));dest[(0x15ba+285-0x16d4)]=(unsigned char)(min&
+(0xb2d+5141-0x1e43));outOff=(0x4a9+2351-0xdd4);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=(0x9c5+4335-0x1ab4);i<srcLen;i+=(0x1565+4059-0x253e)){if(src[i]==
-(0xa03+803-0xd26)){dest[outOff]=(unsigned char)(src[i+(0x217a+496-0x2369)]&
-(0x4d3+4166-0x149a));}else{temp=(int)((((src[i]<<(0xe0d+3850-0x1d0f))&65280)|(
-src[i+(0xa2f+6351-0x22fd)]&(0xb68+2925-0x15d6)))-min);dest[outOff]=(unsigned 
-char)(temp|(0x1b8b+2015-0x22ea));}outOff++;}printf(
+);}for(i=(0x457+2079-0xc76);i<srcLen;i+=(0x18dd+781-0x1be8)){if(src[i]==
+(0x82c+4963-0x1b8f)){dest[outOff]=(unsigned char)(src[i+(0x1d46+2491-0x2700)]&
+(0x850+6131-0x1fc4));}else{temp=(int)((((src[i]<<(0x9cc+7437-0x26d1))&65280)|(
+src[i+(0xa07+3264-0x16c6)]&(0x7c4+44-0x6f1)))-min);dest[outOff]=(unsigned char)(
+temp|(0x62d+7056-0x213d));}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[(0x27d+8002-0x21bf)]=
-(0x84b+2293-0x10c0);memcpy(dest+(0x574+7969-0x2494),src,srcLen);printf(
+,outOff,outOff,dest[outOff]);return outOff;}dest[(0xbd0+958-0xf8e)]=
+(0x258+5640-0x17e0);memcpy(dest+(0x1afc+2003-0x22ce),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+(0x22ef+10-0x22f8));return srcLen+(0xac1+6748-0x251c);}int 
+,srcLen+(0x1983+221-0x1a5f));return srcLen+(0x1a93+1382-0x1ff8);}int 
 atPb_GetU80Code(const UINT8*srcCode,UINT32 srcCodeLen,UINT8*destCode,UINT32 
 destCodeLen){assert(destCode!=NULL&&srcCode!=NULL);if(srcCodeLen==
-(0x2a2+2992-0xe52)||destCodeLen==(0x154+9034-0x249e)||destCodeLen<srcCodeLen){
-return-(0x25d+6229-0x1ab1);}memset(destCode,(0x1533+1389-0x1aa0),destCodeLen);
-destCode[(0x10d7+5150-0x24f5)]=(0x1980+580-0x1b44);printf(
+(0x46f+2280-0xd57)||destCodeLen==(0x182a+1463-0x1de1)||destCodeLen<srcCodeLen){
+return-(0x118f+1843-0x18c1);}memset(destCode,(0x1197+606-0x13f5),destCodeLen);
+destCode[(0x1101+1710-0x17af)]=(0xec+828-0x3a8);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[(0x2012+1732-0x26d6)]);switch(srcCode[(0x18ab+1484-0x1e77)]){case
-(0xddd+5632-0x235d):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}case
-(0x199b+804-0x1c3e):{atPb_CvtU81ToU80(srcCode+(0x1581+4312-0x2658),srcCodeLen-
-(0x52a+822-0x85f),destCode+(0x2421+343-0x2577),destCodeLen-(0xd34+3850-0x1c3d));
-return srcCode[(0x10bf+4125-0x20db)]*(0x1d92+1503-0x236f)+(0x82b+4594-0x1a1c);}
-case(0xacf+7237-0x2692):{atPb_CvtU82ToU80(srcCode+(0xdbd+1165-0x1249),srcCodeLen
--(0x90c+3362-0x162d),destCode+(0x459+2295-0xd4f),destCodeLen-(0x2078+863-0x23d6)
-);return srcCode[(0x1787+3067-0x2381)]*(0x106b+1549-0x1676)+(0x9e8+5560-0x1f9f);
-}default:{return-(0x10b6+4564-0x2289);}}}BOOL atPb_CvtU82ToU80(const UINT8*
-srcData,UINT32 srcLen,UINT8*destData,UINT32 destLen){UINT8 chNum=
-(0xa16+5107-0x1e09);UINT16 basePointer=(0x1a7+7034-0x1d21);UINT8 iCurChar=
-(0x1125+5108-0x2519);UINT32 iCurSrc=(0xe86+3940-0x1dea);chNum=(UINT32)srcData[
-(0x780+4174-0x17ce)];basePointer=(UINT16)srcData[(0x1315+3900-0x2250)];
-basePointer=basePointer<<(0xd20+5685-0x234d);basePointer=basePointer+srcData[
-(0x129d+3149-0x1ee8)];if(chNum*(0x155+6153-0x195c)>destLen){return FALSE;}for(
-iCurSrc=(0x112b+5096-0x2510);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++
-){UINT8*curDest=destData+(0x5bd+5249-0x1a3c)*iCurChar;atPb_CvtChCode(basePointer
-,srcData[iCurSrc],curDest,curDest+(0x14d5+4425-0x261d));}return TRUE;}BOOL 
-atPb_CvtU81ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32 destLen
-){UINT8 chNum=(0xecf+4685-0x211c);UINT16 basePointer=(0x129a+2396-0x1bf6);UINT8 
-iCurChar=(0x990+5736-0x1ff8);UINT32 iCurSrc=(0x139d+2734-0x1e4b);chNum=srcData[
-(0x1c10+1902-0x237e)];basePointer=((UINT16)srcData[(0x210+2912-0xd6f)])<<
-(0xf9+1476-0x6b6);if(chNum*(0x420+8102-0x23c4)>destLen){return FALSE;}for(
-iCurSrc=(0x328+1789-0xa23);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++){
-UINT8*curDest=destData+(0x2bd+2948-0xe3f)*iCurChar;atPb_CvtChCode(basePointer,
-srcData[iCurSrc],curDest,curDest+(0xec3+2058-0x16cc));}return TRUE;}VOID 
-atPb_CvtChCode(UINT16 basePointer,UINT8 srcData,UINT8*chMsb,UINT8*chLsb){UINT16 
-curChar=(0x3e9+8601-0x2582);assert(chMsb!=NULL&&chLsb!=NULL);if((srcData&
-(0x115a+5391-0x25e9))==(0x26c+4344-0x1364)){curChar=srcData;}else{curChar=
-basePointer+(srcData&(0x939+4934-0x1c00));}*chMsb=(UINT8)(curChar>>
-(0x20f9+1144-0x2569));*chLsb=(UINT8)((curChar<<(0xf35+5957-0x2672))>>
-(0xb3+713-0x374));return;}int atPb_String2Bytes(const char*pSrc,unsigned char*
-pDst,int nSrcLength){int i=(0x1ba+1960-0x962);if(pSrc==NULL||pDst==NULL||
-nSrcLength<(0xf85+4991-0x2304)){return-(0x633+785-0x943);}for(i=
-(0x63a+916-0x9ce);i<nSrcLength;i+=(0x17b9+2311-0x20be)){if(*pSrc>=
-((char)(0xbf5+6594-0x2587))&&*pSrc<=((char)(0x1864+3582-0x2629))){*pDst=(*pSrc-
-((char)(0x925+6275-0x2178)))<<(0xbbc+2605-0x15e5);}else{*pDst=((toupper(*pSrc)-
-((char)(0x181d+745-0x1ac5)))+(0xdb6+2128-0x15fc))<<(0x640+4679-0x1883);}pSrc++;
-if(*pSrc>=((char)(0x16c9+3858-0x25ab))&&*pSrc<=((char)(0xef5+3803-0x1d97))){*
-pDst|=*pSrc-((char)(0x1c3c+1280-0x210c));}else{*pDst|=(toupper(*pSrc)-
-((char)(0xaa9+6975-0x25a7)))+(0xcc3+3353-0x19d2);}pSrc++;pDst++;}return 
-nSrcLength/(0x47f+3588-0x1281);}int atPb_Bytes2String(const unsigned char*pSrc,
+,srcCode[(0xe16+4988-0x2192)]);switch(srcCode[(0x866+6410-0x2170)]){case
+(0x16d7+2198-0x1eed):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}
+case(0x16a+6088-0x18b1):{atPb_CvtU81ToU80(srcCode+(0x3cf+3657-0x1217),srcCodeLen
+-(0x12bb+4186-0x2314),destCode+(0x18c3+410-0x1a5c),destCodeLen-
+(0xa4f+1648-0x10be));return srcCode[(0x2e6+2570-0xcef)]*(0x19a0+3232-0x263e)+
+(0x16a8+423-0x184e);}case(0x1c02+1603-0x21c3):{atPb_CvtU82ToU80(srcCode+
+(0xecb+2344-0x17f2),srcCodeLen-(0x13e2+2464-0x1d81),destCode+(0xd3a+6325-0x25ee)
+,destCodeLen-(0xb46+3719-0x19cc));return srcCode[(0x13b9+446-0x1576)]*
+(0x10aa+1858-0x17ea)+(0x15a4+1684-0x1c37);}default:{return-(0x263c+82-0x268d);}}
+}BOOL atPb_CvtU82ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32 
+destLen){UINT8 chNum=(0xfd1+5604-0x25b5);UINT16 basePointer=(0xaac+1135-0xf1b);
+UINT8 iCurChar=(0xfd9+1503-0x15b8);UINT32 iCurSrc=(0x712+6451-0x2045);chNum=(
+UINT32)srcData[(0xcd2+3697-0x1b43)];basePointer=(UINT16)srcData[
+(0x66b+2308-0xf6e)];basePointer=basePointer<<(0x1b36+7-0x1b35);basePointer=
+basePointer+srcData[(0x13d5+4014-0x2381)];if(chNum*(0x11c2+230-0x12a6)>destLen){
+return FALSE;}for(iCurSrc=(0x1544+3271-0x2208);iCurSrc<srcLen&&iCurChar<chNum;
+iCurSrc++,iCurChar++){UINT8*curDest=destData+(0x2100+1293-0x260b)*iCurChar;
+atPb_CvtChCode(basePointer,srcData[iCurSrc],curDest,curDest+(0x1f7+8748-0x2422))
+;}return TRUE;}BOOL atPb_CvtU81ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*
+destData,UINT32 destLen){UINT8 chNum=(0x1f73+522-0x217d);UINT16 basePointer=
+(0x743+2184-0xfcb);UINT8 iCurChar=(0xaef+7013-0x2654);UINT32 iCurSrc=
+(0x1c10+1174-0x20a6);chNum=srcData[(0x4c+1257-0x535)];basePointer=((UINT16)
+srcData[(0xbf2+4985-0x1f6a)])<<(0x16ea+3207-0x236a);if(chNum*
+(0x1111+3674-0x1f69)>destLen){return FALSE;}for(iCurSrc=(0x2ff+395-0x488);
+iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++){UINT8*curDest=destData+
+(0xd18+3294-0x19f4)*iCurChar;atPb_CvtChCode(basePointer,srcData[iCurSrc],curDest
+,curDest+(0x189a+2885-0x23de));}return TRUE;}VOID atPb_CvtChCode(UINT16 
+basePointer,UINT8 srcData,UINT8*chMsb,UINT8*chLsb){UINT16 curChar=
+(0xb42+5949-0x227f);assert(chMsb!=NULL&&chLsb!=NULL);if((srcData&
+(0x1a19+2369-0x22da))==(0x829+2333-0x1146)){curChar=srcData;}else{curChar=
+basePointer+(srcData&(0x699+3227-0x12b5));}*chMsb=(UINT8)(curChar>>
+(0x4c7+6715-0x1efa));*chLsb=(UINT8)((curChar<<(0x158b+2715-0x201e))>>
+(0x192+9495-0x26a1));return;}int atPb_String2Bytes(const char*pSrc,unsigned char
+*pDst,int nSrcLength){int i=(0x1b03+252-0x1bff);if(pSrc==NULL||pDst==NULL||
+nSrcLength<(0xb83+1178-0x101d)){return-(0x709+2483-0x10bb);}for(i=
+(0x333+6446-0x1c61);i<nSrcLength;i+=(0xfe0+5512-0x2566)){if(*pSrc>=
+((char)(0xbdc+6651-0x25a7))&&*pSrc<=((char)(0x103a+2362-0x193b))){*pDst=(*pSrc-
+((char)(0x735+1803-0xe10)))<<(0x739+274-0x847);}else{*pDst=((toupper(*pSrc)-
+((char)(0x49+6951-0x1b2f)))+(0x13a+1567-0x74f))<<(0x128d+5180-0x26c5);}pSrc++;if
+(*pSrc>=((char)(0x9d1+2731-0x144c))&&*pSrc<=((char)(0x431+7300-0x207c))){*pDst|=
+*pSrc-((char)(0xdb8+2622-0x17c6));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x1afd+2825-0x25c5)))+(0x10ad+3915-0x1fee);}pSrc++;pDst++;}return 
+nSrcLength/(0x1bb7+465-0x1d86);}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=
-(0x2b7+4211-0x132a);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1838+2404-0x219c)){
-return-(0x18cb+1118-0x1d28);}for(i=(0x11bf+723-0x1492);i<nSrcLength;i++){*pDst++
-=tab[*pSrc>>(0x18f+534-0x3a1)];*pDst++=tab[*pSrc&(0x19a4+1002-0x1d7f)];pSrc++;}*
-pDst='\0';return nSrcLength*(0x8a4+4567-0x1a79);}static VOID atPb_WebRecodeShow(
-T_zPb_WebContact const*pFromweb){slog(PB_PRINT,SLOG_DEBUG,
+(0xcdd+6198-0x2513);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x7b0+7737-0x25e9)){
+return-(0xc84+6383-0x2572);}for(i=(0x1174+2259-0x1a47);i<nSrcLength;i++){*pDst++
+=tab[*pSrc>>(0x13d2+4164-0x2412)];*pDst++=tab[*pSrc&(0x1aef+2940-0x265c)];pSrc++
+;}*pDst='\0';return nSrcLength*(0x1071+4330-0x2159);}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",
@@ -202,20 +201,20 @@
 ){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[
-(0x2672+165-0x2703)]={(0x9d5+429-0xb82)};if(strncmp(cpbsInd->locType,"\x53\x4d",
-(0x536+5852-0x1c10))==(0x2c6+6425-0x1bdf)){(VOID)snprintf(resInfo,
-(0x1a7d+528-0x1c79),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
-NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0xa02+586-0xc4c),(0xdc3+5417-0x22d8))
-;(VOID)snprintf(resInfo,(0x1017+2954-0x1b8d),"\x25\x64",cpbsInd->totalEntries);(
-VOID)sc_cfg_set(NV_PB_TOTALENTRIES,resInfo);g_zPb_SimIndex[(0x2d9+7887-0x21a8)]=
-(UINT32)(cpbsInd->totalEntries);}else{printf(
+(0x1378+2807-0x1e5b)]={(0x1ced+2360-0x2625)};if(strncmp(cpbsInd->locType,
+"\x53\x4d",(0x14fc+2183-0x1d81))==(0x80+9432-0x2558)){(VOID)snprintf(resInfo,
+(0xb24+6066-0x22c2),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
+NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x4b5+2861-0xfe2),(0xe72+4005-0x1e03)
+);(VOID)snprintf(resInfo,(0x289+5683-0x18a8),"\x25\x64",cpbsInd->totalEntries);(
+VOID)sc_cfg_set(NV_PB_TOTALENTRIES,resInfo);g_zPb_SimIndex[(0x1137+2838-0x1c4d)]
+=(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[(0x804+1287-0xd01)]={(0x5d2+1363-0xb25)};assert(
-pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0x561+5020-0x18f3),"\x25\x64",
+UINT32 len){char converted[(0x370+5121-0x1767)]={(0xe0c+2034-0x15fe)};assert(
+pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0xba7+2703-0x162c),"\x25\x64",
 len);(VOID)sc_cfg_set(pbNvKeyWord,converted);}VOID atPb_ScpbrTestRsp(
-T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0xb25+2049-0x1326)};
-CHAR pbUsed[(0x830+4191-0x185d)]={(0xb30+4176-0x1b80)};sc_cfg_get(
+T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0xf46+3422-0x1ca4)};
+CHAR pbUsed[(0xe39+4646-0x202d)]={(0x11ef+93-0x124c)};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.
@@ -224,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=(0x578+7550-0x22f6);int max=(0x1628+570-0x1862);int res=
-(0x1867+2110-0x20a5);int index=(0x615+7034-0x218f);CHAR pbMin[
-(0xb47+4676-0x1d59)]={(0x10a2+2381-0x19ef)};CHAR pbMax[(0x153f+3863-0x2424)]={
-(0x13a+3065-0xd33)};int indexmin=(0x596+6290-0x1e28);int indexmax=
-(0x65a+2727-0x1101);T_zPb_ScpbrReadRes scpbrReadInfo={(0x349+6910-0x1e47)};
-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")==(0x67a+6481-0x1fcb)||strcmp(pbMax,"\x30")
-==(0x1e74+1333-0x23a9)){sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);printf(
+ min=(0x187+5060-0x154b);int max=(0x1c6+1904-0x936);int res=(0x2096+112-0x2106);
+int index=(0xd4c+1170-0x11de);CHAR pbMin[(0x24f+6402-0x1b1f)]={
+(0x407+2840-0xf1f)};CHAR pbMax[(0xb16+5006-0x1e72)]={(0x11e1+2744-0x1c99)};int 
+indexmin=(0x831+6037-0x1fc6);int indexmax=(0x82+2589-0xa9f);T_zPb_ScpbrReadRes 
+scpbrReadInfo={(0x59a+8122-0x2554)};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")==(0x2186+580-0x23ca)||strcmp(
+pbMax,"\x30")==(0xbe4+4976-0x1f54)){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-(0x2bb+6268-0x1b36);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
-"\x25\x64",&max);if((min<(0x8c+7596-0x1e38)||min>INT_MAX-(0x21a9+244-0x229c))||(
-max<(0x11ff+5373-0x26fc)||max>INT_MAX-(0x1187+2443-0x1b11))){printf(
+);return-(0xe4d+1602-0x148e);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
+"\x25\x64",&max);if((min<(0x5c5+2787-0x10a8)||min>INT_MAX-(0x990+4769-0x1c30))||
+(max<(0x1105+90-0x115f)||max>INT_MAX-(0x7f5+7433-0x24fd))){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-(0x561+2642-0xfb2);}while((0x830+6605-0x21fc)){if(indexmin<min)
-{indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0x18d9+3035-0x24b3);if(
+,min,max);return-(0x1b65+2888-0x26ac);}while((0xd4a+5198-0x2197)){if(indexmin<
+min){indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0xfb9+5051-0x2373);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,18 +249,18 @@
 "\x5b\x50\x42\x5d\x20\x32\x32\x32\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);}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,(0xaf1+303-0xc20))
-;sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-(0x2232+827-0x256c)){break;}}
-return g_PbOptRsp.result;}
-#if (0x5e9+3236-0x128d)

+MSG_CMD_READ_PB_REQ,sizeof(T_zPb_ScpbrReadRes),&scpbrReadInfo,
+(0x9bb+2894-0x1509));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-
+(0x190b+257-0x1a0b)){break;}}return g_PbOptRsp.result;}
+#if (0xf04+3680-0x1d64)

 int atPb_SendScpbrSet(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){UINT32 
-indexmin=(0x1424+2869-0x1f59);UINT32 indexmax=(0x126a+1247-0x1749);CHAR atcmdMsg
-[(0x1809+889-0x1b3c)]={(0x31c+2762-0xde6)};int res=(0x970+2035-0x1163);CHAR 
-pbMin[(0xdc2+1574-0x13b6)]={(0x70f+5465-0x1c68)};CHAR pbMax[(0xc11+1262-0x10cd)]
-={(0xfa2+5218-0x2404)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
+indexmin=(0x258+7181-0x1e65);UINT32 indexmax=(0x934+5904-0x2044);CHAR atcmdMsg[
+(0x6bc+1768-0xd5e)]={(0x282+575-0x4c1)};int res=(0x10db+3301-0x1dc0);CHAR pbMin[
+(0x7c6+5486-0x1d02)]={(0x20ff+519-0x2306)};CHAR pbMax[(0xc03+6637-0x25be)]={
+(0x3f3+5144-0x180b)};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")==(0xf5f+3244-0x1c0b)||strcmp(pbMax,"\x30")
-==(0x3da+1969-0xb8b)){printf(
+,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0x190+8345-0x2229)||strcmp(pbMax,"\x30")
+==(0x17d+6525-0x1afa)){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),
@@ -270,46 +269,46 @@
 atcmdMsg,cid,pAtRst,atRstSize);pthread_mutex_unlock(&smsdb_mutex);return res;}
 #endif

 UINT8 atPb_EncodeText(CHAR*pbDst,CHAR const*pbTextSrc,UINT32 dstLen){UINT8 i=
-(0xbcf+3817-0x1ab8);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0xd63+3499-0x1b0e)};if
-(pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0x224+5696-0x1860)+
-ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0xa3b+3623-0x1862)],
-sizeof(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0x1601+3991-0x2598)
-;(i<strlen(pbTextSrc))&&(i*(0x1051+4985-0x23c6)+ZPB_UCS2_PREFIX_LEN<dstLen);i++)
-{snprintf(strTarget+i*(0xad8+866-0xe36)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i*
-(0x1b88+1331-0x20b7)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i]
-);}strncpy(pbDst,strTarget,dstLen-(0x1b8f+572-0x1dca));return ZUFI_SUCC;}}return
- ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){T_zPb_WebContact 
-pbRecord={(0x79a+3309-0x1487)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
-(0x3f8+8646-0x25be)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0x23eb+328-0x2533)};int 
-text_len=(0x1e00+692-0x20b4);int tmp_len=(0x9a3+7060-0x2537);CHAR tmp[
-ZPB_TEXT_SIZE_BYTES]={(0x4d0+2335-0xdef)};if(atRes->coding!=ZPB_UCS2){if(
+(0x988+4762-0x1c22);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x1307+2705-0x1d98)};
+if(pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0x1656+2046-0x1e50)+
+ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0x4d3+745-0x7bc)],sizeof
+(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0x1294+2559-0x1c93);(i<
+strlen(pbTextSrc))&&(i*(0xa40+1524-0x1030)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
+snprintf(strTarget+i*(0x1732+3077-0x2333)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-
+i*(0x8af+5565-0x1e68)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i
+]);}strncpy(pbDst,strTarget,dstLen-(0x11c4+2447-0x1b52));return ZUFI_SUCC;}}
+return ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){
+T_zPb_WebContact pbRecord={(0x2c7+2091-0xaf2)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
+(0x1290+4989-0x260d)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0x16c+466-0x33e)};int 
+text_len=(0xb39+2237-0x13f6);int tmp_len=(0x17cb+3172-0x242f);CHAR tmp[
+ZPB_TEXT_SIZE_BYTES]={(0x11e5+1181-0x1682)};if(atRes->coding!=ZPB_UCS2){if(
 atPb_EncodeText(pbDst,atRes->text,ZPB_TEXT_SIZE_BYTES)==ZUFI_SUCC){strncpy(atRes
-->text,pbDst+(0x16a9+1552-0x1cb7),sizeof(atRes->text)-(0x154a+3418-0x22a3));}
-else{slog(PB_PRINT,SLOG_ERR,
+->text,pbDst+(0x107+4175-0x1154),sizeof(atRes->text)-(0x19f+4151-0x11d5));}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<
-(0x9ed+4942-0x1d3b))return;memset(&text,(0xe86+5747-0x24f9),ZPB_TEXT_SIZE_BYTES)
-;text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>(0x19fa+1009-0x1de9)
-){memset(&atRes->text,(0x6eb+2857-0x1214),ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->
-text,text+(0x347+7888-0x2215),strlen(text)-(0x6b6+2101-0xee9));}}pbRecord.pbId=-
-(0x7fd+6108-0x1fd8);pbRecord.pbIndex=(SINT32)atRes->index;strncpy(pbRecord.name,
-atRes->text,sizeof(pbRecord.name)-(0x1ac+1634-0x80d));strncpy(pbRecord.
-mobilNumber,atRes->number1,sizeof(pbRecord.mobilNumber)-(0x1ad3+2316-0x23de));
+(0x105+5773-0x1792))return;memset(&text,(0x1675+4084-0x2669),ZPB_TEXT_SIZE_BYTES
+);text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>(0x2350+684-0x25fa)
+){memset(&atRes->text,(0x461+7416-0x2159),ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->
+text,text+(0x1ed1+1319-0x23f6),strlen(text)-(0x10ff+4365-0x220a));}}pbRecord.
+pbId=-(0xae9+3172-0x174c);pbRecord.pbIndex=(SINT32)atRes->index;strncpy(pbRecord
+.name,atRes->text,sizeof(pbRecord.name)-(0xd31+6602-0x26fa));strncpy(pbRecord.
+mobilNumber,atRes->number1,sizeof(pbRecord.mobilNumber)-(0xf36+4076-0x1f21));
 strncpy(pbRecord.officeNumber,atRes->number2,sizeof(pbRecord.officeNumber)-
-(0x17cb+3416-0x2522));strncpy(pbRecord.homeNumber,atRes->number3,sizeof(pbRecord
-.homeNumber)-(0x9f+783-0x3ad));strncpy(pbRecord.email,atRes->email,sizeof(
-pbRecord.email)-(0xc6+1685-0x75a));pbRecord.pbLocation=ZPB_LOCATION_USIM;(VOID)
-atPb_LoadARecToPbmTable(&pbRecord);}VOID atPb_SetDelStatusMultOrAll(){if(
-g_zPb_DelStatusUsim.dealFailNum>(0x217a+388-0x22fe)){if(g_zPb_DelStatusUsim.
-dealSuccNum>(0xca4+3123-0x18d7)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
+(0xb88+7042-0x2709));strncpy(pbRecord.homeNumber,atRes->number3,sizeof(pbRecord.
+homeNumber)-(0x6c2+7034-0x223b));strncpy(pbRecord.email,atRes->email,sizeof(
+pbRecord.email)-(0x709+3122-0x133a));pbRecord.pbLocation=ZPB_LOCATION_USIM;(VOID
+)atPb_LoadARecToPbmTable(&pbRecord);}VOID atPb_SetDelStatusMultOrAll(){if(
+g_zPb_DelStatusUsim.dealFailNum>(0xe1+6907-0x1bdc)){if(g_zPb_DelStatusUsim.
+dealSuccNum>(0x14a0+1131-0x190b)){(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 (0x421+5641-0x1a2a)

+#if (0x358+1140-0x7cc)

 VOID atPb_RecvScpbwAddErr(UINT8*pErrCode){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
-ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x120d+2988-0x1db7)
-)==(0x15e7+1068-0x1a13))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73")
-;printf(
+ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0xe9+7006-0x1c45))
+==(0x2e7+537-0x500))){(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(
 "\x70\x62\x3a\x52\x65\x63\x76\x20\x41\x74\x20\x53\x63\x70\x62\x77\x20\x61\x64\x64\x20\x45\x72\x72\x2e" "\n"
@@ -319,84 +318,84 @@
 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=(0x1bc8+2420-0x253c);UINT8 iTemp=(0xca9+150-0xd3f);SINT32 i=
-(0x1a7b+1445-0x2020);if((NULL==pcHex)||(NULL==pcASC)||((0x5ca+5548-0x1b76)==
-iDstLen)||(iDstLen<(iSrcLen/(0x3cf+5937-0x1afe)+(0x900+5254-0x1d85)))){return;}
-for(i=(0x994+2957-0x1521);i<iSrcLen;i++){if(iOddOrEven%(0x50d+4090-0x1505)==
-(0x7cf+5583-0x1d9e)){iTemp=*(pcASC+i);if((iTemp>=((char)(0x1397+2639-0x1db6)))&&
-(iTemp<=((char)(0x120+1321-0x610)))){*(pcHex+i/(0x9b3+1014-0xda7))|=(UINT8)(
-iTemp-(0x868+5942-0x1f6e))<<(0x12c8+2633-0x1d0d);}else{*(pcHex+i/
-(0x18b+4338-0x127b))|=(UINT8)(iTemp-(0xc81+1139-0x10bd))<<(0x9c+6807-0x1b2f);}}
-else{iTemp=*(pcASC+i);if((iTemp>=((char)(0x1312+1277-0x17df)))&&(iTemp<=
-((char)(0xa5f+2109-0x1263)))){*(pcHex+i/(0x489+139-0x512))|=iTemp-
-(0xab1+1428-0x1015);}else{*(pcHex+i/(0x1ab1+397-0x1c3c))|=iTemp-
-(0xbf+6619-0x1a63);}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,
-SINT32 iLength){int iRetVal=(0xd56+2847-0x1874);char cTemp;int i=
-(0x1adc+338-0x1c2e);if(NULL==psUcs2){return-(0x568+288-0x687);}for(i=
-(0x850+6082-0x2012);i<iLength;i++){if((0xeac+4281-0x1e65)>psUcs2[i]){switch(
-psUcs2[i]){case(0x5f2+680-0x88e):case(0x799+386-0x8c0):case(0x7da+4620-0x198a):
-case(0x1e78+2215-0x26c2):case(0x48b+8651-0x25f8):case(0x7e8+1104-0xbbd):case
-(0x2126+1097-0x24f3):case(0x1aa7+2060-0x2236):case(0x1fa0+1578-0x254c):case
-(0x1b3f+2077-0x22b8):case(0xb9b+4002-0x1b1d):{break;}default:{cTemp=(char)
-G_ZPB_NEWUCS2TOGSM[psUcs2[i]];if(ZPB_NON_GSM==cTemp){iRetVal=(0x302+5552-0x18b2)
-;}break;}}}else{switch(psUcs2[i]){case(0x1c0c+929-0x1c19):case
-(0x14db+4867-0x2438):case(0x20d3+198-0x1e06):case(0x53f+4340-0x1298):case
-(0x615+2380-0xbb8):case(0x1d62+70-0x1a08):case(0x78f+5955-0x1b0a):case
-(0xe40+3577-0x1896):case(0x1e90+599-0x1d2f):case(0x3d5+3910-0xf7d):{break;}
-default:{iRetVal=(0x812+3262-0x14d0);break;}}}if((0xd03+5694-0x2341)==iRetVal){
-break;}}return iRetVal;}static UINT8 atPb_EncodeNameToUcs2(char*pbDst,UINT32 
-iDstLen,char const*pbSrc){UINT16 acHex[(0x108b+527-0x119a)]={(0x4ea+6352-0x1dba)
-};SINT32 srclen=(0xe67+6101-0x263c);SINT32 rest=(0x2307+575-0x2546);assert(pbDst
-!=NULL&&pbSrc!=NULL);srclen=(SINT32)strlen(pbSrc);slog(PB_PRINT,SLOG_DEBUG,
+){UINT32 iOddOrEven=(0x16bb+90-0x1715);UINT8 iTemp=(0x1421+1206-0x18d7);SINT32 i
+=(0xec1+2586-0x18db);if((NULL==pcHex)||(NULL==pcASC)||((0x93+8936-0x237b)==
+iDstLen)||(iDstLen<(iSrcLen/(0x32f+6535-0x1cb4)+(0xc10+169-0xcb8)))){return;}for
+(i=(0x1997+2502-0x235d);i<iSrcLen;i++){if(iOddOrEven%(0x102a+142-0x10b6)==
+(0x10cd+4536-0x2285)){iTemp=*(pcASC+i);if((iTemp>=((char)(0xca1+1428-0x1205)))&&
+(iTemp<=((char)(0x12f0+3323-0x1fb2)))){*(pcHex+i/(0x2471+361-0x25d8))|=(UINT8)(
+iTemp-(0x883+5126-0x1c59))<<(0x1264+2804-0x1d54);}else{*(pcHex+i/
+(0xbad+2168-0x1423))|=(UINT8)(iTemp-(0x1a03+1887-0x212b))<<(0x15e6+1160-0x1a6a);
+}}else{iTemp=*(pcASC+i);if((iTemp>=((char)(0xbc2+6437-0x24b7)))&&(iTemp<=
+((char)(0x75f+116-0x79a)))){*(pcHex+i/(0x11d3+4338-0x22c3))|=iTemp-
+(0x14c1+4627-0x26a4);}else{*(pcHex+i/(0x822+3844-0x1724))|=iTemp-
+(0x741+3915-0x1655);}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,
+SINT32 iLength){int iRetVal=(0x4f3+2321-0xe03);char cTemp;int i=
+(0x121d+2685-0x1c9a);if(NULL==psUcs2){return-(0xfec+3168-0x1c4b);}for(i=
+(0x32c+820-0x660);i<iLength;i++){if((0x2d7+5511-0x175e)>psUcs2[i]){switch(psUcs2
+[i]){case(0x1c2+3501-0xf63):case(0x3d8+2477-0xd2a):case(0xc16+3448-0x1932):case
+(0x1474+4175-0x2466):case(0x191+9624-0x26cb):case(0xec9+1491-0x1421):case
+(0xdef+1026-0x1175):case(0x1f60+1129-0x234c):case(0x937+1771-0xfa4):case
+(0xc4a+3193-0x181f):case(0x114f+555-0x135a):{break;}default:{cTemp=(char)
+G_ZPB_NEWUCS2TOGSM[psUcs2[i]];if(ZPB_NON_GSM==cTemp){iRetVal=(0x39d+2950-0xf23);
+}break;}}}else{switch(psUcs2[i]){case(0x15d3+229-0x1324):case(0x588+1672-0x86a):
+case(0x105f+5765-0x2351):case(0x1f62+1072-0x1ff7):case(0x3d5+7914-0x1f16):case
+(0x598+512-0x3f8):case(0x7c5+564-0x631):case(0xbd0+439-0x9e4):case
+(0x1595+1726-0x189b):case(0x17d2+1445-0x19d9):{break;}default:{iRetVal=
+(0x3b7+3084-0xfc3);break;}}}if((0x7b1+7737-0x25ea)==iRetVal){break;}}return 
+iRetVal;}static UINT8 atPb_EncodeNameToUcs2(char*pbDst,UINT32 iDstLen,char const
+*pbSrc){UINT16 acHex[(0x17d6+1091-0x1b19)]={(0x1be9+1363-0x213c)};SINT32 srclen=
+(0x442+2284-0xd2e);SINT32 rest=(0xc27+3538-0x19f9);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,(0xa24+144-0x9b4),(UINT8*)pbSrc,srclen);rest=
-atPb_IfUcs2IsSMS7(acHex,srclen/(0xb74+6339-0x2433));if(rest==(0x787+7120-0x2356)
-){return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest==
-(0x1c75+2134-0x24cb)){if(strlen(pbSrc)+(0x2fc+8481-0x241b)<iDstLen){memcpy(pbDst
-,"\x38\x30",(0x1b19+2361-0x2450));memcpy(pbDst+(0xd3+8109-0x207e),pbSrc,srclen);
-return ZUFI_SUCC;}}return ZUFI_FAIL;}SINT32 atPb_FindIdleIndex(T_zPb_WebContact 
-const*pbRecv,BOOL pbNewFlag){SINT32 count=(0x1814+67-0x1856);SINT32 total=
-(0xf55+5590-0x252b);SINT32*IndexType=NULL;if((NULL==pbRecv)){slog(PB_PRINT,
+,pbSrc,srclen);pb_AsctoHex(acHex,(0x1deb+13-0x1cf8),(UINT8*)pbSrc,srclen);rest=
+atPb_IfUcs2IsSMS7(acHex,srclen/(0x25c+2587-0xc73));if(rest==(0x8b3+366-0xa20)){
+return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest==(0xf43+3446-0x1cb9)){
+if(strlen(pbSrc)+(0x17a+6710-0x1bae)<iDstLen){memcpy(pbDst,"\x38\x30",
+(0x998+6271-0x2215));memcpy(pbDst+(0x12f1+1833-0x1a18),pbSrc,srclen);return 
+ZUFI_SUCC;}}return ZUFI_FAIL;}SINT32 atPb_FindIdleIndex(T_zPb_WebContact const*
+pbRecv,BOOL pbNewFlag){SINT32 count=(0x314+2923-0xe7e);SINT32 total=
+(0xb1f+1665-0x11a0);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-(0x975+884-0xce8);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv->
-pbLocation){total=g_zPb_SimIndex[(0x43+2176-0x8c3)];IndexType=g_zPb_SimIndex;}
-else if(ZPB_LOCATION_AP==pbRecv->pbLocation){total=g_zPb_ApIndex[
-(0x1063+1120-0x14c3)];IndexType=g_zPb_ApIndex;}for(;count<=total;count++){if((
+);return-(0x1151+4120-0x2168);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv
+->pbLocation){total=g_zPb_SimIndex[(0x9a9+2084-0x11cd)];IndexType=g_zPb_SimIndex
+;}else if(ZPB_LOCATION_AP==pbRecv->pbLocation){total=g_zPb_ApIndex[
+(0x1b33+658-0x1dc5)];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-(0x12a+1421-0x6b6);}slog(PB_PRINT,SLOG_DEBUG,
+,count);return-(0x14a0+1098-0x18e9);}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=(0x16f0+666-0x198a);SINT32 i=
-(0x1793+3123-0x23c6);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0xc4d+101-0xcb2)};CHAR str[
-(0xa6+7159-0x1c9a)]={(0x12a9+4756-0x253d)};SINT32 length=(0x201a+900-0x239e);
-length=atPb_String2Bytes(pSrc,buf,len);for(i=(0x543+7399-0x222a);i<length;i+=
-(0xc0+3578-0xeb8)){if(buf[i]!=(0x3cb+2983-0xf72)||buf[i+(0x15e1+97-0x1641)]>
-(0x3df+2303-0xc5f)){return FALSE;}pDst[j++]=buf[i+(0xc99+2031-0x1487)];}return 
-TRUE;}VOID atWeb_AddOrModOnePbUsim(T_zPb_WebContact*pWebPbContact,BOOL pbNewFlag
-,sem_t semId){int atRes=(0x284+3749-0x1129);CHAR pbName[ZPB_TEXT_SIZE_BYTES+
-(0x355+5089-0x1733)]={(0x4a4+4021-0x1459)};CHAR buf_src[ZPB_TEXT_SIZE_BYTES+
-(0x733+6799-0x21bf)]={(0x73d+4583-0x1924)};CHAR buf_dest[ZPB_TEXT_SIZE_BYTES+
-(0x2441+355-0x25a1)]={(0x1db+1165-0x668)};T_zPb_ScpbwParam scpbwParam={
-(0x223+596-0x477)};int len=(0x640+7965-0x255d);atPb_WebRecodeShow(pWebPbContact)
-;if(atPb_GetASCII(pWebPbContact->name,pbName,strlen(pWebPbContact->name))){
-scpbwParam.coding=(0x985+6081-0x2146);}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=
-(0xd85+4476-0x1f00);}scpbwParam.pbIndex=pWebPbContact->pbIndex;strncpy(
-scpbwParam.name,pbName,sizeof(scpbwParam.name)-(0x52c+1275-0xa26));strncpy(
-scpbwParam.mobilNumber,pWebPbContact->mobilNumber,sizeof(scpbwParam.mobilNumber)
--(0x145b+358-0x15c0));strncpy(scpbwParam.officeNumber,pWebPbContact->
-officeNumber,sizeof(scpbwParam.officeNumber)-(0xb8+7279-0x1d26));strncpy(
-scpbwParam.homeNumber,pWebPbContact->homeNumber,sizeof(scpbwParam.homeNumber)-
-(0xd69+6101-0x253d));strncpy(scpbwParam.email,pWebPbContact->email,sizeof(
-scpbwParam.email)-(0xdc1+2816-0x18c0));ipc_send_message(MODULE_ID_PB,
-MODULE_ID_AT_CTL,MSG_CMD_ADD_MODIFY_PB_REQ,sizeof(T_zPb_ScpbwParam),(unsigned 
-char*)&scpbwParam,(0x15b5+1136-0x1a25));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.
-result!=(0xb9d+6124-0x2388)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);
-if(TRUE==pbNewFlag){printf(
+CHAR*pSrc,CHAR*pDst,SINT32 len){SINT32 j=(0x1055+4695-0x22ac);SINT32 i=
+(0x90f+4474-0x1a89);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0xbdc+6761-0x2645)};CHAR str
+[(0x18b2+2075-0x20ca)]={(0x7c8+4574-0x19a6)};SINT32 length=(0xce7+1658-0x1361);
+length=atPb_String2Bytes(pSrc,buf,len);for(i=(0x2340+921-0x26d9);i<length;i+=
+(0x39f+7963-0x22b8)){if(buf[i]!=(0x171c+1265-0x1c0d)||buf[i+(0x17b3+1398-0x1d28)
+]>(0x11a5+1829-0x184b)){return FALSE;}pDst[j++]=buf[i+(0xb57+3286-0x182c)];}
+return TRUE;}VOID atWeb_AddOrModOnePbUsim(T_zPb_WebContact*pWebPbContact,BOOL 
+pbNewFlag,sem_t semId){int atRes=(0xd97+4671-0x1fd6);CHAR pbName[
+ZPB_TEXT_SIZE_BYTES+(0x38a+2804-0xe7b)]={(0x1012+3178-0x1c7c)};CHAR buf_src[
+ZPB_TEXT_SIZE_BYTES+(0x1426+692-0x16d7)]={(0x14+191-0xd3)};CHAR buf_dest[
+ZPB_TEXT_SIZE_BYTES+(0xd81+144-0xe0e)]={(0x1d0b+1217-0x21cc)};T_zPb_ScpbwParam 
+scpbwParam={(0x1255+4913-0x2586)};int len=(0x154a+1364-0x1a9e);
+atPb_WebRecodeShow(pWebPbContact);if(atPb_GetASCII(pWebPbContact->name,pbName,
+strlen(pWebPbContact->name))){scpbwParam.coding=(0x1239+583-0x1480);}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=(0x12e4+1031-0x16ea);}scpbwParam.pbIndex=pWebPbContact->
+pbIndex;strncpy(scpbwParam.name,pbName,sizeof(scpbwParam.name)-
+(0x8f9+4308-0x19cc));strncpy(scpbwParam.mobilNumber,pWebPbContact->mobilNumber,
+sizeof(scpbwParam.mobilNumber)-(0xba4+4741-0x1e28));strncpy(scpbwParam.
+officeNumber,pWebPbContact->officeNumber,sizeof(scpbwParam.officeNumber)-
+(0x676+6615-0x204c));strncpy(scpbwParam.homeNumber,pWebPbContact->homeNumber,
+sizeof(scpbwParam.homeNumber)-(0xa81+3404-0x17cc));strncpy(scpbwParam.email,
+pWebPbContact->email,sizeof(scpbwParam.email)-(0x57+4780-0x1302));
+ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,MSG_CMD_ADD_MODIFY_PB_REQ,sizeof(
+T_zPb_ScpbwParam),(unsigned char*)&scpbwParam,(0xcec+1129-0x1155));sem_wait(&
+g_Pb_sem_id);if(g_PbOptRsp.result!=(0x104+4064-0x10e3)){(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(
 "\x70\x62\x3a\x6d\x6f\x64\x69\x66\x79\x20\x53\x63\x70\x62\x77\x20\x65\x72\x72\x6f\x72\x2e" "\n"
@@ -408,17 +407,17 @@
 );}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=(0x9a+6214-0x18df);T_zPb_Header pbHeader={(0x3f4+236-0x4e0)};BOOL 
-pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0x1e32+825-0x216b)};CHAR ptFlag[
-(0x1169+860-0x14b1)]={(0x144+71-0x18b)};printf(
+idleIndex=(0x161c+3002-0x21d5);T_zPb_Header pbHeader={(0x1154+811-0x147f)};BOOL 
+pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0x17c0+884-0x1b34)};CHAR ptFlag[
+(0x697+6243-0x1ee6)]={(0x43c+3352-0x1154)};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(-(0x56b+8279-0x25c1)==webPbContact->pbId){slog(PB_PRINT,
-SLOG_DEBUG,
+,webPbContact->pbId);if(-(0x1410+3328-0x210f)==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!=-(0x1616+2846-0x2133)){webPbContact->pbIndex=idleIndex
-;}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);printf(
+,idleIndex);if(idleIndex!=-(0xe94+4105-0x1e9c)){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(
 "\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x50\x62\x20\x6d\x6f\x64\x69\x66\x79\x2e" "\n"
@@ -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(
-(0x140+2640-0xb90)==strcmp("\x30",ptFlag)&&-(0x105b+5299-0x250d)!=webPbContact->
-del_id){delRecord.delId[(0x331+5897-0x1a3a)]=webPbContact->del_id;atWeb_DelOnepb
+(0x1226+992-0x1606)==strcmp("\x30",ptFlag)&&-(0x65+7840-0x1f04)!=webPbContact->
+del_id){delRecord.delId[(0x1f2+5445-0x1737)]=webPbContact->del_id;atWeb_DelOnepb
 (&delRecord,semId);}}VOID atWeb_DelOnepb(T_zPb_DelInfo*delRecord,sem_t semId){
-CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x9bd+545-0xbde)};int atRes=
-(0x230b+694-0x25c1);SINT32 delTime=(0x30b+5678-0x1939);
+CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x18cc+589-0x1b19)};int atRes=
+(0x1540+2108-0x1d7c);SINT32 delTime=(0x1c63+1727-0x2322);
 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[(0x18f1+3341-0x25fe)],delRecord->delLocation);if(
+,delRecord->delIndex[(0xdad+3565-0x1b9a)],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[(0x179c+3424-0x24ca)]={(0x1d48+832-0x2088)};
+delRecord->delLocation){CHAR pbMax[(0x208+762-0x4d0)]={(0x1555+421-0x16fa)};
 sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));if((delRecord->delIndex[
-(0x1c6+4886-0x14dc)]>=(0x109f+4749-0x232b))&&(delRecord->delIndex[
-(0x8eb+5516-0x1e77)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
+(0x210a+84-0x215e)]>=(0xe69+598-0x10be))&&(delRecord->delIndex[
+(0x164f+452-0x1813)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
 MODULE_ID_AT_CTL,MSG_CMD_DELETE_PB_REQ,sizeof(int),(unsigned char*)&delRecord->
-delIndex[(0x53+8138-0x201d)],(0x10b9+2020-0x189d));sem_wait(&g_Pb_sem_id);if(
-g_PbOptRsp.result!=(0x1701+461-0x18cd)){sc_cfg_set(ZPB_NV_WRITE_FLAG,
+delIndex[(0x122c+337-0x137d)],(0x7d2+577-0xa13));sem_wait(&g_Pb_sem_id);if(
+g_PbOptRsp.result!=(0x959+4182-0x19ae)){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]={(0x1349+3598-0x2157)};int atRes=(0xc46+5924-0x236a);
-SINT32 delCount=(0x993+2971-0x152e);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
-g_zPb_DelStatusUsim,(0x1594+2146-0x1df6),sizeof(T_zPb_DelStatusMultiOrAll));
+ZSVR_AT_RES_CODE_LEN]={(0x18c1+2206-0x215f)};int atRes=(0x9a3+6206-0x21e1);
+SINT32 delCount=(0xe66+2215-0x170d);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
+g_zPb_DelStatusUsim,(0xa97+158-0xb35),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[
-(0x2bc+2155-0xaf5)]={(0x76+3209-0xcff)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,
-sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0xcb8+4181-0x1d0c))&&(
-delRecord->delIndex[delCount]<=atoi(pbMax))){printf(
+(0x9b+40-0x91)]={(0xa4f+1236-0xf23)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof
+(pbMax));if((delRecord->delIndex[delCount]>=(0x7ba+3880-0x16e1))&&(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]
-,(0x1107+3863-0x201e));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0xf3b+4758-0x21d0)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+,(0x1673+2102-0x1ea9));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0xe7d+5309-0x2339)){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={(0x6cd+3273-0x1396)};SINT32
- i=(0x430+3400-0x1177);result=atPb_DelRecFromPbmTableByGroup(&index);if(
+T_zPb_DbResult result=ZPB_DB_OK;T_zPb_ApIndex index={(0x8b6+2065-0x10c7)};SINT32
+ i=(0x10dd+4441-0x2235);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=
-(0x3f+9695-0x261d);i<=ZPB_AP_MAX_RECORD;i++){if((0xcb6+1250-0x1198)!=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]={
-(0x1d55+1107-0x21a8)};snprintf(sql,sizeof(sql)-(0x15db+2952-0x2162),
+(0x688+438-0x83d);i<=ZPB_AP_MAX_RECORD;i++){if((0x383+1386-0x8ed)!=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]={(0x6dc+3882-0x1606)};
+snprintf(sql,sizeof(sql)-(0xb80+893-0xefc),
 "\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]={(0x2011+1-0x2012)};int atRes=
-(0xf48+3144-0x1b90);UINT32 i=(0x1d61+1865-0x24aa);CHAR sql[ZPB_MAX_BYTES_DB]={
-(0x12b6+2281-0x1b9f)};UINT32 count=(0xdab+3843-0x1cae);if(pdelRecord!=NULL){
-memset(&g_zPb_DelStatusUsim,(0x22a9+975-0x2678),sizeof(T_zPb_DelStatusMultiOrAll
+CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x83+4232-0x110b)};int atRes=
+(0x10a8+3639-0x1edf);UINT32 i=(0xa42+2140-0x129e);CHAR sql[ZPB_MAX_BYTES_DB]={
+(0x69c+5043-0x1a4f)};UINT32 count=(0x5d5+6658-0x1fd7);if(pdelRecord!=NULL){
+memset(&g_zPb_DelStatusUsim,(0xe13+3028-0x19e7),sizeof(T_zPb_DelStatusMultiOrAll
 ));g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_ALL_RECORD_USIM;snprintf(sql,sizeof(sql)
--(0xc12+1442-0x11b3),
+-(0xb4a+3522-0x190b),
 "\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((0x56c+5884-0x1c68)<count){CHAR pbMin[
-(0x167+7210-0x1d5f)]={(0xf3a+4862-0x2238)};CHAR pbMax[(0x1ee0+1820-0x25ca)]={
-(0x1599+2544-0x1f89)};UINT32 i_pbMin=(0x25a7+260-0x26ab);UINT32 i_pbMax=
-(0xcc8+5545-0x2271);sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
+atPb_DbCountTableLineCb,&count);if((0x9dd+149-0xa72)<count){CHAR pbMin[
+(0x1d1d+989-0x20c8)]={(0x5d5+7086-0x2183)};CHAR pbMax[(0x1fad+1552-0x258b)]={
+(0x485+1456-0xa35)};UINT32 i_pbMin=(0x1211+1079-0x1648);UINT32 i_pbMax=
+(0x72f+7219-0x2362);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,
-(0xaef+6524-0x246b));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0x4ea+7613-0x22a6)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+(0xef5+3027-0x1ac8));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0x140+1832-0x867)){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)-
-(0x1e10+875-0x217a),
+(0x405+3063-0xffb),
 "\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/rtc-service/rtc-service.c b/ap/app/zte_comm/rtc-service/rtc-service.c
index 481c550..f60984d 100755
--- a/ap/app/zte_comm/rtc-service/rtc-service.c
+++ b/ap/app/zte_comm/rtc-service/rtc-service.c
@@ -704,6 +704,7 @@
 	list_for_each_entry_safe(pTmp, pTmp1, &rtc_timer_list, list) {
 		buf.module = pTmp->rtc_id;
 		ipc_send_message2(MODULE_ID_RTC_SERVICE, pTmp->module_id, RTC_MSG_TIME_CHANGED, sizeof(RTC_DATA_BUF), (unsigned char*)&buf, 0);
+		if(pTmp->is_utc){
 		if (pTmp->interval + pTmp->time_val < sec) {
 			list_del(&pTmp->list);
 			slog(RTC_PRINT, SLOG_NORMAL, "rtc-service: delete  ELAPSED timer, alarm_id(%d), alarm_time(%ld).\n", pTmp->rtc_id, (pTmp->interval + pTmp->time_val));
@@ -712,6 +713,7 @@
 			pTmp->remain_time = pTmp->interval + pTmp->time_val - sec;
 			slog(RTC_PRINT, SLOG_NORMAL, "rtc-service: timer adjust, alarm_id(%d), alarm_time(%ld), remain(%ld).\n", pTmp->rtc_id, (pTmp->interval + pTmp->time_val), pTmp->remain_time);
 		}
+		}
 	}
 	alarm_restart(&rtc_timer_list);
 #else
@@ -748,12 +750,30 @@
 	ALARM_T *pTmp, *pTmp1;
 	RTC_DATA_BUF  buf = {0};
 	int wakeup = 0;
+	int ret =0;
+	enum RTC_MSG_CMD cmd = 0;
 	
 	if (rtc_list == &rtc_timer_list) {
 		list_for_each_entry_safe(pTmp, pTmp1, rtc_list, list) {
 			if (pTmp->remain_time <= 0) {
 				buf.module = pTmp->rtc_id;
-				ipc_send_message2(MODULE_ID_RTC_SERVICE, pTmp->module_id, RTC_MSG_ALARM_ELAPSED, sizeof(RTC_DATA_BUF), (unsigned char*)&buf, 0);
+				if(pTmp->cpu == RTC_CPU_CAP)
+				{
+					buf.srcModule = pTmp->module_id;
+					buf.cpu = RTC_CPU_AP;
+				    buf.is_utc = pTmp->is_utc;
+					cmd = RTC_MSG_TIMER_TIMEOUT;
+					slog(RTC_PRINT, SLOG_NORMAL, "[rtc] handle_alarm_timeout: send to cap cmd:0x%x, srcMod:0x%x, module:0x%x, utc:%d \n", cmd, buf.srcModule, buf.module, buf.is_utc);
+					ret = send_soc_msg(FAR_PS, MODULE_ID_RTC_SERVICE, cmd, sizeof(RTC_DATA_BUF), (void *)&buf);
+					if (ret != 0)
+					{
+						slog(RTC_PRINT, SLOG_ERR, "rtc-service: send_soc_msg unexpected,ret:%d\n",ret);;
+					}
+				}
+				else
+				{
+					ipc_send_message2(MODULE_ID_RTC_SERVICE, pTmp->module_id, RTC_MSG_ALARM_ELAPSED, sizeof(RTC_DATA_BUF), (unsigned char*)&buf, 0);
+				}
 				list_del(&pTmp->list);
 				free(pTmp);
 			}
@@ -765,8 +785,24 @@
 					wakeup = pTmp->wakeup;
 
 				buf.module = pTmp->rtc_id;
-                            buf.time_val = pTmp->time_val + pTmp->interval;
-				ipc_send_message2(MODULE_ID_RTC_SERVICE, pTmp->module_id, RTC_MSG_ALARM_ELAPSED, sizeof(RTC_DATA_BUF), (unsigned char*)&buf, 0);
+                buf.time_val = pTmp->time_val + pTmp->interval;
+				if(pTmp->cpu == RTC_CPU_CAP)
+				{
+					buf.srcModule = pTmp->module_id;
+					buf.cpu = RTC_CPU_AP;
+				    buf.is_utc = pTmp->is_utc;
+					cmd = RTC_MSG_ALARM_TIMEOUT;
+					slog(RTC_PRINT, SLOG_NORMAL, "[rtc] handle_alarm_timeout: send to cap cmd:0x%x, srcMod:0x%x, module:0x%x, utc:%d \n", cmd, buf.srcModule, buf.module, buf.is_utc);
+					ret = send_soc_msg(FAR_PS, MODULE_ID_RTC_SERVICE, cmd, sizeof(RTC_DATA_BUF), (void *)&buf);
+					if (ret != 0)
+					{
+						slog(RTC_PRINT, SLOG_ERR, "rtc-service: send_soc_msg unexpected,ret:%d\n",ret);;
+					}
+				}
+				else
+				{
+					ipc_send_message2(MODULE_ID_RTC_SERVICE, pTmp->module_id, RTC_MSG_ALARM_ELAPSED, sizeof(RTC_DATA_BUF), (unsigned char*)&buf, 0);
+				}
 				list_del(&pTmp->list);
 				free(pTmp);
 			}
diff --git a/ap/app/zte_comm/sms/src/sms_code.c b/ap/app/zte_comm/sms/src/sms_code.c
index 2ab9505..107e103 100755
--- a/ap/app/zte_comm/sms/src/sms_code.c
+++ b/ap/app/zte_comm/sms/src/sms_code.c
@@ -6,662 +6,659 @@
 #ifdef WIN32

 #include <wchar.h>

 #endif

-#define     NON_GSM                         (0x15e1+2196-0x1e55)

+#define     NON_GSM                         (0x1b99+2749-0x2636)

 #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[(0x6af+2050-0xea1)]={
-((char)(0x1221+2380-0x1b3d)),((char)(0x427+4023-0x13ad)),
-((char)(0x11c6+3385-0x1ecd)),((char)(0x5f7+2875-0x10ff)),
-((char)(0x109c+2892-0x1bb4)),((char)(0xd18+286-0xe01)),
-((char)(0x3c7+4981-0x1706)),((char)(0xa2a+4248-0x1a8b)),
-((char)(0x17c+5632-0x1744)),((char)(0x13bc+336-0x14d3)),
-((char)(0xf60+4335-0x200e)),((char)(0x2613+195-0x2694)),
-((char)(0x15ff+3172-0x2220)),((char)(0xc1d+5434-0x2113)),
-((char)(0x49f+7922-0x234c)),((char)(0xaeb+577-0xce6))};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)(0x905+4280-0x199d)),((char)(0xb2d+6393-0x2406)),
-((char)(0x17fb+1453-0x1d88)),((char)(0x1f21+657-0x2192)),
-((char)(0x12c1+2824-0x1da9)),((char)(0x1ab+2318-0xa99)),
-((char)(0xbad+2073-0x13a6)),((char)(0x1f39+1627-0x2574)),
-((char)(0x460+7444-0x2154)),((char)(0x3c4+2869-0xed9)),
-((char)(0x11a2+1264-0x1672)),((char)(0xdc0+3910-0x1ce6)),
-((char)(0xd9+2197-0x94e)),((char)(0x1205+556-0x1411)),
-((char)(0xa8c+1723-0x1127)),((char)(0x18c2+1099-0x1ced)),
-((char)(0x187+4650-0x1391)),((char)(0x1fc+2488-0xb94)),
-((char)(0x1284+2718-0x1d02)),((char)(0xbc6+4641-0x1dc7)),
-((char)(0xc01+4913-0x1f12)),((char)(0x3ff+1794-0xae1)),
-((char)(0x5f9+4282-0x1693)),((char)(0xf11+3674-0x1d4b)),
-((char)(0xa8d+4887-0x1d84)),((char)(0xbcf+1153-0x1030)),
-((char)(0x1276+2486-0x1c0c)),((char)(0x5c+9915-0x26f7)),
-((char)(0xcf9+3868-0x1bf5)),((char)(0xeba+652-0x1126)),((char)(0xea6+275-0xf99))
-,((char)(0x1cb+3167-0xe0a)),((char)(0x738+3003-0x12d3)),
-((char)(0x13e1+1187-0x1863)),(0x6fd+2394-0x1035),((char)(0xd8b+569-0xfa1)),
-(0x1329+838-0x166d),((char)(0x578+7878-0x2419)),((char)(0x5e1+5196-0x1a07)),
-(0x433+554-0x636),((char)(0x379+2940-0xecd)),((char)(0xa8f+5364-0x1f5a)),
-((char)(0x23b+7077-0x1db6)),((char)(0x152b+3649-0x2341)),
-((char)(0x1b54+1943-0x22bf)),((char)(0x695+3534-0x1436)),
-((char)(0x1ba4+1968-0x2326)),((char)(0x20e5+1173-0x254b)),
-((char)(0xc5f+4864-0x1f2f)),((char)(0x6c3+620-0x8fe)),
-((char)(0x1243+2407-0x1b78)),((char)(0x2a5+5201-0x16c3)),
-((char)(0xb71+295-0xc64)),((char)(0xa60+4843-0x1d16)),
-((char)(0xa10+7377-0x26ab)),((char)(0x16c2+2627-0x20ce)),
-((char)(0x1e2+2953-0xd33)),((char)(0x2dd+5614-0x1892)),
-((char)(0xc78+2166-0x14b4)),((char)(0xdad+617-0xfdb)),
-((char)(0x1da7+1971-0x251e)),((char)(0xfd3+1006-0x1384)),
-((char)(0x125f+4469-0x2396)),((char)(0x14e8+4304-0x2579)),(0x121f+159-0x12be),
-((char)(0xed+4813-0x1379)),((char)(0x17a+9659-0x26f3)),
-((char)(0x18f8+1517-0x1ea2)),((char)(0x3b9+5308-0x1831)),
-((char)(0x7c0+4011-0x1726)),((char)(0x1bad+1844-0x229b)),
-((char)(0x133+1959-0x893)),((char)(0xb48+3089-0x1711)),
-((char)(0x388+3277-0x100c)),((char)(0x16b5+1130-0x1ad5)),
-((char)(0x18a6+1068-0x1c87)),((char)(0xd85+6073-0x24f2)),
-((char)(0x39d+4674-0x1592)),((char)(0x13a4+1928-0x1ade)),
-((char)(0x1792+791-0x1a5a)),((char)(0x2ca+3672-0x10d2)),
-((char)(0xdcd+4221-0x1df9)),((char)(0x6f+2134-0x873)),
-((char)(0x85f+7788-0x2678)),((char)(0x1492+2972-0x1fda)),
-((char)(0x18cf+1660-0x1ef6)),((char)(0x940+94-0x948)),((char)(0x253+355-0x35f)),
-((char)(0x10df+693-0x133c)),((char)(0xdd9+2162-0x15f2)),
-((char)(0x3a9+6967-0x1e86)),(0x255a+163-0xac1),6959,6974,(0x1c87+5035-0x151e),
-(0xff+5685-0x1723),((char)(0xb26+1510-0x10ec)),((char)(0x1b89+3024-0x26f8)),
-((char)(0x344+7670-0x20d8)),((char)(0x1cd9+1082-0x20b0)),
-((char)(0x78+6308-0x18b8)),((char)(0x1b85+2158-0x238e)),
-((char)(0x2af+4568-0x1421)),((char)(0x1266+5353-0x26e8)),
-((char)(0x3e3+606-0x5d9)),((char)(0x962+3950-0x1867)),
-((char)(0x135a+1233-0x17c1)),((char)(0x4c5+6600-0x1e22)),
-((char)(0xe5d+3501-0x1b9e)),((char)(0x1a21+1798-0x20ba)),
-((char)(0x14cf+3463-0x21e8)),((char)(0xe1f+5711-0x23ff)),
-((char)(0x1350+1320-0x1808)),((char)(0x21fc+953-0x2544)),
-((char)(0x5f0+8354-0x2620)),((char)(0x13ef+3446-0x20f2)),
-((char)(0x140f+1790-0x1a99)),((char)(0xa56+5317-0x1ea6)),
-((char)(0x5f1+6755-0x1fde)),((char)(0x9fc+2632-0x13cd)),((char)(0x6c0+88-0x6a0))
-,((char)(0x1742+3799-0x25a0)),((char)(0x1842+2910-0x2326)),(0x24ba+3517-0x174f),
-(0x1e13+2652-0xd2f),(0x2007+282-0x5f8),(0x2306+6712-0x2201),
-((char)(0x149b+2620-0x1eb7)),((char)(0x2ab+7108-0x1e4f)),
-((char)(0x1f66+443-0x2101)),((char)(0x9a+419-0x21d)),((char)(0xb69+5719-0x21a0))
-,((char)(0x1caa+1374-0x21e8)),((char)(0x1329+4616-0x2511)),
-((char)(0xa19+2971-0x1594)),((char)(0x7b0+7184-0x23a0)),
-((char)(0x76a+7619-0x250d)),((char)(0xe2+3182-0xd30)),((char)(0x71a+269-0x807)),
-((char)(0xab3+832-0xdd3)),((char)(0x26+9850-0x2680)),((char)(0x9f1+4299-0x1a9c))
-,((char)(0x2e0+5931-0x19eb)),((char)(0x19b9+3248-0x2649)),
-((char)(0x87f+4043-0x182a)),((char)(0xcbc+2637-0x16e9)),
-((char)(0x9d0+285-0xacd)),((char)(0x1a0f+279-0x1b06)),
-((char)(0x5c4+7236-0x21e8)),((char)(0x2d3+2892-0xdff)),
-((char)(0x939+2851-0x143c)),((char)(0x17a+3090-0xd6c)),
-((char)(0x1127+4274-0x21b9)),((char)(0x21e5+781-0x24d2)),
-((char)(0x7c2+6354-0x2074)),((char)(0x97+1353-0x5c0)),
-((char)(0x11bb+1907-0x190e)),((char)(0xa96+3880-0x199e)),
-((char)(0x1d3a+1831-0x2441)),((char)(0x1156+3871-0x2055)),
-((char)(0x57f+5208-0x19b7)),(0x79b+2886-0x12a1),((char)(0x3a0+5768-0x1a08)),
-(0x1aa+2996-0xd5d),(0x198+8507-0x22af),(0x19a7+241-0x1a95),
-((char)(0x1888+1102-0x1cb6)),(0x13b1+4344-0x244a),((char)(0x15e6+25-0x15df)),
-((char)(0x2008+454-0x21ae)),((char)(0x8bc+4176-0x18ec)),
-((char)(0x1921+1064-0x1d29)),((char)(0xa68+4174-0x1a96)),
-((char)(0x6c9+3104-0x12c9)),((char)(0xf94+149-0x1009)),
-((char)(0xa92+2192-0x1302)),((char)(0xf84+1023-0x1363)),
-((char)(0x76c+2268-0x1028)),((char)(0x1c0+6516-0x1b14)),
-((char)(0x1aac+780-0x1d98)),((char)(0xc60+6536-0x25c8)),
-((char)(0x1823+879-0x1b72)),((char)(0x1d7+1642-0x821)),
-((char)(0x145d+1238-0x1913)),(0xa67+6884-0x2540),((char)(0x193a+1306-0x1e34)),
-((char)(0xaa8+5980-0x21e4)),((char)(0x683+2513-0x1034)),
-((char)(0x393+5910-0x1a89)),((char)(0xe34+5837-0x24e1)),
-((char)(0xdb8+5884-0x2494)),(0xdd+998-0x463),((char)(0x158c+4110-0x257a)),
-((char)(0x3cf+8358-0x2455)),((char)(0x1272+3412-0x1fa6)),
-((char)(0x107d+1280-0x155d)),(0x16c3+2924-0x21d4),(0xbc3+5043-0x1f68),
-(0x74f+7887-0x2602),(0xb9+6575-0x1a5f),((char)(0x1961+2678-0x23b7)),
-(0x68+9864-0x26d1),((char)(0x153f+83-0x1572)),((char)(0x53d+7255-0x2174)),
-((char)(0x1bf+6346-0x1a69)),((char)(0x1824+1367-0x1d5b)),
-((char)(0xfb7+158-0x1035)),((char)(0x1e24+308-0x1f38)),
-((char)(0x2142+1452-0x26ce)),(0x2065+486-0x21ee),((char)(0x15ad+371-0x1700)),
-((char)(0xcb9+4898-0x1fbb)),((char)(0x23a7+588-0x25d3)),
-((char)(0x1d57+1149-0x21b4)),(0xa33+3257-0x1690),((char)(0x1390+4580-0x2554)),
-((char)(0x6a7+63-0x6c6)),((char)(0xc7c+4101-0x1c61)),((char)(0x4e1+5245-0x193e))
-,((char)(0x6ab+5303-0x1b42)),(0x745+1075-0xb1a),((char)(0x1c69+147-0x1cdc)),
-((char)(0xb2f+6706-0x2541)),(0x6b8+470-0x870),(0xe7d+3801-0x1cd7),
-((char)(0xa4a+2102-0x1260)),((char)(0x4ac+8822-0x2702)),
-((char)(0x10dc+1999-0x188b)),(0x1051+1548-0x15e2),(0x1560+2864-0x2081),
-(0xee5+3468-0x1c54),((char)(0x1807+2630-0x222d)),(0x171d+1789-0x1e16),
-(0x9d5+1524-0xfc4),((char)(0x863+612-0xaa7)),((char)(0x17ad+1631-0x1dec)),
-(0x29b+1346-0x7d6),((char)(0x3ef+4187-0x142a)),((char)(0x1ab4+1787-0x218f)),
-((char)(0x1805+2013-0x1fc2)),((char)(0x1285+2705-0x1cf6)),(0xa43+669-0xc63),
-(0x16f8+2922-0x225a),((char)(0xc11+1824-0x1311)),((char)(0x127c+4673-0x249d)),
-((char)(0x147c+2234-0x1d16)),(0x10d3+1581-0x1684),((char)(0xff3+5598-0x25b1)),
-(0x56b+3073-0x1160),(0x1dca+444-0x1f80),((char)(0x8f2+4240-0x1962)),
-((char)(0x47+8864-0x22c7)),(0x6ac+1975-0xde5),((char)(0xff7+1450-0x1581)),
-((char)(0x45c+3337-0x1145)),((char)(0x12c5+1911-0x1a1c)),};const unsigned short 
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0x8ca+3851-0x17d3)]={{
-(0xc19+6622-0x25ee),(0x2ca+430-0x391)},{(0x607+6827-0x20a8),(0x41d+3412-0x1165)}
-,{(0x25c+68-0x293),(0x5d4+2418-0xf39)},{(0x19a1+2712-0x2425),(0x2148+460-0x22b6)
-},{(0x2a9+454-0x447),(0x1527+3160-0x2104)},{(0x94d+1275-0xe1f),
-(0x1dd+4845-0x144d)},{(0xf81+5452-0x249e),(0x673+4545-0x17d8)},{
-(0x65f+7637-0x23f8),(0x21fc+259-0x22a4)},{(0x33b+7918-0x21ec),
-(0xb20+6405-0x23a7)},{(0x1554+800-0x1836),(0x1017+5354-0x24a4)},{
-(0x720+7909-0x25c5),(0x502+2749-0xf43)},{(0xd4+5023-0x1432),(0x20f+7124-0x1d22)}
-,{(0xcb1+3944-0x1bd0),(0x2ad+4484-0x1364)},{(0x130f+3137-0x1f01),
-(0x1415+2043-0x1b3d)},{(0x194a+174-0x19a3),(0x641+8197-0x256c)},{
-(0x29b+2562-0xc3c),(0x7cf+6132-0x1ee2)},{(0x1db4+2457-0x26e8),8364},{
-(0x802+2600-0x11c1),(0x2495+676-0x264c)},{(0x33d+7586-0x2070),
-(0x15b9+2435-0x1e49)},{(0xcd5+2665-0x16c9),(0x15a+3110-0xc86)},};const unsigned 
-short Ucs2_To_Gsm7_SPANISH_Table_UCS[][(0x1228+554-0x1450)]={{
-(0x21ba+975-0x2579),(0xe75+1258-0xfcb)},{(0xdcc+5162-0x21e4),
-(0x1167+1704-0x1469)},{(0x751+2842-0x1258),(0x1cb6+3396-0x2667)},{
-(0x9fa+2366-0x1324),(0xe12+4520-0x1c1f)},{(0xd80+27-0xd86),(0x99f+6961-0x2127)},
-{(0x53+8587-0x21c8),(0xc4a+6460-0x21e6)},{(0x1ca0+1478-0x224f),
-(0xc30+5552-0x1e38)},{(0x13cd+4893-0x26d2),931},{(0xaf4+6814-0x2579),
-(0x613+3438-0xfe9)},{(0x9c0+1407-0xf25),(0xdba+6848-0x24dc)},};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,(0x18f2+1388-0x1e54),NON_GSM,NON_GSM,
-(0xa98+5467-0x1fe6),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+const_header;char g_zUfiSms_DigAscMap[(0x63b+1490-0xbfd)]={
+((char)(0x818+2732-0x1294)),((char)(0x419+5431-0x191f)),
+((char)(0x677+2505-0x100e)),((char)(0x9df+2827-0x14b7)),
+((char)(0x750+1945-0xeb5)),((char)(0xdd0+3852-0x1ca7)),
+((char)(0xc94+5628-0x225a)),((char)(0xa6c+762-0xd2f)),((char)(0x7f3+1397-0xd30))
+,((char)(0x44f+5905-0x1b27)),((char)(0x1558+4179-0x256a)),
+((char)(0x7f8+5782-0x1e4c)),((char)(0xa47+3418-0x175e)),
+((char)(0xed5+4651-0x20bc)),((char)(0xf5a+3379-0x1c48)),
+((char)(0x132a+4134-0x230a))};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)(0x1317+3494-0x209d)),
+((char)(0x8b+6481-0x19bc)),((char)(0xf80+2635-0x19ab)),
+((char)(0x1340+3239-0x1fc7)),((char)(0x326+2305-0xc07)),
+((char)(0x513+8713-0x26fc)),((char)(0x2383+168-0x240b)),
+((char)(0x4f1+3427-0x1234)),((char)(0x7f2+5000-0x1b5a)),
+((char)(0x96c+7492-0x2690)),((char)(0x785+3625-0x158e)),
+((char)(0xf59+2774-0x1a0f)),((char)(0x1567+2156-0x1db3)),
+((char)(0x5fd+1619-0xc30)),((char)(0x1445+2767-0x1ef4)),
+((char)(0xd1b+488-0xee3)),((char)(0xb9b+2367-0x14ba)),
+((char)(0x7f6+2099-0x1009)),((char)(0x811+7497-0x253a)),
+((char)(0x210d+623-0x235c)),((char)(0xe0+4355-0x11c3)),
+((char)(0xffa+4137-0x2003)),((char)(0xd0a+4249-0x1d83)),
+((char)(0xe8a+6108-0x2646)),((char)(0x13c3+4764-0x263f)),
+((char)(0x69d+5811-0x1d30)),((char)(0xaa8+6998-0x25de)),
+((char)(0xc03+4891-0x1efe)),((char)(0xfb3+3665-0x1de4)),
+((char)(0x1adc+73-0x1b05)),((char)(0x6e5+1964-0xe71)),
+((char)(0x736+5143-0x1b2d)),((char)(0xec9+2201-0x1742)),
+((char)(0x1c92+1297-0x2182)),(0x727+6510-0x2073),((char)(0x114c+1893-0x188e)),
+(0x202+8300-0x226c),((char)(0x2618+136-0x267b)),((char)(0x1617+1750-0x1cc7)),
+(0xcf+3570-0xe9a),((char)(0x1a1c+629-0x1c69)),((char)(0x807+1228-0xcaa)),
+((char)(0xd9c+2708-0x1806)),((char)(0x1332+174-0x13b5)),
+((char)(0x841+3753-0x16be)),((char)(0xc04+4040-0x1b9f)),
+((char)(0x3b3+8416-0x2465)),((char)(0x1220+4085-0x21e6)),
+((char)(0x16cf+1528-0x1c97)),((char)(0x7b2+7606-0x2537)),
+((char)(0x4a3+7109-0x2036)),((char)(0x1178+1356-0x1691)),
+((char)(0x62f+1527-0xbf2)),((char)(0xa0f+4187-0x1a35)),
+((char)(0x1221+2721-0x1c8c)),((char)(0x42+140-0x97)),
+((char)(0x15d7+1798-0x1ca5)),((char)(0x27a+1059-0x664)),
+((char)(0x627+4556-0x17b9)),((char)(0x29c+3917-0x11ae)),
+((char)(0x13a3+4072-0x234f)),((char)(0xefa+4639-0x20dc)),
+((char)(0x867+5163-0x1c54)),((char)(0xb92+5108-0x1f47)),(0x5f1+6348-0x1ebd),
+((char)(0x638+3119-0x1226)),((char)(0xbd4+518-0xd98)),
+((char)(0x771+4182-0x1784)),((char)(0x99a+3042-0x1538)),
+((char)(0x1546+414-0x169f)),((char)(0x1889+877-0x1bb0)),
+((char)(0xcb8+5736-0x22d9)),((char)(0x8b3+6105-0x2044)),
+((char)(0x16af+2641-0x20b7)),((char)(0x23b9+372-0x24e3)),
+((char)(0xecc+1918-0x15ff)),((char)(0x3fd+6722-0x1df3)),((char)(0x79d+68-0x794))
+,((char)(0x525+2737-0xf88)),((char)(0x194c+2536-0x22e5)),
+((char)(0x394+2739-0xdf7)),((char)(0x12fa+4683-0x24f4)),
+((char)(0x6c2+4918-0x19a6)),((char)(0x140d+3459-0x213d)),
+((char)(0x1359+3991-0x229c)),((char)(0x108a+2826-0x1b3f)),
+((char)(0x920+932-0xc6e)),((char)(0x4a1+2547-0xe3d)),
+((char)(0x114b+4575-0x22d2)),((char)(0xd01+1823-0x13c7)),
+((char)(0x1540+1008-0x18d6)),6972,6959,(0x2634+509-0xcf3),(0x2335+4252-0x18bd),
+(0xd7b+291-0xe8d),((char)(0x1b76+1004-0x1f42)),((char)(0xdb1+5322-0x221a)),
+((char)(0x1405+3776-0x2263)),((char)(0x6a8+4981-0x19ba)),
+((char)(0x35a+3439-0x1065)),((char)(0x98d+118-0x99e)),
+((char)(0xa65+1539-0x1002)),((char)(0xd9f+5954-0x247a)),
+((char)(0x584+7608-0x22d4)),((char)(0x1d70+1569-0x2328)),
+((char)(0xa68+490-0xbe8)),((char)(0xf18+2841-0x19c6)),
+((char)(0x10ed+535-0x1298)),((char)(0x1301+83-0x12e7)),
+((char)(0x2a8+7085-0x1de7)),((char)(0x1622+99-0x1616)),
+((char)(0x1018+5853-0x2685)),((char)(0x71b+5082-0x1a84)),
+((char)(0x11f2+3906-0x20c2)),((char)(0xd90+359-0xe84)),
+((char)(0xd12+2047-0x149d)),((char)(0xa64+6514-0x2361)),
+((char)(0xa3a+5871-0x20b3)),((char)(0x14cd+827-0x1791)),
+((char)(0xd2d+1418-0x123f)),((char)(0xcd2+1638-0x12bf)),
+((char)(0xe99+5096-0x2207)),(0x2585+3159-0x16b4),(0x2692+1246-0x1030),6953,
+(0x25d0+4517-0x1c38),((char)(0x13d0+3192-0x2028)),((char)(0x1514+3770-0x23ae)),
+((char)(0x18e3+420-0x1a67)),((char)(0xbcf+4130-0x1bd1)),
+((char)(0x62+9112-0x23da)),((char)(0x57f+3833-0x1458)),
+((char)(0x5f4+6946-0x20f6)),((char)(0x182a+1088-0x1c4a)),
+((char)(0x8d1+6680-0x22c9)),((char)(0x8bb+1763-0xf7e)),((char)(0x44c+433-0x5dd))
+,((char)(0x1c9d+1843-0x23b0)),((char)(0x922+6169-0x211b)),
+((char)(0x2268+689-0x24f9)),((char)(0x351+3114-0xf5b)),
+((char)(0x184b+3714-0x26ad)),((char)(0x64c+1292-0xb38)),
+((char)(0x763+4568-0x191b)),((char)(0x311+7089-0x1ea2)),
+((char)(0x1b76+2379-0x24a1)),((char)(0xaa1+333-0xbce)),
+((char)(0x204+2166-0xa5a)),((char)(0x3ec+2363-0xd07)),((char)(0x83+7987-0x1f96))
+,((char)(0x634+1251-0xaf7)),((char)(0x1a33+3240-0x26bb)),
+((char)(0x10bd+3009-0x1c5e)),((char)(0xff5+1631-0x1634)),
+((char)(0x182+4467-0x12d5)),((char)(0x8bb+7271-0x2502)),
+((char)(0x1999+2893-0x24c6)),((char)(0x136+6520-0x1a8e)),
+((char)(0x681+5778-0x1cf3)),((char)(0xcfb+4094-0x1cd9)),(0x1dd4+909-0x2121),
+((char)(0xedc+589-0x1109)),(0x1087+5330-0x2558),(0x20a9+954-0x243f),
+(0x809+7492-0x254a),((char)(0x824+3853-0x1711)),(0xa4a+4259-0x1a8e),
+((char)(0x207d+1566-0x267b)),((char)(0x12b+9177-0x24e4)),
+((char)(0x1762+439-0x18f9)),((char)(0x130f+1314-0x1811)),
+((char)(0x428+2342-0xd2e)),((char)(0x934+2301-0x1211)),
+((char)(0x1513+2232-0x1dab)),((char)(0xaf7+2195-0x136a)),
+((char)(0x1933+3516-0x26cf)),((char)(0x56d+1701-0xbf2)),
+((char)(0x1291+5206-0x26c7)),((char)(0x1bb+1364-0x6ef)),
+((char)(0x20e7+718-0x2395)),((char)(0xb73+3464-0x18db)),
+((char)(0x15c7+4378-0x26c1)),((char)(0x7ff+2412-0x114b)),(0xb11+5321-0x1fcf),
+((char)(0x682+5462-0x1bb8)),((char)(0x828+6971-0x2343)),
+((char)(0xfe6+3139-0x1c09)),((char)(0x222+534-0x418)),((char)(0x4d9+159-0x558)),
+((char)(0x569+6184-0x1d71)),(0x1ae4+3031-0x265b),((char)(0x724+7881-0x25cd)),
+((char)(0x1a76+2954-0x25e0)),((char)(0x100c+3944-0x1f54)),
+((char)(0x139c+537-0x1595)),(0x11af+1866-0x189e),(0x118+1578-0x734),
+(0x1586+408-0x1702),(0x151f+4122-0x2530),((char)(0x257c+140-0x25e8)),
+(0x1072+2738-0x1b05),((char)(0x6f8+6929-0x21e9)),((char)(0x204+3557-0xfc9)),
+((char)(0x303+3630-0x1111)),((char)(0x189b+356-0x19df)),
+((char)(0xd51+1328-0x1261)),((char)(0x41b+6240-0x1c5b)),
+((char)(0x897+6844-0x2333)),(0x795+6639-0x2127),((char)(0x1d27+2135-0x255e)),
+((char)(0xa77+4905-0x1d80)),((char)(0x9c1+1354-0xeeb)),
+((char)(0x55a+8573-0x26b7)),(0x1089+5193-0x2476),((char)(0x193b+2576-0x232b)),
+((char)(0x1ed8+1274-0x23b2)),((char)(0x14bd+3619-0x22c0)),
+((char)(0x160c+936-0x1994)),((char)(0xff9+4269-0x2086)),(0x235c+734-0x25dc),
+((char)(0xbe8+5165-0x1ff5)),((char)(0x639+4368-0x1729)),(0x12c0+3479-0x2039),
+(0xe46+3250-0x1a79),((char)(0xfc1+5747-0x2614)),((char)(0x1608+1911-0x1d5f)),
+((char)(0x19fc+2515-0x23af)),(0x12b0+1237-0x170a),(0xf59+283-0x1065),
+(0xc81+5384-0x216c),((char)(0xadf+6794-0x2549)),(0x3ad+6023-0x1b30),
+(0xaaa+5632-0x20a5),((char)(0xce6+1424-0x1256)),((char)(0xeb4+3285-0x1b69)),
+(0x1282+4571-0x2456),((char)(0x1336+3694-0x2184)),((char)(0xdb8+1583-0x13c7)),
+((char)(0x801+5036-0x1b8d)),((char)(0x78f+5600-0x1d4f)),(0x106a+2174-0x186b),
+(0x541+408-0x6d1),((char)(0x736+5570-0x1cd8)),((char)(0xf7b+4837-0x2240)),
+((char)(0x181+1978-0x91b)),(0x586+1606-0xb50),((char)(0x9a+15-0x89)),
+(0x1656+1258-0x1b34),(0x699+1883-0xdee),((char)(0x17f5+3251-0x2488)),
+((char)(0x27+6116-0x17eb)),(0x577+3123-0x112c),((char)(0xc3b+2612-0x164f)),
+((char)(0x2da+7459-0x1fdd)),((char)(0x1c7+1327-0x6d6)),};const unsigned short 
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0x195d+778-0x1c65)]={{
+(0x33f+6672-0x1d46),(0x14dc+4088-0x23ed)},{(0xa77+1649-0x10de),
+(0xd47+2257-0x160c)},{(0x168f+596-0x18d6),(0x328+2140-0xb77)},{
+(0x13a+9455-0x2615),(0x2af+5543-0x17f8)},{(0x420+3062-0xfee),(0x21db+666-0x23fa)
+},{(0x11f9+2538-0x1bba),(0xb03+5429-0x1fbb)},{(0x1d0b+239-0x1dcb),
+(0x1257+5047-0x25b2)},{(0x796+120-0x7d2),(0x107d+3555-0x1e05)},{
+(0x1727+346-0x1844),(0x887+3294-0x14e7)},{(0xfd6+50-0xfca),(0x528+2072-0xce3)},{
+(0xaf+2722-0xb11),(0xef0+1887-0x15d3)},{(0xb2d+5145-0x1f05),(0x299+5665-0x17f9)}
+,{(0x7d0+2797-0x1274),(0x1976+1823-0x1fc8)},{(0x154b+1611-0x1b47),
+(0x1bca+2264-0x23cf)},{(0x12f8+2636-0x1cef),(0x959+4561-0x1a50)},{
+(0x100b+2227-0x185d),(0x237+7105-0x1d17)},{(0xb0b+1422-0x1034),
+(0x21da+4774-0x13d4)},{(0x1aa+3966-0x10bf),(0x19cf+450-0x1aa4)},{
+(0x1592+511-0x1722),(0x3f0+5407-0x181c)},{(0xe6d+5861-0x24dd),
+(0x10c8+1327-0x14fd)},};const unsigned short Ucs2_To_Gsm7_SPANISH_Table_UCS[][
+(0x409+427-0x5b2)]={{(0x748+6577-0x20e9),(0xb1c+6967-0x22bf)},{(0x2f7+744-0x5cd)
+,(0x459+4074-0x109d)},{(0x55a+3635-0x137a),(0x1799+4267-0x24b1)},{
+(0xef0+4098-0x1ede),(0xae1+1332-0xc7a)},{(0x1fa1+1447-0x2533),
+(0x1deb+1111-0x1e99)},{(0x601+462-0x7b9),(0x132d+2604-0x19b9)},{
+(0x969+6145-0x2153),936},{(0x13ec+1262-0x18c2),(0x61c+3719-0x1100)},{
+(0x1d32+1234-0x21eb),(0x19ab+4031-0x25d2)},{(0x1700+520-0x18ee),
+(0xa76+2334-0xff6)},};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,
-NON_GSM,(0x638+135-0x69f),(0x88+4804-0x132b),(0xf68+4423-0x208d),
-(0x14f+826-0x466),(0x1f0c+476-0x20e6),(0x4c7+3161-0x10fb),(0xf05+337-0x1030),
-(0x1c05+2758-0x26a4),(0x13b7+2554-0x1d89),(0x110b+4342-0x21d8),
-(0x4a7+6872-0x1f55),(0x793+230-0x84e),(0x19d8+247-0x1aa3),(0x69f+391-0x7f9),
-(0x8b9+6824-0x2333),(0x9f4+6770-0x2437),(0x1da5+2148-0x25d9),(0xe53+1937-0x15b3)
-,(0x1d93+2358-0x2697),(0x2f7+2403-0xc27),(0x2356+736-0x2602),(0x17a+5993-0x18ae)
-,(0x79+7237-0x1c88),(0x1f1d+1190-0x238c),(0x1695+2490-0x2017),
-(0x7c1+2626-0x11ca),(0x16ca+1508-0x1c74),(0x138b+152-0x13e8),
-(0x142c+2367-0x1d2f),(0x220+5743-0x1852),(0x1976+57-0x1971),(0x7b7+1910-0xeee),
-(0x982+2568-0x138a),(0x476+5722-0x1a8f),(0x927+3328-0x15e5),(0xc64+5524-0x21b5),
-(0xf38+3849-0x1dfd),(0x84+6748-0x1a9b),(0xf52+1398-0x1482),(0x119+3266-0xd94),
-(0xa04+6094-0x218a),(0x1cbd+835-0x1fb7),(0x14f7+4281-0x2566),
-(0x11d8+3563-0x1f78),(0x81d+7120-0x23a1),(0x971+7409-0x2615),
-(0x118c+3266-0x1e00),(0xe0+1239-0x568),(0x3ad+7250-0x1faf),(0xc30+827-0xf1a),
-(0x17b2+1982-0x1f1e),(0xcf1+2295-0x1595),(0x18ca+721-0x1b47),(0xcbd+2595-0x168b)
-,(0xba9+3646-0x1991),(0xa59+1079-0xe39),(0x4e9+4130-0x14b3),(0x155+3858-0x100e),
-(0x6b4+2403-0xfbd),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xb59+741-0xe2d),NON_GSM,
-(0xd1+7841-0x1f11),(0x1bf+5035-0x1508),(0x180a+995-0x1b8a),(0x613+7427-0x22b2),
-(0x142a+1799-0x1acc),(0x1951+2281-0x21d4),(0xd93+5941-0x2461),
-(0x6c3+7693-0x2468),(0x2fb+1898-0x9fc),(0x5d1+118-0x5dd),(0xb02+3927-0x19ee),
-(0xaa7+6686-0x2459),(0xf8b+3727-0x1dad),(0x18a8+2150-0x20a0),
-(0x123d+3898-0x2108),(0x166a+3801-0x24d3),(0xfa+6968-0x1bc1),(0x4d5+4141-0x1490)
-,(0x22b+4035-0x117b),(0xcdb+369-0xdd8),(0xd29+62-0xcf2),(0xe17+84-0xdf5),
-(0x150+8074-0x2063),(0xf44+4810-0x2196),(0x11e2+30-0x1187),(0x2457+487-0x25c4),
+(0x1f1+7695-0x1ff6),NON_GSM,NON_GSM,(0x1c9+2144-0xa1c),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,NON_GSM,(0xd0b+0-0xcf0),
-(0x335+5869-0x19e2),NON_GSM,(0x4a6+815-0x7d4),(0x1911+2966-0x2483),
-(0x1a95+2352-0x23c2),NON_GSM,(0xe9+2484-0xa3e),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x7fc+4067-0x17bf),(0xaa4+4648-0x1cab),
+(0xc14+2614-0x1628),(0x7d6+7587-0x2556),(0xb77+2085-0x139a),(0x9a7+4866-0x1c84),
+(0x10d2+2357-0x19e1),(0x65c+6749-0x2092),(0x1212+2136-0x1a42),
+(0x181c+2773-0x22c8),(0x357+5862-0x1a13),(0xa25+4504-0x1b92),(0x21b+5868-0x18db)
+,(0x11f8+4474-0x2345),(0x3d9+3405-0x10f8),(0x18e2+506-0x1aad),
+(0x65a+6719-0x2069),(0xb9c+640-0xdeb),(0xe3b+618-0x1073),(0x1d61+26-0x1d48),
+(0x182+2339-0xa71),(0xb95+5728-0x21c0),(0x1090+1862-0x17a0),(0x234+5801-0x18a6),
+(0x166f+3105-0x2258),(0x99a+3157-0x15b6),(0x1b1c+724-0x1db6),(0x531+3867-0x1411)
+,(0x1963+2309-0x222c),(0x16c0+1205-0x1b38),(0xec9+1942-0x1621),
+(0x11f3+3222-0x1e4a),(0x1b3d+864-0x1e9d),(0x7a9+3634-0x159a),(0x19b+6293-0x19ee)
+,(0xda+7400-0x1d7f),(0x76+348-0x18e),(0x1d69+243-0x1e17),(0x10ea+4062-0x2082),
+(0xc31+2316-0x14f6),(0xd38+5773-0x237d),(0x257+2861-0xd3b),(0x1293+1328-0x1779),
+(0x5f1+2655-0x1005),(0xe3c+1270-0x12e6),(0x99+4061-0x1029),(0x16e0+3034-0x226c),
+(0x1437+160-0x1488),(0x434+8410-0x24be),(0x5a+1848-0x741),(0xe46+5982-0x2552),
+(0x1057+1395-0x1577),(0x11f+4718-0x1339),(0x1a0d+2228-0x226c),
+(0x1511+2288-0x1dab),(0x1509+3997-0x244f),(0xcb+5162-0x149d),(0x43d+7146-0x1fce)
+,(0x328+7666-0x20c0),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xbf5+2938-0x175e),NON_GSM
+,(0x928+6028-0x2053),(0x164c+3642-0x2424),(0x9e0+1687-0x1014),
+(0xe22+2776-0x1896),(0xfb+4093-0x1093),(0x1ea3+1612-0x2489),(0x655+6400-0x1eee),
+(0xbef+6780-0x2603),(0x5dc+8281-0x25cc),(0x16d1+3632-0x2497),(0x9d6+316-0xaa7),
+(0x149c+85-0x1485),(0x6f7+1520-0xc7a),(0x1612+335-0x16f3),(0xb0+8784-0x2291),
+(0x481+3059-0x1004),(0x188f+3399-0x2565),(0xdcb+6057-0x2502),
+(0x1965+3469-0x267f),(0x6af+7438-0x2349),(0x761+2222-0xf9a),(0x60d+204-0x663),
+(0xcb5+3260-0x18fa),(0xf5d+1591-0x151c),(0x1953+1578-0x1f04),(0x1ea0+612-0x208a)
+,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,(0xce9+1455-0x127d),
+(0x853+4535-0x19ca),NON_GSM,(0x92+5352-0x1579),(0x269+8728-0x245d),
+(0x185+8602-0x231c),NON_GSM,(0x84d+2934-0x1364),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,
-(0x1200+1752-0x1878),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xab5+4124-0x1a76),
-(0x403+4311-0x14cc),(0x1f2f+1470-0x24d1),(0x3c3+6645-0x1daf),NON_GSM,
-(0x4f0+7682-0x22d3),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x985+7016-0x2490),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xc54+5787-0x2293),NON_GSM,
-(0x1d00+1753-0x23ce),NON_GSM,NON_GSM,NON_GSM,(0x5a9+6358-0x1e21),NON_GSM,NON_GSM
-,(0x1c77+300-0x1d85),(0x187f+3108-0x2424),NON_GSM,NON_GSM,NON_GSM,
-(0xc2+9081-0x23c0),(0x8dc+1707-0xf78),(0x85b+144-0x8ce),NON_GSM,(0x48+449-0x205)
-,(0xaa4+7270-0x2705),NON_GSM,NON_GSM,(0xdeb+489-0xfcd),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x8c6+4680-0x1a91),(0x721+7374-0x23e7),NON_GSM,NON_GSM,NON_GSM,
-(0x5df+3228-0x11ff),NON_GSM,(0x333+915-0x6ba),(0x15fd+2794-0x20e1),NON_GSM,
-NON_GSM,(0x719+6865-0x216c),NON_GSM,NON_GSM,NON_GSM};const unsigned short 
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][(0x5e9+1514-0xbd1)]={{
-(0x9b9+7003-0x250f),(0x1f0+2481-0xab7)},{(0x1c61+1334-0x218e),(0x495+744-0x696)}
-,{(0x122a+6-0x1226),(0x2236+846-0x2578)},{(0xb5f+1382-0x10ba),
-(0x1748+2894-0x21c2)},{(0xb2f+3339-0x182e),(0x19b+4445-0x1204)},{
-(0x1b52+413-0x1ce2),(0xc80+2883-0x17b6)},{(0x237a+627-0x25df),(0x383+2535-0xca9)
-},{(0x1e5d+1980-0x260a),(0x444+3773-0x1220)},{(0x1286+3091-0x1e87),
-(0x105a+2372-0x15f8)},{(0x2f2+395-0x46a),(0x1797+3853-0x2311)},{
-(0x384+4740-0x15f4),(0x9c+560-0x26e)},{(0x2ec+6797-0x1d64),(0x19f8+119-0x16c6)},
-{(0x898+7459-0x25a5),(0x684+2832-0xdf4)},{(0x86+7835-0x1f0a),
-(0x11e3+4511-0x1fda)},{(0x1e0+9059-0x252b),(0x786+8572-0x255f)},{
-(0x52+9825-0x269a),(0x137d+4662-0x221b)},{(0x145d+2725-0x1ee3),
-(0x18ff+650-0x1abf)},{(0xf99+3313-0x1c62),(0x9dd+6614-0x2338)},{
-(0xa40+6044-0x21b3),(0xfd+6968-0x1bb8)},{(0x1f0+2737-0xc72),(0x2b6+6503-0x1bc1)}
-,{(0x1568+631-0x17a3),(0x107+8376-0x2164)},{(0x67a+6763-0x20a8),
-(0x1264+2036-0x19da)},{(0x227c+321-0x237f),(0x1c47+1475-0x21ad)},{
-(0x69c+6690-0x207e),(0x1e50+1362-0x2326)},{(0x143+3460-0xe86),
-(0xfa2+3423-0x1c41)},{(0x39a+7738-0x218b),(0x12b2+2052-0x19e9)},{
-(0x49b+4769-0x16ed),(0x26a+1085-0x5d4)},{(0x298+2656-0xca3),(0x1122+5468-0x25a4)
-},{(0xe1+3439-0xdf5),(0x15ec+1377-0x1a8a)},{(0xb3+8640-0x2217),
-(0x1918+979-0x1c16)},{(0x3bd+3956-0x12d0),(0x49c+5763-0x1a5d)},{
-(0xdda+1629-0x13d2),8364},{(0x3c7+658-0x5f0),(0x99b+2538-0x1298)},{
-(0xc11+3229-0x183f),(0x43f+4148-0x1380)},{(0x207+3836-0x108e),
-(0x1c23+2066-0x233b)},{(0xd8f+1663-0x1393),(0x9d5+2037-0x10e7)},{
-(0x21e9+1226-0x2637),(0xfb5+1713-0x1571)},{(0xe93+4287-0x1ed3),
-(0x480+8589-0x252b)},};const unsigned short Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][
-(0x1423+117-0x1496)]={{(0xed8+3126-0x1afe),(0x704+1090-0x7b2)},{
-(0x194c+2206-0x21d5),8929},{(0xe81+347-0xfc4),(0x23d0+5690-0x195e)},{
-(0xc01+1256-0x1084),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,(0x770+1132-0xbd2),NON_GSM,NON_GSM,
-(0xcb5+6114-0x248a),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0xc53+1849-0x132c),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xb91+4131-0x1b59),
+(0x118f+2290-0x1a73),(0x12a1+4603-0x2480),(0x278+6005-0x19e4),NON_GSM,
+(0x12a+4386-0x122d),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x932+5363-0x1dc8),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x939+7041-0x245e),NON_GSM,
+(0xc93+3233-0x1929),NON_GSM,NON_GSM,NON_GSM,(0x1f4+3160-0xdee),NON_GSM,NON_GSM,
+(0x845+3046-0x140d),(0x13f3+2800-0x1e64),NON_GSM,NON_GSM,NON_GSM,
+(0xa5c+1994-0x11ab),(0x1e6+7696-0x1fe7),(0x389+4200-0x13d4),NON_GSM,
+(0xe49+1134-0x12b3),(0x292+6084-0x1a51),NON_GSM,NON_GSM,(0xb48+1975-0x12f8),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x9b3+4541-0x1af3),(0x1722+586-0x1964),NON_GSM,
+NON_GSM,NON_GSM,(0x188c+396-0x199c),NON_GSM,(0x498+4156-0x14c8),
+(0x28+7537-0x1d93),NON_GSM,NON_GSM,(0x262+4742-0x146a),NON_GSM,NON_GSM,NON_GSM};
+const unsigned short zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][
+(0x22b8+670-0x2554)]={{(0x17c9+1060-0x1be8),(0x11f3+627-0x137c)},{
+(0xa42+6245-0x229e),(0x146b+655-0x1613)},{(0x1e1a+947-0x21c3),(0x23+9185-0x23f8)
+},{(0x71c+4821-0x19e6),(0x1030+2035-0x174f)},{(0x9ba+462-0xb7c),
+(0x1b17+3064-0x261b)},{(0x1af6+2563-0x24ec),(0x73d+3321-0x1429)},{
+(0x38c+5117-0x177b),(0x1ddb+858-0x2074)},{(0x9b4+6912-0x24a5),
+(0x146c+213-0x1460)},{(0x40+8693-0x2223),(0x1558+2674-0x1c24)},{
+(0x139f+555-0x15b7),(0x439+5918-0x17c4)},{(0x3d3+3965-0x133c),(0x912+675-0xb57)}
+,{(0xddb+5464-0x231e),(0xf02+6870-0x262f)},{(0x15f4+2399-0x1f3d),
+(0xddd+6247-0x22a4)},{(0x3f7+8643-0x25a3),(0x1dda+2545-0x2423)},{
+(0xba8+5969-0x22e1),(0xf3b+1741-0x1265)},{(0x1473+33-0x147b),
+(0x1d27+2185-0x2218)},{(0x2a4+8556-0x23f1),(0x1118+4578-0x2230)},{
+(0x7d3+4035-0x176e),(0x16ec+2928-0x21e1)},{(0x13d0+600-0x15ff),
+(0xf02+868-0x11e9)},{(0x548+5629-0x1b16),(0xc6b+5962-0x2359)},{(0x877+93-0x898),
+(0x964+3498-0x16b3)},{(0x863+2992-0x13d6),(0x1a65+2442-0x2371)},{
+(0xf61+4415-0x2062),(0x1d08+796-0x1fc7)},{(0x1e9f+1665-0x24e0),
+(0x710+3617-0x14b5)},{(0xaf6+2702-0x1543),(0x1631+3662-0x23bf)},{
+(0x2cb+2187-0xb0d),(0x1455+2560-0x1d88)},{(0x3e3+7714-0x21b6),(0xff4+769-0x1222)
+},{(0x144f+2359-0x1d31),(0x9af+6886-0x23bb)},{(0x786+3875-0x164e),
+(0x20d5+1729-0x26d3)},{(0x763+809-0xa30),(0x1c60+770-0x1e8d)},{
+(0x741+4013-0x168d),(0xba3+2574-0x14ef)},{(0x1de4+1412-0x2303),8364},{
+(0x5d9+4548-0x1734),(0x1341+3910-0x219a)},{(0x1268+3238-0x1e9f),
+(0x5e8+1787-0xbf0)},{(0x1f52+1154-0x235f),(0x254+7315-0x1ded)},{
+(0x1224+4796-0x2465),(0x2fa+189-0x2d4)},{(0x157a+2377-0x1e47),(0x8cc+419-0x97a)}
+,{(0xbf6+652-0xe03),(0x777+7680-0x2495)},};const unsigned short 
+Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][(0x1edb+971-0x22a4)]={{(0xe65+6022-0x25db),
+(0x629+5835-0x1960)},{(0xdf3+538-0xff8),(0x2705+574-0x662)},{
+(0x16b7+1022-0x1a9d),(0x21e9+3310-0xe2b)},{(0x12b0+201-0x1314),
+(0x25d9+7729-0x235e)},};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
+,(0x3b4+5657-0x19c3),NON_GSM,NON_GSM,(0x824+1165-0xca4),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,(0x135+6146-0x1917),(0x1178+3415-0x1eae),(0x10d4+5386-0x25bc),
-(0x1853+2663-0x2297),(0x29a+4377-0x13b1),(0xc61+5333-0x2111),(0x4d3+1954-0xc4f),
-(0x5db+2757-0x1079),(0x46c+1160-0x8cc),(0x34a+4572-0x14fd),(0xfc1+5667-0x25ba),
-(0x1a40+2984-0x25bd),(0xe76+3229-0x1ae7),(0x1c85+2220-0x2504),
-(0x894+4437-0x19bb),(0x15ac+2035-0x1d70),(0x487+3731-0x12ea),(0x282+6929-0x1d62)
-,(0x6cf+2503-0x1064),(0x1764+2674-0x21a3),(0xa6b+6587-0x23f2),
-(0xde5+5255-0x2237),(0x56f+7803-0x23b4),(0xde5+5255-0x2235),(0x153+195-0x1de),
-(0x563+5276-0x19c6),(0x1ca6+2445-0x25f9),(0x636+4310-0x16d1),(0x973+2664-0x139f)
-,(0x1950+1167-0x1da2),(0x1949+1079-0x1d42),(0x399+4443-0x14b5),
-(0x18ff+2857-0x2428),(0x34f+4649-0x1537),(0x2b0+2149-0xad3),(0xfa4+3914-0x1eab),
-(0x140+9665-0x26bd),(0x5ba+5250-0x19f7),(0x1089+591-0x1292),(0x517+2537-0xeb9),
-(0x1b59+1722-0x21cb),(0x1366+4735-0x259c),(0x2095+479-0x222a),
-(0xb87+4383-0x1c5b),(0x1d17+2588-0x26e7),(0x10c7+2283-0x1965),
-(0xe5a+1597-0x1449),(0x2387+59-0x2373),(0x39c+4418-0x148e),(0xae6+2728-0x153d),
-(0xc21+3827-0x1ac2),(0x12ad+2198-0x1af0),(0x243a+17-0x23f7),(0xfa4+898-0x12d1),
-(0x76a+5228-0x1b80),(0x1723+3541-0x24a1),(0x1c43+272-0x1cfb),(0x14a+5754-0x176b)
-,(0x1283+4222-0x22a7),NON_GSM,(0x1352+942-0x16e9),NON_GSM,(0x1178+5293-0x260f),
-(0x791+2987-0x132b),(0x5f8+2289-0xe6c),(0x34c+2854-0xe11),(0x327+3726-0x1153),
-(0x1ad6+122-0x1aed),(0x7d4+2007-0xf47),(0x367+3978-0x128c),(0xd28+1688-0x135a),
-(0xa52+1448-0xf93),(0x1213+4358-0x22b1),(0x717+7665-0x249f),(0x1db1+1754-0x2421)
-,(0x354+3390-0x1027),(0x14bf+2020-0x1c37),(0x1a91+1860-0x2168),
-(0x836+3746-0x166a),(0x22a8+485-0x241e),(0x1217+1454-0x1755),
-(0x164c+1655-0x1c52),(0x4a2+4641-0x1651),(0x116+7125-0x1c78),(0x176+2555-0xafd),
-(0x881+3414-0x1562),(0x2224+860-0x250a),(0xde5+337-0xebf),(0x4e6+8678-0x2654),
-(0xfdc+967-0x132a),(0x12b5+5099-0x2626),NON_GSM,(0x5a+2870-0xb76),NON_GSM,
-(0x2c1+5432-0x1799),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x184+3924-0x10b8),(0x842+3409-0x1572),
+(0x738+2261-0xfeb),(0x349+3699-0x1199),(0x8a2+6703-0x22cf),(0x44a+7559-0x21ac),
+(0x6cf+890-0xa23),(0x1ee8+2043-0x26bc),(0x11ed+2832-0x1cd5),(0x7c9+5536-0x1d40),
+(0x3aa+7921-0x2271),(0x956+3211-0x15b6),(0x1af+348-0x2df),(0x12c5+213-0x136d),
+(0x631+8109-0x25b0),(0x503+1617-0xb25),(0x1842+18-0x1824),(0x1095+3768-0x1f1c),
+(0x1732+532-0x1914),(0x1044+736-0x12f1),(0x199+515-0x368),(0xb20+4551-0x1cb2),
+(0x6e7+1676-0xd3d),(0x1805+2818-0x22d0),(0x8a7+1409-0xdf0),(0xb19+5500-0x205c),
+(0xe6b+4671-0x2070),(0x9c+8849-0x22f2),(0x1a44+459-0x1bd3),(0x7a+4000-0xfdd),
+(0xa49+2854-0x1531),(0x26f+1574-0x856),(0x4a2+2902-0xff8),(0x18a8+2150-0x20cd),
+(0xc98+3382-0x198c),(0xd02+3135-0x18fe),(0x1d58+2070-0x252a),
+(0x159a+3561-0x233e),(0x1a42+947-0x1daf),(0x52a+7434-0x21ed),
+(0x1978+1429-0x1ec5),(0x7df+7807-0x2615),(0x951+6338-0x21c9),(0xaa2+69-0xa9c),
+(0x21df+667-0x242e),(0xfb+6988-0x1bfa),(0x1d5a+704-0x1fcc),(0x2218+916-0x255d),
+(0x10e9+1340-0x15d5),(0xea5+3592-0x1c5c),(0xb11+6980-0x2603),
+(0x1092+1582-0x166d),(0x24b9+316-0x25a1),(0x22c2+964-0x2631),(0x5aa+7397-0x2239)
+,(0x9e4+4665-0x1bc6),(0x56f+6696-0x1f3f),(0x184d+926-0x1b92),(0x721+1269-0xbbc),
+NON_GSM,(0x1343+4833-0x260d),NON_GSM,(0x1788+774-0x1a78),(0xc13+4419-0x1d45),
+(0x13df+3303-0x2049),(0xc65+214-0xcda),(0x9e9+2256-0x1257),(0xe99+3296-0x1b16),
+(0x2289+1038-0x2633),(0x1847+3856-0x26f2),(0x1733+3049-0x22b6),
+(0x19d7+2002-0x2142),(0x576+1470-0xacc),(0x1c26+457-0x1d86),(0xf63+5571-0x24bc),
+(0x10b1+5107-0x2439),(0x294+6832-0x1cd8),(0xa06+3458-0x171b),(0xa2d+517-0xbc4),
+(0x7eb+7312-0x240c),(0x53c+8181-0x24c1),(0xe47+4720-0x2046),(0x3fd+7822-0x2219),
+(0x1dc8+276-0x1e69),(0x1a36+3143-0x2609),(0x11c4+2448-0x1adf),
+(0x1a87+3136-0x2651),(0x2d0+4938-0x15a3),(0x2c9+5269-0x16e6),
+(0x1907+3237-0x2533),(0x1c23+2862-0x26d7),NON_GSM,(0x787+5776-0x1dfd),NON_GSM,
+(0x11d7+280-0x128f),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,(0x1219+27-0x1219),NON_GSM_P,
-NON_GSM,(0xb8d+979-0xf5f),NON_GSM_P,(0xc5b+4352-0x1d58),NON_GSM,
-(0x518+8749-0x26e6),NON_GSM,NON_GSM,(0x1049+4344-0x212f),NON_GSM,NON_GSM,NON_GSM
-,NON_GSM,NON_GSM,(0x20ab+1042-0x2499),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xcb3+1859-0x13db),NON_GSM_P,
+NON_GSM,(0x997+1209-0xe4f),NON_GSM_P,(0x189a+653-0x1b24),NON_GSM,
+(0x240c+814-0x26db),NON_GSM,NON_GSM,(0x11b8+2612-0x1bda),NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,(0x601+6999-0x2134),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,
-(0x2078+1514-0x264e),(0x144c+4553-0x2607),(0xd0a+5853-0x23cb),(0xe8+1847-0x7c4),
-NON_GSM_P,NON_GSM_P,NON_GSM_P,(0x94d+925-0xcd7),NON_GSM,(0xa79+1545-0x1063),
-(0x1fe1+1354-0x250d),NON_GSM,NON_GSM,(0x1b69+5-0x1b2e),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM_P,NON_GSM,(0x6a1+3394-0x13ca),(0x876+6810-0x2305),(0x1e40+83-0x1e37),
-NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM,(0x2363+796-0x2622),NON_GSM,
-(0x1249+1723-0x18a6),NON_GSM,NON_GSM,NON_GSM_P,(0x1f42+700-0x217f),
-(0xfb4+1268-0x1499),(0xec6+3169-0x1b0a),(0x2c0+1632-0x8a5),NON_GSM_P,NON_GSM_P,
-NON_GSM_P,(0xbb5+5627-0x21a7),NON_GSM_P,(0x152c+2137-0x1d80),(0x44b+1398-0x9bd),
-NON_GSM,NON_GSM_P,(0x313+3544-0x10e4),NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,
-NON_GSM_P,(0x13b1+527-0x15b8),(0x9d3+5151-0x1de6),(0x650+7886-0x24a2),NON_GSM_P,
-NON_GSM,NON_GSM_P,NON_GSM_P,(0x370+6157-0x1b77),NON_GSM,(0xfb0+4205-0x1f9f),
-NON_GSM,NON_GSM,NON_GSM};const unsigned short 
-zte_sms_GSMDefault_To_UCS2_Table_Ex[][(0x685+1987-0xe46)]={{(0xf57+5247-0x23cc),
-(0xbc9+22-0xbd3)},{(0x295+7990-0x21b7),(0x80c+5835-0x1e79)},{(0x207+1741-0x8ac),
-(0x1160+2759-0x1bac)},{(0x42+613-0x27e),(0x1fb+5441-0x16bf)},{
-(0x13fd+686-0x167c),(0x1f7+4372-0x12af)},{(0x2177+1332-0x266f),
-(0x261+3125-0xe3b)},{(0x1df1+1228-0x2280),(0x476+6829-0x1ea5)},{
-(0x3f+5176-0x1439),(0x448+1862-0xb31)},{(0xd07+5185-0x2108),(0x117+7523-0x1dfe)}
-,{(0x1c48+903-0x1f6a),(0x23ac+4146-0x1332)},};const unsigned short 
-UCS2_To_GSMDefault_Table_UCS2[][(0x10a+968-0x4d0)]={{(0x1545+193-0x15f6),
-(0x2077+1819-0x23fe)},{(0xa84+3181-0x16df),(0xf11+5670-0x2191)},{
-(0x139b+4304-0x2458),(0xbf1+6974-0x239c)},{(0x467+7650-0x2235),
-(0x1f46+2322-0x24bd)},{(0x27a+3923-0x11b8),(0xe05+2694-0x14e2)},{
-(0x2e4+4537-0x1487),(0x1d3f+2955-0x252a)},{(0x107+652-0x37c),(0x7f4+600-0x6a4)},
-{(0x87+4696-0x12c7),(0x767+8262-0x240a)},{(0x1371+2796-0x1e44),
-(0xba7+5631-0x1e0e)},{(0x24fc+163-0x2585),(0x14aa+1902-0x187a)},};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,(0xa68+1587-0x1091),NON_GSM,NON_GSM,
-(0x10c8+4196-0x211f),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x83f+7638-0x2601),(0xe2a+1557-0x1431),(0x12bf+4115-0x22b6),
+(0x1163+3729-0x1f99),NON_GSM_P,NON_GSM_P,NON_GSM_P,(0xb3d+5519-0x20b9),NON_GSM,
+(0x34f+1848-0xa68),(0x9d4+3704-0x182e),NON_GSM,NON_GSM,(0x4fc+3322-0x11b6),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM,(0x8b+4065-0x1053),(0xc06+6346-0x24c5)
+,(0xe92+5761-0x24b7),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM,(0x1293+2798-0x1d24),
+NON_GSM,(0x1e05+1992-0x256f),NON_GSM,NON_GSM,NON_GSM_P,(0xa34+4197-0x1a1a),
+(0x6b7+6096-0x1e78),(0x243+8114-0x21d8),(0x534+358-0x61f),NON_GSM_P,NON_GSM_P,
+NON_GSM_P,(0x1f4f+73-0x1f8f),NON_GSM_P,(0x1d4+3517-0xf8c),(0xbdd+1029-0xfde),
+NON_GSM,NON_GSM_P,(0xb8c+262-0xc8b),NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM_P,
+(0xecf+5113-0x22c0),(0x874+7086-0x2416),(0x797+2845-0x1238),NON_GSM_P,NON_GSM,
+NON_GSM_P,NON_GSM_P,(0x10b9+682-0x135d),NON_GSM,(0x85a+2589-0x11f9),NON_GSM,
+NON_GSM,NON_GSM};const unsigned short zte_sms_GSMDefault_To_UCS2_Table_Ex[][
+(0x1070+5075-0x2441)]={{(0xf5f+1763-0x1638),(0xe70+3380-0x1b98)},{
+(0x360+1178-0x7e6),(0x14b0+75-0x149d)},{(0xa38+1752-0x10e8),(0x235+2248-0xa82)},
+{(0x6f0+7063-0x225e),(0xd38+5440-0x21fb)},{(0x650+8281-0x267a),
+(0x8b+8048-0x1f9f)},{(0x16dc+3124-0x22d4),(0x273+8346-0x22b2)},{
+(0x506+5276-0x1965),(0xb03+5695-0x20c4)},{(0x295+2316-0xb63),
+(0x1232+2137-0x1a2e)},{(0x126f+5246-0x26ad),(0x93b+3584-0x16bf)},{
+(0x6f8+2-0x695),8364},};const unsigned short UCS2_To_GSMDefault_Table_UCS2[][
+(0x1653+648-0x18d9)]={{(0x38+3822-0xf16),(0x104a+3156-0x190a)},{
+(0x1781+3678-0x25cd),(0x503+2250-0xa27)},{(0x15f3+1173-0x1a75),
+(0xc35+7058-0x2434)},{(0x5cb+4242-0x1649),(0x534+1886-0x8f7)},{
+(0x16ff+1756-0x1dc6),(0x83c+5467-0x19ee)},{(0xe08+380-0xf6e),(0x977+3570-0x13c9)
+},{(0x9cd+903-0xd3d),(0x130f+27-0xf82)},{(0x18f9+3309-0x25ce),
+(0x15b0+5019-0x25a8)},{(0x3b9+4376-0x14b8),(0x5b8+6850-0x1ce2)},{
+(0x82a+617-0xa79),(0x3d6+7077-0x1bdd)},};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,(0x130a+4256-0x23a0),NON_GSM,NON_GSM,
+(0xe8+2403-0xa3e),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,(0x774+1729-0xe15),(0x105c+1595-0x1676),(0xaad+1197-0xf38),
-(0x2f5+2248-0xb9a),(0x1e6c+812-0x2196),(0xa2c+1002-0xdf1),(0xcf+9218-0x24ab),
-(0x6bf+5780-0x1d2c),(0x256+7050-0x1db8),(0x141d+1901-0x1b61),(0x607+4544-0x179d)
-,(0x1d1f+859-0x204f),(0x14c6+1141-0x190f),(0x15ef+1197-0x1a6f),
-(0x3c5+2038-0xb8d),(0x14e4+2880-0x1ff5),(0xbb5+753-0xe76),(0x16f4+577-0x1904),
-(0x1634+2792-0x20ea),(0x19d6+2741-0x2458),(0x1155+1081-0x155a),
-(0xbd9+5723-0x21ff),(0x588+6348-0x1e1e),(0xff+2692-0xb4c),(0x852+4943-0x1b69),
-(0x107+8120-0x2086),(0x820+2703-0x1275),(0xff+254-0x1c2),(0x1128+4235-0x2177),
-(0x1586+2818-0x204b),(0x4e0+91-0x4fd),(0x3bd+3546-0x1158),(0x869+1921-0xfea),
-(0x14f0+1481-0x1a78),(0x9d4+7318-0x2628),(0x1537+4260-0x2598),
-(0x1c76+623-0x1ea1),(0x789+6657-0x2145),(0x1391+4468-0x24bf),(0x20b+2620-0xc00),
-(0x183f+3740-0x2693),(0x679+6972-0x216c),(0x678+54-0x664),(0xb50+6505-0x246e),
-(0x11b9+2331-0x1a88),(0x1d37+874-0x2054),(0xba8+4221-0x1bd7),(0xe58+4647-0x2030)
-,(0x971+6196-0x2155),(0x148f+403-0x15d1),(0x339+2464-0xc87),(0xe8c+4080-0x1e29),
-(0xe30+1692-0x1478),(0x5f1+6878-0x207a),(0x162b+677-0x187a),(0x2035+153-0x2077),
-(0xb11+3987-0x1a4c),(0x19d6+636-0x1bf9),(0x1fe8+897-0x230f),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0x8b5+4172-0x18f0),NON_GSM,(0x115c+1767-0x17e2),
-(0xa2a+3473-0x1759),(0xad2+565-0xca4),(0x2f5+5369-0x178a),(0x958+5849-0x1fcc),
-(0x118a+1595-0x175f),(0x83+7135-0x1bfb),(0x429+315-0x4fc),(0x14ed+3857-0x2395),
-(0x399+2665-0xd98),(0x11e5+2504-0x1b42),(0x1b08+2852-0x25c0),(0x1d04+929-0x2038)
-,(0x17fc+731-0x1a69),(0x542+4646-0x16f9),(0xa52+3951-0x1951),(0xd9+9742-0x2676),
-(0x1c7c+2675-0x267d),(0x160+5901-0x17fa),(0x26a4+222-0x270e),(0xeaf+2694-0x18c0)
-,(0x20f6+779-0x238b),(0x91a+2674-0x1315),(0x54c+7867-0x238f),(0x6c4+1826-0xd6d),
-(0xdaf+2169-0x15ae),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x49d+1308-0x999),(0xd19+165-0xd9d),(0x891+7730-0x26a1),
+(0x107+9310-0x2542),(0xbea+2092-0x1414),(0xea3+3240-0x1b26),(0x224+2907-0xd59),
+(0x1c41+1545-0x2223),(0x9c4+3559-0x1783),(0x108f+5780-0x26fa),(0x267+193-0x2fe),
+(0x1342+3784-0x21df),(0x177+5424-0x167b),(0x14a1+1808-0x1b84),
+(0xd22+3123-0x1927),(0x1126+2099-0x192a),(0x1a5c+2841-0x2545),
+(0x988+6100-0x212b),(0x4f3+4794-0x177b),(0x4d3+6947-0x1fc3),(0x14f6+3327-0x21c1)
+,(0x8b7+523-0xa8d),(0x9c0+3269-0x164f),(0xd94+6566-0x2703),(0x1a5+7167-0x1d6c),
+(0x1daf+2090-0x25a0),(0x3c6+2019-0xb6f),(0x1e4c+1304-0x2329),
+(0x12df+3456-0x2023),(0x1947+2021-0x20ef),(0xb47+4127-0x1b28),
+(0x1771+152-0x17ca),(0x335+408-0x4cd),(0x4e8+6361-0x1d80),(0x1b7+902-0x4fb),
+(0x1216+2688-0x1c53),(0x1e7f+1629-0x2498),(0x2508+150-0x2559),(0x23b+336-0x345),
+(0x8da+387-0xa16),(0xc6+3046-0xc64),(0x41b+973-0x79f),(0x1c0+1987-0x939),
+(0x18fb+3202-0x2532),(0x156+4823-0x13e1),(0x4af+4171-0x14ad),
+(0x14af+3059-0x2054),(0x124b+2743-0x1cb3),(0x1612+2236-0x1e7e),
+(0x1992+3123-0x2574),(0x384+4349-0x142f),(0x452+6075-0x1bba),
+(0x167b+3018-0x21f1),(0x58a+1686-0xbcb),(0xb36+6965-0x2615),(0x750+1373-0xc56),
+(0x1b8f+709-0x1dfc),(0xd40+5499-0x2262),(0x1717+328-0x1805),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,(0x200d+1610-0x2646),NON_GSM,(0x95a+7681-0x26fa),
+(0x10e0+4725-0x22f3),(0xc0d+5564-0x2166),(0x39b+5795-0x19da),(0x2135+545-0x22f1)
+,(0x1335+2495-0x1c8e),(0xd51+2385-0x163b),(0x53a+6654-0x1ed0),
+(0x10aa+1394-0x15b3),(0xd85+1661-0x1398),(0x19b9+2584-0x2366),(0x735+818-0x9fb),
+(0x37f+1305-0x82b),(0x106+3372-0xdc4),(0x232b+846-0x260a),(0xceb+4265-0x1d24),
+(0x1572+388-0x1685),(0x2486+708-0x26d8),(0xd9c+3223-0x19c0),(0x262+6923-0x1cf9),
+(0x212+3478-0xf33),(0x1874+2986-0x23a8),(0x8bb+7083-0x23ef),(0x1fb+7292-0x1dff),
+(0xf2a+4894-0x21cf),(0x1aa2+1853-0x2165),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,(0x10ff+5206-0x253a),(0x534+3326-0x11f2),NON_GSM,
+(0x2b8+8868-0x255b),(0x6f7+6996-0x2227),(0x1b6+3189-0xe28),NON_GSM,
+(0x1d8f+135-0x1db7),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,
-(0x2113+148-0x218c),(0x9a8+1964-0x1114),NON_GSM,(0xd14+4169-0x1d5c),
-(0x1209+4367-0x22f4),(0x17f1+2117-0x2033),NON_GSM,(0xf64+5654-0x251b),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,(0xf51+5036-0x229d),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0xbb8+25-0xb76),(0x195b+1282-0x1e4f),(0x1f3+1398-0x74d),(0x51+8972-0x2354),
-NON_GSM,(0x1f49+1674-0x25b4),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x102a+5826-0x268f),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x1cc1+2470-0x260b),NON_GSM,(0x916+1941-0x10a0),NON_GSM,NON_GSM,NON_GSM,
-(0x4c4+2793-0xf4f),NON_GSM,NON_GSM,(0xa15+2263-0x12ce),(0x235d+419-0x2481),
-NON_GSM,NON_GSM,NON_GSM,(0x1714+3892-0x25cd),(0xb40+4298-0x1bfb),
-(0x1ad6+1878-0x220f),NON_GSM,(0x890+1233-0xd5d),(0xf83+1929-0x1707),NON_GSM,
-NON_GSM,(0x81f+2028-0x1004),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x11dd+1401-0x16d9)
-,(0xf86+2980-0x1b22),NON_GSM,NON_GSM,NON_GSM,(0xa66+7080-0x2592),NON_GSM,
-(0xaa1+4695-0x1cec),(0x15b4+3890-0x24e0),NON_GSM,NON_GSM,(0x11e3+3877-0x208a),
-NON_GSM,NON_GSM,NON_GSM};const unsigned short 
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={(0x4b2+7272-0x20da),
-(0x106a+5807-0x2676),(0x1119+4406-0x222b),(0x105b+3214-0x1c44),
-(0xc08+4581-0x1d03),(0x26f2+232-0x26f1),(0x3ef+7025-0x1e66),(0x384+7925-0x218c),
-(0x9d2+5086-0x1cbd),(0xa23+5530-0x1ed6),(0xfe9+5892-0x26e3),(0x660+854-0x8e2),
-(0x536+815-0x771),(0x14ef+62-0x1520),(0xc39+1705-0x1221),(0x34a+2437-0xbee),
-(0x964+6320-0x1e80),(0xb9b+3200-0x17bc),(0x832+4314-0x1862),(0x6bc+1796-0xcf9),
-(0x452+5602-0x1974),8734,(0xed5+583-0x10be),(0x15ec+162-0x1632),8364,
-(0xf71+3100-0x1aba),(0x7a0+6330-0x1fde),(0x840+3427-0x1503),(0x1985+1551-0x1ed2)
-,(0x16b+4015-0x1038),(0xe8f+565-0xffa),(0x1ac4+1900-0x2167),(0x3ed+4147-0x1400),
-(0x5f+2667-0xaa9),(0x3f4+198-0x498),(0x6bc+846-0x9e7),(0x8b0+6442-0x212a),
-(0xa2f+1765-0x10ef),(0x10ab+2598-0x1aab),(0xaca+2094-0x12d1),
-(0x135a+3522-0x20f4),(0xe3b+814-0x1140),(0x831+602-0xa61),(0x805+3388-0x1516),
-(0x165f+1763-0x1d16),(0x10fc+3323-0x1dca),(0x1735+2862-0x2235),
-(0x18b4+541-0x1aa2),(0x1082+5121-0x2453),(0xddd+4407-0x1ee3),(0xf91+3969-0x1ee0)
-,(0xa67+6090-0x21fe),(0x1aa+5679-0x17a5),(0x471+2560-0xe3c),(0x18b8+1002-0x1c6c)
-,(0xd71+953-0x10f3),(0x7d0+7087-0x2347),(0x680+3332-0x134b),(0x139c+4529-0x2513)
-,(0x452+215-0x4ee),(0x1b7c+1181-0x1fdd),(0x100d+241-0x10c1),(0xd12+1897-0x143d),
-(0xef7+5080-0x2290),(0x2b6+5872-0x18d9),(0x266+1688-0x8bd),(0x19a6+2126-0x21b2),
-(0x1d60+2453-0x26b2),(0x18aa+1451-0x1e11),(0xf62+4772-0x21c1),
-(0x1d13+1728-0x238d),(0x1955+840-0x1c56),(0x1494+4534-0x2602),
-(0x488+3590-0x1245),(0x1468+3603-0x2231),(0x1523+1144-0x1950),(0x374+3149-0xf75)
-,(0xba+2050-0x86f),(0xed4+4026-0x1e40),(0x130+5326-0x15af),(0xeec+4562-0x206e),
-(0x1854+229-0x18e8),(0x909+2441-0x1240),(0xb6b+2178-0x139a),(0x1350+3097-0x1f15)
-,(0xc41+4750-0x1e7a),(0x862+257-0x90d),(0x5c2+5667-0x1b8e),(0x48f+2930-0xfa9),
-(0xe6+2288-0x97d),(0xf26+3432-0x1c34),(0x17cd+1158-0x1b90),(0x151a+1199-0x18f4),
-(0x845+1937-0xefc),(0x1034+5378-0x245a),(0x9a3+939-0xca7),(0x5c8+6972-0x2086),
-(0x909+2762-0x1372),(0xbb5+1275-0x104e),(0xee3+4365-0x1f8d),(0x21f7+268-0x229f),
-(0x1dc+6217-0x19c0),(0xf1b+1688-0x154d),(0x6e9+1391-0xbf1),(0x2181+930-0x24bb),
-(0x11d7+4268-0x221a),(0xfe1+5953-0x26b8),(0x1316+3373-0x1fd8),
-(0x1727+882-0x1a2d),(0xecb+3638-0x1c94),(0x1263+1735-0x18bc),(0xd43+5867-0x23bf)
-,(0x8db+42-0x895),(0x48d+5485-0x1989),(0x41b+2793-0xe92),(0x356+8372-0x2397),
-(0x323+6481-0x1c00),(0x708+1977-0xe4c),(0xe6b+970-0x11bf),(0xdf+5558-0x161e),
-(0x5e1+2487-0xf20),(0x1f50+714-0x21a1),(0xe10+3633-0x1bc7),(0x6f2+8401-0x26e0),
-(0x96a+3322-0x156f),(0x6dc+2764-0x1148),(0xde8+4809-0x1fb5),(0xb87+3235-0x174a)}
-;const unsigned short zte_sms_GSMDefault_To_UCS2_Table[]={(0x18c7+600-0x1adf),
-(0x1c90+1430-0x2183),(0x249+6923-0x1d30),(0xc1+2121-0x865),(0x1ced+1958-0x23ab),
-(0x1e4+9004-0x2427),(0x287+2454-0xb24),(0x1b62+1924-0x21fa),(0x1814+2668-0x218e)
-,(0x128+6626-0x1a43),(0xd14+1707-0x13b5),(0x1aa1+25-0x19e2),(0x130a+2182-0x1a98)
-,(0x96b+4167-0x19a5),(0x6f5+5016-0x19c8),(0xb2f+5108-0x1e3e),(0xca9+3138-0x1557)
-,(0xbe6+263-0xc8e),(0x82a+5142-0x189a),(0x3ff+4562-0x123e),(0xe79+6929-0x25ef),
-(0x1b3c+3632-0x25c3),(0x728+8574-0x2506),(0xb49+2311-0x10a8),
-(0x1513+1051-0x158b),(0x1321+1749-0x165e),(0x796+1886-0xb56),(0xf03+1523-0x1456)
-,(0x1a8b+9-0x19ce),(0x650+7817-0x23f3),(0x4ef+1479-0x9d7),(0x545+6387-0x1d6f),
-(0x163a+141-0x16a7),(0x2309+222-0x23c6),(0x1f90+1376-0x24ce),
-(0x231f+1042-0x270e),(0xef1+1484-0x1419),(0x881+6643-0x224f),
-(0x101f+1783-0x16f0),(0x969+4335-0x1a31),(0x4f+6461-0x1964),(0x83b+7123-0x23e5),
-(0x22c3+57-0x22d2),(0x1fad+1846-0x26b8),(0x2a7+5591-0x1852),(0xf0a+4978-0x224f),
-(0x22c+8297-0x2267),(0x396+3426-0x10c9),(0x2144+184-0x21cc),(0xc88+2988-0x1803),
-(0x1e56+1409-0x23a5),(0x47c+2879-0xf88),(0x16b3+2720-0x211f),(0x694+3-0x662),
-(0xc0+3937-0xfeb),(0x1110+3859-0x1fec),(0x936+5423-0x1e2d),(0x9d4+4467-0x1b0e),
-(0x2147+560-0x233d),(0x1c19+680-0x1e86),(0x8cd+2490-0x124b),(0x1ab1+2394-0x23ce)
-,(0x7c+9569-0x259f),(0x9d9+2086-0x11c0),(0x1da+2970-0xcd3),(0x7f9+7720-0x25e0),
-(0x21af+302-0x229b),(0x1ee1+1856-0x25de),(0x125d+1865-0x1962),
-(0xa31+6852-0x24b0),(0xf90+600-0x11a2),(0x223b+921-0x258d),(0x7e6+1228-0xc6a),
-(0xbda+5319-0x2058),(0xbb2+2411-0x14d3),(0x1917+1671-0x1f53),(0x288+4943-0x158b)
-,(0x1ac+936-0x507),(0xb27+1734-0x119f),(0x9a8+3761-0x180a),(0x1b2f+2152-0x2347),
-(0x15f3+3325-0x229f),(0x11e9+2634-0x1be1),(0xe69+4290-0x1ed8),
-(0x11c1+3610-0x1f87),(0x112+6237-0x191a),(0x77f+717-0x9f6),(0x1015+4679-0x2205),
-(0x522+215-0x5a1),(0xbd8+6583-0x2536),(0x91f+2155-0x1130),(0x1e12+2084-0x2572),
-(0x1168+3296-0x1d72),(0x1001+2596-0x1954),(0x1a76+1738-0x2064),(0x965+257-0x9bf)
-,(0x18f4+1510-0x1e1b),(0x1c8f+954-0x1fe8),(0x1a3a+2574-0x23e6),
-(0x5bb+3612-0x1374),(0x1094+5497-0x25a9),(0x487+6880-0x1f02),
-(0x103c+5415-0x24fd),(0xa8d+6136-0x221e),(0x808+6006-0x1f16),(0x926+6240-0x211d)
-,(0x104d+3690-0x1e4d),(0x31f+6631-0x1c9b),(0xeb4+431-0xff7),(0x1b6f+1523-0x20f5)
-,(0x566+8355-0x259b),(0x93c+4032-0x188d),(0x166a+3801-0x24d3),
-(0xed3+1408-0x13e2),(0xee7+246-0xf6b),(0x1a52+884-0x1d53),(0x254b+187-0x2592),
-(0x1582+470-0x16e3),(0x2452+224-0x24bc),(0x1472+1149-0x1878),(0x1295+536-0x1435)
-,(0x427+4095-0x13ad),(0x5e0+6986-0x20b0),(0x3e6+5366-0x17f8),
-(0x1a7f+3043-0x256c),(0x111c+2184-0x18b3),(0xa70+5748-0x1fe8),
-(0x75f+3156-0x12d3)};int Bytes2String(const unsigned char*pSrc,char*pDst,int 
-nSrcLength){const char tab[]="0123456789ABCDEF";int i=(0x9a3+3334-0x16a9);if(
-pSrc==NULL||pDst==NULL||nSrcLength<(0x335+8953-0x262e)){return-
-(0xe51+922-0x11ea);}for(i=(0x1ad7+1428-0x206b);i<nSrcLength;i++){*pDst++=tab[*
-pSrc>>(0xcc7+1323-0x11ee)];*pDst++=tab[*pSrc&(0x9f9+6180-0x220e)];pSrc++;}*pDst=
-'\0';return nSrcLength*(0x1799+2932-0x230b);}int String2Bytes(const char*pSrc,
-unsigned char*pDst,int nSrcLength){int i=(0x8b5+3001-0x146e);if(pSrc==NULL||pDst
-==NULL||nSrcLength<(0xacf+1195-0xf7a)){return-(0x5aa+128-0x629);}for(i=
-(0x12ac+5200-0x26fc);i<nSrcLength;i+=(0x2d2+9201-0x26c1)){if(*pSrc>=
-((char)(0xb82+641-0xdd3))&&*pSrc<=((char)(0xed3+4889-0x21b3))){*pDst=(*pSrc-
-((char)(0x69d+1218-0xb2f)))<<(0x1d96+397-0x1f1f);}else{*pDst=((toupper(*pSrc)-
-((char)(0x139d+2311-0x1c63)))+(0x1c2+2931-0xd2b))<<(0xd81+2334-0x169b);}pSrc++;
-if(*pSrc>=((char)(0xdc8+4473-0x1f11))&&*pSrc<=((char)(0x9ec+464-0xb83))){*pDst|=
-*pSrc-((char)(0x924+6613-0x22c9));}else{*pDst|=(toupper(*pSrc)-
-((char)(0x5b6+1873-0xcc6)))+(0xa35+3496-0x17d3);}pSrc++;pDst++;}return 
-nSrcLength/(0xa55+2418-0x13c5);}int EncodeUcs2(const char*pSrc,unsigned char*
-pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1400+4227-0x2483))
-{return-(0x436+7739-0x2270);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);
-return nSrcLength/(0x256+1171-0x6e7);}int Encode7bit(const char*pSrc,unsigned 
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x84b+1169-0xc7c),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x299+8732-0x245a),(0x1055+4754-0x22d9),
+(0x6e9+4960-0x1a2d),(0x10d1+5325-0x2595),NON_GSM,(0x106a+2936-0x1bc3),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1822+3810-0x26a7),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x1cb8+459-0x1e27),NON_GSM,(0xfe8+1190-0x1483),NON_GSM,
+NON_GSM,NON_GSM,(0x855+1771-0xee2),NON_GSM,NON_GSM,(0x341+1951-0xac2),
+(0x1671+2406-0x1f58),NON_GSM,NON_GSM,NON_GSM,(0x1cda+2454-0x25f5),
+(0xf62+320-0x1093),(0xde1+1611-0x140f),NON_GSM,(0x1489+1849-0x1bbe),
+(0x329+6601-0x1ced),NON_GSM,NON_GSM,(0x2577+57-0x25a9),NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x102b+3116-0x1bda),(0xbf5+664-0xe85),NON_GSM,NON_GSM,NON_GSM,
+(0x99d+4229-0x19a6),NON_GSM,(0x10eb+1870-0x182d),(0xcb7+4060-0x1c8d),NON_GSM,
+NON_GSM,(0x377+3383-0x1030),NON_GSM,NON_GSM,NON_GSM};const unsigned short 
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={(0x125+5823-0x17a4),(0x2c7+3932-0x1180)
+,(0x97d+7160-0x2551),(0x113d+4175-0x20e7),(0x5b7+7726-0x22fb),
+(0x1f7b+485-0x2077),(0xae9+3481-0x1788),(0x70a+7829-0x24b2),(0xb93+980-0xe74),
+(0x1766+3970-0x2601),(0xa77+2191-0x12fc),(0x2125+1719-0x2708),
+(0x2283+326-0x22d5),(0x125d+777-0x1559),(0x77d+2925-0x1229),(0xc64+1497-0x115c),
+(0x6fd+5333-0x183e),(0x645+6922-0x20f0),(0x2d3+2441-0xbb2),(0x230+8011-0x20b4),
+(0x1228+2524-0x1b44),8734,(0x1e7+826-0x4c3),(0x237+8554-0x2345),8364,
+(0xde8+6604-0x26e1),(0x6ea+1636-0xcd2),(0x66a+1581-0xbf7),(0xa1a+6200-0x2190),
+(0x394+3570-0x10a4),(0x2e5+2092-0xa47),(0x156d+1131-0x190f),(0x1242+240-0x1312),
+(0x5e0+5542-0x1b65),(0x1580+402-0x16f0),(0xc26+5382-0x2109),(0xe26+3937-0x1cd7),
+(0x1591+1608-0x1bb4),(0xe7+859-0x41c),(0xc3+8088-0x2034),(0xf18+5947-0x262b),
+(0xafc+1676-0x115f),(0x2b8+9245-0x26ab),(0x63f+5247-0x1a93),(0x90+7647-0x1e43),
+(0x7bc+7645-0x256c),(0x11b+1518-0x6db),(0x520+7969-0x2412),(0x149a+4085-0x245f),
+(0x37f+8593-0x24df),(0x275+8589-0x23d0),(0x15f+6872-0x1c04),(0xdd1+3353-0x1ab6),
+(0xee9+1516-0x14a0),(0x3cd+1409-0x918),(0xd82+3503-0x1afa),(0x31b+6165-0x1af8),
+(0xa00+6233-0x2220),(0x709+3687-0x1536),(0x1b52+2314-0x2421),(0x7fc+558-0x9ee),
+(0x8b4+5504-0x1df7),(0x561+8613-0x26c8),(0x133a+3888-0x222b),(0x23a+2052-0x971),
+(0xd10+1181-0x116c),(0x13a8+2309-0x1c6b),(0x15c1+45-0x15ab),(0x1eb+3531-0xf72),
+(0x13af+2850-0x1e8c),(0xa06+7058-0x2552),(0x241+1524-0x7ee),(0x1460+1593-0x1a51)
+,(0x632+4370-0x16fb),(0x3a3+6206-0x1b97),(0x62f+3239-0x128b),(0x329+6952-0x1e05)
+,(0x877+5650-0x1e3c),(0x4f1+2776-0xf7b),(0x2a4+1567-0x874),(0x135+5605-0x16ca),
+(0x7ca+7139-0x235c),(0x50a+688-0x768),(0x1b53+840-0x1e48),(0x1511+3025-0x208e),
+(0xbb9+6005-0x22d9),(0x6df+1141-0xafe),(0xf07+6194-0x26e2),(0xbf8+1045-0xfb5),
+(0xc64+3843-0x1b0e),(0x71b+1063-0xae8),(0x19f4+488-0x1b19),(0x290+2283-0xaa6),
+(0xa7d+1831-0x10ca),(0xd41+4561-0x1e36),(0x96d+1399-0xe3d),(0xe4+5843-0x1739),
+(0x7f3+458-0x95c),(0x293+5570-0x17f3),(0x1a9b+3277-0x2705),(0xf80+4895-0x223b),
+(0x15bb+628-0x17ca),(0x22f+5867-0x18b4),(0xf99+2678-0x19a8),(0xd6d+4157-0x1d42),
+(0x11fb+4239-0x2221),(0xf80+1373-0x1473),(0xafc+6413-0x239e),(0x9bb+6007-0x20c6)
+,(0x805+5142-0x1bae),(0x446+4283-0x1493),(0xf5d+138-0xf78),(0x9f5+605-0xbe2),
+(0xd7+3829-0xf5b),(0x7a2+4854-0x1a26),(0x1345+2758-0x1d98),(0x62a+6142-0x1db4),
+(0x1bac+2672-0x25a7),(0x7c3+2308-0x1051),(0xc0f+5862-0x227e),(0xdbd+3541-0x1b1a)
+,(0x404+171-0x436),(0x388+21-0x323),(0x343+4282-0x131a),(0x19b3+2208-0x215e),
+(0x4eb+6808-0x1f23),(0x732+626-0x8a8),(0x4af+1833-0xaf8)};const unsigned short 
+zte_sms_GSMDefault_To_UCS2_Table[]={(0xdf7+876-0x1123),(0xc3d+5503-0x2119),
+(0x2256+1087-0x2671),(0x268+4047-0x1192),(0x610+1550-0xb36),(0xd33+5082-0x2024),
+(0x1ea4+645-0x2030),(0x66d+6854-0x2047),(0x47d+5321-0x1854),(0x423+603-0x5b7),
+(0x1877+551-0x1a94),(0xa26+6593-0x230f),(0x94d+60-0x891),(0x211+4173-0x1251),
+(0x93a+3998-0x1813),(0x1612+1210-0x19e7),(0x1c43+1163-0x1d3a),
+(0x1a31+2178-0x2254),(0x429+6492-0x19df),(0x11cc+3829-0x1d2e),
+(0x8a1+7391-0x21e5),(0xca9+1690-0xf9a),(0xa41+1261-0xb8e),(0xa46+1308-0xbba),
+(0xad4+2844-0x124d),(0xb84+1122-0xc4e),(0x1efa+2332-0x2478),(0xe6c+1549-0x13d9),
+(0xb8a+6762-0x252e),(0xd66+3081-0x1889),(0x74f+6792-0x20f8),(0x156+5327-0x155c),
+(0x10ed+5216-0x252d),(0x11d6+837-0x14fa),(0x16d4+1901-0x1e1f),
+(0x17a2+478-0x195d),(0x1e2d+23-0x1da0),(0xd05+4356-0x1de4),(0x419+1108-0x847),
+(0x844+5319-0x1ce4),(0x19e9+2672-0x2431),(0x1479+3103-0x206f),
+(0xa0f+6644-0x23d9),(0x9cc+1581-0xfce),(0x1c33+116-0x1c7b),(0x5e4+8273-0x2608),
+(0x570+4904-0x186a),(0x127f+4550-0x2416),(0x318+2530-0xcca),(0x2542+19-0x2524),
+(0x131f+4795-0x25a8),(0xf83+1424-0x14e0),(0x419+5400-0x18fd),(0xf2a+3547-0x1cd0)
+,(0x3d0+3599-0x11a9),(0x22d+8826-0x2470),(0xd43+4037-0x1cd0),(0xee4+5328-0x237b)
+,(0x1df0+993-0x2197),(0x772+6413-0x2044),(0x8b8+1613-0xec9),(0x1e07+1728-0x248a)
+,(0x1499+1053-0x1878),(0x1b9d+1412-0x20e2),(0x1800+1254-0x1c45),
+(0x1356+1480-0x18dd),(0x298+2021-0xa3b),(0x9af+2442-0x12f6),(0x258f+392-0x26d3),
+(0xe7+8597-0x2237),(0x1622+189-0x1699),(0x11c7+4849-0x2471),(0x1900+1863-0x1fff)
+,(0x102c+5322-0x24ad),(0x952+3009-0x14c9),(0xd00+2468-0x1659),
+(0x884+5640-0x1e40),(0xc2a+5163-0x2008),(0x7cd+6222-0x1fcd),(0x7d+6541-0x19bb),
+(0x463+2373-0xd58),(0x17f4+1970-0x1f55),(0x2a5+5942-0x1989),(0x1ae5+3043-0x2675)
+,(0x89+4342-0x112b),(0xac5+2265-0x1349),(0x57b+2845-0x1042),(0x17f+1543-0x72f),
+(0x75+5215-0x147c),(0x10fa+3147-0x1cec),(0x411+7304-0x203f),(0x10cd+2119-0x1850)
+,(0x424+3757-0x11fb),(0x6d5+1818-0xd1e),(0xda8+6534-0x2652),(0x800+971-0xb24),
+(0x1c3f+1422-0x210e),(0x2233+684-0x247e),(0x538+3823-0x13c5),(0xa15+126-0xa30),
+(0x9d6+7545-0x26eb),(0x1cd2+1224-0x2135),(0x186c+723-0x1ad9),(0x71b+4033-0x1675)
+,(0x8b7+311-0x986),(0x831+2922-0x1332),(0x4d3+3685-0x12ce),(0xc3+4076-0x1044),
+(0x1281+4906-0x253f),(0x27c+7277-0x1e7c),(0x1919+618-0x1b15),(0x4ad+1105-0x88f),
+(0x930+356-0xa24),(0x1392+700-0x15dd),(0xb42+3289-0x17a9),(0xb1+2062-0x84c),
+(0x1233+2162-0x1a31),(0x18ac+1622-0x1e8d),(0x2f5+4648-0x14a7),
+(0xd7d+2011-0x14e1),(0xe8+211-0x143),(0x1add+460-0x1c30),(0x27d+8033-0x2164),
+(0x7f0+2564-0x1110),(0x9e4+5576-0x1eb6),(0x1c35+2586-0x255e),(0x57d+541-0x69e),
+(0x1891+3804-0x268d)};int Bytes2String(const unsigned char*pSrc,char*pDst,int 
+nSrcLength){const char tab[]="0123456789ABCDEF";int i=(0x922+5675-0x1f4d);if(
+pSrc==NULL||pDst==NULL||nSrcLength<(0x1bb4+1588-0x21e8)){return-
+(0xcb+9585-0x263b);}for(i=(0x1e4+2491-0xb9f);i<nSrcLength;i++){*pDst++=tab[*pSrc
+>>(0x10fc+1156-0x157c)];*pDst++=tab[*pSrc&(0x346+8156-0x2313)];pSrc++;}*pDst=
+'\0';return nSrcLength*(0x5e9+8391-0x26ae);}int String2Bytes(const char*pSrc,
+unsigned char*pDst,int nSrcLength){int i=(0xb19+6112-0x22f9);if(pSrc==NULL||pDst
+==NULL||nSrcLength<(0x3eb+2744-0xea3)){return-(0x18f4+1777-0x1fe4);}for(i=
+(0x189+5389-0x1696);i<nSrcLength;i+=(0x1f53+7-0x1f58)){if(*pSrc>=
+((char)(0x816+397-0x973))&&*pSrc<=((char)(0x1d32+1152-0x2179))){*pDst=(*pSrc-
+((char)(0x4ab+8584-0x2603)))<<(0x13d8+4502-0x256a);}else{*pDst=((toupper(*pSrc)-
+((char)(0x686+5225-0x1aae)))+(0x15e3+1808-0x1ce9))<<(0x985+3670-0x17d7);}pSrc++;
+if(*pSrc>=((char)(0x2fb+4498-0x145d))&&*pSrc<=((char)(0x52a+3482-0x128b))){*pDst
+|=*pSrc-((char)(0xba7+3658-0x19c1));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x16b0+2477-0x201c)))+(0x3f8+635-0x669);}pSrc++;pDst++;}return 
+nSrcLength/(0x207+6558-0x1ba3);}int EncodeUcs2(const char*pSrc,unsigned char*
+pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1c25+795-0x1f40)){
+return-(0x15ac+1127-0x1a12);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);
+return nSrcLength/(0x1ee0+1102-0x232c);}int Encode7bit(const char*pSrc,unsigned 
 char*pDst,int nSrcLength){int nSrc;int nDst;int nChar;unsigned char nLeft=
-(0x90+654-0x31e);if(pSrc==NULL||pDst==NULL||nSrcLength<(0xc96+940-0x1042)){
-return-(0xea1+178-0xf52);}nSrc=(0x119f+1688-0x1837);nDst=(0x10a6+4749-0x2333);
-while(nSrc<nSrcLength){nChar=nSrc&(0xb16+3956-0x1a83);if(nChar==
-(0x146+8706-0x2348)){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>
-(0xac8+1292-0xfd3))&&(nSrc==(nSrcLength-(0x1391+1514-0x197a)))){nDst++;}}else{*
-pDst=(*pSrc<<((0x12cf+1570-0x18e9)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst
-++;}pSrc++;nSrc++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst
-,UINT8 TP_FCS){SINT32 nLength=(0xc07+2603-0x1632);SINT32 nDstLength=
-(0x481+281-0x59a);UINT8 buf[(0x92b+6721-0x226c)]={(0x1ccc+2011-0x24a7)};if(NULL
-==pDst){return-(0x6cf+2675-0x1141);}if(TP_FCS!=(0x7d1+7393-0x24b2)){buf[
-(0xccb+1431-0x1262)]=(0x1d70+1231-0x223f);buf[(0x1b+8018-0x1f6c)]=TP_FCS;buf[
-(0x1074+5596-0x264e)]=(0x1919+1339-0x1e54);nDstLength+=Bytes2String(buf,&pDst[
-nDstLength],(0xbd9+6269-0x2453));}else{buf[(0xb51+5643-0x215c)]=
-(0x8b+8570-0x2205);buf[(0xa28+5399-0x1f3e)]=(0x4b6+485-0x69b);nDstLength+=
-Bytes2String(buf,&pDst[nDstLength],(0x688+2900-0x11da));}return nDstLength;}
-unsigned long zUfiSms_ConvertAsciiToGsmDefault(const unsigned char*inputs,
-unsigned char*outputs,unsigned long len){unsigned long i=(0x593+3368-0x12bb);
-unsigned long j=(0x256+7690-0x2060);unsigned long k=(0x7b5+3688-0x161d);if(NULL
-==inputs||NULL==outputs){printf(
+(0xe4b+209-0xf1c);if(pSrc==NULL||pDst==NULL||nSrcLength<(0xa0b+3455-0x178a)){
+return-(0x107a+1930-0x1803);}nSrc=(0x260+8354-0x2302);nDst=(0x476+4102-0x147c);
+while(nSrc<nSrcLength){nChar=nSrc&(0xb67+5245-0x1fdd);if(nChar==
+(0x1066+984-0x143e)){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>
+(0x100a+4460-0x2175))&&(nSrc==(nSrcLength-(0x19c0+831-0x1cfe)))){nDst++;}}else{*
+pDst=(*pSrc<<((0x3fc+6913-0x1ef5)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst++
+;}pSrc++;nSrc++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst,
+UINT8 TP_FCS){SINT32 nLength=(0xea0+3580-0x1c9c);SINT32 nDstLength=
+(0x127f+4698-0x24d9);UINT8 buf[(0xac3+864-0xd23)]={(0x1387+1098-0x17d1)};if(NULL
+==pDst){return-(0x121+4493-0x12ad);}if(TP_FCS!=(0x343+1223-0x80a)){buf[
+(0x1d63+681-0x200c)]=(0x24c+8449-0x234d);buf[(0x1d5b+1448-0x2302)]=TP_FCS;buf[
+(0x9f4+1500-0xfce)]=(0x2c3+4964-0x1627);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0x13ad+318-0x14e8));}else{buf[(0xf68+551-0x118f)]=(0xb14+329-0xc5d)
+;buf[(0x331+5494-0x18a6)]=(0x8d5+3132-0x1511);nDstLength+=Bytes2String(buf,&pDst
+[nDstLength],(0xf3b+3519-0x1cf8));}return nDstLength;}unsigned long 
+zUfiSms_ConvertAsciiToGsmDefault(const unsigned char*inputs,unsigned char*
+outputs,unsigned long len){unsigned long i=(0x11+4233-0x109a);unsigned long j=
+(0x1096+3910-0x1fdc);unsigned long k=(0x50f+8562-0x2681);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(0x150a+3755-0x23b5);}for(i=(0x248d+640-0x270d);i<len;i++){j=inputs[i];if(
-g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x452+4028-0x130f)){outputs[k]=
+return(0x451+3220-0x10e5);}for(i=(0x8e3+6883-0x23c6);i<len;i++){j=inputs[i];if(
+g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x142a+399-0x14ba)){outputs[k]=
 g_zUfiSms_AsciiToGsmdefaultTable[j];}else{outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0x64b+2213-0xee8);k++;outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&(0x17b6+1157-0x1b3c));}k++;}return k;}
+g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0x1d4a+2276-0x2626);k++;outputs[k]=
+(g_zUfiSms_AsciiToGsmdefaultTable[j]&(0x1dc+2895-0xc2c));}k++;}return k;}
 unsigned long zUfiSms_ConvertUcs2ToSpanish(const unsigned char*def,unsigned char
-*gsm_default,unsigned long len){unsigned long i=(0x1b71+915-0x1f04);unsigned 
-long k=(0xd63+2192-0x15f3);unsigned long p=(0x7c3+4410-0x18fd);unsigned long tmp
-=(0x11c4+4317-0x22a1);unsigned long s1=(0x4bd+642-0x73f),s2=(0x3ad+8936-0x2695);
-unsigned long q=(0x613+7939-0x2516);s1=sizeof(
+*gsm_default,unsigned long len){unsigned long i=(0x1d7d+2148-0x25e1);unsigned 
+long k=(0xee3+3810-0x1dc5);unsigned long p=(0x203d+1399-0x25b4);unsigned long 
+tmp=(0xac9+5211-0x1f24);unsigned long s1=(0x1076+4144-0x20a6),s2=
+(0xd5d+3203-0x19e0);unsigned long q=(0x8f7+7633-0x26c8);s1=sizeof(
 zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0x931+1755-0x100c)]);s2=sizeof(
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0x1151+5157-0x2576)]);s2=sizeof(
 Ucs2_To_Gsm7_SPANISH_Table_UCS)/sizeof(Ucs2_To_Gsm7_SPANISH_Table_UCS[
-(0x1b9+4545-0x137a)]);for(i=(0xbaf+5204-0x2003);i<len;i++){if(def[i]==
-(0x149c+3036-0x2078)){i++;if(Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]!=NON_GSM){
+(0x54a+6017-0x1ccb)]);for(i=(0x58d+733-0x86a);i<len;i++){if(def[i]==
+(0x3c9+7699-0x21dc)){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]==(0x698+1069-0xaa5))){
-gsm_default[k]=(0x497+1153-0x8f8);k++;continue;}for(q=(0x1baa+464-0x1d7a);q<s1;q
-++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x3b3+1466-0x96c)]){
-gsm_default[k]=(0x9b8+6223-0x21ec);k++;gsm_default[k]=
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x114a+987-0x1525)];break;}}}else{tmp=
-(def[i]<<(0x1b8f+829-0x1ec4))+def[i+(0x2bc+405-0x450)];i++;if(tmp==
-(0x24ef+6182-0x1c69)){gsm_default[k]=(0x299+1486-0x84c);k++;gsm_default[k]=
-(0xbd4+1182-0x100d);k++;}for(p=(0xd8d+3923-0x1ce0);p<s2;p++){if(tmp==
-Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0xfe1+1315-0x1503)]){gsm_default[k]=
-Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0x4a+7035-0x1bc5)];break;}}}k++;}gsm_default[
-k]='\0';return k;}unsigned long zUfiSms_ConvertUcs2ToPortuguese(const unsigned 
+Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x742+6748-0x217e)))
+{gsm_default[k]=(0x1574+1967-0x1d03);k++;continue;}for(q=(0x545+8158-0x2523);q<
+s1;q++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x18+7583-0x1db6)])
+{gsm_default[k]=(0x1420+3362-0x2127);k++;gsm_default[k]=
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0xa00+6333-0x22bd)];break;}}}else{tmp=
+(def[i]<<(0x129b+2070-0x1aa9))+def[i+(0x16ea+3603-0x24fc)];i++;if(tmp==
+(0x226b+833-0x500)){gsm_default[k]=(0x2400+526-0x25f3);k++;gsm_default[k]=
+(0x1907+2419-0x2215);k++;}for(p=(0x938+3569-0x1729);p<s2;p++){if(tmp==
+Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0x5d8+2384-0xf27)]){gsm_default[k]=
+Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0x723+2662-0x1189)];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=
-(0x1477+2929-0x1fe8);unsigned long k=(0x404+1225-0x8cd);unsigned long p=
-(0x681+1259-0xb6c);unsigned long tmp=(0xb11+5801-0x21ba);unsigned long s1=
-(0x610+7549-0x238d),s2=(0x926+2497-0x12e7);unsigned long q=(0x1df9+402-0x1f8b);
+(0xb67+4996-0x1eeb);unsigned long k=(0x405+3624-0x122d);unsigned long p=
+(0x6f9+4356-0x17fd);unsigned long tmp=(0x1da+5171-0x160d);unsigned long s1=
+(0x145b+406-0x15f1),s2=(0x25d+7521-0x1fbe);unsigned long q=(0xaa1+4451-0x1c04);
 s1=sizeof(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x1206+4681-0x244f)]);s2=sizeof(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x995+3059-0x1588)]);s2=sizeof(
 Ucs2_To_Gsm7_PORTUGUESE_Table_UCS)/sizeof(Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[
-(0xd97+1629-0x13f4)]);for(i=(0x795+5296-0x1c45);i<len;i++){if(def[i]==
-(0xd27+6161-0x2538)){i++;if(Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]!=NON_GSM){
+(0xf8c+2519-0x1963)]);for(i=(0xeab+5443-0x23ee);i<len;i++){if(def[i]==
+(0x40+2414-0x9ae)){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]==(0x17a+1565-0x777)
-)){gsm_default[k]=(0x9b+9835-0x26e6);k++;continue;}for(q=(0xbd6+2026-0x13c0);q<
-s1;q++){if(def[i]==zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][
-(0xad6+4636-0x1cf1)]){gsm_default[k]=(0x149d+1605-0x1ac7);k++;gsm_default[k]=
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x12d0+4200-0x2338)];break;}}}else{
-tmp=(def[i]<<(0x2184+1198-0x262a))+def[i+(0x2275+407-0x240b)];i++;if(tmp==
-(0x2112+1696-0x706)){gsm_default[k]=(0xf2c+5312-0x23d1);k++;gsm_default[k]=
-(0x240f+62-0x23e8);k++;continue;}for(p=(0x105d+3974-0x1fe3);p<s2;p++){if(tmp==
-Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0xdfc+4643-0x201e)]){gsm_default[k]=
-Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x13c9+2426-0x1d43)];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=(0x14e1+4318-0x25bf);unsigned long k=(0x1240+4195-0x22a3);unsigned long p
-=(0x1909+323-0x1a4c);unsigned long tmp=(0x194c+178-0x19fe);unsigned long s1=
-(0x987+3630-0x17b5),s2=(0xe66+281-0xf7f);unsigned long q=(0x51a+6498-0x1e7c);s1=
-sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x1b20+2951-0x26a7)]);s2=sizeof(
+Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]==NON_GSM)&&(def[i]==
+(0x1dcf+349-0x1f0c))){gsm_default[k]=(0x1072+1057-0x1473);k++;continue;}for(q=
+(0x380+6223-0x1bcf);q<s1;q++){if(def[i]==
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x1426+0-0x1425)]){gsm_default[k]=
+(0x1a68+2742-0x2503);k++;gsm_default[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex
+[q][(0x1e4+2667-0xc4f)];break;}}}else{tmp=(def[i]<<(0x1bba+2645-0x2607))+def[i+
+(0xc3c+1869-0x1388)];i++;if(tmp==8364){gsm_default[k]=(0x843+2754-0x12ea);k++;
+gsm_default[k]=(0x380+8601-0x24b4);k++;continue;}for(p=(0x8ca+3447-0x1641);p<s2;
+p++){if(tmp==Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0xbda+6080-0x2399)]){
+gsm_default[k]=Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x387+3933-0x12e4)];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=(0x1c71+445-0x1e2e);unsigned long
+ k=(0x15c+8495-0x228b);unsigned long p=(0x1383+4853-0x2678);unsigned long tmp=
+(0x949+5644-0x1f55);unsigned long s1=(0xc05+6342-0x24cb),s2=(0x25b+8563-0x23ce);
+unsigned long q=(0x5aa+2019-0xd8d);s1=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex
+)/sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x524+3578-0x131e)]);s2=sizeof(
 UCS2_To_GSMDefault_Table_UCS2)/sizeof(UCS2_To_GSMDefault_Table_UCS2[
-(0xff3+4074-0x1fdd)]);for(i=(0x477+1025-0x878);i<len;i++){if(def[i]==
-(0xf0f+5488-0x247f)){i++;if(UCS2_To_GSMDefault_Table_ASC[def[i]]!=NON_GSM){
+(0xce4+1676-0x1370)]);for(i=(0x235+7198-0x1e53);i<len;i++){if(def[i]==
+(0x1188+4730-0x2402)){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]==(0x331+438-0x4c7))){
-gsm_default[k]=(0x7d9+4981-0x1b2e);k++;continue;}for(q=(0x8d0+3323-0x15cb);q<s1;
-q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x18a+8822-0x23ff)]){
-gsm_default[k]=(0x2cd+3762-0x1164);k++;gsm_default[k]=
-zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x102c+442-0x11e6)];break;}}}else{tmp=(
-def[i]<<(0xc21+5554-0x21cb))+def[i+(0x9b7+4465-0x1b27)];i++;if(tmp==8364){
-gsm_default[k]=(0x680+340-0x7b9);k++;gsm_default[k]=(0x255+2723-0xc93);k++;
-continue;}for(p=(0xa36+2701-0x14c3);p<s2;p++){if(tmp==
-UCS2_To_GSMDefault_Table_UCS2[p][(0x1e5+4927-0x1523)]){gsm_default[k]=
-UCS2_To_GSMDefault_Table_UCS2[p][(0x2ac+1231-0x77b)];break;}}}k++;}gsm_default[k
-]='\0';return k;}UINT8 zUfiSms_TsIntToBcd(const UINT8 i){return(UINT8)(((i%
-(0x823+7231-0x2458))+((i/(0x715+266-0x815))<<(0x102d+5061-0x23ee))));}void 
+UCS2_To_GSMDefault_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x2c8+2897-0xdf9))){
+gsm_default[k]=(0xf7c+2059-0x1767);k++;continue;}for(q=(0xedd+6062-0x268b);q<s1;
+q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x1c20+146-0x1cb1)]){
+gsm_default[k]=(0x789+5846-0x1e44);k++;gsm_default[k]=
+zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x646+2457-0xfdf)];break;}}}else{tmp=(
+def[i]<<(0x8c0+2402-0x121a))+def[i+(0xb8f+1670-0x1214)];i++;if(tmp==8364){
+gsm_default[k]=(0x1ba2+262-0x1c8d);k++;gsm_default[k]=(0x5e1+7189-0x2191);k++;
+continue;}for(p=(0x55+1409-0x5d6);p<s2;p++){if(tmp==
+UCS2_To_GSMDefault_Table_UCS2[p][(0xfba+298-0x10e3)]){gsm_default[k]=
+UCS2_To_GSMDefault_Table_UCS2[p][(0xe44+1810-0x1556)];break;}}}k++;}gsm_default[
+k]='\0';return k;}UINT8 zUfiSms_TsIntToBcd(const UINT8 i){return(UINT8)(((i%
+(0x21b+3863-0x1128))+((i/(0x663+6790-0x20df))<<(0x129c+3536-0x2068))));}void 
 zUfiSms_DecodeRelativeTime(UINT8 iValidTime,T_zUfiSms_TimeStamp*ptTimeStamp){
-uint32 i=(0xbdd+5047-0x1f94);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
-(0x7a3+3637-0x15d8),sizeof(wms_timestamp_s_type));if(iValidTime<
-(0x7f8+1545-0xd71)){i=(iValidTime+(0x619+6962-0x214a))*(0x977+113-0x9e3);
-ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0x437+8460-0x2507)));
-ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0x202b+304-0x211f)));}
-else if(iValidTime<(0x11da+4219-0x21ae)){i=(iValidTime-(0x118b+1007-0x14eb))*
-(0x773+5977-0x1eae);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
-(0x17ab+850-0x1af1)+i/(0x1671+221-0x1712)));ptTimeStamp->minute=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0x185b+2921-0x2388)));}else if(iValidTime<
-(0x15d2+3561-0x22f6)){i=iValidTime-(0x7fb+4514-0x18f7);ptTimeStamp->month=(UINT8
-)zUfiSms_TsIntToBcd((UINT8)(i/(0x64+3443-0xdb9)));ptTimeStamp->day=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0x90c+4632-0x1b06)));}else{i=(iValidTime-
-(0x1ee3+226-0x1f05))*(0x13d8+2690-0x1e53);ptTimeStamp->year=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i/(0x1a81+283-0x1a2f)));ptTimeStamp->month=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)((i%(0x7a9+4636-0x1858))/(0x191a+3580-0x26f8)));
-ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0x1d48+728-0x1eb3))%
-(0x1a02+217-0x1abd)));}}else{printf(
+uint32 i=(0xa39+5715-0x208c);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
+(0x110a+4652-0x2336),sizeof(wms_timestamp_s_type));if(iValidTime<
+(0xdbc+6185-0x2555)){i=(iValidTime+(0x49+344-0x1a0))*(0x26c+2286-0xb55);
+ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0xd72+4725-0x1fab)));
+ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0x18df+3433-0x260c)));}
+else if(iValidTime<(0xb14+400-0xbfd)){i=(iValidTime-(0x943+1202-0xd66))*
+(0x4d6+4342-0x15ae);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
+(0x8af+7533-0x2610)+i/(0x45f+2751-0xee2)));ptTimeStamp->minute=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0xa1b+7376-0x26af)));}else if(iValidTime<
+(0x1246+1887-0x18e0)){i=iValidTime-(0x3a4+1439-0x89d);ptTimeStamp->month=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i/(0x95c+6020-0x20c2)));ptTimeStamp->day=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0x198f+1173-0x1e06)));}else{i=(iValidTime-
+(0xe75+5076-0x2189))*(0x736+6905-0x2228);ptTimeStamp->year=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i/(0x2142+789-0x22ea)));ptTimeStamp->month=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)((i%(0x7e7+398-0x808))/(0x900+6762-0x234c)));
+ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0x191+3645-0xe61))%
+(0x1e76+1929-0x25e1)));}}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=(0x199+1982-0x957);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}for
-(i=(0x1401+420-0x15a5);i<iLen;i++){pIntArray[i]=pCharArray[i]-
-((char)(0x1f4+3580-0xfc0));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
+i=(0x1457+3040-0x2037);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}
+for(i=(0x14ed+1473-0x1aae);i<iLen;i++){pIntArray[i]=pCharArray[i]-
+((char)(0x845+6257-0x2086));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
 T_zUfiSms_SubmitTpdu*ptSubmit,T_zUfiSms_ConcatInfo*ptConcatSms,
-T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0x2a5+4254-0x1343);if(ptConcatSms->
-total_msg>(0x1266+925-0x1602)){g_zUfiSms_SendingSms.TP_UDHI=(0x7+8121-0x1fbf);
-g_zUfiSms_SendingSms.TP_UD[(0x755+5590-0x1d2b)]=(0xda4+3318-0x1a95);
-g_zUfiSms_SendingSms.TP_UD[(0x8d5+7615-0x2693)]=(0x6f5+7553-0x2471);
-g_zUfiSms_SendingSms.TP_UD[(0x283+8710-0x2487)]=(0x101+4691-0x1351);
-g_zUfiSms_SendingSms.TP_UD[(0x281+3827-0x1171)]=(char)ptDbSaveData->concat_info[
-(0x1166+3727-0x1ff5)]%(0x1404+3900-0x2241);g_zUfiSms_SendingSms.TP_UD[
-(0x1e60+1951-0x25fb)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
-(0x40a+7053-0x1f92)]=(char)ptConcatSms->current_sending+(0x7c7+6781-0x2243);
-g_zUfiSms_SendingSms.TP_UD[(0x1fb3+966-0x2373)]=(0x1d5+1884-0x92b);for(i=
-(0xad+5524-0x1641);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD[
-i+(0x7ad+2893-0x12f3)]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.
-TP_UDLength=ptSubmit->user_data.sm_len+(0x51b+8147-0x24e7);}else{for(i=
-(0x48c+4594-0x167e);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>(0x523+3023-0x10f1)){g_zUfiSms_SendingSms.TP_UDHI=
-(0x720+1445-0xcc4);g_zUfiSms_SendingSms.TP_UD[(0x19aa+1509-0x1f8f)]=
-(0x382+3058-0xf6f);g_zUfiSms_SendingSms.TP_UD[(0x5f3+7689-0x23fb)]=
-(0x1407+1401-0x197b);g_zUfiSms_SendingSms.TP_UD[(0x1a34+1968-0x21e2)]=
-(0x796+2694-0x1219);g_zUfiSms_SendingSms.TP_UD[(0x6c7+814-0x9f2)]=(char)
-ptDbSaveData->concat_info[(0x1417+3954-0x2389)]%(0xff5+240-0xfe6);
-g_zUfiSms_SendingSms.TP_UD[(0x1cb+9414-0x268d)]=(char)ptConcatSms->total_msg;
-g_zUfiSms_SendingSms.TP_UD[(0x2e9+5255-0x176b)]=(char)ptConcatSms->
-current_sending+(0xbac+151-0xc42);(void)Bytes2String(ptSubmit->user_data.sm_data
-,&g_zUfiSms_SendingSms.TP_UD[(0x32+6320-0x18dc)],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)(0x13d0+3478-0x2105))&&x<((char)(0x15a6+1193-0x19e8))){x=(x-
-((char)(0xcf7+2971-0x1831)))+((char)(0x175+6391-0x1a2b));}return x;}unsigned 
-char zUfiSms_Char2Dec(unsigned char x){unsigned char d=(0xa96+2689-0x1517);if(x
->=((char)(0xc62+1501-0x11fe))&&x<((char)(0x6e8+4885-0x19b6))){d=(x-
-((char)(0x12aa+2301-0x1b66)))+(0x1069+5495-0x25d6);}else{d=x-
-((char)(0x34c+5898-0x1a26));}return d;}unsigned char zUfiSms_Char2Byte(unsigned 
-char a,unsigned char b){unsigned char data=(0x1f53+949-0x2308);unsigned char l=
-(0x552+2104-0xd8a),h=(0x2295+10-0x229f);a=zUfiSms_Low2High(a);b=zUfiSms_Low2High
-(b);h=zUfiSms_Char2Dec(a);l=zUfiSms_Char2Dec(b);data=h*(0xe6d+3094-0x1a73)+l;
-return data;}void zUfiSms_Str2Bytes(unsigned char*text,int text_len,unsigned 
-char*data,int data_len){int i=(0x726+3892-0x165a);while((0x77f+7606-0x2533)*i+
-(0x14a4+252-0x159f)<text_len){data[i]=zUfiSms_Char2Byte(text[(0x8d4+6855-0x2399)
-*i],text[(0xc49+2792-0x172f)*i+(0x4ea+5-0x4ee)]);i++;}}int zUfiSms_SplitString(
-char*input,char***output,char cMatchChar){int src=(0x44f+4787-0x1702);int dst=
-(0xc6d+1739-0x1338);int count=(0xaa3+3881-0x19cc);int size=(0x8a7+5710-0x1eed);
-char quoted=(0xb8f+1391-0x10fe);char**tmpout=NULL;*output=(char**)malloc(sizeof(
-char*)*size);if(NULL==*output){return-(0x668+1630-0xcc5);}(*output)[count++]=
-input;for(src=dst=(0x2370+860-0x26cc);input[src];){char cInputChar=input[src];if
-(!quoted&&cInputChar==cMatchChar){input[dst++]=(0x2c+1149-0x4a9);while(input[++
-src]&&(int)isspace(input[src])){};if(count>=size){size+=(0x152+8769-0x2383);
-tmpout=(char**)realloc(*output,sizeof(char*)*size);if(NULL==tmpout){return-
-(0xc9d+4264-0x1d44);}*output=tmpout;}(*output)[count++]=input+dst;}else if(!
-quoted&&(cInputChar=='\''||cInputChar==((char)(0x11b0+217-0x1267)))){quoted=
-cInputChar;src++;}else if(cInputChar==quoted){quoted=(0x52a+7228-0x2166);src++;}
-else{if(cInputChar=='\\'&&quoted!='\''){src++;cInputChar=input[src];if(!
-cInputChar){free(*output);*output=NULL;return-(0xb08+4257-0x1ba8);}}input[dst++]
-=cInputChar;src++;}}input[dst]=(0x1c48+1331-0x217b);if(quoted){free(*output);*
-output=NULL;return-(0xd9c+5222-0x2201);}return count;}int zUfiSms_atohex(char c)
-{int result=(0xa3+7521-0x1e04);if(c>=((char)(0x4ba+1147-0x905))&&c<=
-((char)(0x2bb+3183-0xef1))){result=c-((char)(0x134+1457-0x6b5));}else if(c>=
-((char)(0x1bbc+2880-0x269b))&&c<=((char)(0x171a+3136-0x22f4))){result=(c-
-((char)(0xb71+1366-0x1066)))+(0x169f+2876-0x21d1);}else if(c>=
-((char)(0x24f8+327-0x25fe))&&c<=((char)(0x995+3287-0x1626))){result=(c-
-((char)(0xd98+5571-0x231a)))+(0xab2+1111-0xeff);}else{at_print(LOG_DEBUG,
+T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0x16b3+1100-0x1aff);if(ptConcatSms->
+total_msg>(0x1199+1767-0x187f)){g_zUfiSms_SendingSms.TP_UDHI=(0xea5+2102-0x16da)
+;g_zUfiSms_SendingSms.TP_UD[(0xd4b+6464-0x268b)]=(0x1575+886-0x18e6);
+g_zUfiSms_SendingSms.TP_UD[(0x1cc6+1809-0x23d6)]=(0xc66+3196-0x18dd);
+g_zUfiSms_SendingSms.TP_UD[(0x1126+3214-0x1db2)]=(0x5b+1177-0x4f1);
+g_zUfiSms_SendingSms.TP_UD[(0x19c0+419-0x1b60)]=(char)ptDbSaveData->concat_info[
+(0x716+4453-0x187b)]%(0x3ab+5636-0x18b0);g_zUfiSms_SendingSms.TP_UD[
+(0x1767+26-0x177d)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
+(0x15f5+962-0x19b2)]=(char)ptConcatSms->current_sending+(0xab1+2565-0x14b5);
+g_zUfiSms_SendingSms.TP_UD[(0x8cf+4527-0x1a78)]=(0x1305+505-0x14f8);for(i=
+(0x1d9b+2167-0x2612);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.
+TP_UD[i+(0xe43+2445-0x17c9)]=ptSubmit->user_data.sm_data[i];}
+g_zUfiSms_SendingSms.TP_UDLength=ptSubmit->user_data.sm_len+(0x23f+2789-0xd1d);}
+else{for(i=(0x91+7574-0x1e27);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>
+(0x944+2347-0x126e)){g_zUfiSms_SendingSms.TP_UDHI=(0xaf3+906-0xe7c);
+g_zUfiSms_SendingSms.TP_UD[(0x209b+982-0x2471)]=(0x20d5+820-0x2404);
+g_zUfiSms_SendingSms.TP_UD[(0x2071+127-0x20ef)]=(0x4a4+2989-0x104c);
+g_zUfiSms_SendingSms.TP_UD[(0xc61+6061-0x240c)]=(0xf99+2148-0x17fa);
+g_zUfiSms_SendingSms.TP_UD[(0x61f+651-0x8a7)]=(char)ptDbSaveData->concat_info[
+(0x163+3971-0x10e6)]%(0xafa+6684-0x2417);g_zUfiSms_SendingSms.TP_UD[
+(0xd6a+3249-0x1a17)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
+(0x11a4+3776-0x205f)]=(char)ptConcatSms->current_sending+(0x9cf+6032-0x215e);(
+void)Bytes2String(ptSubmit->user_data.sm_data,&g_zUfiSms_SendingSms.TP_UD[
+(0x1de3+780-0x20e9)],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)(0x22c+6623-0x1baa))&&x<((char)(0x1eff+1262-0x2386))){x=(x-
+((char)(0x878+4549-0x19dc)))+((char)(0xad8+4812-0x1d63));}return x;}unsigned 
+char zUfiSms_Char2Dec(unsigned char x){unsigned char d=(0xc1d+6459-0x2558);if(x
+>=((char)(0x9d+3619-0xe7f))&&x<((char)(0x7a6+4716-0x19cb))){d=(x-
+((char)(0x30b+1344-0x80a)))+(0x50b+98-0x563);}else{d=x-
+((char)(0x11a0+2220-0x1a1c));}return d;}unsigned char zUfiSms_Char2Byte(unsigned
+ char a,unsigned char b){unsigned char data=(0x9f4+3761-0x18a5);unsigned char l=
+(0xaf0+1589-0x1125),h=(0x598+5779-0x1c2b);a=zUfiSms_Low2High(a);b=
+zUfiSms_Low2High(b);h=zUfiSms_Char2Dec(a);l=zUfiSms_Char2Dec(b);data=h*
+(0x1cc+2766-0xc8a)+l;return data;}void zUfiSms_Str2Bytes(unsigned char*text,int 
+text_len,unsigned char*data,int data_len){int i=(0xd73+4226-0x1df5);while(
+(0x89f+4285-0x195a)*i+(0x1f78+1746-0x2649)<text_len){data[i]=zUfiSms_Char2Byte(
+text[(0x4f2+1141-0x965)*i],text[(0x3a7+6631-0x1d8c)*i+(0x199b+819-0x1ccd)]);i++;
+}}int zUfiSms_SplitString(char*input,char***output,char cMatchChar){int src=
+(0x7b4+7161-0x23ad);int dst=(0x78c+4610-0x198e);int count=(0x778+522-0x982);int 
+size=(0x10a2+2981-0x1c3f);char quoted=(0x136b+1493-0x1940);char**tmpout=NULL;*
+output=(char**)malloc(sizeof(char*)*size);if(NULL==*output){return-
+(0x279+7772-0x20d4);}(*output)[count++]=input;for(src=dst=(0x2b9+2187-0xb44);
+input[src];){char cInputChar=input[src];if(!quoted&&cInputChar==cMatchChar){
+input[dst++]=(0xbed+6876-0x26c9);while(input[++src]&&(int)isspace(input[src])){}
+;if(count>=size){size+=(0x1613+2498-0x1fc5);tmpout=(char**)realloc(*output,
+sizeof(char*)*size);if(NULL==tmpout){return-(0xc3+5047-0x1479);}*output=tmpout;}
+(*output)[count++]=input+dst;}else if(!quoted&&(cInputChar=='\''||cInputChar==
+((char)(0x721+3045-0x12e4)))){quoted=cInputChar;src++;}else if(cInputChar==
+quoted){quoted=(0x16b+9508-0x268f);src++;}else{if(cInputChar=='\\'&&quoted!='\''
+){src++;cInputChar=input[src];if(!cInputChar){free(*output);*output=NULL;return-
+(0xe42+2238-0x16ff);}}input[dst++]=cInputChar;src++;}}input[dst]=
+(0xeb7+4069-0x1e9c);if(quoted){free(*output);*output=NULL;return-
+(0x14a+8739-0x236c);}return count;}int zUfiSms_atohex(char c){int result=
+(0x1139+408-0x12d1);if(c>=((char)(0x48a+7584-0x21fa))&&c<=
+((char)(0x9f4+3388-0x16f7))){result=c-((char)(0xe93+3332-0x1b67));}else if(c>=
+((char)(0x1b0b+1141-0x1f1f))&&c<=((char)(0x68f+838-0x96f))){result=(c-
+((char)(0x274+3318-0xf09)))+(0x88a+1474-0xe42);}else if(c>=
+((char)(0x452+2673-0xe82))&&c<=((char)(0xabc+1489-0x1047))){result=(c-
+((char)(0x34b+3278-0xfd8)))+(0x800+6569-0x219f);}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=(0x7c0+5141-0x1bd5);int high=
-(0x1ba5+1678-0x2233);if(in_ptr==NULL||out_ptr==NULL){printf(
+int iLength,unsigned char*out_ptr){int low=(0xf4a+5433-0x2483);int high=
+(0xbd6+1029-0xfdb);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>(0x112f+2902-0x1c85)){low=in_ptr[iLength-
-(0xd85+4710-0x1fea)]&(0x2ba+7145-0x1e94);high=(in_ptr[iLength-
-(0x1311+447-0x14cf)]&(0x1ad2+1970-0x2194))>>(0x482+8337-0x250f);out_ptr[
-(0x1668+3178-0x22d0)*iLength-(0xaf6+5253-0x1f7a)]=g_zUfiSms_DigAscMap[low];
-out_ptr[(0x20e6+1341-0x2621)*iLength-(0x1412+1026-0x1812)]=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=(0x1726+3782-0x25ec);unsigned int j=
-(0x1001+1702-0x16a7);unsigned int k=(0x82f+1772-0xf1b);unsigned int p=
-(0x1860+675-0x1b03);unsigned int s=(0xc40+2459-0x15db);s=sizeof(
+);return ZUFI_FAIL;}while(iLength>(0x1134+317-0x1271)){low=in_ptr[iLength-
+(0xb72+940-0xf1d)]&(0x1374+74-0x13af);high=(in_ptr[iLength-(0x3a8+6798-0x1e35)]&
+(0x773+7983-0x25b2))>>(0xf88+2284-0x1870);out_ptr[(0x1e1d+336-0x1f6b)*iLength-
+(0x6f4+2261-0xfc8)]=g_zUfiSms_DigAscMap[low];out_ptr[(0x596+4311-0x166b)*iLength
+-(0x24d+7320-0x1ee3)]=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=(0x701+1770-0xdeb);unsigned 
+int j=(0x1754+2863-0x2283);unsigned int k=(0x22ff+93-0x235c);unsigned int p=
+(0xaa+7227-0x1ce5);unsigned int s=(0x1d7c+1866-0x24c6);s=sizeof(
 zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x1eb6+1581-0x24e3)]);for(i=
-(0x490+4303-0x155f);i<len;i++){j=gsmdef[i];if(j==(0x1129+3311-0x1dfd)){i++;for(p
-=(0x19ef+605-0x1c4c);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
-(0x797+7482-0x24d1)]==gsmdef[i]){ucs2[k]=
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x520+4957-0x187c)]>>
-(0xbeb+2247-0x14aa);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x1280+2463-0x1c1e)]);break;}}}else
-{ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x1c3f+843-0x1f82);k++;ucs2[
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x92d+4123-0x1948)]);for(i=
+(0x1bbc+1128-0x2024);i<len;i++){j=gsmdef[i];if(j==(0x5b4+3069-0x1196)){i++;for(p
+=(0xfa9+2512-0x1979);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
+(0xb8+7710-0x1ed6)]==gsmdef[i]){ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex
+[p][(0x404+8117-0x23b8)]>>(0x1630+1401-0x1ba1);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0xe94+2665-0x18fc)]);break;}}}else{
+ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x153b+3751-0x23da);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=
-(0x150c+800-0x182c);unsigned int j=(0x554+3481-0x12ed);unsigned int k=
-(0x648+2516-0x101c);unsigned int p=(0x256+6292-0x1aea);unsigned int s=
-(0x467+7009-0x1fc8);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x1f04+1496-0x24dc)]);for(i=
-(0xb34+3980-0x1ac0);i<len;i++){j=gsmdef[i];if(j==(0x14b+5824-0x17f0)){i++;for(p=
-(0x973+4458-0x1add);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x15a6+3353-0x22bf)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p]
-[(0x1992+1273-0x1e8a)]>>(0x1f5c+1917-0x26d1);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x84f+387-0x9d1)]);break;}}}else{ucs2[k]
-=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x25f2+285-0x2707);k++;ucs2[k]=(
+(0x90c+4255-0x19ab);unsigned int j=(0x1fe8+1265-0x24d9);unsigned int k=
+(0x1512+1860-0x1c56);unsigned int p=(0xae9+4802-0x1dab);unsigned int s=
+(0x8ac+6257-0x211d);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x1b+2275-0x8fe)]);for(i=
+(0xf8f+2667-0x19fa);i<len;i++){j=gsmdef[i];if(j==(0xeeb+1191-0x1377)){i++;for(p=
+(0x1812+1349-0x1d57);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x604+6510-0x1f72)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x55b+6058-0x1d04)]>>(0x1674+571-0x18a7);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x1445+3159-0x209b)]);break;}}}else{ucs2
+[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0xdb7+2762-0x1879);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=(0xbcd+2576-0x15dd)
-;unsigned long j=(0xed0+5278-0x236e);unsigned long k=(0x16b8+657-0x1949);
-unsigned long p=(0x358+6031-0x1ae7);unsigned long s=(0x1b47+2433-0x24c8);
-unsigned long is_find=(0xc0b+725-0xee0);s=sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[
-(0xd9a+6485-0x26ef)]);for(i=(0x70d+6272-0x1f8d);i<len;i++){j=gsmdef[i];if(j==
-(0x830+5136-0x1c25)){i++;for(p=(0x13f7+4006-0x239d);p<s;p++){if(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x390+5546-0x193a)]==gsmdef[i]){ucs2[k]=
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0xc+9310-0x2469)]>>(0x12b9+4943-0x2600);
-k++;ucs2[k]=(unsigned char)(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x1847+2691-0x22c9)]);is_find=(0x14f9+2985-0x20a1);break;}}if(!is_find){
-at_print(LOG_DEBUG,
+gsmdef,unsigned char*ucs2,unsigned long len){unsigned long i=(0xbe6+6660-0x25ea)
+;unsigned long j=(0xdcc+5902-0x24da);unsigned long k=(0x1821+2079-0x2040);
+unsigned long p=(0x46d+3502-0x121b);unsigned long s=(0x408+1915-0xb83);unsigned 
+long is_find=(0xfd+4304-0x11cd);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/
+sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x158c+1484-0x1b58)]);for(i=
+(0x423+3577-0x121c);i<len;i++){j=gsmdef[i];if(j==(0xebf+281-0xfbd)){i++;for(p=
+(0x3a1+1410-0x923);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x14c2+917-0x1857)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x17e2+3204-0x2465)]>>(0x329+8677-0x2506);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0xf37+6031-0x26c5)]);is_find=
+(0x15dd+4043-0x25a7);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]>>
-(0x12a7+3900-0x21db);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table[j]);}}else{ucs2[k]=
-zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x1491+1495-0x1a60);k++;ucs2[k]=(unsigned 
+,gsmdef[i]);i--;ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x1fab+852-0x22f7)
+;k++;ucs2[k]=(unsigned char)(zte_sms_GSMDefault_To_UCS2_Table[j]);}}else{ucs2[k]
+=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0xadd+1401-0x104e);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[(0x1d25+2285-0x2610)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
-(0x318+7522-0x2079)]={(0x11f0+1091-0x1633)};UINT16 len=(0x1391+1157-0x1816);
-switch(g_zUfiSms_Language){case DCS_PORTUGUESE:if(g_zUfiSms_IsLanguageShift==
+ascii_content[(0x1757+1262-0x1c43)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
+(0x2fd+3409-0x104d)]={(0x9da+3112-0x1602)};UINT16 len=(0x5f9+5777-0x1c8a);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==
 WMS_UDH_NAT_LANG_LS){len=zte_wms_convert_PORTUGUESE_To_UCS2_USE_GSM7_SS_PORTU_LS
@@ -670,76 +667,76 @@
 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[(0x1f19+774-0x221e)+(0x67c+8018-0x252e)+(0x18cc+1845-0x2000)]={
-(0xe9f+2904-0x19f7)};int len=(0x1207+1343-0x1746);if(msg_content==NULL||
-out_content==NULL||sms_len>(0x3e7+4986-0x1621)||sms_len<(0x1050+3415-0x1da5)){
-return endEsc;}len=sms_len;memset(data,(0x1452+1837-0x1b7f),(0xe5a+5833-0x2481))
-;p=data;if(isEsc){*p=(0xada+5159-0x1ee6);p++;}zUfiSms_Str2Bytes((unsigned char*)
-msg_content,len,(unsigned char*)p,(0x6b5+5246-0x1a93));if(p[len/
-(0x544+3627-0x136d)-(0xad+5964-0x17f8)]==(0x22b+5731-0x1873)){endEsc=TRUE;}
-zUfiSms_ConvertUcs2(data,len/(0x234f+218-0x2427)+(isEsc?(0x49c+8275-0x24ee):
-(0x5c5+4981-0x193a))-(endEsc?(0x9d7+1147-0xe51):(0x985+871-0xcec)),out_content);
-return endEsc;}byte*zUfiSms_SmsiUtilitoa(uint32 v,byte*s,UINT16 r){byte buf[
-(0x9ab+92-0x9e6)],c;int n;n=sizeof(buf)-(0x372+8602-0x250b);buf[n]='\0';do{c=(
-byte)(v%r);if(n<=(0x1dbd+2100-0x25f1)){printf(
-"\x4f\x56\x45\x52\x46\x4c\x4f\x57\x20");break;}buf[--n]=(byte)((c>
-(0x9b2+2824-0x14b1))?c+((char)(0x15e5+2066-0x1db6))-(0x9a3+6221-0x21e6):c+
-((char)(0xedc+5374-0x23aa)));}while((v/=r)>(0x1baf+1296-0x20bf));while((*s++=buf
-[n++])!=(0x10fa+4639-0x2319));return(s-(0x116c+5316-0x262f));}byte*
-zUfiSms_SmsiAddrToStr(wms_address_s_type addr,byte*res_ptr,UINT8*type_of_addr){
-byte bcd_idx=(0x52a+102-0x590);UINT8 temp=(0x8d8+1326-0xe06);*type_of_addr=
-(0xf90+4507-0x212b);temp=(UINT8)((uint32)addr.number_type&(0xc78+4375-0x1d88));*
-type_of_addr=(UINT8)((*type_of_addr|temp)<<(0xfa5+384-0x1121));temp=(UINT8)((
-uint32)addr.number_plan&(0x97d+390-0xafc));*type_of_addr=*type_of_addr|temp;*
-type_of_addr=*type_of_addr|(0x17d4+1976-0x1f0c);while(bcd_idx<addr.
-number_of_digits){if(addr.digits[bcd_idx]==(0x3e3+8807-0x2640)){addr.digits[
-bcd_idx]=(0x1f89+511-0x2188);}res_ptr=zUfiSms_SmsiUtilitoa((uint32)addr.digits[
-bcd_idx],res_ptr,(0x2e6+6343-0x1b9d));bcd_idx++;}return res_ptr;}byte*
-zUfiSms_SmsiUtilitoaFill(word v,byte*rb_ptr){int n;byte c,*ptr;ptr=rb_ptr+
-(0x34b+727-0x620);*ptr='\0';for(n=(0x1a9+9538-0x26eb);n<(0x1832+2763-0x22fb);++n
-){c=(byte)(v%(0x263+1655-0x8d0));v/=(0x12b9+4384-0x23cf);*--ptr=(c+
-((char)(0xf0d+2647-0x1934)));}return rb_ptr+(0x5c0+831-0x8fd);}void 
-zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<(0xcb+3783-0xf88)){
-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=(0x1d1+8258-0x2213);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=(0xba0+4029-0x1b5c);db_data->concat_info[(0x2e0+4737-0x1561)
-]=(0xf4c+1466-0x1407)*mux+concat_8->msg_ref;db_data->concat_info[
-(0x1b9+6652-0x1bb3)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX+
-(0x51a+1988-0xcdd);db_data->concat_info[(0xb04+6770-0x2575)]=concat_8->total_sm-
-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
-(0xded+5874-0x24de)?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=
-DCS_PORTUGUESE;break;default:break;}}static void zUfiSms_ParserLangLs(
-T_zUfiSms_Udh*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=DCS_PORTUGUESE;break;default:break;}}static void 
-zUfiSms_ParseDeliverConcat16(T_zUfiSms_UdhConcat16*concat_16,
-T_zUfiSms_DbStoreData*db_data){int mux=(0xde6+3664-0x1c36);concat_16->seq_num--;
-db_data->concat_sms=(0x1409+1861-0x1b4d);
-#if (0xd75+3882-0x1c9f)

-db_data->concat_info[(0xf4f+1352-0x1497)]=concat_16->msg_ref;db_data->
-concat_info[(0x18ed+480-0x1acc)]=concat_16->total_sm;db_data->concat_info[
-(0x37d+8198-0x2381)]=concat_16->seq_num;
+data[(0x4c5+4144-0x14f4)+(0x3ef+7399-0x2036)+(0xb2+7181-0x1cbe)]={
+(0x2e2+979-0x6b5)};int len=(0x1c00+888-0x1f78);if(msg_content==NULL||out_content
+==NULL||sms_len>(0x186b+2940-0x22a7)||sms_len<(0xef+5176-0x1525)){return endEsc;
+}len=sms_len;memset(data,(0x1b8+8931-0x249b),(0x327+249-0x37e));p=data;if(isEsc)
+{*p=(0x503+6694-0x1f0e);p++;}zUfiSms_Str2Bytes((unsigned char*)msg_content,len,(
+unsigned char*)p,(0x358+4037-0x127d));if(p[len/(0x10c4+5155-0x24e5)-
+(0x197d+2405-0x22e1)]==(0xd98+1832-0x14a5)){endEsc=TRUE;}zUfiSms_ConvertUcs2(
+data,len/(0x6ac+3020-0x1276)+(isEsc?(0x84+6914-0x1b85):(0x12e8+2153-0x1b51))-(
+endEsc?(0xcb8+33-0xcd8):(0x3c9+651-0x654)),out_content);return endEsc;}byte*
+zUfiSms_SmsiUtilitoa(uint32 v,byte*s,UINT16 r){byte buf[(0xd57+6002-0x24a8)],c;
+int n;n=sizeof(buf)-(0x880+738-0xb61);buf[n]='\0';do{c=(byte)(v%r);if(n<=
+(0x1994+3034-0x256e)){printf("\x4f\x56\x45\x52\x46\x4c\x4f\x57\x20");break;}buf[
+--n]=(byte)((c>(0xc7b+6134-0x2468))?c+((char)(0x115a+3236-0x1dbd))-
+(0x8a6+1689-0xf35):c+((char)(0xa05+1419-0xf60)));}while((v/=r)>
+(0x1263+3305-0x1f4c));while((*s++=buf[n++])!=(0xd30+110-0xd9e));return(s-
+(0x30c+2263-0xbe2));}byte*zUfiSms_SmsiAddrToStr(wms_address_s_type addr,byte*
+res_ptr,UINT8*type_of_addr){byte bcd_idx=(0x13b0+4349-0x24ad);UINT8 temp=
+(0x1758+504-0x1950);*type_of_addr=(0x1b47+2285-0x2434);temp=(UINT8)((uint32)addr
+.number_type&(0x20d0+1301-0x25de));*type_of_addr=(UINT8)((*type_of_addr|temp)<<
+(0x1937+801-0x1c54));temp=(UINT8)((uint32)addr.number_plan&(0x178+2812-0xc6d));*
+type_of_addr=*type_of_addr|temp;*type_of_addr=*type_of_addr|(0x7c4+6483-0x2097);
+while(bcd_idx<addr.number_of_digits){if(addr.digits[bcd_idx]==
+(0x9f0+5976-0x213e)){addr.digits[bcd_idx]=(0x11b9+3860-0x20cd);}res_ptr=
+zUfiSms_SmsiUtilitoa((uint32)addr.digits[bcd_idx],res_ptr,(0xe35+3826-0x1d17));
+bcd_idx++;}return res_ptr;}byte*zUfiSms_SmsiUtilitoaFill(word v,byte*rb_ptr){int
+ n;byte c,*ptr;ptr=rb_ptr+(0xf74+639-0x11f1);*ptr='\0';for(n=
+(0x13e2+2450-0x1d74);n<(0xfcb+5378-0x24cb);++n){c=(byte)(v%(0x1cc1+379-0x1e32));
+v/=(0x219+9121-0x25b0);*--ptr=(c+((char)(0x865+268-0x941)));}return rb_ptr+
+(0x9b9+346-0xb11);}void zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<
+(0x1382+3886-0x22a6)){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=
+(0x1ae7+252-0x1be3);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=
+(0xfcc+1753-0x16a4);db_data->concat_info[(0x6ff+904-0xa87)]=(0x21a5+1493-0x267b)
+*mux+concat_8->msg_ref;db_data->concat_info[(0x3eb+4431-0x1538)]=concat_8->
+seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x194c+909-0x1cd8);db_data->concat_info[
+(0x1422+2650-0x1e7b)]=concat_8->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
+ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0x955+574-0xb92)?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=DCS_PORTUGUESE;break;default:
+break;}}static void zUfiSms_ParserLangLs(T_zUfiSms_Udh*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=DCS_PORTUGUESE;
+break;default:break;}}static void zUfiSms_ParseDeliverConcat16(
+T_zUfiSms_UdhConcat16*concat_16,T_zUfiSms_DbStoreData*db_data){int mux=
+(0xe1c+3087-0x1a2b);concat_16->seq_num--;db_data->concat_sms=
+(0x1b52+1615-0x21a0);
+#if (0x41+8625-0x21f2)

+db_data->concat_info[(0x584+4813-0x1851)]=concat_16->msg_ref;db_data->
+concat_info[(0x2105+780-0x2410)]=concat_16->total_sm;db_data->concat_info[
+(0x4e8+4471-0x165d)]=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[(0x1376+1670-0x19fc)]=(0x1261+4718-0x23d0)*mux+concat_16->
-msg_ref;db_data->concat_info[(0x71b+7593-0x24c2)]=concat_16->seq_num%
-ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xd7b+1170-0x120c);db_data->concat_info[
-(0x95c+5793-0x1ffc)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
-ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0x10b8+4715-0x2322)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(
+db_data->concat_info[(0xba0+5005-0x1f2d)]=(0xcc9+823-0xf01)*mux+concat_16->
+msg_ref;db_data->concat_info[(0x368+281-0x47f)]=concat_16->seq_num%
+ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x1db6+1836-0x24e1);db_data->concat_info[
+(0x1603+2796-0x20ee)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
+ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0x1177+3847-0x207d)?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=
-(0x6e8+4313-0x17c0);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8),
-db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0x20e1+418-0x2282);
+(0xe13+2177-0x1693);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8),
+db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0x14b8+786-0x17c9);
 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:
@@ -749,156 +746,155 @@
 );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=(0x12db+4278-0x2391);int ind=(0x8b+9376-0x252b);if((
+WMS_GW_ALPHABET_MAX32;int i=(0x21a+6022-0x19a0);int ind=(0x72+5336-0x154a);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,
-(0x1081+129-0x1102),ZTE_WMS_ADDRESS_LEN_MAX+(0x862+1541-0xe66));db_data->number[
-(0x11d6+266-0x12e0)]=((char)(0x1ec+8981-0x24d6));for(i=(0x230+389-0x3b5);i<
-address_ptr->number_of_digits;i++){if((0x15ec+1337-0x1b1b)==address_ptr->digits[
-i]){db_data->number[i+(0x18ba+1692-0x1f55)]=((char)(0x4bf+4164-0x14d3));}else{
-db_data->number[i+(0x1321+3688-0x2188)]=((char)(0x1299+4581-0x244e))+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(
+(0x1655+180-0x1709),ZTE_WMS_ADDRESS_LEN_MAX+(0x6ef+1879-0xe45));db_data->number[
+(0x79f+3946-0x1709)]=((char)(0x28f+8834-0x24e6));for(i=(0xbff+4028-0x1bbb);i<
+address_ptr->number_of_digits;i++){if((0x53+7174-0x1c4f)==address_ptr->digits[i]
+){db_data->number[i+(0x150+2956-0xcdb)]=((char)(0x1265+1454-0x17e3));}else{
+db_data->number[i+(0xf0c+4295-0x1fd2)]=((char)(0xb04+2756-0x1598))+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[
-(0x26f+1057-0x68f)]),address_ptr->digits,address_ptr->number_of_digits);}else{
-for(i=(0x1897+958-0x1c55);i<address_ptr->number_of_digits;i++){if(
-(0x2253+804-0x256d)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0x125a+4578-0x240c));}else{db_data->number[i]=((char)(0xc0+580-0x2d4))+
-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=(0x1c09+2306-0x250a);
-}else{db_data->tp_udhi=(0x1bfa+15-0x1c09);}if(db_data->tp_udhi==
-(0x2132+663-0x23c8)){for(ind=(0x1849+1538-0x1e4b);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[(0x1459+426-0x1602)]){printf(
+(0x139c+4895-0x26ba)]),address_ptr->digits,address_ptr->number_of_digits);}else{
+for(i=(0xe81+2333-0x179e);i<address_ptr->number_of_digits;i++){if(
+(0x4a5+6137-0x1c94)==address_ptr->digits[i]){db_data->number[i]=
+((char)(0x1930+2444-0x228c));}else{db_data->number[i]=
+((char)(0xa8f+6128-0x224f))+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=(0x161b+1150-0x1a98);}else{db_data->
+tp_udhi=(0x8d4+2857-0x13fd);}if(db_data->tp_udhi==(0x1364+3556-0x2147)){for(ind=
+(0x133+2690-0xbb5);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[
+(0xfbc+5887-0x26ba)]){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[(0x1730+1562-0x1d49)],ZTE_WMS_CONCAT_SMS_COUNT_MAX);if(
+,db_data->concat_info[(0x10e9+5035-0x2493)],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)
-(0x1a83+1768-0x216a);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
-unsigned char)(0x130+3423-0xe8d);}else{printf(
+(0x44a+4776-0x16f1);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
+unsigned char)(0x3cd+730-0x6a5);}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=(0x7a9+1473-0xd6a);ind<ts_data_ptr->u.
-gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[(0x16ec+18-0x16fa)*
-ind]=((char)(0x2fb+8149-0x22a0));db_data->sms_content[(0x2fd+7429-0x1ffe)*ind+
-(0x1bc2+1774-0x22af)]=((char)(0x45b+17-0x43c));db_data->sms_content[
-(0x1778+3486-0x2512)*ind+(0x37d+4853-0x1670)]=g_zUfiSms_DigAscMap[((ts_data_ptr
-->u.gw_pp.u.deliver.user_data.sm_data[ind]&(0x314+1403-0x79f))>>
-(0x1bdf+733-0x1eb8))];db_data->sms_content[(0x1d0d+123-0x1d84)*ind+
-(0xafb+288-0xc18)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.user_data
-.sm_data[ind]&(0x1010+3798-0x1ed7))];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)(0x13fc+341-0x154f);}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=
-(0x13ff+4534-0x25b5);int ind=(0x1fab+1236-0x247f);if((NULL==ts_data_ptr)||(NULL
-==db_data)){printf(
+alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0xf74+3877-0x1e99);ind<ts_data_ptr->u.
+gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[(0x2ed+7536-0x2059)
+*ind]=((char)(0xbcd+6441-0x24c6));db_data->sms_content[(0x1244+2171-0x1abb)*ind+
+(0x9e7+230-0xacc)]=((char)(0xbc5+5166-0x1fc3));db_data->sms_content[
+(0xadf+4069-0x1ac0)*ind+(0x53+4870-0x1357)]=g_zUfiSms_DigAscMap[((ts_data_ptr->u
+.gw_pp.u.deliver.user_data.sm_data[ind]&(0x1c95+1829-0x22ca))>>(0x8a+3680-0xee6)
+)];db_data->sms_content[(0x686+2509-0x104f)*ind+(0x8d5+6591-0x2291)]=
+g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_data[ind]&
+(0x16b9+1056-0x1aca))];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)
+(0x8ab+6136-0x20a1);}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=(0xeff+1050-0x1319);int ind=(0x703+5811-0x1db6);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[
-(0x14aa+838-0x17f0)]=((char)(0x1d0b+591-0x1f2f));for(i=(0x48c+3706-0x1306);i<
-address_ptr->number_of_digits;i++){if((0x7ca+4803-0x1a83)==address_ptr->digits[i
-]){db_data->number[i+(0xd84+47-0xdb2)]=((char)(0xa4b+6258-0x228d));}else{db_data
-->number[i+(0x42+1683-0x6d4)]=((char)(0x1945+2889-0x245e))+address_ptr->digits[i
-];}}}else{for(i=(0x690+7111-0x2257);i<address_ptr->number_of_digits;i++){if(
-(0xa25+1485-0xfe8)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0x551+1036-0x92d));}else{db_data->number[i]=((char)(0x126+9011-0x2429))+
-address_ptr->digits[i];}}}tp_dcs=ts_data_ptr->u.gw_pp.u.submit.dcs.alphabet;
+(0xc49+4305-0x1d1a)]=((char)(0x3f9+3552-0x11ae));for(i=(0x252+4357-0x1357);i<
+address_ptr->number_of_digits;i++){if((0x118d+3825-0x2074)==address_ptr->digits[
+i]){db_data->number[i+(0x10b7+3714-0x1f38)]=((char)(0x3aa+6259-0x1bed));}else{
+db_data->number[i+(0x1223+2650-0x1c7c)]=((char)(0x18bf+3656-0x26d7))+address_ptr
+->digits[i];}}}else{for(i=(0x287+7252-0x1edb);i<address_ptr->number_of_digits;i
+++){if((0x1baf+624-0x1e15)==address_ptr->digits[i]){db_data->number[i]=
+((char)(0xad3+2619-0x14de));}else{db_data->number[i]=((char)(0x5d5+5220-0x1a09))
++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)(0x451+2372-0xd94)
-;}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(unsigned char)
-(0xc91+1027-0x1092);}else{printf(
+WMS_GW_ALPHABET_8_BIT>=tp_dcs){db_data->tp_dcs=(unsigned char)
+(0x86d+5293-0x1d19);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
+unsigned char)(0x1301+3140-0x1f43);}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=
-(0x639+6836-0x20ec);}else{db_data->tp_udhi=(0x18c9+77-0x1916);}if(db_data->
-tp_udhi==(0xd03+909-0x108f)){for(ind=(0xff2+2059-0x17fd);ind<ts_data_ptr->u.
+(0x10a8+587-0x12f2);}else{db_data->tp_udhi=(0x15f8+3483-0x2393);}if(db_data->
+tp_udhi==(0x2fd+6479-0x1c4b)){for(ind=(0x58d+7772-0x23e9);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[(0x13fd+3525-0x21c1)]){printf(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0x4c3+7317-0x2157)]){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=(0x195b+556-0x1b87);
+gw_pp.u.submit.dcs.alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0x1d1+6688-0x1bf1);
 ind<ts_data_ptr->u.gw_pp.u.submit.user_data.sm_len;ind++){db_data->sms_content[
-(0xd43+2473-0x16e8)*ind]=((char)(0xe7a+1018-0x1244));db_data->sms_content[
-(0xa95+4279-0x1b48)*ind+(0x1922+2649-0x237a)]=((char)(0x20c0+1051-0x24ab));
-db_data->sms_content[(0x50d+5505-0x1a8a)*ind+(0x985+6645-0x2378)]=
+(0x2213+943-0x25be)*ind]=((char)(0x156f+483-0x1722));db_data->sms_content[
+(0x17cc+2143-0x2027)*ind+(0x1669+758-0x195e)]=((char)(0x151b+3210-0x2175));
+db_data->sms_content[(0xf14+3124-0x1b44)*ind+(0xf11+123-0xf8a)]=
 g_zUfiSms_DigAscMap[((ts_data_ptr->u.gw_pp.u.submit.user_data.sm_data[ind]&
-(0x211c+1084-0x2468))>>(0xbc9+1643-0x1230))];db_data->sms_content[
-(0x4cb+4814-0x1795)*ind+(0x11e4+1770-0x18cb)]=g_zUfiSms_DigAscMap[(ts_data_ptr->
-u.gw_pp.u.submit.user_data.sm_data[ind]&(0x6d8+331-0x814))];db_data->alphabet=
+(0x371+1743-0x950))>>(0x8bf+5967-0x200a))];db_data->sms_content[
+(0x1ee0+90-0x1f36)*ind+(0x1f1f+1391-0x248b)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u
+.gw_pp.u.submit.user_data.sm_data[ind]&(0x1536+1801-0x1c30))];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)(0x837+3165-0x1492);}return result;}int InvertNumbers(
+tp_dcs=(unsigned char)(0x9df+3381-0x1712);}return result;}int InvertNumbers(
 const char*pSrc,char*pDst,int nSrcLength){int nDstLength;char ch;int i=
-(0x10e9+4785-0x239a);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1cad+2356-0x25e1))
-{return-(0x245+6435-0x1b67);}nDstLength=nSrcLength;for(i=(0xdd3+1152-0x1253);i<
-nSrcLength;i+=(0xb64+3725-0x19ef)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
-nSrcLength&(0xecd+2399-0x182b)){*(pDst-(0x288+9343-0x2705))=
-((char)(0x584+4233-0x15c7));nDstLength++;}*pDst='\0';return nDstLength;}int 
+(0x2037+256-0x2137);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1272+1197-0x171f)){
+return-(0xd32+5644-0x233d);}nDstLength=nSrcLength;for(i=(0x1366+4409-0x249f);i<
+nSrcLength;i+=(0x9d3+4832-0x1cb1)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
+nSrcLength&(0x2a4+4783-0x1552)){*(pDst-(0xd71+5976-0x24c7))=
+((char)(0xaf8+78-0xb00));nDstLength++;}*pDst='\0';return nDstLength;}int 
 code_is_gsm7(const SMS_PARAM*pSrc,unsigned char buf[],int nLength){if(pSrc->
-TP_UDHI==(0x13c1+3112-0x1fe8)){buf[(0x2666+73-0x26ac)]=(unsigned char)nLength;
-buf[(0x196d+137-0x19f2)]=(unsigned char)pSrc->TP_UD[(0xa05+93-0xa62)];buf[
-(0x305+2777-0xdd9)]=(0x177a+665-0x1a13);buf[(0xd9+3480-0xe6b)]=(unsigned char)
-pSrc->TP_UD[(0x24b+2593-0xc6a)];buf[(0x1fd7+563-0x2203)]=(unsigned char)pSrc->
-TP_UD[(0x114f+4097-0x214d)];buf[(0xe20+6313-0x26c1)]=(unsigned char)pSrc->TP_UD[
-(0xb4a+1918-0x12c4)];buf[(0x1881+2698-0x2302)]=(unsigned char)pSrc->TP_UD[
-(0x3a+2693-0xaba)];buf[(0xa85+3921-0x19cc)]=(unsigned char)pSrc->TP_UD[
-(0xd80+5773-0x2406)];buf[(0x63a+2105-0xe69)]=(unsigned char)(buf[
-(0xfd9+4249-0x2068)]<<(0x188d+2164-0x2100));nLength=nLength-(0x28d+4747-0x1511);
-nLength=Encode7bit(&(pSrc->TP_UD[(0x18e0+367-0x1a47)]),&buf[(0x8d6+3547-0x16a6)]
-,nLength+(0x49d+4000-0x143c))+(0x69c+3686-0x14fe)+(0x137a+263-0x147b);
-#if (0x16ab+2339-0x1fce)
-nLength+=(0x485+5213-0x18e0);
+TP_UDHI==(0x3fc+7177-0x2004)){buf[(0x157+3001-0xd0d)]=(unsigned char)nLength;buf
+[(0x3e4+8379-0x249b)]=(unsigned char)pSrc->TP_UD[(0x1c6f+1765-0x2354)];buf[
+(0xc86+4535-0x1e38)]=(0xbb4+2971-0x174f);buf[(0x475+1669-0xaf4)]=(unsigned char)
+pSrc->TP_UD[(0x1248+3059-0x1e39)];buf[(0x131c+2463-0x1cb4)]=(unsigned char)pSrc
+->TP_UD[(0xdcb+2049-0x15c9)];buf[(0xdb0+612-0x100c)]=(unsigned char)pSrc->TP_UD[
+(0x4a7+7094-0x2059)];buf[(0x1181+4846-0x2466)]=(unsigned char)pSrc->TP_UD[
+(0xe9c+2491-0x1852)];buf[(0xa9f+5209-0x1eee)]=(unsigned char)pSrc->TP_UD[
+(0x10d0+1411-0x164c)];buf[(0x24bb+377-0x262a)]=(unsigned char)(buf[
+(0x8b6+5826-0x1f6e)]<<(0x625+6934-0x213a));nLength=nLength-(0xc31+6389-0x251f);
+nLength=Encode7bit(&(pSrc->TP_UD[(0x437+1125-0x894)]),&buf[(0x462+7739-0x2292)],
+nLength+(0xd00+3009-0x18c0))+(0x713+3787-0x15da)+(0x7ff+3349-0x150e);
+#if (0x339+2375-0xc80)
+nLength+=(0x1561+4111-0x256e);
 #endif

-}else{nLength=pSrc->TP_UDLength;buf[(0x19d8+311-0x1b0c)]=nLength;nLength=
-Encode7bit(pSrc->TP_UD,&buf[(0x8a6+2593-0x12c3)],nLength+(0xaf5+3685-0x1959))+
-(0x1574+3945-0x24d9);}at_print(LOG_DEBUG,
+}else{nLength=pSrc->TP_UDLength;buf[(0x18c1+1457-0x1e6f)]=nLength;nLength=
+Encode7bit(pSrc->TP_UD,&buf[(0x913+6106-0x20e9)],nLength+(0x9ab+3947-0x1915))+
+(0x110c+400-0x1298);}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==(0x374+2114-0xbb5)){buf[
-(0x1715+3819-0x25fd)]=(unsigned char)nLength;buf[(0x22dc+150-0x236e)]=(unsigned 
-char)pSrc->TP_UD[(0x232+1693-0x8cf)];buf[(0x30c+3924-0x125b)]=
-(0xcaf+4400-0x1ddf);buf[(0x4a1+1213-0x958)]=(unsigned char)pSrc->TP_UD[
-(0x1488+4532-0x263a)];buf[(0xfa4+3044-0x1b81)]=(unsigned char)pSrc->TP_UD[
-(0x607+8144-0x25d4)];buf[(0xe0+8862-0x2376)]=(unsigned char)pSrc->TP_UD[
-(0x1116+5299-0x25c5)];buf[(0x555+5180-0x1988)]=(unsigned char)pSrc->TP_UD[
-(0x1aab+2739-0x2559)];buf[(0xc17+1221-0x10d9)]=(unsigned char)(EncodeUcs2(&(pSrc
-->TP_UD[(0x14f8+675-0x1795)]),&buf[(0x4b+2126-0x88f)],nLength-
-(0x15d9+3954-0x2545))+(0x137a+1457-0x1925));nLength=buf[(0xbd1+1738-0x1298)]+
-(0x102c+173-0x10d5);}else{buf[(0x135+7590-0x1ed8)]=EncodeUcs2(pSrc->TP_UD,&buf[
-(0x1046+1292-0x154e)],nLength);nLength=buf[(0xad9+1498-0x10b0)]+
-(0x212d+693-0x23de);}return nLength;}int Encode8bit(const char*pSrc,unsigned 
-char*pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<
-(0xaaa+6408-0x23b2)){return-(0x3b0+7219-0x1fe2);}memcpy(pDst,pSrc,nSrcLength);
-return nSrcLength;}int EncodePdu_Submit(const SMS_PARAM*pSrc,char*pDst){int 
-nLength=(0x47c+2821-0xf81);int nDstLength=(0xf63+627-0x11d6);unsigned char buf[
-(0x9c9+3930-0x1823)]={(0x8b1+5758-0x1f2f)};char tmpSCA[(0x105+8898-0x23a3)]={
-(0xb12+5044-0x1ec6)};int check_udl=(0x15bb+1054-0x19d9);memset(tmpSCA,
-(0xda5+4260-0x1e49),sizeof(tmpSCA));if(pSrc==NULL||pDst==NULL){return-
-(0xb00+1289-0x1008);}
-#if (0x82a+5024-0x1bc9)
+strlen(pSrc->TP_UD);if(pSrc->TP_UDHI==(0xadf+791-0xdf5)){buf[(0x724+6909-0x221e)
+]=(unsigned char)nLength;buf[(0x11dc+2032-0x19c8)]=(unsigned char)pSrc->TP_UD[
+(0x22f1+792-0x2609)];buf[(0x2c1+7914-0x21a6)]=(0x3aa+4431-0x14f9);buf[
+(0x1281+1702-0x1921)]=(unsigned char)pSrc->TP_UD[(0x17aa+3742-0x2646)];buf[
+(0x1487+1466-0x1a3a)]=(unsigned char)pSrc->TP_UD[(0xb0a+1705-0x11b0)];buf[
+(0xe08+3316-0x1af4)]=(unsigned char)pSrc->TP_UD[(0xb1d+1783-0x1210)];buf[
+(0x1418+4845-0x26fc)]=(unsigned char)pSrc->TP_UD[(0x189a+3177-0x24fe)];buf[
+(0x95f+2396-0x12b8)]=(unsigned char)(EncodeUcs2(&(pSrc->TP_UD[(0x7a7+1969-0xf52)
+]),&buf[(0x17d2+1867-0x1f13)],nLength-(0x1bf7+2032-0x23e1))+(0x20ac+1073-0x24d7)
+);nLength=buf[(0x178d+1383-0x1cf1)]+(0x21e7+1309-0x2700);}else{buf[
+(0x788+3231-0x1424)]=EncodeUcs2(pSrc->TP_UD,&buf[(0x14c8+433-0x1675)],nLength);
+nLength=buf[(0x6bc+723-0x98c)]+(0x7f2+7860-0x26a2);}return nLength;}int 
+Encode8bit(const char*pSrc,unsigned char*pDst,int nSrcLength){if(pSrc==NULL||
+pDst==NULL||nSrcLength<(0x1600+2996-0x21b4)){return-(0x1b9+1420-0x744);}memcpy(
+pDst,pSrc,nSrcLength);return nSrcLength;}int EncodePdu_Submit(const SMS_PARAM*
+pSrc,char*pDst){int nLength=(0xce2+233-0xdcb);int nDstLength=(0x1fc+7056-0x1d8c)
+;unsigned char buf[(0xf78+3692-0x1ce4)]={(0x87d+7688-0x2685)};char tmpSCA[
+(0x37f+5741-0x19c8)]={(0x773+5367-0x1c6a)};int check_udl=(0x10a2+84-0x10f6);
+memset(tmpSCA,(0x15da+3057-0x21cb),sizeof(tmpSCA));if(pSrc==NULL||pDst==NULL){
+return-(0x11e8+309-0x131c);}
+#if (0x1849+885-0x1bbd)
 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(
@@ -909,392 +905,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[(0xdd4+4230-0x1e5a)]=(char)(((nLength)&
-(0xb29+4144-0x1b58))==(0x3cb+4031-0x138a)?(nLength):nLength+(0x244b+657-0x26db))
-/(0x656+8171-0x263f)+(0x102+9188-0x24e5);buf[(0x189f+1051-0x1cb9)]=
-(0x1c8+1979-0x902);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)-(0x7e6+1230-0xcb3));
-if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",(0x892+2664-0x12f6)))){memset(tmpSCA,
-(0x10cb+3411-0x1e1e),sizeof(tmpSCA));nLength=nLength-(0x356+3779-0x1218);
-#if (0x14dc+534-0x16f1)
-nLength=nLength-(0x1822+2598-0x2247);strncpy(tmpSCA,&(pSrc->SCA[
-(0x93+1350-0x5d7)]),sizeof(tmpSCA)-(0xc3d+1423-0x11cb));
+nLength=strlen(pSrc->SCA);buf[(0x6d2+1635-0xd35)]=(char)(((nLength)&
+(0x27+2086-0x84c))==(0x1fb1+323-0x20f4)?(nLength):nLength+(0x14c+5927-0x1872))/
+(0xbe4+249-0xcdb)+(0x405+2560-0xe04);buf[(0x1f6+642-0x477)]=(0x38f+5314-0x17d0);
+strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)-(0x114b+4895-0x2469));if(!(strncmp(pSrc
+->SCA,"\x30\x30\x38\x36",(0x50a+3343-0x1215)))){memset(tmpSCA,
+(0x8f7+5128-0x1cff),sizeof(tmpSCA));nLength=nLength-(0x4bc+6586-0x1e75);
+#if (0x166b+1762-0x1d4c)
+nLength=nLength-(0xfe2+5120-0x23e1);strncpy(tmpSCA,&(pSrc->SCA[
+(0x19b6+3014-0x257a)]),sizeof(tmpSCA)-(0x904+6632-0x22eb));
 #else

-tmpSCA[(0x1413+3105-0x2034)]=((char)(0x8dd+7051-0x243d));strcpy(&(tmpSCA[
-(0x1455+1273-0x194d)]),&(pSrc->SCA[(0x106d+2293-0x1960)]));
+tmpSCA[(0x864+2716-0x1300)]=((char)(0x50a+7662-0x22cd));strcpy(&(tmpSCA[
+(0x646+4345-0x173e)]),&(pSrc->SCA[(0xfd1+1753-0x16a8)]));
 #endif

-buf[(0x80f+4158-0x184d)]=(char)((nLength&(0x1c60+1544-0x2267))==(0xa48+12-0xa54)
-?nLength:nLength+(0x2cd+4036-0x1290))/(0x15c+1388-0x6c6)+(0x44f+6836-0x1f02);buf
-[(0x598+6600-0x1f5f)]=(0x6d2+5232-0x1ab1);}else if(((char)(0x190c+2701-0x236e))
-==pSrc->SCA[(0x1850+899-0x1bd3)]){memset(tmpSCA,(0x6bd+1219-0xb80),sizeof(tmpSCA
-));
-#if (0xd2b+2706-0x17bc)
-nLength=nLength-(0x1041+5494-0x25b6);strncpy(tmpSCA,&(pSrc->SCA[
-(0x1599+4088-0x2590)]),sizeof(tmpSCA)-(0xecf+860-0x122a));
+buf[(0x1e1f+1130-0x2289)]=(char)((nLength&(0x3f+5461-0x1593))==
+(0xba9+4743-0x1e30)?nLength:nLength+(0x9a+8567-0x2210))/(0x4d5+8331-0x255e)+
+(0x1346+4647-0x256c);buf[(0x17b+9455-0x2669)]=(0x2db+618-0x4b4);}else if(
+((char)(0x1879+1464-0x1e06))==pSrc->SCA[(0x183+4308-0x1257)]){memset(tmpSCA,
+(0x1762+1249-0x1c43),sizeof(tmpSCA));
+#if (0xdf3+5292-0x229e)
+nLength=nLength-(0x1f8a+1465-0x2542);strncpy(tmpSCA,&(pSrc->SCA[
+(0x16d+5701-0x17b1)]),sizeof(tmpSCA)-(0x1c5+3579-0xfbf));
 #else

 strcpy(tmpSCA,pSrc->SCA);
 #endif

-buf[(0xcfa+3285-0x19cf)]=(char)((nLength&(0x1408+1404-0x1983))==
-(0xe2b+3267-0x1aee)?(nLength):nLength+(0x173f+1857-0x1e7f))/(0x9d7+3764-0x1889)+
-(0x2bc+4536-0x1473);buf[(0x2cd+925-0x669)]=(0x11d3+1721-0x17fb);}
-#if (0xf2b+3729-0x1dbb)
+buf[(0xe21+5049-0x21da)]=(char)((nLength&(0x20e4+1305-0x25fc))==(0x9d+11-0xa8)?(
+nLength):nLength+(0xa94+1112-0xeeb))/(0x9ef+7034-0x2567)+(0x18b7+2352-0x21e6);
+buf[(0x1961+1167-0x1def)]=(0xb3+9743-0x2631);}
+#if (0x22a+9368-0x26c1)
 printf(
 "\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x70\x64\x73\x74\x32\x3a\x25\x73" "\n",
 pDst);
 #endif

-if(nLength<(0x547+4242-0x15d8)||nLength>=sizeof(tmpSCA))return-
-(0xbb6+1006-0xfa3);nDstLength=Bytes2String(buf,pDst,(0xc60+1085-0x109b));
+if(nLength<(0x1087+984-0x145e)||nLength>=sizeof(tmpSCA))return-
+(0x3ad+4175-0x13fb);nDstLength=Bytes2String(buf,pDst,(0x256+5631-0x1853));
 nDstLength+=InvertNumbers(tmpSCA,&pDst[nDstLength],nLength);
-#if (0x109+569-0x341)
+#if (0xdf3+4010-0x1d9c)
 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[(0x9cc+2131-0x121f)]==((char)(0x10fd+1121-0x1533))){nLength=strlen(
-&(pSrc->TPA[(0x6b7+6423-0x1fcd)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
-TP_UDHI==(0x9aa+774-0xcb0)){if(pSrc->TP_SRR==(0xc81+3580-0x1a7d)){buf[
-(0xc89+1949-0x1426)]=(0x38b+994-0x75c);}if(pSrc->TP_SRR==(0x140a+108-0x1475)){
-buf[(0x2142+696-0x23fa)]=(0x1fb+5309-0x1687);}}if(pSrc->TP_UDHI==
-(0xced+3509-0x1aa1)){if(pSrc->TP_SRR==(0x11e9+150-0x127f)){buf[
-(0xcc4+6538-0x264e)]=(0x1848+1013-0x1bec);}if(pSrc->TP_SRR==(0x3b+2412-0x9a6)){
-buf[(0x37a+3731-0x120d)]=(0x14e8+4355-0x257a);}}buf[(0xf6a+1548-0x1575)]=
-(0x70a+3271-0x13d1);buf[(0x1653+1153-0x1ad2)]=(char)nLength;if(pSrc->TPA[
-(0xd0b+1976-0x14c3)]==((char)(0x3fc+7285-0x2046))){buf[(0x1c43+1737-0x2309)]=
-(0xab0+6609-0x23f0);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
-(0x4c7+3769-0x137c));nDstLength+=InvertNumbers(&(pSrc->TPA[(0x420+1666-0xaa1)]),
-&pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
-(0x5c5+6128-0x1db1)))){buf[(0x128b+887-0x1600)]=(char)nLength-
-(0x785+8006-0x26c9);buf[(0x13ca+3013-0x1f8c)]=(0x7d7+3800-0x161e);nDstLength+=
-Bytes2String(buf,&pDst[nDstLength],(0x444+8125-0x23fd));nDstLength+=
-InvertNumbers(&(pSrc->TPA[(0xc2a+6576-0x25d8)]),&pDst[nDstLength],nLength-
-(0x3cd+3487-0x116a));}else{buf[(0x3b5+5790-0x1a50)]=(0x260+7062-0x1d75);
-nDstLength+=Bytes2String(buf,&pDst[nDstLength],(0x20c+6768-0x1c78));nDstLength+=
-InvertNumbers(pSrc->TPA,&pDst[nDstLength],nLength);}
-#if (0x2374+340-0x24c7)
+if(pSrc->TPA[(0x2e4+2203-0xb7f)]==((char)(0x150+3240-0xdcd))){nLength=strlen(&(
+pSrc->TPA[(0x128f+4902-0x25b4)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
+TP_UDHI==(0xb12+5683-0x2145)){if(pSrc->TP_SRR==(0xa87+6707-0x24ba)){buf[
+(0x64b+522-0x855)]=(0x8b5+150-0x93a);}if(pSrc->TP_SRR==(0x11ec+3907-0x212e)){buf
+[(0xdf9+4571-0x1fd4)]=(0x128+5623-0x16ee);}}if(pSrc->TP_UDHI==(0x81b+925-0xbb7))
+{if(pSrc->TP_SRR==(0x6f0+1259-0xbdb)){buf[(0x8d5+6880-0x23b5)]=
+(0xe46+671-0x1094);}if(pSrc->TP_SRR==(0x1df+7757-0x202b)){buf[(0xd83+80-0xdd3)]=
+(0x77b+4075-0x16f5);}}buf[(0x1e34+1257-0x231c)]=(0x485+3123-0x10b8);buf[
+(0x2dd+1910-0xa51)]=(char)nLength;if(pSrc->TPA[(0xa24+6094-0x21f2)]==
+((char)(0x6d7+6425-0x1fc5))){buf[(0x3c7+579-0x607)]=(0x1f3+9352-0x25ea);
+nDstLength+=Bytes2String(buf,&pDst[nDstLength],(0x786+6710-0x21b8));nDstLength+=
+InvertNumbers(&(pSrc->TPA[(0x17d0+3394-0x2511)]),&pDst[nDstLength],nLength);}
+else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",(0x8e2+2303-0x11dd)))){buf[
+(0xccc+239-0xdb9)]=(char)nLength-(0x665+4270-0x1711);buf[(0x484+8744-0x26a9)]=
+(0x1cb+8196-0x213e);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
+(0x57f+5486-0x1ae9));nDstLength+=InvertNumbers(&(pSrc->TPA[(0x789+5152-0x1ba7)])
+,&pDst[nDstLength],nLength-(0x9da+2722-0x147a));}else{buf[(0x992+4252-0x1a2b)]=
+(0x5fc+7179-0x2186);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
+(0x677+4215-0x16ea));nDstLength+=InvertNumbers(pSrc->TPA,&pDst[nDstLength],
+nLength);}
+#if (0x8+3419-0xd62)
 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[(0x302+243-0x3f5)]=pSrc->TP_PID;buf[
-(0x833+7288-0x24aa)]=pSrc->TP_DCS;buf[(0x927+3131-0x1560)]=pSrc->TP_VP;if(pSrc->
+nLength=(int)pSrc->TP_UDLength;buf[(0x11c3+357-0x1328)]=pSrc->TP_PID;buf[
+(0x119a+551-0x13c0)]=pSrc->TP_DCS;buf[(0x758+4262-0x17fc)]=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==(0x319+4829-0x15f5)){buf[(0x1b42+2100-0x2373)]=(
-unsigned char)nLength;buf[(0x4ba+1274-0x9b0)]=(unsigned char)pSrc->TP_UD[
-(0x13ec+356-0x1550)];buf[(0xbba+1050-0xfcf)]=(0xd29+3184-0x1999);buf[
-(0x180a+1260-0x1cf0)]=(unsigned char)pSrc->TP_UD[(0x16e6+1938-0x1e76)];buf[
-(0x12d3+4015-0x227b)]=(unsigned char)pSrc->TP_UD[(0xfb+6316-0x19a4)];buf[
-(0x6d4+4351-0x17cb)]=(unsigned char)pSrc->TP_UD[(0x50b+4936-0x184f)];buf[
-(0x13fa+1400-0x1969)]=(unsigned char)pSrc->TP_UD[(0x197+1185-0x633)];if(nLength-
-(0x1648+35-0x1665)<=(0x159+7679-0x1f58)||nLength-(0xdd6+1670-0x1456)>=sizeof(buf
-)-(0x14ad+2567-0x1eaa))return-(0x7f4+7533-0x2560);buf[(0x4ba+600-0x70f)]=(
-unsigned char)(Encode8bit(&(pSrc->TP_UD[(0xd61+5117-0x2158)]),&buf[
-(0x856+1642-0xeb6)],(unsigned short)(nLength-(0x48d+7730-0x22b9)))+
-(0x5ed+961-0x9a8));nLength=buf[(0x1bc5+215-0x1c99)]+(0x17eb+2784-0x22c7);}else{
-if(nLength<=(0xf60+1656-0x15d8)||nLength>=sizeof(buf)-(0x1a8+8841-0x242d))return
--(0x78a+7980-0x26b5);buf[(0x4b+3604-0xe5c)]=Encode8bit(pSrc->TP_UD,&buf[
-(0x103a+4920-0x236e)],nLength);nLength=buf[(0x1f2d+797-0x2247)]+
-(0x1be9+1390-0x2153);}}check_udl=nLength-(0x2464+217-0x2539);nDstLength+=
+TP_UD);if(pSrc->TP_UDHI==(0x2a6+2203-0xb40)){buf[(0x1477+2964-0x2008)]=(unsigned
+ char)nLength;buf[(0x181f+3521-0x25dc)]=(unsigned char)pSrc->TP_UD[
+(0x13cb+2027-0x1bb6)];buf[(0x3d3+2683-0xe49)]=(0xcb3+1294-0x11c1);buf[
+(0x1d22+1583-0x234b)]=(unsigned char)pSrc->TP_UD[(0xe83+3297-0x1b62)];buf[
+(0x11db+4720-0x2444)]=(unsigned char)pSrc->TP_UD[(0x7d0+5400-0x1ce5)];buf[
+(0x55b+8498-0x2685)]=(unsigned char)pSrc->TP_UD[(0x6bc+3429-0x141d)];buf[
+(0x6ab+7797-0x2517)]=(unsigned char)pSrc->TP_UD[(0x281+1093-0x6c1)];if(nLength-
+(0x1220+4773-0x24bf)<=(0x1060+2139-0x18bb)||nLength-(0x261+3342-0xf69)>=sizeof(
+buf)-(0x215c+464-0x2322))return-(0x3a3+3295-0x1081);buf[(0x2d7+6273-0x1b55)]=(
+unsigned char)(Encode8bit(&(pSrc->TP_UD[(0xe8a+4216-0x1efc)]),&buf[
+(0xee3+2852-0x19fd)],(unsigned short)(nLength-(0x16d+1080-0x59f)))+
+(0x103f+2572-0x1a45));nLength=buf[(0x1424+191-0x14e0)]+(0x30f+3433-0x1074);}else
+{if(nLength<=(0x1344+64-0x1384)||nLength>=sizeof(buf)-(0x17c7+2589-0x21e0))
+return-(0x611+2929-0x1181);buf[(0x1c7d+1955-0x241d)]=Encode8bit(pSrc->TP_UD,&buf
+[(0xa71+5914-0x2187)],nLength);nLength=buf[(0x219+7534-0x1f84)]+
+(0xc3f+2972-0x17d7);}}check_udl=nLength-(0x12e8+5148-0x2700);nDstLength+=
 Bytes2String(buf,&pDst[nDstLength],nLength);sc_cfg_set(NV_CHECK_UDL,"");if(
-check_udl>(0x2c5+5522-0x17cb)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");}
-#if (0xc3a+4860-0x1f35)
+check_udl>(0x1d42+2603-0x26e1)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");
+}
+#if (0xfb3+2359-0x18e9)
 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 (0xa57+3957-0x19cb)
+#if (0xae5+736-0xdc4)
 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<(0xf4f+4500-0x20e3)){return-(0x768+3839-0x1666);}nSrc=
-(0xff7+1197-0x14a4);nDst=(0x2278+1142-0x26ee);nByte=(0x16c9+3823-0x25b8);nLeft=
-(0x101b+3335-0x1d22);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
-(0x1213+4877-0x24a1);nLeft=*pSrc>>((0x23d+4770-0x14d8)-nByte);pDst++;nDst++;
-nByte++;if(nByte==(0x17b1+3567-0x2599)){*pDst=nLeft;pDst++;nDst++;nByte=
-(0xbed+6081-0x23ae);nLeft=(0xe1+4128-0x1101);}pSrc++;nSrc++;}*pDst='\0';return 
-nDst;}int DecodePushPdu(const char*pSrcPdu,SMS_PARAM*pDst){int nDstLength=
-(0x3f9+7678-0x21f7);unsigned char tmp=(0x93c+5752-0x1fb4);int ud_length=
-(0xa79+620-0xce5);unsigned char buf[(0x1f89+322-0x1fcb)]={(0xf57+5888-0x2657)};
-char temp_num[(0x958+5371-0x1def)]={(0x152+6675-0x1b65)};unsigned char 
-first_octet=(0x1a49+3057-0x263a);unsigned char udhl=(0xd22+5434-0x225c);unsigned
- int halftmp=(0x622+2414-0xf90);char tp_ra[(0x1cfd+2134-0x2550)]={
-(0x1486+3775-0x2345)};int tmplen=(0x13b3+3855-0x22c2);unsigned char IEIDL;int 
-pushType=(0xe05+5709-0x2452);const char*pSrc=pSrcPdu;if(pSrcPdu==NULL||pDst==
+==NULL||nSrcLength<(0xfa+6260-0x196e)){return-(0x19f9+2773-0x24cd);}nSrc=
+(0x4d2+4182-0x1528);nDst=(0x4d5+973-0x8a2);nByte=(0x1ff1+400-0x2181);nLeft=
+(0x206f+256-0x216f);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
+(0x42d+7557-0x2133);nLeft=*pSrc>>((0xea8+5888-0x25a1)-nByte);pDst++;nDst++;nByte
+++;if(nByte==(0xa21+1436-0xfb6)){*pDst=nLeft;pDst++;nDst++;nByte=
+(0x1c7b+1018-0x2075);nLeft=(0x25f+7960-0x2177);}pSrc++;nSrc++;}*pDst='\0';return
+ nDst;}int DecodePushPdu(const char*pSrcPdu,SMS_PARAM*pDst){int nDstLength=
+(0x284+856-0x5dc);unsigned char tmp=(0x39+9484-0x2545);int ud_length=
+(0x14fd+3240-0x21a5);unsigned char buf[(0x8db+2469-0x1180)]={(0xea4+1523-0x1497)
+};char temp_num[(0x579+3856-0x1425)]={(0xce5+3749-0x1b8a)};unsigned char 
+first_octet=(0x878+2550-0x126e);unsigned char udhl=(0xc74+1737-0x133d);unsigned 
+int halftmp=(0x14f6+4078-0x24e4);char tp_ra[(0x1a18+2583-0x242c)]={
+(0x1c3b+1555-0x224e)};int tmplen=(0x7d3+7006-0x2331);unsigned char IEIDL;int 
+pushType=(0x1364+4255-0x2403);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-(0xdc6+2614-0x17fb);}String2Bytes(pSrc,&tmp,(0x11b0+2479-0x1b5d));
+);return-(0x11e9+2454-0x1b7e);}String2Bytes(pSrc,&tmp,(0x76+7580-0x1e10));
 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==(0x82f+7865-0x26e8)){pSrc+=(0x13ba+2984-0x1f60);}else{tmp=(tmp-
-(0xbb3+2025-0x139b))*(0x1454+3190-0x20c8);pSrc+=(0x4f7+4480-0x1673);if(tmp>
-(0xe96+1862-0x15bc)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x18ad+2818-0x238f));
-tmp=(0x9d4+7426-0x26b6);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=
-tmp;}String2Bytes(pSrc,&tmp,(0x14df+2686-0x1f5b));first_octet=tmp;pSrc+=
-(0xa31+7147-0x261a);String2Bytes(pSrc,&tmp,(0x625+8177-0x2614));halftmp=tmp;if(
-tmp&(0x69a+4778-0x1943))tmp+=(0x42d+4905-0x1755);pSrc+=(0x146a+2123-0x1cb3);
-memset(tp_ra,(0x485+6659-0x1e88),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
-(0xcc6+4214-0x1d3a));pSrc+=(0xcfd+3282-0x19cd);if((tp_ra[(0x53d+1354-0xa87)]&
-(0x126+453-0x29b))==(0x8cb+2903-0x13d2)){char tempra[(0x68c+2525-0xfe9)];char 
-acAsc[(0x1a26+1631-0x2005)];if(halftmp>=(0x1641+3606-0x2449)){halftmp=(tmp/
-(0x1569+2857-0x2090))/(0xd6d+1245-0x1243)+(tmp/(0x30b+1058-0x72b));}else{halftmp
-=tmp/(0x1007+2333-0x1922);}memset(tempra,(0x1c52+574-0x1e90),sizeof(tempra));
-memcpy(tempra,pSrc,tmp);memset(acAsc,(0x853+4519-0x19fa),sizeof(acAsc));
-nDstLength=String2Bytes(tempra,buf,halftmp&(0x12c9+1321-0x17eb)?(int)halftmp*
-(0x42c+4674-0x1667)/(0x11f1+370-0x135f)+(0x747+7587-0x24e8):(int)halftmp*
-(0x2bb+8780-0x2500)/(0xbf0+3284-0x18c0));halftmp=Decode7bit(buf,acAsc,nDstLength
-);memset(pDst->TPA,(0x1c38+1911-0x23af),sizeof(pDst->TPA));if(halftmp>
-(0x14d+2265-0xa06)){memcpy(pDst->TPA,acAsc,(0x2e4+6108-0x1aa0));tmp=
-(0x86b+2724-0x12ef);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
-(0xa4a+1104-0xe7a)){SerializeNumbers_sms(pSrc,pDst->TPA,(0x12df+4291-0x2382));}
-else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0x4f2+4937-0x183b)]&
-(0x6fd+1270-0xb62))==(0xf8d+1284-0x1400)){memset(temp_num,(0x6d8+7101-0x2295),
-sizeof(temp_num));if(pDst->TPA[(0x30d+4585-0x14f6)]!=((char)(0x8f5+448-0xa8a))){
-snprintf(temp_num,sizeof(temp_num),"\x25\x73\x25\x73","\x2b",pDst->TPA);if(
-strlen(temp_num)>(0x1d3+3618-0xfd5)){snprintf(pDst->TPA,sizeof(pDst->TPA),
+,tmp);if(tmp==(0x1620+1198-0x1ace)){pSrc+=(0x14a3+2771-0x1f74);}else{tmp=(tmp-
+(0x143+1753-0x81b))*(0xacd+4034-0x1a8d);pSrc+=(0xe5+2836-0xbf5);if(tmp>
+(0x11e2+2239-0x1a81)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x5cd+4707-0x1810));
+tmp=(0x67c+6534-0x1fe2);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=
+tmp;}String2Bytes(pSrc,&tmp,(0xff0+3152-0x1c3e));first_octet=tmp;pSrc+=
+(0x168d+4127-0x26aa);String2Bytes(pSrc,&tmp,(0xc20+1929-0x13a7));halftmp=tmp;if(
+tmp&(0x15cb+1404-0x1b46))tmp+=(0x130c+3513-0x20c4);pSrc+=(0x148b+3745-0x232a);
+memset(tp_ra,(0xa9+9058-0x240b),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
+(0xb59+2691-0x15da));pSrc+=(0x13d2+1859-0x1b13);if((tp_ra[(0x121a+1603-0x185d)]&
+(0x26c+3349-0xf31))==(0x2a7+2391-0xbae)){char tempra[(0x1057+3145-0x1c20)];char 
+acAsc[(0x135+7546-0x1e2f)];if(halftmp>=(0xcad+2529-0x1680)){halftmp=(tmp/
+(0x4a4+2331-0xdbd))/(0x1a8a+3165-0x26e0)+(tmp/(0xc40+4176-0x1c8e));}else{halftmp
+=tmp/(0xad2+6434-0x23f2);}memset(tempra,(0x1e2+4784-0x1492),sizeof(tempra));
+memcpy(tempra,pSrc,tmp);memset(acAsc,(0x7df+855-0xb36),sizeof(acAsc));nDstLength
+=String2Bytes(tempra,buf,halftmp&(0xfb8+478-0x118f)?(int)halftmp*
+(0x11a9+2970-0x1d3c)/(0x1a1f+1579-0x2046)+(0xe0c+1952-0x15aa):(int)halftmp*
+(0xf16+1780-0x1603)/(0x320+4447-0x147b));halftmp=Decode7bit(buf,acAsc,nDstLength
+);memset(pDst->TPA,(0x11fd+2766-0x1ccb),sizeof(pDst->TPA));if(halftmp>
+(0x440+7473-0x2151)){memcpy(pDst->TPA,acAsc,(0xe2+8858-0x235c));tmp=
+(0x873+3009-0x1414);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
+(0x101f+5778-0x2691)){SerializeNumbers_sms(pSrc,pDst->TPA,(0x6c3+658-0x935));}
+else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0x3cd+7369-0x2096)]&
+(0x2067+1830-0x26fc))==(0x239c+510-0x2509)){memset(temp_num,(0x2168+860-0x24c4),
+sizeof(temp_num));if(pDst->TPA[(0x31f+8144-0x22ef)]!=((char)(0x199+8415-0x224d))
+){snprintf(temp_num,sizeof(temp_num),"\x25\x73\x25\x73","\x2b",pDst->TPA);if(
+strlen(temp_num)>(0x153+9634-0x26d5)){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,(0xa5+7132-0x1c7f));pSrc+=(0x26d0+18-0x26e0);String2Bytes(pSrc,(unsigned 
-char*)&pDst->TP_DCS,(0x1c66+1577-0x228d));pSrc+=(0x1832+2802-0x2322);
-SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0x899+1439-0xe2a));pSrc+=
-(0xecd+3950-0x1e2d);String2Bytes(pSrc,&tmp,(0x5d3+3293-0x12ae));pSrc+=
-(0xafd+1020-0xef7);memset(pDst->TP_UD,(0x1e61+1705-0x250a),sizeof(pDst->TP_UD));
-at_print(LOG_DEBUG,
+TP_PID,(0x17da+3143-0x241f));pSrc+=(0x844+6930-0x2354);String2Bytes(pSrc,(
+unsigned char*)&pDst->TP_DCS,(0x1130+4152-0x2166));pSrc+=(0x1636+946-0x19e6);
+SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0x1cd1+2539-0x26ae));pSrc+=
+(0x7f9+6993-0x233c);String2Bytes(pSrc,&tmp,(0xbcc+4859-0x1ec5));pSrc+=
+(0x16c3+2676-0x2135);memset(pDst->TP_UD,(0x223d+628-0x24b1),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&(0x10fa+3354-0x1dd4)){const char*temp=pSrc;unsigned
- char pduType;unsigned char wspLen;unsigned char udhLen;unsigned char DestPort1;
+,first_octet);if(first_octet&(0x70d+6887-0x21b4)){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,(0x15d+1895-0x8c2));temp+=
-(0x1593+685-0x183e);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0x1cdd+944-0x208b));
-at_print(LOG_DEBUG,
+SMS_NO_PUSH;String2Bytes(temp,&udhl,(0x761+3362-0x1481));temp+=
+(0x17dd+3668-0x262f);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0x12a4+2548-0x1c96)
+);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==(0x517+4396-0x163e)){temp+=(0xa32+5139-0x1e43)*
-tmplen+(0x3a5+7204-0x1fc7);tmplen=String2Bytes(temp,&DestPort1,
-(0xeed+4917-0x2220));at_print(LOG_DEBUG,
+,pDst->TP_IEI);if(pDst->TP_IEI==(0xc31+1282-0x112e)){temp+=(0x10f3+641-0x1372)*
+tmplen+(0xbcf+1043-0xfe0);tmplen=String2Bytes(temp,&DestPort1,
+(0x1307+3749-0x21aa));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+=(0x865+7162-0x245d)*tmplen;tmplen=String2Bytes(temp,&DestPort2
-,(0xdd4+2454-0x1768));at_print(LOG_DEBUG,
+,DestPort1);temp+=(0x1033+2547-0x1a24)*tmplen;tmplen=String2Bytes(temp,&
+DestPort2,(0x81a+971-0xbe3));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==(0x370+3157-0xfba))&&((DestPort2==(0x91a+5454-0x1de4)
-)||(DestPort2==(0x12b1+832-0x156c)))){pushType=SMS_PUSH;}}if(SMS_PUSH!=pushType)
-{return pushType;}temp=pSrc+udhl*(0x16f0+3179-0x2359)+(0xc15+5205-0x2066);tmplen
-=String2Bytes(temp,&pduType,(0x57+9429-0x252a));if(pduType==(0x1e86+1716-0x2534)
-){pushType=SMS_PUSH;temp+=(0x25a+89-0x2af);tmplen=String2Bytes(temp,&pduType,
-(0x96c+6794-0x23f4));if(pduType==(0x201b+98-0x1fb9)){pushType=SMS_NOTIFICATION;}
-else{temp+=(0xccb+110-0xd35);tmplen=String2Bytes(temp,&pduType,
-(0x1537+693-0x17ea));if((pduType==(0xf92+960-0x1290))||(pduType==
-(0x16a1+3621-0x2410))){pushType=SMS_BOOTSTRAP;}}}if((pDst->TP_IEI==
-(0x3e9+6931-0x1ef8))||(pDst->TP_IEI==(0x1a87+1129-0x1eeb))||(pDst->TP_IEI==
-(0x1ecf+1807-0x25d6))){temp=pSrc+(0x1c1+2148-0xa21);tmplen=String2Bytes(temp,&
-IEIDL,(0x578+1083-0x9b1));if(IEIDL==(udhl-(0xf06+5651-0x2517))){}else{temp+=
-(0xec3+2086-0x16e7)*(0x159b+3312-0x2285);tmplen=String2Bytes(temp,&udhLen,
-(0xb03+6631-0x24e8));if(udhLen==(0x982+6064-0x212f)){temp+=(0x1627+1574-0x1c4b)*
-tmplen;tmplen=String2Bytes(temp,&RefNum1,(0xb20+7046-0x26a4));pDst->TP_ReferNum=
-RefNum1;temp+=(0xa67+4680-0x1cad)*tmplen;tmplen=String2Bytes(temp,&pDst->
-TP_AllPieceNum,(0x75a+1606-0xd9e));temp+=(0x6cc+1649-0xd3b)*tmplen;tmplen=
-String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0xb7a+6962-0x26aa));temp+=
-(0x439+992-0x817)*tmplen;}else if(udhLen==(0x722+2294-0x1014)){temp+=
-(0x1ecb+370-0x203b)*tmplen;tmplen=String2Bytes(temp,&RefNum1,
-(0x1bcc+1596-0x2206));temp+=(0x12aa+2079-0x1ac7)*tmplen;tmplen=String2Bytes(temp
-,&RefNum2,(0x9eb+4789-0x1c9e));int ReferNum=RefNum2+RefNum1*(0xaad+4739-0x1c30);
-pDst->TP_ReferNum=ReferNum;temp+=(0x2f4+1437-0x88f)*tmplen;tmplen=String2Bytes(
-temp,&pDst->TP_AllPieceNum,(0x1145+733-0x1420));temp+=(0x55+2952-0xbdb)*tmplen;
-tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0xd4+1279-0x5d1));temp+=
-(0xf05+3911-0x1e4a)*tmplen;}}}at_print(LOG_DEBUG,
+,DestPort2);if((DestPort1==(0x140c+1746-0x1ad3))&&((DestPort2==
+(0x192b+3602-0x26b9))||(DestPort2==(0x19ea+3170-0x25c7)))){pushType=SMS_PUSH;}}
+if(SMS_PUSH!=pushType){return pushType;}temp=pSrc+udhl*(0x20b2+611-0x2313)+
+(0x28a+2800-0xd76);tmplen=String2Bytes(temp,&pduType,(0xd08+5039-0x20b5));if(
+pduType==(0x535+2536-0xf17)){pushType=SMS_PUSH;temp+=(0x51d+3685-0x137e);tmplen=
+String2Bytes(temp,&pduType,(0x2451+606-0x26ad));if(pduType==(0xe41+5059-0x2140))
+{pushType=SMS_NOTIFICATION;}else{temp+=(0xcd3+3001-0x1888);tmplen=String2Bytes(
+temp,&pduType,(0x14b8+2021-0x1c9b));if((pduType==(0xcbd+4223-0x1c7a))||(pduType
+==(0x453+3569-0x118e))){pushType=SMS_BOOTSTRAP;}}}if((pDst->TP_IEI==
+(0x2eb+7503-0x2036))||(pDst->TP_IEI==(0xb13+1665-0x118f))||(pDst->TP_IEI==
+(0x14ab+4480-0x2623))){temp=pSrc+(0xeaa+5728-0x2506);tmplen=String2Bytes(temp,&
+IEIDL,(0x1a83+1068-0x1ead));if(IEIDL==(udhl-(0xdf+3843-0xfe0))){}else{temp+=
+(0x13b8+247-0x14ad)*(0x14c5+560-0x16ef);tmplen=String2Bytes(temp,&udhLen,
+(0xa37+7174-0x263b));if(udhLen==(0x4bc+6566-0x1e5f)){temp+=(0x76d+7106-0x232d)*
+tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x1e65+1172-0x22f7));pDst->TP_ReferNum
+=RefNum1;temp+=(0xc58+5142-0x206c)*tmplen;tmplen=String2Bytes(temp,&pDst->
+TP_AllPieceNum,(0xeed+3089-0x1afc));temp+=(0x1ac9+2001-0x2298)*tmplen;tmplen=
+String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x390+1503-0x96d));temp+=
+(0x119c+5379-0x269d)*tmplen;}else if(udhLen==(0x5df+6776-0x2053)){temp+=
+(0xe0b+896-0x1189)*tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x709+3357-0x1424))
+;temp+=(0x3b0+272-0x4be)*tmplen;tmplen=String2Bytes(temp,&RefNum2,
+(0x263+6099-0x1a34));int ReferNum=RefNum2+RefNum1*(0x532+4546-0x15f4);pDst->
+TP_ReferNum=ReferNum;temp+=(0x6d3+971-0xa9c)*tmplen;tmplen=String2Bytes(temp,&
+pDst->TP_AllPieceNum,(0xe38+5579-0x2401));temp+=(0xf0b+5028-0x22ad)*tmplen;
+tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x8e1+6187-0x210a));temp+=
+(0xd27+5674-0x234f)*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*(0xf06+834-0x1246)+
-(0x2035+539-0x224a);tmplen=String2Bytes(temp,&wspLen,(0x1e9f+1122-0x22ff));temp=
-temp+wspLen*(0x1cc7+1347-0x2208)+(0xcfb+4646-0x1f1f);}else{temp=pSrc+udhl*
-(0x1c73+2389-0x25c6)+(0xf4+7110-0x1cb8);}nDstLength=((strlen(temp)<sizeof(pDst->
-TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0x1015+4120-0x202c)));memcpy(pDst->
+SMS_NOTIFICATION==pushType){temp=pSrc+udhl*(0x166+9520-0x2694)+
+(0xc45+3071-0x183e);tmplen=String2Bytes(temp,&wspLen,(0x77c+6082-0x1f3c));temp=
+temp+wspLen*(0xc78+6802-0x2708)+(0x1866+265-0x196d);}else{temp=pSrc+udhl*
+(0x2039+964-0x23fb)+(0x2c4+9206-0x26b8);}nDstLength=((strlen(temp)<sizeof(pDst->
+TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0x1089+2411-0x19f3)));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=(0x1735+535-0x194c);if(pSrc==
-NULL||pDst==NULL||nSrcLength<(0x647+2546-0x1039)){return-(0xb71+4202-0x1bda);}
-nDstLength=nSrcLength;for(i=(0xabf+1608-0x1107);i<nSrcLength;i+=
-(0x159d+1182-0x1a39)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-
-(0x174f+279-0x1865))==((char)(0x1314+4357-0x23d3))){pDst--;nDstLength--;}*pDst=
+*pDst,int nSrcLength){int nDstLength;char ch;int i=(0x638+1355-0xb83);if(pSrc==
+NULL||pDst==NULL||nSrcLength<(0xfd0+4450-0x2132)){return-(0x2ad+6764-0x1d18);}
+nDstLength=nSrcLength;for(i=(0x1933+2105-0x216c);i<nSrcLength;i+=
+(0x1de4+1669-0x2467)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-
+(0x818+7856-0x26c7))==((char)(0x582+2214-0xde2))){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=(0xb01+6918-0x2607);
-UINT16 pos=(0x806+2524-0x11e2);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+in_len,UINT16 shift,UINT16 out_len_max,UINT8*out){UINT16 i=(0x697+313-0x7d0);
+UINT16 pos=(0x1a3+4005-0x1148);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(0x172b+173-0x17d8);}shift%=(0x1619+3793-0x24e3);if(shift!=
-(0x1517+2877-0x2054)){out[pos]|=(UINT8)(in[i]<<shift);shift=(
-(0x1c63+2402-0x25be)-shift)+(0x1699+874-0x1a02);if(shift==(0x186a+359-0x19ca)){
-shift=(0xa53+1055-0xe72);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){
-out[pos]=in[i]>>shift;if(i+(0x11a8+1878-0x18fd)<in_len){out[pos]|=(UINT8)(in[i+
-(0x22c+2130-0xa7d)]<<((0xb16+2135-0x1366)-shift));shift++;if(shift==
-(0x6b7+5536-0x1c50)){shift=(0x12e2+2535-0x1cc9);i++;}}}return pos;}UINT8 
+);return(0xa99+1528-0x1091);}shift%=(0xc11+1878-0x1360);if(shift!=
+(0x16c7+1195-0x1b72)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0x285+3071-0xe7d)-
+shift)+(0x1878+3450-0x25f1);if(shift==(0x1a8a+2688-0x2503)){shift=
+(0xf21+5511-0x24a8);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[
+pos]=in[i]>>shift;if(i+(0x42c+7339-0x20d6)<in_len){out[pos]|=(UINT8)(in[i+
+(0xeef+5949-0x262b)]<<((0x2196+1369-0x26e8)-shift));shift++;if(shift==
+(0x1f93+1633-0x25ed)){shift=(0x758+965-0xb1d);i++;}}}return pos;}UINT8 
 wms_ts_encode_address(const wms_address_s_type*addr,UINT8*data){UINT8 i,pos=
-(0x2b0+4983-0x1627);if(addr->number_of_digits>WMS_GW_ADDRESS_MAX){at_print(
+(0x377+2287-0xc66);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(0xdff+84-0xe53);}if(addr->number_type==
+,addr->number_of_digits);return(0x15b2+3671-0x2409);}if(addr->number_type==
 WMS_NUMBER_ALPHANUMERIC){data[pos]=(UINT8)((addr->number_of_digits*
-(0x14e7+2787-0x1fc3)+(0xad2+5877-0x21c4))/(0x19fb+1415-0x1f7e));}else{data[pos]=
-addr->number_of_digits;}pos++;data[pos]=(0x248d+19-0x2420);data[pos]|=(UINT8)((
-UINT8)addr->number_type<<(0x7c8+5730-0x1e26));data[pos]|=(UINT8)addr->
+(0xec6+5260-0x234b)+(0x4e1+7543-0x2255))/(0xd5d+5205-0x21ae));}else{data[pos]=
+addr->number_of_digits;}pos++;data[pos]=(0x49a+7579-0x21b5);data[pos]|=(UINT8)((
+UINT8)addr->number_type<<(0x161+9502-0x267b));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,
-(0x763+3552-0x1543),WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=
-(0x2df+5851-0x19ba);i<addr->number_of_digits;i++){data[pos]=(UINT8)(addr->digits
-[i++]&(0x1326+1557-0x192c));{data[pos]|=(UINT8)(addr->digits[i]<<
-(0x520+6500-0x1e80));}pos++;}}return pos;}UINT8 wms_ts_encode_dcs(const 
-wms_gw_dcs_s_type*dcs,UINT8*data){UINT8 pos=(0x1ad1+2251-0x239c);if(dcs->
-msg_waiting==WMS_GW_MSG_WAITING_NONE){data[pos]=dcs->is_compressed?
-(0x1166+1620-0x179a):(0x1065+5478-0x25cb);data[pos]|=(dcs->msg_class!=
-WMS_MESSAGE_CLASS_NONE)?(0x150+8936-0x2428):(0x876+914-0xc08);data[pos]|=dcs->
-alphabet<<(0x565+2354-0xe95);data[pos]|=dcs->msg_class&(0xc59+1938-0x13e8);}else
- if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE_1111){data[pos]=
-(0x130d+3568-0x200d);if(dcs->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]|=
-(0x1210+5140-0x2620);data[pos]|=dcs->msg_class&(0x89d+3387-0x15d5);}else{if(dcs
-->msg_waiting==WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0xb9c+4207-0x1b4b);}else 
-if(dcs->msg_waiting==WMS_GW_MSG_WAITING_STORE&&dcs->alphabet==
-WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0x18f+8919-0x2396);}else{data[pos]=
-(0x1eb6+1835-0x2501);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
-(0x1dc+5445-0x1719):(0x2235+748-0x2521);data[pos]|=dcs->msg_waiting_kind&
-(0xa5f+2060-0x1268);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
-UINT8*result){unsigned char low_bit=(bcd&(0x646+2445-0xfc4));unsigned char 
-high_bit=((bcd&(0xd98+4550-0x1e6e))>>(0x1130+795-0x1447));if(low_bit>
-(0x295+2977-0xe2d)||high_bit>(0x6b3+5610-0x1c94)){at_print(LOG_DEBUG,
+wms_ts_pack_gw_7_bit_chars(addr->digits,addr->number_of_digits,(0x75+1537-0x676)
+,WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=(0x1c8+6352-0x1a98);i<addr->
+number_of_digits;i++){data[pos]=(UINT8)(addr->digits[i++]&(0x60f+5295-0x1aaf));{
+data[pos]|=(UINT8)(addr->digits[i]<<(0x1c37+2474-0x25dd));}pos++;}}return pos;}
+UINT8 wms_ts_encode_dcs(const wms_gw_dcs_s_type*dcs,UINT8*data){UINT8 pos=
+(0xc38+4257-0x1cd9);if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE){data[pos]=dcs
+->is_compressed?(0xb85+7016-0x26cd):(0xf70+3409-0x1cc1);data[pos]|=(dcs->
+msg_class!=WMS_MESSAGE_CLASS_NONE)?(0x67f+7666-0x2461):(0xe10+4695-0x2067);data[
+pos]|=dcs->alphabet<<(0x1ff8+656-0x2286);data[pos]|=dcs->msg_class&
+(0x37+8117-0x1fe9);}else if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE_1111){data
+[pos]=(0x1a9c+1894-0x2112);if(dcs->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]|=
+(0x11b2+38-0x11d4);data[pos]|=dcs->msg_class&(0xda6+1403-0x131e);}else{if(dcs->
+msg_waiting==WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x2077+311-0x20ee);}else if(
+dcs->msg_waiting==WMS_GW_MSG_WAITING_STORE&&dcs->alphabet==
+WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0x1b96+1734-0x218c);}else{data[pos]=
+(0x738+2871-0x118f);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
+(0xf42+5625-0x2533):(0xe7d+943-0x122c);data[pos]|=dcs->msg_waiting_kind&
+(0x1d1+5462-0x1724);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
+UINT8*result){unsigned char low_bit=(bcd&(0x13a3+2197-0x1c29));unsigned char 
+high_bit=((bcd&(0x6c3+5523-0x1b66))>>(0x2f0+9114-0x2686));if(low_bit>
+(0xd19+1279-0x120f)||high_bit>(0x9e6+6190-0x220b)){at_print(LOG_DEBUG,
 "\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x64\x69\x67\x69\x74\x21");*
-result=(0x342+1964-0xaee);return FALSE;}else{*result=((bcd&(0x318+1051-0x724))+(
-((bcd&(0xc1d+1527-0x1124))>>(0xdff+4694-0x2051))*(0x5cd+7357-0x2280)));return 
-TRUE;}}UINT8 wms_ts_encode_timestamp(const wms_timestamp_s_type*timestamp,UINT8*
-data){sint7 i;UINT8 pos=(0x1220+2758-0x1ce6),j;if(!wms_ts_bcd_to_int(timestamp->
-year,&j)){return(0x2d5+4059-0x12b0);}data[pos]=((timestamp->year&
-(0xd42+1433-0x12cc))<<(0x2a6+870-0x608))+((timestamp->year&(0x1675+1259-0x1a70))
->>(0x1f49+1278-0x2443));pos++;if(wms_ts_bcd_to_int(timestamp->month,&j)){if(j>
-(0x2276+647-0x24f1)||j<(0xb4+6686-0x1ad1)){at_print(LOG_DEBUG,
+result=(0x327+5854-0x1a05);return FALSE;}else{*result=((bcd&(0x14d8+2340-0x1ded)
+)+(((bcd&(0xacd+1390-0xf4b))>>(0x10ed+4294-0x21af))*(0x1c8b+477-0x1e5e)));return
+ TRUE;}}UINT8 wms_ts_encode_timestamp(const wms_timestamp_s_type*timestamp,UINT8
+*data){sint7 i;UINT8 pos=(0xf6c+5790-0x260a),j;if(!wms_ts_bcd_to_int(timestamp->
+year,&j)){return(0xa7c+4031-0x1a3b);}data[pos]=((timestamp->year&
+(0x17a9+963-0x1b5d))<<(0x13b4+3887-0x22df))+((timestamp->year&
+(0x2278+319-0x22c7))>>(0x16f2+27-0x1709));pos++;if(wms_ts_bcd_to_int(timestamp->
+month,&j)){if(j>(0x6b1+4932-0x19e9)||j<(0xb2f+3281-0x17ff)){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(0x353+1926-0xad9);}}else{return(0x356+7241-0x1f9f);}data[pos]=((
-timestamp->month&(0x784+760-0xa6d))<<(0xb0+3970-0x102e))+((timestamp->month&
-(0xf70+2875-0x19bb))>>(0x19f7+1151-0x1e72));pos++;if(wms_ts_bcd_to_int(timestamp
-->day,&j)){if(j>(0x5b9+7000-0x20f2)||j<(0xb73+6654-0x2570)){at_print(LOG_DEBUG,
+,j);return(0x1e1b+564-0x204f);}}else{return(0xff3+1539-0x15f6);}data[pos]=((
+timestamp->month&(0x868+2082-0x107b))<<(0x2016+1180-0x24ae))+((timestamp->month&
+(0x2d1+3837-0x10de))>>(0x11cb+3061-0x1dbc));pos++;if(wms_ts_bcd_to_int(timestamp
+->day,&j)){if(j>(0x1660+3081-0x224a)||j<(0x48f+1905-0xbff)){at_print(LOG_DEBUG,
 "\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);
-return(0x406+1028-0x80a);}}else{return(0xb0f+1671-0x1196);}data[pos]=((timestamp
-->day&(0x146+8027-0x2092))<<(0x173+9513-0x2698))+((timestamp->day&
-(0x1e47+1790-0x2455))>>(0x10fa+959-0x14b5));pos++;if(wms_ts_bcd_to_int(timestamp
-->hour,&j)){if(j>(0x702+3268-0x13af)){at_print(LOG_DEBUG,
+return(0x550+5969-0x1ca1);}}else{return(0xe6b+5847-0x2542);}data[pos]=((
+timestamp->day&(0xc5d+4303-0x1d1d))<<(0x1018+3384-0x1d4c))+((timestamp->day&
+(0xc57+4974-0x1ed5))>>(0x7d6+4861-0x1acf));pos++;if(wms_ts_bcd_to_int(timestamp
+->hour,&j)){if(j>(0x1e7b+1152-0x22e4)){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(0x119c+2101-0x19d1);}}else{return(0x1b77+424-0x1d1f);}data[pos]=((
-timestamp->hour&(0x123c+5213-0x268a))<<(0x8ed+6573-0x2296))+((timestamp->hour&
-(0xbed+6585-0x24b6))>>(0x7a8+7509-0x24f9));pos++;if(wms_ts_bcd_to_int(timestamp
-->minute,&j)){if(j>(0x9dd+5445-0x1ee7)){at_print(LOG_DEBUG,
+);return(0x2d0+846-0x61e);}}else{return(0xa9f+4703-0x1cfe);}data[pos]=((
+timestamp->hour&(0xda5+1865-0x14df))<<(0x1dbf+1887-0x251a))+((timestamp->hour&
+(0xd7a+6329-0x2543))>>(0xaa3+4593-0x1c90));pos++;if(wms_ts_bcd_to_int(timestamp
+->minute,&j)){if(j>(0x4b4+6378-0x1d63)){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(0x1767+2698-0x21f1);}}else{return(0x19bc+1815-0x20d3);}data[pos]=((
-timestamp->minute&(0xa70+3334-0x1767))<<(0xab7+1815-0x11ca))+((timestamp->minute
-&(0x7d1+554-0x90b))>>(0x729+7932-0x2621));pos++;if(wms_ts_bcd_to_int(timestamp->
-second,&j)){if(j>(0x1e89+606-0x20ac)){at_print(LOG_DEBUG,
+,j);return(0x1ba0+1993-0x2369);}}else{return(0x2e9+5643-0x18f4);}data[pos]=((
+timestamp->minute&(0x1055+3872-0x1f66))<<(0x954+3090-0x1562))+((timestamp->
+minute&(0x150c+4325-0x2501))>>(0xa74+4051-0x1a43));pos++;if(wms_ts_bcd_to_int(
+timestamp->second,&j)){if(j>(0xe04+6391-0x26c0)){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(0x7a8+242-0x89a);}}else{return(0x8d4+427-0xa7f);}data[pos]=((
-timestamp->second&(0x1aa0+338-0x1be3))<<(0x74b+6713-0x2180))+((timestamp->second
-&(0xb0a+6103-0x21f1))>>(0xaa5+5931-0x21cc));pos++;i=(sint7)timestamp->timezone;
-if(i>(0x75c+2834-0x123e)||i<-(0x991+210-0xa33)){at_print(LOG_DEBUG,
+,j);return(0x993+2723-0x1436);}}else{return(0x829+6584-0x21e1);}data[pos]=((
+timestamp->second&(0x910+7301-0x2586))<<(0x5b5+4276-0x1665))+((timestamp->second
+&(0x20d6+929-0x2387))>>(0x3bd+7695-0x21c8));pos++;i=(sint7)timestamp->timezone;
+if(i>(0x4ec+1480-0xa84)||i<-(0xb9b+3053-0x1758)){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(0x2f3+2132-0xb47);}if(i>=(0x28a+2320-0xb9a)){data[pos]=(UINT8)(((
-UINT8)(i%(0x743+1925-0xebe)))<<(0xcf1+4396-0x1e19));data[pos]|=(i/
-(0x199c+248-0x1a8a));}else{i*=(-(0x892+2263-0x1168));data[pos]=(UINT8)(((UINT8)(
-i%(0x129+1940-0x8b3)))<<(0xd36+2662-0x1798));data[pos]|=(i/(0x111f+4644-0x2339))
-;data[pos]|=(0x15a8+3760-0x2450);}pos++;return pos;}UINT8 wms_ts_get_udh_length(
-const wms_udh_s_type*udh){UINT8 length=(0x25+4111-0x1034);if(udh!=NULL){switch(
-udh->header_id){case WMS_UDH_CONCAT_8:length=(0x324+8824-0x259b)+
-(0x6d0+6890-0x21b9)+WMS_UDH_OCTETS_CONCAT8;break;case WMS_UDH_CONCAT_16:length=
-(0x65d+5151-0x1a7b)+(0x11bd+416-0x135c)+WMS_UDH_OCTETS_CONCAT16;break;case 
-WMS_UDH_SPECIAL_SM:length=(0xb31+414-0xcce)+(0x4f8+6599-0x1ebe)+
-WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=(0x1fbf+681-0x2267)+
-(0x6e1+2025-0xec9)+WMS_UDH_OCTETS_PORT8;break;case WMS_UDH_PORT_16:length=
-(0x1d15+1888-0x2474)+(0x10b3+650-0x133c)+WMS_UDH_OCTETS_PORT16;break;case 
-WMS_UDH_SMSC_CONTROL:length=(0x90f+523-0xb19)+(0xdbf+841-0x1107)+udh->u.other.
-header_length;break;case WMS_UDH_SOURCE:length=(0x76b+2743-0x1221)+
-(0x12e1+1521-0x18d1)+udh->u.other.header_length;break;case WMS_UDH_WCMP:length=
-(0x255+1992-0xa1c)+(0x148+7614-0x1f05)+udh->u.other.header_length;break;case 
+,i);return(0x85b+4648-0x1a83);}if(i>=(0x66c+2029-0xe59)){data[pos]=(UINT8)(((
+UINT8)(i%(0xd5+5375-0x15ca)))<<(0x459+743-0x73c));data[pos]|=(i/
+(0xd2f+2920-0x188d));}else{i*=(-(0x8d4+353-0xa34));data[pos]=(UINT8)(((UINT8)(i%
+(0x66b+5845-0x1d36)))<<(0x882+4311-0x1955));data[pos]|=(i/(0x92+4068-0x106c));
+data[pos]|=(0x7b7+5070-0x1b7d);}pos++;return pos;}UINT8 wms_ts_get_udh_length(
+const wms_udh_s_type*udh){UINT8 length=(0x216c+573-0x23a9);if(udh!=NULL){switch(
+udh->header_id){case WMS_UDH_CONCAT_8:length=(0xc40+2127-0x148e)+
+(0x215+9202-0x2606)+WMS_UDH_OCTETS_CONCAT8;break;case WMS_UDH_CONCAT_16:length=
+(0x1eec+1889-0x264c)+(0x5b3+2539-0xf9d)+WMS_UDH_OCTETS_CONCAT16;break;case 
+WMS_UDH_SPECIAL_SM:length=(0x1344+2911-0x1ea2)+(0x2a0+590-0x4ed)+
+WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=(0x141+536-0x358)+
+(0x1305+5031-0x26ab)+WMS_UDH_OCTETS_PORT8;break;case WMS_UDH_PORT_16:length=
+(0x1a1+6905-0x1c99)+(0x1ee9+1435-0x2483)+WMS_UDH_OCTETS_PORT16;break;case 
+WMS_UDH_SMSC_CONTROL:length=(0x377+6673-0x1d87)+(0xe72+4965-0x21d6)+udh->u.other
+.header_length;break;case WMS_UDH_SOURCE:length=(0x249d+471-0x2673)+
+(0x1f60+1813-0x2674)+udh->u.other.header_length;break;case WMS_UDH_WCMP:length=
+(0xe4+8719-0x22f2)+(0xe97+5786-0x2530)+udh->u.other.header_length;break;case 
 WMS_UDH_TEXT_FORMATING:if(!udh->u.text_formating.is_color_present){length=
-(0x2a1+7184-0x1eb0)+(0x178+9122-0x2519)+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{
-length=(0xe9d+4313-0x1f75)+(0xf8f+2468-0x1932)+WMS_UDH_OCTETS_TEXT_FORMATTING+
-(0x5d8+1519-0xbc6);}break;case WMS_UDH_PRE_DEF_SOUND:length=(0xac7+1407-0x1045)+
-(0xb81+3004-0x173c)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_USER_DEF_SOUND:
-length=(0xf3c+2085-0x1760)+(0x75c+7075-0x22fe)+udh->u.user_def_sound.data_length
-+(0xf73+3204-0x1bf6);break;case WMS_UDH_PRE_DEF_ANIM:length=(0x12a2+2572-0x1cad)
-+(0x9f0+7189-0x2604)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_LARGE_ANIM:length
-=(0xfd7+3334-0x1cdc)+(0x150b+4162-0x254c)+WMS_UDH_LARGE_BITMAP_SIZE*
-WMS_UDH_ANIM_NUM_BITMAPS+(0x198+1064-0x5bf);break;case WMS_UDH_SMALL_ANIM:length
-=(0xfb0+3364-0x1cd3)+(0xa19+7223-0x264f)+WMS_UDH_SMALL_BITMAP_SIZE*
-WMS_UDH_ANIM_NUM_BITMAPS+(0x10ef+5650-0x2700);break;case WMS_UDH_LARGE_PICTURE:
-length=(0x3f+8781-0x228b)+(0x175c+588-0x19a7)+WMS_UDH_LARGE_PIC_SIZE+
-(0x572+6224-0x1dc1);break;case WMS_UDH_SMALL_PICTURE:length=(0x285+2471-0xc2b)+
-(0x853+5753-0x1ecb)+WMS_UDH_SMALL_PIC_SIZE+(0x382+3067-0xf7c);break;case 
-WMS_UDH_VAR_PICTURE:length=(0xfa8+4777-0x2250)+(0xdc3+4142-0x1df0)+(UINT8)(udh->
-u.var_picture.height*udh->u.var_picture.width/(0x1a45+3273-0x2706))+
-(0x6e1+5775-0x1d6d);break;case WMS_UDH_RFC822:length=(0x33b+6799-0x1dc9)+
-(0x150b+2762-0x1fd4)+WMS_UDH_OCTETS_RFC822;break;case WMS_UDH_NAT_LANG_SS:length
-=(0x16e6+3665-0x2536)+(0x2e6+6180-0x1b09)+WMS_UDH_OCTETS_NAT_LANG_SS;break;case 
-WMS_UDH_NAT_LANG_LS:length=(0xce5+5881-0x23dd)+(0x48d+5591-0x1a63)+
-WMS_UDH_OCTETS_NAT_LANG_LS;break;case WMS_UDH_USER_PROMPT:length=
-(0xbe5+2617-0x161d)+(0x15d6+1994-0x1d9f)+WMS_UDH_OCTETS_USER_PROMPT;break;case 
-WMS_UDH_EXTENDED_OBJECT:length=(0x2dc+9055-0x263a)+(0x1f34+106-0x1f9d)+udh->u.eo
-.content.length;if(udh->u.eo.first_segment==TRUE){length+=
-WMS_UDH_OCTETS_EO_HEADER;}break;default:length=(0xecb+2479-0x1879)+
-(0xbdc+1480-0x11a3)+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=(0x69c+4436-0x17f0);uint32 i;if(headers==
-NULL){at_print(LOG_DEBUG,
+(0x274+8362-0x231d)+(0xa78+2328-0x138f)+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{
+length=(0xfb5+3969-0x1f35)+(0xbcd+2929-0x173d)+WMS_UDH_OCTETS_TEXT_FORMATTING+
+(0x151b+3546-0x22f4);}break;case WMS_UDH_PRE_DEF_SOUND:length=
+(0x1649+3962-0x25c2)+(0x18d9+1010-0x1cca)+WMS_UDH_OCTETS_PRE_DEF;break;case 
+WMS_UDH_USER_DEF_SOUND:length=(0x15e8+3746-0x2489)+(0xa7a+3149-0x16c6)+udh->u.
+user_def_sound.data_length+(0x7cc+1770-0xeb5);break;case WMS_UDH_PRE_DEF_ANIM:
+length=(0xa55+4080-0x1a44)+(0x23c7+397-0x2553)+WMS_UDH_OCTETS_PRE_DEF;break;case
+ WMS_UDH_LARGE_ANIM:length=(0x185+373-0x2f9)+(0x645+1797-0xd49)+
+WMS_UDH_LARGE_BITMAP_SIZE*WMS_UDH_ANIM_NUM_BITMAPS+(0x6b6+4738-0x1937);break;
+case WMS_UDH_SMALL_ANIM:length=(0x1791+3383-0x24c7)+(0x21e1+282-0x22fa)+
+WMS_UDH_SMALL_BITMAP_SIZE*WMS_UDH_ANIM_NUM_BITMAPS+(0xd6d+145-0xdfd);break;case 
+WMS_UDH_LARGE_PICTURE:length=(0x5da+5044-0x198d)+(0x5e5+4469-0x1759)+
+WMS_UDH_LARGE_PIC_SIZE+(0x291+1268-0x784);break;case WMS_UDH_SMALL_PICTURE:
+length=(0x56+6068-0x1809)+(0x81b+912-0xbaa)+WMS_UDH_SMALL_PIC_SIZE+
+(0x2293+688-0x2542);break;case WMS_UDH_VAR_PICTURE:length=(0x1c4+3181-0xe30)+
+(0x1478+700-0x1733)+(UINT8)(udh->u.var_picture.height*udh->u.var_picture.width/
+(0xea6+5213-0x22fb))+(0x11f9+3762-0x20a8);break;case WMS_UDH_RFC822:length=
+(0x17a2+2740-0x2255)+(0x432+2529-0xe12)+WMS_UDH_OCTETS_RFC822;break;case 
+WMS_UDH_NAT_LANG_SS:length=(0x246+2549-0xc3a)+(0x1a64+2685-0x24e0)+
+WMS_UDH_OCTETS_NAT_LANG_SS;break;case WMS_UDH_NAT_LANG_LS:length=
+(0xb11+777-0xe19)+(0x491+3510-0x1246)+WMS_UDH_OCTETS_NAT_LANG_LS;break;case 
+WMS_UDH_USER_PROMPT:length=(0x1b29+1641-0x2191)+(0xc83+787-0xf95)+
+WMS_UDH_OCTETS_USER_PROMPT;break;case WMS_UDH_EXTENDED_OBJECT:length=
+(0x3cc+2223-0xc7a)+(0xbbf+198-0xc84)+udh->u.eo.content.length;if(udh->u.eo.
+first_segment==TRUE){length+=WMS_UDH_OCTETS_EO_HEADER;}break;default:length=
+(0x103b+2498-0x19fc)+(0x39d+1678-0xa2a)+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=(0xc95+2156-0x1501);
+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(0x545+7659-0x2330);}if(num_headers>(0x1269+3297-0x1f4a)){length+=
-(0x1431+3669-0x2285);for(i=(0x1861+2729-0x230a);i<num_headers&&i<
+);return(0x1547+64-0x1587);}if(num_headers>(0x1332+2903-0x1e89)){length+=
+(0x11d2+1312-0x16f1);for(i=(0x1898+2689-0x2319);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=(0x16d+757-0x462);if
-(dcs==NULL||user_data==NULL){at_print(LOG_DEBUG,
+*dcs,const wms_gw_user_data_s_type*user_data){uint32 length=(0x1502+2874-0x203c)
+;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(0x460+532-0x674);}length+=wms_ts_compute_user_data_header_length(
+);return(0x1e8+8808-0x2450);}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*(0x5ef+427-0x793))+
-(0x1db+6654-0x1bd2))/(0xe17+2729-0x18b8);}else{length+=user_data->sm_len;}return
- length;}static int wms_ts_encode_udh_concat_8(UINT8*udh){int pos=
-(0x1b61+1379-0x20c4);if(const_header->u.concat_8.total_sm==(0x841+5333-0x1d16)||
-const_header->u.concat_8.seq_num==(0xe72+3719-0x1cf9)||const_header->u.concat_8.
-seq_num>const_header->u.concat_8.total_sm){at_print(LOG_DEBUG,
+WMS_GW_ALPHABET_7_BIT_DEFAULT){length+=((user_data->sm_len*(0x14c0+128-0x1539))+
+(0xe2+7634-0x1ead))/(0x90b+5895-0x200a);}else{length+=user_data->sm_len;}return 
+length;}static int wms_ts_encode_udh_concat_8(UINT8*udh){int pos=
+(0x18d+875-0x4f8);if(const_header->u.concat_8.total_sm==(0x1fb6+287-0x20d5)||
+const_header->u.concat_8.seq_num==(0x10af+2081-0x18d0)||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(0x12d0+216-0x13a8);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0x1eb1+1355-0x23fc);}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=(0x76a+3429-0x14cf);if(
-const_header->u.concat_16.total_sm==(0x75+9634-0x2617)||const_header->u.
-concat_16.seq_num==(0x89f+4827-0x1b7a)||const_header->u.concat_16.seq_num>
+wms_ts_encode_udh_concat16(UINT8*udh){int pos=(0xa80+3354-0x179a);if(
+const_header->u.concat_16.total_sm==(0x10d6+1853-0x1813)||const_header->u.
+concat_16.seq_num==(0x467+6177-0x1c88)||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(0x14ef+1330-0x1a21);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0x19b+874-0x505);}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)>>(0x4c9+3196-0x113d));udh[pos++]=(UINT8
-)(const_header->u.concat_16.msg_ref&(0x769+5247-0x1ae9));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=(0x1d9b+1183-0x223a);udh[
+const_header->u.concat_16.msg_ref&65280)>>(0x303+7024-0x1e6b));udh[pos++]=(UINT8
+)(const_header->u.concat_16.msg_ref&(0x751+530-0x864));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=(0x11a1+2572-0x1bad);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=(0x9d8+1249-0xeb9);udh[pos++]=(
+wms_ts_encode_udh_nat_lang_ls(UINT8*udh){int pos=(0x4ba+1154-0x93c);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=
-(0x1051+1238-0x1527);int pos=(0x1198+1005-0x1585);udh[pos++]=(UINT8)const_header
-->u.other.header_id;udh[pos++]=const_header->u.other.header_length;for(i=
-(0x1606+718-0x18d4);i<const_header->u.other.header_length;i++){udh[pos++]=
+(0x420+4362-0x152a);int pos=(0x26d+6376-0x1b55);udh[pos++]=(UINT8)const_header->
+u.other.header_id;udh[pos++]=const_header->u.other.header_length;for(i=
+(0x1188+3542-0x1f5e);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=
-(0xaf4+6228-0x2348);if(num_headers==(0xe77+297-0xfa0))return(0x1762+1730-0x1e24)
-;++pos;for(i=(0x1e13+724-0x20e7);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 (0x537+985-0x910)

+(0xdac+3397-0x1af1);if(num_headers==(0x10a1+1387-0x160c))return
+(0x304+4871-0x160b);++pos;for(i=(0x892+2870-0x13c8);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 (0x1be8+1046-0x1ffe)

 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 
@@ -1314,49 +1310,49 @@
 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[
-(0x17a+2046-0x978)]=(UINT8)(pos-(0x217a+1005-0x2566));return((UINT8)(pos-
-(0xb5+1419-0x63f)));}UINT8 wms_ts_encode_gw_user_data(const wms_gw_dcs_s_type*
+(0x15d5+1542-0x1bdb)]=(UINT8)(pos-(0xc78+416-0xe17));return((UINT8)(pos-
+(0x41f+6399-0x1d1d)));}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=
-(0x148+76-0x194);UINT8 fill_bits=(0xb2a+1502-0x1108);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>(0x481+3163-0x10dc)){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+(0x8aa+4100-0x18ad);
-total_bits_occupied=(user_data_header_length+(0x19d0+2749-0x248c))*
-(0x1a48+3056-0x2630);fill_bits=(total_bits_occupied%(0x28d+5897-0x198f));if(
-fill_bits!=(0x22c3+201-0x238c)){fill_bits=(0xcb1+6461-0x25e7)-fill_bits;}
-user_data_length=(total_bits_occupied+fill_bits+(user_data->sm_len*
-(0x30d+5623-0x18fd)))/(0x98f+4534-0x1b3e);data[(0x5cf+6481-0x1f20)]=(UINT8)
-user_data_length;data[(0x7b9+3101-0x13d5)]=user_data_header_length;}else{
-at_print(LOG_DEBUG,
+(0xb62+2860-0x168e);UINT8 fill_bits=(0x8da+4651-0x1b05);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>(0x548+6465-0x1e89)){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+(0x373+6854-0x1e38);total_bits_occupied=(
+user_data_header_length+(0x662+438-0x817))*(0x1e3+9011-0x250e);fill_bits=(
+total_bits_occupied%(0x418+1069-0x83e));if(fill_bits!=(0x1162+5273-0x25fb)){
+fill_bits=(0xd4a+542-0xf61)-fill_bits;}user_data_length=(total_bits_occupied+
+fill_bits+(user_data->sm_len*(0x183c+1379-0x1d98)))/(0x1854+3537-0x261e);data[
+(0x2041+1405-0x25be)]=(UINT8)user_data_length;data[(0x9d6+6687-0x23f4)]=
+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>
-(0x9b4+241-0xaa5)){if(wms_ts_compute_user_data_header_length(user_data->
+(0xb0f+3853-0x1a1c)){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[(0x17d2+1693-0x1e6f)]=(UINT8)(user_data->sm_len+
-user_data_header_length+(0x1ac0+2360-0x23f7));pos+=user_data_header_length+
-(0x126d+4108-0x2278);}else{at_print(LOG_DEBUG,
+pos);data[(0x7bb+7687-0x25c2)]=(UINT8)(user_data->sm_len+user_data_header_length
++(0x6cf+2778-0x11a8));pos+=user_data_header_length+(0xd00+3653-0x1b44);}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=(0x3d5+1789-0xad2),i;if(
+wms_status_e_type st=WMS_OK_S;UINT8*data;UINT8 pos=(0x5+9598-0x2583),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,
-(0xf5a+4561-0x212b),WMS_MAX_LEN);data[pos]=(0x1020+3270-0x1ce6);data[pos]|=
-deliver->more?(0xcc2+959-0x1081):(0x3e2+756-0x6d2);data[pos]|=deliver->
-status_report_enabled?(0x2086+1075-0x2499):(0x119f+4044-0x216b);data[pos]|=
-deliver->user_data_header_present?(0x606+47-0x5f5):(0xefd+973-0x12ca);data[pos]
-|=deliver->reply_path_present?(0xca8+3190-0x189e):(0x854+2256-0x1124);pos++;i=
-wms_ts_encode_address(&deliver->address,&data[pos]);if(i==(0x9ca+4168-0x1a12)){
-return WMS_INVALID_PARM_SIZE_S;}pos+=i;data[pos]=deliver->pid;pos++;pos+=
+(0x186f+2826-0x2379),WMS_MAX_LEN);data[pos]=(0x480+659-0x713);data[pos]|=deliver
+->more?(0xc8b+5632-0x228b):(0xba5+2144-0x1401);data[pos]|=deliver->
+status_report_enabled?(0x1099+4155-0x20b4):(0x1051+3941-0x1fb6);data[pos]|=
+deliver->user_data_header_present?(0x43d+3663-0x124c):(0xe06+4957-0x2163);data[
+pos]|=deliver->reply_path_present?(0x1205+221-0x1262):(0x12b7+425-0x1460);pos++;
+i=wms_ts_encode_address(&deliver->address,&data[pos]);if(i==(0x16f4+120-0x176c))
+{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==(0x296+5440-0x17d6)){return WMS_INVALID_PARM_VALUE_S;}
+timestamp,data+pos);if(i==(0xad1+6323-0x2384)){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"
@@ -1364,56 +1360,56 @@
 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=(0x8b8+7530-0x2622),j;if(timestamp!=NULL){if(!wms_ts_bcd_to_int(timestamp->
+ v=(0xc28+993-0x1009),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*(0x764+1614-0xc45);if(!wms_ts_bcd_to_int(timestamp->month,&j)){at_print(
+);}i=j*(0xf8b+1394-0x1390);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*(0xe15+925-0x1194);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>(0x1b0f+2905-0x264a)){v=(UINT8)((i+(0x131b+1574-0x193b))/
-(0x51a+709-0x7d8)+(0x101d+1959-0x1704));}else if(i>=(0x279+2440-0xc00)){v=(UINT8
-)(i+(0x150f+729-0x1742));}else{if(!wms_ts_bcd_to_int(timestamp->day,&j)){
+,j);}i=i+j*(0x4a3+4359-0x158c);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*(0x91a+5300-0x1db6)*(0x866+4498-0x19bc);if(!wms_ts_bcd_to_int(timestamp->hour
-,&j)){at_print(LOG_DEBUG,
++=j;if(i>(0x54a+3425-0x128d)){v=(UINT8)((i+(0x197b+2319-0x2284))/
+(0x954+5390-0x1e5b)+(0x12d7+4466-0x2389));}else if(i>=(0x13b7+678-0x165c)){v=(
+UINT8)(i+(0x1f20+1388-0x23e6));}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*(0x22a+400-0x3a2)*(0x595+8225-0x257a);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*(0x3d0+1202-0x846);if(!wms_ts_bcd_to_int(timestamp->minute,&j)){
+);}i=i+j*(0x205+4898-0x14eb);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>(0x2ec+1115-0x73b)*(0xa55+1907-0x118c)){v=(UINT8)((i-((
-(0xcd5+68-0xd0d)*(0x87b+2756-0x1303))+(0x401+1932-0xb70)))/(0x91c+7248-0x254e)+
-(0x73c+2826-0x11b7));}else{v=(UINT8)((i+(0x2269+620-0x24d1))/(0x15b6+826-0x18eb)
--(0x4f+6164-0x1862));}}}else{at_print(LOG_DEBUG,
+,j);}i+=j;if(i>(0x159a+354-0x16f0)*(0xa1d+4455-0x1b48)){v=(UINT8)((i-((
+(0x60c+738-0x8e2)*(0x863+1482-0xdf1))+(0x17f8+3083-0x23e6)))/(0xbd7+5974-0x230f)
++(0x1086+3770-0x1eb1));}else{v=(UINT8)((i+(0x1725+964-0x1ae5))/
+(0x881+1476-0xe40)-(0xad1+183-0xb87));}}}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=(0x370+7977-0x2299);switch(validity->format){
+validity,UINT8*data){UINT8 i,pos=(0x77a+7602-0x252c);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==(0x2ab+9019-0x25e6)){at_print(LOG_DEBUG,
+if(i==(0x8d7+6428-0x21f3)){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=(0x22d6+17-0x22e7),i;if(submit==NULL||raw_ts_data_ptr==NULL){at_print(
-LOG_DEBUG,
+UINT8 pos=(0x105+6095-0x18d4),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,
-(0x1c99+782-0x1fa7),WMS_MAX_LEN);data[pos]=(0x1d1d+1085-0x2159);data[pos]|=
-submit->reject_duplicates?(0x215+6019-0x1994):(0x1512+4039-0x24d9);if(submit->
-validity.format>(0x687+7659-0x246f)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}
-data[pos]|=submit->validity.format<<(0xb03+5651-0x2113);data[pos]|=submit->
-status_report_enabled?(0x1cf+1090-0x5f1):(0xdb3+981-0x1188);data[pos]|=submit->
-user_data_header_present?(0x102f+915-0x1382):(0x438+6785-0x1eb9);data[pos]|=
-submit->reply_path_present?(0xd38+5011-0x204b):(0xc8+717-0x395);pos++;data[pos]=
-(UINT8)submit->message_reference;pos++;i=wms_ts_encode_address(&submit->address,
-&data[pos]);if(i==(0x13b+3354-0xe55)){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(
+(0xa2+9414-0x2568),WMS_MAX_LEN);data[pos]=(0x197+2606-0xbc4);data[pos]|=submit->
+reject_duplicates?(0x1b72+140-0x1bfa):(0x12df+3114-0x1f09);if(submit->validity.
+format>(0x6b8+2443-0x1040)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}data[pos]|=
+submit->validity.format<<(0x131c+3833-0x2212);data[pos]|=submit->
+status_report_enabled?(0x3ec+5973-0x1b21):(0x1e67+1-0x1e68);data[pos]|=submit->
+user_data_header_present?(0x2310+517-0x24d5):(0x3fc+3151-0x104b);data[pos]|=
+submit->reply_path_present?(0x282+3367-0xf29):(0x154b+119-0x15c2);pos++;data[pos
+]=(UINT8)submit->message_reference;pos++;i=wms_ts_encode_address(&submit->
+address,&data[pos]);if(i==(0x507+8071-0x248e)){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)>
 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"
@@ -1422,21 +1418,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=(0x5cc+1426-0xb5e),i;if(status_report==NULL||raw_ts_data_ptr==NULL){
+UINT8 pos=(0x1d8+5107-0x15cb),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,
-(0x1017+2598-0x1a3d),WMS_MAX_LEN);data[pos]=(0xbac+1881-0x12f5);data[pos]|=
-status_report->more?(0x1f95+592-0x21e5):(0x1111+3104-0x1d2d);data[pos]|=
-status_report->status_report_qualifier?(0x487+53-0x49c):(0x103d+2564-0x1a41);
-data[pos]|=status_report->user_data_header_present?(0x11ec+3568-0x1f9c):
-(0x2276+488-0x245e);pos++;data[pos]=(UINT8)status_report->message_reference;pos
+(0x18b1+3292-0x258d),WMS_MAX_LEN);data[pos]=(0x1031+1778-0x1713);data[pos]|=
+status_report->more?(0xa01+5794-0x20a3):(0x15c0+3925-0x2511);data[pos]|=
+status_report->status_report_qualifier?(0x37f+2324-0xc73):(0xa5f+4430-0x1bad);
+data[pos]|=status_report->user_data_header_present?(0xd5b+2696-0x17a3):
+(0x231+7444-0x1f45);pos++;data[pos]=(UINT8)status_report->message_reference;pos
 ++;i=wms_ts_encode_address(&status_report->address,&data[pos]);if(i==
-(0x1346+763-0x1641)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0xe45+4963-0x21a8)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
 wms_ts_encode_timestamp(&status_report->timestamp,data+pos);if(i==
-(0x154b+105-0x15b4)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0x1a8c+1766-0x2172)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
 wms_ts_encode_timestamp(&status_report->discharge_time,data+pos);if(i==
-(0x2191+1010-0x2583)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;data[pos]=
+(0x14cf+759-0x17c6)){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->
@@ -1451,7 +1447,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 (0x3a1+2915-0xf04)

+#if (0x998+6307-0x223b)

 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;
@@ -1461,7 +1457,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 (0x72a+3361-0x144b)

+#if (0xc05+2673-0x1676)

 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
@@ -1478,360 +1474,357 @@
 "\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=(0xc62+877-0xfcf);UINT16 pos=
-(0x68c+302-0x7ba);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+out_len_max,UINT16 shift,UINT8*out){int i=(0x1c17+697-0x1ed0);UINT16 pos=
+(0x4ba+5246-0x1938);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(0xf17+3914-0x1e61);}if(shift!=(0x7a5+5568-0x1d65))pos=pos+
-(0x1fd+275-0x30f);if(shift==(0x1269+1706-0x190c)){out[(0x13d2+1501-0x19af)]=in[
-(0x2c5+4830-0x15a3)]>>(0xba7+1643-0x1211);shift=(0x2d9+2271-0xbb8);i=
-(0x1e3+2588-0xbfe);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]<<
-shift)&(0x12a+2035-0x89e);if(pos!=(0x2423+378-0x259d)){
-#if (0x771+2801-0x1261)       
-if(shift==(0x1fa+4715-0x1465)){out[i]|=(0xd74+5843-0x2447);}else{out[i]|=in[pos-
-(0x11f4+2311-0x1afa)]>>((0x231+3311-0xf18)-shift);}
+);return(0x192f+633-0x1ba8);}if(shift!=(0x492+5979-0x1bed))pos=pos+
+(0x47c+6235-0x1cd6);if(shift==(0x5e5+3985-0x156f)){out[(0x5d6+165-0x67b)]=in[
+(0xdb9+2877-0x18f6)]>>(0x796+7315-0x2428);shift=(0xd6d+4781-0x201a);i=
+(0x782+1645-0xdee);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]<<
+shift)&(0x732+6195-0x1ee6);if(pos!=(0x169+8412-0x2245)){
+#if (0xf3+4483-0x1275)       
+if(shift==(0x14d+3032-0xd25)){out[i]|=(0xd35+3168-0x1995);}else{out[i]|=in[pos-
+(0xd93+936-0x113a)]>>((0x550+3611-0x1363)-shift);}
 #else

-out[i]|=in[pos-(0x19c9+1976-0x2180)]>>((0x74c+4690-0x1996)-shift);
+out[i]|=in[pos-(0x1b4f+1657-0x21c7)]>>((0xacc+5723-0x211f)-shift);
 #endif

-}shift++;if(shift==(0x123c+2064-0x1a45)){shift=(0x2cc+6144-0x1acc);i++;if(i>=
+}shift++;if(shift==(0x837+338-0x982)){shift=(0xb11+508-0xd0d);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]>>(0x8ab+2543-0x1299);}}return(UINT8)(pos);}UINT8 
+);break;}out[i]=in[pos]>>(0x6f8+8148-0x26cb);}}return(UINT8)(pos);}UINT8 
 wms_ts_decode_address(const UINT8*data,wms_address_s_type*addr){UINT8 i,pos=
-(0x60f+4460-0x177b);i=data[pos];if(i>WMS_GW_ADDRESS_MAX){at_print(LOG_DEBUG,
+(0x49d+1542-0xaa3);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(0x1348+519-0x154f);}addr->number_of_digits=i;pos++;addr->digit_mode=
+,i);return(0x8bb+905-0xc44);}addr->number_of_digits=i;pos++;addr->digit_mode=
 WMS_DIGIT_MODE_4_BIT;addr->number_type=(wms_number_type_e_type)((data[pos]&
-(0x23f+4035-0x1192))>>(0x417+8328-0x249b));addr->number_plan=(
-wms_number_plan_e_type)(data[pos]&(0xf67+1412-0x14dc));pos++;if(addr->
-number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0xe2f+931-0x11d2);
+(0x18f8+2244-0x214c))>>(0x427+902-0x7a9));addr->number_plan=(
+wms_number_plan_e_type)(data[pos]&(0x1d8+8765-0x2406));pos++;if(addr->
+number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0x19d9+489-0x1bc2);
 addr->digit_mode=WMS_DIGIT_MODE_8_BIT;bytes_increment=(addr->number_of_digits+
-(0x84d+5761-0x1ecd))/(0x14c3+712-0x1789);addr->number_of_digits=(UINT8)(addr->
-number_of_digits*(0xefa+1581-0x1523)/(0xbe6+6065-0x2390));(void)
+(0x1116+3926-0x206b))/(0x179a+1707-0x1e43);addr->number_of_digits=(UINT8)(addr->
+number_of_digits*(0x1092+2689-0x1b0f)/(0x19d4+14-0x19db));(void)
 wms_ts_unpack_gw_7_bit_chars(&data[pos],addr->number_of_digits,
-WMS_GW_ADDRESS_MAX,(0xdd2+736-0x10b2),addr->digits);pos+=bytes_increment;}else{
-for(i=(0x525+8013-0x2472);i<addr->number_of_digits;i++){addr->digits[i++]=data[
-pos]&(0x16dc+3719-0x2554);addr->digits[i]=(data[pos]&(0x1bf2+2920-0x266a))>>
-(0x10b+3109-0xd2c);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data,
-wms_gw_dcs_s_type*dcs){UINT8 pos=(0xe20+3098-0x1a3a);UINT8 i;if(data==NULL||dcs
+WMS_GW_ADDRESS_MAX,(0x86b+6745-0x22c4),addr->digits);pos+=bytes_increment;}else{
+for(i=(0x238+1507-0x81b);i<addr->number_of_digits;i++){addr->digits[i++]=data[
+pos]&(0x142+1640-0x79b);addr->digits[i]=(data[pos]&(0x87d+1683-0xe20))>>
+(0x5f0+6048-0x1d8c);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data
+,wms_gw_dcs_s_type*dcs){UINT8 pos=(0x13+9253-0x2438);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(0x59c+5648-0x1bac);}dcs->msg_class=WMS_MESSAGE_CLASS_NONE;dcs->
+);return(0x53d+1520-0xb2d);}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]&(0x1291+2515-0x1ba4))>>(0x2cc+2977-0xe67);
-switch(i){case(0x45f+517-0x664):dcs->is_compressed=data[pos]&(0x1c77+663-0x1eee)
-;if(data[pos]&(0x749+6757-0x219e)){dcs->msg_class=(wms_message_class_e_type)(
-data[pos]&(0x878+6213-0x20ba));}else{dcs->msg_class=WMS_MESSAGE_CLASS_NONE;}dcs
-->alphabet=(wms_gw_alphabet_e_type)((data[pos]&(0xa59+4776-0x1cf5))>>
-(0x61b+5728-0x1c79));break;case(0x2d9+7485-0x2013):if((data[pos]&
-(0x816+6508-0x2152))==(0xbf+4954-0x13e9)){dcs->alphabet=(data[pos]&
-(0x1c81+771-0x1f80))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
-msg_class=(wms_message_class_e_type)(data[pos]&(0x1c44+2740-0x26f5));dcs->
+dcs->is_compressed=FALSE;i=(data[pos]&(0x140a+2477-0x1cf7))>>
+(0x183a+2902-0x238a);switch(i){case(0xf63+1158-0x13e9):dcs->is_compressed=data[
+pos]&(0xc0+6089-0x1869);if(data[pos]&(0xe64+340-0xfa8)){dcs->msg_class=(
+wms_message_class_e_type)(data[pos]&(0x115+4977-0x1483));}else{dcs->msg_class=
+WMS_MESSAGE_CLASS_NONE;}dcs->alphabet=(wms_gw_alphabet_e_type)((data[pos]&
+(0x8f2+154-0x980))>>(0x1a4c+178-0x1afc));break;case(0x6f4+515-0x8f4):if((data[
+pos]&(0xd8+4682-0x12f2))==(0x105+5276-0x1571)){dcs->alphabet=(data[pos]&
+(0x155+2031-0x940))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
+msg_class=(wms_message_class_e_type)(data[pos]&(0x5ed+2167-0xe61));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]&
-(0xd7+5513-0x1630))==(0xd85+1547-0x1390)){dcs->msg_waiting=
+(0x4c7+3570-0x1289))==(0x12ba+2036-0x1aae)){dcs->msg_waiting=
 WMS_GW_MSG_WAITING_DISCARD;dcs->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}else if(
-(data[pos]&(0x1a07+2216-0x227f))==(0x2131+570-0x235b)){dcs->msg_waiting=
+(data[pos]&(0x50+8040-0x1f88))==(0x4d2+4065-0x14a3)){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]&(0x91+7294-0x1d07))?TRUE:FALSE;dcs->
-msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0xe5a+5359-0x2346))
-;}break;default:at_print(LOG_DEBUG,
+msg_waiting_active=(data[pos]&(0x1a76+2450-0x2400))?TRUE:FALSE;dcs->
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x18c+2120-0x9d1));
+}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=(0x1418+1762-0x1afa),i,j;if
+UINT8*data,wms_timestamp_s_type*timestamp){UINT8 pos=(0x1662+3005-0x221f),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(0x2070+974-0x243e);}i=((data[pos]&(0x3b5+3453-0x1123))<<
-(0xc6b+3654-0x1aad))+((data[pos]&(0xddb+3566-0x1ad9))>>(0x1d87+1964-0x252f));if(
-!wms_ts_bcd_to_int(i,&j)){at_print(LOG_DEBUG,
+);return(0x1226+1841-0x1957);}i=((data[pos]&(0xc9d+4817-0x1f5f))<<
+(0x9cd+7212-0x25f5))+((data[pos]&(0x13dc+4134-0x2312))>>(0xda+550-0x2fc));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=(0x1128+3451-0x1ea3);}timestamp->year=i;pos++;i=((data[pos]&
-(0xe2b+3431-0x1b83))<<(0x149a+2576-0x1ea6))+((data[pos]&(0x1f6+5521-0x1697))>>
-(0x905+5065-0x1cca));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x51b+5985-0x1c70)||j<
-(0x35d+4151-0x1393)){at_print(LOG_DEBUG,
+,data[pos]);i=(0x1150+5146-0x256a);}timestamp->year=i;pos++;i=((data[pos]&
+(0xf71+1314-0x1484))<<(0xacc+2354-0x13fa))+((data[pos]&(0xe85+5034-0x213f))>>
+(0xb4d+303-0xc78));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x819+5208-0x1c65)||j<
+(0x68c+6065-0x1e3c)){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=(0xebc+2712-0x1953);}}else{at_print(LOG_DEBUG,
+,j);i=(0x195+4413-0x12d1);}}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=(0x454+3547-0x122e);}timestamp->month=i;pos++;i=((data[pos]&
-(0x14ec+4094-0x24db))<<(0x10b+5706-0x1751))+((data[pos]&(0x1b8f+942-0x1e4d))>>
-(0x1c8+4692-0x1418));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x13db+4702-0x261a)||j<
-(0xbf8+153-0xc90)){at_print(LOG_DEBUG,
+,data[pos]);i=(0x5b8+1672-0xc3f);}timestamp->month=i;pos++;i=((data[pos]&
+(0x10db+3688-0x1f34))<<(0x15f2+364-0x175a))+((data[pos]&(0x17f4+536-0x191c))>>
+(0x169+2144-0x9c5));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xf23+3442-0x1c76)||j<
+(0xfcb+4389-0x20ef)){at_print(LOG_DEBUG,
 "\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);i=
-(0x896+3106-0x14b7);}}else{at_print(LOG_DEBUG,
+(0x2fd+6198-0x1b32);}}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=(0x862+90-0x8bb);}timestamp->day=i;pos++;i=((data[pos]&
-(0xe51+1247-0x1321))<<(0x1505+2051-0x1d04))+((data[pos]&(0x68f+1809-0xcb0))>>
-(0x16a1+2572-0x20a9));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1d0a+2287-0x25e2)){
+,data[pos]);i=(0xc46+6006-0x23bb);}timestamp->day=i;pos++;i=((data[pos]&
+(0xdff+2054-0x15f6))<<(0x13b9+4130-0x23d7))+((data[pos]&(0x17d+219-0x168))>>
+(0x1a39+2926-0x25a3));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xdda+5348-0x22a7)){
 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=(0x43c+1569-0xa5d);}}else{at_print(LOG_DEBUG,
+,j);i=(0x80+3480-0xe18);}}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=(0x57b+14-0x589);}timestamp->hour=i;pos++;i=((data[pos]&
-(0x13d3+4271-0x2473))<<(0x265+4128-0x1281))+((data[pos]&(0x311+4666-0x145b))>>
-(0x1e73+2155-0x26da));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x20cb+36-0x20b4)){
+,data[pos]);i=(0x133d+2720-0x1ddd);}timestamp->hour=i;pos++;i=((data[pos]&
+(0x598+652-0x815))<<(0x27d+2297-0xb72))+((data[pos]&(0x73f+1901-0xdbc))>>
+(0x1f4d+1090-0x238b));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xfb6+1033-0x1384)){
 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=(0x178+4185-0x11d1);}}else{at_print(LOG_DEBUG,
+,j);i=(0x4d5+2921-0x103e);}}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=(0x822+2419-0x1195);}timestamp->minute=i;pos++;i=((data[pos]&
-(0xc1a+5529-0x21a4))<<(0xb79+7058-0x2707))+((data[pos]&(0x181b+563-0x195e))>>
-(0x186+2843-0xc9d));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x3a0+5182-0x17a3)){
+,data[pos]);i=(0x1630+3170-0x2292);}timestamp->minute=i;pos++;i=((data[pos]&
+(0x108b+3686-0x1ee2))<<(0x7cc+7172-0x23cc))+((data[pos]&(0x11b4+2682-0x1b3e))>>
+(0x1e21+1803-0x2528));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x869+7773-0x268b)){
 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=(0xca3+2387-0x15f6);}}else{at_print(LOG_DEBUG,
+,i);i=(0xa59+6439-0x2380);}}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=(0xe19+1525-0x140e);}timestamp->second=i;pos++;if(data[pos]&
-(0x1db1+1492-0x237d)){timestamp->timezone=(data[pos]&(0xad4+416-0xc6d))*
-(0x105d+3596-0x1e5f)+((data[pos]&(0x30b+3133-0xe58))>>(0x12e6+2578-0x1cf4));
-timestamp->timezone*=(-(0x79b+4420-0x18de));}else{timestamp->timezone=(sint7)((
-data[pos]&(0x789+964-0xb3e))*(0x12b2+3958-0x221e)+((data[pos]&
-(0x3c0+4435-0x1423))>>(0x16d4+2787-0x21b3)));}if(timestamp->timezone>
-(0x7dd+2583-0x11c4)||timestamp->timezone<-(0x1920+789-0x1c05)){at_print(
-LOG_DEBUG,
+,data[pos]);i=(0x268+3062-0xe5e);}timestamp->second=i;pos++;if(data[pos]&
+(0xfdb+913-0x1364)){timestamp->timezone=(data[pos]&(0x1bc0+2494-0x2577))*
+(0xc63+3568-0x1a49)+((data[pos]&(0x2d9+205-0x2b6))>>(0x87f+68-0x8bf));timestamp
+->timezone*=(-(0x635+4377-0x174d));}else{timestamp->timezone=(sint7)((data[pos]&
+(0x172f+2481-0x20d1))*(0x18a1+786-0x1ba9)+((data[pos]&(0x988+2609-0x12c9))>>
+(0xcf1+5635-0x22f0)));}if(timestamp->timezone>(0x6b+8995-0x235e)||timestamp->
+timezone<-(0xa71+1374-0xf9f)){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=(0x1c7f+2237-0x253c);}pos++;return pos
+,timestamp->timezone);timestamp->timezone=(0x1b06+3034-0x26e0);}pos++;return pos
 ;}static UINT8 wms_ts_decode_udh_concat_8(const UINT8*udh,wms_udh_s_type*
-header_ptr){UINT8 pos=(0x1a71+286-0x1b8f);if(udh==NULL||header_ptr==NULL){
+header_ptr){UINT8 pos=(0x1d12+2398-0x2670);if(udh==NULL||header_ptr==NULL){
 at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x8d2+4091-0x18cd);}if(udh[pos]<(0x1f1d+603-0x2175)){at_print(LOG_DEBUG,
+(0x1ac5+816-0x1df5);}if(udh[pos]<(0x1fc+1675-0x884)){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(0x92b+6225-0x217c);}if(udh[pos+(0xde8+1459-0x1399)]==
-(0xacc+6121-0x22b5)||udh[pos+(0x7e7+2772-0x12b8)]>udh[pos+(0x1850+2035-0x2041)])
-{at_print(LOG_DEBUG,
+,udh[pos]);return(0x6da+4229-0x175f);}if(udh[pos+(0x185f+2506-0x2227)]==
+(0x299+4917-0x15ce)||udh[pos+(0x192+4653-0x13bc)]>udh[pos+(0x60a+7055-0x2197)]){
+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(0x14d+9547-0x2698);}pos++;header_ptr->header_id=WMS_UDH_CONCAT_8;
+);return(0xe03+1361-0x1354);}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[(0x1812+3737-0x26ab)
-]+(0x94d+4201-0x19b5));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x1071+3812-0x1f55);if(udh==NULL||
-header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xd07+5681-0x2338);}if(
-udh[pos]<(0xd6f+6556-0x2707)){at_print(LOG_DEBUG,
+pos++];header_ptr->u.concat_8.seq_num=udh[pos++];return(udh[(0xff5+5581-0x25c2)]
++(0x345+3153-0xf95));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
+wms_udh_s_type*header_ptr){UINT8 pos=(0x336+1027-0x739);if(udh==NULL||header_ptr
+==NULL){at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");
+return(0x9b+4574-0x1279);}if(udh[pos]<(0x129+6017-0x18a6)){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(0x6f1+7226-0x232b);}if(udh[pos+(0xab4+4349-0x1bae)]==
-(0xde0+3964-0x1d5c)||udh[pos+(0x983+2511-0x134e)]==(0x2a7+5473-0x1808)||udh[pos+
-(0x1471+1312-0x198d)]>udh[pos+(0x15f8+3207-0x227c)])return(0x7c7+3391-0x1506);
+,udh[pos]);return(0x185+9188-0x2569);}if(udh[pos+(0x14dd+1438-0x1a78)]==
+(0x14c2+4012-0x246e)||udh[pos+(0x520+3235-0x11bf)]==(0xf65+5051-0x2320)||udh[pos
++(0x25e1+122-0x2657)]>udh[pos+(0xeb1+2534-0x1894)])return(0x87b+5222-0x1ce1);
 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<<(0x4b6+5298-0x1960))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[
-pos++];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[(0x38f+8518-0x24d5)
-]+(0x3d1+4577-0x15b1));}static UINT8 wms_ts_udh_decode_first_seg_check(const 
-UINT8 len,const UINT8*data,UINT8*is_first_segment_ptr){UINT8 pos=
-(0x3dd+6390-0x1cd3);UINT8 num_headers=(0xb54+3854-0x1a62);UINT8 udhl=
-(0xec6+1053-0x12e3);UINT8 iedl=(0x5d1+5984-0x1d31);UINT8 iei=
-(0x1102+4996-0x2486);*is_first_segment_ptr=TRUE;if(data==NULL||data[pos]==
-(0x10c2+3290-0x1d9c)||len==(0x569+7591-0x2310)){at_print(LOG_DEBUG,
+msg_ref<<(0x203c+1118-0x2492))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[
+pos++];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[(0x18b+5217-0x15ec)
+]+(0x4d+2601-0xa75));}static UINT8 wms_ts_udh_decode_first_seg_check(const UINT8
+ len,const UINT8*data,UINT8*is_first_segment_ptr){UINT8 pos=(0x9c5+622-0xc33);
+UINT8 num_headers=(0xa57+4441-0x1bb0);UINT8 udhl=(0xe8d+1746-0x155f);UINT8 iedl=
+(0x8aa+6905-0x23a3);UINT8 iei=(0x5ea+2838-0x1100);*is_first_segment_ptr=TRUE;if(
+data==NULL||data[pos]==(0x274+3342-0xf82)||len==(0x20f5+1302-0x260b)){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+(0x17bd+2893-0x2309)];if(iei==
-WMS_UDH_CONCAT_16){if(data[pos+(0x1d60+1391-0x22ca)]!=(0xc7a+6586-0x2633)){
-at_print(LOG_DEBUG,
+WMS_MAX_UD_HEADERS)){iei=data[pos];iedl=data[pos+(0xa20+1742-0x10ed)];if(iei==
+WMS_UDH_CONCAT_16){if(data[pos+(0xb1c+789-0xe2c)]!=(0x220+4694-0x1475)){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+=((0x17b1+1316-0x1cd3)+iedl);}}return TRUE;}static UINT8 
+;pos+=((0x5f+8845-0x22ea)+iedl);}}return TRUE;}static UINT8 
 wms_ts_decode_udh_special_sm(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 
-pos=(0x37b+8171-0x2366);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x200c+23-0x2023);}if(udh
-[pos]<(0x4cb+6293-0x1d5e)){at_print(LOG_DEBUG,
+pos=(0x1095+3911-0x1fdc);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x12f9+3878-0x221f);}if(
+udh[pos]<(0x2135+1042-0x2545)){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(0x1966+2033-0x2157);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x19eb+2416-0x235b);}pos++;header_ptr->header_id=
 WMS_UDH_SPECIAL_SM;header_ptr->u.special_sm.msg_waiting=(
-wms_gw_msg_waiting_e_type)((udh[pos]>>(0xbb2+4043-0x1b76)==(0x32+2569-0xa3b))?
-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++]&
-(0x1be6+1362-0x20b9));header_ptr->u.special_sm.message_count=udh[pos++];return(
-udh[(0x159a+3858-0x24ac)]+(0x2461+393-0x25e9));}static UINT8 
-wms_ts_decode_udh_port_8(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
-(0x4e5+2702-0xf73);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x141+9073-0x24b2);}if(
-udh[pos]<(0xda1+1202-0x1251)){at_print(LOG_DEBUG,
+wms_gw_msg_waiting_e_type)((udh[pos]>>(0x15e5+3542-0x23b4)==(0x1dc8+1036-0x21d4)
+)?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++]&(0xb6b+1331-0x101f)
+);header_ptr->u.special_sm.message_count=udh[pos++];return(udh[
+(0x3f8+1401-0x971)]+(0x62f+7032-0x21a6));}static UINT8 wms_ts_decode_udh_port_8(
+const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x13d0+2531-0x1db3);if(udh
+==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xd44+6086-0x250a);}if(
+udh[pos]<(0x23d2+28-0x23ec)){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(0x14e7+3059-0x20da);}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[(0x1968+589-0x1bb5)]+(0x228+2952-0xdaf));}static
- UINT8 wms_ts_decode_udh_port16(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
- pos=(0xe33+2535-0x181a);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x609+8445-0x2706);}if(
-udh[pos]<(0x397+86-0x3e9)){at_print(LOG_DEBUG,
+,udh[pos]);return(0xa1a+6856-0x24e2);}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[(0x1e13+1958-0x25b9)]+(0x1159+916-0x14ec));}static UINT8 
+wms_ts_decode_udh_port16(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
+(0x1b4a+1362-0x209c);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x3bd+5801-0x1a66);}if(
+udh[pos]<(0x201+9238-0x2613)){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(0x1110+5499-0x268b);}header_ptr->header_id=WMS_UDH_PORT_16;pos
+,udh[pos]);return(0x476+5576-0x1a3e);}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<<(0x221+1075-0x64c))|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<<(0x987+1886-0x10dd))|udh[pos++];return(udh[
-(0x3e6+2454-0xd7c)]+(0x1661+3736-0x24f8));}static UINT8 
+UINT16)(header_ptr->u.wap_16.dest_port<<(0xfa+2739-0xba5))|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<<(0x12e0+1356-0x1824))|udh[pos++];return(udh[
+(0x1bb+9451-0x26a6)]+(0xf08+1150-0x1385));}static UINT8 
 wms_ts_decode_udh_text_formatting(const UINT8*udh,wms_udh_s_type*header_ptr){
-UINT8 pos=(0x126b+2937-0x1de4);if(udh==NULL||header_ptr==NULL){at_print(
-LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x57a+4740-0x17fe);}if(udh[pos]<(0x61+9878-0x26f4)){at_print(LOG_DEBUG,
+UINT8 pos=(0x1855+106-0x18bf);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG
+,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xa00+6612-0x23d4);}if(
+udh[pos]<(0xf9c+431-0x1148)){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(0xb64+5935-0x2293);}if(udh[pos]>=(0xcca+3434-0x1a30)){
+,udh[pos]);return(0x8ec+6502-0x2252);}if(udh[pos]>=(0x10e5+177-0x1192)){
 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]&
-(0x1439+3106-0x2058));header_ptr->u.text_formating.font_size=(
-wms_udh_font_size_e_type)((udh[pos]&(0x153+4650-0x1371))>>(0x1302+4770-0x25a2));
-header_ptr->u.text_formating.style_bold=(udh[pos]&(0xbd9+395-0xd54))>>
-(0x1976+3436-0x26de);header_ptr->u.text_formating.style_italic=(udh[pos]&
-(0x198+1297-0x689))>>(0x1ad2+1929-0x2256);header_ptr->u.text_formating.
-style_underlined=(udh[pos]&(0x1a96+275-0x1b69))>>(0x5f1+4388-0x170f);header_ptr
-->u.text_formating.style_strikethrough=(udh[pos]&(0xc8+9643-0x25f3))>>
-(0x3a+4507-0x11ce);pos++;if(header_ptr->u.text_formating.is_color_present){
+(0x1728+2383-0x2074));header_ptr->u.text_formating.font_size=(
+wms_udh_font_size_e_type)((udh[pos]&(0xacd+703-0xd80))>>(0x231+139-0x2ba));
+header_ptr->u.text_formating.style_bold=(udh[pos]&(0x11a9+3374-0x1ec7))>>
+(0x53f+5430-0x1a71);header_ptr->u.text_formating.style_italic=(udh[pos]&
+(0x1e4+8041-0x212d))>>(0x1ea4+1207-0x2356);header_ptr->u.text_formating.
+style_underlined=(udh[pos]&(0xeb+516-0x2af))>>(0x5fc+4424-0x173e);header_ptr->u.
+text_formating.style_strikethrough=(udh[pos]&(0x247f+625-0x2670))>>
+(0x23ea+778-0x26ed);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]&(0x44c+3364-0x1161));header_ptr->u.text_formating.text_color_background
-=(wms_udh_text_color_e_type)((udh[pos]&(0x4f0+4907-0x172b))>>(0x1990+558-0x1bba)
-);pos++;}return(udh[(0xcab+4145-0x1cdc)]+(0x6ab+5401-0x1bc3));}static UINT8 
-wms_ts_decode_udh_pre_def_sound(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
- pos=(0x422+1879-0xb79);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xa60+6028-0x21ec);}if(
-udh[pos]<(0x9da+1656-0x1050)){at_print(LOG_DEBUG,
+udh[pos]&(0x134a+1045-0x1750));header_ptr->u.text_formating.
+text_color_background=(wms_udh_text_color_e_type)((udh[pos]&(0x1096+124-0x1022))
+>>(0x98b+3585-0x1788));pos++;}return(udh[(0x1979+3389-0x26b6)]+(0x24+3067-0xc1e)
+);}static UINT8 wms_ts_decode_udh_pre_def_sound(const UINT8*udh,wms_udh_s_type*
+header_ptr){UINT8 pos=(0x119d+2083-0x19c0);if(udh==NULL||header_ptr==NULL){
+at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
+(0xb9f+150-0xc35);}if(udh[pos]<(0x1593+702-0x184f)){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(0x154+9349-0x25d9);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x1004+711-0x12cb);}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[(0x726+3328-0x1426)]+
-(0x17c5+3332-0x24c8));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8
-*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x16e8+2011-0x1ec3),j;if(udh==NULL||
+->u.pre_def_sound.snd_number=udh[pos++];return(udh[(0x1b28+1204-0x1fdc)]+
+(0x166d+565-0x18a1));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8*
+udh,wms_udh_s_type*header_ptr){UINT8 pos=(0xb25+497-0xd16),j;if(udh==NULL||
 header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x14e7+2617-0x1f20);}if(
-udh[pos]==(0x11f+7096-0x1cd7)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xe5d+2920-0x19c5);}if(
+udh[pos]==(0x160b+3707-0x2486)){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(0x507+4952-0x185f);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
-header_ptr->u.user_def_sound.data_length=udh[pos++]-(0x74a+3620-0x156d);
+);return(0x103b+2592-0x1a5b);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
+header_ptr->u.user_def_sound.data_length=udh[pos++]-(0x140+5918-0x185d);
 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(0xe5f+1276-0x135b);}memset(header_ptr->u.
-user_def_sound.user_def_sound,(0xd99+3886-0x1bc8),WMS_UDH_MAX_SND_SIZE);for(j=
-(0x733+464-0x903);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 
+,header_ptr->header_id);return(0x9bb+786-0xccd);}memset(header_ptr->u.
+user_def_sound.user_def_sound,(0x4bf+2762-0xe8a),WMS_UDH_MAX_SND_SIZE);for(j=
+(0x999+6332-0x2255);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=(0x5d8+8228-0x25fc);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xc09+1762-0x12eb);}if(
-udh[pos]!=(0x1f8a+1818-0x26a2)){at_print(LOG_DEBUG,
+pos=(0xf65+2237-0x1822);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x9ed+5680-0x201d);}if(
+udh[pos]!=(0x14a9+2301-0x1da4)){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(0xa23+5575-0x1fea);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x3d4+1592-0xa0c);}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=(0x5ff+3616-0x141f),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x10c9+3294-0x1da7);}if(
-udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_LARGE_BITMAP_SIZE+(0x360+2669-0xdcc)
+pos=(0xacc+1954-0x126e),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1d54+2123-0x259f);}if(
+udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_LARGE_BITMAP_SIZE+(0x634+1443-0xbd6)
 )){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(0x12ed+3687-0x2154);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
-pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0x1de1+1295-0x22f0);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x1a77+1719-0x212e);k<
+,udh[pos]);return(0x1af1+2090-0x231b);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
+pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0x14c+1147-0x5c7);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x6d5+1634-0xd37);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=(0x40f+1109-0x864),j,k;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0x67d+6205-0x1eba),j,k;if(udh==NULL||
 header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1abd+1494-0x2093);}if(
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x461+5868-0x1b4d);}if(
 udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+
-(0x1324+769-0x1624))){at_print(LOG_DEBUG,
+(0x1f83+1592-0x25ba))){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(0x15c+2647-0xbb3);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
-pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0x4e6+8662-0x26bc);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x1dcb+1439-0x236a);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=(0xb55+3121-0x1786),j;if(udh==NULL||
-header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x8d5+32-0x8f5);}if(udh[
-pos]!=WMS_UDH_LARGE_PIC_SIZE+(0x70b+637-0x987)){at_print(LOG_DEBUG,
+,udh[pos]);return(0x1698+3127-0x22cf);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
+pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0x1236+243-0x1329);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0xb41+614-0xda7);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=(0xb81+5593-0x215a),j;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1088+180-0x113c);}if(
+udh[pos]!=WMS_UDH_LARGE_PIC_SIZE+(0x123d+3370-0x1f66)){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(0x1502+1949-0x1c9f);}header_ptr->header_id=
-WMS_UDH_LARGE_PICTURE;pos++;header_ptr->u.large_picture.position=udh[pos++];for(
-j=(0x1d08+1797-0x240d);j<WMS_UDH_LARGE_PIC_SIZE;j++)header_ptr->u.large_picture.
+,udh[pos]);return(0x411+3048-0xff9);}header_ptr->header_id=WMS_UDH_LARGE_PICTURE
+;pos++;header_ptr->u.large_picture.position=udh[pos++];for(j=
+(0x1386+3828-0x227a);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=(0x19f6+2666-0x2460),j;if(
+const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x1bb8+1712-0x2268),j;if(
 udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x106d+1845-0x17a2);}if(
-udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0xf70+1688-0x1607)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xb06+6141-0x2303);}if(
+udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0x8cc+708-0xb8f)){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(0x16ea+220-0x17c6);}header_ptr->header_id=
+,udh[pos]);return(0x1196+1851-0x18d1);}header_ptr->header_id=
 WMS_UDH_SMALL_PICTURE;pos++;header_ptr->u.small_picture.position=udh[pos++];for(
-j=(0x8c5+1293-0xdd2);j<WMS_UDH_SMALL_PIC_SIZE;j++)header_ptr->u.small_picture.
+j=(0x1660+1118-0x1abe);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=(0x61f+6820-0x20c3),j,pic_size;if
+UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x2343+179-0x23f6),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(0x1676+893-0x19f3);}if(
-udh[pos]>WMS_UDH_VAR_PIC_SIZE+(0x1c21+486-0x1e04)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x12a6+3909-0x21eb);}if(
+udh[pos]>WMS_UDH_VAR_PIC_SIZE+(0x18f+6501-0x1af1)){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(0x58+4248-0x10f0);}if((udh[pos]-(0x151b+2597-0x1f3d))!=(udh[
-pos+(0xaf7+989-0xed2)]*udh[pos+(0x707+413-0x8a1)])){at_print(LOG_DEBUG,
+,udh[pos]);return(0x1dea+1006-0x21d8);}if((udh[pos]-(0x1189+1431-0x171d))!=(udh[
+pos+(0x548+7347-0x21f9)]*udh[pos+(0x90b+1701-0xfad)])){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(0xa80+5315-0x1f43);}pic_size=udh[pos++]-(0x167+6185-0x198d);header_ptr
+);return(0x1d1+3377-0xf02);}pic_size=udh[pos++]-(0x18d6+1483-0x1e9e);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++]*(0x1ac+3146-0xdee));
-header_ptr->u.var_picture.height=udh[pos++];for(j=(0xadd+4023-0x1a94);j<pic_size
+header_ptr->u.var_picture.width=(UINT8)(udh[pos++]*(0x1787+2880-0x22bf));
+header_ptr->u.var_picture.height=udh[pos++];for(j=(0xb6a+2981-0x170f);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=(0x893+5402-0x1dad);if(udh==NULL||header_ptr==NULL){
+header_ptr){UINT8 pos=(0xfe9+5455-0x2538);if(udh==NULL||header_ptr==NULL){
 at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x1741+1888-0x1ea1);}if(udh[pos]<(0x295+7992-0x21cc)){at_print(LOG_DEBUG,
+(0xc7+7008-0x1c27);}if(udh[pos]<(0xc21+1914-0x139a)){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(0x319+7583-0x20b8);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x7c2+39-0x7e9);}pos++;header_ptr->header_id=
 WMS_UDH_USER_PROMPT;header_ptr->u.user_prompt.number_of_objects=udh[pos++];
-return(udh[(0xab1+7088-0x2661)]+(0x6e1+5065-0x1aa9));}static UINT8 
+return(udh[(0x4a2+664-0x73a)]+(0x55+9610-0x25de));}static UINT8 
 wms_ts_decode_udh_eo(const UINT8*udh,UINT8 first_segment,wms_udh_s_type*
-header_ptr){UINT8 pos=(0x525+5766-0x1bab),udh_length;if(udh==NULL||header_ptr==
+header_ptr){UINT8 pos=(0x1d8d+2073-0x25a6),udh_length;if(udh==NULL||header_ptr==
 NULL){at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x18a+7070-0x1d28);}if(udh[pos]==(0xdff+966-0x11c5)){at_print(LOG_DEBUG,
+(0x21df+738-0x24c1);}if(udh[pos]==(0x11c+860-0x478)){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(0x4a2+6564-0x1e46);}udh_length=udh[pos++];header_ptr->header_id=
+);return(0x128d+4437-0x23e2);}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
-(0xc2d+3141-0x1872);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
-length=udh[pos++]<<(0x370+4987-0x16e3);header_ptr->u.eo.length|=udh[pos++];
+(0x3ec+2426-0xd66);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
+length=udh[pos++]<<(0x95d+561-0xb86);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++]<<(0xc80+4329-0x1d61);header_ptr
-->u.eo.position|=udh[pos++];}header_ptr->u.eo.content.length=(udh_length-pos)+
-(0x12d+5712-0x177c);memcpy(header_ptr->u.eo.content.data,udh+pos,header_ptr->u.
+udh[pos++];header_ptr->u.eo.position=udh[pos++]<<(0xc55+868-0xfb1);header_ptr->u
+.eo.position|=udh[pos++];}header_ptr->u.eo.content.length=(udh_length-pos)+
+(0x1831+2287-0x211f);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=
-(0xb0a+5626-0x2104);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x738+41-0x761);}if(udh[
-pos]<(0xcd5+5360-0x21c4)){at_print(LOG_DEBUG,
+(0x1427+2423-0x1d9e);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x6e8+5710-0x1d36);}if(
+udh[pos]<(0xe3a+49-0xe6a)){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(0x3a1+1441-0x942);}pos++;header_ptr->header_id=WMS_UDH_RFC822;
-header_ptr->u.rfc822.header_length=udh[pos++];return(udh[(0x91c+7418-0x2616)]+
-(0xf1+1595-0x72b));}static UINT8 wms_ts_decode_udh_nat_lang_ss(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x2d9+4736-0x1559);if(udh==NULL||
-header_ptr==NULL){return(0x13a9+1325-0x18d6);}if(udh[pos]!=
-WMS_UDH_OCTETS_NAT_LANG_SS){return(0x1912+291-0x1a35);}pos++;header_ptr->
+,udh[pos]);return(0x14ac+950-0x1862);}pos++;header_ptr->header_id=WMS_UDH_RFC822
+;header_ptr->u.rfc822.header_length=udh[pos++];return(udh[(0x169d+3378-0x23cf)]+
+(0x446+718-0x713));}static UINT8 wms_ts_decode_udh_nat_lang_ss(const UINT8*udh,
+wms_udh_s_type*header_ptr){UINT8 pos=(0x1ccb+811-0x1ff6);if(udh==NULL||
+header_ptr==NULL){return(0xad0+1547-0x10db);}if(udh[pos]!=
+WMS_UDH_OCTETS_NAT_LANG_SS){return(0x13f4+3588-0x21f8);}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(0x2418+346-0x2572);}header_ptr->u.
+WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){return(0x32a+2666-0xd94);}header_ptr->u.
 nat_lang_ss.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
-(0x782+6326-0x2038)]+(0x3c0+7161-0x1fb8));}static UINT8 
+(0x861+6634-0x224b)]+(0x16e4+373-0x1858));}static UINT8 
 wms_ts_decode_udh_nat_lang_ls(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 
-pos=(0xd3f+441-0xef8);if(udh==NULL||header_ptr==NULL){return(0x14c9+641-0x174a);
-}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_LS){return(0x14d5+1984-0x1c95);}pos++;
+pos=(0x334+2139-0xb8f);if(udh==NULL||header_ptr==NULL){return(0xef7+4348-0x1ff3)
+;}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_LS){return(0x281+4270-0x132f);}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(0x2ca+4478-0x1448);}header_ptr
+||(WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){return(0x3ed+3105-0x100e);}header_ptr
 ->u.nat_lang_ls.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
-(0x1c47+2011-0x2422)]+(0xc32+6169-0x244a));}static UINT8 wms_ts_decode_udh_other
-(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x1930+2146-0x2192),i=
-(0x1bcd+342-0x1d23);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x997+2842-0x14b1);}if(
-udh[pos+(0x145+6568-0x1aec)]>WMS_UDH_OTHER_SIZE){at_print(LOG_DEBUG,
+(0x10a6+57-0x10df)]+(0xfd3+1082-0x140c));}static UINT8 wms_ts_decode_udh_other(
+const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x1c1+5424-0x16f1),i=
+(0x14f9+4296-0x25c1);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xb6+8176-0x20a6);}if(udh
+[pos+(0x19ac+3351-0x26c2)]>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(0x106f+1779-0x1762);}header_ptr->header_id=(wms_udh_id_e_type)udh[pos];
+);return(0x191+769-0x492);}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=(0x1013+3787-0x1ede);i<header_ptr->u.other.
+header_length=udh[pos++];for(i=(0xa0+8428-0x218c);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=(0x1ab3+2026-0x229d);UINT8 
-header_length=(0x3a0+5251-0x1823),num_headers=(0x1b99+2319-0x24a8);UINT8 udhl;
-UINT8 first_segment=TRUE;if(data==NULL||len==(0xbdb+1725-0x1298)||data[pos]==
-(0x2f8+3076-0xefc)||num_headers_ptr==NULL||udh_ptr==NULL){at_print(LOG_DEBUG,
+num_headers_ptr,wms_udh_s_type*udh_ptr){UINT8 pos=(0x1583+3802-0x245d);UINT8 
+header_length=(0x7d3+7900-0x26af),num_headers=(0x2425+676-0x26c9);UINT8 udhl;
+UINT8 first_segment=TRUE;if(data==NULL||len==(0xd9d+3628-0x1bc9)||data[pos]==
+(0x1463+1325-0x1990)||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(0x535+4325-0x161a);}udhl=data[pos];pos++;while((pos<udhl)&&(num_headers
-<WMS_MAX_UD_HEADERS)){switch(data[pos++]){case WMS_UDH_CONCAT_8:header_length=
+);return(0x96+794-0x3b0);}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,&udh_ptr[
 num_headers]);break;case WMS_UDH_SPECIAL_SM:header_length=
@@ -1864,66 +1857,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(0x14b+2530-0xb2d);}else if(header_length!=(0x1e46+840-0x218e)){pos
-+=header_length;num_headers++;}else{at_print(LOG_DEBUG,
+,udhl);return(0xcd0+4681-0x1f19);}else if(header_length!=(0x13b1+2198-0x1c47)){
+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=(0xba6+5203-0x1ff9);return(0x1dcb+1635-0x242e);
+,pos,data[pos]);*num_headers_ptr=(0x1c45+1869-0x2392);return(0xab1+2018-0x1293);
 }}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+(0x65a+2087-0xe80);}if(pos!=(udhl+(0x1924+545-0x1b44))){at_print(
+);pos=udhl+(0x4a4+329-0x5ec);}if(pos!=(udhl+(0x144+4978-0x14b5))){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=(0x1790+3813-0x2675);udhl=(0x9a6+925-0xd43);}if(num_headers>
-(0x6f6+6547-0x2089)){*num_headers_ptr=num_headers;}return udhl;}UINT8 
+);num_headers=(0x18fa+917-0x1c8f);udhl=(0xe13+1990-0x15d9);}if(num_headers>
+(0x84a+6585-0x2203)){*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=(0x5ca+8118-0x2580);UINT8 fill_bits=(0x2ff+2982-0xea5);
-UINT8 user_data_length;UINT8 user_data_header_length=(0x19b1+2381-0x22fe);if(dcs
-==NULL||data==NULL||user_data==NULL){at_print(LOG_DEBUG,
+user_data){UINT8 i,pos=(0x6b4+7198-0x22d2);UINT8 fill_bits=(0xefc+2490-0x18b6);
+UINT8 user_data_length;UINT8 user_data_header_length=(0x6b+6311-0x1912);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(0x1404+3591-0x220b);}(void)memset(user_data,(0x22b7+203-0x2382),sizeof(
-wms_gw_user_data_s_type));if(len==(0x6f7+3686-0x155d)){return(0xa42+1181-0xedf);
-}if(dcs->alphabet==WMS_GW_ALPHABET_7_BIT_DEFAULT){if(len>WMS_SMS_UDL_MAX_7_BIT){
-at_print(LOG_DEBUG,
+);return(0x1840+1388-0x1dac);}(void)memset(user_data,(0x93a+2510-0x1308),sizeof(
+wms_gw_user_data_s_type));if(len==(0xcdf+2752-0x179f)){return(0xa85+3635-0x18b8)
+;}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(0x1c2+4767-0x1461);}user_data_length=len;if(user_data_header_present){
+);return(0x631+1848-0xd69);}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(0x16b+342-0x2c1);}if(user_data_header_length>(0x1b54+764-0x1e50)){
-fill_bits=((len*(0x40c+5654-0x1a1b))-((user_data_header_length+
-(0x34c+2309-0xc50))*(0x16d0+2071-0x1edf)))%(0x56+3113-0xc78);user_data_length=(
-UINT8)(((len*(0x385+2940-0xefa))-((user_data_header_length+(0xbe8+5210-0x2041))*
-(0x1d1d+1868-0x2461)))/(0x1489+558-0x16b0));pos=user_data_header_length+
-(0x36d+955-0x727);if(fill_bits!=(0x6fd+6071-0x1eb4)){fill_bits=
-(0xff1+5715-0x263c)-fill_bits;}}i=wms_ts_unpack_gw_7_bit_chars(&data[pos],
+);return(0x18e5+2880-0x2425);}if(user_data_header_length>(0x1434+3165-0x2091)){
+fill_bits=((len*(0x432+1341-0x968))-((user_data_header_length+
+(0xe52+5195-0x229c))*(0x146+7923-0x2031)))%(0xe48+6208-0x2681);user_data_length=
+(UINT8)(((len*(0xac0+6670-0x24c7))-((user_data_header_length+(0xd99+6198-0x25ce)
+)*(0x10fc+5026-0x2496)))/(0xdf9+3045-0x19d7));pos=user_data_header_length+
+(0xe90+3313-0x1b80);if(fill_bits!=(0x675+4844-0x1961)){fill_bits=
+(0x76a+4512-0x1902)-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(0xc06+1367-0x115d);}user_data_length=len;if(user_data_header_present){
+);return(0x210+5884-0x190c);}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(0xd18+2924-0x1884);}pos+=user_data_header_length+(0x5fa+693-0x8ae);
-user_data_length=(len-user_data_header_length)-(0xc5f+5532-0x21fa);}memcpy(
+);return(0x83a+1776-0xf2a);}pos+=user_data_header_length+(0x2f1+37-0x315);
+user_data_length=(len-user_data_header_length)-(0x1ec+1767-0x8d2);}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=
-(0x80+7950-0x1f8e),i;const UINT8*data=ptRawTsData->data;if(ptRawTsData==NULL||
+(0xd0c+4068-0x1cf0),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]&(0x826+6159-0x2032))!=
-(0x1651+4235-0x26dc)){printf(
+);return WMS_NULL_PTR_S;}else if((data[pos]&(0x1276+1301-0x1788))!=
+(0x1a62+2772-0x2536)){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]&
-(0x13b8+773-0x16b9))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
-(0x255+4383-0x1354))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
-(0xf48+3035-0x1ae3))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
-(0xed2+3038-0x1a30))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&
-deliver->address);if(i==(0x4f2+6802-0x1f84)){printf(
+(0x1b09+1283-0x2008))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
+(0x589+1524-0xb5d))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
+(0x1564+947-0x18d7))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
+(0x1adf+1220-0x1f23))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&
+deliver->address);if(i==(0xcf9+2157-0x1566)){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 +1924,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==(0x2b7+8011-0x2202)){printf(
+timestamp);if(i==(0xc16+920-0xfae)){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-(0x854+2650-0x12ad)],data+pos,deliver->
+deliver->dcs,data[pos-(0x86+5360-0x1575)],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=(0x1b92+932-0x1f36);if(data==NULL||validity==NULL){at_print(
-LOG_DEBUG,
+UINT8 i,pos=(0x23a+2241-0xafb);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(0x276+1460-0x82a);}else{switch(validity->format){case 
-WMS_GW_VALIDITY_NONE:memset(validity,(0xcbf+6250-0x2529),sizeof(
+);return(0xd2f+755-0x1022);}else{switch(validity->format){case 
+WMS_GW_VALIDITY_NONE:memset(validity,(0x103f+3621-0x1e64),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=
-(0x1ff+2166-0xa75),i;const UINT8*data;if(ptRawTsData==NULL||submit==NULL){printf
-(
+(0x1a88+1452-0x2034),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]&(0x9e2+7434-0x26e8))?TRUE:FALSE;submit->validity.format=(
-wms_gw_validity_format_e_type)((data[pos]&(0xd2b+5884-0x240f))>>
-(0x91b+6018-0x209a));submit->status_report_enabled=(data[pos]&
-(0x63b+7042-0x219d))?TRUE:FALSE;submit->user_data_header_present=(data[pos]&
-(0xdcb+6309-0x2630))?TRUE:FALSE;submit->reply_path_present=(data[pos]&
-(0xb91+215-0xbe8))?TRUE:FALSE;pos++;submit->message_reference=data[pos];pos++;i=
-wms_ts_decode_address(&data[pos],&submit->address);if(i==(0x157c+223-0x165b)){
-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(
+pos]&(0x1385+4110-0x238f))?TRUE:FALSE;submit->validity.format=(
+wms_gw_validity_format_e_type)((data[pos]&(0x69+2718-0xaef))>>
+(0x1660+2567-0x2064));submit->status_report_enabled=(data[pos]&
+(0xc04+2306-0x14e6))?TRUE:FALSE;submit->user_data_header_present=(data[pos]&
+(0x10d4+1213-0x1551))?TRUE:FALSE;submit->reply_path_present=(data[pos]&
+(0x1365+4198-0x234b))?TRUE:FALSE;pos++;submit->message_reference=data[pos];pos++
+;i=wms_ts_decode_address(&data[pos],&submit->address);if(i==(0xbd3+6682-0x25ed))
+{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==(0x170+8496-0x22a0))){return WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=
-wms_ts_decode_gw_user_data(&submit->dcs,data[pos-(0x300+4699-0x155a)],data+pos,
+(i==(0x953+5839-0x2022))){return WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=
+wms_ts_decode_gw_user_data(&submit->dcs,data[pos-(0x144f+3850-0x2358)],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=(0x604+4488-0x178c),i;const UINT8*data;if(ptRawTsData==NULL||status_report==
+pos=(0x389+2777-0xe62),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]&
-(0x3af+7306-0x2035)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]&
-(0x1d8b+1681-0x23fc)?TRUE:FALSE;status_report->user_data_header_present=(data[
-pos]&(0x1a96+164-0x1afa))?TRUE:FALSE;pos++;status_report->message_reference=data
+(0xde8+3978-0x1d6e)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]&
+(0x137c+4516-0x2500)?TRUE:FALSE;status_report->user_data_header_present=(data[
+pos]&(0xbcd+3709-0x1a0a))?TRUE:FALSE;pos++;status_report->message_reference=data
 [pos];pos++;i=wms_ts_decode_address(&data[pos],&status_report->address);if(i==
-(0x1a99+351-0x1bf8)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0x18a+6250-0x19f4)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
 wms_ts_decode_timestamp(data+pos,&status_report->timestamp);if(i==
-(0x91+8381-0x214e)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0x1e6f+770-0x2171)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
 wms_ts_decode_timestamp(data+pos,&status_report->discharge_time);if(i==
-(0xdb4+3490-0x1b56)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;status_report->
+(0xbcd+3818-0x1ab7)){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)(0xcbf+3729-0x1b50);status_report->user_data.
-sm_len=(0x419+7372-0x20e5);status_report->mask&=(0xd21+1323-0x114d);if((
-status_report->mask!=(0x702+3348-0x1317))&&(status_report->mask!=
-(0x2089+628-0x22fd))){pos++;if(status_report->mask&WMS_TPDU_MASK_PID){
+status_report->pid=(wms_pid_e_type)(0x47b+128-0x4fb);status_report->user_data.
+sm_len=(0xbc6+663-0xe5d);status_report->mask&=(0xfaa+956-0x1267);if((
+status_report->mask!=(0x1260+1858-0x18a3))&&(status_report->mask!=
+(0x1d8b+607-0x1fea))){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-(0x10b6+2075-0x18d0)],data+pos,status_report->
+&status_report->dcs,data[pos-(0x9ec+6675-0x23fe)],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=
-(0x99f+1376-0xeff);}return st;}wms_status_e_type wms_ts_decode(const 
+(0xb0+8144-0x2080);}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 6115359..1f81aea 100755
--- a/ap/app/zte_comm/sms/src/sms_db.c
+++ b/ap/app/zte_comm/sms/src/sms_db.c
@@ -101,83 +101,83 @@
 #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=
-(0xf66+2238-0x1824);extern T_zUfiSms_ParaInfo g_zUfiSms_CurSmsPara;extern 
+(0x54a+4828-0x1826);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={(0x31b+4607-0x151a)};int 
-tmp_i=(0xecb+5933-0x25f8);
-#if (0x20e1+1549-0x26ee)

-if(atoi(date.year)>(0xbbc+636-0xdd5)||atoi(date.year)<(0x1186+854-0x14dc)){
+T_zUfiSms_Date date){time_t timet;struct tm tmtime={(0x778+2067-0xf8b)};int 
+tmp_i=(0x10f2+4432-0x2242);
+#if (0xcc9+4580-0x1ead)

+if(atoi(date.year)>(0x1929+590-0x1b14)||atoi(date.year)<(0xa57+6373-0x233c)){
 printf("[SMS] getsecond error, year out of range: %d!!!",atoi(date.year));return
-(0xa90+143-0xb1f);}
+(0x1a82+137-0x1b0b);}
 #endif

-tmp_i=atoi(date.year);if(tmp_i<(0x1153+5168-0x2583)||tmp_i>INT_MAX-
-(0x338+7879-0x21fe)){at_print(LOG_ERR,
+tmp_i=atoi(date.year);if(tmp_i<(0x1740+995-0x1b23)||tmp_i>INT_MAX-
+(0xc15+3780-0x1ad8)){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(0xb79+147-0xc0c);}tmtime.tm_year=tmp_i+(0xe85+6737-0x2106)-
-(0x887+2563-0xb1e);tmp_i=atoi(date.month);if(tmp_i<(0x447+2597-0xe6c)||tmp_i>
-INT_MAX-(0x187f+2030-0x206c)){at_print(LOG_ERR,
+,tmp_i);return(0xdf2+1665-0x1473);}tmtime.tm_year=tmp_i+(0xb05+3423-0x1094)-
+(0x1a63+267-0x1402);tmp_i=atoi(date.month);if(tmp_i<(0x30c+4910-0x163a)||tmp_i>
+INT_MAX-(0xc82+574-0xebf)){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(0x1d23+1310-0x2241);}tmtime.tm_mon=tmp_i-(0x190d+929-0x1cad);
-tmp_i=atoi(date.day);if(tmp_i<(0x74f+1040-0xb5f)||tmp_i>INT_MAX-
-(0xcc6+6573-0x2672)){at_print(LOG_ERR,
+,tmp_i);return(0x9e3+1108-0xe37);}tmtime.tm_mon=tmp_i-(0x61d+7617-0x23dd);tmp_i=
+atoi(date.day);if(tmp_i<(0x535+2869-0x106a)||tmp_i>INT_MAX-(0x7b+7000-0x1bd2)){
+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(0x8cd+963-0xc90);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);if(
-tmp_i<(0x14a0+4036-0x2464)||tmp_i>INT_MAX-(0xc79+2321-0x1589)){at_print(LOG_ERR,
+,tmp_i);return(0x46c+3856-0x137c);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);if
+(tmp_i<(0xa88+1551-0x1097)||tmp_i>INT_MAX-(0xda8+4736-0x2027)){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(0xc0c+2222-0x14ba);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if(
-tmp_i<(0x1eb3+842-0x21fd)||tmp_i>INT_MAX-(0x1646+4279-0x26fc)){at_print(LOG_ERR,
+,tmp_i);return(0x6e4+5742-0x1d52);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if(
+tmp_i<(0x1451+2103-0x1c88)||tmp_i>INT_MAX-(0x298+4897-0x15b8)){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(0x15d7+852-0x192b);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
-tmp_i<(0x122+7489-0x1e63)||tmp_i>INT_MAX-(0xefc+1397-0x1470)){at_print(LOG_ERR,
+,tmp_i);return(0x14e6+2468-0x1e8a);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
+tmp_i<(0x4cc+554-0x6f6)||tmp_i>INT_MAX-(0x128d+3755-0x2137)){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(0xcd0+3939-0x1c33);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
+,tmp_i);return(0xc5b+6015-0x23da);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
 return timet;}T_zUfiSms_DbResult zUfiSms_OpenDb(void){int retry_times=
-(0x1e7+5301-0x169c);int open_rst=SQLITE_ERROR;if(g_zUfiSms_DbPointer!=NULL){
+(0x1785+2232-0x203d);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++<(0x223+8620-0x23c5));printf(
+SQLITE_CANTOPEN&&retry_times++<(0x773+813-0xa96));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=(0x4c3+212-0x597);int sqlRst=SQLITE_ERROR;while(try_times++<
-(0x7b+2164-0x8e5)){sqlRst=sqlite3_exec(g_zUfiSms_DbPointer,exec_sql,callback,
+ try_times=(0xb83+1109-0xfd8);int sqlRst=SQLITE_ERROR;while(try_times++<
+(0x1294+1534-0x1888)){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(
-(0x907+7333-0x25ab));}if(sqlRst!=SQLITE_OK){printf(
+(0x1380+404-0x1513));}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)==(0xc1b+1740-0x12e7)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZTE_WMS_TMP1_PATH,F_OK)==(0xc23+3437-0x1990)){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)!=(0x1c62+634-0x1edc)){slog(SMS_PRINT,SLOG_ERR,
+);if(remove(ZTE_WMS_TMP1_PATH)!=(0x119f+5195-0x25ea)){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[(0x22f+5661-0x1834)]={(0x1cfa+481-0x1edb)};char cmd[
-(0xb2a+4336-0x1b9a)]={(0x2c7+5549-0x1874)};sc_cfg_get(
+);}}{char rnum_buf[(0x770+314-0x892)]={(0x32+637-0x2af)};char cmd[
+(0xd4+7216-0x1c84)]={(0x4a0+3108-0x10c4)};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)==(0x506+413-0x6a3)){if(remove(ZTE_WMS_SEC_PATH)!=
-(0x9e7+5168-0x1e17)){slog(SMS_PRINT,SLOG_ERR,
+ZTE_WMS_TMP1_PATH,F_OK)==(0x113a+4719-0x23a9)){if(remove(ZTE_WMS_SEC_PATH)!=
+(0x1f66+573-0x21a3)){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)!=(0x1c5+1403-0x740)){slog(
+);}if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=(0x276+336-0x3c6)){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>=(0x893+7534-0x2600)){if(zresult[
-(0xc63+1383-0x11ca)]==NULL){*(int*)fvarg=(0x1ccb+1331-0x21fe);}else{*(int*)fvarg
-=atoi(zresult[(0xbf1+739-0xed4)]);}return SQLITE_OK;}else{return SQLITE_ERROR;}}
-int zUfiSms_SetCmdStatus(T_zUfiSms_StatusInfo*ptSetStatus){T_zUfiSms_DbResult 
+**zresult,char**lname){if(columns>=(0x1dec+1014-0x21e1)){if(zresult[
+(0x7c7+7536-0x2537)]==NULL){*(int*)fvarg=(0x14cb+1810-0x1bdd);}else{*(int*)fvarg
+=atoi(zresult[(0x910+1151-0xd8f)]);}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(
@@ -187,28 +187,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((0xdd4+1695-0x1473)==(int)para->status_report_on){sc_cfg_set(
+para){if((0xc3b+5250-0x20bd)==(int)para->status_report_on){sc_cfg_set(
 NV_REPORT_ENABLE,"\x30");}else{sc_cfg_set(NV_REPORT_ENABLE,"\x31");}if(
-(0x112f+5137-0x2540)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY
-,"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0xc91+842-0xfdb)==(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((0x1245+254-0x1343)==(int)para
-->mem_store){sc_cfg_set(NV_PRA_MEMSTORE,"\x30");}else{sc_cfg_set(NV_PRA_MEMSTORE
-,"\x31");}if((0x96d+5006-0x1bfc)==(int)para->tp_validity_period){sc_cfg_set(
-NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0x667+3751-0x1461)==(int)
-para->tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x6f\x6e\x65\x77\x65\x65\x6b");}
-else if((0x769+3071-0x12c1)==(int)para->tp_validity_period){sc_cfg_set(NV_SMS_VP
-,"\x6f\x6e\x65\x5f\x64\x61\x79");}else if((0x1282+760-0x14eb)==(int)para->
-tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x74\x77\x65\x6c\x76\x65\x68");}printf
-(
+(0xcf+3395-0xe12)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY,
+"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0x1533+2299-0x1e2e)==(
+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((0xfa8+5200-0x23f8)
+==(int)para->mem_store){sc_cfg_set(NV_PRA_MEMSTORE,"\x30");}else{sc_cfg_set(
+NV_PRA_MEMSTORE,"\x31");}if((0x32d+6810-0x1cc8)==(int)para->tp_validity_period){
+sc_cfg_set(NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0x21a+2444-0xaf9)
+==(int)para->tp_validity_period){sc_cfg_set(NV_SMS_VP,
+"\x6f\x6e\x65\x77\x65\x65\x6b");}else if((0x635+2729-0x1037)==(int)para->
+tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x6f\x6e\x65\x5f\x64\x61\x79");}else 
+if((0x617+4015-0x1537)==(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=
-(0x68a+2142-0xee8);if(NULL==para){return-(0x15b6+2627-0x1ff8);}zUfiSms_ExecSql(
+(0x374+2363-0xcaf);if(NULL==para){return-(0x3ca+5214-0x1827);}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>(0xa2b+309-0xb60)){strSQL=
+zUfiSms_GetFirstColumnInt,&count);if(count>(0x21f3+514-0x23f5)){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->
@@ -221,13 +221,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(0xf5c+2399-0x18bb);}return-(0x51a+1720-0xbd1);}int zUfiSms_GetTotalCount(
-const char*pDbTable,int*pTotalCount){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;
+return(0x17d0+707-0x1a93);}return-(0xf6b+1468-0x1526);}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=-(0x506+4985-0x187e);zUfiSms_ExecSql(
+void){int max_sms_ref=-(0xff6+4912-0x2325);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",
@@ -236,19 +236,19 @@
 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,-
-(0x12f9+3500-0x20a4),&stmt,(0x14e8+2788-0x1fcc));while(SQLITE_ROW==sqlite3_step(
-stmt)){char*column_text=NULL;memset(pac->IndStr,(0x972+3766-0x1828),sizeof(pac->
-IndStr));memset(pac->Seg_Seq,(0x166b+508-0x1867),sizeof(pac->Seg_Seq));if((
-column_text=sqlite3_column_text(stmt,(0x1377+550-0x159d)))!=NULL)strncpy(pac->
-IndStr,column_text,sizeof(pac->FormatInd)-(0x89f+5145-0x1cb7));if((column_text=
-sqlite3_column_text(stmt,(0x1dac+1662-0x2429)))!=NULL)strncpy(pac->Seg_Seq,
-column_text,sizeof(pac->FormatSeq)-(0x1429+560-0x1658));if((column_text=
-sqlite3_column_text(stmt,(0xa6+4958-0x1402)))!=NULL)strncpy(content,column_text,
-len-(0x20e2+383-0x2260));printf(
+(0x1259+3870-0x2176),&stmt,(0xfd1+3549-0x1dae));while(SQLITE_ROW==sqlite3_step(
+stmt)){char*column_text=NULL;memset(pac->IndStr,(0x198c+414-0x1b2a),sizeof(pac->
+IndStr));memset(pac->Seg_Seq,(0x372+8083-0x2305),sizeof(pac->Seg_Seq));if((
+column_text=sqlite3_column_text(stmt,(0xa23+5762-0x20a5)))!=NULL)strncpy(pac->
+IndStr,column_text,sizeof(pac->FormatInd)-(0x4e8+659-0x77a));if((column_text=
+sqlite3_column_text(stmt,(0x8a1+6953-0x23c9)))!=NULL)strncpy(pac->Seg_Seq,
+column_text,sizeof(pac->FormatSeq)-(0x242f+290-0x2550));if((column_text=
+sqlite3_column_text(stmt,(0x174c+2398-0x20a8)))!=NULL)strncpy(content,
+column_text,len-(0xa2b+2955-0x15b5));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(0x1d31+677-0x1fd6);}int zUfiSms_UpdateConcatSmsToDb(T_zUfiSms_DbStoreData
-*db_data,const char*mem_store,char*format_concat,char*content,
+return(0xab8+295-0xbdf);}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"
@@ -269,8 +269,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[(0x1065+5355-0x2550)],db_data->concat_info[
-(0x1c64+14-0x1c71)],pac->FormatSeq,concat_num,format_concat,db_data->tp_dcs,
+db_data->concat_info[(0x11da+944-0x158a)],db_data->concat_info[
+(0x1cdd+2082-0x24fe)],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.
@@ -279,23 +279,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=
-(0x9bd+5647-0x1fcc);int result=(0x15e5+2292-0x1ed9);result=zUfiSms_ExecSql(
+(0xa30+4358-0x1b36);int result=(0xd50+5501-0x22cd);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-
-(0xb73+1122-0xfd4);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap=
-(0x38c+7303-0x2013);const T_zUfiSms_SQLMap SQL_MAP[]={{(0x31f+4145-0x134f),
-ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0x15b0+1203-0x1a62),ZTE_WMS_DEL_SIM_SQL},{
-(0x1098+4243-0x212a),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0x119a+309-0x12ce),
-ZTE_WMS_CREATE_SMS_REP_SQL},{(0x1d1c+1422-0x22a9),ZTE_WMS_CREATE_PAR_SQL},{
-(0xbe0+6894-0x26cd),ZTE_WMS_CREATE_INFO_SQL},{(0xd59+3573-0x1b4d),
-ZTE_WMS_CREATE_CELL_BRO_SQL},{(0xf6a+1985-0x172a),
-ZTE_WMS_CREATE_SEND_CONTENT_SQL},};for(iMap=(0x6a3+303-0x7d2);iMap<sizeof(
-SQL_MAP)/sizeof(T_zUfiSms_SQLMap);iMap++){if(SQL_MAP[iMap].valid==
-(0xdd1+5214-0x222e)){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(
+(0xbd7+2012-0x13b2);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap=
+(0x2eb+6742-0x1d41);const T_zUfiSms_SQLMap SQL_MAP[]={{(0x878+5866-0x1f61),
+ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0x722+2756-0x11e5),ZTE_WMS_DEL_SIM_SQL},{
+(0xafd+2718-0x159a),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0xe29+584-0x1070),
+ZTE_WMS_CREATE_SMS_REP_SQL},{(0x12d5+2302-0x1bd2),ZTE_WMS_CREATE_PAR_SQL},{
+(0x531+6458-0x1e6a),ZTE_WMS_CREATE_INFO_SQL},{(0x32f+7204-0x1f52),
+ZTE_WMS_CREATE_CELL_BRO_SQL},{(0x3d1+21-0x3e5),ZTE_WMS_CREATE_SEND_CONTENT_SQL},
+};for(iMap=(0xf92+679-0x1239);iMap<sizeof(SQL_MAP)/sizeof(T_zUfiSms_SQLMap);iMap
+++){if(SQL_MAP[iMap].valid==(0x745+2427-0x10bf)){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(
@@ -324,9 +323,9 @@
 "\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[(0x496+4322-0x1578)],
-ptDbSaveData->concat_info[(0x4c7+6660-0x1eca)],ptDbSaveData->concat_info[
-(0x15+2086-0x839)],ptDbSaveData->tp_dcs,ptDbSaveData->msg_ref,pContent,"\x30",
+ptDbSaveData->concat_sms,ptDbSaveData->concat_info[(0x6b7+3485-0x1454)],
+ptDbSaveData->concat_info[(0xa5f+2924-0x15ca)],ptDbSaveData->concat_info[
+(0x350+4367-0x145d)],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->
@@ -348,25 +347,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>=(0x690+5053-0x1a4c)&&fvarg!=NULL){if(zresult[
-(0x14e7+4378-0x2601)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
-strncpy(para->buf_addr,zresult[(0x1e28+362-0x1f92)],para->buf_len-
-(0x100d+2700-0x1a98));return SQLITE_OK;}}return SQLITE_ERROR;}int 
+zresult,char**lname){if(columns>=(0x172a+2328-0x2041)&&fvarg!=NULL){if(zresult[
+(0x803+363-0x96e)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
+strncpy(para->buf_addr,zresult[(0x827+1072-0xc57)],para->buf_len-
+(0x7f6+7421-0x24f2));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={
-(0x1070+746-0x135a)};char*strSQL=NULL;if(NULL==item||NULL==item_data){return 
+(0x799+7135-0x2378)};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)||((0x18f+4574-0x136d)==strcmp(
+sqlite3_free(strSQL);if((ZTE_WMS_DB_OK!=result)||((0x911+5182-0x1d4f)==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[
-(0x904+3428-0x15e8)]={(0x26f+9012-0x25a3)};snprintf(sql,sizeof(sql),
+(0x2190+1446-0x26b6)]={(0x749+284-0x865)};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-
-(0x1787+2603-0x21b1)]);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}int 
+(0x129a+1992-0x1a61)]);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(
@@ -375,11 +374,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=(0x1880+3000-0x2438);printf(
+);return WMS_CMD_FAILED;}}else{int i=(0x51f+3926-0x1475);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=(0xd1+905-0x45a);i<g_zUfiSms_DelMsg.nv_count;i
-++){char sql[(0x50c+7756-0x22d8)]={(0x19d4+2052-0x21d8)};snprintf(sql,sizeof(sql
-),
+,g_zUfiSms_DelMsg.nv_count);for(i=(0x470+4972-0x17dc);i<g_zUfiSms_DelMsg.
+nv_count;i++){char sql[(0x576+3602-0x1308)]={(0xaa2+2146-0x1304)};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(
@@ -387,38 +386,38 @@
 ,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[(0xa0a+15-0x999)]={(0x1e38+141-0x1ec5)};
-T_zUfiSms_BufInfo buf_info={(0xd6d+1791-0x146c)};char str_index[
-(0x974+3195-0x15ed)*WMS_MESSAGE_LIST_MAX]={(0x825+7643-0x2600)};buf_info.
+ptModifyTag,int is_cc){char sql[(0xa28+355-0xb0b)]={(0x7bb+7356-0x2477)};
+T_zUfiSms_BufInfo buf_info={(0x13a7+1234-0x1879)};char str_index[
+(0x781+7323-0x241a)*WMS_MESSAGE_LIST_MAX]={(0x1bf9+1936-0x2389)};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((0xdc+1572-0x6ff)==is_cc){int i=(0xc39+5294-0x20e7);int j
-=(0x1409+3274-0x20d3);int count=(0x206+7055-0x1d95);char**out_result=NULL;count=
-zUfiSms_SplitString(str_index,&out_result,((char)(0x1550+896-0x1895)));for(i=
-(0x1143+5412-0x2667);i<count;i++){if((0x9e7+7426-0x26e9)!=strcmp(out_result[i],
+);return ZUFI_FAIL;}if((0x15e9+1348-0x1b2c)==is_cc){int i=(0x73b+2407-0x10a2);
+int j=(0x17da+2378-0x2124);int count=(0x6b7+2756-0x117b);char**out_result=NULL;
+count=zUfiSms_SplitString(str_index,&out_result,((char)(0xe75+1722-0x14f4)));for
+(i=(0x4b6+869-0x81b);i<count;i++){if((0x681+4923-0x19bc)!=strcmp(out_result[i],
 "")){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->num_of_indices
-=j;free(out_result);}else{ptModifyTag->indices[(0x697+6387-0x1f8a)]=atoi(
-str_index);ptModifyTag->num_of_indices=(0x1078+97-0x10d8);}ptModifyTag->
-total_indices=ptModifyTag->num_of_indices;printf(
+=j;free(out_result);}else{ptModifyTag->indices[(0x535+17-0x546)]=atoi(str_index)
+;ptModifyTag->num_of_indices=(0x176+7735-0x1fac);}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[(0x7bc+5864-0x1e24)]={(0x684+2192-0xf14)};int is_cc=(0x66b+4494-0x17f9)
+char sql[(0x20f7+761-0x2370)]={(0xdfa+1106-0x124c)};int is_cc=(0xc1+4337-0x11b2)
 ;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-(0x1559+3275-0x2223);}return is_cc;}int 
+,ZTE_WMS_DB_SMS_TABLE);return-(0x1353+4730-0x25cc);}return is_cc;}int 
 zUfiSms_UpdateSmsTagInDb(unsigned long id,unsigned int tags){char sql[
-(0x2526+185-0x255f)]={(0x4f9+8144-0x24c9)};snprintf(sql,sizeof(sql),
+(0x7c2+6296-0x1fda)]={(0x12b+8711-0x2332)};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[
-(0xeea+6096-0x263a)]={(0x29a+5700-0x18de)};if(pTotalCount==NULL){return 
+(0x199+6537-0x1aa2)]={(0x19f0+1083-0x1e2b)};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,
@@ -428,18 +427,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[(0x7a3+5706-0x1d6d)]={
-(0x1339+3977-0x22c2)};snprintf(sql,sizeof(sql),
+result);}int zUfiSms_DeleteDraftSms(long iSmsId){char sql[(0xd30+1955-0x1453)]={
+(0x1340+1923-0x1ac3)};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[(0x684+4447-0x1763)]={
-(0xe45+4859-0x2140)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0x1196+682-0x1440);}
+int zUfiSms_SetConcatMaxRefer(int ref){char sql[(0x1608+1911-0x1cff)]={
+(0x4e5+1400-0xa5d)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0x19f1+1846-0x2127);}
 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[(0x47a+6747-0x1e55)]={
-(0x8c0+2599-0x12e7)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x6b8+735-0x997);}snprintf
-(sql,sizeof(sql),
+;}int zUfiSms_SetMaxReference(int ref){char sql[(0x71f+1840-0xdcf)]={
+(0x4f2+5818-0x1bac)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x15f8+4168-0x2640);}
+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*
@@ -451,74 +450,75 @@
 ->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>=(0xbd+4557-0x1289)&&fvarg!=NULL){if(zresult[(0x15b8+2918-0x211e)]!=
-NULL){T_zUfiSms_ParaInfo*para=(T_zUfiSms_ParaInfo*)fvarg;strncpy(para->sca,
-zresult[(0x252+2202-0xaec)],sizeof(para->sca)-(0xbd5+6844-0x2690));para->
-mem_store=atoi(zresult[(0x1455+2192-0x1ce4)]);para->tp_validity_period=atoi(
-zresult[(0xc91+1379-0x11f2)]);para->status_report_on=atoi(zresult[
-(0x1fb+892-0x574)]);para->sendfail_retry_on=atoi(zresult[(0x494+8210-0x24a2)]);
-para->outdate_delete_on=atoi(zresult[(0x1412+3408-0x215d)]);(void)strncpy(para->
-default_store,zresult[(0x2133+85-0x2182)],sizeof(para->default_store)-
-(0x401+6092-0x1bcc));return SQLITE_OK;}}return SQLITE_ERROR;}int 
+{if(columns>=(0x1c08+2322-0x2519)&&fvarg!=NULL){if(zresult[(0x8d2+6506-0x223c)]
+!=NULL){T_zUfiSms_ParaInfo*para=(T_zUfiSms_ParaInfo*)fvarg;strncpy(para->sca,
+zresult[(0x1538+2158-0x1da6)],sizeof(para->sca)-(0xd0c+2306-0x160d));para->
+mem_store=atoi(zresult[(0x1569+852-0x18bc)]);para->tp_validity_period=atoi(
+zresult[(0x2136+846-0x2482)]);para->status_report_on=atoi(zresult[
+(0x17b+3501-0xf25)]);para->sendfail_retry_on=atoi(zresult[(0xe79+5534-0x2413)]);
+para->outdate_delete_on=atoi(zresult[(0xba1+4079-0x1b8b)]);(void)strncpy(para->
+default_store,zresult[(0x8d4+5957-0x2013)],sizeof(para->default_store)-
+(0x1305+4669-0x2541));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,
-(0x1446+1298-0x1958),sizeof(T_zUfiSms_ParaInfo));return isSucess(zUfiSms_ExecSql
-(strSQL,zUfiSms_GetFirstColumnParaInfo,&g_zUfiSms_CurSmsPara));}int 
+(0x387+5742-0x19f5),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>=(0xf08+2893-0x1a54)
-&&para!=NULL)(void)strncpy(para->buf_addr,zresult[(0x1885+2779-0x2360)],para->
-buf_len-(0x254+5046-0x1609));return(0x1b95+2113-0x23d6);}int 
-zUfiSms_GetSmsContent(char*pSmsBuf,int len){T_zUfiSms_BufInfo buf_info={
-(0xd9+298-0x203)};char*strSQL=
+T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;if(column>=(0x201+2442-0xb8a)&&
+para!=NULL)(void)strncpy(para->buf_addr,zresult[(0x22b+7265-0x1e8c)],para->
+buf_len-(0xcc6+2542-0x16b3));return(0x602+367-0x771);}int zUfiSms_GetSmsContent(
+char*pSmsBuf,int len){T_zUfiSms_BufInfo buf_info={(0xa17+236-0xb03)};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,(0x11b7+2855-0x1cde),len);return isSucess(
+len;memset(buf_info.buf_addr,(0xc49+3588-0x1a4d),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=-(0xaba+6343-0x2380);switch(
+char*sql=NULL;sqlite3_stmt*stmt=NULL;int id=-(0x35c+7513-0x20b4);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[(0x7b3+5599-0x1d92)],
-ptDbSaveData->concat_info[(0x81c+5021-0x1bb8)],pMemStore,
-WMS_TAG_TYPE_MO_SENT_V01,WMS_TAG_TYPE_MO_NOT_SENT_V01);break;}case
-(0xde8+3590-0x1bea):{sql=sqlite3_mprintf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x4ca+7996-0x2406)],
+ptDbSaveData->concat_info[(0x60+4704-0x12bf)],pMemStore,WMS_TAG_TYPE_MO_SENT_V01
+,WMS_TAG_TYPE_MO_NOT_SENT_V01);break;}case(0x2b8+8493-0x23e1):{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[(0xcac+457-0xe75)],ptDbSaveData
-->concat_info[(0x8b7+6076-0x2072)],pMemStore,(0x783+4517-0x1924));break;}case 
-WMS_TAG_TYPE_MT_READ_V01:case WMS_TAG_TYPE_MT_NOT_READ_V01:{sql=sqlite3_mprintf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x4b2+3023-0x1081)],
+ptDbSaveData->concat_info[(0x187a+3270-0x253f)],pMemStore,(0xb5c+6571-0x2503));
+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[(0xd63+1880-0x14bb)],
-ptDbSaveData->concat_info[(0x77+1959-0x81d)],pMemStore,WMS_TAG_TYPE_MT_READ_V01,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0xdc+7392-0x1dbc)],ptDbSaveData
+->concat_info[(0x583+1810-0xc94)],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[(0xd0+2439-0xa57)],ptDbSaveData
-->concat_info[(0x478+2631-0xebe)],pMemStore);at_print(LOG_ERR,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x3a5+1852-0xae1)],ptDbSaveData
+->concat_info[(0x1a5+2600-0xbcc)],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,-(0x22aa+1000-0x2691),&stmt,
-(0x14ed+4258-0x258f))!=SQLITE_OK){at_print(LOG_ERR,
+sqlite3_prepare(g_zUfiSms_DbPointer,sql,-(0x862+1442-0xe03),&stmt,
+(0xd3+7058-0x1c65))!=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-(0xd8+3778-0xf99)
-;}while(SQLITE_ROW==sqlite3_step(stmt)){int j=(0x35d+8266-0x23a7);char**
-out_result=NULL;char*column_text=sqlite3_column_text(stmt,(0x1f00+91-0x1f5b));
-int count=-(0x210d+283-0x2227);if(column_text!=NULL)count=zUfiSms_SplitString(
-column_text,&out_result,((char)(0x498+6962-0x1f8f)));for(j=(0x4+238-0xf2);j<
-count;j++){if((0xcaf+4990-0x202d)==strcmp(out_result[j],"")){if(j+
-(0x578+6683-0x1f92)==ptDbSaveData->concat_info[(0x168c+685-0x1937)]){id=
-sqlite3_column_int(stmt,(0x1f4d+1052-0x2368));break;}}}if(out_result!=NULL){free
-(out_result);out_result=NULL;}if(-(0x5c5+5798-0x1c6a)!=id){break;}}(void)
+,sqlite3_errmsg(g_zUfiSms_DbPointer));sqlite3_free(sql);return-
+(0x16d5+3699-0x2547);}while(SQLITE_ROW==sqlite3_step(stmt)){int j=
+(0x1588+4357-0x268d);char**out_result=NULL;char*column_text=sqlite3_column_text(
+stmt,(0x9bf+1080-0xdf7));int count=-(0x127a+1104-0x16c9);if(column_text!=NULL)
+count=zUfiSms_SplitString(column_text,&out_result,((char)(0x134d+1446-0x18b8)));
+for(j=(0x3a3+8552-0x250b);j<count;j++){if((0xdc7+817-0x10f8)==strcmp(out_result[
+j],"")){if(j+(0xad6+6927-0x25e4)==ptDbSaveData->concat_info[(0x1aac+147-0x1b3d)]
+){id=sqlite3_column_int(stmt,(0x79+7335-0x1d1f));break;}}}if(out_result!=NULL){
+free(out_result);out_result=NULL;}if(-(0x68c+6508-0x1ff7)!=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>=(0x1bc+7159-0x1db2)){if(zresult[
-(0x12f9+4417-0x243a)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
-result->id[result->all_or_count]=atoi(zresult[(0x127a+3234-0x1f1c)]);result->
+lname){if(fvarg!=NULL&&columns>=(0x1a0f+755-0x1d01)){if(zresult[
+(0x16e9+1001-0x1ad2)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
+result->id[result->all_or_count]=atoi(zresult[(0x23d3+447-0x2592)]);result->
 all_or_count++;return SQLITE_OK;}}return SQLITE_ERROR;}VOID 
 zUfiSms_CheckDbOutdateSms(const char*pDbTable,T_zUfiSms_DelReq*pSmsDel){char 
-acSql[(0xd52+6455-0x2609)]={(0x269+8629-0x241e)};struct timeval tp;if(
-(0x2570+388-0x26f4)!=gettimeofday(&tp,NULL)){printf(
+acSql[(0x3d8+4863-0x1657)]={(0x1a2f+1726-0x20ed)};struct timeval tp;if(
+(0x2f6+683-0x5a1)!=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"
@@ -528,21 +528,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>=(0xc6+880-0x434)){if(zresult[(0xf14+272-0x1024)
-]!=NULL&&zresult[(0x7d9+5231-0x1c47)]!=NULL){SMS_MSG_INFO*msg=(SMS_MSG_INFO*)
-fvarg;memset(msg->id,(0x49b+762-0x795),sizeof(msg->id));memset(msg->total_seq,
-(0x1c51+1836-0x237d),sizeof(msg->total_seq));strncpy(msg->id,zresult[
-(0x21e7+564-0x241b)],sizeof(msg->id)-(0x17a5+1094-0x1bea));strncpy(msg->
-total_seq,zresult[(0x1a2+5534-0x173f)],sizeof(msg->total_seq)-
-(0x11b+5382-0x1620));printf(
+**lname){if(fvarg!=NULL&&column>=(0xda4+17-0xdb3)){if(zresult[
+(0xb03+6306-0x23a5)]!=NULL&&zresult[(0x961+33-0x981)]!=NULL){SMS_MSG_INFO*msg=(
+SMS_MSG_INFO*)fvarg;memset(msg->id,(0x1f3+2688-0xc73),sizeof(msg->id));memset(
+msg->total_seq,(0x75+5068-0x1441),sizeof(msg->total_seq));strncpy(msg->id,
+zresult[(0x96d+6138-0x2167)],sizeof(msg->id)-(0x4fd+6383-0x1deb));strncpy(msg->
+total_seq,zresult[(0x1181+561-0x13b1)],sizeof(msg->total_seq)-
+(0x19d+6449-0x1acd));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[(0x1080+3751-0x1f27)],
-ptDbSaveData->concat_info[(0x1054+4264-0x20fb)]);printf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0xc9d+4278-0x1d53)],
+ptDbSaveData->concat_info[(0x159b+1111-0x19f1)]);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 e233528..a3d2bda 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 (0x11d1+2787-0x1cb1)

-#define SHORT_INT_LEN (0x1680+1880-0x1dd2)

+#define SMS_RETRY_COUNT (0x1feb+72-0x2030)

+#define SHORT_INT_LEN (0x1674+1003-0x1a59)

 SMS_LOCATION g_zUfiSms_CurLocation=SMS_LOCATION_SIM;int 
-g_zUfiSms_ConcatSmsReference=(0xe91+2934-0x1a07);T_zUfiSms_ParaInfo 
+g_zUfiSms_ConcatSmsReference=(0x1a37+434-0x1be9);T_zUfiSms_ParaInfo 
 g_zUfiSms_CurSmsPara={"",WMS_STORAGE_TYPE_UIM_V01,
-ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0x1531+2356-0x1e65),
-(0x16c2+271-0x17d1),(0x2466+116-0x24da),"\x6e\x76"};int g_zUfiSms_Language=
-NOT_DEFINE_LANGUAGE;int g_zUfiSms_Dcs=(0x1902+2928-0x2472);unsigned long 
-g_zUfiSms_StoreCapablity[ZTE_WMS_MEMORY_MAX]={(0xb05+2939-0x161c),
-ZTE_WMS_DB_MSG_COUNT_MAX};T_zSms_SendSmsReq g_zUfiSms_FinalCmgsBuf;SMS_PARAM 
-g_zUfiSms_SendingSms;UINT16 g_zUfiSms_IsLanguageShift=(0x92a+1893-0x108f);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,(0x33b+477-0x518),(0x143d+378-0x15b7),
+(0x7a9+2111-0xfe8),"\x6e\x76"};int g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;int 
+g_zUfiSms_Dcs=(0x837+2895-0x1386);unsigned long g_zUfiSms_StoreCapablity[
+ZTE_WMS_MEMORY_MAX]={(0x1072+1229-0x14db),ZTE_WMS_DB_MSG_COUNT_MAX};
+T_zSms_SendSmsReq g_zUfiSms_FinalCmgsBuf;SMS_PARAM g_zUfiSms_SendingSms;UINT16 
+g_zUfiSms_IsLanguageShift=(0xcf8+3097-0x1911);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[(0xfcf+745-0x1286)];int i=
-(0x39a+3711-0x1219);g_zUfiSms_DelMsg.nv_count=(0xd63+1463-0x131a);
-g_zUfiSms_DelMsg.nv_index=(0x1933+1591-0x1f6a);g_zUfiSms_DelMsg.sim_count=
-(0x149a+3626-0x22c4);g_zUfiSms_DelMsg.sim_index=(0x36+7679-0x1e35);for(i=
-(0x1ccd+2136-0x2525);i<ptDelMsg->all_or_count;i++){memset(acStorePos,
-(0x1be6+86-0x1c3c),sizeof(acStorePos));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
+T_zUfiSms_DelReq*ptDelMsg){char acStorePos[(0x498+684-0x712)];int i=
+(0x1bb9+2082-0x23db);g_zUfiSms_DelMsg.nv_count=(0x27b+2159-0xaea);
+g_zUfiSms_DelMsg.nv_index=(0x82d+55-0x864);g_zUfiSms_DelMsg.sim_count=
+(0x91+9716-0x2685);g_zUfiSms_DelMsg.sim_index=(0xf6+5896-0x17fe);for(i=
+(0x126b+2413-0x1bd8);i<ptDelMsg->all_or_count;i++){memset(acStorePos,
+(0xcb4+398-0xe42),sizeof(acStorePos));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
 "Mem_Store",acStorePos,sizeof(acStorePos),ptDelMsg->id[i])){return ZUFI_FAIL;}if
-((0x1fb7+325-0x20fc)==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){g_zUfiSms_DelMsg.
+((0x900+2098-0x1132)==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((0x23e9+46-0x2417)==strcmp(acStorePos
+g_zUfiSms_DelMsg.nv_index_count++;}else if((0xeeb+971-0x12b6)==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,96 +68,95 @@
 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(-
-(0xf28+4673-0x2168)==access(ZTE_WMS_DB_DIR,F_OK)){printf(
+(0x1215+4669-0x2451)==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(-(0xc32+6207-0x2470)==mkdir(ZTE_WMS_DB_DIR,
-(0x9c5+7458-0x24e8))){printf(
+,ZTE_WMS_DB_DIR);if(-(0x6af+4993-0x1a2f)==mkdir(ZTE_WMS_DB_DIR,
+(0x1151+520-0x115a))){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(-
-(0x1c23+685-0x1ecf)==access(ZTE_WMS_DB_PATH,F_OK)){printf(
+(0x395+3960-0x130c)==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=(0xa20+6120-0x2208);unsigned char mem_store_flag=
-(0x912+1895-0x1079);unsigned int tp_validity_period=(0x850+3782-0x1716);char 
-Temp_sms_vp[(0xa41+7283-0x26ac)]={(0x45+7856-0x1ef5)};CHAR reportEnable[
-(0x1c6b+856-0x1f91)]={(0x38d+7373-0x205a)};CHAR smsLocation[(0x586+4555-0x171f)]
-={(0xa65+5441-0x1fa6)};CHAR sendfailRetry[(0x512+4583-0x16c7)]={
-(0xd07+4735-0x1f86)};CHAR outdateDelete[(0x18e2+2161-0x2121)]={(0x42+672-0x2e2)}
-;CHAR defaultStore[(0x5b2+6300-0x1e1c)]={(0x72b+2867-0x125e)};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(
+unsigned char sts_flag=(0x18d+8998-0x24b3);unsigned char mem_store_flag=
+(0x6df+6461-0x201c);unsigned int tp_validity_period=(0x104b+455-0x1212);char 
+Temp_sms_vp[(0x267+8741-0x2484)]={(0x914+3759-0x17c3)};CHAR reportEnable[
+(0x666+1452-0xbe0)]={(0x19b8+2930-0x252a)};CHAR smsLocation[(0xe28+1742-0x14c4)]
+={(0x2bf+4433-0x1410)};CHAR sendfailRetry[(0x8f3+5161-0x1cea)]={
+(0xa4b+7206-0x2671)};CHAR outdateDelete[(0x81b+2261-0x10be)]={
+(0x543+8215-0x255a)};CHAR defaultStore[(0x1883+1140-0x1cc5)]={
+(0x1c87+395-0x1e12)};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((0x1a+8949-0x230f)==
-strcmp(reportEnable,"\x31")){sts_flag=(0x13e8+963-0x17aa);}g_zUfiSms_CurSmsPara.
-status_report_on=sts_flag;if((0xbd3+548-0xdf7)==strcmp(smsLocation,"\x4d\x45")){
-mem_store_flag=(0xeaf+1662-0x152d);}else{mem_store_flag=(0x1591+4270-0x263e);}
-g_zUfiSms_CurSmsPara.mem_store=(unsigned int)((0x2016+200-0x20de)==
+NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if((0xd7+3427-0xe3a)==strcmp
+(reportEnable,"\x31")){sts_flag=(0x16bb+1257-0x1ba3);}g_zUfiSms_CurSmsPara.
+status_report_on=sts_flag;if((0x6c6+2011-0xea1)==strcmp(smsLocation,"\x4d\x45"))
+{mem_store_flag=(0xc2a+1909-0x139f);}else{mem_store_flag=(0xac2+1400-0x1039);}
+g_zUfiSms_CurSmsPara.mem_store=(unsigned int)((0xe64+5877-0x2559)==
 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=
-(0x602+3995-0x149e);if((0xdf1+4513-0x1f92)==strncmp(Temp_sms_vp,
-"\x6c\x6f\x6e\x67\x65\x73\x74",(0x1d1a+948-0x20c7))){tp_validity_period=
-(0x1f7d+1789-0x257b);}if((0xb0+865-0x411)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x5f\x64\x61\x79",(0x13fc+598-0x164b))){tp_validity_period=
-(0x1ccf+533-0x1e3d);}if((0xb38+2311-0x143f)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x77\x65\x65\x6b",(0x293+7568-0x201c))){tp_validity_period=
-(0x5c2+610-0x777);}if((0x2281+1084-0x26bd)==strncmp(Temp_sms_vp,
-"\x74\x77\x65\x6c\x76\x65\x68",(0x684+3419-0x13d8))){tp_validity_period=
-(0x262a+96-0x25fb);}g_zUfiSms_CurSmsPara.tp_validity_period=tp_validity_period;
-if((0x1052+5222-0x24b8)==strcmp(sendfailRetry,"\x31")){g_zUfiSms_CurSmsPara.
-sendfail_retry_on=(0xf8f+3556-0x1d72);}else{g_zUfiSms_CurSmsPara.
-sendfail_retry_on=(0x19b9+2474-0x2363);}if((0x675+6638-0x2063)==strcmp(
-outdateDelete,"\x31")){g_zUfiSms_CurSmsPara.outdate_delete_on=(0x40+3829-0xf34);
-}else{g_zUfiSms_CurSmsPara.outdate_delete_on=(0x112b+4-0x112f);}if(
-(0x2fd+7768-0x2155)==strcmp(defaultStore,"\x73\x69\x6d")){strncpy(
+(0x759+5897-0x1d63);if((0x72f+5223-0x1b96)==strncmp(Temp_sms_vp,
+"\x6c\x6f\x6e\x67\x65\x73\x74",(0x20bb+421-0x2259))){tp_validity_period=
+(0x112c+446-0x11eb);}if((0x16af+1842-0x1de1)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x5f\x64\x61\x79",(0x13e9+2869-0x1f17))){tp_validity_period=
+(0xe44+4493-0x1f2a);}if((0x936+6787-0x23b9)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x77\x65\x65\x6b",(0x1383+24-0x1394))){tp_validity_period=
+(0x8c1+6269-0x2091);}if((0xd06+6266-0x2580)==strncmp(Temp_sms_vp,
+"\x74\x77\x65\x6c\x76\x65\x68",(0x3a7+4973-0x170d))){tp_validity_period=
+(0x404+5254-0x17fb);}g_zUfiSms_CurSmsPara.tp_validity_period=tp_validity_period;
+if((0x1c7b+560-0x1eab)==strcmp(sendfailRetry,"\x31")){g_zUfiSms_CurSmsPara.
+sendfail_retry_on=(0xb9+8558-0x2226);}else{g_zUfiSms_CurSmsPara.
+sendfail_retry_on=(0xd46+1379-0x12a9);}if((0x1ea4+1567-0x24c3)==strcmp(
+outdateDelete,"\x31")){g_zUfiSms_CurSmsPara.outdate_delete_on=(0x55b+122-0x5d4);
+}else{g_zUfiSms_CurSmsPara.outdate_delete_on=(0x1c22+1835-0x234d);}if(
+(0xa01+3740-0x189d)==strcmp(defaultStore,"\x73\x69\x6d")){strncpy(
 g_zUfiSms_CurSmsPara.default_store,"\x73\x69\x6d",sizeof(g_zUfiSms_CurSmsPara.
-default_store)-(0x1f8+5731-0x185a));}else{strncpy(g_zUfiSms_CurSmsPara.
+default_store)-(0x7f3+7052-0x237e));}else{strncpy(g_zUfiSms_CurSmsPara.
 default_store,"\x6e\x76",sizeof(g_zUfiSms_CurSmsPara.default_store)-
-(0x1f+2619-0xa59));}}void zUfiSms_GetDefaultPara(void){memset(&
-g_zUfiSms_CurSmsPara,(0xc2+2842-0xbdc),sizeof(T_zUfiSms_ParaInfo));
-g_zUfiSms_CurSmsPara.status_report_on=(0x360+4812-0x162c);g_zUfiSms_CurSmsPara.
+(0x1873+366-0x19e0));}}void zUfiSms_GetDefaultPara(void){memset(&
+g_zUfiSms_CurSmsPara,(0xcf1+5211-0x214c),sizeof(T_zUfiSms_ParaInfo));
+g_zUfiSms_CurSmsPara.status_report_on=(0x2da+7407-0x1fc9);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
-=(0x1656+4247-0x26ed);g_zUfiSms_CurSmsPara.outdate_delete_on=(0xaac+7091-0x265f)
-;strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
-g_zUfiSms_CurSmsPara.default_store)-(0xe45+5031-0x21eb));}
-#if (0xb23+2714-0x15bd)

+=(0x1d6a+670-0x2008);g_zUfiSms_CurSmsPara.outdate_delete_on=(0x60a+305-0x73b);
+strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
+g_zUfiSms_CurSmsPara.default_store)-(0xc1+3122-0xcf2));}
+#if (0x938+2817-0x1439)

 T_zUfiSms_CmdStatus zUfiSms_SetParameters(T_zUfiSms_CmdMsgBuff*ptSmsBuffer){
 T_zUfiSms_ParaInfo*ptSmsParameter=NULL;T_zUfiSms_ParaInfo tNewSmsParameter={
-(0x1579+2051-0x1d7c)};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)
-);
+(0x985+5471-0x1ee4)};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

 if((g_zUfiSms_CurSmsPara.mem_store!=ptSmsParameter->mem_store)){if(
 ZUFI_SMS_FAILURE==zUfiSms_SetCpms(ptSmsParameter)){at_print(LOG_ERR,
 "\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)!=(0x1617+2530-0x1ff9)){if(ZUFI_SMS_FAILURE==
+if(strlen(ptSmsParameter->sca)!=(0xb92+3776-0x1a52)){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=(0x47+7656-0x1e2f);if(ZUFI_SUCC!=
+int zUfiSms_LoadSmsPara(){int count=(0x1f08+1135-0x2377);if(ZUFI_SUCC!=
 zUfiSms_IsDbEmpty(ZTE_WMS_DB_PARAMETER_TABLE,&count)){return ZUFI_FAIL;}if(count
-==(0x4c8+4959-0x1827)){zUfiSms_GetDefaultCfgPara();if((0x117a+27-0x1195)!=
+==(0x860+2404-0x11c4)){zUfiSms_GetDefaultCfgPara();if((0x1f17+126-0x1f95)!=
 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((0x139b+698-0x1655)!=zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){
+();if((0x5f2+6844-0x20ae)!=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=(0xa21+39-0xa48);if((ZTE_WMS_MEMORY_SIM==mem_store)||(
+int total_count=(0x669+3173-0x12ce);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((0x1165+4910-0x2493)==strcmp(
+int zUfiSms_SetStorePara(char*mem_store){if((0x48c+4065-0x146d)==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(
-(0xea8+2305-0x17a9)==strcmp(mem_store,"\x4d\x45")){g_zUfiSms_CurSmsPara.
+(0xc51+4924-0x1f8d)==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((0x1d8c+125-0x1e09)==strcmp(mem_store,
-"\x53\x52")){g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0x1cd2+672-0x1f70);(
+NV_SMS_LOCATION_SET,"\x31");}else if((0x1345+2643-0x1d98)==strcmp(mem_store,
+"\x53\x52")){g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0x1858+3581-0x2653);(
 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,41 +187,41 @@
 "\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)-
-(0x2d6+7899-0x21b0));if(ZUFI_FAIL==zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara
-)){at_print(LOG_ERR,
+(0x1585+1380-0x1ae8));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==(0x3e0+779-0x6ea)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
-NOT_DEFINE_LANGUAGE;}else if(cDcs==(0xae1+7182-0x26ed)){g_zUfiSms_Dcs=DCS_USC;
-g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x1c48+766-0x1f43)){
-g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;}else if(cDcs==
-(0x1fc2+1246-0x249b)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
+char cDcs){if(cDcs==(0x1a58+1109-0x1eac)){g_zUfiSms_Dcs=DCS_ASC;
+g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x114+7551-0x1e91)){
+g_zUfiSms_Dcs=DCS_USC;g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==
+(0xef1+969-0x12b7)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;}
+else if(cDcs==(0xd6b+14-0xd74)){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=(0xc64+3718-0x1aea);i<ptGroupSms
-->total_receiver;i++){strncpy(ptGroupSms->receivers[i],ptSendMsg->dest_num[i],
+total_receiver=ptSendMsg->receiver_count;for(i=(0x27+5230-0x1495);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=(0xf49+5964-0x2695);
+,i,ptGroupSms->receivers[i]);}ptGroupSms->current_receiver=(0x6d9+855-0xa30);
 return ZUFI_SUCC;}int zUfiSms_FillConcatSms(T_zUfiSms_SendReq*pSendSrcMsg,
-T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0xf63+2508-0x192f);int 
-iUnitlen=(0x593+707-0x856);int iSegNo=(0x1357+3004-0x1f13);unsigned char*
+T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0x12f9+4033-0x22ba);int 
+iUnitlen=(0xfb5+120-0x102d);int iSegNo=(0x18ea+3424-0x264a);unsigned char*
 pSmsConverted=NULL;unsigned char acConvertContent[
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*(0x875+3584-0x1671)
-+(0xc6a+2318-0x1574)]={(0x972+2923-0x14dd)};unsigned char acTmpContent[
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*(0x3d2+6046-0x1b6c)
-+(0x1671+555-0x1898)]={(0x378+7622-0x213e)};int iTimeZone=(0x16bf+1681-0x1d50);
-int tmp_i=(0xee6+1582-0x1514);if(NULL==pSendSrcMsg||NULL==pDestConcatMsg){return
--(0x1424+3311-0x2112);}iTotalLen=pSendSrcMsg->msg_len;if(ZUFI_FAIL==
-zUfiSms_GetSmsContent(acTmpContent,sizeof(acTmpContent))){printf(
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*
+(0x1923+1343-0x1e5e)+(0xd96+2890-0x18dc)]={(0x614+7046-0x219a)};unsigned char 
+acTmpContent[ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*
+(0x16c+7577-0x1f01)+(0x81+6276-0x1901)]={(0x12f1+4842-0x25db)};int iTimeZone=
+(0xfba+2889-0x1b03);int tmp_i=(0x374+5061-0x1739);if(NULL==pSendSrcMsg||NULL==
+pDestConcatMsg){return-(0x1e91+1295-0x239f);}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-(0xb7a+1110-0xfcf);}printf(
+);return-(0x18da+2631-0x2320);}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,(0x453+3913-0x139c),sizeof(acTmpContent));if(
-DCS_USC==g_zUfiSms_Dcs){pSmsConverted=acConvertContent;}else{if(
+acTmpContent));memset(acTmpContent,(0x122f+1693-0x18cc),sizeof(acTmpContent));if
+(DCS_USC==g_zUfiSms_Dcs){pSmsConverted=acConvertContent;}else{if(
 NOT_DEFINE_LANGUAGE==g_zUfiSms_Language){iTotalLen=
 zUfiSms_ConvertAsciiToGsmDefault(acConvertContent,acTmpContent,pSendSrcMsg->
 msg_len);}else if(DCS_GSM7_SPANISH==g_zUfiSms_Language){iTotalLen=
@@ -231,96 +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)-(0x1356+406-0x14eb))){
-iTotalLen=sizeof(acConvertContent)-(0xa91+6031-0x221f);}pDestConcatMsg->sms_len=
-iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
-DCS_PORTUGUESE&&iTotalLen>(0x161+1249-0x5a7))||((g_zUfiSms_Dcs==DCS_USC)&&
+=acTmpContent;}if(iTotalLen>(sizeof(acConvertContent)-(0x931+1322-0xe5a))){
+iTotalLen=sizeof(acConvertContent)-(0x142c+4753-0x26bc);}pDestConcatMsg->sms_len
+=iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
+DCS_PORTUGUESE&&iTotalLen>(0x492+4179-0x144a))||((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*
-(0xb9+3086-0xcc5);}else{if(g_zUfiSms_Language==NOT_DEFINE_LANGUAGE||
+(0x6d5+759-0x9ca);}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>
-(0x57+5256-0x14df)&&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=(0x15fa+672-0x1899);memcpy(pDestConcatMsg->
-msg_contents[(0x41a+155-0x4b5)],pSmsConverted,iTotalLen);printf(
+(0x1dd7+1076-0x220b)&&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=(0x1d2b+1085-0x2167);memcpy(pDestConcatMsg->
+msg_contents[(0x4c8+4467-0x163b)],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[(0x72+2545-0xa63)]);}
+,iUnitlen,pDestConcatMsg->msg_contents[(0x8b2+5029-0x1c57)]);}
 g_zUfiSms_ConcatTotalNum=pDestConcatMsg->total_msg;pDestConcatMsg->
-current_sending=(0x7cd+1122-0xc2f);memcpy(&(pDestConcatMsg->date),&(pSendSrcMsg
+current_sending=(0x4ad+6339-0x1d70);memcpy(&(pDestConcatMsg->date),&(pSendSrcMsg
 ->date),sizeof(T_zUfiSms_Date));tmp_i=atoi(pDestConcatMsg->date.timezone);if(
-tmp_i<INT_MIN+(0x1d21+104-0x1d88)||tmp_i>INT_MAX-(0x67a+2680-0x10f1)){printf(
+tmp_i<INT_MIN+(0x6bc+3254-0x1371)||tmp_i>INT_MAX-(0x1042+1886-0x179f)){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*(0xd25+615-0xf88);memset(
-pDestConcatMsg->date.timezone,(0x163c+1439-0x1bdb),sizeof(pDestConcatMsg->date.
-timezone));if(iTimeZone>(0xb3d+1661-0x11ba)){snprintf(pDestConcatMsg->date.
+,tmp_i);return ZUFI_FAIL;}iTimeZone=tmp_i*(0x4af+4096-0x14ab);memset(
+pDestConcatMsg->date.timezone,(0xe89+2175-0x1708),sizeof(pDestConcatMsg->date.
+timezone));if(iTimeZone>(0x597+3007-0x1156)){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=
-(0x14f3+936-0x189b);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
-user_data_header_present=TRUE;if((0x4ef+1658-0xb69)==ptConcatSms->
-current_sending){g_zUfiSms_ConcatSmsReference++;(void)zUfiSms_SetConcatMaxRefer(
+(0x1d9+8417-0x22ba);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
+user_data_header_present=TRUE;if((0xa7f+984-0xe57)==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+(0x2d8+204-0x3a3);ptSubmit->user_data.
+seq_num=ptConcatSms->current_sending+(0x23e4+439-0x259a);ptSubmit->user_data.
 headers[iHeaderNum].u.concat_8.msg_ref=g_zUfiSms_ConcatSmsReference%
-(0xb96+4008-0x1a3f);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
-(0x1caa+1456-0x2259);ptDbSaveData->concat_info[(0x12cb+5130-0x26d5)]=
+(0x5c7+571-0x703);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
+(0x28f+8406-0x2364);ptDbSaveData->concat_info[(0x943+81-0x994)]=
 g_zUfiSms_ConcatSmsReference;}int zUfiSms_MakeFinalCmgsBuf(){SMS_PARAM tSmsData;
-int iPduLength=(0x68a+92-0x6e6);int nSmscLength=(0x4a8+2907-0x1003);char 
-Tempstrr[(0x206b+1589-0x269e)]={(0x23af+163-0x2452)};char Temp_sms_vp[
-(0xc64+4216-0x1cd4)]={(0x5f4+7774-0x2452)};char tmpBuf1[(0x138d+4691-0x25dd)]={
-(0x1921+3126-0x2557)};char tmpBuf2[(0x625+1079-0xa56)]={(0xd52+2407-0x16b9)};
-CHAR smsCenter[(0xba3+4872-0x1e79)]={(0x9+8341-0x209e)};memset(&tSmsData,
-(0x968+7438-0x2676),sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,
-(0x231f+64-0x235f),sizeof(T_zSms_SendSmsReq));if(CODE_GSM7==g_zUfiSms_SendingSms
-.TP_DCS){int i=(0xc1c+1523-0x120f);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(((0x1d70+1097-0x21b9)==strncmp(Tempstrr,"\x31",(0x556+2254-0xe23))
-)&&(g_zUfiSms_ConcatSms.current_sending==g_zUfiSms_ConcatSms.total_msg-
-(0xf3b+3916-0x1e86))){tSmsData.TP_SRR=(0x965+4881-0x1c75);}else{tSmsData.TP_SRR=
-(0x15+9059-0x2378);}tSmsData.TP_UDHI=g_zUfiSms_SendingSms.TP_UDHI;tSmsData.TP_VP
-=(0x146c+1380-0x18d1);sc_cfg_get(NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));if(
-(0x120+8753-0x2351)==strncmp(Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",
-(0x1b44+644-0x1dc1))){tSmsData.TP_VP=(0x131d+2425-0x1b97);}else if(
-(0x9f2+163-0xa95)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x5f\x64\x61\x79",
-(0x9fc+3456-0x1775))){tSmsData.TP_VP=(0x116b+2443-0x1a4f);}else if(
-(0x6ca+5285-0x1b6f)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x77\x65\x65\x6b",
-(0x1383+2528-0x1d5c))){tSmsData.TP_VP=(0xfa4+5632-0x24f7);}else if(
-(0x16ca+3678-0x2528)==strncmp(Temp_sms_vp,"\x74\x77\x65\x6c\x76\x65\x68",
-(0x1126+500-0x1313))){tSmsData.TP_VP=(0xe28+5012-0x212d);}tSmsData.TP_PID=
-(0x90a+3906-0x184c);
-#if (0x1386+4593-0x2576)
+int iPduLength=(0x244+259-0x347);int nSmscLength=(0x81a+6047-0x1fb9);char 
+Tempstrr[(0x6c6+1133-0xb31)]={(0x3c+586-0x286)};char Temp_sms_vp[
+(0x10a5+819-0x13d0)]={(0x2075+1536-0x2675)};char tmpBuf1[(0x218b+818-0x24ba)]={
+(0x1776+239-0x1865)};char tmpBuf2[(0xf81+4026-0x1f35)]={(0xb33+6910-0x2631)};
+CHAR smsCenter[(0x727+6852-0x21b9)]={(0x3df+3338-0x10e9)};memset(&tSmsData,
+(0x1b9d+2025-0x2386),sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,
+(0xf79+5530-0x2513),sizeof(T_zSms_SendSmsReq));if(CODE_GSM7==
+g_zUfiSms_SendingSms.TP_DCS){int i=(0x1d1+8168-0x21b9);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(((0x96+1449-0x63f)==strncmp(
+Tempstrr,"\x31",(0x1cb+4230-0x1250)))&&(g_zUfiSms_ConcatSms.current_sending==
+g_zUfiSms_ConcatSms.total_msg-(0xf0+1608-0x737))){tSmsData.TP_SRR=
+(0x139a+479-0x1578);}else{tSmsData.TP_SRR=(0x2ac+7568-0x203c);}tSmsData.TP_UDHI=
+g_zUfiSms_SendingSms.TP_UDHI;tSmsData.TP_VP=(0xc8a+5984-0x22eb);sc_cfg_get(
+NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));if((0x14ef+2539-0x1eda)==strncmp(
+Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",(0x698+5448-0x1bd9))){tSmsData.TP_VP=
+(0x137f+2880-0x1dc0);}else if((0x96a+4869-0x1c6f)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x5f\x64\x61\x79",(0x403+3125-0x1031))){tSmsData.TP_VP=
+(0x620+4002-0x151b);}else if((0x559+637-0x7d6)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x77\x65\x65\x6b",(0x2b8+2216-0xb59))){tSmsData.TP_VP=
+(0x367+8691-0x24ad);}else if((0x29b+174-0x349)==strncmp(Temp_sms_vp,
+"\x74\x77\x65\x6c\x76\x65\x68",(0x1114+3687-0x1f74))){tSmsData.TP_VP=
+(0xfb9+3069-0x1b27);}tSmsData.TP_PID=(0x29d+9060-0x2601);
+#if (0x11ff+4019-0x21b1)
 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 (0x264+5717-0x18b8)
+#if (0x195+922-0x52e)
 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,(0xd23+776-0x1029));
+(void)String2Bytes(g_zUfiSms_FinalCmgsBuf.pdu,tmpBuf1,(0x12d4+3630-0x2100));
 Bytes2String(tmpBuf1,tmpBuf2,strlen(tmpBuf1));nSmscLength=atoi(tmpBuf2);if(
-nSmscLength<(0x175+2248-0xa3d)||nSmscLength>INT_MAX-(0xdfb+794-0x1114)){at_print
-(LOG_ERR,
+nSmscLength<(0x795+1537-0xd96)||nSmscLength>INT_MAX-(0x1bb6+2101-0x23ea)){
+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=(0x1e91+567-0x20c8);;}nSmscLength++;
-g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0xfb5+5842-0x2685)-nSmscLength;
-#if (0x574+6780-0x1fef)
+,nSmscLength);nSmscLength=(0x511+987-0x8ec);;}nSmscLength++;
+g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0xfe6+4567-0x21bb)-nSmscLength;
+#if (0x1242+2445-0x1bce)
 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(
@@ -330,75 +329,74 @@
 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-(0x1918+741-0x1bfc);}ptSubmit->
+ptGroupSms||NULL==ptDbSaveData){return-(0x717+6492-0x2072);}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(((0x439+3078-0x103e)<ptConcatSms->
-total_msg)&&(ptConcatSms->current_sending+(0x5d7+3159-0x122d)<ptConcatSms->
-total_msg)){ptSubmit->status_report_enabled=(0x29c+3381-0xfd1);}ptSubmit->
+g_zUfiSms_CurSmsPara.status_report_on;if(((0x1f32+1735-0x25f8)<ptConcatSms->
+total_msg)&&(ptConcatSms->current_sending+(0xba4+3049-0x178c)<ptConcatSms->
+total_msg)){ptSubmit->status_report_enabled=(0x3d0+2228-0xc84);}ptSubmit->
 message_reference=g_zUfiSms_MsgRefer;ptSubmit->pid=WMS_PID_DEFAULT;ptSubmit->dcs
-.msg_class=(wms_message_class_e_type)(0x8d3+4028-0x188b);ptSubmit->dcs.
-is_compressed=(0x3c7+39-0x3ee);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)(0x4a2+4583-0x1685);ptSubmit->dcs.
+is_compressed=(0x10f0+5431-0x2627);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=
-(0x96f+6043-0x210a);if(ptConcatSms->total_msg>(0x4a0+5068-0x186b)){
+(0x2f2+9051-0x264d);if(ptConcatSms->total_msg>(0x1348+2117-0x1b8c)){
 zUfiSms_FillDateheader(ptSubmit,ptConcatSms,ptDbSaveData);ptDbSaveData->
-concat_info[(0x1deb+830-0x2127)]=ptConcatSms->current_sending+
-(0xe56+5846-0x252b);ptDbSaveData->concat_info[(0xc06+4891-0x1f20)]=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
-.num_headers].u.nat_lang_ss.nat_lang_id=WMS_UDH_NAT_LANG_PORTUGUESE;ptSubmit->
-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][(0xd3f+3666-0x1b91)]==((char)(0xd7a+1072-0x117f)))
-{(void)zUfiSms_CharToInt(ptGroupSms->receivers[ptGroupSms->current_receiver]+
-(0xd6a+6292-0x25fd),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])-
-(0xea+861-0x446),ptSubmit->address.digits);ptSubmit->address.number_type=
+concat_info[(0x124a+2797-0x1d35)]=ptConcatSms->current_sending+(0x375+796-0x690)
+;ptDbSaveData->concat_info[(0x1232+4063-0x2210)]=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.num_headers
+].u.nat_lang_ss.nat_lang_id=WMS_UDH_NAT_LANG_PORTUGUESE;ptSubmit->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][(0x4b0+2438-0xe36)]==((char)(0xd85+42-0xd84))){(void)
+zUfiSms_CharToInt(ptGroupSms->receivers[ptGroupSms->current_receiver]+
+(0x1707+3491-0x24a9),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])
+-(0x24+6395-0x191e),ptSubmit->address.digits);ptSubmit->address.number_type=
 WMS_NUMBER_INTERNATIONAL;ptSubmit->address.number_of_digits=strlen(ptGroupSms->
-receivers[ptGroupSms->current_receiver])-(0x2b7+1085-0x6f3);}else if(ptGroupSms
-->receivers[ptGroupSms->current_receiver][(0x23a+3149-0xe87)]==
-((char)(0x9cf+3989-0x1934))&&ptGroupSms->receivers[ptGroupSms->current_receiver]
-[(0x1892+3294-0x256f)]==((char)(0x12b9+4609-0x248a))){(void)zUfiSms_CharToInt(
-ptGroupSms->receivers[ptGroupSms->current_receiver]+(0xb6c+1299-0x107d),strlen(
-ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x156+3727-0xfe3),ptSubmit
-->address.digits);ptSubmit->address.number_type=WMS_NUMBER_INTERNATIONAL;
-ptSubmit->address.number_of_digits=strlen(ptGroupSms->receivers[ptGroupSms->
-current_receiver])-(0xb53+3531-0x191c);}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)(0xd4d+3473-0x1ade);ptSubmit->address.
-number_mode=(wms_number_mode_e_type)(0x935+4352-0x1a35);ptSubmit->address.
-number_plan=WMS_NUMBER_PLAN_TELEPHONY;memset(&g_zUfiSms_SendingSms,
-(0x1e26+1744-0x24f6),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{
+receivers[ptGroupSms->current_receiver])-(0x881+6332-0x213c);}else if(ptGroupSms
+->receivers[ptGroupSms->current_receiver][(0x19fb+481-0x1bdc)]==
+((char)(0x22f+1784-0x8f7))&&ptGroupSms->receivers[ptGroupSms->current_receiver][
+(0x661+3208-0x12e8)]==((char)(0x9d4+4376-0x1abc))){(void)zUfiSms_CharToInt(
+ptGroupSms->receivers[ptGroupSms->current_receiver]+(0xa62+2235-0x131b),strlen(
+ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x15e5+999-0x19ca),
+ptSubmit->address.digits);ptSubmit->address.number_type=WMS_NUMBER_INTERNATIONAL
+;ptSubmit->address.number_of_digits=strlen(ptGroupSms->receivers[ptGroupSms->
+current_receiver])-(0x5a1+1140-0xa13);}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)(0x15f1+131-0x1674);ptSubmit->address.number_mode=(
+wms_number_mode_e_type)(0xc95+4499-0x1e28);ptSubmit->address.number_plan=
+WMS_NUMBER_PLAN_TELEPHONY;memset(&g_zUfiSms_SendingSms,(0x2ac+8432-0x239c),
+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]={
-(0x1944+1176-0x1ddc)};int i=(0x212+50-0x244);if(NULL==ptClientMsg){return;}
+(0x150d+2346-0x1e37)};int i=(0x16e7+2784-0x21c7);if(NULL==ptClientMsg){return;}
 memcpy((void*)sca,(void*)(g_zUfiSms_CurSmsPara.sca),sizeof(g_zUfiSms_CurSmsPara.
-sca));if(sca[(0x4a0+6748-0x1efc)]==((char)(0x118+3829-0xfe2))){ptClientMsg->u.
+sca));if(sca[(0xb19+6334-0x23d7)]==((char)(0x12cc+43-0x12cc))){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[(0x4d5+5654-0x1aeb)]==
-((char)(0x184c+255-0x1920))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits--;for(i=(0xac7+3466-0x1851);i<ptClientMsg->u.gw_message.
-sc_address.number_of_digits;i++){sca[i]=sca[i+(0xf82+5924-0x26a5)];}}else if(sca
-[(0x1bc+54-0x1f2)]==((char)(0xf21+6013-0x266e))&&sca[(0x3da+8764-0x2615)]==
-((char)(0x58f+2445-0xeec))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits-=(0x911+6516-0x2283);for(i=(0x1e4+1112-0x63c);i<ptClientMsg->u.
-gw_message.sc_address.number_of_digits;i++){sca[i]=sca[i+(0x1bdf+844-0x1f29)];}}
-(void)zUfiSms_CharToInt(sca,ptClientMsg->u.gw_message.sc_address.
+sc_address.number_of_digits=strlen(sca);if(sca[(0xbc+4215-0x1133)]==
+((char)(0x1a64+1484-0x2005))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits--;for(i=(0x1862+3334-0x2568);i<ptClientMsg->u.gw_message.
+sc_address.number_of_digits;i++){sca[i]=sca[i+(0xf69+785-0x1279)];}}else if(sca[
+(0x1b49+1517-0x2136)]==((char)(0xaef+1028-0xec3))&&sca[(0x653+220-0x72e)]==
+((char)(0x1ef4+502-0x20ba))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits-=(0x18fc+2922-0x2464);for(i=(0xe2c+3846-0x1d32);i<ptClientMsg->
+u.gw_message.sc_address.number_of_digits;i++){sca[i]=sca[i+(0x6b4+1365-0xc07)];}
+}(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 +406,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,
-(0x17d9+1508-0x1dbd),ZTE_WMS_ADDRESS_LEN_MAX+(0x136+7990-0x206b));memcpy(
+(0xfdc+4493-0x2169),ZTE_WMS_ADDRESS_LEN_MAX+(0xcf2+2534-0x16d7));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,(0x671+6654-0x206f),sizeof(ptDbSaveData->sms_content));if(
+sms_content,(0x667+7667-0x245a),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 +422,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,(0x2c5+1543-0x8cc),sizeof(
+is_broadcast=FALSE;memset((void*)&tClientTsData,(0x11c0+4071-0x21a7),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,94 +431,95 @@
 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=(0x1c5f+1529-0x2258);pContent=(char
-*)malloc((0x117b+2033-0x1968)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent
-==NULL){return ZUFI_FAIL;}memset(pContent,(0xff+5615-0x16ee),(0xfff+4825-0x22d4)
+ZUFI_SUCC;char*pContent=NULL;int iTotalCount=(0x15ec+2292-0x1ee0);pContent=(char
+*)malloc((0x18a4+3122-0x24d2)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent
+==NULL){return ZUFI_FAIL;}memset(pContent,(0x15d4+1479-0x1b9b),(0xec+2730-0xb92)
 *ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(WMS_GW_ALPHABET_7_BIT_DEFAULT==
-ptDbSaveData->alphabet){static char data[(0xc30+299-0xd57)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x12ea+1421-0x1876)]={(0x1b3a+2299-0x2435)};
-memset(data,(0x4d0+1614-0xb1e),(0xa49+4968-0x1dad)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0xf88+5628-0x2583));(void)zUfiSms_DecodeContent
-((char*)ptDbSaveData->sms_content,strlen(ptDbSaveData->sms_content),FALSE,data);
-strncpy(pContent,data,(0x18b3+446-0x1a6d)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-
-(0x561+4896-0x1880));}else{strncpy(pContent,ptDbSaveData->sms_content,
-(0x1f59+619-0x21c0)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0xa37+6108-0x2212));}
-ptDbSaveData->tp_dcs=(unsigned char)(0xc8b+5880-0x2381);if(-(0x12cb+619-0x1535)
-==iSmsId){if(ZUFI_FAIL==zUfiSms_GetTotalCount(pMemStore,&iTotalCount)){free(
-pContent);pContent=NULL;return ZUFI_FAIL;}printf(
+ptDbSaveData->alphabet){static char data[(0x126d+2483-0x1c1c)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x953+3574-0x1748)]={(0x941+7081-0x24ea)};
+memset(data,(0xc2a+6673-0x263b),(0x546+8333-0x25cf)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x15f2+1801-0x1cfa));(void)
+zUfiSms_DecodeContent((char*)ptDbSaveData->sms_content,strlen(ptDbSaveData->
+sms_content),FALSE,data);strncpy(pContent,data,(0x1501+1614-0x1b4b)*
+ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0xd01+5173-0x2135));}else{strncpy(
+pContent,ptDbSaveData->sms_content,(0x1b2d+2429-0x24a6)*
+ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0xed1+5946-0x260a));}ptDbSaveData->tp_dcs
+=(unsigned char)(0x152a+4176-0x2578);if(-(0x1c9b+2519-0x2671)==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-(0x1b3+204-0x27e);}if(ZUFI_FAIL==zUfiSms_InsertNormalSmsToDb(
+;return-(0x439+986-0x812);}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=(0x167+6630-0x1b4d);for(i=(0x666+310-0x79c);i<count;i++){if(
-ptDbSaveData->concat_info[(0x1680+1043-0x1a91)]==i+(0x476+5529-0x1a0e)){free(
-out_result[i]);out_result[i]=NULL;break;}}return(0x172a+1917-0x1ea7);}int 
+out_result){int i=(0xaa6+4591-0x1c95);for(i=(0x335+2706-0xdc7);i<count;i++){if(
+ptDbSaveData->concat_info[(0xdf3+1600-0x1431)]==i+(0xc30+1742-0x12fd)){free(
+out_result[i]);out_result[i]=NULL;break;}}return(0x1153+2279-0x1a3a);}int 
 zUfiSms_AddNewSmsToConcatData(T_zUfiSms_DbStoreData*ptDbSaveData,char*
 pOldContent,char*pFormatNewContent,char*pRealNewContent,T_zUfiSms_DbStoreStr*pac
-,int*pConcatTotalNum,int len){int count=(0x182a+1703-0x1ed1);char**out_result=
-NULL;char cSegChar=((char)(0x1923+73-0x1931));int i=(0x1166+2264-0x1a3e);int 
-iTotalSegNum=(0xbea+3410-0x193c);char acContentSeg[(0xcf6+1229-0x11c1)*
-ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX*ZTE_WMS_SMS_COUNT_MAX]={(0x291+3-0x294)};
+,int*pConcatTotalNum,int len){int count=(0x745+3859-0x1658);char**out_result=
+NULL;char cSegChar=((char)(0x1a64+837-0x1d6e));int i=(0x50+982-0x426);int 
+iTotalSegNum=(0xa54+2465-0x13f5);char acContentSeg[(0xba8+940-0xf52)*
+ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX*ZTE_WMS_SMS_COUNT_MAX]={(0x290+24-0x2a8)};
 char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==pOldContent){return-
-(0xeea+1344-0x1429);}count=zUfiSms_SplitString(pOldContent,&out_result,cSegChar)
-;for(i=(0x408+8339-0x249b);i<count;i++){if(ptDbSaveData->concat_info[
-(0x165+9112-0x24fb)]==i+(0x348+7352-0x1fff)){out_result[i]=(char*)malloc(sizeof(
-ptDbSaveData->sms_content));memset(out_result[i],(0x2030+505-0x2229),sizeof(
+(0x285+4534-0x143a);}count=zUfiSms_SplitString(pOldContent,&out_result,cSegChar)
+;for(i=(0x14f7+833-0x1838);i<count;i++){if(ptDbSaveData->concat_info[
+(0x3cf+8162-0x23af)]==i+(0x15f+2741-0xc13)){out_result[i]=(char*)malloc(sizeof(
+ptDbSaveData->sms_content));memset(out_result[i],(0x16ad+2455-0x2044),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)-(0x10fc+1910-0x1871)
-);}break;}}for(i=(0x166+8791-0x23bd);i<count;i++){snprintf(acContentSeg+strlen(
+ptDbSaveData->sms_content,sizeof(ptDbSaveData->sms_content)-(0xd53+2696-0x17da))
+;}break;}}for(i=(0x5ab+5041-0x195c);i<count;i++){snprintf(acContentSeg+strlen(
 acContentSeg),sizeof(acContentSeg)-strlen(acContentSeg),"\x25\x73",out_result[i]
-);strcat(pFormatNewContent,out_result[i]);if(i!=count-(0x1990+1688-0x2027)){
-strcat(pFormatNewContent,"\x3b");}}strncpy(pRealNewContent,acContentSeg,len);
+);strcat(pFormatNewContent,out_result[i]);if(i!=count-(0x3ab+1007-0x799)){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=(0x18d0+3138-0x2512);i<count;i++){if(ptDbSaveData->concat_info[
-(0xf6d+518-0x1171)]==i+(0x2239+775-0x253f)){out_result[i]=(char*)malloc(
-SHORT_INT_LEN);memset(out_result[i],(0x107f+5682-0x26b1),SHORT_INT_LEN);snprintf
-(out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->index);break;}}for(i=
-(0xa95+1070-0xec3);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd),
+i=(0xee9+4845-0x21d6);i<count;i++){if(ptDbSaveData->concat_info[
+(0x197c+361-0x1ae3)]==i+(0xea1+5331-0x2373)){out_result[i]=(char*)malloc(
+SHORT_INT_LEN);memset(out_result[i],(0x551+7402-0x223b),SHORT_INT_LEN);snprintf(
+out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->index);break;}}for(i=
+(0x606+6182-0x1e2c);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd),
 sizeof(pac->FormatInd)-strlen(pac->FormatInd),"\x25\x73",out_result[i]);if(i!=
-count-(0x447+8036-0x23aa)){snprintf(pac->FormatInd+strlen(pac->FormatInd),sizeof
-(pac->FormatInd)-strlen(pac->FormatInd),"\x3b");}}zUfiSms_ConcatDataFree(
+count-(0xc5a+737-0xf3a)){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=(0xeff+2287-0x17ee)
-;i<count;i++){if(ptDbSaveData->concat_info[(0x22cf+785-0x25de)]==i+
-(0x81b+4042-0x17e4)){out_result[i]=(char*)malloc(SHORT_INT_LEN);memset(
-out_result[i],(0x1dac+328-0x1ef4),SHORT_INT_LEN);snprintf(out_result[i],
-SHORT_INT_LEN,"\x25\x64",ptDbSaveData->concat_info[(0x63a+7158-0x222e)]);break;}
-}for(i=(0x744+7216-0x2374);i<count;i++){snprintf(pac->FormatSeq+strlen(pac->
+zUfiSms_SplitString(pac->Seg_Seq,&out_result,cSegChar);for(i=(0x17e8+744-0x1ad0)
+;i<count;i++){if(ptDbSaveData->concat_info[(0x14dc+2228-0x1d8e)]==i+
+(0x450+8700-0x264b)){out_result[i]=(char*)malloc(SHORT_INT_LEN);memset(
+out_result[i],(0x472+5942-0x1ba8),SHORT_INT_LEN);snprintf(out_result[i],
+SHORT_INT_LEN,"\x25\x64",ptDbSaveData->concat_info[(0xa70+302-0xb9c)]);break;}}
+for(i=(0xaa8+5959-0x21ef);i<count;i++){snprintf(pac->FormatSeq+strlen(pac->
 FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x25\x73",out_result[i
-]);if(i!=count-(0x1070+3187-0x1ce2)){snprintf(pac->FormatSeq+strlen(pac->
+]);if(i!=count-(0x1a1b+3223-0x26b1)){snprintf(pac->FormatSeq+strlen(pac->
 FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x3b");}if(
-(0x229+8886-0x24df)!=strcmp(out_result[i],"")){iTotalSegNum++;}}*pConcatTotalNum
-=iTotalSegNum;zUfiSms_ConcatDataFree(ptDbSaveData,count,out_result);free(
-out_result);out_result=NULL;return(0xb56+2749-0x1613);}int 
+(0x544+1901-0xcb1)!=strcmp(out_result[i],"")){iTotalSegNum++;}}*pConcatTotalNum=
+iTotalSegNum;zUfiSms_ConcatDataFree(ptDbSaveData,count,out_result);free(
+out_result);out_result=NULL;return(0x175f+1484-0x1d2b);}int 
 zUfiSms_UpdateConcatSms(T_zUfiSms_DbStoreData*ptDbSaveData,const char*pStorePos,
-long iSmsId){T_zUfiSms_DbStoreStr ac={(0x21a+6547-0x1bad)};char*pOldContent=NULL
-;char*pFormatNewContent=NULL;char*pRealNewContent=NULL;int iTotalNum=
-(0x29c+8738-0x24be);int result=ZUFI_SUCC;int spaceLen=(0xf51+5956-0x2691)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x65+3664-0xeb1);
+long iSmsId){T_zUfiSms_DbStoreStr ac={(0x1f6f+1831-0x2696)};char*pOldContent=
+NULL;char*pFormatNewContent=NULL;char*pRealNewContent=NULL;int iTotalNum=
+(0x12f3+799-0x1612);int result=ZUFI_SUCC;int spaceLen=(0x984+922-0xd1a)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x5dc+1557-0xbed);
 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,(0x64b+1074-0xa7d),
-spaceLen);memset(pOldContent,(0x24c+8083-0x21df),spaceLen);memset(
-pFormatNewContent,(0x967+7303-0x25ee),spaceLen);(void)zUfiSms_GetConcatInfo(
+pRealNewContent);return ZUFI_FAIL;}memset(pRealNewContent,(0x5c5+5883-0x1cc0),
+spaceLen);memset(pOldContent,(0x1d9d+543-0x1fbc),spaceLen);memset(
+pFormatNewContent,(0xc90+5248-0x2110),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(-(0xeb4+1221-0x1378)==
+,ac.IndStr,ac.Seg_Seq,ac.FormatInd,ac.FormatSeq);if(-(0x12e7+4368-0x23f6)==
 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=
-(0x16aa+2639-0x20f7);if(ZUFI_FAIL==zUfiSms_UpdateConcatSmsToDb(ptDbSaveData,
+(0x7a1+4005-0x1744);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"
@@ -529,34 +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={(0x940+4086-0x1936)};int 
-iSms_TotalCount=(0x1dd4+1077-0x2209);int i=(0x11df+3809-0x20c0);char 
-acTmpContent[(0x85a+5151-0x1b79)];int iConcatNum=(0x34b+2928-0xebb);char*
-pFormatConcat=NULL;char*pContent=NULL;int spaceLen=(0xec4+69-0xf05)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+
-(0x14d3+2874-0x2009);if(NULL==ptDbSaveData||NULL==pStorePos){return ZUFI_FAIL;}
-printf(
+const char*pStorePos){T_zUfiSms_DbStoreStr ac={(0xef5+3978-0x1e7f)};int 
+iSms_TotalCount=(0x6d+3097-0xc86);int i=(0x1cd0+763-0x1fcb);char acTmpContent[
+(0xc3d+2281-0x1426)];int iConcatNum=(0x602+6812-0x209e);char*pFormatConcat=NULL;
+char*pContent=NULL;int spaceLen=(0xa51+676-0xcf1)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x1c3+333-0x30c);
+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,(0x1351+4122-0x236b),sizeof(acTmpContent));iSms_TotalCount
-=ptDbSaveData->concat_info[(0x11e9+1582-0x1816)];for(i=(0xc2f+1338-0x1168);i<
+);memset(acTmpContent,(0x1210+4133-0x2235),sizeof(acTmpContent));iSms_TotalCount
+=ptDbSaveData->concat_info[(0x14d3+1656-0x1b4a)];for(i=(0x1160+305-0x1290);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,(0x18c0+40-0x18e8),
+pFormatConcat){return ZUFI_FAIL;}memset(pFormatConcat,(0x133d+2306-0x1c3f),
 spaceLen);pContent=(char*)malloc(spaceLen);if(pContent==NULL){free(pFormatConcat
-);return ZUFI_FAIL;}memset(pContent,(0x1b0+3922-0x1102),spaceLen);if(-
-(0xa10+6021-0x2194)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
+);return ZUFI_FAIL;}memset(pContent,(0xdf7+943-0x11a6),spaceLen);if(-
+(0x3c4+3428-0x1127)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
 pFormatConcat,pContent,&ac,&iConcatNum,spaceLen)){free(pFormatConcat);free(
 pContent);pFormatConcat=NULL;pContent=NULL;return ZUFI_FAIL;}ptDbSaveData->
-tp_dcs=(0x1642+1740-0x1d0c);if(ZUFI_FAIL==zUfiSms_InsertConcatSmsToDb(
+tp_dcs=(0x3b9+6118-0x1b9d);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=(0x8b5+2799-0x13a4);int total_count=
-(0x658+4236-0x16e4);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
+ptDbSaveData,char*pMemStore){long iSmsId=(0x932+1220-0xdf6);int total_count=
+(0x279+1950-0xa17);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
 iSmsId=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,pMemStore);if(-
-(0x43c+6310-0x1ce1)!=iSmsId){printf(
+(0xa84+7202-0x26a5)!=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,207 +566,205 @@
 "\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[(0x2365+643-0x25de)];int iTotalCount=
-(0x89b+1663-0xf1a);int id=(0xc73+1068-0x109f);UINT8 needCheckMemory=
-(0x694+8119-0x264a);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(acDbMemStore
-,(0x10f7+4533-0x22ac),sizeof(acDbMemStore));if(WMS_STORAGE_TYPE_UIM_V01==
-iMemStore){strncpy(acDbMemStore,ZTE_WMS_DB_SIM_TABLE,sizeof(acDbMemStore)-
-(0x1768+744-0x1a4f));}else{strncpy(acDbMemStore,ZTE_WMS_DB_NV_TABLE,sizeof(
-acDbMemStore)-(0x63b+6026-0x1dc4));}if((0x1113+5039-0x24c1)==ptDbSaveData->
+iMemStore,long iSmsId){char acDbMemStore[(0x33a+8780-0x257c)];int iTotalCount=
+(0xc01+5026-0x1fa3);int id=(0x8a6+6027-0x2031);UINT8 needCheckMemory=
+(0x57+6864-0x1b26);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(acDbMemStore,
+(0xc81+1755-0x135c),sizeof(acDbMemStore));if(WMS_STORAGE_TYPE_UIM_V01==iMemStore
+){strncpy(acDbMemStore,ZTE_WMS_DB_SIM_TABLE,sizeof(acDbMemStore)-
+(0xbcf+5010-0x1f60));}else{strncpy(acDbMemStore,ZTE_WMS_DB_NV_TABLE,sizeof(
+acDbMemStore)-(0x1022+5728-0x2681));}if((0x113d+4115-0x214f)==ptDbSaveData->
 concat_sms){id=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,&acDbMemStore);if(-
-(0x364+2154-0xbcd)!=id){needCheckMemory=(0x10e1+5027-0x2484);}}if(
-needCheckMemory==(0x1b59+630-0x1dce)){if(ZUFI_FAIL==zUfiSms_GetTotalCount(
-acDbMemStore,&iTotalCount)){return ZUFI_FAIL;}printf(
+(0xc2+9251-0x24e4)!=id){needCheckMemory=(0xd6+404-0x26a);}}if(needCheckMemory==
+(0x4e7+3700-0x135a)){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[
-(0xb76+5294-0x2022)]==(0x6ea+5813-0x1d9f)||ptDbSaveData->concat_info[
-(0x4d3+6995-0x2024)]>ptDbSaveData->concat_info[(0x16a4+3168-0x2303)]){
-ptDbSaveData->concat_sms=(0x23c6+91-0x2421);}printf(
+(0xf8f+4093-0x1f8a)]==(0x10f4+2462-0x1a92)||ptDbSaveData->concat_info[
+(0x214+3214-0xea0)]>ptDbSaveData->concat_info[(0x2bf+3737-0x1157)]){ptDbSaveData
+->concat_sms=(0x12b0+3237-0x1f55);}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[
-(0x1030+4712-0x2297)]);if((0x1418+479-0x15f6)==ptDbSaveData->concat_sms){if(
-ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0x1628+3332-0x232b)]){
+(0x1134+93-0x1190)]);if((0x834+1001-0xc1c)==ptDbSaveData->concat_sms){if(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0x207+7575-0x1f9d)]){
 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=(0x610+195-0x6d3);if(NULL==ptDbSaveData){return 
-WMS_CMD_FAILED;}if(!g_zUfiSms_IsConcatSendSuc){ptDbSaveData->tag=
+ptDbSaveData,int cid){int atRes=(0xd9d+5644-0x23a9);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,-(0xe77+2743-0x192d))){g_zUfiSms_MsgRefer++;ptDbSaveData
-->msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}
-}else{CHAR sendfailRetry[(0xada+113-0xb19)]={(0x693+2279-0xf7a)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x4ed+5942-0x1c23)==
-strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0xdfc+2940-0x1975);}
+WMS_STORAGE_TYPE_NV_V01,-(0x829+289-0x949))){g_zUfiSms_MsgRefer++;ptDbSaveData->
+msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}}
+else{CHAR sendfailRetry[(0xa4b+4547-0x1bdc)]={(0xad0+1050-0xeea)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0xa3+1362-0x5f5)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x428+3555-0x1208);}
 atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{
 zSms_RecvCmgsOk();}}return WMS_CMD_SUCCESS;}int zUfiSms_SendConcatSms(int cid){
-int atRes=(0xd2f+6327-0x25e6);T_zUfiSms_ClientMsg tClientMsg;
+int atRes=(0x1db0+913-0x2141);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,(0x25f+1218-0x721),sizeof(T_zUfiSms_ClientMsg));memset((void*)&
-tDbSaveData,(0x841+219-0x91c),sizeof(tDbSaveData));zUfiSms_SetPduData(&
+&tClientMsg,(0x1525+766-0x1823),sizeof(T_zUfiSms_ClientMsg));memset((void*)&
+tDbSaveData,(0x1c2f+2509-0x25fc),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,-(0x1ccc+218-0x1da5));g_zUfiSms_SendFailedCount++;}else{
-CHAR sendfailRetry[(0x15aa+1934-0x1d06)]={(0x14b+3031-0xd22)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x719+228-0x7fd)==
-strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x1710+1378-0x1c6f);}
+WMS_STORAGE_TYPE_NV_V01,-(0x4b+1328-0x57a));g_zUfiSms_SendFailedCount++;}else{
+CHAR sendfailRetry[(0x676+1676-0xcd0)]={(0x5f6+3936-0x1556)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x969+5433-0x1ea2)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x198d+2534-0x2370);}
 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+(0x196+1922-0x917))){
+g_zUfiSms_UnitLen*(g_zUfiSms_ConcatSms.current_sending+(0x93a+4360-0x1a41))){
 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,(0x14eb+583-0x1732),sizeof(
+tSendStatus;memset((void*)&tSendStatus,(0xa50+1371-0xfab),sizeof(
 T_zUfiSms_StatusInfo));tSendStatus.err_code=ZTE_SMS_CMS_NONE;tSendStatus.
 send_failed_count=g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=
-(0x1082+3695-0x1ef1);tSendStatus.cmd_status=WMS_CMD_FAILED;tSendStatus.cmd=
+(0x13f5+1475-0x19b8);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=(0xadb+1493-0x10b0);int i=
-(0x1238+3078-0x1e3e);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR 
-sendfailRetry[(0x6b6+1108-0xad8)]={(0xfa+1689-0x793)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x14a0+3400-0x21e8)==
-strcmp("\x31",sendfailRetry)){for(i=(0x7e5+7761-0x2636);i<SMS_RETRY_COUNT;i++){
+return result;}int zSvr_sendCmgs(VOID){int atRes=(0x14cb+1385-0x1a34);int i=
+(0x1ed2+510-0x20d0);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR 
+sendfailRetry[(0xf73+3370-0x1c6b)]={(0x1674+2959-0x2203)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x726+7459-0x2449)==
+strcmp("\x31",sendfailRetry)){for(i=(0xa52+5030-0x1df8);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=(0x1df+6999-0x1d36);if(-
-(0x111+6688-0x1b30)==g_zUfiSms_UnitLen){printf(
+T_zUfiSms_DbStoreData tDbSaveData;int res=(0x22ec+246-0x23e2);if(-
+(0x19d5+1068-0x1e00)==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,(0xc11+5637-0x2216),
-sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x10bd+752-0x13ad),
+g_zUfiSms_ConcatSms.total_msg){memset((void*)&tClientMsg,(0xc65+658-0xef7),
+sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x94d+2294-0x1243),
 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,-(0xc69+3815-0x1b4f));
-g_zUfiSms_SendFailedCount++;}else{res=zSvr_sendCmgs();if(res!=ZSMS_RESULT_OK){
+zUfiSms_WriteSmsToDb(&tDbSaveData,WMS_STORAGE_TYPE_NV_V01,-(0x1340+4625-0x2550))
+;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+(0xd97+3316-0x1a8a))){g_zUfiSms_UnitLen=g_zUfiSms_ConcatSms.
+current_sending+(0xba9+5752-0x2220))){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,(0x71a+3209-0x13a3),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
+tSendStatus,(0x5e8+1206-0xa9e),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
 err_code=ZTE_SMS_CMS_NONE;tSendStatus.send_failed_count=
-g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0x1767+2409-0x20d0);
+g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0x310+4364-0x141c);
 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 (0x119d+3502-0x1f4b)	

-if(g_zUfiSms_ConcatSms.total_msg>(0xb50+2406-0x14b5)){printf(
+#if (0x542+4442-0x169c)	

+if(g_zUfiSms_ConcatSms.total_msg>(0x1260+2559-0x1c5e)){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,(0x253+6550-0x1be9)
-,sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x950+3844-0x1854),
-sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&tDbSaveData);printf(
+);zUfiSms_SendConcatSms(cid);}else{memset((void*)&tClientMsg,(0xa46+463-0xc15),
+sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x65+2810-0xb5f),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(
 "\x21\x21\x21\x21\x21\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x4f\x75\x74\x53\x6d\x73\x20\x46\x61\x69\x6c\x2e" "\n"
 );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[(0x1b4+6198-0x19e5)]={
-(0xfc1+2460-0x195d)};int tmp_i=(0x884+2063-0x1093);memset(ptTimestamp,
-(0x857+949-0xc0c),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
-(0xe6c+1257-0x1354)){ptTimestamp->year=zUfiSms_atohex(
-((char)(0x257f+386-0x26d1)))*(0x6f4+3377-0x1415)+zUfiSms_atohex(tData.year[
-(0x1dc2+2225-0x2673)]);}else if(strlen(tData.year)==(0x2f6+1846-0xa2a)){
-ptTimestamp->year=zUfiSms_atohex(tData.year[(0xc93+3682-0x1af5)])*
-(0x362+4959-0x16b1)+zUfiSms_atohex(tData.year[(0x426+2262-0xcfb)]);}else if(
-strlen(tData.year)==(0xcad+4665-0x1ee2)){ptTimestamp->year=zUfiSms_atohex(tData.
-year[(0x45b+5661-0x1a76)])*(0xb40+4187-0x1b8b)+zUfiSms_atohex(tData.year[
-(0x8b8+2768-0x1385)]);}else{printf(
-"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x79\x65\x61\x72\x2e");return ZUFI_FAIL;}if(
-strlen(tData.month)==(0x22bb+981-0x268f)){ptTimestamp->month=zUfiSms_atohex(
-((char)(0x1c39+2665-0x2672)))*(0xf16+1289-0x140f)+zUfiSms_atohex(tData.month[
-(0x1a1+493-0x38e)]);}else if(strlen(tData.month)==(0x1a3a+1862-0x217e)){
-ptTimestamp->month=zUfiSms_atohex(tData.month[(0x2387+239-0x2476)])*
-(0x2028+400-0x21a8)+zUfiSms_atohex(tData.month[(0xbc4+3469-0x1950)]);}else{
+T_zUfiSms_TimeStamp*ptTimestamp){unsigned char tTimeZone[(0x16eb+1720-0x1d9e)]={
+(0x2ad+2415-0xc1c)};int tmp_i=(0xc34+3786-0x1afe);memset(ptTimestamp,
+(0x1654+3014-0x221a),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
+(0xee5+820-0x1218)){ptTimestamp->year=zUfiSms_atohex(((char)(0x141+3959-0x1088))
+)*(0xae2+6232-0x232a)+zUfiSms_atohex(tData.year[(0x1bb2+278-0x1cc8)]);}else if(
+strlen(tData.year)==(0xdc9+1358-0x1315)){ptTimestamp->year=zUfiSms_atohex(tData.
+year[(0x22b+409-0x3c4)])*(0x53a+8057-0x24a3)+zUfiSms_atohex(tData.year[
+(0x4d+2282-0x936)]);}else if(strlen(tData.year)==(0x14f4+115-0x1563)){
+ptTimestamp->year=zUfiSms_atohex(tData.year[(0xa49+5596-0x2023)])*
+(0x166+6986-0x1ca0)+zUfiSms_atohex(tData.year[(0xbd9+2192-0x1466)]);}else{printf
+("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x79\x65\x61\x72\x2e");return ZUFI_FAIL;}if(
+strlen(tData.month)==(0x149+1922-0x8ca)){ptTimestamp->month=zUfiSms_atohex(
+((char)(0x5e3+4019-0x1566)))*(0x4eb+1129-0x944)+zUfiSms_atohex(tData.month[
+(0xab3+2598-0x14d9)]);}else if(strlen(tData.month)==(0xd11+3234-0x19b1)){
+ptTimestamp->month=zUfiSms_atohex(tData.month[(0x362+1988-0xb26)])*
+(0x249+5244-0x16b5)+zUfiSms_atohex(tData.month[(0x1376+4016-0x2325)]);}else{
 printf("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.day)
-==(0x3fa+8351-0x2498)){ptTimestamp->day=zUfiSms_atohex(((char)(0xe69+153-0xed2))
-)*(0x7b0+5371-0x1c9b)+zUfiSms_atohex(tData.day[(0x561+6673-0x1f72)]);}else if(
-strlen(tData.day)==(0x818+3875-0x1739)){ptTimestamp->day=zUfiSms_atohex(tData.
-day[(0xc0+4411-0x11fb)])*(0x813+1323-0xd2e)+zUfiSms_atohex(tData.day[
-(0x733+2509-0x10ff)]);}else{printf(
+==(0x746+5389-0x1c52)){ptTimestamp->day=zUfiSms_atohex(
+((char)(0x17ff+342-0x1925)))*(0x3d1+8811-0x262c)+zUfiSms_atohex(tData.day[
+(0x4f8+3567-0x12e7)]);}else if(strlen(tData.day)==(0x325+8304-0x2393)){
+ptTimestamp->day=zUfiSms_atohex(tData.day[(0x8d5+3423-0x1634)])*
+(0x47d+6971-0x1fa8)+zUfiSms_atohex(tData.day[(0xe5f+1028-0x1262)]);}else{printf(
 "\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.hour)==
-(0x583+8345-0x261b)){ptTimestamp->hour=zUfiSms_atohex(
-((char)(0x1048+361-0x1181)))*(0x1498+357-0x15ed)+zUfiSms_atohex(tData.hour[
-(0x105c+678-0x1302)]);}else if(strlen(tData.hour)==(0x13f5+1707-0x1a9e)){
-ptTimestamp->hour=zUfiSms_atohex(tData.hour[(0xef2+3196-0x1b6e)])*
-(0x1244+4608-0x2434)+zUfiSms_atohex(tData.hour[(0xcc8+2903-0x181e)]);}else{
+(0x1430+217-0x1508)){ptTimestamp->hour=zUfiSms_atohex(
+((char)(0x1e0b+1153-0x225c)))*(0x34d+4407-0x1474)+zUfiSms_atohex(tData.hour[
+(0x55f+4986-0x18d9)]);}else if(strlen(tData.hour)==(0x46b+7934-0x2367)){
+ptTimestamp->hour=zUfiSms_atohex(tData.hour[(0x409+480-0x5e9)])*
+(0xf7b+3940-0x1ecf)+zUfiSms_atohex(tData.hour[(0x12fd+3366-0x2022)]);}else{
 printf("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x68\x6f\x75\x72\x2e");}if(strlen(tData.
-min)==(0x213f+190-0x21fc)){ptTimestamp->minute=zUfiSms_atohex(
-((char)(0x64c+5008-0x19ac)))*(0xc92+3216-0x1912)+zUfiSms_atohex(tData.min[
-(0x108+7927-0x1fff)]);}else if(strlen(tData.min)==(0x782+8004-0x26c4)){
-ptTimestamp->minute=zUfiSms_atohex(tData.min[(0x1da2+86-0x1df8)])*
-(0x9c7+247-0xaae)+zUfiSms_atohex(tData.min[(0x47f+7192-0x2096)]);}else{printf(
-"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x6d\x69\x6e\x75\x74\x65\x2e");}if(strlen(tData
-.sec)==(0x1225+2456-0x1bbc)){ptTimestamp->second=zUfiSms_atohex(
-((char)(0x256+1257-0x70f)))*(0x893+5387-0x1d8e)+zUfiSms_atohex(tData.sec[
-(0x96c+5068-0x1d38)]);}else if(strlen(tData.sec)==(0x2a4+133-0x327)){ptTimestamp
-->second=zUfiSms_atohex(tData.sec[(0x181a+3389-0x2557)])*(0x1637+970-0x19f1)+
-zUfiSms_atohex(tData.sec[(0x92d+5316-0x1df0)]);}else{printf(
+min)==(0x1c1c+154-0x1cb5)){ptTimestamp->minute=zUfiSms_atohex(
+((char)(0x15fd+2969-0x2166)))*(0x1c19+1345-0x214a)+zUfiSms_atohex(tData.min[
+(0x2a4+1553-0x8b5)]);}else if(strlen(tData.min)==(0xce3+5254-0x2167)){
+ptTimestamp->minute=zUfiSms_atohex(tData.min[(0x11c5+3205-0x1e4a)])*
+(0x1057+1777-0x1738)+zUfiSms_atohex(tData.min[(0x567+6887-0x204d)]);}else{printf
+("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x6d\x69\x6e\x75\x74\x65\x2e");}if(strlen(
+tData.sec)==(0xce0+5462-0x2235)){ptTimestamp->second=zUfiSms_atohex(
+((char)(0x3a6+8857-0x260f)))*(0xe5+9193-0x24be)+zUfiSms_atohex(tData.sec[
+(0x56b+5353-0x1a54)]);}else if(strlen(tData.sec)==(0x3a7+5521-0x1936)){
+ptTimestamp->second=zUfiSms_atohex(tData.sec[(0xa10+3639-0x1847)])*
+(0xcb6+863-0x1005)+zUfiSms_atohex(tData.sec[(0xd95+5760-0x2414)]);}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+(0xeca+3824-0x1db9)||tmp_i>INT_MAX-
-(0x966+515-0xb68)){printf(
+tData.timezone);if(tmp_i<INT_MIN+(0x190+8252-0x21cb)||tmp_i>INT_MAX-
+(0x2001+1197-0x24ad)){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,(0x308+3750-0x11ae),sizeof(tTimeZone)
-);snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0x9ac+3566-0x1796));if(
-tData.timezone[(0x318+5742-0x1986)]==((char)(0x43c+866-0x771))){if(strlen(
-tTimeZone)==(0xba4+836-0xee6)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0xb35+5164-0x1f31)))*(0x128a+239-0x1369)+zUfiSms_atohex(tTimeZone[
-(0x1beb+1846-0x2320)]);}else if(strlen(tTimeZone)==(0x339+3733-0x11cb)){
-ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x259+6825-0x1d01)])*
-(0x1725+1194-0x1bc5)+zUfiSms_atohex(tTimeZone[(0xcfc+3714-0x1b7c)]);}else{printf
-("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2d\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}
-ptTimestamp->timezone=(0x1f28+1324-0x2454)-ptTimestamp->timezone;}else{if(strlen
-(tTimeZone)==(0x717+3198-0x1394)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0xc20+4443-0x1d4b)))*(0x16cd+163-0x1760)+zUfiSms_atohex(tTimeZone[
-(0x1cd6+639-0x1f55)]);}else if(strlen(tTimeZone)==(0x982+4804-0x1c44)){
-ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x35f+6151-0x1b66)])*
-(0x19bc+1738-0x207c)+zUfiSms_atohex(tTimeZone[(0x1382+3065-0x1f7a)]);}else{
-printf(
+,tmp_i);return ZUFI_FAIL;}memset(tTimeZone,(0x6b+9611-0x25f6),sizeof(tTimeZone))
+;snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0x1f6b+1745-0x2638));if(
+tData.timezone[(0x175c+2354-0x208e)]==((char)(0x8c4+7056-0x2427))){if(strlen(
+tTimeZone)==(0x695+7635-0x2466)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0x1b9+3474-0xf1b)))*(0x30d+6588-0x1cb9)+zUfiSms_atohex(tTimeZone[
+(0x590+3677-0x13ec)]);}else if(strlen(tTimeZone)==(0x7b7+2680-0x122c)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x12f5+2766-0x1dc2)])*
+(0x304+5787-0x1995)+zUfiSms_atohex(tTimeZone[(0x5c0+508-0x7ba)]);}else{printf(
+"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2d\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}
+ptTimestamp->timezone=(0x16a4+1104-0x1af4)-ptTimestamp->timezone;}else{if(strlen
+(tTimeZone)==(0x82f+7030-0x23a4)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0xa42+6544-0x23a2)))*(0x42f+5993-0x1b88)+zUfiSms_atohex(tTimeZone[
+(0xc4f+2314-0x1559)]);}else if(strlen(tTimeZone)==(0x131d+1222-0x17e1)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x48d+8018-0x23df)])*
+(0x728+5348-0x1c02)+zUfiSms_atohex(tTimeZone[(0x3f+9466-0x2538)]);}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=(0x7c7+3167-0x1426);deliver->user_data_header_present=TRUE;if(
-(0x266+3705-0x10df)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference++
+UINT16 msg_ref=(0x942+4964-0x1ca6);deliver->user_data_header_present=TRUE;if(
+(0xad9+4603-0x1cd4)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference++
 ;(void)zUfiSms_SetConcatMaxRefer(g_zUfiSms_ConcatSmsReference);}deliver->
-user_data_header_present=TRUE;deliver->user_data.num_headers=(0xc54+2649-0x16ac)
-;deliver->user_data.headers[(0x59f+4692-0x17f3)].header_id=WMS_UDH_CONCAT_8;
-deliver->user_data.headers[(0x572+8604-0x270e)].u.concat_8.msg_ref=msg_ref;
-deliver->user_data.headers[(0x180b+2992-0x23bb)].u.concat_8.total_sm=concat_sms
-->total_msg;deliver->user_data.headers[(0x2188+637-0x2405)].u.concat_8.seq_num=
-concat_sms->current_sending+(0x8c4+5669-0x1ee8);ptDbSaveData->concat_sms=
-(0x412+410-0x5ab);ptDbSaveData->concat_info[(0x3c9+8198-0x23cf)]=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=
-g_zUfiSms_CurSmsPara.status_report_on;ptDeliver->pid=WMS_PID_DEFAULT;ptDeliver->
-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>
-(0x8c4+3311-0x15b2)){zUfiSms_FillDeliver(ptDeliver,concat_sms,ptDbSaveData);
-ptDbSaveData->concat_sms=(0x524+7082-0x20cd);ptDbSaveData->concat_info[
-(0x467+4793-0x171e)]=concat_sms->current_sending+(0x445+3012-0x1008);
-ptDbSaveData->concat_info[(0x110d+3466-0x1e96)]=concat_sms->total_msg;
-ptDbSaveData->concat_info[(0xdf0+954-0x11aa)]=ptDeliver->user_data.headers[
-(0x6ca+6217-0x1f13)].u.concat_8.msg_ref;}else{ptDeliver->
+user_data_header_present=TRUE;deliver->user_data.num_headers=
+(0x212a+1387-0x2694);deliver->user_data.headers[(0x40a+6251-0x1c75)].header_id=
+WMS_UDH_CONCAT_8;deliver->user_data.headers[(0x37c+5825-0x1a3d)].u.concat_8.
+msg_ref=msg_ref;deliver->user_data.headers[(0x13ad+4857-0x26a6)].u.concat_8.
+total_sm=concat_sms->total_msg;deliver->user_data.headers[(0xd9+5216-0x1539)].u.
+concat_8.seq_num=concat_sms->current_sending+(0x956+4790-0x1c0b);ptDbSaveData->
+concat_sms=(0x22a5+787-0x25b7);ptDbSaveData->concat_info[(0x757+3143-0x139e)]=
+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=g_zUfiSms_CurSmsPara.status_report_on;ptDeliver->pid=
+WMS_PID_DEFAULT;ptDeliver->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>(0x1a+5220-0x147d)){zUfiSms_FillDeliver(ptDeliver,
+concat_sms,ptDbSaveData);ptDbSaveData->concat_sms=(0x1f53+391-0x20d9);
+ptDbSaveData->concat_info[(0x14b7+3358-0x21d3)]=concat_sms->current_sending+
+(0x9e6+7334-0x268b);ptDbSaveData->concat_info[(0x13a5+3428-0x2108)]=concat_sms->
+total_msg;ptDbSaveData->concat_info[(0x13aa+4886-0x26c0)]=ptDeliver->user_data.
+headers[(0xa6b+2402-0x13cd)].u.concat_8.msg_ref;}else{ptDeliver->
 user_data_header_present=FALSE;ptDeliver->user_data.num_headers=
-(0xb30+3863-0x1a47);}ptDeliver->user_data.sm_len=iSmsLen;memcpy(ptDeliver->
+(0xcea+2213-0x158f);}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][(0x11e7+3889-0x2118)]==
-((char)(0x11e3+48-0x11e8))){(void)zUfiSms_CharToInt(group_sms->receivers[
-group_sms->current_receiver]+(0x987+3694-0x17f4),strlen(group_sms->receivers[
-group_sms->current_receiver])-(0x7d3+1759-0xeb1),ptDeliver->address.digits);
+;if(group_sms->receivers[group_sms->current_receiver][(0x715+6773-0x218a)]==
+((char)(0xf5c+3087-0x1b40))){(void)zUfiSms_CharToInt(group_sms->receivers[
+group_sms->current_receiver]+(0xb53+1830-0x1278),strlen(group_sms->receivers[
+group_sms->current_receiver])-(0x46b+7236-0x20ae),ptDeliver->address.digits);
 ptDeliver->address.number_type=WMS_NUMBER_INTERNATIONAL;ptDeliver->address.
 number_of_digits=(UINT8)strlen(group_sms->receivers[group_sms->current_receiver]
-)-(0xd38+2304-0x1637);}else{(void)zUfiSms_CharToInt(group_sms->receivers[
+)-(0xcfc+6662-0x2701);}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->
@@ -781,7 +777,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,-
-(0x34d+1255-0x833))){at_print(LOG_ERR,
+(0x537+2676-0xfaa))){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(
@@ -797,19 +793,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=
-(0x1cd1+1780-0x23c5);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
-(0xa95+2854-0x15ba)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
-current_sending=(0x148b+2197-0x1d20);ptConcatSms->current_sending<ptConcatSms->
+(0xc93+5514-0x221d);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
+(0x251+6543-0x1bdf)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
+current_sending=(0x917+7394-0x25f9);ptConcatSms->current_sending<ptConcatSms->
 total_msg;ptConcatSms->current_sending++){memset((void*)&tClientMsg,
-(0x954+701-0xc11),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
-(0x1755+595-0x19a8),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
-(0x13ad+3474-0x213f),sizeof(T_zUfiSms_DbStoreData));tClientMsg.msg_hdr.mem_store
-=(ptSaveSms->mem_store==WMS_STORAGE_TYPE_UIM_V01)?WMS_STORAGE_TYPE_UIM_V01:
+(0xfb9+5925-0x26de),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
+(0x10a6+1087-0x14e5),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
+(0xa44+7318-0x26da),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
-(0x8f2+2983-0x1495):{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)
+(0x6ba+2144-0xf16):{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;(
@@ -821,42 +817,41 @@
 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)-
-(0xd2b+494-0xf18));if(TRUE==g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){result=
+(0x496+5725-0x1af2));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==(0x305+654-0x592)){result=
+);}else{if(tDbSaveData.concat_sms==(0x1341+618-0x15aa)){result=
 zUfiSms_SaveConcatSms(ptSaveSms,ptConcatSms,ptGroupSms,&tDbSaveData,iSmsLength);
-current_sending=ptConcatSms->current_sending+(0x405+3386-0x113e);if(ptConcatSms
-->sms_len<iSmsLength*(current_sending+(0x1a1+1953-0x941))){iSmsLength=
-ptConcatSms->sms_len-iSmsLength*current_sending;}}else{result=
-zUfiSms_SaveNormalSms(ptSaveSms,&tDbSaveData);}}}return result;}int 
-zUfiSms_DeleteSmsInSim(){char str_index[(0x86+8881-0x22b7)]={(0x890+4513-0x1a31)
-};int index=(0x19fa+2151-0x2261);int is_cc=(0x629+28-0x645);int iSmsId=
-(0x1869+3344-0x2579);T_zUfiSms_ModifyTag tDeleteInfo={(0x2114+903-0x249b)};char 
-StrValue[(0x16c3+3788-0x2585)]={(0x14f2+4473-0x266b)};memset(&tDeleteInfo,
-(0x1989+1580-0x1fb5),sizeof(T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_DelMsg.sim_id
-[g_zUfiSms_DelMsg.sim_index];if(-(0x46c+32-0x48b)==(is_cc=zUfiSms_IsConcatSms(
-iSmsId))){printf(
+current_sending=ptConcatSms->current_sending+(0xf0d+800-0x122c);if(ptConcatSms->
+sms_len<iSmsLength*(current_sending+(0x90+1814-0x7a5))){iSmsLength=ptConcatSms->
+sms_len-iSmsLength*current_sending;}}else{result=zUfiSms_SaveNormalSms(ptSaveSms
+,&tDbSaveData);}}}return result;}int zUfiSms_DeleteSmsInSim(){char str_index[
+(0x8c8+7493-0x258d)]={(0x1d92+340-0x1ee6)};int index=(0xca3+4291-0x1d66);int 
+is_cc=(0x1c8f+1923-0x2412);int iSmsId=(0x106f+398-0x11fd);T_zUfiSms_ModifyTag 
+tDeleteInfo={(0x16e8+532-0x18fc)};char StrValue[(0x1671+1226-0x1b31)]={
+(0x334+1596-0x970)};memset(&tDeleteInfo,(0x861+3253-0x1516),sizeof(
+T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_DelMsg.sim_id[g_zUfiSms_DelMsg.sim_index]
+;if(-(0xf01+5072-0x22d0)==(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((0x6d8+4244-0x176b)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(
+,is_cc,iSmsId);if((0xe1a+4923-0x2154)==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>
-(0x6a0+4583-0x1887)){index=tDeleteInfo.indices[tDeleteInfo.id_index];
+(0x40b+2084-0xc2f)){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,
-(0x709+4613-0x190e),sizeof(str_index));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
+(0x1711+207-0x17e0),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=(0x1f21+1960-0x26c9);
-char StrValue[(0x10a8+2067-0x18b1)]={(0x46+1011-0x439)};zUfiSms_SetSmsLocation(
-SMS_LOCATION_SIM);memset(&g_deleteIndex,(0x266+5093-0x164b),sizeof(
+T_zUfiSms_CmdStatus zUfiSms_DeleteSimSms(VOID){int atRes=(0xef1+4870-0x21f7);
+char StrValue[(0x255+1762-0x92d)]={(0x1c6d+1859-0x23b0)};zUfiSms_SetSmsLocation(
+SMS_LOCATION_SIM);memset(&g_deleteIndex,(0xd82+711-0x1049),sizeof(
 T_zUfiSms_DelIndexInfo));while(g_zUfiSms_DelMsg.sim_index_count>
-(0x550+6351-0x1e1f)){if(ZUFI_FAIL==zUfiSms_DeleteSmsInSim()){printf(
+(0x408+6874-0x1ee2)){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.
@@ -865,69 +860,68 @@
 "\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,(0xa65+7009-0x25c4));if(tmp==(0x2554+80-0x25a4)){
-pdu_tmp+=(0xaa6+6069-0x2259);}else{tmp=(tmp+(0x4bf+7236-0x2102))*
-(0x4e4+5053-0x189f);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
-(0x18fc+3179-0x2565));first_octet=tmp;if(first_octet&(0x1645+66-0x1685)){*stat=
-(0x58f+314-0x6c4);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
-T_zUfiSms_TpduType iTpduType;UINT8 mti=(0x136f+2187-0x1bfa);mti=(
-T_zUfiSms_TpduType)(pData[(0x659+6408-0x1f61)]&(0x9cd+793-0xce3));switch(mti){
-case(0x869+7266-0x24cb):iTpduType=WMS_TPDU_DELIVER;break;case(0x4dd+7970-0x23fe)
-:iTpduType=WMS_TPDU_SUBMIT;break;case(0x916+5223-0x1d7b):iTpduType=
+String2Bytes(pdu_tmp,&tmp,(0x170+5506-0x16f0));if(tmp==(0x2b3+4737-0x1534)){
+pdu_tmp+=(0xe9f+2410-0x1807);}else{tmp=(tmp+(0x171c+2622-0x2159))*
+(0x12bc+2163-0x1b2d);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
+(0x12c+1099-0x575));first_octet=tmp;if(first_octet&(0x2267+336-0x23b5)){*stat=
+(0x52d+7967-0x2447);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
+T_zUfiSms_TpduType iTpduType;UINT8 mti=(0x4f1+7941-0x23f6);mti=(
+T_zUfiSms_TpduType)(pData[(0xaa3+1106-0xef5)]&(0x1e5d+352-0x1fba));switch(mti){
+case(0x1017+1785-0x1710):iTpduType=WMS_TPDU_DELIVER;break;case(0x70+2532-0xa53):
+iTpduType=WMS_TPDU_SUBMIT;break;case(0x188b+2407-0x21f0):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=(0x13+6312-0x18bb);memset(pNumber,
-(0x1d99+2318-0x26a7),ZTE_WMS_ADDRESS_LEN_MAX+(0x722+7496-0x2469));if(tAddress.
-number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0xc02+3997-0x1b9f)]=
-((char)(0x1807+3498-0x2586));pNumber++;}if(tAddress.digit_mode!=
+unsigned char*pNumber){UINT8 number_type=(0x1e03+100-0x1e67);memset(pNumber,
+(0x9fb+412-0xb97),ZTE_WMS_ADDRESS_LEN_MAX+(0x4e9+2295-0xddf));if(tAddress.
+number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x99b+2314-0x12a5)]=
+((char)(0x1477+3859-0x235f));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[(0x1bc5+1465-0x217e)]));}}byte*zUfiSms_UtilTimeStamp(
+sizeof(tAddress.digits[(0xf25+598-0x117b)]));}}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)(0x135+1013-0x508));tmp=zte_wms_time.
-year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x889+6805-0x230f))+((tmp>>
-(0x88+986-0x45e))*(0x22b+1499-0x7fc)),res_ptr);zUfiSms_SprintfTime(date->year,
-sizeof(date->year),zte_wms_time.year);*res_ptr++=((char)(0x560+1849-0xc6a));tmp=
-zte_wms_time.month;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x1a1d+586-0x1c58))+((
-tmp>>(0x10bd+1943-0x1850))*(0x179b+2106-0x1fcb)),res_ptr);zUfiSms_SprintfTime(
+NULL==date){return NULL;}*res_ptr++=((char)(0x1adb+313-0x1bf2));tmp=zte_wms_time
+.year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x6da+5696-0x1d0b))+((tmp>>
+(0xa33+185-0xae8))*(0x88f+826-0xbbf)),res_ptr);zUfiSms_SprintfTime(date->year,
+sizeof(date->year),zte_wms_time.year);*res_ptr++=((char)(0x20d+9312-0x263e));tmp
+=zte_wms_time.month;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x338+5902-0x1a37))+(
+(tmp>>(0x6dc+2631-0x111f))*(0xb95+2436-0x150f)),res_ptr);zUfiSms_SprintfTime(
 date->month,sizeof(date->month),zte_wms_time.month);*res_ptr++=
-((char)(0x707+3479-0x146f));tmp=zte_wms_time.day;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0x1370+2377-0x1caa))+((tmp>>(0x245d+118-0x24cf))*
-(0xa84+896-0xdfa)),res_ptr);zUfiSms_SprintfTime(date->day,sizeof(date->day),
-zte_wms_time.day);*res_ptr++=((char)(0xa8d+6417-0x2372));tmp=zte_wms_time.hour;
-res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x131a+5099-0x26f6))+((tmp>>
-(0x15eb+3240-0x228f))*(0x2d9+6890-0x1db9)),res_ptr);zUfiSms_SprintfTime(date->
-hour,sizeof(date->hour),zte_wms_time.hour);*res_ptr++=((char)(0x918+1714-0xf90))
-;tmp=zte_wms_time.minute;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&
-(0x139+2940-0xca6))+((tmp>>(0x5f6+2707-0x1085))*(0x7f8+6313-0x2097)),res_ptr);
-zUfiSms_SprintfTime(date->min,sizeof(date->min),zte_wms_time.minute);*res_ptr++=
-((char)(0xc03+4872-0x1ed1));tmp=zte_wms_time.second;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0xd1a+6404-0x260f))+((tmp>>(0x1721+3681-0x257e))*
-(0x14b8+2541-0x1e9b)),res_ptr);zUfiSms_SprintfTime(date->sec,sizeof(date->sec),
-zte_wms_time.second);if(zte_wms_time.timezone<(0xb58+2249-0x1421)){*res_ptr++=
-((char)(0x103c+371-0x1182));tmp=(UINT8)(zte_wms_time.timezone*(-
-(0x32f+9025-0x266f)));snprintf(date->timezone,sizeof(date->timezone),
-"\x2d\x25\x64",-(0x10f5+5018-0x248e)*zte_wms_time.timezone);}else{*res_ptr++=
-((char)(0x10d1+1460-0x165a));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)(0x188a+167-0x190f));
-return res_ptr;}T_zUfiSms_CmdStatus zUfiSms_HandleReport(unsigned char*ptPduData
-){T_zUfiSms_RawTsData tRawTsData;T_zUfiSms_ClientTsData tClientTsData;int 
-iReportStatus=(0x1432+4378-0x254c);unsigned char acDeliverNumber[
-ZTE_WMS_ADDRESS_LEN_MAX+(0x5bd+7660-0x23a8)];unsigned char tTpScts[
-ZTE_WMS_TP_SCTS_LEN_MAX+(0xbc8+5153-0x1fe8)];T_zUfiSms_Date tSmsDate;char 
-acRecFlag[(0x1b5+6917-0x1cb5)]={(0x34f+4100-0x1353)};int iRpCount=
-(0x1652+246-0x1748);char tmp[(0x605+8454-0x2701)];int tmp_i=(0xf7c+4617-0x2185);
-unsigned int pos=(0x10ab+4900-0x23cf);if(NULL==ptPduData){return WMS_CMD_FAILED;
-}memset(acDeliverNumber,(0x6bb+3904-0x15fb),sizeof(acDeliverNumber));memset(&
-tSmsDate,(0x1057+4268-0x2103),sizeof(T_zUfiSms_Date));memset(tTpScts,
-(0x1ee5+1953-0x2686),sizeof(tTpScts));memset(&tRawTsData,(0x9d9+6654-0x23d7),
-sizeof(T_zUfiSms_RawTsData));memset(&tClientTsData,(0x17d+4280-0x1235),sizeof(
+((char)(0x4b3+303-0x5b3));tmp=zte_wms_time.day;res_ptr=zUfiSms_SmsiUtilitoaFill(
+(tmp&(0x1069+843-0x13a5))+((tmp>>(0x1cfa+1143-0x216d))*(0x1be3+44-0x1c05)),
+res_ptr);zUfiSms_SprintfTime(date->day,sizeof(date->day),zte_wms_time.day);*
+res_ptr++=((char)(0xcdb+1948-0x144b));tmp=zte_wms_time.hour;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0x441+2599-0xe59))+((tmp>>(0xc75+3975-0x1bf8))*
+(0x116+1695-0x7ab)),res_ptr);zUfiSms_SprintfTime(date->hour,sizeof(date->hour),
+zte_wms_time.hour);*res_ptr++=((char)(0x7ff+6176-0x1fe5));tmp=zte_wms_time.
+minute;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x421+8512-0x2552))+((tmp>>
+(0x98f+3584-0x178b))*(0x4d0+7481-0x21ff)),res_ptr);zUfiSms_SprintfTime(date->min
+,sizeof(date->min),zte_wms_time.minute);*res_ptr++=((char)(0x1791+1316-0x1c7b));
+tmp=zte_wms_time.second;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&
+(0x1a26+1116-0x1e73))+((tmp>>(0x10ea+1256-0x15ce))*(0x5ab+7781-0x2406)),res_ptr)
+;zUfiSms_SprintfTime(date->sec,sizeof(date->sec),zte_wms_time.second);if(
+zte_wms_time.timezone<(0x1faf+1462-0x2565)){*res_ptr++=((char)(0x41b+479-0x5cd))
+;tmp=(UINT8)(zte_wms_time.timezone*(-(0xbc+1968-0x86b)));snprintf(date->timezone
+,sizeof(date->timezone),"\x2d\x25\x64",-(0x1ba6+806-0x1ecb)*zte_wms_time.
+timezone);}else{*res_ptr++=((char)(0x2cc+2751-0xd60));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)(0x10b1+214-0x1165));return res_ptr;}T_zUfiSms_CmdStatus 
+zUfiSms_HandleReport(unsigned char*ptPduData){T_zUfiSms_RawTsData tRawTsData;
+T_zUfiSms_ClientTsData tClientTsData;int iReportStatus=(0xbbb+1835-0x12e6);
+unsigned char acDeliverNumber[ZTE_WMS_ADDRESS_LEN_MAX+(0x26c+1057-0x68c)];
+unsigned char tTpScts[ZTE_WMS_TP_SCTS_LEN_MAX+(0xaf4+386-0xc75)];T_zUfiSms_Date 
+tSmsDate;char acRecFlag[(0x60b+2407-0xf6d)]={(0xbb9+5513-0x2142)};int iRpCount=
+(0x9f1+4962-0x1d53);char tmp[(0x90c+1414-0xe88)];int tmp_i=(0x816+7613-0x25d3);
+unsigned int pos=(0x730+4037-0x16f5);if(NULL==ptPduData){return WMS_CMD_FAILED;}
+memset(acDeliverNumber,(0x1367+4158-0x23a5),sizeof(acDeliverNumber));memset(&
+tSmsDate,(0x188c+2639-0x22db),sizeof(T_zUfiSms_Date));memset(tTpScts,
+(0xae9+4774-0x1d8f),sizeof(tTpScts));memset(&tRawTsData,(0x1829+87-0x1880),
+sizeof(T_zUfiSms_RawTsData));memset(&tClientTsData,(0x1f31+806-0x2257),sizeof(
 T_zUfiSms_ClientTsData));snprintf(tmp,sizeof(tmp),"\x25\x58",ptPduData[
-(0xb1a+3317-0x180f)]);tmp_i=atoi(tmp);if(tmp_i<(0x16fc+745-0x19e5)||tmp_i>
-INT_MAX-(0xf8f+4918-0x22c4)){at_print(LOG_ERR,
+(0x36d+5956-0x1ab1)]);tmp_i=atoi(tmp);if(tmp_i<(0x1b9+6838-0x1c6f)||tmp_i>
+INT_MAX-(0x1654+950-0x1a09)){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+(0x3e8+6453-0x1d1c);if(pos>=
+,tmp_i);return WMS_CMD_FAILED;}pos=tmp_i+(0xd54+2772-0x1827);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(&
@@ -936,59 +930,59 @@
 "\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=(0x150d+1331-0x1a3f);break;}case 
+case WMS_TP_STATUS_REPLACED:{iReportStatus=(0x1582+510-0x177f);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=(0x660+908-0x9e9);break;}default:{iReportStatus=(0xd81+497-0xf70);
-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)){
+iReportStatus=(0x434+7447-0x2148);break;}default:{iReportStatus=
+(0x1780+3524-0x2542);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,(0xc2c+244-0xd20),sizeof(acRecFlag));
-sc_cfg_get(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag,sizeof(acRecFlag));iRpCount=
-atoi(acRecFlag);if(iRpCount<(0xc45+3209-0x18ce)||iRpCount>INT_MAX-
-(0xf42+1826-0x1663)){at_print(LOG_ERR,
+);return WMS_CMD_FAILED;}memset(acRecFlag,(0x116+7341-0x1dc3),sizeof(acRecFlag))
+;sc_cfg_get(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag,sizeof(acRecFlag));iRpCount=
+atoi(acRecFlag);if(iRpCount<(0x858+3106-0x147a)||iRpCount>INT_MAX-
+(0x168a+2374-0x1fcf)){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,(0xa1d+4518-0x1bc3),sizeof(
+,iRpCount);return WMS_CMD_FAILED;}memset(acRecFlag,(0x3c2+7304-0x204a),sizeof(
 acRecFlag));snprintf(acRecFlag,sizeof(acRecFlag),"\x25\x64",iRpCount+
-(0x5dd+4720-0x184c));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return 
+(0x2340+892-0x26bb));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return 
 WMS_CMD_SUCCESS;}void zUfiSms_DelModemSms(int in_index){
-#if (0xd62+4109-0x1d6f) 
-char StrValue[(0xb2b+6381-0x240e)]={(0x54d+1349-0xa92)};printf(
+#if (0x1d7d+2273-0x265e) 
+char StrValue[(0xa95+866-0xded)]={(0xb43+2362-0x147d)};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=(0x472+271-0x581);atRes=zSms_SendCmgdReq(in_index);if(atRes==
+int atRes=(0x1a9f+2105-0x22d8);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=
-(0x439+6667-0x1e44);memset(&g_zUfiSms_modifyMsg,(0x1d9+1265-0x6ca),sizeof(
-T_zUfiSms_ModifySms));for(i=(0x102c+915-0x13bf);i<ptModifyBuff->total_id;i++){
+(0x367+6117-0x1b4c);memset(&g_zUfiSms_modifyMsg,(0xa39+1579-0x1064),sizeof(
+T_zUfiSms_ModifySms));for(i=(0xa21+4461-0x1b8e);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[(0x1027+568-0x11df)]={
-(0x784+1964-0xf30)};int index=(0x16db+3263-0x239a);int is_cc=(0x346+6995-0x1e99)
-;int iSmsId=(0x5f6+2211-0xe99);T_zUfiSms_ModifyTag tModifyInfo={
-(0x7d3+6510-0x2141)};char StrValue[(0x1db+2807-0xcc8)]={(0x10e9+3788-0x1fb5)};
-memset(&tModifyInfo,(0x1d66+589-0x1fb3),sizeof(T_zUfiSms_ModifyTag));iSmsId=
+zUfiSms_GetUnreadSmsIndexInSim(){char str_index[(0x629+7055-0x2138)]={
+(0x273+959-0x632)};int index=(0x5f0+1699-0xc93);int is_cc=(0x1af8+2352-0x2428);
+int iSmsId=(0x6fa+665-0x993);T_zUfiSms_ModifyTag tModifyInfo={
+(0x47c+4882-0x178e)};char StrValue[(0x1a1a+1284-0x1f14)]={(0xaf6+5433-0x202f)};
+memset(&tModifyInfo,(0x4cc+4503-0x1663),sizeof(T_zUfiSms_ModifyTag));iSmsId=
 g_zUfiSms_modifyMsg.sim_id[g_zUfiSms_modifyMsg.sim_index];if(-
-(0x104d+3931-0x1fa7)==(is_cc=zUfiSms_IsConcatSms(iSmsId))){at_print(LOG_ERR,
+(0x3f1+5814-0x1aa6)==(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((0x583+7610-0x233c)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(iSmsId,
+,is_cc);if((0x27a+8280-0x22d1)==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>
-(0x184d+2186-0x20d7)){index=tModifyInfo.indices[tModifyInfo.id_index];
+(0x559+6362-0x1e33)){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,(0x85c+4842-0x1b46),sizeof(
+,index,g_modifyIndex.total);}}else{memset(str_index,(0x8cc+7662-0x26ba),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 +991,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=(0x18f1+2752-0x23b1);char StrValue[
-(0x1235+1038-0x1639)]={(0xae6+1431-0x107d)};printf(
+T_zUfiSms_ModifyFlag*ptModifyBuff){int atRes=(0xba2+6931-0x26b5);char StrValue[
+(0xa3b+2192-0x12c1)]={(0x627+5904-0x1d37)};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,
-(0x108a+3016-0x1c52),sizeof(T_zUfiSms_ModifyIndexInfo));printf(
+(0x3e1+5742-0x1a4f),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>
-(0xe8a+2322-0x179c)){if(ZUFI_FAIL==zUfiSms_GetUnreadSmsIndexInSim()){at_print(
+(0x5ba+6553-0x1f53)){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,22 +1017,22 @@
 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[(0x5dc+5044-0x1986)];int tmp_i=
-(0xd88+385-0xf09);unsigned int pos=(0x1487+771-0x178a);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[(0x1720+3693-0x2583)];int tmp_i=
+(0x522+5497-0x1a9b);unsigned int pos=(0x1126+3879-0x204d);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,
-(0x213+6220-0x1a5f),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
-(0x1d3f+467-0x1f12),sizeof(wms_client_ts_data_s_type));memset(tmp,
-(0x219d+1343-0x26dc),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
-pPdu_Received[(0xe64+3860-0x1d78)]);tmp_i=atoi(tmp);if(tmp_i<(0xfa9+4534-0x215f)
-||tmp_i>INT_MAX-(0x186b+3197-0x24e7)){at_print(LOG_ERR,
+(0x1771+931-0x1b14),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
+(0x1408+4422-0x254e),sizeof(wms_client_ts_data_s_type));memset(tmp,
+(0x1ac2+1355-0x200d),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
+pPdu_Received[(0x599+2731-0x1044)]);tmp_i=atoi(tmp);if(tmp_i<
+(0x1348+4875-0x2653)||tmp_i>INT_MAX-(0xdfb+3301-0x1adf)){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+(0x4ab+7758-0x22f8);if(pos>=iPdu_Len){return
- ZUFI_FAIL;}raw_ts.len=iPdu_Len-pos;memcpy((void*)raw_ts.data,(void*)(
+,tmp_i);return ZUFI_FAIL;}pos=tmp_i+(0xa1+8366-0x214e);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)?
 WMS_FORMAT_CDMA:WMS_FORMAT_GW_PP;(void)wms_ts_decode(&raw_ts,&ts_data_ptr);
@@ -1047,62 +1041,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[
-(0x63f+1990-0xde1)]={(0x22ea+774-0x25f0)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit,
-sizeof(IsInit));if((0x1b86+2655-0x25e5)==strcmp("\x6f\x6b",IsInit)){printf(
+(0x205+1994-0x9ab)]={(0xb88+4469-0x1cfd)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit,
+sizeof(IsInit));if((0x9a3+2152-0x120b)==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 (0x1a6b+2428-0x23e7)

+#if (0x0+869-0x365)

 int zUfiSms_FormatSms(CHAR*pSmsRawContent,int contentSize,T_zUfiSms_SmsItem*
-ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x1484+2265-0x1d31))
-);if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0x1fc+7754-0x2045)),
-((char)(0x35a+5694-0x196c)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((char
-*)(P2+(0x1121+2227-0x19d3)),((char)(0x1922+904-0x1c7e)));atBase_PreProcRes(
-pSmsRawContent,contentSize);if((0x706+2429-0x1082)==iCmdId){if(P3==P2+
-(0x1636+661-0x18ca)){sscanf(pSmsRawContent,
+ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x2000+847-0x2323)))
+;if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0x193+7295-0x1e11)),
+((char)(0x636+5868-0x1cf6)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((char
+*)(P2+(0xc59+5670-0x227e)),((char)(0x8b7+4424-0x19d3)));atBase_PreProcRes(
+pSmsRawContent,contentSize);if((0x269+9248-0x2688)==iCmdId){if(P3==P2+
+(0x198b+1557-0x1f9f)){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(
-(0x2023+334-0x216f)==iCmdId){if(P2==P1+(0x20df+1285-0x25e3)){sscanf(
+(0xdf5+4346-0x1eed)==iCmdId){if(P2==P1+(0x13c+7770-0x1f95)){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={(0xb57+5614-0x2145)};
+WMS_CMD_PROCESSING;T_zUfiSms_DbStoreData db_data={(0xddc+2864-0x190c)};
 zUfiSms_StoreType mem_store=WMS_STORAGE_TYPE_UIM_V01;unsigned char pdu_tmp[
-ZSMS_PDU_SIZE]={(0x1b2+3389-0xeef)};int total_count=(0x18e7+2842-0x2401);int 
-sim_capability=(0x108d+3546-0x1e67);printf(
+ZSMS_PDU_SIZE]={(0x628+477-0x805)};int total_count=(0x232c+505-0x2525);int 
+sim_capability=(0x1b9f+2062-0x23ad);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,(0x10a+8005-0x204f),sizeof
-(db_data));memset(pdu_tmp,(0x1380+3934-0x22de),sizeof(pdu_tmp));(void)
+,strlen(pSmsItem->pdu),pSmsItem->pdu);memset(&db_data,(0xf52+5257-0x23db),sizeof
+(db_data));memset(pdu_tmp,(0x85b+6965-0x2390),sizeof(pdu_tmp));(void)
 String2Bytes(pSmsItem->pdu,pdu_tmp,(int)strlen(pSmsItem->pdu));
-#if (0x1beb+1621-0x223f)
-zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0x2083+1264-0x256e)==
+#if (0x515+2974-0x10b2)
+zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0x19f3+941-0x1d9b)==
 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 (0x1f5+2980-0xd98)
+#if (0xdb+6449-0x1a0b)
 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 (0x1877+82-0x18c8)
+#if (0xcf+2240-0x98e)
 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,-(0x9ca+436-0xb7d));{}
-#if (0x1ce0+61-0x1d1c)
+(void)zUfiSms_WriteSmsToDb(&db_data,mem_store,-(0x1f13+533-0x2127));{}
+#if (0xfe5+3433-0x1d4d)
 if(SMS_LOCATION_SIM==g_zUfiSms_CurLocation){CHAR simCapability[
-(0x2b9+3816-0x116f)]={(0x924+6078-0x20e2)};sc_cfg_get(
+(0x1978+2721-0x23e7)]={(0x52f+5514-0x1ab9)};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){
@@ -1112,18 +1106,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)!=(0x1522+2896-0x2072)){if((access(
-ZTE_WMS_TMP1_PATH,F_OK)==(0x6a4+3487-0x1443))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
-(0xc9b+4333-0x1d88))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
-(0x12c3+1141-0x1738)){printf(
+if(access(ZTE_WMS_DB_PATH,F_OK)!=(0x118f+4510-0x232d)){if((access(
+ZTE_WMS_TMP1_PATH,F_OK)==(0x1ca7+2057-0x24b0))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
+(0x25c9+61-0x2606))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
+(0x45b+2812-0xf57)){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)==(0x1d5+3263-0xe94))&&(access(
-ZTE_WMS_SEC_PATH,F_OK)!=(0x2b9+6637-0x1ca6))){if(rename(ZTE_WMS_TMP0_PATH,
-ZTE_WMS_SEC_PATH)!=(0x203b+523-0x2246)){printf(
+);}}if((access(ZTE_WMS_TMP0_PATH,F_OK)==(0x183+5726-0x17e1))&&(access(
+ZTE_WMS_SEC_PATH,F_OK)!=(0x799+1881-0xef2))){if(rename(ZTE_WMS_TMP0_PATH,
+ZTE_WMS_SEC_PATH)!=(0x5a3+6034-0x1d35)){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)==(0x81c+1547-0xe27)){char rnum_buf[
-(0x6d8+1902-0xe2e)]={(0xd01+858-0x105b)};char cmd[(0x1e77+1390-0x2365)]={
-(0xa47+1975-0x11fe)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZTE_WMS_SEC_PATH,F_OK)==(0x1365+3079-0x1f6c)){char rnum_buf[
+(0x1b7+6363-0x1a7a)]={(0x11db+1202-0x168d)};char cmd[(0x149+3464-0xe51)]={
+(0x68d+7777-0x24ee)};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);}}
@@ -1135,47 +1129,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[(0x1073+425-0x1212)]={(0x11f5+1896-0x195d)};
+zUfiSms_CfgSmsNvInit(void){char tmp[(0xa70+4639-0x1c85)]={(0xe3d+5886-0x253b)};
 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,(0xcba+1151-0x1139),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
+pStatusInfo,(0x662+7311-0x22f1),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
 iCmdId;pStatusInfo->cmd_status=WMS_CMD_PROCESSING;pStatusInfo->err_code=
-ZTE_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0xd34+6478-0x2682);pStatusInfo
-->delete_failed_count=(0x971+7085-0x251e);(void)zUfiSms_SetCmdStatus(pStatusInfo
-);}void zUfiSms_CfgInit(void){char tmp[(0x2a3+6853-0x1d5e)]={(0xc7d+5599-0x225c)
-};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=(0x832+1031-0xc39);char buf[
-(0x439+8182-0x241b)]={(0x1c78+475-0x1e53)};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=(0x365+4869-0x166a);pStatusInfo
+->delete_failed_count=(0xb+6192-0x183b);(void)zUfiSms_SetCmdStatus(pStatusInfo);
+}void zUfiSms_CfgInit(void){char tmp[(0xc61+1068-0x1083)]={(0xcf+7120-0x1c9f)};
+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=(0xfe3+4169-0x202c);char buf[(0x1890+2376-0x21c4)]={
+(0x1a51+91-0x1aac)};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(
-(0x1335+284-0x1451)==total_count){return FALSE;}else{return TRUE;}}VOID 
+(0xe48+1265-0x1339)==total_count){return FALSE;}else{return TRUE;}}VOID 
 zUfiSms_SendSmsStatusInfo(wms_message_status_info sms_op){
-T_zUfi_SmsStatusInfoInd ind={(0x3e6+8101-0x238b)};CHAR temp[(0xd1a+1812-0x13fc)]
-={(0x1356+2198-0x1bec)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=
-(0x4e5+1585-0xb15);}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=
-(0x766+6940-0x2281);}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.
-sms_unread_ind=(0xf70+618-0x11d9);}else{ind.sms_unread_ind=(0x9a8+6002-0x211a);}
-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[
+T_zUfi_SmsStatusInfoInd ind={(0xf3c+372-0x10b0)};CHAR temp[(0xc53+5619-0x2214)]=
+{(0x1cf+1762-0x8b1)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=(0x93b+7088-0x24ea)
+;}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=(0x1551+1129-0x19b9);}if(
+zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.sms_unread_ind=(0x1476+350-0x15d3);}
+else{ind.sms_unread_ind=(0x173f+3760-0x25ef);}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=(0xe86+658-0x1117);}else{ind.
-sms_memory_full_ind=(0x1083+2158-0x18f1);}printf(
+]==TRUE)){ind.sms_memory_full_ind=(0x201+2970-0xd9a);}else{ind.
+sms_memory_full_ind=(0x359+2685-0xdd6);}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,(0x26d+879-0x5dc));if(ind.sms_memory_full_ind==
-(0x1732+1698-0x1dd3)){sc_cfg_set(NV_SMS_INIT_STATUS,
+T_zUfi_SmsStatusInfoInd),&ind,(0x1943+367-0x1ab2));if(ind.sms_memory_full_ind==
+(0xef3+5802-0x259c)){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==(0x190a+3562-0x26f3)){sc_cfg_set(NV_SMS_INIT_STATUS,
+sms_unread_ind==(0x5a0+1531-0xb9a)){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(
@@ -1184,7 +1178,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,(0xfa+6552-0x1a91),pushSmsLen,fp);if(len==
+);return;}len=fwrite(pushSms,(0x74c+7268-0x23af),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 ff00818..2225e4e 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=(0x1611+4279-0x26c8);int g_zSms_MsqId=-
-(0x932+2791-0x1418);int g_zSms_LocalMsqId=-(0x11f4+312-0x132b);sem_t 
-g_sms_sem_id;T_zSms_optRsp g_smsOptRsp={(0xbec+3950-0x1b5a)};static const 
+g_zUfiSms_IsConcatSendSuc;int iSmsIndex=(0x15c3+1868-0x1d0f);int g_zSms_MsqId=-
+(0x244+9220-0x2647);int g_zSms_LocalMsqId=-(0x69d+5539-0x1c3f);sem_t 
+g_sms_sem_id;T_zSms_optRsp g_smsOptRsp={(0x16a4+1007-0x1a93)};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},{(0x857+7200-0x2477),NULL,FALSE}};VOID atWeb_SendSms
+atWeb_OutdateSmsCheck,TRUE},{(0x4c6+8695-0x26bd),NULL,FALSE}};VOID atWeb_SendSms
 (UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;T_zUfiSms_StatusInfo tStatus={
-(0x1f8+9381-0x269d)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)
+(0x839+5126-0x1c3f)};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={(0x685+1667-0xd08)
-};T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={
-(0x1e00+1566-0x241e)};assert(pDatabuf!=NULL);printf(
-"[SMS] atWeb_DelSmsByIndex recv msg\n");memcpy(&tDelReq,pDatabuf,sizeof(
+atWeb_DelSmsByIndex(UINT8*pDatabuf){T_zUfiSms_DelReq tDelReq={
+(0x775+4836-0x1a59)};T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;
+T_zUfiSms_StatusInfo tStatus={(0xc4d+2677-0x16c2)};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 (0x7f3+6205-0x2030)

+#if (0x118b+4403-0x22be)

 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,(0x1c7b+2533-0x2660),
-req->eBoxName);if(req->eBoxName==SMS_INBOX){sms_LoadSmsFromSim();}
+,req->eBoxName);SMS_DeleteRecordFromXML(SMS_LOCATION_SIM,(0x56+123-0xd1),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={
-(0x1d48+545-0x1f69)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)
+(0x138d+2241-0x1c4e)};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={(0xb97+637-0xe14)};assert(
+WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x1840+3704-0x26b8)};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={
-(0xc8b+748-0xf77)};printf(
+(0x101+2317-0xa0e)};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={(0x1696+667-0x1931)};
+pDatabuf){T_zUfiSms_DelReq tSmsDel={(0x1b3f+1370-0x2099)};
 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>(0x32+1958-0x7d8)){
-atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x718+1333-0xc4d),sizeof(
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x1329+4066-0x230b)){
+atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0xa86+6908-0x2582),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>(0x1cd3+776-0x1fdb)){
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x439+7657-0x2222)){
 atWeb_DelSmsByIndex(&tSmsDel);}}VOID zSms_HandleWebMsg(MSG_BUF*ptMsgBuf){UINT32 
-i=(0x14e9+573-0x1726);assert(ptMsgBuf!=NULL);printf(
+i=(0xbc5+2659-0x1628);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((0x414+5567-0x19d3)!=SmsHandleWebTab[i].msg_id){if(
+,ptMsgBuf->usMsgCmd);while((0xcd+4979-0x1440)!=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,(0x10dd+3502-0x1e8b));}else if(NULL!=SmsHandleWebTab[i].
+ptMsgBuf->aucDataBuf,(0xd0c+4170-0x1d56));}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,(0x259+8491-0x2384));return(0x11+6864-0x1ae1);}SINT32 
-zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x4cd+8483-0x25f0)};
-memset(&sendSmsInfo,(0x71b+2331-0x1036),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
+unsigned char*)pData,(0x150b+1730-0x1bcd));return(0x18dd+507-0x1ad8);}SINT32 
+zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x16f+8185-0x2168)};
+memset(&sendSmsInfo,(0x1271+1797-0x1976),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
 length=g_zUfiSms_FinalCmgsBuf.length;if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<
-ZSMS_PDU_SIZE-(0x23d+9273-0x2675)){memcpy(sendSmsInfo.pdu,g_zUfiSms_FinalCmgsBuf
-.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));}else{printf(
+ZSMS_PDU_SIZE-(0x1e9b+1205-0x234f)){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-(0x17ea+260-0x18ec));}*(sendSmsInfo.pdu+strlen(
+ZSMS_PDU_SIZE-(0x761+7334-0x2405));}*(sendSmsInfo.pdu+strlen(
 g_zUfiSms_FinalCmgsBuf.pdu))=ZSMS_CTRL_Z_CHAR;
-#if (0x1141+5052-0x24fc)
+#if (0x1755+3721-0x25dd)
 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==(0xec8+4720-0x2137)){return 
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0xffc+613-0x1260)){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-(0x1ca3+1898-0x240c)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0x1acd+478-0x1caa)].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-(0x1c62+1721-0x231a)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x1e2c+1853-0x2568)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x1308+1637-0x196c)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x142+6329-0x19fa)){
 g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc();}SINT32 zSms_SendCmgdReq
-(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0x281+2525-0xc5e)};delSmsReq.index=
+(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0x1160+497-0x1351)};delSmsReq.index=
 index;zSms_SendMsg(MSG_CMD_DELSMS_REQ,sizeof(T_zSms_DelSmsReq),&delSmsReq);
-sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x7f5+3361-0x1515)){return 
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x13e6+707-0x16a8)){return 
 ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmgdOk(VOID){CHAR 
-strUsed[(0x8c7+6293-0x2152)]={(0x6d5+4757-0x196a)};int used=(0x2a3+5241-0x171c);
-int tmp_i=(0x689+5792-0x1d29);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+strUsed[(0x44b+7413-0x2136)]={(0xb6c+4426-0x1cb6)};int used=(0x1518+75-0x1563);
+int tmp_i=(0x26f+8777-0x24b8);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<(0x5a2+7225-0x21db)||tmp_i>INT_MAX-(0x7b0+2193-0x1040)){
-at_print(LOG_ERR,
+strUsed);if(tmp_i<(0x915+1175-0xdac)||tmp_i>INT_MAX-(0x251f+73-0x2567)){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=(0x1452+1958-0x1bf8);}used=tmp_i-(0x1cb+7937-0x20cb);if(used<
-(0x1f6c+1638-0x25d2)){used=(0xa18+7191-0x262f);}memset(&strUsed,
-(0x1dd0+658-0x2062),(0x70d+7522-0x2465));snprintf(strUsed,sizeof(strUsed),
+,tmp_i);tmp_i=(0x51d+3069-0x111a);}used=tmp_i-(0xb57+1597-0x1193);if(used<
+(0x24a9+342-0x25ff)){used=(0x1208+4854-0x24fe);}memset(&strUsed,
+(0x5d8+7081-0x2181),(0x3a3+2447-0xd28));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[(0x1c9c+2538-0x267c)]={
-(0x16c+5986-0x18ce)};CHAR strTotal[(0xb0+4999-0x142d)]={(0x12f+3984-0x10bf)};
-CHAR strUsed[(0x15+9154-0x23cd)]={(0x31d+3650-0x115f)};int total=
-(0x268+6313-0x1b11);int used=(0x531+2620-0xf6d);int remain=(0xdb1+5336-0x2289);
+);}VOID zSms_RecvCmgdFinish(VOID){char StrValue[(0x6ac+2724-0x1146)]={
+(0x55+7012-0x1bb9)};CHAR strTotal[(0x534+4369-0x163b)]={(0xcbd+6586-0x2677)};
+CHAR strUsed[(0x65+2608-0xa8b)]={(0x4cb+297-0x5f4)};int total=
+(0x15e4+118-0x165a);int used=(0x21d7+526-0x23e5);int remain=(0x8a5+1406-0xe23);
 sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
-strUsed);if(used<(0x56d+3400-0x12b5)||used>INT_MAX-(0x1a7+2169-0xa1f)){at_print(
-LOG_ERR,
+strUsed);if(used<(0xd69+2516-0x173d)||used>INT_MAX-(0x19f3+2896-0x2542)){
+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=(0x44d+2407-0xdb4);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
-strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0x9e0+6314-0x228a)||
-total>INT_MAX-(0xd4+6815-0x1b72)){at_print(LOG_ERR,
+,used);used=(0x105d+2785-0x1b3e);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
+strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0xc46+4063-0x1c25)||
+total>INT_MAX-(0x90+6284-0x191b)){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=(0x2d5+6720-0x1d15);}remain=total-used;if(remain<
-(0x1384+2684-0x1e00)){remain=(0x1e9+6219-0x1a34);}memset(&StrValue,
-(0x9b3+5448-0x1efb),(0x1185+4486-0x2301));snprintf(StrValue,sizeof(StrValue),
+,total);total=(0x103+6330-0x19bd);}remain=total-used;if(remain<
+(0xf42+5321-0x240b)){remain=(0x4a6+7314-0x2138);}memset(&StrValue,
+(0x418+6470-0x1d5e),(0x1433+724-0x16fd));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={(0x1aad+1552-0x20bd)};storageReq.type=avail;zSms_SendMsg(
+storageReq={(0x6e9+2380-0x1035)};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==(0xa36+290-0xb57)){return ZSMS_RESULT_OK;}
-else{return ZSMS_RESULT_ERROR;}}int zSms_SendCmgrReq(UINT8 index){
-T_zSms_ModifyTagReq modTagReq={(0x14f2+4142-0x2520)};modTagReq.index=index;
+g_sms_sem_id);if(g_smsOptRsp.result==(0x3ab+7148-0x1f96)){return ZSMS_RESULT_OK;
+}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCmgrReq(UINT8 index){
+T_zSms_ModifyTagReq modTagReq={(0x19+5975-0x1770)};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==(0x22f6+449-0x24b6)){return 
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0xb47+2167-0x13bd)){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)-
-(0x1327+4059-0x2301));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),
-&setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x13c9+3455-0x2147))
-{return ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCnmiReq(
-PSTR pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0xa5+9655-0x265c)};if(
-(0xe1d+236-0xf09)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
-(0xfa5+5594-0x257e);}else{notifySetReq.mt=(0xda8+241-0xe97);}zSms_SendMsg(
+(0x173c+1198-0x1be9));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),
+&setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x97+2682-0xb10)){
+return ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCnmiReq(PSTR
+ pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0x1150+2845-0x1c6d)};if(
+(0xf3d+4172-0x1f89)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
+(0x6ac+5318-0x1b71);}else{notifySetReq.mt=(0x1097+3927-0x1fec);}zSms_SendMsg(
 MSG_CMD_NOTIFY_SET_REQ,sizeof(T_zSms_NotifySetReq),&notifySetReq);sem_wait(&
-g_sms_sem_id);if(g_smsOptRsp.result==(0x1836+225-0x1916)){return ZSMS_RESULT_OK;
+g_sms_sem_id);if(g_smsOptRsp.result==(0x516+2894-0x1063)){return ZSMS_RESULT_OK;
 }else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmtInd(UINT8*pDatabuf){CHAR 
-needSMS[(0x1c0a+1202-0x208a)]={(0x144c+255-0x154b)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x511+6880-0x1ff1)==strcmp(
+needSMS[(0x91b+6697-0x2312)]={(0x14d3+411-0x166e)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xbc8+5208-0x2020)==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={(0x1b5+6838-0x1c6b)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0x1a30+612-0x1c94)};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[(0xab0+6524-0x240e)]={
-(0xdfd+1280-0x12fd)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
-CHAR needSMS[(0xc0d+449-0xd9c)]={(0x1c40+617-0x1ea9)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x175+6704-0x1ba5)==strcmp(
+zSms_RecvCmtiInd(UINT8*pDatabuf){char sms_Main_state[(0x134a+1406-0x18aa)]={
+(0x94c+1488-0xf1c)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
+CHAR needSMS[(0x18ea+3503-0x2667)]={(0x579+5562-0x1b33)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x24b+6015-0x19ca)==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")==
-(0x22f5+262-0x23fb)){printf(
+(0xe5a+5884-0x2556)){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((0x2175+1004-0x2561)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0x72+849-0x3c1))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0x506+2949-0x108b)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0x1920+2847-0x243d))){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[(0x202+5994-0x193a)]={(0x1969+1407-0x1ee8)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1099+4353-0x219a)==strcmp(
+needSMS[(0xc41+1220-0x10d3)]={(0x120b+283-0x1326)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x4d+2870-0xb83)==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={(0x2244+1176-0x26dc)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0x1136+3765-0x1feb)};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[(0x14c2+2240-0x1d64)]={
-(0x41f+7919-0x230e)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
-CHAR needSMS[(0x81b+6761-0x2252)]={(0x1738+272-0x1848)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1110+1666-0x1792)==strcmp(
+zSms_RecvCdsiInd(UINT8*pDatabuf){char sms_Main_state[(0x549+6632-0x1f13)]={
+(0xe91+3696-0x1d01)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
+CHAR needSMS[(0x37d+3644-0x1187)]={(0xbe6+1015-0xfdd)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xab6+1460-0x106a)==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")==
-(0xd1c+3243-0x19c7)){printf(
+(0x65d+1955-0xe00)){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((0x183d+3222-0x24d3)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0x152f+1227-0x19f8))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0x224+8798-0x2482)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0x2302+866-0x2662))){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={(0x1cf8+2320-0x2608)};CHAR ackPduStr[(0x40d+1751-0xab2)
-]={(0x1081+4288-0x2141)};ackReq.ackmode=ack_mode;if(ack_mode==
-(0x1c49+776-0x1f4f)){zUfiSms_EncodePdu_DeliverReport(ackPduStr,
-(0x15e6+556-0x173f));memcpy(ackReq.pdu,ackPduStr,strlen(ackPduStr));
-#if (0x126b+4735-0x24ea)

-if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0x830+1020-0xc2b)){memcpy(ackReq.pdu,
+T_zSms_SmsAckReq ackReq={(0x133d+2421-0x1cb2)};CHAR ackPduStr[
+(0xe10+2989-0x198b)]={(0x1731+3203-0x23b4)};ackReq.ackmode=ack_mode;if(ack_mode
+==(0x1049+3294-0x1d25)){zUfiSms_EncodePdu_DeliverReport(ackPduStr,
+(0x62d+2131-0xdad));memcpy(ackReq.pdu,ackPduStr,strlen(ackPduStr));
+#if (0x1715+1256-0x1bfd)

+if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0xc91+4481-0x1e11)){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-(0xcec+5037-0x2097));}
+,ackPduStr);memcpy(ackReq.pdu,ackPduStr,ZSMS_PDU_SIZE-(0xe3+8616-0x2289));}
 #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)/(0xadc+3938-0x1a3c);}zSms_SendMsg(
+,ackReq.pdu);ackReq.length=strlen(ackPduStr)/(0x164+8118-0x2118);}zSms_SendMsg(
 MSG_CMD_SMSACK_REQ,sizeof(T_zSms_SmsAckReq),&ackReq);sem_wait(&g_sms_sem_id);if(
-g_smsOptRsp.result==(0x1e3f+2026-0x2628)){return ZSMS_RESULT_OK;}else{return 
+g_smsOptRsp.result==(0x429+6007-0x1b9f)){return ZSMS_RESULT_OK;}else{return 
 ZSMS_RESULT_ERROR;}}int zSms_SendZmgrReq(int index){T_zSms_ReadSmsReq readSmsReq
-={(0x95b+1337-0xe94)};iSmsIndex=index;printf(
+={(0x16c7+2663-0x212e)};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(0x107a+4409-0x21b3);}VOID 
-zSms_RecvZmgrRsp(UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0x4d9+7539-0x224c)};
-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={(0x22cb+911-0x265a)};
-memcpy(&smsOptRsp,(T_zSms_optRsp*)pDatabuf,sizeof(T_zSms_optRsp));if(smsOptRsp.
-result==(0xcf+9541-0x2613)){sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{
-printf(
+T_zSms_ReadSmsReq),&readSmsReq);return(0x483+2429-0xe00);}VOID zSms_RecvZmgrRsp(
+UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0xb16+6482-0x2468)};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={(0x528+1006-0x916)};memcpy(&smsOptRsp,(
+T_zSms_optRsp*)pDatabuf,sizeof(T_zSms_optRsp));if(smsOptRsp.result==
+(0x197+5309-0x1653)){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((
-(0x1399+4356-0x249c)==ptPara->result)&&((0x690+8239-0x26bf)==ptPara->opertype)){
-CHAR needSms[(0x1bd8+309-0x1cdb)]={(0x101a+5418-0x2544)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0x1dc3+150-0x1e59)!=strcmp(
+(0xc12+4906-0x1f3b)==ptPara->result)&&((0x77a+3599-0x1589)==ptPara->opertype)){
+CHAR needSms[(0x3ab+916-0x70d)]={(0x76a+7460-0x248e)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0x7f3+123-0x86e)!=strcmp(
 needSms,"\x6e\x6f")){zSvr_Zpbic_Sms_Init();}}}VOID zSms_RecvCpmsInd(UINT8*
 pDatabuf){T_zSms_CpmsInd*cpmsInd=(T_zSms_CpmsInd*)pDatabuf;CHAR strBuf[
-(0x8a4+1201-0xd4b)]={(0x10c7+1067-0x14f2)};int remainSpace=(0x799+1464-0xd51);
+(0x6c0+3016-0x127e)]={(0x58a+7431-0x2291)};int remainSpace=(0x35d+7738-0x2197);
 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,(0x939+1233-0xe0a),
-(0x1d87+1212-0x2239));snprintf(strBuf,sizeof(strBuf),"\x25\x64",cpmsInd->used);
+ZTE_WMS_NVCONFIG_SIM_CAPABILITY,strBuf);memset(&strBuf,(0x276+3126-0xeac),
+(0x80f+7940-0x2709));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,(0x1cd3+809-0x1ffc),(0xb1a+3432-0x1878));snprintf(
+cpmsInd->used;memset(&strBuf,(0x1972+303-0x1aa1),(0x6e9+4058-0x16b9));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 (0x1cc+4271-0x123b)

+#define AT_CMD_MAX (0x1193+4695-0x23aa)

 #define ZAT_TAB_REPLACE                     ((unsigned char )(\
-(0x8c4+6909-0x22c5)))    

-#define ZAT_NULL_FILL                       ((unsigned char )(\
-(0xc8b+1926-0x1314)))    

+(0x3c5+6609-0x1c9a)))    

+#define ZAT_NULL_FILL                       ((unsigned char )((0x2f0+621-0x460))\
+)    

 #define ZAT_SPACE_REPLACE                   ((unsigned char )(\
-(0x365+9154-0x2629)))    

+(0x4da+3788-0x12a8)))    

 #define ZAT_LF_REPLACE                      ((unsigned char )(\
-(0x16ef+3872-0x2514)))    

+(0xc83+1371-0x10e3)))    

 #define ZAT_CR_REPLACE                      ((unsigned char )(\
-(0x6ff+5873-0x1cf6)))    

+(0xe11+6594-0x26d9)))    

 static void atBase_PreProcRes(char*pParaLine,int paraSize){signed long flg=
-(0xbc+3320-0xdb4);unsigned long i=(0xc51+265-0xd5a);unsigned long length=
-(0xe09+3514-0x1bc3);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=(
+(0x12cf+4932-0x2613);unsigned long i=(0xb06+5415-0x202d);unsigned long length=
+(0x5a5+2738-0x1057);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=(
 char*)malloc(AT_CMD_MAX);if(NULL==pStrDestMalloc){return;}memset(pStrDestMalloc,
-(0x20df+239-0x21ce),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
-length=strlen(pParaLine);if((length==(0x449+2974-0xfe7))||(length>=AT_CMD_MAX)){
-free(pStrDestMalloc);return;}for(i=(0x348+2043-0xb43);(i<length)&&(pDest-
-pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x171+5010-0x14e1))==*pSource){flg=(
-(0x11+2632-0xa59)==flg)?(0x10af+3255-0x1d65):(0x66c+913-0x9fd);if(
-((char)(0x882+3459-0x15e3))==*(pSource+(0x179b+432-0x194a))){*pDest++=(char)
-ZAT_NULL_FILL;}}else if((((char)(0xa63+1879-0x118e))==*pSource)&&(
-(0xabb+4577-0x1c9c)==flg)){*pDest++=((char)(0x191b+3159-0x2552));if(
-((char)(0x79d+4393-0x189a))==*(pSource+(0x115+3348-0xe28))){*pDest++=
-((char)(0xcb+8804-0x22f6));}else if('\0'==*(pSource+(0x1678+2026-0x1e61))){*
-pDest++=(char)ZAT_NULL_FILL;}}else{if((((char)(0x1336+2858-0x1e40))==*pSource)&&
-((0x53b+7144-0x2122)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
-pSource)&&((0x152b+4427-0x2675)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
-'\n'==*pSource)&&((0xd5+5613-0x16c1)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}else 
-if(('\r'==*pSource)&&((0x1723+3545-0x24fb)==flg)){*pDest++=(char)ZAT_CR_REPLACE;
-}else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,(0x1641+1501-0x1c1e),
-paraSize);strncpy(pParaLine,pStrDestMalloc,paraSize-(0xd48+3440-0x1ab7));free(
+(0xc7f+2366-0x15bd),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
+length=strlen(pParaLine);if((length==(0x1684+15-0x1693))||(length>=AT_CMD_MAX)){
+free(pStrDestMalloc);return;}for(i=(0x10aa+4594-0x229c);(i<length)&&(pDest-
+pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x10f+2382-0xa3b))==*pSource){flg=(
+(0x15a9+2249-0x1e72)==flg)?(0x615+1522-0xc06):(0xacd+5146-0x1ee7);if(
+((char)(0x98f+2047-0x116c))==*(pSource+(0xa41+1270-0xf36))){*pDest++=(char)
+ZAT_NULL_FILL;}}else if((((char)(0x786+4812-0x1a26))==*pSource)&&(
+(0xd9d+3474-0x1b2f)==flg)){*pDest++=((char)(0x1708+920-0x1a80));if(
+((char)(0x358+1517-0x919))==*(pSource+(0x1bb5+2495-0x2573))){*pDest++=
+((char)(0x189b+2679-0x22d9));}else if('\0'==*(pSource+(0x7fb+1687-0xe91))){*
+pDest++=(char)ZAT_NULL_FILL;}}else{if((((char)(0xa0a+1557-0xfff))==*pSource)&&(
+(0xc2d+3432-0x1994)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
+pSource)&&((0x1c1a+375-0x1d90)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
+'\n'==*pSource)&&((0x72d+3411-0x147f)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}else
+ if(('\r'==*pSource)&&((0x32c+3628-0x1157)==flg)){*pDest++=(char)ZAT_CR_REPLACE;
+}else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,(0xd18+4929-0x2059),
+paraSize);strncpy(pParaLine,pStrDestMalloc,paraSize-(0x647+857-0x99f));free(
 pStrDestMalloc);}VOID zSms_RecvCscaInd(UINT8*pDatabuf){T_zSms_CscaInd cscaInd={
-(0x12b4+1333-0x17e9)};
-#if (0x1237+3018-0x1e00)
+(0x1276+4925-0x25b3)};
+#if (0x12a5+3058-0x1e96)
 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 (0x217+766-0x514)
+#if (0x697+6830-0x2144)
 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,
-(0x1d22+501-0x1f17),NULL);return(0xe2a+4445-0x1f87);}VOID zSms_initAtOk(VOID){
-T_zUfiSms_StatusInfo tStatus={(0x182b+3745-0x26cc)};sc_cfg_set(NV_SMS_STORE,
+(0x11d0+5174-0x2606),NULL);return(0x973+7380-0x2647);}VOID zSms_initAtOk(VOID){
+T_zUfiSms_StatusInfo tStatus={(0x18c9+1118-0x1d27)};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={(0x23fb+393-0x2584)};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={(0x13bb+1441-0x195c)};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==
-(0x208+5715-0x185a)){zSms_initAtOk();}else{zSms_initAtErr();}}UINT8 
+(0xc5d+2997-0x1811)){zSms_initAtOk();}else{zSms_initAtErr();}}UINT8 
 zSms_SmsMsgCreat(VOID){g_zSms_MsqId=msgget(MODULE_ID_SMS,IPC_CREAT|
-(0x147a+4219-0x2375));if(g_zSms_MsqId==-(0x1bb8+2859-0x26e2)){return ZUFI_FAIL;}
-g_zSms_LocalMsqId=msgget(MODULE_ID_SMS_LOCAL,IPC_CREAT|(0x116c+3052-0x1bd8));if(
-g_zSms_LocalMsqId==-(0x6d6+1181-0xb72)){return ZUFI_FAIL;}sem_init(&g_sms_sem_id
-,(0x10a6+4900-0x23ca),(0x1c2c+127-0x1cab));return ZUFI_SUCC;}void 
+(0x91c+3256-0x1454));if(g_zSms_MsqId==-(0xeaf+893-0x122b)){return ZUFI_FAIL;}
+g_zSms_LocalMsqId=msgget(MODULE_ID_SMS_LOCAL,IPC_CREAT|(0x6d4+7385-0x222d));if(
+g_zSms_LocalMsqId==-(0x190a+2137-0x2162)){return ZUFI_FAIL;}sem_init(&
+g_sms_sem_id,(0x8b6+1552-0xec6),(0xb5c+6808-0x25f4));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,
-(0x820+2066-0x1032));break;default:break;}}VOID zSms_HandleResetToFactory(){CHAR
- clearSms[(0x1085+981-0x1428)]={(0x73c+8014-0x268a)};sc_cfg_get(
+(0x3eb+3699-0x125e));break;default:break;}}VOID zSms_HandleResetToFactory(){CHAR
+ clearSms[(0xdbb+6162-0x259b)]={(0x47d+6787-0x1f00)};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")==(0x1db0+525-0x1fbd)){printf(
+,clearSms);if(strcmp(clearSms,"\x79\x65\x73")==(0xf11+5857-0x25f2)){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,(0x15bb+1681-0x1c4c),NULL,
-(0x50f+7918-0x23fd));}void zSms_HandleMainCtrlMsg(MSG_BUF*ptMsgBuf){assert(
+MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,(0xa96+1442-0x1038),NULL,
+(0x1826+170-0x18d0));}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=(0x76c+321-0x8ad);MSG_BUF stMsg={
-(0x2497+43-0x24c2)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((int*
-)arg);prctl(PR_SET_NAME,"\x73\x6d\x73\x5f\x6c\x6f\x63\x61\x6c",(0x8cc+126-0x94a)
-,(0x697+8151-0x266e),(0x1ac8+2666-0x2532));while((0xfb0+4668-0x21eb)){iRet=
-(0xd4b+5224-0x21b3);memset(&stMsg,(0x4f4+3010-0x10b6),sizeof(MSG_BUF));iRet=
-msgrcv(queueId,&stMsg,msgSize,(0xdf+1385-0x648),(0xeac+1288-0x13b4));if(iRet>=
-(0xfa1+4118-0x1fb7)){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:{
+sms_msg_thread_proc(void*arg){int iRet=(0x19c6+3190-0x263c);MSG_BUF stMsg={
+(0xcb4+289-0xdd5)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((int*)
+arg);prctl(PR_SET_NAME,"\x73\x6d\x73\x5f\x6c\x6f\x63\x61\x6c",
+(0x171d+2575-0x212c),(0x575+7541-0x22ea),(0x1ed+6667-0x1bf8));while(
+(0x596+1914-0xd0f)){iRet=(0xbb8+6071-0x236f);memset(&stMsg,(0x12c7+4080-0x22b7),
+sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0xc6+37-0xeb),
+(0x285+2635-0xcd0));if(iRet>=(0xb60+338-0xcb2)){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=(0xa75+1154-0xef7);MSG_BUF msgBuf={(0x52+5063-0x1419)};CHAR 
-needSMS[(0x893+7802-0x26db)]={(0x5f8+3831-0x14ef)};prctl(PR_SET_NAME,
-"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x608+6753-0x2069),(0x469+474-0x643),
-(0xa3b+1418-0xfc5));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
-sizeof(needSMS));if((0xd78+5689-0x23b1)!=strcmp(needSMS,"\x6e\x6f")){
+recv_thread_tid=(0x11d7+4832-0x24b7);MSG_BUF msgBuf={(0xaa2+3022-0x1670)};CHAR 
+needSMS[(0x383+6313-0x1bfa)]={(0x1016+4247-0x20ad)};prctl(PR_SET_NAME,
+"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x1da7+2330-0x26c1),(0x1198+476-0x1374),
+(0x1320+3130-0x1f5a));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
+sizeof(needSMS));if((0x6cd+3781-0x1592)!=strcmp(needSMS,"\x6e\x6f")){
 zUfiSms_InitDb();zUfiSms_CfgSmsNvInit();zUfiMmi_SendSmsStatus();zSms_SmsMsgCreat
-();}else{return-(0x9e8+5377-0x1ee8);}printf(
+();}else{return-(0x4b6+5857-0x1b96);}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))==-(0x1e18+992-0x21f7)){assert((0x18d4+36-0x18f8));}
-sms_msg_thread_proc(&g_zSms_MsqId);return(0x573+7697-0x2384);}
+*)(&g_zSms_LocalMsqId))==-(0x1041+671-0x12df)){assert((0x6a7+5543-0x1c4e));}
+sms_msg_thread_proc(&g_zSms_MsqId);return(0x10d3+3998-0x2071);}
diff --git a/ap/app/zte_comm/sms/src/sms_proc.c b/ap/app/zte_comm/sms/src/sms_proc.c
index c9acbb6..b21935b 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={(0x12a6+1942-0x1a3c)};
-T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0xf92+1909-0x1707)};
-T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0x3b3+7000-0x1f0b)};int 
-g_zUfiSms_UnitLen=(0x72a+6246-0x1f90);int g_zUfiSms_ConcatTotalNum=
-(0x1297+3010-0x1e59);int g_zUfiSms_CurConcatSegNo=(0xbc1+3781-0x1a86);UINT8 
-g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0x81d+6024-0x1fa5)
-;int g_zUfiSms_MsgRefer=(0xfa1+5966-0x26ef);int g_zUfiSms_SendFailedRetry=
-(0x33a+7168-0x1f3a);char g_Zmena_value[(0x5a2+1198-0xa4e)]={(0xd02+457-0xecb)};
-int g_displaymode=(0x1780+2415-0x20ef);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 
+g_zUfiSms_DelMsg;T_zUfiSms_DelIndexInfo g_deleteIndex={(0x338+5962-0x1a82)};
+T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0x803+15-0x812)};
+T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0x94c+2643-0x139f)};int 
+g_zUfiSms_UnitLen=(0x1e0+7608-0x1f98);int g_zUfiSms_ConcatTotalNum=
+(0xbe0+2262-0x14b6);int g_zUfiSms_CurConcatSegNo=(0x459+203-0x524);UINT8 
+g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0x6b5+878-0xa23);
+int g_zUfiSms_MsgRefer=(0x2082+774-0x2388);int g_zUfiSms_SendFailedRetry=
+(0x813+3241-0x14bc);char g_Zmena_value[(0x1926+78-0x1972)]={(0x381+1023-0x780)};
+int g_displaymode=(0x6e0+3209-0x1369);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[
-(0x498+6833-0x1f3d)];}FOTA_MSG_BUF;
-#define WEBUI_NOTIFY_PUSH_MSG_  (0x92+1087-0x4ce)

+(0x1c0+5110-0x15aa)];}FOTA_MSG_BUF;
+#define WEBUI_NOTIFY_PUSH_MSG_  (0x8fc+7090-0x24ab)

 typedef struct{unsigned int isread_record;unsigned int inbox_full;}
 T_zUfiMmi_SmsRecord;void zUfiMmi_SendSmsStatus(void){int iSmsNum=
-(0x94+674-0x336);T_zUfiMmi_SmsRecord tRecord={(0x776+267-0x881)};CHAR smsNum[
-(0xcea+2253-0x1585)]={(0x29c+7457-0x1fbd)};sc_cfg_get(NV_SMS_IN_NUM,smsNum,
+(0x3c+4112-0x104c);T_zUfiMmi_SmsRecord tRecord={(0x85d+4891-0x1b78)};CHAR smsNum
+[(0x1e61+1299-0x2342)]={(0x42b+8825-0x26a4)};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=
-(0xa76+6410-0x237f);}else{tRecord.inbox_full=(0x67b+6642-0x206d);}}VOID 
+(0x1fbb+467-0x218d);}else{tRecord.inbox_full=(0x5e3+4569-0x17bc);}}VOID 
 zUfiSms_Init(VOID){zUfiSms_CfgInit();zUfiSms_ChangeMainState(SMS_STATE_INITING);
-}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=(0x16b+1407-0x6ea);
-T_zUfiSms_StatusInfo tStatus={(0x12d9+3507-0x208c)};CHAR outDate[
-(0x374+3465-0x10cb)]={(0x18a1+2125-0x20ee)};zUfiSms_Init();zUfiSms_InitCmdStatus
-(&tStatus,WMS_SMS_CMD_INIT);zSms_SendSmsInitReq();at_print(LOG_DEBUG,
+}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=(0x23af+738-0x2691);
+T_zUfiSms_StatusInfo tStatus={(0xb23+3762-0x19d5)};CHAR outDate[
+(0x1a7d+92-0x1aa7)]={(0xe9c+3958-0x1e12)};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(
-(0x700+1345-0xc41));at_print(LOG_DEBUG,
+(0x15ac+323-0x16ef));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((0x4e5+23-0x4fc)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck(
+,outDate);if((0x343+7348-0x1ff7)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck(
 ZUFI_NULL);}}VOID zUfiSms_DeleteAllSimSms(VOID){zUfiSms_DeleteAllSimSmsInDb();}
-#if (0xb6a+2533-0x154f)

-VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0x2088+702-0x2314)]={
-(0x4bf+5083-0x189a)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
-g_Zmena_rsp&&((0xdd8+2190-0x1666)!=strcmp(
-"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0x11c1+712-0x1489)!=strcmp
+#if (0xcef+2116-0x1533)

+VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0x3c7+5315-0x1858)]={
+(0x1285+4973-0x25f2)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
+g_Zmena_rsp&&((0x365+3185-0xfd6)!=strcmp(
+"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0x6d4+2892-0x1220)!=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 (0x2ba+6601-0x1c83)

-CHAR ackPduStr[(0x1cb2+1827-0x2245)]={(0x49+1221-0x50e)};SMS_PARAM reportParam={
-(0xb6d+501-0xd62)};int total_length=(0x557+2707-0xfea);UINT8 TP_FCS=
-(0xda4+6498-0x2706);CHAR strValue[(0x1740+1498-0x1d18)]={(0x532+1572-0xb56)};if(
-needAck){TP_FCS=(0xb29+3563-0x1914);sprintf(strValue,"\x25\x64",
-(0x16a9+3685-0x250d));}else{TP_FCS=(0xfa9+2174-0x1754);sprintf(strValue,
-"\x25\x64",(0x118d+995-0x156e));}sprintf(reportParam.SCA,"\x25\x73",cfg_get(
+#if (0x176b+2598-0x2191)

+CHAR ackPduStr[(0x110d+466-0x114f)]={(0x3cb+4056-0x13a3)};SMS_PARAM reportParam=
+{(0xda3+5029-0x2148)};int total_length=(0x4b2+5187-0x18f5);UINT8 TP_FCS=
+(0xd6d+2055-0x1574);CHAR strValue[(0x8e9+3132-0x1523)]={(0x13aa+535-0x15c1)};if(
+needAck){TP_FCS=(0x984+6620-0x2360);sprintf(strValue,"\x25\x64",
+(0x1010+3702-0x1e85));}else{TP_FCS=(0x1564+3013-0x2056);sprintf(strValue,
+"\x25\x64",(0x774+5891-0x1e75));}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,(0x5df+8061-0x255c),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu.
+g_zUfiSms_ackPdu,(0x711+2760-0x11d9),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu.
 length=String2Bytes(ackPduStr,g_zUfiSms_ackPdu.pdu,strlen(ackPduStr));memset(
-g_zUfiSms_ackPdu.pdu,(0x22ba+348-0x2416),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
+g_zUfiSms_ackPdu.pdu,(0xcf6+2002-0x14c8),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
 g_zUfiSms_ackPdu.pdu,&ackPduStr,sizeof(ackPduStr));atBase_SendMsgToSelf(
 ZAT_CNMA_CMD,strValue,sizeof(strValue));
 #endif

-#if (0x3d3+290-0x4f5)
-CHAR strValue[(0x1eef+828-0x2229)]={(0x38f+7218-0x1fc1)};if(needAck){snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0x103+6332-0x19be));}else{snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0xfa4+2455-0x1939));}zSvr_InnerSendMsg(
+#if (0x1e2a+969-0x21f3)
+CHAR strValue[(0x1758+27-0x1771)]={(0xf4+4426-0x123e)};if(needAck){snprintf(
+strValue,sizeof(strValue),"\x25\x64",(0x978+409-0xb10));}else{snprintf(strValue,
+sizeof(strValue),"\x25\x64",(0x13b9+4306-0x2489));}zSvr_InnerSendMsg(
 ZUFI_MODULE_ID_AT_LOCAL,ZUFI_MODULE_ID_AT_UNSOLI,MSG_CMD_AT_CNMA,strlen(strValue
 ),strValue);
 #endif

-if(needAck){zSms_SendCnmaReq((0x84f+7621-0x2613));}else{zSms_SendCnmaReq(
-(0xe67+815-0x1194));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq*
-ptSendMsg){if(NULL==ptSendMsg||(0x1023+773-0x1328)==ptSendMsg->receiver_count){
+if(needAck){zSms_SendCnmaReq((0xa90+2838-0x15a5));}else{zSms_SendCnmaReq(
+(0x74b+1771-0xe34));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq*
+ptSendMsg){if(NULL==ptSendMsg||(0x122b+2873-0x1d64)==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[(0xa2c+3256-0x16e4)],ptSendMsg->
+,ptSendMsg->receiver_count,ptSendMsg->dest_num[(0x6a1+2370-0xfe3)],ptSendMsg->
 msg_len,ptSendMsg->id);
-#if (0x14a2+45-0x14ce)
+#if (0x23d+6646-0x1c32)
 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=(0x7f9+1255-0xce0);
-if(ptSendMsg->isDelete==TRUE||-(0x9d8+6802-0x2469)!=ptSendMsg->id){(void)
+sc_cfg_set(NV_SMS_SEND_RESULT,"");g_zUfiSms_SendFailedCount=(0x15dd+2080-0x1dfd)
+;if(ptSendMsg->isDelete==TRUE||-(0x1f7+4827-0x14d1)!=ptSendMsg->id){(void)
 zUfiSms_DeleteDraftSms(ptSendMsg->id);}zUfiSms_SetGlobalDcsLang(ptSendMsg->dcs);
-memset(&g_zUfiSms_GroupSms,(0x1043+4223-0x20c2),sizeof(g_zUfiSms_GroupSms));if(
+memset(&g_zUfiSms_GroupSms,(0x558+6346-0x1e22),sizeof(g_zUfiSms_GroupSms));if(
 ZUFI_FAIL==zUfiSms_FillGroupSms(ptSendMsg,&g_zUfiSms_GroupSms)){return 
-WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0x1a8a+858-0x1de4),sizeof(
+WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0x119f+787-0x14b2),sizeof(
 g_zUfiSms_ConcatSms));g_zUfiSms_UnitLen=zUfiSms_FillConcatSms(ptSendMsg,&
 g_zUfiSms_ConcatSms);g_zUfiSms_IsConcatSendSuc=TRUE;g_zUfiSms_CurConcatSegNo=
-(0x1122+146-0x11b4);memset(g_zUfiSms_DbStoreData,(0xdfb+2331-0x1716),sizeof(
-g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0x1c2c+2554-0x261c)){
-g_displaymode=(0x9f3+7452-0x270e);at_print(LOG_DEBUG,
+(0xc40+3342-0x194e);memset(g_zUfiSms_DbStoreData,(0xd77+2140-0x15d3),sizeof(
+g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0x51+9339-0x24c2)){
+g_displaymode=(0x599+1828-0xcbc);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=(0x1646+3267-0x2309);at_print(LOG_DEBUG,
+);}else{g_displaymode=(0x1a69+454-0x1c2f);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=(0x1d7+2768-0xca7);T_zUfiSms_CmdStatus result=
+ tGroupSms;int iSmsLen=(0x8f8+3028-0x14cc);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,(0x2267+624-0x24d7),sizeof(T_zUfiSms_ConcatInfo));memset(&
-tGroupSms,(0x149d+3936-0x23fd),sizeof(T_zUfiSms_GroupInfo));(void)
+memset(&tConcatSms,(0x496+5289-0x193f),sizeof(T_zUfiSms_ConcatInfo));memset(&
+tGroupSms,(0xdd+8482-0x21ff),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=
-(0xe1d+2778-0x18f7);tGroupSms.current_receiver<tGroupSms.total_receiver;
-tGroupSms.current_receiver++){tConcatSms.current_sending=(0x15b5+929-0x1956);
-result=zUfiSms_SaveSmsToDb(pSaveBuff,&tConcatSms,&tGroupSms,iSmsLen);at_print(
-LOG_DEBUG,
+(0x86+3004-0xc42);tGroupSms.current_receiver<tGroupSms.total_receiver;tGroupSms.
+current_receiver++){tConcatSms.current_sending=(0x1169+1779-0x185c);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[(0xead+6174-0x26cb)]);(void)
+,ptDelBuff->all_or_count,ptDelBuff->id[(0xd3d+2884-0x1881)]);(void)
 zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_ChangeMainState(
-SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0xd60+3679-0x1bbf),sizeof(
+SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0x1999+415-0x1b38),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((0x222c+998-0x2612)<
+,g_zUfiSms_DelMsg.nv_count,g_zUfiSms_DelMsg.sim_count);if((0xd61+2485-0x1716)<
 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,113 @@
 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((0xbfb+1215-0x10ba));}if(memoryFullbeforeDelete&&!
+);zSms_SendZmenaReq((0x3f7+4428-0x1543));}if(memoryFullbeforeDelete&&!
 g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]||unreadBeforeDelete&&!
 zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_DEFAULT);}}if((0x26+9102-0x23b4)<g_zUfiSms_DelMsg.sim_count){result=
+MSG_SMS_DEFAULT);}}if((0x2375+575-0x25b4)<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=(0x1636+139-0x16c1);
-T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0x1a0+3231-0xe0d)]={
-(0xa9c+5508-0x2020)};if(NULL==ptModifyBuff){at_print(LOG_ERR,
+T_zUfiSms_ModifyFlag*ptModifyBuff){unsigned long i=(0x828+2093-0x1055);
+T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0xeec+1912-0x1632)]=
+{(0xa8b+2517-0x1460)};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=(0x7f0+6183-0x2017);i<ptModifyBuff->total_id;i++){if(
-ptModifyBuff->id[i]<(0x2031+1232-0x2500)||ZUFI_FAIL==zUfiSms_UpdateSmsTagInDb(
+WMS_CMD_FAILED;}for(i=(0x104f+2891-0x1b9a);i<ptModifyBuff->total_id;i++){if(
+ptModifyBuff->id[i]<(0x99c+4988-0x1d17)||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[(0x63c+7254-0x2292)])){return ZUFI_FAIL;}if((0x881+1456-0xe31)
-==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_READING);}if((0x883+1299-0xd96)==strcmp(acStorePos,ZTE_WMS_DB_SIM_TABLE)
-&&ptModifyBuff->total_id>(0x615+6342-0x1edb)){zUfiSms_ModifyModemSms(
-ptModifyBuff);}return result;}T_zUfiSms_CmdStatus zUfiSms_SetSmsPara(
-T_zUfiSms_ParaInfo*ptParaBuff){int atRes=(0x844+2161-0x10b5);CHAR sca[
-ZTE_WMS_ADDRESS_DIGIT_MAX_V01+(0xd7c+3986-0x1d0d)]={(0xed9+2402-0x183b)};CHAR 
-store[(0x7b6+8016-0x26f2)]={(0xc04+27-0xc1f)};CHAR defaultStore[
-(0xf18+2788-0x19ca)]={(0xf34+3405-0x1c81)};if(ptParaBuff==ZUFI_NULL){return 
-WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=(0x98d+5322-0x1e57)){strncpy(sca,
-ptParaBuff->sca,sizeof(sca)-(0x951+5949-0x208d));at_print(LOG_DEBUG,
+ptModifyBuff->id[(0xf33+1539-0x1536)])){return ZUFI_FAIL;}if(
+(0x1191+1685-0x1826)==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){
+zUfiSms_SendSmsStatusInfo(MSG_SMS_READING);}if((0x13e0+3481-0x2179)==strcmp(
+acStorePos,ZTE_WMS_DB_SIM_TABLE)&&ptModifyBuff->total_id>(0xa06+2412-0x1372)){
+zUfiSms_ModifyModemSms(ptModifyBuff);}return result;}T_zUfiSms_CmdStatus 
+zUfiSms_SetSmsPara(T_zUfiSms_ParaInfo*ptParaBuff){int atRes=(0x17e6+1870-0x1f34)
+;CHAR sca[ZTE_WMS_ADDRESS_DIGIT_MAX_V01+(0x2366+119-0x23dc)]={
+(0x153f+3609-0x2358)};CHAR store[(0x573+719-0x82e)]={(0x64d+7345-0x22fe)};CHAR 
+defaultStore[(0x490+1346-0x9a0)]={(0x199c+965-0x1d61)};if(ptParaBuff==ZUFI_NULL)
+{return WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=(0x1b88+477-0x1d65)){strncpy
+(sca,ptParaBuff->sca,sizeof(sca)-(0x136+5476-0x1699));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')&&((0x2513+370-0x2685)!=strcmp(
-defaultStore,ptParaBuff->default_store))){{strncpy(store,ptParaBuff->
-default_store,sizeof(store)-(0xf4f+3387-0x1c89));}atRes=zSms_SendCnmiReq(store);
-if(atRes!=ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0x1501+3451-0x227b)==
+if((*(ptParaBuff->default_store)!='\0')&&((0xdb+3542-0xeb1)!=strcmp(defaultStore
+,ptParaBuff->default_store))){{strncpy(store,ptParaBuff->default_store,sizeof(
+store)-(0x7e4+4140-0x180f));}atRes=zSms_SendCnmiReq(store);if(atRes!=
+ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0x1211+2313-0x1b19)==
 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[(0x423+8585-0x25a7)]={(0xeef+3868-0x1e0b)};char remind_flag[
-(0xd2a+6370-0x2607)];int sms_count=(0x4ed+1530-0xae7);int remind_count=
-(0x222d+757-0x2522);memset(sms_rec_flag,(0x17c+7541-0x1ef1),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<(0x1e53+572-0x208f)||sms_count>INT_MAX
--(0x16da+679-0x1980)){at_print(LOG_ERR,
+char sms_rec_flag[(0xdd6+3641-0x1c0a)]={(0xffd+4070-0x1fe3)};char remind_flag[
+(0x1038+3599-0x1e42)];int sms_count=(0x4c8+8765-0x2705);int remind_count=
+(0x5d5+4348-0x16d1);memset(sms_rec_flag,(0xe66+305-0xf97),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<(0xe58+5439-0x2397)||sms_count>INT_MAX
+-(0x6d5+3172-0x1338)){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,(0xa0b+6619-0x23e6),sizeof(sms_rec_flag)
-);snprintf(sms_rec_flag,sizeof(sms_rec_flag),"\x25\x64",sms_count+
-(0x59d+1892-0xd00));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);
+,sms_count);return;}memset(sms_rec_flag,(0x1448+4487-0x25cf),sizeof(sms_rec_flag
+));snprintf(sms_rec_flag,sizeof(sms_rec_flag),"\x25\x64",sms_count+
+(0x1c50+480-0x1e2f));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);
 sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED_LED,sms_rec_flag);memset(remind_flag,
-(0x971+3965-0x18ee),sizeof(remind_flag));snprintf(remind_flag,sizeof(remind_flag
-),"\x25\x64",remind_count+(0x4b3+616-0x71a));sc_cfg_set(
+(0xd4d+5510-0x22d3),sizeof(remind_flag));snprintf(remind_flag,sizeof(remind_flag
+),"\x25\x64",remind_count+(0x658+7394-0x2339));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]={
-(0x1283+17-0x1294)};T_zUfiSms_DbStoreData tDbStoreData={(0x9b5+670-0xc53)};int 
-isPushSms=(0x685+5742-0x1cf3);if(strcmp(ptRespData->pdu,"")==(0xb31+6011-0x22ac)
-){CHAR srState[(0x1838+1111-0x1c5d)]={(0x77c+6459-0x20b7)};sc_cfg_get(
-NV_SR_STATE,srState,sizeof(srState));if((0x3cc+665-0x665)!=strcmp(srState,
+(0x1f1+7287-0x1e68)};T_zUfiSms_DbStoreData tDbStoreData={(0x34+4925-0x1371)};int
+ isPushSms=(0xc2+5372-0x15be);if(strcmp(ptRespData->pdu,"")==(0xf2c+5564-0x24e8)
+){CHAR srState[(0x1cba+1604-0x22cc)]={(0xf82+5704-0x25ca)};sc_cfg_get(
+NV_SR_STATE,srState,sizeof(srState));if((0x1e13+1441-0x23b4)!=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(
-(0x1f1+9155-0x25af)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
+(0x50c+1740-0xbd3)==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!=
-(0x3e5+1074-0x816)){return(0xa19+5796-0x20bd);}zUfiSms_GetCurrentRecvTotalSeq(
-data,pmsg);at_print(LOG_DEBUG,
+(0x1a2f+1783-0x2125)){return(0x131c+2459-0x1cb7);}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[(0x5f9+3191-0x1270)],data->
-concat_info[(0xc58+4419-0x1d9a)],data->concat_info[(0x9cb+4296-0x1a91)]);if(data
-->concat_info[(0x8af+778-0xbb8)]==atoi(pmsg->total_seq)){return
-(0x1477+178-0x1529);}return-(0x222+5550-0x17cf);}void 
-zUfiSms_TrafficChangeSmsTag(T_zUfiSms_DbStoreData*data){CHAR smsNumber[
-(0x2115+301-0x2210)]={(0x834+2754-0x12f6)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
-smsNumber,sizeof(smsNumber));if((0x4f4+3639-0x132b)==strcmp(smsNumber,data->
-number)){data->tag=WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=
-(0xc1d+4650-0x1e46);}}void zUfiSms_HandleTrafficSms(T_zUfiSms_DbStoreData*data){
-int iSmsId=(0x1084+4173-0x20d1);SMS_MSG_INFO msg={(0x17+3450-0xd91)};CHAR 
-smsNumber[(0x1f24+420-0x2096)]={(0x1aa+6209-0x19eb)};sc_cfg_get(
-NV_TRAFFIC_SMS_NUMBER,smsNumber,sizeof(smsNumber));at_print(LOG_DEBUG,
+,pmsg->id,atoi(pmsg->total_seq),data->concat_info[(0xe26+5367-0x231d)],data->
+concat_info[(0xa5b+629-0xccf)],data->concat_info[(0x52a+2515-0xefb)]);if(data->
+concat_info[(0x1897+323-0x19d9)]==atoi(pmsg->total_seq)){return(0x2d2+877-0x63f)
+;}return-(0x742+3053-0x132e);}void zUfiSms_TrafficChangeSmsTag(
+T_zUfiSms_DbStoreData*data){CHAR smsNumber[(0x9a5+1480-0xf3b)]={
+(0xd1+1599-0x710)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,smsNumber,sizeof(smsNumber))
+;if((0x526+7827-0x23b9)==strcmp(smsNumber,data->number)){data->tag=
+WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=(0x9a3+6373-0x2287);}}void 
+zUfiSms_HandleTrafficSms(T_zUfiSms_DbStoreData*data){int iSmsId=
+(0x1d6a+2405-0x26cf);SMS_MSG_INFO msg={(0x12f5+3894-0x222b)};CHAR smsNumber[
+(0x46+5273-0x14ad)]={(0x1127+3721-0x1fb0)};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((0x1248+3034-0x1e22)==strcmp(smsNumber,data->number)
-){if((0xfb7+868-0x131b)!=zUfiSms_CheckIfWholeSms(data,&msg)){at_print(LOG_DEBUG,
+,data->number,smsNumber);if((0xa3f+1937-0x11d0)==strcmp(smsNumber,data->number))
+{if((0x1e0b+837-0x2150)!=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]={
-(0x12ba+1103-0x1709)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x499+2497-0xe5a);SMS_PARAM one_sms={(0x204+6709-0x1c39)};int 
-unread_sms_before_recv_new_sms=(0x49f+8771-0x26e2);memset(&tDbStoreData,
-(0x1771+2571-0x217c),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x874+6960-0x23a4)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0xabc+4767-0x1d5b);SMS_PARAM one_sms={(0x132+968-0x4fa)};int 
+unread_sms_before_recv_new_sms=(0x1758+1761-0x1e39);memset(&tDbStoreData,
+(0x178+6575-0x1b27),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,"")==(0x37f+6041-0x1b18)){CHAR srState[
-(0x1cd7+1063-0x20cc)]={(0x66+7635-0x1e39)};sc_cfg_get(NV_SR_STATE,srState,sizeof
-(srState));if((0x93c+5267-0x1dcf)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0x1c71+1081-0x20aa)){CHAR srState[
+(0x194+4247-0x11f9)]={(0x1fdc+1455-0x258b)};sc_cfg_get(NV_SR_STATE,srState,
+sizeof(srState));if((0xd53+4360-0x1e5b)!=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((0xb48+1324-0x1074));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0xd37+6227-0x258a));}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 +265,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((0x6c2+7883-0x2588)==ptRespData->stat){(void)
+ptRespData->pdu));if((0x356+5032-0x16f9)==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=(0x1714+854-0x1a69);}else{
-unread_sms_before_recv_new_sms=(0x5b0+7090-0x2162);}zUfiSms_TrafficChangeSmsTag(
+unread_sms_before_recv_new_sms=(0x1286+1090-0x16c7);}else{
+unread_sms_before_recv_new_sms=(0x631+3575-0x1428);}zUfiSms_TrafficChangeSmsTag(
 &tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,
-iStorePos,-(0xf85+472-0x115c))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
-(0xc2b+666-0xec4));return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){
+iStorePos,-(0x57a+3187-0x11ec))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
+(0x892+2784-0x1371));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]={
-(0x4e1+6632-0x1ec9)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x404+6492-0x1d60);SMS_PARAM one_sms={(0x13ea+2643-0x1e3d)};CHAR defaultStore[
-(0x129d+2442-0x1bf5)]={(0x308+1580-0x934)};memset(&tDbStoreData,
-(0x25+3153-0xc76),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x10fb+4117-0x2110)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x11f0+144-0x1280);SMS_PARAM one_sms={(0xf04+1996-0x16d0)};CHAR defaultStore[
+(0xfe9+5810-0x2669)]={(0x769+5147-0x1b84)};memset(&tDbStoreData,
+(0xaa5+6838-0x255b),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,"")==(0x647+5195-0x1a92)){CHAR srState[(0x4e3+2649-0xf0a)
-]={(0x96b+7510-0x26c1)};sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if(
-(0x1a64+2557-0x2461)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0x15e5+1698-0x1c87)){CHAR srState[
+(0x2063+1591-0x2668)]={(0x60c+869-0x971)};sc_cfg_get(NV_SR_STATE,srState,sizeof(
+srState));if((0x96c+227-0xa4f)!=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,50 +299,7 @@
 ,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((0x951+823-0xc88));}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((0x889+1938-0x1016)
-==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((0x173b+2703-0x21ca)==
-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,-(0x1331+2108-0x1b6c))){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]={
-(0x5e1+1167-0xa70)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x332+716-0x5fe);SMS_PARAM one_sms={(0x2a5+8058-0x221f)};int 
-unread_sms_before_recv_new_sms=(0xe63+1465-0x141c);memset(&tDbStoreData,
-(0x59a+1118-0x9f8),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,"")==
-(0x151d+4264-0x25c5)){CHAR srState[(0x607+7591-0x237c)]={(0x2a+6994-0x1b7c)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x12e0+3074-0x1ee2)!=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((0xf29+2879-0x1a68));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x2cd+5735-0x1934));}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,
@@ -354,81 +311,123 @@
 ,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(
-(0x1b3a+2921-0x269e)==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=(0x195c+1680-0x1feb);}else{
-unread_sms_before_recv_new_sms=(0x22e1+385-0x2462);}if(ZTE_WMS_NV_MEMORY_FULL==
-zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-(0x1169+2923-0x1cd3))){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={(0xedc+2085-0x1701)};g_zUfiSms_DbStoreData->msg_displaymode=
-g_displaymode;if(g_zUfiSms_DbStoreData->msg_displaymode!=(0x907+253-0xa03)){if(
-(0x7bb+7670-0x25b1)==zUfiSms_WriteSmsToDb(&g_zUfiSms_DbStoreData[
-g_zUfiSms_CurConcatSegNo-(0x86+7032-0x1bfd)],WMS_STORAGE_TYPE_NV_V01,-
-(0x992+7395-0x2674))){g_zUfiSms_MsgRefer++;(void)zUfiSms_SetMaxReference(
-g_zUfiSms_MsgRefer);}}printf(
+(0x110d+3801-0x1fe1)==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(
+(0x569+2908-0x10c5)==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,-
+(0x1cad+716-0x1f78))){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]={
+(0x16e7+1626-0x1d41)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x134+3751-0xfdb);SMS_PARAM one_sms={(0x65b+637-0x8d8)};int 
+unread_sms_before_recv_new_sms=(0xf6+6844-0x1bb2);memset(&tDbStoreData,
+(0xdb0+4404-0x1ee4),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,"")==
+(0x851+4525-0x19fe)){CHAR srState[(0x769+4996-0x1abb)]={(0x2031+585-0x227a)};
+sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x9f2+4175-0x1a41)!=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((0x3d3+6718-0x1e11));}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((0x14a+840-0x48d)==
+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=
+(0x1ba7+383-0x1d25);}else{unread_sms_before_recv_new_sms=(0xf4+7001-0x1c4d);}if(
+ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-
+(0x1c72+1102-0x20bf))){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={(0x1257+3700-0x20cb)};g_zUfiSms_DbStoreData
+->msg_displaymode=g_displaymode;if(g_zUfiSms_DbStoreData->msg_displaymode!=
+(0xe2c+5007-0x21ba)){if((0x16e1+323-0x1824)==zUfiSms_WriteSmsToDb(&
+g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0xd46+2732-0x17f1)],
+WMS_STORAGE_TYPE_NV_V01,-(0xa79+2-0xa7a))){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=
-(0x87a+7807-0x26f9);memset((void*)&tStatusInfo,(0x91+5267-0x1524),sizeof(
+(0x85c+6842-0x2316);memset((void*)&tStatusInfo,(0x1538+868-0x189c),sizeof(
 T_zUfiSms_StatusInfo));tStatusInfo.err_code=ZTE_SMS_CMS_NONE;tStatusInfo.
 send_failed_count=g_zUfiSms_SendFailedCount;tStatusInfo.delete_failed_count=
-(0x17b1+2425-0x212a);if(g_zUfiSms_SendFailedCount==(0x14f7+3191-0x216e)){
+(0xf6f+4831-0x224e);if(g_zUfiSms_SendFailedCount==(0x1714+1537-0x1d15)){
 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={(0x2e6+1648-0x956)};int 
-errs=(0x1348+4815-0x2617);key_t req_id=ftok(
+int zte_fota_notifyPushMsg(int cmd){FOTA_MSG_BUF msg={(0x80f+5258-0x1c99)};int 
+errs=(0xb17+6815-0x25b6);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"
-,(0x898+6005-0x200c));int msgid=msgget(req_id,(0x7d0+229-0x8b5));if(msgid!=-
-(0x7a1+6778-0x221a)){msg.mtype=(0x11c9+5117-0x25c5);msg.mtext[
-(0x57c+4582-0x1762)]=WEBUI_NOTIFY_PUSH_MSG_;errs=msgsnd(msgid,&msg,sizeof(msg)-
-sizeof(long),(0x14f3+4041-0x24bc));}return(errs<(0x1b0+1537-0x7b1)?
-(0x920+3481-0x16b9):(0xf5b+1260-0x1446));}
-#if (0x901+1225-0xdca)  
+,(0xc32+2601-0x165a));int msgid=msgget(req_id,(0x1063+5052-0x241f));if(msgid!=-
+(0x89c+4519-0x1a42)){msg.mtype=(0x999+2805-0x148d);msg.mtext[(0x47f+8144-0x244f)
+]=WEBUI_NOTIFY_PUSH_MSG_;errs=msgsnd(msgid,&msg,sizeof(msg)-sizeof(long),
+(0x1129+2903-0x1c80));}return(errs<(0x16a6+3368-0x23ce)?(0xea0+360-0x1008):
+(0x21c2+840-0x2509));}
+#if (0x1cb6+84-0x1d0a)  
 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 (0x98d+1812-0x10a1) 
+#if (0x2103+1166-0x2591) 
 int atSms_SendZmglReq(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){int res
-=(0x58d+4152-0x15c5);pthread_mutex_lock(&smsdb_mutex);res=zSvr_SendAtSyn(
+=(0x1d3+6455-0x1b0a);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={(0xfc9+5830-0x268f)};sc_cfg_set(NV_SMS_LOAD_RESULT
+T_zUfiSms_StatusInfo tStatus={(0xbef+1855-0x132e)};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={
-(0x17a0+2225-0x2051)};sc_cfg_set(NV_SMS_LOAD_RESULT,"\x66\x61\x69\x6c");
+(0xcbd+1910-0x1433)};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={
-(0xa4a+4878-0x1d58)};printf(
+(0x1821+2315-0x212c)};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,
-(0x1495+4594-0x2687),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
-->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x134b+301-0x1477));printf(
+(0xed9+6166-0x26ef),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
+->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x1418+2735-0x1ec6));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[(0xe0a+6347-0x26c1)
-]={(0x12bd+3693-0x212a)};iSmsIndex=atoi(pAtCmdPara);printf(
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x8d+4324-0x115d)]
+={(0x124+1981-0x8e1)};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 (0x114d+5259-0x25d8)

-static T_zUfiSms_SmsItem tSmsPara={(0x4b1+276-0x5c5)};T_zUfiSms_CmgrSetRsp 
-tCmgrRsp={(0xdba+661-0x104f)};printf(
+#if (0x1bf4+2591-0x2613)

+static T_zUfiSms_SmsItem tSmsPara={(0x2229+254-0x2327)};T_zUfiSms_CmgrSetRsp 
+tCmgrRsp={(0x1216+4203-0x2281)};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(
@@ -437,14 +436,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,(0x15b+7594-0x1f05),sizeof(T_zUfiSms_SmsItem));(void)
-zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0x140+5374-0x163c));tSmsPara.
+{memset(&tSmsPara,(0xf0f+6062-0x26bd),sizeof(T_zUfiSms_SmsItem));(void)
+zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0x5a1+3458-0x1321));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[(0x19e6+2-0x19d4)]={(0xaaf+5297-0x1f60)};iSmsIndex=atoi(pAtCmdPara);
+pAtcmdStr[(0xba5+1287-0x1098)]={(0xec9+5191-0x2310)};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),
@@ -457,8 +456,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={(0x1062+3695-0x1ed1)};T_zUfiSms_CmgrSetRsp tCmgrRsp=
-{(0xccf+3576-0x1ac7)};printf(
+T_zUfiSms_SmsItem tSmsPara={(0x1530+4069-0x2515)};T_zUfiSms_CmgrSetRsp tCmgrRsp=
+{(0x4e6+3778-0x13a8)};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(
@@ -466,56 +465,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,(0x523+6163-0x1d36),sizeof
+NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,(0x782+4044-0x174e),sizeof
 (T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine->resParas,sizeof(pResLine
-->resParas),&tSmsPara,(0x40b+2654-0xe67));tSmsPara.index=iSmsIndex;printf(
+->resParas),&tSmsPara,(0x576+6988-0x20c0));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[(0x1619+526-0x1813)
-]={(0x1750+2809-0x2249)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
-"\x41\x54\x2b\x43\x4d\x47\x44\x3d\x25\x73" "\r\n",pAtCmdPara);return 
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[
+(0x11a9+2569-0x1b9e)]={(0xa6c+4915-0x1d9f)};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[(0xd41+2725-0x17dc)]={(0x1eb+3800-0x10c3)};
-int used=(0x407+4066-0x13e9);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+atSms_RecvCmgdOk(VOID){CHAR strUsed[(0x12fb+4378-0x240b)]={(0xb2c+5026-0x1ece)};
+int used=(0x1451+3444-0x21c5);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)-(0xb67+5196-0x1fb2);if(used<(0x762+937-0xb0b)){used=(0x7d6+973-0xba3);}
-memset(&strUsed,(0x20f6+657-0x2387),(0xde8+6070-0x2594));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(
+strUsed)-(0x18b1+2329-0x21c9);if(used<(0x17e4+1171-0x1c77)){used=
+(0x597+1817-0xcb0);}memset(&strUsed,(0x15ac+2140-0x1e08),(0x1f6+7657-0x1fd5));
+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[(0x1c84+983-0x2051)]={
-(0xc49+2424-0x15c1)};CHAR strTotal[(0x56a+3635-0x1393)]={(0xf18+2345-0x1841)};
-CHAR strUsed[(0x5fc+2898-0x1144)]={(0x1a17+2250-0x22e1)};int total=
-(0x845+2127-0x1094);int used=(0x872+5798-0x1f18);int remain=(0xf74+3779-0x1e37);
+);}VOID atSms_RecvCmgdFinish(VOID){char StrValue[(0x120+5416-0x163e)]={
+(0x1296+1141-0x170b)};CHAR strTotal[(0x409+3260-0x10bb)]={(0xb10+4542-0x1cce)};
+CHAR strUsed[(0x18bf+2074-0x20cf)]={(0x1778+3081-0x2381)};int total=
+(0x243b+721-0x270c);int used=(0x940+571-0xb7b);int remain=(0x10d7+921-0x1470);
 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<(0x2078+1178-0x2512)){remain=
-(0xecd+3185-0x1b3e);}memset(&StrValue,(0x33a+1109-0x78f),(0x7df+1582-0xe03));
+total=atoi(strTotal);remain=total-used;if(remain<(0x93f+5639-0x1f46)){remain=
+(0x1198+4877-0x24a5);}memset(&StrValue,(0xcc6+3704-0x1b3e),(0x561+1583-0xb86));
 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=(0x740+3241-0x13e9);CHAR pAtcmdStr[ZSMS_PDU_SIZE
-]={(0x6c0+7995-0x25fb)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+pAtRst,int atRstSize){int atRes=(0x1f36+1790-0x2634);CHAR pAtcmdStr[
+ZSMS_PDU_SIZE]={(0x6bd+5772-0x1d49)};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,(0x933+5519-0x1ec2),ZSMS_PDU_SIZE
-);if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-(0xa4a+1485-0x1016)){
-memcpy(pAtcmdStr,g_zUfiSms_FinalCmgsBuf.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));
-}else{printf(
+ZAT_RESULT_SMS){return atRes;}memset(pAtcmdStr,(0x328+6164-0x1b3c),ZSMS_PDU_SIZE
+);if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-(0x8ff+328-0xa46)){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-(0x265+4821-0x1538));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.
-pdu))=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0x6c+8849-0x22fd),atRstSize);return 
+ZSMS_PDU_SIZE-(0xa3a+1014-0xe2e));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.pdu
+))=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0x6e6+2543-0x10d5),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-(0x1587+4163-0x25c9)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0x25f+6890-0x1d48)].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");
@@ -523,16 +522,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-(0x1455+4781-0x2701)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x409+2826-0xf12)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x1fa8+414-0x2145)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x1eb+2830-0xcf8)){
 g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc(cid);}VOID 
 atSms_RecvCmgsRsp(T_zAt_AtRes*pResLine){return;}VOID atSms_RecvCmtRsp(
-T_zAt_AtRes*pResLine){CHAR needSMS[(0x3a8+2380-0xcc2)]={(0x1ab+5895-0x18b2)};
-sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x23f1+789-0x2706)==
+T_zAt_AtRes*pResLine){CHAR needSMS[(0x2289+1044-0x266b)]={(0x15fc+3279-0x22cb)};
+sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x678+8211-0x268b)==
 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={(0x6d2+3570-0x14c4)};
-T_zUfiSms_CmtSetRsp tCmtRsp={(0xf12+441-0x10cb)};if(NULL==pResLine){return;}
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0x554+7943-0x245b)};
+T_zUfiSms_CmtSetRsp tCmtRsp={(0x90f+7257-0x2568)};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==
@@ -542,119 +541,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,
-(0x2633+137-0x26bc),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0x651+3582-0x144f),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[
-(0x94c+7171-0x251d)]={(0x51+3978-0xfdb)};sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
-sizeof(needSMS));if((0x2f4+4647-0x151b)==strcmp(needSMS,"\x6e\x6f")){printf(
+(0xb67+5838-0x2203)]={(0x359+579-0x59c)};sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
+sizeof(needSMS));if((0xdcb+6124-0x25b7)==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[(0xa46+6941-0x2545)]={(0x104b+4851-0x233e)};char*
+);return;}char sms_Main_state[(0x17d8+2594-0x21dc)]={(0x9f1+2947-0x1574)};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")==
-(0x1174+3150-0x1dc2)){printf(
+(0x1cc1+1895-0x2428)){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(
-(0x440+6858-0x1f0a)==strncmp("\x53\x4d",memory,(0x8c1+5213-0x1d1c))){
+(0x1fd7+51-0x200a)==strncmp("\x53\x4d",memory,(0xbbf+6011-0x2338))){
 zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0x1da4+2153-0x2609);printf(
+SMS_STATE_RECVING);memory+=(0xcd4+369-0xe41);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[(0x362+3196-0xfac)]={(0x880+5542-0x1e26)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x207+3149-0xe54)==strcmp(
+){CHAR needSMS[(0x18f+1811-0x870)]={(0x15b0+2771-0x2083)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xab6+4143-0x1ae5)==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={(0x12e2+3804-0x21be)};
-T_zUfiSms_CmgrSetRsp tCmgrRsp={(0x2f+8270-0x207d)};if(NULL==pResLine){return;}if
-(pResLine->pduFlag==ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0x165+5515-0x16f0)};
+T_zUfiSms_CmgrSetRsp tCmgrRsp={(0x2107+315-0x2242)};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,
-(0x9da+347-0xb35),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0xfd7+4591-0x21c6),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[
-(0x76a+4519-0x18df)]={(0x1066+2419-0x19d9)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x6f9+7757-0x2546)==strcmp(needSMS,"\x6e\x6f")){
+(0x759+5919-0x1e46)]={(0x31a+7848-0x21c2)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0x57+3640-0xe8f)==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[(0x258+7038-0x1db8)]={(0x1c3f+1106-0x2091)};char*
+);return;}char sms_Main_state[(0xeb4+6122-0x2680)]={(0x6f7+6225-0x1f48)};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")==
-(0x9a+3559-0xe81)){printf(
+(0x1db1+380-0x1f2d)){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((0x207d+239-0x216c)==strncmp("\x53\x4d",memory,(0x2102+1180-0x259c))
-){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0x1885+2652-0x22dd);printf(
+,memory);if((0xc99+4197-0x1cfe)==strncmp("\x53\x4d",memory,(0x1d7+5072-0x15a5)))
+{zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
+SMS_STATE_RECVING);memory+=(0x1b6+362-0x31c);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[(0xe5f+5909-0x2560)]={
-(0xdfb+4485-0x1f80)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+ cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x1297+2604-0x1caf)]={
+(0x1730+3508-0x24e4)};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=(0xdf2+589-0x103f);CHAR pAtcmdStr[ZSMS_PDU_SIZE]
-={(0x55b+7565-0x22e8)};CHAR ackPduStr[(0x8b7+5849-0x1f5e)]={(0xffc+5349-0x24e1)}
-;if(atoi(pAtCmdPara)==(0x252+5936-0x1981)){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=(0x9b0+4226-0x1a32);CHAR pAtcmdStr[ZSMS_PDU_SIZE
+]={(0xa35+4546-0x1bf7)};CHAR ackPduStr[(0x1554+1937-0x1cb3)]={
+(0xd7d+4091-0x1d78)};if(atoi(pAtCmdPara)==(0x746+5562-0x1cff)){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(0xa0f+539-0xc2a);}else{zUfiSms_EncodePdu_DeliverReport(
-ackPduStr,(0xf7f+555-0x10d7));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+,pAtcmdStr);return(0x1a97+2121-0x22e0);}else{zUfiSms_EncodePdu_DeliverReport(
+ackPduStr,(0x692+280-0x6d7));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
 "\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73\x2c\x25\x64" "\r\n",pAtCmdPara,strlen(
-ackPduStr)/(0x7bd+682-0xa65));atRes=zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,
+ackPduStr)/(0xd2+862-0x42e));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,(0x1386+4733-0x2603),ZSMS_PDU_SIZE);if(strlen(
-ackPduStr)<ZSMS_PDU_SIZE-(0x1a7+7860-0x205a)){memcpy(pAtcmdStr,ackPduStr,strlen(
+,pAtcmdStr);memset(pAtcmdStr,(0x19e1+3290-0x26bb),ZSMS_PDU_SIZE);if(strlen(
+ackPduStr)<ZSMS_PDU_SIZE-(0xb16+3324-0x1811)){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-(0xd07+5959-0x244c));}*(
+,ackPduStr);memcpy(pAtcmdStr,ackPduStr,ZSMS_PDU_SIZE-(0x159+2033-0x948));}*(
 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,(0x1208+2303-0x1b07),atRstSize);return zSvr_SendAtSyn(
+,pAtcmdStr);memset(pAtRst,(0x1150+3722-0x1fda),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]={(0x199a+1544-0x1fa2)};int atRes=
-(0xf69+2605-0x1996);if(pDatabuf==NULL){return;}atRes=atSms_SendCmgdReq(pDatabuf,
+cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x10+5507-0x1593)};int atRes=
+(0xd23+597-0xf78);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]={(0x11ef+902-0x1575)}
+UINT8*pDatabuf,int cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x734+5154-0x1b56)}
 ;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]
-={(0x740+7773-0x259d)};int atRes=(0x6b+4278-0x1121);if(pDatabuf==NULL){printf(
+={(0x6a7+2666-0x1111)};int atRes=(0x1f6a+1275-0x2465);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]=
-{(0x1f1+5195-0x163c)};if(pDatabuf==NULL){printf(
+{(0x1ca6+1257-0x218f)};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/zte_mainctrl/netdev_proc.c b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
index 3e6f34c..02a0902 100755
--- a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
+++ b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
@@ -10,6 +10,8 @@
 #define DEFAULT_IPV4_DNS2 "8.8.8.8"
 #define DEFAULT_IPV6_DNS1 "240c::6666"
 #define DEFAULT_IPV6_DNS2 "2001:4860:4860::8888"
+#define DEFAULT_MINRTRADVINTERVAL 30
+#define DEFAULT_MAXRTRADVINTERVAL 100
 
 char defwan_if_old[ZTE_ROUTER_WAN_IF_NAME_LEN] = {0};
 char defwan6_if_old[ZTE_ROUTER_WAN_IF_NAME_LEN] = {0};
@@ -20,8 +22,8 @@
 static const char g_dhcp6_state_conf[]="interface %s {\n\tserver-preference 255;\n\trenew-time 6000;\n\trebind-time 9000;\n\tprefer-life-time 1300;\n\tvalid-life-time 2000;\n\tallow rapid-commit;\n\tlink %s {\n\t\tallow unicast;\n\t\tsend unicast;\n\t\tpool {\n\t\t\trange %s to %s/%d;\n\t\t};\n\t};\n\toption dns_servers %s %s;\n};";
 static const char g_dhcp6_stateless_conf[]="interface %s {\n\tlink %s {\n\t};\n\toption dns_servers %s %s;\n};";
 static const char g_radvd_state_conf[]="interface %s\n{\n\tAdvSendAdvert on;\n\tAdvManagedFlag on;\n};";
-static const char g_radvd_stateless_conf[]="interface %s\n{\n\tAdvSendAdvert on;\n\tAdvOtherConfigFlag on;\n\tMinRtrAdvInterval 30;\n\tMaxRtrAdvInterval 100;\n\n\tprefix %s/%d\n\t{\n\t\tAdvOnLink on;\n\t\tAdvAutonomous on;\n\t\tAdvRouterAddr off;\n\n\t\tAdvValidLifetime 300;\n\t\tAdvPreferredLifetime 120;\n\t};\n};";
-static const char g_radvd_autocfg_conf[]="interface %s\n{\n\tAdvSendAdvert on;\n\tAdvOtherConfigFlag off;\n\tMinRtrAdvInterval 30;\n\tMaxRtrAdvInterval 100;\n\n\tprefix %s/%d\n\t{\n\t\tAdvOnLink on;\n\t\tAdvAutonomous on;\n\t\tAdvRouterAddr off;\n\n\t\tAdvValidLifetime 300;\n\t\tAdvPreferredLifetime 120;\n\t};\n\tRDNSS %s %s\n\t{\n\t\tAdvRDNSSPreference 15;\n\t\tAdvRDNSSOpen on;\n\t};\n};";
+static const char g_radvd_stateless_conf[]="interface %s\n{\n\tAdvSendAdvert on;\n\tAdvOtherConfigFlag on;\n\tMinRtrAdvInterval %d;\n\tMaxRtrAdvInterval %d;\n\n\tprefix %s/%d\n\t{\n\t\tAdvOnLink on;\n\t\tAdvAutonomous on;\n\t\tAdvRouterAddr off;\n\n\t\tAdvValidLifetime 300;\n\t\tAdvPreferredLifetime 120;\n\t};\n};";
+static const char g_radvd_autocfg_conf[]="interface %s\n{\n\tAdvSendAdvert on;\n\tAdvOtherConfigFlag off;\n\tMinRtrAdvInterval %d;\n\tMaxRtrAdvInterval %d;\n\n\tprefix %s/%d\n\t{\n\t\tAdvOnLink on;\n\t\tAdvAutonomous on;\n\t\tAdvRouterAddr off;\n\n\t\tAdvValidLifetime 300;\n\t\tAdvPreferredLifetime 120;\n\t};\n\tRDNSS %s %s\n\t{\n\t\tAdvRDNSSPreference 15;\n\t\tAdvRDNSSOpen on;\n\t};\n};";
 
 struct dhcp_conf_info {
 	char *start;
@@ -415,8 +417,10 @@
 	info.lease_file = lease_file;
 	if(config_udhcpd(path, &info) < 0)
 		return NULL;
-	if(config_dns("/etc/resolv.conf", dns1_s, dns2_s) < 0)
-		return NULL;
+	if(default_route_check() == 0){
+		if(config_dns("/etc/resolv.conf", dns1_s, dns2_s) < 0)
+			return NULL;
+	}
 	snprintf(cmd, sizeof(cmd), "psext_up.sh %d", actinfo->c_id);
 	dhcp_down(actinfo->c_id);
 	return popen(cmd, "r");
@@ -466,17 +470,27 @@
 {
 	char buf[1024] = {0};
 	int buf_len;
+	int MinRtrAdvInterval = DEFAULT_MINRTRADVINTERVAL;
+	int MaxRtrAdvInterval = DEFAULT_MAXRTRADVINTERVAL;
+	char nv[16] = {0};
 
 	if (path == NULL || info == NULL){
 		slog(NET_PRINT, SLOG_ERR, "config_radvd Input err %p %p\n", path, info);
 		return -1;
 	}
+	sc_cfg_get("MaxRtrAdvInterval", nv, sizeof(nv));
+	MaxRtrAdvInterval = atoi(nv);
+	if(MaxRtrAdvInterval > 0){
+		if(MaxRtrAdvInterval > 1800)
+			MaxRtrAdvInterval = 1800;
+		MinRtrAdvInterval = 0.75 * MaxRtrAdvInterval;
+	}
 	if((M_O_flag & IPV6_RA_FLAG_MANAGED) || (M_O_flag & IPV6_RA_FLAG_PD)){
 		buf_len = snprintf(buf, sizeof(buf), g_radvd_state_conf, info->interface);
 	}else if(M_O_flag & IPV6_RA_FLAG_OTHER_CONFIG){
-		buf_len = snprintf(buf, sizeof(buf), g_radvd_stateless_conf, info->interface, info->prefix, info->prefix_len);
+		buf_len = snprintf(buf, sizeof(buf), g_radvd_stateless_conf, info->interface, MinRtrAdvInterval, MaxRtrAdvInterval,info->prefix, info->prefix_len);
 	}else{
-		buf_len = snprintf(buf, sizeof(buf), g_radvd_autocfg_conf, info->interface, info->prefix, info->prefix_len,
+		buf_len = snprintf(buf, sizeof(buf), g_radvd_autocfg_conf, info->interface, MinRtrAdvInterval, MaxRtrAdvInterval, info->prefix, info->prefix_len,
 			get_v6_dns(info->dns1, 1), get_v6_dns(info->dns2, 0));
 	}
 	if(buf_len <= 0 || buf_len != strlen(buf)){
@@ -518,7 +532,9 @@
 		char radvd_path[32] = {0};
 		
 		snprintf(nv_name, sizeof(nv_name), "%s%d_ipv6_local", nv_pswan, actinfo->c_id);
-		sc_cfg_set(nv_name, actinfo->act_info.ip6);
+		sc_cfg_get(nv_ip6, cmd, sizeof(cmd));
+		snprintf(pdp_ip6, sizeof(pdp_ip6), "fe80::%s", cmd);
+		sc_cfg_set(nv_name, pdp_ip6);//actinfo->act_info.ip6
 		memcpy(pdp_ip6, actinfo->act_info.ip6, IPV6ADDLEN_MAX -1);
 		if((prefix_len/16)*5 < IPV6ADDLEN_MAX)//kw
 			memcpy(pdp_ip6, prefix, (prefix_len/16)*5);
@@ -633,7 +649,9 @@
 		dhcp6s_down(c_id);
 		ndp_down(c_id);
 	}
-	net_write_file("/etc/resolv.conf", "", 0);
+	if(default_route_check() == 0){
+		net_write_file("/etc/resolv.conf", "", 0);
+	}
 	if(fpv4 != NULL)
 		pclose(fpv4);
 	if(fpv6 != NULL)
@@ -695,7 +713,7 @@
 		sc_cfg_set(buffer, actinfo->act_info.pri_dns);
 		snprintf(buffer, sizeof(buffer), "%s_secdns", wan_name);
 		sc_cfg_set(buffer, actinfo->act_info.sec_dns);
-		snprintf(buffer, sizeof(buffer), "ifconfig %s %s", wan_name, actinfo->act_info.ip);
+		snprintf(buffer, sizeof(buffer), "ifconfig %s %s netmask 255.255.255.0", wan_name, actinfo->act_info.ip);
 		system_cmd_ex(buffer);
 	}
 	//ifconfig up
@@ -809,7 +827,11 @@
 		defwan6_change = strcmp(defwan6_if_old, defwan_real);
 		
 		//Êý¾ÝÏÈͨ£¬ºó×öÆäËûÅäÖã¬×¢Òâµã: ·À»ðǽ¶Ìʱ¼äÄÚ¿ÉÄÜδÉúЧ
-		if (defwan4_change && (actinfo->act_info.ip46flag & V4_VALID))
+		if (
+#ifndef USE_CAP_SUPPORT
+			defwan4_change && 
+#endif
+			(actinfo->act_info.ip46flag & V4_VALID))
 		{
 			char nat_enable[4] = {0};
 			
@@ -866,7 +888,12 @@
 			ndp_down(0);
 			snprintf(buffer, sizeof(buffer), "zte_ndp -a -s br0 -d %s -l %s &", defwan_real, ndp_log);
 			system_cmd_ex(buffer);
-		
+#ifdef USE_CAP_SUPPORT
+			char dhcps_in_cap[4] = {0};
+			sc_cfg_get("dhcps_in_cap", dhcps_in_cap, sizeof(dhcps_in_cap));
+			if(atoi(dhcps_in_cap) != 1)
+#endif
+			{
 			//dhcp set
 			dhcp6s_down(0);
 			zxic_remove(dhcp6s_conf);
@@ -918,7 +945,8 @@
 				return;
 			}
 			zxic_remove(radvd_pidfile);
-			system_cmd_ex(buffer);	
+			system_cmd_ex(buffer);
+			}
 		}
 		system_cmd_ex("killall -9 dnsmasq");
 		snprintf(dns_path, sizeof(dns_path), "%s/dnsmasq.conf", path);	
@@ -1074,6 +1102,10 @@
 			net_write_file("/proc/sys/net/ipv4/ip_forward", "0", 1);
 			snprintf(cmd, sizeof(cmd),"route del default dev %s", wan_name);
 			system_cmd_ex(cmd);
+#ifdef USE_CAP_SUPPORT
+			snprintf(cmd, sizeof(cmd), "iptables -t nat -D POSTROUTING -o %s -j MASQUERADE", wan_name);
+			system_cmd_ex(cmd);
+#endif
 			sc_cfg_set("wan_ipaddr", "");
 			sc_cfg_set("default_cid", "");
 			sc_cfg_set("default_wan_name", "");