[Feature][task-view-306]merge P56U08(patch6) version
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I8e809511ac30c97228dd110c304b4a08f4af36d7
diff --git a/ap/app/Script/scripts/internet.sh b/ap/app/Script/scripts/internet.sh
index c741406..d432fe0 100755
--- a/ap/app/Script/scripts/internet.sh
+++ b/ap/app/Script/scripts/internet.sh
@@ -7,7 +7,7 @@
path_sh=`nv get path_sh`
. $path_sh/global.sh
echo "Info: internet.sh start" > $test_log
-echo "Info: `date +%m-%d %H:%M:%S`" >> $test_log
+echo "Info: `date +%m-%d_%H:%M:%S`" >> $test_log
genSysFiles()
{
diff --git a/ap/app/Script/scripts/lan.sh b/ap/app/Script/scripts/lan.sh
index c7dddbb..253dc29 100755
--- a/ap/app/Script/scripts/lan.sh
+++ b/ap/app/Script/scripts/lan.sh
@@ -55,6 +55,25 @@
echo "Error: brctl addif $br_name $device failed." >> $test_log
fi
done
+ br_node_num=`nv get br_node_num`
+ while [ $br_node_num -gt 0 ]
+ do
+ br_node_num=`expr $br_node_num - 1`
+ br_node=`nv get br_node$br_node_num`
+ if [ "x$br_node" != "x" ]; then
+ brname="bridge"$br_node_num
+ brctl addbr $brname 2>>$test_log
+ brctl setfd $brname 0.1 2>>$test_log
+ ifconfig $brname up 2>>$test_log
+ echo 1 > /proc/sys/net/ipv4/conf/$brname/arp_notify
+ for device in $br_node
+ do
+ ifconfig $device up 2>>$test_log
+ brctl addif $brname $device 2>>$test_log
+ nv set lan_name_$device=$brname
+ done
+ fi
+ done
IFS=$IFS_OLD
}
diff --git a/ap/app/Script/scripts/landev_updown.sh b/ap/app/Script/scripts/landev_updown.sh
old mode 100644
new mode 100755
index 8bf322e..e13c7ae
--- a/ap/app/Script/scripts/landev_updown.sh
+++ b/ap/app/Script/scripts/landev_updown.sh
@@ -38,7 +38,10 @@
fi
else
- br_name=`nv get lan_name`
+ br_name=`nv get lan_name_$landev_name`
+ if [ "x$br_name" == "x" ]; then
+ br_name=`nv get lan_name`
+ fi
ifconfig $landev_name down 2>>$test_log
if [ $? -ne 0 ];then
echo "Error: ifconfig $landev_name down failed." >> $test_log
@@ -60,7 +63,10 @@
echo "Error: ifconfig $landev_name down failed." >> $test_log
fi
if [ "-$lan_enable" == "-1" ]; then
- br_name=`nv get lan_name`
+ br_name=`nv get lan_name_$landev_name`
+ if [ "x$br_name" == "x" ]; then
+ br_name=`nv get lan_name`
+ fi
brctl delif $br_name $landev_name 2>>$test_log
if [ $? -ne 0 ];then
echo "Error: brctl delif $br_name $landev_name" >> $test_log
diff --git a/ap/app/Script/scripts/ppp_updown.sh b/ap/app/Script/scripts/ppp_updown.sh
index c9662d8..0081d4f 100755
--- a/ap/app/Script/scripts/ppp_updown.sh
+++ b/ap/app/Script/scripts/ppp_updown.sh
@@ -47,7 +47,9 @@
ps_ip=$ps_ip_ab"."$ps_ip_c1"."$ps_ip_d
- ifconfig $ps_if $ps_ip netmask 255.255.255.0 up
+ ifconfig $ps_if $ps_ip up 2>>$test_log
+ wan_nm=`nv get static_wan_netmask`
+ ifconfig $ps_if netmask $wan_nm 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.sh b/ap/app/Script/scripts/psext_up.sh
index 580ce71..e324c8d 100755
--- a/ap/app/Script/scripts/psext_up.sh
+++ b/ap/app/Script/scripts/psext_up.sh
@@ -44,7 +44,9 @@
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 netmask 255.255.255.0 up 2>>$test_log
+ ifconfig $ps_if $ps_ip up 2>>$test_log
+ wan_nm=`nv get static_wan_netmask`
+ ifconfig $ps_if netmask $wan_nm 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_updown.sh b/ap/app/Script/scripts/psext_updown.sh
index 9f74350..1117d1c 100755
--- a/ap/app/Script/scripts/psext_updown.sh
+++ b/ap/app/Script/scripts/psext_updown.sh
@@ -277,7 +277,9 @@
get_netmask_btrunk $pdp_ip
fi
- ifconfig $ps_if $ps_ip netmask 255.255.255.0 up 2>>$test_log
+ ifconfig $ps_if $ps_ip up 2>>$test_log
+ wan_nm=`nv get static_wan_netmask`
+ ifconfig $ps_if netmask $wan_nm 2>>$test_log
if [ $? -ne 0 ];then
echo "Error: ifconfig $ps_if $ps_ip up failed." >> $test_log
fi
@@ -326,7 +328,11 @@
br="br"$c_id
brctl addbr $br
brctl setfd $br 0.1
- ifconfig $br up 2>>$test_log
+ if [ "$eth_if" != "zvnet"$c_id ]; then
+ ifconfig $br up 2>>$test_log
+ else
+ ifconfig $br -arp up 2>>$test_log
+ fi
if [ $? -ne 0 ];then
echo "Error: ifconfig $br up failed." >> $test_log
fi
@@ -447,7 +453,11 @@
brctl addbr $ext_br
brctl setfd $ext_br 0.1
brctl addif $ext_br $eth_if
- ifconfig $ext_br up
+ if [ "$eth_if" != "zvnet"$c_id ]; then
+ ifconfig $ext_br up 2>>$test_log
+ else
+ ifconfig $ext_br -arp up 2>>$test_log
+ fi
get_ipaddr
dhcp_set
route_set
diff --git a/ap/app/Script/scripts/psext_updown_ipv6.sh b/ap/app/Script/scripts/psext_updown_ipv6.sh
index 83d471c..06bee36 100755
--- a/ap/app/Script/scripts/psext_updown_ipv6.sh
+++ b/ap/app/Script/scripts/psext_updown_ipv6.sh
@@ -151,7 +151,11 @@
brctl addbr $br_if
brctl setfd $br_if 0.1
nv set $br_if"_ipv6_ip"=$br_ip
- ifconfig $br_if up 2>>$test_log
+ if [ "$eth_if" != "zvnet"$c_id ]; then
+ ifconfig $br_if up 2>>$test_log
+ else
+ ifconfig $br_if -arp up 2>>$test_log
+ fi
if [ $? -ne 0 ];then
echo "Error: ifconfig $br_if up failed." >> $test_log
fi
diff --git a/ap/app/Script/scripts/wan_ipv4.sh b/ap/app/Script/scripts/wan_ipv4.sh
index 7aac6ff..e71850d 100755
--- a/ap/app/Script/scripts/wan_ipv4.sh
+++ b/ap/app/Script/scripts/wan_ipv4.sh
@@ -120,7 +120,9 @@
pswan_nm=`nv get $wan_if"_nm"`
#ifconfig $wan_if down 2>>$test_log
- ifconfig $wan_if $pswan_ip netmask 255.255.255.0 up 2>>$test_log
+ ifconfig $wan_if $pswan_ip up 2>>$test_log
+ wan_nm=`nv get static_wan_netmask`
+ ifconfig $wan_if netmask $wan_nm 2>>$test_log
if [ $? -ne 0 ];then
echo "Error: ifconfig $wan_if $pswan_ip up failed." >> $test_log
fi
@@ -299,4 +301,4 @@
tc_tbf.sh down $def_cid
fi
linkdown $2 $3
-fi
+fi
\ No newline at end of file
diff --git a/ap/app/busybox/src/procps/top.c b/ap/app/busybox/src/procps/top.c
old mode 100644
new mode 100755
index 2908bd3..7caf054
--- a/ap/app/busybox/src/procps/top.c
+++ b/ap/app/busybox/src/procps/top.c
@@ -631,8 +631,8 @@
#if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE
busy_jifs = cur_jif.busy - prev_jif.busy;
/* This happens if there were lots of short-lived processes
- * between two top updates (e.g. compilation) */
- if (total_pcpu < busy_jifs) total_pcpu = busy_jifs;
+ * between two top updates (e.g. compilation) , remove short-lived processes by zxic */
+ //if (total_pcpu < busy_jifs) total_pcpu = busy_jifs;
/*
* CPU% = s->pcpu/sum(s->pcpu) * busy_cpu_ticks/total_cpu_ticks
diff --git a/ap/app/hostapd-2.10/hostapd/libwpa_client.a b/ap/app/hostapd-2.10/hostapd/libwpa_client.a
old mode 100644
new mode 100755
index 1b34e65..60f329a
--- a/ap/app/hostapd-2.10/hostapd/libwpa_client.a
+++ b/ap/app/hostapd-2.10/hostapd/libwpa_client.a
Binary files differ
diff --git a/ap/app/wpa_supplicant-2.10/wpa_supplicant/libwpa_client.a b/ap/app/wpa_supplicant-2.10/wpa_supplicant/libwpa_client.a
index a8cddda..0183a76 100755
--- a/ap/app/wpa_supplicant-2.10/wpa_supplicant/libwpa_client.a
+++ b/ap/app/wpa_supplicant-2.10/wpa_supplicant/libwpa_client.a
Binary files differ
diff --git a/ap/app/zte_comm/at_ctl/src/atconfig/ps_normal.c b/ap/app/zte_comm/at_ctl/src/atconfig/ps_normal.c
index 24ec133..d6e5354 100755
--- a/ap/app/zte_comm/at_ctl/src/atconfig/ps_normal.c
+++ b/ap/app/zte_comm/at_ctl/src/atconfig/ps_normal.c
@@ -21,7 +21,7 @@
//bsim
#include <openssl/aes.h>
-
+#include "pub_debug_info.h"
//>>>sj.zhang add @2023-10-08 for fix the issue of timezone.
#define _XOPEN_SOURCE
extern long timezone;
@@ -94,6 +94,8 @@
#endif
extern struct defcid_mng_t g_defcid_mng;
char imsi[50] = {0};
+char MODULE_ID_AT_CTL_DEBUG[20] = "ap_at_ctl";
+
//zdm ÇëÕ×·áÈ·ÈÏÊÇ·ñÐèҪͬ²½µ½AP²à
//ºóÐøÓÃËøÍøÌæ´ú£¬ÆÕͨ°æ±¾²»Ëø
char* zurdy_convert_cmd(void *msg, struct at_context *context)
@@ -188,6 +190,7 @@
#endif
rtc_set_time(MODULE_ID_AT_CTL);
+ sc_debug_info_record(MODULE_ID_AT_CTL_DEBUG, "nitz time synchronization successful!\n");
return AT_END;
}
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 177a938..5313a0b 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
@@ -20,7 +20,7 @@
#include <sys/un.h>
#include "ext_socket_func.h"
#endif
-
+#include "pub_debug_info.h"
/*******************************************************************************
* Macro definitions *
******************************************************************************/
@@ -624,7 +624,7 @@
}
}
-
+extern int cap_is_active(void);
#if (APP_OS_TYPE == APP_OS_LINUX)
int at_sys_write(int fd,char *buf,int len)
{
@@ -633,6 +633,14 @@
int left_len = len;
char *pstr = buf;
struct at_channel_info * at_chan = at_context_find_chn_by_fd(fd);
+#ifdef USE_CAP_SUPPORT
+ if (check_is_farps(fd) && (cap_is_active() == 0)){
+ char at_buf[16] = {0};
+
+ strncpy(at_buf,buf,sizeof(at_buf)-1);
+ sc_debug_info_record("ap_at_ctl", "at:%s len:%d\n", at_buf, len);
+ }
+#endif
while(left_len > 0)
{
written_bytes = write(fd, pstr, left_len);
diff --git a/ap/app/zte_comm/at_ctl/src/atctrl/at_portmng.c b/ap/app/zte_comm/at_ctl/src/atctrl/at_portmng.c
index 36f368b..7f95335 100755
--- a/ap/app/zte_comm/at_ctl/src/atctrl/at_portmng.c
+++ b/ap/app/zte_comm/at_ctl/src/atctrl/at_portmng.c
@@ -118,21 +118,24 @@
if(FD_FAR_PS[ilde_idx] >= 0)
{
node = add_new_channel(FD_FAR_PS[ilde_idx],FAR_PS);
+ /* Started by AICoder, pid:p6022532d1840ac14e7f08df2029331eb584aebe */
if(node != NULL) {
+ /*¹Ø±Õ35/37/38/39ͨµÀÖ÷¶¯Éϱ¨*/
if(0 == at_strncmp(name, "/dev/rpmsg35", strlen(name)) ||
0 == at_strncmp(name, "/dev/rpmsg37", strlen(name)) ||
0 == at_strncmp(name, "/dev/rpmsg38", strlen(name)) ||
0 == at_strncmp(name, "/dev/rpmsg39", strlen(name))) {
node->attribution |= 1<<CH_AUTOIND;
}
- //if(node != NULL &&(strstr(name, "/dev/ttyGS0") != NULL || strstr(name, "/dev/ttyGS1") != NULL))
- if((0 == at_strncmp(name, "/dev/rpmsg36", strlen(name)) || 0 == at_strncmp(name, "/dev/rpmsg37", strlen(name)))) {
- node->reserved = 0;
+
+ if(0 == at_strncmp(name, "/dev/rpmsg36", strlen(name)) || 0 == at_strncmp(name, "/dev/rpmsg37", strlen(name))) {
+ node->reserved = 0;//×÷ΪԤÁôͨµÀ£¬ÔÚÇëÇóÃüÁîÑ¡Ôñfarpsʱºò£¬»áÑ¡Ôñ·¢ËÍ
}
else {
node->reserved = 1;
}
- }
+ }
+ /* Ended by AICoder, pid:p6022532d1840ac14e7f08df2029331eb584aebe */
memcpy(g_farps_port_info[ilde_idx].name,name,strlen(name));
g_farps_port_info[ilde_idx].fd = FD_FAR_PS[ilde_idx];
g_farps_port_info[ilde_idx].state = 1;
diff --git a/ap/app/zte_comm/nvserver/nvserver.c b/ap/app/zte_comm/nvserver/nvserver.c
index 9787706..5264db2 100755
--- a/ap/app/zte_comm/nvserver/nvserver.c
+++ b/ap/app/zte_comm/nvserver/nvserver.c
@@ -31,73 +31,74 @@
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=
-(0x15cd+48-0x15fd);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",(0xb65+2390-0x14bb)
-,(0x1268+5196-0x26b4),(0x1892+1004-0x1c7e));memset(&rcvBuf,(0x8b3+6103-0x208a),
-sizeof(rcvBuf));memset(&sndBuf,(0x6ed+6339-0x1fb0),sizeof(sndBuf));memset(&
-msgInfo,(0x4e6+2797-0xfd3),sizeof(msgInfo));msgId=msgget(MODULE_ID_NV,IPC_CREAT|
-(0xc79+1358-0x1047));if(-(0x1369+4232-0x23f0)==msgId){printf(
+(0x209+4095-0x1208);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",(0x5ef+953-0x9a8),
+(0x89a+1705-0xf43),(0x243c+329-0x2585));memset(&rcvBuf,(0x1b54+1510-0x213a),
+sizeof(rcvBuf));memset(&sndBuf,(0x1a1d+3270-0x26e3),sizeof(sndBuf));memset(&
+msgInfo,(0x12d7+429-0x1484),sizeof(msgInfo));msgId=msgget(MODULE_ID_NV,IPC_CREAT
+|(0x878+5660-0x1d14));if(-(0x792+243-0x884)==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-(0x849+5528-0x1de0);}if(-(0x1f3b+1533-0x2537)!=msgctl(msgId,
-IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0x80+5832-0x1747)==msgctl(
+,errno);return-(0x674+7929-0x256c);}if(-(0xfc7+4456-0x212e)!=msgctl(msgId,
+IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0xcd2+5966-0x241f)==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()!=(0xb9f+2462-0x153d)){printf(
+,errno);}if(nvDirInit()!=(0x1ab1+1541-0x20b6)){printf(
"\x6e\x76\x44\x69\x72\x49\x6e\x69\x74\x20\x66\x61\x69\x6c\x65\x21" "\n");return-
-(0xefa+129-0xf7a);}nvConfig();nvInit();while((0x406+7286-0x207b)){if(-
-(0x458+5767-0x1ade)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
-MSG_TYPE_NV,(0x161+4916-0x1495))){printf(
+(0x1c4b+589-0x1e97);}nvConfig();nvInit();while((0x280+4929-0x15c0)){if(-
+(0x196b+1134-0x1dd8)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
+MSG_TYPE_NV,(0xbe1+2889-0x172a))){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(-(0xebf+2501-0x1883)==msgsnd(
-msgId,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0xb17+5242-0x1f91))){printf(
+,errno);continue;}analyMsg(&rcvBuf,&sndBuf);if(-(0x950+4098-0x1951)==msgsnd(
+msgId,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0x1ca2+7-0x1ca9))){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((0x234+4198-0x129a));}static void configdir(char*dir){
-DIR*dp;int ret;struct dirent*entry;struct stat statbuf;if((dp=opendir(dir))==
+,errno);continue;}}return((0x15b3+2369-0x1ef4));}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<(0x6a1+704-0x961)){fprintf(stderr,
+d_name,&statbuf);if(ret<(0x11e1+1995-0x19ac)){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)==(0xfe2+3489-0x1d83)||strcmp("\x2e\x2e",entry->
-d_name)==(0x6f1+4219-0x176c))continue;if(!isNvConfiged(entry->d_name)){if(
+strcmp("\x2e",entry->d_name)==(0x10b3+2384-0x1a03)||strcmp("\x2e\x2e",entry->
+d_name)==(0x117f+2241-0x1a40))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]={(0x230+4857-0x1529)};fp=fopen
+val=NULL;FILE*fp=NULL;char buf[NV_MAX_CONFIG_LEN]={(0x8f5+2539-0x12e0)};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[
-(0xaf1+693-0xda6)]=='\n'||buf[(0xeff+1152-0x137f)]==((char)(0xdf+3679-0xf1b)))
-continue;val=strchr(buf,((char)(0xf7f+5610-0x252c)));if(!val){printf(
+(0x23ac+484-0x2590)]=='\n'||buf[(0xcd2+4917-0x2007)]==
+((char)(0x19d7+1471-0x1f73)))continue;val=strchr(buf,
+((char)(0x1e34+1374-0x2355)));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)-(0x149+2404-0xaac)]='\0';*val++=
+,NV_CONFIG_FILE,buf);continue;}buf[strlen(buf)-(0xc9a+2263-0x1570)]='\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)!=(0xaed+1482-0x10b7)){if(mkdir(NV_FS_PATH,(0x1d53+2464-0x2506))
-!=(0x1ae2+1512-0x20ca)){printf(
+NV_FS_PATH,F_OK)!=(0x699+3173-0x12fe)){if(mkdir(NV_FS_PATH,(0x1451+1846-0x199a))
+!=(0x55a+2656-0xfba)){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-(0x254+20-0x267);}if(mkdir(NV_FS_MAIN_PATH,
-(0x15b5+4595-0x25bb))!=(0x12f2+1618-0x1944)){printf(
+,NV_FS_PATH,errno);return-(0x6d1+6521-0x2049);}if(mkdir(NV_FS_MAIN_PATH,
+(0x3ea+8060-0x2179))!=(0x2257+547-0x247a)){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-(0x6e9+3085-0x12f5);}if(mkdir(NV_FS_BACKUP_PATH,
-(0x1ba9+223-0x1a9b))!=(0x340+5637-0x1945)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0x13d7+2433-0x1d57);}if(mkdir(NV_FS_BACKUP_PATH,
+(0x5f3+5231-0x1875))!=(0x635+6984-0x217d)){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-(0x1257+1860-0x199a);}}else{if(access(
-NV_FS_MAIN_PATH,F_OK)!=(0x8ba+1000-0xca2)){if(mkdir(NV_FS_MAIN_PATH,
-(0xd8b+6018-0x2320))!=(0x3e6+8854-0x267c)){printf(
+,NV_FS_BACKUP_PATH,errno);return-(0x1310+1671-0x1996);}}else{if(access(
+NV_FS_MAIN_PATH,F_OK)!=(0xed2+597-0x1127)){if(mkdir(NV_FS_MAIN_PATH,
+(0xd16+3236-0x17cd))!=(0x497+2723-0xf3a)){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-(0xccf+6635-0x26b9);}}if(access(NV_FS_BACKUP_PATH
-,F_OK)!=(0x15c9+2109-0x1e06)){if(mkdir(NV_FS_BACKUP_PATH,(0x151d+3948-0x229c))!=
-(0x1718+3056-0x2308)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0x1e87+1561-0x249f);}}if(access(
+NV_FS_BACKUP_PATH,F_OK)!=(0x2219+104-0x2281)){if(mkdir(NV_FS_BACKUP_PATH,
+(0x1c51+1571-0x2087))!=(0x1438+447-0x15f7)){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-(0x1dc5+266-0x1ece);}}}return
-(0x84d+4533-0x1a02);}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[
-NV_PATH_LEN]={(0xcb0+2803-0x17a3)};char nvBackupFile[NV_PATH_LEN]={
-(0x3ba+4577-0x159b)};
+,NV_FS_BACKUP_PATH,errno);return-(0xda8+4876-0x20b3);}}}return
+(0x19cf+1549-0x1fdc);}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[
+NV_PATH_LEN]={(0x15d+9159-0x2524)};char nvBackupFile[NV_PATH_LEN]={
+(0x18cd+2765-0x239a)};
#ifdef FOTA_AB
-T_FLAGS_INFO flags_info={(0x1dd0+1819-0x24eb)};int ret=(0x1e9+8986-0x2503);
+T_FLAGS_INFO flags_info={(0xfbc+989-0x1399)};int ret=(0x3f9+5150-0x1817);
#endif
for(list=nv_list;list;list=list->next){snprintf(nvMainFile,NV_PATH_LEN,
"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,list->nvFile);snprintf(nvBackupFile,
@@ -105,80 +106,80 @@
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()==(0xe09+2214-0x16ad)){
+if(!strcmp(list->nvFile,NV_CFG)&&get_update_status()==(0xc7+3572-0xeb9)){
reloadFactroyParam(list);delete_not_needed(list);nvcommit(list->nvFile);
#ifdef FOTA_AB
ret=flags_get(&flags_info);flags_info.boot_fota_flag.fota_status=
-(0x10b9+5466-0x2613);ret=flags_set(&flags_info);
+(0x38a+170-0x434);ret=flags_set(&flags_info);
#endif
-}}}uint hash(const char*s){uint hash=(0x1d27+2230-0x25dd);while(*s){hash=
+}}}uint hash(const char*s){uint hash=(0x731+4220-0x17ad);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]={
-(0x20d5+793-0x23ee)};for(config=list->fileList;config;config=config->next){fp=
+(0xcab+2015-0x148a)};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[(0xe47+839-0x118e)]=='\n'||buf[(0x57c+5470-0x1ada)]
-==((char)(0x16d6+2217-0x1f5c)))continue;val=strchr(buf,
-((char)(0xa67+3601-0x183b)));if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0x207+8575-0x2386)]=='\n'||buf[(0x1a03+810-0x1d2d)]
+==((char)(0x6cf+6487-0x2003)))continue;val=strchr(buf,
+((char)(0x741+2705-0x1195)));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)-(0x26b+4750-0x14f8)]=='\n'
-)buf[strlen(buf)-(0x1325+4694-0x257a)]='\0';*val++='\0';nvset(list->nvFile,buf,
-val,(0x89+13-0x95));}printf(
+,config->configFile,buf);continue;}if(buf[strlen(buf)-(0x131d+1243-0x17f7)]==
+'\n')buf[strlen(buf)-(0x1df2+849-0x2142)]='\0';*val++='\0';nvset(list->nvFile,
+buf,val,(0x8b7+4145-0x18e7));}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=(0x57d+4288-0x163d);int cnt=(0x12c8+958-0x1686);FILE*fp=NULL;
-char*buf=NULL;struct stat statbuff={(0x198+4813-0x1465)};if(stat(file,&statbuff)
-<(0x2f1+479-0x4d0))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=(0x6c5+5213-0x1b22);while(cnt<len){cnt=cnt+
-fread(buf+cnt,(0x20f+2715-0xca9),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[
-(0x1336+1687-0x9cd)];ssize_t nread;int ret=-(0x361+6069-0x1b15);fd_from=open(
-from,O_RDONLY);if(fd_from<(0x162d+34-0x164f))return-(0x893+6456-0x21c9);fd_to=
-open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,(0xad4+2400-0x1294));if(fd_to<
-(0x458+622-0x6c6)){ret=-(0x100b+4749-0x2295);goto out_error;}while(
-(0xc46+4307-0x1d18)){char*out_ptr;ssize_t nwritten;nread=read(fd_from,buf,sizeof
-(buf));if(nread==(0x303+4220-0x137f)){break;}else{if(nread<(0x94c+3405-0x1699)){
-if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-(0xc6a+1868-0x13b2);goto
-out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,out_ptr,nread);if(nwritten>
-(0xcd6+3953-0x1c47)){nread-=nwritten;out_ptr+=nwritten;}else{if(nwritten<
-(0x1dbf+753-0x20b0)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
-(0xbcd+6812-0x2664);goto out_error;}}}}while(nread>(0x10e8+5513-0x2671));}ret=
-fsync(fd_to);if(ret<(0x7a4+7319-0x243b)){printf(
+char*file){int len=(0x1d51+1210-0x220b);int cnt=(0x125c+3616-0x207c);FILE*fp=
+NULL;char*buf=NULL;struct stat statbuff={(0x186a+1396-0x1dde)};if(stat(file,&
+statbuff)<(0x184+2278-0xa6a))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=(0xf14+4502-0x20aa);
+while(cnt<len){cnt=cnt+fread(buf+cnt,(0x6b2+7964-0x25cd),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[(0x126c+1519-0x85b)];ssize_t nread;int ret=-(0x893+7553-0x2613)
+;fd_from=open(from,O_RDONLY);if(fd_from<(0xafa+6485-0x244f))return-
+(0x621+1739-0xcea);fd_to=open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,
+(0x1cf9+964-0x1f1d));if(fd_to<(0x340+6746-0x1d9a)){ret=-(0x57+884-0x3c8);goto
+out_error;}while((0x2385+790-0x269a)){char*out_ptr;ssize_t nwritten;nread=read(
+fd_from,buf,sizeof(buf));if(nread==(0x4c3+7723-0x22ee)){break;}else{if(nread<
+(0x20cf+283-0x21ea)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
+(0x86a+7595-0x2611);goto out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,
+out_ptr,nread);if(nwritten>(0xc75+2449-0x1606)){nread-=nwritten;out_ptr+=
+nwritten;}else{if(nwritten<(0xa34+6034-0x21c6)){if(errno==EINTR||errno==EAGAIN){
+continue;}else{ret=-(0xdf8+743-0x10da);goto out_error;}}}}while(nread>
+(0x26c0+32-0x26e0));}ret=fsync(fd_to);if(ret<(0xe54+2082-0x1676)){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)<(0x685+3210-0x130f)){fd_to=
--(0x1499+4606-0x2696);ret=-(0x1370+3670-0x21c0);goto out_error;}close(fd_from);
-return(0x107a+2026-0x1864);out_error:printf(
+,strerror(errno),to);goto out_error;}if(close(fd_to)<(0x20f6+1175-0x258d)){fd_to
+=-(0x1abc+749-0x1da8);ret=-(0x1c90+2508-0x2656);goto out_error;}close(fd_from);
+return(0xe04+1599-0x1443);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>=(0x131c+1698-0x19be))close(fd_to);return
+,from,to,ret);close(fd_from);if(fd_to>=(0x1ebc+741-0x21a1))close(fd_to);return
ret;}static int restoreNvFs(char*dstFile,char*srcFile){if(copyfile(srcFile,
-dstFile)!=(0x155f+660-0x17f3))return RESULT_FAIL;return RESULT_SUCCESS;}static
-int loadNvFs(char*file){int len=(0x104a+2804-0x1b3e);int cnt=(0xeb9+5370-0x23b3)
-;FILE*fp=NULL;char*buf=NULL;char*name=NULL;char*value=NULL;char*eq=NULL;struct
-stat statbuff={(0xb22+1985-0x12e3)};char nvFile[NV_PATH_LEN]={
-(0x150c+3912-0x2454)};sprintf(nvFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file
-);if(stat(nvFile,&statbuff)<(0xbf1+1644-0x125d))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+
-(0x15c0+1956-0x1d63));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
-(0x18f4+1530-0x1eee),len+(0xe17+2864-0x1946));cnt=(0xc8a+6442-0x25b4);while(cnt<
-len){cnt=cnt+fread(buf+cnt,(0x80c+1995-0xfd6),len-cnt,fp);if(ferror(fp)){
+dstFile)!=(0x16f+3128-0xda7))return RESULT_FAIL;return RESULT_SUCCESS;}static
+int loadNvFs(char*file){int len=(0x2032+756-0x2326);int cnt=(0x1c14+676-0x1eb8);
+FILE*fp=NULL;char*buf=NULL;char*name=NULL;char*value=NULL;char*eq=NULL;struct
+stat statbuff={(0xbc9+611-0xe2c)};char nvFile[NV_PATH_LEN]={(0x9b+1245-0x578)};
+sprintf(nvFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file);if(stat(nvFile,&
+statbuff)<(0x1374+3443-0x20e7))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+
+(0x1898+0-0x1897));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
+(0xe61+4699-0x20bc),len+(0x10dd+4748-0x2368));cnt=(0x29c+8750-0x24ca);while(cnt<
+len){cnt=cnt+fread(buf+cnt,(0xec7+3911-0x1e0d),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)(0x4a9+1762-0xb4e))))){break;}*eq='\0';value=
-eq+(0x116f+2420-0x1ae2);nvset(file,name,value,(0x2605+153-0x269d));*eq=
-((char)(0x134c+2559-0x1d0e));name=value+strlen(value)+(0x459+1748-0xb2c);}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);
-break;case MSG_UNSET:msgsnd->result=nvunset(msgrecv->file,msgrecv->key);break;
-case MSG_CLEAR:msgsnd->result=nvclear(msgrecv->file);break;case MSG_RESET:msgsnd
-->result=nvreset(msgrecv->file);break;case MSG_SHOW:msgsnd->result=saveNvFs(
+*name){if(!(eq=strchr(name,((char)(0x59f+1260-0xa4e))))){break;}*eq='\0';value=
+eq+(0x1493+1684-0x1b26);nvset(file,name,value,(0x126+3821-0x1012));*eq=
+((char)(0xd5c+3981-0x1cac));name=value+strlen(value)+(0x22f+521-0x437);}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);break;
+case MSG_UNSET:msgsnd->result=nvunset(msgrecv->file,msgrecv->key);break;case
+MSG_CLEAR:msgsnd->result=nvclear(msgrecv->file);break;case MSG_RESET:msgsnd->
+result=nvreset(msgrecv->file);break;case MSG_SHOW:msgsnd->result=saveNvFs(
msgrecv->file,NV_FS_SHOW);;break;case MSG_COMMIT:msgsnd->result=nvcommit(msgrecv
->file);break;default:break;}msgsnd->msgType=msgrecv->pid;msgsnd->msgIndex=
msgrecv->msgIndex;}static int addConfigFile(char*nvFile,char*configFile){
@@ -187,103 +188,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-(0x9a+8039-0x2000));newConfig->configFile[
-NV_PATH_LEN-(0x282+5892-0x1985)]='\0';newConfig->next=NULL;}for(list=nv_list;
-list;list=list->next){if(strcmp(list->nvFile,nvFile)==(0x472+937-0x81b))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-(0x19dd+2814-0x24da));newList->nvFile[
-NV_PATH_LEN-(0x15fa+787-0x190c)]='\0';memset(newList->nvTable,(0x3a4+1780-0xa98)
-,NV_HASH_LEN*(0x69b+7648-0x2477));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=(0xf5a+5130-0x2364);char*data=(char*)s;while(len-- >
-(0xbc5+3820-0x1ab1)){sum+=(*data++);}return sum;}static int saveNvFs(char*nvName
-,char*nvFile){int i=(0x5b2+3256-0x126a);int sum=(0x8ca+928-0xc6a);int bufSize=
-(0x17ef+1694-0x1e8d);int itemSize=(0x73a+5468-0x1c96);int ret=
-(0x206+9172-0x25da);int fp=(0x1da7+1116-0x2203);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,
-(0x19a4+1256-0x1cec));if(fp==-(0x13a5+252-0x14a0)){printf(
+configFile,configFile,NV_PATH_LEN-(0x1f28+709-0x21ec));newConfig->configFile[
+NV_PATH_LEN-(0x291+345-0x3e9)]='\0';newConfig->next=NULL;}for(list=nv_list;list;
+list=list->next){if(strcmp(list->nvFile,nvFile)==(0x21b+3089-0xe2c))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-(0xe61+5060-0x2224));newList->nvFile[NV_PATH_LEN-
+(0x704+3236-0x13a7)]='\0';memset(newList->nvTable,(0x887+1381-0xdec),NV_HASH_LEN
+*(0x1858+1842-0x1f86));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=
+(0x20b9+662-0x234f);char*data=(char*)s;while(len-- >(0x93d+6263-0x21b4)){sum+=(*
+data++);}return sum;}static int saveNvFs(char*nvName,char*nvFile){int i=
+(0x8ab+5763-0x1f2e);int sum=(0xfec+4575-0x21cb);int bufSize=(0xeda+5983-0x2639);
+int itemSize=(0x1468+2076-0x1c84);int ret=(0xa40+6819-0x24e3);int fp=
+(0xe4+8683-0x22cf);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,(0x4a4+4533-0x14b9));if(fp==-
+(0x1036+753-0x1326)){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=(0x1c3+3723-0x104e);i<
+(!buf){close(fp);return RESULT_MALLOC_FAIL;}for(i=(0xf86+1867-0x16d1);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)+(0x11e3+2346-0x1b0b);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp
-,buf,bufSize)<(0x17d4+504-0x19cc)){printf(
+item->value)+(0x20d0+1126-0x2534);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp
+,buf,bufSize)<(0x1cf5+385-0x1e76)){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=(0x36b+7537-0x20dc);}sprintf(buf+bufSize,
++=getSum(buf,bufSize);bufSize=(0x159d+4280-0x2655);}sprintf(buf+bufSize,
"\x25\x73\x3d\x25\x73",item->key,item->value);bufSize+=itemSize;}}if(bufSize!=
-(0x536+5659-0x1b51)){if(write(fp,buf,bufSize)<(0x182a+2748-0x22e6)){printf(
+(0x202b+304-0x215b)){if(write(fp,buf,bufSize)<(0x613+4423-0x175a)){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)<(0x1c67+1975-0x241e)
+bufSize);}sum+=NV_FILE_FLAG;if(write(fp,&sum,NV_CHECK_SIZE)<(0x1eb5+1324-0x23e1)
){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<(0x35b+2705-0xdec)){printf(
+buf);close(fp);if(ret<(0x2da+6151-0x1ae1)){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=
-(0x42+9521-0x2573);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)%
+(0x1800+1825-0x1f21);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-(0x102d+3648-0x1e6c))
-;value[NV_MAX_VAL_LEN-(0x972+3298-0x1653)]='\0';return RESULT_SUCCESS;}}return
+key,key))continue;strncpy(value,item->value,NV_MAX_VAL_LEN-(0xaa1+6608-0x2470));
+value[NV_MAX_VAL_LEN-(0x122f+791-0x1545)]='\0';return RESULT_SUCCESS;}}return
RESULT_NO_ITEM;}static int nvset(char*file,const char*key,const char*value,int
-saveFlag){int index=(0xfe8+4900-0x230c);int ret=(0x482+2156-0xcee);int
-key_buf_len=(0x18a0+1134-0x1d0e);int value_buf_len=(0x812+5445-0x1d57);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)+(0xb34+1635-0x1196);value_buf_len=
-strlen(value)+(0x1c65+1764-0x2348);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-
-(0xa02+2718-0x149f));item->value[value_buf_len-(0x18fa+276-0x1a0d)]='\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-(0xcf5+6118-0x24da));
-newItem->key[key_buf_len-(0x108+3907-0x104a)]='\0';strncpy(newItem->value,value,
-value_buf_len-(0x6ad+341-0x801));newItem->value[value_buf_len-
-(0x18f3+1930-0x207c)]='\0';newItem->next=NULL;newItem->saveFlag=saveFlag;newItem
-->update_flag=(0x1575+20-0x1589);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=(0x7e9+5098-0x1bd3);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=(0x631+3161-0x128a);
-T_NV_NODE*list=NULL;for(list=nv_list;list;list=list->next){if(strcmp(list->
+saveFlag){int index=(0xdd6+4499-0x1f69);int ret=(0x92+5360-0x1582);int
+key_buf_len=(0x1702+2510-0x20d0);int value_buf_len=(0x14ff+4295-0x25c6);
+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)+(0x6f9+6894-0x21e6);
+value_buf_len=strlen(value)+(0x9f0+4052-0x19c3);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-(0x303+1556-0x916));item->value[value_buf_len-(0x4ca+1362-0xa1b)]=
+'\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-
+(0x1454+709-0x1718));newItem->key[key_buf_len-(0x1a19+2342-0x233e)]='\0';strncpy
+(newItem->value,value,value_buf_len-(0x10fc+1816-0x1813));newItem->value[
+value_buf_len-(0x12e2+1287-0x17e8)]='\0';newItem->next=NULL;newItem->saveFlag=
+saveFlag;newItem->update_flag=(0x9+7491-0x1d4c);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=(0xc21+2692-0x16a5);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=(0xd28+4620-0x1f34)
+;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=(0x123f+1425-0x17d0)
-;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=
-(0x149a+1387-0x1a05);i<NV_HASH_LEN;i++){for(item=list->nvTable[i];item;){cur=
+}return RESULT_NO_FILE;}static int nvclear(char*file){int i=(0x19f3+341-0x1b48);
+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=
+(0x1423+2484-0x1dd7);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=(0xc53+5517-0x21e0);char nvMainFile[NV_PATH_LEN]={
-(0xc4c+617-0xeb5)};char nvBackupFile[NV_PATH_LEN]={(0x7bb+6200-0x1ff3)};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);}
+file){int ret=(0x20f1+734-0x23cf);char nvMainFile[NV_PATH_LEN]={
+(0x206f+1215-0x252e)};char nvBackupFile[NV_PATH_LEN]={(0x1d20+1365-0x2275)};
+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 7e4d012..d12bb0d 100755
--- a/ap/app/zte_comm/nvserver/nvserver_rpc.c
+++ b/ap/app/zte_comm/nvserver/nvserver_rpc.c
@@ -31,6 +31,9 @@
#include "nv_typedef.h"
#include <message.h>
#include "sc_rpc.h"
+#include "soft_timer.h"
+#include "zxicbasic_api.h"
+#include "pub_debug_info.h"
#ifdef __cplusplus
extern "C"
@@ -45,6 +48,9 @@
* ºê¶¨Òå *
*******************************************************************************/
#define RPC_RPMSG_DEV "/dev/rpmsg8"
+#define NVSERVER_LOG_START_TIME (120) /* 2 minutes */
+#define MODULE_ID_AP_SERVER "ap_nvserver"
+#define NVSERVER_LOG_TIMER_ID (0x1984)
/*******************************************************************************
* Êý¾ÝÀàÐͶ¨Òå *
@@ -66,6 +72,7 @@
static unsigned int g_msgRcvErrCnt = 0;
static unsigned int g_msgSndCnt = 0;
static unsigned int g_msgSndErrCnt = 0;
+static int g_debug_info_flag = 0; /* not log debug info */
/*******************************************************************************
* ¾Ö²¿º¯ÊýʵÏÖ *
@@ -152,6 +159,83 @@
return 0;
}
+static void log_timer_callback(void *argc)
+{
+ g_debug_info_flag = 1;
+ //logmsg("log_timer_callback\n");
+}
+
+// return -1 error; 1 active; 0 sleep
+int cap_is_active(void)
+{
+ char buf[4];
+ int ret = -1;
+
+ memset(buf, 0, sizeof(buf));
+ ret = open_read_close("/sys/zte_pm/cap_state", buf, sizeof(buf));
+ if (ret < 0)
+ return -1;
+ //logmsg("cap_is_active:%s\n", buf);
+ if (buf[0] == '1')
+ {
+ //logmsg("cap_is_active:active\n");
+ return 1;
+ }
+ else
+ {
+ if (buf[0] == '0')
+ {
+ //logmsg("cap_is_active:sleeping\n");
+ return 0;
+ }
+ else
+ {
+ //logmsg("cap_is_active:error\n");
+ return -1;
+ }
+ }
+}
+
+static void log_nv_info(T_NV_MSG_INFO *msg)
+{
+ //logmsg("log_nv_info\n");
+ switch(msg->nvType)
+ {
+ case MSG_GET:
+ //printf("[nvrpc] cfg_get key:%s\n", msg->key);
+ sc_debug_info_record(MODULE_ID_AP_SERVER, "cfg_get key:%s\n", msg->key);
+ break;
+ case MSG_SET:
+ //printf("[nvrpc] cfg_set key:%s value:%s\n", msg->key, msg->value);
+ sc_debug_info_record(MODULE_ID_AP_SERVER, "cfg_set key:%s value:%s\n", msg->key, msg->value);
+ break;
+ case MSG_UNSET:
+ //printf("[nvrpc] cfg_unset key:%s\n", msg->key);
+ sc_debug_info_record(MODULE_ID_AP_SERVER, "cfg_unset key:%s\n", msg->key);
+ break;
+ case MSG_CLEAR:
+ //printf("[nvrpc] cfg_clear\n");
+ sc_debug_info_record(MODULE_ID_AP_SERVER, "cfg_clear\n");
+ break;
+ case MSG_RESET:
+ //printf("[nvrpc] cfg_reset\n");
+ sc_debug_info_record(MODULE_ID_AP_SERVER, "cfg_reset\n");
+ break;
+ case MSG_SHOW:
+ //printf("[nvrpc] cfg_show\n");
+ sc_debug_info_record(MODULE_ID_AP_SERVER, "cfg_show\n");
+ break;
+ case MSG_COMMIT:
+ //printf("[nvrpc] cfg_save\n");
+ sc_debug_info_record(MODULE_ID_AP_SERVER, "cfg_save\n");
+ break;
+ default:
+ //printf("[nvrpc] cfg other action\n");
+ sc_debug_info_record(MODULE_ID_AP_SERVER, "error cfg other action\n");
+ break;
+ }
+}
+
/*******************************************************************************
* È«¾Öº¯ÊýʵÏÖ *
*******************************************************************************/
@@ -178,6 +262,11 @@
memset(&msgInfo, 0, sizeof(msgInfo));
+ if (0 != sc_timer_create(NVSERVER_LOG_TIMER_ID, TIMER_FLAG_ONCE, NVSERVER_LOG_START_TIME*1000, log_timer_callback, NULL))
+ {
+ abort(); // create timer error
+ }
+
g_rpc_fd = sc_rpc_open(RPC_RPMSG_DEV);
msgId = msgget(MODULE_ID_NV, IPC_CREAT | 0600);
@@ -237,6 +326,10 @@
pid_backup = rcvBuf.pid;
g_msgRcvCnt++; /* msgrcv success count */
+ if (g_debug_info_flag && (cap_is_active() == 0))
+ { //start log and cap is sleeping
+ log_nv_info(&rcvBuf);
+ }
analyMsg(&rcvBuf, &sndBuf, rpc_data, rpc_data2);
//printf("apnv nvserver_rpc msgsnd pid:%d, backup:%d\n", sndBuf.msgType, pid_backup);
diff --git a/ap/app/zte_comm/nvserver/nvupdate.c b/ap/app/zte_comm/nvserver/nvupdate.c
index 9c17d00..2830fc2 100755
--- a/ap/app/zte_comm/nvserver/nvupdate.c
+++ b/ap/app/zte_comm/nvserver/nvupdate.c
@@ -23,84 +23,84 @@
#endif
extern T_NV_NODE*nv_list;
#ifdef FOTA_AB
-int get_update_status(void){T_FLAGS_INFO flags_info={(0x150c+218-0x15e6)};
-unsigned int status=(0x631+1931-0xdbc);int ret=(0xb62+4294-0x1c28);ret=flags_get
-(&flags_info);status=flags_info.boot_fota_flag.fota_status;if(status==
-(0x1d6a+33-0x1d8a))return(0x120a+130-0x128a);else return(0x7fb+2992-0x13ab);}
+int get_update_status(void){T_FLAGS_INFO flags_info={(0xb6d+2186-0x13f7)};
+unsigned int status=(0x14c6+3759-0x2375);int ret=(0x2b3+7519-0x2012);ret=
+flags_get(&flags_info);status=flags_info.boot_fota_flag.fota_status;if(status==
+(0x8b0+6948-0x23d3))return(0x152b+3247-0x21d8);else return(0xed5+3378-0x1c07);}
#else
-int get_update_status(void){int update_status;FILE*fd=(0x12e3+3046-0x1ec9);int
+int get_update_status(void){int update_status;FILE*fd=(0x35b+3454-0x10d9);int
ret;char*filename=NULL;if(access(FOTA_UPDATE_STATUS_FILE_OLD,R_OK)==
-(0xa4b+4136-0x1a73)){filename=FOTA_UPDATE_STATUS_FILE_OLD;}else{filename=
+(0x1dec+1019-0x21e7)){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<(0x3b2+6806-0x1e48)){printf(
+(ret<(0x1063+3165-0x1cc0)){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-(0x1eb9+903-0x223f)
+update_status);fclose(fd);return update_status;error0:return-(0xba9+1750-0x127e)
;}
#endif
int nvupdate(char*nv_file,char*config_file,const char*key,const char*value,int
-saveFlag){int index=(0x16d5+2064-0x1ee5);int key_buf_len=(0x1015+4688-0x2265);
-int value_buf_len=(0x1a02+2063-0x2211);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;
+saveFlag){int index=(0xfe9+3366-0x1d0f);int key_buf_len=(0x1ddd+1220-0x22a1);int
+ value_buf_len=(0x11db+1233-0x16ac);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)+(0xf88+2353-0x18b8);value_buf_len=
-strlen(value)+(0x1b06+966-0x1ecb);for(list=nv_list;list;list=list->next){if(
+,nv_file,key,value);key_buf_len=strlen(key)+(0x23e3+759-0x26d9);value_buf_len=
+strlen(value)+(0x1f4+2370-0xb35);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=(0xf45+629-0x11b9);printf(
+update_flag=(0x1b33+2662-0x2598);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((0xc55+661-0xee9)==item->update_flag){printf
-(
+config_file,"\x75\x73\x65\x72")){if((0xd51+5472-0x22b0)==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=
-(0xf8c+4865-0x228c);printf(
+(0x39a+7978-0x22c3);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-(0x197+2678-0xc0c));item->value[value_buf_len-
-(0x11b9+183-0x126f)]='\0';item->update_flag=(0x39+8225-0x2059);return
+value,value_buf_len-(0x1471+1707-0x1b1b));item->value[value_buf_len-
+(0xfa0+315-0x10da)]='\0';item->update_flag=(0x15e5+3127-0x221b);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)+
-(0xe7d+4259-0x1f1f));if(!newItem->key){free(newItem);printf(
+(0xcf1+2732-0x179c));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-
-(0xbc1+2804-0x16b4));newItem->key[key_buf_len-(0x30b+7106-0x1ecc)]='\0';strncpy(
-newItem->value,value,value_buf_len-(0x1fe9+1707-0x2693));newItem->value[
-value_buf_len-(0x642+5243-0x1abc)]='\0';newItem->next=NULL;newItem->saveFlag=
-saveFlag;newItem->update_flag=(0x822+2099-0x1054);printf(
+(0x1754+1643-0x1dbe));newItem->key[key_buf_len-(0x1b6f+2951-0x26f5)]='\0';
+strncpy(newItem->value,value,value_buf_len-(0x15fa+62-0x1637));newItem->value[
+value_buf_len-(0x1643+1681-0x1cd3)]='\0';newItem->next=NULL;newItem->saveFlag=
+saveFlag;newItem->update_flag=(0xe5c+5876-0x254f);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]={(0x10c7+3180-0x1d33)};printf(
+NV_MAX_ITEM_LEN]={(0x797+2019-0xf7a)};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[(0xb27+5945-0x2260)]=='\n'||buf[(0x7d7+3148-0x1423)]
-==((char)(0xa37+3124-0x1648)))continue;val=strchr(buf,
-((char)(0xb03+2794-0x15b0)));if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0x55c+170-0x606)]=='\n'||buf[(0x1edf+1859-0x2622)]
+==((char)(0x759+6410-0x2040)))continue;val=strchr(buf,((char)(0x1c21+58-0x1c1e))
+);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)-(0x360+4370-0x1471)]='\0';*
-val++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0xd3b+6418-0x264c))
-;}printf(
+,config->configFile,buf);continue;}buf[strlen(buf)-(0x1315+1949-0x1ab1)]='\0';*
+val++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0x253+3001-0xe0b));
+}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
*list){if(list==NULL){printf(
@@ -108,12 +108,12 @@
list->next;while(p!=NULL){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x75\x6d\x70\x20\x6b\x65\x79\x3d\x25\x73\x2c\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x2c\x20\x70\x3d\x30\x78\x25\x78" "\n"
,p->key,p->value,((unsigned int)p));p=p->next;}}int delete_not_needed(T_NV_NODE*
-list){int index=(0xb62+4548-0x1d26);T_NV_ITEM*item=NULL;T_NV_ITEM head={
-(0xeac+36-0xed0)};T_NV_ITEM*prev=&head;printf(
+list){int index=(0xe24+3667-0x1c77);T_NV_ITEM*item=NULL;T_NV_ITEM head={
+(0xf42+5257-0x23cb)};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=(0x1431+306-0x1563);index<NV_HASH_LEN;index++){head.next=list->
-nvTable[index];prev=&head;for(item=prev->next;item;){if((0x1da4+94-0x1e01)==item
-->update_flag){prev=item;item=item->next;}else{printf(
+);for(index=(0x179f+1947-0x1f3a);index<NV_HASH_LEN;index++){head.next=list->
+nvTable[index];prev=&head;for(item=prev->next;item;){if((0x1996+2542-0x2383)==
+item->update_flag){prev=item;item=item->next;}else{printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x65\x6c\x65\x74\x65\x20\x6b\x65\x79\x3d\x25\x73\x2c\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x20" "\n"
,item->key,item->value);prev->next=item->next;free(item->key);free(item->value);
free(item);item=prev->next;}}list->nvTable[index]=head.next;}printf(
diff --git a/ap/app/zte_comm/phonebook/src/pb_db.c b/ap/app/zte_comm/phonebook/src/pb_db.c
index 7efd068..0b2f155 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]={(0x119b+4137-0x21c4)};UINT32 count=(0x92d+114-0x99f);result=
+ZPB_MAX_BYTES_DB]={(0xeca+4830-0x21a8)};UINT32 count=(0x176d+897-0x1aee);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,(0x1779+2616-0x21b1),sizeof(sql));snprintf(
-sql,sizeof(sql)-(0x79d+5391-0x1cab),
+,result);return result;}memset(sql,(0x5dc+3489-0x137d),sizeof(sql));snprintf(sql
+,sizeof(sql)-(0x113f+4819-0x2411),
"\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((0x10f8+4617-0x2301)<count){memset(sql,(0x933+7568-0x26c3),sizeof(sql)
-);snprintf(sql,sizeof(sql)-(0x131a+632-0x1591),
+count);if((0x1c9c+2292-0x2590)<count){memset(sql,(0x18e7+2743-0x239e),sizeof(sql
+));snprintf(sql,sizeof(sql)-(0x10fa+1353-0x1642),
"\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]={(0x823+7671-0x261a)};result=
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x3e0+5284-0x1884)};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 (0x1878+3459-0x25fb)
+#if (0x7a7+7897-0x2680)
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)==(0xcd3+1866-0x141d)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZPB_TMP_PATH,F_OK)==(0x1548+1576-0x1b70)){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)!=(0x1472+1223-0x1939)){slog(PB_PRINT,SLOG_ERR,
+remove(ZPB_TMP_PATH)!=(0xc65+5747-0x22d8)){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)!=(0x375+6005-0x1aea)){slog(PB_PRINT,
+);}}if(rename(ZPB_SEC_PATH,ZPB_TMP_PATH)!=(0x1a36+2972-0x25d2)){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[(0x2167+394-0x22d9)]={(0x417+1186-0x8b9)};char cmd[
-(0x2168+1225-0x25b1)]={(0x1bc9+1388-0x2135)};sc_cfg_get(
+);}{char rnum_buf[(0xcf6+4675-0x1f21)]={(0x3e3+7762-0x2235)};char cmd[
+(0x2041+783-0x22d0)]={(0x1a3+6854-0x1c69)};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
-)==(0x183b+2896-0x238b)){if(remove(ZPB_TMP_PATH)!=(0x359+3061-0xf4e)){slog(
+)==(0xe3f+706-0x1101)){if(remove(ZPB_TMP_PATH)!=(0x73a+2278-0x1020)){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(0x36a+7793-0x21db);}return
-(0xc1a+5784-0x22b1);}return(0x20+3433-0xd89);}T_zPb_DbResult atPb_ExecDbSql(
+(pSql,"\x3b")||strstr(pSql,"\x2d\x2d")){return(0xf58+5844-0x262c);}return
+(0x442+897-0x7c2);}return(0x30d+6691-0x1d30);}T_zPb_DbResult atPb_ExecDbSql(
const char*pSql,sqlite3_callback callback,VOID*pFvarg){sqlite3*pDb=NULL;CHAR
-dbErrMsg[(0x1560+1478-0x1aa6)]={(0x147b+1521-0x1a6c)};if(NULL==pSql){return
+dbErrMsg[(0x4f7+8293-0x24dc)]={(0xcff+6156-0x250b)};if(NULL==pSql){return
ZPB_DB_ERROR_INVALIDPTR;}
#ifdef WEBS_SECURITY
-if(check_sql_cmd(pSql)==(0x955+5469-0x1eb2)){slog(PB_PRINT,SLOG_ERR,
+if(check_sql_cmd(pSql)==(0x155c+1204-0x1a10)){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,34 @@
);return ZPB_DB_ERROR_NOTOPENDB;}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x45\x78\x65\x63\x44\x62\x53\x71\x6c\x3a\x25\x73" "\n"
,pSql);if(sqlite3_exec(pDb,pSql,callback,pFvarg,NULL)){strncpy(dbErrMsg,
-sqlite3_errmsg(pDb),sizeof(dbErrMsg)-(0x1ce7+1297-0x21f7));slog(PB_PRINT,
-SLOG_ERR,
+sqlite3_errmsg(pDb),sizeof(dbErrMsg)-(0x623+4419-0x1765));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=(0x1a55+739-0x1d38);if((0x16a0+3220-0x2333)>line){slog
+char**lname){SINT32 index=(0x1ca+8423-0x22b1);if((0x10e9+4699-0x2343)>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-(0x11c5+2282-0x1aae);}index=atoi(zresult[(0x4df+2243-0xda2)]);if(index>
+);return-(0xba5+2707-0x1637);}index=atoi(zresult[(0x230+1070-0x65e)]);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-(0xeba+6056-0x2661);}slog(PB_PRINT,SLOG_DEBUG,
+);return-(0x1670+4112-0x267f);}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(0x134a+3776-0x220a);}
+,index);g_zPb_ApIndex[index]=PBM_SUCCESS;return(0x773+7128-0x234b);}
T_zPb_DbResult atPb_InitApIndex(){CHAR sql[ZPB_MAX_BYTES_DB]={
-(0x169f+2400-0x1fff)};SINT32 i=(0x24c+2305-0xb4c);g_zPb_ApIndex[
-(0x802+4390-0x1928)]=ZPB_AP_MAX_RECORD;for(i=(0xaca+3013-0x168e);i<=
-g_zPb_ApIndex[(0x1acc+2351-0x23fb)];i++){g_zPb_ApIndex[i]=PBM_ERROR_NOT_FOUND;}
+(0x8e6+2542-0x12d4)};SINT32 i=(0xd42+5896-0x2449);g_zPb_ApIndex[
+(0x8d4+5528-0x1e6c)]=ZPB_AP_MAX_RECORD;for(i=(0x1035+2055-0x183b);i<=
+g_zPb_ApIndex[(0x1765+3815-0x264c)];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(-(0x58a+5098-0x1973)==
-access(path,(0xa7+3377-0xdd8))){slog(PB_PRINT,SLOG_DEBUG,
+ZUFI_NULL);}INT zte_pbm_check_and_creat_dir(char*path){if(-(0x1198+1386-0x1701)
+==access(path,(0x765+6983-0x22ac))){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(-(0xf95+2858-0x1abe)==mkdir(path,(0x93a+456-0x903))){slog(
+,ZPB_DB_DIR);if(-(0x1b5d+1402-0x20d6)==mkdir(path,(0x14b6+2345-0x1be0))){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-(0xe4f+4760-0x20e6);}}return(0x1da9+1886-0x2507);}UINT8
+);return-(0x388+6014-0x1b05);}}return(0x35a+7639-0x2131);}UINT8
zte_pbm_check_web_pbm_dir(VOID){
#ifdef _MBB_OS_UCLINUX
(VOID)zte_pbm_check_and_creat_dir(
@@ -143,21 +143,21 @@
"\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]={(0xde3+2197-0x1678)}
-;snprintf(sql,sizeof(sql),
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1377+3586-0x2179)
+};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]={(0xe32+4128-0x1e52)};if(NULL==
+result=ZPB_DB_ERROR;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1926+2735-0x23d5)};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[(0x107+4923-0x1410)]={(0x4c1+5067-0x188c)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,
-pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0xd6d+2702-0x17fa))&&(pbPara->pbIndex
+pbMax[(0x196+4842-0x144e)]={(0xa3b+6238-0x2299)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,
+pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0x4d7+4497-0x1667))&&(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,
@@ -174,17 +174,17 @@
pbmPara->pbType,pbmPara->name,pbmPara->homeNumber,pbmPara->officeNumber,pbmPara
->email,pbmPara->sne,pbmPara->group,pbmPara->pbId);}}T_zPb_DbResult
atPb_DbGetParamCb(VOID*fvarg,int line,char**zresult,char**lname){T_zPb_Header
-para={(0x15c3+704-0x1883)};if((0x156c+3143-0x21b2)>line){slog(PB_PRINT,SLOG_ERR,
+para={(0xbf8+6024-0x2380)};if((0x70+9460-0x2563)>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[(0xe21+3484-0x1bbd)]);para.
-pbLocation=atoi(zresult[(0x864+2081-0x1084)]);slog(PB_PRINT,SLOG_DEBUG,
+);return ZPB_DB_ERROR;}para.pbIndex=atoi(zresult[(0x4df+8434-0x25d1)]);para.
+pbLocation=atoi(zresult[(0x1d6+5432-0x170d)]);slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x44\x62\x47\x65\x74\x50\x61\x72\x61\x6d\x43\x62\x3a\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,para.pbIndex,para.pbLocation);memcpy(fvarg,¶,sizeof(para));return ZPB_DB_OK
;}T_zPb_DbResult atPb_GetIndexLocationById(T_zPb_Header*pbPara){CHAR sql[
-ZPB_MAX_BYTES_DB]={(0xf7b+1916-0x16f7)};snprintf(sql,sizeof(sql)-
-(0x1d52+11-0x1d5c),
+ZPB_MAX_BYTES_DB]={(0x2562+425-0x270b)};snprintf(sql,sizeof(sql)-
+(0x1006+384-0x1185),
"\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,(0x596+3480-0x132e),sizeof(
+,ZPB_DB_PBM_TABLE,pbPara->pbId);memset(pbPara,(0xd43+5618-0x2335),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 +196,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]={(0xad+4022-0x1063)};
-if(NULL==pPbRecord){slog(PB_PRINT,SLOG_ERR,
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x15c3+3895-0x24fa)
+};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 +207,75 @@
ZPB_LOCATION_USIM==pPbRecord->pbLocation){g_zPb_SimIndex[(pPbRecord->pbIndex)]=
PBM_SUCCESS;}else if(ZPB_LOCATION_AP==pPbRecord->pbLocation){g_zPb_ApIndex[(
pPbRecord->pbIndex)]=PBM_SUCCESS;}}return result;}SINT32 atPb_DbCountTableLineCb
-(VOID*fvarg,int line,char**zresult,char**lname){if((0x1713+485-0x18f7)>line){
-slog(PB_PRINT,SLOG_ERR,
+(VOID*fvarg,int line,char**zresult,char**lname){if((0x4b9+2232-0xd70)>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-(0x3c0+341-0x514);}*(int*)fvarg=atoi(zresult[(0x1776+2880-0x22b6)]);
-return(0xeea+3905-0x1e2b);}T_zPb_DbResult atPb_SetSimCapacityTable(
+);return-(0xcb4+2701-0x1740);}*(int*)fvarg=atoi(zresult[(0x7b0+6355-0x2083)]);
+return(0x9da+4974-0x1d48);}T_zPb_DbResult atPb_SetSimCapacityTable(
T_zPb_UsimCapacity pbPara){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[
-ZPB_MAX_BYTES_DB]={(0x100+6902-0x1bf6)};UINT32 count=(0xb3c+1914-0x12b6);
-snprintf(sql,sizeof(sql)-(0x1cd2+188-0x1d8d),
+ZPB_MAX_BYTES_DB]={(0x19a5+1759-0x2084)};UINT32 count=(0x3bb+2126-0xc09);
+snprintf(sql,sizeof(sql)-(0x200+4397-0x132c),
"\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((0xfc6+1461-0x157b)<count){memset(sql,(0x1822+3517-0x25df),sizeof(sql)
-);snprintf(sql,sizeof(sql)-(0xf1a+3684-0x1d7d),
+count);if((0x166+7558-0x1eec)<count){memset(sql,(0x719+7010-0x227b),sizeof(sql))
+;snprintf(sql,sizeof(sql)-(0xe63+193-0xf23),
"\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,(0xe02+1805-0x150f),sizeof(sql));snprintf(sql,
-sizeof(sql)-(0x43d+5100-0x1828),"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,(0xf20+3115-0x1b4b),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0x5c+5390-0x1569),"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]={(0x2df+8507-0x241a)
-};SINT32 count=(0x13f8+1083-0x1833);T_zPb_ApCapacity pbPara={(0xa01+6961-0x2532)
-};snprintf(sql,sizeof(sql)-(0xa4c+2933-0x15c0),
+{T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0xad1+5593-0x20aa)
+};SINT32 count=(0x1818+2394-0x2172);T_zPb_ApCapacity pbPara={(0x8eb+3847-0x17f2)
+};snprintf(sql,sizeof(sql)-(0xc64+2284-0x154f),
"\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((0xd5+2102-0x90b)<count){memset(sql,
-(0xe8f+3816-0x1d77),sizeof(sql));snprintf(sql,sizeof(sql)-(0x1128+904-0x14af),
+atPb_DbCountTableLineCb,&count);if((0x164+3657-0xfad)<count){memset(sql,
+(0x247c+62-0x24ba),sizeof(sql));snprintf(sql,sizeof(sql)-(0xa41+6680-0x2458),
"\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,(0x1e46+1992-0x260e),sizeof(sql));snprintf(sql,
-sizeof(sql)-(0x1180+1494-0x1755),
+);return result;}}memset(sql,(0x1af0+1165-0x1f7d),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0x66d+3545-0x1445),
"\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,(0x376+2073-0xb8f),sizeof(
-sql));snprintf(sql,sizeof(sql)-(0xf64+1871-0x16b2),
+,pbPara.maxRecordNum,pbPara.usedRecordNum);memset(sql,(0x1fd8+1311-0x24f7),
+sizeof(sql));snprintf(sql,sizeof(sql)-(0x949+1945-0x10e1),
"\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=
-(0x16b+2125-0x9b8);if((0x2b1+6792-0x1d38)>line){return ZPB_DB_ERROR;}pbIndex=(
+(0x27b+4851-0x156e);if((0xb62+2573-0x156e)>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+(0xb6+7282-0x1d27)]=atoi(zresult[(0xffc+2650-0x1a56)]);
+,i);pbIndex->apIndex[i+(0x5c3+4970-0x192c)]=atoi(zresult[(0xdbf+6020-0x2543)]);
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+(0xa9+2354-0x9da)]);pbIndex->count=i+(0x12ab+3144-0x1ef2);
+,pbIndex->apIndex[i+(0xea9+6225-0x26f9)]);pbIndex->count=i+(0x9eb+1871-0x1139);
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]
-={(0xa81+3415-0x17d8)};SINT32 countByGroup=(0x3e1+8294-0x2447);CHAR pbGroup[
-ZPB_PARAM_SIZE20]={(0x183+5518-0x1711)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
-pbGroup));snprintf(sql,sizeof(sql)-(0x393+3379-0x10c5),
+={(0xf51+5958-0x2697)};SINT32 countByGroup=(0x9bf+6089-0x2188);CHAR pbGroup[
+ZPB_PARAM_SIZE20]={(0xc9d+2831-0x17ac)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
+pbGroup));snprintf(sql,sizeof(sql)-(0x1278+1123-0x16da),
"\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,(0x167+4883-0x147a),sizeof(sql
-));snprintf(sql,sizeof(sql)-(0x2ed+1494-0x8c2),
+atPb_DbCountTableLineCb,&countByGroup);memset(sql,(0x13b8+2603-0x1de3),sizeof(
+sql));snprintf(sql,sizeof(sql)-(0x131a+1052-0x1735),
"\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,
-(0x13+4402-0x1145),sizeof(sql));snprintf(sql,sizeof(sql)-(0x1a6f+2607-0x249d),
+(0x1d91+797-0x20ae),sizeof(sql));snprintf(sql,sizeof(sql)-(0x906+733-0xbe2),
"\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 +283,7 @@
"\x70\x62\x3a\x70\x62\x6d\x3a\x65\x78\x65\x63\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x72\x65\x73\x75\x6c\x74\x20\x25\x64" "\n"
,ZPB_DB_PBM_TABLE,result);}else{return ZPB_DB_ERROR;}(VOID)sc_cfg_set(
ZPB_NV_GROUP,"");return result;}VOID atPb_GetLocationIndexForDel(T_zPb_DelInfo*
-recData,SINT32 delTime){T_zPb_Header pbHeader={(0x2070+1682-0x2702)};if(NULL==
+recData,SINT32 delTime){T_zPb_Header pbHeader={(0x16cd+2322-0x1fdf)};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 +294,30 @@
"\x70\x62\x3a\x70\x62\x6d\x3a\x64\x65\x6c\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x2c\x64\x65\x6c\x5f\x70\x62\x6d\x5f\x74\x69\x6d\x65\x3d\x25\x64"
,recData->delIndex[delTime],recData->delLocation,delTime);}T_zPb_DbResult
atPb_DelARecFromPbmTable(T_zPb_DelInfo*pbPara,SINT32 delTime){T_zPb_DbResult
-result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x12cd+3605-0x20e2)};if(NULL==
-pbPara){slog(PB_PRINT,SLOG_ERR,
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x200+1070-0x62e)};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)-(0x25bd+51-0x25ef),
+,delTime,pbPara->delId[delTime]);snprintf(sql,sizeof(sql)-(0x1e8a+228-0x1f6d),
"\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=(0x321+8268-0x236c);for(i=(0x1d5+8226-0x21f6);(i<=g_zPb_SimIndex[
-(0x904+248-0x9fc)])&&(i<(ZPB_SIM_MAX_RECORD+(0x12f4+1947-0x1a8e)));i++){
+SINT32 i=(0x576+8564-0x26e9);for(i=(0x1e1a+1870-0x2567);(i<=g_zPb_SimIndex[
+(0x150d+2515-0x1ee0)])&&(i<(ZPB_SIM_MAX_RECORD+(0x2339+925-0x26d5)));i++){
g_zPb_SimIndex[i]=PBM_ERROR_NOT_FOUND;}}VOID atPb_ClearApPbmIndexArray(VOID){
-SINT32 i=(0x170d+114-0x177e);for(i=(0xcc8+6443-0x25f2);(i<=g_zPb_ApIndex[
-(0x104b+2037-0x1840)])&&(i<(ZPB_AP_MAX_RECORD+(0x12b4+499-0x14a6)));i++){
+SINT32 i=(0xf2b+1030-0x1330);for(i=(0x11da+1612-0x1825);(i<=g_zPb_ApIndex[
+(0x952+5274-0x1dec)])&&(i<(ZPB_AP_MAX_RECORD+(0xcd9+4025-0x1c91)));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]={(0x468+2204-0xd04)};if(NULL==pbPara){slog(
+ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x9b+219-0x176)};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)-(0xdcd+6027-0x2557),
+);return ZPB_DB_ERROR_INVALIDPTR;}snprintf(sql,sizeof(sql)-(0xb09+822-0xe3e),
"\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 1d54a91..2701faa 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={(0x373+4944-0x16c3)};sem_t g_Pb_sem_id={
-(0x8b0+913-0xc41)};int g_zPb_MsqId=-(0xfd7+4710-0x223c);int g_zPb_LocalMsqId=-
-(0x546+2011-0xd20);VOID atWeb_AddOneContact(UINT8*pDatabuf){T_zPb_WebContact*
+pDatabuf);T_zPb_optRsp g_PbOptRsp={(0x15e9+684-0x1895)};sem_t g_Pb_sem_id={
+(0x130a+2734-0x1db8)};int g_zPb_MsqId=-(0x158+8956-0x2453);int g_zPb_LocalMsqId=
+-(0x5d2+7864-0x2489);VOID atWeb_AddOneContact(UINT8*pDatabuf){T_zPb_WebContact*
webPbContact=NULL;if(pDatabuf==NULL){printf(
"\x5b\x70\x62\x5d\x2c\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x43\x6f\x6e\x74\x61\x63\x74\x20\x70\x61\x72\x61\x20\x69\x73\x20\x6e\x75\x6c\x6c" "\n"
);return;}webPbContact=(T_zPb_WebContact*)pDatabuf;atWeb_AddOnePb(webPbContact,
@@ -35,22 +35,22 @@
zPb_RecvZpbicInd(UINT8*pDatabuf){T_zAt_ZpbicRes*ptPara=ZUFI_NULL;if(pDatabuf==
NULL){return;}ptPara=(T_zAt_ZpbicRes*)(pDatabuf);printf(
"\x7a\x50\x62\x5f\x52\x65\x63\x76\x5a\x70\x62\x69\x63\x49\x6e\x64\x20\x70\x61\x72\x61\x2c\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2c\x20\x74\x79\x70\x65\x3a\x25\x64" "\n"
-,ptPara->result,ptPara->opertype);if(((0xc6c+4414-0x1da9)==ptPara->result)&&(
-(0x1353+3246-0x2000)==ptPara->opertype)){CHAR needPb[(0x19eb+2052-0x21bd)]={
-(0x2b+3551-0xe0a)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
-(0xbf8+3104-0x1818)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
-MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0x387+8052-0x22fb),NULL,(0x233+7090-0x1de5)
-);}}}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==(0x216+4807-0x14dd)){
-CHAR needPb[(0xa9c+5185-0x1eab)]={(0xce2+4217-0x1d5b)};sc_cfg_get(
-NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x2d8+4314-0x13b2)!=strcmp(needPb,
-"\x6e\x6f")){atPb_CfgPbNvInit();atPb_DelAllRecsSimDb();}}}VOID zPb_RecvPbInitRst
-(UINT8*pDatabuf){int pbReadRet=-(0x8fa+6351-0x21c8);memcpy(&g_PbOptRsp,pDatabuf,
-sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-(0x1255+2089-0x1a7d)){
-atPb_IintPbErr(NULL);return;}pbReadRet=atPb_SendScpbrSet_repeat(g_Pb_sem_id);
+,ptPara->result,ptPara->opertype);if(((0x4a4+725-0x778)==ptPara->result)&&(
+(0x1ef+7342-0x1e9c)==ptPara->opertype)){CHAR needPb[(0x18a9+2785-0x2358)]={
+(0x1806+830-0x1b44)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
+(0x54a+6175-0x1d69)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
+MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0x19d7+2110-0x2215),NULL,
+(0x134d+4345-0x2446));}}}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==(0x26e3+14-0x26f1)){
+CHAR needPb[(0x673+5336-0x1b19)]={(0xb2f+5426-0x2061)};sc_cfg_get(
+NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x11c+1010-0x50e)!=strcmp(needPb,
+"\x6e\x6f")){atPb_CfgPbNvInit();atPb_DelAllRecsSimDb();}}}VOID zPb_RecvPbInitRst
+(UINT8*pDatabuf){int pbReadRet=-(0x34f+4334-0x143c);memcpy(&g_PbOptRsp,pDatabuf,
+sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-(0x482+1460-0xa35)){atPb_IintPbErr(
+NULL);return;}pbReadRet=atPb_SendScpbrSet_repeat(g_Pb_sem_id);printf(
"\x7a\x50\x62\x5f\x52\x65\x63\x76\x50\x62\x49\x6e\x69\x74\x52\x73\x74\x20\x72\x65\x73\x75\x6c\x74\x3a\x25\x64" "\n"
,pbReadRet);sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);}void zPbLocalHandleWebMsg(
MSG_BUF*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
@@ -65,18 +65,17 @@
,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,(0xd37+2813-0x1834));break;
-default:break;}}UINT8 zPbMsgCreat(VOID){g_zPb_MsqId=msgget(MODULE_ID_PB,
-IPC_CREAT|(0x113d+5656-0x25d5));if(g_zPb_MsqId==-(0x17b3+2544-0x21a2)){return
-ZUFI_FAIL;}g_zPb_LocalMsqId=msgget(MODULE_ID_PB_LOCAL,IPC_CREAT|
-(0x1626+858-0x1800));if(g_zPb_LocalMsqId==-(0xf0a+615-0x1170)){return ZUFI_FAIL;
-}sem_init(&g_Pb_sem_id,(0x14bd+2412-0x1e29),(0x5ed+4404-0x1721));return
-ZUFI_SUCC;}void detect_modem_state(void){CHAR state[(0x7aa+4544-0x1938)]={
-(0xb31+1091-0xf74)};sc_cfg_get(
+usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,(0x411+9-0x41a));break;default:
+break;}}UINT8 zPbMsgCreat(VOID){g_zPb_MsqId=msgget(MODULE_ID_PB,IPC_CREAT|
+(0x1c2+7335-0x1ce9));if(g_zPb_MsqId==-(0x1c35+76-0x1c80)){return ZUFI_FAIL;}
+g_zPb_LocalMsqId=msgget(MODULE_ID_PB_LOCAL,IPC_CREAT|(0x220+5561-0x1659));if(
+g_zPb_LocalMsqId==-(0xbb1+5615-0x219f)){return ZUFI_FAIL;}sem_init(&g_Pb_sem_id,
+(0x48f+1019-0x88a),(0x315+1540-0x919));return ZUFI_SUCC;}void detect_modem_state
+(void){CHAR state[(0x1561+4256-0x25cf)]={(0x1ffb+1060-0x241f)};sc_cfg_get(
"\x6d\x6f\x64\x65\x6d\x5f\x6d\x61\x69\x6e\x5f\x73\x74\x61\x74\x65",state,sizeof(
-state));if((0xc61+6311-0x2508)==strcmp(state,
+state));if((0xe9c+473-0x1075)==strcmp(state,
"\x6d\x6f\x64\x65\x6d\x5f\x73\x69\x6d\x5f\x75\x6e\x64\x65\x74\x65\x63\x74\x65\x64"
-)||(0x1503+68-0x1547)==strcmp(state,
+)||(0xe58+1658-0x14d2)==strcmp(state,
"\x6d\x6f\x64\x65\x6d\x5f\x73\x69\x6d\x5f\x64\x65\x73\x74\x72\x6f\x79")){
sc_cfg_set("\x70\x62\x6d\x5f\x69\x6e\x69\x74\x5f\x66\x6c\x61\x67","\x30");}}void
zPbLocalHandleAtctlMsg(MSG_BUF*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
@@ -95,28 +94,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,
-(0x1eac+1981-0x2669));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR
-clearPb[(0x1fbf+1487-0x255c)]={(0x892+7043-0x2415)};sc_cfg_get(
+(0xe97+4980-0x220b));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR
+clearPb[(0x19b7+1799-0x208c)]={(0x279+1090-0x6bb)};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")==(0x6dc+4389-0x1801)){atPb_DropDb();
+,clearPb);if(strcmp(clearPb,"\x79\x65\x73")==(0x1cf+6222-0x1a1d)){atPb_DropDb();
}ipc_send_message(MODULE_ID_PB,MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,
-(0xc79+5292-0x2125),NULL,(0x3ba+6121-0x1ba3));}void zPbHandleMainCtrlMsg(MSG_BUF
-*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
+(0xb0c+6681-0x2525),NULL,(0x1dbf+1558-0x23d5));}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=(0x3ec+515-0x5ef);MSG_BUF stMsg={
-(0x55a+6372-0x1e3e)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
+pb_msg_thread_proc(void*arg){int iRet=(0x47+4261-0x10ec);MSG_BUF stMsg={
+(0x2b7+6997-0x1e0c)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
int*)arg);prctl(PR_SET_NAME,"\x70\x62\x5f\x6c\x6f\x63\x61\x6c",
-(0x246+1049-0x65f),(0x11d+4679-0x1364),(0x286+2365-0xbc3));while(
-(0x7eb+1034-0xbf4)){iRet=(0x107c+2023-0x1863);memset(&stMsg,(0x598+6163-0x1dab),
-sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x1099+5695-0x26d8),
-(0x9c9+3212-0x1655));printf(
+(0x24f+5969-0x19a0),(0xa80+2248-0x1348),(0x738+6688-0x2158));while(
+(0x1e42+782-0x214f)){iRet=(0x100c+3295-0x1ceb);memset(&stMsg,(0xb1c+4684-0x1d68)
+,sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x12a+6611-0x1afd),
+(0x170a+3824-0x25fa));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>=(0x596+2807-0x108d)){
+,stMsg.src_id,stMsg.usMsgCmd,MODULE_ID_AT_CTL);if(iRet>=(0x263+6634-0x1c4d)){
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
@@ -124,29 +123,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=(0x41b+1737-0xae4);MSG_BUF msgBuf={(0x54b+5085-0x1928)};CHAR
-needPb[(0xec8+2552-0x188e)]={(0x621+4858-0x191b)};prctl(PR_SET_NAME,
-"\x70\x62\x5f\x6d\x61\x69\x6e",(0xaf2+3360-0x1812),(0x979+2998-0x152f),
-(0x2381+488-0x2569));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof
-(needPb));if((0x22d9+893-0x2656)!=strcmp(needPb,"\x6e\x6f")){
+recv_thread_tid=(0x2296+995-0x2679);MSG_BUF msgBuf={(0x6d+2491-0xa28)};CHAR
+needPb[(0x22c8+303-0x23c5)]={(0xcb7+5365-0x21ac)};prctl(PR_SET_NAME,
+"\x70\x62\x5f\x6d\x61\x69\x6e",(0x690+6939-0x21ab),(0x1f03+587-0x214e),
+(0xfb5+2067-0x17c8));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof
+(needPb));if((0x1915+1186-0x1db7)!=strcmp(needPb,"\x6e\x6f")){
#ifdef WEBS_SECURITY
-if(access(ZPB_DB_PATH,F_OK)!=(0xae2+4741-0x1d67)){if(access(ZPB_TMP_PATH,F_OK)==
-(0x11e6+4446-0x2344)){if(remove(ZPB_SEC_PATH)!=(0x3ba+7025-0x1f2b)){slog(
-PB_PRINT,SLOG_ERR,
+if(access(ZPB_DB_PATH,F_OK)!=(0xb3c+2656-0x159c)){if(access(ZPB_TMP_PATH,F_OK)==
+(0x1b08+504-0x1d00)){if(remove(ZPB_SEC_PATH)!=(0x5d5+6721-0x2016)){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)!=(0xe59+3315-0x1b4c)){slog(PB_PRINT,
+);}if(rename(ZPB_TMP_PATH,ZPB_SEC_PATH)!=(0x1448+151-0x14df)){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)==(0x31b+8949-0x2610)){char rnum_buf[
-(0xf5b+346-0x109d)]={(0x562+8198-0x2568)};char cmd[(0xda+2380-0x9a6)]={
-(0x1169+1345-0x16aa)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZPB_SEC_PATH,F_OK)==(0x10d9+3997-0x2076)){char rnum_buf[
+(0x101+5189-0x152e)]={(0xaf5+2586-0x150f)};char cmd[(0xb77+1662-0x1175)]={
+(0x262c+212-0x2700)};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-(0xfb0+488-0x1197);}printf(
+zPbMsgCreat();atPb_Init();}else{return-(0xd48+426-0xef1);}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))==-(0x656+86-0x6ab)){assert((0x4d2+2376-0xe1a));}
-detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x11b6+749-0x14a3);
+(&g_zPb_LocalMsqId))==-(0x490+1868-0xbdb)){assert((0x219+2400-0xb79));}
+detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x61f+7640-0x23f7);
}
diff --git a/ap/app/zte_comm/phonebook/src/pb_proc.c b/ap/app/zte_comm/phonebook/src/pb_proc.c
index 3fe60eb..a270c15 100755
--- a/ap/app/zte_comm/phonebook/src/pb_proc.c
+++ b/ap/app/zte_comm/phonebook/src/pb_proc.c
@@ -3,85 +3,85 @@
#include <semaphore.h>
#include <limits.h>
#include "pb_com.h"
-#define ZPB_UCS2 (0x18cf+909-0x1c5b)
-#define ZPB_UCS2_PREFIX (0x11c8+3744-0x1fe8)
-#define ZPB_UCS2_PREFIX_LEN (0x982+5973-0x20d5)
-#define ZPB_NON_GSM (0x1c7+5970-0x18f9)
-#define ZPB_GSM_CHARACTER_SET_SIZE (0x6f8+1095-0xabf)
-#define ZPB_INIT_LOAD_RECORD_NUM (0xae1+1755-0x118a)
+#define ZPB_UCS2 (0x1c90+439-0x1e46)
+#define ZPB_UCS2_PREFIX (0x1327+1110-0x16fd)
+#define ZPB_UCS2_PREFIX_LEN (0x2bb+1289-0x7c2)
+#define ZPB_NON_GSM (0x123a+3252-0x1ece)
+#define ZPB_GSM_CHARACTER_SET_SIZE (0x434+1755-0xa8f)
+#define ZPB_INIT_LOAD_RECORD_NUM (0x935+6533-0x2288)
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=
-(0x15f8+392-0x1780);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+
-(0x1b96+2626-0x25d7)]={(0x1fbf+553-0x21e8)};SINT32 g_zPb_ApIndex[
-ZPB_AP_MAX_RECORD+(0xa9d+3478-0x1832)]={(0xda0+1106-0x11f2)};
-T_zPb_DelStatusMultiOrAll g_zPb_DelStatusUsim={(0x2f7+3923-0x124a)};const
-unsigned char G_ZPB_NEWUCS2TOGSM[ZPB_GSM_CHARACTER_SET_SIZE*(0x1b33+672-0x1dd1)]
+(0x19e6+1328-0x1f16);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+
+(0xb05+6762-0x256e)]={(0x1294+5039-0x2643)};SINT32 g_zPb_ApIndex[
+ZPB_AP_MAX_RECORD+(0x8a4+5642-0x1ead)]={(0x12ff+3375-0x202e)};
+T_zPb_DelStatusMultiOrAll g_zPb_DelStatusUsim={(0x163f+1959-0x1de6)};const
+unsigned char G_ZPB_NEWUCS2TOGSM[ZPB_GSM_CHARACTER_SET_SIZE*(0x8c3+5632-0x1ec1)]
={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,(0xf2d+1985-0x16e4),ZPB_NON_GSM,
-ZPB_NON_GSM,(0x343+8036-0x229a),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0xd12+5873-0x23f9),ZPB_NON_GSM,
+ZPB_NON_GSM,(0xba1+3760-0x1a44),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,(0x1ad6+9-0x1abf),(0x8cc+1369-0xe04),(0xd8d+6382-0x2659)
-,(0x99c+7223-0x25b0),(0xb33+2952-0x16b9),(0x1032+3438-0x1d7b),
-(0xacf+6758-0x250f),(0xb0+4003-0x102c),(0xe3f+2485-0x17cc),(0xae8+6219-0x230a),
-(0x2f1+1613-0x914),(0x1242+4986-0x2591),(0x70d+3243-0x138c),(0x33f+5713-0x1963),
-(0x682+6454-0x1f8a),(0x191+7130-0x1d3c),(0x1ddd+308-0x1ee1),(0x1173+4957-0x249f)
-,(0xacf+1261-0xf8a),(0xacb+5520-0x2028),(0x14e9+3618-0x22d7),(0xc1+9338-0x2506),
-(0x1b1+4249-0x1214),(0x11da+1284-0x16a7),(0x68c+2860-0x1180),(0xd35+2327-0x1613)
-,(0xc79+257-0xd40),(0x1100+1176-0x155d),(0x10e2+2236-0x1962),(0x1ada+204-0x1b69)
-,(0x81a+3251-0x148f),(0x7fd+2928-0x132e),(0x47c+6013-0x1bf9),(0xa73+6864-0x2502)
-,(0x8f4+7707-0x26cd),(0x1d7f+170-0x1de6),(0xe42+11-0xe09),(0xc4a+2121-0x144e),
-(0xb65+2068-0x1333),(0x195d+837-0x1c5b),(0x468+5477-0x1985),(0x8e2+6406-0x219f),
-(0x140c+549-0x15e7),(0x1468+4750-0x26ab),(0x520+4022-0x148a),
-(0x1afa+2206-0x234b),(0x1951+1673-0x1f8c),(0xff9+4178-0x1ffc),
-(0x1ba+9398-0x2620),(0x6b9+3311-0x1357),(0x207f+529-0x223e),(0x15b8+781-0x1872),
-(0xc65+2766-0x16df),(0xf2b+5355-0x23c1),(0x1beb+314-0x1ccf),(0x8b0+628-0xacd),
-(0xf14+364-0x1028),(0xbfd+1522-0x1196),(0x184a+314-0x192a),(0x6cf+7835-0x250f),
-ZPB_NON_GSM,(0x568+5475-0x1a6e),ZPB_NON_GSM,(0x9bd+2282-0x1296),ZPB_NON_GSM,
-(0x87b+1058-0xc3c),(0xc47+3658-0x1a2f),(0x1227+3682-0x2026),(0x8d7+1973-0x1028),
-(0x697+3288-0x130a),(0x1d53+1500-0x22c9),(0xda1+4857-0x2033),(0xf68+4347-0x1ffb)
-,(0x277+3855-0x111d),(0x4ff+2316-0xda1),(0xa3c+882-0xd43),(0x1527+3575-0x22b2),
-(0x1c2+9001-0x247e),(0x48c+7743-0x225d),(0x1e47+1152-0x2258),(0x5bc+5968-0x1c9c)
-,(0x84+5226-0x147d),(0x134a+2604-0x1d04),(0x6a7+2700-0x10c0),
-(0x1b10+1080-0x1ed4),(0x169b+4308-0x26fa),(0x24c+5114-0x15d0),
-(0x1e36+1722-0x2479),(0x5d8+4943-0x18af),(0x34f+1740-0x9a2),(0x1e33+975-0x2188),
+ZPB_NON_GSM,ZPB_NON_GSM,(0x4cc+4131-0x14cf),(0x1b3+9050-0x24ec),
+(0x1d0+2912-0xd0e),(0x16b6+3694-0x2501),(0x4a4+5735-0x1b09),(0x1106+4792-0x2399)
+,(0x84b+253-0x922),(0x678+1611-0xc9c),(0x356+9109-0x26c3),(0xc84+3577-0x1a54),
+(0x1d45+1955-0x24be),(0x1dc5+1-0x1d9b),(0x2609+150-0x2673),(0x8b2+6220-0x20d1),
+(0x1af0+2713-0x255b),(0x11ff+4357-0x22d5),(0xd71+2093-0x156e),(0x8a2+1809-0xf82)
+,(0x1452+2089-0x1c49),(0x1375+816-0x1672),(0x61f+1943-0xd82),
+(0x20f1+1069-0x24e9),(0x13a7+1358-0x18bf),(0x490+6673-0x1e6a),
+(0x1ba0+1943-0x22ff),(0x10cc+2579-0x1aa6),(0x25b7+217-0x2656),
+(0x249c+260-0x2565),(0x1ed7+2137-0x26f4),(0xb68+953-0xee4),(0x870+258-0x934),
+(0xea9+6046-0x2608),(0x188d+3492-0x2631),(0x5ff+4937-0x1907),(0x91b+1319-0xe00),
+(0x2a0+9195-0x2648),(0x16df+1673-0x1d24),(0x2b1+8446-0x236a),(0x4d7+7804-0x230d)
+,(0x5df+7055-0x2127),(0x10c3+3408-0x1dcb),(0x415+7053-0x1f59),(0xa4f+270-0xb13),
+(0x999+2076-0x116a),(0x673+6316-0x1ed3),(0x1798+446-0x1909),(0x18c+8495-0x226d),
+(0xa5c+2263-0x12e4),(0xff+7764-0x1f03),(0x357+144-0x396),(0x83+7062-0x1bc7),
+(0x4c4+7030-0x1fe7),(0x320+5275-0x1767),(0x7ef+7880-0x2662),(0xc15+5743-0x222e),
+(0xf03+2740-0x1960),(0x81a+935-0xb69),(0x369+5982-0x1a6e),(0x882+1470-0xde6),
+(0x1248+4949-0x2542),ZPB_NON_GSM,(0x134+7745-0x1f18),ZPB_NON_GSM,
+(0x15fc+3409-0x233c),ZPB_NON_GSM,(0xa6b+1956-0x11ae),(0x850+3298-0x14d0),
+(0xc2d+6378-0x24b4),(0x1106+1613-0x16ef),(0xbf1+6659-0x258f),(0xadf+5752-0x20f1)
+,(0xbb4+3828-0x1a41),(0x158+3389-0xe2d),(0xf19+224-0xf90),(0x2bb+285-0x36e),
+(0xc3+1794-0x75a),(0x10b6+3301-0x1d2f),(0x53d+1923-0xc53),(0x6d8+211-0x73d),
+(0x13c6+4734-0x25d5),(0x1314+4429-0x23f1),(0x657+2367-0xf25),(0x900+6193-0x20bf)
+,(0xafd+4586-0x1c74),(0xf76+4372-0x2016),(0x1416+1183-0x1840),
+(0x24e5+235-0x255a),(0x1d5+113-0x1cf),(0x2f9+8772-0x24c5),(0xbcb+1758-0x1230),
+(0x2bd+1448-0x7eb),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,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,(0x513+1887-0xc32),ZPB_NON_GSM,(0x937+5837-0x2003),
-(0xdeb+2916-0x192b),(0x14f0+2861-0x201a),ZPB_NON_GSM,(0x2448+484-0x25cd),
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0xd06+4215-0x1d3d),ZPB_NON_GSM,
+(0x1b1+4193-0x1211),(0x983+6051-0x2102),(0x1357+2937-0x1ecd),ZPB_NON_GSM,
+(0x5f1+3513-0x134b),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,(0x1e7c+1382-0x2382)
-,(0x490+7136-0x202f),(0xf0c+5943-0x2602),(0x1145+2453-0x1a99),
-(0x794+5803-0x1dfe),(0x1575+2210-0x1dbc),(0x19a8+3167-0x25f9),
-(0x2136+782-0x2428),(0x707+2227-0xfb1),(0x1a65+2688-0x24a0),(0x11bb+1737-0x1865)
-,(0x2dd+429-0x445),(0x2065+1500-0x25fc),(0x1b2+195-0x22c),(0xaf0+5517-0x2034),
-(0x14ed+3148-0x20f0),(0x1759+2169-0x1f89),ZPB_NON_GSM,(0x187+9695-0x2709),
-(0x763+6887-0x21fb),(0x1d4+3360-0xea5),(0x39a+2566-0xd51),(0x466+8486-0x253d),
-(0x187+7145-0x1d14),ZPB_NON_GSM,(0x1913+3261-0x25c5),(0x122b+3545-0x1faf),
-(0x1ea2+1998-0x261b),(0x13e2+1149-0x180a),(0x1d4c+2459-0x2689),
-(0xf6a+2752-0x19d1),ZPB_NON_GSM,(0x4f8+1160-0x962),(0x356+3418-0x1031),
-(0xcb3+1917-0x13cf),(0x713+360-0x81a),(0xc2b+1723-0x1285),(0x1260+2162-0x1a57),
-(0xf38+2665-0x1992),(0x15c0+4023-0x255a),(0x1818+605-0x1a6c),(0x69c+2572-0x10a4)
-,(0x12d5+3511-0x2087),(0xd48+4909-0x2010),(0x879+2695-0x129b),
-(0x946+6605-0x230c),(0x1b23+245-0x1baf),(0x5c5+4409-0x1695),(0x1a90+179-0x1ada),
-ZPB_NON_GSM,(0x195+8409-0x21f1),(0x898+1892-0xff4),(0x31d+130-0x330),
-(0xefa+4524-0x2037),(0x1d45+306-0x1e08),(0x8fc+1752-0xf58),ZPB_NON_GSM,
-(0x4a4+7053-0x2025),(0x8b7+3535-0x1680),(0x742+6379-0x1fb8),(0x531+4290-0x157e),
-(0x32a+1207-0x763),(0x1e81+349-0x1f65),ZPB_NON_GSM,(0xbc3+1257-0x1033)};VOID
-atPb_Init(VOID){UINT32 pbCount=(0x20+8460-0x212c);g_zPb_SimIndex[
-(0x712+7847-0x25b9)]=(0x22a+493-0x417);sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);(VOID
-)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(pbCount=(0x1a6f+1551-0x207d);
-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,
+(0x1c19+395-0x1d44),(0xc06+3625-0x19ee),(0x335+4384-0x1414),(0x7c8+6392-0x207f),
+(0x3d1+587-0x5db),(0x1cf9+1242-0x2178),(0xd60+106-0xdbc),(0x1db2+2237-0x2653),
+(0x264+5963-0x19a6),(0x19fb+2642-0x2408),(0x1a5d+3-0x1a41),(0x22d+6984-0x1d30),
+(0x17cd+3273-0x2451),(0x9c2+6067-0x212c),(0x717+8229-0x26f3),
+(0x1412+4445-0x2526),(0x53c+1416-0xa7b),ZPB_NON_GSM,(0x198+1177-0x5d4),
+(0x665+3581-0x1413),(0x1308+3518-0x2077),(0xf39+4167-0x1f31),(0x5dd+7230-0x21cc)
+,(0x499+684-0x6e9),ZPB_NON_GSM,(0x1cfb+1120-0x2150),(0xb89+1245-0x1011),
+(0x116b+93-0x1173),(0x4ca+235-0x560),(0x12d+598-0x325),(0x811+2362-0x10f2),
+ZPB_NON_GSM,(0x703+5706-0x1d2f),(0x19f3+3351-0x268b),(0x853+4911-0x1b21),
+(0x1680+606-0x187d),(0x130+7347-0x1d82),(0x743+4561-0x1899),(0x1c16+441-0x1dc0),
+(0x6f9+1423-0xc6b),(0xf04+4792-0x21b3),(0x42a+690-0x6d8),(0x545+1772-0xc2c),
+(0x15b0+3196-0x21c7),(0x1b8+5221-0x15b8),(0xb47+3648-0x1980),(0x4f7+2377-0xdd7),
+(0x247+8561-0x234f),(0x527+3416-0x1216),ZPB_NON_GSM,(0x6f7+5410-0x1b9c),
+(0x1ab4+1722-0x2166),(0x1689+3799-0x24f1),(0x112b+3812-0x1fa0),
+(0x2e9+5336-0x1752),(0x1ea6+310-0x1f60),ZPB_NON_GSM,(0x969+1234-0xe2f),
+(0x9b6+1192-0xe58),(0x173+3554-0xee0),(0x49f+4330-0x1514),(0xec6+5774-0x24d6),
+(0x1036+110-0x102b),ZPB_NON_GSM,(0x83a+2208-0x1061)};VOID atPb_Init(VOID){UINT32
+ pbCount=(0xe06+3224-0x1a9e);g_zPb_SimIndex[(0x1e55+601-0x20ae)]=
+(0x1ce0+262-0x1de6);sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);(VOID)sc_cfg_set(
+ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(pbCount=(0x1d4a+1770-0x2433);pbCount<=
+ZPB_SIM_MAX_RECORD;pbCount++){g_zPb_SimIndex[pbCount]=PBM_ERROR_NOT_FOUND;}if(
+ZPB_DB_OK!=atPb_CreatDb()){slog(PB_PRINT,SLOG_ERR,
"pb:atPb_Init:create pbm table failed\n");return;}if(ZPB_DB_OK!=atPb_InitApIndex
()){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x49\x6e\x69\x74\x3a\x69\x6e\x69\x74\x20\x61\x70\x49\x6e\x64\x65\x78\x20\x66\x61\x69\x6c\x65\x64" "\n"
@@ -89,99 +89,99 @@
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=
-(0x11db+1048-0x15f3);int min=32767;int max=(0x139a+580-0x15de);int temp=
-(0x166f+478-0x184d);int outOff=(0x1cc+6169-0x19e5);printf(
+(0xb2d+3244-0x17d9);int min=32767;int max=(0x5fc+7928-0x24f4);int temp=
+(0xad7+2922-0x1641);int outOff=(0xd1b+3129-0x1954);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<=(0x1a7+1360-0x6f7)||src==NULL||dest==NULL){return-
-(0xdfc+3302-0x1ae1);}if(srcLen<=(0x2c1+4409-0x13f8)){dest[(0x479+1938-0xc0b)]=
-(0x17e3+1848-0x1e9b);memcpy(dest+(0x1e87+324-0x1fca),src,srcLen);printf(
+,srcLen);if(srcLen<=(0x11ba+4174-0x2208)||src==NULL||dest==NULL){return-
+(0x25f+2961-0xdef);}if(srcLen<=(0x13df+4609-0x25de)){dest[(0x829+852-0xb7d)]=
+(0xee5+222-0xf43);memcpy(dest+(0xf8a+6005-0x26fe),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+(0x331+8832-0x25b0));return srcLen+(0xa7+3472-0xe36);}for(i=
-(0xe93+1483-0x145e);i<srcLen;i+=(0x19c+851-0x4ed)){if(src[i]!=
-(0x1cf0+1800-0x23f8)){temp=(int)(((src[i]<<(0x1ae0+1932-0x2264))&65280)|(src[i+
-(0x6d4+5291-0x1b7e)]&(0x8c8+7173-0x23ce)));
-#if (0xec3+100-0xf27)
-if(temp<(0x1857+2818-0x2359)){max=min+(0x10d0+4744-0x22d6);break;}
+,srcLen+(0x13b3+2557-0x1daf));return srcLen+(0x578+6212-0x1dbb);}for(i=
+(0x3a3+4559-0x1572);i<srcLen;i+=(0x971+4180-0x19c3)){if(src[i]!=
+(0xb2f+4832-0x1e0f)){temp=(int)(((src[i]<<(0x11ea+4511-0x2381))&65280)|(src[i+
+(0x19a4+2592-0x23c3)]&(0x696+632-0x80f)));
+#if (0x14da+3238-0x2180)
+if(temp<(0x1150+5417-0x2679)){max=min+(0x267+80-0x235);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)<(0x1df3+136-0x1dfa)){if((unsigned char)(min&
-(0x393+2404-0xc77))==(unsigned char)(max&(0xb4f+4539-0x1c8a))){dest[
-(0x2a+5996-0x1795)]=(unsigned char)(srcLen/(0x1664+2005-0x1e37));dest[
-(0x2ef+4077-0x12dc)]=(unsigned char)(0x1c13+2888-0x26da);min=(int)(min&32640);
-dest[(0xa46+753-0xd35)]=(unsigned char)((min>>(0x493+2543-0xe7b))&
-(0x433+458-0x4fe));outOff=(0x91f+5459-0x1e6f);printf(
+,min,max);if((max-min)<(0x4c9+868-0x7ac)){if((unsigned char)(min&
+(0x19a0+1376-0x1e80))==(unsigned char)(max&(0x47c+6630-0x1de2))){dest[
+(0x1e4b+453-0x200f)]=(unsigned char)(srcLen/(0x1829+2290-0x2119));dest[
+(0x10b7+5246-0x2535)]=(unsigned char)(0x1ef0+302-0x1f9d);min=(int)(min&32640);
+dest[(0x8cf+4809-0x1b96)]=(unsigned char)((min>>(0x469+1390-0x9d0))&
+(0x973+5402-0x1d8e));outOff=(0x1d1+2490-0xb88);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[(0x1469+1118-0x18c6)]=(unsigned char)(srcLen/(0xa79+136-0xaff));
-dest[(0x11b7+4715-0x2422)]=(unsigned char)(0xf61+2280-0x17c7);dest[
-(0x1093+4536-0x2249)]=(unsigned char)((min>>(0x1398+2516-0x1d64))&
-(0xf3f+1784-0x1538));dest[(0x1c98+341-0x1dea)]=(unsigned char)(min&
-(0x52f+2427-0xdab));outOff=(0x1cb0+1207-0x2163);printf(
+);}else{dest[(0x1980+1400-0x1ef7)]=(unsigned char)(srcLen/(0x1a2b+574-0x1c67));
+dest[(0x1258+3056-0x1e48)]=(unsigned char)(0x1554+3769-0x238b);dest[
+(0x1a27+2066-0x2237)]=(unsigned char)((min>>(0x9cd+2390-0x131b))&
+(0x103+1294-0x512));dest[(0x1ca4+449-0x1e62)]=(unsigned char)(min&
+(0x4e3+7766-0x223a));outOff=(0xb4f+2533-0x1530);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=(0x181+7483-0x1ebc);i<srcLen;i+=(0x1730+2428-0x20aa)){if(src[i]==
-(0x1661+2048-0x1e61)){dest[outOff]=(unsigned char)(src[i+(0x1d46+281-0x1e5e)]&
-(0xaf8+4301-0x1b46));}else{temp=(int)((((src[i]<<(0x8fd+7488-0x2635))&65280)|(
-src[i+(0x11c8+4890-0x24e1)]&(0x3d2+7750-0x2119)))-min);dest[outOff]=(unsigned
-char)(temp|(0x1b75+2426-0x246f));}outOff++;}printf(
+);}for(i=(0x272+4964-0x15d6);i<srcLen;i+=(0xc4b+241-0xd3a)){if(src[i]==
+(0x28+6004-0x179c)){dest[outOff]=(unsigned char)(src[i+(0xd23+575-0xf61)]&
+(0xdb2+2006-0x1509));}else{temp=(int)((((src[i]<<(0x6ab+7305-0x232c))&65280)|(
+src[i+(0x9fb+6304-0x229a)]&(0x2058+1333-0x248e)))-min);dest[outOff]=(unsigned
+char)(temp|(0xb90+743-0xdf7));}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[(0x1031+2649-0x1a8a)]=
-(0x8d2+447-0xa11);memcpy(dest+(0x901+1996-0x10cc),src,srcLen);printf(
+,outOff,outOff,dest[outOff]);return outOff;}dest[(0x1937+3393-0x2678)]=
+(0xdba+4533-0x1eef);memcpy(dest+(0x8f2+6850-0x23b3),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+(0x428+495-0x616));return srcLen+(0x53a+7503-0x2288);}int
+,srcLen+(0x2da+5056-0x1699));return srcLen+(0x4fa+8694-0x26ef);}int
atPb_GetU80Code(const UINT8*srcCode,UINT32 srcCodeLen,UINT8*destCode,UINT32
destCodeLen){assert(destCode!=NULL&&srcCode!=NULL);if(srcCodeLen==
-(0x1cec+1497-0x22c5)||destCodeLen==(0x34c+144-0x3dc)||destCodeLen<srcCodeLen){
-return-(0x196f+3185-0x25df);}memset(destCode,(0xa6c+6314-0x2316),destCodeLen);
-destCode[(0x1ac5+879-0x1e34)]=(0x128f+3456-0x1f8f);printf(
+(0xfc0+4414-0x20fe)||destCodeLen==(0xf71+3105-0x1b92)||destCodeLen<srcCodeLen){
+return-(0x1b1+2535-0xb97);}memset(destCode,(0x1d09+788-0x201d),destCodeLen);
+destCode[(0x3fc+4466-0x156e)]=(0x236b+98-0x234d);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[(0x3d2+6521-0x1d4b)]);switch(srcCode[(0xa51+562-0xc83)]){case
-(0x1c7a+1565-0x2217):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}
-case(0x126+6616-0x1a7d):{atPb_CvtU81ToU80(srcCode+(0xc8c+4395-0x1db6),srcCodeLen
--(0x386+2179-0xc08),destCode+(0x12c8+2041-0x1ac0),destCodeLen-
-(0x75c+6237-0x1fb8));return srcCode[(0x18d4+2737-0x2384)]*(0x14c8+2396-0x1e22)+
-(0x401+273-0x511);}case(0x1d71+673-0x1f90):{atPb_CvtU82ToU80(srcCode+
-(0xf57+1824-0x1676),srcCodeLen-(0x987+6574-0x2334),destCode+(0x71b+3743-0x15b9),
-destCodeLen-(0x68b+1545-0xc93));return srcCode[(0x607+3681-0x1467)]*
-(0x5c5+2244-0xe87)+(0x160+1452-0x70b);}default:{return-(0x67+9386-0x2510);}}}
-BOOL atPb_CvtU82ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32
-destLen){UINT8 chNum=(0xb17+7083-0x26c2);UINT16 basePointer=(0x160+7659-0x1f4b);
-UINT8 iCurChar=(0x1740+3155-0x2393);UINT32 iCurSrc=(0x467+5684-0x1a9b);chNum=(
-UINT32)srcData[(0x22a+5338-0x1704)];basePointer=(UINT16)srcData[
-(0x8d5+3110-0x14fa)];basePointer=basePointer<<(0x974+109-0x9d9);basePointer=
-basePointer+srcData[(0x4c1+4458-0x1629)];if(chNum*(0x15f7+1513-0x1bde)>destLen){
-return FALSE;}for(iCurSrc=(0xdf2+6089-0x25b8);iCurSrc<srcLen&&iCurChar<chNum;
-iCurSrc++,iCurChar++){UINT8*curDest=destData+(0xa21+4331-0x1b0a)*iCurChar;
-atPb_CvtChCode(basePointer,srcData[iCurSrc],curDest,curDest+(0x19ca+883-0x1d3c))
-;}return TRUE;}BOOL atPb_CvtU81ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*
-destData,UINT32 destLen){UINT8 chNum=(0x14f0+987-0x18cb);UINT16 basePointer=
-(0x1427+3758-0x22d5);UINT8 iCurChar=(0xd28+1467-0x12e3);UINT32 iCurSrc=
-(0x16df+1763-0x1dc2);chNum=srcData[(0x498+514-0x69a)];basePointer=((UINT16)
-srcData[(0xca1+308-0xdd4)])<<(0x1407+1202-0x18b2);if(chNum*(0x18c5+1514-0x1ead)>
-destLen){return FALSE;}for(iCurSrc=(0x1832+3539-0x2603);iCurSrc<srcLen&&iCurChar
-<chNum;iCurSrc++,iCurChar++){UINT8*curDest=destData+(0xfc8+5386-0x24d0)*iCurChar
-;atPb_CvtChCode(basePointer,srcData[iCurSrc],curDest,curDest+(0xb0d+4115-0x1b1f)
-);}return TRUE;}VOID atPb_CvtChCode(UINT16 basePointer,UINT8 srcData,UINT8*chMsb
-,UINT8*chLsb){UINT16 curChar=(0x1052+1682-0x16e4);assert(chMsb!=NULL&&chLsb!=
-NULL);if((srcData&(0x487+2143-0xc66))==(0x1260+3977-0x21e9)){curChar=srcData;}
-else{curChar=basePointer+(srcData&(0x1e7+4094-0x1166));}*chMsb=(UINT8)(curChar>>
-(0x8e5+3857-0x17ee));*chLsb=(UINT8)((curChar<<(0x17d7+1298-0x1ce1))>>
-(0x175f+1417-0x1ce0));return;}int atPb_String2Bytes(const char*pSrc,unsigned
-char*pDst,int nSrcLength){int i=(0xf84+2818-0x1a86);if(pSrc==NULL||pDst==NULL||
-nSrcLength<(0x25a+8250-0x2294)){return-(0xda+3794-0xfab);}for(i=
-(0x708+3372-0x1434);i<nSrcLength;i+=(0x24e6+505-0x26dd)){if(*pSrc>=
-((char)(0x4a4+6199-0x1cab))&&*pSrc<=((char)(0x392+6398-0x1c57))){*pDst=(*pSrc-
-((char)(0xbfa+3822-0x1ab8)))<<(0x29+8027-0x1f80);}else{*pDst=((toupper(*pSrc)-
-((char)(0x3f8+789-0x6cc)))+(0x1dc+4035-0x1195))<<(0x19bf+450-0x1b7d);}pSrc++;if(
-*pSrc>=((char)(0x6dd+5370-0x1ba7))&&*pSrc<=((char)(0x24f+8905-0x24df))){*pDst|=*
-pSrc-((char)(0xd18+6053-0x248d));}else{*pDst|=(toupper(*pSrc)-
-((char)(0x1737+296-0x181e)))+(0x1b89+1591-0x21b6);}pSrc++;pDst++;}return
-nSrcLength/(0xe7f+1833-0x15a6);}int atPb_Bytes2String(const unsigned char*pSrc,
+,srcCode[(0xbe6+3210-0x1870)]);switch(srcCode[(0x97f+5342-0x1e5d)]){case
+(0x691+2337-0xf32):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}case
+(0x131c+4362-0x23a5):{atPb_CvtU81ToU80(srcCode+(0x1d4d+564-0x1f80),srcCodeLen-
+(0xda0+4498-0x1f31),destCode+(0x1e9+2998-0xd9e),destCodeLen-(0x79a+349-0x8f6));
+return srcCode[(0x6ab+2034-0xe9c)]*(0x6a8+1047-0xabd)+(0x7d5+6011-0x1f4f);}case
+(0x2140+1252-0x25a2):{atPb_CvtU82ToU80(srcCode+(0x759+5688-0x1d90),srcCodeLen-
+(0x1cb6+1513-0x229e),destCode+(0x608+935-0x9ae),destCodeLen-(0x121f+3378-0x1f50)
+);return srcCode[(0x1839+3207-0x24bf)]*(0x129f+3420-0x1ff9)+(0x587+5793-0x1c27);
+}default:{return-(0x2286+37-0x22aa);}}}BOOL atPb_CvtU82ToU80(const UINT8*srcData
+,UINT32 srcLen,UINT8*destData,UINT32 destLen){UINT8 chNum=(0x6b3+6500-0x2017);
+UINT16 basePointer=(0xde3+2942-0x1961);UINT8 iCurChar=(0x1012+1839-0x1741);
+UINT32 iCurSrc=(0xb93+5711-0x21e2);chNum=(UINT32)srcData[(0xed8+343-0x102f)];
+basePointer=(UINT16)srcData[(0x61a+5560-0x1bd1)];basePointer=basePointer<<
+(0xc04+3985-0x1b8d);basePointer=basePointer+srcData[(0x1972+361-0x1ad9)];if(
+chNum*(0x10b2+3484-0x1e4c)>destLen){return FALSE;}for(iCurSrc=(0xa6+5455-0x15f2)
+;iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++){UINT8*curDest=destData+
+(0x1bb5+1001-0x1f9c)*iCurChar;atPb_CvtChCode(basePointer,srcData[iCurSrc],
+curDest,curDest+(0x331+3056-0xf20));}return TRUE;}BOOL atPb_CvtU81ToU80(const
+UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32 destLen){UINT8 chNum=
+(0x1c33+382-0x1db1);UINT16 basePointer=(0x13d0+2132-0x1c24);UINT8 iCurChar=
+(0x10e9+5358-0x25d7);UINT32 iCurSrc=(0x34f+3615-0x116e);chNum=srcData[
+(0x1a6+1010-0x598)];basePointer=((UINT16)srcData[(0x1149+4403-0x227b)])<<
+(0x3d+7482-0x1d70);if(chNum*(0x2b9+5902-0x19c5)>destLen){return FALSE;}for(
+iCurSrc=(0x2a+5464-0x1580);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++){
+UINT8*curDest=destData+(0xb43+3856-0x1a51)*iCurChar;atPb_CvtChCode(basePointer,
+srcData[iCurSrc],curDest,curDest+(0x979+732-0xc54));}return TRUE;}VOID
+atPb_CvtChCode(UINT16 basePointer,UINT8 srcData,UINT8*chMsb,UINT8*chLsb){UINT16
+curChar=(0x3b4+1641-0xa1d);assert(chMsb!=NULL&&chLsb!=NULL);if((srcData&
+(0x142f+771-0x16b2))==(0x9b3+2089-0x11dc)){curChar=srcData;}else{curChar=
+basePointer+(srcData&(0xb60+3367-0x1808));}*chMsb=(UINT8)(curChar>>
+(0xe08+4120-0x1e18));*chLsb=(UINT8)((curChar<<(0x213+2863-0xd3a))>>
+(0x1703+1722-0x1db5));return;}int atPb_String2Bytes(const char*pSrc,unsigned
+char*pDst,int nSrcLength){int i=(0xba+8417-0x219b);if(pSrc==NULL||pDst==NULL||
+nSrcLength<(0xfbd+4267-0x2068)){return-(0xac1+4914-0x1df2);}for(i=
+(0xed8+6160-0x26e8);i<nSrcLength;i+=(0x1722+350-0x187e)){if(*pSrc>=
+((char)(0xb1a+5547-0x2095))&&*pSrc<=((char)(0x14b5+922-0x1816))){*pDst=(*pSrc-
+((char)(0x216d+1190-0x25e3)))<<(0x373+2770-0xe41);}else{*pDst=((toupper(*pSrc)-
+((char)(0x15c1+1480-0x1b48)))+(0xd30+2120-0x156e))<<(0x16f2+3549-0x24cb);}pSrc++
+;if(*pSrc>=((char)(0x4fd+5337-0x19a6))&&*pSrc<=((char)(0xd12+3688-0x1b41))){*
+pDst|=*pSrc-((char)(0x4ca+6476-0x1de6));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x17c9+299-0x18b3)))+(0xdfd+3172-0x1a57);}pSrc++;pDst++;}return
+nSrcLength/(0x1058+3481-0x1def);}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=
-(0x1056+3023-0x1c25);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1103+3473-0x1e94))
-{return-(0x111a+3349-0x1e2e);}for(i=(0xdc+1302-0x5f2);i<nSrcLength;i++){*pDst++=
-tab[*pSrc>>(0x1569+3265-0x2226)];*pDst++=tab[*pSrc&(0x52c+5347-0x1a00)];pSrc++;}
-*pDst='\0';return nSrcLength*(0x899+6187-0x20c2);}static VOID atPb_WebRecodeShow
+(0x7ef+405-0x984);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1a4f+3128-0x2687)){
+return-(0x1f8b+446-0x2148);}for(i=(0x1283+3526-0x2049);i<nSrcLength;i++){*pDst++
+=tab[*pSrc>>(0x474+6819-0x1f13)];*pDst++=tab[*pSrc&(0x3d3+4237-0x1451)];pSrc++;}
+*pDst='\0';return nSrcLength*(0xe84+5791-0x2521);}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,
@@ -201,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[
-(0x101d+420-0x11ad)]={(0x37c+6417-0x1c8d)};if(strncmp(cpbsInd->locType,
-"\x53\x4d",(0x1af4+2737-0x25a3))==(0x94f+1059-0xd72)){(VOID)snprintf(resInfo,
-(0x19b0+802-0x1cbe),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
-NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x51f+1957-0xcc4),(0x876+1971-0x1015)
-);(VOID)snprintf(resInfo,(0xa70+3266-0x171e),"\x25\x64",cpbsInd->totalEntries);(
-VOID)sc_cfg_set(NV_PB_TOTALENTRIES,resInfo);g_zPb_SimIndex[(0x26+1103-0x475)]=(
-UINT32)(cpbsInd->totalEntries);}else{printf(
+(0x9d4+1265-0xeb1)]={(0x58+3439-0xdc7)};if(strncmp(cpbsInd->locType,"\x53\x4d",
+(0x1ba9+2840-0x26bf))==(0x2392+466-0x2564)){(VOID)snprintf(resInfo,
+(0x111c+349-0x1265),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
+NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x142+4057-0x111b),(0x40b+1190-0x89d)
+);(VOID)snprintf(resInfo,(0xed3+3797-0x1d94),"\x25\x64",cpbsInd->totalEntries);(
+VOID)sc_cfg_set(NV_PB_TOTALENTRIES,resInfo);g_zPb_SimIndex[(0x7d4+2885-0x1319)]=
+(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[(0x118c+3887-0x20b1)]={(0xbb5+5725-0x2212)};assert(
-pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0x5dd+4446-0x1731),"\x25\x64",
+UINT32 len){char converted[(0xa45+6114-0x221d)]={(0x9f2+2041-0x11eb)};assert(
+pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0xe2f+5572-0x23e9),"\x25\x64",
len);(VOID)sc_cfg_set(pbNvKeyWord,converted);}VOID atPb_ScpbrTestRsp(
-T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0xc19+3836-0x1b15)};
-CHAR pbUsed[(0x1507+748-0x17c1)]={(0x44b+1340-0x987)};sc_cfg_get(
+T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0x332+1225-0x7fb)};
+CHAR pbUsed[(0x117f+158-0x11eb)]={(0x157f+2466-0x1f21)};sc_cfg_get(
NV_PB_USEDENTRIES,pbUsed,sizeof(pbUsed));g_zPb_DelIndex=(UINT32)scpbsInd->
minIndex;pbPara.simType=ZPB_USIM;pbPara.maxRecordNum=scpbsInd->maxIndex;pbPara.
usedRecordNum=atoi(pbUsed);pbPara.maxNumberLen=scpbsInd->maxNumberLen;pbPara.
@@ -223,22 +223,22 @@
atPb_SetScpbrResToNv(ZPB_NV_USIMINDEXMIN,(UINT32)scpbsInd->minIndex);
atPb_SetScpbrResToNv(ZPB_NV_USIMINDEXMAX,(UINT32)scpbsInd->maxIndex);(VOID)
atPb_SetSimCapacityTable(pbPara);}int atPb_SendScpbrSet_repeat(sem_t tSemId){int
- min=(0xca4+928-0x1044);int max=(0x1668+257-0x1769);int res=(0xe61+70-0xea7);int
- index=(0x64c+7781-0x24b1);CHAR pbMin[(0x64c+4043-0x15e5)]={(0x3e0+2239-0xc9f)};
-CHAR pbMax[(0x118c+1485-0x1727)]={(0x10+1653-0x685)};int indexmin=
-(0xc7d+6023-0x2404);int indexmax=(0x158+3647-0xf97);T_zPb_ScpbrReadRes
-scpbrReadInfo={(0xce7+647-0xf6e)};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")==(0x19d3+2778-0x24ad)||strcmp(
-pbMax,"\x30")==(0xdb9+2526-0x1797)){sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);
-printf(
+ min=(0x1eba+712-0x2182);int max=(0x1184+104-0x11ec);int res=
+(0x1ff7+1631-0x2656);int index=(0xfb+5756-0x1777);CHAR pbMin[(0xd35+6369-0x25e4)
+]={(0x1f40+1026-0x2342)};CHAR pbMax[(0x505+1526-0xac9)]={(0x4c2+4729-0x173b)};
+int indexmin=(0x1083+1935-0x1812);int indexmax=(0x383+1787-0xa7e);
+T_zPb_ScpbrReadRes scpbrReadInfo={(0xce5+1753-0x13be)};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")
+==(0x5f8+3788-0x14c4)||strcmp(pbMax,"\x30")==(0x583+4681-0x17cc)){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-(0x64f+6124-0x1e3a);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
-"\x25\x64",&max);if((min<(0xb5+2922-0xc1f)||min>INT_MAX-(0x1732+3147-0x237c))||(
-max<(0x3dd+1121-0x83e)||max>INT_MAX-(0xcea+4869-0x1fee))){printf(
+);return-(0x10bb+5420-0x25e6);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
+"\x25\x64",&max);if((min<(0x80b+6556-0x21a7)||min>INT_MAX-(0xbf7+4405-0x1d2b))||
+(max<(0x1d00+2562-0x2702)||max>INT_MAX-(0xa95+1849-0x11cd))){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-(0x4b2+6388-0x1da5);}while((0x990+2026-0x1179)){if(indexmin<min
-){indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0xdb2+3987-0x1d44);if(
+,min,max);return-(0x1ab3+547-0x1cd5);}while((0xff2+5712-0x2641)){if(indexmin<min
+){indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0xe5d+6052-0x2600);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(
@@ -249,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,(0x20cf+96-0x212f)
-);sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-(0x1775+804-0x1a98)){break;}}
+MSG_CMD_READ_PB_REQ,sizeof(T_zPb_ScpbrReadRes),&scpbrReadInfo,(0xe07+826-0x1141)
+);sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-(0xf67+4702-0x21c4)){break;}}
return g_PbOptRsp.result;}
-#if (0x1247+2389-0x1b9c)
+#if (0x498+4093-0x1495)
int atPb_SendScpbrSet(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){UINT32
-indexmin=(0x46+4502-0x11dc);UINT32 indexmax=(0x7dd+2106-0x1017);CHAR atcmdMsg[
-(0x2aa+3547-0x103f)]={(0x1d50+121-0x1dc9)};int res=(0x17cd+2926-0x233b);CHAR
-pbMin[(0x14bc+3977-0x2413)]={(0xf80+713-0x1249)};CHAR pbMax[(0x2507+489-0x26be)]
-={(0x589+752-0x879)};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")==(0xe08+2807-0x18ff)||strcmp(pbMax,"\x30")
-==(0xbdf+3026-0x17b1)){printf(
+indexmin=(0x1b5+2339-0xad8);UINT32 indexmax=(0x16ed+3397-0x2432);CHAR atcmdMsg[
+(0x1689+1494-0x1c19)]={(0x100b+169-0x10b4)};int res=(0x425+8787-0x2678);CHAR
+pbMin[(0x17e3+1670-0x1e37)]={(0x1608+3210-0x2292)};CHAR pbMax[
+(0xe7f+4309-0x1f22)]={(0x1875+1313-0x1d96)};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")==(0xc50+2810-0x174a)
+||strcmp(pbMax,"\x30")==(0x1128+3651-0x1f6b)){printf(
"\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x63\x61\x72\x64\x20\x75\x6e\x73\x75\x70\x70\x6f\x72\x74\x20\x70\x62" "\n"
);return ZAT_RESULT_OK;}sscanf(pbMin,"\x25\x64",&indexmin);sscanf(pbMax,
"\x25\x64",&indexmax);(VOID)snprintf(atcmdMsg,sizeof(atcmdMsg),
@@ -269,45 +269,45 @@
atcmdMsg,cid,pAtRst,atRstSize);pthread_mutex_unlock(&smsdb_mutex);return res;}
#endif
UINT8 atPb_EncodeText(CHAR*pbDst,CHAR const*pbTextSrc,UINT32 dstLen){UINT8 i=
-(0x1f9+4063-0x11d8);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x127a+2670-0x1ce8)};
-if(pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0xc88+5581-0x2251)+
-ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0x308+4049-0x12d9)],
-sizeof(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0x611+5451-0x1b5c);
-(i<strlen(pbTextSrc))&&(i*(0x1200+2216-0x1aa4)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
-snprintf(strTarget+i*(0xdb8+2392-0x170c)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i
-*(0xd25+950-0x10d7)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i])
-;}strncpy(pbDst,strTarget,dstLen-(0x1547+3059-0x2139));return ZUFI_SUCC;}}return
- ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){T_zPb_WebContact
-pbRecord={(0x126b+2399-0x1bca)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
-(0x1a0+7920-0x2090)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0x1979+2444-0x2305)};int
-text_len=(0x63b+2014-0xe19);int tmp_len=(0x7a3+6585-0x215c);CHAR tmp[
-ZPB_TEXT_SIZE_BYTES]={(0x7f6+5789-0x1e93)};if(atRes->coding!=ZPB_UCS2){if(
+(0x3ac+1158-0x832);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x629+1445-0xbce)};if(
+pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0xa33+2771-0x1502)+
+ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0xf8b+3847-0x1e92)],
+sizeof(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0x1486+3953-0x23f7)
+;(i<strlen(pbTextSrc))&&(i*(0x18b+2928-0xcf7)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
+snprintf(strTarget+i*(0x27+4861-0x1320)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i*
+(0x17a8+3424-0x2504)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i]
+);}strncpy(pbDst,strTarget,dstLen-(0x69+4029-0x1025));return ZUFI_SUCC;}}return
+ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){T_zPb_WebContact
+pbRecord={(0x68f+6328-0x1f47)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
+(0x612+5322-0x1adc)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0xb11+2685-0x158e)};int
+text_len=(0x15d5+1312-0x1af5);int tmp_len=(0x161d+3686-0x2483);CHAR tmp[
+ZPB_TEXT_SIZE_BYTES]={(0xb8c+5608-0x2174)};if(atRes->coding!=ZPB_UCS2){if(
atPb_EncodeText(pbDst,atRes->text,ZPB_TEXT_SIZE_BYTES)==ZUFI_SUCC){strncpy(atRes
-->text,pbDst+(0x9b+2038-0x88f),sizeof(atRes->text)-(0x6cb+7825-0x255b));}else{
-slog(PB_PRINT,SLOG_ERR,
+->text,pbDst+(0x7ab+5331-0x1c7c),sizeof(atRes->text)-(0x1797+1926-0x1f1c));}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<
-(0x248+3508-0xffc))return;memset(&text,(0x1e31+482-0x2013),ZPB_TEXT_SIZE_BYTES);
-text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>(0x1e55+1017-0x224c))
-{memset(&atRes->text,(0x10a3+577-0x12e4),ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->
-text,text+(0xe4a+5-0xe4d),strlen(text)-(0xd5c+5293-0x2207));}}pbRecord.pbId=-
-(0x21+9636-0x25c4);pbRecord.pbIndex=(SINT32)atRes->index;strncpy(pbRecord.name,
-atRes->text,sizeof(pbRecord.name)-(0x13d1+4318-0x24ae));strncpy(pbRecord.
-mobilNumber,atRes->number1,sizeof(pbRecord.mobilNumber)-(0x1de5+808-0x210c));
+(0x12aa+186-0x1364))return;memset(&text,(0x30d+1045-0x722),ZPB_TEXT_SIZE_BYTES);
+text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>(0x96+2347-0x9bf)){
+memset(&atRes->text,(0x158+1023-0x557),ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->text,
+text+(0x22c+1565-0x847),strlen(text)-(0x14dc+3266-0x219c));}}pbRecord.pbId=-
+(0xe77+1807-0x1585);pbRecord.pbIndex=(SINT32)atRes->index;strncpy(pbRecord.name,
+atRes->text,sizeof(pbRecord.name)-(0x1ab+7060-0x1d3e));strncpy(pbRecord.
+mobilNumber,atRes->number1,sizeof(pbRecord.mobilNumber)-(0x1a29+1868-0x2174));
strncpy(pbRecord.officeNumber,atRes->number2,sizeof(pbRecord.officeNumber)-
-(0x1836+394-0x19bf));strncpy(pbRecord.homeNumber,atRes->number3,sizeof(pbRecord.
-homeNumber)-(0x49a+3361-0x11ba));strncpy(pbRecord.email,atRes->email,sizeof(
-pbRecord.email)-(0x17ba+3775-0x2678));pbRecord.pbLocation=ZPB_LOCATION_USIM;(
-VOID)atPb_LoadARecToPbmTable(&pbRecord);}VOID atPb_SetDelStatusMultOrAll(){if(
-g_zPb_DelStatusUsim.dealFailNum>(0xb4f+1521-0x1140)){if(g_zPb_DelStatusUsim.
-dealSuccNum>(0x42c+4904-0x1754)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
+(0x1e52+207-0x1f20));strncpy(pbRecord.homeNumber,atRes->number3,sizeof(pbRecord.
+homeNumber)-(0x95f+6952-0x2486));strncpy(pbRecord.email,atRes->email,sizeof(
+pbRecord.email)-(0x4a7+1749-0xb7b));pbRecord.pbLocation=ZPB_LOCATION_USIM;(VOID)
+atPb_LoadARecToPbmTable(&pbRecord);}VOID atPb_SetDelStatusMultOrAll(){if(
+g_zPb_DelStatusUsim.dealFailNum>(0xe3a+1607-0x1481)){if(g_zPb_DelStatusUsim.
+dealSuccNum>(0xc1+6808-0x1b59)){(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 (0x892+7701-0x26a7)
+#if (0x1554+4018-0x2506)
VOID atPb_RecvScpbwAddErr(UINT8*pErrCode){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
-ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x6df+573-0x91a))==
-(0x95c+479-0xb3b))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73");
+ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x2154+658-0x23e4))
+==(0xaed+2759-0x15b4))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73");
printf(
"\x70\x62\x3a\x52\x65\x63\x76\x20\x43\x4d\x45\x20\x45\x72\x72\x43\x6f\x64\x65\x3a\x20\x32\x30\x2e" "\n"
);}else{printf(
@@ -318,85 +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=(0x1425+208-0x14f5);UINT8 iTemp=(0xd54+2042-0x154e);SINT32 i
-=(0xfe8+4479-0x2167);if((NULL==pcHex)||(NULL==pcASC)||((0xff6+3323-0x1cf1)==
-iDstLen)||(iDstLen<(iSrcLen/(0x1802+2564-0x2204)+(0x155f+3105-0x217f)))){return;
-}for(i=(0x1061+5172-0x2495);i<iSrcLen;i++){if(iOddOrEven%(0x91+977-0x460)==
-(0xdf+1365-0x634)){iTemp=*(pcASC+i);if((iTemp>=((char)(0x1806+2428-0x2152)))&&(
-iTemp<=((char)(0x22a7+1014-0x2664)))){*(pcHex+i/(0x2082+677-0x2325))|=(UINT8)(
-iTemp-(0x2079+212-0x211d))<<(0x1cc+8497-0x22f9);}else{*(pcHex+i/
-(0x20a2+1557-0x26b5))|=(UINT8)(iTemp-(0x8bb+495-0xa73))<<(0x912+1898-0x1078);}}
-else{iTemp=*(pcASC+i);if((iTemp>=((char)(0x6c2+7861-0x2547)))&&(iTemp<=
-((char)(0x1bc9+207-0x1c5f)))){*(pcHex+i/(0x15a6+4223-0x2623))|=iTemp-
-(0xd78+3008-0x1908);}else{*(pcHex+i/(0x6a0+7854-0x254c))|=iTemp-
-(0x6a4+1825-0xd8e);}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,
-SINT32 iLength){int iRetVal=(0xe0f+3784-0x1cd6);char cTemp;int i=
-(0xe3+5451-0x162e);if(NULL==psUcs2){return-(0x1a11+3265-0x26d1);}for(i=
-(0x1762+921-0x1afb);i<iLength;i++){if((0x1d96+2140-0x24f2)>psUcs2[i]){switch(
-psUcs2[i]){case(0x17ca+1695-0x1e5d):case(0x855+3593-0x1603):case
-(0x8f3+5910-0x1fad):case(0x1243+1103-0x1635):case(0xf14+3554-0x1c98):case
-(0x14c3+4057-0x2421):case(0x1587+1967-0x1cba):case(0x143f+1964-0x1b6e):case
-(0x26f4+93-0x26d3):case(0x102a+232-0x106e):case(0x12ef+561-0x1500):{break;}
-default:{cTemp=(char)G_ZPB_NEWUCS2TOGSM[psUcs2[i]];if(ZPB_NON_GSM==cTemp){
-iRetVal=(0xb47+967-0xf0e);}break;}}}else{switch(psUcs2[i]){case
-(0x148f+2239-0x19ba):case(0xb8b+2309-0x10ea):case(0x1870+3342-0x21eb):case
-(0x5b9+748-0x50a):case(0x855+4837-0x1791):case(0xa90+4787-0x19a3):case
-(0x18a9+4411-0x261c):case(0xc7d+649-0xb63):case(0x12b4+2419-0x186f):case
-(0x1a1a+3007-0x223b):{break;}default:{iRetVal=(0xa6b+6591-0x242a);break;}}}if(
-(0x1bb7+2176-0x2437)==iRetVal){break;}}return iRetVal;}static UINT8
+){UINT32 iOddOrEven=(0xf98+4681-0x21e1);UINT8 iTemp=(0x2098+498-0x228a);SINT32 i
+=(0x6+877-0x373);if((NULL==pcHex)||(NULL==pcASC)||((0x126b+3299-0x1f4e)==iDstLen
+)||(iDstLen<(iSrcLen/(0x206+2953-0xd8d)+(0x122a+2974-0x1dc7)))){return;}for(i=
+(0x81+6342-0x1947);i<iSrcLen;i++){if(iOddOrEven%(0xc22+3880-0x1b48)==
+(0x100b+3203-0x1c8e)){iTemp=*(pcASC+i);if((iTemp>=((char)(0xa90+7037-0x25dd)))&&
+(iTemp<=((char)(0xa76+4793-0x1cf6)))){*(pcHex+i/(0x15e7+3628-0x2411))|=(UINT8)(
+iTemp-(0xaad+6057-0x2226))<<(0x1767+3018-0x232d);}else{*(pcHex+i/
+(0x13c0+4329-0x24a7))|=(UINT8)(iTemp-(0x41a+5182-0x1821))<<(0x480+4318-0x155a);}
+}else{iTemp=*(pcASC+i);if((iTemp>=((char)(0x1574+1216-0x1a04)))&&(iTemp<=
+((char)(0x250+5887-0x1916)))){*(pcHex+i/(0x1249+5028-0x25eb))|=iTemp-
+(0xb1d+3963-0x1a68);}else{*(pcHex+i/(0x759+3974-0x16dd))|=iTemp-(0x81b+19-0x7f7)
+;}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,SINT32 iLength){int
+iRetVal=(0x8c9+450-0xa8a);char cTemp;int i=(0x1926+331-0x1a71);if(NULL==psUcs2){
+return-(0xb8d+3722-0x1a16);}for(i=(0x14dc+2041-0x1cd5);i<iLength;i++){if(
+(0x1334+958-0x15f2)>psUcs2[i]){switch(psUcs2[i]){case(0x4f9+3628-0x1319):case
+(0x13b9+2496-0x1d1e):case(0x677+1145-0xa94):case(0xf65+4181-0x1f5d):case
+(0xbbf+6814-0x25ff):case(0x1010+4276-0x2049):case(0x18ed+79-0x18c0):case
+(0xc66+4633-0x1e02):case(0x2a1+9203-0x2616):case(0x104b+5765-0x262c):case
+(0x4a9+267-0x594):{break;}default:{cTemp=(char)G_ZPB_NEWUCS2TOGSM[psUcs2[i]];if(
+ZPB_NON_GSM==cTemp){iRetVal=(0x1d2d+2491-0x26e8);}break;}}}else{switch(psUcs2[i]
+){case(0x1487+1516-0x16df):case(0x17e8+4006-0x23e8):case(0x895+2559-0xf01):case
+(0xf4d+4413-0x1cef):case(0x1a09+2907-0x21bb):case(0x1585+1332-0x1719):case
+(0x183f+4399-0x25a6):case(0x22bc+326-0x205f):case(0x102c+5647-0x2283):case
+(0x177d+1965-0x1b8c):{break;}default:{iRetVal=(0xb16+6180-0x233a);break;}}}if(
+(0x616+6347-0x1ee1)==iRetVal){break;}}return iRetVal;}static UINT8
atPb_EncodeNameToUcs2(char*pbDst,UINT32 iDstLen,char const*pbSrc){UINT16 acHex[
-(0x145c+3130-0x1f96)]={(0xdc8+3054-0x19b6)};SINT32 srclen=(0x762+6438-0x2088);
-SINT32 rest=(0x125+5260-0x15b1);assert(pbDst!=NULL&&pbSrc!=NULL);srclen=(SINT32)
+(0x10a+5360-0x14fa)]={(0x89c+6929-0x23ad)};SINT32 srclen=(0x11ad+3288-0x1e85);
+SINT32 rest=(0x771+282-0x88b);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,(0x32f+6583-0x1be6),(UINT8*)pbSrc,srclen);rest=
-atPb_IfUcs2IsSMS7(acHex,srclen/(0x14a0+1098-0x18e6));if(rest==(0xe21+855-0x1177)
-){return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest==(0x397+8147-0x236a)
-){if(strlen(pbSrc)+(0x46c+1294-0x978)<iDstLen){memcpy(pbDst,"\x38\x30",
-(0x613+4601-0x180a));memcpy(pbDst+(0x13df+40-0x1405),pbSrc,srclen);return
+,pbSrc,srclen);pb_AsctoHex(acHex,(0x403+1372-0x85f),(UINT8*)pbSrc,srclen);rest=
+atPb_IfUcs2IsSMS7(acHex,srclen/(0x6+1802-0x70c));if(rest==(0xef6+2548-0x18e9)){
+return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest==(0x1247+1144-0x16bf))
+{if(strlen(pbSrc)+(0x82a+5949-0x1f65)<iDstLen){memcpy(pbDst,"\x38\x30",
+(0xe26+2438-0x17aa));memcpy(pbDst+(0xf25+1593-0x155c),pbSrc,srclen);return
ZUFI_SUCC;}}return ZUFI_FAIL;}SINT32 atPb_FindIdleIndex(T_zPb_WebContact const*
-pbRecv,BOOL pbNewFlag){SINT32 count=(0x1094+3499-0x1e3e);SINT32 total=
-(0x1a2b+126-0x1aa9);SINT32*IndexType=NULL;if((NULL==pbRecv)){slog(PB_PRINT,
+pbRecv,BOOL pbNewFlag){SINT32 count=(0x134+5133-0x1540);SINT32 total=
+(0x21e4+735-0x24c3);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-(0x2f3+5060-0x16b6);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv->
-pbLocation){total=g_zPb_SimIndex[(0x1d55+2242-0x2617)];IndexType=g_zPb_SimIndex;
+);return-(0x378+5021-0x1714);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv->
+pbLocation){total=g_zPb_SimIndex[(0x14f2+1678-0x1b80)];IndexType=g_zPb_SimIndex;
}else if(ZPB_LOCATION_AP==pbRecv->pbLocation){total=g_zPb_ApIndex[
-(0xe7c+285-0xf99)];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,
+(0x154b+1197-0x19f8)];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-(0x133a+4329-0x2422);}slog(PB_PRINT,SLOG_DEBUG,
+,count);return-(0xf1+9207-0x24e7);}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=(0x1b31+765-0x1e2e);SINT32 i=
-(0x1777+293-0x189c);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0x275+1527-0x86c)};CHAR str[
-(0x50f+5889-0x1c0d)]={(0x2e3+6739-0x1d36)};SINT32 length=(0x1d99+954-0x2153);
-length=atPb_String2Bytes(pSrc,buf,len);for(i=(0xeb7+2091-0x16e2);i<length;i+=
-(0x10e2+4173-0x212d)){if(buf[i]!=(0x177+5717-0x17cc)||buf[i+(0x43b+8485-0x255f)]
->(0x14d3+2310-0x1d5a)){return FALSE;}pDst[j++]=buf[i+(0x512+7243-0x215c)];}
-return TRUE;}VOID atWeb_AddOrModOnePbUsim(T_zPb_WebContact*pWebPbContact,BOOL
-pbNewFlag,sem_t semId){int atRes=(0x7fa+5174-0x1c30);CHAR pbName[
-ZPB_TEXT_SIZE_BYTES+(0x423+914-0x7b2)]={(0x1422+4649-0x264b)};CHAR buf_src[
-ZPB_TEXT_SIZE_BYTES+(0x16c1+896-0x1a3e)]={(0x2031+1643-0x269c)};CHAR buf_dest[
-ZPB_TEXT_SIZE_BYTES+(0xaad+5241-0x1f23)]={(0xf3a+5625-0x2533)};T_zPb_ScpbwParam
-scpbwParam={(0x208+4189-0x1265)};int len=(0xb60+6529-0x24e1);atPb_WebRecodeShow(
+CHAR*pSrc,CHAR*pDst,SINT32 len){SINT32 j=(0x1f7+1197-0x6a4);SINT32 i=
+(0x2258+1083-0x2693);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0x10e0+4886-0x23f6)};CHAR
+str[(0x7d6+7866-0x268d)]={(0x42d+4339-0x1520)};SINT32 length=(0x14+8066-0x1f96);
+length=atPb_String2Bytes(pSrc,buf,len);for(i=(0x589+4953-0x18e2);i<length;i+=
+(0x5a1+2808-0x1097)){if(buf[i]!=(0xbb5+5068-0x1f81)||buf[i+(0x6b5+7969-0x25d5)]>
+(0xdbf+5550-0x22ee)){return FALSE;}pDst[j++]=buf[i+(0x1c7b+2429-0x25f7)];}return
+ TRUE;}VOID atWeb_AddOrModOnePbUsim(T_zPb_WebContact*pWebPbContact,BOOL
+pbNewFlag,sem_t semId){int atRes=(0x438+6933-0x1f4d);CHAR pbName[
+ZPB_TEXT_SIZE_BYTES+(0x9b2+7519-0x270e)]={(0x127b+3246-0x1f29)};CHAR buf_src[
+ZPB_TEXT_SIZE_BYTES+(0x20c5+1584-0x26f2)]={(0x19b1+149-0x1a46)};CHAR buf_dest[
+ZPB_TEXT_SIZE_BYTES+(0x1948+1799-0x204c)]={(0x1255+173-0x1302)};T_zPb_ScpbwParam
+ scpbwParam={(0x4eb+7198-0x2109)};int len=(0x310+3182-0xf7e);atPb_WebRecodeShow(
pWebPbContact);if(atPb_GetASCII(pWebPbContact->name,pbName,strlen(pWebPbContact
-->name))){scpbwParam.coding=(0xf6+746-0x3e0);}else{len=atPb_String2Bytes(
+->name))){scpbwParam.coding=(0x17ac+2091-0x1fd7);}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=(0x2c+3103-0xc4a);}scpbwParam.pbIndex=pWebPbContact->
-pbIndex;strncpy(scpbwParam.name,pbName,sizeof(scpbwParam.name)-
-(0x15fb+3012-0x21be));strncpy(scpbwParam.mobilNumber,pWebPbContact->mobilNumber,
-sizeof(scpbwParam.mobilNumber)-(0x1bb+9014-0x24f0));strncpy(scpbwParam.
-officeNumber,pWebPbContact->officeNumber,sizeof(scpbwParam.officeNumber)-
-(0x1793+570-0x19cc));strncpy(scpbwParam.homeNumber,pWebPbContact->homeNumber,
-sizeof(scpbwParam.homeNumber)-(0x14a6+2484-0x1e59));strncpy(scpbwParam.email,
-pWebPbContact->email,sizeof(scpbwParam.email)-(0x4ac+450-0x66d));
-ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,MSG_CMD_ADD_MODIFY_PB_REQ,sizeof(
-T_zPb_ScpbwParam),(unsigned char*)&scpbwParam,(0x9c0+3888-0x18f0));sem_wait(&
-g_Pb_sem_id);if(g_PbOptRsp.result!=(0x879+6348-0x2144)){(VOID)sc_cfg_set(
-ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);if(TRUE==pbNewFlag){printf(
+,len);scpbwParam.coding=(0x1073+3611-0x1e8d);}scpbwParam.pbIndex=pWebPbContact->
+pbIndex;strncpy(scpbwParam.name,pbName,sizeof(scpbwParam.name)-(0x330+791-0x646)
+);strncpy(scpbwParam.mobilNumber,pWebPbContact->mobilNumber,sizeof(scpbwParam.
+mobilNumber)-(0x16c5+2864-0x21f4));strncpy(scpbwParam.officeNumber,pWebPbContact
+->officeNumber,sizeof(scpbwParam.officeNumber)-(0x964+3347-0x1676));strncpy(
+scpbwParam.homeNumber,pWebPbContact->homeNumber,sizeof(scpbwParam.homeNumber)-
+(0x148+2745-0xc00));strncpy(scpbwParam.email,pWebPbContact->email,sizeof(
+scpbwParam.email)-(0xdb2+1999-0x1580));ipc_send_message(MODULE_ID_PB,
+MODULE_ID_AT_CTL,MSG_CMD_ADD_MODIFY_PB_REQ,sizeof(T_zPb_ScpbwParam),(unsigned
+char*)&scpbwParam,(0x13b1+4026-0x236b));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.
+result!=(0x846+2657-0x12a6)){(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,16 +407,16 @@
);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);printf(
"\x70\x62\x3a\x57\x72\x69\x74\x65\x43\x6f\x6e\x74\x61\x63\x74\x54\x6f\x50\x62\x6d\x54\x61\x62\x6c\x65\x20\x65\x72\x72\x6f\x72\x2e" "\n"
);}}VOID atWeb_AddOnePb(T_zPb_WebContact*webPbContact,sem_t semId){SINT32
-idleIndex=(0x91b+2908-0x1476);T_zPb_Header pbHeader={(0x69b+1158-0xb21)};BOOL
-pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0xceb+1031-0x10f2)};CHAR ptFlag[
-(0x1c7d+1083-0x20a4)]={(0x9f4+1789-0x10f1)};printf(
+idleIndex=(0x6a+1433-0x602);T_zPb_Header pbHeader={(0x12c3+4741-0x2548)};BOOL
+pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0x12a8+3009-0x1e69)};CHAR ptFlag[
+(0xe0b+5411-0x231a)]={(0x11d8+3958-0x214e)};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(-(0x38c+392-0x513)==webPbContact->pbId){slog(PB_PRINT,
+,webPbContact->pbId);if(-(0x5a6+8268-0x25f1)==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!=-(0x1851+402-0x19e2)){webPbContact->pbIndex=idleIndex;
+,idleIndex);if(idleIndex!=-(0x572+3271-0x1238)){webPbContact->pbIndex=idleIndex;
}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);printf(
"\x5b\x50\x42\x5d\x20\x6d\x65\x6d\x6f\x72\x79\x20\x69\x73\x20\x66\x75\x6c\x6c\x2c\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x61\x64\x64\x20\x72\x65\x63\x6f\x64\x65\x20\x61\x6e\x79\x20\x6d\x6f\x72\x65\x2e" "\n"
);return;}}else{printf(
@@ -436,27 +435,27 @@
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_LOCATION_IS_NULL);}printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x50\x62\x20\x64\x65\x6c\x5f\x69\x64\x3d\x25\x64\x2e" "\n"
,webPbContact->del_id);sc_cfg_get(ZPB_NV_WRITE_FLAG,ptFlag,sizeof(ptFlag));if(
-(0x1b9c+2733-0x2649)==strcmp("\x30",ptFlag)&&-(0x6e0+3562-0x14c9)!=webPbContact
-->del_id){delRecord.delId[(0x18f+3231-0xe2e)]=webPbContact->del_id;
+(0x1a43+2308-0x2347)==strcmp("\x30",ptFlag)&&-(0xa94+2271-0x1372)!=webPbContact
+->del_id){delRecord.delId[(0xd67+1095-0x11ae)]=webPbContact->del_id;
atWeb_DelOnepb(&delRecord,semId);}}VOID atWeb_DelOnepb(T_zPb_DelInfo*delRecord,
-sem_t semId){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0xdb6+1526-0x13ac)};int atRes=
-(0x142a+1883-0x1b85);SINT32 delTime=(0x1eff+83-0x1f52);
+sem_t semId){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0xa88+4198-0x1aee)};int atRes=
+(0x6cb+1261-0xbb8);SINT32 delTime=(0x2e1+7001-0x1e3a);
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[(0x3bd+2941-0xf3a)],delRecord->delLocation);if(
+,delRecord->delIndex[(0x30b+9060-0x266f)],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[(0x15f+8205-0x213a)]={(0x91c+529-0xb2d)};
+delRecord->delLocation){CHAR pbMax[(0x1da6+494-0x1f62)]={(0x7b0+303-0x8df)};
sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));if((delRecord->delIndex[
-(0x5e3+4361-0x16ec)]>=(0x101c+5269-0x24b0))&&(delRecord->delIndex[
-(0x2017+1518-0x2605)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
+(0x8b3+4658-0x1ae5)]>=(0xd15+5939-0x2447))&&(delRecord->delIndex[
+(0x1957+204-0x1a23)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
MODULE_ID_AT_CTL,MSG_CMD_DELETE_PB_REQ,sizeof(int),(unsigned char*)&delRecord->
-delIndex[(0x103+7432-0x1e0b)],(0x91b+2475-0x12c6));sem_wait(&g_Pb_sem_id);if(
-g_PbOptRsp.result!=(0x717+3133-0x1353)){sc_cfg_set(ZPB_NV_WRITE_FLAG,
+delIndex[(0x1866+811-0x1b91)],(0x3cc+3832-0x12c4));sem_wait(&g_Pb_sem_id);if(
+g_PbOptRsp.result!=(0x198f+532-0x1ba2)){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]={(0x18c0+2998-0x2476)};int atRes=(0x1cda+284-0x1df6);
-SINT32 delCount=(0xc43+716-0xf0f);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
-g_zPb_DelStatusUsim,(0x657+6498-0x1fb9),sizeof(T_zPb_DelStatusMultiOrAll));
+ZSVR_AT_RES_CODE_LEN]={(0x143+3059-0xd36)};int atRes=(0x1b7+2087-0x9de);SINT32
+delCount=(0x1647+4218-0x26c1);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
+g_zPb_DelStatusUsim,(0x1263+513-0x1464),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[
-(0x7db+7791-0x2618)]={(0x1a4a+1025-0x1e4b)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax
-,sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0x1cc7+1143-0x213d))&&(
+(0x16c8+2304-0x1f96)]={(0x331+5812-0x19e5)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax
+,sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0xeaa+789-0x11be))&&(
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]
-,(0x830+5695-0x1e6f));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0x49c+1374-0x9f9)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+,(0xe43+169-0xeec));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0x17a+1962-0x923)){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={(0x1718+3313-0x2409)};
-SINT32 i=(0x3da+1438-0x977);result=atPb_DelRecFromPbmTableByGroup(&index);if(
+T_zPb_DbResult result=ZPB_DB_OK;T_zPb_ApIndex index={(0x138a+2696-0x1e12)};
+SINT32 i=(0x869+5462-0x1dbe);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=
-(0x4b9+6538-0x1e42);i<=ZPB_AP_MAX_RECORD;i++){if((0x1591+1065-0x19ba)!=index.
+(0x3fc+5427-0x192e);i<=ZPB_AP_MAX_RECORD;i++){if((0xb71+2164-0x13e5)!=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]={
-(0x18b0+3672-0x2708)};snprintf(sql,sizeof(sql)-(0x15a2+2589-0x1fbe),
+(0x378+3445-0x10ed)};snprintf(sql,sizeof(sql)-(0x5c4+5478-0x1b29),
"\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]={(0xdc0+5028-0x2164)};int atRes=
-(0x189+2922-0xcf3);UINT32 i=(0x1d2+759-0x4c9);CHAR sql[ZPB_MAX_BYTES_DB]={
-(0x1727+402-0x18b9)};UINT32 count=(0x9c9+7457-0x26ea);if(pdelRecord!=NULL){
-memset(&g_zPb_DelStatusUsim,(0x1506+264-0x160e),sizeof(T_zPb_DelStatusMultiOrAll
-));g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_ALL_RECORD_USIM;snprintf(sql,sizeof(sql)
--(0xc37+6276-0x24ba),
+CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x7f5+3609-0x160e)};int atRes=
+(0x12fa+3849-0x2203);UINT32 i=(0x3cd+7911-0x22b4);CHAR sql[ZPB_MAX_BYTES_DB]={
+(0x15d+567-0x394)};UINT32 count=(0x178+4913-0x14a9);if(pdelRecord!=NULL){memset(
+&g_zPb_DelStatusUsim,(0x16eb+2826-0x21f5),sizeof(T_zPb_DelStatusMultiOrAll));
+g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_ALL_RECORD_USIM;snprintf(sql,sizeof(sql)-
+(0xd62+3961-0x1cda),
"\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((0xf28+5805-0x25d5)<count){CHAR pbMin[
-(0xd05+2535-0x16ba)]={(0x22f+5429-0x1764)};CHAR pbMax[(0x230c+127-0x2359)]={
-(0xaba+4070-0x1aa0)};UINT32 i_pbMin=(0xae4+6434-0x2406);UINT32 i_pbMax=
-(0x86c+5491-0x1ddf);sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
+atPb_DbCountTableLineCb,&count);if((0x8bf+7011-0x2422)<count){CHAR pbMin[
+(0x1770+2180-0x1fc2)]={(0x647+2600-0x106f)};CHAR pbMax[(0x76a+1052-0xb54)]={
+(0x1537+2068-0x1d4b)};UINT32 i_pbMin=(0x17c+9260-0x25a8);UINT32 i_pbMax=
+(0x1780+3793-0x2651);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,
-(0x4b5+296-0x5dd));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0x18c9+3168-0x2528)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+(0x2e0+739-0x5c3));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0x859+3259-0x1513)){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)-
-(0x6b+6785-0x1aeb),
+(0xc7b+2660-0x16de),
"\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 d9db201..bda4d93 100755
--- a/ap/app/zte_comm/rtc-service/rtc-service.c
+++ b/ap/app/zte_comm/rtc-service/rtc-service.c
@@ -17,6 +17,7 @@
#include "rtc-service.h"
#include "hotplug.h"
#include <limits.h>
+#include "pub_debug_info.h"
/*******************************************************************************
* Global variable definitions *
@@ -410,6 +411,8 @@
{
slog(RTC_PRINT, SLOG_ERR, "handle_sntp_update is fail,ret:%d \n", ret);
}
+ sc_debug_info_record("ap_sntp", "sntp time synchronization successful!\n");
+
return 0;
}
diff --git a/ap/app/zte_comm/sms/src/sms_code.c b/ap/app/zte_comm/sms/src/sms_code.c
index ab5d7ac..e4f1322 100755
--- a/ap/app/zte_comm/sms/src/sms_code.c
+++ b/ap/app/zte_comm/sms/src/sms_code.c
@@ -6,664 +6,662 @@
#ifdef WIN32
#include <wchar.h>
#endif
-#define NON_GSM (0x1054+1424-0x15c4)
+#define NON_GSM (0xda9+12-0xd95)
#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[(0x198+8701-0x2385)]={
-((char)(0xef9+455-0x1090)),((char)(0x6f0+4557-0x188c)),
-((char)(0x1206+3922-0x2126)),((char)(0xa5d+7110-0x25f0)),
-((char)(0x16cb+2368-0x1fd7)),((char)(0xae6+2539-0x149c)),
-((char)(0x2052+1043-0x242f)),((char)(0x5b6+6013-0x1cfc)),
-((char)(0xa72+1313-0xf5b)),((char)(0xcc+7578-0x1e2d)),
-((char)(0x1e8+7797-0x201c)),((char)(0xb41+5572-0x20c3)),
-((char)(0xe8a+6122-0x2631)),((char)(0x15e3+2567-0x1fa6)),
-((char)(0x1dc8+1927-0x250a)),((char)(0x18b0+2238-0x2128))};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)(0x944+1896-0x108c)),((char)(0x13bf+2303-0x1c9e)),
-((char)(0x842+7666-0x2614)),((char)(0x15a6+4313-0x265f)),
-((char)(0x1011+2218-0x189b)),((char)(0xa7b+7145-0x2644)),
-((char)(0x1bc5+2520-0x257d)),((char)(0x2f3+4301-0x13a0)),
-((char)(0xdf8+2047-0x15d7)),((char)(0x3f6+695-0x68d)),
-((char)(0x63c+5061-0x19e1)),((char)(0xf72+19-0xf65)),
-((char)(0x1710+1949-0x1e8d)),((char)(0x1884+1915-0x1fdf)),
-((char)(0xa49+6666-0x2433)),((char)(0xda2+3597-0x1b8f)),
-((char)(0xe1d+2769-0x18ce)),((char)(0xa0b+5569-0x1fac)),
-((char)(0x1b3+7927-0x208a)),((char)(0x1b2d+2793-0x25f6)),
-((char)(0x879+3001-0x1412)),((char)(0x3db+27-0x3d6)),((char)(0x776+6087-0x1f1d))
-,((char)(0x12c2+1913-0x1a1b)),((char)(0x117a+5161-0x2583)),
-((char)(0xb1+8162-0x2073)),((char)(0xc96+489-0xe5f)),
-((char)(0x1018+1862-0x173e)),((char)(0x4c9+4215-0x1520)),
-((char)(0x325+2681-0xd7e)),((char)(0x1070+2374-0x1996)),
-((char)(0x9fc+4358-0x1ae2)),((char)(0x1c59+173-0x1ce6)),
-((char)(0x1995+1949-0x2111)),(0x1d6+8162-0x2196),((char)(0xb90+3266-0x182f)),
-(0x939+5554-0x1ee9),((char)(0x28b+3505-0x1017)),((char)(0x1279+4018-0x2205)),
-(0x5bb+3380-0x12c8),((char)(0x248+3603-0x1033)),((char)(0x12d3+265-0x13b3)),
-((char)(0x1160+3674-0x1f90)),((char)(0x14ba+495-0x167e)),
-((char)(0x33c+5195-0x175b)),((char)(0xf5f+3910-0x1e78)),
-((char)(0xbc1+5380-0x2097)),((char)(0x15d+4123-0x1149)),
-((char)(0x7f5+6899-0x22b8)),((char)(0x1f26+458-0x20bf)),
-((char)(0xa2+9622-0x2606)),((char)(0xa69+2260-0x130a)),
-((char)(0xbe8+4068-0x1b98)),((char)(0x9f2+5335-0x1e94)),
-((char)(0x801+7967-0x26ea)),((char)(0xc4f+3725-0x1aa5)),
-((char)(0x1504+933-0x1871)),((char)(0x175a+3646-0x255f)),
-((char)(0x49d+883-0x7d6)),((char)(0x14d6+255-0x159a)),((char)(0xfb6+86-0xfd0)),
-((char)(0xf4d+393-0x1099)),((char)(0x1f6+7840-0x2058)),
-((char)(0xfbc+1697-0x161e)),(0x2391+509-0x258e),((char)(0x6d+1751-0x703)),
-((char)(0xaca+486-0xc6e)),((char)(0x1b2+3349-0xe84)),((char)(0x4d5+7025-0x2002))
-,((char)(0xdc1+3086-0x198a)),((char)(0x9e1+7106-0x255d)),
-((char)(0x994+1979-0x1108)),((char)(0x1b92+2544-0x253a)),
-((char)(0x11a4+3141-0x1da0)),((char)(0x227+377-0x356)),
-((char)(0x208a+1474-0x2601)),((char)(0x14df+4187-0x24ee)),
-((char)(0x6ec+1521-0xc90)),((char)(0x217+36-0x1ed)),((char)(0xc60+4496-0x1da1)),
-((char)(0x782+4375-0x1849)),((char)(0x1375+851-0x1677)),
-((char)(0x133b+2566-0x1cef)),((char)(0xe8a+2676-0x18ab)),
-((char)(0x2002+144-0x203e)),((char)(0xd37+1408-0x1262)),
-((char)(0x19a+2882-0xc86)),((char)(0x646+1015-0x9e6)),
-((char)(0xe60+2009-0x15e1)),((char)(0x9c3+6509-0x22d7)),
-((char)(0x178f+92-0x1791)),6972,6959,6974,(0x2473+708-0xc23),(0x877+5353-0x1d4f)
-,((char)(0x1665+92-0x16a1)),((char)(0x18af+511-0x1a4d)),
-((char)(0xf53+2521-0x18ca)),((char)(0xf90+5744-0x259d)),
-((char)(0x1689+3050-0x220f)),((char)(0x414+3386-0x10e9)),
-((char)(0xa74+331-0xb59)),((char)(0x1cda+2198-0x2509)),
-((char)(0x190d+3465-0x262e)),((char)(0xb59+3083-0x16fb)),
-((char)(0x18a5+1390-0x1da9)),((char)(0x2cb+9115-0x25fb)),
-((char)(0xe82+2429-0x1793)),((char)(0xcbc+1888-0x13af)),
-((char)(0xd76+246-0xdfe)),((char)(0x1105+2783-0x1b75)),
-((char)(0xaf2+4813-0x1d4f)),((char)(0x77f+1092-0xb52)),
-((char)(0x121b+228-0x128d)),((char)(0x7e6+6169-0x1f8c)),
-((char)(0x1df4+1212-0x223c)),((char)(0x17f7+506-0x197c)),
-((char)(0x207c+1158-0x248c)),((char)(0x1ea+1596-0x7af)),
-((char)(0x90b+3083-0x149e)),((char)(0x1804+195-0x184e)),
-((char)(0xa11+4312-0x1a6f)),(0x1fd1+4096-0x14a9),(0x2255+1946-0xeaf),6953,
-(0x21e6+6972-0x21e5),((char)(0x1005+2073-0x17fe)),((char)(0x963+1156-0xdc7)),
-((char)(0x1640+2878-0x215e)),((char)(0x46+4701-0x1283)),
-((char)(0x1c14+1208-0x20ac)),((char)(0x1711+2352-0x2021)),
-((char)(0x13b+5534-0x16b9)),((char)(0x156a+1368-0x1aa2)),
-((char)(0xee2+5902-0x25d0)),((char)(0x205d+503-0x2234)),
-((char)(0xa94+3850-0x197e)),((char)(0xa4f+704-0xcef)),
-((char)(0x1728+1848-0x1e40)),((char)(0xa7f+5311-0x1f1e)),
-((char)(0x11e6+4173-0x2213)),((char)(0x50+5557-0x15e5)),
-((char)(0x108f+5744-0x26df)),((char)(0x5a0+3021-0x114d)),
-((char)(0x494+3055-0x1063)),((char)(0x2167+331-0x2292)),
-((char)(0x1d15+909-0x2082)),((char)(0x38+2020-0x7fc)),
-((char)(0x1ab2+980-0x1e66)),((char)(0x49f+6738-0x1ed1)),
-((char)(0x10dd+525-0x12ca)),((char)(0x306+8225-0x2307)),
-((char)(0xefa+2844-0x19f6)),((char)(0xb5f+4219-0x1bba)),
-((char)(0x624+3327-0x1303)),((char)(0x1e59+246-0x1f2f)),
-((char)(0x1d1+5011-0x1544)),((char)(0x1038+3071-0x1c17)),
-((char)(0x74c+7473-0x245d)),((char)(0x689+7309-0x22f6)),(0xd74+2441-0x16bd),
-((char)(0xd2a+923-0x10a5)),(0x1787+3643-0x25c1),(0xa0b+747-0xcd2),
-(0x689+3401-0x13cf),((char)(0x1604+2491-0x1f9f)),(0x576+69-0x55c),
-((char)(0xc29+5787-0x22a4)),((char)(0x4a7+7255-0x20de)),
-((char)(0x3c5+424-0x54d)),((char)(0xe80+705-0x1121)),((char)(0xa65+2086-0x126b))
-,((char)(0xdf3+3208-0x1a5b)),((char)(0x4c6+7637-0x227b)),
-((char)(0x4c1+4417-0x15e2)),((char)(0xba5+3141-0x17ca)),
-((char)(0x1537+1653-0x1b8c)),((char)(0x6df+1035-0xaca)),
-((char)(0x100a+342-0x1140)),((char)(0x462+3560-0x122a)),
-((char)(0x1460+958-0x17fe)),((char)(0x47+5572-0x15eb)),
-((char)(0x193+8931-0x2456)),(0x1598+2381-0x1eda),((char)(0x50d+7730-0x231f)),
-((char)(0x749+3785-0x15f2)),((char)(0x585+5584-0x1b35)),
-((char)(0x8c6+949-0xc5b)),((char)(0x5d4+7480-0x22ec)),
-((char)(0x1ad8+1868-0x2204)),(0xe02+111-0xe11),((char)(0xec7+4469-0x201c)),
-((char)(0x1112+3529-0x1ebb)),((char)(0x21d+7598-0x1fab)),
-((char)(0x1ee6+1288-0x23ce)),(0x12b2+946-0x1609),(0x1887+1852-0x1fb5),
-(0x1456+4097-0x243b),(0x345+7141-0x1f21),((char)(0x20c+657-0x47d)),
-(0x78d+7048-0x22f6),((char)(0x17a+6931-0x1c6d)),((char)(0xb8c+734-0xe4a)),
-((char)(0xfaa+4358-0x2090)),((char)(0x1e42+1781-0x2517)),
-((char)(0x51f+204-0x5cb)),((char)(0x8b4+4992-0x1c14)),
-((char)(0x1be0+2299-0x24bb)),(0x9fb+1651-0x1011),((char)(0x893+2631-0x12ba)),
-((char)(0x991+1857-0x10b2)),((char)(0x1266+459-0x1411)),
-((char)(0xc22+3529-0x19cb)),(0x532+3290-0x11b0),((char)(0x21a+6631-0x1be1)),
-((char)(0xf25+1142-0x137b)),((char)(0x350+4385-0x1451)),
-((char)(0x41a+8145-0x23cb)),((char)(0x1e12+2282-0x26dc)),(0x2f2+378-0x40e),
-((char)(0xd62+2208-0x15e2)),((char)(0x1417+1324-0x1923)),(0x4e0+8005-0x2407),
-(0x1844+3084-0x23d1),((char)(0xfc+9514-0x2606)),((char)(0x81+2910-0xbbf)),
-((char)(0xdb+95-0x11a)),(0x5fd+2525-0xf5f),(0x87a+3103-0x148a),
-(0x85c+6754-0x22a1),((char)(0xb50+279-0xc47)),(0x10b8+5018-0x244e),
-(0x5bd+2239-0xe77),((char)(0x821+5216-0x1c61)),((char)(0x18f+9330-0x25e1)),
-(0x15c2+954-0x1975),((char)(0x596+8364-0x2622)),((char)(0x179f+3266-0x2441)),
-((char)(0x3ab+2852-0xeaf)),((char)(0x22ac+1015-0x2683)),(0x409+5445-0x18d1),
-(0xb8a+3294-0x1860),((char)(0x3b2+664-0x62a)),((char)(0x165f+4259-0x26e2)),
-((char)(0x21cd+640-0x242d)),(0xdba+4697-0x1f97),((char)(0x3bb+7581-0x2138)),
-(0x12af+1603-0x18e6),(0x3d9+4353-0x14d4),((char)(0x1475+1683-0x1ae8)),
-((char)(0x218+906-0x582)),(0x117+4410-0x11d3),((char)(0x664+2002-0xe16)),
-((char)(0x1e39+891-0x2194)),((char)(0x5d4+3906-0x14f6)),};const unsigned short
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0x189f+1449-0x1e46)]={{
-(0x187b+2562-0x2274),(0x265+9533-0x26bb)},{(0x1226+3007-0x1ddb),
-(0x136+8562-0x229c)},{(0x244+5365-0x172c),(0x2bf+3653-0x10f7)},{
-(0x1457+2430-0x1dc1),(0xb36+655-0xd67)},{(0x901+5143-0x1cf0),(0xab+2143-0x88f)},
-{(0x486+7772-0x22b9),(0x843+896-0xb46)},{(0x1fa5+1242-0x2450),
-(0x993+6628-0x231b)},{(0x515+5727-0x1b38),(0xc15+1583-0x11e9)},{
-(0x1603+1491-0x1b99),(0x963+385-0xa66)},{(0x4c0+7815-0x2309),(0x500+5208-0x18fb)
-},{(0x687+2869-0x117c),(0x18c2+2165-0x20bb)},{(0x714+27-0x6ee),
-(0x754+6468-0x1fd7)},{(0x470+6439-0x1d4e),(0x1952+1938-0x2017)},{
-(0xcdd+1507-0x1271),(0x1b7b+453-0x1c6d)},{(0x1034+43-0x100a),
-(0x13cb+1201-0x17a2)},{(0x1236+5306-0x268f),(0x1d7+2055-0x8fd)},{
-(0x1cfb+2569-0x269f),(0x2332+940-0x632)},{(0x9d0+5085-0x1d44),
-(0x123d+5386-0x265a)},{(0x1aab+970-0x1e06),(0xc82+4906-0x1eb9)},{
-(0x2342+954-0x2687),(0x30d+2716-0xcaf)},};const unsigned short
-Ucs2_To_Gsm7_SPANISH_Table_UCS[][(0x4f+4418-0x118f)]={{(0x1fdb+1802-0x26d5),
-(0x15c1+4018-0x21df)},{(0x36d+1648-0x9cb),(0x11f9+1700-0x14f7)},{
-(0x561+4728-0x17c6),(0x7c7+2445-0xdc1)},{(0x2600+198-0x26b2),(0x7dc+5437-0x197e)
-},{(0x650+7355-0x22f6),(0x1580+2323-0x1aea)},{(0x1313+1515-0x18e8),
-(0xc5a+7567-0x2649)},{(0xe5+4649-0x12f7),(0x160b+923-0x15fe)},{
-(0xcb6+5349-0x2183),(0x54c+8926-0x2487)},{(0x992+3708-0x17f5),
-(0xdf3+2372-0x139f)},{(0x7d1+4454-0x191d),(0x1d98+766-0x1cf8)},};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,(0x4c7+4885-0x17d2),NON_GSM,NON_GSM,
-(0x5b5+7720-0x23d0),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+const_header;char g_zUfiSms_DigAscMap[(0xc95+4995-0x2008)]={
+((char)(0xb33+6479-0x2452)),((char)(0x10c+3423-0xe3a)),
+((char)(0xfd1+2029-0x178c)),((char)(0x29b+1983-0xa27)),
+((char)(0x233a+238-0x23f4)),((char)(0x11b7+1085-0x15bf)),
+((char)(0x19ed+3035-0x2592)),((char)(0x416+8296-0x2447)),
+((char)(0x78c+7448-0x246c)),((char)(0x524+366-0x659)),((char)(0x1da+2160-0xa09))
+,((char)(0x994+1049-0xd6b)),((char)(0x865+6704-0x2252)),
+((char)(0x1839+2764-0x22c1)),((char)(0xc40+1595-0x1236)),
+((char)(0x1f39+442-0x20ad))};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)(0x22a+3086-0xe18)),
+((char)(0x7d+6973-0x1b9a)),((char)(0x1d52+1030-0x2138)),
+((char)(0x194d+2887-0x2474)),((char)(0x13c1+119-0x1418)),
+((char)(0x168+6152-0x1950)),((char)(0xdb6+1720-0x144e)),
+((char)(0x1a41+337-0x1b72)),((char)(0x230c+580-0x2530)),
+((char)(0x1253+2765-0x1d00)),((char)(0x178+2201-0x9f1)),
+((char)(0x1203+4386-0x2305)),((char)(0x53f+118-0x595)),
+((char)(0x153f+2397-0x1e7c)),((char)(0xe66+2317-0x1753)),
+((char)(0x76a+5410-0x1c6c)),((char)(0x124a+2891-0x1d75)),
+((char)(0x315+3502-0x10a3)),((char)(0x1fdf+625-0x2230)),
+((char)(0x98d+6450-0x229f)),((char)(0x1f8+568-0x410)),
+((char)(0x3f5+8327-0x245c)),((char)(0x1324+3885-0x2231)),
+((char)(0x77c+4928-0x1a9c)),((char)(0xd0c+2711-0x1783)),
+((char)(0x62a+2881-0x114b)),((char)(0xaa6+5372-0x1f82)),
+((char)(0x4a1+1741-0xb4e)),((char)(0x9e3+6866-0x2495)),
+((char)(0x2c6+7075-0x1e49)),((char)(0x5ac+8448-0x268c)),
+((char)(0x631+4147-0x1644)),((char)(0x7e0+2220-0x106c)),
+((char)(0xa93+826-0xdac)),(0xe00+3528-0x1ba6),((char)(0x37f+1219-0x81f)),
+(0x228+6429-0x1b43),((char)(0x1936+1751-0x1fe8)),((char)(0x1b51+1478-0x20f1)),
+(0x132f+150-0x139e),((char)(0x1a24+2402-0x235e)),((char)(0x192+6230-0x19bf)),
+((char)(0xcb1+1191-0x112e)),((char)(0x1830+2005-0x1fda)),
+((char)(0xf09+2229-0x1792)),((char)(0x58f+5689-0x1b9b)),
+((char)(0x1746+823-0x1a4f)),((char)(0x1428+1493-0x19ce)),
+((char)(0x3e8+2953-0xf41)),((char)(0xb97+1545-0x116f)),
+((char)(0x1271+4692-0x2493)),((char)(0x1374+1195-0x17ec)),
+((char)(0xf0c+3235-0x1b7b)),((char)(0x655+7142-0x2206)),
+((char)(0x1d6d+2384-0x2687)),((char)(0x17cd+2120-0x1fde)),
+((char)(0x8e9+1651-0xf24)),((char)(0x3c6+7225-0x1fc6)),
+((char)(0x8a5+4995-0x1bee)),((char)(0xfc+3309-0xdae)),
+((char)(0x1221+348-0x1341)),((char)(0x1ead+1641-0x24d9)),
+((char)(0xd9f+4278-0x1e17)),((char)(0x18f8+1004-0x1ca5)),(0x93a+4221-0x19b7),
+((char)(0x109a+3631-0x1e88)),((char)(0x93a+4944-0x1c48)),
+((char)(0x3c6+2555-0xd7e)),((char)(0x32c+2690-0xd6a)),((char)(0x720+77-0x728)),
+((char)(0x2030+1426-0x257c)),((char)(0x1f1d+790-0x21ec)),
+((char)(0x1c70+1752-0x2300)),((char)(0xb97+2761-0x1617)),
+((char)(0xc04+222-0xc98)),((char)(0xc94+1295-0x1158)),
+((char)(0xd78+2341-0x1651)),((char)(0xed9+4057-0x1e65)),
+((char)(0xe90+5046-0x21f8)),((char)(0x971+3446-0x1698)),
+((char)(0x1279+3004-0x1de5)),((char)(0x7cf+3124-0x13b2)),
+((char)(0x49c+7883-0x2315)),((char)(0xb4b+3067-0x16f3)),
+((char)(0x977+4237-0x19b0)),((char)(0x816+3165-0x141e)),
+((char)(0xa24+7123-0x25a1)),((char)(0x1b5+7186-0x1d70)),
+((char)(0x231b+666-0x255d)),((char)(0x1564+1900-0x1c77)),
+((char)(0xd6c+6050-0x24b4)),(0x236a+3782-0x16f4),6959,6974,(0x1b8a+4699-0x12d1),
+(0x14c9+518-0x16be),((char)(0x1555+2257-0x1e06)),((char)(0x1666+71-0x164c)),
+((char)(0x98+5072-0x1406)),((char)(0x196c+3284-0x25dd)),
+((char)(0xfe2+5402-0x2498)),((char)(0x544+6495-0x1e3e)),
+((char)(0x52c+5356-0x19b2)),((char)(0x1e9+6306-0x1a24)),
+((char)(0x24f+1935-0x976)),((char)(0x115+5541-0x1651)),
+((char)(0x120a+5142-0x25b6)),((char)(0x2b5+5050-0x1604)),
+((char)(0x46f+6533-0x1d88)),((char)(0x184c+2845-0x22fc)),
+((char)(0x1b25+1749-0x218c)),((char)(0x4a3+5517-0x19c1)),
+((char)(0x1f03+699-0x214e)),((char)(0x285+3536-0xfe4)),((char)(0x6fc+33-0x6ab)),
+((char)(0x18c7+1376-0x1db4)),((char)(0x9c9+4586-0x1b3f)),
+((char)(0xef9+443-0x103f)),((char)(0x1bf+1211-0x604)),((char)(0x750+1514-0xcc3))
+,((char)(0xdab+1308-0x124f)),((char)(0xc40+6510-0x2535)),
+((char)(0x494+8489-0x2543)),(0x23c0+5861-0x1f7d),6976,(0x210a+237-0x6ce),
+(0x1ef7+2862-0xee8),((char)(0x91d+6470-0x2243)),((char)(0x1db7+1126-0x21fd)),
+((char)(0x1462+2789-0x1f27)),((char)(0x86d+3152-0x149d)),
+((char)(0xc05+4451-0x1d48)),((char)(0x199b+1748-0x204f)),
+((char)(0x43b+3721-0x12a4)),((char)(0x1e0f+700-0x20ab)),
+((char)(0x9b9+2790-0x147f)),((char)(0x9bb+6484-0x22ef)),
+((char)(0x12d8+2823-0x1dbf)),((char)(0x12af+3582-0x208d)),
+((char)(0xadc+6104-0x2294)),((char)(0x83b+4712-0x1a83)),
+((char)(0x698+6512-0x1fe8)),((char)(0x344+6262-0x1b9a)),
+((char)(0xb74+4903-0x1e7b)),((char)(0xf7d+493-0x114a)),
+((char)(0x9eb+7328-0x266b)),((char)(0x706+5380-0x1bea)),
+((char)(0xf3+1189-0x578)),((char)(0x2342+869-0x2687)),
+((char)(0x1985+543-0x1b84)),((char)(0x20ff+1531-0x26da)),
+((char)(0x86+5744-0x16d6)),((char)(0xe1d+3218-0x1a8f)),
+((char)(0x876+2140-0x10b2)),((char)(0x2b7+5016-0x162f)),
+((char)(0x17fd+3133-0x241a)),((char)(0x2ff+5705-0x1928)),
+((char)(0x96b+511-0xb4a)),((char)(0x83f+7003-0x237a)),((char)(0xfa+6638-0x1ac8))
+,((char)(0x41+3385-0xd5a)),(0x123b+3699-0x206e),((char)(0x1525+2635-0x1f50)),
+(0x15c3+23-0x15d9),(0x3dc+6642-0x1daa),(0x1461+1162-0x18e8),
+((char)(0x3c8+2558-0xda6)),(0x16e0+1081-0x1aba),((char)(0x1ad0+1424-0x2040)),
+((char)(0x734+6560-0x20b4)),((char)(0x1875+3744-0x26f5)),
+((char)(0xe8+6027-0x1853)),((char)(0x51+6800-0x1ac1)),
+((char)(0x193d+113-0x198e)),((char)(0xeeb+1968-0x167b)),
+((char)(0x273+4951-0x15aa)),((char)(0x1068+3352-0x1d60)),
+((char)(0x1d1d+1628-0x2359)),((char)(0x1a0+3228-0xe1c)),
+((char)(0x4a1+3666-0x12d3)),((char)(0xfe8+4775-0x226f)),
+((char)(0x11e9+1052-0x15e5)),((char)(0xc63+1488-0x1213)),
+((char)(0x1208+3247-0x1e97)),(0xcfc+5511-0x2278),((char)(0xdcd+400-0xf3d)),
+((char)(0x3b+5096-0x1403)),((char)(0x77b+2157-0xfc8)),
+((char)(0x7dd+4008-0x1765)),((char)(0x641+1600-0xc61)),
+((char)(0x1798+3016-0x2340)),(0x1b61+2166-0x2377),((char)(0xcf8+1896-0x1440)),
+((char)(0xc54+1583-0x1263)),((char)(0x4ff+5476-0x1a43)),
+((char)(0xa6b+6920-0x2553)),(0xa67+4326-0x1af2),(0x4bb+7634-0x227f),
+(0x1892+557-0x1aa3),(0xd51+272-0xe58),((char)(0x1cd6+332-0x1e02)),
+(0x6af+450-0x852),((char)(0x3c+1419-0x5a7)),((char)(0x1ec7+1718-0x255d)),
+((char)(0x2041+518-0x2227)),((char)(0x1ed9+1066-0x22e3)),
+((char)(0xb85+4490-0x1cef)),((char)(0x2077+776-0x235f)),
+((char)(0xf06+2952-0x1a6e)),(0x1608+1030-0x19b1),((char)(0x13d8+949-0x176d)),
+((char)(0xb78+5295-0x2007)),((char)(0xa9c+1286-0xf82)),
+((char)(0x8ef+3553-0x16b0)),(0xc2f+28-0xbef),((char)(0x1a12+1015-0x1de9)),
+((char)(0x6cd+894-0xa2b)),((char)(0x1a14+422-0x1b9a)),((char)(0x1744+93-0x1781))
+,((char)(0x97c+5205-0x1db1)),(0x879+1597-0xe58),((char)(0x689+3070-0x1267)),
+((char)(0x6d2+7504-0x2402)),(0x6b5+7927-0x258e),(0xb1+1728-0x6f2),
+((char)(0xb58+5160-0x1f60)),((char)(0x1365+3336-0x204d)),
+((char)(0xf42+3469-0x1caf)),(0x165d+538-0x17fc),(0xd8d+3984-0x1d0e),
+(0x1d3c+326-0x1e65),((char)(0x1de7+328-0x1f0f)),(0x132c+1026-0x172a),
+(0x1573+141-0x15fb),((char)(0x1516+1051-0x1911)),((char)(0x7c4+7818-0x262e)),
+(0x2102+1298-0x260d),((char)(0x29f+7835-0x211a)),((char)(0x1bf0+2878-0x270e)),
+((char)(0xc24+282-0xd1e)),((char)(0x856+6481-0x2187)),(0xca1+1133-0x1091),
+(0x485+4519-0x1624),((char)(0x707+4237-0x1774)),((char)(0x6df+2860-0x11eb)),
+((char)(0x1384+1669-0x19e9)),(0xa4d+2934-0x1547),((char)(0x4fb+769-0x7dc)),
+(0xa0c+4886-0x1d16),(0x755+5554-0x1d01),((char)(0x375+539-0x570)),
+((char)(0xb7f+6469-0x24a4)),(0x95+2129-0x868),((char)(0x14d3+4-0x14b7)),
+((char)(0x563+7437-0x2250)),((char)(0x13aa+602-0x15e4)),};const unsigned short
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0xb29+2364-0x1463)]={{
+(0x769+1513-0xd49),(0x6d7+2541-0xfdd)},{(0x13df+2799-0x1ec4),(0x1828+713-0x1ae5)
+},{(0x2dc+5796-0x1973),(0xe33+5048-0x21de)},{(0x14e9+2456-0x1e6d),
+(0x983+6252-0x2191)},{(0x804+376-0x954),(0xb0d+5129-0x1e9b)},{
+(0x297+6727-0x1cb5),(0x1ec+8573-0x22ec)},{(0xf15+3697-0x1d57),
+(0xd8a+1009-0x111f)},{(0x15a+8342-0x21b4),(0xd47+225-0xdcd)},{
+(0x10a+6456-0x1a05),(0x73d+1421-0xc4c)},{(0x350+1919-0xa91),(0x1a57+2102-0x2230)
+},{(0x14f1+3226-0x214b),(0x3d2+8484-0x247a)},{(0x1b25+2539-0x24cf),
+(0x1dea+1178-0x21c3)},{(0x1824+940-0x1b87),(0x16a1+3606-0x23ea)},{
+(0x752+3341-0x1410),(0x1295+4927-0x2501)},{(0x5d9+4414-0x16c2),
+(0x1078+2247-0x1865)},{(0x130a+3418-0x2003),(0x225c+597-0x23d0)},{
+(0xf62+2363-0x1838),8364},{(0x18d9+939-0x1c1b),(0xe9f+6035-0x2545)},{
+(0x84+8028-0x1f71),(0x10dd+3428-0x1d4e)},{(0xb2f+6887-0x25a1),
+(0x22d1+585-0x2420)},};const unsigned short Ucs2_To_Gsm7_SPANISH_Table_UCS[][
+(0x283+1331-0x7b4)]={{(0x1050+1864-0x1788),(0xd88+5330-0x1ec6)},{
+(0x121+7137-0x1cf0),(0x8d0+3362-0x124c)},{(0x7db+164-0x86c),(0x17e4+1945-0x1bea)
+},{(0x153+8548-0x22a3),(0x209c+1960-0x24a9)},{(0xcb+5567-0x1675),
+(0x2444+694-0x2351)},{(0x40+9468-0x2526),(0x1d98+3246-0x26a6)},{
+(0x78b+3813-0x1659),(0xffa+5115-0x204d)},{(0x11a7+154-0x1229),
+(0x26f5+284-0x246e)},{(0x1b1+2010-0x972),(0x1501+41-0x1192)},{
+(0x777+4295-0x1824),(0x833+1454-0xa43)},};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,(0x7b2+5473-0x1d09),NON_GSM,NON_GSM,
+(0xd20+3446-0x1a89),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0xe37+6135-0x260e),(0x1052+2708-0x1ac5),(0x7b4+7205-0x23b7),
-(0x671+60-0x68a),(0xec0+4875-0x21c9),(0x1e4+7204-0x1de3),(0x1faa+966-0x234a),
-(0x13e8+4292-0x2485),(0x9f4+3944-0x1934),(0xbc9+6372-0x2484),(0xfea+871-0x1327),
-(0x10f9+2149-0x1933),(0x145+8527-0x2268),(0x73d+4815-0x19df),
-(0x112a+1641-0x1765),(0xd69+5208-0x2192),(0x131+8472-0x2219),(0x3d9+1790-0xaa6),
-(0x9c3+3514-0x174b),(0x43a+5201-0x1858),(0x1df+1551-0x7ba),(0x8f8+2813-0x13c0),
-(0x1da3+820-0x20a1),(0x1f63+160-0x1fcc),(0x427+7542-0x2165),(0x805+621-0xa39),
-(0x12c9+1806-0x199d),(0x942+5655-0x1f1e),(0x7f4+5351-0x1c9f),(0x7ca+3114-0x13b7)
-,(0x1148+4839-0x23f1),(0x4c9+6800-0x1f1a),(0x5b7+2635-0x1002),
-(0x1034+245-0x10e8),(0x69c+6235-0x1eb5),(0x144+575-0x340),(0xd70+5444-0x2270),
-(0x78b+4748-0x19d2),(0xfd7+1278-0x148f),(0x118b+4052-0x2118),(0xb12+952-0xe82),
-(0x1e76+2256-0x26fd),(0x63f+1151-0xa74),(0x12c+4420-0x1225),(0x2024+1016-0x23d0)
-,(0x194+587-0x392),(0x2ea+7561-0x2025),(0x165+7964-0x2032),(0x20da+353-0x21eb),
-(0x662+4605-0x180e),(0x131b+3085-0x1ed6),(0x11ef+3368-0x1ec4),
-(0x1b31+1600-0x211d),(0x1a25+809-0x1cf9),(0x2054+791-0x2315),(0x1b8c+180-0x1be9)
-,(0x11db+2453-0x1b18),(0x136b+3112-0x1f3a),(0x34b+8714-0x24fb),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0x1651+387-0x17c3),NON_GSM,(0xca0+938-0xfe9),(0x56d+1287-0xa12)
-,(0x124a+1449-0x1790),(0x374+2799-0xdff),(0xbf7+3245-0x183f),(0x11ec+204-0x1252)
-,(0x1810+173-0x1856),(0x437+2473-0xd78),(0xf37+5638-0x24d4),(0xc4a+2927-0x174f),
-(0x287+4847-0x150b),(0x239+2148-0xa31),(0x163b+452-0x1792),(0x99c+3620-0x1752),
-(0xe72+3150-0x1a51),(0xfeb+2150-0x17e1),(0x546+3993-0x146e),(0x2cb+1227-0x724),
-(0x1898+105-0x188e),(0x1281+971-0x15d8),(0x260+2258-0xabd),(0x6c0+4804-0x190e),
-(0x21a+5282-0x1645),(0x532+4967-0x1821),(0x1036+1229-0x148a),(0x8b3+4282-0x18f3)
+NON_GSM,(0x385+5981-0x1ac2),(0x107+5050-0x14a0),(0x51f+8094-0x249b),
+(0x894+3621-0x1696),(0x1c2d+658-0x1ebd),(0x216+7661-0x1fde),(0xae8+3335-0x17c9),
+(0x226+2481-0xbb0),(0x11d7+1239-0x1686),(0x1536+2491-0x1ec8),
+(0x1574+1946-0x1ce4),(0x15a8+4239-0x260c),(0xe4b+600-0x1077),(0xd65+2105-0x1571)
+,(0xb18+3669-0x193f),(0x130a+3362-0x1ffd),(0x2b2+8493-0x23af),
+(0x128+8286-0x2155),(0xfbf+5551-0x253c),(0xc9b+5855-0x2347),(0x181+9478-0x2653),
+(0x980+1301-0xe60),(0x124b+4854-0x250b),(0x198+7780-0x1fc5),(0x1c42+233-0x1cf3),
+(0x1d9b+1698-0x2404),(0x11af+432-0x1325),(0x147b+4245-0x24d5),(0xac4+217-0xb61),
+(0xed3+3028-0x1a6a),(0x166b+2841-0x2146),(0x108c+4933-0x2392),
+(0x1233+3639-0x206a),(0xe1a+5746-0x244b),(0x1d9f+1582-0x238b),
+(0xb8b+4241-0x1bd9),(0x2b9+493-0x462),(0x783+4318-0x181c),(0xf8a+4633-0x215d),
+(0xb89+1068-0xf6e),(0xacd+2138-0x12df),(0x23b1+895-0x26e7),(0x2b5+3502-0x1019),
+(0x88f+7769-0x269d),(0x312+4353-0x13c7),(0x738+2677-0x1160),(0x1068+2804-0x1b0e)
+,(0xf2a+896-0x125b),(0xa96+5493-0x1fbb),(0x11af+3385-0x1e97),(0x52c+1048-0x8f2),
+(0x6e7+1991-0xe5b),(0x544+8665-0x26c9),(0xdd1+5028-0x2120),(0x83a+1509-0xdc9),
+(0x111b+2781-0x1ba1),(0x122f+219-0x12b2),(0x15f5+4302-0x266a),(0x291+3068-0xe33)
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x78d+7078-0x2322),NON_GSM,(0x383+2299-0xc1d),
+(0xd9d+4576-0x1f1b),(0x17b5+3629-0x257f),(0x11ad+1803-0x1854),
+(0x5f9+6582-0x1f4a),(0x11d+2603-0xae2),(0xbd5+5820-0x222a),(0xd2c+5583-0x2293),
+(0x809+450-0x962),(0x1231+2599-0x1bee),(0xe44+1440-0x1379),(0x474+488-0x5f0),
+(0x457+7150-0x1fd8),(0x42a+8062-0x233a),(0x657+3802-0x14c2),(0x5ca+6271-0x1dd9),
+(0x401+8290-0x23f2),(0xafc+3060-0x167e),(0x1533+401-0x1651),(0xaac+350-0xb96),
+(0x1d12+269-0x1daa),(0xa4a+2928-0x1544),(0x51d+6211-0x1ce9),(0xde4+1917-0x14e9),
+(0x772+4218-0x1773),(0x109d+4643-0x2246),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
-,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xddf+5276-0x2260),
-(0xf54+4527-0x20c3),NON_GSM,(0x4bc+4751-0x174a),(0x1370+3330-0x204e),
-(0x202d+1637-0x268f),NON_GSM,(0x68a+2214-0xed1),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+,NON_GSM,NON_GSM,(0x635+1922-0xd9c),(0xed+3174-0xd13),NON_GSM,
+(0x1af9+267-0x1c03),(0x16c3+2086-0x1ec5),(0x8b2+1105-0xd00),NON_GSM,
+(0xc64+2071-0x141c),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x17d1+1698-0x1e13),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x9f6+3445-0x1710),
-(0x1629+1867-0x1d66),(0x7e2+6758-0x222c),(0xcff+4157-0x1d33),NON_GSM,
-(0xd4c+4036-0x1cf1),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x1875+1480-0x1de0),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x43a+5204-0x1832),NON_GSM
-,(0xcf9+5544-0x2296),NON_GSM,NON_GSM,NON_GSM,(0x245+1031-0x5ee),NON_GSM,NON_GSM,
-(0xbab+979-0xf60),(0x1e09+2349-0x26b7),NON_GSM,NON_GSM,NON_GSM,
-(0x9ad+3444-0x16a6),(0x29f+6188-0x1abc),(0xf0d+2583-0x1907),NON_GSM,
-(0x8e9+4286-0x19a3),(0x83c+499-0xa2a),NON_GSM,NON_GSM,(0xa80+3434-0x17e3),
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x8fc+5831-0x1f46),(0xe52+5161-0x2273),NON_GSM,
-NON_GSM,NON_GSM,(0xe08+447-0xf4b),NON_GSM,(0xbaa+2063-0x13ad),(0xcc+5799-0x176d)
-,NON_GSM,NON_GSM,(0x8d6+6652-0x2254),NON_GSM,NON_GSM,NON_GSM};const unsigned
-short zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][(0x459+271-0x566)]={{
-(0x1ec7+368-0x2032),(0x23c5+776-0x25e3)},{(0xcc0+946-0x1069),
-(0x16e9+3696-0x2472)},{(0x196+9059-0x24ef),(0xedd+1893-0x1636)},{
-(0x836+4570-0x1a05),(0x127+6917-0x1b58)},{(0x1faa+1610-0x25e8),
-(0x1df0+1460-0x22b0)},{(0xd64+4176-0x1da7),(0x161b+2144-0x1e6e)},{
-(0x4cd+1061-0x8e4),(0x1ed2+1091-0x2254)},{(0x1478+86-0x14bf),
-(0x1a27+2735-0x23f5)},{(0x1505+2846-0x2011),(0x1501+3737-0x1ff4)},{
-(0x1060+4902-0x2373),(0x926+5126-0x1999)},{(0xb4f+1209-0xff4),
-(0x847+4596-0x19dd)},{(0x142d+2249-0x1ce1),(0x9d0+1308-0xb43)},{
-(0x3ca+7328-0x2054),(0x1404+3430-0x1dca)},{(0xa6a+2649-0x14ac),
-(0x597+7639-0x1fc6)},{(0x340+355-0x48b),(0x19d9+3462-0x23bc)},{
-(0xcad+2229-0x1549),(0x4d0+5530-0x16d2)},{(0xeb0+179-0xf44),(0x17ed+1058-0x1b45)
-},{(0x218+2790-0xcd6),(0xb53+2345-0x1401)},{(0x10d9+2641-0x1b01),
-(0x11fb+3553-0x1f5f)},{(0x7d+9862-0x26d4),(0x236+6416-0x1aea)},{
-(0x1467+1787-0x1b26),(0xa41+1501-0xfc3)},{(0x237+8854-0x2490),
-(0x1573+1242-0x19cf)},{(0x540+5352-0x19ea),(0x38d+4005-0x12d5)},{
-(0x1993+1880-0x20ab),(0x183d+355-0x1924)},{(0xf42+3354-0x1c1b),(0xb5b+420-0xc3f)
-},{(0x13f1+624-0x1618),(0xd72+2528-0x1685)},{(0x1583+3594-0x233e),
-(0x204f+1818-0x2696)},{(0x1269+1654-0x188a),(0x9a0+6691-0x22e9)},{
-(0x1f4+9437-0x2676),(0x1bc8+2240-0x23c5)},{(0xde1+4499-0x1f18),
-(0x143b+1704-0x1a0e)},{(0x7e0+2798-0x126d),(0x2a3+1691-0x87c)},{
-(0x1254+3395-0x1f32),8364},{(0x17d2+3473-0x24fa),(0x12b+7041-0x1bbf)},{
-(0xd1b+1599-0x12eb),(0xcd3+3283-0x18b3)},{(0xc71+6119-0x23e3),
-(0x19e0+2662-0x234c)},{(0x600+2693-0x100a),(0x111+8250-0x2068)},{
-(0x2a3+4808-0x14ef),(0x1d4c+2736-0x2707)},{(0x941+2505-0x128b),(0x6ab+266-0x6d3)
-},};const unsigned short Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][
-(0x1560+4025-0x2517)]={{(0x930+5186-0x1d62),(0x15d8+5170-0x2676)},{
-(0x1512+2260-0x1dd1),8929},{(0x22ac+697-0x254d),8364},{(0x79c+4899-0x1a5a),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,
-(0x1717+1320-0x1c35),NON_GSM,NON_GSM,(0xe3a+205-0xefa),NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1430+4678-0x2616),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0xba+3870-0xf7d),(0x1d25+1527-0x230e),
+(0x85d+6006-0x1fb7),(0x1a11+3053-0x25f5),NON_GSM,(0xa80+6996-0x25b5),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x20f7+1203-0x254d),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x18f+2911-0xc92),NON_GSM,(0x25f+1985-0xa15),NON_GSM,
+NON_GSM,NON_GSM,(0x1486+291-0x154b),NON_GSM,NON_GSM,(0x1b16+357-0x1c5d),
+(0x5b7+3149-0x1185),NON_GSM,NON_GSM,NON_GSM,(0x9ef+2391-0x12cb),
+(0x948+4524-0x1ae5),(0x1246+2994-0x1ddb),NON_GSM,(0x112+9117-0x24ab),
+(0xc43+3217-0x18cf),NON_GSM,NON_GSM,(0x146+7929-0x2038),NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x1888+352-0x196b),(0x12fa+2822-0x1df8),NON_GSM,NON_GSM,NON_GSM,
+(0x1901+1793-0x1f86),NON_GSM,(0x439+4370-0x153f),(0xa89+4261-0x1b28),NON_GSM,
+NON_GSM,(0x117f+3810-0x1fe3),NON_GSM,NON_GSM,NON_GSM};const unsigned short
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][(0x1299+4214-0x230d)]={{
+(0x24a3+518-0x26a4),(0x2c6+4808-0x14a4)},{(0x1395+4755-0x261f),
+(0x15db+4086-0x24ea)},{(0x5c+5008-0x13e2),(0x131f+1863-0x1a5a)},{
+(0x1006+4179-0x204e),(0x605+339-0x684)},{(0x69+7219-0x1c90),(0x2e9+9150-0x25b3)}
+,{(0x11e5+5129-0x25e1),(0xb46+1464-0x10f1)},{(0x64c+4235-0x16c9),
+(0xd00+1792-0x133f)},{(0x463+1307-0x96f),(0x1831+3137-0x2391)},{
+(0x4b3+6928-0x1fb1),(0x54f+6196-0x19dd)},{(0x990+6602-0x2347),
+(0x700+7280-0x1fdd)},{(0xe54+652-0x10cc),(0x1490+1031-0x1839)},{
+(0x19ec+1279-0x1ed6),(0x11a2+2586-0x1813)},{(0x994+5967-0x20cd),
+(0x1608+3415-0x1fbf)},{(0x12f0+2073-0x1af2),(0x16ac+2710-0x1d9a)},{
+(0x253+300-0x367),(0x91c+2795-0x1064)},{(0x23f+5525-0x17bb),(0x4a6+1398-0x684)},
+{(0x1a8f+1607-0x20b7),(0x669+5942-0x1cd5)},{(0x1923+3048-0x24e3),
+(0xd6b+5541-0x2295)},{(0xcbf+1818-0x13b0),(0x41b+4493-0x152b)},{
+(0x696+120-0x6df),(0x10a+4-0xb2)},{(0x6b9+4820-0x1951),(0xfb0+5378-0x2457)},{
+(0x117+4501-0x126f),(0xf68+3773-0x1da7)},{(0x942+1744-0xfd4),(0xc4+9732-0x266b)}
+,{(0x97b+2070-0x1151),(0x1720+724-0x1978)},{(0x117+2237-0x993),
+(0xe2d+3754-0x1c17)},{(0x85+2073-0x855),(0xd38+1522-0x125d)},{
+(0x8a8+2560-0x1259),(0x1049+399-0x1105)},{(0x1b31+1384-0x2044),
+(0x1642+3172-0x21cc)},{(0x63+20-0x1c),(0x141a+2194-0x1be9)},{(0x665+3908-0x154d)
+,(0x12a3+4932-0x2512)},{(0x1235+4353-0x22d5),(0x192+585-0x319)},{
+(0x101b+5062-0x237c),8364},{(0x15bd+3118-0x2182),(0x118b+4510-0x223c)},{
+(0x2d0+954-0x61b),(0x1ba6+149-0x1b48)},{(0x404+2465-0xd30),(0x223c+996-0x2526)},
+{(0x1370+2494-0x1cb3),(0x1bdc+1052-0x1f15)},{(0x818+7363-0x245f),
+(0x1678+607-0x17e2)},{(0x3e6+5792-0x1a07),(0x66a+6831-0x2037)},};const unsigned
+short Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][(0x1299+1936-0x1a27)]={{
+(0x809+6853-0x22be),(0xc5c+6610-0x229a)},{(0xf25+4195-0x1f73),(0x259b+231-0x3a1)
+},{(0xcff+5746-0x2359),8364},{(0x1e18+51-0x1de6),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,(0x41c+372-0x586),NON_GSM,NON_GSM,
+(0x1d0+7938-0x20c5),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1a7b+1963-0x2206),
-(0x15bd+1920-0x1d1c),(0xd9f+5514-0x2307),(0xfac+586-0x11d3),(0x196d+2257-0x223c)
-,(0x14ed+1819-0x1be3),(0xd2+4299-0x1177),(0x4d1+2234-0xd64),(0xeeb+1638-0x1529),
-(0x48b+6659-0x1e65),(0xdda+1784-0x14a8),(0x16f0+929-0x1a66),(0x585+632-0x7d1),
-(0x45f+738-0x714),(0xd85+641-0xfd8),(0x12b9+256-0x138a),(0x1400+4605-0x25cd),
-(0x30f+7440-0x1fee),(0xa5a+1390-0xf96),(0x980+3096-0x1565),(0xc1b+2440-0x156f),
-(0x1db+2753-0xc67),(0x1e7b+1154-0x22c7),(0x255c+219-0x2600),(0x12ea+2786-0x1d94)
-,(0x143f+1264-0x18f6),(0x17b3+1504-0x1d59),(0x235+6402-0x1afc),
-(0x1307+707-0x158e),(0xab8+6091-0x2246),(0x10ea+4424-0x21f4),(0x38b+5447-0x1893)
-,(0x8ad+620-0xb19),(0xcd3+2630-0x16d8),(0xe1c+3678-0x1c38),(0x1678+4008-0x25dd),
-(0x1f27+46-0x1f11),(0x122d+2617-0x1c21),(0x504+3470-0x124c),(0xc4+5114-0x1477),
-(0xa89+4839-0x1d28),(0x1425+3192-0x2054),(0x10ed+2726-0x1b49),(0x2dd+1495-0x869)
-,(0x936+1098-0xd34),(0x10c0+4939-0x23be),(0x7c4+2420-0x10ea),(0x150+7288-0x1d79)
-,(0x192+4619-0x134d),(0x1b89+2405-0x249d),(0xa78+1425-0xfb7),(0xcba+1189-0x110c)
-,(0x1a14+1025-0x1dc1),(0x352+6164-0x1b11),(0x1885+3419-0x258a),
-(0x4ad+4692-0x16aa),(0x83f+5641-0x1df0),(0xdbb+3205-0x19e7),(0x3e5+246-0x481),
-NON_GSM,(0x637+247-0x717),NON_GSM,(0x671+4645-0x1880),(0xc5f+3473-0x19df),
-(0xfb7+5497-0x24b3),(0x4f2+6038-0x1c27),(0x362+2421-0xc75),(0x163+638-0x37e),
-(0x465+2552-0xdf9),(0x163a+2845-0x20f2),(0x1b08+2795-0x258d),(0xf54+4857-0x21e6)
-,(0x3a6+5464-0x1896),(0x1368+4950-0x2655),(0x2fb+4985-0x160a),
-(0x105c+4455-0x2158),(0x525+749-0x7a6),(0x202+5516-0x1721),(0xdb2+2037-0x1539),
-(0x310+1155-0x724),(0x367+6230-0x1b4d),(0x72f+2662-0x1124),(0x11a+7521-0x1e09),
-(0xf61+507-0x10e9),(0x1754+1110-0x1b36),(0x242+321-0x30e),(0x761+3080-0x12f3),
-(0x407+5585-0x1961),(0x163a+2490-0x1f7c),(0x962+3072-0x14e9),(0xe1a+4917-0x20d5)
-,NON_GSM,(0x15ad+1219-0x1a56),NON_GSM,(0xd0b+5142-0x20c1),NON_GSM,NON_GSM,
+NON_GSM,(0x1389+2980-0x1f0d),(0x3dd+8510-0x24fa),(0x15c4+2280-0x1e8a),
+(0x11dc+2281-0x1aa2),(0x1c5+5966-0x1911),(0x283+6208-0x1a9e),(0x85c+547-0xa59),
+(0x34c+6577-0x1cd6),(0x4e7+779-0x7ca),(0x1fbf+490-0x2180),(0x8b2+7350-0x253e),
+(0x1d7+63-0x1eb),(0x199+9266-0x259f),(0x3d5+3416-0x1100),(0x65b+1633-0xc8e),
+(0x2287+1054-0x2676),(0x2f2+7878-0x2188),(0x1456+4476-0x25a1),
+(0x170b+1727-0x1d98),(0x2a7+7200-0x1e94),(0x234+8925-0x24dd),(0x99a+135-0x9ec),
+(0x61c+7274-0x2250),(0x21b3+1013-0x2571),(0x1775+3042-0x231f),(0x7bf+762-0xa80),
+(0x47+1613-0x65a),(0x293+2063-0xa67),(0x1116+3039-0x1cb9),(0x1ef+3052-0xd9e),
+(0x9e9+3227-0x1646),(0xa2f+4972-0x1d5c),(0xec7+5855-0x25a6),(0x752+92-0x76d),
+(0x794+2906-0x12ac),(0x521+6553-0x1e77),(0xd10+3045-0x18b1),(0x2220+786-0x24ed),
+(0x7cf+7387-0x2464),(0x22ef+945-0x2659),(0x4af+3757-0x1314),(0x10cd+4453-0x21e9)
+,(0x1242+1838-0x1926),(0xbf+6104-0x184c),(0x46a+8657-0x25ef),(0x61c+1325-0xafc),
+(0x1c51+1757-0x22e0),(0x164a+2989-0x21a8),(0xb70+6891-0x260b),
+(0xa8f+5197-0x1e8b),(0x11b4+2166-0x19d8),(0x341+1347-0x831),(0x16a0+3087-0x225b)
+,(0x1eab+1748-0x252a),(0x804+4490-0x1938),(0x1349+3658-0x213c),
+(0x89d+2851-0x1368),(0x421+3256-0x1080),(0x14db+3851-0x238c),NON_GSM,
+(0x110f+5229-0x2565),NON_GSM,(0x1020+2852-0x1b2e),(0x1d4d+601-0x1f95),
+(0x16e8+2160-0x1edb),(0x1bb1+348-0x1cac),(0x116f+5062-0x24d3),
+(0x4f3+6972-0x1fcc),(0x1686+4069-0x2607),(0x27d+8090-0x21b2),(0x17b5+44-0x177b),
+(0x13d8+1746-0x1a43),(0x1a7c+2389-0x2369),(0x993+1791-0x1029),
+(0x1fa7+1753-0x2616),(0xb1f+6813-0x2551),(0x7dc+5814-0x1e26),
+(0x1857+2193-0x207b),(0x976+1866-0x1052),(0x479+1403-0x985),(0x1363+4718-0x2561)
+,(0xcd9+6540-0x25f4),(0x178+7687-0x1f0d),(0xb7a+2187-0x1392),(0x4f3+858-0x7d9),
+(0x8e5+2938-0x13ea),(0x5f9+172-0x62f),(0x810+1192-0xc41),(0x1501+2095-0x1cb8),
+(0x6e2+2156-0xed5),(0x1553+672-0x1779),NON_GSM,(0x455+6285-0x1cc8),NON_GSM,
+(0xea9+767-0x1148),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x93d+1973-0x10d7),NON_GSM_P,
+NON_GSM,(0x906+2556-0x1301),NON_GSM_P,(0x27a+7613-0x2034),NON_GSM,
+(0x10ff+2641-0x1af1),NON_GSM,NON_GSM,(0x1d17+2485-0x26ba),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x215b+558-0x2365),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x57c+6574-0x1f16),(0x1502+3795-0x23c7),(0x1994+3118-0x25a6),
+(0x814+4944-0x1b09),NON_GSM_P,NON_GSM_P,NON_GSM_P,(0xfb+8330-0x2172),NON_GSM,
+(0xc1a+5919-0x231a),(0x8d1+2825-0x13bc),NON_GSM,NON_GSM,(0x1e43+1143-0x227a),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM,(0xf1+7088-0x1c88),(0x17c+3643-0xfac),
+(0x618+3992-0x1554),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM,(0x1720+1082-0x1afd),
+NON_GSM,(0x8f4+2735-0x1345),NON_GSM,NON_GSM,NON_GSM_P,(0x11e5+3645-0x1fa3),
+(0x1029+3424-0x1d7a),(0x2f7+727-0x5b1),(0xa5c+370-0xb53),NON_GSM_P,NON_GSM_P,
+NON_GSM_P,(0x800+3055-0x13e6),NON_GSM_P,(0x63f+4735-0x18b9),(0x4f0+826-0x826),
+NON_GSM,NON_GSM_P,(0x963+3101-0x1579),NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,
+NON_GSM_P,(0x2389+590-0x25cf),(0x2d+6489-0x197a),(0x2f8+209-0x34d),NON_GSM_P,
+NON_GSM,NON_GSM_P,NON_GSM_P,(0xe8d+3717-0x1d0c),NON_GSM,(0x1af0+352-0x1bd2),
+NON_GSM,NON_GSM,NON_GSM};const unsigned short
+zte_sms_GSMDefault_To_UCS2_Table_Ex[][(0x41a+7550-0x2196)]={{(0xb76+508-0xd68),
+(0x1e9a+1293-0x239b)},{(0x12c2+3993-0x2247),(0x398+6096-0x1b0a)},{
+(0x13bc+345-0x14ed),(0x1cd+4192-0x11b2)},{(0xf5b+5718-0x2588),
+(0x7a4+3386-0x1461)},{(0x20bb+346-0x21e6),(0x241+5076-0x15b9)},{
+(0x52d+7056-0x2081),(0x1509+876-0x181a)},{(0x32d+9004-0x261c),
+(0x1b2+8022-0x208a)},{(0xd0d+4359-0x1dd6),(0xa4b+3040-0x15ce)},{
+(0x13d4+1409-0x1915),(0x3b3+2050-0xb39)},{(0x1b6+1984-0x911),8364},};const
+unsigned short UCS2_To_GSMDefault_Table_UCS2[][(0x1094+4360-0x219a)]={{
+(0x45a+7808-0x22ca),(0xf81+5091-0x1fd0)},{(0x510+7889-0x23cf),
+(0x16fb+3029-0x1f2a)},{(0x116d+989-0x1537),(0xfc4+4410-0x1d6b)},{
+(0x105f+2853-0x1b70),(0x1671+3465-0x205f)},{(0x6f3+6057-0x1e87),
+(0x2523+544-0x239a)},{(0x197a+3436-0x26d0),(0x1407+39-0x108e)},{
+(0xa6c+6942-0x2573),(0x737+3090-0xfa1)},{(0x1077+4551-0x2226),(0xf26+733-0xe60)}
+,{(0x50d+6586-0x1eae),(0xa07+3410-0x13c1)},{(0x297+8434-0x236f),
+(0x911+2767-0x1042)},};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,
+(0x10bb+4011-0x205c),NON_GSM,NON_GSM,(0x14e9+4213-0x2551),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x4bb+1142-0x911),
+(0x1304+801-0x1604),(0x5d9+4075-0x15a2),(0x6dd+6070-0x1e70),(0x221b+642-0x249b),
+(0x1667+676-0x18e6),(0xa73+3277-0x171a),(0x2117+198-0x21b6),(0x6fb+2502-0x1099),
+(0xb14+3597-0x18f8),(0x11cc+3900-0x20de),(0x2493+663-0x26ff),(0x2197+692-0x241f)
+,(0x805+6215-0x201f),(0x986+7231-0x2597),(0x48+9556-0x256d),(0x594+4338-0x1656),
+(0x6b3+4601-0x187b),(0x17b7+1229-0x1c52),(0xf1+2886-0xc04),(0x6c3+1596-0xccb),
+(0x153a+71-0x154c),(0x104d+302-0x1145),(0x29f+7327-0x1f07),(0xbd0+3610-0x19b2),
+(0x1822+987-0x1bc4),(0x375+4990-0x16b9),(0x1a05+1805-0x20d7),(0xbb2+2031-0x1365)
+,(0xb4b+5711-0x215d),(0x11a8+4293-0x222f),(0xccb+4194-0x1cee),
+(0x204c+355-0x21af),(0x349+4093-0x1305),(0xcc5+6594-0x2645),(0xcf8+37-0xcda),
+(0x753+3222-0x13a5),(0x524+3470-0x126d),(0x161+7262-0x1d79),(0x4ad+2907-0xfc1),
+(0x249+58-0x23b),(0x554+3181-0x1178),(0x1792+774-0x1a4e),(0x6dd+5406-0x1bb0),
+(0x693+654-0x8d5),(0xb5c+906-0xe99),(0xf02+5777-0x2545),(0x1dd+129-0x20f),
+(0x83d+7574-0x2583),(0xeba+334-0xfb7),(0xce6+5280-0x2134),(0xfe2+2180-0x1813),
+(0x900+2043-0x10a7),(0xb89+5933-0x2261),(0x12e7+1746-0x1963),(0xfbd+3641-0x1d9f)
+,(0x45f+3043-0xfea),(0x1c15+2706-0x264e),(0x17ff+2997-0x235a),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,(0x6b+3343-0xd69),NON_GSM,(0xf8f+4260-0x1fd2),
+(0x104b+4503-0x2180),(0x2ca+4772-0x150b),(0x695+3226-0x12cb),
+(0x1219+3291-0x1e8f),(0x11aa+2354-0x1a76),(0xbdd+3387-0x18b1),(0xad+9502-0x2563)
+,(0xea3+2424-0x17b2),(0xa8a+7198-0x263e),(0x1e28+1894-0x2523),
+(0x1636+930-0x196c),(0x2c3+5111-0x164d),(0x8da+6697-0x2295),(0x153b+378-0x1646),
+(0x21bf+1174-0x25e5),(0xfa3+3350-0x1c48),(0x567+1944-0xc8d),(0x6a6+4106-0x163d),
+(0x110+3698-0xf0e),(0x7d0+3277-0x1428),(0x1687+2018-0x1df3),(0x552+1397-0xa50),
+(0x15d6+4491-0x26e9),(0x1c9d+1823-0x2343),(0x46c+8333-0x247f),NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x1ae8+2404-0x2431),NON_GSM_P,NON_GSM,(0x30+5435-0x156a),NON_GSM_P,
-(0x67c+1881-0xdd2),NON_GSM,(0x1a13+2961-0x2545),NON_GSM,NON_GSM,
-(0x1d96+924-0x2120),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x7b9+1749-0xe6a),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1021+3231-0x1ca5),(0xbe1+5214-0x1fff)
+,NON_GSM,(0x181+8612-0x2324),(0x120f+3840-0x20eb),(0x3a3+2973-0xf3d),NON_GSM,
+(0xc04+3889-0x1ad6),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1935+2218-0x21cb),(0x1ac+5372-0x169a)
-,(0x84+2390-0x9be),(0x894+7226-0x2473),NON_GSM_P,NON_GSM_P,NON_GSM_P,
-(0xd57+876-0x10b0),NON_GSM,(0xdb5+4406-0x1ecc),(0x648+3234-0x12cc),NON_GSM,
-NON_GSM,(0xbe1+4357-0x1ca6),NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM,
-(0x90d+1533-0xef1),(0x125a+1018-0x1649),(0x47f+7802-0x229d),NON_GSM_P,NON_GSM,
-NON_GSM_P,NON_GSM,(0x1cf6+897-0x201a),NON_GSM,(0x425+7971-0x22ea),NON_GSM,
-NON_GSM,NON_GSM_P,(0x1325+476-0x1482),(0x10d9+5336-0x25a2),(0x2cd+2222-0xb5e),
-(0x700+833-0x9c6),NON_GSM_P,NON_GSM_P,NON_GSM_P,(0x27+4401-0x114f),NON_GSM_P,
-(0x118b+2788-0x1c6a),(0x855+6869-0x2326),NON_GSM,NON_GSM_P,(0x100c+1226-0x14cf),
-NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM_P,(0x78f+4256-0x1827),
-(0x1347+3835-0x2236),(0x480+5065-0x17cd),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM_P,
-(0x676+6930-0x2182),NON_GSM,(0x4d8+4455-0x15c1),NON_GSM,NON_GSM,NON_GSM};const
-unsigned short zte_sms_GSMDefault_To_UCS2_Table_Ex[][(0x577+423-0x71c)]={{
-(0x24c8+272-0x25ce),(0x1797+141-0x1818)},{(0x3d3+2593-0xde0),(0x4dd+2002-0xc51)}
-,{(0xc1b+6095-0x23c2),(0xc8b+2990-0x17be)},{(0xeca+4290-0x1f63),
-(0x1dc+7922-0x2051)},{(0x31d+6410-0x1bf8),(0x2149+1339-0x2628)},{
-(0x1da6+534-0x1f80),(0x1570+1397-0x1a8a)},{(0x6a0+1952-0xe03),(0x465+212-0x4bb)}
-,{(0x75f+3610-0x153b),(0x1a9a+1942-0x21d3)},{(0x1449+1100-0x1855),
-(0x11b0+5113-0x252d)},{(0x2b2+1039-0x65c),8364},};const unsigned short
-UCS2_To_GSMDefault_Table_UCS2[][(0xc77+4855-0x1f6c)]={{(0x6bc+526-0x8ba),
-(0x476+5793-0x1783)},{(0x7dd+3121-0x13fc),(0x14f8+1134-0x15c0)},{
-(0x143+8469-0x2245),(0x90a+5362-0x1a69)},{(0xca+7332-0x1d5a),(0xb74+5618-0x1dcb)
-},{(0x150+5967-0x188a),(0xd7b+33-0x9f3)},{(0x443+7066-0x1fc7),
-(0x478+4043-0x10a3)},{(0x16b2+681-0x1944),(0x1864+3703-0x2333)},{
-(0xa72+7088-0x260a),(0xae5+6027-0x1ecd)},{(0x17b7+1903-0x1f0d),
-(0x119b+6031-0x2592)},{(0xf5+7359-0x1d9a),(0xca1+4642-0x1b25)},};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,(0xda+2129-0x921),NON_GSM,NON_GSM,
-(0x849+2907-0x1397),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0xa68+4331-0x1b33),(0x7e4+2489-0x117c),(0x1b5+9091-0x2516),
-(0x2518+22-0x250b),(0x92f+3298-0x160f),(0x36+4979-0x1384),(0xc6b+5961-0x238e),
-(0x5cc+7134-0x2183),(0x1aa2+1237-0x1f4f),(0x131a+173-0x139e),(0x85d+3042-0x1415)
-,(0xfba+1220-0x1453),(0x11bc+4167-0x21d7),(0xc68+1378-0x119d),
-(0xa16+2914-0x154a),(0x509+2081-0xcfb),(0x1b29+27-0x1b14),(0x1c41+997-0x1ff5),
-(0x48c+4573-0x1637),(0x1b0+5696-0x17bd),(0xaf3+689-0xd70),(0xb7b+1776-0x1236),
-(0x5e7+5197-0x19fe),(0xa4b+6035-0x21a7),(0x243f+197-0x24cc),(0x16e0+756-0x199b),
-(0x19d3+3366-0x26bf),(0x985+281-0xa63),(0x409+7431-0x20d4),(0x1b54+2611-0x254a),
-(0x1ee9+207-0x1f7a),(0x14c8+986-0x1863),(0x5cc+3297-0x12ad),(0x2c2+3748-0x1125),
-(0xd5+1905-0x804),(0x535+8418-0x25d4),(0x1ec4+580-0x20c4),(0x1d06+899-0x2044),
-(0x63c+2285-0xee3),(0x17c8+3426-0x24e3),(0x1227+1363-0x1732),(0x5fc+2983-0x115a)
-,(0x1ced+1643-0x230e),(0x443+2970-0xf92),(0x21f1+213-0x227a),
-(0x1707+3024-0x228a),(0x89a+6112-0x202c),(0x1ccd+86-0x1cd4),(0x142a+1206-0x1890)
-,(0x38f+157-0x3db),(0x570+2805-0x1013),(0x21fb+883-0x251b),(0xd3a+876-0x1052),
-(0x1acc+133-0x1afc),(0x21d8+417-0x2323),(0xa03+7202-0x25ce),(0x39c+2092-0xb70),
-(0x6c4+3512-0x1423),(0x400+4976-0x1716),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0xbd2+1029-0xfc6),NON_GSM,(0x1c56+2350-0x2523),(0x75c+2662-0x1160),
-(0xf31+4114-0x1ee0),(0x1ec+7016-0x1cf0),(0xbea+1558-0x119b),(0x9c5+4119-0x1976),
-(0x72+2360-0x943),(0x1b94+1208-0x1fe4),(0x1bd0+405-0x1cfc),(0xd1a+2465-0x1651),
-(0xe82+5075-0x21ea),(0x101+9095-0x241c),(0x9fb+5840-0x205e),(0x7a8+6627-0x211d),
-(0xadd+6628-0x2452),(0x48d+5823-0x1adc),(0x5d0+6359-0x1e36),(0x20c+1572-0x7be),
-(0x16a+2695-0xb7e),(0x168d+2999-0x21d0),(0x1729+2082-0x1ed6),(0x477+3975-0x1388)
-,(0x176+9214-0x24fd),(0x13fa+3985-0x2313),(0xac2+6546-0x23db),
-(0x27f+6904-0x1cfd),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x739+1061-0xb43),(0x87f+4120-0x1857),NON_GSM,(0x157a+2379-0x1ec4),
-(0x83a+3252-0x14ca),(0x1a16+920-0x1dab),NON_GSM,(0xe50+5116-0x21ed),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0x3e0+2042-0xb7a),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x311+5920-0x19d6),(0x1a9a+1595-0x20c7),(0xf1+2444-0xa61),(0x208a+597-0x22d6),
-NON_GSM,(0x236+3629-0x1044),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x3d5+4767-0x1617),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x10b4+230-0x113e),
-NON_GSM,(0x1c43+1905-0x23a9),NON_GSM,NON_GSM,NON_GSM,(0xbd8+2901-0x16cf),NON_GSM
-,NON_GSM,(0xbf0+2837-0x16e7),(0x255f+189-0x259d),NON_GSM,NON_GSM,NON_GSM,
-(0x20b9+1681-0x26cf),(0x1185+3097-0x1d8f),(0xe93+3027-0x1a49),NON_GSM,
-(0x17dc+3747-0x267b),(0x432+8099-0x23d0),NON_GSM,NON_GSM,(0x407+7224-0x2038),
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x7c8+6106-0x1f25),(0x31f+6763-0x1d82),NON_GSM,
-NON_GSM,NON_GSM,(0x13e1+3313-0x2056),NON_GSM,(0x1045+4187-0x2094),
-(0x113f+4948-0x248d),NON_GSM,NON_GSM,(0x2c0+5829-0x1907),NON_GSM,NON_GSM,NON_GSM
-};const unsigned short zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={
-(0x126c+3778-0x20ee),(0xdb7+4979-0x2087),(0x1e4+7829-0x2055),(0x1db+3341-0xe43),
-(0x1090+1468-0x1562),(0xb43+3092-0x166e),(0x162f+836-0x1879),(0xdb8+5522-0x225d)
-,(0x1253+1664-0x17e0),(0xb74+5099-0x1e78),(0x61d+5318-0x1ad9),
-(0x649+7310-0x2203),(0x9b2+668-0xb5a),(0x2fb+2322-0xc00),(0x17c7+3095-0x231d),
-(0xfdb+1297-0x140b),(0x457+9312-0x2523),(0x156+1065-0x520),(0x1d15+1017-0x2064),
-(0xbe3+3723-0x19a7),(0x684+625-0x835),(0x25a3+2022-0xb6b),(0x1cd+2016-0x94f),
-(0x10c+4198-0x1116),(0x26b5+1699-0xcac),(0x2254+930-0x2523),(0xe1d+5679-0x23d0),
-(0x10a3+1647-0x1672),(0x267+8399-0x2274),(0x4e3+4719-0x1670),(0x236c+931-0x2645)
-,(0x1cb+9036-0x244e),(0x183+7848-0x200b),(0x72d+6885-0x21f1),(0xc61+1094-0x1085)
-,(0xd71+4991-0x20cd),(0x1ecd+635-0x2098),(0x1bfd+235-0x1cc3),
-(0x133a+1365-0x1869),(0x54f+1872-0xc78),(0x1b21+2674-0x256b),
-(0x1345+2039-0x1b13),(0x579+8579-0x26d2),(0xe23+6131-0x25eb),(0x47b+7617-0x2210)
-,(0x9f8+4924-0x1d07),(0x2c3+9056-0x25f5),(0x995+2029-0x1153),
-(0x1c59+1573-0x224e),(0xc7a+1914-0x13c3),(0x11c6+1070-0x15c2),
-(0x593+6467-0x1ea3),(0x331+4589-0x14ea),(0x145a+890-0x179f),(0x1bc9+174-0x1c41),
-(0x1459+691-0x16d5),(0xbc7+6986-0x26d9),(0x23f9+201-0x2489),(0xc2c+1758-0x12d0),
-(0x886+4138-0x1875),(0x90d+5891-0x1fd4),(0x75b+5013-0x1ab3),(0x4a4+7510-0x21bc),
-(0x7a8+344-0x8c1),(0x4dd+2262-0xce6),(0x3c4+413-0x520),(0x7ad+5140-0x1b7f),
-(0xd8a+3823-0x1c36),(0x1ec1+1648-0x24ed),(0xc69+1316-0x1148),(0x586+1595-0xb7b),
-(0x26f+270-0x336),(0x333+5869-0x19d8),(0x38b+6420-0x1c56),(0x1b08+2529-0x249f),
-(0xb07+3506-0x186e),(0xef9+4023-0x1e64),(0x1f6d+1695-0x25bf),(0x5a7+6853-0x201e)
-,(0xde9+994-0x117c),(0x662+6708-0x2046),(0x42f+8825-0x2657),(0x585+2805-0x1028),
-(0x93+8216-0x2058),(0x161b+2027-0x1db2),(0x17c6+418-0x1913),(0x1674+1776-0x1d0e)
-,(0x783+1813-0xe41),(0xda2+5457-0x229b),(0x11b5+2480-0x1b0c),(0xa59+4491-0x1b8a)
-,(0x653+5659-0x1bab),(0xaff+5343-0x1f09),(0xe61+4095-0x1d86),
-(0x10a5+3606-0x1ddf),(0x6a8+4422-0x1747),(0x10fd+5338-0x2559),(0x1f1b+41-0x1ee3)
-,(0x34f+1056-0x70d),(0x480+1398-0x993),(0x26a+1380-0x76a),(0x50f+2405-0xe0f),
-(0x15d+2620-0xb33),(0x316+3816-0x1197),(0x2119+390-0x2237),(0x21f0+853-0x24dc),
-(0x1092+4549-0x21ed),(0x1485+3567-0x2209),(0x2b2+8394-0x2310),
-(0x1ddd+1197-0x221d),(0x89a+2278-0x1112),(0x1ddd+1856-0x24ae),
-(0x2511+387-0x2624),(0x8bd+3292-0x1528),(0x293+2632-0xc69),(0x648+106-0x63f),
-(0x20d2+1449-0x2607),(0x19a2+1110-0x1d83),(0x1108+3305-0x1d7b),
-(0xb08+5135-0x1ea0),(0x3dc+806-0x68a),(0x59f+232-0x60e),(0x980+2073-0x111f),
-(0x1d48+2341-0x258a),(0xa3b+5070-0x1d14),(0x12cb+3787-0x2136),
-(0x1a8f+2885-0x24d8),(0x2237+1296-0x2667)};const unsigned short
-zte_sms_GSMDefault_To_UCS2_Table[]={(0x144f+1481-0x19d8),(0x91b+4128-0x1898),
-(0x8ef+1557-0xee0),(0x3aa+2500-0xcc9),(0xee2+4125-0x1e17),(0xf7c+3528-0x1c5b),
-(0x1392+5149-0x26b6),(0x9a5+1595-0xef4),(0x7b1+5056-0x1a7f),(0x14f6+1299-0x1942)
-,(0x50+588-0x292),(0x1ad2+1066-0x1e24),(0x19b4+3463-0x2643),(0x476+3732-0x12fd),
-(0xa31+2439-0x12f3),(0x2437+751-0x2641),(0x547+6165-0x19c8),(0x338+6000-0x1a49),
-(0x64d+7876-0x216b),(0x1cf2+2323-0x2272),(0x173a+4121-0x23b8),
-(0x1b85+118-0x1852),(0x674+1620-0x928),(0xb44+2555-0x1197),(0x1f86+365-0x1d50),
-(0x11a2+126-0xe88),(0x1669+1088-0x170b),(0x702+8131-0x2625),(0x153+4307-0x1160),
-(0x2532+249-0x2545),(0xe17+1889-0x1499),(0x1017+585-0x1197),(0xce7+652-0xf53),
-(0x64+9603-0x25c6),(0x9d9+7044-0x253b),(0xb7d+5665-0x217b),(0x1394+4858-0x25ea),
-(0xa65+6328-0x22f8),(0x434+3071-0x100d),(0xb22+3-0xafe),(0x191f+957-0x1cb4),
-(0xeb2+3176-0x1af1),(0xc6+3383-0xdd3),(0x1b42+2864-0x2647),(0x686+6103-0x1e31),
-(0x10f3+3679-0x1f25),(0x10fc+40-0x10f6),(0xde9+1438-0x1358),(0x1658+729-0x1901),
-(0x995+1394-0xed6),(0x475+3042-0x1025),(0xc21+3204-0x1872),(0x2dd+548-0x4cd),
-(0x77c+5821-0x1e04),(0xda+5881-0x179d),(0x829+3034-0x13cc),(0x16a9+1484-0x1c3d),
-(0xfc1+5849-0x2661),(0x746+96-0x76c),(0x18ed+1819-0x1fcd),(0x898+275-0x96f),
-(0x969+7400-0x2614),(0x884+60-0x882),(0xeb8+4730-0x20f3),(0x1139+3240-0x1d40),
-(0x20b6+300-0x21a1),(0x6a9+6796-0x20f3),(0x1afc+181-0x1b6e),(0x987+3702-0x17b9),
-(0x1ae5+987-0x1e7b),(0x145+73-0x148),(0x61c+5089-0x19b6),(0x2056+681-0x22b7),
-(0x11f+2055-0x8dd),(0x131f+4716-0x2541),(0x10e9+3236-0x1d42),(0x6ad+2169-0xeda),
-(0x4e3+5283-0x1939),(0x158d+3998-0x24dd),(0x1652+1182-0x1aa1),
-(0x1149+1534-0x16f7),(0xbb2+982-0xf37),(0xfc3+3188-0x1be5),(0x8aa+6048-0x1ff7),
-(0x1a56+135-0x1a89),(0x4dd+3271-0x114f),(0x334+4776-0x1586),(0x1ec5+587-0x20b9),
-(0x5cb+3941-0x14d8),(0x743+7340-0x2396),(0x638+2589-0xffb),(0x17c6+1658-0x1d7c),
-(0x908+6744-0x228a),(0x228+4820-0x142b),(0x12a8+2577-0x1bdd),(0xff3+5989-0x26b1)
-,(0x1652+3848-0x249b),(0x45b+5551-0x19a9),(0x1c0f+1473-0x216e),
-(0x19e1+2181-0x2203),(0xa05+6965-0x24d6),(0x1b59+858-0x1e4e),
-(0x107a+1464-0x15cc),(0x908+7596-0x264d),(0xa7b+222-0xaf1),(0x11ca+3193-0x1dda),
-(0xd0b+2607-0x16d0),(0x1f2f+1631-0x2523),(0x107a+4837-0x22f3),
-(0xd38+5174-0x2101),(0x1386+968-0x16e0),(0x4bd+6006-0x1bc4),(0xbb7+639-0xdc6),
-(0xa1+6138-0x182a),(0xc83+1766-0x12f7),(0x16f3+3685-0x24e5),(0x1462+146-0x1480),
-(0x3ca+1964-0xb01),(0x925+7178-0x24b9),(0xc29+4398-0x1ce0),(0xa26+937-0xd57),
-(0x921+839-0xbef),(0x11a9+3904-0x206f),(0x685+1775-0xc90),(0x1f8+8853-0x2397),
-(0x1e5f+716-0x203a),(0x1e7+5696-0x172b),(0xcd4+2036-0x13e8)};int Bytes2String(
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x18e7+2805-0x237c),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0xabc+2540-0x144d),(0x247+7752-0x2081),
+(0xc9a+2137-0x14d7),(0xbcb+867-0xf25),NON_GSM,(0xea+5934-0x17f9),NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x8b4+5015-0x1bee),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,(0x239+2981-0xd82),NON_GSM,(0x138b+3024-0x1f50),NON_GSM,NON_GSM,
+NON_GSM,(0x16e6+2936-0x2200),NON_GSM,NON_GSM,(0xf78+388-0x10de),
+(0xcaa+6675-0x263e),NON_GSM,NON_GSM,NON_GSM,(0x2a1+9057-0x2587),
+(0x2232+992-0x2603),(0x238+3213-0xea8),NON_GSM,(0xdf2+2953-0x1977),
+(0xf3b+479-0x1115),NON_GSM,NON_GSM,(0x2d9+97-0x333),NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x1344+4780-0x2573),(0x28c+9-0x28d),NON_GSM,NON_GSM,NON_GSM,
+(0xd41+342-0xe1b),NON_GSM,(0x237+884-0x59f),(0x25b+5131-0x1660),NON_GSM,NON_GSM,
+(0x59f+683-0x7cc),NON_GSM,NON_GSM,NON_GSM};const unsigned short
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={(0x34f+7785-0x2178),(0x2a6+310-0x339),
+(0x175b+1785-0x1e30),(0x10f+5226-0x14d4),(0x1c7c+2816-0x2692),
+(0x158a+2233-0x1d5a),(0x2339+529-0x2450),(0x961+2935-0x13eb),(0xa39+7210-0x2570)
+,(0x1d7d+1531-0x2291),(0xf99+2162-0x1801),(0x70f+2707-0x10ce),
+(0x1375+4311-0x2358),(0xb6d+5862-0x2246),(0xe6b+5101-0x2197),(0xd21+1581-0x126d)
+,(0x4d0+8528-0x228c),(0x1710+4006-0x2657),(0x53b+2646-0xee7),(0x49d+6946-0x1ef8)
+,(0x1c50+2194-0x2422),(0x2227+3266-0xccb),(0x1b3f+1762-0x21c3),
+(0x24c+7227-0x1e2b),8364,(0x1686+3185-0x2224),(0x1160+2633-0x1b2d),
+(0xf0f+524-0x107b),(0x1b1b+1898-0x21c3),(0x2012+1545-0x2539),(0xa05+4999-0x1cc2)
+,(0x4fc+6432-0x1d53),(0x1b10+2483-0x24a3),(0x1c17+618-0x1e60),(0x7ff+1014-0xbd3)
+,(0x17a0+614-0x19e3),(0xbc4+6801-0x25a5),(0x337+7886-0x21e0),(0xf98+4496-0x2102)
+,(0x1198+110-0x11df),(0x1b0+4881-0x1499),(0x1297+1826-0x1990),
+(0x12f5+830-0x1609),(0x1746+3231-0x23ba),(0x3a+3135-0xc4d),(0x2b9+6248-0x1af4),
+(0x7d3+2533-0x118a),(0xe7d+1184-0x12ee),(0x885+6160-0x2065),(0xf19+5894-0x25ee),
+(0x32f+4585-0x14e6),(0x5c+732-0x305),(0x874+3917-0x178d),(0x8da+722-0xb77),
+(0x12db+4203-0x2310),(0xaff+4860-0x1dc4),(0x160+4415-0x1267),
+(0x1ab9+3055-0x266f),(0x165a+3032-0x21f8),(0x1ab1+118-0x1aec),
+(0x1f87+1081-0x2384),(0x170c+2983-0x2276),(0x64c+6656-0x200e),(0xd09+407-0xe61),
+(0x1041+4014-0x1f22),(0xb62+5683-0x2154),(0x1940+2286-0x21ec),
+(0x58b+4451-0x16ab),(0x1d6+5403-0x16ad),(0x1e2+2091-0x9c8),(0x1b9b+2446-0x24e3),
+(0x1e7f+1923-0x25bb),(0x8ac+4564-0x1a38),(0x9dc+5821-0x2050),(0x200+5036-0x1562)
+,(0x2c1+7679-0x2075),(0x1c83+2610-0x2669),(0x2300+321-0x23f4),
+(0x115c+556-0x133a),(0xe7a+6262-0x26a1),(0xb33+661-0xd78),(0x1b81+2712-0x25c8),
+(0xa91+3287-0x1716),(0x243+2206-0xa8e),(0x4e5+2364-0xdcd),(0x945+818-0xc22),
+(0x109+5181-0x14f0),(0x1ba7+493-0x1d3d),(0xb23+4973-0x1e38),(0x1574+636-0x1797),
+(0x6fc+3679-0x1501),(0x561+1344-0x9de),(0x5d8+3108-0x1127),(0x21ad+392-0x225b),
+(0x773+2941-0x1214),(0x46c+829-0x702),(0x1f4c+742-0x21b4),(0x17d7+3365-0x249b),
+(0xd05+5873-0x2394),(0x431+4726-0x1644),(0x85f+1311-0xd1a),(0x65a+970-0x9bf),
+(0xfd+9102-0x2425),(0x62d+73-0x60f),(0x12fc+2476-0x1c40),(0xca9+2955-0x17cb),
+(0x1569+2838-0x2015),(0x1d74+1014-0x20ff),(0xae6+3874-0x199c),
+(0x7bb+6742-0x21a4),(0x120+5142-0x14c8),(0x1b40+1635-0x2134),(0x412+6921-0x1eab)
+,(0x1e43+2258-0x26a4),(0xe8a+2921-0x1981),(0x70c+8214-0x26af),
+(0x2477+357-0x2568),(0x521+7478-0x21e2),(0xd72+6060-0x24a8),(0x53b+6828-0x1f70),
+(0xb9+2633-0xa8a),(0xe36+4268-0x1e69),(0xf90+6049-0x26b7),(0xd80+3872-0x1bbd),
+(0xb1b+1744-0x10f6),(0xb08+4277-0x1b5d),(0x1740+2533-0x2029),
+(0x1a05+3014-0x24eb)};const unsigned short zte_sms_GSMDefault_To_UCS2_Table[]={
+(0xa3c+6710-0x2432),(0x67b+8220-0x25f4),(0xa7b+2937-0x15d0),(0x21b4+516-0x2313),
+(0x255f+540-0x2693),(0x1263+5449-0x26c3),(0x1308+3968-0x218f),(0xce2+90-0xc50),
+(0x900+6983-0x2355),(0x1708+3084-0x224d),(0x137+1259-0x618),(0x18f5+320-0x195d),
+(0x22b2+107-0x2225),(0x320+2620-0xd4f),(0x147d+2800-0x1ea8),(0x23b+752-0x446),
+(0x71d+94-0x3e7),(0x1982+3241-0x25cc),(0x22fc+1277-0x2453),(0x15a1+1588-0x1842),
+(0x12a4+3178-0x1b73),(0x2040+2375-0x25de),(0xbdf+5790-0x1edd),(0x78f+932-0x78b),
+(0x1fa1+1708-0x22aa),(0x631+5401-0x17b2),(0x11dc+4559-0x200d),
+(0xb50+6858-0x257a),(0x1e60+1230-0x2268),(0xbfa+4332-0x1c00),(0x5d5+2001-0xcc7),
+(0x1084+2217-0x1864),(0x16e4+2422-0x203a),(0xe7f+6248-0x26c6),(0x516+1395-0xa67)
+,(0x46f+6639-0x1e3b),(0x1f3+3624-0xf77),(0x1f85+1943-0x26f7),(0x1d8+2720-0xc52),
+(0xfa5+3958-0x1ef4),(0x1397+127-0x13ee),(0x180+9143-0x250e),(0xb99+3706-0x19e9),
+(0x6cb+7580-0x243c),(0x78d+4318-0x183f),(0x4b+5479-0x1585),(0x1c6+8994-0x24ba),
+(0x2e5+7815-0x213d),(0x1055+2249-0x18ee),(0xd18+4206-0x1d55),(0x924+435-0xaa5),
+(0xe04+4205-0x1e3e),(0x1086+4132-0x2076),(0x747+7764-0x2566),(0x563+1352-0xa75),
+(0xdbf+952-0x1140),(0x90f+4288-0x1997),(0x141f+4289-0x24a7),(0x399+598-0x5b5),
+(0xab7+3081-0x1685),(0x1772+3013-0x22fb),(0x8fa+5640-0x1ec5),
+(0x1779+3131-0x2376),(0x527+2446-0xe76),(0xdd+5579-0x1607),(0x5f7+782-0x8c4),
+(0x264+2979-0xdc5),(0x30c+8348-0x2365),(0x788+7969-0x2665),(0x14f3+4666-0x26e8),
+(0x58d+4554-0x1711),(0xffb+5151-0x23d3),(0x1639+1852-0x1d2d),(0x9f3+1436-0xf46),
+(0xa49+3432-0x1767),(0x11ff+1370-0x170e),(0x138+2305-0x9ed),(0x1509+3465-0x2245)
+,(0x2b4+8695-0x245d),(0x626+1320-0xaff),(0x695+6462-0x1f83),(0x8e4+7240-0x24db),
+(0x396+4289-0x1405),(0x12a1+4860-0x254a),(0x2b0+500-0x450),(0xf62+4624-0x211d),
+(0xd3f+1170-0x117b),(0x13e7+4944-0x26e0),(0x919+1696-0xf61),(0x8f5+3705-0x1715),
+(0x13a1+3663-0x2196),(0xc69+1408-0x1125),(0x2ab+8015-0x2124),(0x7b9+5902-0x1df6)
+,(0x1b87+2551-0x24a2),(0x1d69+288-0x1de2),(0x26a+4051-0x117e),
+(0xb33+3851-0x19dd),(0x1e29+1776-0x24b7),(0x6b7+1954-0xdf6),(0x9f0+5977-0x20e5),
+(0x104b+1068-0x1412),(0x33d+7012-0x1e3b),(0x67b+6658-0x2016),(0x2290+5-0x222d),
+(0xaa2+1216-0xef9),(0x5fd+1371-0xaee),(0xa49+2862-0x150c),(0x1256+861-0x1547),
+(0x648+3252-0x128f),(0xd0f+5852-0x237d),(0xba2+2134-0x1389),(0x2e9+6334-0x1b37),
+(0xc32+2576-0x15d1),(0xe85+836-0x1157),(0x12bc+2293-0x1b3e),(0x1b07+2892-0x25df)
+,(0xcb+2411-0x9c1),(0x16b4+80-0x168e),(0xc36+6437-0x24e4),(0x1918+2078-0x20be),
+(0x857+5312-0x1c9e),(0x723+3763-0x155c),(0xb13+4598-0x1c25),(0xef9+1514-0x13ed),
+(0x62a+1665-0xbba),(0xe1b+5756-0x239b),(0x801+1656-0xd99)};int Bytes2String(
const unsigned char*pSrc,char*pDst,int nSrcLength){const char tab[]=
-"0123456789ABCDEF";int i=(0x1e26+1124-0x228a);if(pSrc==NULL||pDst==NULL||
-nSrcLength<(0x61b+1231-0xaea)){return-(0x13a3+3998-0x2340);}for(i=
-(0xcab+556-0xed7);i<nSrcLength;i++){*pDst++=tab[*pSrc>>(0x139d+1073-0x17ca)];*
-pDst++=tab[*pSrc&(0x125a+1474-0x180d)];pSrc++;}*pDst='\0';return nSrcLength*
-(0x118+7392-0x1df6);}int String2Bytes(const char*pSrc,unsigned char*pDst,int
-nSrcLength){int i=(0x443+2577-0xe54);if(pSrc==NULL||pDst==NULL||nSrcLength<
-(0x4aa+1087-0x8e9)){return-(0xc1a+1924-0x139d);}for(i=(0x142+7831-0x1fd9);i<
-nSrcLength;i+=(0x103f+1507-0x1620)){if(*pSrc>=((char)(0x1117+4424-0x222f))&&*
-pSrc<=((char)(0x194d+1581-0x1f41))){*pDst=(*pSrc-((char)(0x4d4+1527-0xa9b)))<<
-(0xb78+3852-0x1a80);}else{*pDst=((toupper(*pSrc)-((char)(0xbf8+3455-0x1936)))+
-(0x2a4+7579-0x2035))<<(0x304+7777-0x2161);}pSrc++;if(*pSrc>=
-((char)(0xec4+806-0x11ba))&&*pSrc<=((char)(0x1d7+7613-0x1f5b))){*pDst|=*pSrc-
-((char)(0x1237+664-0x149f));}else{*pDst|=(toupper(*pSrc)-
-((char)(0x131a+3934-0x2237)))+(0x187f+921-0x1c0e);}pSrc++;pDst++;}return
-nSrcLength/(0x631+3160-0x1287);}int EncodeUcs2(const char*pSrc,unsigned char*
-pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x306+1599-0x945)){
-return-(0x1344+4544-0x2503);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);
-return nSrcLength/(0x13b+3290-0xe13);}int Encode7bit(const char*pSrc,unsigned
-char*pDst,int nSrcLength){int nSrc;int nDst;int nChar;unsigned char nLeft=
-(0x37a+6820-0x1e1e);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x2ff+6120-0x1ae7)){
-return-(0x1605+38-0x162a);}nSrc=(0x1e3c+745-0x2125);nDst=(0xacb+5266-0x1f5d);
-while(nSrc<nSrcLength){nChar=nSrc&(0x447+5713-0x1a91);if(nChar==
-(0x1415+2950-0x1f9b)){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>
-(0x2514+437-0x26c8))&&(nSrc==(nSrcLength-(0x1c60+1765-0x2344)))){nDst++;}}else{*
-pDst=(*pSrc<<((0x65b+2163-0xec6)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst++;
-}pSrc++;nSrc++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst,
-UINT8 TP_FCS){SINT32 nLength=(0xcaa+4230-0x1d30);SINT32 nDstLength=
-(0xe6f+3851-0x1d7a);UINT8 buf[(0x8b7+6625-0x2198)]={(0xe28+742-0x110e)};if(NULL
-==pDst){return-(0x18f1+393-0x1a79);}if(TP_FCS!=(0x23e9+495-0x25d8)){buf[
-(0xf25+4772-0x21c9)]=(0x1085+3724-0x1f11);buf[(0xd10+2150-0x1575)]=TP_FCS;buf[
-(0xdf6+995-0x11d7)]=(0x86d+7423-0x256c);nDstLength+=Bytes2String(buf,&pDst[
-nDstLength],(0x16a4+2382-0x1fef));}else{buf[(0x3b+9296-0x248b)]=
-(0x2ad+6177-0x1ace);buf[(0x1be6+1452-0x2191)]=(0xf7b+5999-0x26ea);nDstLength+=
-Bytes2String(buf,&pDst[nDstLength],(0x305+320-0x443));}return nDstLength;}
+"0123456789ABCDEF";int i=(0x1c5d+7-0x1c64);if(pSrc==NULL||pDst==NULL||nSrcLength
+<(0x1061+5512-0x25e9)){return-(0x249+2328-0xb60);}for(i=(0x18f8+1375-0x1e57);i<
+nSrcLength;i++){*pDst++=tab[*pSrc>>(0x1279+1388-0x17e1)];*pDst++=tab[*pSrc&
+(0x1801+3586-0x25f4)];pSrc++;}*pDst='\0';return nSrcLength*(0x1033+4056-0x2009);
+}int String2Bytes(const char*pSrc,unsigned char*pDst,int nSrcLength){int i=
+(0x108a+2496-0x1a4a);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1335+365-0x14a2)){
+return-(0x1c57+1196-0x2102);}for(i=(0xc0c+6612-0x25e0);i<nSrcLength;i+=
+(0x73b+1696-0xdd9)){if(*pSrc>=((char)(0xb24+2550-0x14ea))&&*pSrc<=
+((char)(0x63f+2617-0x103f))){*pDst=(*pSrc-((char)(0x131b+1568-0x190b)))<<
+(0xce6+4269-0x1d8f);}else{*pDst=((toupper(*pSrc)-((char)(0x1cba+2252-0x2545)))+
+(0x138d+1822-0x1aa1))<<(0x14f6+2121-0x1d3b);}pSrc++;if(*pSrc>=
+((char)(0x3cd+2048-0xb9d))&&*pSrc<=((char)(0x1a03+695-0x1c81))){*pDst|=*pSrc-
+((char)(0x71c+2954-0x1276));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x81f+174-0x88c)))+(0x389+3928-0x12d7);}pSrc++;pDst++;}return nSrcLength
+/(0x1305+397-0x1490);}int EncodeUcs2(const char*pSrc,unsigned char*pDst,int
+nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x20bc+1522-0x26ae)){return-
+(0x1848+136-0x18cf);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);return
+nSrcLength/(0x1925+1765-0x2008);}int Encode7bit(const char*pSrc,unsigned char*
+pDst,int nSrcLength){int nSrc;int nDst;int nChar;unsigned char nLeft=
+(0x76c+7596-0x2518);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1431+202-0x14fb)){
+return-(0x10e0+446-0x129d);}nSrc=(0xe1a+4261-0x1ebf);nDst=(0xfb4+2453-0x1949);
+while(nSrc<nSrcLength){nChar=nSrc&(0x27+9210-0x241a);if(nChar==
+(0x1026+1037-0x1433)){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>
+(0x6dd+6067-0x1e8f))&&(nSrc==(nSrcLength-(0xb2a+4193-0x1b8a)))){nDst++;}}else{*
+pDst=(*pSrc<<((0x641+6607-0x2008)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst++
+;}pSrc++;nSrc++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst,
+UINT8 TP_FCS){SINT32 nLength=(0xfb3+1965-0x1760);SINT32 nDstLength=
+(0x1307+758-0x15fd);UINT8 buf[(0x136+4032-0xff6)]={(0x843+7173-0x2448)};if(NULL
+==pDst){return-(0x15ec+3123-0x221e);}if(TP_FCS!=(0x74c+5139-0x1b5f)){buf[
+(0x6cd+2822-0x11d3)]=(0x469+3171-0x10cc);buf[(0x3d9+1125-0x83d)]=TP_FCS;buf[
+(0x4f5+5653-0x1b08)]=(0x88d+2008-0x1065);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0x17b3+3207-0x2437));}else{buf[(0x11f0+1823-0x190f)]=
+(0xecf+5353-0x23b8);buf[(0xdfb+3124-0x1a2e)]=(0x76c+141-0x7f9);nDstLength+=
+Bytes2String(buf,&pDst[nDstLength],(0x74d+4487-0x18d2));}return nDstLength;}
unsigned long zUfiSms_ConvertAsciiToGsmDefault(const unsigned char*inputs,
-unsigned char*outputs,unsigned long len){unsigned long i=(0x553+5905-0x1c64);
-unsigned long j=(0xd01+6345-0x25ca);unsigned long k=(0x54c+3175-0x11b3);if(NULL
-==inputs||NULL==outputs){printf(
+unsigned char*outputs,unsigned long len){unsigned long i=(0x65a+2902-0x11b0);
+unsigned long j=(0xa35+1767-0x111c);unsigned long k=(0x3fa+2115-0xc3d);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(0x514+5751-0x1b8b);}for(i=(0x855+5644-0x1e61);i<len;i++){j=inputs[i];if(
-g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x2050+457-0x211a)){outputs[k]=
+return(0x99c+6129-0x218d);}for(i=(0x3a2+1904-0xb12);i<len;i++){j=inputs[i];if(
+g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x2fd+3007-0xdbd)){outputs[k]=
g_zUfiSms_AsciiToGsmdefaultTable[j];}else{outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0x2606+150-0x2694);k++;outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&(0x13b+481-0x21d));}k++;}return k;}unsigned
+g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0xfbc+813-0x12e1);k++;outputs[k]=(
+g_zUfiSms_AsciiToGsmdefaultTable[j]&(0x347+114-0x2ba));}k++;}return k;}unsigned
long zUfiSms_ConvertUcs2ToSpanish(const unsigned char*def,unsigned char*
-gsm_default,unsigned long len){unsigned long i=(0xd9+3013-0xc9e);unsigned long k
-=(0xd15+1992-0x14dd);unsigned long p=(0x1f8+9188-0x25dc);unsigned long tmp=
-(0x4fa+3618-0x131c);unsigned long s1=(0x115c+2099-0x198f),s2=
-(0x10eb+2200-0x1983);unsigned long q=(0x1c5+1294-0x6d3);s1=sizeof(
+gsm_default,unsigned long len){unsigned long i=(0x1801+3310-0x24ef);unsigned
+long k=(0x566+3962-0x14e0);unsigned long p=(0xbd5+6115-0x23b8);unsigned long tmp
+=(0x1a46+2411-0x23b1);unsigned long s1=(0x1a83+2541-0x2470),s2=
+(0x347+8334-0x23d5);unsigned long q=(0x19ed+3077-0x25f2);s1=sizeof(
zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0x930+2843-0x144b)]);s2=sizeof(
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0x345+882-0x6b7)]);s2=sizeof(
Ucs2_To_Gsm7_SPANISH_Table_UCS)/sizeof(Ucs2_To_Gsm7_SPANISH_Table_UCS[
-(0x1281+795-0x159c)]);for(i=(0x135a+4294-0x2420);i<len;i++){if(def[i]==
-(0x151b+2249-0x1de4)){i++;if(Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]!=NON_GSM){
+(0x147d+3955-0x23f0)]);for(i=(0x9cd+1985-0x118e);i<len;i++){if(def[i]==
+(0x1858+3153-0x24a9)){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]==(0x2071+204-0x211d)))
-{gsm_default[k]=(0x1613+1191-0x1a9a);k++;continue;}for(q=(0xcad+1451-0x1258);q<
-s1;q++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0xf91+5568-0x2550)]
-){gsm_default[k]=(0x9a1+87-0x9dd);k++;gsm_default[k]=
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x4f2+3949-0x145f)];break;}}}else{tmp=
-(def[i]<<(0x2e4+1514-0x8c6))+def[i+(0xca6+2415-0x1614)];i++;if(tmp==
-(0x22aa+3076-0xe02)){gsm_default[k]=(0x94b+4979-0x1ca3);k++;gsm_default[k]=
-(0x229+5830-0x188a);k++;}for(p=(0xd12+4692-0x1f66);p<s2;p++){if(tmp==
-Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0x1185+385-0x1305)]){gsm_default[k]=
-Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0x14ba+1250-0x199c)];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=(0x1a73+2162-0x22e5);unsigned long k=(0x20b+4991-0x158a);unsigned long p=
-(0x14e9+4019-0x249c);unsigned long tmp=(0xda1+3110-0x19c7);unsigned long s1=
-(0x472+751-0x761),s2=(0x112c+4991-0x24ab);unsigned long q=(0x496+2920-0xffe);s1=
-sizeof(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x9c1+6719-0x2400)]);s2=sizeof(
+Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x1ca9+135-0x1d10)))
+{gsm_default[k]=(0x45d+4001-0x13de);k++;continue;}for(q=(0x9b+6316-0x1947);q<s1;
+q++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0xbfc+2129-0x144c)]){
+gsm_default[k]=(0xb6c+534-0xd67);k++;gsm_default[k]=
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x159f+757-0x1894)];break;}}}else{tmp=
+(def[i]<<(0xd27+3667-0x1b72))+def[i+(0x41c+6708-0x1e4f)];i++;if(tmp==
+(0x2146+1219-0x55d)){gsm_default[k]=(0x1073+780-0x1364);k++;gsm_default[k]=
+(0x704+5277-0x1b3c);k++;}for(p=(0x46a+2003-0xc3d);p<s2;p++){if(tmp==
+Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0x9bf+5978-0x2118)]){gsm_default[k]=
+Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0x251+4446-0x13af)];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=
+(0xec7+1058-0x12e9);unsigned long k=(0x4d7+3010-0x1099);unsigned long p=
+(0x18f8+2252-0x21c4);unsigned long tmp=(0x18bd+620-0x1b29);unsigned long s1=
+(0xe5+8040-0x204d),s2=(0xe8d+1395-0x1400);unsigned long q=(0x3d9+5758-0x1a57);s1
+=sizeof(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x719+188-0x7d5)]);s2=sizeof(
Ucs2_To_Gsm7_PORTUGUESE_Table_UCS)/sizeof(Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[
-(0x1c52+897-0x1fd3)]);for(i=(0x207+890-0x581);i<len;i++){if(def[i]==
-(0x5a4+1861-0xce9)){i++;if(Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]!=NON_GSM){
+(0xa41+5938-0x2173)]);for(i=(0x17ec+2402-0x214e);i<len;i++){if(def[i]==
+(0x5b8+5611-0x1ba3)){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]==
-(0x1366+2227-0x1bf9))){gsm_default[k]=(0x1f4+6445-0x1b01);k++;continue;}for(q=
-(0xc23+2654-0x1681);q<s1;q++){if(def[i]==
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x952+5527-0x1ee8)]){gsm_default[k]
-=(0x1c86+2580-0x267f);k++;gsm_default[k]=
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0xf95+5661-0x25b2)];break;}}}else{
-tmp=(def[i]<<(0x2502+129-0x257b))+def[i+(0x24f+7866-0x2108)];i++;if(tmp==
-(0x22e1+5162-0x165f)){gsm_default[k]=(0x17f4+1462-0x1d8f);k++;gsm_default[k]=
-(0x121d+1395-0x172b);k++;continue;}for(p=(0x499+6359-0x1d70);p<s2;p++){if(tmp==
-Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x1183+4325-0x2267)]){gsm_default[k]=
-Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x65d+7140-0x2241)];break;}}}k++;}
+Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x2d1+1967-0xa60)
+)){gsm_default[k]=(0x147+2894-0xc75);k++;continue;}for(q=(0x1ff+8512-0x233f);q<
+s1;q++){if(def[i]==zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x2f6+941-0x6a2)
+]){gsm_default[k]=(0x2d4+7236-0x1efd);k++;gsm_default[k]=
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x6dd+1644-0xd49)];break;}}}else{
+tmp=(def[i]<<(0x77d+6976-0x22b5))+def[i+(0x224f+162-0x22f0)];i++;if(tmp==8364){
+gsm_default[k]=(0x189a+1823-0x1f9e);k++;gsm_default[k]=(0x122b+4736-0x2446);k++;
+continue;}for(p=(0x8bf+3255-0x1576);p<s2;p++){if(tmp==
+Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x7b1+5465-0x1d09)]){gsm_default[k]=
+Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0xa25+1437-0xfc2)];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=(0x686+938-0xa30);unsigned long k=(0x1cd7+1637-0x233c);unsigned long p=
-(0x144+1550-0x752);unsigned long tmp=(0xfcf+3520-0x1d8f);unsigned long s1=
-(0x246+378-0x3c0),s2=(0x214+8160-0x21f4);unsigned long q=(0x96d+482-0xb4f);s1=
-sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[(0xaa4+5394-0x1fb6)]);s2=sizeof(
+long i=(0x127b+2714-0x1d15);unsigned long k=(0x11cc+1268-0x16c0);unsigned long p
+=(0x20dd+1279-0x25dc);unsigned long tmp=(0x12a0+1791-0x199f);unsigned long s1=
+(0xe95+5643-0x24a0),s2=(0x1085+1823-0x17a4);unsigned long q=(0x563+7772-0x23bf);
+s1=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x18a3+3164-0x24ff)]);s2=sizeof(
UCS2_To_GSMDefault_Table_UCS2)/sizeof(UCS2_To_GSMDefault_Table_UCS2[
-(0x7f2+6602-0x21bc)]);for(i=(0xbcc+4123-0x1be7);i<len;i++){if(def[i]==
-(0x1897+855-0x1bee)){i++;if(UCS2_To_GSMDefault_Table_ASC[def[i]]!=NON_GSM){
+(0xcb8+985-0x1091)]);for(i=(0x4b9+947-0x86c);i<len;i++){if(def[i]==
+(0x1e72+1525-0x2467)){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]==(0x96b+3474-0x16dd))){
-gsm_default[k]=(0x399+8970-0x2683);k++;continue;}for(q=(0x100f+4922-0x2349);q<s1
-;q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x188f+2603-0x22b9)]){
-gsm_default[k]=(0x69b+1670-0xd06);k++;gsm_default[k]=
-zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x19e5+1130-0x1e4f)];break;}}}else{tmp=(
-def[i]<<(0x915+785-0xc1e))+def[i+(0xd4d+208-0xe1c)];i++;if(tmp==8364){
-gsm_default[k]=(0x354+1796-0xa3d);k++;gsm_default[k]=(0x689+1077-0xa59);k++;
-continue;}for(p=(0x102d+766-0x132b);p<s2;p++){if(tmp==
-UCS2_To_GSMDefault_Table_UCS2[p][(0x94b+2310-0x1250)]){gsm_default[k]=
-UCS2_To_GSMDefault_Table_UCS2[p][(0xc5c+871-0xfc3)];break;}}}k++;}gsm_default[k]
-='\0';return k;}UINT8 zUfiSms_TsIntToBcd(const UINT8 i){return(UINT8)(((i%
-(0x148c+2090-0x1cac))+((i/(0xbaa+6576-0x2550))<<(0x1e9+5088-0x15c5))));}void
+UCS2_To_GSMDefault_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x8f+4956-0x13cb))){
+gsm_default[k]=(0x1aa1+2279-0x2368);k++;continue;}for(q=(0x179+1039-0x588);q<s1;
+q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x1b2+8320-0x2231)]){
+gsm_default[k]=(0x3b8+5545-0x1946);k++;gsm_default[k]=
+zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x1b01+2060-0x230d)];break;}}}else{tmp=(
+def[i]<<(0x638+4123-0x164b))+def[i+(0x718+5289-0x1bc0)];i++;if(tmp==8364){
+gsm_default[k]=(0xad4+6871-0x2590);k++;gsm_default[k]=(0x866+5972-0x1f55);k++;
+continue;}for(p=(0x80b+2577-0x121c);p<s2;p++){if(tmp==
+UCS2_To_GSMDefault_Table_UCS2[p][(0x1052+697-0x130a)]){gsm_default[k]=
+UCS2_To_GSMDefault_Table_UCS2[p][(0x9d+6403-0x19a0)];break;}}}k++;}gsm_default[k
+]='\0';return k;}UINT8 zUfiSms_TsIntToBcd(const UINT8 i){return(UINT8)(((i%
+(0x603+411-0x794))+((i/(0x128+6427-0x1a39))<<(0x433+5844-0x1b03))));}void
zUfiSms_DecodeRelativeTime(UINT8 iValidTime,T_zUfiSms_TimeStamp*ptTimeStamp){
-uint32 i=(0x1685+1100-0x1ad1);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
-(0x1a16+200-0x1ade),sizeof(wms_timestamp_s_type));if(iValidTime<
-(0x59c+670-0x7aa)){i=(iValidTime+(0x70a+3385-0x1442))*(0xc2a+4878-0x1f33);
-ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0x1bbc+678-0x1e26)));
-ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0x4f9+3574-0x12b3)));}
-else if(iValidTime<(0x134f+1709-0x1955)){i=(iValidTime-(0x9aa+944-0xccb))*
-(0x39f+3561-0x116a);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
-(0xf68+755-0x124f)+i/(0x3bf+6240-0x1be3)));ptTimeStamp->minute=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0x1490+4295-0x251b)));}else if(iValidTime<
-(0x295+2682-0xc4a)){i=iValidTime-(0xf0c+2262-0x173c);ptTimeStamp->month=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i/(0x21c+8581-0x2383)));ptTimeStamp->day=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0xbad+6668-0x259b)));}else{i=(iValidTime-
-(0x792+3671-0x1529))*(0x1203+1063-0x1623);ptTimeStamp->year=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i/(0x1cfb+514-0x1d90)));ptTimeStamp->month=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)((i%(0x136b+1406-0x177c))/(0x1e0+7341-0x1e6f)));
-ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0xdf8+4348-0x1d87))%
-(0x1126+3120-0x1d38)));}}else{printf(
+uint32 i=(0xba1+278-0xcb7);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
+(0x70d+106-0x777),sizeof(wms_timestamp_s_type));if(iValidTime<
+(0xbe6+5983-0x22b5)){i=(iValidTime+(0x313+8518-0x2458))*(0x220+3689-0x1084);
+ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0x7b2+916-0xb0a)));
+ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0x1592+2917-0x20bb)));}
+else if(iValidTime<(0xb95+2527-0x14cd)){i=(iValidTime-(0x1747+3272-0x2380))*
+(0x9b8+1668-0x101e);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
+(0x1661+1903-0x1dc4)+i/(0x1c24+1157-0x206d)));ptTimeStamp->minute=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0x6e3+3468-0x1433)));}else if(iValidTime<
+(0x104+1115-0x49a)){i=iValidTime-(0x1863+2459-0x2158);ptTimeStamp->month=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i/(0x34+8097-0x1fb7)));ptTimeStamp->day=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0x15e0+1029-0x19c7)));}else{i=(iValidTime-
+(0xd20+243-0xd53))*(0x37b+6379-0x1c5f);ptTimeStamp->year=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i/(0xb3f+1630-0x1030)));ptTimeStamp->month=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)((i%(0xde7+656-0xf0a))/(0x1a98+396-0x1c06)));
+ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0x77c+6989-0x215c))%
+(0x1295+2392-0x1bcf)));}}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=(0x179d+745-0x1a86);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}
-for(i=(0x1660+1941-0x1df5);i<iLen;i++){pIntArray[i]=pCharArray[i]-
-((char)(0xf41+4032-0x1ed1));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
+i=(0x1b86+931-0x1f29);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}
+for(i=(0x9dd+4561-0x1bae);i<iLen;i++){pIntArray[i]=pCharArray[i]-
+((char)(0x4f3+3609-0x12dc));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
T_zUfiSms_SubmitTpdu*ptSubmit,T_zUfiSms_ConcatInfo*ptConcatSms,
-T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0x7f3+877-0xb60);if(ptConcatSms->
-total_msg>(0x1ea1+1576-0x24c8)){g_zUfiSms_SendingSms.TP_UDHI=(0x924+6763-0x238e)
-;g_zUfiSms_SendingSms.TP_UD[(0x398+2162-0xc0a)]=(0x72a+820-0xa59);
-g_zUfiSms_SendingSms.TP_UD[(0x1d0a+1170-0x219b)]=(0x2ef+2767-0xdb9);
-g_zUfiSms_SendingSms.TP_UD[(0x13bb+4751-0x2648)]=(0x1314+4711-0x2578);
-g_zUfiSms_SendingSms.TP_UD[(0x3a2+8593-0x2530)]=(char)ptDbSaveData->concat_info[
-(0x1759+1072-0x1b89)]%(0x87b+1592-0xdb4);g_zUfiSms_SendingSms.TP_UD[
-(0xb49+4687-0x1d94)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
-(0x892+7278-0x24fb)]=(char)ptConcatSms->current_sending+(0x1ee8+1338-0x2421);
-g_zUfiSms_SendingSms.TP_UD[(0xa46+6554-0x23da)]=(0x6ad+7582-0x2445);for(i=
-(0x8e4+435-0xa97);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD[i
-+(0x14e2+4193-0x253c)]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.
-TP_UDLength=ptSubmit->user_data.sm_len+(0xc6f+6673-0x2679);}else{for(i=
-(0xbe4+1480-0x11ac);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>(0x366+1024-0x765)){g_zUfiSms_SendingSms.TP_UDHI=
-(0xfb3+3073-0x1bb3);g_zUfiSms_SendingSms.TP_UD[(0x7c+6919-0x1b83)]=
-(0xf35+3643-0x1d6b);g_zUfiSms_SendingSms.TP_UD[(0xb7c+1353-0x10c4)]=
-(0x1368+2251-0x1c2e);g_zUfiSms_SendingSms.TP_UD[(0x583+5061-0x1946)]=
-(0x1d92+687-0x203e);g_zUfiSms_SendingSms.TP_UD[(0x4b5+321-0x5f3)]=(char)
-ptDbSaveData->concat_info[(0x1669+2191-0x1ef8)]%(0x12f3+2277-0x1ad9);
-g_zUfiSms_SendingSms.TP_UD[(0x671+4958-0x19cb)]=(char)ptConcatSms->total_msg;
-g_zUfiSms_SendingSms.TP_UD[(0xe09+3785-0x1ccd)]=(char)ptConcatSms->
-current_sending+(0xf1c+2487-0x18d2);(void)Bytes2String(ptSubmit->user_data.
-sm_data,&g_zUfiSms_SendingSms.TP_UD[(0x1c4+5677-0x17eb)],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)(0x248+6899-0x1cda))&&x<
-((char)(0xc8d+5084-0x2002))){x=(x-((char)(0x1074+2352-0x1943)))+
-((char)(0x1c0+2484-0xb33));}return x;}unsigned char zUfiSms_Char2Dec(unsigned
-char x){unsigned char d=(0x7e3+787-0xaf6);if(x>=((char)(0x1a6a+1864-0x2171))&&x<
-((char)(0x993+4374-0x1a62))){d=(x-((char)(0xe7d+6230-0x2692)))+
-(0x2258+128-0x22ce);}else{d=x-((char)(0x714+4360-0x17ec));}return d;}unsigned
-char zUfiSms_Char2Byte(unsigned char a,unsigned char b){unsigned char data=
-(0x985+4315-0x1a60);unsigned char l=(0xc5a+6592-0x261a),h=(0x76a+1361-0xcbb);a=
-zUfiSms_Low2High(a);b=zUfiSms_Low2High(b);h=zUfiSms_Char2Dec(a);l=
-zUfiSms_Char2Dec(b);data=h*(0x1985+2476-0x2321)+l;return data;}void
-zUfiSms_Str2Bytes(unsigned char*text,int text_len,unsigned char*data,int
-data_len){int i=(0x338+8623-0x24e7);while((0x986+1148-0xe00)*i+
-(0x1b9b+688-0x1e4a)<text_len){data[i]=zUfiSms_Char2Byte(text[
-(0x130d+2813-0x1e08)*i],text[(0x534+6083-0x1cf5)*i+(0x5d7+40-0x5fe)]);i++;}}int
-zUfiSms_SplitString(char*input,char***output,char cMatchChar){int src=
-(0x20bd+1095-0x2504);int dst=(0x6dd+2444-0x1069);int count=(0x1ae8+1700-0x218c);
-int size=(0x1092+3406-0x1dd8);char quoted=(0xf2a+4518-0x20d0);char**tmpout=NULL;
-*output=(char**)malloc(sizeof(char*)*size);if(NULL==*output){return-
-(0xc7d+4759-0x1f13);}(*output)[count++]=input;for(src=dst=(0x346+802-0x668);
+T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0x405+122-0x47f);if(ptConcatSms->
+total_msg>(0x1e09+1236-0x22dc)){g_zUfiSms_SendingSms.TP_UDHI=
+(0x10ca+2306-0x19cb);g_zUfiSms_SendingSms.TP_UD[(0x7e0+4032-0x17a0)]=
+(0x696+3451-0x140c);g_zUfiSms_SendingSms.TP_UD[(0xb98+2312-0x149f)]=
+(0xdf1+6179-0x260f);g_zUfiSms_SendingSms.TP_UD[(0x1032+2968-0x1bc8)]=
+(0xca+3623-0xeee);g_zUfiSms_SendingSms.TP_UD[(0x1044+3384-0x1d79)]=(char)
+ptDbSaveData->concat_info[(0x1a80+2098-0x22b2)]%(0x3c5+21-0x2db);
+g_zUfiSms_SendingSms.TP_UD[(0xe4c+4164-0x1e8c)]=(char)ptConcatSms->total_msg;
+g_zUfiSms_SendingSms.TP_UD[(0x171c+2774-0x21ed)]=(char)ptConcatSms->
+current_sending+(0x6ad+3803-0x1587);g_zUfiSms_SendingSms.TP_UD[
+(0x1f65+1299-0x2472)]=(0x1589+1495-0x1b5a);for(i=(0x80b+418-0x9ad);i<ptSubmit->
+user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD[i+(0x1237+1033-0x1639)]=
+ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.TP_UDLength=ptSubmit->
+user_data.sm_len+(0x1f43+1242-0x2416);}else{for(i=(0x22e7+637-0x2564);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>
+(0x1220+33-0x1240)){g_zUfiSms_SendingSms.TP_UDHI=(0xed4+2087-0x16fa);
+g_zUfiSms_SendingSms.TP_UD[(0xa43+2063-0x1252)]=(0x240+9308-0x2697);
+g_zUfiSms_SendingSms.TP_UD[(0xd0c+38-0xd31)]=(0xe6a+4746-0x20ef);
+g_zUfiSms_SendingSms.TP_UD[(0x5ea+7182-0x21f6)]=(0x16d4+666-0x196b);
+g_zUfiSms_SendingSms.TP_UD[(0x134b+1241-0x1821)]=(char)ptDbSaveData->concat_info
+[(0x11cd+3851-0x20d8)]%(0x1e2+1792-0x7e3);g_zUfiSms_SendingSms.TP_UD[
+(0x63a+2800-0x1126)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
+(0x115d+118-0x11ce)]=(char)ptConcatSms->current_sending+(0x728+7301-0x23ac);(
+void)Bytes2String(ptSubmit->user_data.sm_data,&g_zUfiSms_SendingSms.TP_UD[
+(0x192b+266-0x1a2f)],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)(0x11b7+905-0x14df))&&x<((char)(0x1500+2371-0x1ddc))){x=(x-
+((char)(0x1229+297-0x12f1)))+((char)(0x1d96+1370-0x22af));}return x;}unsigned
+char zUfiSms_Char2Dec(unsigned char x){unsigned char d=(0x415+3066-0x100f);if(x
+>=((char)(0x13ed+1985-0x1b6d))&&x<((char)(0x109+1466-0x67c))){d=(x-
+((char)(0x382+4856-0x1639)))+(0xc78+4321-0x1d4f);}else{d=x-
+((char)(0xc5c+2454-0x15c2));}return d;}unsigned char zUfiSms_Char2Byte(unsigned
+char a,unsigned char b){unsigned char data=(0xdb7+1424-0x1347);unsigned char l=
+(0x24ac+101-0x2511),h=(0x866+5455-0x1db5);a=zUfiSms_Low2High(a);b=
+zUfiSms_Low2High(b);h=zUfiSms_Char2Dec(a);l=zUfiSms_Char2Dec(b);data=h*
+(0x1ff+4344-0x12e7)+l;return data;}void zUfiSms_Str2Bytes(unsigned char*text,int
+ text_len,unsigned char*data,int data_len){int i=(0xfbd+2980-0x1b61);while(
+(0x67f+4623-0x188c)*i+(0x1b17+2156-0x2382)<text_len){data[i]=zUfiSms_Char2Byte(
+text[(0x230+3393-0xf6f)*i],text[(0x31+3675-0xe8a)*i+(0x16bd+48-0x16ec)]);i++;}}
+int zUfiSms_SplitString(char*input,char***output,char cMatchChar){int src=
+(0x3fd+8817-0x266e);int dst=(0x4a2+3339-0x11ad);int count=(0x70d+1700-0xdb1);int
+ size=(0x19e5+1185-0x1e7e);char quoted=(0xf79+2994-0x1b2b);char**tmpout=NULL;*
+output=(char**)malloc(sizeof(char*)*size);if(NULL==*output){return-
+(0xc20+6659-0x2622);}(*output)[count++]=input;for(src=dst=(0x20f+542-0x42d);
input[src];){char cInputChar=input[src];if(!quoted&&cInputChar==cMatchChar){
-input[dst++]=(0x371+4480-0x14f1);while(input[++src]&&(int)isspace(input[src])){}
-;if(count>=size){size+=(0x75a+7470-0x2478);tmpout=(char**)realloc(*output,sizeof
-(char*)*size);if(NULL==tmpout){return-(0x412+7745-0x2252);}*output=tmpout;}(*
+input[dst++]=(0x741+1886-0xe9f);while(input[++src]&&(int)isspace(input[src])){};
+if(count>=size){size+=(0x2336+340-0x247a);tmpout=(char**)realloc(*output,sizeof(
+char*)*size);if(NULL==tmpout){return-(0x2512+205-0x25de);}*output=tmpout;}(*
output)[count++]=input+dst;}else if(!quoted&&(cInputChar=='\''||cInputChar==
-((char)(0x1bbc+232-0x1c82)))){quoted=cInputChar;src++;}else if(cInputChar==
-quoted){quoted=(0x1e71+555-0x209c);src++;}else{if(cInputChar=='\\'&"ed!='\''
+((char)(0x851+6147-0x2032)))){quoted=cInputChar;src++;}else if(cInputChar==
+quoted){quoted=(0xc4a+4048-0x1c1a);src++;}else{if(cInputChar=='\\'&"ed!='\''
){src++;cInputChar=input[src];if(!cInputChar){free(*output);*output=NULL;return-
-(0x24a+9217-0x264a);}}input[dst++]=cInputChar;src++;}}input[dst]=
-(0x1de5+2141-0x2642);if(quoted){free(*output);*output=NULL;return-
-(0xc36+1790-0x1333);}return count;}int zUfiSms_atohex(char c){int result=
-(0x23b+5603-0x181e);if(c>=((char)(0x485+2738-0xf07))&&c<=
-((char)(0x4cb+3985-0x1423))){result=c-((char)(0x584+7524-0x22b8));}else if(c>=
-((char)(0x1773+1789-0x1e0f))&&c<=((char)(0xd7b+1664-0x1395))){result=(c-
-((char)(0xf34+2287-0x17c2)))+(0x827+4579-0x1a00);}else if(c>=
-((char)(0xf55+2541-0x1901))&&c<=((char)(0xab3+238-0xb5b))){result=(c-
-((char)(0x183+5108-0x1536)))+(0xa8+3830-0xf94);}else{at_print(LOG_DEBUG,
+(0x7a3+6831-0x2251);}}input[dst++]=cInputChar;src++;}}input[dst]=
+(0x76d+2074-0xf87);if(quoted){free(*output);*output=NULL;return-
+(0x20f7+6-0x20fc);}return count;}int zUfiSms_atohex(char c){int result=
+(0x7c1+3647-0x1600);if(c>=((char)(0x1d71+1056-0x2161))&&c<=
+((char)(0x604+4285-0x1688))){result=c-((char)(0xa52+2614-0x1458));}else if(c>=
+((char)(0xef+2455-0xa25))&&c<=((char)(0xe3f+4639-0x1ff8))){result=(c-
+((char)(0x160+8657-0x22d0)))+(0x1c83+2702-0x2707);}else if(c>=
+((char)(0x55d+2718-0xfba))&&c<=((char)(0xfd8+449-0x1153))){result=(c-
+((char)(0x1a49+682-0x1cb2)))+(0x1ff9+1062-0x2415);}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=(0x785+6760-0x21ed);int high=
-(0x1364+2502-0x1d2a);if(in_ptr==NULL||out_ptr==NULL){printf(
+int iLength,unsigned char*out_ptr){int low=(0x1435+3126-0x206b);int high=
+(0x13d9+4006-0x237f);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>(0x1000+1198-0x14ae)){low=in_ptr[iLength-
-(0x351+633-0x5c9)]&(0x1a9d+1695-0x212d);high=(in_ptr[iLength-
-(0x14e0+4415-0x261e)]&(0x14d0+4665-0x2619))>>(0x3eb+7154-0x1fd9);out_ptr[
-(0x689+4186-0x16e1)*iLength-(0x167c+3559-0x2462)]=g_zUfiSms_DigAscMap[low];
-out_ptr[(0x1dd0+2067-0x25e1)*iLength-(0x152f+2596-0x1f51)]=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=(0x1b43+1267-0x2036);unsigned int j=
-(0xb15+796-0xe31);unsigned int k=(0x5f0+2252-0xebc);unsigned int p=
-(0x11f7+2965-0x1d8c);unsigned int s=(0x185f+100-0x18c3);s=sizeof(
+);return ZUFI_FAIL;}while(iLength>(0x1d+3328-0xd1d)){low=in_ptr[iLength-
+(0x1f67+257-0x2067)]&(0xb6+5762-0x1729);high=(in_ptr[iLength-(0x2ea+8690-0x24db)
+]&(0x93a+4982-0x1bc0))>>(0x8aa+4557-0x1a73);out_ptr[(0x853+4477-0x19ce)*iLength-
+(0xf6+2749-0xbb2)]=g_zUfiSms_DigAscMap[low];out_ptr[(0x6b6+3255-0x136b)*iLength-
+(0x1337+3955-0x22a8)]=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=(0x977+3104-0x1597);unsigned
+ int j=(0xec2+5539-0x2465);unsigned int k=(0x191+1352-0x6d9);unsigned int p=
+(0x1e06+2158-0x2674);unsigned int s=(0x8a4+4784-0x1b54);s=sizeof(
zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x66+8045-0x1fd3)]);for(i=
-(0xe2d+2743-0x18e4);i<len;i++){j=gsmdef[i];if(j==(0x12fc+480-0x14c1)){i++;for(p=
-(0x142f+76-0x147b);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
-(0xa79+7296-0x26f9)]==gsmdef[i]){ucs2[k]=
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x16fb+3813-0x25df)]>>
-(0x202+6071-0x19b1);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x8d6+717-0xba2)]);break;}}}else{
-ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0xe9d+3829-0x1d8a);k++;ucs2[k
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x1ab2+2261-0x2387)]);for(i=
+(0xe63+1088-0x12a3);i<len;i++){j=gsmdef[i];if(j==(0x902+6247-0x214e)){i++;for(p=
+(0x13e5+3954-0x2357);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
+(0x1b58+217-0x1c31)]==gsmdef[i]){ucs2[k]=
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x1f3c+1757-0x2618)]>>
+(0x1c14+655-0x1e9b);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x130+4449-0x1290)]);break;}}}else{
+ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x1021+505-0x1212);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=
-(0xa1c+1608-0x1064);unsigned int j=(0x2bb+4383-0x13da);unsigned int k=
-(0x653+5017-0x19ec);unsigned int p=(0x144f+2082-0x1c71);unsigned int s=
-(0x747+1336-0xc7f);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x113+3699-0xf86)]);for(i=
-(0xef7+4503-0x208e);i<len;i++){j=gsmdef[i];if(j==(0xba7+4404-0x1cc0)){i++;for(p=
-(0x1+2052-0x805);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x1461+2271-0x1d40)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p]
-[(0x3db+198-0x4a0)]>>(0x571+8400-0x2639);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0xb0f+338-0xc60)]);break;}}}else{ucs2[k]
-=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0xb90+5359-0x2077);k++;ucs2[k]=(
+(0x45+8335-0x20d4);unsigned int j=(0xd74+1184-0x1214);unsigned int k=
+(0xa9d+1487-0x106c);unsigned int p=(0x1867+3018-0x2431);unsigned int s=
+(0x224+2564-0xc28);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x8bb+5116-0x1cb7)]);for(i=
+(0x67f+5557-0x1c34);i<len;i++){j=gsmdef[i];if(j==(0x275+5119-0x1659)){i++;for(p=
+(0x14f5+4441-0x264e);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x4da+7219-0x210d)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x80d+1764-0xef0)]>>(0x1324+4024-0x22d4);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0xb9a+5255-0x2020)]);break;}}}else{ucs2[
+k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x11ac+4421-0x22e9);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=(0x11c2+931-0x1565)
-;unsigned long j=(0x940+5305-0x1df9);unsigned long k=(0x957+5489-0x1ec8);
-unsigned long p=(0x12dd+5022-0x267b);unsigned long s=(0xad1+1877-0x1226);
-unsigned long is_find=(0xafb+2101-0x1330);s=sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[
-(0x1fd3+282-0x20ed)]);for(i=(0x77c+7962-0x2696);i<len;i++){j=gsmdef[i];if(j==
-(0xf27+748-0x11f8)){i++;for(p=(0x742+6418-0x2054);p<s;p++){if(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0xb70+1067-0xf9b)]==gsmdef[i]){ucs2[k]=
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x10fa+1403-0x1674)]>>
-(0x31c+3649-0x1155);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x1913+1218-0x1dd4)]);is_find=
-(0x19a2+1974-0x2157);break;}}if(!is_find){at_print(LOG_DEBUG,
+gsmdef,unsigned char*ucs2,unsigned long len){unsigned long i=(0x804+5442-0x1d46)
+;unsigned long j=(0xf4+2572-0xb00);unsigned long k=(0xf1f+4026-0x1ed9);unsigned
+long p=(0x3b3+7187-0x1fc6);unsigned long s=(0xbf3+2678-0x1669);unsigned long
+is_find=(0x16d7+2094-0x1f05);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/
+sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x231+6469-0x1b76)]);for(i=
+(0x397+6185-0x1bc0);i<len;i++){j=gsmdef[i];if(j==(0xf11+4540-0x20b2)){i++;for(p=
+(0xd27+2256-0x15f7);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0xac2+17-0xad3)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x61d+402-0x7ae)]>>(0x27+2919-0xb86);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x1670+4189-0x26cc)]);is_find=
+(0x6e4+7721-0x250c);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]>>
-(0x15cc+1836-0x1cf0);k++;ucs2[k]=(unsigned char)(
+(0x179c+1835-0x1ebf);k++;ucs2[k]=(unsigned char)(
zte_sms_GSMDefault_To_UCS2_Table[j]);}}else{ucs2[k]=
-zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x1163+4209-0x21cc);k++;ucs2[k]=(unsigned
+zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x1bf1+1943-0x2380);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[(0x1d9b+1887-0x24f8)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
-(0x1cfc+1682-0x238d)]={(0x360+2368-0xca0)};UINT16 len=(0x14b9+2220-0x1d65);
-switch(g_zUfiSms_Language){case DCS_PORTUGUESE:if(g_zUfiSms_IsLanguageShift==
+ascii_content[(0xe64+6012-0x25de)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
+(0x92a+961-0xcea)]={(0xd06+5756-0x2382)};UINT16 len=(0xdbd+5945-0x24f6);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
@@ -672,47 +670,47 @@
sms_len);break;}(void)zUfiSms_DispatchWtoi((char*)ascii_content,len,(char*)
out_content);}boolean zUfiSms_DecodeContent(char*msg_content,UINT16 sms_len,
boolean isEsc,char*out_content){boolean endEsc=FALSE;char*p=NULL;static char
-data[(0x1457+296-0x157e)+(0x1ec+6524-0x1ac8)+(0x5c5+761-0x8bd)]={
-(0x34c+5812-0x1a00)};int len=(0xc0+7095-0x1c77);if(msg_content==NULL||
-out_content==NULL||sms_len>(0x95a+4206-0x1888)||sms_len<(0x1099+1758-0x1775)){
-return endEsc;}len=sms_len;memset(data,(0x189a+421-0x1a3f),(0x17fd+556-0x1987));
-p=data;if(isEsc){*p=(0x13bb+994-0x1782);p++;}zUfiSms_Str2Bytes((unsigned char*)
-msg_content,len,(unsigned char*)p,(0x1888+2605-0x2215));if(p[len/
-(0xcda+3509-0x1a8d)-(0x51d+5101-0x1909)]==(0x616+8211-0x260e)){endEsc=TRUE;}
-zUfiSms_ConvertUcs2(data,len/(0xa4d+7142-0x2631)+(isEsc?(0x1cc+5486-0x1739):
-(0x24a+2438-0xbd0))-(endEsc?(0xb3b+5120-0x1f3a):(0x132c+4902-0x2652)),
+data[(0xf+9563-0x2569)+(0x208+8043-0x20d3)+(0x47f+943-0x82d)]={
+(0xdab+5310-0x2269)};int len=(0x1626+188-0x16e2);if(msg_content==NULL||
+out_content==NULL||sms_len>(0x670+3999-0x14cf)||sms_len<(0xbf6+1070-0x1022)){
+return endEsc;}len=sms_len;memset(data,(0xa2d+337-0xb7e),(0x1c0c+311-0x1ca1));p=
+data;if(isEsc){*p=(0x380+7214-0x1f93);p++;}zUfiSms_Str2Bytes((unsigned char*)
+msg_content,len,(unsigned char*)p,(0x15e9+766-0x1847));if(p[len/
+(0x1478+664-0x170e)-(0x4e1+2399-0xe3f)]==(0x61+1-0x47)){endEsc=TRUE;}
+zUfiSms_ConvertUcs2(data,len/(0x35b+5542-0x18ff)+(isEsc?(0x3bc+4800-0x167b):
+(0x1376+4723-0x25e9))-(endEsc?(0x9cd+1204-0xe80):(0x169c+3608-0x24b4)),
out_content);return endEsc;}byte*zUfiSms_SmsiUtilitoa(uint32 v,byte*s,UINT16 r){
-byte buf[(0x905+7502-0x2632)],c;int n;n=sizeof(buf)-(0xbe5+246-0xcda);buf[n]=
-'\0';do{c=(byte)(v%r);if(n<=(0x4cd+3060-0x10c1)){printf(
+byte buf[(0x11a1+4824-0x2458)],c;int n;n=sizeof(buf)-(0x6d4+1585-0xd04);buf[n]=
+'\0';do{c=(byte)(v%r);if(n<=(0x88b+4895-0x1baa)){printf(
"\x4f\x56\x45\x52\x46\x4c\x4f\x57\x20");break;}buf[--n]=(byte)((c>
-(0xcd5+1825-0x13ed))?c+((char)(0xc82+4081-0x1c32))-(0x764+3127-0x1391):c+
-((char)(0xcf3+5331-0x2196)));}while((v/=r)>(0x1337+3007-0x1ef6));while((*s++=buf
-[n++])!=(0xf05+3878-0x1e2b));return(s-(0x13a1+2024-0x1b88));}byte*
+(0xb1b+6962-0x2644))?c+((char)(0x64+3195-0xc9e))-(0x1e55+605-0x20a8):c+
+((char)(0xd12+376-0xe5a)));}while((v/=r)>(0xf20+3081-0x1b29));while((*s++=buf[n
+++])!=(0x1ed+3081-0xdf6));return(s-(0x8a5+5740-0x1f10));}byte*
zUfiSms_SmsiAddrToStr(wms_address_s_type addr,byte*res_ptr,UINT8*type_of_addr){
-byte bcd_idx=(0x1f78+1868-0x26c4);UINT8 temp=(0x18e1+867-0x1c44);*type_of_addr=
-(0x894+3943-0x17fb);temp=(UINT8)((uint32)addr.number_type&(0x3f6+240-0x4df));*
-type_of_addr=(UINT8)((*type_of_addr|temp)<<(0x7cd+2285-0x10b6));temp=(UINT8)((
-uint32)addr.number_plan&(0x672+6895-0x215a));*type_of_addr=*type_of_addr|temp;*
-type_of_addr=*type_of_addr|(0xe02+5252-0x2206);while(bcd_idx<addr.
-number_of_digits){if(addr.digits[bcd_idx]==(0x3e3+4272-0x1489)){addr.digits[
-bcd_idx]=(0x16fc+3418-0x2456);}res_ptr=zUfiSms_SmsiUtilitoa((uint32)addr.digits[
-bcd_idx],res_ptr,(0x1c9a+1139-0x20fd));bcd_idx++;}return res_ptr;}byte*
+byte bcd_idx=(0x1c40+192-0x1d00);UINT8 temp=(0x613+370-0x785);*type_of_addr=
+(0x121b+727-0x14f2);temp=(UINT8)((uint32)addr.number_type&(0x786+7207-0x23a6));*
+type_of_addr=(UINT8)((*type_of_addr|temp)<<(0x13f+2829-0xc48));temp=(UINT8)((
+uint32)addr.number_plan&(0x1539+2960-0x20c2));*type_of_addr=*type_of_addr|temp;*
+type_of_addr=*type_of_addr|(0x4fc+7741-0x22b9);while(bcd_idx<addr.
+number_of_digits){if(addr.digits[bcd_idx]==(0x6dc+6167-0x1ee9)){addr.digits[
+bcd_idx]=(0xa3a+44-0xa66);}res_ptr=zUfiSms_SmsiUtilitoa((uint32)addr.digits[
+bcd_idx],res_ptr,(0xd8f+5402-0x2299));bcd_idx++;}return res_ptr;}byte*
zUfiSms_SmsiUtilitoaFill(word v,byte*rb_ptr){int n;byte c,*ptr;ptr=rb_ptr+
-(0x622+4291-0x16e3);*ptr='\0';for(n=(0x1623+3211-0x22ae);n<(0x635+3438-0x13a1);
-++n){c=(byte)(v%(0x41+7859-0x1eea));v/=(0x1761+639-0x19d6);*--ptr=(c+
-((char)(0xb64+6312-0x23dc)));}return rb_ptr+(0x75b+6075-0x1f14);}void
-zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<(0x659+7754-0x2499)){
+(0x286+167-0x32b);*ptr='\0';for(n=(0x2379+747-0x2664);n<(0x10cc+2954-0x1c54);++n
+){c=(byte)(v%(0x152d+315-0x165e));v/=(0x150d+3214-0x2191);*--ptr=(c+
+((char)(0xf6f+2170-0x17b9)));}return rb_ptr+(0x94f+2018-0x112f);}void
+zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<(0x1053+2622-0x1a87)){
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=(0xd0a+4531-0x1ebd);concat_8->seq_num--;
+T_zUfiSms_DbStoreData*db_data){int mux=(0x10eb+1964-0x1897);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=(0x1246+4705-0x24a6);db_data->concat_info[(0xf66+534-0x117c)
-]=(0x5e5+4075-0x14d1)*mux+concat_8->msg_ref;db_data->concat_info[
-(0x16a+8468-0x227c)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX+
-(0x1b87+2317-0x2493);db_data->concat_info[(0x5fd+7685-0x2401)]=concat_8->
-total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
-(0x565+7671-0x235b)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(concat_8->total_sm%
+db_data->concat_sms=(0x1370+4347-0x246a);db_data->concat_info[
+(0x1503+4514-0x26a5)]=(0x250+9196-0x253d)*mux+concat_8->msg_ref;db_data->
+concat_info[(0x1fb+2101-0xa2e)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX+
+(0x1a5+729-0x47d);db_data->concat_info[(0xa44+7281-0x26b4)]=concat_8->total_sm-
+ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
+(0x6a4+4789-0x1958)?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=
@@ -721,27 +719,27 @@
user_data_header->u.nat_lang_ss.nat_lang_id){case WMS_UDH_NAT_LANG_PORTUGUESE:
g_zUfiSms_Language=DCS_PORTUGUESE;break;default:break;}}static void
zUfiSms_ParseDeliverConcat16(T_zUfiSms_UdhConcat16*concat_16,
-T_zUfiSms_DbStoreData*db_data){int mux=(0x1e03+2231-0x26ba);concat_16->seq_num--
-;db_data->concat_sms=(0x7c8+7116-0x2393);
-#if (0xe47+538-0x1061)
-db_data->concat_info[(0x2b+2525-0xa08)]=concat_16->msg_ref;db_data->concat_info[
-(0x134a+3156-0x1f9d)]=concat_16->total_sm;db_data->concat_info[
-(0x448+5040-0x17f6)]=concat_16->seq_num;
+T_zUfiSms_DbStoreData*db_data){int mux=(0x3a8+6731-0x1df3);concat_16->seq_num--;
+db_data->concat_sms=(0xa31+6458-0x236a);
+#if (0x9a+2670-0xb08)
+db_data->concat_info[(0xfd9+1127-0x1440)]=concat_16->msg_ref;db_data->
+concat_info[(0x9e5+5934-0x2112)]=concat_16->total_sm;db_data->concat_info[
+(0xe74+772-0x1176)]=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[(0xb9f+5617-0x2190)]=(0x4a9+4369-0x14bb)*mux+concat_16->
-msg_ref;db_data->concat_info[(0x14fc+3954-0x246c)]=concat_16->seq_num%
-ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x3dc+2454-0xd71);db_data->concat_info[
-(0xca3+1411-0x1225)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
-ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0x493+557-0x6bf)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(
+db_data->concat_info[(0xb3a+6699-0x2565)]=(0x1229+5374-0x2628)*mux+concat_16->
+msg_ref;db_data->concat_info[(0x1426+2088-0x1c4c)]=concat_16->seq_num%
+ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xa69+6951-0x258f);db_data->concat_info[
+(0x1ff+6907-0x1cf9)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
+ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0xc70+2286-0x155d)?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=
-(0x1504+1145-0x197c);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8)
-,db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0x18df+703-0x1b9d);
+(0xb64+4596-0x1d57);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8),
+db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0x422+7729-0x2252);
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:
@@ -751,154 +749,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=(0x7a4+5369-0x1c9d);int ind=(0xd1+5344-0x15b1);if((
+WMS_GW_ALPHABET_MAX32;int i=(0x147+6764-0x1bb3);int ind=(0x6a8+8049-0x2619);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,
-(0xeb2+1089-0x12f3),ZTE_WMS_ADDRESS_LEN_MAX+(0x76c+4322-0x184d));db_data->number
-[(0x10e0+2833-0x1bf1)]=((char)(0x141a+1094-0x1835));for(i=(0x15ad+3499-0x2358);i
-<address_ptr->number_of_digits;i++){if((0x16f7+3904-0x262d)==address_ptr->digits
-[i]){db_data->number[i+(0x560+6604-0x1f2b)]=((char)(0x1a6c+1075-0x1e6f));}else{
-db_data->number[i+(0x8cc+4593-0x1abc)]=((char)(0xa6d+6585-0x23f6))+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(
+(0x19b1+374-0x1b27),ZTE_WMS_ADDRESS_LEN_MAX+(0xbe4+4530-0x1d95));db_data->number
+[(0xa82+2589-0x149f)]=((char)(0xce7+3512-0x1a74));for(i=(0x12c6+1745-0x1997);i<
+address_ptr->number_of_digits;i++){if((0x809+1267-0xcf2)==address_ptr->digits[i]
+){db_data->number[i+(0x65b+4567-0x1831)]=((char)(0xad+6665-0x1a86));}else{
+db_data->number[i+(0x1d9c+1045-0x21b0)]=((char)(0x19c2+3115-0x25bd))+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[
-(0x1162+814-0x148f)]),address_ptr->digits,address_ptr->number_of_digits);}else{
-for(i=(0x224+6112-0x1a04);i<address_ptr->number_of_digits;i++){if(
-(0x10d7+1337-0x1606)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0x469+119-0x4b0));}else{db_data->number[i]=((char)(0x1505+3368-0x21fd))+
-address_ptr->digits[i];}}}}(void)zUfiSms_UtilTimeStamp(ts_data_ptr->u.gw_pp.u.
+(0xc93+6402-0x2594)]),address_ptr->digits,address_ptr->number_of_digits);}else{
+for(i=(0x125a+2300-0x1b56);i<address_ptr->number_of_digits;i++){if(
+(0xad+1996-0x86f)==address_ptr->digits[i]){db_data->number[i]=
+((char)(0x6d8+6226-0x1efa));}else{db_data->number[i]=((char)(0x805+6937-0x22ee))
++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=(0x1977+2014-0x2154);
-}else{db_data->tp_udhi=(0xde6+5751-0x245d);}if(db_data->tp_udhi==
-(0x279+3064-0xe70)){for(ind=(0x512+7739-0x234d);ind<ts_data_ptr->u.gw_pp.u.
+gw_pp.u.deliver.user_data_header_present){db_data->tp_udhi=(0x41+4666-0x127a);}
+else{db_data->tp_udhi=(0x10b+3972-0x108f);}if(db_data->tp_udhi==
+(0x102+4904-0x1429)){for(ind=(0xf7c+4806-0x2242);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[(0x745+5558-0x1cfa)]){printf(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0x137d+654-0x160a)]){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[(0x737+917-0xacb)],ZTE_WMS_CONCAT_SMS_COUNT_MAX);if(
+,db_data->concat_info[(0x27+5656-0x163e)],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)
-(0x605+2971-0x119f);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
-unsigned char)(0xc7f+3931-0x1bd8);}else{printf(
+(0xc5c+4187-0x1cb6);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
+unsigned char)(0x4a5+2788-0xf87);}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=(0x1aaa+2907-0x2605);ind<ts_data_ptr->u
-.gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[
-(0x1395+4230-0x2417)*ind]=((char)(0x4bc+4626-0x169e));db_data->sms_content[
-(0x3cc+5586-0x199a)*ind+(0x59f+1462-0xb54)]=((char)(0x3c6+8223-0x23b5));db_data
-->sms_content[(0x1238+502-0x142a)*ind+(0x13b7+2959-0x1f44)]=g_zUfiSms_DigAscMap[
-((ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_data[ind]&(0xf4f+2735-0x190e))>>
-(0x195a+590-0x1ba4))];db_data->sms_content[(0xa45+28-0xa5d)*ind+
-(0x245+7750-0x2088)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.
-user_data.sm_data[ind]&(0x9b3+5905-0x20b5))];db_data->alphabet=
+alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0x7ad+5547-0x1d58);ind<ts_data_ptr->u.
+gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[(0xa2d+7019-0x2594)
+*ind]=((char)(0x16f2+2854-0x21e8));db_data->sms_content[(0x6d6+3168-0x1332)*ind+
+(0x18d9+2917-0x243d)]=((char)(0x367+5449-0x1880));db_data->sms_content[
+(0x1e5f+2112-0x269b)*ind+(0x497+4397-0x15c2)]=g_zUfiSms_DigAscMap[((ts_data_ptr
+->u.gw_pp.u.deliver.user_data.sm_data[ind]&(0x1ca+8690-0x22cc))>>
+(0x1bf6+326-0x1d38))];db_data->sms_content[(0x1189+3631-0x1fb4)*ind+
+(0x1b45+1957-0x22e7)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.
+user_data.sm_data[ind]&(0x9f8+2101-0x121e))];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)(0x4b9+6663-0x1ebe);}return result;}int
+tp_dcs=(unsigned char)(0x4a5+6501-0x1e08);}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=
-(0x184+8556-0x22f0);int ind=(0xd54+6559-0x26f3);if((NULL==ts_data_ptr)||(NULL==
+(0x58f+4250-0x1629);int ind=(0x1fa1+492-0x218d);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[
-(0x1300+4157-0x233d)]=((char)(0x4c0+2991-0x1044));for(i=(0x12db+281-0x13f4);i<
-address_ptr->number_of_digits;i++){if((0x2b9+8699-0x24aa)==address_ptr->digits[i
-]){db_data->number[i+(0x99b+6596-0x235e)]=((char)(0x6cb+2587-0x10b6));}else{
-db_data->number[i+(0x83f+6857-0x2307)]=((char)(0xac8+5189-0x1edd))+address_ptr->
-digits[i];}}}else{for(i=(0x19+704-0x2d9);i<address_ptr->number_of_digits;i++){if
-((0x1f57+1705-0x25f6)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0x492+173-0x50f));}else{db_data->number[i]=((char)(0x1087+3390-0x1d95))+
-address_ptr->digits[i];}}}tp_dcs=ts_data_ptr->u.gw_pp.u.submit.dcs.alphabet;
+(0x1986+1330-0x1eb8)]=((char)(0x2207+713-0x24a5));for(i=(0x1574+3851-0x247f);i<
+address_ptr->number_of_digits;i++){if((0x48b+7470-0x21af)==address_ptr->digits[i
+]){db_data->number[i+(0x354+985-0x72c)]=((char)(0x19f1+1253-0x1ea6));}else{
+db_data->number[i+(0x1d31+729-0x2009)]=((char)(0xadc+192-0xb6c))+address_ptr->
+digits[i];}}}else{for(i=(0x10d3+2739-0x1b86);i<address_ptr->number_of_digits;i++
+){if((0x939+380-0xaab)==address_ptr->digits[i]){db_data->number[i]=
+((char)(0xd33+3344-0x1a13));}else{db_data->number[i]=((char)(0x324+8421-0x23d9))
++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)
-(0x1936+1880-0x208d);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
-unsigned char)(0xb57+3556-0x1939);}else{printf(
+WMS_GW_ALPHABET_8_BIT>=tp_dcs){db_data->tp_dcs=(unsigned char)(0x8c+9350-0x2511)
+;}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(unsigned char)
+(0xaed+1563-0x1106);}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=
-(0xc42+2465-0x15e2);}else{db_data->tp_udhi=(0x99+9538-0x25db);}if(db_data->
-tp_udhi==(0x277+3459-0xff9)){for(ind=(0xdd0+2626-0x1812);ind<ts_data_ptr->u.
+(0x6dd+8224-0x26fc);}else{db_data->tp_udhi=(0x545+7110-0x210b);}if(db_data->
+tp_udhi==(0x158d+1556-0x1ba0)){for(ind=(0x43a+411-0x5d5);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[(0x4eb+4201-0x1553)]){printf(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0x8a+8251-0x20c4)]){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=(0x638+6799-0x20c7);
+gw_pp.u.submit.dcs.alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0xb64+1843-0x1297);
ind<ts_data_ptr->u.gw_pp.u.submit.user_data.sm_len;ind++){db_data->sms_content[
-(0x998+4750-0x1c22)*ind]=((char)(0xc71+236-0xd2d));db_data->sms_content[
-(0xdf0+6259-0x265f)*ind+(0x2ad+7598-0x205a)]=((char)(0x531+4793-0x17ba));db_data
-->sms_content[(0x2d6+1236-0x7a6)*ind+(0x13e2+4223-0x245f)]=g_zUfiSms_DigAscMap[(
-(ts_data_ptr->u.gw_pp.u.submit.user_data.sm_data[ind]&(0x116f+5054-0x243d))>>
-(0x6e3+133-0x764))];db_data->sms_content[(0x109b+4184-0x20ef)*ind+
-(0x1a9+7729-0x1fd7)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.submit.
-user_data.sm_data[ind]&(0x3f3+255-0x4e3))];db_data->alphabet=
+(0x1ab3+1040-0x1ebf)*ind]=((char)(0x10b+1116-0x537));db_data->sms_content[
+(0x796+1033-0xb9b)*ind+(0x254+6161-0x1a64)]=((char)(0xa33+2309-0x1308));db_data
+->sms_content[(0x29b+5994-0x1a01)*ind+(0x1bfd+1328-0x212b)]=g_zUfiSms_DigAscMap[
+((ts_data_ptr->u.gw_pp.u.submit.user_data.sm_data[ind]&(0x15f2+3696-0x2372))>>
+(0x1901+2388-0x2251))];db_data->sms_content[(0x1381+1801-0x1a86)*ind+
+(0xfec+2380-0x1935)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.submit.
+user_data.sm_data[ind]&(0x2108+1150-0x2577))];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)(0x19b2+2900-0x2504);}return result;}int InvertNumbers(
+tp_dcs=(unsigned char)(0x5bd+4197-0x1620);}return result;}int InvertNumbers(
const char*pSrc,char*pDst,int nSrcLength){int nDstLength;char ch;int i=
-(0x92b+7213-0x2558);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x291+3687-0x10f8)){
-return-(0x3f8+5563-0x19b2);}nDstLength=nSrcLength;for(i=(0x33a+8161-0x231b);i<
-nSrcLength;i+=(0x2d+1739-0x6f6)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
-nSrcLength&(0x2e2+8240-0x2311)){*(pDst-(0x630+2653-0x108b))=
-((char)(0x5e1+6760-0x2003));nDstLength++;}*pDst='\0';return nDstLength;}int
+(0xeb2+6155-0x26bd);if(pSrc==NULL||pDst==NULL||nSrcLength<(0xf0c+3517-0x1cc9)){
+return-(0x2e5+4914-0x1616);}nDstLength=nSrcLength;for(i=(0x19ef+903-0x1d76);i<
+nSrcLength;i+=(0xb0+9622-0x2644)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
+nSrcLength&(0x10c9+5423-0x25f7)){*(pDst-(0x1910+2210-0x21b0))=
+((char)(0x1386+689-0x15f1));nDstLength++;}*pDst='\0';return nDstLength;}int
code_is_gsm7(const SMS_PARAM*pSrc,unsigned char buf[],int nLength){if(pSrc->
-TP_UDHI==(0xd54+5268-0x21e7)){buf[(0x1456+2104-0x1c8b)]=(unsigned char)nLength;
-buf[(0x69a+6402-0x1f98)]=(unsigned char)pSrc->TP_UD[(0xd8+185-0x191)];buf[
-(0x1c36+2527-0x2610)]=(0x159+7370-0x1e23);buf[(0x139b+593-0x15e6)]=(unsigned
-char)pSrc->TP_UD[(0xd8c+5713-0x23db)];buf[(0x582+6200-0x1db3)]=(unsigned char)
-pSrc->TP_UD[(0x2c5+7122-0x1e94)];buf[(0x1298+4719-0x24ff)]=(unsigned char)pSrc->
-TP_UD[(0x7ef+5728-0x1e4b)];buf[(0x22d5+1037-0x26d9)]=(unsigned char)pSrc->TP_UD[
-(0x101b+3626-0x1e40)];buf[(0x1022+5092-0x23fc)]=(unsigned char)pSrc->TP_UD[
-(0x295+8182-0x2284)];buf[(0x1591+343-0x16de)]=(unsigned char)(buf[
-(0x1599+4064-0x256f)]<<(0x911+6084-0x20d4));nLength=nLength-(0x599+4934-0x18d8);
-nLength=Encode7bit(&(pSrc->TP_UD[(0x896+6453-0x21c3)]),&buf[(0x255c+2-0x2553)],
-nLength+(0x993+4376-0x1aaa))+(0xa1a+3051-0x1601)+(0x1127+3320-0x1e19);
-#if (0x12c3+3957-0x2238)
-nLength+=(0x2a7+3809-0x1186);
+TP_UDHI==(0x167b+341-0x17cf)){buf[(0x860+2120-0x10a5)]=(unsigned char)nLength;
+buf[(0x18a7+3619-0x26c6)]=(unsigned char)pSrc->TP_UD[(0x1d2b+1344-0x226b)];buf[
+(0x116b+626-0x13d8)]=(0x1235+2806-0x1d2b);buf[(0xfc+2165-0x96b)]=(unsigned char)
+pSrc->TP_UD[(0xb46+4912-0x1e74)];buf[(0x682+4929-0x19bc)]=(unsigned char)pSrc->
+TP_UD[(0x5a5+5291-0x1a4d)];buf[(0x4c3+2474-0xe65)]=(unsigned char)pSrc->TP_UD[
+(0x720+2326-0x1032)];buf[(0x1dc0+1044-0x21cb)]=(unsigned char)pSrc->TP_UD[
+(0x5c8+6676-0x1fd7)];buf[(0x8a5+1739-0xf66)]=(unsigned char)pSrc->TP_UD[
+(0x815+1817-0xf27)];buf[(0x12f6+5139-0x26ff)]=(unsigned char)(buf[
+(0x654+6788-0x20ce)]<<(0x1738+1079-0x1b6e));nLength=nLength-(0x1649+4202-0x26ac)
+;nLength=Encode7bit(&(pSrc->TP_UD[(0x13a6+3737-0x2237)]),&buf[
+(0xba7+5139-0x1faf)],nLength+(0x167f+4210-0x26f0))+(0x825+3278-0x14ef)+
+(0xae1+2669-0x1548);
+#if (0x89+3439-0xdf8)
+nLength+=(0x111+6843-0x1bca);
#endif
-}else{nLength=pSrc->TP_UDLength;buf[(0x412+4580-0x15f3)]=nLength;nLength=
-Encode7bit(pSrc->TP_UD,&buf[(0x7f6+5563-0x1dad)],nLength+(0x1193+1951-0x1931))+
-(0x110+6770-0x1b7e);}at_print(LOG_DEBUG,
+}else{nLength=pSrc->TP_UDLength;buf[(0xf75+2010-0x174c)]=nLength;nLength=
+Encode7bit(pSrc->TP_UD,&buf[(0xcb0+1119-0x110b)],nLength+(0x15e4+1339-0x1b1e))+
+(0x8d5+6541-0x225e);}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==(0x461+157-0x4fd)){buf[
-(0x1694+1740-0x1d5d)]=(unsigned char)nLength;buf[(0x8df+1445-0xe80)]=(unsigned
-char)pSrc->TP_UD[(0x129f+3795-0x2172)];buf[(0x2d9+458-0x49e)]=
-(0xb20+4531-0x1cd3);buf[(0x655+4438-0x17a5)]=(unsigned char)pSrc->TP_UD[
-(0x1ca1+768-0x1f9f)];buf[(0x563+3391-0x129b)]=(unsigned char)pSrc->TP_UD[
-(0x394+145-0x422)];buf[(0x113c+23-0x114b)]=(unsigned char)pSrc->TP_UD[
-(0x492+7255-0x20e5)];buf[(0x7e6+4145-0x180e)]=(unsigned char)pSrc->TP_UD[
-(0x151b+694-0x17cc)];buf[(0x1e05+2125-0x264f)]=(unsigned char)(EncodeUcs2(&(pSrc
-->TP_UD[(0x237+7554-0x1fb3)]),&buf[(0x1e66+691-0x210f)],nLength-
-(0x766+4087-0x1757))+(0x10a7+4932-0x23e5));nLength=buf[(0x1c3b+2386-0x258a)]+
-(0x1cf4+1232-0x21c0);}else{buf[(0x463+4268-0x150c)]=EncodeUcs2(pSrc->TP_UD,&buf[
-(0x32b+3067-0xf22)],nLength);nLength=buf[(0xb7+5489-0x1625)]+(0x3f+3495-0xde2);}
-return nLength;}int Encode8bit(const char*pSrc,unsigned char*pDst,int nSrcLength
-){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x915+6995-0x2468)){return-
-(0x2047+1052-0x2462);}memcpy(pDst,pSrc,nSrcLength);return nSrcLength;}int
-EncodePdu_Submit(const SMS_PARAM*pSrc,char*pDst){int nLength=(0x3c5+2574-0xdd3);
-int nDstLength=(0x503+2831-0x1012);unsigned char buf[(0x1e88+1488-0x2358)]={
-(0x356+711-0x61d)};char tmpSCA[(0x42f+2161-0xc7c)]={(0x2a0+7731-0x20d3)};int
-check_udl=(0x129f+1632-0x18ff);memset(tmpSCA,(0x442+445-0x5ff),sizeof(tmpSCA));
-if(pSrc==NULL||pDst==NULL){return-(0x10b4+738-0x1395);}
-#if (0x5df+4647-0x1805)
+strlen(pSrc->TP_UD);if(pSrc->TP_UDHI==(0x12c+5614-0x1719)){buf[(0xdb4+414-0xf4f)
+]=(unsigned char)nLength;buf[(0x113f+4676-0x237f)]=(unsigned char)pSrc->TP_UD[
+(0x6ec+7049-0x2275)];buf[(0xee9+538-0x10fe)]=(0xf0b+3339-0x1c16);buf[
+(0x1c0+2377-0xb03)]=(unsigned char)pSrc->TP_UD[(0x529+6435-0x1e4a)];buf[
+(0x282+704-0x53b)]=(unsigned char)pSrc->TP_UD[(0xcc+5271-0x1560)];buf[
+(0x813+1182-0xca9)]=(unsigned char)pSrc->TP_UD[(0xd44+861-0x109d)];buf[
+(0x19b+5158-0x15b8)]=(unsigned char)pSrc->TP_UD[(0x1101+1386-0x1666)];buf[
+(0xff2+3483-0x1d8a)]=(unsigned char)(EncodeUcs2(&(pSrc->TP_UD[
+(0x1cc9+1396-0x2237)]),&buf[(0x1023+3736-0x1eb1)],nLength-(0xc22+491-0xe07))+
+(0x15ba+1024-0x19b4));nLength=buf[(0x226+1644-0x88f)]+(0xac4+4734-0x1d3e);}else{
+buf[(0xaca+1681-0x1158)]=EncodeUcs2(pSrc->TP_UD,&buf[(0xc10+3182-0x187a)],
+nLength);nLength=buf[(0x122d+1173-0x16bf)]+(0x24c+133-0x2cd);}return nLength;}
+int Encode8bit(const char*pSrc,unsigned char*pDst,int nSrcLength){if(pSrc==NULL
+||pDst==NULL||nSrcLength<(0x757+7434-0x2461)){return-(0xb94+3409-0x18e4);}memcpy
+(pDst,pSrc,nSrcLength);return nSrcLength;}int EncodePdu_Submit(const SMS_PARAM*
+pSrc,char*pDst){int nLength=(0x4a8+3213-0x1135);int nDstLength=
+(0x9e2+4945-0x1d33);unsigned char buf[(0xecd+254-0xecb)]={(0xd4a+184-0xe02)};
+char tmpSCA[(0xd6c+6267-0x25c3)]={(0x18ba+3341-0x25c7)};int check_udl=
+(0x511+7296-0x2191);memset(tmpSCA,(0xb83+6564-0x2527),sizeof(tmpSCA));if(pSrc==
+NULL||pDst==NULL){return-(0xca7+1611-0x12f1);}
+#if (0x140+3256-0xdf7)
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,393 +908,392 @@
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x73\x63\x61\x3a\x25\x73" "\n",pSrc->
SCA);
#endif
-nLength=strlen(pSrc->SCA);buf[(0x1650+2636-0x209c)]=(char)(((nLength)&
-(0x97b+6022-0x2100))==(0x2e8+5406-0x1806)?(nLength):nLength+(0x1c26+2493-0x25e2)
-)/(0x447+6899-0x1f38)+(0xa6b+5410-0x1f8c);buf[(0xe3d+4939-0x2187)]=
-(0x1073+2552-0x19ea);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)-
-(0x1762+2879-0x22a0));if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",
-(0xc49+3193-0x18be)))){memset(tmpSCA,(0x723+7637-0x24f8),sizeof(tmpSCA));nLength
-=nLength-(0x1bef+555-0x1e19);
-#if (0x6ad+5003-0x1a37)
-nLength=nLength-(0x142d+1037-0x1839);strncpy(tmpSCA,&(pSrc->SCA[
-(0x5f9+5352-0x1adf)]),sizeof(tmpSCA)-(0x1364+4836-0x2647));
+nLength=strlen(pSrc->SCA);buf[(0xcc+8337-0x215d)]=(char)(((nLength)&
+(0x38d+823-0x6c3))==(0x1c83+2468-0x2627)?(nLength):nLength+(0x1738+576-0x1977))/
+(0xaaa+6695-0x24cf)+(0x75f+2711-0x11f5);buf[(0x1391+93-0x13ed)]=
+(0x3ad+6433-0x1c4d);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)-(0x911+2702-0x139e))
+;if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",(0x414+3212-0x109c)))){memset(tmpSCA,
+(0xf58+2690-0x19da),sizeof(tmpSCA));nLength=nLength-(0x10b+8118-0x20c0);
+#if (0x1592+3168-0x21f1)
+nLength=nLength-(0x784+2700-0x120f);strncpy(tmpSCA,&(pSrc->SCA[
+(0x17ba+311-0x18ef)]),sizeof(tmpSCA)-(0x1f28+503-0x211e));
#else
-tmpSCA[(0x23db+477-0x25b8)]=((char)(0x13bd+3908-0x22d6));strcpy(&(tmpSCA[
-(0x323+2140-0xb7e)]),&(pSrc->SCA[(0x8d+8344-0x2123)]));
+tmpSCA[(0x1c15+2634-0x265f)]=((char)(0xa8a+2067-0x1272));strcpy(&(tmpSCA[
+(0x7c+4356-0x117f)]),&(pSrc->SCA[(0x23c2+253-0x24bd)]));
#endif
-buf[(0x219+7152-0x1e09)]=(char)((nLength&(0x6a5+3332-0x13a8))==
-(0x165+6101-0x193a)?nLength:nLength+(0x1d57+2259-0x2629))/(0x475+5142-0x1889)+
-(0x15b7+4250-0x2650);buf[(0x7e7+6843-0x22a1)]=(0x781+4069-0x16d5);}else if(
-((char)(0x42b+6443-0x1d2b))==pSrc->SCA[(0x259+6570-0x1c03)]){memset(tmpSCA,
-(0x10aa+607-0x1309),sizeof(tmpSCA));
-#if (0x85a+5073-0x1c2a)
-nLength=nLength-(0x114b+2822-0x1c50);strncpy(tmpSCA,&(pSrc->SCA[
-(0x107+4011-0x10b1)]),sizeof(tmpSCA)-(0x1d5+5836-0x18a0));
+buf[(0x143+5460-0x1697)]=(char)((nLength&(0xb0b+4471-0x1c81))==
+(0x1605+163-0x16a8)?nLength:nLength+(0xb04+215-0xbda))/(0xd49+3864-0x1c5f)+
+(0x19a5+1101-0x1df1);buf[(0x36a+8773-0x25ae)]=(0x73b+6965-0x21df);}else if(
+((char)(0xb05+5088-0x1eba))==pSrc->SCA[(0xc42+6616-0x261a)]){memset(tmpSCA,
+(0x1612+2705-0x20a3),sizeof(tmpSCA));
+#if (0xac+1585-0x6dc)
+nLength=nLength-(0xf24+315-0x105e);strncpy(tmpSCA,&(pSrc->SCA[(0xcb+9042-0x241c)
+]),sizeof(tmpSCA)-(0x1c63+2626-0x26a4));
#else
strcpy(tmpSCA,pSrc->SCA);
#endif
-buf[(0xd4f+1423-0x12de)]=(char)((nLength&(0x97d+6666-0x2386))==
-(0x471+2433-0xdf2)?(nLength):nLength+(0x88f+3564-0x167a))/(0x78f+1835-0xeb8)+
-(0xe98+2205-0x1734);buf[(0x1be8+2270-0x24c5)]=(0xce1+6577-0x2601);}
-#if (0xfba+4465-0x212a)
+buf[(0x1308+2586-0x1d22)]=(char)((nLength&(0x1c7+368-0x336))==
+(0x148d+1467-0x1a48)?(nLength):nLength+(0x1865+1310-0x1d82))/(0xb4b+4426-0x1c93)
++(0x6fa+7890-0x25cb);buf[(0x6aa+1736-0xd71)]=(0x3d3+6015-0x1ac1);}
+#if (0x108d+1873-0x17dd)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x70\x64\x73\x74\x32\x3a\x25\x73" "\n",
pDst);
#endif
-if(nLength<(0x215+828-0x550)||nLength>=sizeof(tmpSCA))return-
-(0x1502+3023-0x20d0);nDstLength=Bytes2String(buf,pDst,(0x1a5c+3011-0x261d));
+if(nLength<(0x3a3+6174-0x1bc0)||nLength>=sizeof(tmpSCA))return-
+(0x176+4306-0x1247);nDstLength=Bytes2String(buf,pDst,(0xed0+2008-0x16a6));
nDstLength+=InvertNumbers(tmpSCA,&pDst[nDstLength],nLength);
-#if (0x10d1+2213-0x1975)
+#if (0xd88+3129-0x19c0)
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[(0xd5b+1804-0x1467)]==((char)(0xde0+162-0xe57))){nLength=strlen(&(
-pSrc->TPA[(0xa47+3086-0x1654)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
-TP_UDHI==(0x1fcf+451-0x2192)){if(pSrc->TP_SRR==(0xeb0+827-0x11eb)){buf[
-(0x10cc+2838-0x1be2)]=(0x408+103-0x45e);}if(pSrc->TP_SRR==(0x1fd7+45-0x2003)){
-buf[(0xa83+3382-0x17b9)]=(0x16eb+2055-0x1ec1);}}if(pSrc->TP_UDHI==
-(0xb82+203-0xc4c)){if(pSrc->TP_SRR==(0x51d+1998-0xceb)){buf[(0x1868+3203-0x24eb)
-]=(0x3c6+6898-0x1e67);}if(pSrc->TP_SRR==(0x16fa+3754-0x25a3)){buf[
-(0xb34+908-0xec0)]=(0x2147+135-0x215d);}}buf[(0x93f+609-0xb9f)]=
-(0x1a3+2417-0xb14);buf[(0xd01+770-0x1001)]=(char)nLength;if(pSrc->TPA[
-(0x991+3364-0x16b5)]==((char)(0x1b72+667-0x1de2))){buf[(0x28d+6887-0x1d71)]=
-(0x1a8+5567-0x16d6);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
-(0x251+7808-0x20cd));nDstLength+=InvertNumbers(&(pSrc->TPA[(0x1f9b+340-0x20ee)])
-,&pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
-(0x877+2590-0x1291)))){buf[(0x59+6656-0x1a57)]=(char)nLength-(0x690+702-0x94c);
-buf[(0xa14+6769-0x2482)]=(0x51b+7815-0x2311);nDstLength+=Bytes2String(buf,&pDst[
-nDstLength],(0xfcf+5896-0x26d3));nDstLength+=InvertNumbers(&(pSrc->TPA[
-(0x1e03+293-0x1f26)]),&pDst[nDstLength],nLength-(0x43d+5456-0x198b));}else{buf[
-(0x244c+530-0x265b)]=(0x14cc+2102-0x1c81);nDstLength+=Bytes2String(buf,&pDst[
-nDstLength],(0x18a0+1690-0x1f36));nDstLength+=InvertNumbers(pSrc->TPA,&pDst[
+if(pSrc->TPA[(0x105b+404-0x11ef)]==((char)(0x20d7+1099-0x24f7))){nLength=strlen(
+&(pSrc->TPA[(0x1877+60-0x18b2)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
+TP_UDHI==(0xd2b+3067-0x1926)){if(pSrc->TP_SRR==(0x1300+2127-0x1b4f)){buf[
+(0x99+2476-0xa45)]=(0xca7+1112-0x10ee);}if(pSrc->TP_SRR==(0x5d6+6740-0x2029)){
+buf[(0x920+4745-0x1ba9)]=(0x2315+107-0x234f);}}if(pSrc->TP_UDHI==
+(0x1b54+788-0x1e67)){if(pSrc->TP_SRR==(0xbbc+3993-0x1b55)){buf[
+(0x125b+2740-0x1d0f)]=(0x57c+6727-0x1f72);}if(pSrc->TP_SRR==(0xaf1+2524-0x14cc))
+{buf[(0x486+2669-0xef3)]=(0x2162+1250-0x25d3);}}buf[(0x1046+4780-0x22f1)]=
+(0x14ab+2392-0x1e03);buf[(0x10e6+1674-0x176e)]=(char)nLength;if(pSrc->TPA[
+(0x984+7392-0x2664)]==((char)(0xbdf+5102-0x1fa2))){buf[(0x19a4+1613-0x1fee)]=
+(0x6f9+5419-0x1b93);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
+(0x1a55+2722-0x24f3));nDstLength+=InvertNumbers(&(pSrc->TPA[(0xf56+2117-0x179a)]
+),&pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
+(0x291+5794-0x192f)))){buf[(0x12c6+652-0x1550)]=(char)nLength-(0xdc+6374-0x19c0)
+;buf[(0x1712+832-0x1a4f)]=(0xd62+3149-0x191e);nDstLength+=Bytes2String(buf,&pDst
+[nDstLength],(0x7c8+2818-0x12c6));nDstLength+=InvertNumbers(&(pSrc->TPA[
+(0xd27+5631-0x2324)]),&pDst[nDstLength],nLength-(0x945+6118-0x2129));}else{buf[
+(0x147+5547-0x16ef)]=(0x201+8150-0x2156);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0x114b+2244-0x1a0b));nDstLength+=InvertNumbers(pSrc->TPA,&pDst[
nDstLength],nLength);}
-#if (0xcf7+1838-0x1424)
+#if (0x1b61+2354-0x2492)
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[(0x216+9009-0x2547)]=pSrc->TP_PID;buf[
-(0x20c+6886-0x1cf1)]=pSrc->TP_DCS;buf[(0xfd9+5915-0x26f2)]=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==(0x9c7+1106-0xe18)){buf[(0xbf8+930-0xf97)]=(unsigned
-char)nLength;buf[(0x1267+920-0x15fb)]=(unsigned char)pSrc->TP_UD[
-(0xf93+3434-0x1cfd)];buf[(0x1b1c+1340-0x2053)]=(0x966+213-0xa3b);buf[
-(0x3fd+665-0x690)]=(unsigned char)pSrc->TP_UD[(0x844+6561-0x21e3)];buf[
-(0x228+2012-0x9fd)]=(unsigned char)pSrc->TP_UD[(0x143c+1366-0x198f)];buf[
-(0x103a+5514-0x25bc)]=(unsigned char)pSrc->TP_UD[(0x17b+6230-0x19cd)];buf[
-(0x1210+1422-0x1795)]=(unsigned char)pSrc->TP_UD[(0x183+717-0x44b)];if(nLength-
-(0x1c88+143-0x1d11)<=(0x19c7+223-0x1aa6)||nLength-(0x7f9+2598-0x1219)>=sizeof(
-buf)-(0xa52+2982-0x15ee))return-(0x1123+1314-0x1644);buf[(0xbba+272-0xcc7)]=(
-unsigned char)(Encode8bit(&(pSrc->TP_UD[(0x1e97+330-0x1fdb)]),&buf[
-(0x19fb+1919-0x2170)],(unsigned short)(nLength-(0xeef+6122-0x26d3)))+
-(0x8dc+7227-0x2511));nLength=buf[(0x1272+1680-0x18ff)]+(0x1d5a+1418-0x22e0);}
-else{if(nLength<=(0x78b+1194-0xc35)||nLength>=sizeof(buf)-(0x6b5+4004-0x1655))
-return-(0x12e6+3076-0x1ee9);buf[(0x382+4036-0x1343)]=Encode8bit(pSrc->TP_UD,&buf
-[(0x939+6939-0x2450)],nLength);nLength=buf[(0x9d8+5016-0x1d6d)]+
-(0x1137+4989-0x24b0);}}check_udl=nLength-(0x1460+1441-0x19fd);nDstLength+=
+nLength=(int)pSrc->TP_UDLength;buf[(0xd85+4255-0x1e24)]=pSrc->TP_PID;buf[
+(0x1c03+2494-0x25c0)]=pSrc->TP_DCS;buf[(0x16c8+1205-0x1b7b)]=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==(0x8b+2595-0xaad)){buf[(0x937+7537-0x26a5)]=(
+unsigned char)nLength;buf[(0x497+1181-0x930)]=(unsigned char)pSrc->TP_UD[
+(0x1134+4349-0x2231)];buf[(0x46c+7727-0x2296)]=(0x1b77+712-0x1e3f);buf[
+(0xd1b+1549-0x1322)]=(unsigned char)pSrc->TP_UD[(0x3cc+7550-0x2148)];buf[
+(0xc95+723-0xf61)]=(unsigned char)pSrc->TP_UD[(0x980+798-0xc9b)];buf[
+(0x899+5440-0x1dd1)]=(unsigned char)pSrc->TP_UD[(0x3bb+6905-0x1eb0)];buf[
+(0x83a+2097-0x1062)]=(unsigned char)pSrc->TP_UD[(0x10a5+252-0x119c)];if(nLength-
+(0xaf8+3877-0x1a17)<=(0xc8a+6687-0x26a9)||nLength-(0x17f2+955-0x1ba7)>=sizeof(
+buf)-(0xa1f+6885-0x24fa))return-(0x1325+503-0x151b);buf[(0xd09+4951-0x205d)]=(
+unsigned char)(Encode8bit(&(pSrc->TP_UD[(0x1dd3+802-0x20ef)]),&buf[
+(0x869+1442-0xe01)],(unsigned short)(nLength-(0x9d+4226-0x1119)))+
+(0x6ac+6994-0x21f8));nLength=buf[(0x1573+3288-0x2248)]+(0x14fb+1298-0x1a09);}
+else{if(nLength<=(0x11d2+1681-0x1863)||nLength>=sizeof(buf)-(0x149b+4393-0x25c0)
+)return-(0x188b+358-0x19f0);buf[(0x330+8393-0x23f6)]=Encode8bit(pSrc->TP_UD,&buf
+[(0x12e3+1822-0x19fd)],nLength);nLength=buf[(0x687+3670-0x14da)]+
+(0x1a14+572-0x1c4c);}}check_udl=nLength-(0x8a+4457-0x11ef);nDstLength+=
Bytes2String(buf,&pDst[nDstLength],nLength);sc_cfg_set(NV_CHECK_UDL,"");if(
-check_udl>(0x96f+2067-0x10f6)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");}
-#if (0x1436+3593-0x223e)
+check_udl>(0x1d3+455-0x30e)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");}
+#if (0x438+2782-0xf15)
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 (0x55+6834-0x1b06)
+#if (0xa79+4820-0x1d4c)
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<(0x17c1+1747-0x1e94)){return-(0x1fb+7676-0x1ff6);}nSrc=
-(0x19d0+3195-0x264b);nDst=(0x1df6+922-0x2190);nByte=(0x97+5672-0x16bf);nLeft=
-(0xb4+4726-0x132a);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
-(0x4f1+6984-0x1fba);nLeft=*pSrc>>((0x43a+1424-0x9c3)-nByte);pDst++;nDst++;nByte
-++;if(nByte==(0x281+2934-0xdf0)){*pDst=nLeft;pDst++;nDst++;nByte=
-(0x1a42+179-0x1af5);nLeft=(0x129+3621-0xf4e);}pSrc++;nSrc++;}*pDst='\0';return
-nDst;}int DecodePushPdu(const char*pSrcPdu,SMS_PARAM*pDst){int nDstLength=
-(0x9a7+4255-0x1a46);unsigned char tmp=(0xcd+2464-0xa6d);int ud_length=
-(0x1e14+1984-0x25d4);unsigned char buf[(0xb41+2256-0x1311)]={(0x10a0+113-0x1111)
-};char temp_num[(0xf02+5733-0x2503)]={(0x1414+4776-0x26bc)};unsigned char
-first_octet=(0x1ca9+714-0x1f73);unsigned char udhl=(0xa29+4803-0x1cec);unsigned
-int halftmp=(0xe08+2234-0x16c2);char tp_ra[(0xb1+3506-0xe60)]={
-(0x3d7+7521-0x2138)};int tmplen=(0xb20+5148-0x1f3c);unsigned char IEIDL;int
-pushType=(0x12b+4247-0x11c2);const char*pSrc=pSrcPdu;if(pSrcPdu==NULL||pDst==
-NULL){printf(
+==NULL||nSrcLength<(0x17f+7067-0x1d1a)){return-(0xa63+772-0xd66);}nSrc=
+(0x15e9+2693-0x206e);nDst=(0x155+6452-0x1a89);nByte=(0x507+4184-0x155f);nLeft=
+(0x4b4+7072-0x2054);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
+(0x243a+355-0x251e);nLeft=*pSrc>>((0x14eb+878-0x1852)-nByte);pDst++;nDst++;nByte
+++;if(nByte==(0x1f61+242-0x204c)){*pDst=nLeft;pDst++;nDst++;nByte=
+(0x1389+1699-0x1a2c);nLeft=(0xad4+3590-0x18da);}pSrc++;nSrc++;}*pDst='\0';return
+ nDst;}int DecodePushPdu(const char*pSrcPdu,SMS_PARAM*pDst){int nDstLength=
+(0x124f+4023-0x2206);unsigned char tmp=(0x6ab+6187-0x1ed6);int ud_length=
+(0x158+5762-0x17da);unsigned char buf[(0x73d+6268-0x1eb9)]={(0x16cc+4062-0x26aa)
+};char temp_num[(0xb3+7942-0x1f55)]={(0x12c8+4528-0x2478)};unsigned char
+first_octet=(0x12c7+3839-0x21c6);unsigned char udhl=(0x511+8566-0x2687);unsigned
+ int halftmp=(0xd49+6379-0x2634);char tp_ra[(0x502+5194-0x1949)]={
+(0x492+4906-0x17bc)};int tmplen=(0x1741+595-0x1994);unsigned char IEIDL;int
+pushType=(0x463+391-0x5ea);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-(0x112b+253-0x1227);}String2Bytes(pSrc,&tmp,(0xe53+600-0x10a9));
+);return-(0x1534+850-0x1885);}String2Bytes(pSrc,&tmp,(0x1c2+6473-0x1b09));
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==(0xbd7+5985-0x2338)){pSrc+=(0xed2+6028-0x265c);}else{tmp=(tmp-
-(0x17df+1228-0x1caa))*(0x161+7870-0x201d);pSrc+=(0x1406+3864-0x231a);if(tmp>
-(0xcdb+6684-0x26d7)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x17c+1649-0x7cd));tmp
-=(0x1073+3525-0x1e18);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=tmp;
-}String2Bytes(pSrc,&tmp,(0x1565+1196-0x1a0f));first_octet=tmp;pSrc+=
-(0x226+7121-0x1df5);String2Bytes(pSrc,&tmp,(0x2c7+5504-0x1845));halftmp=tmp;if(
-tmp&(0x416+519-0x61c))tmp+=(0xb7b+5303-0x2031);pSrc+=(0x14ec+452-0x16ae);memset(
-tp_ra,(0x1fc4+521-0x21cd),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
-(0x6a0+161-0x73f));pSrc+=(0xba4+5135-0x1fb1);if((tp_ra[(0x1406+3069-0x2003)]&
-(0x72c+4590-0x18ca))==(0xbbb+4140-0x1b97)){char tempra[(0xa3+7409-0x1d14)];char
-acAsc[(0x8f8+5260-0x1d04)];if(halftmp>=(0x818+3781-0x16cf)){halftmp=(tmp/
-(0xf00+1804-0x160a))/(0x6ad+4788-0x195a)+(tmp/(0xa7d+126-0xaf9));}else{halftmp=
-tmp/(0x461+4196-0x14c3);}memset(tempra,(0x2d3+5700-0x1917),sizeof(tempra));
-memcpy(tempra,pSrc,tmp);memset(acAsc,(0x1aef+1626-0x2149),sizeof(acAsc));
-nDstLength=String2Bytes(tempra,buf,halftmp&(0xe80+236-0xf65)?(int)halftmp*
-(0xe12+2960-0x199b)/(0x99c+2209-0x1239)+(0x1595+1561-0x1bac):(int)halftmp*
-(0x1c09+724-0x1ed6)/(0xaa2+5426-0x1fd0));halftmp=Decode7bit(buf,acAsc,nDstLength
-);memset(pDst->TPA,(0x19a9+2190-0x2237),sizeof(pDst->TPA));if(halftmp>
-(0x1835+2375-0x215c)){memcpy(pDst->TPA,acAsc,(0x71d+2307-0x1000));tmp=
-(0xcba+4650-0x1ec4);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
-(0x7fc+5876-0x1ed0)){SerializeNumbers_sms(pSrc,pDst->TPA,(0xc77+3866-0x1b71));}
-else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0x2b9+2271-0xb98)]&
-(0x76f+5216-0x1b3e))==(0x587+8018-0x2448)){memset(temp_num,(0x4a8+4283-0x1563),
-sizeof(temp_num));if(pDst->TPA[(0x146c+3544-0x2244)]!=
-((char)(0x212a+460-0x22cb))){snprintf(temp_num,sizeof(temp_num),
-"\x25\x73\x25\x73","\x2b",pDst->TPA);if(strlen(temp_num)>(0xb6+3140-0xcda)){
-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,(0xa9+1022-0x4a5));pSrc+=(0x670+436-0x822);
-String2Bytes(pSrc,(unsigned char*)&pDst->TP_DCS,(0x857+3131-0x1490));pSrc+=
-(0x903+1561-0xf1a);SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0x8c1+2289-0x11a4));
-pSrc+=(0x12+7901-0x1ee1);String2Bytes(pSrc,&tmp,(0xdec+5729-0x244b));pSrc+=
-(0x5b6+2674-0x1026);memset(pDst->TP_UD,(0x4c7+2625-0xf08),sizeof(pDst->TP_UD));
-at_print(LOG_DEBUG,
+,tmp);if(tmp==(0x1bdc+2839-0x26f3)){pSrc+=(0xbf4+6672-0x2602);}else{tmp=(tmp-
+(0x5fd+598-0x852))*(0xf8f+1162-0x1417);pSrc+=(0xdf1+3960-0x1d65);if(tmp>
+(0x1803+660-0x1a77)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x337+5643-0x1922));
+tmp=(0x15f0+1253-0x1ab5);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=
+tmp;}String2Bytes(pSrc,&tmp,(0x14f+783-0x45c));first_octet=tmp;pSrc+=
+(0x14f0+168-0x1596);String2Bytes(pSrc,&tmp,(0x1576+2547-0x1f67));halftmp=tmp;if(
+tmp&(0x509+8669-0x26e5))tmp+=(0x22b+321-0x36b);pSrc+=(0x219+35-0x23a);memset(
+tp_ra,(0x73+9090-0x23f5),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
+(0xae6+2668-0x1550));pSrc+=(0x56+3941-0xfb9);if((tp_ra[(0x48d+7681-0x228e)]&
+(0x49b+288-0x56b))==(0xfca+40-0xfa2)){char tempra[(0x10ab+4063-0x200a)];char
+acAsc[(0x1186+5169-0x2537)];if(halftmp>=(0xf9d+5233-0x2400)){halftmp=(tmp/
+(0x1433+1776-0x1b21))/(0x1817+3549-0x25ed)+(tmp/(0x3+3966-0xf7f));}else{halftmp=
+tmp/(0x4d4+6601-0x1e9b);}memset(tempra,(0x1932+948-0x1ce6),sizeof(tempra));
+memcpy(tempra,pSrc,tmp);memset(acAsc,(0x1804+570-0x1a3e),sizeof(acAsc));
+nDstLength=String2Bytes(tempra,buf,halftmp&(0x12a+5412-0x1647)?(int)halftmp*
+(0x13e8+4268-0x248d)/(0x16ca+1412-0x1c4a)+(0x65d+1389-0xbc8):(int)halftmp*
+(0x771+5656-0x1d82)/(0x118c+295-0x12af));halftmp=Decode7bit(buf,acAsc,nDstLength
+);memset(pDst->TPA,(0x59d+702-0x85b),sizeof(pDst->TPA));if(halftmp>
+(0x4c3+2760-0xf6b)){memcpy(pDst->TPA,acAsc,(0x1de4+942-0x2172));tmp=
+(0x18e1+1224-0x1d89);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
+(0x231f+597-0x2554)){SerializeNumbers_sms(pSrc,pDst->TPA,(0x1963+442-0x1afd));}
+else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0x882+3094-0x1498)]&
+(0x1433+3849-0x22ab))==(0x1824+2000-0x1f63)){memset(temp_num,(0xb4+4698-0x130e),
+sizeof(temp_num));if(pDst->TPA[(0x2a3+4511-0x1442)]!=((char)(0xa66+505-0xc34))){
+snprintf(temp_num,sizeof(temp_num),"\x25\x73\x25\x73","\x2b",pDst->TPA);if(
+strlen(temp_num)>(0x25f+7267-0x1ea2)){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,(0x2143+659-0x23d4));pSrc+=(0x13fc+4464-0x256a);String2Bytes(pSrc,(
+unsigned char*)&pDst->TP_DCS,(0x14cf+1228-0x1999));pSrc+=(0xe01+6141-0x25fc);
+SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0xf2c+2265-0x17f7));pSrc+=
+(0x125d+3856-0x215f);String2Bytes(pSrc,&tmp,(0x60f+407-0x7a4));pSrc+=
+(0x1560+1390-0x1acc);memset(pDst->TP_UD,(0x174f+2424-0x20c7),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&(0x88d+2415-0x11bc)){const char*temp=pSrc;unsigned
+,first_octet);if(first_octet&(0xdea+3592-0x1bb2)){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,(0xc58+1820-0x1372));temp+=
-(0xa5b+4425-0x1ba2);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0x182a+1587-0x1e5b))
+SMS_NO_PUSH;String2Bytes(temp,&udhl,(0x1648+2482-0x1ff8));temp+=
+(0xb48+4804-0x1e0a);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0x1184+3049-0x1d6b))
;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==(0xa12+3589-0x1812)){temp+=(0x9ef+3590-0x17f3)*
-tmplen+(0xc6b+569-0xea2);tmplen=String2Bytes(temp,&DestPort1,(0x1b9f+614-0x1e03)
+,pDst->TP_IEI);if(pDst->TP_IEI==(0x899+7783-0x26fb)){temp+=(0x843+3258-0x14fb)*
+tmplen+(0x16e8+28-0x1702);tmplen=String2Bytes(temp,&DestPort1,(0x2140+58-0x2178)
);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+=(0x202+5577-0x17c9)*tmplen;tmplen=String2Bytes(temp,&DestPort2
-,(0x289+5709-0x18d4));at_print(LOG_DEBUG,
+,DestPort1);temp+=(0x466+2930-0xfd6)*tmplen;tmplen=String2Bytes(temp,&DestPort2,
+(0x7c1+5624-0x1db7));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==(0x7c5+753-0xaab))&&((DestPort2==(0x45d+6289-0x1c6a))
-||(DestPort2==(0x175+2322-0xa02)))){pushType=SMS_PUSH;}}if(SMS_PUSH!=pushType){
-return pushType;}temp=pSrc+udhl*(0x1296+4161-0x22d5)+(0x1799+1349-0x1cda);tmplen
-=String2Bytes(temp,&pduType,(0x19d3+767-0x1cd0));if(pduType==(0x1563+494-0x174b)
-){pushType=SMS_PUSH;temp+=(0xcd1+2034-0x14bf);tmplen=String2Bytes(temp,&pduType,
-(0x155+3700-0xfc7));if(pduType==(0xf36+5088-0x2252)){pushType=SMS_NOTIFICATION;}
-else{temp+=(0x8b0+2347-0x11d7);tmplen=String2Bytes(temp,&pduType,
-(0x81c+5604-0x1dfe));if((pduType==(0x1e1+835-0x462))||(pduType==
-(0x6e7+2616-0x1069))){pushType=SMS_BOOTSTRAP;}}}if((pDst->TP_IEI==
-(0x3c0+7346-0x206e))||(pDst->TP_IEI==(0x935+4189-0x198d))||(pDst->TP_IEI==
-(0x5b3+900-0x92f))){temp=pSrc+(0x40+8370-0x20ee);tmplen=String2Bytes(temp,&IEIDL
-,(0xc0b+4102-0x1c0f));if(IEIDL==(udhl-(0x312+7502-0x205e))){}else{temp+=
-(0x599+4575-0x1776)*(0xd88+2247-0x1649);tmplen=String2Bytes(temp,&udhLen,
-(0xb59+3165-0x17b4));if(udhLen==(0xc+8713-0x2212)){temp+=(0x39d+1786-0xa95)*
-tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x136+7851-0x1fdf));pDst->TP_ReferNum=
-RefNum1;temp+=(0xfc9+452-0x118b)*tmplen;tmplen=String2Bytes(temp,&pDst->
-TP_AllPieceNum,(0xcf0+5393-0x21ff));temp+=(0x860+3149-0x14ab)*tmplen;tmplen=
-String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0xdf0+2823-0x18f5));temp+=
-(0x2df+1577-0x906)*tmplen;}else if(udhLen==(0xc68+4419-0x1da7)){temp+=
-(0x1e25+1608-0x246b)*tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x494+1027-0x895)
-);temp+=(0x720+7718-0x2544)*tmplen;tmplen=String2Bytes(temp,&RefNum2,
-(0xca3+2250-0x156b));int ReferNum=RefNum2+RefNum1*(0x347+4758-0x14dd);pDst->
-TP_ReferNum=ReferNum;temp+=(0x1693+3951-0x2600)*tmplen;tmplen=String2Bytes(temp,
-&pDst->TP_AllPieceNum,(0xfa6+2396-0x1900));temp+=(0x125+8720-0x2333)*tmplen;
-tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x660+7213-0x228b));temp+=
-(0x1d9d+1918-0x2519)*tmplen;}}}at_print(LOG_DEBUG,
+,DestPort2);if((DestPort1==(0x19f5+2657-0x244b))&&((DestPort2==(0x921+702-0xb5b)
+)||(DestPort2==(0x1e99+1523-0x2407)))){pushType=SMS_PUSH;}}if(SMS_PUSH!=pushType
+){return pushType;}temp=pSrc+udhl*(0x607+6578-0x1fb7)+(0x179a+1138-0x1c08);
+tmplen=String2Bytes(temp,&pduType,(0x7bc+1554-0xdcc));if(pduType==
+(0x49b+3423-0x11f4)){pushType=SMS_PUSH;temp+=(0x66b+5030-0x1a0d);tmplen=
+String2Bytes(temp,&pduType,(0x64+103-0xc9));if(pduType==(0x1461+4772-0x2641)){
+pushType=SMS_NOTIFICATION;}else{temp+=(0xded+616-0x1051);tmplen=String2Bytes(
+temp,&pduType,(0x1582+2741-0x2035));if((pduType==(0x939+4841-0x1b60))||(pduType
+==(0x810+2825-0x1263))){pushType=SMS_BOOTSTRAP;}}}if((pDst->TP_IEI==
+(0xd3c+2887-0x187f))||(pDst->TP_IEI==(0x996+5163-0x1dbc))||(pDst->TP_IEI==
+(0x1278+1639-0x18d7))){temp=pSrc+(0x3e8+5750-0x1a5a);tmplen=String2Bytes(temp,&
+IEIDL,(0x1b56+1199-0x2003));if(IEIDL==(udhl-(0x90f+2454-0x12a3))){}else{temp+=
+(0x18b5+3334-0x25b9)*(0xa19+5518-0x1fa1);tmplen=String2Bytes(temp,&udhLen,
+(0x1ae1+539-0x1cfa));if(udhLen==(0xb13+7019-0x267b)){temp+=(0x1fdc+74-0x2024)*
+tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x96d+2454-0x1301));pDst->TP_ReferNum=
+RefNum1;temp+=(0xc7d+3689-0x1ae4)*tmplen;tmplen=String2Bytes(temp,&pDst->
+TP_AllPieceNum,(0x135+7355-0x1dee));temp+=(0x5f8+1588-0xc2a)*tmplen;tmplen=
+String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x8a5+2286-0x1191));temp+=
+(0x1b39+2250-0x2401)*tmplen;}else if(udhLen==(0x36f+7758-0x21b9)){temp+=
+(0x394+7828-0x2226)*tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x453+5466-0x19ab)
+);temp+=(0x1000+1409-0x157f)*tmplen;tmplen=String2Bytes(temp,&RefNum2,
+(0x8a4+6949-0x23c7));int ReferNum=RefNum2+RefNum1*(0x831+2176-0xfb1);pDst->
+TP_ReferNum=ReferNum;temp+=(0x966+6689-0x2385)*tmplen;tmplen=String2Bytes(temp,&
+pDst->TP_AllPieceNum,(0x5ab+1415-0xb30));temp+=(0x1940+2248-0x2206)*tmplen;
+tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x13a5+2218-0x1c4d));temp+=
+(0xe3+4146-0x1113)*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*(0xdd2+1977-0x1589)+
-(0xda0+1404-0x1316);tmplen=String2Bytes(temp,&wspLen,(0xffc+280-0x1112));temp=
-temp+wspLen*(0xe5c+2145-0x16bb)+(0x55+3825-0xf44);}else{temp=pSrc+udhl*
-(0xde7+4905-0x210e)+(0x287+5306-0x173f);}nDstLength=((strlen(temp)<sizeof(pDst->
-TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0x17ab+3521-0x256b)));memcpy(pDst->
+SMS_NOTIFICATION==pushType){temp=pSrc+udhl*(0x23d+4020-0x11ef)+
+(0x923+1877-0x1072);tmplen=String2Bytes(temp,&wspLen,(0x13f9+3835-0x22f2));temp=
+temp+wspLen*(0x1027+3943-0x1f8c)+(0x125d+1427-0x17ee);}else{temp=pSrc+udhl*
+(0xb9c+911-0xf29)+(0x2551+249-0x2648);}nDstLength=((strlen(temp)<sizeof(pDst->
+TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0x34d+5671-0x1973)));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=(0x11cd+216-0x12a5);if(pSrc==
-NULL||pDst==NULL||nSrcLength<(0x46+5155-0x1469)){return-(0x6a8+6276-0x1f2b);}
-nDstLength=nSrcLength;for(i=(0x13bf+1302-0x18d5);i<nSrcLength;i+=
-(0x297+4349-0x1392)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-
-(0xc9f+5270-0x2134))==((char)(0x69f+3394-0x139b))){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=(0x683+3554-0x1465);
-UINT16 pos=(0x210c+1152-0x258c);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+*pDst,int nSrcLength){int nDstLength;char ch;int i=(0x33c+3501-0x10e9);if(pSrc==
+NULL||pDst==NULL||nSrcLength<(0x1ccf+314-0x1e09)){return-(0x1dc1+424-0x1f68);}
+nDstLength=nSrcLength;for(i=(0x37+1830-0x75d);i<nSrcLength;i+=
+(0xd9a+4317-0x1e75)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-
+(0x149+2776-0xc20))==((char)(0x1e5a+13-0x1e21))){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=(0x1f7d+490-0x2167);
+UINT16 pos=(0x390+3156-0xfe4);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(0x15b1+3026-0x2183);}shift%=(0xeb2+2435-0x182e);if(shift!=
-(0xfe8+600-0x1240)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0xa06+3909-0x1944)-
-shift)+(0x1192+4127-0x21b0);if(shift==(0xc73+4949-0x1fc1)){shift=
-(0x346+4238-0x13d4);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[
-pos]=in[i]>>shift;if(i+(0x1aac+2325-0x23c0)<in_len){out[pos]|=(UINT8)(in[i+
-(0xcd1+2610-0x1702)]<<((0x91a+449-0xad4)-shift));shift++;if(shift==
-(0x8ed+767-0xbe5)){shift=(0xe50+1783-0x1547);i++;}}}return pos;}UINT8
+);return(0xa45+4600-0x1c3d);}shift%=(0x104d+748-0x1332);if(shift!=
+(0x1fd+2017-0x9de)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0x915+1158-0xd94)-
+shift)+(0xa54+4538-0x1c0d);if(shift==(0x2af+9211-0x26a3)){shift=
+(0x167f+1658-0x1cf9);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[
+pos]=in[i]>>shift;if(i+(0x1070+552-0x1297)<in_len){out[pos]|=(UINT8)(in[i+
+(0x1569+3207-0x21ef)]<<((0x11a3+5353-0x2685)-shift));shift++;if(shift==
+(0xf49+3236-0x1be6)){shift=(0x8dd+7691-0x26e8);i++;}}}return pos;}UINT8
wms_ts_encode_address(const wms_address_s_type*addr,UINT8*data){UINT8 i,pos=
-(0x671+4873-0x197a);if(addr->number_of_digits>WMS_GW_ADDRESS_MAX){at_print(
+(0x2f8+6916-0x1dfc);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(0x1f11+1055-0x2330);}if(addr->number_type==
+,addr->number_of_digits);return(0x108a+5601-0x266b);}if(addr->number_type==
WMS_NUMBER_ALPHANUMERIC){data[pos]=(UINT8)((addr->number_of_digits*
-(0x91d+7206-0x253c)+(0x197+4338-0x1286))/(0x23e9+44-0x2411));}else{data[pos]=
-addr->number_of_digits;}pos++;data[pos]=(0xd01+4608-0x1e81);data[pos]|=(UINT8)((
-UINT8)addr->number_type<<(0x1c9+6680-0x1bdd));data[pos]|=(UINT8)addr->
+(0x1470+2017-0x1c4a)+(0x7d0+3254-0x1483))/(0xe5f+5849-0x2534));}else{data[pos]=
+addr->number_of_digits;}pos++;data[pos]=(0x1ed0+2172-0x26cc);data[pos]|=(UINT8)(
+(UINT8)addr->number_type<<(0x1342+3627-0x2169));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,
-(0x955+2570-0x135f),WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=
-(0xa24+3175-0x168b);i<addr->number_of_digits;i++){data[pos]=(UINT8)(addr->digits
-[i++]&(0x207f+1332-0x25a4));{data[pos]|=(UINT8)(addr->digits[i]<<
-(0x677+1773-0xd60));}pos++;}}return pos;}UINT8 wms_ts_encode_dcs(const
-wms_gw_dcs_s_type*dcs,UINT8*data){UINT8 pos=(0x219f+754-0x2491);if(dcs->
+(0x13cf+4279-0x2486),WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=
+(0x322+6213-0x1b67);i<addr->number_of_digits;i++){data[pos]=(UINT8)(addr->digits
+[i++]&(0x8b0+1894-0x1007));{data[pos]|=(UINT8)(addr->digits[i]<<
+(0x1c20+598-0x1e72));}pos++;}}return pos;}UINT8 wms_ts_encode_dcs(const
+wms_gw_dcs_s_type*dcs,UINT8*data){UINT8 pos=(0xe1+6216-0x1929);if(dcs->
msg_waiting==WMS_GW_MSG_WAITING_NONE){data[pos]=dcs->is_compressed?
-(0xa1+1322-0x5ab):(0x12fb+4249-0x2394);data[pos]|=(dcs->msg_class!=
-WMS_MESSAGE_CLASS_NONE)?(0x830+7438-0x252e):(0xdcb+4278-0x1e81);data[pos]|=dcs->
-alphabet<<(0x611+6277-0x1e94);data[pos]|=dcs->msg_class&(0x1fab+320-0x20e8);}
+(0x549+2555-0xf24):(0xe04+4298-0x1ece);data[pos]|=(dcs->msg_class!=
+WMS_MESSAGE_CLASS_NONE)?(0x16af+1304-0x1bb7):(0xbdd+1982-0x139b);data[pos]|=dcs
+->alphabet<<(0x861+3380-0x1593);data[pos]|=dcs->msg_class&(0x189+4827-0x1461);}
else if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE_1111){data[pos]=
-(0x1f04+364-0x1f80);if(dcs->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]|=
-(0x1b6+8938-0x249c);data[pos]|=dcs->msg_class&(0x17c+2024-0x961);}else{if(dcs->
-msg_waiting==WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x22a2+1314-0x2704);}else if
-(dcs->msg_waiting==WMS_GW_MSG_WAITING_STORE&&dcs->alphabet==
-WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0x9ec+6944-0x243c);}else{data[pos]=
-(0x3a4+1753-0x99d);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
-(0x1a71+1838-0x2197):(0x8f2+6081-0x20b3);data[pos]|=dcs->msg_waiting_kind&
-(0x1361+2325-0x1c73);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
-UINT8*result){unsigned char low_bit=(bcd&(0xd85+3850-0x1c80));unsigned char
-high_bit=((bcd&(0x888+3902-0x16d6))>>(0x7c4+71-0x807));if(low_bit>
-(0x58b+5184-0x19c2)||high_bit>(0xdd0+865-0x1128)){at_print(LOG_DEBUG,
+(0x10ec+3139-0x1c3f);if(dcs->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]|=
+(0x185b+2809-0x2350);data[pos]|=dcs->msg_class&(0x1094+5023-0x2430);}else{if(dcs
+->msg_waiting==WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x16fd+898-0x19bf);}else
+if(dcs->msg_waiting==WMS_GW_MSG_WAITING_STORE&&dcs->alphabet==
+WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0xfdf+6041-0x26a8);}else{data[pos]=
+(0x8ac+6003-0x1f3f);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
+(0xac5+2694-0x1543):(0x683+3438-0x13f1);data[pos]|=dcs->msg_waiting_kind&
+(0x4a+6197-0x187c);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
+UINT8*result){unsigned char low_bit=(bcd&(0x126+1460-0x6cb));unsigned char
+high_bit=((bcd&(0x240+3283-0xe23))>>(0x13f5+1847-0x1b28));if(low_bit>
+(0xbdd+3801-0x1aad)||high_bit>(0x24a+4160-0x1281)){at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x64\x69\x67\x69\x74\x21");*
-result=(0x16e8+3408-0x2438);return FALSE;}else{*result=((bcd&(0xa5d+404-0xbe2))+
-(((bcd&(0x14f7+1564-0x1a23))>>(0x2c7+8164-0x22a7))*(0xb22+4890-0x1e32)));return
+result=(0x1da4+291-0x1ec7);return FALSE;}else{*result=((bcd&(0x1b07+894-0x1e76))
++(((bcd&(0xc58+4593-0x1d59))>>(0x6bc+1265-0xba9))*(0x210d+1123-0x2566)));return
TRUE;}}UINT8 wms_ts_encode_timestamp(const wms_timestamp_s_type*timestamp,UINT8*
-data){sint7 i;UINT8 pos=(0x18c1+1614-0x1f0f),j;if(!wms_ts_bcd_to_int(timestamp->
-year,&j)){return(0x1e85+1562-0x249f);}data[pos]=((timestamp->year&
-(0xa1+8099-0x2035))<<(0x609+6451-0x1f38))+((timestamp->year&(0x26b7+178-0x2679))
->>(0x1ff5+17-0x2002));pos++;if(wms_ts_bcd_to_int(timestamp->month,&j)){if(j>
-(0xda6+901-0x111f)||j<(0x601+5835-0x1ccb)){at_print(LOG_DEBUG,
+data){sint7 i;UINT8 pos=(0x274+2708-0xd08),j;if(!wms_ts_bcd_to_int(timestamp->
+year,&j)){return(0x4dc+4710-0x1742);}data[pos]=((timestamp->year&
+(0x69b+4977-0x19fd))<<(0xfa0+3035-0x1b77))+((timestamp->year&(0xf80+4473-0x2009)
+)>>(0xe0b+3047-0x19ee));pos++;if(wms_ts_bcd_to_int(timestamp->month,&j)){if(j>
+(0xdb8+5204-0x2200)||j<(0x7e6+1197-0xc92)){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(0x1fb3+1645-0x2620);}}else{return(0xbb+4540-0x1277);}data[pos]=((
-timestamp->month&(0x21b+6524-0x1b88))<<(0xeea+374-0x105c))+((timestamp->month&
-(0x31b+2715-0xcc6))>>(0x8b7+3400-0x15fb));pos++;if(wms_ts_bcd_to_int(timestamp->
-day,&j)){if(j>(0x1618+2438-0x1f7f)||j<(0xdda+2002-0x15ab)){at_print(LOG_DEBUG,
+,j);return(0xc02+945-0xfb3);}}else{return(0xc+3581-0xe09);}data[pos]=((timestamp
+->month&(0x624+1806-0xd23))<<(0x38c+4097-0x1389))+((timestamp->month&
+(0x135c+2348-0x1b98))>>(0x1b8+6289-0x1a45));pos++;if(wms_ts_bcd_to_int(timestamp
+->day,&j)){if(j>(0x208b+1499-0x2647)||j<(0x982+2274-0x1263)){at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);
-return(0x13bc+2452-0x1d50);}}else{return(0x1c7f+1599-0x22be);}data[pos]=((
-timestamp->day&(0x110d+3461-0x1e83))<<(0x8c9+5904-0x1fd5))+((timestamp->day&
-(0x445+4652-0x1581))>>(0x1b19+2462-0x24b3));pos++;if(wms_ts_bcd_to_int(timestamp
-->hour,&j)){if(j>(0xd40+4467-0x1e9c)){at_print(LOG_DEBUG,
+return(0x185+7503-0x1ed4);}}else{return(0x90f+5561-0x1ec8);}data[pos]=((
+timestamp->day&(0x3ac+4657-0x15ce))<<(0xbf6+6368-0x24d2))+((timestamp->day&
+(0xa85+6257-0x2206))>>(0x1a4d+3021-0x2616));pos++;if(wms_ts_bcd_to_int(timestamp
+->hour,&j)){if(j>(0x3b6+2835-0xeb2)){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(0x76+9427-0x2549);}}else{return(0x965+4007-0x190c);}data[pos]=((
-timestamp->hour&(0x1326+2403-0x1c7a))<<(0x637+1747-0xd06))+((timestamp->hour&
-(0xd81+3198-0x190f))>>(0x805+422-0x9a7));pos++;if(wms_ts_bcd_to_int(timestamp->
-minute,&j)){if(j>(0x132+651-0x382)){at_print(LOG_DEBUG,
+);return(0x4f2+37-0x517);}}else{return(0x8b1+4955-0x1c0c);}data[pos]=((timestamp
+->hour&(0x18b3+3607-0x26bb))<<(0x87d+2933-0x13ee))+((timestamp->hour&
+(0x2a4+8668-0x2390))>>(0x1ff4+391-0x2177));pos++;if(wms_ts_bcd_to_int(timestamp
+->minute,&j)){if(j>(0x18a7+2547-0x225f)){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(0x21ba+752-0x24aa);}}else{return(0x9ff+2614-0x1435);}data[pos]=((
-timestamp->minute&(0x615+5580-0x1bd2))<<(0x433+8790-0x2685))+((timestamp->minute
-&(0x15a7+1780-0x1bab))>>(0x3d1+23-0x3e4));pos++;if(wms_ts_bcd_to_int(timestamp->
-second,&j)){if(j>(0x120+1244-0x5c1)){at_print(LOG_DEBUG,
+,j);return(0x1999+1127-0x1e00);}}else{return(0x1e12+2047-0x2611);}data[pos]=((
+timestamp->minute&(0xd41+2790-0x1818))<<(0x1063+5064-0x2427))+((timestamp->
+minute&(0xd65+3284-0x1949))>>(0x1ac4+556-0x1cec));pos++;if(wms_ts_bcd_to_int(
+timestamp->second,&j)){if(j>(0x373+7315-0x1fcb)){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(0x16cd+265-0x17d6);}}else{return(0x2ad+6173-0x1aca);}data[pos]=((
-timestamp->second&(0xc38+1662-0x12a7))<<(0x355+6468-0x1c95))+((timestamp->second
-&(0x175c+695-0x1923))>>(0x7b9+3555-0x1598));pos++;i=(sint7)timestamp->timezone;
-if(i>(0x204+1310-0x6f2)||i<-(0xb31+5991-0x2268)){at_print(LOG_DEBUG,
+,j);return(0x394+2655-0xdf3);}}else{return(0x1646+3123-0x2279);}data[pos]=((
+timestamp->second&(0x70c+1117-0xb5a))<<(0x1e20+1293-0x2329))+((timestamp->second
+&(0x1937+2595-0x226a))>>(0x8b4+4763-0x1b4b));pos++;i=(sint7)timestamp->timezone;
+if(i>(0x2125+59-0x2130)||i<-(0x84+4847-0x1343)){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(0x1863+193-0x1924);}if(i>=(0x2d1+8328-0x2359)){data[pos]=(UINT8)(((
-UINT8)(i%(0x8ed+6600-0x22ab)))<<(0x11f1+1235-0x16c0));data[pos]|=(i/
-(0x873+7760-0x26b9));}else{i*=(-(0xc03+3006-0x17c0));data[pos]=(UINT8)(((UINT8)(
-i%(0x2ca+8739-0x24e3)))<<(0x8f+987-0x466));data[pos]|=(i/(0x875+6216-0x20b3));
-data[pos]|=(0x366+9015-0x2695);}pos++;return pos;}UINT8 wms_ts_get_udh_length(
-const wms_udh_s_type*udh){UINT8 length=(0x694+7987-0x25c7);if(udh!=NULL){switch(
-udh->header_id){case WMS_UDH_CONCAT_8:length=(0xf5b+5705-0x25a3)+
-(0x1042+3738-0x1edb)+WMS_UDH_OCTETS_CONCAT8;break;case WMS_UDH_CONCAT_16:length=
-(0x3df+8817-0x264f)+(0x1e5+5529-0x177d)+WMS_UDH_OCTETS_CONCAT16;break;case
-WMS_UDH_SPECIAL_SM:length=(0x264+6708-0x1c97)+(0x141+9277-0x257d)+
-WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=(0x1125+4084-0x2118)+
-(0x91c+184-0x9d3)+WMS_UDH_OCTETS_PORT8;break;case WMS_UDH_PORT_16:length=
-(0x329+1682-0x9ba)+(0xd37+3413-0x1a8b)+WMS_UDH_OCTETS_PORT16;break;case
-WMS_UDH_SMSC_CONTROL:length=(0x352+3039-0xf30)+(0x1bf8+652-0x1e83)+udh->u.other.
-header_length;break;case WMS_UDH_SOURCE:length=(0xfc+6122-0x18e5)+
-(0x1467+1350-0x19ac)+udh->u.other.header_length;break;case WMS_UDH_WCMP:length=
-(0x188d+381-0x1a09)+(0xc45+4675-0x1e87)+udh->u.other.header_length;break;case
+,i);return(0x84a+3368-0x1572);}if(i>=(0x12a9+3475-0x203c)){data[pos]=(UINT8)(((
+UINT8)(i%(0x13e2+987-0x17b3)))<<(0x19e4+799-0x1cff));data[pos]|=(i/
+(0x781+1013-0xb6c));}else{i*=(-(0x2182+1246-0x265f));data[pos]=(UINT8)(((UINT8)(
+i%(0xbf8+3076-0x17f2)))<<(0x767+5715-0x1db6));data[pos]|=(i/(0x54c+3162-0x119c))
+;data[pos]|=(0x17d7+2846-0x22ed);}pos++;return pos;}UINT8 wms_ts_get_udh_length(
+const wms_udh_s_type*udh){UINT8 length=(0xc2a+2762-0x16f4);if(udh!=NULL){switch(
+udh->header_id){case WMS_UDH_CONCAT_8:length=(0xd00+2033-0x14f0)+
+(0x2b7+3765-0x116b)+WMS_UDH_OCTETS_CONCAT8;break;case WMS_UDH_CONCAT_16:length=
+(0x3a4+8849-0x2634)+(0x1f2+2164-0xa65)+WMS_UDH_OCTETS_CONCAT16;break;case
+WMS_UDH_SPECIAL_SM:length=(0x1872+2202-0x210b)+(0x185d+1937-0x1fed)+
+WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=(0x1f98+1645-0x2604)+
+(0xe56+4112-0x1e65)+WMS_UDH_OCTETS_PORT8;break;case WMS_UDH_PORT_16:length=
+(0xe3c+895-0x11ba)+(0x8bf+1340-0xdfa)+WMS_UDH_OCTETS_PORT16;break;case
+WMS_UDH_SMSC_CONTROL:length=(0xa+2315-0x914)+(0x1074+4380-0x218f)+udh->u.other.
+header_length;break;case WMS_UDH_SOURCE:length=(0x118+6528-0x1a97)+
+(0xaaf+4907-0x1dd9)+udh->u.other.header_length;break;case WMS_UDH_WCMP:length=
+(0x1050+837-0x1394)+(0xaca+5610-0x20b3)+udh->u.other.header_length;break;case
WMS_UDH_TEXT_FORMATING:if(!udh->u.text_formating.is_color_present){length=
-(0x98c+884-0xcff)+(0x45c+4382-0x1579)+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{
-length=(0xdba+1561-0x13d2)+(0x9+7411-0x1cfb)+WMS_UDH_OCTETS_TEXT_FORMATTING+
-(0xe24+2472-0x17cb);}break;case WMS_UDH_PRE_DEF_SOUND:length=(0x347+8288-0x23a6)
-+(0x17e0+826-0x1b19)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_USER_DEF_SOUND:
-length=(0x1972+219-0x1a4c)+(0x1464+138-0x14ed)+udh->u.user_def_sound.data_length
-+(0x1261+2015-0x1a3f);break;case WMS_UDH_PRE_DEF_ANIM:length=(0x688+7770-0x24e1)
-+(0xac1+619-0xd2b)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_LARGE_ANIM:length=
-(0x1987+2445-0x2313)+(0xe86+2196-0x1719)+WMS_UDH_LARGE_BITMAP_SIZE*
-WMS_UDH_ANIM_NUM_BITMAPS+(0x598+7649-0x2378);break;case WMS_UDH_SMALL_ANIM:
-length=(0xcf5+3131-0x192f)+(0x2c0+5919-0x19de)+WMS_UDH_SMALL_BITMAP_SIZE*
-WMS_UDH_ANIM_NUM_BITMAPS+(0x1b27+1603-0x2169);break;case WMS_UDH_LARGE_PICTURE:
-length=(0x1157+5326-0x2624)+(0x1781+3003-0x233b)+WMS_UDH_LARGE_PIC_SIZE+
-(0x620+5127-0x1a26);break;case WMS_UDH_SMALL_PICTURE:length=(0x6ed+3060-0x12e0)+
-(0x85a+3527-0x1620)+WMS_UDH_SMALL_PIC_SIZE+(0x11e5+4466-0x2356);break;case
-WMS_UDH_VAR_PICTURE:length=(0x2131+483-0x2313)+(0x1019+990-0x13f6)+(UINT8)(udh->
-u.var_picture.height*udh->u.var_picture.width/(0x13f+5723-0x1792))+
-(0x880+6646-0x2273);break;case WMS_UDH_RFC822:length=(0x2184+679-0x242a)+
-(0xbba+5383-0x20c0)+WMS_UDH_OCTETS_RFC822;break;case WMS_UDH_NAT_LANG_SS:length=
-(0x1787+2048-0x1f86)+(0x654+6262-0x1ec9)+WMS_UDH_OCTETS_NAT_LANG_SS;break;case
-WMS_UDH_NAT_LANG_LS:length=(0x78d+6828-0x2238)+(0x7f1+3802-0x16ca)+
-WMS_UDH_OCTETS_NAT_LANG_LS;break;case WMS_UDH_USER_PROMPT:length=
-(0x1a33+1092-0x1e76)+(0x7cb+883-0xb3d)+WMS_UDH_OCTETS_USER_PROMPT;break;case
-WMS_UDH_EXTENDED_OBJECT:length=(0x14bc+2448-0x1e4b)+(0x6bc+3626-0x14e5)+udh->u.
-eo.content.length;if(udh->u.eo.first_segment==TRUE){length+=
-WMS_UDH_OCTETS_EO_HEADER;}break;default:length=(0x1d70+2435-0x26f2)+
-(0x5a5+3609-0x13bd)+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=(0x17bc+1152-0x1c3c);uint32 i;if(headers==
-NULL){at_print(LOG_DEBUG,
+(0x251+7908-0x2134)+(0x1679+283-0x1793)+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{
+length=(0xd1c+5854-0x23f9)+(0x12e7+5134-0x26f4)+WMS_UDH_OCTETS_TEXT_FORMATTING+
+(0x57f+7777-0x23df);}break;case WMS_UDH_PRE_DEF_SOUND:length=
+(0x1a87+1894-0x21ec)+(0x1151+1940-0x18e4)+WMS_UDH_OCTETS_PRE_DEF;break;case
+WMS_UDH_USER_DEF_SOUND:length=(0x20d5+240-0x21c4)+(0x1827+1972-0x1fda)+udh->u.
+user_def_sound.data_length+(0xd70+6309-0x2614);break;case WMS_UDH_PRE_DEF_ANIM:
+length=(0x18d2+1213-0x1d8e)+(0x1a9a+125-0x1b16)+WMS_UDH_OCTETS_PRE_DEF;break;
+case WMS_UDH_LARGE_ANIM:length=(0x167f+35-0x16a1)+(0x318+4710-0x157d)+
+WMS_UDH_LARGE_BITMAP_SIZE*WMS_UDH_ANIM_NUM_BITMAPS+(0xb20+1004-0xf0b);break;case
+ WMS_UDH_SMALL_ANIM:length=(0x75d+2688-0x11dc)+(0x32f+3664-0x117e)+
+WMS_UDH_SMALL_BITMAP_SIZE*WMS_UDH_ANIM_NUM_BITMAPS+(0x670+2178-0xef1);break;case
+ WMS_UDH_LARGE_PICTURE:length=(0x356+648-0x5dd)+(0xdf7+4111-0x1e05)+
+WMS_UDH_LARGE_PIC_SIZE+(0x77b+6044-0x1f16);break;case WMS_UDH_SMALL_PICTURE:
+length=(0xed8+3421-0x1c34)+(0xe0b+3253-0x1abf)+WMS_UDH_SMALL_PIC_SIZE+
+(0x805+4940-0x1b50);break;case WMS_UDH_VAR_PICTURE:length=(0x5f3+2752-0x10b2)+
+(0x156+5557-0x170a)+(UINT8)(udh->u.var_picture.height*udh->u.var_picture.width/
+(0xe26+1276-0x131a))+(0xec4+2150-0x1727);break;case WMS_UDH_RFC822:length=
+(0x15f8+56-0x162f)+(0x311+5133-0x171d)+WMS_UDH_OCTETS_RFC822;break;case
+WMS_UDH_NAT_LANG_SS:length=(0x50b+6822-0x1fb0)+(0x998+6315-0x2242)+
+WMS_UDH_OCTETS_NAT_LANG_SS;break;case WMS_UDH_NAT_LANG_LS:length=
+(0x11b8+1051-0x15d2)+(0x7ed+6106-0x1fc6)+WMS_UDH_OCTETS_NAT_LANG_LS;break;case
+WMS_UDH_USER_PROMPT:length=(0xa42+535-0xc58)+(0x1686+3743-0x2524)+
+WMS_UDH_OCTETS_USER_PROMPT;break;case WMS_UDH_EXTENDED_OBJECT:length=
+(0x414+8318-0x2491)+(0x479+3676-0x12d4)+udh->u.eo.content.length;if(udh->u.eo.
+first_segment==TRUE){length+=WMS_UDH_OCTETS_EO_HEADER;}break;default:length=
+(0x11c9+299-0x12f3)+(0xeca+5671-0x24f0)+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=(0x15fb+797-0x1918);
+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(0x241+9310-0x269f);}if(num_headers>(0x16a3+827-0x19de)){length+=
-(0xc35+3509-0x19e9);for(i=(0xc22+2253-0x14ef);i<num_headers&&i<
+);return(0x90a+3891-0x183d);}if(num_headers>(0x588+3368-0x12b0)){length+=
+(0x875+6679-0x228b);for(i=(0xcf1+2144-0x1551);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=(0x284+9076-0x25f8);
+*dcs,const wms_gw_user_data_s_type*user_data){uint32 length=(0x218b+974-0x2559);
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(0x1455+1429-0x19ea);}length+=wms_ts_compute_user_data_header_length(
+);return(0x403+4782-0x16b1);}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*(0x16c8+13-0x16ce))+
-(0x1acb+2798-0x25b2))/(0x207c+1253-0x2559);}else{length+=user_data->sm_len;}
-return length;}static int wms_ts_encode_udh_concat_8(UINT8*udh){int pos=
-(0x3ba+1651-0xa2d);if(const_header->u.concat_8.total_sm==(0x112c+3114-0x1d56)||
-const_header->u.concat_8.seq_num==(0x590+3761-0x1441)||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*(0x2178+47-0x21a0))+
+(0x57b+2027-0xd5f))/(0x12b1+178-0x135b);}else{length+=user_data->sm_len;}return
+length;}static int wms_ts_encode_udh_concat_8(UINT8*udh){int pos=
+(0x893+430-0xa41);if(const_header->u.concat_8.total_sm==(0x835+3945-0x179e)||
+const_header->u.concat_8.seq_num==(0x1e58+1839-0x2587)||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(0x186d+2541-0x225a);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0x13e3+616-0x164b);}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=(0xe0c+472-0xfe4);if(const_header
-->u.concat_16.total_sm==(0x7f1+6942-0x230f)||const_header->u.concat_16.seq_num==
-(0x329+8196-0x232d)||const_header->u.concat_16.seq_num>const_header->u.concat_16
-.total_sm){at_print(LOG_DEBUG,
+wms_ts_encode_udh_concat16(UINT8*udh){int pos=(0xa17+1055-0xe36);if(const_header
+->u.concat_16.total_sm==(0x842+1223-0xd09)||const_header->u.concat_16.seq_num==
+(0x427+864-0x787)||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(0x1ec0+1660-0x253c);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0x6da+4668-0x1916);}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)>>(0x1e9+191-0x2a0));udh[pos++]=(UINT8)(
-const_header->u.concat_16.msg_ref&(0x2ad+6065-0x195f));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=(0xb9b+633-0xe14);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=(0x1859+1668-0x1edd);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=
-(0x1501+2883-0x2044);int pos=(0x17d9+3185-0x244a);udh[pos++]=(UINT8)const_header
-->u.other.header_id;udh[pos++]=const_header->u.other.header_length;for(i=
-(0x46d+507-0x668);i<const_header->u.other.header_length;i++){udh[pos++]=
+const_header->u.concat_16.msg_ref&65280)>>(0x136d+3113-0x1f8e));udh[pos++]=(
+UINT8)(const_header->u.concat_16.msg_ref&(0x15b4+205-0x1582));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=
+(0x753+2268-0x102f);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=
+(0xc08+3907-0x1b4b);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=(0xbaa+322-0xcec);int pos=(0x2a3+8278-0x22f9);udh[pos++]=(UINT8
+)const_header->u.other.header_id;udh[pos++]=const_header->u.other.header_length;
+for(i=(0x70d+5648-0x1d1d);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=
-(0x645+4566-0x181b);if(num_headers==(0xcf1+5748-0x2365))return(0xc85+67-0xcc8);
-++pos;for(i=(0x1f1c+1885-0x2679);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 (0xde6+4277-0x1e9b)
+(0x3f5+1174-0x88b);if(num_headers==(0x1124+3673-0x1f7d))return
+(0x1113+5273-0x25ac);++pos;for(i=(0x1832+3501-0x25df);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 (0x2119+317-0x2256)
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
@@ -1315,104 +1313,104 @@
case WMS_UDH_NAT_LANG_SS:pos+=wms_ts_encode_udh_nat_lang_ss(data+pos);break;case
WMS_UDH_NAT_LANG_LS:pos+=wms_ts_encode_udh_nat_lang_ls(data+pos);break;default:
pos+=wms_ts_encode_udh_other(data+pos,const_header->header_id);}}data[
-(0x21d+3925-0x1172)]=(UINT8)(pos-(0x9ac+1657-0x1024));return((UINT8)(pos-
-(0x115b+3014-0x1d20)));}UINT8 wms_ts_encode_gw_user_data(const wms_gw_dcs_s_type
+(0x498+725-0x76d)]=(UINT8)(pos-(0x383+4998-0x1708));return((UINT8)(pos-
+(0x1555+1006-0x1942)));}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=
-(0x359+8112-0x2309);UINT8 fill_bits=(0x23e1+421-0x2586);UINT16
+(0xf31+2979-0x1ad4);UINT8 fill_bits=(0x3ba+3352-0x10d2);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>(0x1710+2353-0x2041)){
-if(wms_ts_compute_user_data_header_length(user_data->num_headers,user_data->
+WMS_GW_ALPHABET_7_BIT_DEFAULT){if(user_data->num_headers>(0x91c+4817-0x1bed)){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+(0x24fd+406-0x2692);total_bits_occupied=(
-user_data_header_length+(0x1cf7+1473-0x22b7))*(0x169d+3647-0x24d4);fill_bits=(
-total_bits_occupied%(0x11fb+2023-0x19db));if(fill_bits!=(0x73d+7845-0x25e2)){
-fill_bits=(0x924+741-0xc02)-fill_bits;}user_data_length=(total_bits_occupied+
-fill_bits+(user_data->sm_len*(0x1033+3479-0x1dc3)))/(0xfcd+310-0x10fc);data[
-(0x1cd+6708-0x1c01)]=(UINT8)user_data_length;data[(0x619+5592-0x1bf0)]=
+pos);pos+=user_data_header_length+(0x330+6402-0x1c31);total_bits_occupied=(
+user_data_header_length+(0x7d3+173-0x87f))*(0x9ea+4305-0x1ab3);fill_bits=(
+total_bits_occupied%(0x1c44+2360-0x2575));if(fill_bits!=(0x23b9+346-0x2513)){
+fill_bits=(0x94d+2819-0x1449)-fill_bits;}user_data_length=(total_bits_occupied+
+fill_bits+(user_data->sm_len*(0x2426+545-0x2640)))/(0x22ec+143-0x2374);data[
+(0xfbf+5223-0x2426)]=(UINT8)user_data_length;data[(0xe5+5678-0x1712)]=
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>
-(0x9f3+1239-0xeca)){if(wms_ts_compute_user_data_header_length(user_data->
+(0x559+1129-0x9c2)){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[(0x241f+53-0x2454)]=(UINT8)(user_data->sm_len+user_data_header_length+
-(0x1b37+776-0x1e3e));pos+=user_data_header_length+(0x583+1435-0xb1d);}else{
-at_print(LOG_DEBUG,
+pos);data[(0x1813+3309-0x2500)]=(UINT8)(user_data->sm_len+
+user_data_header_length+(0x2f8+4012-0x12a3));pos+=user_data_header_length+
+(0xaa7+4304-0x1b76);}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=(0x2c9+658-0x55b),i;if(
+wms_status_e_type st=WMS_OK_S;UINT8*data;UINT8 pos=(0x478+4417-0x15b9),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,
-(0x1906+1145-0x1d7f),WMS_MAX_LEN);data[pos]=(0xb18+2785-0x15f9);data[pos]|=
-deliver->more?(0x1801+838-0x1b47):(0x1295+649-0x151a);data[pos]|=deliver->
-status_report_enabled?(0x1135+3002-0x1ccf):(0x67b+6476-0x1fc7);data[pos]|=
-deliver->user_data_header_present?(0x1f8+3050-0xda2):(0x1a5c+2257-0x232d);data[
-pos]|=deliver->reply_path_present?(0x1691+2209-0x1eb2):(0x1542+774-0x1848);pos++
-;i=wms_ts_encode_address(&deliver->address,&data[pos]);if(i==
-(0x1350+2868-0x1e84)){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==(0x795+4767-0x1a34))
-{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,
+(0x191a+569-0x1b53),WMS_MAX_LEN);data[pos]=(0x157+6652-0x1b53);data[pos]|=
+deliver->more?(0xb0f+5215-0x1f6e):(0x9a7+1321-0xecc);data[pos]|=deliver->
+status_report_enabled?(0x1a2a+2765-0x24d7):(0x1aef+2548-0x24e3);data[pos]|=
+deliver->user_data_header_present?(0x1eed+83-0x1f00):(0x1050+2404-0x19b4);data[
+pos]|=deliver->reply_path_present?(0x1d0+7944-0x2058):(0x9dc+4574-0x1bba);pos++;
+i=wms_ts_encode_address(&deliver->address,&data[pos]);if(i==(0x848+2485-0x11fd))
+{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==(0x545+8263-0x258c)){return WMS_INVALID_PARM_VALUE_S;}
+pos+=i;if(wms_ts_compute_gw_user_data_length(&deliver->dcs,&deliver->user_data)>
+WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
"\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x4c\x65\x6e\x67\x74\x68\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x63\x61\x70\x61\x63\x69\x74\x79"
);st=WMS_INVALID_USER_DATA_SIZE_S;}else{i=wms_ts_encode_gw_user_data(&deliver->
dcs,&deliver->user_data,data+pos);pos+=i;}raw_ts_data_ptr->tpdu_type=
WMS_TPDU_DELIVER;raw_ts_data_ptr->len=pos;return st;}UINT8
wms_ts_encode_relative_time(const wms_timestamp_s_type*timestamp){uint32 i;UINT8
- v=(0x1194+5379-0x2697),j;if(timestamp!=NULL){if(!wms_ts_bcd_to_int(timestamp->
+ v=(0x617+4649-0x1840),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*(0xfec+4329-0x1f68);if(!wms_ts_bcd_to_int(timestamp->month,&j)){at_print(
+);}i=j*(0x291+300-0x250);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*(0xd71+3576-0x1b4b);if(!wms_ts_bcd_to_int(timestamp->day,&j)){
+,j);}i=i+j*(0x8d1+1986-0x1075);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>(0x1d04+1212-0x21a2)){v=(UINT8)((i+(0xe5+2526-0xabd))/
-(0x499+1855-0xbd1)+(0xcd+6696-0x1a35));}else if(i>=(0x1c2+4277-0x1276)){v=(UINT8
-)(i+(0xf58+4468-0x2026));}else{if(!wms_ts_bcd_to_int(timestamp->day,&j)){
++=j;if(i>(0x5d+9538-0x2581)){v=(UINT8)((i+(0x855+2725-0x12f4))/
+(0xa27+2698-0x14aa)+(0xfc2+5468-0x245e));}else if(i>=(0x1516+256-0x1615)){v=(
+UINT8)(i+(0x1374+5059-0x2691));}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*(0x58d+3565-0x1362)*(0xba9+363-0xcd8);if(!wms_ts_bcd_to_int(timestamp->hour,&
-j)){at_print(LOG_DEBUG,
+=j*(0x1025+5806-0x26bb)*(0x837+7593-0x25a4);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*(0x971+3927-0x188c);if(!wms_ts_bcd_to_int(timestamp->minute,&j)){
+);}i=i+j*(0x38a+4318-0x142c);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>(0x21a5+1227-0x2664)*(0xaba+3125-0x16b3)){v=(UINT8)((i-((
-(0x96c+1910-0x10d6)*(0xe25+5616-0x23d9))+(0x272+492-0x441)))/
-(0x19da+2846-0x24da)+(0x113+1989-0x849));}else{v=(UINT8)((i+(0x76+7832-0x1f0a))/
-(0xa79+3677-0x18d1)-(0x830+2889-0x1378));}}}else{at_print(LOG_DEBUG,
+,j);}i+=j;if(i>(0x228d+440-0x2439)*(0x78d+7983-0x2680)){v=(UINT8)((i-((
+(0x3a8+4716-0x1608)*(0xd26+2676-0x175e))+(0xc9d+1178-0x111a)))/
+(0x5ac+3084-0x119a)+(0x777+1206-0xb9e));}else{v=(UINT8)((i+(0x114f+2149-0x19b0))
+/(0x9a3+6948-0x24c2)-(0x78+3335-0xd7e));}}}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=(0x183+6048-0x1923);switch(validity->format){
+validity,UINT8*data){UINT8 i,pos=(0xeb7+1411-0x143a);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==(0x9a4+1713-0x1055)){at_print(LOG_DEBUG,
+if(i==(0xa34+3284-0x1708)){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=(0x16b2+2343-0x1fd9),i;if(submit==NULL||raw_ts_data_ptr==NULL){
+UINT8 pos=(0x13b2+1893-0x1b17),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,
-(0x994+7077-0x2539),WMS_MAX_LEN);data[pos]=(0x5bc+7430-0x22c1);data[pos]|=submit
-->reject_duplicates?(0x174+5205-0x15c5):(0x1741+2936-0x22b9);if(submit->validity
-.format>(0x18c2+558-0x1aed)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}data[pos]
-|=submit->validity.format<<(0x6d+3345-0xd7b);data[pos]|=submit->
-status_report_enabled?(0x5c1+686-0x84f):(0x149f+593-0x16f0);data[pos]|=submit->
-user_data_header_present?(0x959+2667-0x1384):(0x13b7+4253-0x2454);data[pos]|=
-submit->reply_path_present?(0xc04+774-0xe8a):(0xeda+4349-0x1fd7);pos++;data[pos]
-=(UINT8)submit->message_reference;pos++;i=wms_ts_encode_address(&submit->address
-,&data[pos]);if(i==(0x1ba4+909-0x1f31)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;
+(0x666+6225-0x1eb7),WMS_MAX_LEN);data[pos]=(0xd29+1838-0x1456);data[pos]|=submit
+->reject_duplicates?(0x1738+3102-0x2352):(0x2e0+8284-0x233c);if(submit->validity
+.format>(0x3c5+8354-0x2464)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}data[pos]
+|=submit->validity.format<<(0x35f+6666-0x1d66);data[pos]|=submit->
+status_report_enabled?(0x771+5056-0x1b11):(0x1f6+4853-0x14eb);data[pos]|=submit
+->user_data_header_present?(0x3b1+3163-0xfcc):(0xc4f+2186-0x14d9);data[pos]|=
+submit->reply_path_present?(0x20fa+859-0x23d5):(0x799+20-0x7ad);pos++;data[pos]=
+(UINT8)submit->message_reference;pos++;i=wms_ts_encode_address(&submit->address,
+&data[pos]);if(i==(0x1a67+2177-0x22e8)){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)>
@@ -1423,21 +1421,21 @@
WMS_TPDU_SUBMIT;raw_ts_data_ptr->len=pos;return st;}wms_status_e_type
wms_ts_encode_status_report(const wms_gw_status_report_s_type*status_report,
T_zUfiSms_RawTsData*raw_ts_data_ptr){wms_status_e_type st=WMS_OK_S;UINT8*data;
-UINT8 pos=(0xa3d+2098-0x126f),i;if(status_report==NULL||raw_ts_data_ptr==NULL){
+UINT8 pos=(0x709+7137-0x22ea),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,
-(0xa2c+6118-0x2212),WMS_MAX_LEN);data[pos]=(0xb62+3199-0x17d1);data[pos]|=
-status_report->more?(0x1286+2084-0x1aaa):(0x4ba+2989-0x1063);data[pos]|=
-status_report->status_report_qualifier?(0x683+143-0x6f2):(0x14e9+3021-0x20b6);
-data[pos]|=status_report->user_data_header_present?(0xea1+1780-0x1555):
-(0x1920+259-0x1a23);pos++;data[pos]=(UINT8)status_report->message_reference;pos
+(0xa74+3436-0x17e0),WMS_MAX_LEN);data[pos]=(0x4fd+1153-0x96e);data[pos]|=
+status_report->more?(0x1f6+283-0x311):(0x309+2015-0xae4);data[pos]|=
+status_report->status_report_qualifier?(0x6e1+4482-0x1843):(0x236+3783-0x10fd);
+data[pos]|=status_report->user_data_header_present?(0x344+8755-0x2537):
+(0xf09+2752-0x19c9);pos++;data[pos]=(UINT8)status_report->message_reference;pos
++;i=wms_ts_encode_address(&status_report->address,&data[pos]);if(i==
-(0x1bbf+541-0x1ddc)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0xa3a+2104-0x1272)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
wms_ts_encode_timestamp(&status_report->timestamp,data+pos);if(i==
-(0x19dc+2954-0x2566)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0xdc9+6249-0x2632)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
wms_ts_encode_timestamp(&status_report->discharge_time,data+pos);if(i==
-(0x12a0+4777-0x2549)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;data[pos]=
+(0xa0d+809-0xd36)){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->
@@ -1452,7 +1450,7 @@
T_zUfiSms_RawTsData*ptRawTsData){wms_status_e_type st=WMS_OK_S;const
wms_gw_pp_ts_data_s_type*msg;if(ptClientTsData==NULL||ptRawTsData==NULL){return
WMS_NULL_PTR_S;}msg=&ptClientTsData->u.gw_pp;switch(ptClientTsData->format){
-#if (0x280+6555-0x1c1b)
+#if (0xa1+9503-0x25c0)
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;
@@ -1462,7 +1460,7 @@
ptRawTsData);break;case WMS_TPDU_SUBMIT:st=wms_ts_encode_submit(&msg->u.submit,
ptRawTsData);break;case WMS_TPDU_STATUS_REPORT:st=wms_ts_encode_status_report(&
msg->u.status_report,ptRawTsData);break;
-#if (0x147b+3710-0x22f9)
+#if (0x880+3927-0x17d7)
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
@@ -1479,363 +1477,363 @@
"\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=(0x176c+3996-0x2708);UINT16 pos=
-(0xa66+450-0xc28);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+out_len_max,UINT16 shift,UINT8*out){int i=(0x1e43+625-0x20b4);UINT16 pos=
+(0x4e4+3243-0x118f);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(0xc2d+2559-0x162c);}if(shift!=(0xe69+6234-0x26c3))pos=pos+
-(0x11d9+4626-0x23ea);if(shift==(0xdf4+1969-0x159e)){out[(0xf47+3459-0x1cca)]=in[
-(0x9b+4696-0x12f3)]>>(0x57b+1810-0xc8c);shift=(0x17d7+471-0x19ae);i=
-(0x14e5+3548-0x22c0);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]
-<<shift)&(0x2119+1081-0x24d3);if(pos!=(0xe16+4968-0x217e)){
-#if (0x47f+7449-0x2197)
-if(shift==(0x19aa+152-0x1a42)){out[i]|=(0xbc3+5152-0x1fe3);}else{out[i]|=in[pos-
-(0xdb+5264-0x156a)]>>((0x1865+77-0x18aa)-shift);}
+);return(0x11a+3567-0xf09);}if(shift!=(0x510+8639-0x26cf))pos=pos+
+(0x1627+150-0x16bc);if(shift==(0xb2b+700-0xde0)){out[(0x4ad+2610-0xedf)]=in[
+(0x8b9+5883-0x1fb4)]>>(0x58c+8043-0x24f6);shift=(0x1866+2486-0x221c);i=
+(0x13c1+3517-0x217d);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]
+<<shift)&(0x10a+3394-0xdcd);if(pos!=(0xc+7513-0x1d65)){
+#if (0xba2+5286-0x2047)
+if(shift==(0x1a98+837-0x1ddd)){out[i]|=(0x94d+3519-0x170c);}else{out[i]|=in[pos-
+(0x1892+1188-0x1d35)]>>((0x118+2065-0x921)-shift);}
#else
-out[i]|=in[pos-(0x24c4+443-0x267e)]>>((0x74b+7710-0x2561)-shift);
+out[i]|=in[pos-(0x991+1605-0xfd5)]>>((0xdbf+2174-0x1635)-shift);
#endif
-}shift++;if(shift==(0x5f9+2388-0xf46)){shift=(0x29+9519-0x2558);i++;if(i>=
+}shift++;if(shift==(0x1f0a+964-0x22c7)){shift=(0x111+411-0x2ac);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]>>(0x7d3+4299-0x189d);}}return(UINT8)(pos);}UINT8
+);break;}out[i]=in[pos]>>(0x5ca+6378-0x1eb3);}}return(UINT8)(pos);}UINT8
wms_ts_decode_address(const UINT8*data,wms_address_s_type*addr){UINT8 i,pos=
-(0x5dc+2882-0x111e);i=data[pos];if(i>WMS_GW_ADDRESS_MAX){at_print(LOG_DEBUG,
+(0xd49+5497-0x22c2);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(0x95b+3225-0x15f4);}addr->number_of_digits=i;pos++;addr->digit_mode=
+,i);return(0x1fcd+831-0x230c);}addr->number_of_digits=i;pos++;addr->digit_mode=
WMS_DIGIT_MODE_4_BIT;addr->number_type=(wms_number_type_e_type)((data[pos]&
-(0x8bc+196-0x910))>>(0x199b+2101-0x21cc));addr->number_plan=(
-wms_number_plan_e_type)(data[pos]&(0x6d3+5418-0x1bee));pos++;if(addr->
-number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0x45f+6450-0x1d91);
+(0x4e1+8222-0x248f))>>(0xd35+3787-0x1bfc));addr->number_plan=(
+wms_number_plan_e_type)(data[pos]&(0x1af6+1120-0x1f47));pos++;if(addr->
+number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0xc49+6298-0x24e3);
addr->digit_mode=WMS_DIGIT_MODE_8_BIT;bytes_increment=(addr->number_of_digits+
-(0xb24+6083-0x22e6))/(0xbf9+261-0xcfc);addr->number_of_digits=(UINT8)(addr->
-number_of_digits*(0x10e6+881-0x1453)/(0x9f7+2605-0x141d));(void)
+(0x6a8+4316-0x1783))/(0xfb2+26-0xfca);addr->number_of_digits=(UINT8)(addr->
+number_of_digits*(0x125d+3338-0x1f63)/(0xc9f+5390-0x21a6));(void)
wms_ts_unpack_gw_7_bit_chars(&data[pos],addr->number_of_digits,
-WMS_GW_ADDRESS_MAX,(0x187+5125-0x158c),addr->digits);pos+=bytes_increment;}else{
-for(i=(0xe90+2538-0x187a);i<addr->number_of_digits;i++){addr->digits[i++]=data[
-pos]&(0x1fd+7857-0x209f);addr->digits[i]=(data[pos]&(0x4c4+3461-0x1159))>>
-(0x5f2+4027-0x15a9);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data
-,wms_gw_dcs_s_type*dcs){UINT8 pos=(0xf8c+953-0x1345);UINT8 i;if(data==NULL||dcs
+WMS_GW_ADDRESS_MAX,(0x1fa2+1874-0x26f4),addr->digits);pos+=bytes_increment;}else
+{for(i=(0x6cc+1011-0xabf);i<addr->number_of_digits;i++){addr->digits[i++]=data[
+pos]&(0x9d7+4424-0x1b10);addr->digits[i]=(data[pos]&(0x21a+889-0x4a3))>>
+(0x88a+5078-0x1c5c);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data
+,wms_gw_dcs_s_type*dcs){UINT8 pos=(0xbe0+4427-0x1d2b);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(0x444+1112-0x89c);}dcs->msg_class=WMS_MESSAGE_CLASS_NONE;dcs->
+);return(0x139f+3123-0x1fd2);}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]&(0x512+2756-0xf16))>>(0x1386+4346-0x247a);
-switch(i){case(0xe7c+111-0xeeb):dcs->is_compressed=data[pos]&(0x41b+490-0x5e5);
-if(data[pos]&(0x194+1016-0x57c)){dcs->msg_class=(wms_message_class_e_type)(data[
-pos]&(0x434+2811-0xf2c));}else{dcs->msg_class=WMS_MESSAGE_CLASS_NONE;}dcs->
-alphabet=(wms_gw_alphabet_e_type)((data[pos]&(0x10ac+3966-0x201e))>>
-(0x953+3223-0x15e8));break;case(0xdf0+3286-0x1ac3):if((data[pos]&
-(0xb4b+646-0xda1))==(0x6bb+6367-0x1f6a)){dcs->alphabet=(data[pos]&
-(0x35a+1835-0xa81))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
-msg_class=(wms_message_class_e_type)(data[pos]&(0x1993+1808-0x20a0));dcs->
+dcs->is_compressed=FALSE;i=(data[pos]&(0xa5c+912-0xd2c))>>(0xc31+3950-0x1b99);
+switch(i){case(0x849+2127-0x1098):dcs->is_compressed=data[pos]&
+(0x474+2211-0xcf7);if(data[pos]&(0x3ad+6479-0x1cec)){dcs->msg_class=(
+wms_message_class_e_type)(data[pos]&(0xa89+4440-0x1bde));}else{dcs->msg_class=
+WMS_MESSAGE_CLASS_NONE;}dcs->alphabet=(wms_gw_alphabet_e_type)((data[pos]&
+(0xcdd+251-0xdcc))>>(0xc2d+2105-0x1464));break;case(0xb6b+4350-0x1c66):if((data[
+pos]&(0x195+468-0x339))==(0xdb2+6333-0x263f)){dcs->alphabet=(data[pos]&
+(0x222c+422-0x23ce))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
+msg_class=(wms_message_class_e_type)(data[pos]&(0xdb5+2190-0x1640));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]&
-(0x114f+585-0x1368))==(0x3f7+7707-0x2212)){dcs->msg_waiting=
+(0x994+6412-0x2270))==(0x16c3+3276-0x238f)){dcs->msg_waiting=
WMS_GW_MSG_WAITING_DISCARD;dcs->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}else if(
-(data[pos]&(0x66d+5140-0x1a51))==(0x8fc+3209-0x1575)){dcs->msg_waiting=
+(data[pos]&(0x132b+3892-0x222f))==(0x1039+2785-0x1b0a)){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]&(0x1c16+1574-0x2234))?TRUE:FALSE;dcs->
-msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x299+9249-0x26b7))
+msg_waiting_active=(data[pos]&(0x68d+2831-0x1194))?TRUE:FALSE;dcs->
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x178f+904-0x1b14))
;}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=(0x41b+5400-0x1933),i,j;if(
+UINT8*data,wms_timestamp_s_type*timestamp){UINT8 pos=(0x89f+2663-0x1306),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(0x375+4962-0x16d7);}i=((data[pos]&(0x594+5380-0x1a89))<<
-(0x16+3570-0xe04))+((data[pos]&(0x202d+1655-0x25b4))>>(0x1b6c+256-0x1c68));if(!
+);return(0x210a+866-0x246c);}i=((data[pos]&(0x115+1914-0x880))<<
+(0x772+7673-0x2567))+((data[pos]&(0x184+2028-0x880))>>(0x1560+1194-0x1a06));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=(0x467+3618-0x1289);}timestamp->year=i;pos++;i=((data[pos]&
-(0x8da+306-0x9fd))<<(0x4f0+8118-0x24a2))+((data[pos]&(0x1858+796-0x1a84))>>
-(0xd91+5480-0x22f5));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1099+2459-0x1a28)||j<
-(0xdbf+5667-0x23e1)){at_print(LOG_DEBUG,
+,data[pos]);i=(0x720+312-0x858);}timestamp->year=i;pos++;i=((data[pos]&
+(0xaa6+3401-0x17e0))<<(0x1e1f+820-0x214f))+((data[pos]&(0x1440+4283-0x240b))>>
+(0x1720+3743-0x25bb));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xef4+5160-0x2310)||j<
+(0x129c+4406-0x23d1)){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=(0x864+238-0x951);}}else{at_print(LOG_DEBUG,
+,j);i=(0x1665+2918-0x21ca);}}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=(0x1e3+2473-0xb8b);}timestamp->month=i;pos++;i=((data[pos]&
-(0xa3f+2756-0x14f4))<<(0x1609+3090-0x2217))+((data[pos]&(0x559+5302-0x191f))>>
-(0xfa8+913-0x1335));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x151+3008-0xcf2)||j<
-(0x1052+570-0x128b)){at_print(LOG_DEBUG,
+,data[pos]);i=(0x13ca+2333-0x1ce6);}timestamp->month=i;pos++;i=((data[pos]&
+(0x2101+865-0x2453))<<(0xbbf+5779-0x224e))+((data[pos]&(0x1ca0+595-0x1e03))>>
+(0x1c62+1889-0x23bf));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xe80+1133-0x12ce)||j<
+(0x189+1073-0x5b9)){at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);i=
-(0x1b85+493-0x1d71);}}else{at_print(LOG_DEBUG,
+(0x1587+1587-0x1bb9);}}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=(0x1102+4781-0x23ae);}timestamp->day=i;pos++;i=((data[pos]&
-(0xce5+2306-0x15d8))<<(0x9e3+1367-0xf36))+((data[pos]&(0x10e5+5212-0x2451))>>
-(0x5a8+2911-0x1103));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xb35+5311-0x1fdd)){
+,data[pos]);i=(0xa82+2733-0x152e);}timestamp->day=i;pos++;i=((data[pos]&
+(0x1d05+211-0x1dc9))<<(0x1e36+1511-0x2419))+((data[pos]&(0x58c+7033-0x2015))>>
+(0x2054+1419-0x25db));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xd8b+4341-0x1e69)){
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=(0xef+9090-0x2471);}}else{at_print(LOG_DEBUG,
+,j);i=(0x159c+941-0x1949);}}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=(0xe84+367-0xff3);}timestamp->hour=i;pos++;i=((data[pos]&
-(0x65+476-0x232))<<(0x1137+1025-0x1534))+((data[pos]&(0xab2+1003-0xdad))>>
-(0x153b+645-0x17bc));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xe85+21-0xe5f)){at_print
-(LOG_DEBUG,
+,data[pos]);i=(0x1596+277-0x16ab);}timestamp->hour=i;pos++;i=((data[pos]&
+(0x3a5+1480-0x95e))<<(0x125f+1466-0x1815))+((data[pos]&(0x846+5774-0x1de4))>>
+(0x1ce5+2592-0x2701));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xd2c+3474-0x1a83)){
+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=(0x6bb+6718-0x20f9);}}else{at_print(LOG_DEBUG,
+,j);i=(0x35a+6472-0x1ca2);}}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=(0xe2f+881-0x11a0);}timestamp->minute=i;pos++;i=((data[pos]&
-(0x18b1+2718-0x2340))<<(0x19e7+1513-0x1fcc))+((data[pos]&(0x1239+197-0x120e))>>
-(0x443+7267-0x20a2));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x2fd+6069-0x1a77)){
+,data[pos]);i=(0x1280+3225-0x1f19);}timestamp->minute=i;pos++;i=((data[pos]&
+(0x5ca+4696-0x1813))<<(0x97c+3530-0x1742))+((data[pos]&(0xc4a+412-0xcf6))>>
+(0x251+8202-0x2257));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1b9+7519-0x1edd)){
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=(0x241c+53-0x2451);}}else{at_print(LOG_DEBUG,
+,i);i=(0x1527+1686-0x1bbd);}}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=(0xd2d+1408-0x12ad);}timestamp->second=i;pos++;if(data[pos]&
-(0x3db+307-0x506)){timestamp->timezone=(data[pos]&(0xb28+7040-0x26a1))*
-(0x10e4+3380-0x1e0e)+((data[pos]&(0x71d+6329-0x1ee6))>>(0xa7+3337-0xdac));
-timestamp->timezone*=(-(0x84f+4634-0x1a68));}else{timestamp->timezone=(sint7)((
-data[pos]&(0x178f+1110-0x1bd6))*(0x809+4760-0x1a97)+((data[pos]&
-(0x195+436-0x259))>>(0xbd8+3626-0x19fe)));}if(timestamp->timezone>
-(0x16dc+3803-0x2587)||timestamp->timezone<-(0xb2d+1837-0x122a)){at_print(
+,data[pos]);i=(0x850+2156-0x10bc);}timestamp->second=i;pos++;if(data[pos]&
+(0x959+3844-0x1855)){timestamp->timezone=(data[pos]&(0x503+6230-0x1d52))*
+(0x1d7+9251-0x25f0)+((data[pos]&(0x622+8622-0x26e0))>>(0x66+9413-0x2527));
+timestamp->timezone*=(-(0x304+9128-0x26ab));}else{timestamp->timezone=(sint7)((
+data[pos]&(0x39+6889-0x1b13))*(0x9b5+1962-0x1155)+((data[pos]&
+(0x1b22+1348-0x1f76))>>(0x1025+555-0x124c)));}if(timestamp->timezone>
+(0x931+3720-0x1789)||timestamp->timezone<-(0x155f+2977-0x20d0)){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=(0xa0a+309-0xb3f);}pos++;return pos;}
-static UINT8 wms_ts_decode_udh_concat_8(const UINT8*udh,wms_udh_s_type*
-header_ptr){UINT8 pos=(0x4ad+1391-0xa1c);if(udh==NULL||header_ptr==NULL){
+,timestamp->timezone);timestamp->timezone=(0x13c8+1015-0x17bf);}pos++;return pos
+;}static UINT8 wms_ts_decode_udh_concat_8(const UINT8*udh,wms_udh_s_type*
+header_ptr){UINT8 pos=(0x18b4+811-0x1bdf);if(udh==NULL||header_ptr==NULL){
at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x55a+8415-0x2639);}if(udh[pos]<(0x2135+1190-0x25d8)){at_print(LOG_DEBUG,
+(0x844+2121-0x108d);}if(udh[pos]<(0x119c+4855-0x2490)){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(0xcfb+2060-0x1507);}if(udh[pos+(0x91+9107-0x2422)]==
-(0x1b0a+1077-0x1f3f)||udh[pos+(0xe3a+5994-0x25a1)]>udh[pos+(0x14fd+2735-0x1faa)]
-){at_print(LOG_DEBUG,
+,udh[pos]);return(0xc7f+3441-0x19f0);}if(udh[pos+(0x878+2031-0x1065)]==
+(0x8b3+3651-0x16f6)||udh[pos+(0x51b+3620-0x133c)]>udh[pos+(0x407+7196-0x2021)]){
+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(0x1019+1913-0x1792);}pos++;header_ptr->header_id=WMS_UDH_CONCAT_8;
+);return(0xa77+471-0xc4e);}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[(0xe0d+2407-0x1774)]
-+(0x169b+1580-0x1cc6));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x31b+9150-0x26d9);if(udh==NULL||
+pos++];header_ptr->u.concat_8.seq_num=udh[pos++];return(udh[(0xd9f+4735-0x201e)]
++(0xe3a+1059-0x125c));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
+wms_udh_s_type*header_ptr){UINT8 pos=(0x212c+228-0x2210);if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xb71+4901-0x1e96);}if(
-udh[pos]<(0x1442+4468-0x25b2)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1154+5153-0x2575);}if(
+udh[pos]<(0x7a8+4947-0x1af7)){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(0x69a+6471-0x1fe1);}if(udh[pos+(0x302+4597-0x14f4)]==
-(0x96b+3702-0x17e1)||udh[pos+(0x106+3179-0xd6d)]==(0x868+667-0xb03)||udh[pos+
-(0x21c5+323-0x2304)]>udh[pos+(0x4f1+8181-0x24e3)])return(0xc1+2984-0xc69);
+,udh[pos]);return(0xce2+224-0xdc2);}if(udh[pos+(0x14c+6504-0x1ab1)]==
+(0x1561+4331-0x264c)||udh[pos+(0x989+1429-0xf1a)]==(0x1162+1057-0x1583)||udh[pos
++(0x1843+3784-0x2707)]>udh[pos+(0x1c43+1839-0x236f)])return(0x4b8+2232-0xd70);
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<<(0x86+8489-0x21a7))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[pos
-++];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[(0x105+3267-0xdc8)]+
-(0x99c+3926-0x18f1));}static UINT8 wms_ts_udh_decode_first_seg_check(const UINT8
- len,const UINT8*data,UINT8*is_first_segment_ptr){UINT8 pos=(0x90c+2225-0x11bd);
-UINT8 num_headers=(0x150f+261-0x1614);UINT8 udhl=(0x1040+4958-0x239e);UINT8 iedl
-=(0x5e8+2077-0xe05);UINT8 iei=(0x194+3226-0xe2e);*is_first_segment_ptr=TRUE;if(
-data==NULL||data[pos]==(0x33b+4288-0x13fb)||len==(0x1cd0+1473-0x2291)){at_print(
+msg_ref<<(0x6a6+3022-0x126c))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[
+pos++];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[(0xcdb+365-0xe48)]+
+(0x977+3638-0x17ac));}static UINT8 wms_ts_udh_decode_first_seg_check(const UINT8
+ len,const UINT8*data,UINT8*is_first_segment_ptr){UINT8 pos=(0xcfd+3963-0x1c78);
+UINT8 num_headers=(0x17a3+2703-0x2232);UINT8 udhl=(0x14ea+705-0x17ab);UINT8 iedl
+=(0x765+4460-0x18d1);UINT8 iei=(0x984+3524-0x1748);*is_first_segment_ptr=TRUE;if
+(data==NULL||data[pos]==(0x805+1832-0xf2d)||len==(0xaf+2675-0xb22)){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+(0x3e4+3834-0x12dd)];if(iei==
-WMS_UDH_CONCAT_16){if(data[pos+(0x1e0+5048-0x1593)]!=(0x896+5469-0x1df2)){
+WMS_MAX_UD_HEADERS)){iei=data[pos];iedl=data[pos+(0x141f+4216-0x2496)];if(iei==
+WMS_UDH_CONCAT_16){if(data[pos+(0x52f+4660-0x175e)]!=(0x193d+85-0x1991)){
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+=((0x1e29+747-0x2112)+iedl);}}return TRUE;}static UINT8
+;pos+=((0xc75+6548-0x2607)+iedl);}}return TRUE;}static UINT8
wms_ts_decode_udh_special_sm(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x413+2305-0xd14);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1860+3218-0x24f2);}if(
-udh[pos]<(0x5f5+5400-0x1b0b)){at_print(LOG_DEBUG,
+pos=(0x134b+2046-0x1b49);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x183d+3739-0x26d8);}if(
+udh[pos]<(0x19ab+2903-0x2500)){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(0x4b1+4128-0x14d1);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x5af+5482-0x1b19);}pos++;header_ptr->header_id=
WMS_UDH_SPECIAL_SM;header_ptr->u.special_sm.msg_waiting=(
-wms_gw_msg_waiting_e_type)((udh[pos]>>(0x842+5063-0x1c02)==(0x1c80+254-0x1d7e))?
+wms_gw_msg_waiting_e_type)((udh[pos]>>(0x135+4488-0x12b6)==(0x775+6299-0x2010))?
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++]&(0xac0+7161-0x263a)
-);header_ptr->u.special_sm.message_count=udh[pos++];return(udh[
-(0x436+5327-0x1905)]+(0x9df+6357-0x22b3));}static UINT8 wms_ts_decode_udh_port_8
-(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0xb4+3777-0xf75);if(udh==
-NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xffa+5209-0x2453);}if(
-udh[pos]<(0x305+8230-0x2329)){at_print(LOG_DEBUG,
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(udh[pos++]&
+(0x143d+4149-0x23f3));header_ptr->u.special_sm.message_count=udh[pos++];return(
+udh[(0x15f0+3680-0x2450)]+(0x1508+2108-0x1d43));}static UINT8
+wms_ts_decode_udh_port_8(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
+(0x1c04+78-0x1c52);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xdab+1914-0x1525);}if(
+udh[pos]<(0x252+197-0x315)){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(0x2167+1238-0x263d);}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[(0x1747+2690-0x21c9)]+(0x4c1+3486-0x125e));}
-static UINT8 wms_ts_decode_udh_port16(const UINT8*udh,wms_udh_s_type*header_ptr)
-{UINT8 pos=(0x10ea+3467-0x1e75);if(udh==NULL||header_ptr==NULL){at_print(
-LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x14bc+605-0x1719);}if(udh[pos]<(0x9cc+3483-0x1763)){at_print(LOG_DEBUG,
+,udh[pos]);return(0x4df+3218-0x1171);}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[(0x6eb+1201-0xb9c)]+(0x1715+3811-0x25f7));}static UINT8
+wms_ts_decode_udh_port16(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
+(0xe81+5838-0x254f);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x380+4511-0x151f);}if(
+udh[pos]<(0x159b+815-0x18c6)){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(0x986+7157-0x257b);}header_ptr->header_id=WMS_UDH_PORT_16;pos
+,udh[pos]);return(0x1ead+132-0x1f31);}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<<(0xfbf+5829-0x267c))|udh[pos++];
+UINT16)(header_ptr->u.wap_16.dest_port<<(0x1272+2647-0x1cc1))|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<<(0x313+2630-0xd51))|udh[pos++];return(udh[
-(0x39+9924-0x26fd)]+(0x2f8+5560-0x18af));}static UINT8
+)(header_ptr->u.wap_16.orig_port<<(0x1521+1584-0x1b49))|udh[pos++];return(udh[
+(0x1784+1689-0x1e1d)]+(0x1a8b+2718-0x2528));}static UINT8
wms_ts_decode_udh_text_formatting(const UINT8*udh,wms_udh_s_type*header_ptr){
-UINT8 pos=(0x2ba+2284-0xba6);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1c79+191-0x1d38);}if(
-udh[pos]<(0xdb8+4453-0x1f1a)){at_print(LOG_DEBUG,
+UINT8 pos=(0x128f+799-0x15ae);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG
+,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x484+488-0x66c);}if(udh
+[pos]<(0x14bc+1642-0x1b23)){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(0x150d+4444-0x2669);}if(udh[pos]>=(0x1f28+1702-0x25ca)){
+,udh[pos]);return(0x8f2+131-0x975);}if(udh[pos]>=(0x14aa+2690-0x1f28)){
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]&
-(0x192+5170-0x15c1));header_ptr->u.text_formating.font_size=(
-wms_udh_font_size_e_type)((udh[pos]&(0xefd+2818-0x19f3))>>(0x1cd8+1959-0x247d));
-header_ptr->u.text_formating.style_bold=(udh[pos]&(0xde2+4270-0x1e80))>>
-(0x79c+4119-0x17af);header_ptr->u.text_formating.style_italic=(udh[pos]&
-(0x1062+566-0x1278))>>(0x570+7313-0x21fc);header_ptr->u.text_formating.
-style_underlined=(udh[pos]&(0x20d3+261-0x2198))>>(0x913+6375-0x21f4);header_ptr
-->u.text_formating.style_strikethrough=(udh[pos]&(0x389+179-0x3bc))>>
-(0x7f9+4913-0x1b23);pos++;if(header_ptr->u.text_formating.is_color_present){
+(0x1052+3498-0x1df9));header_ptr->u.text_formating.font_size=(
+wms_udh_font_size_e_type)((udh[pos]&(0x714+4350-0x1806))>>(0x72a+592-0x978));
+header_ptr->u.text_formating.style_bold=(udh[pos]&(0xa43+5947-0x216e))>>
+(0xcf2+4154-0x1d28);header_ptr->u.text_formating.style_italic=(udh[pos]&
+(0x5c9+4780-0x1855))>>(0xa5a+2742-0x150b);header_ptr->u.text_formating.
+style_underlined=(udh[pos]&(0xc88+2978-0x17ea))>>(0x549+8255-0x2582);header_ptr
+->u.text_formating.style_strikethrough=(udh[pos]&(0xbfa+4062-0x1b58))>>
+(0x958+2853-0x1476);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]&(0xcf2+4650-0x1f0d));header_ptr->u.text_formating.text_color_background
-=(wms_udh_text_color_e_type)((udh[pos]&(0x686+7793-0x2407))>>(0xdc9+5023-0x2164)
-);pos++;}return(udh[(0x183+376-0x2fb)]+(0x41f+8927-0x26fd));}static UINT8
+udh[pos]&(0xb90+434-0xd33));header_ptr->u.text_formating.text_color_background=(
+wms_udh_text_color_e_type)((udh[pos]&(0x6a2+1250-0xa94))>>(0xf4+1354-0x63a));pos
+++;}return(udh[(0x781+3608-0x1599)]+(0xd7f+1526-0x1374));}static UINT8
wms_ts_decode_udh_pre_def_sound(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
- pos=(0x1028+2487-0x19df);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xf6f+1-0xf70);}if(udh[
-pos]<(0x950+3140-0x1592)){at_print(LOG_DEBUG,
+ pos=(0x80d+3169-0x146e);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x11ca+3253-0x1e7f);}if(
+udh[pos]<(0xe1c+1518-0x1408)){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(0x125+5178-0x155f);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x3d9+7996-0x2315);}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[(0xe41+1919-0x15c0)]+
-(0x58b+2522-0xf64));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8*
-udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x842+4324-0x1926),j;if(udh==NULL||
+->u.pre_def_sound.snd_number=udh[pos++];return(udh[(0x1f0a+671-0x21a9)]+
+(0x1afb+2133-0x234f));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8
+*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0xb76+6484-0x24ca),j;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x14a6+1860-0x1bea);}if(
-udh[pos]==(0x17ed+775-0x1af4)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x118+6971-0x1c53);}if(
+udh[pos]==(0x633+5780-0x1cc7)){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(0x7a0+7836-0x263c);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
-header_ptr->u.user_def_sound.data_length=udh[pos++]-(0x990+4110-0x199d);
+);return(0x1ce1+1307-0x21fc);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
+header_ptr->u.user_def_sound.data_length=udh[pos++]-(0x109d+5705-0x26e5);
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(0xf0b+5626-0x2505);}memset(header_ptr->u.
-user_def_sound.user_def_sound,(0x17ac+3032-0x2285),WMS_UDH_MAX_SND_SIZE);for(j=
-(0x1691+3363-0x23b4);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(0x1281+3792-0x2151);}memset(header_ptr->u.
+user_def_sound.user_def_sound,(0x7f1+3471-0x1481),WMS_UDH_MAX_SND_SIZE);for(j=
+(0x23c6+274-0x24d8);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=(0xdc4+5963-0x250f);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x902+1295-0xe11);}if(udh
-[pos]!=(0xa85+2615-0x14ba)){at_print(LOG_DEBUG,
+pos=(0x4+2891-0xb4f);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x6c0+1349-0xc05);}if(udh
+[pos]!=(0x1fd5+1323-0x24fe)){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(0x755+7373-0x2422);}pos++;header_ptr->header_id=
+,udh[pos]);return(0xe83+6088-0x264b);}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=(0xe27+1896-0x158f),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xe6b+3152-0x1abb);}if(
-udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_LARGE_BITMAP_SIZE+
-(0x254b+122-0x25c4))){at_print(LOG_DEBUG,
+pos=(0x3f5+844-0x741),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x7cc+879-0xb3b);}if(udh[
+pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_LARGE_BITMAP_SIZE+(0x28f+5838-0x195c))){
+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(0x1465+3148-0x20b1);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
-pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0x3e6+5072-0x17b6);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x1928+1484-0x1ef4);k<
+,udh[pos]);return(0xb7c+4349-0x1c79);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
+pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0x2d3+1373-0x830);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x1713+3694-0x2581);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=(0xabb+254-0xbb9),j,k;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0xd41+6564-0x26e5),j,k;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x2bc+4838-0x15a2);}if(
-udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+
-(0x1c57+1505-0x2237))){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x111+5980-0x186d);}if(
+udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+(0x37a+1573-0x99e)
+)){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(0x7f4+2452-0x1188);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
-pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0xec+9515-0x2617);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x4a+6219-0x1895);k<
+,udh[pos]);return(0x1d3a+2419-0x26ad);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
+pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0x2df+2088-0xb07);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x14c7+1579-0x1af2);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=(0x387+2798-0xe75),j;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0xc2+8915-0x2395),j;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1c1c+1898-0x2386);}if(
-udh[pos]!=WMS_UDH_LARGE_PIC_SIZE+(0x18a3+2307-0x21a5)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x5a6+3963-0x1521);}if(
+udh[pos]!=WMS_UDH_LARGE_PIC_SIZE+(0xa54+2837-0x1568)){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(0x1a6a+1947-0x2205);}header_ptr->header_id=
+,udh[pos]);return(0x3c4+8381-0x2481);}header_ptr->header_id=
WMS_UDH_LARGE_PICTURE;pos++;header_ptr->u.large_picture.position=udh[pos++];for(
-j=(0x78b+1061-0xbb0);j<WMS_UDH_LARGE_PIC_SIZE;j++)header_ptr->u.large_picture.
+j=(0x1b99+265-0x1ca2);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=(0x207+4795-0x14c2),j;if(
+const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x143c+1293-0x1949),j;if(
udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1321+3947-0x228c);}if(
-udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0xdcc+5825-0x248c)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1911+1405-0x1e8e);}if(
+udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0x575+5439-0x1ab3)){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(0x179c+2192-0x202c);}header_ptr->header_id=
+,udh[pos]);return(0x1217+4137-0x2240);}header_ptr->header_id=
WMS_UDH_SMALL_PICTURE;pos++;header_ptr->u.small_picture.position=udh[pos++];for(
-j=(0x357+525-0x564);j<WMS_UDH_SMALL_PIC_SIZE;j++)header_ptr->u.small_picture.
+j=(0x8aa+6705-0x22db);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=(0x18f3+1452-0x1e9f),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(0x8bc+1984-0x107c);}if(
-udh[pos]>WMS_UDH_VAR_PIC_SIZE+(0xa3f+4305-0x1b0d)){at_print(LOG_DEBUG,
+UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x354+3740-0x11f0),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(0x1649+603-0x18a4);}if(
+udh[pos]>WMS_UDH_VAR_PIC_SIZE+(0xd49+6054-0x24ec)){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(0x671+5284-0x1b15);}if((udh[pos]-(0x3ba+1057-0x7d8))!=(udh[pos
-+(0x6bf+3236-0x1361)]*udh[pos+(0x1446+4410-0x257d)])){at_print(LOG_DEBUG,
+,udh[pos]);return(0x6d8+6010-0x1e52);}if((udh[pos]-(0x699+5979-0x1df1))!=(udh[
+pos+(0x65c+4701-0x18b7)]*udh[pos+(0x1c77+1746-0x2346)])){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(0x1c2c+287-0x1d4b);}pic_size=udh[pos++]-(0x1db2+1620-0x2403);header_ptr
+);return(0xaa8+5181-0x1ee5);}pic_size=udh[pos++]-(0x893+5816-0x1f48);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++]*(0xeca+4756-0x2156));
-header_ptr->u.var_picture.height=udh[pos++];for(j=(0x993+5981-0x20f0);j<pic_size
+header_ptr->u.var_picture.width=(UINT8)(udh[pos++]*(0x512+8451-0x260d));
+header_ptr->u.var_picture.height=udh[pos++];for(j=(0x230d+984-0x26e5);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=(0x28f+4191-0x12ee);if(udh==NULL||header_ptr==NULL){
+header_ptr){UINT8 pos=(0xc7c+5353-0x2165);if(udh==NULL||header_ptr==NULL){
at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0xdb5+5710-0x2403);}if(udh[pos]<(0x71d+3459-0x149f)){at_print(LOG_DEBUG,
+(0xcd0+3209-0x1959);}if(udh[pos]<(0x999+4694-0x1bee)){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(0x6fd+5532-0x1c99);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x731+7454-0x244f);}pos++;header_ptr->header_id=
WMS_UDH_USER_PROMPT;header_ptr->u.user_prompt.number_of_objects=udh[pos++];
-return(udh[(0xe98+2165-0x170d)]+(0x74d+900-0xad0));}static UINT8
+return(udh[(0xe3f+733-0x111c)]+(0x7cf+3374-0x14fc));}static UINT8
wms_ts_decode_udh_eo(const UINT8*udh,UINT8 first_segment,wms_udh_s_type*
-header_ptr){UINT8 pos=(0x121b+715-0x14e6),udh_length;if(udh==NULL||header_ptr==
+header_ptr){UINT8 pos=(0xaa7+963-0xe6a),udh_length;if(udh==NULL||header_ptr==
NULL){at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x225+3915-0x1170);}if(udh[pos]==(0x12bf+1728-0x197f)){at_print(LOG_DEBUG,
+(0x12c9+3195-0x1f44);}if(udh[pos]==(0x117f+130-0x1201)){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(0x73b+723-0xa0e);}udh_length=udh[pos++];header_ptr->header_id=
+);return(0xd7c+824-0x10b4);}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
-(0x641+5698-0x1c83);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
-length=udh[pos++]<<(0x522+2630-0xf60);header_ptr->u.eo.length|=udh[pos++];
+(0x41c+5643-0x1a27);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
+length=udh[pos++]<<(0x1836+3384-0x2566);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++]<<(0xd1a+225-0xdf3);header_ptr->u
-.eo.position|=udh[pos++];}header_ptr->u.eo.content.length=(udh_length-pos)+
-(0x17a2+2805-0x2296);memcpy(header_ptr->u.eo.content.data,udh+pos,header_ptr->u.
+udh[pos++];header_ptr->u.eo.position=udh[pos++]<<(0xa5b+1719-0x110a);header_ptr
+->u.eo.position|=udh[pos++];}header_ptr->u.eo.content.length=(udh_length-pos)+
+(0x62b+7171-0x222d);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=
-(0x4e1+4303-0x15b0);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xc0d+1668-0x1291);}if(
-udh[pos]<(0x1ca+3101-0xde6)){at_print(LOG_DEBUG,
+(0x241+8821-0x24b6);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1ac8+1474-0x208a);}if(
+udh[pos]<(0x38a+2776-0xe61)){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(0x909+3739-0x17a4);}pos++;header_ptr->header_id=WMS_UDH_RFC822
-;header_ptr->u.rfc822.header_length=udh[pos++];return(udh[(0x4c6+8196-0x24ca)]+
-(0x1d7c+551-0x1fa2));}static UINT8 wms_ts_decode_udh_nat_lang_ss(const UINT8*udh
-,wms_udh_s_type*header_ptr){UINT8 pos=(0x117d+4158-0x21bb);if(udh==NULL||
-header_ptr==NULL){return(0x1479+4165-0x24be);}if(udh[pos]!=
-WMS_UDH_OCTETS_NAT_LANG_SS){return(0xdf4+4344-0x1eec);}pos++;header_ptr->
+,udh[pos]);return(0x1b6+3195-0xe31);}pos++;header_ptr->header_id=WMS_UDH_RFC822;
+header_ptr->u.rfc822.header_length=udh[pos++];return(udh[(0x18db+1082-0x1d15)]+
+(0x759+4435-0x18ab));}static UINT8 wms_ts_decode_udh_nat_lang_ss(const UINT8*udh
+,wms_udh_s_type*header_ptr){UINT8 pos=(0xa77+3390-0x17b5);if(udh==NULL||
+header_ptr==NULL){return(0x168c+3037-0x2269);}if(udh[pos]!=
+WMS_UDH_OCTETS_NAT_LANG_SS){return(0x11aa+1040-0x15ba);}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(0x362+1321-0x88b);}header_ptr->u.
+WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){return(0x200+7017-0x1d69);}header_ptr->u.
nat_lang_ss.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
-(0x1216+728-0x14ee)]+(0x1359+4003-0x22fb));}static UINT8
+(0x4fd+7211-0x2128)]+(0xa7b+5434-0x1fb4));}static UINT8
wms_ts_decode_udh_nat_lang_ls(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x364+2861-0xe91);if(udh==NULL||header_ptr==NULL){return(0x126a+398-0x13f8)
-;}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_LS){return(0x70b+3699-0x157e);}pos++;
+pos=(0x822+1438-0xdc0);if(udh==NULL||header_ptr==NULL){return(0x582+1405-0xaff);
+}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_LS){return(0x45d+187-0x518);}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(0x6fc+6873-0x21d5);}header_ptr
+||(WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){return(0x1293+4231-0x231a);}header_ptr
->u.nat_lang_ls.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
-(0x19bb+131-0x1a3e)]+(0x6c7+6156-0x1ed2));}static UINT8 wms_ts_decode_udh_other(
-const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x60d+978-0x9df),i=
-(0xd3b+4056-0x1d13);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x789+4499-0x191c);}if(
-udh[pos+(0x11c8+2351-0x1af6)]>WMS_UDH_OTHER_SIZE){at_print(LOG_DEBUG,
+(0x21a+5123-0x161d)]+(0x10b7+2499-0x1a79));}static UINT8 wms_ts_decode_udh_other
+(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x878+316-0x9b4),i=
+(0x1ba9+1691-0x2244);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1f4d+1719-0x2604);}if(
+udh[pos+(0x647+1140-0xaba)]>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(0xaa0+4043-0x1a6b);}header_ptr->header_id=(wms_udh_id_e_type)udh[pos];
+);return(0x1300+3990-0x2296);}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=(0x20c8+558-0x22f6);i<header_ptr->u.other.
+header_length=udh[pos++];for(i=(0x14aa+4261-0x254f);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=(0x1c7a+1125-0x20df);UINT8
-header_length=(0x222d+260-0x2331),num_headers=(0x49d+8707-0x26a0);UINT8 udhl;
-UINT8 first_segment=TRUE;if(data==NULL||len==(0xa34+4720-0x1ca4)||data[pos]==
-(0x1346+3622-0x216c)||num_headers_ptr==NULL||udh_ptr==NULL){at_print(LOG_DEBUG,
+num_headers_ptr,wms_udh_s_type*udh_ptr){UINT8 pos=(0x1ca7+1462-0x225d);UINT8
+header_length=(0x22b+3790-0x10f9),num_headers=(0x5dc+314-0x716);UINT8 udhl;UINT8
+ first_segment=TRUE;if(data==NULL||len==(0xe34+881-0x11a5)||data[pos]==
+(0x735+2582-0x114b)||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(0x9f2+1935-0x1181);}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=
+);return(0x1624+3502-0x23d2);}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=
wms_ts_decode_udh_special_sm(data+pos,&udh_ptr[num_headers]);break;case
WMS_UDH_PORT_8:header_length=wms_ts_decode_udh_port_8(data+pos,&udh_ptr[
num_headers]);break;case WMS_UDH_PORT_16:header_length=wms_ts_decode_udh_port16(
@@ -1865,66 +1863,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(0xcdc+6478-0x262a);}else if(header_length!=(0x1443+1961-0x1bec)){
+,udhl);return(0x46d+8166-0x2453);}else if(header_length!=(0xb44+6598-0x250a)){
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=(0x5+3092-0xc19);return(0x104b+5156-0x246f);}}
+,pos,data[pos]);*num_headers_ptr=(0x59+1908-0x7cd);return(0xd59+1329-0x128a);}}
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+(0x22d6+217-0x23ae);}if(pos!=(udhl+(0x3d1+2280-0xcb8))){at_print(
+);pos=udhl+(0x1da9+526-0x1fb6);}if(pos!=(udhl+(0xba5+5968-0x22f4))){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=(0x12c6+4594-0x24b8);udhl=(0x3d7+3187-0x104a);}if(num_headers>
-(0x7b0+723-0xa83)){*num_headers_ptr=num_headers;}return udhl;}UINT8
+);num_headers=(0xa0f+6148-0x2213);udhl=(0x150f+3567-0x22fe);}if(num_headers>
+(0x1494+755-0x1787)){*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=(0x1128+220-0x1204);UINT8 fill_bits=(0x6d9+917-0xa6e);
-UINT8 user_data_length;UINT8 user_data_header_length=(0x3f3+1137-0x864);if(dcs==
-NULL||data==NULL||user_data==NULL){at_print(LOG_DEBUG,
+user_data){UINT8 i,pos=(0x24ba+347-0x2615);UINT8 fill_bits=(0x1e0b+1136-0x227b);
+UINT8 user_data_length;UINT8 user_data_header_length=(0x1f9+5546-0x17a3);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(0x1d+8523-0x2168);}(void)memset(user_data,(0x80c+1293-0xd19),sizeof(
-wms_gw_user_data_s_type));if(len==(0x226+5469-0x1783)){return(0x3dd+1713-0xa8e);
-}if(dcs->alphabet==WMS_GW_ALPHABET_7_BIT_DEFAULT){if(len>WMS_SMS_UDL_MAX_7_BIT){
-at_print(LOG_DEBUG,
+);return(0x1090+3695-0x1eff);}(void)memset(user_data,(0x1a73+2561-0x2474),sizeof
+(wms_gw_user_data_s_type));if(len==(0x1ca5+1725-0x2362)){return
+(0xef7+1198-0x13a5);}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(0x42c+5010-0x17be);}user_data_length=len;if(user_data_header_present){
+);return(0x1194+1671-0x181b);}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(0x2bc+6194-0x1aee);}if(user_data_header_length>(0x2175+311-0x22ac)){
-fill_bits=((len*(0x32a+4152-0x135b))-((user_data_header_length+
-(0x4a4+7152-0x2093))*(0x154d+4205-0x25b2)))%(0x6b0+6556-0x2045);user_data_length
-=(UINT8)(((len*(0x828+4048-0x17f1))-((user_data_header_length+
-(0x68f+3139-0x12d1))*(0x9f1+3205-0x166e)))/(0x1896+3321-0x2588));pos=
-user_data_header_length+(0x1711+3304-0x23f8);if(fill_bits!=(0x15c1+3102-0x21df))
-{fill_bits=(0x2308+514-0x2502)-fill_bits;}}i=wms_ts_unpack_gw_7_bit_chars(&data[
-pos],user_data_length,WMS_MAX_LEN,fill_bits,user_data->sm_data);user_data->
-sm_len=user_data_length;}else{if(len>WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
+);return(0x807+4150-0x183d);}if(user_data_header_length>(0xd77+4069-0x1d5c)){
+fill_bits=((len*(0x2ed+2427-0xc61))-((user_data_header_length+(0x156+3209-0xdde)
+)*(0xc37+3052-0x181b)))%(0xba1+6704-0x25ca);user_data_length=(UINT8)(((len*
+(0x2b2+5655-0x18c2))-((user_data_header_length+(0x6bd+5155-0x1adf))*
+(0xa7d+1696-0x1115)))/(0x2142+642-0x23bd));pos=user_data_header_length+
+(0x6b1+4063-0x168f);if(fill_bits!=(0x1d07+771-0x200a)){fill_bits=
+(0xa6b+1217-0xf24)-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(0xa36+1093-0xe7b);}user_data_length=len;if(user_data_header_present){
+);return(0xb69+4856-0x1e61);}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(0x1d56+69-0x1d9b);}pos+=user_data_header_length+(0xf4+7479-0x1e2a);
-user_data_length=(len-user_data_header_length)-(0x4d1+1977-0xc89);}memcpy(
+);return(0x35b+3902-0x1299);}pos+=user_data_header_length+(0x17e6+2147-0x2048);
+user_data_length=(len-user_data_header_length)-(0x1073+3884-0x1f9e);}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=
-(0x13ec+1417-0x1975),i;const UINT8*data=ptRawTsData->data;if(ptRawTsData==NULL||
+(0x1c5+3613-0xfe2),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]&(0xaf7+7123-0x26c7))!=
-(0x1556+302-0x1684)){printf(
+);return WMS_NULL_PTR_S;}else if((data[pos]&(0x10bd+981-0x148f))!=
+(0xb3d+2698-0x15c7)){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]&
-(0x1780+1288-0x1c84))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
-(0x71+2670-0xabf))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
-(0x85b+4985-0x1b94))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
-(0x1036+243-0x10a9))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&
-deliver->address);if(i==(0x493+7068-0x202f)){printf(
+(0x1918+1726-0x1fd2))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
+(0x11a1+2725-0x1c26))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
+(0x343+6203-0x1b3e))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
+(0x79a+3889-0x164b))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&
+deliver->address);if(i==(0x1217+2576-0x1c27)){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.
@@ -1932,75 +1930,74 @@
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==(0x3b4+1848-0xaec)){printf(
+timestamp);if(i==(0xc21+1425-0x11b2)){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-(0xd66+2645-0x17ba)],data+pos,deliver->
+deliver->dcs,data[pos-(0x239b+752-0x268a)],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=(0x1799+2835-0x22ac);if(data==NULL||validity==NULL){at_print(
-LOG_DEBUG,
+UINT8 i,pos=(0x861+1579-0xe8c);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(0x2df+4855-0x15d6);}else{switch(validity->format){case
-WMS_GW_VALIDITY_NONE:memset(validity,(0x9cc+1969-0x117d),sizeof(
+);return(0x283+7195-0x1e9e);}else{switch(validity->format){case
+WMS_GW_VALIDITY_NONE:memset(validity,(0x9bd+3284-0x1691),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=
-(0x663+5141-0x1a78),i;const UINT8*data;if(ptRawTsData==NULL||submit==NULL){
+(0x1a6a+1904-0x21da),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]&(0x20e8+1305-0x25fd))?TRUE:FALSE;submit->validity.format=(
-wms_gw_validity_format_e_type)((data[pos]&(0x89d+2296-0x117d))>>
-(0x6a0+5175-0x1ad4));submit->status_report_enabled=(data[pos]&
-(0x129+7448-0x1e21))?TRUE:FALSE;submit->user_data_header_present=(data[pos]&
-(0x49a+5182-0x1898))?TRUE:FALSE;submit->reply_path_present=(data[pos]&
-(0xf36+337-0x1007))?TRUE:FALSE;pos++;submit->message_reference=data[pos];pos++;i
-=wms_ts_decode_address(&data[pos],&submit->address);if(i==(0x163b+1636-0x1c9f)){
-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==(0x934+5889-0x2035))){return WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=
-wms_ts_decode_gw_user_data(&submit->dcs,data[pos-(0x22dd+503-0x24d3)],data+pos,
-submit->user_data_header_present,&submit->user_data);if(i>WMS_SMS_UDL_MAX_8_BIT)
-{printf(
+pos]&(0xe9d+2302-0x1797))?TRUE:FALSE;submit->validity.format=(
+wms_gw_validity_format_e_type)((data[pos]&(0x1aca+3012-0x2676))>>
+(0x700+1095-0xb44));submit->status_report_enabled=(data[pos]&(0x17a+5863-0x1841)
+)?TRUE:FALSE;submit->user_data_header_present=(data[pos]&(0x643+822-0x939))?TRUE
+:FALSE;submit->reply_path_present=(data[pos]&(0x1388+5121-0x2709))?TRUE:FALSE;
+pos++;submit->message_reference=data[pos];pos++;i=wms_ts_decode_address(&data[
+pos],&submit->address);if(i==(0x16d2+232-0x17ba)){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==(0xbf6+4863-0x1ef5))){return
+ WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=wms_ts_decode_gw_user_data(&submit->
+dcs,data[pos-(0x8a0+6817-0x2340)],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=(0x58d+4507-0x1728),i;const UINT8*data;if(ptRawTsData==NULL||status_report==
+pos=(0x82f+7613-0x25ec),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]&
-(0x5d0+3266-0x128e)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]&
-(0x51+6080-0x17f1)?TRUE:FALSE;status_report->user_data_header_present=(data[pos]
-&(0x1a7+5869-0x1854))?TRUE:FALSE;pos++;status_report->message_reference=data[pos
-];pos++;i=wms_ts_decode_address(&data[pos],&status_report->address);if(i==
-(0x141f+4130-0x2441)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0xb90+4032-0x1b4c)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]&
+(0xfd2+3819-0x1e9d)?TRUE:FALSE;status_report->user_data_header_present=(data[pos
+]&(0xe0c+2677-0x1841))?TRUE:FALSE;pos++;status_report->message_reference=data[
+pos];pos++;i=wms_ts_decode_address(&data[pos],&status_report->address);if(i==
+(0x6bc+3675-0x1517)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
wms_ts_decode_timestamp(data+pos,&status_report->timestamp);if(i==
-(0x817+3937-0x1778)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0xa82+694-0xd38)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
wms_ts_decode_timestamp(data+pos,&status_report->discharge_time);if(i==
-(0x9e5+1448-0xf8d)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;status_report->
+(0xc08+1979-0x13c3)){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)(0x167+2932-0xcdb);status_report->user_data.
-sm_len=(0xab4+2918-0x161a);status_report->mask&=(0xe2b+5437-0x2269);if((
-status_report->mask!=(0x227+7578-0x1ec2))&&(status_report->mask!=
-(0x2343+443-0x24fe))){pos++;if(status_report->mask&WMS_TPDU_MASK_PID){
+status_report->pid=(wms_pid_e_type)(0x1198+1961-0x1941);status_report->user_data
+.sm_len=(0xe33+4420-0x1f77);status_report->mask&=(0x1059+2162-0x17cc);if((
+status_report->mask!=(0x5ef+4557-0x16bd))&&(status_report->mask!=
+(0x72a+6345-0x1ff3))){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-(0x37b+4095-0x1379)],data+pos,status_report->
+&status_report->dcs,data[pos-(0xb92+6849-0x2652)],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=
-(0x1816+2441-0x219f);}return st;}wms_status_e_type wms_ts_decode(const
+(0x480+563-0x6b3);}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 ed4800c..dda3b3c 100755
--- a/ap/app/zte_comm/sms/src/sms_db.c
+++ b/ap/app/zte_comm/sms/src/sms_db.c
@@ -101,85 +101,85 @@
#define OUTDATEINTERVAL 7776000
typedef struct{char*buf_addr;int buf_len;}T_zUfiSms_BufInfo;typedef struct{int
valid;char*strSQL;}T_zUfiSms_SQLMap;sqlite3*g_zUfiSms_DbPointer=
-(0x80f+2266-0x10e9);extern T_zUfiSms_ParaInfo g_zUfiSms_CurSmsPara;extern
+(0xb01+5228-0x1f6d);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={(0x1574+368-0x16e4)};int
-tmp_i=(0x503+7472-0x2233);
-#if (0x1212+2057-0x1a1b)
-if(atoi(date.year)>(0x1cfd+1378-0x21fc)||atoi(date.year)<(0x1367+4423-0x24ae)){
+T_zUfiSms_Date date){time_t timet;struct tm tmtime={(0x15b5+3479-0x234c)};int
+tmp_i=(0x808+1392-0xd78);
+#if (0x3ac+8853-0x2641)
+if(atoi(date.year)>(0x42c+904-0x751)||atoi(date.year)<(0xd73+2868-0x18a7)){
printf("[SMS] getsecond error, year out of range: %d!!!",atoi(date.year));return
-(0x16cb+4002-0x266d);}
+(0x6d6+5799-0x1d7d);}
#endif
-tmp_i=atoi(date.year);if(tmp_i<(0x1baa+633-0x1e23)||tmp_i>INT_MAX-
-(0x1149+2620-0x1b84)){at_print(LOG_ERR,
+tmp_i=atoi(date.year);if(tmp_i<(0xfca+2999-0x1b81)||tmp_i>INT_MAX-
+(0x11b6+161-0x1256)){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(0x2d0+1702-0x976);}tmtime.tm_year=tmp_i+(0x156d+982-0x1173)-
-(0x9c4+4559-0x1427);tmp_i=atoi(date.month);if(tmp_i<(0x74+3742-0xf12)||tmp_i>
-INT_MAX-(0x1d15+77-0x1d61)){at_print(LOG_ERR,
+,tmp_i);return(0xd22+2262-0x15f8);}tmtime.tm_year=tmp_i+(0xa1b+1017-0x644)-
+(0x1477+5728-0x236b);tmp_i=atoi(date.month);if(tmp_i<(0x4da+2949-0x105f)||tmp_i>
+INT_MAX-(0xa74+7092-0x2627)){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(0x13ca+1128-0x1832);}tmtime.tm_mon=tmp_i-(0xac+2152-0x913);tmp_i=
-atoi(date.day);if(tmp_i<(0xcf8+5578-0x22c2)||tmp_i>INT_MAX-(0x64b+1521-0xc3b)){
-at_print(LOG_ERR,
+,tmp_i);return(0x35b+8741-0x2580);}tmtime.tm_mon=tmp_i-(0xbf1+91-0xc4b);tmp_i=
+atoi(date.day);if(tmp_i<(0x18ac+3445-0x2621)||tmp_i>INT_MAX-(0x1523+3678-0x2380)
+){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(0x728+5683-0x1d5b);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);if
-(tmp_i<(0xeed+4097-0x1eee)||tmp_i>INT_MAX-(0x13e1+2746-0x1e9a)){at_print(LOG_ERR
-,
+,tmp_i);return(0x1780+2811-0x227b);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);
+if(tmp_i<(0x304+3421-0x1061)||tmp_i>INT_MAX-(0x7f6+5132-0x1c01)){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(0x89+856-0x3e1);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if(
-tmp_i<(0x22e0+1013-0x26d5)||tmp_i>INT_MAX-(0x3fb+605-0x657)){at_print(LOG_ERR,
+,tmp_i);return(0x3e3+5584-0x19b3);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if(
+tmp_i<(0x581+8118-0x2537)||tmp_i>INT_MAX-(0x900+1663-0xf7e)){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(0xf03+2551-0x18fa);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
-tmp_i<(0x12df+2502-0x1ca5)||tmp_i>INT_MAX-(0xe27+4156-0x1e62)){at_print(LOG_ERR,
+,tmp_i);return(0x568+744-0x850);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
+tmp_i<(0x81a+6730-0x2264)||tmp_i>INT_MAX-(0x134b+1419-0x18d5)){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(0x1979+290-0x1a9b);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
+,tmp_i);return(0x22b+7381-0x1f00);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
return timet;}T_zUfiSms_DbResult zUfiSms_OpenDb(void){int retry_times=
-(0xe45+3823-0x1d34);int open_rst=SQLITE_ERROR;if(g_zUfiSms_DbPointer!=NULL){
+(0x19f4+1646-0x2062);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++<(0x57c+7243-0x21bd));printf(
+SQLITE_CANTOPEN&&retry_times++<(0x3dd+5785-0x1a6c));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=(0x2374+805-0x2699);int sqlRst=SQLITE_ERROR;while(try_times++<
-(0x21c8+402-0x2350)){sqlRst=sqlite3_exec(g_zUfiSms_DbPointer,exec_sql,callback,
+ try_times=(0x3bb+527-0x5ca);int sqlRst=SQLITE_ERROR;while(try_times++<
+(0x10f5+4996-0x246f)){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(
-(0x21b6+989-0x2592));}if(sqlRst!=SQLITE_OK){printf(
+,try_times,exec_sql,sqlite3_errmsg(g_zUfiSms_DbPointer));sleep((0x961+856-0xcb8)
+);}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)==(0x918+612-0xb7c)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZTE_WMS_TMP1_PATH,F_OK)==(0xdd9+2357-0x170e)){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)!=(0xe46+1220-0x130a)){slog(SMS_PRINT,SLOG_ERR,
+);if(remove(ZTE_WMS_TMP1_PATH)!=(0x1600+1122-0x1a62)){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[(0x109+2217-0x99a)]={(0x927+83-0x97a)};char cmd[
-(0x1150+5238-0x2546)]={(0x122f+409-0x13c8)};sc_cfg_get(
+);}}{char rnum_buf[(0x2ac+6599-0x1c5b)]={(0xb53+1774-0x1241)};char cmd[
+(0xf36+4212-0x1f2a)]={(0xc61+3702-0x1ad7)};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)==(0xe52+5146-0x226c)){if(remove(ZTE_WMS_SEC_PATH)!=
-(0x1a62+1407-0x1fe1)){slog(SMS_PRINT,SLOG_ERR,
+ZTE_WMS_TMP1_PATH,F_OK)==(0x1730+3317-0x2425)){if(remove(ZTE_WMS_SEC_PATH)!=
+(0xaeb+3819-0x19d6)){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)!=(0xff1+36-0x1015)){slog(
+);}if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=(0xb72+1054-0xf90)){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>=(0x673+6484-0x1fc6)){if(zresult[
-(0x204+6511-0x1b73)]==NULL){*(int*)fvarg=(0x1bb4+1632-0x2214);}else{*(int*)fvarg
-=atoi(zresult[(0x1aad+284-0x1bc9)]);}return SQLITE_OK;}else{return SQLITE_ERROR;
-}}int zUfiSms_SetCmdStatus(T_zUfiSms_StatusInfo*ptSetStatus){T_zUfiSms_DbResult
-result=ZTE_WMS_DB_OK;char*strSQL=NULL;printf(
+**zresult,char**lname){if(columns>=(0x31b+3661-0x1167)){if(zresult[
+(0x12d0+4207-0x233f)]==NULL){*(int*)fvarg=(0x5f7+7564-0x2383);}else{*(int*)fvarg
+=atoi(zresult[(0x12b8+4867-0x25bb)]);}return SQLITE_OK;}else{return SQLITE_ERROR
+;}}int zUfiSms_SetCmdStatus(T_zUfiSms_StatusInfo*ptSetStatus){T_zUfiSms_DbResult
+ result=ZTE_WMS_DB_OK;char*strSQL=NULL;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x74\x43\x6d\x64\x53\x74\x61\x74\x75\x73\x20\x65\x6e\x74\x65\x72\x2e" "\n"
);strSQL=sqlite3_mprintf(
"\x49\x4e\x53\x45\x52\x54\x20\x4f\x52\x20\x52\x45\x50\x4c\x41\x43\x45\x20\x49\x4e\x54\x4f\x20\x25\x73\x28\x43\x6d\x64\x2c\x43\x6d\x64\x5f\x53\x74\x61\x74\x75\x73\x2c\x45\x72\x72\x5f\x43\x6f\x64\x65\x2c\x53\x65\x6e\x64\x5f\x46\x61\x69\x6c\x5f\x43\x6f\x75\x6e\x74\x2c\x44\x65\x6c\x5f\x43\x6f\x75\x6e\x74\x29\x20"
@@ -188,28 +188,28 @@
ptSetStatus->err_code,ptSetStatus->send_failed_count,ptSetStatus->
delete_failed_count);result=zUfiSms_ExecSql(strSQL,NULL,NULL);sqlite3_free(
strSQL);return isSucess(result);}void zUfiSms_SetParameterNv(T_zUfiSms_ParaInfo*
-para){if((0x139+707-0x3fc)==(int)para->status_report_on){sc_cfg_set(
+para){if((0x501+4040-0x14c9)==(int)para->status_report_on){sc_cfg_set(
NV_REPORT_ENABLE,"\x30");}else{sc_cfg_set(NV_REPORT_ENABLE,"\x31");}if(
-(0x1a09+1566-0x2027)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY
-,"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0x1631+2853-0x2156)==(
-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((0x7b0+4398-0x18de)
-==(int)para->mem_store){sc_cfg_set(NV_PRA_MEMSTORE,"\x30");}else{sc_cfg_set(
-NV_PRA_MEMSTORE,"\x31");}if((0x4c6+5096-0x17af)==(int)para->tp_validity_period){
-sc_cfg_set(NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0x2ad+1389-0x76d)
-==(int)para->tp_validity_period){sc_cfg_set(NV_SMS_VP,
-"\x6f\x6e\x65\x77\x65\x65\x6b");}else if((0x1147+1325-0x15cd)==(int)para->
-tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x6f\x6e\x65\x5f\x64\x61\x79");}else
-if((0x1b69+1140-0x1f4e)==(int)para->tp_validity_period){sc_cfg_set(NV_SMS_VP,
-"\x74\x77\x65\x6c\x76\x65\x68");}printf(
+(0x379+294-0x49f)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY,
+"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0x5dc+5121-0x19dd)==(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((0x67d+7871-0x253c)==(int)para
+->mem_store){sc_cfg_set(NV_PRA_MEMSTORE,"\x30");}else{sc_cfg_set(NV_PRA_MEMSTORE
+,"\x31");}if((0x6ca+5540-0x1b6f)==(int)para->tp_validity_period){sc_cfg_set(
+NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0x1eeb+412-0x1fda)==(int)
+para->tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x6f\x6e\x65\x77\x65\x65\x6b");}
+else if((0x1cf1+768-0x1f4a)==(int)para->tp_validity_period){sc_cfg_set(NV_SMS_VP
+,"\x6f\x6e\x65\x5f\x64\x61\x79");}else if((0x19f2+2126-0x21b1)==(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=
-(0x1909+345-0x1a62);if(NULL==para){return-(0xe10+1611-0x145a);}zUfiSms_ExecSql(
+(0xa3d+3938-0x199f);if(NULL==para){return-(0x56+2380-0x9a1);}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>(0x44d+4213-0x14c2)){strSQL=
+zUfiSms_GetFirstColumnInt,&count);if(count>(0xf81+2107-0x17bc)){strSQL=
sqlite3_mprintf(
"\x55\x50\x44\x41\x54\x45\x20\x25\x73\x20\x53\x45\x54\x20\x53\x6d\x73\x5f\x52\x65\x70\x6f\x72\x74\x3d\x27\x25\x64\x27\x2c\x53\x6d\x73\x5f\x53\x63\x61\x3d\x27\x25\x71\x27\x2c\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x64\x27\x2c\x54\x70\x5f\x56\x61\x6c\x69\x64\x69\x74\x79\x3d\x27\x25\x64\x27\x2c\x53\x65\x6e\x64\x5f\x52\x65\x74\x72\x79\x3d\x27\x25\x64\x27\x2c\x4f\x75\x74\x64\x61\x74\x65\x5f\x44\x65\x6c\x65\x74\x65\x3d\x27\x25\x64\x27\x2c\x44\x65\x66\x61\x75\x6c\x74\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x71\x27\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x31\x3b"
,ZTE_WMS_DB_PARAMETER_TABLE,(int)para->status_report_on,para->sca,(int)para->
@@ -222,13 +222,13 @@
mem_store,(int)para->tp_validity_period,(int)para->sendfail_retry_on,(int)para->
outdate_delete_on,para->default_store);}result=zUfiSms_ExecSql(strSQL,NULL,NULL)
;sqlite3_free(strSQL);if(result==ZTE_WMS_DB_OK){zUfiSms_SetParameterNv(para);
-return(0xa06+3349-0x171b);}return-(0x1b02+1098-0x1f4b);}int
+return(0x554+4345-0x164d);}return-(0x1cf2+2495-0x26b0);}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=-(0x1bbd+430-0x1d6a);zUfiSms_ExecSql(
+void){int max_sms_ref=-(0x15c3+1460-0x1b76);zUfiSms_ExecSql(
"\x53\x45\x4c\x45\x43\x54\x20\x4d\x61\x78\x5f\x53\x6d\x73\x5f\x52\x65\x66\x20\x46\x52\x4f\x4d\x20"
ZTE_WMS_DB_PARAMETER_TABLE
"\x20\x57\x48\x45\x52\x45\x20\x69\x64\x20\x3d\x20\x31\x3b",
@@ -237,20 +237,20 @@
content,int len){sqlite3_stmt*stmt=NULL;char*strSQL=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x69\x6e\x64\x2c\x43\x63\x5f\x53\x65\x71\x2c\x43\x63\x5f\x43\x6f\x6e\x74\x65\x6e\x74\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x71\x27\x3b"
,id,mem_store);(void)sqlite3_prepare(g_zUfiSms_DbPointer,strSQL,-
-(0x6e3+7268-0x2346),&stmt,(0xaa9+6835-0x255c));while(SQLITE_ROW==sqlite3_step(
-stmt)){char*column_text=NULL;memset(pac->IndStr,(0x1b4c+230-0x1c32),sizeof(pac->
-IndStr));memset(pac->Seg_Seq,(0xde7+629-0x105c),sizeof(pac->Seg_Seq));if((
-column_text=sqlite3_column_text(stmt,(0x166b+730-0x1945)))!=NULL)strncpy(pac->
-IndStr,column_text,sizeof(pac->FormatInd)-(0x3b4+7532-0x211f));if((column_text=
-sqlite3_column_text(stmt,(0xf9b+5128-0x23a2)))!=NULL)strncpy(pac->Seg_Seq,
-column_text,sizeof(pac->FormatSeq)-(0xc88+1378-0x11e9));if((column_text=
-sqlite3_column_text(stmt,(0x1858+1109-0x1cab)))!=NULL)strncpy(content,
-column_text,len-(0x7f2+2559-0x11f0));printf(
+(0x53c+4258-0x15dd),&stmt,(0xd04+3866-0x1c1e));while(SQLITE_ROW==sqlite3_step(
+stmt)){char*column_text=NULL;memset(pac->IndStr,(0x901+7196-0x251d),sizeof(pac->
+IndStr));memset(pac->Seg_Seq,(0x0+4128-0x1020),sizeof(pac->Seg_Seq));if((
+column_text=sqlite3_column_text(stmt,(0x18b5+305-0x19e6)))!=NULL)strncpy(pac->
+IndStr,column_text,sizeof(pac->FormatInd)-(0x1e40+642-0x20c1));if((column_text=
+sqlite3_column_text(stmt,(0x1717+1832-0x1e3e)))!=NULL)strncpy(pac->Seg_Seq,
+column_text,sizeof(pac->FormatSeq)-(0x316+4986-0x168f));if((column_text=
+sqlite3_column_text(stmt,(0x7eb+6755-0x224c)))!=NULL)strncpy(content,column_text
+,len-(0xb78+6262-0x23ed));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(0x1001+4465-0x2172);}int zUfiSms_UpdateConcatSmsToDb(
-T_zUfiSms_DbStoreData*db_data,const char*mem_store,char*format_concat,char*
-content,T_zUfiSms_DbStoreStr*pac,int concat_num,long id){char*sql=NULL;
+return(0x641+278-0x757);}int zUfiSms_UpdateConcatSmsToDb(T_zUfiSms_DbStoreData*
+db_data,const char*mem_store,char*format_concat,char*content,
+T_zUfiSms_DbStoreStr*pac,int concat_num,long id){char*sql=NULL;
T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;sql=sqlite3_mprintf(
"\x55\x50\x44\x41\x54\x45\x20\x73\x6d\x73\x20\x53\x45\x54\x20\x69\x6e\x64\x3d\x27\x25\x73\x27\x2c\x54\x61\x67\x3d\x27\x25\x64\x27\x2c\x43\x63\x5f\x53\x65\x71\x3d\x27\x25\x73\x27\x2c\x43\x63\x5f\x4e\x75\x6d\x3d\x27\x25\x64\x27\x2c\x20"
"\x43\x63\x5f\x43\x6f\x6e\x74\x65\x6e\x74\x3d\x27\x25\x71\x27\x2c\x43\x6f\x6e\x74\x65\x6e\x74\x3d\x27\x25\x71\x27\x2c\x59\x65\x61\x72\x3d\x27\x25\x71\x27\x2c\x4d\x6f\x6e\x74\x68\x3d\x27\x25\x71\x27\x2c\x20"
@@ -270,31 +270,30 @@
"\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[(0x1443+2502-0x1e09)],db_data->concat_info[
-(0x1d4a+49-0x1d7a)],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.
-timezone,(unsigned int)zte_getsecond(db_data->julian_date),db_data->
-msg_displaymode);printf(
+db_data->concat_info[(0x61d+1605-0xc62)],db_data->concat_info[(0xe89+862-0x11e6)
+],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.timezone,(unsigned
+ int)zte_getsecond(db_data->julian_date),db_data->msg_displaymode);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\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=
-(0x130c+276-0x1420);int result=(0x526+5290-0x19d0);result=zUfiSms_ExecSql(
+(0x1649+1326-0x1b77);int result=(0xa8a+3918-0x19d8);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-
-(0x2380+511-0x257e);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap=
-(0xab0+1503-0x108f);const T_zUfiSms_SQLMap SQL_MAP[]={{(0x649+4810-0x1912),
-ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0x863+6102-0x2038),ZTE_WMS_DEL_SIM_SQL},{
-(0xdfb+326-0xf40),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0x7c0+2025-0xfa8),
-ZTE_WMS_CREATE_SMS_REP_SQL},{(0x1aac+2352-0x23db),ZTE_WMS_CREATE_PAR_SQL},{
-(0x491+6808-0x1f28),ZTE_WMS_CREATE_INFO_SQL},{(0x1647+2500-0x200a),
-ZTE_WMS_CREATE_CELL_BRO_SQL},{(0x2303+504-0x24fa),
-ZTE_WMS_CREATE_SEND_CONTENT_SQL},};for(iMap=(0x9ef+6777-0x2468);iMap<sizeof(
+(0x6c0+2273-0xfa0);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap=
+(0xbaa+6612-0x257e);const T_zUfiSms_SQLMap SQL_MAP[]={{(0x86d+4678-0x1ab2),
+ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0x1b31+1714-0x21e2),ZTE_WMS_DEL_SIM_SQL},{
+(0x13e8+864-0x1747),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0x1242+4705-0x24a2),
+ZTE_WMS_CREATE_SMS_REP_SQL},{(0x882+876-0xbed),ZTE_WMS_CREATE_PAR_SQL},{
+(0x974+6240-0x21d3),ZTE_WMS_CREATE_INFO_SQL},{(0xf18+967-0x12de),
+ZTE_WMS_CREATE_CELL_BRO_SQL},{(0xb9b+4160-0x1bda),
+ZTE_WMS_CREATE_SEND_CONTENT_SQL},};for(iMap=(0x1b75+526-0x1d83);iMap<sizeof(
SQL_MAP)/sizeof(T_zUfiSms_SQLMap);iMap++){if(SQL_MAP[iMap].valid==
-(0x3d+444-0x1f8)){if(zUfiSms_ExecSql(SQL_MAP[iMap].strSQL,NULL,NULL)!=
+(0x1522+4342-0x2617)){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"
@@ -325,9 +324,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[(0x1a40+1319-0x1f67)],
-ptDbSaveData->concat_info[(0x1324+2037-0x1b18)],ptDbSaveData->concat_info[
-(0xd86+4440-0x1edc)],ptDbSaveData->tp_dcs,ptDbSaveData->msg_ref,pContent,"\x30",
+ptDbSaveData->concat_sms,ptDbSaveData->concat_info[(0x961+3669-0x17b6)],
+ptDbSaveData->concat_info[(0x227+4502-0x13bc)],ptDbSaveData->concat_info[
+(0xf30+5004-0x22ba)],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->
@@ -349,25 +348,25 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x55\x70\x64\x61\x74\x65\x4e\x6f\x72\x6d\x61\x6c\x53\x6d\x73\x54\x6f\x44\x62\x20\x73\x71\x6c\x3d\x25\x73" "\n"
,strSQL);result=zUfiSms_ExecSql(strSQL,NULL,NULL);sqlite3_free(strSQL);return
isSucess(result);}int zUfiSms_GetFirstColumnStr(void*fvarg,int columns,char**
-zresult,char**lname){if(columns>=(0xfcc+1367-0x1522)&&fvarg!=NULL){if(zresult[
-(0x8cd+4478-0x1a4b)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
-strncpy(para->buf_addr,zresult[(0xed+528-0x2fd)],para->buf_len-
-(0x939+3308-0x1624));return SQLITE_OK;}}return SQLITE_ERROR;}int
+zresult,char**lname){if(columns>=(0x1fc+2233-0xab4)&&fvarg!=NULL){if(zresult[
+(0x1690+2494-0x204e)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
+strncpy(para->buf_addr,zresult[(0x57d+5359-0x1a6c)],para->buf_len-
+(0x790+6701-0x21bc));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={
-(0x15f9+518-0x17ff)};char*strSQL=NULL;if(NULL==item||NULL==item_data){return
+(0x1695+1446-0x1c3b)};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)||((0x8bf+6953-0x23e8)==strcmp(
+sqlite3_free(strSQL);if((ZTE_WMS_DB_OK!=result)||((0x1390+1396-0x1904)==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[
-(0x3ef+6232-0x1bc7)]={(0x1551+1600-0x1b91)};snprintf(sql,sizeof(sql),
+(0x1810+2458-0x212a)]={(0x1d9+9146-0x2593)};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-
-(0x1570+819-0x18a2)]);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}int
+(0x289+8696-0x2480)]);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}int
zUfiSms_DeleteAllSimSmsInDb(void){return isSucess(zUfiSms_ExecSql(
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27"
ZTE_WMS_DB_SIM_TABLE"\x27\x3b",NULL,NULL));}int zUfiSms_DeleteNvSms(void){if(
@@ -376,11 +375,11 @@
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27"
ZTE_WMS_DB_NV_TABLE"\x27\x3b",NULL,NULL)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x64\x65\x6c\x65\x74\x65\x20\x66\x61\x69\x6c" "\n"
-);return WMS_CMD_FAILED;}}else{int i=(0xbd7+626-0xe49);printf(
+);return WMS_CMD_FAILED;}}else{int i=(0x113+2780-0xbef);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=(0x345+2635-0xd90);i<g_zUfiSms_DelMsg.nv_count
-;i++){char sql[(0xf83+4365-0x2010)]={(0x1849+558-0x1a77)};snprintf(sql,sizeof(
-sql),
+,g_zUfiSms_DelMsg.nv_count);for(i=(0x12dc+1993-0x1aa5);i<g_zUfiSms_DelMsg.
+nv_count;i++){char sql[(0x587+4187-0x1562)]={(0x1e8+2713-0xc81)};snprintf(sql,
+sizeof(sql),
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x61\x6e\x64\x20\x69\x64\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_NV_TABLE,g_zUfiSms_DelMsg.nv_id[i]);if(ZTE_WMS_DB_OK!=
zUfiSms_ExecSql(sql,NULL,NULL)){printf(
@@ -388,40 +387,40 @@
,i);return WMS_CMD_FAILED;}}}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x64\x65\x6c\x65\x74\x65\x20\x73\x75\x63\x63\x65\x73\x73" "\n"
);return WMS_CMD_SUCCESS;}int zUfiSms_GetSmsIndex(int id,T_zUfiSms_ModifyTag*
-ptModifyTag,int is_cc){char sql[(0xca8+6297-0x24c1)]={(0xc51+5131-0x205c)};
-T_zUfiSms_BufInfo buf_info={(0x936+1419-0xec1)};char str_index[
-(0xb92+1104-0xfe0)*WMS_MESSAGE_LIST_MAX]={(0x781+2835-0x1294)};buf_info.buf_addr
-=str_index;buf_info.buf_len=sizeof(str_index);snprintf(sql,sizeof(sql),
+ptModifyTag,int is_cc){char sql[(0x823+6660-0x21a7)]={(0xdea+3759-0x1c99)};
+T_zUfiSms_BufInfo buf_info={(0x1a30+336-0x1b80)};char str_index[
+(0x21d5+80-0x2223)*WMS_MESSAGE_LIST_MAX]={(0x1052+3821-0x1f3f)};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((0x17f1+1134-0x1c5e)==is_cc){int i=(0x1a85+2026-0x226f);
-int j=(0x181+7955-0x2094);int count=(0x105c+558-0x128a);char**out_result=NULL;
-count=zUfiSms_SplitString(str_index,&out_result,((char)(0xc4d+1402-0x118c)));for
-(i=(0x7db+2609-0x120c);i<count;i++){if((0xd47+2426-0x16c1)!=strcmp(out_result[i]
-,"")){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->
-num_of_indices=j;free(out_result);}else{ptModifyTag->indices[(0x1ebf+227-0x1fa2)
-]=atoi(str_index);ptModifyTag->num_of_indices=(0x666+2385-0xfb6);}ptModifyTag->
+);return ZUFI_FAIL;}if((0x11cd+2305-0x1acd)==is_cc){int i=(0x120d+1484-0x17d9);
+int j=(0xd81+1303-0x1298);int count=(0x1f14+339-0x2067);char**out_result=NULL;
+count=zUfiSms_SplitString(str_index,&out_result,((char)(0x1842+2344-0x212f)));
+for(i=(0x1600+504-0x17f8);i<count;i++){if((0x1dc5+296-0x1eed)!=strcmp(out_result
+[i],"")){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->
+num_of_indices=j;free(out_result);}else{ptModifyTag->indices[(0x4d6+777-0x7df)]=
+atoi(str_index);ptModifyTag->num_of_indices=(0xacd+7068-0x2668);}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[(0xa4b+6404-0x22cf)]={(0xcc2+2431-0x1641)};int is_cc=
-(0x789+6983-0x22d0);T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;snprintf(sql,sizeof(
-sql),
+char sql[(0x14f9+3722-0x2303)]={(0x202+727-0x4d9)};int is_cc=
+(0x18ff+1045-0x1d14);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-(0x9ec+2291-0x12de);}return is_cc;}int
+,ZTE_WMS_DB_SMS_TABLE);return-(0x1319+192-0x13d8);}return is_cc;}int
zUfiSms_UpdateSmsTagInDb(unsigned long id,unsigned int tags){char sql[
-(0x1d8+2650-0xbb2)]={(0x1061+3392-0x1da1)};snprintf(sql,sizeof(sql),
+(0x815+6001-0x1f06)]={(0x26+4051-0xff9)};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[
-(0x302+6087-0x1a49)]={(0xbf2+4228-0x1c76)};if(pTotalCount==NULL){return
-ZUFI_FAIL;}if(mem_store==ZTE_WMS_MEMORY_MAX){snprintf(sql,sizeof(sql),
+(0xf6f+5734-0x2555)]={(0x295+2923-0xe00)};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,
sizeof(sql),
@@ -430,17 +429,17 @@
"\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[(0xb0f+4773-0x1d34)]={
-(0x1c1+1103-0x610)};snprintf(sql,sizeof(sql),
+result);}int zUfiSms_DeleteDraftSms(long iSmsId){char sql[(0x8d6+5188-0x1c9a)]={
+(0x121a+176-0x12ca)};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[(0x1736+2794-0x21a0)]={
-(0x142d+4546-0x25ef)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0x1024+1516-0x1610);}
+int zUfiSms_SetConcatMaxRefer(int ref){char sql[(0x2aa+6574-0x1bd8)]={
+(0xa0d+6140-0x2209)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0x418+2863-0xf47);}
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[(0x369+620-0x555)]={
-(0x767+2836-0x127b)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x1d84+196-0x1e48);}
+;}int zUfiSms_SetMaxReference(int ref){char sql[(0x3c4+4200-0x13ac)]={
+(0xe27+5175-0x225e)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x50+8220-0x206c);}
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))
@@ -453,75 +452,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>=(0x181d+1786-0x1f16)&&fvarg!=NULL){if(zresult[(0x58f+7759-0x23de)]
-!=NULL){T_zUfiSms_ParaInfo*para=(T_zUfiSms_ParaInfo*)fvarg;strncpy(para->sca,
-zresult[(0x913+6198-0x2149)],sizeof(para->sca)-(0x5dc+1654-0xc51));para->
-mem_store=atoi(zresult[(0xecf+1067-0x12f9)]);para->tp_validity_period=atoi(
-zresult[(0x1734+2892-0x227e)]);para->status_report_on=atoi(zresult[
-(0x5d9+4927-0x1915)]);para->sendfail_retry_on=atoi(zresult[(0x463+6423-0x1d76)])
-;para->outdate_delete_on=atoi(zresult[(0xdad+6212-0x25ec)]);(void)strncpy(para->
-default_store,zresult[(0xa7f+6645-0x246e)],sizeof(para->default_store)-
-(0xe91+3192-0x1b08));return SQLITE_OK;}}return SQLITE_ERROR;}int
+{if(columns>=(0xf7a+688-0x1229)&&fvarg!=NULL){if(zresult[(0x15f4+102-0x165a)]!=
+NULL){T_zUfiSms_ParaInfo*para=(T_zUfiSms_ParaInfo*)fvarg;strncpy(para->sca,
+zresult[(0xae8+2531-0x14cb)],sizeof(para->sca)-(0x25ab+259-0x26ad));para->
+mem_store=atoi(zresult[(0x14d5+1679-0x1b63)]);para->tp_validity_period=atoi(
+zresult[(0x616+5134-0x1a22)]);para->status_report_on=atoi(zresult[
+(0x604+6776-0x2079)]);para->sendfail_retry_on=atoi(zresult[(0x1124+2096-0x1950)]
+);para->outdate_delete_on=atoi(zresult[(0x1837+290-0x1954)]);(void)strncpy(para
+->default_store,zresult[(0x47b+2029-0xc62)],sizeof(para->default_store)-
+(0xc69+4352-0x1d68));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,(0xd52+343-0xea9)
-,sizeof(T_zUfiSms_ParaInfo));return isSucess(zUfiSms_ExecSql(strSQL,
-zUfiSms_GetFirstColumnParaInfo,&g_zUfiSms_CurSmsPara));}int
+ ZTE_WMS_DB_PARAMETER_TABLE"\x3b";memset(&g_zUfiSms_CurSmsPara,
+(0x209a+295-0x21c1),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>=(0x5a4+6103-0x1d7a)
-&¶!=NULL)(void)strncpy(para->buf_addr,zresult[(0x10c+8667-0x22e7)],para->
-buf_len-(0xe2+4340-0x11d5));return(0x702+6533-0x2087);}int zUfiSms_GetSmsContent
-(char*pSmsBuf,int len){T_zUfiSms_BufInfo buf_info={(0x1bb2+405-0x1d47)};char*
-strSQL=
+T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;if(column>=(0x1cbf+1111-0x2115)
+&¶!=NULL)(void)strncpy(para->buf_addr,zresult[(0x56b+2367-0xeaa)],para->
+buf_len-(0x1719+3846-0x261e));return(0xbb6+1769-0x129f);}int
+zUfiSms_GetSmsContent(char*pSmsBuf,int len){T_zUfiSms_BufInfo buf_info={
+(0x1204+1180-0x16a0)};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,(0x18bd+3543-0x2694),len);return isSucess(
+len;memset(buf_info.buf_addr,(0x140+4494-0x12ce),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=-(0xcdd+614-0xf42);switch(
+char*sql=NULL;sqlite3_stmt*stmt=NULL;int id=-(0x31+5770-0x16ba);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[(0x102f+1532-0x162b)],
-ptDbSaveData->concat_info[(0x164f+1239-0x1b25)],pMemStore,
-WMS_TAG_TYPE_MO_SENT_V01,WMS_TAG_TYPE_MO_NOT_SENT_V01);break;}case
-(0x1087+5283-0x2526):{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[(0x2f4+2312-0xbfc)],ptDbSaveData
-->concat_info[(0x44+9911-0x26fa)],pMemStore,(0x1e86+1122-0x22e4));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[(0x9fa+6270-0x2278)],
-ptDbSaveData->concat_info[(0x1a3+7771-0x1ffd)],pMemStore,
-WMS_TAG_TYPE_MT_READ_V01,WMS_TAG_TYPE_MT_NOT_READ_V01);break;}default:{sql=
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x155+1048-0x56d)],ptDbSaveData
+->concat_info[(0x7cf+3087-0x13dd)],pMemStore,WMS_TAG_TYPE_MO_SENT_V01,
+WMS_TAG_TYPE_MO_NOT_SENT_V01);break;}case(0xdf9+3551-0x1bd4):{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[(0x1370+3799-0x2247)],
+ptDbSaveData->concat_info[(0x1486+3356-0x21a1)],pMemStore,(0x4d8+4970-0x183e));
+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[(0x14a+4388-0x126e)],
+ptDbSaveData->concat_info[(0x5c+9283-0x249e)],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[(0x1084+5372-0x2580)],
-ptDbSaveData->concat_info[(0xf11+5756-0x258c)],pMemStore);at_print(LOG_ERR,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x774+1297-0xc85)],ptDbSaveData
+->concat_info[(0x1759+2593-0x2179)],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,-(0xa6a+4562-0x1c3b),&stmt,
-(0xa0d+5028-0x1db1))!=SQLITE_OK){at_print(LOG_ERR,
+sqlite3_prepare(g_zUfiSms_DbPointer,sql,-(0x58f+6735-0x1fdd),&stmt,
+(0x194f+1208-0x1e07))!=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-
-(0x9e4+1403-0xf5e);}while(SQLITE_ROW==sqlite3_step(stmt)){int j=
-(0x150+1126-0x5b6);char**out_result=NULL;char*column_text=sqlite3_column_text(
-stmt,(0x1dcd+1441-0x236e));int count=-(0x864+3170-0x14c5);if(column_text!=NULL)
-count=zUfiSms_SplitString(column_text,&out_result,((char)(0x11f3+2635-0x1c03)));
-for(j=(0x328+3795-0x11fb);j<count;j++){if((0x44a+3260-0x1106)==strcmp(out_result
-[j],"")){if(j+(0x6cb+4936-0x1a12)==ptDbSaveData->concat_info[(0x1fe1+407-0x2176)
-]){id=sqlite3_column_int(stmt,(0x4c8+8430-0x25b5));break;}}}if(out_result!=NULL)
-{free(out_result);out_result=NULL;}if(-(0x22a+8273-0x227a)!=id){break;}}(void)
+(0x3f8+7097-0x1fb0);}while(SQLITE_ROW==sqlite3_step(stmt)){int j=
+(0x945+3582-0x1743);char**out_result=NULL;char*column_text=sqlite3_column_text(
+stmt,(0x127d+987-0x1658));int count=-(0x1c7b+386-0x1dfc);if(column_text!=NULL)
+count=zUfiSms_SplitString(column_text,&out_result,((char)(0x1314+754-0x15cb)));
+for(j=(0x7c9+1435-0xd64);j<count;j++){if((0x10b8+1842-0x17ea)==strcmp(out_result
+[j],"")){if(j+(0x1b50+2371-0x2492)==ptDbSaveData->concat_info[(0xecc+714-0x1194)
+]){id=sqlite3_column_int(stmt,(0xb15+6877-0x25f1));break;}}}if(out_result!=NULL)
+{free(out_result);out_result=NULL;}if(-(0x840+4713-0x1aa8)!=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>=(0x967+5964-0x20b2)){if(zresult[
-(0x8d7+1769-0xfc0)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
-result->id[result->all_or_count]=atoi(zresult[(0x1827+182-0x18dd)]);result->
+lname){if(fvarg!=NULL&&columns>=(0xffd+1825-0x171d)){if(zresult[
+(0x146f+2967-0x2006)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
+result->id[result->all_or_count]=atoi(zresult[(0x71b+2116-0xf5f)]);result->
all_or_count++;return SQLITE_OK;}}return SQLITE_ERROR;}VOID
zUfiSms_CheckDbOutdateSms(const char*pDbTable,T_zUfiSms_DelReq*pSmsDel){char
-acSql[(0x12b6+4401-0x2367)]={(0x12+873-0x37b)};struct timeval tp;if(
-(0xa08+3100-0x1624)!=gettimeofday(&tp,NULL)){printf(
+acSql[(0x4ef+3300-0x1153)]={(0x18b+1257-0x674)};struct timeval tp;if(
+(0x2e7+2668-0xd53)!=gettimeofday(&tp,NULL)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x67\x65\x74\x74\x69\x6d\x65\x6f\x66\x64\x61\x79\x20\x65\x72\x72\x6f\x72\x21\x21\x21"
);return;}if(tp.tv_sec<=OUTDATEINTERVAL){return;}snprintf(acSql,sizeof(acSql),
"\x53\x45\x4c\x45\x43\x54\x20\x69\x64\x20\x46\x52\x4f\x4d\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x6b\x74\x69\x6d\x65\x3c\x27\x25\x75\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x3b"
@@ -531,21 +530,21 @@
"\x6f\x70\x65\x6e\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x66\x61\x69\x6c\x65\x64"
,ZTE_WMS_DB_CMD_STATUS_TABLE);}return;}int
zUfiSms_GetCurrentRecvTotalSeq_Callback(void*fvarg,int column,char**zresult,char
-**lname){if(fvarg!=NULL&&column>=(0x471+3109-0x1094)){if(zresult[
-(0x422+3197-0x109f)]!=NULL&&zresult[(0x174c+3055-0x233a)]!=NULL){SMS_MSG_INFO*
-msg=(SMS_MSG_INFO*)fvarg;memset(msg->id,(0x5a5+7747-0x23e8),sizeof(msg->id));
-memset(msg->total_seq,(0x22ef+1009-0x26e0),sizeof(msg->total_seq));strncpy(msg->
-id,zresult[(0x688+3127-0x12bf)],sizeof(msg->id)-(0xe21+435-0xfd3));strncpy(msg->
-total_seq,zresult[(0x1d44+1787-0x243e)],sizeof(msg->total_seq)-
-(0x3c6+7662-0x21b3));printf(
+**lname){if(fvarg!=NULL&&column>=(0x87+6546-0x1a17)){if(zresult[
+(0x76f+3846-0x1675)]!=NULL&&zresult[(0x19c+8508-0x22d7)]!=NULL){SMS_MSG_INFO*msg
+=(SMS_MSG_INFO*)fvarg;memset(msg->id,(0xd80+1324-0x12ac),sizeof(msg->id));memset
+(msg->total_seq,(0x588+2998-0x113e),sizeof(msg->total_seq));strncpy(msg->id,
+zresult[(0x474+398-0x602)],sizeof(msg->id)-(0x71d+7616-0x24dc));strncpy(msg->
+total_seq,zresult[(0x859+3633-0x1689)],sizeof(msg->total_seq)-
+(0x881+7810-0x2702));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[(0xbb4+1076-0xfe8)],ptDbSaveData
-->concat_info[(0x1d66+622-0x1fd3)]);printf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x16b0+4139-0x26db)],
+ptDbSaveData->concat_info[(0xe0b+4640-0x202a)]);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 11eb4b5..99b21b8 100755
--- a/ap/app/zte_comm/sms/src/sms_fnc.c
+++ b/ap/app/zte_comm/sms/src/sms_fnc.c
@@ -8,17 +8,17 @@
#include "sms_fnc.h"
#include "sms_db.h"
#include "sms_code.h"
-#define SMS_RETRY_COUNT (0x37b+9019-0x26b3)
-#define SHORT_INT_LEN (0x719+3345-0x1424)
+#define SMS_RETRY_COUNT (0x166f+2220-0x1f18)
+#define SHORT_INT_LEN (0x13dc+718-0x16a4)
SMS_LOCATION g_zUfiSms_CurLocation=SMS_LOCATION_SIM;int
-g_zUfiSms_ConcatSmsReference=(0x259+3087-0xe68);T_zUfiSms_ParaInfo
+g_zUfiSms_ConcatSmsReference=(0x6e4+5106-0x1ad6);T_zUfiSms_ParaInfo
g_zUfiSms_CurSmsPara={"",WMS_STORAGE_TYPE_UIM_V01,
-ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0x1d7+6736-0x1c27),
-(0x226+5770-0x18b0),(0x1acb+3134-0x2709),"\x6e\x76"};int g_zUfiSms_Language=
-NOT_DEFINE_LANGUAGE;int g_zUfiSms_Dcs=(0x150b+1259-0x19f6);unsigned long
-g_zUfiSms_StoreCapablity[ZTE_WMS_MEMORY_MAX]={(0x1dec+189-0x1e45),
+ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0x184b+2669-0x22b8),
+(0x73d+3850-0x1647),(0x170c+1844-0x1e40),"\x6e\x76"};int g_zUfiSms_Language=
+NOT_DEFINE_LANGUAGE;int g_zUfiSms_Dcs=(0x12ba+2505-0x1c83);unsigned long
+g_zUfiSms_StoreCapablity[ZTE_WMS_MEMORY_MAX]={(0x4df+1011-0x86e),
ZTE_WMS_DB_MSG_COUNT_MAX};T_zSms_SendSmsReq g_zUfiSms_FinalCmgsBuf;SMS_PARAM
-g_zUfiSms_SendingSms;UINT16 g_zUfiSms_IsLanguageShift=(0xa09+4174-0x1a57);extern
+g_zUfiSms_SendingSms;UINT16 g_zUfiSms_IsLanguageShift=(0x8c1+2296-0x11b9);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
@@ -31,21 +31,20 @@
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[(0x492+4147-0x1493)];int i=
-(0x5d7+5118-0x19d5);g_zUfiSms_DelMsg.nv_count=(0x16fc+885-0x1a71);
-g_zUfiSms_DelMsg.nv_index=(0x2bc+116-0x330);g_zUfiSms_DelMsg.sim_count=
-(0x8b4+5823-0x1f73);g_zUfiSms_DelMsg.sim_index=(0x3c1+6295-0x1c58);for(i=
-(0x202+5193-0x164b);i<ptDelMsg->all_or_count;i++){memset(acStorePos,
-(0x10d2+5001-0x245b),sizeof(acStorePos));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
+T_zUfiSms_DelReq*ptDelMsg){char acStorePos[(0xf20+5386-0x23f8)];int i=
+(0x319+4566-0x14ef);g_zUfiSms_DelMsg.nv_count=(0x1071+2199-0x1908);
+g_zUfiSms_DelMsg.nv_index=(0xc5+1668-0x749);g_zUfiSms_DelMsg.sim_count=
+(0x1dca+1092-0x220e);g_zUfiSms_DelMsg.sim_index=(0x3b2+1101-0x7ff);for(i=
+(0x197c+3382-0x26b2);i<ptDelMsg->all_or_count;i++){memset(acStorePos,
+(0x6e2+6287-0x1f71),sizeof(acStorePos));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
"Mem_Store",acStorePos,sizeof(acStorePos),ptDelMsg->id[i])){return ZUFI_FAIL;}if
-((0x784+7598-0x2532)==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){g_zUfiSms_DelMsg.
+((0xe3a+5668-0x245e)==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((0x10b0+5640-0x26b8)==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){char*ptStrSmsState[]={
-"\x73\x6d\x73\x5f\x69\x6e\x69\x74\x69\x6e\x67",
+g_zUfiSms_DelMsg.nv_index_count++;}else if((0xa55+39-0xa7c)==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){
+char*ptStrSmsState[]={"\x73\x6d\x73\x5f\x69\x6e\x69\x74\x69\x6e\x67",
"\x73\x6d\x73\x5f\x69\x6e\x69\x74\x65\x64",
"\x73\x6d\x73\x5f\x6c\x6f\x61\x64\x69\x6e\x67",
"\x73\x6d\x73\x5f\x6c\x6f\x61\x64\x65\x64",
@@ -69,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(-
-(0x22e5+630-0x255a)==access(ZTE_WMS_DB_DIR,F_OK)){printf(
+(0x72a+3498-0x14d3)==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(-(0x81f+6344-0x20e6)==mkdir(ZTE_WMS_DB_DIR,
-(0x496+5029-0x163c))){printf(
+,ZTE_WMS_DB_DIR);if(-(0x24cf+450-0x2690)==mkdir(ZTE_WMS_DB_DIR,
+(0xcac+7051-0x2638))){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(-
-(0x84c+936-0xbf3)==access(ZTE_WMS_DB_PATH,F_OK)){printf(
+(0x19f0+2517-0x23c4)==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=(0x641+4951-0x1998);unsigned char mem_store_flag=
-(0xcfd+6450-0x262f);unsigned int tp_validity_period=(0x618+464-0x7e8);char
-Temp_sms_vp[(0xb7f+535-0xd8e)]={(0x1728+3677-0x2585)};CHAR reportEnable[
-(0x684+7365-0x2317)]={(0x45d+5915-0x1b78)};CHAR smsLocation[(0x599+5458-0x1ab9)]
-={(0xde4+4057-0x1dbd)};CHAR sendfailRetry[(0x121+6714-0x1b29)]={
-(0x19f0+2136-0x2248)};CHAR outdateDelete[(0x13b6+4025-0x233d)]={
-(0x1c9a+2317-0x25a7)};CHAR defaultStore[(0x1435+1618-0x1a55)]={
-(0x2469+450-0x262b)};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=(0xec0+321-0x1001);unsigned char mem_store_flag=
+(0x131f+1621-0x1974);unsigned int tp_validity_period=(0xef+4513-0x1290);char
+Temp_sms_vp[(0xa3c+3100-0x1650)]={(0xffc+5028-0x23a0)};CHAR reportEnable[
+(0x30b+1990-0xa9f)]={(0x2630+217-0x2709)};CHAR smsLocation[(0x18c8+473-0x1a6f)]=
+{(0xc70+2729-0x1719)};CHAR sendfailRetry[(0x8e6+6300-0x2150)]={(0xdba+224-0xe9a)
+};CHAR outdateDelete[(0x1bca+2865-0x26c9)]={(0x1ffd+1190-0x24a3)};CHAR
+defaultStore[(0x7d2+7840-0x2640)]={(0xbca+277-0xcdf)};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((0x16ec+408-0x1884)==
-strcmp(reportEnable,"\x31")){sts_flag=(0x187a+1472-0x1e39);}g_zUfiSms_CurSmsPara
-.status_report_on=sts_flag;if((0x865+7754-0x26af)==strcmp(smsLocation,"\x4d\x45"
-)){mem_store_flag=(0x46c+1027-0x86f);}else{mem_store_flag=(0x1416+2872-0x1f4d);}
-g_zUfiSms_CurSmsPara.mem_store=(unsigned int)((0x1bb8+2881-0x26f9)==
+NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if((0xcd+1000-0x4b5)==strcmp
+(reportEnable,"\x31")){sts_flag=(0x31d+7120-0x1eec);}g_zUfiSms_CurSmsPara.
+status_report_on=sts_flag;if((0x763+6214-0x1fa9)==strcmp(smsLocation,"\x4d\x45")
+){mem_store_flag=(0xc3c+2278-0x1522);}else{mem_store_flag=(0x20c4+1412-0x2647);}
+g_zUfiSms_CurSmsPara.mem_store=(unsigned int)((0x141b+1313-0x193c)==
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=(0x855+2007-0xf2d)
-;if((0x3cd+3735-0x1264)==strncmp(Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",
-(0x2f2+4993-0x166c))){tp_validity_period=(0x363+525-0x471);}if(
-(0xcea+4882-0x1ffc)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x5f\x64\x61\x79",
-(0xd66+3935-0x1cbe))){tp_validity_period=(0x1bb+3371-0xe3f);}if(
-(0x1f97+1707-0x2642)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x77\x65\x65\x6b",
-(0xc8a+5289-0x212c))){tp_validity_period=(0xf88+3553-0x1cbc);}if(
-(0xe52+4668-0x208e)==strncmp(Temp_sms_vp,"\x74\x77\x65\x6c\x76\x65\x68",
-(0x4ed+5539-0x1a89))){tp_validity_period=(0x1b2c+199-0x1b64);}
-g_zUfiSms_CurSmsPara.tp_validity_period=tp_validity_period;if(
-(0x3ba+8147-0x238d)==strcmp(sendfailRetry,"\x31")){g_zUfiSms_CurSmsPara.
-sendfail_retry_on=(0x1bf+1422-0x74c);}else{g_zUfiSms_CurSmsPara.
-sendfail_retry_on=(0x19f2+54-0x1a28);}if((0x21+1407-0x5a0)==strcmp(outdateDelete
-,"\x31")){g_zUfiSms_CurSmsPara.outdate_delete_on=(0x742+3609-0x155a);}else{
-g_zUfiSms_CurSmsPara.outdate_delete_on=(0x957+4499-0x1aea);}if(
-(0x28f+3651-0x10d2)==strcmp(defaultStore,"\x73\x69\x6d")){strncpy(
-g_zUfiSms_CurSmsPara.default_store,"\x73\x69\x6d",sizeof(g_zUfiSms_CurSmsPara.
-default_store)-(0x486+908-0x811));}else{strncpy(g_zUfiSms_CurSmsPara.
-default_store,"\x6e\x76",sizeof(g_zUfiSms_CurSmsPara.default_store)-
-(0x11ef+648-0x1476));}}void zUfiSms_GetDefaultPara(void){memset(&
-g_zUfiSms_CurSmsPara,(0x367+1940-0xafb),sizeof(T_zUfiSms_ParaInfo));
-g_zUfiSms_CurSmsPara.status_report_on=(0x1181+3663-0x1fd0);g_zUfiSms_CurSmsPara.
+NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));tp_validity_period=
+(0x4f9+4612-0x15fe);if((0x1b1c+265-0x1c25)==strncmp(Temp_sms_vp,
+"\x6c\x6f\x6e\x67\x65\x73\x74",(0x3bf+7690-0x21c2))){tp_validity_period=
+(0xb17+6237-0x2275);}if((0x398+5390-0x18a6)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x5f\x64\x61\x79",(0x4f6+2927-0x105e))){tp_validity_period=
+(0xf42+3374-0x1bc9);}if((0xa43+6259-0x22b6)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x77\x65\x65\x6b",(0x10d0+1701-0x176e))){tp_validity_period=
+(0x12ad+2601-0x1c29);}if((0x853+6993-0x23a4)==strncmp(Temp_sms_vp,
+"\x74\x77\x65\x6c\x76\x65\x68",(0xaf7+3102-0x170e))){tp_validity_period=
+(0x692+6890-0x20ed);}g_zUfiSms_CurSmsPara.tp_validity_period=tp_validity_period;
+if((0x7e4+409-0x97d)==strcmp(sendfailRetry,"\x31")){g_zUfiSms_CurSmsPara.
+sendfail_retry_on=(0xdd9+801-0x10f9);}else{g_zUfiSms_CurSmsPara.
+sendfail_retry_on=(0x1701+2862-0x222f);}if((0xd78+4519-0x1f1f)==strcmp(
+outdateDelete,"\x31")){g_zUfiSms_CurSmsPara.outdate_delete_on=
+(0x990+6467-0x22d2);}else{g_zUfiSms_CurSmsPara.outdate_delete_on=
+(0x8dd+1727-0xf9c);}if((0xb23+4188-0x1b7f)==strcmp(defaultStore,"\x73\x69\x6d"))
+{strncpy(g_zUfiSms_CurSmsPara.default_store,"\x73\x69\x6d",sizeof(
+g_zUfiSms_CurSmsPara.default_store)-(0x1c2b+2387-0x257d));}else{strncpy(
+g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(g_zUfiSms_CurSmsPara.
+default_store)-(0xd03+4403-0x1e35));}}void zUfiSms_GetDefaultPara(void){memset(&
+g_zUfiSms_CurSmsPara,(0x130a+4509-0x24a7),sizeof(T_zUfiSms_ParaInfo));
+g_zUfiSms_CurSmsPara.status_report_on=(0x1b38+1924-0x22bc);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
-=(0x13cb+4589-0x25b8);g_zUfiSms_CurSmsPara.outdate_delete_on=(0x3f0+4587-0x15db)
-;strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
-g_zUfiSms_CurSmsPara.default_store)-(0x564+244-0x657));}
-#if (0x6b2+828-0x9ee)
+=(0x1042+719-0x1311);g_zUfiSms_CurSmsPara.outdate_delete_on=(0xdc7+2645-0x181c);
+strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
+g_zUfiSms_CurSmsPara.default_store)-(0xd83+3147-0x19cd));}
+#if (0x17b4+2619-0x21ef)
T_zUfiSms_CmdStatus zUfiSms_SetParameters(T_zUfiSms_CmdMsgBuff*ptSmsBuffer){
T_zUfiSms_ParaInfo*ptSmsParameter=NULL;T_zUfiSms_ParaInfo tNewSmsParameter={
-(0x1269+5092-0x264d)};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)
-);
+(0x86f+5298-0x1d21)};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)!=(0xe19+5132-0x2225)){if(ZUFI_SMS_FAILURE==
+if(strlen(ptSmsParameter->sca)!=(0x7d9+469-0x9ae)){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=(0x16ef+3561-0x24d8);if(ZUFI_SUCC!=
+int zUfiSms_LoadSmsPara(){int count=(0xda9+5410-0x22cb);if(ZUFI_SUCC!=
zUfiSms_IsDbEmpty(ZTE_WMS_DB_PARAMETER_TABLE,&count)){return ZUFI_FAIL;}if(count
-==(0x2e0+1086-0x71e)){zUfiSms_GetDefaultCfgPara();if((0x1937+2901-0x248c)!=
+==(0xc0f+2526-0x15ed)){zUfiSms_GetDefaultCfgPara();if((0xd93+127-0xe12)!=
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((0xfe9+4531-0x219c)!=zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){
+();if((0x155c+581-0x17a1)!=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=(0x154c+3640-0x2384);if((ZTE_WMS_MEMORY_SIM==mem_store)||(
+int total_count=(0x679+6196-0x1ead);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"
@@ -175,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((0x1077+778-0x1381)==strcmp(
+int zUfiSms_SetStorePara(char*mem_store){if((0x1527+2833-0x2038)==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(
-(0x355+2666-0xdbf)==strcmp(mem_store,"\x4d\x45")){g_zUfiSms_CurSmsPara.mem_store
+(0x16+7781-0x1e7b)==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((0x9c4+355-0xb27)==strcmp(mem_store,"\x53\x52")){
-g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0x2ff+5555-0x18b0);(void)
+"\x31");}else if((0x121a+2876-0x1d56)==strcmp(mem_store,"\x53\x52")){
+g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0x11c+6304-0x19ba);(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)){
@@ -189,40 +187,40 @@
"\x63\x61\x6e\x20\x6e\x6f\x74\x20\x73\x65\x74\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x2e" "\n"
);return ZUFI_FAIL;}return ZUFI_SUCC;}int zUfiSms_SetScaPara(char*sca){strncpy(
g_zUfiSms_CurSmsPara.sca,sca,sizeof(g_zUfiSms_CurSmsPara.sca)-
-(0x1a84+3208-0x270b));if(ZUFI_FAIL==zUfiSms_SetDbParameters(&
-g_zUfiSms_CurSmsPara)){at_print(LOG_ERR,
+(0xcd0+6392-0x25c7));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==(0x7d9+6467-0x211b)){g_zUfiSms_Dcs=DCS_ASC;
-g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x1e63+341-0x1fb6)){
+char cDcs){if(cDcs==(0xf60+3485-0x1cfc)){g_zUfiSms_Dcs=DCS_ASC;
+g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x3a8+1417-0x92f)){
g_zUfiSms_Dcs=DCS_USC;g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==
-(0x1434+2550-0x1e27)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;
-}else if(cDcs==(0x3b5+8142-0x237e)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
+(0x2263+762-0x255a)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;}
+else if(cDcs==(0x17e6+1787-0x1edc)){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=(0x1f59+123-0x1fd4);i<ptGroupSms
+total_receiver=ptSendMsg->receiver_count;for(i=(0xd4d+2664-0x17b5);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=(0x9df+2380-0x132b);
+,i,ptGroupSms->receivers[i]);}ptGroupSms->current_receiver=(0x31d+7712-0x213d);
return ZUFI_SUCC;}int zUfiSms_FillConcatSms(T_zUfiSms_SendReq*pSendSrcMsg,
-T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0x15a5+3267-0x2268);int
-iUnitlen=(0x5e5+6603-0x1fb0);int iSegNo=(0x38c+780-0x698);unsigned char*
+T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0x1faf+669-0x224c);int
+iUnitlen=(0xe51+5109-0x2246);int iSegNo=(0x146+2102-0x97c);unsigned char*
pSmsConverted=NULL;unsigned char acConvertContent[
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*(0x5eb+5080-0x19bf)
-+(0x199d+387-0x1b1c)]={(0x55f+4333-0x164c)};unsigned char acTmpContent[
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*(0x19bf+434-0x1b6d)
-+(0x1c54+2286-0x253e)]={(0xe90+955-0x124b)};int iTimeZone=(0x10d6+2313-0x19df);
-int tmp_i=(0xaf3+3740-0x198f);if(NULL==pSendSrcMsg||NULL==pDestConcatMsg){return
--(0x6ad+5597-0x1c89);}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*
+(0x1a22+2363-0x2359)+(0x5c+4314-0x1132)]={(0x6ff+5487-0x1c6e)};unsigned char
+acTmpContent[ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*
+(0x111a+3383-0x1e4d)+(0x6e0+2648-0x1134)]={(0x1584+1359-0x1ad3)};int iTimeZone=
+(0x1506+2952-0x208e);int tmp_i=(0x165d+3707-0x24d8);if(NULL==pSendSrcMsg||NULL==
+pDestConcatMsg){return-(0x298+9074-0x2609);}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-(0x24a1+551-0x26c7);}printf(
+);return-(0xbfc+3474-0x198d);}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,(0x7f5+7906-0x26d7),sizeof(acTmpContent));if(
+acTmpContent));memset(acTmpContent,(0x101+3136-0xd41),sizeof(acTmpContent));if(
DCS_USC==g_zUfiSms_Dcs){pSmsConverted=acConvertContent;}else{if(
NOT_DEFINE_LANGUAGE==g_zUfiSms_Language){iTotalLen=
zUfiSms_ConvertAsciiToGsmDefault(acConvertContent,acTmpContent,pSendSrcMsg->
@@ -232,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)-(0x832+2096-0x1061))){
-iTotalLen=sizeof(acConvertContent)-(0x106c+476-0x1247);}pDestConcatMsg->sms_len=
-iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
-DCS_PORTUGUESE&&iTotalLen>(0x17c+6851-0x1ba4))||((g_zUfiSms_Dcs==DCS_USC)&&
+=acTmpContent;}if(iTotalLen>(sizeof(acConvertContent)-(0x13bf+2082-0x1be0))){
+iTotalLen=sizeof(acConvertContent)-(0x1502+1029-0x1906);}pDestConcatMsg->sms_len
+=iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
+DCS_PORTUGUESE&&iTotalLen>(0x14e2+3648-0x2287))||((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*
-(0x50c+8191-0x2509);}else{if(g_zUfiSms_Language==NOT_DEFINE_LANGUAGE||
+(0xffa+4888-0x2310);}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>
-(0x117c+2601-0x1ba5)&&iSegNo<ZTE_WMS_CONCAT_SMS_COUNT_MAX){memcpy(pDestConcatMsg
+(0xf50+3189-0x1bc5)&&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=(0x591+939-0x93b);memcpy(pDestConcatMsg->msg_contents[
-(0x165f+2281-0x1f48)],pSmsConverted,iTotalLen);printf(
+pDestConcatMsg->total_msg=(0x522+909-0x8ae);memcpy(pDestConcatMsg->msg_contents[
+(0x94a+7372-0x2616)],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[(0x1384+2154-0x1bee)]);}
+,iUnitlen,pDestConcatMsg->msg_contents[(0x1a06+1375-0x1f65)]);}
g_zUfiSms_ConcatTotalNum=pDestConcatMsg->total_msg;pDestConcatMsg->
-current_sending=(0xe85+4652-0x20b1);memcpy(&(pDestConcatMsg->date),&(pSendSrcMsg
+current_sending=(0x4b5+4324-0x1599);memcpy(&(pDestConcatMsg->date),&(pSendSrcMsg
->date),sizeof(T_zUfiSms_Date));tmp_i=atoi(pDestConcatMsg->date.timezone);if(
-tmp_i<INT_MIN+(0x1d2b+1863-0x2471)||tmp_i>INT_MAX-(0x4da+1598-0xb17)){printf(
+tmp_i<INT_MIN+(0x714+594-0x965)||tmp_i>INT_MAX-(0x1baa+442-0x1d63)){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*(0x11dc+1498-0x17b2);memset(
-pDestConcatMsg->date.timezone,(0x1326+4605-0x2523),sizeof(pDestConcatMsg->date.
-timezone));if(iTimeZone>(0x1db5+867-0x2118)){snprintf(pDestConcatMsg->date.
+,tmp_i);return ZUFI_FAIL;}iTimeZone=tmp_i*(0xa93+1043-0xea2);memset(
+pDestConcatMsg->date.timezone,(0x70+2885-0xbb5),sizeof(pDestConcatMsg->date.
+timezone));if(iTimeZone>(0xfe9+4523-0x2194)){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=
-(0x2449+475-0x2624);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
-user_data_header_present=TRUE;if((0x1838+3719-0x26bf)==ptConcatSms->
+(0x2d5+6577-0x1c86);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
+user_data_header_present=TRUE;if((0x15bf+105-0x1628)==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+(0x1d8a+2154-0x25f3);ptSubmit->user_data.
+seq_num=ptConcatSms->current_sending+(0x1c25+2604-0x2650);ptSubmit->user_data.
headers[iHeaderNum].u.concat_8.msg_ref=g_zUfiSms_ConcatSmsReference%
-(0x118b+4041-0x2055);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
-(0x1aba+1963-0x2264);ptDbSaveData->concat_info[(0x12c8+2164-0x1b3c)]=
+(0x323+1873-0x975);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
+(0x5ef+4795-0x18a9);ptDbSaveData->concat_info[(0x1cea+1813-0x23ff)]=
g_zUfiSms_ConcatSmsReference;}int zUfiSms_MakeFinalCmgsBuf(){SMS_PARAM tSmsData;
-int iPduLength=(0xbf+7945-0x1fc8);int nSmscLength=(0x9c1+84-0xa15);char Tempstrr
-[(0x1789+820-0x1abb)]={(0x1dbb+486-0x1fa1)};char Temp_sms_vp[(0x14b+5624-0x173b)
-]={(0x23fc+538-0x2616)};char tmpBuf1[(0xe30+3775-0x1cec)]={(0x1619+2631-0x2060)}
-;char tmpBuf2[(0x146+1974-0x8f6)]={(0x125f+4250-0x22f9)};CHAR smsCenter[
-(0x1216+55-0x121b)]={(0x1ce4+1069-0x2111)};memset(&tSmsData,(0xc4+771-0x3c7),
-sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,(0x4dc+4820-0x17b0),sizeof(
-T_zSms_SendSmsReq));if(CODE_GSM7==g_zUfiSms_SendingSms.TP_DCS){int i=
-(0x1831+789-0x1b46);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((
-(0x1209+3600-0x2019)==strncmp(Tempstrr,"\x31",(0x721+6058-0x1eca)))&&(
-g_zUfiSms_ConcatSms.current_sending==g_zUfiSms_ConcatSms.total_msg-
-(0x963+4906-0x1c8c))){tSmsData.TP_SRR=(0x57f+2950-0x1104);}else{tSmsData.TP_SRR=
-(0x67f+4807-0x1946);}tSmsData.TP_UDHI=g_zUfiSms_SendingSms.TP_UDHI;tSmsData.
-TP_VP=(0x4a3+4469-0x1519);sc_cfg_get(NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));
-if((0x36f+7359-0x202e)==strncmp(Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",
-(0x2ca+1715-0x976))){tSmsData.TP_VP=(0x10d+9726-0x260c);}else if(
-(0x14d5+2027-0x1cc0)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x5f\x64\x61\x79",
-(0xd07+1160-0x1188))){tSmsData.TP_VP=(0x1b17+7-0x1a77);}else if(
-(0x146+7684-0x1f4a)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x77\x65\x65\x6b",
-(0x61b+4937-0x195d))){tSmsData.TP_VP=(0x9d6+6038-0x20bf);}else if(
-(0x1691+182-0x1747)==strncmp(Temp_sms_vp,"\x74\x77\x65\x6c\x76\x65\x68",
-(0x1b2+3025-0xd7c))){tSmsData.TP_VP=(0x53f+931-0x853);}tSmsData.TP_PID=
-(0xfc9+2700-0x1a55);
-#if (0x34d+4185-0x13a5)
+int iPduLength=(0x1a90+374-0x1c06);int nSmscLength=(0x14f+765-0x44c);char
+Tempstrr[(0x9f9+4394-0x1b21)]={(0xc5+2880-0xc05)};char Temp_sms_vp[
+(0x12d+1455-0x6d4)]={(0xbc4+4884-0x1ed8)};char tmpBuf1[(0x498+110-0x503)]={
+(0xfc+3358-0xe1a)};char tmpBuf2[(0x100+352-0x25a)]={(0x1002+384-0x1182)};CHAR
+smsCenter[(0x1905+3630-0x2701)]={(0xc51+6120-0x2439)};memset(&tSmsData,
+(0x1163+1928-0x18eb),sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,
+(0x6d7+6573-0x2084),sizeof(T_zSms_SendSmsReq));if(CODE_GSM7==
+g_zUfiSms_SendingSms.TP_DCS){int i=(0x241c+568-0x2654);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(((0xadb+1194-0xf85)==strncmp(
+Tempstrr,"\x31",(0xd3c+568-0xf73)))&&(g_zUfiSms_ConcatSms.current_sending==
+g_zUfiSms_ConcatSms.total_msg-(0x449+6006-0x1bbe))){tSmsData.TP_SRR=
+(0x1430+1960-0x1bd7);}else{tSmsData.TP_SRR=(0x1406+2505-0x1dcf);}tSmsData.
+TP_UDHI=g_zUfiSms_SendingSms.TP_UDHI;tSmsData.TP_VP=(0x157a+2196-0x1d0f);
+sc_cfg_get(NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));if((0x1602+3127-0x2239)==
+strncmp(Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",(0x7d+8354-0x2118))){tSmsData
+.TP_VP=(0x502+1941-0xb98);}else if((0x10d2+4789-0x2387)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x5f\x64\x61\x79",(0xe12+2565-0x1810))){tSmsData.TP_VP=
+(0x116f+79-0x1117);}else if((0x131+7427-0x1e34)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x77\x65\x65\x6b",(0x6d2+1098-0xb15))){tSmsData.TP_VP=
+(0xf0c+6118-0x2645);}else if((0xc98+5153-0x20b9)==strncmp(Temp_sms_vp,
+"\x74\x77\x65\x6c\x76\x65\x68",(0x11bd+1609-0x17ff))){tSmsData.TP_VP=
+(0x434+4691-0x15f8);}tSmsData.TP_PID=(0x104c+4717-0x22b9);
+#if (0x9a9+7368-0x2670)
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 (0x1a84+2731-0x252e)
+#if (0xb38+4293-0x1bfc)
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,(0xbf0+4511-0x1d8d));
+(void)String2Bytes(g_zUfiSms_FinalCmgsBuf.pdu,tmpBuf1,(0x9e7+6933-0x24fa));
Bytes2String(tmpBuf1,tmpBuf2,strlen(tmpBuf1));nSmscLength=atoi(tmpBuf2);if(
-nSmscLength<(0x1044+2355-0x1977)||nSmscLength>INT_MAX-(0x2cc+4066-0x12ad)){
+nSmscLength<(0x1aa6+2506-0x2470)||nSmscLength>INT_MAX-(0x510+5395-0x1a22)){
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=(0x1d16+2201-0x25af);;}nSmscLength++;
-g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0x149+6588-0x1b03)-nSmscLength;
-#if (0xe4b+3485-0x1be7)
+,nSmscLength);nSmscLength=(0x97a+487-0xb61);;}nSmscLength++;
+g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0x1327+113-0x1396)-nSmscLength;
+#if (0x7f1+7606-0x25a6)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x4d\x61\x6b\x65\x46\x69\x6e\x61\x6c\x43\x6d\x67\x73\x42\x75\x66\x20\x6d\x61\x6b\x65\x20\x65\x6e\x64\x20\x70\x64\x75\x20\x64\x61\x74\x61" "\n"
);printf(
@@ -331,52 +329,52 @@
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-(0x3fd+1087-0x83b);}ptSubmit->
+ptGroupSms||NULL==ptDbSaveData){return-(0x10bf+4780-0x236a);}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(((0x8cf+6196-0x2102)<ptConcatSms->
-total_msg)&&(ptConcatSms->current_sending+(0xe8a+612-0x10ed)<ptConcatSms->
-total_msg)){ptSubmit->status_report_enabled=(0x1768+1640-0x1dd0);}ptSubmit->
+g_zUfiSms_CurSmsPara.status_report_on;if(((0x3e5+4371-0x14f7)<ptConcatSms->
+total_msg)&&(ptConcatSms->current_sending+(0x15f1+2967-0x2187)<ptConcatSms->
+total_msg)){ptSubmit->status_report_enabled=(0x1f7+8378-0x22b1);}ptSubmit->
message_reference=g_zUfiSms_MsgRefer;ptSubmit->pid=WMS_PID_DEFAULT;ptSubmit->dcs
-.msg_class=(wms_message_class_e_type)(0x111b+2778-0x1bf1);ptSubmit->dcs.
-is_compressed=(0x3+596-0x257);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)(0xc24+6486-0x2576);ptSubmit->dcs.
+is_compressed=(0x1587+2059-0x1d92);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=
-(0xfe4+4336-0x20d4);if(ptConcatSms->total_msg>(0x11c0+3495-0x1f66)){
+(0x201+4740-0x1485);if(ptConcatSms->total_msg>(0xe52+1645-0x14be)){
zUfiSms_FillDateheader(ptSubmit,ptConcatSms,ptDbSaveData);ptDbSaveData->
-concat_info[(0x3a+7238-0x1c7e)]=ptConcatSms->current_sending+(0xbcc+6107-0x23a6)
-;ptDbSaveData->concat_info[(0x1e2a+894-0x21a7)]=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][(0xf01+2082-0x1723)]==((char)(0x12cd+1802-0x19ac))){(void)
-zUfiSms_CharToInt(ptGroupSms->receivers[ptGroupSms->current_receiver]+
-(0x6+2614-0xa3b),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])-
-(0xdf7+5592-0x23ce),ptSubmit->address.digits);ptSubmit->address.number_type=
+concat_info[(0xfe5+1366-0x1539)]=ptConcatSms->current_sending+
+(0xbcb+2829-0x16d7);ptDbSaveData->concat_info[(0x1005+3290-0x1cde)]=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][(0x24+8733-0x2241)]==((char)(0x103a+1722-0x16c9)))
+{(void)zUfiSms_CharToInt(ptGroupSms->receivers[ptGroupSms->current_receiver]+
+(0x17ef+428-0x199a),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])-
+(0x321+1090-0x762),ptSubmit->address.digits);ptSubmit->address.number_type=
WMS_NUMBER_INTERNATIONAL;ptSubmit->address.number_of_digits=strlen(ptGroupSms->
-receivers[ptGroupSms->current_receiver])-(0x91f+5863-0x2005);}else if(ptGroupSms
-->receivers[ptGroupSms->current_receiver][(0x34d+1080-0x785)]==
-((char)(0x1f5f+1185-0x23d0))&&ptGroupSms->receivers[ptGroupSms->current_receiver
-][(0x2c2+6398-0x1bbf)]==((char)(0x1d8+3535-0xf77))){(void)zUfiSms_CharToInt(
-ptGroupSms->receivers[ptGroupSms->current_receiver]+(0xfa+7136-0x1cd8),strlen(
-ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x145f+3145-0x20a6),
+receivers[ptGroupSms->current_receiver])-(0x6da+2004-0xead);}else if(ptGroupSms
+->receivers[ptGroupSms->current_receiver][(0x8d3+6109-0x20b0)]==
+((char)(0x6af+1478-0xc45))&&ptGroupSms->receivers[ptGroupSms->current_receiver][
+(0x40b+8722-0x261c)]==((char)(0x77+9339-0x24c2))){(void)zUfiSms_CharToInt(
+ptGroupSms->receivers[ptGroupSms->current_receiver]+(0x18e8+2728-0x238e),strlen(
+ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x11f5+579-0x1436),
ptSubmit->address.digits);ptSubmit->address.number_type=WMS_NUMBER_INTERNATIONAL
;ptSubmit->address.number_of_digits=strlen(ptGroupSms->receivers[ptGroupSms->
-current_receiver])-(0xcc7+4249-0x1d5e);}else{(void)zUfiSms_CharToInt(ptGroupSms
+current_receiver])-(0xf6d+5549-0x2518);}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)(0x165f+2985-0x2208);ptSubmit->address.
-number_mode=(wms_number_mode_e_type)(0x225f+262-0x2365);ptSubmit->address.
+digit_mode=(wms_digit_mode_e_type)(0x62b+5723-0x1c86);ptSubmit->address.
+number_mode=(wms_number_mode_e_type)(0x212+6553-0x1bab);ptSubmit->address.
number_plan=WMS_NUMBER_PLAN_TELEPHONY;memset(&g_zUfiSms_SendingSms,
-(0x19a3+2738-0x2455),sizeof(SMS_PARAM));snprintf(g_zUfiSms_SendingSms.TPA,sizeof
-(g_zUfiSms_SendingSms.TPA),"\x25\x73",ptGroupSms->receivers[ptGroupSms->
+(0x58c+1861-0xcd1),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=
@@ -385,21 +383,21 @@
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]={
-(0xc83+3390-0x19c1)};int i=(0xebb+1493-0x1490);if(NULL==ptClientMsg){return;}
-memcpy((void*)sca,(void*)(g_zUfiSms_CurSmsPara.sca),sizeof(g_zUfiSms_CurSmsPara.
-sca));if(sca[(0x495+4338-0x1587)]==((char)(0x10b9+2310-0x1994))){ptClientMsg->u.
+(0x17a+2340-0xa9e)};int i=(0x594+882-0x906);if(NULL==ptClientMsg){return;}memcpy
+((void*)sca,(void*)(g_zUfiSms_CurSmsPara.sca),sizeof(g_zUfiSms_CurSmsPara.sca));
+if(sca[(0xeac+2147-0x170f)]==((char)(0x10ff+1379-0x1637))){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[(0x2c2+8149-0x2297)]==
-((char)(0x30b+1460-0x894))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits--;for(i=(0x93f+2429-0x12bc);i<ptClientMsg->u.gw_message.
-sc_address.number_of_digits;i++){sca[i]=sca[i+(0x50+4999-0x13d6)];}}else if(sca[
-(0x1c49+1071-0x2078)]==((char)(0x73+3939-0xfa6))&&sca[(0x1d8d+759-0x2083)]==
-((char)(0x82b+6919-0x2302))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits-=(0x395+4905-0x16bc);for(i=(0x1eb0+238-0x1f9e);i<ptClientMsg->u
-.gw_message.sc_address.number_of_digits;i++){sca[i]=sca[i+(0x7a5+4343-0x189a)];}
-}(void)zUfiSms_CharToInt(sca,ptClientMsg->u.gw_message.sc_address.
+sc_address.number_of_digits=strlen(sca);if(sca[(0x245+7931-0x2140)]==
+((char)(0x115f+1311-0x1653))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits--;for(i=(0x3b8+1741-0xa85);i<ptClientMsg->u.gw_message.
+sc_address.number_of_digits;i++){sca[i]=sca[i+(0x34b+219-0x425)];}}else if(sca[
+(0x1659+1318-0x1b7f)]==((char)(0x982+5801-0x1ffb))&&sca[(0x911+1915-0x108b)]==
+((char)(0x1aaf+1165-0x1f0c))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits-=(0xef2+3672-0x1d48);for(i=(0x21e4+571-0x241f);i<ptClientMsg->u
+.gw_message.sc_address.number_of_digits;i++){sca[i]=sca[i+(0x1bd3+2582-0x25e7)];
+}}(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
@@ -409,12 +407,12 @@
}ptDbSaveData->mem_store=ptClientMsg->msg_hdr.mem_store;ptDbSaveData->index=
ptClientMsg->msg_hdr.index;ptDbSaveData->mode=ptClientMsg->msg_hdr.message_mode;
ptDbSaveData->tag=ptClientMsg->msg_hdr.tag;memset(ptDbSaveData->number,
-(0xd44+4138-0x1d6e),ZTE_WMS_ADDRESS_LEN_MAX+(0x500+3319-0x11f6));memcpy(
+(0x1160+4192-0x21c0),ZTE_WMS_ADDRESS_LEN_MAX+(0x20c1+965-0x2485));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,(0x2032+1028-0x2436),sizeof(ptDbSaveData->sms_content));if(
+sms_content,(0x63+1437-0x600),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
@@ -425,7 +423,7 @@
ptDbSaveData){T_zUfiSms_ClientTsData tClientTsData;ptClientMsg->msg_hdr.
mem_store=WMS_MEMORY_STORE_NV_GW;ptClientMsg->msg_hdr.tag=WMS_TAG_MO_NOT_SENT;
ptClientMsg->msg_hdr.message_mode=WMS_MESSAGE_MODE_GW;ptClientMsg->u.gw_message.
-is_broadcast=FALSE;memset((void*)&tClientTsData,(0x1574+1-0x1575),sizeof(
+is_broadcast=FALSE;memset((void*)&tClientTsData,(0x225f+942-0x260d),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
@@ -434,94 +432,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=(0xaa2+1355-0xfed);pContent=(char*)
-malloc((0xd40+249-0xe35)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent==
-NULL){return ZUFI_FAIL;}memset(pContent,(0x855+3529-0x161e),(0xfba+5806-0x2664)*
-ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(WMS_GW_ALPHABET_7_BIT_DEFAULT==
-ptDbSaveData->alphabet){static char data[(0x20a8+277-0x21b9)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0xaa5+415-0xc43)]={(0x1c46+2074-0x2460)};memset
-(data,(0x2b6+8785-0x2507),(0x7ef+7309-0x2478)*ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+
-(0x874+664-0xb0b));(void)zUfiSms_DecodeContent((char*)ptDbSaveData->sms_content,
-strlen(ptDbSaveData->sms_content),FALSE,data);strncpy(pContent,data,
-(0x16ec+175-0x1797)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x1fbf+665-0x2257));}
-else{strncpy(pContent,ptDbSaveData->sms_content,(0x1385+1142-0x17f7)*
-ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x7d3+685-0xa7f));}ptDbSaveData->tp_dcs=(
-unsigned char)(0x1075+634-0x12ed);if(-(0xf1+7034-0x1c6a)==iSmsId){if(ZUFI_FAIL==
-zUfiSms_GetTotalCount(pMemStore,&iTotalCount)){free(pContent);pContent=NULL;
-return ZUFI_FAIL;}printf(
+ZUFI_SUCC;char*pContent=NULL;int iTotalCount=(0x48f+6885-0x1f74);pContent=(char*
+)malloc((0x159a+3041-0x2177)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent
+==NULL){return ZUFI_FAIL;}memset(pContent,(0xe4a+1485-0x1417),
+(0x1839+3607-0x264c)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(
+WMS_GW_ALPHABET_7_BIT_DEFAULT==ptDbSaveData->alphabet){static char data[
+(0x9ba+4524-0x1b62)*ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x7aa+1936-0xf39)]={
+(0xe60+4401-0x1f91)};memset(data,(0x108a+4802-0x234c),(0x8fa+5436-0x1e32)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x9bc+1392-0xf2b));(void)zUfiSms_DecodeContent(
+(char*)ptDbSaveData->sms_content,strlen(ptDbSaveData->sms_content),FALSE,data);
+strncpy(pContent,data,(0xb3c+6899-0x262b)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-
+(0x1013+340-0x1166));}else{strncpy(pContent,ptDbSaveData->sms_content,
+(0x16d+3621-0xf8e)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x1515+3241-0x21bd));}
+ptDbSaveData->tp_dcs=(unsigned char)(0x1292+1091-0x16d3);if(-(0x8e1+5985-0x2041)
+==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-(0xb73+6109-0x234f);}if(ZUFI_FAIL==zUfiSms_InsertNormalSmsToDb(
+;return-(0x5bd+1034-0x9c6);}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=(0x953+3620-0x1777);for(i=(0xcd9+4833-0x1fba);i<count;i++){if(
-ptDbSaveData->concat_info[(0x875+1066-0xc9d)]==i+(0xc7f+1779-0x1371)){free(
-out_result[i]);out_result[i]=NULL;break;}}return(0x104+9454-0x25f2);}int
+out_result){int i=(0x1166+5008-0x24f6);for(i=(0x31b+9149-0x26d8);i<count;i++){if
+(ptDbSaveData->concat_info[(0x8a0+4117-0x18b3)]==i+(0x13f5+1655-0x1a6b)){free(
+out_result[i]);out_result[i]=NULL;break;}}return(0x1489+284-0x15a5);}int
zUfiSms_AddNewSmsToConcatData(T_zUfiSms_DbStoreData*ptDbSaveData,char*
pOldContent,char*pFormatNewContent,char*pRealNewContent,T_zUfiSms_DbStoreStr*pac
-,int*pConcatTotalNum,int len){int count=(0x1243+458-0x140d);char**out_result=
-NULL;char cSegChar=((char)(0x807+6709-0x2201));int i=(0x391+922-0x72b);int
-iTotalSegNum=(0x80d+6431-0x212c);char acContentSeg[(0xa51+3219-0x16e2)*
-ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX*ZTE_WMS_SMS_COUNT_MAX]={(0x227+70-0x26d)};
-char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==pOldContent){return-
-(0xccf+429-0xe7b);}count=zUfiSms_SplitString(pOldContent,&out_result,cSegChar);
-for(i=(0xc6+5612-0x16b2);i<count;i++){if(ptDbSaveData->concat_info[
-(0x1777+857-0x1ace)]==i+(0x940+355-0xaa2)){out_result[i]=(char*)malloc(sizeof(
-ptDbSaveData->sms_content));memset(out_result[i],(0xa65+5416-0x1f8d),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)-(0x1166+5317-0x262a)
-);}break;}}for(i=(0x28a+7178-0x1e94);i<count;i++){snprintf(acContentSeg+strlen(
-acContentSeg),sizeof(acContentSeg)-strlen(acContentSeg),"\x25\x73",out_result[i]
-);strcat(pFormatNewContent,out_result[i]);if(i!=count-(0x1967+561-0x1b97)){
-strcat(pFormatNewContent,"\x3b");}}strncpy(pRealNewContent,acContentSeg,len);
+,int*pConcatTotalNum,int len){int count=(0xb7b+3557-0x1960);char**out_result=
+NULL;char cSegChar=((char)(0x7e8+7092-0x2361));int i=(0x2312+950-0x26c8);int
+iTotalSegNum=(0x38+6353-0x1909);char acContentSeg[(0x325+3834-0x121d)*
+ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX*ZTE_WMS_SMS_COUNT_MAX]={
+(0x1c02+1374-0x2160)};char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==
+pOldContent){return-(0x23d+56-0x274);}count=zUfiSms_SplitString(pOldContent,&
+out_result,cSegChar);for(i=(0xcf8+6212-0x253c);i<count;i++){if(ptDbSaveData->
+concat_info[(0x17cb+2732-0x2275)]==i+(0x1afb+3041-0x26db)){out_result[i]=(char*)
+malloc(sizeof(ptDbSaveData->sms_content));memset(out_result[i],
+(0xb01+2181-0x1386),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)-(0x2c4+869-0x628));}break;}}for(i=
+(0x1677+4088-0x266f);i<count;i++){snprintf(acContentSeg+strlen(acContentSeg),
+sizeof(acContentSeg)-strlen(acContentSeg),"\x25\x73",out_result[i]);strcat(
+pFormatNewContent,out_result[i]);if(i!=count-(0x14da+2212-0x1d7d)){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=(0x6b2+1822-0xdd0);i<count;i++){if(ptDbSaveData->concat_info[
-(0x13dd+3136-0x201b)]==i+(0x767+1170-0xbf8)){out_result[i]=(char*)malloc(
-SHORT_INT_LEN);memset(out_result[i],(0x112a+1271-0x1621),SHORT_INT_LEN);snprintf
-(out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->index);break;}}for(i=
-(0xbb1+5737-0x221a);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd),
+i=(0x4b4+218-0x58e);i<count;i++){if(ptDbSaveData->concat_info[
+(0x491+7095-0x2046)]==i+(0x1dd+6113-0x19bd)){out_result[i]=(char*)malloc(
+SHORT_INT_LEN);memset(out_result[i],(0x85d+3224-0x14f5),SHORT_INT_LEN);snprintf(
+out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->index);break;}}for(i=
+(0xc6b+3067-0x1866);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd),
sizeof(pac->FormatInd)-strlen(pac->FormatInd),"\x25\x73",out_result[i]);if(i!=
-count-(0x174d+571-0x1987)){snprintf(pac->FormatInd+strlen(pac->FormatInd),sizeof
-(pac->FormatInd)-strlen(pac->FormatInd),"\x3b");}}zUfiSms_ConcatDataFree(
+count-(0x1713+2336-0x2032)){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=
-(0x1081+2622-0x1abf);i<count;i++){if(ptDbSaveData->concat_info[
-(0x2b2+1634-0x912)]==i+(0x6e1+4927-0x1a1f)){out_result[i]=(char*)malloc(
-SHORT_INT_LEN);memset(out_result[i],(0x60f+5154-0x1a31),SHORT_INT_LEN);snprintf(
-out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->concat_info[
-(0xd4+7463-0x1df9)]);break;}}for(i=(0xfd2+1856-0x1712);i<count;i++){snprintf(pac
-->FormatSeq+strlen(pac->FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq)
-,"\x25\x73",out_result[i]);if(i!=count-(0x54a+6822-0x1fef)){snprintf(pac->
-FormatSeq+strlen(pac->FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),
-"\x3b");}if((0x44+9599-0x25c3)!=strcmp(out_result[i],"")){iTotalSegNum++;}}*
-pConcatTotalNum=iTotalSegNum;zUfiSms_ConcatDataFree(ptDbSaveData,count,
-out_result);free(out_result);out_result=NULL;return(0x2064+273-0x2175);}int
-zUfiSms_UpdateConcatSms(T_zUfiSms_DbStoreData*ptDbSaveData,const char*pStorePos,
-long iSmsId){T_zUfiSms_DbStoreStr ac={(0x1693+2994-0x2245)};char*pOldContent=
-NULL;char*pFormatNewContent=NULL;char*pRealNewContent=NULL;int iTotalNum=
-(0x2378+337-0x24c9);int result=ZUFI_SUCC;int spaceLen=(0x289+2029-0xa72)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x301+4630-0x1513)
+zUfiSms_SplitString(pac->Seg_Seq,&out_result,cSegChar);for(i=(0x922+4321-0x1a03)
+;i<count;i++){if(ptDbSaveData->concat_info[(0x248c+290-0x25ac)]==i+
+(0x1597+1757-0x1c73)){out_result[i]=(char*)malloc(SHORT_INT_LEN);memset(
+out_result[i],(0x861+683-0xb0c),SHORT_INT_LEN);snprintf(out_result[i],
+SHORT_INT_LEN,"\x25\x64",ptDbSaveData->concat_info[(0x91+9347-0x2512)]);break;}}
+for(i=(0x3e1+8570-0x255b);i<count;i++){snprintf(pac->FormatSeq+strlen(pac->
+FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x25\x73",out_result[i
+]);if(i!=count-(0x39+2538-0xa22)){snprintf(pac->FormatSeq+strlen(pac->FormatSeq)
+,sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x3b");}if((0xda9+4651-0x1fd4)!=
+strcmp(out_result[i],"")){iTotalSegNum++;}}*pConcatTotalNum=iTotalSegNum;
+zUfiSms_ConcatDataFree(ptDbSaveData,count,out_result);free(out_result);
+out_result=NULL;return(0x510+5181-0x194d);}int zUfiSms_UpdateConcatSms(
+T_zUfiSms_DbStoreData*ptDbSaveData,const char*pStorePos,long iSmsId){
+T_zUfiSms_DbStoreStr ac={(0x3b1+3063-0xfa8)};char*pOldContent=NULL;char*
+pFormatNewContent=NULL;char*pRealNewContent=NULL;int iTotalNum=
+(0x4e3+6047-0x1c82);int result=ZUFI_SUCC;int spaceLen=(0x136d+2871-0x1ea0)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x2e7+5572-0x18a7)
;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,(0xe0d+1210-0x12c7),
-spaceLen);memset(pOldContent,(0xa35+3204-0x16b9),spaceLen);memset(
-pFormatNewContent,(0xc58+1607-0x129f),spaceLen);(void)zUfiSms_GetConcatInfo(
+pRealNewContent);return ZUFI_FAIL;}memset(pRealNewContent,(0x1a42+776-0x1d4a),
+spaceLen);memset(pOldContent,(0xeac+6149-0x26b1),spaceLen);memset(
+pFormatNewContent,(0x1778+2606-0x21a6),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(-(0x30b+629-0x57f)==
+,ac.IndStr,ac.Seg_Seq,ac.FormatInd,ac.FormatSeq);if(-(0xdb8+802-0x10d9)==
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=
-(0x10c9+4624-0x22d7);if(ZUFI_FAIL==zUfiSms_UpdateConcatSmsToDb(ptDbSaveData,
+(0x7da+217-0x8b1);if(ZUFI_FAIL==zUfiSms_UpdateConcatSmsToDb(ptDbSaveData,
pStorePos,pFormatNewContent,pRealNewContent,&ac,iTotalNum,iSmsId)){result=
ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x74\x65\x65\x74\x20\x31\x20\x49\x6e\x64\x53\x74\x72\x3a\x25\x73\x2c\x53\x65\x67\x5f\x53\x65\x71\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x49\x6e\x64\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x53\x65\x71\x3a\x25\x73" "\n"
@@ -530,33 +529,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={(0x7f3+5206-0x1c49)};int
-iSms_TotalCount=(0xaf3+229-0xbd8);int i=(0xd02+3267-0x19c5);char acTmpContent[
-(0xbf8+6844-0x25b4)];int iConcatNum=(0x1184+3246-0x1e32);char*pFormatConcat=NULL
-;char*pContent=NULL;int spaceLen=(0x423+2204-0xcbb)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xff7+3065-0x1bec)
-;if(NULL==ptDbSaveData||NULL==pStorePos){return ZUFI_FAIL;}printf(
+const char*pStorePos){T_zUfiSms_DbStoreStr ac={(0x679+5634-0x1c7b)};int
+iSms_TotalCount=(0xdbf+2601-0x17e8);int i=(0x435+2845-0xf52);char acTmpContent[
+(0x172f+3226-0x22c9)];int iConcatNum=(0x17a+6355-0x1a4d);char*pFormatConcat=NULL
+;char*pContent=NULL;int spaceLen=(0x422+8476-0x253a)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x45b+703-0x716);
+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,(0x1c95+1837-0x23c2),sizeof(acTmpContent));iSms_TotalCount
-=ptDbSaveData->concat_info[(0x83d+622-0xaaa)];for(i=(0x17fa+2130-0x204b);i<
+);memset(acTmpContent,(0x161+6806-0x1bf7),sizeof(acTmpContent));iSms_TotalCount=
+ptDbSaveData->concat_info[(0x1680+4215-0x26f6)];for(i=(0x5a0+6644-0x1f93);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,(0x2170+287-0x228f),
-spaceLen);pContent=(char*)malloc(spaceLen);if(pContent==NULL){free(pFormatConcat
-);return ZUFI_FAIL;}memset(pContent,(0xc07+517-0xe0c),spaceLen);if(-
-(0x371+356-0x4d4)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
+pFormatConcat){return ZUFI_FAIL;}memset(pFormatConcat,(0x6e7+174-0x795),spaceLen
+);pContent=(char*)malloc(spaceLen);if(pContent==NULL){free(pFormatConcat);return
+ ZUFI_FAIL;}memset(pContent,(0x39b+7977-0x22c4),spaceLen);if(-
+(0x284+7165-0x1e80)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
pFormatConcat,pContent,&ac,&iConcatNum,spaceLen)){free(pFormatConcat);free(
pContent);pFormatConcat=NULL;pContent=NULL;return ZUFI_FAIL;}ptDbSaveData->
-tp_dcs=(0x183+3328-0xe81);if(ZUFI_FAIL==zUfiSms_InsertConcatSmsToDb(ptDbSaveData
-,pStorePos,pFormatConcat,pContent,&ac,iConcatNum)){free(pFormatConcat);free(
+tp_dcs=(0x12b+701-0x3e6);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=(0x1f2+7033-0x1d6b);int total_count=
-(0xcef+1420-0x127b);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
+ptDbSaveData,char*pMemStore){long iSmsId=(0x1e11+1392-0x2381);int total_count=
+(0x3b9+6242-0x1c1b);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
iSmsId=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,pMemStore);if(-
-(0x163a+2587-0x2054)!=iSmsId){printf(
+(0x646+6546-0x1fd7)!=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,102 +567,102 @@
"\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[(0x166b+4087-0x2658)];int iTotalCount=
-(0xa11+1923-0x1194);int id=(0x3b1+3904-0x12f1);UINT8 needCheckMemory=
-(0x99c+5913-0x20b4);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(acDbMemStore
-,(0x334+8354-0x23d6),sizeof(acDbMemStore));if(WMS_STORAGE_TYPE_UIM_V01==
-iMemStore){strncpy(acDbMemStore,ZTE_WMS_DB_SIM_TABLE,sizeof(acDbMemStore)-
-(0x592+8362-0x263b));}else{strncpy(acDbMemStore,ZTE_WMS_DB_NV_TABLE,sizeof(
-acDbMemStore)-(0x745+2212-0xfe8));}if((0x12a5+1507-0x1887)==ptDbSaveData->
-concat_sms){id=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,&acDbMemStore);if(-
-(0xbdd+2001-0x13ad)!=id){needCheckMemory=(0xc8c+5004-0x2018);}}if(
-needCheckMemory==(0x1057+2083-0x1879)){if(ZUFI_FAIL==zUfiSms_GetTotalCount(
-acDbMemStore,&iTotalCount)){return ZUFI_FAIL;}printf(
+iMemStore,long iSmsId){char acDbMemStore[(0x14bb+2117-0x1cf6)];int iTotalCount=
+(0x1097+5456-0x25e7);int id=(0x1aa1+1943-0x2238);UINT8 needCheckMemory=
+(0x1af0+1737-0x21b8);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(
+acDbMemStore,(0x1f3+4925-0x1530),sizeof(acDbMemStore));if(
+WMS_STORAGE_TYPE_UIM_V01==iMemStore){strncpy(acDbMemStore,ZTE_WMS_DB_SIM_TABLE,
+sizeof(acDbMemStore)-(0x1d58+121-0x1dd0));}else{strncpy(acDbMemStore,
+ZTE_WMS_DB_NV_TABLE,sizeof(acDbMemStore)-(0x19ef+3261-0x26ab));}if(
+(0x735+1831-0xe5b)==ptDbSaveData->concat_sms){id=zUfiSms_SearchConcatSmsInDb(
+ptDbSaveData,&acDbMemStore);if(-(0x1259+4079-0x2247)!=id){needCheckMemory=
+(0x17f0+2367-0x212f);}}if(needCheckMemory==(0x1a16+1919-0x2194)){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[
-(0x1055+2282-0x193d)]==(0x1214+1684-0x18a8)||ptDbSaveData->concat_info[
-(0x157d+1475-0x1b3e)]>ptDbSaveData->concat_info[(0xfb7+2670-0x1a24)]){
-ptDbSaveData->concat_sms=(0xc1+1661-0x73e);}printf(
+(0x23f+2904-0xd95)]==(0x5c4+2444-0xf50)||ptDbSaveData->concat_info[
+(0x234+6204-0x1a6e)]>ptDbSaveData->concat_info[(0x23f+9349-0x26c3)]){
+ptDbSaveData->concat_sms=(0x1184+2604-0x1bb0);}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[
-(0x6b3+7682-0x24b4)]);if((0x14ac+2238-0x1d69)==ptDbSaveData->concat_sms){if(
-ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0x757+5725-0x1db3)]){
+,iTotalCount,ptDbSaveData->concat_sms,ptDbSaveData->concat_info[(0x4ef+59-0x529)
+]);if((0x2071+1240-0x2548)==ptDbSaveData->concat_sms){if(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0xdd4+6118-0x25b9)]){
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=(0x9a2+1881-0x10fb);if(NULL==ptDbSaveData){
+ptDbSaveData,int cid){int atRes=(0xaa1+7214-0x26cf);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,-(0xf76+2743-0x1a2c))){g_zUfiSms_MsgRefer++;ptDbSaveData
+WMS_STORAGE_TYPE_NV_V01,-(0xc01+4547-0x1dc3))){g_zUfiSms_MsgRefer++;ptDbSaveData
->msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}
-}else{CHAR sendfailRetry[(0x1628+993-0x19d7)]={(0x113c+2203-0x19d7)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x1120+893-0x149d)==
-strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x315+3401-0x105b);}
+}else{CHAR sendfailRetry[(0xc61+5789-0x22cc)]={(0x852+3255-0x1509)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x1e8+8172-0x21d4)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x1287+3702-0x20fa);}
atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{
zSms_RecvCmgsOk();}}return WMS_CMD_SUCCESS;}int zUfiSms_SendConcatSms(int cid){
-int atRes=(0x650+3732-0x14e4);T_zUfiSms_ClientMsg tClientMsg;
+int atRes=(0x8c2+5820-0x1f7e);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,(0xf95+4758-0x222b),sizeof(T_zUfiSms_ClientMsg));memset((void*)&
-tDbSaveData,(0xa0a+5505-0x1f8b),sizeof(tDbSaveData));zUfiSms_SetPduData(&
+&tClientMsg,(0x21+2331-0x93c),sizeof(T_zUfiSms_ClientMsg));memset((void*)&
+tDbSaveData,(0x217c+105-0x21e5),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,-(0x13bf+1560-0x19d6));g_zUfiSms_SendFailedCount++;}else
-{CHAR sendfailRetry[(0xabf+6921-0x2596)]={(0x56a+6018-0x1cec)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0xacf+6633-0x24b8)==
-strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x28c+2011-0xa64);}
+WMS_STORAGE_TYPE_NV_V01,-(0x2cc+6755-0x1d2e));g_zUfiSms_SendFailedCount++;}else{
+CHAR sendfailRetry[(0x22cb+283-0x23b4)]={(0x1+1217-0x4c2)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x717+653-0x9a4)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x1083+3506-0x1e32);}
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+(0x21c3+1049-0x25db))){
+g_zUfiSms_UnitLen*(g_zUfiSms_ConcatSms.current_sending+(0x49+352-0x1a8))){
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,(0x8c1+4544-0x1a81),sizeof(
+tSendStatus;memset((void*)&tSendStatus,(0x7b+7886-0x1f49),sizeof(
T_zUfiSms_StatusInfo));tSendStatus.err_code=ZTE_SMS_CMS_NONE;tSendStatus.
send_failed_count=g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=
-(0x531+7582-0x22cf);tSendStatus.cmd_status=WMS_CMD_FAILED;tSendStatus.cmd=
+(0x1140+2721-0x1be1);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=(0x33b+3270-0x1001);int i=
-(0x8ed+739-0xbd0);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR
-sendfailRetry[(0x4b2+2832-0xf90)]={(0x1618+2986-0x21c2)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x699+3728-0x1529)==
-strcmp("\x31",sendfailRetry)){for(i=(0x164a+1580-0x1c76);i<SMS_RETRY_COUNT;i++){
+return result;}int zSvr_sendCmgs(VOID){int atRes=(0x13c6+1008-0x17b6);int i=
+(0xe75+5769-0x24fe);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR
+sendfailRetry[(0x109+4593-0x12c8)]={(0x1146+2358-0x1a7c)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x1e13+744-0x20fb)==
+strcmp("\x31",sendfailRetry)){for(i=(0xfa6+5373-0x24a3);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=(0x1d9c+568-0x1fd4);if(-
-(0x29a+2370-0xbdb)==g_zUfiSms_UnitLen){printf(
+T_zUfiSms_DbStoreData tDbSaveData;int res=(0x1f65+1098-0x23af);if(-
+(0x339+8698-0x2532)==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,(0xb70+5690-0x21aa),
-sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x9aa+1512-0xf92),
+g_zUfiSms_ConcatSms.total_msg){memset((void*)&tClientMsg,(0x13e4+4372-0x24f8),
+sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x1722+2510-0x20f0),
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,-(0xb5+4587-0x129f));
+zUfiSms_WriteSmsToDb(&tDbSaveData,WMS_STORAGE_TYPE_NV_V01,-(0xec8+1974-0x167d));
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+(0x5bf+2703-0x104d))){g_zUfiSms_UnitLen=g_zUfiSms_ConcatSms.
+current_sending+(0x31d+5495-0x1893))){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,(0x68c+1170-0xb1e),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
+tSendStatus,(0x64a+8070-0x25d0),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
err_code=ZTE_SMS_CMS_NONE;tSendStatus.send_failed_count=
-g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0x4ac+2589-0xec9);
+g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0x76+5189-0x14bb);
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 (0x1a98+1823-0x21b7)
-if(g_zUfiSms_ConcatSms.total_msg>(0x117b+4484-0x22fe)){printf(
+#if (0x12f5+2461-0x1c92)
+if(g_zUfiSms_ConcatSms.total_msg>(0x5ab+5040-0x195a)){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,(0xb93+2654-0x15f1)
-,sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x6b0+6165-0x1ec5),
+);zUfiSms_SendConcatSms(cid);}else{memset((void*)&tClientMsg,(0x1075+495-0x1264)
+,sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x1dd4+761-0x20cd),
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(
@@ -671,80 +670,79 @@
);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[(0xa94+3831-0x1986)]={
-(0x7e6+2051-0xfe9)};int tmp_i=(0x11a4+4495-0x2333);memset(ptTimestamp,
-(0x532+5542-0x1ad8),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
-(0x36c+7865-0x2224)){ptTimestamp->year=zUfiSms_atohex(
-((char)(0x8ff+2521-0x12a8)))*(0x27c+1196-0x718)+zUfiSms_atohex(tData.year[
-(0x3c+708-0x300)]);}else if(strlen(tData.year)==(0x649+8042-0x25b1)){ptTimestamp
-->year=zUfiSms_atohex(tData.year[(0x2a1+2019-0xa84)])*(0x1ad4+2053-0x22c9)+
-zUfiSms_atohex(tData.year[(0x1aa5+411-0x1c3f)]);}else if(strlen(tData.year)==
-(0x1607+142-0x1691)){ptTimestamp->year=zUfiSms_atohex(tData.year[
-(0xb3d+6513-0x24ac)])*(0x19d+6489-0x1ae6)+zUfiSms_atohex(tData.year[
-(0x9c8+7358-0x2683)]);}else{printf(
-"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x79\x65\x61\x72\x2e");return ZUFI_FAIL;}if(
-strlen(tData.month)==(0x206b+1020-0x2466)){ptTimestamp->month=zUfiSms_atohex(
-((char)(0xfa8+3203-0x1bfb)))*(0x366+2345-0xc7f)+zUfiSms_atohex(tData.month[
-(0xf96+2080-0x17b6)]);}else if(strlen(tData.month)==(0x18c3+297-0x19ea)){
-ptTimestamp->month=zUfiSms_atohex(tData.month[(0x2633+11-0x263e)])*
-(0x778+6511-0x20d7)+zUfiSms_atohex(tData.month[(0x6cd+324-0x810)]);}else{printf(
-"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.day)==
-(0x1f41+464-0x2110)){ptTimestamp->day=zUfiSms_atohex(
-((char)(0x18da+3071-0x24a9)))*(0x6eb+5513-0x1c64)+zUfiSms_atohex(tData.day[
-(0x20cb+1517-0x26b8)]);}else if(strlen(tData.day)==(0x1277+4042-0x223f)){
-ptTimestamp->day=zUfiSms_atohex(tData.day[(0x1d1+70-0x217)])*(0x16c4+152-0x174c)
-+zUfiSms_atohex(tData.day[(0x12b0+3526-0x2075)]);}else{printf(
+T_zUfiSms_TimeStamp*ptTimestamp){unsigned char tTimeZone[(0x113f+5420-0x2666)]={
+(0x5c3+4825-0x189c)};int tmp_i=(0x838+3197-0x14b5);memset(ptTimestamp,
+(0x119+3185-0xd8a),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
+(0xf4+6127-0x18e2)){ptTimestamp->year=zUfiSms_atohex(((char)(0x418+2931-0xf5b)))
+*(0x96d+4115-0x1970)+zUfiSms_atohex(tData.year[(0xbb5+4279-0x1c6c)]);}else if(
+strlen(tData.year)==(0xc73+5613-0x225e)){ptTimestamp->year=zUfiSms_atohex(tData.
+year[(0x1ac+3115-0xdd7)])*(0x695+7851-0x2530)+zUfiSms_atohex(tData.year[
+(0x1203+3263-0x1ec1)]);}else if(strlen(tData.year)==(0x1706+3493-0x24a7)){
+ptTimestamp->year=zUfiSms_atohex(tData.year[(0x81+4584-0x1267)])*
+(0x99a+6749-0x23e7)+zUfiSms_atohex(tData.year[(0xc79+6033-0x2407)]);}else{printf
+("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x79\x65\x61\x72\x2e");return ZUFI_FAIL;}if(
+strlen(tData.month)==(0x105+1495-0x6db)){ptTimestamp->month=zUfiSms_atohex(
+((char)(0x82d+789-0xb12)))*(0xe89+4301-0x1f46)+zUfiSms_atohex(tData.month[
+(0x796+4153-0x17cf)]);}else if(strlen(tData.month)==(0x2207+605-0x2462)){
+ptTimestamp->month=zUfiSms_atohex(tData.month[(0x214+8521-0x235d)])*
+(0x34c+1847-0xa73)+zUfiSms_atohex(tData.month[(0x18a6+800-0x1bc5)]);}else{printf
+("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.day)==
+(0x6e3+2073-0xefb)){ptTimestamp->day=zUfiSms_atohex(((char)(0x1460+843-0x177b)))
+*(0x1790+2942-0x22fe)+zUfiSms_atohex(tData.day[(0x2258+1066-0x2682)]);}else if(
+strlen(tData.day)==(0x99b+1211-0xe54)){ptTimestamp->day=zUfiSms_atohex(tData.day
+[(0x865+4589-0x1a52)])*(0x36d+132-0x3e1)+zUfiSms_atohex(tData.day[
+(0x6d4+7006-0x2231)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.hour)==
-(0x3+3534-0xdd0)){ptTimestamp->hour=zUfiSms_atohex(((char)(0x839+7356-0x24c5)))*
-(0x410+5747-0x1a73)+zUfiSms_atohex(tData.hour[(0x2253+1001-0x263c)]);}else if(
-strlen(tData.hour)==(0x9a4+6353-0x2273)){ptTimestamp->hour=zUfiSms_atohex(tData.
-hour[(0x1d77+1200-0x2227)])*(0xdd5+2147-0x1628)+zUfiSms_atohex(tData.hour[
-(0x15cf+1491-0x1ba1)]);}else{printf(
+(0x6a2+5479-0x1c08)){ptTimestamp->hour=zUfiSms_atohex(
+((char)(0xa3c+5955-0x214f)))*(0x1a6f+1629-0x20bc)+zUfiSms_atohex(tData.hour[
+(0x1760+767-0x1a5f)]);}else if(strlen(tData.hour)==(0xb03+6508-0x246d)){
+ptTimestamp->hour=zUfiSms_atohex(tData.hour[(0x1cff+2279-0x25e6)])*
+(0x55f+4463-0x16be)+zUfiSms_atohex(tData.hour[(0x144d+21-0x1461)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x68\x6f\x75\x72\x2e");}if(strlen(tData.min)==
-(0x11b2+1795-0x18b4)){ptTimestamp->minute=zUfiSms_atohex(
-((char)(0xb7f+4523-0x1cfa)))*(0x1182+4681-0x23bb)+zUfiSms_atohex(tData.min[
-(0x2ec+4702-0x154a)]);}else if(strlen(tData.min)==(0x1416+1212-0x18d0)){
-ptTimestamp->minute=zUfiSms_atohex(tData.min[(0x1d70+571-0x1fab)])*
-(0x493+1372-0x9df)+zUfiSms_atohex(tData.min[(0xc70+6461-0x25ac)]);}else{printf(
+(0x1976+3228-0x2611)){ptTimestamp->minute=zUfiSms_atohex(
+((char)(0x1c2a+907-0x1f85)))*(0x3b8+308-0x4dc)+zUfiSms_atohex(tData.min[
+(0x19eb+3223-0x2682)]);}else if(strlen(tData.min)==(0x961+6053-0x2104)){
+ptTimestamp->minute=zUfiSms_atohex(tData.min[(0xe26+5262-0x22b4)])*
+(0x76+475-0x241)+zUfiSms_atohex(tData.min[(0x1875+3576-0x266c)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x6d\x69\x6e\x75\x74\x65\x2e");}if(strlen(tData
-.sec)==(0x53b+636-0x7b6)){ptTimestamp->second=zUfiSms_atohex(
-((char)(0x569+8342-0x25cf)))*(0xc4f+3631-0x1a6e)+zUfiSms_atohex(tData.sec[
-(0x133d+206-0x140b)]);}else if(strlen(tData.sec)==(0x15b6+1591-0x1beb)){
-ptTimestamp->second=zUfiSms_atohex(tData.sec[(0x446+1729-0xb07)])*
-(0x16f3+3233-0x2384)+zUfiSms_atohex(tData.sec[(0xce3+3133-0x191f)]);}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+(0x943+5647-0x1f51)||tmp_i>INT_MAX-
-(0x12b2+2868-0x1de5)){printf(
+.sec)==(0x542+905-0x8ca)){ptTimestamp->second=zUfiSms_atohex(
+((char)(0x59+4126-0x1047)))*(0x14f0+1178-0x197a)+zUfiSms_atohex(tData.sec[
+(0x1a5+6391-0x1a9c)]);}else if(strlen(tData.sec)==(0x461+1118-0x8bd)){
+ptTimestamp->second=zUfiSms_atohex(tData.sec[(0x769+6911-0x2268)])*
+(0x13fc+381-0x1569)+zUfiSms_atohex(tData.sec[(0x318+5581-0x18e4)]);}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+(0x2d2+7915-0x21bc)||tmp_i>INT_MAX-
+(0xc53+5183-0x2091)){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,(0x2460+22-0x2476),sizeof(tTimeZone))
-;snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0x1aa+8714-0x23b0));if(
-tData.timezone[(0x122d+2208-0x1acd)]==((char)(0xe04+4239-0x1e66))){if(strlen(
-tTimeZone)==(0x520+5710-0x1b6c)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0x86a+1238-0xd10)))*(0x8df+1421-0xe5c)+zUfiSms_atohex(tTimeZone[
-(0x1f6+5793-0x1896)]);}else if(strlen(tTimeZone)==(0x1024+1856-0x1761)){
-ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x1f1b+2027-0x2705)])*
-(0xaa8+3526-0x1864)+zUfiSms_atohex(tTimeZone[(0x317+3055-0xf04)]);}else{printf(
+,tmp_i);return ZUFI_FAIL;}memset(tTimeZone,(0x5a3+629-0x818),sizeof(tTimeZone));
+snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0x903+6241-0x2160));if(
+tData.timezone[(0x3fa+7020-0x1f66)]==((char)(0x8f6+3822-0x17b7))){if(strlen(
+tTimeZone)==(0x1534+1167-0x19c1)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0xe49+2781-0x18f6)))*(0x412+6999-0x1f59)+zUfiSms_atohex(tTimeZone[
+(0x11c4+1426-0x1755)]);}else if(strlen(tTimeZone)==(0x8ca+3952-0x1837)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x79f+1690-0xe38)])*
+(0x9c3+5246-0x1e37)+zUfiSms_atohex(tTimeZone[(0xacb+577-0xd0a)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2d\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}
-ptTimestamp->timezone=(0x2061+794-0x237b)-ptTimestamp->timezone;}else{if(strlen(
-tTimeZone)==(0x12d8+712-0x159f)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0x2052+1463-0x25d9)))*(0x5dd+1221-0xa92)+zUfiSms_atohex(tTimeZone[
-(0x697+5956-0x1ddb)]);}else if(strlen(tTimeZone)==(0x1011+988-0x13eb)){
-ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x2bd+4612-0x14c1)])*
-(0x9c8+6560-0x235e)+zUfiSms_atohex(tTimeZone[(0x6d9+1944-0xe70)]);}else{printf(
+ptTimestamp->timezone=(0xc64+4446-0x1dc2)-ptTimestamp->timezone;}else{if(strlen(
+tTimeZone)==(0xb68+5277-0x2004)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0x1dc1+967-0x2158)))*(0x4d2+148-0x556)+zUfiSms_atohex(tTimeZone[
+(0x2574+64-0x25b4)]);}else if(strlen(tTimeZone)==(0x271+3514-0x1029)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0xe9f+1549-0x14ac)])*
+(0x20a3+1519-0x2688)+zUfiSms_atohex(tTimeZone[(0x68f+342-0x7e4)]);}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=(0xb55+400-0xce5);deliver->user_data_header_present=TRUE;if(
-(0x99+6636-0x1a85)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference++;
-(void)zUfiSms_SetConcatMaxRefer(g_zUfiSms_ConcatSmsReference);}deliver->
-user_data_header_present=TRUE;deliver->user_data.num_headers=(0x443+888-0x7ba);
-deliver->user_data.headers[(0x1881+2287-0x2170)].header_id=WMS_UDH_CONCAT_8;
-deliver->user_data.headers[(0x849+2227-0x10fc)].u.concat_8.msg_ref=msg_ref;
-deliver->user_data.headers[(0x1c2f+1963-0x23da)].u.concat_8.total_sm=concat_sms
-->total_msg;deliver->user_data.headers[(0x32c+2182-0xbb2)].u.concat_8.seq_num=
-concat_sms->current_sending+(0x57b+7930-0x2474);ptDbSaveData->concat_sms=
-(0x1d53+230-0x1e38);ptDbSaveData->concat_info[(0x50b+3246-0x11b9)]=msg_ref;}void
- zUfiSms_FillDeliverPdu(T_zUfiSms_DeliverPdu*ptDeliver,T_zUfiSms_ConcatInfo*
+UINT16 msg_ref=(0x5d2+5530-0x1b6c);deliver->user_data_header_present=TRUE;if(
+(0x2465+666-0x26ff)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference++
+;(void)zUfiSms_SetConcatMaxRefer(g_zUfiSms_ConcatSmsReference);}deliver->
+user_data_header_present=TRUE;deliver->user_data.num_headers=(0x20f3+531-0x2305)
+;deliver->user_data.headers[(0xbe3+5716-0x2237)].header_id=WMS_UDH_CONCAT_8;
+deliver->user_data.headers[(0x14+5942-0x174a)].u.concat_8.msg_ref=msg_ref;
+deliver->user_data.headers[(0x950+2066-0x1162)].u.concat_8.total_sm=concat_sms->
+total_msg;deliver->user_data.headers[(0x1223+2014-0x1a01)].u.concat_8.seq_num=
+concat_sms->current_sending+(0x174+7391-0x1e52);ptDbSaveData->concat_sms=
+(0xe04+486-0xfe9);ptDbSaveData->concat_info[(0x7ad+638-0xa2b)]=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=
@@ -752,22 +750,22 @@
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>
-(0x13e2+203-0x14ac)){zUfiSms_FillDeliver(ptDeliver,concat_sms,ptDbSaveData);
-ptDbSaveData->concat_sms=(0x1cd6+1905-0x2446);ptDbSaveData->concat_info[
-(0x3dc+6035-0x1b6d)]=concat_sms->current_sending+(0x1021+1330-0x1552);
-ptDbSaveData->concat_info[(0xd19+3301-0x19fd)]=concat_sms->total_msg;
-ptDbSaveData->concat_info[(0x6f2+5661-0x1d0f)]=ptDeliver->user_data.headers[
-(0x396+8773-0x25db)].u.concat_8.msg_ref;}else{ptDeliver->
+(0x62b+538-0x844)){zUfiSms_FillDeliver(ptDeliver,concat_sms,ptDbSaveData);
+ptDbSaveData->concat_sms=(0x993+815-0xcc1);ptDbSaveData->concat_info[
+(0x183b+1427-0x1dcc)]=concat_sms->current_sending+(0xde4+6260-0x2657);
+ptDbSaveData->concat_info[(0x10d3+2094-0x1900)]=concat_sms->total_msg;
+ptDbSaveData->concat_info[(0xc2a+3183-0x1899)]=ptDeliver->user_data.headers[
+(0x11e8+2023-0x19cf)].u.concat_8.msg_ref;}else{ptDeliver->
user_data_header_present=FALSE;ptDeliver->user_data.num_headers=
-(0x124c+4999-0x25d3);}ptDeliver->user_data.sm_len=iSmsLen;memcpy(ptDeliver->
+(0x417+8137-0x23e0);}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][(0x1082+2825-0x1b8b)]==
-((char)(0x16d6+373-0x1820))){(void)zUfiSms_CharToInt(group_sms->receivers[
-group_sms->current_receiver]+(0x526+8200-0x252d),strlen(group_sms->receivers[
-group_sms->current_receiver])-(0x17ac+3481-0x2544),ptDeliver->address.digits);
+;if(group_sms->receivers[group_sms->current_receiver][(0x148+8934-0x242e)]==
+((char)(0x51a+7435-0x21fa))){(void)zUfiSms_CharToInt(group_sms->receivers[
+group_sms->current_receiver]+(0x78b+3145-0x13d3),strlen(group_sms->receivers[
+group_sms->current_receiver])-(0x17f2+820-0x1b25),ptDeliver->address.digits);
ptDeliver->address.number_type=WMS_NUMBER_INTERNATIONAL;ptDeliver->address.
number_of_digits=(UINT8)strlen(group_sms->receivers[group_sms->current_receiver]
-)-(0xc49+1851-0x1383);}else{(void)zUfiSms_CharToInt(group_sms->receivers[
+)-(0x2d4+8040-0x223b);}else{(void)zUfiSms_CharToInt(group_sms->receivers[
group_sms->current_receiver],strlen(group_sms->receivers[group_sms->
current_receiver]),ptDeliver->address.digits);ptDeliver->address.number_type=
WMS_NUMBER_UNKNOWN;ptDeliver->address.number_of_digits=(UINT8)strlen(group_sms->
@@ -780,7 +778,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,-
-(0x205a+1306-0x2573))){at_print(LOG_ERR,
+(0x1f59+1414-0x24de))){at_print(LOG_ERR,
"\x77\x72\x69\x74\x65\x20\x73\x6d\x73\x20\x74\x6f\x20\x6e\x76\x20\x66\x61\x69\x6c\x65\x64\x2e"
);return WMS_CMD_FAILED;}}else{return WMS_CMD_FAILED;}g_zUfiSms_MsgRefer++;
ptDbSaveData->msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(
@@ -796,19 +794,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=
-(0xa9+5805-0x1756);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
-(0x1fac+113-0x201c)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
-current_sending=(0x154c+2164-0x1dc0);ptConcatSms->current_sending<ptConcatSms->
+(0x3ed+8643-0x25b0);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
+(0x77d+5431-0x1cb3)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
+current_sending=(0xc12+1931-0x139d);ptConcatSms->current_sending<ptConcatSms->
total_msg;ptConcatSms->current_sending++){memset((void*)&tClientMsg,
-(0x4d+9032-0x2395),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
-(0x1f52+921-0x22eb),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
-(0x1c35+1934-0x23c3),sizeof(T_zUfiSms_DbStoreData));tClientMsg.msg_hdr.mem_store
-=(ptSaveSms->mem_store==WMS_STORAGE_TYPE_UIM_V01)?WMS_STORAGE_TYPE_UIM_V01:
+(0x3a3+5558-0x1959),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
+(0x1f36+949-0x22eb),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
+(0x719+373-0x88e),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
-(0x710+5444-0x1c50):{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)
+(0xb3b+5750-0x21ad):{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)
zUfiSms_FillSubmitTpdu(ptConcatSms,ptGroupSms,iSmsLength,&tClientTsData.u.gw_pp.
u.submit,&tDbSaveData);break;}case WMS_TAG_TYPE_MT_READ_V01:case
WMS_TAG_TYPE_MT_NOT_READ_V01:{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_DELIVER;(
@@ -820,42 +818,42 @@
zUfiSms_FillSca(&tClientMsg);zUfiSms_FillDbSaveData(&tClientMsg,&tClientTsData,
ptConcatSms,ptGroupSms,iSmsLength,&tDbSaveData);strncpy(tDbSaveData.
draft_group_id,ptSaveSms->draft_group_id,sizeof(tDbSaveData.draft_group_id)-
-(0x46d+3878-0x1392));if(TRUE==g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){result=
+(0xa7c+5633-0x207c));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==(0x1a77+2443-0x2401)){result=
+);}else{if(tDbSaveData.concat_sms==(0x36f+408-0x506)){result=
zUfiSms_SaveConcatSms(ptSaveSms,ptConcatSms,ptGroupSms,&tDbSaveData,iSmsLength);
-current_sending=ptConcatSms->current_sending+(0x223+989-0x5ff);if(ptConcatSms->
-sms_len<iSmsLength*(current_sending+(0x705+8164-0x26e8))){iSmsLength=ptConcatSms
-->sms_len-iSmsLength*current_sending;}}else{result=zUfiSms_SaveNormalSms(
-ptSaveSms,&tDbSaveData);}}}return result;}int zUfiSms_DeleteSmsInSim(){char
-str_index[(0x17bf+1333-0x1c74)]={(0x3f4+3011-0xfb7)};int index=
-(0x598+8020-0x24ec);int is_cc=(0x1461+2127-0x1cb0);int iSmsId=
-(0x152b+701-0x17e8);T_zUfiSms_ModifyTag tDeleteInfo={(0x1901+1880-0x2059)};char
-StrValue[(0xf14+3571-0x1cfd)]={(0x132d+2277-0x1c12)};memset(&tDeleteInfo,
-(0x1959+1155-0x1ddc),sizeof(T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_DelMsg.sim_id
-[g_zUfiSms_DelMsg.sim_index];if(-(0x38a+2948-0xf0d)==(is_cc=zUfiSms_IsConcatSms(
-iSmsId))){printf(
+current_sending=ptConcatSms->current_sending+(0x48a+7074-0x202b);if(ptConcatSms
+->sms_len<iSmsLength*(current_sending+(0x7ac+1920-0xf2b))){iSmsLength=
+ptConcatSms->sms_len-iSmsLength*current_sending;}}else{result=
+zUfiSms_SaveNormalSms(ptSaveSms,&tDbSaveData);}}}return result;}int
+zUfiSms_DeleteSmsInSim(){char str_index[(0x1b95+1169-0x1fa6)]={
+(0x1023+2536-0x1a0b)};int index=(0x2072+1011-0x2465);int is_cc=
+(0x1ee4+392-0x206c);int iSmsId=(0x6cb+2954-0x1255);T_zUfiSms_ModifyTag
+tDeleteInfo={(0x250c+22-0x2522)};char StrValue[(0x3d5+2372-0xd0f)]={
+(0x17b8+2763-0x2283)};memset(&tDeleteInfo,(0xc74+1037-0x1081),sizeof(
+T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_DelMsg.sim_id[g_zUfiSms_DelMsg.sim_index]
+;if(-(0xdd7+3833-0x1ccf)==(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((0x1086+4749-0x2312)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex
-(iSmsId,&tDeleteInfo,is_cc)){return ZUFI_FAIL;}g_zUfiSms_DelMsg.sim_index++;
+,is_cc,iSmsId);if((0x532+882-0x8a3)==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>
-(0x97d+5895-0x2084)){index=tDeleteInfo.indices[tDeleteInfo.id_index];
+(0x1f7f+32-0x1f9f)){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,
-(0x758+7926-0x264e),sizeof(str_index));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
+(0xc4d+2418-0x15bf),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=(0x1509+1063-0x1930);
-char StrValue[(0x1156+805-0x1471)]={(0x4f7+7388-0x21d3)};zUfiSms_SetSmsLocation(
-SMS_LOCATION_SIM);memset(&g_deleteIndex,(0x604+2256-0xed4),sizeof(
+T_zUfiSms_CmdStatus zUfiSms_DeleteSimSms(VOID){int atRes=(0x11a8+1796-0x18ac);
+char StrValue[(0x12d+2325-0xa38)]={(0x17cc+1377-0x1d2d)};zUfiSms_SetSmsLocation(
+SMS_LOCATION_SIM);memset(&g_deleteIndex,(0x1a13+1127-0x1e7a),sizeof(
T_zUfiSms_DelIndexInfo));while(g_zUfiSms_DelMsg.sim_index_count>
-(0x9df+3002-0x1599)){if(ZUFI_FAIL==zUfiSms_DeleteSmsInSim()){printf(
+(0x34b+3594-0x1155)){if(ZUFI_FAIL==zUfiSms_DeleteSmsInSim()){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x69\x6d\x53\x6d\x73\x20\x64\x65\x6c\x65\x74\x65\x20\x61\x6c\x6c\x3a\x25\x64\x20\x73\x6d\x73\x20\x66\x61\x69\x6c\x65\x64" "\n"
,WMS_STORAGE_TYPE_UIM_V01);return WMS_CMD_FAILED;}}while(g_deleteIndex.cur_index
<g_deleteIndex.total){atRes=zSms_SendCmgdReq(g_deleteIndex.index[g_deleteIndex.
@@ -864,69 +862,69 @@
"\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,(0x86d+5673-0x1e94));if(tmp==(0x1d3f+658-0x1fd1)){
-pdu_tmp+=(0x4af+1255-0x994);}else{tmp=(tmp+(0x8d6+6282-0x215f))*
-(0x25+4043-0xfee);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
-(0x1fb+4590-0x13e7));first_octet=tmp;if(first_octet&(0xd1a+56-0xd50)){*stat=
-(0xcc4+2968-0x1857);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
-T_zUfiSms_TpduType iTpduType;UINT8 mti=(0x1f40+1084-0x237c);mti=(
-T_zUfiSms_TpduType)(pData[(0x7fa+2990-0x13a8)]&(0xa23+5006-0x1dae));switch(mti){
-case(0x1e51+919-0x21e8):iTpduType=WMS_TPDU_DELIVER;break;case(0x5c3+4483-0x1745)
-:iTpduType=WMS_TPDU_SUBMIT;break;case(0xc57+2659-0x16b8):iTpduType=
+String2Bytes(pdu_tmp,&tmp,(0xfac+3598-0x1db8));if(tmp==(0x839+3790-0x1707)){
+pdu_tmp+=(0x16d4+977-0x1aa3);}else{tmp=(tmp+(0xac0+1492-0x1093))*
+(0x195d+3419-0x26b6);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
+(0x219b+140-0x2225));first_octet=tmp;if(first_octet&(0x36d+8460-0x2477)){*stat=
+(0x161d+1397-0x1b8d);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
+T_zUfiSms_TpduType iTpduType;UINT8 mti=(0x84a+5848-0x1f22);mti=(
+T_zUfiSms_TpduType)(pData[(0x177f+3009-0x2340)]&(0x1e3+969-0x5a9));switch(mti){
+case(0x1646+1377-0x1ba7):iTpduType=WMS_TPDU_DELIVER;break;case(0x8d+6647-0x1a83)
+:iTpduType=WMS_TPDU_SUBMIT;break;case(0x1fd3+561-0x2202):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=(0xd0+2816-0xbd0);memset(pNumber,
-(0x43c+22-0x452),ZTE_WMS_ADDRESS_LEN_MAX+(0x287+8714-0x2490));if(tAddress.
-number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x17f8+556-0x1a24)]=
-((char)(0x49d+947-0x825));pNumber++;}if(tAddress.digit_mode!=
+unsigned char*pNumber){UINT8 number_type=(0x9c5+1875-0x1118);memset(pNumber,
+(0x837+1969-0xfe8),ZTE_WMS_ADDRESS_LEN_MAX+(0x761+1889-0xec1));if(tAddress.
+number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x6b+2045-0x868)]=
+((char)(0xb2+5001-0x1410));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[(0x1a0c+2818-0x250e)]));}}byte*zUfiSms_UtilTimeStamp(
+sizeof(tAddress.digits[(0x4ec+7510-0x2242)]));}}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)(0x3cd+8818-0x261d));tmp=zte_wms_time
-.year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x636+842-0x971))+((tmp>>
-(0x77+8875-0x231e))*(0x188d+224-0x1963)),res_ptr);zUfiSms_SprintfTime(date->year
-,sizeof(date->year),zte_wms_time.year);*res_ptr++=((char)(0x5f0+6258-0x1e33));
-tmp=zte_wms_time.month;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x1cf+1471-0x77f))
-+((tmp>>(0x13b2+4526-0x255c))*(0xbca+847-0xf0f)),res_ptr);zUfiSms_SprintfTime(
-date->month,sizeof(date->month),zte_wms_time.month);*res_ptr++=
-((char)(0x10d0+2399-0x1a00));tmp=zte_wms_time.day;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0x111+8220-0x211e))+((tmp>>(0x558+2203-0xdef))*
-(0x133d+4154-0x236d)),res_ptr);zUfiSms_SprintfTime(date->day,sizeof(date->day),
-zte_wms_time.day);*res_ptr++=((char)(0x18b+5407-0x167e));tmp=zte_wms_time.hour;
-res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x15f1+2068-0x1df6))+((tmp>>
-(0xfca+2690-0x1a48))*(0x1eb5+1959-0x2652)),res_ptr);zUfiSms_SprintfTime(date->
-hour,sizeof(date->hour),zte_wms_time.hour);*res_ptr++=((char)(0x73a+1714-0xdb2))
-;tmp=zte_wms_time.minute;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&
-(0x1989+1184-0x1e1a))+((tmp>>(0x2c4+6314-0x1b6a))*(0xf1f+5054-0x22d3)),res_ptr);
-zUfiSms_SprintfTime(date->min,sizeof(date->min),zte_wms_time.minute);*res_ptr++=
-((char)(0x12ad+1872-0x19c3));tmp=zte_wms_time.second;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0x189b+1719-0x1f43))+((tmp>>(0x54d+6097-0x1d1a))*
-(0x158b+3714-0x2403)),res_ptr);zUfiSms_SprintfTime(date->sec,sizeof(date->sec),
-zte_wms_time.second);if(zte_wms_time.timezone<(0x100f+4048-0x1fdf)){*res_ptr++=
-((char)(0x3d9+2790-0xe92));tmp=(UINT8)(zte_wms_time.timezone*(-
-(0x432+7971-0x2354)));snprintf(date->timezone,sizeof(date->timezone),
-"\x2d\x25\x64",-(0xb3d+1991-0x1303)*zte_wms_time.timezone);}else{*res_ptr++=
-((char)(0x25d+2880-0xd72));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)(0x71b+2365-0x1036));
-return res_ptr;}T_zUfiSms_CmdStatus zUfiSms_HandleReport(unsigned char*ptPduData
-){T_zUfiSms_RawTsData tRawTsData;T_zUfiSms_ClientTsData tClientTsData;int
-iReportStatus=(0x8f9+5491-0x1e6c);unsigned char acDeliverNumber[
-ZTE_WMS_ADDRESS_LEN_MAX+(0x1175+559-0x13a3)];unsigned char tTpScts[
-ZTE_WMS_TP_SCTS_LEN_MAX+(0xb6d+1150-0xfea)];T_zUfiSms_Date tSmsDate;char
-acRecFlag[(0x15cd+1359-0x1b17)]={(0x9fb+3866-0x1915)};int iRpCount=
-(0x14a+6247-0x19b1);char tmp[(0x444+3691-0x12a5)];int tmp_i=(0x544+5415-0x1a6b);
-unsigned int pos=(0x3db+4785-0x168c);if(NULL==ptPduData){return WMS_CMD_FAILED;}
-memset(acDeliverNumber,(0x4a6+7125-0x207b),sizeof(acDeliverNumber));memset(&
-tSmsDate,(0x66d+7412-0x2361),sizeof(T_zUfiSms_Date));memset(tTpScts,
-(0x268+2923-0xdd3),sizeof(tTpScts));memset(&tRawTsData,(0x11c3+4110-0x21d1),
-sizeof(T_zUfiSms_RawTsData));memset(&tClientTsData,(0x133d+1686-0x19d3),sizeof(
-T_zUfiSms_ClientTsData));snprintf(tmp,sizeof(tmp),"\x25\x58",ptPduData[
-(0x4cb+1666-0xb4d)]);tmp_i=atoi(tmp);if(tmp_i<(0x1542+3809-0x2423)||tmp_i>
-INT_MAX-(0xb73+4357-0x1c77)){at_print(LOG_ERR,
+NULL==date){return NULL;}*res_ptr++=((char)(0xd12+1582-0x131e));tmp=zte_wms_time
+.year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x723+7453-0x2431))+((tmp>>
+(0xb8d+3017-0x1752))*(0x671+4051-0x163a)),res_ptr);zUfiSms_SprintfTime(date->
+year,sizeof(date->year),zte_wms_time.year);*res_ptr++=
+((char)(0x776+3020-0x1313));tmp=zte_wms_time.month;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0x1c5b+1616-0x229c))+((tmp>>(0xd0c+2597-0x172d))*
+(0xd91+3099-0x19a2)),res_ptr);zUfiSms_SprintfTime(date->month,sizeof(date->month
+),zte_wms_time.month);*res_ptr++=((char)(0xf18+4729-0x2162));tmp=zte_wms_time.
+day;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0xacd+4831-0x1d9d))+((tmp>>
+(0x4e0+3139-0x111f))*(0x24a+9195-0x262b)),res_ptr);zUfiSms_SprintfTime(date->day
+,sizeof(date->day),zte_wms_time.day);*res_ptr++=((char)(0x256+9041-0x257b));tmp=
+zte_wms_time.hour;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x2e0+7765-0x2126))+((
+tmp>>(0x356+1162-0x7dc))*(0x5d5+5950-0x1d09)),res_ptr);zUfiSms_SprintfTime(date
+->hour,sizeof(date->hour),zte_wms_time.hour);*res_ptr++=
+((char)(0x16d9+969-0x1a68));tmp=zte_wms_time.minute;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0x1ea+2805-0xcd0))+((tmp>>(0x789+2534-0x116b))*
+(0x22a9+419-0x2442)),res_ptr);zUfiSms_SprintfTime(date->min,sizeof(date->min),
+zte_wms_time.minute);*res_ptr++=((char)(0x6fb+5082-0x1a9b));tmp=zte_wms_time.
+second;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x4c4+3690-0x131f))+((tmp>>
+(0xf2f+4139-0x1f56))*(0x1de1+2258-0x26a9)),res_ptr);zUfiSms_SprintfTime(date->
+sec,sizeof(date->sec),zte_wms_time.second);if(zte_wms_time.timezone<
+(0x26bb+64-0x26fb)){*res_ptr++=((char)(0x61b+8417-0x26cf));tmp=(UINT8)(
+zte_wms_time.timezone*(-(0x1091+2743-0x1b47)));snprintf(date->timezone,sizeof(
+date->timezone),"\x2d\x25\x64",-(0x1357+4637-0x2573)*zte_wms_time.timezone);}
+else{*res_ptr++=((char)(0x16a1+2925-0x21e3));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)(0x5d2+1495-0xb87));return res_ptr;}T_zUfiSms_CmdStatus
+zUfiSms_HandleReport(unsigned char*ptPduData){T_zUfiSms_RawTsData tRawTsData;
+T_zUfiSms_ClientTsData tClientTsData;int iReportStatus=(0x1482+1213-0x193f);
+unsigned char acDeliverNumber[ZTE_WMS_ADDRESS_LEN_MAX+(0x9fd+106-0xa66)];
+unsigned char tTpScts[ZTE_WMS_TP_SCTS_LEN_MAX+(0x3cb+7569-0x215b)];
+T_zUfiSms_Date tSmsDate;char acRecFlag[(0xa05+1692-0x109c)]={(0x375+165-0x41a)};
+int iRpCount=(0x16b6+1143-0x1b2d);char tmp[(0x4c6+5251-0x193f)];int tmp_i=
+(0x1c9+9172-0x259d);unsigned int pos=(0x9aa+6839-0x2461);if(NULL==ptPduData){
+return WMS_CMD_FAILED;}memset(acDeliverNumber,(0x1191+4549-0x2356),sizeof(
+acDeliverNumber));memset(&tSmsDate,(0x1822+1033-0x1c2b),sizeof(T_zUfiSms_Date));
+memset(tTpScts,(0x361+6210-0x1ba3),sizeof(tTpScts));memset(&tRawTsData,
+(0xe4+960-0x4a4),sizeof(T_zUfiSms_RawTsData));memset(&tClientTsData,
+(0x87+1754-0x761),sizeof(T_zUfiSms_ClientTsData));snprintf(tmp,sizeof(tmp),
+"\x25\x58",ptPduData[(0x16c0+3505-0x2471)]);tmp_i=atoi(tmp);if(tmp_i<
+(0x494+1800-0xb9c)||tmp_i>INT_MAX-(0x11d+8281-0x2175)){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+(0x404+4189-0x1460);if(pos>=
+,tmp_i);return WMS_CMD_FAILED;}pos=tmp_i+(0x2d3+8771-0x2515);if(pos>=
ZSMS_PDU_SIZE){return WMS_CMD_FAILED;}memcpy((void*)tRawTsData.data,(void*)(
ptPduData+pos),sizeof(tRawTsData.data));tRawTsData.tpdu_type=zUfiSms_GetTpduType
(ptPduData+pos);tRawTsData.format=WMS_FORMAT_GW_PP;(void)wms_ts_decode(&
@@ -935,59 +933,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=(0x1a8+726-0x47d);break;}case
+case WMS_TP_STATUS_REPLACED:{iReportStatus=(0x35a+744-0x641);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=(0xdb1+366-0xf1c);break;}default:{iReportStatus=
-(0x704+3814-0x15e8);break;}}zUfiSms_FormatDeliverNumber(tClientTsData.u.gw_pp.u.
+iReportStatus=(0x58+8117-0x200a);break;}default:{iReportStatus=
+(0x19+9965-0x2704);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,(0x180d+3706-0x2687),sizeof(acRecFlag)
-);sc_cfg_get(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag,sizeof(acRecFlag));iRpCount=
-atoi(acRecFlag);if(iRpCount<(0xe47+4307-0x1f1a)||iRpCount>INT_MAX-
-(0xf96+5203-0x23e8)){at_print(LOG_ERR,
+);return WMS_CMD_FAILED;}memset(acRecFlag,(0x144+1770-0x82e),sizeof(acRecFlag));
+sc_cfg_get(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag,sizeof(acRecFlag));iRpCount=
+atoi(acRecFlag);if(iRpCount<(0x48d+8471-0x25a4)||iRpCount>INT_MAX-
+(0x9e6+6968-0x251d)){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,(0x5aa+3606-0x13c0),sizeof(
+,iRpCount);return WMS_CMD_FAILED;}memset(acRecFlag,(0x46+7225-0x1c7f),sizeof(
acRecFlag));snprintf(acRecFlag,sizeof(acRecFlag),"\x25\x64",iRpCount+
-(0x8c5+5472-0x1e24));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return
+(0x495+8374-0x254a));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return
WMS_CMD_SUCCESS;}void zUfiSms_DelModemSms(int in_index){
-#if (0x15b6+2650-0x2010)
-char StrValue[(0x35+4285-0x10e8)]={(0x1435+2452-0x1dc9)};printf(
+#if (0x15c5+2544-0x1fb5)
+char StrValue[(0xa19+3036-0x15eb)]={(0x676+7209-0x229f)};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=(0x123d+3232-0x1edd);atRes=zSms_SendCmgdReq(in_index);if(atRes==
+int atRes=(0x138d+4469-0x2502);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=
-(0xb94+1731-0x1257);memset(&g_zUfiSms_modifyMsg,(0x1803+589-0x1a50),sizeof(
-T_zUfiSms_ModifySms));for(i=(0x472+3390-0x11b0);i<ptModifyBuff->total_id;i++){
+(0xa9+6753-0x1b0a);memset(&g_zUfiSms_modifyMsg,(0x2346+529-0x2557),sizeof(
+T_zUfiSms_ModifySms));for(i=(0x163+4972-0x14cf);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[(0x5a3+3955-0x1496)]={
-(0x2b2+578-0x4f4)};int index=(0xa22+1740-0x10ee);int is_cc=(0x347+7028-0x1ebb);
-int iSmsId=(0x1be3+919-0x1f7a);T_zUfiSms_ModifyTag tModifyInfo={
-(0x13b1+216-0x1489)};char StrValue[(0x444+7947-0x2345)]={(0xcea+661-0xf7f)};
-memset(&tModifyInfo,(0x1110+3391-0x1e4f),sizeof(T_zUfiSms_ModifyTag));iSmsId=
+zUfiSms_GetUnreadSmsIndexInSim(){char str_index[(0x113d+3215-0x1d4c)]={
+(0x41d+1109-0x872)};int index=(0x167c+1984-0x1e3c);int is_cc=(0x496+5946-0x1bd0)
+;int iSmsId=(0x513+5595-0x1aee);T_zUfiSms_ModifyTag tModifyInfo={
+(0x1d64+92-0x1dc0)};char StrValue[(0xa72+4993-0x1de9)]={(0x1f8f+1741-0x265c)};
+memset(&tModifyInfo,(0xfe7+3153-0x1c38),sizeof(T_zUfiSms_ModifyTag));iSmsId=
g_zUfiSms_modifyMsg.sim_id[g_zUfiSms_modifyMsg.sim_index];if(-
-(0x2c3+8304-0x2332)==(is_cc=zUfiSms_IsConcatSms(iSmsId))){at_print(LOG_ERR,
+(0xb89+6044-0x2324)==(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((0xdfb+6025-0x2583)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(iSmsId,
-&tModifyInfo,is_cc)){return ZUFI_FAIL;}g_zUfiSms_modifyMsg.sim_index++;
+,is_cc);if((0x18fa+3499-0x26a4)==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>
-(0x1dff+1696-0x249f)){index=tModifyInfo.indices[tModifyInfo.id_index];
+(0x82f+7474-0x2561)){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,(0xf48+4779-0x21f3),sizeof(
+,index,g_modifyIndex.total);}}else{memset(str_index,(0x86c+7071-0x240b),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"
@@ -996,14 +994,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=(0x211d+272-0x222d);char StrValue[
-(0x941+6592-0x22f7)]={(0x0+3731-0xe93)};printf(
+T_zUfiSms_ModifyFlag*ptModifyBuff){int atRes=(0x0+6149-0x1805);char StrValue[
+(0x465+1789-0xb58)]={(0x16b5+3699-0x2528)};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,
-(0xaea+3489-0x188b),sizeof(T_zUfiSms_ModifyIndexInfo));printf(
+(0xe3a+3416-0x1b92),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>
-(0xaab+811-0xdd6)){if(ZUFI_FAIL==zUfiSms_GetUnreadSmsIndexInSim()){at_print(
+(0x19ef+1594-0x2029)){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.
@@ -1022,21 +1020,21 @@
zUfiSms_DecodeSmsData(T_zUfiSms_DbStoreData*pDb_Data,int msg_index,
zUfiSms_StoreType iStorePos,T_SmsStatus bSms_Status,wms_message_format_enum_v01
format,long iPdu_Len,unsigned char*pPdu_Received){T_zUfiSms_RawTsData raw_ts;
-T_zUfiSms_ClientTsData ts_data_ptr;char tmp[(0xdcd+1510-0x13a9)];int tmp_i=
-(0x135c+1509-0x1941);unsigned int pos=(0x1a20+1601-0x2061);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[(0x6f9+6204-0x1f2b)];int tmp_i=
+(0xc39+5299-0x20ec);unsigned int pos=(0x911+6381-0x21fe);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,
-(0x243+416-0x3e3),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
-(0x100a+3102-0x1c28),sizeof(wms_client_ts_data_s_type));memset(tmp,
-(0x174b+2998-0x2301),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
-pPdu_Received[(0x1eb3+1865-0x25fc)]);tmp_i=atoi(tmp);if(tmp_i<(0xf72+298-0x109c)
-||tmp_i>INT_MAX-(0x494+1647-0xb02)){at_print(LOG_ERR,
+(0x207+2954-0xd91),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
+(0xec4+2149-0x1729),sizeof(wms_client_ts_data_s_type));memset(tmp,
+(0x5d9+3804-0x14b5),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
+pPdu_Received[(0xa3d+7296-0x26bd)]);tmp_i=atoi(tmp);if(tmp_i<
+(0x10a1+3800-0x1f79)||tmp_i>INT_MAX-(0x6b4+358-0x819)){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+(0x19f+7475-0x1ed1);if(pos>=iPdu_Len){return
+,tmp_i);return ZUFI_FAIL;}pos=tmp_i+(0xf2c+1978-0x16e5);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)?
@@ -1046,61 +1044,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[
-(0x1798+3524-0x2538)]={(0xb41+6401-0x2442)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit
-,sizeof(IsInit));if((0x440+4168-0x1488)==strcmp("\x6f\x6b",IsInit)){printf(
+(0x1d30+1295-0x221b)]={(0x630+565-0x865)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit,
+sizeof(IsInit));if((0xfc8+5083-0x23a3)==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 (0x19eb+1360-0x1f3b)
+#if (0xe09+6199-0x2640)
int zUfiSms_FormatSms(CHAR*pSmsRawContent,int contentSize,T_zUfiSms_SmsItem*
-ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x13ca+4424-0x24e6))
-);if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0x887+6660-0x228a)),
-((char)(0x6bd+4563-0x1864)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((char
-*)(P2+(0x276+8624-0x2425)),((char)(0xe5f+4436-0x1f87)));atBase_PreProcRes(
-pSmsRawContent,contentSize);if((0x28d+3443-0xfff)==iCmdId){if(P3==P2+
-(0x593+487-0x779)){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
-((0x11db+3117-0x1e06)==iCmdId){if(P2==P1+(0x183+3782-0x1048)){sscanf(
-pSmsRawContent,"\x25\x64\x20\x25\x64\x20",&ptSmsPara->stat,&ptSmsPara->length);}
-else{sscanf(pSmsRawContent,"\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&
-ptSmsPara->stat,ptSmsPara->alpha,&ptSmsPara->length);}}atBase_RestoreString(
-ptSmsPara->alpha);atBase_RestoreString(ptSmsPara->pdu);return ZUFI_SUCC;}
+ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x1034+4817-0x22d9))
+);if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0x10f4+1840-0x1823))
+,((char)(0x3f9+931-0x770)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((char*
+)(P2+(0x604+2906-0x115d)),((char)(0x1743+3440-0x2487)));atBase_PreProcRes(
+pSmsRawContent,contentSize);if((0xa8+6583-0x1a5e)==iCmdId){if(P3==P2+
+(0x1588+4327-0x266e)){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(
+(0x708+7350-0x23bc)==iCmdId){if(P2==P1+(0xea+2048-0x8e9)){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={(0x76c+3797-0x1641)};
+WMS_CMD_PROCESSING;T_zUfiSms_DbStoreData db_data={(0xf5c+1584-0x158c)};
zUfiSms_StoreType mem_store=WMS_STORAGE_TYPE_UIM_V01;unsigned char pdu_tmp[
-ZSMS_PDU_SIZE]={(0x10f5+1997-0x18c2)};int total_count=(0x16c+3547-0xf47);int
-sim_capability=(0x10bd+3964-0x2039);printf(
+ZSMS_PDU_SIZE]={(0x3c7+6854-0x1e8d)};int total_count=(0x7c9+3937-0x172a);int
+sim_capability=(0xf3f+5102-0x232d);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,(0x84f+6444-0x217b),sizeof
-(db_data));memset(pdu_tmp,(0xa0f+6528-0x238f),sizeof(pdu_tmp));(void)
-String2Bytes(pSmsItem->pdu,pdu_tmp,(int)strlen(pSmsItem->pdu));
-#if (0x293+3477-0x1027)
-zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0x15a9+3054-0x2192)==
+,strlen(pSmsItem->pdu),pSmsItem->pdu);memset(&db_data,(0x2a7+1638-0x90d),sizeof(
+db_data));memset(pdu_tmp,(0x353+1223-0x81a),sizeof(pdu_tmp));(void)String2Bytes(
+pSmsItem->pdu,pdu_tmp,(int)strlen(pSmsItem->pdu));
+#if (0xb5c+5603-0x213e)
+zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0x6f3+302-0x81c)==
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 (0xe80+5217-0x22e0)
+#if (0x1a2c+758-0x1d21)
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 (0x2e9+1834-0xa12)
+#if (0x5a1+3951-0x150f)
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,-(0x1b3d+2241-0x23fd));{}
-#if (0x1605+2540-0x1ff0)
+(void)zUfiSms_WriteSmsToDb(&db_data,mem_store,-(0x38c+7214-0x1fb9));{}
+#if (0x14bc+373-0x1630)
if(SMS_LOCATION_SIM==g_zUfiSms_CurLocation){CHAR simCapability[
-(0x1e9c+2053-0x266f)]={(0x988+6563-0x232b)};sc_cfg_get(
+(0xa05+2576-0x13e3)]={(0x174+1883-0x8cf)};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){
@@ -1110,18 +1109,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)!=(0x1bf+1711-0x86e)){if((access(
-ZTE_WMS_TMP1_PATH,F_OK)==(0x13f8+1324-0x1924))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
-(0x18c6+2430-0x2244))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
-(0xfb5+3291-0x1c90)){printf(
+if(access(ZTE_WMS_DB_PATH,F_OK)!=(0x95f+4399-0x1a8e)){if((access(
+ZTE_WMS_TMP1_PATH,F_OK)==(0x1120+5088-0x2500))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
+(0x888+3013-0x144d))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
+(0x46b+2661-0xed0)){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)==(0x1be1+2505-0x25aa))&&(access(
-ZTE_WMS_SEC_PATH,F_OK)!=(0x899+7521-0x25fa))){if(rename(ZTE_WMS_TMP0_PATH,
-ZTE_WMS_SEC_PATH)!=(0x40a+5629-0x1a07)){printf(
+);}}if((access(ZTE_WMS_TMP0_PATH,F_OK)==(0x34f+6174-0x1b6d))&&(access(
+ZTE_WMS_SEC_PATH,F_OK)!=(0x128f+4094-0x228d))){if(rename(ZTE_WMS_TMP0_PATH,
+ZTE_WMS_SEC_PATH)!=(0x17f2+765-0x1aef)){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)==(0x960+5108-0x1d54)){char rnum_buf[
-(0x1c6f+880-0x1fc7)]={(0x351+6898-0x1e43)};char cmd[(0x9a3+1739-0xfee)]={
-(0x1c59+1472-0x2219)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZTE_WMS_SEC_PATH,F_OK)==(0xcc+8280-0x2124)){char rnum_buf[
+(0x14e0+4332-0x25b4)]={(0xbc5+5916-0x22e1)};char cmd[(0x26a+7018-0x1d54)]={
+(0x1431+4647-0x2658)};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);}}
@@ -1133,48 +1132,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[(0x5e6+1798-0xce2)]={(0x1d21+762-0x201b)};
+zUfiSms_CfgSmsNvInit(void){char tmp[(0x9f2+6355-0x22bb)]={(0x23c+7784-0x20a4)};
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,(0x760+945-0xb11),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
+pStatusInfo,(0x13d7+4583-0x25be),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
iCmdId;pStatusInfo->cmd_status=WMS_CMD_PROCESSING;pStatusInfo->err_code=
-ZTE_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0x16ab+3635-0x24de);pStatusInfo
-->delete_failed_count=(0x1a82+1659-0x20fd);(void)zUfiSms_SetCmdStatus(
-pStatusInfo);}void zUfiSms_CfgInit(void){char tmp[(0xdcc+2515-0x1795)]={
-(0x4a7+5384-0x19af)};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_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0xd85+4069-0x1d6a);pStatusInfo
+->delete_failed_count=(0xb0+3854-0xfbe);(void)zUfiSms_SetCmdStatus(pStatusInfo);
+}void zUfiSms_CfgInit(void){char tmp[(0x42c+7959-0x2339)]={(0xfdd+1702-0x1683)};
+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=(0x18a2+2062-0x20b0);char buf[(0xa2+1996-0x85a)]={
-(0x5c8+3236-0x126c)};if(ZUFI_FAIL==zUfiSms_GetTagCountInDb(mem_store,
+int total_count=(0x103f+501-0x1234);char buf[(0xc53+5167-0x206e)]={
+(0x103b+334-0x1189)};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(
-(0x363+7827-0x21f6)==total_count){return FALSE;}else{return TRUE;}}VOID
+(0xfad+1810-0x16bf)==total_count){return FALSE;}else{return TRUE;}}VOID
zUfiSms_SendSmsStatusInfo(wms_message_status_info sms_op){
-T_zUfi_SmsStatusInfoInd ind={(0x484+7011-0x1fe7)};CHAR temp[(0x1829+1770-0x1ee1)
-]={(0x145f+3034-0x2039)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=
-(0x59a+1719-0xc50);}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=
-(0x12ca+3173-0x1f2e);}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.
-sms_unread_ind=(0xf43+266-0x104c);}else{ind.sms_unread_ind=(0x11dd+514-0x13df);}
-sc_cfg_get("\x73\x6d\x73\x5f\x75\x6e\x72\x65\x61\x64\x5f\x63\x6f\x75\x6e\x74",
+T_zUfi_SmsStatusInfoInd ind={(0x53b+4075-0x1526)};CHAR temp[(0x1bd4+2242-0x2464)
+]={(0x3a0+2434-0xd22)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=
+(0x89f+4942-0x1bec);}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=
+(0x42a+5030-0x17cf);}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.
+sms_unread_ind=(0x10f5+3998-0x2092);}else{ind.sms_unread_ind=(0x42a+1034-0x834);
+}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=(0x17c1+1563-0x1ddb);}else{ind.
-sms_memory_full_ind=(0x5a2+2555-0xf9d);}printf(
+]==TRUE)){ind.sms_memory_full_ind=(0x191f+1193-0x1dc7);}else{ind.
+sms_memory_full_ind=(0x1692+2184-0x1f1a);}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,(0x28+8378-0x20e2));if(ind.sms_memory_full_ind==
-(0xd0+2953-0xc58)){sc_cfg_set(NV_SMS_INIT_STATUS,
+T_zUfi_SmsStatusInfoInd),&ind,(0x1c09+1285-0x210e));if(ind.sms_memory_full_ind==
+(0x19e2+889-0x1d5a)){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==(0x5f+9572-0x25c2)){sc_cfg_set(NV_SMS_INIT_STATUS,
+sms_unread_ind==(0x183f+1868-0x1f8a)){sc_cfg_set(NV_SMS_INIT_STATUS,
"\x73\x6d\x73\x5f\x75\x6e\x72\x65\x61\x64");}else{sc_cfg_set(NV_SMS_INIT_STATUS,
"\x73\x6d\x73\x5f\x6e\x6f\x72\x6d\x61\x6c");}return;}VOID BakNotificationSms(
char*pushSms,int pushSmsLen){FILE*fp=NULL;int len;fp=fopen(
@@ -1183,7 +1181,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,(0x6a2+6864-0x2171),pushSmsLen,fp);if(len==
+);return;}len=fwrite(pushSms,(0x4bb+4694-0x1710),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 d2b3ca7..a587b2c 100755
--- a/ap/app/zte_comm/sms/src/sms_main.c
+++ b/ap/app/zte_comm/sms/src/sms_main.c
@@ -15,43 +15,42 @@
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=(0x2387+62-0x23c5);int g_zSms_MsqId=-
-(0x13f3+4722-0x2664);int g_zSms_LocalMsqId=-(0x13c8+1876-0x1b1b);sem_t
-g_sms_sem_id;T_zSms_optRsp g_smsOptRsp={(0x185+3962-0x10ff)};static const
+g_zUfiSms_IsConcatSendSuc;int iSmsIndex=(0x188f+2369-0x21d0);int g_zSms_MsqId=-
+(0x936+5880-0x202d);int g_zSms_LocalMsqId=-(0x1005+3999-0x1fa3);sem_t
+g_sms_sem_id;T_zSms_optRsp g_smsOptRsp={(0x7fd+5899-0x1f08)};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},{(0xa13+5073-0x1de4),NULL,FALSE}};VOID atWeb_SendSms
+atWeb_OutdateSmsCheck,TRUE},{(0xce0+5021-0x207d),NULL,FALSE}};VOID atWeb_SendSms
(UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;T_zUfiSms_StatusInfo tStatus={
-(0x16e8+3186-0x235a)};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={
-(0x17f2+2900-0x2346)};T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;
-T_zUfiSms_StatusInfo tStatus={(0x1a3+8774-0x23e9)};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 (0xabd+427-0xc68)
+(0x2b+6924-0x1b37)};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={(0xc54+3822-0x1b42)};T_zUfiSms_CmdStatus result=
+WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x6b4+3987-0x1647)};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 (0x1b4a+567-0x1d81)
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,(0x177+6622-0x1b55),req
+,req->eBoxName);SMS_DeleteRecordFromXML(SMS_LOCATION_SIM,(0xc85+3683-0x1ae8),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={
-(0x504+5726-0x1b62)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)
+(0x2105+722-0x23d7)};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={(0x1638+2540-0x2024)};assert(
+WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x3bc+4851-0x16af)};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,250 +60,249 @@
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={
-(0x13c6+1082-0x1800)};printf(
+(0x645+7763-0x2498)};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={(0x1d59+1239-0x2230)};
+pDatabuf){T_zUfiSms_DelReq tSmsDel={(0x205+1835-0x930)};
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>(0x271+2475-0xc1c)){
-atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x1361+3264-0x2021),sizeof(
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x189+2031-0x978)){
+atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x171b+334-0x1869),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>(0x89+5102-0x1477)){
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x3b4+6965-0x1ee9)){
atWeb_DelSmsByIndex(&tSmsDel);}}VOID zSms_HandleWebMsg(MSG_BUF*ptMsgBuf){UINT32
-i=(0x8ba+396-0xa46);assert(ptMsgBuf!=NULL);printf(
+i=(0x107+7063-0x1c9e);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((0xa93+2878-0x15d1)!=SmsHandleWebTab[i].msg_id){if(
+,ptMsgBuf->usMsgCmd);while((0x675+7420-0x2371)!=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,(0x1847+1769-0x1f30));}else if(NULL!=SmsHandleWebTab[i].
+ptMsgBuf->aucDataBuf,(0x203f+605-0x229c));}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,(0x13bf+2928-0x1f2f));return(0x5ab+3454-0x1329);}SINT32
-zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x850+5215-0x1caf)};
-memset(&sendSmsInfo,(0x2363+397-0x24f0),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
+unsigned char*)pData,(0x68a+435-0x83d));return(0x3a9+5727-0x1a08);}SINT32
+zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x7d4+3110-0x13fa)};
+memset(&sendSmsInfo,(0xc68+6156-0x2474),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
length=g_zUfiSms_FinalCmgsBuf.length;if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<
-ZSMS_PDU_SIZE-(0x21c0+806-0x24e5)){memcpy(sendSmsInfo.pdu,g_zUfiSms_FinalCmgsBuf
-.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));}else{printf(
+ZSMS_PDU_SIZE-(0x9ef+841-0xd37)){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-(0x168a+1691-0x1d23));}*(sendSmsInfo.pdu+strlen(
+ZSMS_PDU_SIZE-(0xe2b+463-0xff8));}*(sendSmsInfo.pdu+strlen(
g_zUfiSms_FinalCmgsBuf.pdu))=ZSMS_CTRL_Z_CHAR;
-#if (0x1447+4102-0x244c)
+#if (0x38d+7357-0x2049)
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==(0x1208+1045-0x161c)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x1b36+2517-0x250a)){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-(0x15b9+1542-0x1bbe)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0xe0a+3875-0x1d2c)].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-(0x757+3796-0x162a)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x4dd+30-0x4fa)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0xbdc+6822-0x2681)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0xc69+3235-0x190b)){
g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc();}SINT32 zSms_SendCmgdReq
-(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0x68b+5482-0x1bf5)};delSmsReq.index=
+(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0x149+1517-0x736)};delSmsReq.index=
index;zSms_SendMsg(MSG_CMD_DELSMS_REQ,sizeof(T_zSms_DelSmsReq),&delSmsReq);
-sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x1200+2937-0x1d78)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x606+2058-0xe0f)){return
ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmgdOk(VOID){CHAR
-strUsed[(0xbc4+1640-0x1222)]={(0x1f8+366-0x366)};int used=(0x38+8923-0x2313);int
- tmp_i=(0x925+326-0xa6b);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+strUsed[(0x743+3996-0x16d5)]={(0x308+7749-0x214d)};int used=(0x54c+1328-0xa7c);
+int tmp_i=(0x400+5158-0x1826);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<(0x523+1960-0xccb)||tmp_i>INT_MAX-(0x12bd+4240-0x234c)){
+strUsed);if(tmp_i<(0x668+4348-0x1764)||tmp_i>INT_MAX-(0xeb7+4658-0x20e8)){
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=(0x625+492-0x811);}used=tmp_i-(0xdf1+2229-0x16a5);if(used<
-(0xd68+813-0x1095)){used=(0x7f2+1208-0xcaa);}memset(&strUsed,(0x1e7+3116-0xe13),
-(0x1a38+806-0x1d54));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(
+,tmp_i);tmp_i=(0x40+1880-0x798);}used=tmp_i-(0x1483+4628-0x2696);if(used<
+(0x5af+2616-0xfe7)){used=(0x10ad+37-0x10d2);}memset(&strUsed,
+(0x1bc0+1651-0x2233),(0x209+3251-0xeb2));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[(0xe7+6170-0x18f7)]={
-(0x23e1+775-0x26e8)};CHAR strTotal[(0x894+5980-0x1fe6)]={(0x1777+3224-0x240f)};
-CHAR strUsed[(0x1bff+1333-0x212a)]={(0x59f+3938-0x1501)};int total=
-(0x1302+5010-0x2694);int used=(0x125d+2671-0x1ccc);int remain=(0xf23+293-0x1048)
-;sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
-strUsed);if(used<(0x370+6153-0x1b79)||used>INT_MAX-(0x107f+3952-0x1fee)){
-at_print(LOG_ERR,
+);}VOID zSms_RecvCmgdFinish(VOID){char StrValue[(0x162a+1526-0x1c16)]={
+(0x14+2617-0xa4d)};CHAR strTotal[(0xcd7+2157-0x153a)]={(0x18+4792-0x12d0)};CHAR
+strUsed[(0x40+9865-0x26bf)]={(0x6f5+774-0x9fb)};int total=(0x179b+3737-0x2634);
+int used=(0x8ba+1743-0xf89);int remain=(0x109a+3289-0x1d73);sc_cfg_get(
+ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(strUsed);if(
+used<(0x6eb+3559-0x14d2)||used>INT_MAX-(0x9a5+3977-0x192d)){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=(0x123f+3281-0x1f10);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
-strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0x4c4+789-0x7d9)||
-total>INT_MAX-(0x8c4+1912-0x103b)){at_print(LOG_ERR,
+,used);used=(0xef5+1238-0x13cb);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
+strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0x40+2826-0xb4a)||
+total>INT_MAX-(0xc2c+811-0xf56)){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=(0x11ec+2650-0x1c46);}remain=total-used;if(remain<
-(0x715+2793-0x11fe)){remain=(0x1ee8+1347-0x242b);}memset(&StrValue,
-(0x107+3728-0xf97),(0xc8f+2339-0x15a8));snprintf(StrValue,sizeof(StrValue),
+,total);total=(0x10c1+1124-0x1525);}remain=total-used;if(remain<
+(0x220d+173-0x22ba)){remain=(0x320+7165-0x1f1d);}memset(&StrValue,
+(0xaea+3830-0x19e0),(0x165d+3719-0x24da));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={(0xb2a+481-0xd0b)};storageReq.type=avail;zSms_SendMsg(
+storageReq={(0x92a+6631-0x2311)};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==(0x14ea+604-0x1745)){return ZSMS_RESULT_OK;
+g_sms_sem_id);if(g_smsOptRsp.result==(0xda0+4326-0x1e85)){return ZSMS_RESULT_OK;
}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCmgrReq(UINT8 index){
-T_zSms_ModifyTagReq modTagReq={(0x14b+5047-0x1502)};modTagReq.index=index;
+T_zSms_ModifyTagReq modTagReq={(0x427+4697-0x1680)};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==(0xa35+4516-0x1bd8)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x16db+2699-0x2165)){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)-
-(0x882+7481-0x25ba));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),&
-setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0xfcc+2406-0x1931)){
+(0x751+4100-0x1754));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),&
+setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x912+7092-0x24c5)){
return ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCnmiReq(PSTR
- pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0x501+5656-0x1b19)};if(
-(0x11f2+2364-0x1b2e)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
-(0x34b+3751-0x11f1);}else{notifySetReq.mt=(0x4b5+3027-0x1086);}zSms_SendMsg(
+ pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0x15da+4155-0x2615)};if(
+(0x16a8+3280-0x2378)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
+(0xcd4+3963-0x1c4e);}else{notifySetReq.mt=(0x14a1+3630-0x22cd);}zSms_SendMsg(
MSG_CMD_NOTIFY_SET_REQ,sizeof(T_zSms_NotifySetReq),¬ifySetReq);sem_wait(&
-g_sms_sem_id);if(g_smsOptRsp.result==(0xe69+3257-0x1b21)){return ZSMS_RESULT_OK;
+g_sms_sem_id);if(g_smsOptRsp.result==(0xd20+2697-0x17a8)){return ZSMS_RESULT_OK;
}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmtInd(UINT8*pDatabuf){CHAR
-needSMS[(0x165b+1968-0x1dd9)]={(0x890+4900-0x1bb4)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1390+4124-0x23ac)==strcmp(
-needSMS,"\x6e\x6f")){printf(
+needSMS[(0xc04+557-0xdff)]={(0x911+4203-0x197c)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0x95a+5931-0x2085)==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={(0x12fa+4995-0x267d)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0x22c2+1008-0x26b2)};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[(0x2a1+9114-0x261d)]={
-(0x40+4862-0x133e)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
-CHAR needSMS[(0x1730+4094-0x26fc)]={(0x65f+817-0x990)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x231+9313-0x2692)==strcmp(
+zSms_RecvCmtiInd(UINT8*pDatabuf){char sms_Main_state[(0x5f3+8488-0x26fd)]={
+(0x2107+741-0x23ec)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
+CHAR needSMS[(0x12ff+4023-0x2284)]={(0xc67+3861-0x1b7c)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1d4+4849-0x14c5)==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")==
-(0x1864+3042-0x2446)){printf(
+(0x23c5+76-0x2411)){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((0xb81+6742-0x25d7)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0x5ff+336-0x74d))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0x13bb+1121-0x181c)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0x1dab+1460-0x235d))){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[(0x9e7+6457-0x22ee)]={(0x1eb9+1955-0x265c)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x28b+6165-0x1aa0)==strcmp(
-needSMS,"\x6e\x6f")){printf(
+needSMS[(0xb8+1141-0x4fb)]={(0x12d2+923-0x166d)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0x571+1927-0xcf8)==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={(0xc55+1260-0x1141)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0x125+5210-0x157f)};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[(0xe5a+1293-0x1349)]={
-(0x6c9+202-0x793)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
-CHAR needSMS[(0x1005+5702-0x2619)]={(0xc18+6012-0x2394)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x2f5+2246-0xbbb)==strcmp(
+zSms_RecvCdsiInd(UINT8*pDatabuf){char sms_Main_state[(0x21b0+639-0x2411)]={
+(0x1510+376-0x1688)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
+CHAR needSMS[(0x551+6963-0x2052)]={(0xe8c+920-0x1224)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1385+4374-0x249b)==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")==
-(0x800+6429-0x211d)){printf(
+(0x15d1+3806-0x24af)){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((0x56f+5505-0x1af0)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0x9af+3366-0x16d3))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0x1555+3306-0x223f)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0x2b7+8431-0x23a4))){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={(0xe44+3857-0x1d55)};CHAR ackPduStr[
-(0x1a5c+1006-0x1e18)]={(0x1ac+7822-0x203a)};ackReq.ackmode=ack_mode;if(ack_mode
-==(0x13a+1083-0x573)){zUfiSms_EncodePdu_DeliverReport(ackPduStr,
-(0x439+5393-0x1877));memcpy(ackReq.pdu,ackPduStr,strlen(ackPduStr));
-#if (0xf7+5992-0x185f)
-if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0x114b+3957-0x20bf)){memcpy(ackReq.pdu,
+T_zSms_SmsAckReq ackReq={(0xac6+5142-0x1edc)};CHAR ackPduStr[(0x549+2023-0xcfe)]
+={(0x3d1+1448-0x979)};ackReq.ackmode=ack_mode;if(ack_mode==(0x98b+7108-0x254d)){
+zUfiSms_EncodePdu_DeliverReport(ackPduStr,(0x2e6+2759-0xcda));memcpy(ackReq.pdu,
+ackPduStr,strlen(ackPduStr));
+#if (0x1605+1726-0x1cc3)
+if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0xb70+2712-0x1607)){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-(0x99c+5080-0x1d72));}
+,ackPduStr);memcpy(ackReq.pdu,ackPduStr,ZSMS_PDU_SIZE-(0x4d+4922-0x1385));}
#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)/(0x81a+3026-0x13ea);}zSms_SendMsg(
+,ackReq.pdu);ackReq.length=strlen(ackPduStr)/(0xa33+6144-0x2231);}zSms_SendMsg(
MSG_CMD_SMSACK_REQ,sizeof(T_zSms_SmsAckReq),&ackReq);sem_wait(&g_sms_sem_id);if(
-g_smsOptRsp.result==(0x20f5+1152-0x2574)){return ZSMS_RESULT_OK;}else{return
+g_smsOptRsp.result==(0x1929+2991-0x24d7)){return ZSMS_RESULT_OK;}else{return
ZSMS_RESULT_ERROR;}}int zSms_SendZmgrReq(int index){T_zSms_ReadSmsReq readSmsReq
-={(0x1bf9+1034-0x2003)};iSmsIndex=index;printf(
+={(0xa1f+4725-0x1c94)};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(0xb6+4869-0x13bb);}VOID zSms_RecvZmgrRsp(
-UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0x1892+2403-0x21f5)};memcpy(&tCmgrRsp,(
+T_zSms_ReadSmsReq),&readSmsReq);return(0x77+7211-0x1ca2);}VOID zSms_RecvZmgrRsp(
+UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0x12ed+357-0x1452)};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={(0x1d2f+379-0x1eaa)};memcpy(&smsOptRsp,
-(T_zSms_optRsp*)pDatabuf,sizeof(T_zSms_optRsp));if(smsOptRsp.result==
-(0x748+3514-0x1501)){sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{printf(
+UINT8*pDatabuf){T_zSms_optRsp smsOptRsp={(0x1b91+2374-0x24d7)};memcpy(&smsOptRsp
+,(T_zSms_optRsp*)pDatabuf,sizeof(T_zSms_optRsp));if(smsOptRsp.result==
+(0x2e8+2757-0xdac)){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((
-(0x69d+2698-0x1126)==ptPara->result)&&((0xe40+144-0xed0)==ptPara->opertype)){
-CHAR needSms[(0xb72+4490-0x1cca)]={(0x266+5852-0x1942)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0xd1a+5515-0x22a5)!=strcmp(
+(0x197+4920-0x14ce)==ptPara->result)&&((0xa2f+1520-0x101f)==ptPara->opertype)){
+CHAR needSms[(0x102+9222-0x24d6)]={(0xa81+4907-0x1dac)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0xf2f+1904-0x169f)!=strcmp(
needSms,"\x6e\x6f")){zSvr_Zpbic_Sms_Init();}}}VOID zSms_RecvCpmsInd(UINT8*
pDatabuf){T_zSms_CpmsInd*cpmsInd=(T_zSms_CpmsInd*)pDatabuf;CHAR strBuf[
-(0x1c8+3861-0x10d3)]={(0xdb1+1694-0x144f)};int remainSpace=(0x13e6+3467-0x2171);
+(0x208+5437-0x173b)]={(0x171f+2856-0x2247)};int remainSpace=(0x113+6132-0x1907);
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,(0x171+7215-0x1da0),
-(0x491+5703-0x1ace));snprintf(strBuf,sizeof(strBuf),"\x25\x64",cpmsInd->used);
+ZTE_WMS_NVCONFIG_SIM_CAPABILITY,strBuf);memset(&strBuf,(0xb17+1178-0xfb1),
+(0x759+5465-0x1ca8));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,(0x12c1+4664-0x24f9),(0x1b0+8881-0x2457));snprintf(
+cpmsInd->used;memset(&strBuf,(0xf93+1245-0x1470),(0x166+7100-0x1d18));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 (0x1c45+693-0x1eba)
+#define AT_CMD_MAX (0x195a+2978-0x24bc)
#define ZAT_TAB_REPLACE ((unsigned char )(\
-(0x14c9+4818-0x269f)))
+(0x1694+2076-0x1db4)))
#define ZAT_NULL_FILL ((unsigned char )(\
-(0x23d7+137-0x2363)))
+(0x94b+2840-0x1366)))
#define ZAT_SPACE_REPLACE ((unsigned char )(\
-(0x22f+6089-0x18fa)))
-#define ZAT_LF_REPLACE ((unsigned char )(\
-(0x10f2+5380-0x24fb)))
-#define ZAT_CR_REPLACE ((unsigned char )(\
-(0x29c+7355-0x1e5d)))
+(0x1868+2450-0x20fc)))
+#define ZAT_LF_REPLACE ((unsigned char )((0x558+284-0x579))\
+)
+#define ZAT_CR_REPLACE ((unsigned char )((0xaac+99-0xa15)))\
+
static void atBase_PreProcRes(char*pParaLine,int paraSize){signed long flg=
-(0xdd8+568-0x1010);unsigned long i=(0x25c+7277-0x1ec9);unsigned long length=
-(0x1276+1028-0x167a);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=
-(char*)malloc(AT_CMD_MAX);if(NULL==pStrDestMalloc){return;}memset(pStrDestMalloc
-,(0x128+3012-0xcec),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
-length=strlen(pParaLine);if((length==(0x467+8117-0x241c))||(length>=AT_CMD_MAX))
-{free(pStrDestMalloc);return;}for(i=(0x17db+645-0x1a60);(i<length)&&(pDest-
-pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x27f+9247-0x267c))==*pSource){flg=(
-(0xc71+385-0xdf2)==flg)?(0x85f+366-0x9cc):(0xf5+4646-0x131b);if(
-((char)(0xc5c+3941-0x1b9f))==*(pSource+(0x32c+3346-0x103d))){*pDest++=(char)
-ZAT_NULL_FILL;}}else if((((char)(0x1a57+890-0x1da5))==*pSource)&&(
-(0x3f3+649-0x67c)==flg)){*pDest++=((char)(0x70a+7323-0x2385));if(
-((char)(0x18b+678-0x405))==*(pSource+(0x405+3920-0x1354))){*pDest++=
-((char)(0x1f69+982-0x2306));}else if('\0'==*(pSource+(0x1071+2291-0x1963))){*
-pDest++=(char)ZAT_NULL_FILL;}}else{if((((char)(0x1922+2255-0x21d1))==*pSource)&&
-((0x1d6+1296-0x6e5)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
-pSource)&&((0x19b7+2051-0x21b9)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
-'\n'==*pSource)&&((0xc71+1717-0x1325)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}else
- if(('\r'==*pSource)&&((0x138f+4946-0x26e0)==flg)){*pDest++=(char)ZAT_CR_REPLACE
-;}else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,(0x17cb+2594-0x21ed),
-paraSize);strncpy(pParaLine,pStrDestMalloc,paraSize-(0x1076+2230-0x192b));free(
+(0x477+7129-0x2050);unsigned long i=(0xac0+386-0xc42);unsigned long length=
+(0xba+1662-0x738);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=(
+char*)malloc(AT_CMD_MAX);if(NULL==pStrDestMalloc){return;}memset(pStrDestMalloc,
+(0x1012+1113-0x146b),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
+length=strlen(pParaLine);if((length==(0xca3+6140-0x249f))||(length>=AT_CMD_MAX))
+{free(pStrDestMalloc);return;}for(i=(0x1c5+4640-0x13e5);(i<length)&&(pDest-
+pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x2174+926-0x24f0))==*pSource){flg=(
+(0x19+2833-0xb2a)==flg)?(0x1800+3852-0x270b):(0x18b3+2730-0x235d);if(
+((char)(0x16af+1068-0x1ab9))==*(pSource+(0x22a9+403-0x243b))){*pDest++=(char)
+ZAT_NULL_FILL;}}else if((((char)(0x9b+1945-0x808))==*pSource)&&(
+(0x158b+3141-0x21d0)==flg)){*pDest++=((char)(0x60+4359-0x1147));if(
+((char)(0x953+6623-0x2306))==*(pSource+(0x515+8505-0x264d))){*pDest++=
+((char)(0x1c35+1434-0x2196));}else if('\0'==*(pSource+(0x141d+1246-0x18fa))){*
+pDest++=(char)ZAT_NULL_FILL;}}else{if((((char)(0xb60+6451-0x2473))==*pSource)&&(
+(0xa92+4307-0x1b64)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
+pSource)&&((0x1bd+7119-0x1d8b)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
+'\n'==*pSource)&&((0x4ff+5357-0x19eb)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}else
+ if(('\r'==*pSource)&&((0x2302+327-0x2448)==flg)){*pDest++=(char)ZAT_CR_REPLACE;
+}else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,(0x5b+7557-0x1de0),
+paraSize);strncpy(pParaLine,pStrDestMalloc,paraSize-(0x1389+4612-0x258c));free(
pStrDestMalloc);}VOID zSms_RecvCscaInd(UINT8*pDatabuf){T_zSms_CscaInd cscaInd={
-(0x8f3+4494-0x1a81)};
-#if (0xf68+3106-0x1b89)
+(0xc06+3253-0x18bb)};
+#if (0x154f+1152-0x19ce)
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 (0x4b5+1301-0x9c9)
+#if (0x275+4173-0x12c1)
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);
@@ -312,22 +310,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,
-(0x115b+323-0x129e),NULL);return(0x1a9a+1897-0x2203);}VOID zSms_initAtOk(VOID){
-T_zUfiSms_StatusInfo tStatus={(0xc3d+6671-0x264c)};sc_cfg_set(NV_SMS_STORE,
+(0x240d+193-0x24ce),NULL);return(0x35b+445-0x518);}VOID zSms_initAtOk(VOID){
+T_zUfiSms_StatusInfo tStatus={(0x369+6117-0x1b4e)};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={(0x74b+1501-0xd28)};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==(0xddc+4688-0x202b)){zSms_initAtOk();}
-else{zSms_initAtErr();}}UINT8 zSms_SmsMsgCreat(VOID){g_zSms_MsqId=msgget(
-MODULE_ID_SMS,IPC_CREAT|(0x6e1+4540-0x171d));if(g_zSms_MsqId==-
-(0x11d+6569-0x1ac5)){return ZUFI_FAIL;}g_zSms_LocalMsqId=msgget(
-MODULE_ID_SMS_LOCAL,IPC_CREAT|(0x13c0+4145-0x2271));if(g_zSms_LocalMsqId==-
-(0xc5f+1488-0x122e)){return ZUFI_FAIL;}sem_init(&g_sms_sem_id,
-(0xfc5+4046-0x1f93),(0xac+2486-0xa62));return ZUFI_SUCC;}void
+T_zUfiSms_StatusInfo tStatus={(0x20a+8207-0x2219)};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==
+(0x9cf+2714-0x1468)){zSms_initAtOk();}else{zSms_initAtErr();}}UINT8
+zSms_SmsMsgCreat(VOID){g_zSms_MsqId=msgget(MODULE_ID_SMS,IPC_CREAT|
+(0xe03+4300-0x1d4f));if(g_zSms_MsqId==-(0x17ac+588-0x19f7)){return ZUFI_FAIL;}
+g_zSms_LocalMsqId=msgget(MODULE_ID_SMS_LOCAL,IPC_CREAT|(0x720+5787-0x1c3b));if(
+g_zSms_LocalMsqId==-(0x2e1+549-0x505)){return ZUFI_FAIL;}sem_init(&g_sms_sem_id,
+(0x84d+3915-0x1798),(0x1368+846-0x16b6));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:
@@ -351,44 +349,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,
-(0x1e6a+467-0x203d));break;default:break;}}VOID zSms_HandleResetToFactory(){CHAR
- clearSms[(0x5c+3537-0xdfb)]={(0x21aa+51-0x21dd)};sc_cfg_get(
+(0x1fa+729-0x4d3));break;default:break;}}VOID zSms_HandleResetToFactory(){CHAR
+clearSms[(0xa02+2993-0x1581)]={(0x2c4+8803-0x2527)};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")==(0x298+9233-0x26a9)){printf(
+,clearSms);if(strcmp(clearSms,"\x79\x65\x73")==(0x3b8+7968-0x22d8)){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,(0x1c0+5008-0x1550),NULL,
-(0x62+7465-0x1d8b));}void zSms_HandleMainCtrlMsg(MSG_BUF*ptMsgBuf){assert(
+MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,(0x1061+1550-0x166f),NULL,
+(0xf33+1314-0x1455));}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=(0x467+1481-0xa30);MSG_BUF stMsg={
-(0x164a+1957-0x1def)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((
-int*)arg);prctl(PR_SET_NAME,"\x73\x6d\x73\x5f\x6c\x6f\x63\x61\x6c",
-(0x1075+785-0x1386),(0x129f+2285-0x1b8c),(0xc8f+6600-0x2657));while(
-(0xc1f+430-0xdcc)){iRet=(0x7b2+629-0xa27);memset(&stMsg,(0x1ec8+649-0x2151),
-sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0xa29+3236-0x16cd),
-(0xbba+1026-0xfbc));if(iRet>=(0x1892+1550-0x1ea0)){switch(stMsg.src_id){case
+sms_msg_thread_proc(void*arg){int iRet=(0x201d+1760-0x26fd);MSG_BUF stMsg={
+(0x3bf+3831-0x12b6)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((int
+*)arg);prctl(PR_SET_NAME,"\x73\x6d\x73\x5f\x6c\x6f\x63\x61\x6c",
+(0x7a3+278-0x8b9),(0x18bc+1271-0x1db3),(0xe21+1790-0x151f));while(
+(0xd52+5934-0x247f)){iRet=(0x92f+1422-0xebd);memset(&stMsg,(0x556+8118-0x250c),
+sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x1139+633-0x13b2),
+(0x1b79+2675-0x25ec));if(iRet>=(0x15d8+2370-0x1f1a)){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=(0x16a1+2004-0x1e75);MSG_BUF msgBuf={(0x8db+2134-0x1131)};CHAR
-needSMS[(0x837+6385-0x20f6)]={(0xc41+5824-0x2301)};prctl(PR_SET_NAME,
-"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x8ac+1599-0xeeb),(0x1759+3463-0x24e0),
-(0x82b+7353-0x24e4));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
-sizeof(needSMS));if((0xafd+3201-0x177e)!=strcmp(needSMS,"\x6e\x6f")){
+recv_thread_tid=(0x1a26+1706-0x20d0);MSG_BUF msgBuf={(0x1383+1524-0x1977)};CHAR
+needSMS[(0xfa7+3055-0x1b64)]={(0x2e6+7041-0x1e67)};prctl(PR_SET_NAME,
+"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x905+942-0xcb3),(0xb4b+1233-0x101c),
+(0x134b+4750-0x25d9));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
+sizeof(needSMS));if((0x10c4+852-0x1418)!=strcmp(needSMS,"\x6e\x6f")){
zUfiSms_InitDb();zUfiSms_CfgSmsNvInit();zUfiMmi_SendSmsStatus();zSms_SmsMsgCreat
-();}else{return-(0x896+2964-0x1429);}printf(
+();}else{return-(0x263+6225-0x1ab3);}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))==-(0x16f6+3786-0x25bf)){assert((0x10ab+4512-0x224b));}
-sms_msg_thread_proc(&g_zSms_MsqId);return(0x5d8+4660-0x180c);}
+*)(&g_zSms_LocalMsqId))==-(0x950+742-0xc35)){assert((0x1a6d+2146-0x22cf));}
+sms_msg_thread_proc(&g_zSms_MsqId);return(0x34c+1379-0x8af);}
diff --git a/ap/app/zte_comm/sms/src/sms_proc.c b/ap/app/zte_comm/sms/src/sms_proc.c
index a6bbc09..b1000c9 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={(0x19b+8375-0x2252)};
-T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0x1ee4+841-0x222d)};
-T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0x1f45+1781-0x263a)};int
-g_zUfiSms_UnitLen=(0x19c5+2724-0x2469);int g_zUfiSms_ConcatTotalNum=
-(0x121+5361-0x1612);int g_zUfiSms_CurConcatSegNo=(0x4f4+5980-0x1c50);UINT8
-g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0x29c+8532-0x23f0)
-;int g_zUfiSms_MsgRefer=(0xafa+5135-0x1f09);int g_zUfiSms_SendFailedRetry=
-(0xd8+3577-0xed1);char g_Zmena_value[(0x11d6+2231-0x1a8b)]={(0x132b+4680-0x2573)
-};int g_displaymode=(0x5e0+6098-0x1db2);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(
+g_zUfiSms_DelMsg;T_zUfiSms_DelIndexInfo g_deleteIndex={(0x1dc5+82-0x1e17)};
+T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0x11f9+3557-0x1fde)};
+T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0x1519+1475-0x1adc)};int
+g_zUfiSms_UnitLen=(0xc8c+3277-0x1959);int g_zUfiSms_ConcatTotalNum=
+(0x17c6+3905-0x2707);int g_zUfiSms_CurConcatSegNo=(0x1193+1421-0x1720);UINT8
+g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0x807+769-0xb08);
+int g_zUfiSms_MsgRefer=(0x145c+2763-0x1f27);int g_zUfiSms_SendFailedRetry=
+(0xb84+6462-0x24c2);char g_Zmena_value[(0xe0+7872-0x1f9e)]={(0x677+6655-0x2076)}
+;int g_displaymode=(0x766+1707-0xe11);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[
-(0x1020+3051-0x1bff)];}FOTA_MSG_BUF;
-#define WEBUI_NOTIFY_PUSH_MSG_ (0xb51+4663-0x1d85)
+(0x13b4+1218-0x186a)];}FOTA_MSG_BUF;
+#define WEBUI_NOTIFY_PUSH_MSG_ (0xfcc+2192-0x1859)
typedef struct{unsigned int isread_record;unsigned int inbox_full;}
T_zUfiMmi_SmsRecord;void zUfiMmi_SendSmsStatus(void){int iSmsNum=
-(0x6ec+7686-0x24f2);T_zUfiMmi_SmsRecord tRecord={(0x601+7840-0x24a1)};CHAR
-smsNum[(0xff+3456-0xe4d)]={(0x11af+2792-0x1c97)};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=
-(0x4b7+4585-0x169f);}else{tRecord.inbox_full=(0x10ef+5093-0x24d4);}}VOID
-zUfiSms_Init(VOID){zUfiSms_CfgInit();zUfiSms_ChangeMainState(SMS_STATE_INITING);
-}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=(0x16e0+1099-0x1b2b);
-T_zUfiSms_StatusInfo tStatus={(0xb2b+5869-0x2218)};CHAR outDate[
-(0x18c5+1961-0x203c)]={(0x1368+2584-0x1d80)};zUfiSms_Init();
+(0x6e0+3609-0x14f9);T_zUfiMmi_SmsRecord tRecord={(0x923+4676-0x1b67)};CHAR
+smsNum[(0x15ed+3788-0x2487)]={(0x15+6710-0x1a4b)};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=(0xc4c+2080-0x146b);}else{tRecord.inbox_full=(0x7b4+6022-0x1f3a);}}
+VOID zUfiSms_Init(VOID){zUfiSms_CfgInit();zUfiSms_ChangeMainState(
+SMS_STATE_INITING);}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=
+(0x1b14+3025-0x26e5);T_zUfiSms_StatusInfo tStatus={(0xe99+4269-0x1f46)};CHAR
+outDate[(0x1fe6+1638-0x261a)]={(0x430+854-0x786)};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(
-(0xa34+2721-0x14d5));at_print(LOG_DEBUG,
+(0xbf6+769-0xef7));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((0xbcf+2641-0x1620)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck(
+,outDate);if((0x9a1+3843-0x18a4)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck(
ZUFI_NULL);}}VOID zUfiSms_DeleteAllSimSms(VOID){zUfiSms_DeleteAllSimSmsInDb();}
-#if (0x2ef+3890-0x1221)
-VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0x278+8126-0x2204)]={
-(0x137+8492-0x2263)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
-g_Zmena_rsp&&((0xc41+699-0xefc)!=strcmp(
-"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0xd3f+3945-0x1ca8)!=strcmp
-("\x4c\x69\x6d\x69\x74\x65\x64\x20\x53\x65\x72\x76\x69\x63\x65",netType))){
-atUnsoli_Report_Zmena(NULL,cid);}}
+#if (0x651+3798-0x1527)
+VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0x361+7056-0x1ebf)]={
+(0x12ea+2731-0x1d95)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
+g_Zmena_rsp&&((0xadb+6703-0x250a)!=strcmp(
+"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0x1d97+1801-0x24a0)!=
+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 (0x398+2361-0xcd1)
-CHAR ackPduStr[(0xe2d+5221-0x2102)]={(0xa41+1894-0x11a7)};SMS_PARAM reportParam=
-{(0x732+5346-0x1c14)};int total_length=(0x115c+3805-0x2039);UINT8 TP_FCS=
-(0xb64+6413-0x2471);CHAR strValue[(0x8cf+5134-0x1cdb)]={(0x9e7+2406-0x134d)};if(
-needAck){TP_FCS=(0x1bc0+629-0x1e35);sprintf(strValue,"\x25\x64",
-(0x396+8242-0x23c7));}else{TP_FCS=(0x92d+7001-0x23b3);sprintf(strValue,
-"\x25\x64",(0x1020+4495-0x21ad));}sprintf(reportParam.SCA,"\x25\x73",cfg_get(
+#if (0x11db+157-0x1278)
+CHAR ackPduStr[(0xc96+6510-0x2474)]={(0x1a8b+3018-0x2655)};SMS_PARAM reportParam
+={(0x18d2+971-0x1c9d)};int total_length=(0x17a7+2032-0x1f97);UINT8 TP_FCS=
+(0xfe7+4537-0x21a0);CHAR strValue[(0xe0c+1702-0x14b0)]={(0xd6+966-0x49c)};if(
+needAck){TP_FCS=(0x1f2a+1972-0x26de);sprintf(strValue,"\x25\x64",
+(0xe00+84-0xe53));}else{TP_FCS=(0x291+127-0x23d);sprintf(strValue,"\x25\x64",
+(0x1372+1890-0x1ad2));}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,(0x43c+5-0x441),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu.
+g_zUfiSms_ackPdu,(0x860+2043-0x105b),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu.
length=String2Bytes(ackPduStr,g_zUfiSms_ackPdu.pdu,strlen(ackPduStr));memset(
-g_zUfiSms_ackPdu.pdu,(0xce1+2820-0x17e5),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
+g_zUfiSms_ackPdu.pdu,(0x152a+2255-0x1df9),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
g_zUfiSms_ackPdu.pdu,&ackPduStr,sizeof(ackPduStr));atBase_SendMsgToSelf(
ZAT_CNMA_CMD,strValue,sizeof(strValue));
#endif
-#if (0x94d+1059-0xd70)
-CHAR strValue[(0x830+397-0x9bb)]={(0x1208+1019-0x1603)};if(needAck){snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0x69b+7183-0x22a9));}else{snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0x12d9+816-0x1607));}zSvr_InnerSendMsg(
+#if (0x7c2+3698-0x1634)
+CHAR strValue[(0x1df+2791-0xcc4)]={(0x16e2+1301-0x1bf7)};if(needAck){snprintf(
+strValue,sizeof(strValue),"\x25\x64",(0x1c5+4286-0x1282));}else{snprintf(
+strValue,sizeof(strValue),"\x25\x64",(0x141c+4096-0x241a));}zSvr_InnerSendMsg(
ZUFI_MODULE_ID_AT_LOCAL,ZUFI_MODULE_ID_AT_UNSOLI,MSG_CMD_AT_CNMA,strlen(strValue
),strValue);
#endif
-if(needAck){zSms_SendCnmaReq((0x1019+1836-0x1744));}else{zSms_SendCnmaReq(
-(0x5af+8391-0x2674));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq*
-ptSendMsg){if(NULL==ptSendMsg||(0x166+6997-0x1cbb)==ptSendMsg->receiver_count){
+if(needAck){zSms_SendCnmaReq((0x142b+166-0x14d0));}else{zSms_SendCnmaReq(
+(0x1a3c+1528-0x2032));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq
+*ptSendMsg){if(NULL==ptSendMsg||(0x1d1+6095-0x19a0)==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[(0x8e7+4133-0x190c)],ptSendMsg->
+,ptSendMsg->receiver_count,ptSendMsg->dest_num[(0x33a+2196-0xbce)],ptSendMsg->
msg_len,ptSendMsg->id);
-#if (0x15ba+365-0x1726)
+#if (0x136d+2213-0x1c11)
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=(0x1322+4984-0x269a)
-;if(ptSendMsg->isDelete==TRUE||-(0x10b+5193-0x1553)!=ptSendMsg->id){(void)
+sc_cfg_set(NV_SMS_SEND_RESULT,"");g_zUfiSms_SendFailedCount=(0xfc4+2674-0x1a36);
+if(ptSendMsg->isDelete==TRUE||-(0x5f4+4909-0x1920)!=ptSendMsg->id){(void)
zUfiSms_DeleteDraftSms(ptSendMsg->id);}zUfiSms_SetGlobalDcsLang(ptSendMsg->dcs);
-memset(&g_zUfiSms_GroupSms,(0xea1+609-0x1102),sizeof(g_zUfiSms_GroupSms));if(
+memset(&g_zUfiSms_GroupSms,(0x5e1+7662-0x23cf),sizeof(g_zUfiSms_GroupSms));if(
ZUFI_FAIL==zUfiSms_FillGroupSms(ptSendMsg,&g_zUfiSms_GroupSms)){return
-WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0xb8d+5790-0x222b),sizeof(
+WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0x919+6956-0x2445),sizeof(
g_zUfiSms_ConcatSms));g_zUfiSms_UnitLen=zUfiSms_FillConcatSms(ptSendMsg,&
g_zUfiSms_ConcatSms);g_zUfiSms_IsConcatSendSuc=TRUE;g_zUfiSms_CurConcatSegNo=
-(0x9ef+4333-0x1adc);memset(g_zUfiSms_DbStoreData,(0x1ce2+19-0x1cf5),sizeof(
-g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0x80a+7486-0x253e)){
-g_displaymode=(0xf60+4770-0x2201);at_print(LOG_DEBUG,
+(0x108f+718-0x135d);memset(g_zUfiSms_DbStoreData,(0x301+912-0x691),sizeof(
+g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0x7fa+7069-0x238d)){
+g_displaymode=(0x137d+2232-0x1c34);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=(0x147+1866-0x891);at_print(LOG_DEBUG,
+);}else{g_displaymode=(0x1196+2223-0x1a45);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=(0x17bb+3460-0x253f);T_zUfiSms_CmdStatus result=
+ tGroupSms;int iSmsLen=(0xc30+5572-0x21f4);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,(0x18fc+222-0x19da),sizeof(T_zUfiSms_ConcatInfo));memset(&
-tGroupSms,(0x23bc+268-0x24c8),sizeof(T_zUfiSms_GroupInfo));(void)
+memset(&tConcatSms,(0x21+3977-0xfaa),sizeof(T_zUfiSms_ConcatInfo));memset(&
+tGroupSms,(0xabd+6526-0x243b),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=
-(0x415+120-0x48d);tGroupSms.current_receiver<tGroupSms.total_receiver;tGroupSms.
-current_receiver++){tConcatSms.current_sending=(0x40c+4141-0x1439);result=
-zUfiSms_SaveSmsToDb(pSaveBuff,&tConcatSms,&tGroupSms,iSmsLen);at_print(LOG_DEBUG
-,
+(0x1778+3487-0x2517);tGroupSms.current_receiver<tGroupSms.total_receiver;
+tGroupSms.current_receiver++){tConcatSms.current_sending=(0x4f1+5430-0x1a27);
+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[(0x209+6363-0x1ae4)]);(void)
+,ptDelBuff->all_or_count,ptDelBuff->id[(0x1396+2945-0x1f17)]);(void)
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_ChangeMainState(
-SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0x504+8316-0x2580),sizeof(
+SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0x305+2908-0xe61),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((0x1b6c+1368-0x20c4)<
+,g_zUfiSms_DelMsg.nv_count,g_zUfiSms_DelMsg.sim_count);if((0x326+6650-0x1d20)<
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,114 +147,114 @@
memoryFullbeforeDelete&&!g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]){
at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x20\x73\x65\x6e\x64\x20\x41\x54\x2b\x5a\x4d\x45\x4e\x41\x3d\x30" "\n"
-);zSms_SendZmenaReq((0xf9c+4914-0x22ce));}if(memoryFullbeforeDelete&&!
+);zSms_SendZmenaReq((0x18bc+15-0x18cb));}if(memoryFullbeforeDelete&&!
g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]||unreadBeforeDelete&&!
zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_DEFAULT);}}if((0x5af+4970-0x1919)<g_zUfiSms_DelMsg.sim_count){result=
+MSG_SMS_DEFAULT);}}if((0x16ab+408-0x1843)<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=(0x1791+2546-0x2183);
-T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0x23b+8762-0x2443)]=
-{(0x239+9083-0x25b4)};if(NULL==ptModifyBuff){at_print(LOG_ERR,
+T_zUfiSms_ModifyFlag*ptModifyBuff){unsigned long i=(0xf7d+2877-0x1aba);
+T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0x324+3633-0x1123)]=
+{(0x998+2432-0x1318)};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=(0xd4d+6554-0x26e7);i<ptModifyBuff->total_id;i++){if(
-ptModifyBuff->id[i]<(0xe8a+662-0x111f)||ZUFI_FAIL==zUfiSms_UpdateSmsTagInDb(
+WMS_CMD_FAILED;}for(i=(0x1ad0+1206-0x1f86);i<ptModifyBuff->total_id;i++){if(
+ptModifyBuff->id[i]<(0x2cf+6877-0x1dab)||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[(0xabd+1062-0xee3)])){return ZUFI_FAIL;}if((0x8fa+3269-0x15bf)
-==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_READING);}if((0xcda+1444-0x127e)==strcmp(acStorePos,ZTE_WMS_DB_SIM_TABLE
-)&&ptModifyBuff->total_id>(0x1448+3889-0x2379)){zUfiSms_ModifyModemSms(
-ptModifyBuff);}return result;}T_zUfiSms_CmdStatus zUfiSms_SetSmsPara(
-T_zUfiSms_ParaInfo*ptParaBuff){int atRes=(0xdea+981-0x11bf);CHAR sca[
-ZTE_WMS_ADDRESS_DIGIT_MAX_V01+(0x1425+1856-0x1b64)]={(0xe72+1091-0x12b5)};CHAR
-store[(0x881+7756-0x26b9)]={(0x960+3874-0x1882)};CHAR defaultStore[
-(0x1197+3212-0x1df1)]={(0x288+1495-0x85f)};if(ptParaBuff==ZUFI_NULL){return
-WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=(0x122+1882-0x87c)){strncpy(sca,
-ptParaBuff->sca,sizeof(sca)-(0x53+4551-0x1219));at_print(LOG_DEBUG,
+ptModifyBuff->id[(0x2352+329-0x249b)])){return ZUFI_FAIL;}if(
+(0x1977+1774-0x2065)==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){
+zUfiSms_SendSmsStatusInfo(MSG_SMS_READING);}if((0x1d8+922-0x572)==strcmp(
+acStorePos,ZTE_WMS_DB_SIM_TABLE)&&ptModifyBuff->total_id>(0x78+727-0x34f)){
+zUfiSms_ModifyModemSms(ptModifyBuff);}return result;}T_zUfiSms_CmdStatus
+zUfiSms_SetSmsPara(T_zUfiSms_ParaInfo*ptParaBuff){int atRes=(0x3a6+6503-0x1d0d);
+CHAR sca[ZTE_WMS_ADDRESS_DIGIT_MAX_V01+(0x1675+378-0x17ee)]={(0x5cb+6986-0x2115)
+};CHAR store[(0x35a+2249-0xc0f)]={(0xc0+9067-0x242b)};CHAR defaultStore[
+(0x29d+4480-0x13eb)]={(0x1077+3561-0x1e60)};if(ptParaBuff==ZUFI_NULL){return
+WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=(0x173+5037-0x1520)){strncpy(sca,
+ptParaBuff->sca,sizeof(sca)-(0x882+918-0xc17));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')&&((0x121f+3787-0x20ea)!=strcmp(
+if((*(ptParaBuff->default_store)!='\0')&&((0x66b+1760-0xd4b)!=strcmp(
defaultStore,ptParaBuff->default_store))){{strncpy(store,ptParaBuff->
-default_store,sizeof(store)-(0xc40+3009-0x1800));}atRes=zSms_SendCnmiReq(store);
-if(atRes!=ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0xaed+2494-0x14aa)==
+default_store,sizeof(store)-(0xe2c+4271-0x1eda));}atRes=zSms_SendCnmiReq(store);
+if(atRes!=ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0x22ca+721-0x259a)==
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[(0xd43+3577-0x1b37)]={(0x3c8+1447-0x96f)};char remind_flag[
-(0x1569+3034-0x213e)];int sms_count=(0x1f1a+926-0x22b8);int remind_count=
-(0x22+9456-0x2512);memset(sms_rec_flag,(0x3ef+8115-0x23a2),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<(0xa92+2222-0x1340)||sms_count>INT_MAX
--(0x379+5430-0x18ae)){at_print(LOG_ERR,
+char sms_rec_flag[(0x1c39+2608-0x2664)]={(0x75f+1636-0xdc3)};char remind_flag[
+(0x1a7+3294-0xe80)];int sms_count=(0x10af+4030-0x206d);int remind_count=
+(0x493+4801-0x1754);memset(sms_rec_flag,(0x578+6367-0x1e57),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<(0x1812+544-0x1a32)||sms_count>INT_MAX
+-(0x18b1+522-0x1aba)){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,(0x9b0+1400-0xf28),sizeof(sms_rec_flag))
-;snprintf(sms_rec_flag,sizeof(sms_rec_flag),"\x25\x64",sms_count+
-(0x18f5+958-0x1cb2));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);
-sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED_LED,sms_rec_flag);memset(remind_flag,
-(0x73f+6378-0x2029),sizeof(remind_flag));snprintf(remind_flag,sizeof(remind_flag
-),"\x25\x64",remind_count+(0xe94+1946-0x162d));sc_cfg_set(
+,sms_count);return;}memset(sms_rec_flag,(0x6b+3410-0xdbd),sizeof(sms_rec_flag));
+snprintf(sms_rec_flag,sizeof(sms_rec_flag),"\x25\x64",sms_count+
+(0x5c+3019-0xc26));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);sc_cfg_set
+(ZTE_WMS_NVCONFIG_RECEVIED_LED,sms_rec_flag);memset(remind_flag,
+(0x1036+2608-0x1a66),sizeof(remind_flag));snprintf(remind_flag,sizeof(
+remind_flag),"\x25\x64",remind_count+(0x847+1884-0xfa2));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]={
-(0xaa3+2965-0x1638)};T_zUfiSms_DbStoreData tDbStoreData={(0x1901+2011-0x20dc)};
-int isPushSms=(0xe70+1622-0x14c6);if(strcmp(ptRespData->pdu,"")==
-(0x247+8498-0x2379)){CHAR srState[(0xba2+4433-0x1cc1)]={(0x974+3258-0x162e)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x5d4+471-0x7ab)!=strcmp(
+(0xce0+6085-0x24a5)};T_zUfiSms_DbStoreData tDbStoreData={(0x1551+1185-0x19f2)};
+int isPushSms=(0x14e7+2732-0x1f93);if(strcmp(ptRespData->pdu,"")==
+(0x53f+941-0x8ec)){CHAR srState[(0x83c+6892-0x22f6)]={(0xf0b+4410-0x2045)};
+sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x562+1644-0xbce)!=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(
-(0x2e9+381-0x461)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
+(0x1e3b+550-0x205c)==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!=
-(0x384+173-0x430)){return(0x202b+736-0x230b);}zUfiSms_GetCurrentRecvTotalSeq(
+(0x2c0+9227-0x26ca)){return(0x13bf+2999-0x1f76);}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[(0x1ee6+551-0x210d)],data->
-concat_info[(0x14d0+3634-0x2301)],data->concat_info[(0x37+9586-0x25a7)]);if(data
-->concat_info[(0x2568+386-0x26e9)]==atoi(pmsg->total_seq)){return
-(0xc87+637-0xf04);}return-(0x19b0+1172-0x1e43);}void zUfiSms_TrafficChangeSmsTag
-(T_zUfiSms_DbStoreData*data){CHAR smsNumber[(0x83a+233-0x8f1)]={
-(0x8b2+4397-0x19df)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,smsNumber,sizeof(smsNumber
-));if((0x129+5381-0x162e)==strcmp(smsNumber,data->number)){data->tag=
-WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=(0x407+3471-0x1195);}}void
+,pmsg->id,atoi(pmsg->total_seq),data->concat_info[(0x1707+2906-0x2261)],data->
+concat_info[(0x9b1+4929-0x1cf1)],data->concat_info[(0x9f4+2080-0x1212)]);if(data
+->concat_info[(0xb5a+2175-0x13d8)]==atoi(pmsg->total_seq)){return
+(0x46b+2175-0xcea);}return-(0x658+5557-0x1c0c);}void zUfiSms_TrafficChangeSmsTag
+(T_zUfiSms_DbStoreData*data){CHAR smsNumber[(0x388+266-0x460)]={
+(0x970+6739-0x23c3)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,smsNumber,sizeof(smsNumber
+));if((0x418+4667-0x1653)==strcmp(smsNumber,data->number)){data->tag=
+WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=(0xefb+2965-0x1a8f);}}void
zUfiSms_HandleTrafficSms(T_zUfiSms_DbStoreData*data){int iSmsId=
-(0xa30+6978-0x2572);SMS_MSG_INFO msg={(0xa41+1357-0xf8e)};CHAR smsNumber[
-(0xa7c+5685-0x207f)]={(0xa72+6062-0x2220)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
+(0x414+7647-0x21f3);SMS_MSG_INFO msg={(0x163+2238-0xa21)};CHAR smsNumber[
+(0x1422+3087-0x1fff)]={(0xb5c+4026-0x1b16)};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((0x23b2+646-0x2638)==strcmp(smsNumber,data->number))
-{if((0xcfb+3105-0x191c)!=zUfiSms_CheckIfWholeSms(data,&msg)){at_print(LOG_DEBUG,
+,data->number,smsNumber);if((0x7b3+7027-0x2326)==strcmp(smsNumber,data->number))
+{if((0x2226+971-0x25f1)!=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]={
-(0x17a+2220-0xa26)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x21bd+36-0x21e1);SMS_PARAM one_sms={(0xd4+9190-0x24ba)};int
-unread_sms_before_recv_new_sms=(0x858+1039-0xc67);memset(&tDbStoreData,
-(0xc06+3801-0x1adf),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x14f4+1041-0x1905)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x2+3224-0xc9a);SMS_PARAM one_sms={(0xf06+410-0x10a0)};int
+unread_sms_before_recv_new_sms=(0x1801+3440-0x2571);memset(&tDbStoreData,
+(0xe1d+1514-0x1407),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,"")==(0x13c3+2644-0x1e17)){CHAR srState[
-(0x1c81+2307-0x2552)]={(0xb67+636-0xde3)};sc_cfg_get(NV_SR_STATE,srState,sizeof(
-srState));if((0xd17+2390-0x166d)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0x755+2906-0x12af)){CHAR srState[
+(0xbbd+4562-0x1d5d)]={(0x1db9+1997-0x2586)};sc_cfg_get(NV_SR_STATE,srState,
+sizeof(srState));if((0x1784+2028-0x1f70)!=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((0xc1f+25-0xc38));}if(SMS_NO_PUSH
-!=isPushSms){at_print(LOG_DEBUG,
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x2093+1197-0x2540));}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"
@@ -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((0x309+8202-0x230e)==ptRespData->stat){(void)
+ptRespData->pdu));if((0x1a99+2239-0x2353)==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=(0x35a+1552-0x969);}else{
-unread_sms_before_recv_new_sms=(0x239+1913-0x9b2);}zUfiSms_TrafficChangeSmsTag(&
-tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,
-iStorePos,-(0x619+2601-0x1041))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
-(0x79c+2732-0x1247));return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){
+unread_sms_before_recv_new_sms=(0x995+4975-0x1d03);}else{
+unread_sms_before_recv_new_sms=(0x2275+376-0x23ed);}zUfiSms_TrafficChangeSmsTag(
+&tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,
+iStorePos,-(0x474+6018-0x1bf5))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
+(0x1630+585-0x1878));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]={
-(0x6c7+6721-0x2108)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x95+4618-0x129f);SMS_PARAM one_sms={(0x14e6+1256-0x19ce)};CHAR defaultStore[
-(0x17ca+2869-0x22cd)]={(0x10ca+4898-0x23ec)};memset(&tDbStoreData,
-(0xb3a+346-0xc94),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x1a6b+454-0x1c31)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x6ec+1724-0xda8);SMS_PARAM one_sms={(0x1a1f+1638-0x2085)};CHAR defaultStore[
+(0x2169+644-0x23bb)]={(0xcaa+255-0xda9)};memset(&tDbStoreData,
+(0x1597+1835-0x1cc2),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,"")==(0x262+8731-0x247d)){CHAR srState[(0x978+1225-0xe0f)
-]={(0x1085+5540-0x2629)};sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if(
-(0xd26+4292-0x1dea)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0xd62+6273-0x25e3)){CHAR srState[(0x68+8491-0x2161)
+]={(0x690+5348-0x1b74)};sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if(
+(0x316+7852-0x21c2)!=strcmp(srState,
"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_RECVED)
;}else{sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");}
@@ -299,7 +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((0x19da+2678-0x2450));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0xffc+1631-0x165b));}if(
SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
,one_sms.index);at_print(LOG_DEBUG,
@@ -311,29 +311,29 @@
,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(
-(0x1096+3626-0x1ebb)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
+(0x1622+2313-0x1f26)==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(
-(0x16e0+2534-0x20c6)==strcmp(defaultStore,"\x73\x69\x6d")){iStorePos=
+(0x129d+2329-0x1bb6)==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,-
-(0x93f+477-0xb1b))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
+(0x2e4+8714-0x24ed))){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]={
-(0x95b+320-0xa9b)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0xbec+5097-0x1fd5);SMS_PARAM one_sms={(0x2695+84-0x26e9)};int
-unread_sms_before_recv_new_sms=(0x1900+2127-0x214f);memset(&tDbStoreData,
-(0x5ef+6178-0x1e11),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0xfc6+3914-0x1f10)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x1b1b+2119-0x2362);SMS_PARAM one_sms={(0x1fe1+784-0x22f1)};int
+unread_sms_before_recv_new_sms=(0x1e0c+1957-0x25b1);memset(&tDbStoreData,
+(0x741+7337-0x23ea),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,"")==
-(0x306+9040-0x2656)){CHAR srState[(0x12e2+4323-0x2393)]={(0xb52+3134-0x1790)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x51f+1708-0xbcb)!=strcmp(
+(0xced+4979-0x2060)){CHAR srState[(0x10fb+3361-0x1dea)]={(0x131a+3173-0x1f7f)};
+sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0xb6+7725-0x1ee3)!=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");}
@@ -342,7 +342,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((0x2014+1432-0x25ac));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x73d+4627-0x1950));}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,
@@ -353,81 +353,81 @@
"\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((0x4cd+5509-0x1a4d)
+ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if((0x60f+8006-0x2550)
==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=
-(0xbc2+3161-0x181a);}else{unread_sms_before_recv_new_sms=(0xac0+2059-0x12cb);}if
+(0xc6f+1420-0x11fa);}else{unread_sms_before_recv_new_sms=(0xbf7+6716-0x2633);}if
(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-
-(0x10f5+779-0x13ff))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
+(0xc60+1199-0x110e))){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={(0x12ef+2609-0x1d20)};g_zUfiSms_DbStoreData
-->msg_displaymode=g_displaymode;if(g_zUfiSms_DbStoreData->msg_displaymode!=
-(0x20d8+36-0x20fb)){if((0x1a93+1815-0x21aa)==zUfiSms_WriteSmsToDb(&
-g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0xee9+1218-0x13aa)],
-WMS_STORAGE_TYPE_NV_V01,-(0x10c6+5603-0x26a8))){g_zUfiSms_MsgRefer++;(void)
+){T_zUfiSms_StatusInfo tStatusInfo={(0x5b0+3323-0x12ab)};g_zUfiSms_DbStoreData->
+msg_displaymode=g_displaymode;if(g_zUfiSms_DbStoreData->msg_displaymode!=
+(0x558+4070-0x153d)){if((0x16bb+156-0x1757)==zUfiSms_WriteSmsToDb(&
+g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x1172+4437-0x22c6)],
+WMS_STORAGE_TYPE_NV_V01,-(0xa52+7348-0x2705))){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=
-(0x317+8022-0x226d);memset((void*)&tStatusInfo,(0xd4d+6156-0x2559),sizeof(
+(0x127b+3857-0x218c);memset((void*)&tStatusInfo,(0x1c6b+133-0x1cf0),sizeof(
T_zUfiSms_StatusInfo));tStatusInfo.err_code=ZTE_SMS_CMS_NONE;tStatusInfo.
send_failed_count=g_zUfiSms_SendFailedCount;tStatusInfo.delete_failed_count=
-(0x17df+3167-0x243e);if(g_zUfiSms_SendFailedCount==(0x940+2502-0x1306)){
+(0x129c+4901-0x25c1);if(g_zUfiSms_SendFailedCount==(0x693+3897-0x15cc)){
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={(0x1b5a+2390-0x24b0)};int
-errs=(0xd5d+1522-0x134f);key_t req_id=ftok(
+int zte_fota_notifyPushMsg(int cmd){FOTA_MSG_BUF msg={(0x128+3724-0xfb4)};int
+errs=(0x3c3+8361-0x246c);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"
-,(0x36b+7667-0x215d));int msgid=msgget(req_id,(0xa8c+4825-0x1d65));if(msgid!=-
-(0x1ca1+95-0x1cff)){msg.mtype=(0x378+8386-0x2439);msg.mtext[(0xd6f+3846-0x1c75)]
-=WEBUI_NOTIFY_PUSH_MSG_;errs=msgsnd(msgid,&msg,sizeof(msg)-sizeof(long),
-(0x110c+228-0x11f0));}return(errs<(0x9d4+2875-0x150f)?(0x6d0+1890-0xe32):
-(0x17a9+1404-0x1d24));}
-#if (0xe78+679-0x111f)
+,(0xd43+2668-0x17ae));int msgid=msgget(req_id,(0x1129+3804-0x2005));if(msgid!=-
+(0xfb8+5206-0x240d)){msg.mtype=(0x13df+4479-0x255d);msg.mtext[
+(0x27c+9193-0x2665)]=WEBUI_NOTIFY_PUSH_MSG_;errs=msgsnd(msgid,&msg,sizeof(msg)-
+sizeof(long),(0x538+7326-0x21d6));}return(errs<(0x11e9+2200-0x1a81)?
+(0x595+1965-0xd42):(0x421+7397-0x2105));}
+#if (0x9f7+1257-0xee0)
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 (0x16c2+1854-0x1e00)
+#if (0x2e9+1073-0x71a)
int atSms_SendZmglReq(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){int res
-=(0x940+996-0xd24);pthread_mutex_lock(&smsdb_mutex);res=zSvr_SendAtSyn(
+=(0x613+8210-0x2625);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={(0x9+8571-0x2184)};sc_cfg_set(NV_SMS_LOAD_RESULT,
-"\x6f\x6b");tStatus.cmd_status=WMS_CMD_SUCCESS;tStatus.cmd=WMS_SMS_CMD_INIT;(
+T_zUfiSms_StatusInfo tStatus={(0x351+7055-0x1ee0)};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={
-(0xa0b+4653-0x1c38)};sc_cfg_set(NV_SMS_LOAD_RESULT,"\x66\x61\x69\x6c");
+(0x1453+4462-0x25c1)};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+6439-0x2371)};printf(
+(0xd1a+3450-0x1a94)};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,
-(0x1920+2371-0x2263),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
-->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x1450+2772-0x1f23));printf(
+(0x1b44+2323-0x2457),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
+->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x1ef+9017-0x2527));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[(0x23c+2041-0xa21)]
-={(0x22fd+640-0x257d)};iSmsIndex=atoi(pAtCmdPara);printf(
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0xc7d+2197-0x14fe)
+]={(0x113+7823-0x1fa2)};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 (0x124a+826-0x1584)
-static T_zUfiSms_SmsItem tSmsPara={(0x2c+3299-0xd0f)};T_zUfiSms_CmgrSetRsp
-tCmgrRsp={(0x1474+1747-0x1b47)};printf(
+#if (0x1396+272-0x14a6)
+static T_zUfiSms_SmsItem tSmsPara={(0x9b3+3204-0x1637)};T_zUfiSms_CmgrSetRsp
+tCmgrRsp={(0x1a37+2008-0x220f)};printf(
"\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x67\x72\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->result){printf(
@@ -436,14 +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,(0x215c+1356-0x26a8),sizeof(T_zUfiSms_SmsItem));(void)
-zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0xb3f+1243-0x1018));tSmsPara.
-index=iSmsIndex;printf(
+{memset(&tSmsPara,(0x900+2761-0x13c9),sizeof(T_zUfiSms_SmsItem));(void)
+zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0x24+57-0x5b));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[(0x9b3+2293-0x1294)]={(0xf77+2502-0x193d)};iSmsIndex=atoi(pAtCmdPara);
+pAtcmdStr[(0x8d+4499-0x120c)]={(0xc1d+5105-0x200e)};iSmsIndex=atoi(pAtCmdPara);
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x5a\x6d\x67\x72\x52\x65\x71\x20\x47\x65\x74\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2e" "\n"
,iSmsIndex);snprintf(pAtcmdStr,sizeof(pAtcmdStr),
@@ -456,8 +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={(0xcca+5167-0x20f9)};T_zUfiSms_CmgrSetRsp tCmgrRsp={
-(0x514+1578-0xb3e)};printf(
+T_zUfiSms_SmsItem tSmsPara={(0x15a8+2023-0x1d8f)};T_zUfiSms_CmgrSetRsp tCmgrRsp=
+{(0x1229+4034-0x21eb)};printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x72\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->result){printf(
@@ -465,56 +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,(0xe2b+4134-0x1e51),sizeof
+NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,(0x2328+802-0x264a),sizeof
(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine->resParas,sizeof(pResLine
-->resParas),&tSmsPara,(0xbad+52-0xbdf));tSmsPara.index=iSmsIndex;printf(
+->resParas),&tSmsPara,(0xb7b+4551-0x1d40));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[
-(0x186f+3709-0x26d8)]={(0x1766+1387-0x1cd1)};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[(0x7ea+4751-0x1a65)
+]={(0x6bf+2809-0x11b8)};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[(0x13af+1837-0x1ad2)]={(0x3+768-0x303)};int
-used=(0x1adb+2950-0x2661);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+atSms_RecvCmgdOk(VOID){CHAR strUsed[(0x58+1849-0x787)]={(0x1e39+225-0x1f1a)};int
+ used=(0x1482+1235-0x1955);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)-(0x288+237-0x374);if(used<(0x14b1+2150-0x1d17)){used=
-(0x17f1+1334-0x1d27);}memset(&strUsed,(0x74a+3554-0x152c),(0x186+4523-0x1327));
-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)-(0xeed+1228-0x13b8);if(used<(0x83c+553-0xa65)){used=(0x75+8077-0x2002);
+}memset(&strUsed,(0x260+8607-0x23ff),(0x11a0+5221-0x25fb));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[(0x3f9+1526-0x9e5)]={
-(0x8e5+4586-0x1acf)};CHAR strTotal[(0x370+1896-0xace)]={(0x1f95+1092-0x23d9)};
-CHAR strUsed[(0x1420+3293-0x20f3)]={(0x1af1+995-0x1ed4)};int total=
-(0x4a6+4572-0x1682);int used=(0x18a0+953-0x1c59);int remain=(0x8ea+1695-0xf89);
-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<(0x587+1059-0x9aa)){remain=
-(0x6b3+1204-0xb67);}memset(&StrValue,(0x1419+756-0x170d),(0x4a1+8345-0x2530));
+);}VOID atSms_RecvCmgdFinish(VOID){char StrValue[(0x16ca+2119-0x1f07)]={
+(0xd40+4758-0x1fd6)};CHAR strTotal[(0x1412+715-0x16d3)]={(0x241+275-0x354)};CHAR
+ strUsed[(0x3eb+3243-0x108c)]={(0x538+3013-0x10fd)};int total=(0x649+1051-0xa64)
+;int used=(0xa71+3145-0x16ba);int remain=(0x21b+3585-0x101c);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<(0x1c1c+2201-0x24b5)){remain=
+(0x838+1583-0xe67);}memset(&StrValue,(0xf25+2693-0x19aa),(0x2b3+9301-0x26fe));
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=(0x10ac+3479-0x1e43);CHAR pAtcmdStr[
-ZSMS_PDU_SIZE]={(0x703+7201-0x2324)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+pAtRst,int atRstSize){int atRes=(0xe8f+1203-0x1342);CHAR pAtcmdStr[ZSMS_PDU_SIZE
+]={(0x586+5288-0x1a2e)};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,(0x24ec+515-0x26ef),ZSMS_PDU_SIZE
-);if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-(0xee4+2818-0x19e5)){
-memcpy(pAtcmdStr,g_zUfiSms_FinalCmgsBuf.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));
-}else{printf(
+ZAT_RESULT_SMS){return atRes;}memset(pAtcmdStr,(0x15f3+3568-0x23e3),
+ZSMS_PDU_SIZE);if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-
+(0x1729+1095-0x1b6f)){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-(0x1d65+1279-0x2262));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.
-pdu))=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0x18b1+3182-0x251f),atRstSize);return
+ZSMS_PDU_SIZE-(0xfd4+5628-0x25ce));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.
+pdu))=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0x1569+820-0x189d),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-(0x1183+5250-0x2604)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0x55d+2837-0x1071)].tag=WMS_TAG_TYPE_MO_SENT_V01;
zUfiSms_CmgsRespProc(cid);}VOID atSms_RecvCmgsErr(UINT8*pResLine,int cid){
at_print(LOG_DEBUG,
"\x73\x6d\x73\x20\x73\x65\x6e\x64\x65\x64\x20\x66\x61\x69\x6c\x2e\x20" "\n");
@@ -522,16 +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-(0x14a1+3423-0x21ff)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x7a6+7442-0x24b7)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x16b1+744-0x1998)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x1425+3687-0x228b)){
g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc(cid);}VOID
atSms_RecvCmgsRsp(T_zAt_AtRes*pResLine){return;}VOID atSms_RecvCmtRsp(
-T_zAt_AtRes*pResLine){CHAR needSMS[(0x9b2+7500-0x26cc)]={(0xe39+3240-0x1ae1)};
-sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x323+1901-0xa90)==
+T_zAt_AtRes*pResLine){CHAR needSMS[(0x217b+1410-0x26cb)]={(0x1365+3240-0x200d)};
+sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xd2d+1301-0x1242)==
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={(0x20a+3535-0xfd9)};
-T_zUfiSms_CmtSetRsp tCmtRsp={(0x1fa6+224-0x2086)};if(NULL==pResLine){return;}
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0x314+1980-0xad0)};
+T_zUfiSms_CmtSetRsp tCmtRsp={(0x10bf+1292-0x15cb)};if(NULL==pResLine){return;}
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
@@ -541,39 +541,40 @@
"\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,
-(0x10cb+4880-0x23db),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0x79b+510-0x999),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[
-(0x1891+954-0x1c19)]={(0x8a3+97-0x904)};sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
-sizeof(needSMS));if((0x27a+7637-0x204f)==strcmp(needSMS,"\x6e\x6f")){printf(
+(0x128c+1626-0x18b4)]={(0x2cc+5647-0x18db)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0x468+7654-0x224e)==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[(0x12ab+4164-0x22d1)]={(0x768+4173-0x17b5)};char*
+);return;}char sms_Main_state[(0xeb8+4344-0x1f92)]={(0x1a4f+822-0x1d85)};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")==
-(0x11d7+5121-0x25d8)){printf(
+(0x4f7+140-0x583)){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(
-(0x2234+1154-0x26b6)==strncmp("\x53\x4d",memory,(0x14b6+1070-0x18e2))){
+(0x151+8834-0x23d3)==strncmp("\x53\x4d",memory,(0x252+1953-0x9f1))){
zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0x7d0+2449-0x115d);printf(
+SMS_STATE_RECVING);memory+=(0xcfb+2292-0x15eb);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[(0x980+1857-0x108f)]={(0x2459+278-0x256f)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1e84+1151-0x2303)==strcmp(
+){CHAR needSMS[(0x7ad+2148-0xfdf)]={(0x143c+4227-0x24bf)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1bbf+275-0x1cd2)==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={(0x2476+404-0x260a)};
-T_zUfiSms_CmgrSetRsp tCmgrRsp={(0xdda+2782-0x18b8)};if(NULL==pResLine){return;}
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0x1625+3949-0x2592)};
+T_zUfiSms_CmgrSetRsp tCmgrRsp={(0x16fc+427-0x18a7)};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"
@@ -581,80 +582,79 @@
"\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,
-(0x1624+3-0x1627),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0xa2a+5551-0x1fd9),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[
-(0x8f9+6105-0x20a0)]={(0x503+6796-0x1f8f)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x166+6341-0x1a2b)==strcmp(needSMS,"\x6e\x6f")){
+(0x1136+2959-0x1c93)]={(0x34f+8643-0x2512)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0x155+9099-0x24e0)==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[(0x340+8385-0x23e3)]={(0xa3b+3686-0x18a1)};char*
+);return;}char sms_Main_state[(0x50d+971-0x8ba)]={(0xff3+3202-0x1c75)};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")==
-(0x1742+3819-0x262d)){printf(
+(0x1aed+1995-0x22b8)){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((0x209+8350-0x22a7)==strncmp("\x53\x4d",memory,(0x1940+1596-0x1f7a))
-){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0x6c9+811-0x9f0);printf(
+,memory);if((0x1362+2517-0x1d37)==strncmp("\x53\x4d",memory,(0xf6+9340-0x2570)))
+{zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
+SMS_STATE_RECVING);memory+=(0x2170+1262-0x265a);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[(0x217f+712-0x2433)]={
-(0x13dd+3976-0x2365)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+ cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x1d1a+2237-0x25c3)]={
+(0x1c7b+2334-0x2599)};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=(0x1b71+2299-0x246c);CHAR pAtcmdStr[
-ZSMS_PDU_SIZE]={(0x1669+1513-0x1c52)};CHAR ackPduStr[(0x5b9+2966-0x111d)]={
-(0x1197+2501-0x1b5c)};if(atoi(pAtCmdPara)==(0xd12+4238-0x1d9f)){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=(0x2c6+4871-0x15cd);CHAR pAtcmdStr[ZSMS_PDU_SIZE
+]={(0x1f1+5658-0x180b)};CHAR ackPduStr[(0x1ad+331-0x2c6)]={(0xc13+4890-0x1f2d)};
+if(atoi(pAtCmdPara)==(0x58+8821-0x22cc)){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(0x1f4b+1159-0x23d2);}else{zUfiSms_EncodePdu_DeliverReport(
-ackPduStr,(0x66d+4075-0x1585));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+,pAtcmdStr);return(0xcf+9394-0x2581);}else{zUfiSms_EncodePdu_DeliverReport(
+ackPduStr,(0x546+6514-0x1de5));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73\x2c\x25\x64" "\r\n",pAtCmdPara,strlen(
-ackPduStr)/(0x144+1859-0x885));atRes=zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,
+ackPduStr)/(0x532+8296-0x2598));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,(0xd2c+3995-0x1cc7),ZSMS_PDU_SIZE);if(strlen(
-ackPduStr)<ZSMS_PDU_SIZE-(0xd16+5941-0x244a)){memcpy(pAtcmdStr,ackPduStr,strlen(
+,pAtcmdStr);memset(pAtcmdStr,(0x2c+4083-0x101f),ZSMS_PDU_SIZE);if(strlen(
+ackPduStr)<ZSMS_PDU_SIZE-(0xd18+5185-0x2158)){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-(0xab1+2202-0x1349));}*(
+,ackPduStr);memcpy(pAtcmdStr,ackPduStr,ZSMS_PDU_SIZE-(0xd58+4912-0x2086));}*(
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,(0x8f+9717-0x2684),atRstSize);return zSvr_SendAtSyn(
+,pAtcmdStr);memset(pAtRst,(0x1104+3525-0x1ec9),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]={(0x15c9+3247-0x2278)};int atRes=
-(0x1ba6+969-0x1f6f);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]={(0xb+3481-0xda4)};if
-(pDatabuf==NULL){printf(
+cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x4f+1045-0x464)};int atRes=
+(0x128a+3107-0x1ead);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]={(0x4a+3328-0xd4a)};
+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]
-={(0x116+6320-0x19c6)};int atRes=(0xd08+581-0xf4d);if(pDatabuf==NULL){printf(
+={(0x18af+2272-0x218f)};int atRes=(0xbff+2621-0x163c);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]=
-{(0xeb4+2020-0x1698)};if(pDatabuf==NULL){printf(
+{(0x65a+2875-0x1195)};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/sntp/sntp.c b/ap/app/zte_comm/sntp/sntp.c
index 976f610..3a845c5 100755
--- a/ap/app/zte_comm/sntp/sntp.c
+++ b/ap/app/zte_comm/sntp/sntp.c
@@ -21,6 +21,7 @@
//#include "cfg_api.h"
//#include "at_com.h"
#include "sntp.h"
+#include "pub_debug_info.h"
/**************************************************************************
@@ -36,6 +37,8 @@
int g_sntp_success_count = 0;
int g_sntp_sync_interval_time = 1; //ͬ²½³É¹¦ºó£¬ÔÙ´Î×Ô¶¯Í¬²½µÄ¼ä¸ôʱ¼ä£¬µ¥Î»:Ìì
+char MODULE_ID_SNTP_DEBUG[20] = "ap_sntp";
+
// ¶Ôsem_idÖ´ÐÐp²Ù×÷
static int sem_p(int sem_id)
{
@@ -547,6 +550,7 @@
if (0 == settimeofday(&tp, NULL)) {
system("zte-rtc-clock");
+ sc_debug_info_record(MODULE_ID_SNTP_DEBUG, "sntp time synchronization successful!\n");
slog(MISC_PRINT, SLOG_DEBUG, "[zyl]system zte-rtc-clock \n");
}
diff --git a/ap/app/zte_comm/wlan/inc/wifi_ap_ctrl.h b/ap/app/zte_comm/wlan/inc/wifi_ap_ctrl.h
index 078563f..0925ac3 100755
--- a/ap/app/zte_comm/wlan/inc/wifi_ap_ctrl.h
+++ b/ap/app/zte_comm/wlan/inc/wifi_ap_ctrl.h
@@ -24,8 +24,8 @@
#include <rtc_timer.h>
#define SOFTAP_MAX_BUFFER_SIZE 4096
-#define AP_BSS_START_DELAY 200000
-#define AP_BSS_STOP_DELAY 500000
+#define AP_BSS_START_DELAY 100000
+#define AP_BSS_STOP_DELAY 200000
#define AP_SET_CFG_DELAY 500000
#define AP_DRIVER_START_DELAY 800000
#define AP_CHANNEL_DEFAULT 6
diff --git a/ap/app/zte_comm/wlan/src/wifi_ap_ctrl.c b/ap/app/zte_comm/wlan/src/wifi_ap_ctrl.c
index 7cd5c1d..b773329 100755
--- a/ap/app/zte_comm/wlan/src/wifi_ap_ctrl.c
+++ b/ap/app/zte_comm/wlan/src/wifi_ap_ctrl.c
@@ -376,7 +376,7 @@
ap_svr->sock_m.pid = pid;
#endif
wf_log("SoftAP started successfully pid=%d pid=%d", ap_svr->sock.pid,ap_svr->sock_m.pid);
- //usleep(AP_BSS_START_DELAY);
+ usleep(AP_BSS_START_DELAY);
}
return 0;
}
@@ -1545,8 +1545,36 @@
return ret;
}
+/* Started by AICoder, pid:6a44d66d5ewb7ef142b8088b70a260601ed87c9b */
+static int reinit_drv(struct wlan_ap_server *ap_svr)
+{
+ int ret = -1;
+ int ifindex = 0;
+
+ ret = ap_svr->drv_proxy.drv_init(&ap_svr->drv_proxy);
+ if (ret != 0) {
+ wf_log("drv_init failed.");
+ return -1;
+ }
+
+ ifindex = if_nametoindex(ap_svr->drv_proxy.iface_name);
+ if (ifindex == 0) {
+ wf_log("iface not exist.");
+ return -1;
+ }
+
+ return 0;
+}
+
static void restart_due_cap(struct wlan_ap_server *ap_svr)
{
+ int ret = -1;
+
+ if (g_cap_wifi_enable == 0) {
+ wf_log("wifi not opened.");
+ return;
+ }
+
//stop
if (g_cap_sta_enable == 1) {
wifi_station_close();
@@ -1563,21 +1591,29 @@
//start
if (g_cap_wifi_enable == 1) {
- ap_svr->drv_proxy.drv_init(&ap_svr->drv_proxy);
- send_wlan_status_to_cap(IN_WIFI_STATUS_ENABLED);
+ ret = reinit_drv(ap_svr);
+ if (ret != 0) {
+ g_cap_wifi_enable = 0;
+ send_wlan_status_to_cap(IN_WIFI_STATUS_FIRMWARE_CRASH);
+ return;
+ }
}
if (g_cap_ap_enable == 1) {
- ap_svr->startap(ap_svr);
+ ret = ap_svr->startap(ap_svr);
+ if ((g_cap_sta_enable == 1) && (ret == 0)) {
+ wait_ap_enabled();
+ }
+ wf_log("startap:%d.", ret);
}
if (g_cap_sta_enable == 1) {
- wait_ap_enabled();
wlan_station_init();
sta_num_apsta_open();
}
}
+/* Ended by AICoder, pid:6a44d66d5ewb7ef142b8088b70a260601ed87c9b */
#endif
static void open_wifi_nv_set()
@@ -1660,24 +1696,24 @@
/* Started by AICoder, pid:a4e1a16bf7036c114fae096b506fec24b3125d96 */
static int get_wlan_mac_address(const char *interface, char *mac_addr) {
- // ¹¹½¨°üº¬½Ó¿ÚÐÅÏ¢µÄÎļþ·¾¶
+ // ¹¹½¨°üº¬½Ó¿ÚÐÅÏ¢µÄÎļþ·¾¶
char file_path[100];
snprintf(file_path, sizeof(file_path), "/sys/class/net/%s/address", interface);
- // ´ò¿ª°üº¬½Ó¿ÚÐÅÏ¢µÄÎļþ
+ // ´ò¿ª°üº¬½Ó¿ÚÐÅÏ¢µÄÎļþ
FILE *fp = fopen(file_path, "r");
if (fp == NULL) {
perror("cat not open wlan address file");
return -1;
}
- // ´ÓÎļþÖжÁÈ¡MACµØÖ·
- if (fgets(mac_addr, 18, fp) == NULL) { // MACµØÖ·Í¨³£ÊÇ17¸ö×Ö·û¼ÓÉÏÖÕÖ¹·û
+ // ´ÓÎļþÖжÁÈ¡MACµØÖ·
+ if (fgets(mac_addr, 18, fp) == NULL) { // MACµØÖ·Í¨³£ÊÇ17¸ö×Ö·û¼ÓÉÏÖÕÖ¹·û
fclose(fp);
return -1;
}
- // ¹Ø±ÕÎļþ²¢·µ»Ø³É¹¦
+ // ¹Ø±ÕÎļþ²¢·µ»Ø³É¹¦
fclose(fp);
return 0;
}
@@ -1689,7 +1725,7 @@
sc_cfg_get ("ssid_write_flag", ssid_write_flag, sizeof (ssid_write_flag));
wf_log ("ssid_write_flag = %s", ssid_write_flag);
- /*ÓëNVÖÐÊÇ·ñÒÑдÈëSSID µÄ±ê־λ±È½Ï£¬Èç¹ûΪ1±íʾÒÑдÈ룬²»ÓÃÔÙд£»0±íʾ»¹Î´Ð´Èë*/
+ /*ÓëNVÖÐÊÇ·ñÒÑдÈëSSID µÄ±ê־λ±È½Ï£¬Èç¹ûΪ1±íʾÒÑдÈ룬²»ÓÃÔÙд£»0±íʾ»¹Î´Ð´Èë*/
if (!strcmp (ssid_write_flag, "0")) {
char wifi_mac[20]={0};
get_wlan_mac_address(ap_server->drv_proxy.iface_name, wifi_mac);
@@ -1818,8 +1854,9 @@
return -1;
}
+ ret = -1;
wait_bridge();
- usleep (200000);
+ //usleep (200000);
if(0 == startSoftap (ap_svr)){
//usleep (200000);
if(0 == wifi_connect_to_hostapd(&ap_svr->sock)){
@@ -1856,6 +1893,9 @@
else{
wf_log (" socket connect or attach failed.");
wlan_set_state(WLAN_OFF,WLAN_OFF);
+ #ifdef USE_CAP_SUPPORT
+ send_ap_status_to_cap(IN_WIFI_AP_INDEX_MAX, IN_WIFI_AP_STATUS_ERROR);
+ #endif
}
}else{
@@ -2138,7 +2178,15 @@
int i = 1;
int find_wlan = -1;
char *reply = NULL;
- ap_svr->drv_proxy.drv_init(&ap_svr->drv_proxy);
+ /* Started by AICoder, pid:ld7cfg0cc0s40df149b9083090b6f01330e3ae49 */
+ int ret = 0;
+
+ ret = ap_svr->drv_proxy.drv_init(&ap_svr->drv_proxy);
+ if(-1 == ret) {
+ wf_log ("drv_init fail!");
+ return -1;
+ }
+ /* Ended by AICoder, pid:ld7cfg0cc0s40df149b9083090b6f01330e3ae49 */
for (i = 1; i <= 10; i++) {
wf_log ("ifconfig wlan i=%d", i);
find_wlan = wfsystem ("ifconfig wlan0");
@@ -2147,7 +2195,7 @@
wf_log ("drv_init failed!!");
return -1;
} else {
- usleep (200000 * i);
+ usleep (200000);
continue;
}
}
@@ -2169,21 +2217,22 @@
return 0;
}
-//wait max 10s for acs scan finish
+//wait max 8s for acs scan finish
+/* Started by AICoder, pid:he98fob7146b9731425108fc209e1a1b66425f2c */
static void wait_ap_enabled(void)
{
int i = 0;
- for (i = 1; i <= 50; i++) {
+ for (i = 1; i <= 40; i++) {
if (g_ap_enabled == 0) {
usleep(200000);
} else {
- usleep(100000);
+ //usleep(100000);
break;
}
}
}
-
+/* Ended by AICoder, pid:he98fob7146b9731425108fc209e1a1b66425f2c */
void *hostap_loop (void *param)
{
diff --git a/ap/app/zte_comm/wlan/src/wifi_socket.c b/ap/app/zte_comm/wlan/src/wifi_socket.c
index d697676..f5fa2a8 100755
--- a/ap/app/zte_comm/wlan/src/wifi_socket.c
+++ b/ap/app/zte_comm/wlan/src/wifi_socket.c
@@ -65,7 +65,7 @@
if (skt->ctrl_conn == NULL) {
if(i<50){
wf_log ("wpa_ctrl_open ctrl_conn times= %d", i);
- usleep(500000);
+ usleep(100000);
continue;
}
wf_log ("Unable to open connection to hostapd on \"%s\": %s \n",
diff --git a/ap/app/zte_comm/wlan/src/wifi_sta_ctrl.c b/ap/app/zte_comm/wlan/src/wifi_sta_ctrl.c
index 8603cb0..028b9df 100755
--- a/ap/app/zte_comm/wlan/src/wifi_sta_ctrl.c
+++ b/ap/app/zte_comm/wlan/src/wifi_sta_ctrl.c
@@ -112,7 +112,7 @@
int wifi_start_supplicant (struct wlan_sta_manager *sta_ctrl)
{
- int count = 200; /* wait at most 20 seconds for completion */
+ int count = 50; /* wait at most 5 seconds for completion */
char wifi_root_dir[32] = {0};
char *buf = NULL;
int ret = -1;
@@ -161,7 +161,7 @@
while (count-- > 0) {
if (access(WPA_PID_FILE, F_OK) == 0){
- usleep (100000);
+ //usleep (100000);
sta_ctrl->sock.pid = read_wpa_pid();
if(sta_ctrl->sock.pid == 0) {
usleep (100000);
diff --git a/ap/app/zte_comm/wlan/src/wlan-station.c b/ap/app/zte_comm/wlan/src/wlan-station.c
index 54070e3..a12db51 100755
--- a/ap/app/zte_comm/wlan/src/wlan-station.c
+++ b/ap/app/zte_comm/wlan/src/wlan-station.c
@@ -2720,6 +2720,32 @@
}
+/* Started by AICoder, pid:17c05ab2631ba551484608a0f093f11de3c5165e */
+void cap_close_station(void)
+{
+ g_cap_sta_enable = 0;
+ send_sta_status_to_cap(IN_WIFI_STA_STATUS_NONE, IN_WIFI_REASON_CODE_NONE);
+ //sc_cfg_set("wifi_sta_connection", "0");
+
+ if (0 == g_wpa_supplicant) {
+ wf_log("station has closed");
+ return;
+ }
+ //MSG_CMD_WIFI_STATION_CLOSE;
+ sta_disconnected();
+ wlan_station_deinit();
+ if (g_work_mode == IN_WIFI_WORK_MODE_AP0 || g_work_mode == IN_WIFI_WORK_MODE_AP1) {
+ //no mssid, not need
+ //basic_deal_all (WIFI_CFG_RESTART_AP);
+ }
+ else {
+ sc_cfg_set ("wifi_cur_state", WIFI_CLOSED);
+ }
+
+}
+/* Ended by AICoder, pid:17c05ab2631ba551484608a0f093f11de3c5165e */
+
+/* Started by AICoder, pid:ife7a60485s530a149930907308c8b1b9099759f */
static void cap_station_enable(wlan_sta_enable_t *sta_ena)
{
if (sta_ena->enable == 1) {
@@ -2735,28 +2761,17 @@
}
else {
wf_log("-MSG_CMD_WIFI_STATION_OPEN-");
+ sc_cfg_set ("wifi_cur_state", WIFI_OPENED);
wlan_station_init();
}
}
else {
- g_cap_sta_enable = 0;
- send_sta_status_to_cap(IN_WIFI_STA_STATUS_NONE, IN_WIFI_REASON_CODE_NONE);
- //sc_cfg_set("wifi_sta_connection", "0");
-
- if (0 == g_wpa_supplicant) {
- wf_log("station has closed");
- return;
- }
- //MSG_CMD_WIFI_STATION_CLOSE;
- sta_disconnected();
- wlan_station_deinit();
- if (g_work_mode == IN_WIFI_WORK_MODE_AP0 || g_work_mode == IN_WIFI_WORK_MODE_AP1) {
- //no mssid, not need
- //basic_deal_all (WIFI_CFG_RESTART_AP);
- }
+ cap_close_station();
}
}
+/* Ended by AICoder, pid:ife7a60485s530a149930907308c8b1b9099759f */
+
static int get_cur_ap_rssi(void)
{
@@ -3167,7 +3182,7 @@
if (strcmp (sta_ip_status, "connect") == 0 || strcmp (sta_ip_status, "dhcping") == 0) {
sta_disconnected();
#ifdef USE_CAP_SUPPORT
- send_sta_status_to_cap(IN_WIFI_STA_STATUS_IDLE, IN_WIFI_REASON_CODE_NONE);
+ send_sta_status_to_cap(IN_WIFI_STA_STATUS_DISCONNECTED, IN_WIFI_REASON_CODE_NONE);
#endif
}
else{
diff --git a/ap/app/zte_comm/wlan/src/wlan_main.c b/ap/app/zte_comm/wlan/src/wlan_main.c
index 424451c..1cfc5e1 100755
--- a/ap/app/zte_comm/wlan/src/wlan_main.c
+++ b/ap/app/zte_comm/wlan/src/wlan_main.c
@@ -49,8 +49,10 @@
extern int send_sta_status_to_cap(int status, int reason);
extern int wlan_drv_test_init(void);
extern int wlan_drv_test_deinit(void);
+extern void cap_close_station(void);
extern int wifi_get_ap_mac(void);
+
int send_ap_status_to_cap(int idx, int status);
int send_sta_change_to_cap(int idx, int status, char *mac);
#endif
@@ -868,9 +870,9 @@
//if (va0) station_mac0
//old²»ÔÚnewÖÐ ¶Ï¿ª
- chekc_sta_change(IN_WIFI_AP_INDEX_AP0, sta_mac_old, sta_mac_new, 0);
+ chekc_sta_change(IN_WIFI_AP_INDEX_MAX, sta_mac_old, sta_mac_new, 0);
//new²»ÔÚoldÖÐ ½ÓÈë
- chekc_sta_change(IN_WIFI_AP_INDEX_AP0, sta_mac_new, sta_mac_old, 1);
+ chekc_sta_change(IN_WIFI_AP_INDEX_MAX, sta_mac_new, sta_mac_old, 1);
//if (va1) station_mac1
@@ -962,7 +964,16 @@
{
wlan_sta_connect_status_t w_stat = {0};
int ret = 0;
-
+ /* Started by AICoder, pid:abb41t0ebcg3e4c14bb50bb640828d1bed15f44f */
+ if (idx == IN_WIFI_AP_INDEX_MAX) {
+ if (g_work_mode == IN_WIFI_WORK_MODE_AP1) {
+ idx = IN_WIFI_AP_INDEX_AP1;
+ }
+ else {
+ idx = IN_WIFI_AP_INDEX_AP0;
+ }
+ }
+ /* Ended by AICoder, pid:abb41t0ebcg3e4c14bb50bb640828d1bed15f44f */
if (idx <= IN_WIFI_AP_INDEX_MIN || idx >= IN_WIFI_AP_INDEX_MAX) {
wf_log("idx:%d not support\n", idx);
return -1;
@@ -1010,7 +1021,8 @@
wf_log ("at cmd need rsp!");
return 0;
}
-/* Ended by AICoder, pid:g0fb0rb932z35711469a0b6320f5110490e688a6 */
+
+
#if !(defined(CONFIG_WIFI_EFUSE_MAC))
sc_cfg_get("wifi_mac", wifi_mac, sizeof(wifi_mac));
if(strlen(wifi_mac) == 0){
@@ -1019,6 +1031,8 @@
return -1;
}
#endif
+/* Ended by AICoder, pid:g0fb0rb932z35711469a0b6320f5110490e688a6 */
+
return 0;
}
@@ -1083,7 +1097,7 @@
}
if (strcmp (wifi_sta_connection, "1") == 0) {
- send_sta_status_to_cap(IN_WIFI_STA_STATUS_NONE, IN_WIFI_REASON_CODE_NONE);
+ cap_close_station();
sc_cfg_set("wifi_sta_connection", "0");
}
@@ -1644,7 +1658,7 @@
break;
case MSG_CMD_WIFI_FORCE_RESTART:// broadcom ,realtek need, form netlink msg
#ifdef USE_CAP_SUPPORT
- send_wlan_status_to_cap(IN_WIFI_STATUS_FIRMWARE_CRASH);
+ //send_wlan_status_to_cap(IN_WIFI_STATUS_FIRMWARE_CRASH);
#endif
//ÔÚ wifi firmware crashºóµÄÖØÆôÁ÷³Ì£¬²»ÔÊÐíwebui·¢ËÍÏûÏ¢ÏÂÀ´£¬ËùÒÔ½«RadioOffÖÃ0
//sc_cfg_set("wifi_cur_state", WIFI_CLOSED);
@@ -1684,7 +1698,7 @@
add_sta_mac(pMsg->aucDataBuf);
#ifdef USE_CAP_SUPPORT
//Èç¹û¸±ssidÒ²Òª,¸±ssidµÄMSG_CMD_AP_STA_CONNECTED»»Ò»¸öÏûÏ¢Ãû
- send_sta_change_to_cap(IN_WIFI_AP_INDEX_AP0, 1, pMsg->aucDataBuf);
+ send_sta_change_to_cap(IN_WIFI_AP_INDEX_MAX, 1, pMsg->aucDataBuf);
#endif
break;
case MSG_CMD_AP_STA_DISCONNECTED:
@@ -1692,7 +1706,7 @@
//wlan_prepare_sleep();
#ifdef USE_CAP_SUPPORT
//Èç¹û¸±ssidÒ²Òª,¸±ssidµÄMSG_CMD_AP_STA_CONNECTED»»Ò»¸öÏûÏ¢Ãû
- send_sta_change_to_cap(IN_WIFI_AP_INDEX_AP0, 0, pMsg->aucDataBuf);
+ send_sta_change_to_cap(IN_WIFI_AP_INDEX_MAX, 0, pMsg->aucDataBuf);
#endif
break;
diff --git a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
index 367298f..7dabf64 100755
--- a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
+++ b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
@@ -722,6 +722,7 @@
char mtu[16] = {0};
char xlat_enable[4] = {0};
char ra_mtu_enable[4] = {0};
+ char wan_nm[IPV4ADDLEN_MAX] = {0};
sc_cfg_get("tc_enable", tc_enable, sizeof(tc_enable));
snprintf(wan_name,NV_NAME_LEN, "%s%d", ps_wan, actinfo->c_id);
@@ -747,7 +748,10 @@
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 netmask 255.255.255.0", wan_name, actinfo->act_info.ip);
+ snprintf(buffer, sizeof(buffer), "ifconfig %s %s", wan_name, actinfo->act_info.ip);
+ system_cmd_ex(buffer);
+ sc_cfg_get("static_wan_netmask", wan_nm, sizeof(wan_nm));
+ snprintf(buffer, sizeof(buffer), "ifconfig %s netmask %s", wan_name, wan_nm);
system_cmd_ex(buffer);
}
//ifconfig up
@@ -871,24 +875,16 @@
{
char nat_enable[4] = {0};
- int rndis_ip_map = !system("cat /sys/class/lynq_nv_cfg/cdev_lynq_nv_cfg/rndis_ip_map | grep 1");
system_cmd_ex("iptables -P INPUT ACCEPT");
system_cmd_ex("iptables -P OUTPUT ACCEPT");
system_cmd_ex("iptables -P FORWARD ACCEPT");
- if (rndis_ip_map == 0)
- system_cmd_ex("iptables -t nat -F");
+ system_cmd_ex("iptables -t nat -F");
system_cmd_ex("iptables -t nat -X port_forward");
system_cmd_ex("iptables -t nat -X DMZ");
system_cmd_ex("iptables -t nat -X port_mapping");
system_cmd_ex("iptables -t nat -N port_forward");
system_cmd_ex("iptables -t nat -N DMZ");
system_cmd_ex("iptables -t nat -N port_mapping");
- if (rndis_ip_map == 1)
- {
- system_cmd_ex("iptables -t nat -D PREROUTING -j port_forward");
- system_cmd_ex("iptables -t nat -D PREROUTING -j DMZ");
- system_cmd_ex("iptables -t nat -D PREROUTING -j port_mapping");
- }
system_cmd_ex("iptables -t nat -I PREROUTING 1 -j port_forward");
system_cmd_ex("iptables -t nat -I PREROUTING 1 -j DMZ");
system_cmd_ex("iptables -t nat -I PREROUTING 1 -j port_mapping");
diff --git a/ap/app/zte_comm/zte_mainctrl/zte_mainctrl.c b/ap/app/zte_comm/zte_mainctrl/zte_mainctrl.c
index b8255b9..05fb146 100755
--- a/ap/app/zte_comm/zte_mainctrl/zte_mainctrl.c
+++ b/ap/app/zte_comm/zte_mainctrl/zte_mainctrl.c
@@ -5,6 +5,8 @@
#include "rtc_timer.h"
#include "zte_mainctrl.h"
#include "libcpnv.h"
+#include "pub_debug_info.h"
+
/**************************************************************************
* Global Variables *
**************************************************************************/
@@ -736,7 +738,10 @@
sc_cfg_get("time_to_2000_when_restore", time_to_2000, 16);
if (strcmp(time_to_2000, "yes") == 0) {
system("rm -rf /etc_rw/TZ");
+ system("rm -rf /mnt/userdata/etc_rw/localtime");
+ system("ln -snf /usr/share/zoneinfo/Asia/Shanghai /mnt/userdata/etc_rw/localtime");
system("date -s \"2000-01-01 00:00:00\"");
+ sc_debug_info_record("ZTE-MAINCTRL", "reset system time!\n");
system("zte-rtc-clock");
}
diff --git a/ap/app/zte_mdl/Makefile b/ap/app/zte_mdl/Makefile
index 8cfd9ca..6cc0c94 100755
--- a/ap/app/zte_mdl/Makefile
+++ b/ap/app/zte_mdl/Makefile
@@ -77,9 +77,9 @@
CFLAGS += -D__QRCODE_WIFI__
CFLAGS += -D__USE_AES__
-# zw.wang WiFi for MAC is obtained from firmware and set on 20240508 start
-CFLAGS += -DCONFIG_WIFI_EFUSE_MAC
-# zw.wang WiFi for MAC is obtained from firmware and set on 20240508 end
+# zw.wang WiFi for MAC is obtained from firmware and set on 20240508 start
+CFLAGS += -DCONFIG_WIFI_EFUSE_MAC
+# zw.wang WiFi for MAC is obtained from firmware and set on 20240508 end
ifeq ($(WLAN_STA_FUNC),yes)
CFLAGS += -D__STA_FUNC__