[Feature][ZXW-285]merge P56U05 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: Ied657102425a179a89ef41847170152e8a5d437c
diff --git a/ap/app/Script/scripts/internet.sh b/ap/app/Script/scripts/internet.sh
index 71bb90c..c741406 100755
--- a/ap/app/Script/scripts/internet.sh
+++ b/ap/app/Script/scripts/internet.sh
@@ -91,6 +91,10 @@
echo "Info: set fastnat_level: $fastnat_level" >> $test_log
echo $fastnat_level > /proc/net/fastnat_level
+fastbr_level=`nv get fastbr_level`
+echo "Info: set fastbr_level: $fastbr_level" >> $test_log
+echo $fastbr_level > /proc/net/fastbr_level
+
#½«²»Ö§³Ö¿ìËÙת·¢µÄÐÒé¶Ë¿ÚºÅ´«¸øÄÚºË
nofast_port=`nv get nofast_port`
echo "Info: set nofast_port: $nofast_port" >> $test_log
diff --git a/ap/app/busybox/src/shell/math.c b/ap/app/busybox/src/shell/math.c
old mode 100644
new mode 100755
index 15c0039..174137d
--- a/ap/app/busybox/src/shell/math.c
+++ b/ap/app/busybox/src/shell/math.c
@@ -585,6 +585,8 @@
numstackptr->var = NULL;
errno = 0;
numstackptr->val = strto_arith_t(expr, (char**) &expr, 0);
+ if (isalnum(*expr) || *expr == '_')
+ goto err;
if (errno)
numstackptr->val = 0; /* bash compat */
goto num;
diff --git a/ap/app/fs_check/mtd.c b/ap/app/fs_check/mtd.c
index c2ef0e6..c610bf0 100755
--- a/ap/app/fs_check/mtd.c
+++ b/ap/app/fs_check/mtd.c
@@ -338,29 +338,38 @@
p_dst = read_file(p_dst_file, &dst_len);
p_src = read_file(p_src_file, &src_len);
- if ((dst_len == 0) && (src_len == 0))
+ if (p_dst == NULL && p_src == NULL)
{
- assert(p_dst == NULL);
- assert(p_src == NULL);
+ assert(dst_len == 0);
+ assert(src_len == 0);
return 0; //both empty file
}
-
- if(dst_len != src_len)
+ else if (p_dst == NULL || p_src == NULL)
{
printf("compare_file size dstbuf = %d, srcbuf = %d\n", dst_len, src_len);
sc_debug_info_record(MODULE_ID_AP_FS_CHECK, "compare_file size dstbuf = %d, srcbuf = %d\n", dst_len, src_len);
ret = -1;
goto out;
}
-
- if(memcmp(p_src, p_dst, src_len) != 0)
+ else
{
- printf("compare_file memcmp not same\n");
- sc_debug_info_record(MODULE_ID_AP_FS_CHECK, "compare_file memcmp not same\n");
- ret = -1;
- goto out;
+ if(dst_len != src_len)
+ {
+ printf("compare_file size dstbuf = %d, srcbuf = %d\n", dst_len, src_len);
+ sc_debug_info_record(MODULE_ID_AP_FS_CHECK, "compare_file size dstbuf = %d, srcbuf = %d\n", dst_len, src_len);
+ ret = -1;
+ goto out;
+ }
+
+ if(memcmp(p_src, p_dst, src_len) != 0)
+ {
+ printf("compare_file memcmp not same\n");
+ sc_debug_info_record(MODULE_ID_AP_FS_CHECK, "compare_file memcmp not same\n");
+ ret = -1;
+ goto out;
+ }
+ ret = 0;
}
- ret = 0;
out:
if (p_src)
diff --git a/ap/app/hostapd-2.10/hostapd/libwpa_client.a b/ap/app/hostapd-2.10/hostapd/libwpa_client.a
index d0d5644..c7e590f 100755
--- a/ap/app/hostapd-2.10/hostapd/libwpa_client.a
+++ b/ap/app/hostapd-2.10/hostapd/libwpa_client.a
Binary files differ
diff --git a/ap/app/include/wifi_msg.h b/ap/app/include/wifi_msg.h
index 03df513..a445b23 100755
--- a/ap/app/include/wifi_msg.h
+++ b/ap/app/include/wifi_msg.h
@@ -394,6 +394,10 @@
short connect_status;
short channel;
short signal;
+#ifdef USE_CAP_SUPPORT
+ //short ch_freq;
+ signed char signal_db;
+#endif
} scan_result_t;
@@ -537,12 +541,12 @@
typedef struct {
int idx; //refers to: wlan0,1...
- int wl_mode; //6 bgnax, 4 bgn
+ int wl_mode; //2.4G: 6 bgnax, 4 bgn; 5G: 6 a/n/ac/ax, 5 a/n/ac, 4 a/n
} wlan_ap_wl_mode_t;
typedef struct {
int idx; //refers to: wlan0,1...
- int htMode; //1 20/40M, 0 20M
+ int htMode; //4 20/40/80M, 1 20/40M, 0 20M
//int force_40m;
} wlan_ap_bandwidth_t;
@@ -612,7 +616,7 @@
int pre_status; //½öcap×ÔÐи³Öµ
int status;
char ifname[32];
- //char bssid[18];
+ char bssid[18]; //½öcap×ÔÐи³Öµ
} wlan_ap_status_t;
//sc_wifi_sta_connect_status_t
@@ -694,12 +698,12 @@
{
char bssid[18];//mac
char essid[33];
- //int signal;
+ signed char signal; //dbm
unsigned char signal_level; //0-5, max 5
- //int frequency;
- unsigned char channel; //1-13
+ unsigned char channel; //1-13, 36...
unsigned char auth;
unsigned char cipher;
+ //int frequency; //Hz
} wlan_sta_scan_info_t;
//sc_wifi_sta_scan_list_t
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 c8fa25e..13a378d 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/inc/ppp_dial.h b/ap/app/zte_comm/at_ctl/inc/ppp_dial.h
old mode 100644
new mode 100755
index 2d30e3b..02414fe
--- a/ap/app/zte_comm/at_ctl/inc/ppp_dial.h
+++ b/ap/app/zte_comm/at_ctl/inc/ppp_dial.h
@@ -14,6 +14,7 @@
char* quick_disconnect_func(void *msg,struct at_context *context);
int is_ppp_dial_atd( char *at_paras,int at_fd);
+int is_ppp_running(void);
extern int g_ppp_ptm; //ptm¶ÔÓ¦µÄÉ豸Îļþ¾ä±ú
extern int g_ppp_ttyfd; //ppp¶ÔÓ¦µÄttyÉ豸¾ä±ú
diff --git a/ap/app/zte_comm/at_ctl/src/atconfig/ppp_dial.c b/ap/app/zte_comm/at_ctl/src/atconfig/ppp_dial.c
index fc58d6c..4c2551b 100755
--- a/ap/app/zte_comm/at_ctl/src/atconfig/ppp_dial.c
+++ b/ap/app/zte_comm/at_ctl/src/atconfig/ppp_dial.c
@@ -643,4 +643,7 @@
#endif
}
+int is_ppp_running(void){
+ return strlen(g_ppp_devname) > 0 || g_ppp_ptm != -1;
+}
diff --git a/ap/app/zte_comm/at_ctl/src/atconfig/ps_pdp.c b/ap/app/zte_comm/at_ctl/src/atconfig/ps_pdp.c
index 9e02970..078e8d0 100755
--- a/ap/app/zte_comm/at_ctl/src/atconfig/ps_pdp.c
+++ b/ap/app/zte_comm/at_ctl/src/atconfig/ps_pdp.c
@@ -1203,12 +1203,15 @@
else if(pdp_type == PDP_PPP)
{
//±£´æpppÓ¦ÓÃʹÓõÄcid£¬ÓÃÓÚcgevÉϱ¨µÄ´¦Àí
+ if(is_ppp_running()){
char temp[2] = {0};
ppp_cid = CID_ARRAY[idx].c_id;
snprintf(temp,2, "%d", ppp_cid);
sc_cfg_set("ppp_cid",temp);
if(g_customer_type) //ÁªÇ¿°æ±¾ÌØÊâ¶¨ÖÆ£¬ppp²¦ºÅ³É¹¦ºóÐèҪ֪ͨmmi
set_pppstatus(PPP_CONNECTED);
+ }else
+ pdpinfo_reset(CID_ARRAY[idx].c_id);
}
{
diff --git a/ap/app/zte_comm/nvserver/nvserver.c b/ap/app/zte_comm/nvserver/nvserver.c
index b2b41cc..e059121 100755
--- a/ap/app/zte_comm/nvserver/nvserver.c
+++ b/ap/app/zte_comm/nvserver/nvserver.c
@@ -31,74 +31,73 @@
file,char*key,char*value);static int nvunset(char*file,char*key);static int
nvclear(char*file);static int nvreset(char*file);static int nvcommit(char*file);
T_NV_NODE*nv_list;int nvserver_main(int argc,char*argv[]){int msgId=
-(0x226+5513-0x17af);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",(0xb7f+2843-0x169a)
-,(0x6d+5801-0x1716),(0x7e1+1338-0xd1b));memset(&rcvBuf,(0x1ceb+131-0x1d6e),
-sizeof(rcvBuf));memset(&sndBuf,(0x56c+5932-0x1c98),sizeof(sndBuf));memset(&
-msgInfo,(0x290+744-0x578),sizeof(msgInfo));msgId=msgget(MODULE_ID_NV,IPC_CREAT|
-(0x1f57+575-0x2016));if(-(0x1952+63-0x1990)==msgId){printf(
+(0xd58+4544-0x1f18);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",(0x4b1+4172-0x14fd)
+,(0x1111+2535-0x1af8),(0xf7a+5057-0x233b));memset(&rcvBuf,(0x1a60+353-0x1bc1),
+sizeof(rcvBuf));memset(&sndBuf,(0xdfb+1453-0x13a8),sizeof(sndBuf));memset(&
+msgInfo,(0x951+5943-0x2088),sizeof(msgInfo));msgId=msgget(MODULE_ID_NV,IPC_CREAT
+|(0x1ad+2938-0xba7));if(-(0x15d3+1067-0x19fd)==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-(0x1bc+1139-0x62e);}if(-(0x19b0+704-0x1c6f)!=msgctl(msgId,
-IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0x19cd+145-0x1a5d)==msgctl(
+,errno);return-(0x1c83+2548-0x2676);}if(-(0xa2b+5325-0x1ef7)!=msgctl(msgId,
+IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0x133d+3883-0x2267)==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()!=(0x5a5+4947-0x18f8)){printf(
+,errno);}if(nvDirInit()!=(0xc28+128-0xca8)){printf(
"\x6e\x76\x44\x69\x72\x49\x6e\x69\x74\x20\x66\x61\x69\x6c\x65\x21" "\n");return-
-(0x338+2887-0xe7e);}nvConfig();nvInit();while((0x597+6601-0x1f5f)){if(-
-(0xc6+3757-0xf72)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
-MSG_TYPE_NV,(0x11cb+2556-0x1bc7))){printf(
+(0xa28+2379-0x1372);}nvConfig();nvInit();while((0x1de8+1167-0x2276)){if(-
+(0x6a+7229-0x1ca6)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
+MSG_TYPE_NV,(0x22c+7228-0x1e68))){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(-(0x1b9+4188-0x1214)==msgsnd(
-msgId,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0x104f+3434-0x1db9))){printf
-(
+,errno);continue;}analyMsg(&rcvBuf,&sndBuf);if(-(0x1f8+8763-0x2432)==msgsnd(
+msgId,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0x229+7220-0x1e5d))){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((0x353+7865-0x220c));}static void configdir(char*dir){
+,errno);continue;}}return((0x401+950-0x7b7));}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<(0x9dd+489-0xbc6)){fprintf(stderr,
+d_name,&statbuf);if(ret<(0x32d+5899-0x1a38)){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)==(0x1992+1302-0x1ea8)||strcmp("\x2e\x2e",entry->
-d_name)==(0x664+3654-0x14aa))continue;if(!isNvConfiged(entry->d_name)){if(
+strcmp("\x2e",entry->d_name)==(0x297+5022-0x1635)||strcmp("\x2e\x2e",entry->
+d_name)==(0x15a3+4365-0x26b0))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]={(0x170a+106-0x1774)};fp=fopen
+val=NULL;FILE*fp=NULL;char buf[NV_MAX_CONFIG_LEN]={(0x2424+266-0x252e)};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[
-(0x19a9+1680-0x2039)]=='\n'||buf[(0x13df+4240-0x246f)]==
-((char)(0x1682+135-0x16e6)))continue;val=strchr(buf,((char)(0x63a+5480-0x1b65)))
-;if(!val){printf(
+(0x163b+2526-0x2019)]=='\n'||buf[(0x1769+2727-0x2210)]==
+((char)(0x17c6+3876-0x26c7)))continue;val=strchr(buf,((char)(0x730+5296-0x1ba3))
+);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)-(0x925+4846-0x1c12)]='\0';*val++=
-'\0';if(!isCfgConfiged(buf)){if(addConfigFile(val,buf)!=RESULT_SUCCESS)printf(
+,NV_CONFIG_FILE,buf);continue;}buf[strlen(buf)-(0x1027+4827-0x2301)]='\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)!=(0x904+1473-0xec5)){if(mkdir(NV_FS_PATH,(0xf53+673-0x1007))!=
-(0x16d5+3739-0x2570)){printf(
+NV_FS_PATH,F_OK)!=(0xa1b+1768-0x1103)){if(mkdir(NV_FS_PATH,(0x1065+4612-0x207c))
+!=(0x17fb+350-0x1959)){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-(0x15a7+2520-0x1f7e);}if(mkdir(NV_FS_MAIN_PATH,
-(0x254+8851-0x22fa))!=(0x72c+2438-0x10b2)){printf(
+,NV_FS_PATH,errno);return-(0x148b+3120-0x20ba);}if(mkdir(NV_FS_MAIN_PATH,
+(0x505+8532-0x246c))!=(0xee5+1175-0x137c)){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-(0x169+9109-0x24fd);}if(mkdir(NV_FS_BACKUP_PATH,
-(0x6d9+1380-0xa50))!=(0xd47+1685-0x13dc)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0x1a61+1686-0x20f6);}if(mkdir(NV_FS_BACKUP_PATH,
+(0xb05+1560-0xf30))!=(0x3fd+6673-0x1e0e)){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-(0x5fd+3815-0x14e3);}}else{if(access(
-NV_FS_MAIN_PATH,F_OK)!=(0xdb+3179-0xd46)){if(mkdir(NV_FS_MAIN_PATH,
-(0x10a5+3919-0x1e07))!=(0x1128+207-0x11f7)){printf(
+,NV_FS_BACKUP_PATH,errno);return-(0x34+5944-0x176b);}}else{if(access(
+NV_FS_MAIN_PATH,F_OK)!=(0x2f1+8054-0x2267)){if(mkdir(NV_FS_MAIN_PATH,
+(0x29b+682-0x358))!=(0x281+3279-0xf50)){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-(0x1473+1993-0x1c3b);}}if(access(
-NV_FS_BACKUP_PATH,F_OK)!=(0x1839+3391-0x2578)){if(mkdir(NV_FS_BACKUP_PATH,
-(0x1390+4801-0x2464))!=(0x1d27+2189-0x25b4)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0x54d+2844-0x1068);}}if(access(NV_FS_BACKUP_PATH
+,F_OK)!=(0x9dd+2366-0x131b)){if(mkdir(NV_FS_BACKUP_PATH,(0x8a7+3264-0x137a))!=
+(0x176+1547-0x781)){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-(0x89+4253-0x1125);}}}return(0x3eb+2482-0xd9d);
+,NV_FS_BACKUP_PATH,errno);return-(0xed1+3677-0x1d2d);}}}return(0xc4f+615-0xeb6);
}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[NV_PATH_LEN]={
-(0x73b+6309-0x1fe0)};char nvBackupFile[NV_PATH_LEN]={(0x12c+942-0x4da)};
+(0x170+3682-0xfd2)};char nvBackupFile[NV_PATH_LEN]={(0x2da+5726-0x1938)};
#ifdef FOTA_AB
-T_FLAGS_INFO flags_info={(0xb4+9508-0x25d8)};int ret=(0x290+4418-0x13d2);
+T_FLAGS_INFO flags_info={(0x66f+7608-0x2427)};int ret=(0xec8+4771-0x216b);
#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,
@@ -106,73 +105,73 @@
nvMainFile)){if(!checkNvFs(nvBackupFile))restoreNvFs(nvBackupFile,nvMainFile);}
else if(checkNvFs(nvBackupFile)){restoreNvFs(nvMainFile,nvBackupFile);}else{
loadFactroyParam(list);nvcommit(list->nvFile);continue;}loadNvFs(list->nvFile);
-if(!strcmp(list->nvFile,NV_CFG)&&get_update_status()==(0x1263+2299-0x1b5c)){
+if(!strcmp(list->nvFile,NV_CFG)&&get_update_status()==(0x153+6736-0x1ba1)){
reloadFactroyParam(list);delete_not_needed(list);nvcommit(list->nvFile);
#ifdef FOTA_AB
ret=flags_get(&flags_info);flags_info.boot_fota_flag.fota_status=
-(0xad8+1305-0xff1);ret=flags_set(&flags_info);
+(0xd12+2242-0x15d4);ret=flags_set(&flags_info);
#endif
-}}}uint hash(const char*s){uint hash=(0x516+1843-0xc49);while(*s){hash=
+}}}uint hash(const char*s){uint hash=(0x714+4028-0x16d0);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]={
-(0x1497+633-0x1710)};for(config=list->fileList;config;config=config->next){fp=
+(0x219+9004-0x2545)};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[(0x25ac+325-0x26f1)]=='\n'||buf[(0x163c+3559-0x2423)
-]==((char)(0x8f2+4290-0x1991)))continue;val=strchr(buf,
-((char)(0x4a5+1461-0xa1d)));if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0x86a+6224-0x20ba)]=='\n'||buf[(0x7cd+4687-0x1a1c)]
+==((char)(0x1d5+666-0x44c)))continue;val=strchr(buf,((char)(0x234+7091-0x1daa)))
+;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)-(0x1317+4964-0x267a)]==
-'\n')buf[strlen(buf)-(0xcc5+1726-0x1382)]='\0';*val++='\0';nvset(list->nvFile,
-buf,val,(0x18+919-0x3ae));}printf(
+,config->configFile,buf);continue;}if(buf[strlen(buf)-(0x14c0+4063-0x249e)]==
+'\n')buf[strlen(buf)-(0x18a7+1583-0x1ed5)]='\0';*val++='\0';nvset(list->nvFile,
+buf,val,(0x14bc+476-0x1697));}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=(0x7d0+4610-0x19d2);int cnt=(0x1481+3008-0x2041);FILE*fp=NULL
-;char*buf=NULL;struct stat statbuff={(0x637+8261-0x267c)};if(stat(file,&statbuff
-)<(0x1530+1476-0x1af4))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=(0x142a+347-0x1585);while(cnt<len){cnt=
-cnt+fread(buf+cnt,(0x1372+1590-0x19a7),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[(0x1a12+3067-0x160d)];ssize_t nread;int ret=-(0x704+7546-0x247d);
-fd_from=open(from,O_RDONLY);if(fd_from<(0x1a42+2806-0x2538))return-
-(0xc85+6726-0x26c9);fd_to=open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,
-(0xea1+1637-0x1366));if(fd_to<(0x543+7123-0x2116)){ret=-(0x14d1+1307-0x19e9);
-goto out_error;}while((0xb73+6285-0x23ff)){char*out_ptr;ssize_t nwritten;nread=
-read(fd_from,buf,sizeof(buf));if(nread==(0x1054+3199-0x1cd3)){break;}else{if(
-nread<(0x488+6514-0x1dfa)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
-(0xbc6+2467-0x1565);goto out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,
-out_ptr,nread);if(nwritten>(0x1303+2255-0x1bd2)){nread-=nwritten;out_ptr+=
-nwritten;}else{if(nwritten<(0x836+4042-0x1800)){if(errno==EINTR||errno==EAGAIN){
-continue;}else{ret=-(0x1323+1829-0x1a43);goto out_error;}}}}while(nread>
-(0x508+5315-0x19cb));}ret=fsync(fd_to);if(ret<(0x66a+3584-0x146a)){printf(
+char*file){int len=(0x1c51+2081-0x2472);int cnt=(0x1434+3906-0x2376);FILE*fp=
+NULL;char*buf=NULL;struct stat statbuff={(0x9fa+3639-0x1831)};if(stat(file,&
+statbuff)<(0x114d+3978-0x20d7))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=(0xb5b+1427-0x10ee);
+while(cnt<len){cnt=cnt+fread(buf+cnt,(0x37c+7472-0x20ab),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[(0x25a9+2954-0x2133)];ssize_t nread;int ret=-
+(0x12cc+5161-0x26f4);fd_from=open(from,O_RDONLY);if(fd_from<(0x1dc7+2241-0x2688)
+)return-(0x1caa+2593-0x26c9);fd_to=open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,
+(0x1099+4681-0x2142));if(fd_to<(0xc45+3137-0x1886)){ret=-(0xda7+6342-0x266a);
+goto out_error;}while((0x12eb+373-0x145f)){char*out_ptr;ssize_t nwritten;nread=
+read(fd_from,buf,sizeof(buf));if(nread==(0x141+7769-0x1f9a)){break;}else{if(
+nread<(0x2229+59-0x2264)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
+(0x6af+1126-0xb11);goto out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,out_ptr
+,nread);if(nwritten>(0x1f0b+1089-0x234c)){nread-=nwritten;out_ptr+=nwritten;}
+else{if(nwritten<(0xbba+4451-0x1d1d)){if(errno==EINTR||errno==EAGAIN){continue;}
+else{ret=-(0x5d1+4293-0x1691);goto out_error;}}}}while(nread>(0xb0a+1408-0x108a)
+);}ret=fsync(fd_to);if(ret<(0xa4f+5612-0x203b)){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)<(0xc7+3735-0xf5e)){fd_to=-
-(0x858+973-0xc24);ret=-(0xb65+4800-0x1e1f);goto out_error;}close(fd_from);return
-(0x1640+2455-0x1fd7);out_error:printf(
+,strerror(errno),to);goto out_error;}if(close(fd_to)<(0x68c+5647-0x1c9b)){fd_to=
+-(0x1331+2183-0x1bb7);ret=-(0xe7f+3474-0x1c0b);goto out_error;}close(fd_from);
+return(0x17b+2218-0xa25);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>=(0x518+1133-0x985))close(fd_to);return
+,from,to,ret);close(fd_from);if(fd_to>=(0x156c+3240-0x2214))close(fd_to);return
ret;}static int restoreNvFs(char*dstFile,char*srcFile){if(copyfile(srcFile,
-dstFile)!=(0x579+6556-0x1f15))return RESULT_FAIL;return RESULT_SUCCESS;}static
-int loadNvFs(char*file){int len=(0x14b5+3999-0x2454);int cnt=(0x20fc+283-0x2217)
+dstFile)!=(0xb8a+2569-0x1593))return RESULT_FAIL;return RESULT_SUCCESS;}static
+int loadNvFs(char*file){int len=(0x1f27+1055-0x2346);int cnt=(0x9bf+5664-0x1fdf)
;FILE*fp=NULL;char*buf=NULL;char*name=NULL;char*value=NULL;char*eq=NULL;struct
-stat statbuff={(0x60d+1161-0xa96)};char nvFile[NV_PATH_LEN]={(0xd98+2148-0x15fc)
-};sprintf(nvFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file);if(stat(nvFile,&
-statbuff)<(0x522+2567-0xf29))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+
-(0x1f0c+886-0x2281));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
-(0xc4+5569-0x1685),len+(0x7ff+1773-0xeeb));cnt=(0xd8f+3621-0x1bb4);while(cnt<len
-){cnt=cnt+fread(buf+cnt,(0x6db+3690-0x1544),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)(0x3f4+7000-0x1f0f))))){break;}*eq='\0';value=eq+
-(0xce9+1168-0x1178);nvset(file,name,value,(0x4c6+459-0x690));*eq=
-((char)(0x798+5650-0x1d6d));name=value+strlen(value)+(0xf79+1442-0x151a);}free(
+stat statbuff={(0x1a0a+2810-0x2504)};char nvFile[NV_PATH_LEN]={
+(0x383+6530-0x1d05)};sprintf(nvFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file)
+;if(stat(nvFile,&statbuff)<(0x20a0+155-0x213b))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+
+(0x1e59+2170-0x26d2));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
+(0x2277+682-0x2521),len+(0x1541+2966-0x20d6));cnt=(0xeb1+3045-0x1a96);while(cnt<
+len){cnt=cnt+fread(buf+cnt,(0x6b9+4144-0x16e8),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)(0x14a4+187-0x1522))))){break;}*eq='\0';value=
+eq+(0x74f+3569-0x153f);nvset(file,name,value,(0xb6+6092-0x1881));*eq=
+((char)(0x10f+9279-0x2511));name=value+strlen(value)+(0x187+8269-0x21d3);}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
@@ -188,16 +187,16 @@
"\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-(0x95+7806-0x1f12));newConfig->configFile[
-NV_PATH_LEN-(0xd44+1793-0x1444)]='\0';newConfig->next=NULL;}for(list=nv_list;
-list;list=list->next){if(strcmp(list->nvFile,nvFile)==(0x10bd+1149-0x153a))break
-;}if(!list){newList=(T_NV_NODE*)malloc(sizeof(T_NV_NODE));if(!newList){if(
+configFile,configFile,NV_PATH_LEN-(0xccc+5621-0x22c0));newConfig->configFile[
+NV_PATH_LEN-(0x5c4+3783-0x148a)]='\0';newConfig->next=NULL;}for(list=nv_list;
+list;list=list->next){if(strcmp(list->nvFile,nvFile)==(0x1e9+5890-0x18eb))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-(0x1226+4797-0x24e2));newList->nvFile[
-NV_PATH_LEN-(0x843+29-0x85f)]='\0';memset(newList->nvTable,(0xa7+6194-0x18d9),
-NV_HASH_LEN*(0x43d+252-0x535));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;
+newList->nvFile,nvFile,NV_PATH_LEN-(0x446+5992-0x1bad));newList->nvFile[
+NV_PATH_LEN-(0xec+1395-0x65e)]='\0';memset(newList->nvTable,(0x6a9+6666-0x20b3),
+NV_HASH_LEN*(0xc42+3112-0x1866));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->
@@ -205,87 +204,86 @@
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=
-(0x1345+4669-0x2582);char*data=(char*)s;while(len-- >(0x335+5356-0x1821)){sum+=(
+(0x110a+1420-0x1696);char*data=(char*)s;while(len-- >(0x407+6724-0x1e4b)){sum+=(
*data++);}return sum;}static int saveNvFs(char*nvName,char*nvFile){int i=
-(0x139c+4763-0x2637);int sum=(0xa44+284-0xb60);int bufSize=(0x2613+154-0x26ad);
-int itemSize=(0x1334+539-0x154f);int ret=(0x1730+3881-0x2659);int fp=
-(0xfd9+2041-0x17d2);char*buf=NULL;T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;for(
+(0x1332+1560-0x194a);int sum=(0x65b+852-0x9af);int bufSize=(0xfc0+339-0x1113);
+int itemSize=(0x190b+1954-0x20ad);int ret=(0xa98+6423-0x23af);int fp=
+(0x1b87+2442-0x2511);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,(0x370+1350-0x716));if(fp==-
-(0x1ed8+954-0x2291)){printf(
+open(nvFile,O_SYNC|O_RDWR|O_CREAT|O_TRUNC,(0x1312+798-0x1490));if(fp==-
+(0x1059+3153-0x1ca9)){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=(0x15dd+566-0x1813);i<
+(!buf){close(fp);return RESULT_MALLOC_FAIL;}for(i=(0xa22+6029-0x21af);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)+(0x13cd+4461-0x2538);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp
-,buf,bufSize)<(0x909+1894-0x106f)){printf(
+item->value)+(0xbf7+690-0xea7);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp,
+buf,bufSize)<(0x1387+3972-0x230b)){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=(0xaf+2160-0x91f);}sprintf(buf+bufSize,
++=getSum(buf,bufSize);bufSize=(0x1d58+653-0x1fe5);}sprintf(buf+bufSize,
"\x25\x73\x3d\x25\x73",item->key,item->value);bufSize+=itemSize;}}if(bufSize!=
-(0xf4b+3603-0x1d5e)){if(write(fp,buf,bufSize)<(0x129+6211-0x196c)){printf(
+(0x159b+2780-0x2077)){if(write(fp,buf,bufSize)<(0xa1f+6096-0x21ef)){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)<(0xbba+5552-0x216a))
-{printf(
+bufSize);}sum+=NV_FILE_FLAG;if(write(fp,&sum,NV_CHECK_SIZE)<(0x1a42+3106-0x2664)
+){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<(0xe2f+5536-0x23cf)){printf(
+buf);close(fp);if(ret<(0xbb2+1544-0x11ba)){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=
-(0xd67+6010-0x24e1);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;for(list=nv_list;
+(0x1ed4+279-0x1feb);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-(0xb01+3902-0x1a3e));
-value[NV_MAX_VAL_LEN-(0x404+3527-0x11ca)]='\0';return RESULT_SUCCESS;}}return
+key,key))continue;strncpy(value,item->value,NV_MAX_VAL_LEN-(0xf7c+5663-0x259a));
+value[NV_MAX_VAL_LEN-(0xe9f+3428-0x1c02)]='\0';return RESULT_SUCCESS;}}return
RESULT_NO_ITEM;}static int nvset(char*file,const char*key,const char*value,int
-saveFlag){int index=(0xc13+5383-0x211a);int ret=(0xff9+1338-0x1533);int
-key_buf_len=(0x562+8039-0x24c9);int value_buf_len=(0x1bcd+1117-0x202a);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)+(0x482+2890-0xfcb);value_buf_len=
-strlen(value)+(0x5a4+6769-0x2014);for(list=nv_list;list;list=list->next){if(
+saveFlag){int index=(0x46c+5559-0x1a23);int ret=(0x1a1d+2597-0x2442);int
+key_buf_len=(0xed+3112-0xd15);int value_buf_len=(0x2148+230-0x222e);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)+(0x1a1a+1696-0x20b9);value_buf_len=
+strlen(value)+(0x1ce7+1640-0x234e);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-
-(0xaac+4577-0x1c8c));item->value[value_buf_len-(0x839+3254-0x14ee)]='\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(
+(0x906+3734-0x179b));item->value[value_buf_len-(0x1001+1775-0x16ef)]='\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-(0x464+603-0x6be));
-newItem->key[key_buf_len-(0x1768+2920-0x22cf)]='\0';strncpy(newItem->value,value
-,value_buf_len-(0xac2+3133-0x16fe));newItem->value[value_buf_len-
-(0x9b9+1327-0xee7)]='\0';newItem->next=NULL;newItem->saveFlag=saveFlag;newItem->
-update_flag=(0x1d3c+601-0x1f95);if(!list->nvTable[index])list->nvTable[index]=
+RESULT_MALLOC_FAIL;}strncpy(newItem->key,key,key_buf_len-(0x17d2+3083-0x23dc));
+newItem->key[key_buf_len-(0x1117+671-0x13b5)]='\0';strncpy(newItem->value,value,
+value_buf_len-(0x2244+367-0x23b2));newItem->value[value_buf_len-
+(0xd1a+1947-0x14b4)]='\0';newItem->next=NULL;newItem->saveFlag=saveFlag;newItem
+->update_flag=(0xbfa+1519-0x11e9);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=(0xe2a+3910-0x1d70);T_NV_NODE*list=NULL;
+ nvunset(char*file,char*key){int index=(0x1af+2269-0xa8c);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=(0xd1+9135-0x2480);
+RESULT_NO_ITEM;}static int nvreset(char*file){int ret=(0x2060+1279-0x255f);
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=(0x2217+333-0x2364);
-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=
-(0x9ef+4861-0x1cec);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=(0x6a5+1475-0xc68);char nvMainFile[NV_PATH_LEN]={
-(0x678+2490-0x1032)};char nvBackupFile[NV_PATH_LEN]={(0x984+3623-0x17ab)};
-sprintf(nvMainFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file);sprintf(
-nvBackupFile,"\x25\x73\x2f\x25\x73",NV_FS_BACKUP_PATH,file);ret=saveNvFs(file,
-nvMainFile);if(ret!=RESULT_SUCCESS)return ret;return restoreNvFs(nvBackupFile,
-nvMainFile);}
+}return RESULT_NO_FILE;}static int nvclear(char*file){int i=(0x1201+3447-0x1f78)
+;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=
+(0x72f+893-0xaac);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=(0x176a+1080-0x1ba2);char nvMainFile[NV_PATH_LEN]={(0x256+8035-0x21b9)};
+char nvBackupFile[NV_PATH_LEN]={(0x36f+3074-0xf71)};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/nvupdate.c b/ap/app/zte_comm/nvserver/nvupdate.c
index 8d51bd0..1a0399d 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={(0x16c2+2939-0x223d)};
-unsigned int status=(0xaf7+3581-0x18f4);int ret=(0x17b5+859-0x1b10);ret=
+int get_update_status(void){T_FLAGS_INFO flags_info={(0x1cca+2585-0x26e3)};
+unsigned int status=(0x1c24+2541-0x2611);int ret=(0xe98+3151-0x1ae7);ret=
flags_get(&flags_info);status=flags_info.boot_fota_flag.fota_status;if(status==
-(0x41b+6325-0x1ccf))return(0x17b1+3919-0x26fe);else return(0x1bb0+2232-0x2468);}
+(0x48c+2936-0x1003))return(0x1168+3705-0x1fdf);else return(0xb69+401-0xcfa);}
#else
-int get_update_status(void){int update_status;FILE*fd=(0x1045+3306-0x1d2f);int
+int get_update_status(void){int update_status;FILE*fd=(0x13cf+4189-0x242c);int
ret;char*filename=NULL;if(access(FOTA_UPDATE_STATUS_FILE_OLD,R_OK)==
-(0x20a3+1251-0x2586)){filename=FOTA_UPDATE_STATUS_FILE_OLD;}else{filename=
+(0x112c+1492-0x1700)){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<(0x3cc+6429-0x1ce9)){printf(
+(ret<(0x1d1+7241-0x1e1a)){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-(0x6b1+2172-0xf2c);
-}
+update_status);fclose(fd);return update_status;error0:return-
+(0x1bc0+1709-0x226c);}
#endif
int nvupdate(char*nv_file,char*config_file,const char*key,const char*value,int
-saveFlag){int index=(0xa68+1703-0x110f);int key_buf_len=(0x204+777-0x50d);int
-value_buf_len=(0xc7+2396-0xa23);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;
+saveFlag){int index=(0x98+2303-0x997);int key_buf_len=(0x174a+2664-0x21b2);int
+value_buf_len=(0x28a+3592-0x1092);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)+(0x59d+8203-0x25a7);value_buf_len=
-strlen(value)+(0x7a6+1752-0xe7d);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(
+,nv_file,key,value);key_buf_len=strlen(key)+(0xed9+2226-0x178a);value_buf_len=
+strlen(value)+(0x84+3837-0xf80);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=(0x645+7069-0x21e1);printf(
+update_flag=(0x677+1197-0xb23);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((0x725+2101-0xf59)==item->update_flag){
+config_file,"\x75\x73\x65\x72")){if((0x4ed+3709-0x1369)==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=
-(0x1db+3244-0xe86);printf(
+(0x1fa1+1702-0x2646);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-(0x1c92+957-0x204e));item->value[value_buf_len-
-(0x1631+889-0x19a9)]='\0';item->update_flag=(0x1aa8+1411-0x202a);return
+value,value_buf_len-(0xbf0+2421-0x1564));item->value[value_buf_len-
+(0x16f4+1898-0x1e5d)]='\0';item->update_flag=(0x1128+4897-0x2448);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)+
-(0x1d55+1863-0x249b));if(!newItem->key){free(newItem);printf(
+(0x1689+2517-0x205d));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-
-(0x660+969-0xa28));newItem->key[key_buf_len-(0x8a1+4762-0x1b3a)]='\0';strncpy(
-newItem->value,value,value_buf_len-(0x1814+694-0x1ac9));newItem->value[
-value_buf_len-(0xf82+1089-0x13c2)]='\0';newItem->next=NULL;newItem->saveFlag=
-saveFlag;newItem->update_flag=(0x13d7+2400-0x1d36);printf(
+(0x13d6+3760-0x2285));newItem->key[key_buf_len-(0xe03+4148-0x1e36)]='\0';strncpy
+(newItem->value,value,value_buf_len-(0x966+4530-0x1b17));newItem->value[
+value_buf_len-(0x2284+310-0x23b9)]='\0';newItem->next=NULL;newItem->saveFlag=
+saveFlag;newItem->update_flag=(0xf48+423-0x10ee);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]={(0x364+5569-0x1925)};printf(
+NV_MAX_ITEM_LEN]={(0x71c+701-0x9d9)};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[(0x1eb3+1110-0x2309)]=='\n'||buf[
-(0x1055+4252-0x20f1)]==((char)(0x67+9795-0x2687)))continue;val=strchr(buf,
-((char)(0x38f+5711-0x19a1)));if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0x14b+5434-0x1685)]=='\n'||buf[(0x1b22+1496-0x20fa)
+]==((char)(0x2e9+6018-0x1a48)))continue;val=strchr(buf,
+((char)(0x18c7+930-0x1c2c)));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)-(0x42b+925-0x7c7)]='\0';*val
-++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0x526+6646-0x1f1b));}
-printf(
+,config->configFile,buf);continue;}buf[strlen(buf)-(0x145b+4445-0x25b7)]='\0';*
+val++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0x534+5683-0x1b66))
+;}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,11 +108,11 @@
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=(0x240+470-0x416);T_NV_ITEM*item=NULL;T_NV_ITEM head={
-(0xc7b+3002-0x1835)};T_NV_ITEM*prev=&head;printf(
+list){int index=(0x1b40+391-0x1cc7);T_NV_ITEM*item=NULL;T_NV_ITEM head={
+(0x10ca+3240-0x1d72)};T_NV_ITEM*prev=&head;printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x65\x6c\x65\x74\x65\x5f\x6e\x6f\x74\x5f\x6e\x65\x65\x64\x65\x64\x20\x65\x6e\x74\x65\x72\x20\x2a\x2a\x2a" "\n"
-);for(index=(0x1d1c+733-0x1ff9);index<NV_HASH_LEN;index++){head.next=list->
-nvTable[index];prev=&head;for(item=prev->next;item;){if((0x1d2+6318-0x1a7f)==
+);for(index=(0x1de9+1126-0x224f);index<NV_HASH_LEN;index++){head.next=list->
+nvTable[index];prev=&head;for(item=prev->next;item;){if((0xe14+6253-0x2680)==
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);
diff --git a/ap/app/zte_comm/phonebook/src/pb_db.c b/ap/app/zte_comm/phonebook/src/pb_db.c
index 5036986..2440a95 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]={(0xd0d+6040-0x24a5)};UINT32 count=(0x414+1024-0x814);result=
+ZPB_MAX_BYTES_DB]={(0x188+3822-0x1076)};UINT32 count=(0x2290+817-0x25c1);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,(0xaa4+2369-0x13e5),sizeof(sql));snprintf(sql
-,sizeof(sql)-(0x1cf1+92-0x1d4c),
+,result);return result;}memset(sql,(0x840+6967-0x2377),sizeof(sql));snprintf(sql
+,sizeof(sql)-(0x784+3754-0x162d),
"\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((0x2d8+2524-0xcb4)<count){memset(sql,(0x62+497-0x253),sizeof(sql));
-snprintf(sql,sizeof(sql)-(0x75f+447-0x91d),
+count);if((0x653+4072-0x163b)<count){memset(sql,(0x2a2+792-0x5ba),sizeof(sql));
+snprintf(sql,sizeof(sql)-(0xb86+6046-0x2323),
"\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]={(0x14a7+1020-0x18a3)};result=
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1c09+1858-0x234b)};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 (0x1f9f+1229-0x246c)
+#if (0xcc0+830-0xffe)
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)==(0x24e4+425-0x268d)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZPB_TMP_PATH,F_OK)==(0x1adc+1791-0x21db)){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)!=(0x90f+6437-0x2234)){slog(PB_PRINT,SLOG_ERR,
+remove(ZPB_TMP_PATH)!=(0x80a+7402-0x24f4)){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)!=(0x243d+169-0x24e6)){slog(PB_PRINT,
+);}}if(rename(ZPB_SEC_PATH,ZPB_TMP_PATH)!=(0x4e6+7791-0x2355)){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[(0x521+8691-0x26fc)]={(0x4b7+8574-0x2635)};char cmd[
-(0x111f+2572-0x1aab)]={(0xa31+2614-0x1467)};sc_cfg_get(
+);}{char rnum_buf[(0x57a+7607-0x2319)]={(0x1390+1024-0x1790)};char cmd[
+(0x7f8+3055-0x1367)]={(0xe3a+4293-0x1eff)};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
-)==(0x589+7902-0x2467)){if(remove(ZPB_TMP_PATH)!=(0x8c1+599-0xb18)){slog(
-PB_PRINT,SLOG_ERR,
+)==(0xfb6+3635-0x1de9)){if(remove(ZPB_TMP_PATH)!=(0xf45+87-0xf9c)){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(0xfa+4265-0x11a3);}return
-(0x3c8+6880-0x1ea7);}return(0xf50+299-0x107b);}T_zPb_DbResult atPb_ExecDbSql(
+(pSql,"\x3b")||strstr(pSql,"\x2d\x2d")){return(0x34f+527-0x55e);}return
+(0x611+6138-0x1e0a);}return(0x269+2985-0xe12);}T_zPb_DbResult atPb_ExecDbSql(
const char*pSql,sqlite3_callback callback,VOID*pFvarg){sqlite3*pDb=NULL;CHAR
-dbErrMsg[(0x2e0+5386-0x176a)]={(0x455+7814-0x22db)};if(NULL==pSql){return
+dbErrMsg[(0x17d+4724-0x1371)]={(0xe6+9397-0x259b)};if(NULL==pSql){return
ZPB_DB_ERROR_INVALIDPTR;}
#ifdef WEBS_SECURITY
-if(check_sql_cmd(pSql)==(0xcf5+6098-0x24c7)){slog(PB_PRINT,SLOG_ERR,
+if(check_sql_cmd(pSql)==(0x17bd+2862-0x22eb)){slog(PB_PRINT,SLOG_ERR,
"\x21\x21\x61\x74\x50\x62\x5f\x45\x78\x65\x63\x44\x62\x53\x71\x6c\x3a\x78\x73\x73\x20\x25\x73" "\n"
,pSql);return ZPB_DB_ERROR_INVALIDPTR;}
#endif
@@ -102,33 +102,33 @@
);return ZPB_DB_ERROR_NOTOPENDB;}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x45\x78\x65\x63\x44\x62\x53\x71\x6c\x3a\x25\x73" "\n"
,pSql);if(sqlite3_exec(pDb,pSql,callback,pFvarg,NULL)){strncpy(dbErrMsg,
-sqlite3_errmsg(pDb),sizeof(dbErrMsg)-(0x9fb+2546-0x13ec));slog(PB_PRINT,SLOG_ERR
+sqlite3_errmsg(pDb),sizeof(dbErrMsg)-(0x60f+3489-0x13af));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=(0x24f+4733-0x14cc);if((0x198d+2796-0x2478)>line){slog
-(PB_PRINT,SLOG_ERR,
+char**lname){SINT32 index=(0x241c+517-0x2621);if((0x5a7+1484-0xb72)>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-(0x74c+1206-0xc01);}index=atoi(zresult[(0x196a+1931-0x20f5)]);if(index>
+);return-(0x3a8+1242-0x881);}index=atoi(zresult[(0x3bc+5646-0x19ca)]);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-(0x370+1501-0x94c);}slog(PB_PRINT,SLOG_DEBUG,
+);return-(0x462+4437-0x15b6);}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(0xc15+2005-0x13ea);}
-T_zPb_DbResult atPb_InitApIndex(){CHAR sql[ZPB_MAX_BYTES_DB]={(0xf9a+357-0x10ff)
-};SINT32 i=(0xb68+4279-0x1c1e);g_zPb_ApIndex[(0x1aca+731-0x1da5)]=
-ZPB_AP_MAX_RECORD;for(i=(0x8ad+1169-0xd3d);i<=g_zPb_ApIndex[(0x2159+274-0x226b)]
-;i++){g_zPb_ApIndex[i]=PBM_ERROR_NOT_FOUND;}snprintf(sql,sizeof(sql),
+,index);g_zPb_ApIndex[index]=PBM_SUCCESS;return(0x30a+5197-0x1757);}
+T_zPb_DbResult atPb_InitApIndex(){CHAR sql[ZPB_MAX_BYTES_DB]={(0x103+62-0x141)};
+SINT32 i=(0xe5+6077-0x18a1);g_zPb_ApIndex[(0x147b+245-0x1570)]=ZPB_AP_MAX_RECORD
+;for(i=(0xae7+2143-0x1345);i<=g_zPb_ApIndex[(0x8b8+93-0x915)];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(-(0x1818+1933-0x1fa4)
-==access(path,(0x1444+2043-0x1c3f))){slog(PB_PRINT,SLOG_DEBUG,
+ZUFI_NULL);}INT zte_pbm_check_and_creat_dir(char*path){if(-(0x20d6+985-0x24ae)==
+access(path,(0xaf5+6423-0x240c))){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(-(0xe06+6366-0x26e3)==mkdir(path,(0xfaf+1810-0x14c2))){slog(
+,ZPB_DB_DIR);if(-(0x9e9+7176-0x25f0)==mkdir(path,(0x349+606-0x3a8))){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-(0x22d+2065-0xa3d);}}return(0x7f7+1454-0xda5);}UINT8
+);return-(0x47b+45-0x4a7);}}return(0x1dec+1924-0x2570);}UINT8
zte_pbm_check_web_pbm_dir(VOID){
#ifdef _MBB_OS_UCLINUX
(VOID)zte_pbm_check_and_creat_dir(
@@ -142,23 +142,23 @@
"\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]={(0xa80+1656-0x10f8)}
-;snprintf(sql,sizeof(sql),
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1305+4862-0x2603)
+};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]={(0x1668+626-0x18da)};if(NULL==
+result=ZPB_DB_ERROR;CHAR sql[ZPB_MAX_BYTES_DB]={(0xf0c+5205-0x2361)};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[(0x13cd+1199-0x184a)]={(0x203f+1012-0x2433)};sc_cfg_get(
-ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0x2149+48-0x2178)
-)&&(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(
+pbMax[(0x8a9+6397-0x2174)]={(0x673+1980-0xe2f)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,
+pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0x168b+3811-0x256d))&&(pbPara->
+pbIndex<=atoi(pbMax))){g_zPb_SimIndex[pbPara->pbIndex]=PBM_SUCCESS;}(VOID)
+sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}else{(VOID)sc_cfg_set(
ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x70\x62\x6d\x3a\x65\x78\x65\x63\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x72\x65\x73\x75\x6c\x74\x20\x25\x64" "\n"
,ZPB_DB_PBM_TABLE,result);return result;}VOID atPb_SqlModifyOneRec(
@@ -173,17 +173,17 @@
pbmPara->pbType,pbmPara->name,pbmPara->homeNumber,pbmPara->officeNumber,pbmPara
->email,pbmPara->sne,pbmPara->group,pbmPara->pbId);}}T_zPb_DbResult
atPb_DbGetParamCb(VOID*fvarg,int line,char**zresult,char**lname){T_zPb_Header
-para={(0x4bf+2730-0xf69)};if((0xd9a+2906-0x18f3)>line){slog(PB_PRINT,SLOG_ERR,
+para={(0x3d+9636-0x25e1)};if((0x1a47+1656-0x20be)>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[(0x19bd+1910-0x2133)]);para.
-pbLocation=atoi(zresult[(0x7d2+5847-0x1ea8)]);slog(PB_PRINT,SLOG_DEBUG,
+);return ZPB_DB_ERROR;}para.pbIndex=atoi(zresult[(0x316+8823-0x258d)]);para.
+pbLocation=atoi(zresult[(0xa2a+542-0xc47)]);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]={(0x1d53+1821-0x2470)};snprintf(sql,sizeof(sql)-
-(0x1b43+278-0x1c58),
+ZPB_MAX_BYTES_DB]={(0xab5+5438-0x1ff3)};snprintf(sql,sizeof(sql)-
+(0xe45+2005-0x1619),
"\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,(0xb7a+119-0xbf1),sizeof(
+,ZPB_DB_PBM_TABLE,pbPara->pbId);memset(pbPara,(0xea7+3933-0x1e04),sizeof(
T_zPb_Header));return atPb_ExecDbSql(sql,atPb_DbGetParamCb,pbPara);}VOID
atPb_SqlNewOneRec(T_zPb_WebContact*pbmPara,CHAR*sql,int len){if(
ZPB_LOCATION_USIM==pbmPara->pbLocation){snprintf(sql,len,"insert into %s (Pbm_index,Location,Number,Type,Name,Anr,Anr1,Email,Sne)\
@@ -195,7 +195,7 @@
pbmPara->pbType,pbmPara->name,pbmPara->homeNumber,pbmPara->officeNumber,pbmPara
->email,pbmPara->sne,pbmPara->group);}}T_zPb_DbResult
atPb_WriteContactToPbmTable(T_zPb_WebContact*pPbRecord,BOOL pbNewFlag){
-T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x305+647-0x58c)};
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x7eb+1392-0xd5b)};
if(NULL==pPbRecord){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x57\x72\x69\x74\x65\x43\x6f\x6e\x74\x61\x63\x74\x54\x6f\x50\x62\x6d\x54\x61\x62\x6c\x65\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74"
);return ZPB_DB_ERROR_INVALIDPTR;}slog(PB_PRINT,SLOG_DEBUG,
@@ -206,75 +206,75 @@
ZPB_LOCATION_USIM==pPbRecord->pbLocation){g_zPb_SimIndex[(pPbRecord->pbIndex)]=
PBM_SUCCESS;}else if(ZPB_LOCATION_AP==pPbRecord->pbLocation){g_zPb_ApIndex[(
pPbRecord->pbIndex)]=PBM_SUCCESS;}}return result;}SINT32 atPb_DbCountTableLineCb
-(VOID*fvarg,int line,char**zresult,char**lname){if((0xd5d+5405-0x2279)>line){
+(VOID*fvarg,int line,char**zresult,char**lname){if((0x435+4469-0x15a9)>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-(0xac2+6643-0x24b4);}*(int*)fvarg=atoi(zresult[(0x9ad+4138-0x19d7)]);
-return(0x13e3+214-0x14b9);}T_zPb_DbResult atPb_SetSimCapacityTable(
+);return-(0x282+9188-0x2665);}*(int*)fvarg=atoi(zresult[(0x779+4431-0x18c8)]);
+return(0xc4d+2269-0x152a);}T_zPb_DbResult atPb_SetSimCapacityTable(
T_zPb_UsimCapacity pbPara){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[
-ZPB_MAX_BYTES_DB]={(0x1c96+1517-0x2283)};UINT32 count=(0x346+6823-0x1ded);
-snprintf(sql,sizeof(sql)-(0x1bff+831-0x1f3d),
+ZPB_MAX_BYTES_DB]={(0x1017+627-0x128a)};UINT32 count=(0x173a+2473-0x20e3);
+snprintf(sql,sizeof(sql)-(0x7fc+5373-0x1cf8),
"\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((0xdd0+1195-0x127b)<count){memset(sql,(0x72a+5332-0x1bfe),sizeof(sql))
-;snprintf(sql,sizeof(sql)-(0x7a0+4044-0x176b),
+count);if((0x1d+7288-0x1c95)<count){memset(sql,(0xcd9+4759-0x1f70),sizeof(sql));
+snprintf(sql,sizeof(sql)-(0xbd4+2599-0x15fa),
"\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,(0x10ec+475-0x12c7),sizeof(sql));snprintf(sql,
-sizeof(sql)-(0xd71+3866-0x1c8a),"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,(0xc6c+5368-0x2164),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0x169+8016-0x20b8),"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]={(0x898+4353-0x1999)
-};SINT32 count=(0xfd0+4773-0x2275);T_zPb_ApCapacity pbPara={(0x696+1334-0xbcc)};
-snprintf(sql,sizeof(sql)-(0x882+6162-0x2093),
+{T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x9ef+2690-0x1471)
+};SINT32 count=(0x1e32+1088-0x2272);T_zPb_ApCapacity pbPara={
+(0x142c+3676-0x2288)};snprintf(sql,sizeof(sql)-(0x1cf3+1473-0x22b3),
"\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((0x2f6+794-0x610)<count){memset(sql,
-(0xdc2+3563-0x1bad),sizeof(sql));snprintf(sql,sizeof(sql)-(0x1520+1534-0x1b1d),
+atPb_DbCountTableLineCb,&count);if((0x434+7655-0x221b)<count){memset(sql,
+(0x83a+2624-0x127a),sizeof(sql));snprintf(sql,sizeof(sql)-(0xbb2+3882-0x1adb),
"\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,(0x17a+1318-0x6a0),sizeof(sql));snprintf(sql,sizeof
-(sql)-(0x12c+8107-0x20d6),
+);return result;}}memset(sql,(0x106a+4161-0x20ab),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0x8e9+766-0xbe6),
"\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,(0x149b+3139-0x20de),
-sizeof(sql));snprintf(sql,sizeof(sql)-(0x1050+3319-0x1d46),
+,pbPara.maxRecordNum,pbPara.usedRecordNum);memset(sql,(0xf9a+5845-0x266f),sizeof
+(sql));snprintf(sql,sizeof(sql)-(0x66b+7034-0x21e4),
"\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=
-(0x50c+4257-0x15ad);if((0x866+7604-0x2619)>line){return ZPB_DB_ERROR;}pbIndex=(
+(0x1414+21-0x1429);if((0x180d+3653-0x2651)>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+(0xcb1+3293-0x198d)]=atoi(zresult[(0xd40+574-0xf7e)]);
+,i);pbIndex->apIndex[i+(0x188b+740-0x1b6e)]=atoi(zresult[(0x102c+5828-0x26f0)]);
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+(0x228+5523-0x17ba)]);pbIndex->count=i+(0x14fa+1574-0x1b1f);
+,pbIndex->apIndex[i+(0x74b+4196-0x17ae)]);pbIndex->count=i+(0xfb8+2041-0x17b0);
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]
-={(0x5e8+163-0x68b)};SINT32 countByGroup=(0x425+3347-0x1138);CHAR pbGroup[
-ZPB_PARAM_SIZE20]={(0x285+8152-0x225d)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
-pbGroup));snprintf(sql,sizeof(sql)-(0xdf4+1097-0x123c),
+={(0x47f+6379-0x1d6a)};SINT32 countByGroup=(0xfeb+3071-0x1bea);CHAR pbGroup[
+ZPB_PARAM_SIZE20]={(0x2c0+6238-0x1b1e)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
+pbGroup));snprintf(sql,sizeof(sql)-(0x139b+2995-0x1f4d),
"\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,(0x617+5022-0x19b5),sizeof(sql
-));snprintf(sql,sizeof(sql)-(0x1262+1290-0x176b),
+atPb_DbCountTableLineCb,&countByGroup);memset(sql,(0xd69+1812-0x147d),sizeof(sql
+));snprintf(sql,sizeof(sql)-(0x25f+1882-0x9b8),
"\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,
-(0x11a9+4483-0x232c),sizeof(sql));snprintf(sql,sizeof(sql)-(0xfba+4395-0x20e4),
+(0x13c4+573-0x1601),sizeof(sql));snprintf(sql,sizeof(sql)-(0x1532+3436-0x229d),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x20\x61\x6e\x64\x20\x28\x50\x62\x6d\x5f\x67\x72\x6f\x75\x70\x3d" "\"" "\x25\x73" "\"" "\x29"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_AP,pbGroup);if(ZPB_DB_OK==atPb_ExecDbSql(sql,NULL
,NULL)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}slog(PB_PRINT,
@@ -282,7 +282,7 @@
"\x70\x62\x3a\x70\x62\x6d\x3a\x65\x78\x65\x63\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x72\x65\x73\x75\x6c\x74\x20\x25\x64" "\n"
,ZPB_DB_PBM_TABLE,result);}else{return ZPB_DB_ERROR;}(VOID)sc_cfg_set(
ZPB_NV_GROUP,"");return result;}VOID atPb_GetLocationIndexForDel(T_zPb_DelInfo*
-recData,SINT32 delTime){T_zPb_Header pbHeader={(0x14fb+3249-0x21ac)};if(NULL==
+recData,SINT32 delTime){T_zPb_Header pbHeader={(0x2015+164-0x20b9)};if(NULL==
recData){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x47\x65\x74\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x49\x6e\x64\x65\x78\x46\x6f\x72\x44\x65\x6c\x2d\x2d\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74" "\n"
);return;}pbHeader.pbId=recData->delId[delTime];if(ZPB_DB_OK!=
@@ -293,30 +293,30 @@
"\x70\x62\x3a\x70\x62\x6d\x3a\x64\x65\x6c\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x2c\x64\x65\x6c\x5f\x70\x62\x6d\x5f\x74\x69\x6d\x65\x3d\x25\x64"
,recData->delIndex[delTime],recData->delLocation,delTime);}T_zPb_DbResult
atPb_DelARecFromPbmTable(T_zPb_DelInfo*pbPara,SINT32 delTime){T_zPb_DbResult
-result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1d73+2119-0x25ba)};if(NULL==
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x19b1+2413-0x231e)};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)-(0xdad+4548-0x1f70),
+,delTime,pbPara->delId[delTime]);snprintf(sql,sizeof(sql)-(0xe5c+136-0xee3),
"\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=(0x20ac+1266-0x259d);for(i=(0xb76+656-0xe05);(i<=g_zPb_SimIndex[
-(0x821+540-0xa3d)])&&(i<(ZPB_SIM_MAX_RECORD+(0x48d+2467-0xe2f)));i++){
+SINT32 i=(0x1710+1481-0x1cd8);for(i=(0x10a2+3317-0x1d96);(i<=g_zPb_SimIndex[
+(0x171+7142-0x1d57)])&&(i<(ZPB_SIM_MAX_RECORD+(0x1aa4+1208-0x1f5b)));i++){
g_zPb_SimIndex[i]=PBM_ERROR_NOT_FOUND;}}VOID atPb_ClearApPbmIndexArray(VOID){
-SINT32 i=(0x959+6636-0x2344);for(i=(0xb6d+6043-0x2307);(i<=g_zPb_ApIndex[
-(0x1003+5555-0x25b6)])&&(i<(ZPB_AP_MAX_RECORD+(0x256+5227-0x16c0)));i++){
+SINT32 i=(0x735+836-0xa78);for(i=(0x1309+2127-0x1b57);(i<=g_zPb_ApIndex[
+(0xfc+6947-0x1c1f)])&&(i<(ZPB_AP_MAX_RECORD+(0x38b+5527-0x1921)));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]={(0xed4+1942-0x166a)};if(NULL==pbPara){slog
+ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x2119+523-0x2324)};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)-(0x1435+3661-0x2281),
+);return ZPB_DB_ERROR_INVALIDPTR;}snprintf(sql,sizeof(sql)-(0x6b9+2693-0x113d),
"\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 6275112..7f03930 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={(0x10c+4510-0x12aa)};sem_t g_Pb_sem_id={
-(0x685+7146-0x226f)};int g_zPb_MsqId=-(0x329+4562-0x14fa);int g_zPb_LocalMsqId=-
-(0xd75+1789-0x1471);VOID atWeb_AddOneContact(UINT8*pDatabuf){T_zPb_WebContact*
+pDatabuf);T_zPb_optRsp g_PbOptRsp={(0x184d+3191-0x24c4)};sem_t g_Pb_sem_id={
+(0x7c8+2917-0x132d)};int g_zPb_MsqId=-(0x37+5239-0x14ad);int g_zPb_LocalMsqId=-
+(0x54a+5738-0x1bb3);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,20 +35,20 @@
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(((0x22d6+253-0x23d2)==ptPara->result)&&(
-(0x3f+5965-0x178b)==ptPara->opertype)){CHAR needPb[(0x1ca7+1801-0x237e)]={
-(0x310+7977-0x2239)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
-(0x1d12+794-0x202c)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
-MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0x1b9+2525-0xb96),NULL,(0x1369+1603-0x19ac)
+,ptPara->result,ptPara->opertype);if(((0xd6b+113-0xddb)==ptPara->result)&&(
+(0x747+2530-0x1128)==ptPara->opertype)){CHAR needPb[(0xef2+3313-0x1bb1)]={
+(0x711+3160-0x1369)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
+(0x10b3+1517-0x16a0)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
+MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0x754+7748-0x2598),NULL,(0x6aa+8072-0x2632)
);}}}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==(0x1596+3755-0x2441)){
-CHAR needPb[(0x88d+1982-0x1019)]={(0x4d+2955-0xbd8)};sc_cfg_get(
-NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x87a+4396-0x19a6)!=strcmp(needPb,
+,ptPara->slot,ptPara->slot_state);if(ptPara->slot_state==(0x1137+4483-0x22ba)){
+CHAR needPb[(0x1d5c+689-0x1fdb)]={(0xdc9+3921-0x1d1a)};sc_cfg_get(
+NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x65a+5408-0x1b7a)!=strcmp(needPb,
"\x6e\x6f")){atPb_CfgPbNvInit();atPb_DelAllRecsSimDb();}}}VOID zPb_RecvPbInitRst
-(UINT8*pDatabuf){int pbReadRet=-(0x785+978-0xb56);memcpy(&g_PbOptRsp,pDatabuf,
-sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-(0x9c8+2458-0x1361)){atPb_IintPbErr
+(UINT8*pDatabuf){int pbReadRet=-(0x1e6+6070-0x199b);memcpy(&g_PbOptRsp,pDatabuf,
+sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-(0xf32+2015-0x1710)){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(
@@ -64,17 +64,18 @@
,ptMsgBuf->usMsgCmd);switch(ptMsgBuf->usMsgCmd){case MSG_CMD_WRITE_PB:case
MSG_CMD_DEL_A_PB:case MSG_CMD_DEL_MUTI_PB:case MSG_CMD_DEL_ALL_PB:
ipc_send_message(MODULE_ID_PB,MODULE_ID_PB_LOCAL,ptMsgBuf->usMsgCmd,ptMsgBuf->
-usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,(0x53+3001-0xc0c));break;default:
-break;}}UINT8 zPbMsgCreat(VOID){g_zPb_MsqId=msgget(MODULE_ID_PB,IPC_CREAT|
-(0x6a8+8672-0x2708));if(g_zPb_MsqId==-(0x921+6168-0x2138)){return ZUFI_FAIL;}
-g_zPb_LocalMsqId=msgget(MODULE_ID_PB_LOCAL,IPC_CREAT|(0x1a17+3694-0x2705));if(
-g_zPb_LocalMsqId==-(0xaa+8660-0x227d)){return ZUFI_FAIL;}sem_init(&g_Pb_sem_id,
-(0x54+372-0x1c8),(0x5dd+3321-0x12d6));return ZUFI_SUCC;}void detect_modem_state(
-void){CHAR state[(0x83+7213-0x1c7e)]={(0x260+2167-0xad7)};sc_cfg_get(
+usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,(0x617+8398-0x26e5));break;
+default:break;}}UINT8 zPbMsgCreat(VOID){g_zPb_MsqId=msgget(MODULE_ID_PB,
+IPC_CREAT|(0x471+729-0x5ca));if(g_zPb_MsqId==-(0x1bf8+16-0x1c07)){return
+ZUFI_FAIL;}g_zPb_LocalMsqId=msgget(MODULE_ID_PB_LOCAL,IPC_CREAT|
+(0xafb+4928-0x1cbb));if(g_zPb_LocalMsqId==-(0x1165+3884-0x2090)){return
+ZUFI_FAIL;}sem_init(&g_Pb_sem_id,(0x8f8+5709-0x1f45),(0x691+2740-0x1145));return
+ ZUFI_SUCC;}void detect_modem_state(void){CHAR state[(0x1470+1196-0x18ea)]={
+(0x9b5+5480-0x1f1d)};sc_cfg_get(
"\x6d\x6f\x64\x65\x6d\x5f\x6d\x61\x69\x6e\x5f\x73\x74\x61\x74\x65",state,sizeof(
-state));if((0xa17+1927-0x119e)==strcmp(state,
+state));if((0x7bd+4597-0x19b2)==strcmp(state,
"\x6d\x6f\x64\x65\x6d\x5f\x73\x69\x6d\x5f\x75\x6e\x64\x65\x74\x65\x63\x74\x65\x64"
-)||(0x4a7+279-0x5be)==strcmp(state,
+)||(0x361+1872-0xab1)==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(
@@ -93,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,
-(0xe2a+4097-0x1e2b));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR
-clearPb[(0xbb+5032-0x1431)]={(0x1d80+1621-0x23d5)};sc_cfg_get(
+(0x1321+418-0x14c3));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR
+clearPb[(0x1b37+1446-0x20ab)]={(0x1017+622-0x1285)};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")==(0x2d+2333-0x94a)){atPb_DropDb();}
-ipc_send_message(MODULE_ID_PB,MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,
-(0xd8+6652-0x1ad4),NULL,(0x4b8+3571-0x12ab));}void zPbHandleMainCtrlMsg(MSG_BUF*
+,clearPb);if(strcmp(clearPb,"\x79\x65\x73")==(0x1fc6+1458-0x2578)){atPb_DropDb()
+;}ipc_send_message(MODULE_ID_PB,MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,
+(0x153d+93-0x159a),NULL,(0xaf6+3619-0x1919));}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=(0x534+4338-0x1626);MSG_BUF stMsg={
-(0x3dc+1582-0xa0a)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
+pb_msg_thread_proc(void*arg){int iRet=(0x792+6246-0x1ff8);MSG_BUF stMsg={
+(0x1187+5028-0x252b)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
int*)arg);prctl(PR_SET_NAME,"\x70\x62\x5f\x6c\x6f\x63\x61\x6c",
-(0xd94+2038-0x158a),(0x539+4159-0x1578),(0x1a9+6088-0x1971));while(
-(0x1753+3712-0x25d2)){iRet=(0xce9+412-0xe85);memset(&stMsg,(0xc54+5575-0x221b),
-sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x1090+2476-0x1a3c),
-(0x4e8+2286-0xdd6));printf(
+(0x1466+3002-0x2020),(0x6f8+1213-0xbb5),(0x14df+4512-0x267f));while(
+(0x1a30+1019-0x1e2a)){iRet=(0x1023+4684-0x226f);memset(&stMsg,
+(0x890+7066-0x242a),sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,
+(0x14c+7464-0x1e74),(0xfdd+2653-0x1a3a));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>=(0x1f2+8194-0x21f4)){
+,stMsg.src_id,stMsg.usMsgCmd,MODULE_ID_AT_CTL);if(iRet>=(0x4eb+8637-0x26a8)){
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
@@ -122,28 +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=(0x95+9846-0x270b);MSG_BUF msgBuf={(0x149a+774-0x17a0)};CHAR
-needPb[(0xaf+9310-0x24db)]={(0x18dd+842-0x1c27)};prctl(PR_SET_NAME,
-"\x70\x62\x5f\x6d\x61\x69\x6e",(0xddf+1288-0x12e7),(0xc5f+750-0xf4d),
-(0x20af+358-0x2215));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof
-(needPb));if((0x443+678-0x6e9)!=strcmp(needPb,"\x6e\x6f")){
+recv_thread_tid=(0x1dad+345-0x1f06);MSG_BUF msgBuf={(0x11f6+1501-0x17d3)};CHAR
+needPb[(0x1ca8+1762-0x2358)]={(0x31+4044-0xffd)};prctl(PR_SET_NAME,
+"\x70\x62\x5f\x6d\x61\x69\x6e",(0x18eb+2588-0x2307),(0x1025+2224-0x18d5),
+(0x966+4338-0x1a58));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof
+(needPb));if((0x1421+1998-0x1bef)!=strcmp(needPb,"\x6e\x6f")){
#ifdef WEBS_SECURITY
-if(access(ZPB_DB_PATH,F_OK)!=(0x18b9+1698-0x1f5b)){if(access(ZPB_TMP_PATH,F_OK)
-==(0x2051+556-0x227d)){if(remove(ZPB_SEC_PATH)!=(0x1126+4451-0x2289)){slog(
+if(access(ZPB_DB_PATH,F_OK)!=(0x719+6338-0x1fdb)){if(access(ZPB_TMP_PATH,F_OK)==
+(0x1ead+732-0x2189)){if(remove(ZPB_SEC_PATH)!=(0x146a+1759-0x1b49)){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)!=(0x1332+4953-0x268b)){slog(PB_PRINT,
+);}if(rename(ZPB_TMP_PATH,ZPB_SEC_PATH)!=(0xdd1+1630-0x142f)){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)==(0x187b+2114-0x20bd)){char rnum_buf[
-(0x99a+2508-0x134e)]={(0x368+5899-0x1a73)};char cmd[(0xe42+5374-0x22c0)]={
-(0x13d1+1061-0x17f6)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZPB_SEC_PATH,F_OK)==(0x112a+4885-0x243f)){char rnum_buf[
+(0x12ba+4695-0x24f9)]={(0x12c1+1914-0x1a3b)};char cmd[(0x16fd+3382-0x23b3)]={
+(0x381+5758-0x19ff)};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-(0xa8+6256-0x1917);}printf(
+zPbMsgCreat();atPb_Init();}else{return-(0x10cb+3754-0x1f74);}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))==-(0xcf5+2652-0x1750)){assert((0x1da0+657-0x2031));}
-detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x266+2859-0xd91);}
+(&g_zPb_LocalMsqId))==-(0x22f0+293-0x2414)){assert((0x339+2359-0xc70));}
+detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x14b7+2758-0x1f7d)
+;}
diff --git a/ap/app/zte_comm/phonebook/src/pb_proc.c b/ap/app/zte_comm/phonebook/src/pb_proc.c
index 02a0dd5..4961da4 100755
--- a/ap/app/zte_comm/phonebook/src/pb_proc.c
+++ b/ap/app/zte_comm/phonebook/src/pb_proc.c
@@ -3,186 +3,185 @@
#include <semaphore.h>
#include <limits.h>
#include "pb_com.h"
-#define ZPB_UCS2 (0x1e01+1710-0x24ae)
-#define ZPB_UCS2_PREFIX (0x1791+2677-0x2186)
-#define ZPB_UCS2_PREFIX_LEN (0x449+8893-0x2704)
-#define ZPB_NON_GSM (0x62+551-0x269)
-#define ZPB_GSM_CHARACTER_SET_SIZE (0x1067+4883-0x22fa)
-#define ZPB_INIT_LOAD_RECORD_NUM (0xc3c+2878-0x1748)
+#define ZPB_UCS2 (0x1508+3734-0x239d)
+#define ZPB_UCS2_PREFIX (0x43b+3290-0x1095)
+#define ZPB_UCS2_PREFIX_LEN (0x10a6+243-0x1197)
+#define ZPB_NON_GSM (0x2220+424-0x23a8)
+#define ZPB_GSM_CHARACTER_SET_SIZE (0xa2a+20-0x9be)
+#define ZPB_INIT_LOAD_RECORD_NUM (0x265+558-0x461)
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=
-(0x1c2+6929-0x1cd3);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+(0x40d+4295-0x14d3)
-]={(0x8bb+6583-0x2272)};SINT32 g_zPb_ApIndex[ZPB_AP_MAX_RECORD+
-(0x118+9153-0x24d8)]={(0x1dfc+1493-0x23d1)};T_zPb_DelStatusMultiOrAll
-g_zPb_DelStatusUsim={(0x1f01+1761-0x25e2)};const unsigned char
-G_ZPB_NEWUCS2TOGSM[ZPB_GSM_CHARACTER_SET_SIZE*(0x24b+9365-0x26de)]={ZPB_NON_GSM,
+(0xa87+4823-0x1d5e);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+(0x156+5427-0x1688)
+]={(0x1fd2+665-0x226b)};SINT32 g_zPb_ApIndex[ZPB_AP_MAX_RECORD+
+(0x10a6+4808-0x236d)]={(0x1467+4374-0x257d)};T_zPb_DelStatusMultiOrAll
+g_zPb_DelStatusUsim={(0xb27+4122-0x1b41)};const unsigned char G_ZPB_NEWUCS2TOGSM
+[ZPB_GSM_CHARACTER_SET_SIZE*(0x9c4+7057-0x2553)]={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,(0x186b+203-0x192c),ZPB_NON_GSM,ZPB_NON_GSM,
-(0xbdd+873-0xf39),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,(0x684+3638-0x149a),(0x1426+4374-0x251b),(0x606+930-0x986),
-(0x1295+1502-0x1850),(0x50+2850-0xb70),(0x73+7124-0x1c22),(0x21f+4498-0x138b),
-(0x1fc+8394-0x229f),(0x30d+4977-0x1656),(0x698+6689-0x2090),(0x23a+7451-0x1f2b),
-(0x2ed+27-0x2dd),(0xab1+3489-0x1826),(0x6d1+1447-0xc4b),(0x122c+2786-0x1ce0),
-(0x5c9+6410-0x1ea4),(0x25e8+210-0x268a),(0x1cd+9157-0x2561),(0x59f+2777-0x1046),
-(0xdb8+4214-0x1dfb),(0x136c+4990-0x26b6),(0x2408+584-0x261b),(0x743+6357-0x1fe2)
-,(0x19c9+3131-0x25cd),(0x53f+5776-0x1b97),(0x1d03+675-0x1f6d),
-(0x1c3b+416-0x1da1),(0x1284+2658-0x1cab),(0x843+5358-0x1cf5),(0x4f4+5673-0x1ae0)
-,(0x14ad+3780-0x2333),(0x5d7+5313-0x1a59),(0x1a09+343-0x1b60),
-(0x8e7+6571-0x2251),(0x270+4278-0x12e4),(0xceb+2916-0x180c),(0x11d9+1377-0x16f6)
-,(0x16b5+2720-0x2110),(0x162b+3381-0x231a),(0x11e1+4214-0x2210),
-(0x98+5610-0x163a),(0xedb+4862-0x2190),(0x1378+3159-0x1f85),(0x15e9+2082-0x1dc0)
-,(0x15c3+207-0x1646),(0x1280+4040-0x21fb),(0x2e3+3068-0xe91),
-(0x1464+2324-0x1d29),(0x18e9+3297-0x257a),(0x108f+2281-0x1927),(0x5a+56-0x40),
-(0x13f8+1251-0x1888),(0xbac+6501-0x24bd),(0xd45+6459-0x262b),(0xbb7+3852-0x1a6d)
-,(0x2099+333-0x218f),(0xf70+5304-0x23d0),(0x6a9+6463-0x1f8f),(0x9e3+7007-0x24e8)
-,(0x82a+7528-0x2537),ZPB_NON_GSM,(0x12d9+3357-0x1f99),ZPB_NON_GSM,
-(0x39+8580-0x21ac),ZPB_NON_GSM,(0x2e9+4753-0x1519),(0x1174+3598-0x1f20),
-(0xf4c+3318-0x1bdf),(0x1a48+1486-0x1fb2),(0x83f+7554-0x255c),(0x378+8612-0x24b6)
-,(0x1e51+556-0x2016),(0x3b4+5344-0x182c),(0x1691+751-0x1917),(0x7a0+7027-0x22a9)
-,(0x50a+5979-0x1bfa),(0x1c9d+2311-0x2538),(0x378+5844-0x19df),
-(0x534+4778-0x1770),(0x1b58+211-0x1bbc),(0x5d9+2255-0xe38),(0x1c82+527-0x1e20),
-(0x1c86+286-0x1d32),(0x1760+1139-0x1b60),(0x8e4+6714-0x22aa),(0x1ed1+851-0x21af)
-,(0x11ea+625-0x13e5),(0x1f7+6053-0x1925),(0x1f65+645-0x2172),(0x2f8+5230-0x16ed)
-,(0x867+5729-0x1e4e),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM
+ZPB_NON_GSM,ZPB_NON_GSM,(0x88f+7310-0x2513),ZPB_NON_GSM,ZPB_NON_GSM,
+(0x1421+2410-0x1d7e),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,(0x1ccd+2259-0x2580),(0x1e23+104-0x1e6a),(0x20fa+990-0x24b6),
+(0x2f0+6397-0x1bca),(0x60c+250-0x704),(0x3bf+3565-0x1187),(0x6e8+2190-0xf50),
+(0x986+1474-0xf21),(0xbec+3165-0x1821),(0x2e0+5660-0x18d3),(0x15f0+3993-0x255f),
+(0xd3a+6488-0x2667),(0x1e36+107-0x1e75),(0xea5+3854-0x1d86),(0x210+8931-0x24c5),
+(0x1487+3999-0x23f7),(0x185+9354-0x25df),(0x1ec+3963-0x1136),(0x484+2057-0xc5b),
+(0xb76+2786-0x1625),(0x14aa+2688-0x1ef6),(0x6b1+6746-0x20d6),(0xd9+1350-0x5e9),
+(0xf9a+840-0x12ab),(0x690+8155-0x2633),(0x14b2+3094-0x208f),(0xb34+2112-0x133a),
+(0x16b2+250-0x1771),(0xd3a+6482-0x2650),(0xc8c+4015-0x1bfe),(0x104f+2067-0x1824)
+,(0x1f9+5007-0x1549),(0x1648+2416-0x1fb8),(0xb17+648-0xd5e),(0x919+762-0xbd1),
+(0xd4a+882-0x1079),(0x1074+5714-0x2682),(0x1d28+286-0x1e01),(0x84b+2051-0x1008),
+(0xd8+7747-0x1ed4),(0x885+5645-0x1e4a),(0xb4f+6540-0x2492),(0xc5b+8-0xc19),
+(0x28c+9197-0x262e),(0x126+336-0x22a),(0x114f+1269-0x15f7),(0xca1+5045-0x2008),
+(0x14b6+4322-0x2549),(0xf88+2288-0x1828),(0x1485+1633-0x1a95),(0x62+1798-0x716),
+(0x7f0+3306-0x1487),(0x4ad+7363-0x211c),(0x5e5+3490-0x1332),(0xedb+5199-0x22d4),
+(0x790+2932-0x12ad),(0x78b+180-0x7e7),(0x327+2718-0xd6c),(0xf97+532-0x1151),
+(0x65+6951-0x1b31),ZPB_NON_GSM,(0x416+6402-0x1cbb),ZPB_NON_GSM,
+(0x786+3705-0x15ee),ZPB_NON_GSM,(0xfaf+4859-0x2249),(0x86b+737-0xaea),
+(0x1c63+143-0x1c8f),(0x124b+169-0x1290),(0xcb7+5973-0x23a7),(0x1aa+6809-0x1bdd),
+(0x879+3504-0x15c2),(0x388+8983-0x2637),(0x89+2888-0xb68),(0x1a17+1396-0x1f21),
+(0x14c+4350-0x11df),(0xbdb+5780-0x2203),(0xa42+4833-0x1cb6),(0x17a9+3291-0x2416)
+,(0x1e4b+1555-0x23ef),(0xcc9+5175-0x2090),(0x1841+3201-0x2451),
+(0x287+2378-0xb5f),(0x186+4690-0x1365),(0x484+1458-0x9c2),(0x567+2174-0xd70),
+(0x1de1+2335-0x268a),(0xe34+5983-0x251c),(0x1eac+1931-0x25bf),
+(0x1f97+447-0x20dd),(0x3d5+1609-0x9a4),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,(0xb38+3233-0x1799),ZPB_NON_GSM,
-(0x751+3445-0x14c5),(0x675+998-0xa37),(0x628+6929-0x2136),ZPB_NON_GSM,
-(0x102a+5338-0x24a5),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,
-(0x14db+3405-0x21c8),(0x3cd+6873-0x1e65),(0x16c+3762-0xfdd),(0xb3f+5639-0x2105),
-(0x5f2+7550-0x232f),(0xac1+5312-0x1f26),(0xf1d+882-0x1281),(0x804+4004-0x178c),
-(0x1272+3296-0x1f49),(0x14f1+1218-0x196e),(0xb53+3911-0x1a7b),
-(0x1504+2790-0x1fa5),(0xb2a+4630-0x1cfb),(0x2ea+7698-0x20b3),(0x1dad+345-0x1ebd)
-,(0x1c00+1659-0x2232),(0x4c0+4653-0x16a4),ZPB_NON_GSM,(0xe15+980-0x118c),
-(0x1d38+2296-0x25e1),(0xe6+8526-0x21e5),(0x1474+4621-0x2632),(0x593+1483-0xb0f),
-(0xb8+4469-0x11d1),ZPB_NON_GSM,(0x1e12+2245-0x26cc),(0x7ad+5255-0x1bdf),
-(0x164a+1016-0x19ed),(0x99b+5783-0x1fdd),(0x105f+4657-0x2232),
-(0x1e16+1879-0x2514),ZPB_NON_GSM,(0x151+1817-0x84c),(0xd5f+2671-0x174f),
-(0xe9f+1148-0x12ba),(0x233+3429-0xf37),(0x3bb+1745-0xa2b),(0xd9+7248-0x1cae),
-(0x3ca+5492-0x192f),(0x107+8842-0x2374),(0xcbb+4847-0x1fa1),(0x1e8+6381-0x1ad1),
-(0xa53+6762-0x24b8),(0xf3b+4352-0x1fd6),(0x8f5+5744-0x1f00),(0x473+8594-0x25fe),
-(0x1444+4386-0x24fd),(0x535+1390-0xa3a),(0x8ec+2984-0x142b),ZPB_NON_GSM,
-(0x7b7+900-0xabe),(0xa64+537-0xc75),(0x7a+8738-0x222d),(0xfcb+80-0xfac),
-(0x1643+3096-0x21ec),(0xad7+6812-0x24f7),ZPB_NON_GSM,(0xfc4+2913-0x1b19),
-(0x538+1982-0xcf0),(0x1d29+1619-0x2307),(0x985+6649-0x2309),(0x1c5+4711-0x13ae),
-(0xd75+186-0xdb6),ZPB_NON_GSM,(0x770+830-0xa35)};VOID atPb_Init(VOID){UINT32
-pbCount=(0x82a+6946-0x234c);g_zPb_SimIndex[(0x2004+1716-0x26b8)]=
-(0x55a+5951-0x1c99);sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);(VOID)sc_cfg_set(
-ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(pbCount=(0x387+7563-0x2111);pbCount<=
-ZPB_SIM_MAX_RECORD;pbCount++){g_zPb_SimIndex[pbCount]=PBM_ERROR_NOT_FOUND;}if(
-ZPB_DB_OK!=atPb_CreatDb()){slog(PB_PRINT,SLOG_ERR,
-"pb:atPb_Init:create pbm table failed\n");return;}if(ZPB_DB_OK!=atPb_InitApIndex
-()){slog(PB_PRINT,SLOG_ERR,
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0x2da+9010-0x25cc),
+ZPB_NON_GSM,(0x1890+2489-0x2248),(0x191d+1724-0x1fb5),(0x4b1+8495-0x25dd),
+ZPB_NON_GSM,(0x301+2772-0xd76),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,(0xd31+3459-0x1a54),(0x80a+2186-0x1053),(0x19aa+2499-0x232c),
+(0x197+2375-0xa9d),(0x875+7696-0x2644),(0x2223+14-0x21d6),(0x548+8313-0x25b3),
+(0xa98+6854-0x2542),(0x704+6815-0x219a),(0x8d4+7113-0x2458),(0x27a+8316-0x22d7),
+(0x1173+693-0x13e3),(0x18d7+1173-0x1d27),(0xb3a+5925-0x2216),
+(0x1511+4516-0x266c),(0xe78+4762-0x20c9),(0xb5f+4680-0x1d5e),ZPB_NON_GSM,
+(0x23cf+483-0x2555),(0x663+1712-0xcc4),(0xc9f+2166-0x14c6),(0xc1c+6485-0x2522),
+(0x1285+3032-0x1e0e),(0x22c8+1044-0x2680),ZPB_NON_GSM,(0x8f6+5000-0x1c73),
+(0x10b9+4223-0x20e3),(0x1396+2029-0x1b2e),(0x779+903-0xaab),(0x1e71+392-0x1f9b),
+(0x1e20+227-0x1eaa),ZPB_NON_GSM,(0x4e8+8061-0x2447),(0x1e3c+1555-0x23d0),
+(0x23f4+414-0x2531),(0x10b7+12-0x1062),(0x1de2+1189-0x2226),(0x1c8c+40-0x1c39),
+(0x13f8+471-0x15c0),(0x121c+1460-0x17b3),(0x836+7399-0x2514),(0x850+5194-0x1c96)
+,(0x690+4270-0x1739),(0x592+4747-0x17b8),(0x1ac7+373-0x1bd7),(0x6a2+3276-0x1367)
+,(0xb43+1713-0x118b),(0x1272+2512-0x1bd9),(0x1090+251-0x1122),ZPB_NON_GSM,
+(0xf09+328-0xfd4),(0xcf4+1284-0x11f0),(0x17ca+2466-0x20fd),(0xf1+1433-0x61b),
+(0xb85+1786-0x1210),(0x8e2+1274-0xd60),ZPB_NON_GSM,(0x1dff+509-0x1ff0),
+(0x12ec+4030-0x22a4),(0x1301+4063-0x226b),(0x18d3+1228-0x1d2a),
+(0x1993+1807-0x2024),(0xcd4+5625-0x2254),ZPB_NON_GSM,(0x1ce4+1838-0x2399)};VOID
+atPb_Init(VOID){UINT32 pbCount=(0x397+6706-0x1dc9);g_zPb_SimIndex[
+(0x25c1+140-0x264d)]=(0x1046+4418-0x2188);sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);(
+VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(pbCount=
+(0x10ad+2621-0x1ae9);pbCount<=ZPB_SIM_MAX_RECORD;pbCount++){g_zPb_SimIndex[
+pbCount]=PBM_ERROR_NOT_FOUND;}if(ZPB_DB_OK!=atPb_CreatDb()){slog(PB_PRINT,
+SLOG_ERR,"pb:atPb_Init:create pbm table failed\n");return;}if(ZPB_DB_OK!=
+atPb_InitApIndex()){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x49\x6e\x69\x74\x3a\x69\x6e\x69\x74\x20\x61\x70\x49\x6e\x64\x65\x78\x20\x66\x61\x69\x6c\x65\x64" "\n"
);return;}(VOID)atPb_SetApCapacityTable();}VOID atPb_CfgPbNvInit(VOID){(VOID)
sc_cfg_set(ZPB_NV_USIMINDEXMIN,"\x30");(VOID)sc_cfg_set(ZPB_NV_USIMINDEXMAX,
"\x30");(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}int
-atpb_CvtUcs2ToAlphaField(char*src,int srcLen,char*dest){int i=(0xc4+3930-0x101e)
-;int min=32767;int max=(0x7a1+5661-0x1dbe);int temp=(0x546+5124-0x194a);int
-outOff=(0x99+8501-0x21ce);printf(
+atpb_CvtUcs2ToAlphaField(char*src,int srcLen,char*dest){int i=
+(0x7c4+3847-0x16cb);int min=32767;int max=(0x1f01+437-0x20b6);int temp=
+(0x411+7111-0x1fd8);int outOff=(0x4f2+2635-0xf3d);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<=(0xf3d+3999-0x1edc)||src==NULL||dest==NULL){return-
-(0x11cc+4357-0x22d0);}if(srcLen<=(0x63c+8287-0x2699)){dest[(0xea2+5072-0x2272)]=
-(0x118b+3421-0x1e68);memcpy(dest+(0x1744+2222-0x1ff1),src,srcLen);printf(
+,srcLen);if(srcLen<=(0xa20+5087-0x1dff)||src==NULL||dest==NULL){return-
+(0x640+600-0x897);}if(srcLen<=(0x76a+4584-0x1950)){dest[(0xa14+6083-0x21d7)]=
+(0xc7d+3853-0x1b0a);memcpy(dest+(0x302+812-0x62d),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+(0x5c0+7951-0x24ce));return srcLen+(0x97f+6599-0x2345);}for(i=
-(0x205+2471-0xbac);i<srcLen;i+=(0xb73+6731-0x25bc)){if(src[i]!=
-(0x126b+4121-0x2284)){temp=(int)(((src[i]<<(0xbef+5626-0x21e1))&65280)|(src[i+
-(0xe18+6243-0x267a)]&(0x18a+8078-0x2019)));
-#if (0x547+1412-0xacb)
-if(temp<(0x1940+1805-0x204d)){max=min+(0x14c3+4421-0x2586);break;}
+,srcLen+(0x1b1+3957-0x1125));return srcLen+(0x12d0+3196-0x1f4b);}for(i=
+(0xd25+976-0x10f5);i<srcLen;i+=(0x1333+2733-0x1dde)){if(src[i]!=
+(0xd4+5934-0x1802)){temp=(int)(((src[i]<<(0xfa3+5037-0x2348))&65280)|(src[i+
+(0x1527+2571-0x1f31)]&(0x18bd+1542-0x1dc4)));
+#if (0x6f4+6366-0x1fd2)
+if(temp<(0x1175+2092-0x19a1)){max=min+(0xbdc+6203-0x2395);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)<(0x1a7+834-0x468)){if((unsigned char)(min&
-(0x696+3268-0x12da))==(unsigned char)(max&(0x892+2241-0x10d3))){dest[
-(0xcbb+6307-0x255d)]=(unsigned char)(srcLen/(0x4d1+6225-0x1d20));dest[
-(0x379+7862-0x222f)]=(unsigned char)(0x1955+3379-0x2607);min=(int)(min&32640);
-dest[(0x243+3225-0xeda)]=(unsigned char)((min>>(0x342+4856-0x1633))&
-(0x1645+3035-0x2121));outOff=(0xcb4+1334-0x11e7);printf(
+,min,max);if((max-min)<(0xb9a+1755-0x11f4)){if((unsigned char)(min&
+(0x399+5087-0x16f8))==(unsigned char)(max&(0x1268+3562-0x1fd2))){dest[
+(0x6cf+6602-0x2098)]=(unsigned char)(srcLen/(0xddc+1092-0x121e));dest[
+(0x176c+1855-0x1eab)]=(unsigned char)(0x35a+1448-0x881);min=(int)(min&32640);
+dest[(0x12e0+3410-0x2030)]=(unsigned char)((min>>(0x7d9+428-0x97e))&
+(0x10f+9471-0x250f));outOff=(0x226d+1167-0x26f9);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[(0x4a2+1938-0xc33)]=(unsigned char)(srcLen/(0x14c3+3114-0x20eb));
-dest[(0x1756+2835-0x2269)]=(unsigned char)(0xbb4+660-0xdc6);dest[
-(0xccf+6549-0x2662)]=(unsigned char)((min>>(0x1491+2199-0x1d20))&
-(0xf90+384-0x1011));dest[(0x10ad+13-0x10b7)]=(unsigned char)(min&
-(0x1d1c+261-0x1d22));outOff=(0x14cf+3237-0x2170);printf(
+);}else{dest[(0x165c+3329-0x235c)]=(unsigned char)(srcLen/(0x18f8+477-0x1ad3));
+dest[(0x1369+2091-0x1b94)]=(unsigned char)(0x1c1+8776-0x2387);dest[
+(0x5a7+6082-0x1d67)]=(unsigned char)((min>>(0x771+2292-0x105d))&
+(0xd30+1115-0x108c));dest[(0x1d50+2247-0x2614)]=(unsigned char)(min&
+(0x105f+4809-0x2229));outOff=(0xb6c+2879-0x16a7);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=(0x934+1880-0x108c);i<srcLen;i+=(0xe0d+6065-0x25bc)){if(src[i]==
-(0x398+3756-0x1244)){dest[outOff]=(unsigned char)(src[i+(0x576+128-0x5f5)]&
-(0xfca+4641-0x216c));}else{temp=(int)((((src[i]<<(0x6fc+647-0x97b))&65280)|(src[
-i+(0x1114+1125-0x1578)]&(0x1931+3349-0x2547)))-min);dest[outOff]=(unsigned char)
-(temp|(0x1420+2227-0x1c53));}outOff++;}printf(
+);}for(i=(0x41+2994-0xbf3);i<srcLen;i+=(0xe38+5386-0x2340)){if(src[i]==
+(0x225+8445-0x2322)){dest[outOff]=(unsigned char)(src[i+(0xf46+5819-0x2600)]&
+(0x970+4444-0x1a4d));}else{temp=(int)((((src[i]<<(0x1075+4197-0x20d2))&65280)|(
+src[i+(0x25d+9382-0x2702)]&(0x51c+5551-0x19cc)))-min);dest[outOff]=(unsigned
+char)(temp|(0x239+2430-0xb37));}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[(0x675+4572-0x1851)]=
-(0xf26+3063-0x1a9d);memcpy(dest+(0x2c1+8403-0x2393),src,srcLen);printf(
+,outOff,outOff,dest[outOff]);return outOff;}dest[(0x368+6963-0x1e9b)]=
+(0x498+2663-0xe7f);memcpy(dest+(0xd7a+5129-0x2182),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+(0x4ac+662-0x741));return srcLen+(0x18a2+3326-0x259f);}int
+,srcLen+(0xafc+5176-0x1f33));return srcLen+(0xf5d+371-0x10cf);}int
atPb_GetU80Code(const UINT8*srcCode,UINT32 srcCodeLen,UINT8*destCode,UINT32
destCodeLen){assert(destCode!=NULL&&srcCode!=NULL);if(srcCodeLen==
-(0x10d0+1860-0x1814)||destCodeLen==(0x14da+1897-0x1c43)||destCodeLen<srcCodeLen)
-{return-(0xf24+856-0x127b);}memset(destCode,(0x16cd+2133-0x1f22),destCodeLen);
-destCode[(0x8f3+7105-0x24b4)]=(0xe75+6140-0x25f1);printf(
+(0x11ea+4477-0x2367)||destCodeLen==(0x384+628-0x5f8)||destCodeLen<srcCodeLen){
+return-(0x2510+299-0x263a);}memset(destCode,(0x253+998-0x639),destCodeLen);
+destCode[(0x81+520-0x289)]=(0x14b4+879-0x17a3);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[(0x1883+2184-0x210b)]);switch(srcCode[(0x57b+1788-0xc77)]){case
-(0x15fc+761-0x1875):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}case
-(0x464+3104-0x1003):{atPb_CvtU81ToU80(srcCode+(0x1182+5358-0x266f),srcCodeLen-
-(0x1d03+2308-0x2606),destCode+(0x718+2229-0xfcc),destCodeLen-(0x494+5986-0x1bf5)
-);return srcCode[(0x1bc+6570-0x1b65)]*(0x1af9+3022-0x26c5)+(0x260+5624-0x1857);}
-case(0x13c+8781-0x2307):{atPb_CvtU82ToU80(srcCode+(0x2190+1251-0x2672),
-srcCodeLen-(0x3ac+5570-0x196d),destCode+(0x10e6+2213-0x198a),destCodeLen-
-(0x132f+647-0x15b5));return srcCode[(0x734+6625-0x2114)]*(0x397+4254-0x1433)+
-(0x1c2d+1522-0x221e);}default:{return-(0x7fa+1604-0xe3d);}}}BOOL
-atPb_CvtU82ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32 destLen
-){UINT8 chNum=(0xe35+2832-0x1945);UINT16 basePointer=(0x1a30+817-0x1d61);UINT8
-iCurChar=(0x791+6662-0x2197);UINT32 iCurSrc=(0xeb+3689-0xf54);chNum=(UINT32)
-srcData[(0x4e1+7954-0x23f3)];basePointer=(UINT16)srcData[(0x679+1234-0xb4a)];
-basePointer=basePointer<<(0x900+850-0xc4a);basePointer=basePointer+srcData[
-(0x34d+8283-0x23a6)];if(chNum*(0x1f2b+179-0x1fdc)>destLen){return FALSE;}for(
-iCurSrc=(0x13cf+4720-0x263c);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++
-){UINT8*curDest=destData+(0x1126+816-0x1454)*iCurChar;atPb_CvtChCode(basePointer
-,srcData[iCurSrc],curDest,curDest+(0x1407+3078-0x200c));}return TRUE;}BOOL
-atPb_CvtU81ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32 destLen
-){UINT8 chNum=(0xd72+1735-0x1439);UINT16 basePointer=(0x8aa+6130-0x209c);UINT8
-iCurChar=(0x1b82+2160-0x23f2);UINT32 iCurSrc=(0xab9+6782-0x2537);chNum=srcData[
-(0x312+7574-0x20a8)];basePointer=((UINT16)srcData[(0x4c0+108-0x52b)])<<
-(0xaa3+3843-0x199f);if(chNum*(0x3+5300-0x14b5)>destLen){return FALSE;}for(
-iCurSrc=(0x1b89+866-0x1ee9);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++)
-{UINT8*curDest=destData+(0x50c+4591-0x16f9)*iCurChar;atPb_CvtChCode(basePointer,
-srcData[iCurSrc],curDest,curDest+(0x1d5+1770-0x8be));}return TRUE;}VOID
-atPb_CvtChCode(UINT16 basePointer,UINT8 srcData,UINT8*chMsb,UINT8*chLsb){UINT16
-curChar=(0x172d+426-0x18d7);assert(chMsb!=NULL&&chLsb!=NULL);if((srcData&
-(0x6c1+641-0x8c2))==(0xd5c+2758-0x1822)){curChar=srcData;}else{curChar=
-basePointer+(srcData&(0x47a+2928-0xf6b));}*chMsb=(UINT8)(curChar>>
-(0x1809+1250-0x1ce3));*chLsb=(UINT8)((curChar<<(0x1556+3473-0x22df))>>
-(0x2224+1110-0x2672));return;}int atPb_String2Bytes(const char*pSrc,unsigned
-char*pDst,int nSrcLength){int i=(0xc70+1957-0x1415);if(pSrc==NULL||pDst==NULL||
-nSrcLength<(0x110d+2255-0x19dc)){return-(0x10ab+2239-0x1969);}for(i=
-(0x1e7+194-0x2a9);i<nSrcLength;i+=(0x17f0+1915-0x1f69)){if(*pSrc>=
-((char)(0x492+2848-0xf82))&&*pSrc<=((char)(0x19d4+1123-0x1dfe))){*pDst=(*pSrc-
-((char)(0x2182+8-0x215a)))<<(0x20+3635-0xe4f);}else{*pDst=((toupper(*pSrc)-
-((char)(0x828+7959-0x26fe)))+(0x8dc+6987-0x241d))<<(0x4ea+4446-0x1644);}pSrc++;
-if(*pSrc>=((char)(0xfa9+1788-0x1675))&&*pSrc<=((char)(0x838+1081-0xc38))){*pDst
-|=*pSrc-((char)(0x229+6528-0x1b79));}else{*pDst|=(toupper(*pSrc)-
-((char)(0x45c+5132-0x1827)))+(0x1d5f+1474-0x2317);}pSrc++;pDst++;}return
-nSrcLength/(0x29c+8546-0x23fc);}int atPb_Bytes2String(const unsigned char*pSrc,
+,srcCode[(0x4d1+4124-0x14ed)]);switch(srcCode[(0x44f+7262-0x20ad)]){case
+(0x7c9+4191-0x17a8):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}case
+(0x223b+1239-0x2691):{atPb_CvtU81ToU80(srcCode+(0x591+5072-0x1960),srcCodeLen-
+(0x1025+92-0x1080),destCode+(0x1396+2377-0x1cde),destCodeLen-
+(0x1368+1139-0x17da));return srcCode[(0xab7+4876-0x1dc2)]*(0x275+3021-0xe40)+
+(0x2f5+7631-0x20c3);}case(0xce1+326-0xda5):{atPb_CvtU82ToU80(srcCode+
+(0x5f5+4876-0x1900),srcCodeLen-(0x946+690-0xbf7),destCode+(0xbda+1798-0x12df),
+destCodeLen-(0xb23+1850-0x125c));return srcCode[(0x24f3+285-0x260f)]*
+(0x8e6+510-0xae2)+(0x1bec+76-0x1c37);}default:{return-(0x35f+5005-0x16eb);}}}
+BOOL atPb_CvtU82ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32
+destLen){UINT8 chNum=(0x3f5+6548-0x1d89);UINT16 basePointer=(0x1ec+2540-0xbd8);
+UINT8 iCurChar=(0x1709+3455-0x2488);UINT32 iCurSrc=(0x1d3f+1334-0x2275);chNum=(
+UINT32)srcData[(0x201+3288-0xed9)];basePointer=(UINT16)srcData[
+(0x17c2+72-0x1809)];basePointer=basePointer<<(0x12e5+1917-0x1a5a);basePointer=
+basePointer+srcData[(0x49b+8125-0x2456)];if(chNum*(0x6a0+7641-0x2477)>destLen){
+return FALSE;}for(iCurSrc=(0xc1f+271-0xd2b);iCurSrc<srcLen&&iCurChar<chNum;
+iCurSrc++,iCurChar++){UINT8*curDest=destData+(0x704+6113-0x1ee3)*iCurChar;
+atPb_CvtChCode(basePointer,srcData[iCurSrc],curDest,curDest+(0x1bc+771-0x4be));}
+return TRUE;}BOOL atPb_CvtU81ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*
+destData,UINT32 destLen){UINT8 chNum=(0x704+4185-0x175d);UINT16 basePointer=
+(0x1514+1821-0x1c31);UINT8 iCurChar=(0xf5c+4091-0x1f57);UINT32 iCurSrc=
+(0x37d+3486-0x111b);chNum=srcData[(0xc10+2543-0x15ff)];basePointer=((UINT16)
+srcData[(0x2e2+3756-0x118d)])<<(0x17ad+939-0x1b51);if(chNum*(0xf5+8140-0x20bf)>
+destLen){return FALSE;}for(iCurSrc=(0x2f1+2439-0xc76);iCurSrc<srcLen&&iCurChar<
+chNum;iCurSrc++,iCurChar++){UINT8*curDest=destData+(0x243b+88-0x2491)*iCurChar;
+atPb_CvtChCode(basePointer,srcData[iCurSrc],curDest,curDest+(0x2+1988-0x7c5));}
+return TRUE;}VOID atPb_CvtChCode(UINT16 basePointer,UINT8 srcData,UINT8*chMsb,
+UINT8*chLsb){UINT16 curChar=(0x5b6+1860-0xcfa);assert(chMsb!=NULL&&chLsb!=NULL);
+if((srcData&(0x20ba+1526-0x2630))==(0x52f+7223-0x2166)){curChar=srcData;}else{
+curChar=basePointer+(srcData&(0x16e4+2267-0x1f40));}*chMsb=(UINT8)(curChar>>
+(0x10cf+1617-0x1718));*chLsb=(UINT8)((curChar<<(0x1593+878-0x18f9))>>
+(0x594+1333-0xac1));return;}int atPb_String2Bytes(const char*pSrc,unsigned char*
+pDst,int nSrcLength){int i=(0x1d3+2203-0xa6e);if(pSrc==NULL||pDst==NULL||
+nSrcLength<(0x947+1119-0xda6)){return-(0x1170+2466-0x1b11);}for(i=
+(0x1135+3786-0x1fff);i<nSrcLength;i+=(0x9a4+6196-0x21d6)){if(*pSrc>=
+((char)(0x719+5128-0x1af1))&&*pSrc<=((char)(0x23fd+738-0x26a6))){*pDst=(*pSrc-
+((char)(0x400+6471-0x1d17)))<<(0x1336+4587-0x251d);}else{*pDst=((toupper(*pSrc)-
+((char)(0x8df+1463-0xe55)))+(0xf01+2826-0x1a01))<<(0x128a+183-0x133d);}pSrc++;if
+(*pSrc>=((char)(0xdeb+1175-0x1252))&&*pSrc<=((char)(0x16b9+2689-0x2101))){*pDst
+|=*pSrc-((char)(0x13c2+895-0x1711));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x8ba+5776-0x1f09)))+(0xddb+2709-0x1866);}pSrc++;pDst++;}return
+nSrcLength/(0x84d+6489-0x21a4);}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=
-(0xaa3+5644-0x20af);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x166c+581-0x18b1)){
-return-(0x1aaa+95-0x1b08);}for(i=(0x32f+4094-0x132d);i<nSrcLength;i++){*pDst++=
-tab[*pSrc>>(0x6e7+882-0xa55)];*pDst++=tab[*pSrc&(0x1022+1623-0x166a)];pSrc++;}*
-pDst='\0';return nSrcLength*(0x1ec6+444-0x2080);}static VOID atPb_WebRecodeShow(
-T_zPb_WebContact const*pFromweb){slog(PB_PRINT,SLOG_DEBUG,
+(0x1cb4+50-0x1ce6);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x127+408-0x2bf)){
+return-(0xa8c+20-0xa9f);}for(i=(0x9ef+4488-0x1b77);i<nSrcLength;i++){*pDst++=tab
+[*pSrc>>(0xce7+1468-0x129f)];*pDst++=tab[*pSrc&(0x106+9292-0x2543)];pSrc++;}*
+pDst='\0';return nSrcLength*(0x15b8+3451-0x2331);}static VOID atPb_WebRecodeShow
+(T_zPb_WebContact const*pFromweb){slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x66\x72\x6f\x6d\x77\x65\x62\x2e\x49\x6e\x64\x65\x78\x3d\x25\x64" "\n"
,pFromweb->pbIndex);slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x66\x72\x6f\x6d\x77\x65\x62\x2e\x4e\x61\x6d\x65\x3d\x25\x73" "\n",
@@ -201,21 +200,21 @@
){sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x61\x74\x42\x61\x73\x65\x5f\x49\x69\x6e\x74\x50\x62\x4f\x6b\x20" "\n"
);}VOID atPb_RecvCpbsReadRsp(T_zPb_AtCpbsReadRes*cpbsInd){CHAR resInfo[
-(0x5ef+4028-0x1597)]={(0x9d3+3720-0x185b)};if(strncmp(cpbsInd->locType,
-"\x53\x4d",(0x2f5+3528-0x10bb))==(0x57f+2521-0xf58)){(VOID)snprintf(resInfo,
-(0x6b9+4562-0x1877),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
-NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x13e8+2026-0x1bd2),
-(0xdf5+3831-0x1cd8));(VOID)snprintf(resInfo,(0x1680+3494-0x2412),"\x25\x64",
+(0xb10+778-0xe06)]={(0x17db+2580-0x21ef)};if(strncmp(cpbsInd->locType,"\x53\x4d"
+,(0x78b+1000-0xb71))==(0x766+6920-0x226e)){(VOID)snprintf(resInfo,
+(0x667+7199-0x2272),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
+NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x1016+5247-0x2495),
+(0x175d+1527-0x1d40));(VOID)snprintf(resInfo,(0xe42+340-0xf82),"\x25\x64",
cpbsInd->totalEntries);(VOID)sc_cfg_set(NV_PB_TOTALENTRIES,resInfo);
-g_zPb_SimIndex[(0xc9f+3459-0x1a22)]=(UINT32)(cpbsInd->totalEntries);}else{printf
+g_zPb_SimIndex[(0xab5+5514-0x203f)]=(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[(0x1549+3348-0x2253)]={(0x790+1518-0xd7e)};assert(
-pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0x257+3456-0xfcd),"\x25\x64",
+UINT32 len){char converted[(0x1461+1265-0x1948)]={(0x322+8240-0x2352)};assert(
+pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0x47+9080-0x23b5),"\x25\x64",
len);(VOID)sc_cfg_set(pbNvKeyWord,converted);}VOID atPb_ScpbrTestRsp(
-T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0x3a8+3273-0x1071)};
-CHAR pbUsed[(0x632+7271-0x2267)]={(0xbc+6817-0x1b5d)};sc_cfg_get(
+T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0x626+2098-0xe58)};
+CHAR pbUsed[(0x2281+738-0x2531)]={(0x139+7916-0x2025)};sc_cfg_get(
NV_PB_USEDENTRIES,pbUsed,sizeof(pbUsed));g_zPb_DelIndex=(UINT32)scpbsInd->
minIndex;pbPara.simType=ZPB_USIM;pbPara.maxRecordNum=scpbsInd->maxIndex;pbPara.
usedRecordNum=atoi(pbUsed);pbPara.maxNumberLen=scpbsInd->maxNumberLen;pbPara.
@@ -224,22 +223,22 @@
atPb_SetScpbrResToNv(ZPB_NV_USIMINDEXMIN,(UINT32)scpbsInd->minIndex);
atPb_SetScpbrResToNv(ZPB_NV_USIMINDEXMAX,(UINT32)scpbsInd->maxIndex);(VOID)
atPb_SetSimCapacityTable(pbPara);}int atPb_SendScpbrSet_repeat(sem_t tSemId){int
- min=(0x548+1717-0xbfd);int max=(0xd3b+5423-0x226a);int res=(0x164f+3324-0x234b)
-;int index=(0x1188+2480-0x1b38);CHAR pbMin[(0xd0+8244-0x20d2)]={
-(0xb2b+5757-0x21a8)};CHAR pbMax[(0x1544+2379-0x1e5d)]={(0x14a6+245-0x159b)};int
-indexmin=(0x8b8+6241-0x2119);int indexmax=(0x1bad+2850-0x26cf);
-T_zPb_ScpbrReadRes scpbrReadInfo={(0x1eb1+288-0x1fd1)};sc_cfg_get(
+ min=(0x7d1+5589-0x1da6);int max=(0x10c8+5566-0x2686);int res=(0x4f9+1797-0xbfe)
+;int index=(0x3ec+1973-0xba1);CHAR pbMin[(0x1151+2354-0x1a51)]={
+(0x160+9345-0x25e1)};CHAR pbMax[(0x65b+7450-0x2343)]={(0xa37+390-0xbbd)};int
+indexmin=(0x15c8+1206-0x1a7e);int indexmax=(0x126a+239-0x1359);
+T_zPb_ScpbrReadRes scpbrReadInfo={(0xd06+1966-0x14b4)};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")
-==(0x1ad0+2135-0x2327)||strcmp(pbMax,"\x30")==(0x2203+894-0x2581)){sc_cfg_set(
+==(0x1919+581-0x1b5e)||strcmp(pbMax,"\x30")==(0x6bb+4846-0x19a9)){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-(0x5a+8519-0x21a0);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
-"\x25\x64",&max);if((min<(0x69+457-0x232)||min>INT_MAX-(0x2e0+9137-0x2690))||(
-max<(0x1e64+1936-0x25f4)||max>INT_MAX-(0x94a+5947-0x2084))){printf(
+);return-(0xd85+5060-0x2148);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
+"\x25\x64",&max);if((min<(0xe1d+6372-0x2701)||min>INT_MAX-(0x165+7861-0x2019))||
+(max<(0xd14+1761-0x13f5)||max>INT_MAX-(0x1448+4771-0x26ea))){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-(0x59+5140-0x146c);}while((0x3b+5493-0x15af)){if(indexmin<min){
-indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0x239+1944-0x9d0);if(
+,min,max);return-(0x943+3612-0x175e);}while((0x1049+1595-0x1683)){if(indexmin<
+min){indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0x1794+1312-0x1cb3);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(
@@ -251,17 +250,17 @@
,indexmin,indexmax,min,max);}scpbrReadInfo.minIndex=indexmin;scpbrReadInfo.
maxIndex=indexmax;res=ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,
MSG_CMD_READ_PB_REQ,sizeof(T_zPb_ScpbrReadRes),&scpbrReadInfo,
-(0x11f6+2707-0x1c89));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-
-(0x304+6732-0x1d4f)){break;}}return g_PbOptRsp.result;}
-#if (0x1a8f+560-0x1cbf)
+(0x10b2+4708-0x2316));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-
+(0xee2+5437-0x241e)){break;}}return g_PbOptRsp.result;}
+#if (0x18a2+1825-0x1fc3)
int atPb_SendScpbrSet(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){UINT32
-indexmin=(0x513+6434-0x1e35);UINT32 indexmax=(0x5df+5082-0x19b9);CHAR atcmdMsg[
-(0x387+7227-0x1f7c)]={(0x1d32+1345-0x2273)};int res=(0x1521+1988-0x1ce5);CHAR
-pbMin[(0x159b+3712-0x23e9)]={(0x1d07+181-0x1dbc)};CHAR pbMax[(0x30f+4520-0x1485)
-]={(0x1011+3965-0x1f8e)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
+indexmin=(0xb3c+2381-0x1489);UINT32 indexmax=(0x1200+1326-0x172e);CHAR atcmdMsg[
+(0x1a6+2158-0x9ce)]={(0x459+4357-0x155e)};int res=(0x80+746-0x36a);CHAR pbMin[
+(0x15bb+1224-0x1a51)]={(0xcb3+2447-0x1642)};CHAR pbMax[(0x4c5+1795-0xb96)]={
+(0x6f2+2213-0xf97)};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")==(0x1373+2512-0x1d43)||strcmp(pbMax,"\x30"
-)==(0xaf4+3088-0x1704)){printf(
+,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0x3e9+6925-0x1ef6)||strcmp(pbMax,"\x30")
+==(0x76+7342-0x1d24)){printf(
"\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x63\x61\x72\x64\x20\x75\x6e\x73\x75\x70\x70\x6f\x72\x74\x20\x70\x62" "\n"
);return ZAT_RESULT_OK;}sscanf(pbMin,"\x25\x64",&indexmin);sscanf(pbMax,
"\x25\x64",&indexmax);(VOID)snprintf(atcmdMsg,sizeof(atcmdMsg),
@@ -270,46 +269,46 @@
atcmdMsg,cid,pAtRst,atRstSize);pthread_mutex_unlock(&smsdb_mutex);return res;}
#endif
UINT8 atPb_EncodeText(CHAR*pbDst,CHAR const*pbTextSrc,UINT32 dstLen){UINT8 i=
-(0x266+7996-0x21a2);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x1690+3250-0x2342)};
-if(pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0x14d2+3611-0x22e9)+
-ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0x31f+4816-0x15ef)],
-sizeof(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0x103a+3854-0x1f48)
-;(i<strlen(pbTextSrc))&&(i*(0x1a8b+853-0x1ddc)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
-snprintf(strTarget+i*(0xd1+6913-0x1bce)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i*
-(0x3da+3886-0x1304)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i])
-;}strncpy(pbDst,strTarget,dstLen-(0x34d+8337-0x23dd));return ZUFI_SUCC;}}return
+(0x158c+97-0x15ed);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x60b+3857-0x151c)};if(
+pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0xd6b+1336-0x129f)+
+ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0x12f9+4666-0x2533)],
+sizeof(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0xa81+6553-0x241a);
+(i<strlen(pbTextSrc))&&(i*(0x1850+1868-0x1f98)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
+snprintf(strTarget+i*(0x1f60+145-0x1fed)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i
+*(0x6ca+1544-0xcce)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i])
+;}strncpy(pbDst,strTarget,dstLen-(0x375+1154-0x7f6));return ZUFI_SUCC;}}return
ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){T_zPb_WebContact
-pbRecord={(0x86a+846-0xbb8)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
-(0x1688+2991-0x2237)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0xef+5510-0x1675)};int
-text_len=(0x1f82+877-0x22ef);int tmp_len=(0x7ba+1235-0xc8d);CHAR tmp[
-ZPB_TEXT_SIZE_BYTES]={(0x60+1642-0x6ca)};if(atRes->coding!=ZPB_UCS2){if(
+pbRecord={(0x9d5+5060-0x1d99)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
+(0x627+7513-0x2380)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0x41b+2667-0xe86)};int
+text_len=(0x1911+1828-0x2035);int tmp_len=(0x85+9529-0x25be);CHAR tmp[
+ZPB_TEXT_SIZE_BYTES]={(0xaf7+4558-0x1cc5)};if(atRes->coding!=ZPB_UCS2){if(
atPb_EncodeText(pbDst,atRes->text,ZPB_TEXT_SIZE_BYTES)==ZUFI_SUCC){strncpy(atRes
-->text,pbDst+(0x3b1+7090-0x1f61),sizeof(atRes->text)-(0x4e6+3995-0x1480));}else{
-slog(PB_PRINT,SLOG_ERR,
+->text,pbDst+(0xec4+3338-0x1bcc),sizeof(atRes->text)-(0x114a+2800-0x1c39));}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<
-(0x556+2421-0xecb))return;memset(&text,(0xcbb+2821-0x17c0),ZPB_TEXT_SIZE_BYTES);
-text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>(0x232d+865-0x268c)){
-memset(&atRes->text,(0xf8d+1057-0x13ae),ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->text
-,text+(0x2076+943-0x2423),strlen(text)-(0xc04+1516-0x11ee));}}pbRecord.pbId=-
-(0x126c+3450-0x1fe5);pbRecord.pbIndex=(SINT32)atRes->index;strncpy(pbRecord.name
-,atRes->text,sizeof(pbRecord.name)-(0x382+6292-0x1c15));strncpy(pbRecord.
-mobilNumber,atRes->number1,sizeof(pbRecord.mobilNumber)-(0x1b1b+1657-0x2193));
+(0xc87+4352-0x1d87))return;memset(&text,(0xbed+5938-0x231f),ZPB_TEXT_SIZE_BYTES)
+;text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>(0xaa5+1922-0x1225))
+{memset(&atRes->text,(0x13c3+4435-0x2516),ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->
+text,text+(0x1a02+1555-0x2013),strlen(text)-(0x37a+6113-0x1b59));}}pbRecord.pbId
+=-(0xc72+220-0xd4d);pbRecord.pbIndex=(SINT32)atRes->index;strncpy(pbRecord.name,
+atRes->text,sizeof(pbRecord.name)-(0x200+4659-0x1432));strncpy(pbRecord.
+mobilNumber,atRes->number1,sizeof(pbRecord.mobilNumber)-(0x1511+3881-0x2439));
strncpy(pbRecord.officeNumber,atRes->number2,sizeof(pbRecord.officeNumber)-
-(0x71d+1363-0xc6f));strncpy(pbRecord.homeNumber,atRes->number3,sizeof(pbRecord.
-homeNumber)-(0x1a0c+583-0x1c52));strncpy(pbRecord.email,atRes->email,sizeof(
-pbRecord.email)-(0x8c9+4872-0x1bd0));pbRecord.pbLocation=ZPB_LOCATION_USIM;(VOID
-)atPb_LoadARecToPbmTable(&pbRecord);}VOID atPb_SetDelStatusMultOrAll(){if(
-g_zPb_DelStatusUsim.dealFailNum>(0x15cb+2802-0x20bd)){if(g_zPb_DelStatusUsim.
-dealSuccNum>(0x16ad+687-0x195c)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
+(0x803+80-0x852));strncpy(pbRecord.homeNumber,atRes->number3,sizeof(pbRecord.
+homeNumber)-(0x152c+2341-0x1e50));strncpy(pbRecord.email,atRes->email,sizeof(
+pbRecord.email)-(0x1d0+2468-0xb73));pbRecord.pbLocation=ZPB_LOCATION_USIM;(VOID)
+atPb_LoadARecToPbmTable(&pbRecord);}VOID atPb_SetDelStatusMultOrAll(){if(
+g_zPb_DelStatusUsim.dealFailNum>(0x118a+1142-0x1600)){if(g_zPb_DelStatusUsim.
+dealSuccNum>(0x6a0+2010-0xe7a)){(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 (0x2a+1425-0x5bb)
+#if (0x1bf5+760-0x1eed)
VOID atPb_RecvScpbwAddErr(UINT8*pErrCode){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
-ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x21bf+1121-0x261e)
-)==(0x21d0+1031-0x25d7))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73")
-;printf(
+ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x55+7247-0x1ca2))
+==(0xa1+7468-0x1dcd))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73");
+printf(
"\x70\x62\x3a\x52\x65\x63\x76\x20\x43\x4d\x45\x20\x45\x72\x72\x43\x6f\x64\x65\x3a\x20\x32\x30\x2e" "\n"
);}else{printf(
"\x70\x62\x3a\x52\x65\x63\x76\x20\x41\x74\x20\x53\x63\x70\x62\x77\x20\x61\x64\x64\x20\x45\x72\x72\x2e" "\n"
@@ -319,84 +318,84 @@
ZPB_NEW_ERROR);printf(
"\x70\x62\x3a\x52\x65\x63\x76\x20\x41\x74\x20\x53\x63\x70\x62\x77\x20\x6d\x6f\x64\x69\x66\x79\x20\x65\x72\x72\x2e" "\n"
);}VOID pb_AsctoHex(UINT16*pcHex,SINT32 iDstLen,UINT8 const*pcASC,SINT32 iSrcLen
-){UINT32 iOddOrEven=(0x2293+798-0x25b1);UINT8 iTemp=(0xe70+283-0xf8b);SINT32 i=
-(0xd04+4051-0x1cd7);if((NULL==pcHex)||(NULL==pcASC)||((0x1575+118-0x15eb)==
-iDstLen)||(iDstLen<(iSrcLen/(0x631+5506-0x1bb1)+(0x11aa+1370-0x1703)))){return;}
-for(i=(0x10fb+5032-0x24a3);i<iSrcLen;i++){if(iOddOrEven%(0x18d9+3022-0x24a5)==
-(0x7fd+1603-0xe40)){iTemp=*(pcASC+i);if((iTemp>=((char)(0x65b+8007-0x2572)))&&(
-iTemp<=((char)(0xc23+5186-0x202c)))){*(pcHex+i/(0xfbc+644-0x123e))|=(UINT8)(
-iTemp-(0xfc3+2162-0x1805))<<(0x75f+155-0x7f6);}else{*(pcHex+i/
-(0x4d0+5683-0x1b01))|=(UINT8)(iTemp-(0x1cba+1511-0x226a))<<(0xb83+4932-0x1ec3);}
-}else{iTemp=*(pcASC+i);if((iTemp>=((char)(0xc81+3215-0x18e0)))&&(iTemp<=
-((char)(0x416+8412-0x24b9)))){*(pcHex+i/(0x19f5+1300-0x1f07))|=iTemp-
-(0x4bc+1250-0x96e);}else{*(pcHex+i/(0x3f8+2547-0xde9))|=iTemp-
-(0x91d+3151-0x1535);}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,
-SINT32 iLength){int iRetVal=(0x3b5+8107-0x235f);char cTemp;int i=
-(0x650+1927-0xdd7);if(NULL==psUcs2){return-(0x2099+974-0x2466);}for(i=
-(0x1d3f+174-0x1ded);i<iLength;i++){if((0xb47+6411-0x2352)>psUcs2[i]){switch(
-psUcs2[i]){case(0xe6f+4617-0x206c):case(0xdfd+2057-0x15ab):case
-(0x1cbc+1132-0x20cc):case(0x15b9+3412-0x22b0):case(0xe2c+537-0xfe7):case
-(0x18d7+1304-0x1d74):case(0x1051+5770-0x265f):case(0xaf3+2251-0x1341):case
-(0x2f6+1423-0x807):case(0xa1a+4118-0x198c):case(0xa0c+5005-0x1d79):{break;}
+){UINT32 iOddOrEven=(0x37d+7257-0x1fd6);UINT8 iTemp=(0x705+4796-0x19c1);SINT32 i
+=(0x622+2407-0xf89);if((NULL==pcHex)||(NULL==pcASC)||((0x437+8416-0x2517)==
+iDstLen)||(iDstLen<(iSrcLen/(0x207+885-0x57a)+(0x20f+3878-0x1134)))){return;}for
+(i=(0xd09+1202-0x11bb);i<iSrcLen;i++){if(iOddOrEven%(0x1674+2360-0x1faa)==
+(0xe11+2316-0x171d)){iTemp=*(pcASC+i);if((iTemp>=((char)(0x194+8798-0x23c2)))&&(
+iTemp<=((char)(0x1c79+1890-0x23a2)))){*(pcHex+i/(0x74f+766-0xa4b))|=(UINT8)(
+iTemp-(0x6ef+5808-0x1d6f))<<(0x1453+2723-0x1ef2);}else{*(pcHex+i/
+(0xcd0+3718-0x1b54))|=(UINT8)(iTemp-(0x5cb+1290-0xa9e))<<(0x16d9+2928-0x2245);}}
+else{iTemp=*(pcASC+i);if((iTemp>=((char)(0x5e2+7150-0x21a0)))&&(iTemp<=
+((char)(0x875+4688-0x1a8c)))){*(pcHex+i/(0xe7b+1689-0x1512))|=iTemp-
+(0x19c1+1484-0x1f5d);}else{*(pcHex+i/(0x2224+1218-0x26e4))|=iTemp-
+(0x13a+3878-0x1029);}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,
+SINT32 iLength){int iRetVal=(0xa33+576-0xc72);char cTemp;int i=
+(0x1666+127-0x16e5);if(NULL==psUcs2){return-(0xd31+3159-0x1987);}for(i=
+(0x1d0+8737-0x23f1);i<iLength;i++){if((0x1308+1522-0x17fa)>psUcs2[i]){switch(
+psUcs2[i]){case(0x1edb+1892-0x2633):case(0xfd6+1306-0x1495):case
+(0xae6+784-0xd9a):case(0x5ec+3940-0x14f3):case(0x1adf+3067-0x267c):case
+(0xcc+6530-0x19d3):case(0x49b+6543-0x1dae):case(0x1c5c+2290-0x24d1):case
+(0x12a8+2347-0x1b55):case(0x6d2+1084-0xa6a):case(0x896+3310-0x1564):{break;}
default:{cTemp=(char)G_ZPB_NEWUCS2TOGSM[psUcs2[i]];if(ZPB_NON_GSM==cTemp){
-iRetVal=(0x189+8323-0x220c);}break;}}}else{switch(psUcs2[i]){case
-(0xf03+2964-0x1703):case(0x14d6+2106-0x196a):case(0x16e4+2610-0x1d83):case
-(0x2624+327-0x23d0):case(0x43c+8599-0x222a):case(0xd8c+5933-0x2119):case
-(0x50b+259-0x246):case(0x118f+4071-0x1dd3):case(0x1d62+845-0x1cf7):case
-(0xf12+1600-0x11b4):{break;}default:{iRetVal=(0x167b+2924-0x21e7);break;}}}if(
-(0x84+7368-0x1d4c)==iRetVal){break;}}return iRetVal;}static UINT8
+iRetVal=(0x126f+1487-0x183e);}break;}}}else{switch(psUcs2[i]){case
+(0x25da+1223-0x270d):case(0x131c+4652-0x21a2):case(0xaf7+3060-0x1358):case
+(0x101b+6209-0x24c1):case(0x1977+1208-0x1a86):case(0x744+6398-0x1ca2):case
+(0x1584+567-0x13f3):case(0x6c7+4345-0x141d):case(0x602+2516-0xc1e):case
+(0x2646+780-0x25b4):{break;}default:{iRetVal=(0x2fc+7520-0x205c);break;}}}if(
+(0xd77+3359-0x1a96)==iRetVal){break;}}return iRetVal;}static UINT8
atPb_EncodeNameToUcs2(char*pbDst,UINT32 iDstLen,char const*pbSrc){UINT16 acHex[
-(0x201+8172-0x20ed)]={(0x26d+6903-0x1d64)};SINT32 srclen=(0xb32+5680-0x2162);
-SINT32 rest=(0x3ed+6112-0x1bcd);assert(pbDst!=NULL&&pbSrc!=NULL);srclen=(SINT32)
+(0x212+1794-0x814)]={(0x198+2311-0xa9f)};SINT32 srclen=(0x72b+4490-0x18b5);
+SINT32 rest=(0xf50+2406-0x18b6);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,(0x1a9f+2806-0x2495),(UINT8*)pbSrc,srclen);rest
-=atPb_IfUcs2IsSMS7(acHex,srclen/(0xe5b+1027-0x125a));if(rest==
-(0x745+4636-0x1960)){return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest==
-(0x3ed+98-0x44f)){if(strlen(pbSrc)+(0x1ab8+1355-0x2001)<iDstLen){memcpy(pbDst,
-"\x38\x30",(0xe39+4747-0x20c2));memcpy(pbDst+(0x2f8+4977-0x1667),pbSrc,srclen);
-return ZUFI_SUCC;}}return ZUFI_FAIL;}SINT32 atPb_FindIdleIndex(T_zPb_WebContact
-const*pbRecv,BOOL pbNewFlag){SINT32 count=(0x11bf+4761-0x2457);SINT32 total=
-(0x90c+6772-0x2380);SINT32*IndexType=NULL;if((NULL==pbRecv)){slog(PB_PRINT,
+,pbSrc,srclen);pb_AsctoHex(acHex,(0x1ac+8395-0x2177),(UINT8*)pbSrc,srclen);rest=
+atPb_IfUcs2IsSMS7(acHex,srclen/(0x7a4+5338-0x1c7a));if(rest==(0x403+2160-0xc72))
+{return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest==(0x920+7201-0x2541))
+{if(strlen(pbSrc)+(0x1f2b+1431-0x24c0)<iDstLen){memcpy(pbDst,"\x38\x30",
+(0x25b+8290-0x22bb));memcpy(pbDst+(0x8c2+1823-0xfdf),pbSrc,srclen);return
+ZUFI_SUCC;}}return ZUFI_FAIL;}SINT32 atPb_FindIdleIndex(T_zPb_WebContact const*
+pbRecv,BOOL pbNewFlag){SINT32 count=(0x20d3+287-0x21f1);SINT32 total=
+(0x1b6b+363-0x1cd6);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-(0x20b9+387-0x223b);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv->
-pbLocation){total=g_zPb_SimIndex[(0x9b6+3450-0x1730)];IndexType=g_zPb_SimIndex;}
+);return-(0xd58+3256-0x1a0f);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv->
+pbLocation){total=g_zPb_SimIndex[(0x1f85+505-0x217e)];IndexType=g_zPb_SimIndex;}
else if(ZPB_LOCATION_AP==pbRecv->pbLocation){total=g_zPb_ApIndex[
-(0xee4+4910-0x2212)];IndexType=g_zPb_ApIndex;}for(;count<=total;count++){if((
+(0x9c8+2159-0x1237)];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-(0x1734+400-0x18c3);}slog(PB_PRINT,SLOG_DEBUG,
+,count);return-(0x1950+1204-0x1e03);}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=(0xe45+4830-0x2123);SINT32 i=
-(0x141+2964-0xcd5);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0xf3+7201-0x1d14)};CHAR str[
-(0x325+808-0x64a)]={(0x2f5+4446-0x1453)};SINT32 length=(0x3ca+2094-0xbf8);length
-=atPb_String2Bytes(pSrc,buf,len);for(i=(0xba+5939-0x17ed);i<length;i+=
-(0x5cc+5318-0x1a90)){if(buf[i]!=(0x4a0+1573-0xac5)||buf[i+(0x7b5+6614-0x218a)]>
-(0x57d+7356-0x21ba)){return FALSE;}pDst[j++]=buf[i+(0x7b1+5869-0x1e9d)];}return
+CHAR*pSrc,CHAR*pDst,SINT32 len){SINT32 j=(0x2d4+1204-0x788);SINT32 i=
+(0x811+3085-0x141e);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0x1df3+2187-0x267e)};CHAR
+str[(0x76d+360-0x8d2)]={(0x136+56-0x16e)};SINT32 length=(0x86b+3312-0x155b);
+length=atPb_String2Bytes(pSrc,buf,len);for(i=(0x1394+1582-0x19c2);i<length;i+=
+(0x340+2645-0xd93)){if(buf[i]!=(0x331+8176-0x2321)||buf[i+(0x1867+1759-0x1f45)]>
+(0xaa+7156-0x1c1f)){return FALSE;}pDst[j++]=buf[i+(0x1119+3832-0x2010)];}return
TRUE;}VOID atWeb_AddOrModOnePbUsim(T_zPb_WebContact*pWebPbContact,BOOL pbNewFlag
-,sem_t semId){int atRes=(0x25ab+197-0x2670);CHAR pbName[ZPB_TEXT_SIZE_BYTES+
-(0x896+2741-0x1348)]={(0x39d+2055-0xba4)};CHAR buf_src[ZPB_TEXT_SIZE_BYTES+
-(0x1f5+4271-0x12a1)]={(0x1296+222-0x1374)};CHAR buf_dest[ZPB_TEXT_SIZE_BYTES+
-(0x122b+411-0x13c3)]={(0x137+5323-0x1602)};T_zPb_ScpbwParam scpbwParam={
-(0x182b+2365-0x2168)};int len=(0xdbc+3640-0x1bf4);atPb_WebRecodeShow(
+,sem_t semId){int atRes=(0x344+49-0x375);CHAR pbName[ZPB_TEXT_SIZE_BYTES+
+(0x451+2463-0xded)]={(0x44+5014-0x13da)};CHAR buf_src[ZPB_TEXT_SIZE_BYTES+
+(0x100a+2182-0x188d)]={(0xf8+7162-0x1cf2)};CHAR buf_dest[ZPB_TEXT_SIZE_BYTES+
+(0x1c0c+2626-0x264b)]={(0x5c2+2769-0x1093)};T_zPb_ScpbwParam scpbwParam={
+(0xc3d+2471-0x15e4)};int len=(0x1238+4794-0x24f2);atPb_WebRecodeShow(
pWebPbContact);if(atPb_GetASCII(pWebPbContact->name,pbName,strlen(pWebPbContact
-->name))){scpbwParam.coding=(0xa2d+150-0xac3);}else{len=atPb_String2Bytes(
+->name))){scpbwParam.coding=(0x8cd+4335-0x19bc);}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=(0x105b+5106-0x244c);}scpbwParam.pbIndex=pWebPbContact->
+,len);scpbwParam.coding=(0xbe3+1023-0xfe1);}scpbwParam.pbIndex=pWebPbContact->
pbIndex;strncpy(scpbwParam.name,pbName,sizeof(scpbwParam.name)-
-(0x138c+4928-0x26cb));strncpy(scpbwParam.mobilNumber,pWebPbContact->mobilNumber,
-sizeof(scpbwParam.mobilNumber)-(0x878+4913-0x1ba8));strncpy(scpbwParam.
+(0x15a1+1030-0x19a6));strncpy(scpbwParam.mobilNumber,pWebPbContact->mobilNumber,
+sizeof(scpbwParam.mobilNumber)-(0xc04+1530-0x11fd));strncpy(scpbwParam.
officeNumber,pWebPbContact->officeNumber,sizeof(scpbwParam.officeNumber)-
-(0x1353+529-0x1563));strncpy(scpbwParam.homeNumber,pWebPbContact->homeNumber,
-sizeof(scpbwParam.homeNumber)-(0x1028+1855-0x1766));strncpy(scpbwParam.email,
-pWebPbContact->email,sizeof(scpbwParam.email)-(0x2da+8357-0x237e));
+(0x162a+982-0x19ff));strncpy(scpbwParam.homeNumber,pWebPbContact->homeNumber,
+sizeof(scpbwParam.homeNumber)-(0x1eb8+902-0x223d));strncpy(scpbwParam.email,
+pWebPbContact->email,sizeof(scpbwParam.email)-(0x1dd4+182-0x1e89));
ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,MSG_CMD_ADD_MODIFY_PB_REQ,sizeof(
-T_zPb_ScpbwParam),(unsigned char*)&scpbwParam,(0x600+5079-0x19d7));sem_wait(&
-g_Pb_sem_id);if(g_PbOptRsp.result!=(0x4b2+6669-0x1ebe)){(VOID)sc_cfg_set(
+T_zPb_ScpbwParam),(unsigned char*)&scpbwParam,(0x475+2239-0xd34));sem_wait(&
+g_Pb_sem_id);if(g_PbOptRsp.result!=(0x532+7211-0x215c)){(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(
@@ -409,16 +408,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=(0x380+6771-0x1df2);T_zPb_Header pbHeader={(0xde1+5709-0x242e)};BOOL
-pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0xeb0+2967-0x1a47)};CHAR ptFlag[
-(0x433+8292-0x2483)]={(0x1a9b+1033-0x1ea4)};printf(
+idleIndex=(0x1540+298-0x1669);T_zPb_Header pbHeader={(0x8bb+385-0xa3c)};BOOL
+pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0xca6+3738-0x1b40)};CHAR ptFlag[
+(0x3a3+438-0x545)]={(0x90b+1663-0xf8a)};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(-(0xb95+1919-0x1313)==webPbContact->pbId){slog(PB_PRINT,
+,webPbContact->pbId);if(-(0xe13+5243-0x228d)==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!=-(0x865+2685-0x12e1)){webPbContact->pbIndex=idleIndex;
+,idleIndex);if(idleIndex!=-(0xa9d+7041-0x261d)){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(
@@ -437,28 +436,28 @@
);(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(
-(0x1004+1337-0x153d)==strcmp("\x30",ptFlag)&&-(0x117+9241-0x252f)!=webPbContact
-->del_id){delRecord.delId[(0x173+4639-0x1392)]=webPbContact->del_id;
-atWeb_DelOnepb(&delRecord,semId);}}VOID atWeb_DelOnepb(T_zPb_DelInfo*delRecord,
-sem_t semId){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x18b7+165-0x195c)};int atRes=
-(0x8e5+831-0xc24);SINT32 delTime=(0x19f2+2297-0x22eb);
+(0xc5c+4189-0x1cb9)==strcmp("\x30",ptFlag)&&-(0xb8a+1665-0x120a)!=webPbContact->
+del_id){delRecord.delId[(0x1144+783-0x1453)]=webPbContact->del_id;atWeb_DelOnepb
+(&delRecord,semId);}}VOID atWeb_DelOnepb(T_zPb_DelInfo*delRecord,sem_t semId){
+CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x892+7263-0x24f1)};int atRes=
+(0x98+6542-0x1a26);SINT32 delTime=(0x50d+8564-0x2681);
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[(0x10e3+2046-0x18e1)],delRecord->delLocation);if(
+,delRecord->delIndex[(0x1dbc+509-0x1fb9)],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[(0x746+7068-0x22b0)]={(0xb0b+43-0xb36)};
+delRecord->delLocation){CHAR pbMax[(0xad3+5001-0x1e2a)]={(0x996+2401-0x12f7)};
sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));if((delRecord->delIndex[
-(0x86f+7446-0x2585)]>=(0x1514+4074-0x24fd))&&(delRecord->delIndex[
-(0x1f+7067-0x1bba)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
+(0x6ab+6601-0x2074)]>=(0x15dc+3485-0x2378))&&(delRecord->delIndex[
+(0x1784+3609-0x259d)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
MODULE_ID_AT_CTL,MSG_CMD_DELETE_PB_REQ,sizeof(int),(unsigned char*)&delRecord->
-delIndex[(0x119a+4977-0x250b)],(0x1206+1403-0x1781));sem_wait(&g_Pb_sem_id);if(
-g_PbOptRsp.result!=(0x3c4+2710-0xe59)){sc_cfg_set(ZPB_NV_WRITE_FLAG,
-ZPB_DEL_ERROR);}sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}if(ZPB_DB_OK==
+delIndex[(0xda1+5573-0x2366)],(0x533+1868-0xc7f));sem_wait(&g_Pb_sem_id);if(
+g_PbOptRsp.result!=(0x1dc+554-0x405)){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(
"\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\x53\x49\x4d\x20\x73\x75\x63\x63\x65\x73\x73" "\n"
@@ -467,9 +466,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]={(0x76d+2004-0xf41)};int atRes=(0x13f2+2043-0x1bed);SINT32
- delCount=(0x6a4+2574-0x10b2);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
-g_zPb_DelStatusUsim,(0x314+1078-0x74a),sizeof(T_zPb_DelStatusMultiOrAll));
+ZSVR_AT_RES_CODE_LEN]={(0x14e2+2471-0x1e89)};int atRes=(0x165c+1296-0x1b6c);
+SINT32 delCount=(0x166a+1347-0x1bad);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
+g_zPb_DelStatusUsim,(0x49d+7045-0x2022),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"
@@ -480,14 +479,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[
-(0x12a6+2496-0x1c34)]={(0x1298+4681-0x24e1)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,
-pbMax,sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0x1c31+1605-0x2275))&&(
+(0xe57+5566-0x23e3)]={(0xae5+822-0xe1b)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,
+sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0x59+6303-0x18f7))&&(
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]
-,(0xe51+4937-0x219a));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0x55+3727-0xee3)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+,(0x13d+5998-0x18ab));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0x17c4+1509-0x1da8)){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,
@@ -495,14 +494,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={(0x14bc+2468-0x1e60)};
-SINT32 i=(0x158d+979-0x195f);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=
-(0x15d1+521-0x17d9);i<=ZPB_AP_MAX_RECORD;i++){if((0x131f+3415-0x2076)!=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]={
-(0x628+1298-0xb3a)};snprintf(sql,sizeof(sql)-(0xad1+2156-0x133c),
+T_zPb_DbResult result=ZPB_DB_OK;T_zPb_ApIndex index={(0x99f+529-0xbb0)};SINT32 i
+=(0x1149+4860-0x2444);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=(0x75c+4075-0x1746);i<=
+ZPB_AP_MAX_RECORD;i++){if((0x158f+615-0x17f6)!=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]={(0xded+2955-0x1978)};
+snprintf(sql,sizeof(sql)-(0x41b+4705-0x167b),
"\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(
@@ -511,28 +510,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]={(0x1063+2050-0x1865)};int atRes=
-(0x119+7250-0x1d6b);UINT32 i=(0x1048+2249-0x1911);CHAR sql[ZPB_MAX_BYTES_DB]={
-(0x1a13+2411-0x237e)};UINT32 count=(0x680+59-0x6bb);if(pdelRecord!=NULL){memset(
-&g_zPb_DelStatusUsim,(0x5c3+3947-0x152e),sizeof(T_zPb_DelStatusMultiOrAll));
-g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_ALL_RECORD_USIM;snprintf(sql,sizeof(sql)-
-(0x1283+3329-0x1f83),
+CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x9da+1430-0xf70)};int atRes=
+(0x532+1319-0xa59);UINT32 i=(0x193c+1577-0x1f65);CHAR sql[ZPB_MAX_BYTES_DB]={
+(0xb7c+1222-0x1042)};UINT32 count=(0x1185+4400-0x22b5);if(pdelRecord!=NULL){
+memset(&g_zPb_DelStatusUsim,(0xb8b+4545-0x1d4c),sizeof(T_zPb_DelStatusMultiOrAll
+));g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_ALL_RECORD_USIM;snprintf(sql,sizeof(sql)
+-(0xee6+2170-0x175f),
"\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((0x8c0+4455-0x1a27)<count){CHAR pbMin[
-(0x2d2+6348-0x1b6c)]={(0xc08+1501-0x11e5)};CHAR pbMax[(0xb8b+4091-0x1b54)]={
-(0x1a0f+979-0x1de2)};UINT32 i_pbMin=(0xa41+2358-0x1377);UINT32 i_pbMax=
-(0x20f8+1210-0x25b2);sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
+atPb_DbCountTableLineCb,&count);if((0x6d+8820-0x22e1)<count){CHAR pbMin[
+(0x15cc+1636-0x1bfe)]={(0x1629+189-0x16e6)};CHAR pbMax[(0x1c30+781-0x1f0b)]={
+(0x10a4+151-0x113b)};UINT32 i_pbMin=(0x106+1745-0x7d7);UINT32 i_pbMax=
+(0x4da+5670-0x1b00);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,
-(0x1848+1279-0x1d47));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0xa82+5823-0x2140)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+(0x16c0+3993-0x2659));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0x195d+3142-0x25a2)){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)-
-(0x14b+9590-0x26c0),
+(0x859+1822-0xf76),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_USIM);if(ZPB_DB_OK==atPb_ExecDbSql(sql,NULL,NULL)
){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);atPb_ClearSimPbmIndexArray
diff --git a/ap/app/zte_comm/sms/src/sms_code.c b/ap/app/zte_comm/sms/src/sms_code.c
index 0fb3608..ade0ec0 100755
--- a/ap/app/zte_comm/sms/src/sms_code.c
+++ b/ap/app/zte_comm/sms/src/sms_code.c
@@ -6,661 +6,665 @@
#ifdef WIN32
#include <wchar.h>
#endif
-#define NON_GSM (0x1d54+1673-0x23bd)
+#define NON_GSM (0x493+2173-0xcf0)
#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[(0x877+6334-0x2125)]={
-((char)(0x7df+5100-0x1b9b)),((char)(0xa0a+6554-0x2373)),
-((char)(0xcaf+2311-0x1584)),((char)(0x1d23+1916-0x246c)),
-((char)(0x102b+465-0x11c8)),((char)(0x2095+402-0x21f2)),
-((char)(0x3a4+237-0x45b)),((char)(0x167b+2952-0x21cc)),
-((char)(0xc0d+6159-0x23e4)),((char)(0x5ca+4967-0x18f8)),
-((char)(0xc82+5294-0x20ef)),((char)(0x4ec+2134-0xd00)),
-((char)(0x7a3+2807-0x1257)),((char)(0x1b08+2743-0x257b)),
-((char)(0xc61+2335-0x153b)),((char)(0x628+7314-0x2274))};extern SMS_PARAM
+const_header;char g_zUfiSms_DigAscMap[(0x114+9341-0x2581)]={
+((char)(0xc6f+4393-0x1d68)),((char)(0x51f+7422-0x21ec)),
+((char)(0x110+8980-0x23f2)),((char)(0x45a+806-0x74d)),
+((char)(0xa59+2918-0x158b)),((char)(0x2a6+6845-0x1d2e)),
+((char)(0x7c0+3400-0x14d2)),((char)(0x150f+3932-0x2434)),
+((char)(0x3df+8116-0x235b)),((char)(0x17c+8634-0x22fd)),
+((char)(0x1732+548-0x1915)),((char)(0x5d+574-0x259)),
+((char)(0x13b8+4979-0x26e8)),((char)(0x147+5362-0x15f5)),
+((char)(0x3bb+1749-0xa4b)),((char)(0x185c+858-0x1b70))};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)(0xf66+4403-0x2079)),((char)(0x5d5+5339-0x1a90)),
-((char)(0x37d+8307-0x23d0)),((char)(0xa94+5296-0x1f24)),
-((char)(0x215b+537-0x2354)),((char)(0x1a9+7592-0x1f31)),
-((char)(0xbc3+5357-0x2090)),((char)(0xd9+2309-0x9be)),
-((char)(0x13a8+2626-0x1dca)),((char)(0x219+5759-0x1878)),
-((char)(0x76d+6760-0x21b5)),((char)(0x10cc+1891-0x180f)),
-((char)(0x1725+288-0x1825)),((char)(0x5cf+4013-0x155c)),
-((char)(0x1303+4266-0x238d)),((char)(0x45b+7982-0x2369)),
-((char)(0x47b+7994-0x2395)),((char)(0x213+3859-0x1106)),
-((char)(0x8a+2945-0xbeb)),((char)(0x63b+4039-0x15e2)),
-((char)(0x3e7+7087-0x1f76)),((char)(0x1384+1392-0x18d4)),
-((char)(0x654+1873-0xd85)),((char)(0x497+5098-0x1861)),
-((char)(0x789+5636-0x1d6d)),((char)(0x682+675-0x905)),
-((char)(0x10b9+970-0x1463)),((char)(0xf9c+5276-0x2418)),
-((char)(0x1df2+1878-0x2528)),((char)(0x1d48+878-0x2096)),
-((char)(0x1c41+1567-0x2240)),((char)(0xcc2+762-0xf9c)),
-((char)(0x2c8+7542-0x201e)),((char)(0x217c+1020-0x2557)),(0x585+8137-0x252c),
-((char)(0x531+5011-0x18a1)),(0x689+3354-0x13a1),((char)(0x3b4+1786-0xa89)),
-((char)(0x421+2503-0xdc2)),(0x1b28+484-0x1ce5),((char)(0x1557+463-0x16fe)),
-((char)(0xf42+3779-0x1ddc)),((char)(0xa21+4100-0x19fb)),
-((char)(0x689+6047-0x1dfd)),((char)(0x1487+3831-0x2352)),((char)(0x89+161-0xfd))
-,((char)(0xc9d+4220-0x1ceb)),((char)(0x1e3d+731-0x20e9)),
-((char)(0x1fff+315-0x210a)),((char)(0x219c+1143-0x25e2)),
-((char)(0x3a2+7406-0x205e)),((char)(0x1c3b+968-0x1fd0)),
-((char)(0x4d4+4160-0x14e0)),((char)(0x3ef+371-0x52d)),
-((char)(0x643+8260-0x2651)),((char)(0x415+2713-0xe77)),
-((char)(0xd29+4249-0x1d8a)),((char)(0x41f+131-0x469)),((char)(0x6db+1084-0xadd))
-,((char)(0xaa2+3851-0x1972)),((char)(0xe73+4392-0x1f5f)),
-((char)(0xae6+4337-0x1b9a)),((char)(0x931+4344-0x19eb)),
-((char)(0x1141+3830-0x1ff8)),(0x31a+5033-0x16c3),((char)(0xaa8+3983-0x19f6)),
-((char)(0xc03+6599-0x2588)),((char)(0x1c57+2161-0x2485)),
-((char)(0x13d5+2452-0x1d25)),((char)(0xb11+5070-0x1e9a)),
-((char)(0x19a9+2907-0x24be)),((char)(0x683+904-0x9c4)),
-((char)(0xa11+6878-0x24a7)),((char)(0xa2f+3067-0x15e1)),
-((char)(0x304+9167-0x2689)),((char)(0x54+408-0x1a1)),((char)(0xfda+276-0x10a2)),
-((char)(0xe88+1173-0x12d0)),((char)(0xfb0+5513-0x24eb)),
-((char)(0x146b+323-0x155f)),((char)(0xdcc+1171-0x120f)),
-((char)(0x4c1+8824-0x26e8)),((char)(0x117+3658-0xf0f)),
-((char)(0x1879+1087-0x1c65)),((char)(0xf7f+826-0x1265)),
-((char)(0x5e3+1771-0xc79)),((char)(0x542+5017-0x1885)),
-((char)(0x1009+1289-0x14bb)),((char)(0x2032+317-0x2117)),
-((char)(0x1866+1361-0x1d5e)),((char)(0x864+255-0x909)),6972,(0x20e7+3909-0x14fd)
-,(0x1b6c+3861-0xf43),(0x1f8f+4010-0x1425),(0x177a+717-0x1a36),
-((char)(0xa7c+4512-0x1bfc)),((char)(0x933+5125-0x1cd7)),
-((char)(0xb10+6190-0x22dc)),((char)(0x3cd+7625-0x2133)),
-((char)(0x94c+1173-0xd7d)),((char)(0x1049+4920-0x231c)),
-((char)(0x1933+131-0x1950)),((char)(0xfb8+957-0x130e)),
-((char)(0x705+4004-0x1641)),((char)(0x932+4227-0x194c)),
-((char)(0x22d+4400-0x12f3)),((char)(0x6d7+57-0x6a5)),
-((char)(0x1303+2735-0x1d46)),((char)(0x74d+3398-0x1426)),
-((char)(0x128+8018-0x200c)),((char)(0x1c4+3183-0xdc4)),((char)(0xd56+357-0xe4b))
-,((char)(0x661+1301-0xb05)),((char)(0x18c8+1006-0x1c44)),
-((char)(0x142d+1603-0x19fd)),((char)(0x6e8+5449-0x1bbd)),
-((char)(0xd0f+4685-0x1ee7)),((char)(0xd02+3421-0x19e9)),
-((char)(0x7a9+4248-0x17ca)),((char)(0xec2+5014-0x21e0)),
-((char)(0x1dc4+2097-0x257c)),((char)(0x1ac4+2589-0x2467)),6952,
-(0x1e4c+1443-0x8af),6953,(0x1eb8+5421-0x18a8),((char)(0xa92+3239-0x1719)),
-((char)(0x2416+755-0x26e9)),((char)(0x209+5995-0x1954)),
-((char)(0x33a+5767-0x19a1)),((char)(0x1d1f+435-0x1eb2)),
-((char)(0x4f3+7268-0x2137)),((char)(0x92+4759-0x1309)),
-((char)(0xe85+3158-0x1abb)),((char)(0x86d+4353-0x194e)),
-((char)(0x4d9+472-0x691)),((char)(0x1aa1+2311-0x2388)),
-((char)(0x17e7+2758-0x228d)),((char)(0x3a8+5267-0x181b)),
-((char)(0xc1a+1407-0x1179)),((char)(0x87a+7641-0x2633)),
-((char)(0xeea+1252-0x13ae)),((char)(0xd14+4292-0x1db8)),
-((char)(0xcd1+4430-0x1dff)),((char)(0xb79+2694-0x15df)),
-((char)(0x23f8+491-0x25c3)),((char)(0x666+5402-0x1b60)),
-((char)(0xab+6938-0x1ba5)),((char)(0xa62+1452-0xfee)),
-((char)(0xdd3+1734-0x1479)),((char)(0xc43+5998-0x2391)),
-((char)(0xb0d+2435-0x1470)),((char)(0xdd7+499-0xfaa)),
-((char)(0x15e8+624-0x1838)),((char)(0x1d85+2151-0x25cc)),
-((char)(0x6b0+467-0x863)),((char)(0x170b+1973-0x1ea0)),
-((char)(0x37f+2027-0xb4a)),((char)(0xad+3486-0xe2b)),
-((char)(0x1aa2+1783-0x2179)),(0x130+3236-0xd94),((char)(0x522+2256-0xdd2)),
-(0x19bd+1070-0x1dea),(0x191+2870-0xca3),(0x1a7b+2292-0x236c),
-((char)(0xd12+5304-0x21aa)),(0xfe3+2722-0x1a26),((char)(0xaa8+5970-0x21da)),
-((char)(0x2259+571-0x2474)),((char)(0x15fc+1262-0x1aca)),
-((char)(0x109+4921-0x1422)),((char)(0x542+6128-0x1d12)),
-((char)(0x346+339-0x479)),((char)(0x42b+2937-0xf84)),((char)(0x973+5173-0x1d88))
-,((char)(0x6df+4499-0x1852)),((char)(0x69+2806-0xb3f)),
-((char)(0x199c+3421-0x26d9)),((char)(0xcbf+5291-0x214a)),
-((char)(0x1593+3795-0x2446)),((char)(0x37d+2643-0xdb0)),
-((char)(0x4af+4008-0x1437)),((char)(0x1c8d+1015-0x2064)),(0xfcd+4856-0x22ba),
-((char)(0x285+2245-0xb2a)),((char)(0xe64+1649-0x14b5)),
-((char)(0x147a+2538-0x1e44)),((char)(0x1344+1177-0x17bd)),
-((char)(0x1f41+287-0x2040)),((char)(0x7f7+5243-0x1c52)),(0x440+4354-0x14e2),
-((char)(0x89f+1247-0xd5e)),((char)(0x477+3659-0x12a2)),
-((char)(0x399+1976-0xb31)),((char)(0x9ea+2571-0x13d5)),(0x1717+657-0x194d),
-(0x18fc+851-0x1c41),(0xa81+4122-0x1a7f),(0x1315+4643-0x252f),
-((char)(0x1242+5343-0x2701)),(0x17c6+3372-0x24d3),((char)(0x15e7+2332-0x1ee3)),
-((char)(0x15c+568-0x374)),((char)(0x72b+4599-0x1902)),((char)(0x743+870-0xa89)),
-((char)(0x17cd+2936-0x2325)),((char)(0xe4+2636-0xb10)),((char)(0x698+340-0x7cc))
-,(0x688+1581-0xc58),((char)(0xbb4+1353-0x10dd)),((char)(0x702+6348-0x1fae)),
-((char)(0x62f+8005-0x2554)),((char)(0x862+981-0xc17)),(0x65b+4519-0x17a6),
-((char)(0xad6+2161-0x1327)),((char)(0x503+8264-0x252b)),
-((char)(0x8a+1110-0x4c0)),((char)(0x59d+4846-0x186b)),
-((char)(0xa41+7306-0x26ab)),(0xa0b+5994-0x2117),((char)(0xe57+2243-0x16fa)),
-((char)(0x193c+1085-0x1d59)),(0xe70+5551-0x2401),(0x2334+528-0x24c5),
-((char)(0x2403+14-0x23f1)),((char)(0x180+1905-0x8d1)),
-((char)(0x175c+1633-0x1d9d)),(0xbe5+3062-0x1760),(0x1235+2748-0x1ce2),
-(0x19a7+1405-0x1f07),((char)(0x2360+718-0x260e)),(0x52+6878-0x1b2c),
-(0x617+5531-0x1bad),((char)(0x1ac6+831-0x1de5)),((char)(0x10fb+228-0x11bf)),
-(0x35c+5691-0x1990),((char)(0x196d+1807-0x205c)),((char)(0x533+6643-0x1f06)),
-((char)(0xb85+2053-0x136a)),((char)(0xc7b+147-0xcee)),(0x13d+5636-0x16c4),
-(0x34+5447-0x1573),((char)(0x29f+6067-0x1a32)),((char)(0x6b+4425-0x1194)),
-((char)(0x1ac0+1564-0x20bc)),(0x3cf+1959-0xafa),((char)(0x682+77-0x6af)),
-(0x178+705-0x42d),(0x82b+4635-0x1a40),((char)(0x46+5393-0x1537)),
-((char)(0x391+7745-0x21b2)),(0x180+4452-0x1266),((char)(0x2040+734-0x22fe)),
-((char)(0x72d+583-0x954)),((char)(0x195d+138-0x19c7)),};const unsigned short
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0xe6+3544-0xebc)]={{(0xa24+2986-0x15c5)
-,(0x1c7f+934-0x1f3e)},{(0xa46+4142-0x1a6a),(0x11ef+3235-0x1e86)},{
-(0xc3d+603-0xe8b),(0x2031+392-0x21ac)},{(0x16a0+731-0x1967),(0x2663+87-0x265c)},
-{(0x2491+493-0x2656),(0xc01+6014-0x2304)},{(0x12a6+5094-0x2663),
-(0x1893+639-0x1a95)},{(0x153f+3952-0x2480),(0x1173+2871-0x1c4e)},{
-(0xc09+1584-0x11fd),(0x1426+1133-0x1838)},{(0x1077+2110-0x1878),
-(0x1d04+486-0x1e6c)},{(0xe91+2316-0x175f),(0x8a0+6545-0x21d4)},{
-(0x269+5250-0x16ab),(0xa27+7397-0x2690)},{(0x936+551-0xb1c),(0x1c9a+2812-0x26d5)
-},{(0xf05+224-0xf9c),(0x1578+1635-0x1b0e)},{(0x174f+2433-0x2081),
-(0x922+2304-0x114f)},{(0x7ca+5360-0x1c65),(0x1602+318-0x1666)},{
-(0x10d2+2554-0x1a6b),(0x73f+2331-0xf79)},{(0x12eb+3881-0x21af),
-(0x2413+3638-0x119d)},{(0x708+4041-0x1668),(0x748+6272-0x1edb)},{
-(0xe04+2610-0x17c7),(0x1332+2930-0x1db1)},{(0x202+2681-0xc06),
-(0x2ab+9149-0x256e)},};const unsigned short Ucs2_To_Gsm7_SPANISH_Table_UCS[][
-(0x3f+6425-0x1956)]={{(0xdaf+2725-0x1844),(0xe6b+4221-0x1b54)},{
-(0x9f3+6853-0x24a6),(0x1f41+2134-0x23f1)},{(0xbfd+4162-0x1c2c),915},{
-(0xbc2+5053-0x1f6b),(0x9c5+6006-0x1da0)},{(0x119a+2406-0x1aeb),
-(0x763+8309-0x242f)},{(0x1176+1987-0x1923),(0x1d79+3004-0x2595)},{
-(0xb9f+1091-0xfcb),(0x8b2+1706-0xbb4)},{(0x8a8+3561-0x1679),(0x1e99+2906-0x2650)
-},{(0x779+6519-0x20d7),(0x19fd+613-0x18ca)},{(0x499+6746-0x1ed9),
-(0x15d3+2697-0x1cbe)},};const unsigned char Ucs2_To_Gsm7_SPANISH_Table_ASC[]={
+((char)(0x14d8+2281-0x1da1)),((char)(0x65a+3162-0x1294)),
+((char)(0x14d0+4426-0x25fa)),((char)(0x18eb+2562-0x22cd)),
+((char)(0x359+4561-0x150a)),((char)(0x2105+1099-0x2530)),
+((char)(0x22dd+925-0x265a)),((char)(0x761+7701-0x2556)),
+((char)(0x185+2450-0xaf7)),((char)(0x336+4077-0x1303)),
+((char)(0x9f8+2377-0x1321)),((char)(0x1765+3868-0x2661)),
+((char)(0xec8+910-0x1236)),((char)(0x3af+2045-0xb8c)),
+((char)(0x19e7+2807-0x24be)),((char)(0x228+7595-0x1fb3)),
+((char)(0xceb+2592-0x16eb)),((char)(0x1391+1410-0x18f3)),
+((char)(0x1a20+1072-0x1e30)),((char)(0xa99+1693-0x1116)),
+((char)(0x21f+4459-0x136a)),((char)(0x509+335-0x638)),((char)(0xa27+1233-0xed8))
+,((char)(0xe9a+5332-0x234e)),((char)(0x1622+1452-0x1bae)),
+((char)(0x2275+850-0x25a7)),((char)(0x1f13+964-0x22b7)),
+((char)(0x3d2+8296-0x241a)),((char)(0x1603+1804-0x1cef)),
+((char)(0x919+1130-0xd63)),((char)(0x2016+169-0x209f)),
+((char)(0x1b9a+864-0x1eda)),((char)(0x13a7+3812-0x226b)),
+((char)(0x22f0+531-0x24e2)),(0x100a+2630-0x1a2e),((char)(0xe5b+2516-0x180c)),
+(0x1b12+1451-0x20bb),((char)(0x7b7+5499-0x1d0d)),((char)(0x93+5029-0x1412)),
+(0x1474+2092-0x1c79),((char)(0x669+2507-0x100c)),((char)(0xec2+2334-0x17b7)),
+((char)(0x145f+3786-0x22ff)),((char)(0x123a+1446-0x17b5)),
+((char)(0x789+2581-0x1172)),((char)(0x10c0+1644-0x16ff)),
+((char)(0x19da+1578-0x1fd6)),((char)(0x152b+3608-0x2314)),
+((char)(0xdbb+3564-0x1b77)),((char)(0x1d6c+2378-0x2685)),
+((char)(0x2e5+4599-0x14aa)),((char)(0xb8+1954-0x827)),
+((char)(0x212f+847-0x244a)),((char)(0xb49+4914-0x1e46)),
+((char)(0x11c+4337-0x11d7)),((char)(0x1960+2383-0x2278)),
+((char)(0x2529+174-0x259f)),((char)(0x1a55+2478-0x23ca)),
+((char)(0x84c+7501-0x255f)),((char)(0x53d+387-0x685)),((char)(0xc62+69-0xc6b)),
+((char)(0x857+5273-0x1cb3)),((char)(0x442+8417-0x24e5)),
+((char)(0x150+5670-0x1737)),(0xa29+2292-0x131d),((char)(0xaf2+756-0xda5)),
+((char)(0xa5+3851-0xf6e)),((char)(0x183a+924-0x1b93)),
+((char)(0x1a09+2339-0x22e8)),((char)(0x630+4996-0x196f)),
+((char)(0xccd+5293-0x2134)),((char)(0x2446+293-0x2524)),
+((char)(0xc9c+6677-0x2669)),((char)(0x188c+1563-0x1e5e)),
+((char)(0x12a+4748-0x136c)),((char)(0xccb+6522-0x25fa)),
+((char)(0xe72+474-0x1000)),((char)(0x1c62+2481-0x25c6)),
+((char)(0xc33+4757-0x1e7a)),((char)(0x128a+2354-0x1b6d)),
+((char)(0x1dd8+1018-0x2182)),((char)(0x179+4209-0x1199)),
+((char)(0x563+7944-0x2419)),((char)(0x1c36+2334-0x2501)),
+((char)(0x1edd+556-0x20b5)),((char)(0xe72+2071-0x1634)),
+((char)(0x32d+6186-0x1b01)),((char)(0x241+6843-0x1ca5)),
+((char)(0x1258+2991-0x1daf)),((char)(0x5e2+3277-0x1256)),
+((char)(0x1929+1726-0x1f8d)),(0x1f25+984-0x7c1),(0x1dd8+8978-0x25bb),6974,6932,
+(0x1445+4628-0x2648),((char)(0x159c+175-0x162b)),((char)(0x909+4896-0x1bc8)),
+((char)(0x169f+2121-0x1e86)),((char)(0x808+6190-0x1fd3)),
+((char)(0x780+6011-0x1e97)),((char)(0x728+7165-0x22c0)),
+((char)(0x10f3+3879-0x1fb4)),((char)(0x10bf+2093-0x1885)),
+((char)(0x2c7+3954-0x11d1)),((char)(0x1a9b+918-0x1dc8)),
+((char)(0x187b+3719-0x2698)),((char)(0x1d4f+1800-0x23ec)),
+((char)(0xae3+7218-0x26a9)),((char)(0x718+2901-0x1200)),
+((char)(0x31b+2996-0xe61)),((char)(0x18d7+725-0x1b3d)),((char)(0xb41+480-0xcb1))
+,((char)(0x4fc+6752-0x1eeb)),((char)(0x4e0+1174-0x904)),
+((char)(0x1557+385-0x1665)),((char)(0xa18+4054-0x197a)),
+((char)(0x181c+3083-0x23b2)),((char)(0xa39+5521-0x1f54)),
+((char)(0x1acf+1238-0x1f2e)),((char)(0x957+4720-0x1b4f)),
+((char)(0x2d0+7276-0x1ec3)),((char)(0x3df+4897-0x1686)),6952,6976,
+(0x22d9+4385-0x18d1),6973,((char)(0x87f+3501-0x160c)),
+((char)(0x1d3d+480-0x1efd)),((char)(0x12f6+471-0x14ad)),
+((char)(0xb81+2984-0x1709)),((char)(0x74a+8010-0x2674)),
+((char)(0x3e1+8805-0x2626)),((char)(0x57f+1238-0xa35)),((char)(0x575+799-0x874))
+,((char)(0x17ca+415-0x1949)),((char)(0xd5+399-0x244)),
+((char)(0xbb1+4804-0x1e55)),((char)(0xaab+7018-0x25f5)),
+((char)(0x30d+8750-0x251b)),((char)(0x182b+1771-0x1ef6)),
+((char)(0x15b8+4185-0x25f1)),((char)(0xc5c+2413-0x15a9)),
+((char)(0x5dd+5549-0x1b6a)),((char)(0x26c+6858-0x1d16)),
+((char)(0x1146+4976-0x2496)),((char)(0x47d+636-0x6d9)),
+((char)(0x252+7094-0x1de8)),((char)(0x1444+915-0x17b7)),
+((char)(0x7c4+7238-0x23ea)),((char)(0x1825+2438-0x218b)),
+((char)(0x264+8988-0x2560)),((char)(0x4cf+3707-0x132a)),
+((char)(0xfe4+4591-0x21b3)),((char)(0xd1d+5931-0x2428)),
+((char)(0x43c+6682-0x1e36)),((char)(0x22f0+721-0x25a1)),
+((char)(0xb12+4489-0x1c7b)),((char)(0x1ab+6015-0x190a)),
+((char)(0xd6d+3873-0x1c6e)),((char)(0x59b+4124-0x1597)),(0x97a+3097-0x1553),
+((char)(0xc25+2845-0x1722)),(0x855+2272-0x1134),(0xbca+1561-0x11bf),
+(0x705+2084-0xf26),((char)(0x28d+4408-0x13a5)),(0x1bba+1073-0x1f8c),
+((char)(0x134b+516-0x152f)),((char)(0x1c84+1715-0x2317)),
+((char)(0x5da+7808-0x243a)),((char)(0x10ba+5170-0x24cc)),
+((char)(0x15ff+3157-0x2234)),((char)(0x4f5+1542-0xadb)),
+((char)(0x8c2+238-0x990)),((char)(0x503+8173-0x24d0)),
+((char)(0x1316+569-0x152f)),((char)(0xa9b+1310-0xf99)),
+((char)(0x60c+5549-0x1b99)),((char)(0x145f+3594-0x2249)),
+((char)(0xb72+5213-0x1faf)),((char)(0x1ca5+121-0x1cfe)),
+((char)(0x1b06+1864-0x222e)),((char)(0x2233+161-0x22b4)),(0xf11+4461-0x2073),
+((char)(0x1e2+3640-0xffa)),((char)(0x130c+1509-0x18d1)),
+((char)(0xfc8+2942-0x1b26)),((char)(0x1c83+695-0x1f1a)),
+((char)(0x8b+8612-0x220f)),((char)(0x103a+5720-0x2672)),(0x911+7754-0x26fb),
+((char)(0xaf8+6236-0x2334)),((char)(0x1061+5359-0x2530)),
+((char)(0xc0b+590-0xe39)),((char)(0xfcf+45-0xfdc)),(0x1d44+168-0x1d91),
+(0x47c+2450-0xe00),(0x2002+1253-0x24cb),(0x724+253-0x818),
+((char)(0xb9f+3123-0x17b2)),(0x3d5+1362-0x908),((char)(0x1b2f+2006-0x22e5)),
+((char)(0x5b6+4627-0x17a9)),((char)(0x19eb+1509-0x1fb0)),
+((char)(0x136+9543-0x265d)),((char)(0x178c+123-0x17e7)),
+((char)(0x323+4723-0x1576)),((char)(0x973+2610-0x1385)),(0x199a+2241-0x21fe),
+((char)(0x13a8+2051-0x1b8b)),((char)(0x125c+4239-0x22cb)),
+((char)(0x172c+351-0x186b)),((char)(0xb60+2163-0x13b3)),(0x788+3358-0x144a),
+((char)(0x5cf+4137-0x15d8)),((char)(0xcb9+3864-0x1bb1)),
+((char)(0x11fb+479-0x13ba)),((char)(0xd00+3172-0x1944)),
+((char)(0x76c+7364-0x2410)),(0x127c+94-0x127c),((char)(0xe2+3497-0xe6b)),
+((char)(0x270+2823-0xd57)),(0x16d2+2162-0x1f26),(0x1c78+868-0x1f5d),
+((char)(0x12f0+1690-0x196a)),((char)(0x344+8771-0x2567)),
+((char)(0x113+955-0x4ae)),(0x14e5+3742-0x2308),(0x672+5798-0x1d09),
+(0xb63+6344-0x240e),((char)(0xa0d+496-0xbdd)),(0x77f+5167-0x1baa),
+(0xc40+6587-0x25f6),((char)(0xcda+1650-0x132c)),((char)(0xbd3+4988-0x1f2f)),
+(0xbef+1080-0x1020),((char)(0xe5+6577-0x1a76)),((char)(0x24a2+616-0x26ea)),
+((char)(0x134f+1790-0x1a2d)),((char)(0x3ef+8662-0x25a5)),(0xcd0+6036-0x23e7),
+(0x20a4+1195-0x2547),((char)(0xf17+2916-0x1a5b)),((char)(0x1ee3+548-0x20e7)),
+((char)(0x1024+204-0x10d0)),(0x1cf8+788-0x1f90),((char)(0x1729+3350-0x241f)),
+(0xd9d+462-0xf5f),(0x680+469-0x84f),((char)(0xa41+1165-0xeae)),
+((char)(0x1133+2540-0x1aff)),(0x9db+4291-0x1a20),((char)(0x353+2679-0xdaa)),
+((char)(0x1246+2799-0x1d15)),((char)(0x20b7+230-0x217d)),};const unsigned short
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0xf50+757-0x1243)]={{(0x408+2830-0xf0d)
+,(0x1ed6+102-0x1e55)},{(0x1f27+547-0x2140),(0xa3b+2556-0x142b)},{
+(0xf9+798-0x40a),(0x82a+3744-0x16bd)},{(0x16c9+1698-0x1d57),(0x6a8+563-0x87d)},{
+(0x10eb+1399-0x163a),(0x26b1+175-0x26e5)},{(0x15c6+1141-0x1a12),
+(0x339+1113-0x715)},{(0xe5a+561-0x105c),(0xbd8+2435-0x14ff)},{
+(0xb33+6198-0x232d),(0x188c+2018-0x2013)},{(0xf00+3288-0x1b9b),
+(0x4eb+1248-0x94d)},{(0xd3+2251-0x960),(0x13c+7954-0x1ff1)},{(0x637+7866-0x24b1)
+,(0x1ee7+675-0x210e)},{(0x541+5451-0x1a4b),(0x589+6214-0x1d0e)},{
+(0xa5b+6370-0x22f4),(0x380+221-0x390)},{(0x1a2+1269-0x648),(0x12df+4323-0x22ef)}
+,{(0x5ac+7792-0x23c7),(0x5bc+4610-0x16e4)},{(0x2074+1239-0x24ea),
+(0x8c6+6214-0x202b)},{(0x16af+1736-0x1d12),8364},{(0x1596+4546-0x26ef),
+(0x1078+2096-0x17bb)},{(0x335+4884-0x15da),(0x4f8+5545-0x19ae)},{
+(0x5c8+5768-0x1bdb),(0xf70+4794-0x2130)},};const unsigned short
+Ucs2_To_Gsm7_SPANISH_Table_UCS[][(0xed0+2133-0x1723)]={{(0x2b4+4051-0x1277),
+(0x190d+3537-0x234a)},{(0xc6c+1943-0x13f1),(0xeaa+3272-0x17cc)},{
+(0x222+5346-0x16f1),(0x408+2332-0x991)},{(0xfdc+430-0x1176),(0x242f+851-0x23e7)}
+,{(0x2034+38-0x2045),(0x86f+5553-0x1a77)},{(0xbc+6472-0x19ee),
+(0x1d49+960-0x1d69)},{(0x81d+4864-0x1b06),(0xaec+7799-0x25bb)},{
+(0x14c0+1444-0x1a4c),(0x142c+4972-0x23f5)},{(0x889+3846-0x1776),
+(0xa05+2644-0x10c1)},{(0xa54+6396-0x2336),(0x10da+5751-0x23b3)},};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,(0x345+1676-0x9c7),NON_GSM,NON_GSM,
+(0xbb+6361-0x1987),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x799+4930-0x1ad1),NON_GSM,NON_GSM,(0x6e4+3263-0x1396),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x39b+2121-0xbc4),(0xbcb+5979-0x2305),
-(0x104d+885-0x13a0),(0x118b+432-0x1318),(0x1c78+860-0x1fd2),(0xa9d+6244-0x22dc),
-(0x14d2+2203-0x1d47),(0x28a+3628-0x108f),(0xa46+6798-0x24ac),(0xc3d+5139-0x2027)
-,(0x1f6f+170-0x1fef),(0x23e2+601-0x2610),(0xf23+3118-0x1b25),
-(0x1a0f+1640-0x204a),(0x90b+2316-0x11e9),(0xac0+928-0xe31),(0x13e7+4102-0x23bd),
-(0xda5+5959-0x24bb),(0x573+8469-0x2656),(0xf62+3503-0x1cde),(0x1207+2467-0x1b76)
-,(0x9d1+1504-0xf7c),(0x483+2745-0xf06),(0x11b0+860-0x14d5),(0xb70+6129-0x2329),
-(0xf50+1729-0x15d8),(0x101d+3749-0x1e88),(0x78f+2696-0x11dc),(0x709+2414-0x103b)
-,(0x1483+1542-0x1a4c),(0x22ac+930-0x2610),(0x6a2+5636-0x1c67),
-(0x1ef0+1399-0x2467),(0x46a+4985-0x17a2),(0x837+6760-0x225d),(0x707+2606-0x10f2)
-,(0x12db+2510-0x1c65),(0x1e43+1038-0x220c),(0x4b0+8754-0x269c),
-(0xc28+4676-0x1e25),(0xa34+2229-0x12a1),(0x1250+2458-0x1ba1),
-(0x19f5+1883-0x2106),(0xce2+5560-0x224f),(0x113b+471-0x12c6),(0x493+2911-0xfa5),
-(0x559+8508-0x2647),(0x1be1+2376-0x24da),(0x147f+3469-0x21bc),
-(0x1553+4539-0x26bd),(0x224d+333-0x2348),(0x4f2+2986-0x1049),(0x558+7427-0x2207)
-,(0x355+989-0x6dd),(0xe3+3444-0xe01),(0xec8+2091-0x169c),(0x9c8+4486-0x1af6),
-(0x11ad+192-0x1214),(0xb5d+380-0xc7f),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x692+6904-0x2179),NON_GSM,(0x188c+2750-0x22e9),(0x7ec+5566-0x1d48),
-(0x4c4+5175-0x1898),(0xa50+7440-0x26fc),(0x38f+1022-0x728),(0xfdf+5365-0x246e),
-(0x80+4291-0x10dc),(0x19d3+1779-0x205e),(0x75+1132-0x478),(0x1f9+6313-0x1a38),
-(0x472+7202-0x2029),(0x14a0+1556-0x1a48),(0x24d+7888-0x20b0),(0x26ac+174-0x26ec)
-,(0x1279+1320-0x1732),(0x199f+2841-0x2448),(0x1633+661-0x1857),
-(0x1650+794-0x18f8),(0x81b+395-0x933),(0xd2b+5070-0x2085),(0x6d6+3345-0x1372),
-(0x1a7c+2952-0x258e),(0xd27+5154-0x20d2),(0xcd0+6623-0x2637),(0xa25+5808-0x205c)
-,(0xe18+4553-0x1f67),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0xdd4+2197-0x1649),(0x769+4251-0x17e3),(0xb1a+2925-0x1665),
+(0x718+4624-0x1905),(0x1286+2186-0x1b0e),(0x4c8+1294-0x9b1),(0x13d6+4239-0x243f)
+,(0x4cb+6253-0x1d11),(0x1e16+1515-0x23d9),(0x4ac+4916-0x17b7),
+(0x12bd+4271-0x2342),(0x571+5355-0x1a31),(0xf04+2139-0x1733),
+(0x1398+4521-0x2514),(0x2a2+7282-0x1ee6),(0x1993+665-0x1bfd),(0x12d0+560-0x14d0)
+,(0xa90+3672-0x18b7),(0x1dea+1576-0x23e0),(0x1382+1917-0x1acc),
+(0x10fa+4738-0x2348),(0xb43+6138-0x2308),(0x1584+3505-0x22ff),
+(0xdb8+3056-0x1971),(0x69a+2590-0x1080),(0xf08+3084-0x1adb),(0x7d7+7310-0x242b),
+(0x6a0+1022-0xa63),(0x1650+2666-0x207e),(0x1d4+6419-0x1aaa),(0x252+7907-0x20f7),
+(0x1d66+2501-0x26ec),(0x319+983-0x6f0),(0x134f+2495-0x1ccd),(0x47a+2536-0xe20),
+(0x68c+517-0x84e),(0x1714+3104-0x22f0),(0xcd4+5116-0x208b),(0x17ba+2973-0x2311),
+(0x2062+730-0x22f5),(0x2027+1786-0x26d9),(0x203b+92-0x204e),(0x1828+934-0x1b84),
+(0xbd3+4676-0x1dcc),(0x138+6362-0x19c6),(0x38f+4440-0x149a),(0x19fb+409-0x1b46),
+(0xbc3+359-0xcdb),(0x1bb5+1333-0x209a),(0xc67+3860-0x1b2a),(0x2f1+8135-0x2266),
+(0x23f+5021-0x1589),(0x1247+2686-0x1c71),(0xe77+6271-0x26a1),
+(0x1b3a+1697-0x2185),(0x7bf+4668-0x19a4),(0x10ec+5258-0x251e),
+(0x1be2+1329-0x20ba),(0x1196+1432-0x16d4),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0xc75+4556-0x1e30),NON_GSM,(0x1667+3843-0x2509),(0x161b+1126-0x1a1f),
+(0x11d1+3815-0x2055),(0x183c+2986-0x2382),(0x185+6980-0x1c64),
+(0xc61+5434-0x2135),(0x19fa+227-0x1a76),(0xa9c+3274-0x16fe),(0x12e3+361-0x13e3),
+(0x1b9b+2531-0x2514),(0x118a+1843-0x1852),(0x2246+553-0x2403),
+(0x1068+4267-0x20a6),(0xd5c+1788-0x13ea),(0x1da+9557-0x26c0),(0x38f+5688-0x1957)
+,(0x80d+3061-0x1391),(0x1799+2970-0x22c1),(0x9c1+6171-0x2169),
+(0x140f+3358-0x20b9),(0xb47+149-0xb67),(0x5f4+5819-0x1c39),(0x149f+1585-0x1a59),
+(0x14c+6571-0x1a7f),(0x3fc+1047-0x79a),(0x639+6042-0x1d59),NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x9fd+5478-0x1f48),(0x7b+4355-0x113e),NON_GSM,(0x8ef+1996-0x10ba),
-(0xd01+1167-0x116c),(0x37b+2126-0xbc6),NON_GSM,(0x14b6+762-0x1751),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1760+522-0x194f),(0x4a1+2062-0xc6f),
+NON_GSM,(0xa28+4657-0x1c58),(0x296+7597-0x201f),(0x7c3+2178-0x1042),NON_GSM,
+(0xe16+3675-0x1c12),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x403+2871-0xeda),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x1343+2919-0x1e4f),(0x186+2151-0x9df),
+(0x1b91+2313-0x247e),(0x11c1+5208-0x2610),NON_GSM,(0x18d3+3086-0x24c2),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x2d6+8160-0x2259),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0xb55+4606-0x1cf7),NON_GSM,(0x10d9+4744-0x2356),NON_GSM
+,NON_GSM,NON_GSM,(0xc44+267-0xcf1),NON_GSM,NON_GSM,(0x650+386-0x7b4),
+(0x14f5+1242-0x1950),NON_GSM,NON_GSM,NON_GSM,(0xa6a+7241-0x2638),
+(0x1846+109-0x18a4),(0x404+671-0x686),NON_GSM,(0xe7b+3431-0x1bde),
+(0x1c+3067-0xc12),NON_GSM,NON_GSM,(0x1428+3804-0x22fd),NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x2b5+2376-0xb80),(0x629+1413-0xba6),NON_GSM,NON_GSM,NON_GSM,
+(0x1035+1160-0x1441),NON_GSM,(0x1151+5155-0x2568),(0x7b0+7208-0x23d2),NON_GSM,
+NON_GSM,(0x1c0+4370-0x1254),NON_GSM,NON_GSM,NON_GSM};const unsigned short
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][(0x241a+185-0x24d1)]={{
+(0x6a6+3311-0x1390),(0x1a9d+114-0x1a25)},{(0x11c6+5291-0x2668),
+(0x1765+503-0x1875)},{(0xbf7+1722-0x12a7),(0x2e4+2517-0xcad)},{
+(0x789+3233-0x141f),(0x5d0+2699-0xf87)},{(0x13d9+1745-0x1a9e),
+(0x1b0a+1680-0x20a6)},{(0xecc+1371-0x141a),(0xdd7+4641-0x1feb)},{
+(0xdf5+2766-0x18b5),(0x817+2412-0x10c2)},{(0x548+7707-0x2354),
+(0x1b5f+3118-0x26ac)},{(0x151+3724-0xfcb),(0x434+2151-0x8f5)},{
+(0x6ef+4682-0x1926),(0xc3b+3976-0x1830)},{(0x16e4+166-0x1776),
+(0xbd2+3616-0x1994)},{(0x126f+4110-0x2268),(0xa63+2066-0xecc)},{
+(0x1cda+894-0x2042),(0x18d7+917-0x18cc)},{(0x15cc+1827-0x1cd8),
+(0x1264+2464-0x185c)},{(0x33a+9135-0x26d1),(0x47a+6437-0x19fc)},{
+(0x92d+4613-0x1b19),(0x923+7928-0x2483)},{(0xfe3+1143-0x143b),
+(0x903+3917-0x1786)},{(0x156d+4242-0x25d7),(0xaed+5148-0x1e8e)},{
+(0x69b+2980-0x1216),(0xd38+3646-0x1af9)},{(0x20f2+565-0x22f8),
+(0x437+7295-0x205a)},{(0x402+6282-0x1c50),(0x286+2999-0xde2)},{
+(0x346+7916-0x21f5),(0x679+6207-0x1e3a)},{(0x783+5260-0x1bd1),
+(0x1a3b+2208-0x227e)},{(0xbfb+2657-0x161c),(0x595+6581-0x1ece)},{
+(0x182+5719-0x1798),(0x10fd+5761-0x26be)},{(0x1f63+503-0x2111),
+(0xcdf+6000-0x2382)},{(0x6d6+1755-0xd62),(0x1637+3899-0x249f)},{
+(0x2495+95-0x249f),(0x1010+2201-0x17cf)},{(0xab5+4733-0x1cd7),(0xedd+503-0x1011)
+},{(0x54b+2074-0xd09),(0x1f71+1916-0x2618)},{(0x7f5+6564-0x2138),
+(0xf77+3602-0x1cc7)},{(0x115+6718-0x1aee),8364},{(0xe6a+3684-0x1c65),
+(0x137b+528-0x149e)},{(0xa4f+6656-0x23e0),(0x4a1+7138-0x1f90)},{
+(0x1408+4150-0x23c9),(0x1c14+2208-0x23ba)},{(0xea7+4692-0x2080),
+(0x1487+1186-0x1846)},{(0x1fe9+1729-0x262e),(0x517+4181-0x1477)},{
+(0x15cb+2935-0x20c3),(0x494+4357-0x14b7)},};const unsigned short
+Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][(0x1d59+1538-0x2359)]={{(0x239f+738-0x2671),
+(0x1598+2725-0x1ca9)},{(0x538+8584-0x26ab),8929},{(0xb7a+957-0xf1f),8364},{
+(0x77a+7517-0x2472),(0x2307+6642-0x1c4d)},};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,(0xaf8+2769-0x15bf),NON_GSM,NON_GSM,
+(0x7b4+3799-0x167e),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0xa1d+4524-0x1ba9),(0xc37+6581-0x25cb),(0x1ae5+2077-0x22e0),
+(0x2af+9194-0x2676),(0xf05+4557-0x20d0),(0x203+575-0x41d),(0x11f+3930-0x1053),
+(0xc9b+832-0xfb4),(0xddb+5440-0x22f3),(0x246+3229-0xeba),(0xb3c+1302-0x1028),
+(0x127f+1346-0x1796),(0x16a9+440-0x1835),(0x33a+9106-0x269f),
+(0x1eba+1178-0x2326),(0xfac+3501-0x1d2a),(0x1416+4473-0x255f),
+(0x64c+5788-0x1cb7),(0x14db+996-0x188d),(0x249+2116-0xa5a),(0x147c+3817-0x2331),
+(0x2ff+4331-0x13b5),(0x147c+825-0x177f),(0x6c5+5641-0x1c97),(0x29b+3511-0x101a),
+(0x587+8314-0x25c8),(0x1ae0+1822-0x21c4),(0x1497+2368-0x1d9c),
+(0x17c8+790-0x1aa2),(0x1642+4000-0x25a5),(0x9d4+5828-0x205a),(0xfa6+3484-0x1d03)
+,(0x2517+491-0x2702),(0x3dc+2064-0xbab),(0x4e8+5047-0x185d),(0x255+4867-0x1515),
+(0x983+2987-0x14ea),(0x690+6442-0x1f75),(0x1857+454-0x19d7),(0x1754+2263-0x1fe4)
+,(0x1831+3029-0x23be),(0x85f+4149-0x184b),(0x1109+4391-0x21e6),
+(0x294+7683-0x204c),(0xe9b+1042-0x1261),(0xc66+5801-0x22c2),(0x54+213-0xdb),
+(0xbf4+76-0xbf1),(0x1174+545-0x1345),(0x1b18+890-0x1e41),(0xb80+4097-0x1b2f),
+(0x2240+113-0x225e),(0x745+62-0x72f),(0xa27+2433-0x1353),(0x10c5+997-0x1454),
+(0x1e0+6347-0x1a54),(0x1078+3532-0x1dec),(0xab9+2351-0x138f),(0x655+2374-0xf41),
+NON_GSM,(0x166a+158-0x16f1),NON_GSM,(0x16c3+2883-0x21f0),(0x827+94-0x874),
+(0x13d3+526-0x1564),(0xab1+3952-0x19c0),(0x1128+5683-0x26f9),
+(0x1273+1790-0x190e),(0x11c+8724-0x22cc),(0x482+2064-0xc2d),(0xd02+2471-0x1643),
+(0x2610+237-0x2696),(0x880+801-0xb39),(0x212a+1448-0x2669),(0x2484+603-0x2675),
+(0x2d1+6711-0x1c9d),(0x39d+5697-0x1972),(0x1724+716-0x1983),(0x1a39+2810-0x24c5)
+,(0xcc9+1823-0x1379),(0x1360+4727-0x2567),(0x1cd9+2014-0x2446),
+(0x1076+1671-0x168b),(0x8e7+2686-0x12f2),(0x8b8+617-0xaad),(0xcd7+4411-0x1d9d),
+(0x159f+2499-0x1eec),(0x1110+2095-0x18c8),(0xf26+4073-0x1e97),
+(0x1316+3773-0x215a),(0x636+1674-0xc46),NON_GSM,(0x13f2+2721-0x1e79),NON_GSM,
+(0x17d+8124-0x20d9),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0x16db+1446-0x1c21),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x1e69+2271-0x26ed),(0xc0+4688-0x1302),(0x145b+2357-0x1d74),
-(0x190b+1932-0x208e),NON_GSM,(0x8dd+1620-0xf12),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0xd12+1346-0x11f7),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x1a44+703-0x1ca7),NON_GSM,(0xf9d+3299-0x1c75),NON_GSM,NON_GSM,NON_GSM,
-(0x19ad+1277-0x1e4c),NON_GSM,NON_GSM,(0xd3f+5650-0x2333),(0xd74+531-0xf08),
-NON_GSM,NON_GSM,NON_GSM,(0x812+1688-0xe2f),(0x1858+572-0x1a85),
-(0x79b+2577-0x118f),NON_GSM,(0x25c+6250-0x1ac2),(0xc1d+4649-0x1e41),NON_GSM,
-NON_GSM,(0x8f8+5291-0x1d9c),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x8c7+6965-0x237f),
-(0x657+1075-0xa82),NON_GSM,NON_GSM,NON_GSM,(0x1388+4820-0x25e0),NON_GSM,
-(0xdc7+2453-0x1750),(0x1c19+2493-0x25d0),NON_GSM,NON_GSM,(0x425+6190-0x1bd5),
-NON_GSM,NON_GSM,NON_GSM};const unsigned short
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][(0xc99+6327-0x254e)]={{
-(0xd08+568-0xf3b),(0x10c7+1274-0x14d7)},{(0x13f8+2904-0x1f47),
-(0x15f5+909-0x189b)},{(0x7b+3211-0xcfc),(0x18e5+756-0x1bcd)},{
-(0x1edf+589-0x2121),(0xa58+4142-0x19b2)},{(0x356+4154-0x1384),
-(0x44c+9096-0x26e0)},{(0x16b6+3669-0x24fe),(0x1d1+7923-0x20b7)},{
-(0x514+2023-0xced),(0xe66+3694-0x1c13)},{(0x1169+1279-0x1659),
-(0x12da+3599-0x2008)},{(0x882+6299-0x210b),(0xa92+6706-0x211e)},{
-(0x1575+3746-0x2404),(0x51f+3717-0x1011)},{(0x264c+6-0x263e),
-(0x1841+3229-0x2480)},{(0x547+2979-0x10d5),(0x1bc1+2309-0x211d)},{
-(0x948+921-0xccb),(0x231b+1223-0x2442)},{(0x2a7+1486-0x85e),(0x648+7671-0x2097)}
-,{(0x689+7878-0x2537),(0x163a+4567-0x246e)},{(0x2ad+6045-0x1a31),
-(0x1f02+2520-0x2542)},{(0x1e36+1153-0x2298),(0xffc+2385-0x1883)},{
-(0x78c+7486-0x24a2),(0x13f0+278-0x148b)},{(0x96f+2419-0x12b9),
-(0x208c+566-0x2245)},{(0xd3b+2282-0x15f6),(0xe21+4425-0x1f0e)},{
-(0x1037+5123-0x23fe),(0x174d+1-0x16f3)},{(0xb54+2420-0x148b),(0xc84+1710-0x12b4)
-},{(0xbb4+220-0xc52),(0x1405+831-0x16e7)},{(0xc5b+5716-0x226f),
-(0x1f7+7423-0x1e7a)},{(0x114a+3717-0x1f8e),(0xf0d+2660-0x18b1)},{
-(0x2328+990-0x26bd),(0x170c+522-0x1849)},{(0xe55+3880-0x1d2e),
-(0x228+5138-0x1567)},{(0x81d+1447-0xd6f),(0x7a5+4501-0x1860)},{
-(0x9c2+4299-0x1a32),(0x1c4+349-0x25e)},{(0xc79+5604-0x2201),(0xcdc+5282-0x20a9)}
-,{(0x2b2+1374-0x7af),(0x8d3+7743-0x2650)},{(0xc01+2549-0x1591),
-(0x22b4+6699-0x1c33)},{(0x107+5248-0x151e),(0xeda+6090-0x25b7)},{
-(0x1fb8+1660-0x25c5),(0x20d+3568-0xf0a)},{(0x4e2+6705-0x1e9e),
-(0xa04+4102-0x1910)},{(0x9e0+5237-0x1dda),(0x21d8+73-0x213e)},{
-(0x1cd+8496-0x2281),(0xf4b+6071-0x260d)},{(0x3fd+3667-0x11d1),
-(0x1a4d+1139-0x1dde)},};const unsigned short Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[]
-[(0xb2c+1159-0xfb1)]={{(0x84f+1434-0xdd9),(0x1114+2996-0x1934)},{
-(0x556+2713-0xfda),8929},{(0x1274+2255-0x1b2b),8364},{(0x198a+3488-0x26c5),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,
-(0xd19+131-0xd92),NON_GSM,NON_GSM,(0xe2f+4520-0x1fca),NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x723+2629-0x114d),NON_GSM_P,
+NON_GSM,(0x80c+7585-0x25ac),NON_GSM_P,(0x60+6539-0x19e8),NON_GSM,
+(0x766+2886-0x124d),NON_GSM,NON_GSM,(0x1576+931-0x1907),NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,(0x1b63+412-0x1cdb),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xf67+2733-0x19f4),(0x64d+4272-0x16dc),
-(0xfa0+5924-0x26a2),(0x1553+2194-0x1dc2),(0xdfd+3125-0x1a30),(0x4b9+3537-0x1265)
-,(0x6bc+667-0x931),(0x1a5f+1894-0x219e),(0xccf+1999-0x1476),(0x2db+4932-0x15f6),
-(0x1c69+2176-0x24bf),(0xbc5+6846-0x2658),(0x1556+4471-0x26a1),
-(0x1012+2931-0x1b58),(0x1502+1641-0x1b3d),(0x77c+3591-0x1554),(0xbd+7163-0x1c88)
-,(0x1166+362-0x129f),(0xf4c+600-0x1172),(0x67+7282-0x1ca6),(0x1565+2800-0x2021),
-(0x512+4944-0x182d),(0x71b+4642-0x1907),(0x7c0+2051-0xf8c),(0x229c+498-0x2456),
-(0x8f3+5240-0x1d32),(0x1355+3868-0x2237),(0x329+4775-0x1595),
-(0x1687+1077-0x1a80),(0xfad+5814-0x2626),(0x65b+3248-0x12cd),(0x2325+72-0x232e),
-(0x10e4+595-0x1337),(0x973+4058-0x190c),(0x1a08+1578-0x1ff0),(0x1910+630-0x1b43)
-,(0x877+7639-0x260a),(0x5dd+5389-0x1aa5),(0x15b1+3886-0x2499),
-(0x1666+2758-0x20e5),(0x1f2+2231-0xa61),(0x1098+228-0x1133),(0x600+3685-0x141b),
-(0xd18+1792-0x13cd),(0x4f0+7168-0x20a4),(0x81c+6314-0x2079),(0x44a+1342-0x93a),
-(0x12d1+1522-0x1874),(0x2535+278-0x25fb),(0x4c4+6688-0x1e93),(0xa4b+3802-0x18d3)
-,(0x650+3120-0x122d),(0x9f3+5095-0x1d86),(0x13b3+838-0x16a4),(0x912+1679-0xf4b),
-(0xf0+5116-0x1495),(0x8f0+6362-0x2172),(0x586+1235-0xa00),(0x1035+4923-0x2316),
-NON_GSM,(0x908+1104-0xd41),NON_GSM,(0x2220+651-0x2495),(0x1fb7+1604-0x25ea),
-(0x33c+1992-0xa87),(0xc68+3536-0x19d7),(0x532+295-0x5f7),(0x13d8+1700-0x1a19),
-(0x2fa+4775-0x153d),(0x15fc+4370-0x26a9),(0x64c+1393-0xb57),(0x1669+1155-0x1a85)
-,(0x1590+2503-0x1eef),(0x5a9+2416-0xeb0),(0x286+6210-0x1a5e),(0xb0b+4666-0x1cda)
-,(0x5f9+5699-0x1bd0),(0x7f6+338-0x8db),(0x174d+2372-0x2023),(0x1432+3058-0x1fb5)
-,(0x3a3+8661-0x2508),(0xfa4+2921-0x1a9c),(0x11cd+1240-0x1633),
-(0x363+7549-0x206d),(0x1107+5086-0x2471),(0x614+2421-0xf14),(0x16db+1341-0x1ba2)
-,(0x887+4537-0x19c9),(0x1ff8+364-0x20ec),(0xf2a+4274-0x1f63),(0x800+1533-0xd83),
-NON_GSM,(0xfb4+3496-0x1d42),NON_GSM,(0xc7+3339-0xd72),NON_GSM,NON_GSM,NON_GSM,
+(0xaeb+2425-0x1450),(0x97d+2667-0x13da),(0x1483+259-0x156a),(0x9f3+3649-0x17d9),
+NON_GSM_P,NON_GSM_P,NON_GSM_P,(0x25f+8738-0x246e),NON_GSM,(0x1d4f+2487-0x26e7),
+(0x147f+4571-0x263c),NON_GSM,NON_GSM,(0x374+1145-0x7ad),NON_GSM,NON_GSM,NON_GSM,
+NON_GSM_P,NON_GSM,(0x27+9344-0x248e),(0x13af+3124-0x1fd8),(0x9f8+6197-0x21d1),
+NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM,(0x182d+3701-0x2645),NON_GSM,
+(0xe2+1370-0x5de),NON_GSM,NON_GSM,NON_GSM_P,(0xe25+184-0xe5e),
+(0x88a+4033-0x183c),(0x8f5+7261-0x2535),(0x114a+3901-0x200c),NON_GSM_P,NON_GSM_P
+,NON_GSM_P,(0x1903+1511-0x1ee1),NON_GSM_P,(0x601+5851-0x1cd7),
+(0xbad+5484-0x2115),NON_GSM,NON_GSM_P,(0x136+4716-0x139b),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM_P,NON_GSM_P,(0xddb+3936-0x1d33),(0xd1c+3622-0x1b36),
+(0x179+3094-0xd13),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM_P,(0xc2c+3411-0x1979),
+NON_GSM,(0x1cdc+1903-0x23cd),NON_GSM,NON_GSM,NON_GSM};const unsigned short
+zte_sms_GSMDefault_To_UCS2_Table_Ex[][(0x80c+3376-0x153a)]={{(0xd72+4827-0x2043)
+,(0x231+7940-0x2129)},{(0x10d1+1393-0x162e),(0x158+4677-0x133f)},{
+(0xe60+825-0x1171),(0xaff+2069-0x1299)},{(0xcf6+4173-0x1d1a),
+(0x1081+5880-0x26fc)},{(0x2433+357-0x2569),(0x8d6+2154-0x10e4)},{
+(0x1662+3070-0x2224),(0x1d66+1091-0x214e)},{(0x7e9+4582-0x1992),
+(0x15fc+879-0x18ed)},{(0x1101+2561-0x1ac4),(0x87c+2042-0x1019)},{
+(0xeac+2608-0x189c),(0x126d+4678-0x2437)},{(0x117f+3358-0x1e38),8364},};const
+unsigned short UCS2_To_GSMDefault_Table_UCS2[][(0x7b+888-0x3f1)]={{
+(0x434+3432-0x118c),(0x1485+5425-0x2622)},{(0xc94+4468-0x1df6),
+(0x1147+4117-0x1db6)},{(0x14e0+3366-0x21f3),(0x526+8412-0x226f)},{
+(0x4e0+8762-0x2706),(0xd12+5918-0x2095)},{(0x1124+2880-0x1c4f),
+(0x46a+1909-0x836)},{(0x1224+2984-0x1db6),(0x1c57+967-0x1c7e)},{
+(0xd01+3018-0x18b4),(0xab1+6546-0x209b)},{(0x1504+2324-0x1e00),
+(0x1703+1367-0x18b7)},{(0x4a3+496-0x67a),(0xdb6+745-0xd07)},{(0xc12+4080-0x1be8)
+,(0x127c+4888-0x21f6)},};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,
+(0x942+6993-0x2489),NON_GSM,NON_GSM,(0x1ff1+944-0x2394),NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x20d3+565-0x22e8),(0x2eb+4607-0x14c9),
+(0x1175+961-0x1514),(0xf01+2125-0x172b),(0x71c+4470-0x1890),(0x7ab+2685-0x1203),
+(0x7d3+2233-0x1066),(0x8ab+5027-0x1c27),(0x7f2+3617-0x15eb),(0xd3b+1093-0x1157),
+(0xeb5+1773-0x1578),(0xd66+4921-0x2074),(0x225+7707-0x2014),(0x1dd+5699-0x17f3),
+(0x78f+3546-0x153b),(0x409+8684-0x25c6),(0x746+1442-0xcb8),(0x129+3835-0xff3),
+(0xa95+2340-0x1387),(0xb42+2817-0x1610),(0x9bc+4752-0x1c18),(0x1c48+2317-0x2520)
+,(0x1655+3282-0x22f1),(0x115f+4522-0x22d2),(0x11f0+5041-0x2569),
+(0x1aef+389-0x1c3b),(0xe54+5811-0x24cd),(0xfc0+290-0x10a7),(0x12e1+1148-0x1721),
+(0x1064+1215-0x14e6),(0x5a5+6120-0x1d4f),(0x14fd+1901-0x1c2b),
+(0x842+6306-0x20e4),(0x10f6+2079-0x18d4),(0x110f+1268-0x15c1),(0x7a6+1245-0xc40)
+,(0xb3+6695-0x1a96),(0xa18+3891-0x1906),(0x8f4+6052-0x2052),(0xe9b+4149-0x1e89),
+(0xcac+1895-0x13cb),(0xaa9+617-0xcc9),(0x720+268-0x7e2),(0x791+3449-0x14bf),
+(0x391+8591-0x24d4),(0x1865+3142-0x245e),(0x716+3456-0x1448),(0xbe9+3523-0x195d)
+,(0x562+2838-0x1028),(0xdfd+405-0xf41),(0x220+925-0x56b),(0x1cb5+233-0x1d4b),
+(0x347+4197-0x1358),(0x6aa+6502-0x1fbb),(0x82+8575-0x21ab),(0xfbc+4539-0x2120),
+(0x56d+5930-0x1c3f),(0x120d+3543-0x1f8b),(0x81c+564-0x9f6),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,(0x5c0+6285-0x1e3c),NON_GSM,(0x1f02+1348-0x23e5),
+(0xe96+671-0x10d3),(0x3d2+2487-0xd26),(0xbec+6170-0x23a2),(0xe8f+1792-0x152a),
+(0x157b+3166-0x2173),(0x19a0+1164-0x1dc5),(0xe59+3407-0x1b40),
+(0xacc+5225-0x1ecc),(0x167d+4200-0x267b),(0x662+7479-0x232e),(0x4a5+1203-0x8ec),
+(0xbf1+1612-0x11d0),(0x193c+1606-0x1f14),(0x1a81+3215-0x26a1),
+(0x5ff+6460-0x1ecb),(0x99d+6368-0x220c),(0x967+4205-0x1962),(0x111b+98-0x110a),
+(0x4ff+7429-0x2190),(0x5b5+802-0x862),(0x2c7+7876-0x2115),(0x8fc+7479-0x25bc),
+(0x374+4148-0x1330),(0x85b+4291-0x18a5),(0xcc+8031-0x1fb1),NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x86b+3315-0x1543),NON_GSM_P,NON_GSM,(0x6c6+4996-0x1a49),NON_GSM_P,
-(0x178f+3360-0x24ac),NON_GSM,(0xe58+38-0xe1f),NON_GSM,NON_GSM,(0x203+2795-0xcdc)
-,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x10e5+4158-0x20ff),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x536+6652-0x1f17),(0x1c8b+1958-0x23f1)
+,NON_GSM,(0xe2a+2698-0x18b3),(0x9a8+590-0xbd2),(0xaed+5975-0x2241),NON_GSM,
+(0x1ed7+829-0x21b5),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0x90a+6801-0x2387),(0x9fb+5291-0x1e98),
-(0x246+8603-0x23c5),(0x1815+790-0x1ad0),NON_GSM_P,NON_GSM_P,NON_GSM_P,
-(0xc1+3880-0xfd6),NON_GSM,(0xf91+1043-0x1385),(0xbe7+4481-0x1d4a),NON_GSM,
-NON_GSM,(0x1040+2225-0x18b1),NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM,
-(0x16ef+3427-0x2439),(0x1ddb+1415-0x2357),(0x1865+2876-0x2345),NON_GSM_P,NON_GSM
-,NON_GSM_P,NON_GSM,(0x392+4626-0x1547),NON_GSM,(0x1a87+3031-0x2600),NON_GSM,
-NON_GSM,NON_GSM_P,(0xb67+30-0xb06),(0x1069+1575-0x1681),(0x3e3+6255-0x1c35),
-(0xd02+649-0xf10),NON_GSM_P,NON_GSM_P,NON_GSM_P,(0xe0+1727-0x796),NON_GSM_P,
-(0xc5+3300-0xda4),(0x225+1366-0x777),NON_GSM,NON_GSM_P,(0x1b44+1955-0x22e0),
-NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM_P,(0x1856+598-0x1aa4),
-(0x446+2113-0xc7b),(0x1507+1311-0x19aa),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM_P,
-(0xfb+6069-0x18aa),NON_GSM,(0x6db+6369-0x1f3e),NON_GSM,NON_GSM,NON_GSM};const
-unsigned short zte_sms_GSMDefault_To_UCS2_Table_Ex[][(0x3c3+5394-0x18d3)]={{
-(0x41c+34-0x434),(0x3ba+286-0x4cc)},{(0x1840+1048-0x1c44),(0x2eb+884-0x601)},{
-(0x17c8+3555-0x2583),(0x4a7+4330-0x1516)},{(0x173d+2323-0x2027),
-(0x4ca+6990-0x1f9b)},{(0x15c8+3292-0x2275),(0x1a6a+1640-0x2076)},{
-(0x702+2434-0x1048),(0x3bb+6519-0x1cd7)},{(0x1805+2591-0x21e7),
-(0x468+5893-0x1aef)},{(0xb26+6466-0x242a),(0x42d+6464-0x1d10)},{
-(0x96+2214-0x8fc),(0xe47+5988-0x252f)},{(0xa92+837-0xd72),8364},};const unsigned
- short UCS2_To_GSMDefault_Table_UCS2[][(0xef5+4247-0x1f8a)]={{
-(0x10a4+1876-0x17e8),(0x1f0d+2277-0x245e)},{(0x123c+4608-0x242a),
-(0x7a0+1176-0x892)},{(0xc43+5358-0x211e),(0x1609+1604-0x18ba)},{
-(0xc8+9390-0x2562),(0xcb6+570-0xb55)},{(0xe30+2468-0x17bf),(0x1084+3278-0x19a9)}
-,{(0x12e1+4201-0x2334),(0x525+9228-0x2591)},{(0x6d+431-0x205),(0xba1+266-0x903)}
-,{(0x14fa+20-0x14f6),(0x1b87+975-0x1bb3)},{(0x15d1+3996-0x2554),
-(0x12f6+4322-0x2040)},{(0x1eaf+76-0x1ee1),(0x126c+1911-0x1645)},};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,(0x140d+1393-0x1974),NON_GSM,NON_GSM,
-(0xe69+306-0xf8e),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x1da6+1314-0x22a8),(0x5c3+3993-0x153b),(0x50a+5513-0x1a71),
-(0xfd1+2790-0x1a94),(0x1220+4758-0x24b4),(0x11f+5833-0x17c3),(0xe72+2727-0x18f3)
-,(0x11a0+5095-0x2560),(0x14b6+1067-0x18b9),(0x1d99+245-0x1e65),
-(0x22ca+1082-0x26da),(0x126a+4991-0x25be),(0x1493+2252-0x1d33),
-(0x50+8093-0x1fc0),(0x273+5145-0x165e),(0x12fa+735-0x15aa),(0x380+7406-0x203e),
-(0x277+6372-0x1b2a),(0x412+7118-0x1fae),(0x3b8+3190-0xffb),(0xbba+919-0xf1d),
-(0x3e7+4638-0x15d0),(0x108d+4811-0x2322),(0x5f+5505-0x15a9),(0x10e3+1743-0x177a)
-,(0x1717+670-0x197c),(0x42d+7745-0x2234),(0x5ac+4640-0x1791),(0x1c93+883-0x1fca)
-,(0x1144+1358-0x1655),(0xbd3+5472-0x20f5),(0x6d6+2487-0x104e),
-(0x103a+2256-0x190a),(0x9e5+140-0xa30),(0x883+4751-0x1ad0),(0x1078+4703-0x2294),
-(0x666+6754-0x2084),(0x20c6+1606-0x26c7),(0x4d2+4593-0x167d),(0x420+5411-0x18fc)
-,(0xe6+4978-0x1410),(0xa41+7014-0x255e),(0x6c2+3476-0x140c),(0x736+5640-0x1cf3),
-(0x10cc+4648-0x22a8),(0x595+2364-0xe84),(0x1104+1040-0x14c6),(0x2dd+8517-0x23d3)
-,(0x1ad+6254-0x19cb),(0x11f6+3677-0x2002),(0x10a0+3202-0x1cd0),
-(0x18cf+1584-0x1eac),(0x10fd+4294-0x216f),(0x1162+3114-0x1d37),
-(0xc71+5300-0x20cf),(0x1b6+3594-0xf69),(0x1d5d+566-0x1f3b),(0x1dea+1681-0x2422),
-(0xc4c+186-0xcac),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x686+5422-0x1ba3),NON_GSM,
-(0xc41+6304-0x2480),(0xc83+97-0xc82),(0x1a21+2702-0x244c),(0x276+2908-0xd6e),
-(0x615+6221-0x1dfd),(0x1ec0+2170-0x26d4),(0xc76+5286-0x20b5),(0x1fc2+235-0x2045)
-,(0xa78+2923-0x157a),(0x674+738-0x8ec),(0xf35+4181-0x1f1f),(0xebf+2367-0x1792),
-(0x6ec+7226-0x22b9),(0x791+1584-0xd53),(0x10e2+2362-0x19ad),(0x15c3+4273-0x2604)
-,(0x1579+1243-0x19e3),(0x8ac+7811-0x26bd),(0x6b7+4519-0x17eb),
-(0x723+6779-0x212a),(0x55d+548-0x70c),(0x175f+701-0x19a6),(0x1249+4006-0x2178),
-(0x114d+5381-0x25da),(0x531+1386-0xa22),(0x5f1+6372-0x1e5b),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x375+4024-0x1312),(0x1f6+6031-0x1945),
-NON_GSM,(0x219+6281-0x1aa1),(0x553+5791-0x1bce),(0x3d9+966-0x79c),NON_GSM,
-(0x334+1188-0x779),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1218+3377-0x1ee9),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0x1104+799-0x13c8),(0x2e5+8592-0x2467),
-(0x40a+217-0x4c7),(0x58+3486-0xded),NON_GSM,(0x71+3763-0xf05),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1031+5548-0x2580),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0x1b56+605-0x1d57),NON_GSM,(0xe37+3972-0x1db0),NON_GSM,NON_GSM,
-NON_GSM,(0x14d7+939-0x1824),NON_GSM,NON_GSM,(0x6bb+990-0xa7b),(0x823+1476-0xd68)
-,NON_GSM,NON_GSM,NON_GSM,(0x2081+1136-0x2476),(0x9e9+1801-0x10e3),
-(0xde6+4991-0x2148),NON_GSM,(0xf37+2292-0x1827),(0x9f7+7141-0x25d7),NON_GSM,
-NON_GSM,(0x248f+633-0x2701),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xa38+1401-0xf34),
-(0x17f0+3058-0x23da),NON_GSM,NON_GSM,NON_GSM,(0x1179+3512-0x1eb5),NON_GSM,
-(0x860+1829-0xf79),(0x12fc+461-0x14c3),NON_GSM,NON_GSM,(0x393+3281-0xfe6),
-NON_GSM,NON_GSM,NON_GSM};const unsigned short
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={(0xf83+3372-0x1c6f),(0x169c+302-0x1727)
-,(0xe18+5615-0x23e3),(0x1044+519-0x11a6),(0x1264+2113-0x19bb),(0xc65+732-0xe58),
-(0xa95+4154-0x19d5),(0x50c+8350-0x24bd),(0x4b6+8357-0x2468),(0xecb+2590-0x1802),
-(0x15d7+2664-0x2035),(0x224a+1195-0x2621),(0x1944+2583-0x2267),
-(0x1074+2162-0x18d9),(0xf22+4675-0x20a4),(0x69d+8392-0x2684),(0x3ba+8275-0x2079)
-,(0x72c+1453-0xc7a),(0x19ba+2387-0x2263),(0x1f4+8706-0x232f),(0x8a6+4483-0x1969)
-,(0x268d+3329-0x1170),(0x1264+3873-0x2127),(0x417+3479-0x1152),
-(0x2301+6190-0x1a83),(0x1154+2023-0x1868),(0x745+494-0x8b7),(0xfc+8778-0x22a6),
-(0x9c2+5136-0x1d10),(0x14d3+1556-0x1a05),(0x56b+3536-0x1271),
-(0x1252+4714-0x23f3),(0x689+265-0x772),(0x87a+7134-0x2437),(0x72a+3972-0x168c),
-(0x4b0+5822-0x1b4b),(0x430+3525-0x1145),(0xdb4+2880-0x18cf),(0xdf2+3180-0x1a38),
-(0x16db+904-0x1a3c),(0xacb+7159-0x269a),(0x1778+226-0x1831),(0x178f+1301-0x1c7a)
-,(0x1562+1618-0x1b89),(0x103d+5203-0x2464),(0x3d+8170-0x1ffa),
-(0x446+6514-0x1d8a),(0x840+4471-0x1988),(0x1e7d+2190-0x26db),(0xefc+3343-0x1bda)
-,(0x1108+525-0x12e3),(0x12ad+1071-0x16a9),(0xa8+4274-0x1126),(0x60c+4732-0x1853)
-,(0xa3c+4265-0x1aaf),(0xb0a+6160-0x22e3),(0x1ba0+2725-0x260d),
-(0xbf1+2782-0x1696),(0x1ae7+805-0x1dd2),(0x120+7006-0x1c43),(0x224b+596-0x2463),
-(0x40c+722-0x6a1),(0x1486+974-0x1816),(0x775+7430-0x243c),(0x11b8+3230-0x1d89),
-(0x1d9f+2288-0x264e),(0x1400+3292-0x209a),(0x808+569-0x9fe),(0x9aa+6641-0x2357),
-(0x97b+1723-0xff1),(0x52b+660-0x779),(0x16ab+3125-0x2299),(0x1203+3373-0x1ee8),
-(0x60d+2889-0x110d),(0xbf2+4731-0x1e23),(0x2d0+5412-0x17a9),(0xf78+4023-0x1ee3),
-(0xbbc+5059-0x1f32),(0x1299+1509-0x1830),(0x145f+845-0x175d),(0xc09+6425-0x24d2)
-,(0xeb2+863-0x11c0),(0x2226+351-0x2333),(0x68+2423-0x98c),(0x410+2823-0xec3),
-(0x256+6462-0x1b3f),(0x1d6f+1927-0x24a0),(0xa01+5051-0x1d65),(0xbf0+6495-0x24f7)
-,(0x428+6183-0x1bf6),(0x84+6810-0x1ac4),(0x1caf+801-0x1f0d),(0x1061+5231-0x23fb)
-,(0xb3b+103-0xac8),(0xe79+125-0xe1a),(0xb0f+278-0xb7e),(0x1f58+679-0x2181),
-(0xf09+2859-0x19d3),(0x1ec1+1222-0x2325),(0x2e5+311-0x3b9),(0x1201+707-0x1460),
-(0x980+1640-0xf83),(0x94+8890-0x22e8),(0x1e02+2094-0x25c9),(0x1ddd+1761-0x2456),
-(0xfc4+4838-0x2241),(0x11b+6101-0x1886),(0x4bd+2439-0xdd9),(0x831+1350-0xd0b),
-(0x6e8+7292-0x22f7),(0x146b+3297-0x20de),(0x799+4996-0x1aae),(0x3d2+8824-0x25da)
-,(0x16ba+3556-0x242d),(0x11bd+1872-0x189b),(0x80a+4537-0x1950),
-(0x1bea+467-0x1d49),(0xfd6+162-0x1003),(0x1b88+2349-0x243f),(0x405+7939-0x2291),
-(0x10c7+1897-0x17b8),(0x1452+4441-0x2532),(0x1986+95-0x196b),(0xef7+3918-0x1d62)
-,(0xd44+2752-0x170f),(0x1be8+887-0x1eff),(0xa83+2198-0x121d),(0x27a+6957-0x1cc7)
-};const unsigned short zte_sms_GSMDefault_To_UCS2_Table[]={(0x454+6005-0x1b89),
-(0x4da+7242-0x2081),(0x2b1+4183-0x12e4),(0x1511+548-0x1690),(0x1759+1046-0x1a87)
-,(0x6fa+5958-0x1d57),(0x8fa+3143-0x1448),(0x919+6053-0x1fd2),
-(0x1c35+2871-0x267a),(0x1950+2572-0x2295),(0x8ec+7351-0x2599),
-(0x63f+4604-0x1763),(0xb91+3106-0x16bb),(0x120b+2365-0x1b3b),
-(0x1f67+1168-0x2332),(0xee8+3907-0x1d46),(0x1824+4164-0x24d4),
-(0xa3c+6663-0x23e4),(0x11f9+4055-0x1e2a),(0x64d+4041-0x1283),
-(0x17df+3144-0x208c),(0x1de6+3146-0x2687),(0x960+2638-0x100e),
-(0x1365+3227-0x1c58),(0x5a4+4999-0x1588),(0x1415+556-0x12a9),(0x64a+6071-0x1a63)
-,(0x220+5244-0x15fc),(0xe01+3690-0x1ba5),(0xc19+3541-0x1908),(0x999+6033-0x204b)
-,(0x167c+1938-0x1d45),(0x19b+8486-0x22a1),(0x466+7594-0x21ef),(0xa5+7038-0x1c01)
-,(0x17c2+2911-0x22fe),(0xb45+850-0xdf3),(0x1a4a+1771-0x2110),
-(0x1bc7+2497-0x2562),(0xc63+4749-0x1ec9),(0x964+7011-0x249f),(0x1f02+691-0x218c)
-,(0x928+4438-0x1a54),(0xbe5+6234-0x2414),(0x13e4+1708-0x1a64),
-(0x17a7+2042-0x1f74),(0xf14+2603-0x1911),(0xd2c+3011-0x18c0),(0x8f5+3343-0x15d4)
-,(0x1161+2556-0x1b2c),(0xbf9+6119-0x23ae),(0xbeb+2361-0x14f1),(0x588+2659-0xfb7)
-,(0x10d3+889-0x1417),(0x9cc+6549-0x232b),(0x100f+1724-0x1694),
-(0x1fa4+411-0x2107),(0x9a4+258-0xa6d),(0x1c04+1292-0x20d6),(0xa21+5751-0x205d),
-(0x3ab+8594-0x2501),(0x4f3+8573-0x2633),(0x356+4213-0x138d),(0x783+725-0xa19),
-(0xd51+4032-0x1c70),(0x456+1777-0xb06),(0x1d89+1171-0x21da),(0x1897+2764-0x2320)
-,(0x466+5326-0x18f0),(0x352+6390-0x1c03),(0x750+1390-0xc78),(0xa56+1447-0xfb6),
-(0x12f2+2163-0x1b1d),(0x6c1+6719-0x20b7),(0x70a+4558-0x188e),(0x107f+953-0x13ed)
-,(0xbb8+2632-0x15b4),(0x1890+3602-0x2655),(0x417+2034-0xbbb),(0x1a39+166-0x1a90)
-,(0x3ac+5436-0x1898),(0xa6a+3658-0x1863),(0x9b7+4785-0x1c16),(0xdb9+2626-0x17a8)
-,(0x665+6448-0x1f41),(0x39d+3993-0x12e1),(0xd4c+1513-0x12df),
-(0x1f00+1190-0x234f),(0x6e0+7797-0x24fd),(0x1f74+826-0x2255),(0x886+4456-0x1994)
-,(0xd37+5381-0x2178),(0x1013+1565-0x155a),(0x629+4529-0x1709),
-(0x1183+3605-0x1ebc),(0xb0c+4517-0x1c0a),(0xaa9+3231-0x1689),(0x254c+126-0x2569)
-,(0xef+6105-0x1866),(0x125a+4371-0x230a),(0xefd+6009-0x2612),(0x1ab7+845-0x1d9f)
-,(0x1350+2368-0x1c2a),(0xef8+480-0x1071),(0x1153+499-0x12de),(0x4b3+3946-0x13b4)
-,(0x12cd+3362-0x1f85),(0x1489+2465-0x1dbf),(0x5aa+6899-0x2031),(0xfa+1280-0x58d)
-,(0x1491+3251-0x20d6),(0xb12+1681-0x1134),(0x5c0+2894-0x109e),
-(0xa9d+6147-0x222f),(0x18a4+2299-0x212d),(0x1a61+2849-0x250f),
-(0x8f0+2915-0x13df),(0x1a7c+1167-0x1e96),(0x1a06+2110-0x21ce),
-(0x1246+3570-0x1fc1),(0x1d06+1242-0x2168),(0xca5+783-0xf3b),(0x1838+1253-0x1ca3)
-,(0x2095+1361-0x2502),(0x1779+4073-0x266c),(0x6a4+4285-0x1670),
-(0xc25+5846-0x21ff),(0x12e7+810-0x1531)};int Bytes2String(const unsigned char*
-pSrc,char*pDst,int nSrcLength){const char tab[]="0123456789ABCDEF";int i=
-(0x3d5+4394-0x14ff);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x2261+743-0x2548)){
-return-(0x3ab+978-0x77c);}for(i=(0x2f2+6916-0x1df6);i<nSrcLength;i++){*pDst++=
-tab[*pSrc>>(0xc04+943-0xfaf)];*pDst++=tab[*pSrc&(0x2fb+6325-0x1ba1)];pSrc++;}*
-pDst='\0';return nSrcLength*(0x1e0+125-0x25b);}int String2Bytes(const char*pSrc,
-unsigned char*pDst,int nSrcLength){int i=(0x229+581-0x46e);if(pSrc==NULL||pDst==
-NULL||nSrcLength<(0x1921+1285-0x1e26)){return-(0x4d0+5301-0x1984);}for(i=
-(0x2db+3870-0x11f9);i<nSrcLength;i+=(0x1b3d+2927-0x26aa)){if(*pSrc>=
-((char)(0x40c+1564-0x9f8))&&*pSrc<=((char)(0x8b5+5720-0x1ed4))){*pDst=(*pSrc-
-((char)(0x13f+4952-0x1467)))<<(0x34+8528-0x2180);}else{*pDst=((toupper(*pSrc)-
-((char)(0xe6f+2052-0x1632)))+(0x8b1+597-0xafc))<<(0x348+3759-0x11f3);}pSrc++;if(
-*pSrc>=((char)(0x16a6+3392-0x23b6))&&*pSrc<=((char)(0xc8b+1237-0x1127))){*pDst|=
-*pSrc-((char)(0x11d4+3080-0x1dac));}else{*pDst|=(toupper(*pSrc)-
-((char)(0x18ac+3602-0x267d)))+(0xb4f+2905-0x169e);}pSrc++;pDst++;}return
-nSrcLength/(0xa88+5759-0x2105);}int EncodeUcs2(const char*pSrc,unsigned char*
-pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x8aa+333-0x9f7)){
-return-(0x1271+3683-0x20d3);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);
-return nSrcLength/(0x1e25+1354-0x236d);}int Encode7bit(const char*pSrc,unsigned
-char*pDst,int nSrcLength){int nSrc;int nDst;int nChar;unsigned char nLeft=
-(0xab3+1912-0x122b);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x4d5+3182-0x1143)){
-return-(0x1a3f+1887-0x219d);}nSrc=(0x814+1427-0xda7);nDst=(0x10ff+3229-0x1d9c);
-while(nSrc<nSrcLength){nChar=nSrc&(0x1a28+1639-0x2088);if(nChar==
-(0x16ef+1596-0x1d2b)){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>
-(0x19bc+2596-0x23df))&&(nSrc==(nSrcLength-(0x347+7297-0x1fc7)))){nDst++;}}else{*
-pDst=(*pSrc<<((0x7a0+4208-0x1808)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst++
-;}pSrc++;nSrc++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst,
-UINT8 TP_FCS){SINT32 nLength=(0x2a7+61-0x2e4);SINT32 nDstLength=
-(0xe3b+699-0x10f6);UINT8 buf[(0x40b+3322-0x1005)]={(0x1e4b+2066-0x265d)};if(NULL
-==pDst){return-(0x295+4513-0x1435);}if(TP_FCS!=(0xdc1+5173-0x21f6)){buf[
-(0x436+1811-0xb49)]=(0x8ea+5266-0x1d7c);buf[(0x14b6+1982-0x1c73)]=TP_FCS;buf[
-(0x1310+861-0x166b)]=(0x743+1119-0xba2);nDstLength+=Bytes2String(buf,&pDst[
-nDstLength],(0x730+163-0x7d0));}else{buf[(0x10f7+1338-0x1631)]=
-(0x1203+1575-0x182a);buf[(0x373+8019-0x22c5)]=(0x19a9+1364-0x1efd);nDstLength+=
-Bytes2String(buf,&pDst[nDstLength],(0x915+7251-0x2566));}return nDstLength;}
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x229c+1142-0x26b2),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0xd74+646-0xf9f),(0x489+2074-0xc95),
+(0x100b+4667-0x222a),(0x991+5093-0x1d6d),NON_GSM,(0xa6a+4134-0x1a71),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x18e2+2451-0x2218),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x199a+1000-0x1d26),NON_GSM,(0x4b1+3184-0x1116),NON_GSM
+,NON_GSM,NON_GSM,(0x1c3c+1672-0x2266),NON_GSM,NON_GSM,(0x17c2+838-0x1aea),
+(0x1001+4148-0x1fb6),NON_GSM,NON_GSM,NON_GSM,(0x722+1862-0xded),
+(0x1709+4077-0x26e7),(0xd3f+6215-0x2569),NON_GSM,(0x10a8+3157-0x1cf9),
+(0xe24+3091-0x1a32),NON_GSM,NON_GSM,(0x1d63+1291-0x2267),NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,(0xeb4+1173-0x12cc),(0x3db+2485-0xd88),NON_GSM,NON_GSM,NON_GSM,
+(0x180a+1383-0x1cf5),NON_GSM,(0x572+1411-0xae9),(0x327+4953-0x167a),NON_GSM,
+NON_GSM,(0x208+7048-0x1d12),NON_GSM,NON_GSM,NON_GSM};const unsigned short
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={(0x201c+1421-0x2569),
+(0x5f0+3672-0x13a5),(0x1ad9+271-0x1bc4),(0x1aa+3385-0xe3e),(0x971+1363-0xdda),
+(0x12f+2565-0xa4b),(0x25d+619-0x3ce),(0x1642+3105-0x2176),(0x307+2603-0xc3f),
+(0x4ed+3696-0x1276),(0x6df+4619-0x18e0),(0x1af3+700-0x1cdb),(0x162b+1112-0x198f)
+,(0xaa7+681-0xd43),(0x11c+2560-0xa5b),(0x1f2d+1480-0x2414),(0x58b+2990-0xda5),
+(0x9f4+4084-0x1989),(0xdc5+1930-0x14a5),(0x2024+808-0x2285),(0x5d1+5135-0x1920),
+8734,(0x1243+3343-0x1ef4),(0x10ba+356-0x11c2),(0x26ef+5474-0x1ba5),
+(0x15b+9371-0x2523),(0x17e5+3363-0x248c),(0x5c7+3287-0x11fe),
+(0x1ba7+2660-0x2549),(0x1282+4335-0x228f),(0x18c0+3175-0x245d),
+(0x301+4613-0x143d),(0x11d0+2928-0x1d20),(0xa1+5811-0x1733),(0x925+4618-0x1b0d),
+(0x527+4646-0x172a),(0x121a+3603-0x1f7d),(0x272+3767-0x1104),(0x69+7484-0x1d7f),
+(0x1ca1+2369-0x25bb),(0xbd1+5360-0x2099),(0xc8f+2347-0x1591),(0x245+7123-0x1dee)
+,(0x777+718-0xa1a),(0x6a6+5871-0x1d69),(0x182d+2787-0x22e3),(0x1038+1548-0x1616)
+,(0x11b2+1336-0x16bb),(0x1b4d+2553-0x2516),(0xeab+1558-0x1490),
+(0x3b+8013-0x1f56),(0x149d+4303-0x2539),(0xf35+295-0x1028),(0x814+2338-0x1101),
+(0x91a+5136-0x1cf4),(0x44+589-0x25a),(0x16c3+492-0x1877),(0x156+4013-0x10ca),
+(0x1d4+5391-0x16a9),(0x1125+3870-0x2008),(0x888+5116-0x1c48),(0x1ed9+103-0x1f03)
+,(0x128c+1542-0x1854),(0x613+2230-0xe8a),(0x16c9+781-0x1909),(0xa57+4364-0x1b22)
+,(0x14c7+420-0x1629),(0x1799+3085-0x2363),(0xf41+2780-0x19d9),
+(0x5b1+7940-0x2470),(0xc23+5209-0x2036),(0x186f+1122-0x1c8a),
+(0x12b7+4034-0x2231),(0x7ed+7450-0x24be),(0x316+9086-0x264a),(0x792+3168-0x13a7)
+,(0x86a+5613-0x1e0b),(0x2543+463-0x26c5),(0xa5f+1127-0xe78),(0x1395+4398-0x2474)
+,(0x1e9+2574-0xba7),(0x18b9+3021-0x2435),(0x6d1+1769-0xd68),(0x49d+2789-0xf2f),
+(0x6b9+3301-0x134a),(0x8d0+5678-0x1ea9),(0x812+4486-0x1942),(0x550+7837-0x2396),
+(0x581+8265-0x2572),(0x8d4+151-0x912),(0x1135+4161-0x211c),(0x1923+1984-0x2020),
+(0x859+8055-0x26fb),(0x1adc+3081-0x260b),(0x1cc5+2739-0x269c),
+(0x781+6749-0x2137),(0x354+7165-0x1ed3),(0x47a+7012-0x1f7d),(0xc2+4375-0x1177),
+(0x350+3282-0xfbf),(0x49d+5537-0x19da),(0x1dd6+2192-0x2601),(0x6aa+5796-0x1ce8),
+(0xd30+4828-0x1fa5),(0xa92+875-0xd95),(0x5f8+23-0x5a6),(0x914+336-0x9fa),
+(0xd83+4742-0x1f9e),(0x1aa2+2839-0x254d),(0x17bf+2681-0x21cb),
+(0x44c+6639-0x1dcd),(0x249+2833-0xceb),(0x8cc+1052-0xc78),(0xf9b+3943-0x1e91),
+(0x1d65+131-0x1d76),(0x73b+652-0x954),(0x1020+2737-0x1a5d),(0x12e4+4002-0x2211),
+(0x1f1+5426-0x16ad),(0x2122+1264-0x259b),(0x998+5709-0x1f6d),
+(0x1ef4+1844-0x25af),(0xd07+6564-0x2631),(0x982+3327-0x159e),(0x76f+2872-0x11b2)
+,(0x1827+2491-0x2182),(0x1e2a+2434-0x26b0),(0x5b3+8362-0x257d)};const unsigned
+short zte_sms_GSMDefault_To_UCS2_Table[]={(0x1830+2700-0x227c),
+(0xf2b+1859-0x15cb),(0xa0c+4876-0x1cf4),(0x16e1+3180-0x22a8),
+(0x1032+1506-0x152c),(0xc81+2520-0x1570),(0x32b+1738-0x8fc),(0x201d+737-0x2212),
+(0xa43+3384-0x1689),(0x1f42+974-0x2249),(0x3c4+3093-0xfcf),(0xd00+1962-0x13d2),
+(0x2285+486-0x2373),(0x13b5+1747-0x1a7b),(0x5e5+7385-0x21f9),(0xca3+777-0xec7),
+(0xafc+5753-0x1de1),(0x1373+2954-0x1e9e),(0x1c64+1377-0x1e1f),
+(0x8ed+8054-0x24d0),(0x1da4+2510-0x23d7),(0xb73+7958-0x26e0),
+(0x200b+2243-0x252e),(0x1ed9+1036-0x1f3d),(0xdf6+109-0xac0),(0x20c9+1648-0x23a1)
+,(0x1219+818-0x11ad),(0x1587+3700-0x235b),(0x1751+410-0x1825),
+(0x15d0+4411-0x2625),(0x3a3+5181-0x1701),(0x2315+973-0x2619),(0x1ed+4307-0x12a0)
+,(0x1262+1348-0x1785),(0xfca+1512-0x1590),(0x5a7+5106-0x1976),
+(0xe59+5406-0x22d3),(0x263+3093-0xe53),(0xe98+6005-0x25e7),(0x637+2170-0xe8a),
+(0x2548+127-0x259f),(0x257a+176-0x2601),(0x144+9320-0x2582),(0x18f+1208-0x61c),
+(0x1524+1030-0x18fe),(0x1d4f+1998-0x24f0),(0x30c+2124-0xb2a),(0x516+8012-0x2433)
+,(0xfe9+3090-0x1bcb),(0x3c9+6200-0x1bd0),(0xbb1+4544-0x1d3f),(0x2c4+976-0x661),
+(0x1008+2174-0x1852),(0x9f+2530-0xa4c),(0x15ad+3996-0x2513),(0x8f3+308-0x9f0),
+(0x41c+1891-0xb47),(0x13fb+753-0x16b3),(0x1eac+1656-0x24ea),(0x1c65+2313-0x2533)
+,(0x2226+563-0x241d),(0x5b2+6545-0x1f06),(0x8b+2515-0xa20),(0x1280+1125-0x16a6),
+(0x1a3a+2774-0x246f),(0x8ba+5716-0x1ecd),(0xe82+727-0x1117),(0x780+4381-0x185a),
+(0x6cd+4589-0x1876),(0x667+1167-0xab1),(0x1feb+1408-0x2525),(0x475+3020-0xffa),
+(0x49+8255-0x2040),(0x55b+2011-0xced),(0x168a+2075-0x1e5b),(0x1561+1197-0x19c3),
+(0x19ff+2403-0x2316),(0x129f+2812-0x1d4e),(0x8e9+1227-0xd66),(0x57d+5893-0x1c33)
+,(0x2fa+4363-0x13b5),(0x596+8070-0x24cb),(0x15d8+244-0x167a),(0x464+4174-0x145f)
+,(0x392+3963-0x12b9),(0x600+743-0x892),(0x3ef+5104-0x1789),(0xa19+2515-0x1395),
+(0x3d9+2333-0xc9e),(0x6a+8758-0x2247),(0x8e8+2060-0x109a),(0xe5b+2471-0x173e),
+(0x600+3085-0x1137),(0x4af+2804-0xed2),(0x87d+1531-0xd9c),(0x1650+1809-0x1cba),
+(0x1a10+1894-0x20b7),(0xc5+5396-0x1578),(0x788+2305-0x1027),(0x7f5+4792-0x1a4a),
+(0x1a4b+398-0x1b75),(0x1b38+2457-0x246c),(0x1311+713-0x1574),(0xa7c+7232-0x2655)
+,(0x190a+1373-0x1dff),(0x938+1721-0xf88),(0x212a+1470-0x267e),
+(0x24c+9001-0x250a),(0xa98+6259-0x229f),(0x642+4366-0x16e3),(0x934+7222-0x24fc),
+(0xe5c+1805-0x14fa),(0xd90+3901-0x1c5d),(0x3bb+358-0x4b0),(0xbf6+2758-0x164a),
+(0x9c0+7021-0x24ba),(0x10d5+3190-0x1cd7),(0x381+6774-0x1d82),(0x603+6043-0x1d28)
+,(0x834+312-0x8f5),(0x1283+654-0x1499),(0x524+146-0x53d),(0x61d+6407-0x1eaa),
+(0x1cb+6832-0x1b97),(0x418+6404-0x1c26),(0x18ec+3603-0x260e),(0x468+6396-0x1c68)
+,(0x6e8+42-0x632)};int Bytes2String(const unsigned char*pSrc,char*pDst,int
+nSrcLength){const char tab[]="0123456789ABCDEF";int i=(0x75c+7147-0x2347);if(
+pSrc==NULL||pDst==NULL||nSrcLength<(0x193+3795-0x1066)){return-(0x634+104-0x69b)
+;}for(i=(0x1995+1934-0x2123);i<nSrcLength;i++){*pDst++=tab[*pSrc>>
+(0x9a6+3105-0x15c3)];*pDst++=tab[*pSrc&(0x521+7604-0x22c6)];pSrc++;}*pDst='\0';
+return nSrcLength*(0x10ca+3408-0x1e18);}int String2Bytes(const char*pSrc,
+unsigned char*pDst,int nSrcLength){int i=(0x6ed+3989-0x1682);if(pSrc==NULL||pDst
+==NULL||nSrcLength<(0x1004+3806-0x1ee2)){return-(0xb04+3417-0x185c);}for(i=
+(0x6f5+5463-0x1c4c);i<nSrcLength;i+=(0x695+3918-0x15e1)){if(*pSrc>=
+((char)(0x12af+2304-0x1b7f))&&*pSrc<=((char)(0x14d+7616-0x1ed4))){*pDst=(*pSrc-
+((char)(0x3d7+2234-0xc61)))<<(0x2534+104-0x2598);}else{*pDst=((toupper(*pSrc)-
+((char)(0xd62+2615-0x1758)))+(0x21ba+175-0x225f))<<(0x374+6515-0x1ce3);}pSrc++;
+if(*pSrc>=((char)(0x1a73+162-0x1ae5))&&*pSrc<=((char)(0x14a3+1143-0x18e1))){*
+pDst|=*pSrc-((char)(0xeed+2198-0x1753));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x57d+8328-0x25c4)))+(0x1de8+281-0x1ef7);}pSrc++;pDst++;}return
+nSrcLength/(0x89d+342-0x9f1);}int EncodeUcs2(const char*pSrc,unsigned char*pDst,
+int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x19d+7081-0x1d46)){
+return-(0xd25+4331-0x1e0f);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);return
+ nSrcLength/(0x19a5+1111-0x1dfa);}int Encode7bit(const char*pSrc,unsigned char*
+pDst,int nSrcLength){int nSrc;int nDst;int nChar;unsigned char nLeft=
+(0x412+478-0x5f0);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x885+1401-0xdfe)){
+return-(0x1b8c+93-0x1be8);}nSrc=(0x2a7+7847-0x214e);nDst=(0xda3+4644-0x1fc7);
+while(nSrc<nSrcLength){nChar=nSrc&(0x1472+3786-0x2335);if(nChar==
+(0x245+5875-0x1938)){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>
+(0xe47+276-0xf5a))&&(nSrc==(nSrcLength-(0x6e1+1435-0xc7b)))){nDst++;}}else{*pDst
+=(*pSrc<<((0x182+5017-0x1513)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst++;}
+pSrc++;nSrc++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst,
+UINT8 TP_FCS){SINT32 nLength=(0x524+2979-0x10c7);SINT32 nDstLength=
+(0x7d6+2931-0x1349);UINT8 buf[(0xd76+2649-0x16cf)]={(0x58f+1368-0xae7)};if(NULL
+==pDst){return-(0x5e1+1761-0xcc1);}if(TP_FCS!=(0x849+2794-0x1333)){buf[
+(0x16b7+2108-0x1ef3)]=(0x5b4+2814-0x10b2);buf[(0x8f9+2173-0x1175)]=TP_FCS;buf[
+(0x168d+1128-0x1af3)]=(0x18f5+2478-0x22a3);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0x1455+1253-0x1937));}else{buf[(0x113a+2362-0x1a74)]=
+(0x1e00+1023-0x21ff);buf[(0x84c+2-0x84d)]=(0x1e98+669-0x2135);nDstLength+=
+Bytes2String(buf,&pDst[nDstLength],(0x1ae0+558-0x1d0c));}return nDstLength;}
unsigned long zUfiSms_ConvertAsciiToGsmDefault(const unsigned char*inputs,
-unsigned char*outputs,unsigned long len){unsigned long i=(0x2d9+312-0x411);
-unsigned long j=(0x33a+6882-0x1e1c);unsigned long k=(0x4ff+1532-0xafb);if(NULL==
-inputs||NULL==outputs){printf(
+unsigned char*outputs,unsigned long len){unsigned long i=(0xf04+5086-0x22e2);
+unsigned long j=(0x9cd+7342-0x267b);unsigned long k=(0x1441+3388-0x217d);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(0x5ba+8400-0x268a);}for(i=(0x16a7+3667-0x24fa);i<len;i++){j=inputs[i];if(
-g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x89c+7511-0x24f4)){outputs[k]=
+return(0x6a6+3006-0x1264);}for(i=(0x12f+5453-0x167c);i<len;i++){j=inputs[i];if(
+g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x1f1+917-0x487)){outputs[k]=
g_zUfiSms_AsciiToGsmdefaultTable[j];}else{outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0x1b11+387-0x1c8c);k++;outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&(0x3db+3595-0x10e7));}k++;}return k;}
+g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0x1a5+1311-0x6bc);k++;outputs[k]=(
+g_zUfiSms_AsciiToGsmdefaultTable[j]&(0xadd+4986-0x1d58));}k++;}return k;}
unsigned long zUfiSms_ConvertUcs2ToSpanish(const unsigned char*def,unsigned char
-*gsm_default,unsigned long len){unsigned long i=(0x1141+5061-0x2506);unsigned
-long k=(0x166f+944-0x1a1f);unsigned long p=(0x12f5+4958-0x2653);unsigned long
-tmp=(0x63d+7320-0x22d5);unsigned long s1=(0x407+1577-0xa30),s2=
-(0x631+4056-0x1609);unsigned long q=(0x78d+1403-0xd08);s1=sizeof(
+*gsm_default,unsigned long len){unsigned long i=(0x159+1054-0x577);unsigned long
+ k=(0xb4c+1266-0x103e);unsigned long p=(0x12f6+770-0x15f8);unsigned long tmp=
+(0xcf4+5399-0x220b);unsigned long s1=(0x192+2693-0xc17),s2=(0x994+1740-0x1060);
+unsigned long q=(0x6fc+7844-0x25a0);s1=sizeof(
zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0xca5+3588-0x1aa9)]);s2=sizeof(
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0x8f0+5957-0x2035)]);s2=sizeof(
Ucs2_To_Gsm7_SPANISH_Table_UCS)/sizeof(Ucs2_To_Gsm7_SPANISH_Table_UCS[
-(0x13dd+1796-0x1ae1)]);for(i=(0x4ea+1220-0x9ae);i<len;i++){if(def[i]==
-(0x3b2+8581-0x2537)){i++;if(Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]!=NON_GSM){
+(0x23ac+641-0x262d)]);for(i=(0xa4a+2235-0x1305);i<len;i++){if(def[i]==
+(0x30f+8684-0x24fb)){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]==(0xd41+1344-0x1261)))
-{gsm_default[k]=(0x1f8+7201-0x1df9);k++;continue;}for(q=(0x1834+680-0x1adc);q<s1
-;q++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x54a+3913-0x1492)]){
-gsm_default[k]=(0x15b7+1912-0x1d14);k++;gsm_default[k]=
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0xa11+2408-0x1379)];break;}}}else{tmp=
-(def[i]<<(0x15fd+313-0x172e))+def[i+(0xbe8+5976-0x233f)];i++;if(tmp==8364){
-gsm_default[k]=(0x146+1781-0x820);k++;gsm_default[k]=(0x9c1+3765-0x1811);k++;}
-for(p=(0x153b+2621-0x1f78);p<s2;p++){if(tmp==Ucs2_To_Gsm7_SPANISH_Table_UCS[p][
-(0x990+4659-0x1bc2)]){gsm_default[k]=Ucs2_To_Gsm7_SPANISH_Table_UCS[p][
-(0x10b2+2643-0x1b05)];break;}}}k++;}gsm_default[k]='\0';return k;}unsigned long
+Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0xc01+2738-0x1693)))
+{gsm_default[k]=(0x19a6+2980-0x252a);k++;continue;}for(q=(0xc60+5208-0x20b8);q<
+s1;q++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x62c+7654-0x2411)]
+){gsm_default[k]=(0x599+3846-0x1484);k++;gsm_default[k]=
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x3f+5489-0x15b0)];break;}}}else{tmp=(
+def[i]<<(0x1a0a+2310-0x2308))+def[i+(0x1e6+647-0x46c)];i++;if(tmp==8364){
+gsm_default[k]=(0x7cd+7413-0x24a7);k++;gsm_default[k]=(0x1a27+2989-0x256f);k++;}
+for(p=(0x12d8+1564-0x18f4);p<s2;p++){if(tmp==Ucs2_To_Gsm7_SPANISH_Table_UCS[p][
+(0x1cf+1204-0x682)]){gsm_default[k]=Ucs2_To_Gsm7_SPANISH_Table_UCS[p][
+(0x7e0+972-0xbac)];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=(0x14f9+3790-0x23c7);unsigned
-long k=(0x745+7437-0x2452);unsigned long p=(0x1669+529-0x187a);unsigned long tmp
-=(0x36a+5585-0x193b);unsigned long s1=(0x12b2+4722-0x2524),s2=
-(0x8c0+7197-0x24dd);unsigned long q=(0x1543+4379-0x265e);s1=sizeof(
+gsm_default,unsigned long len){unsigned long i=(0x47d+8499-0x25b0);unsigned long
+ k=(0x5f+8291-0x20c2);unsigned long p=(0x10a4+734-0x1382);unsigned long tmp=
+(0xe6f+737-0x1150);unsigned long s1=(0x1680+2887-0x21c7),s2=(0xc25+1367-0x117c);
+unsigned long q=(0xd42+803-0x1065);s1=sizeof(
zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x1371+3079-0x1f78)]);s2=sizeof(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x1525+2182-0x1dab)]);s2=sizeof(
Ucs2_To_Gsm7_PORTUGUESE_Table_UCS)/sizeof(Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[
-(0x2eb+1561-0x904)]);for(i=(0xc85+6589-0x2642);i<len;i++){if(def[i]==
-(0x4c9+6803-0x1f5c)){i++;if(Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]!=NON_GSM){
+(0x17f2+1032-0x1bfa)]);for(i=(0x74d+1124-0xbb1);i<len;i++){if(def[i]==
+(0xe2+3783-0xfa9)){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]==
-(0x55c+4211-0x15af))){gsm_default[k]=(0xc3+8764-0x22df);k++;continue;}for(q=
-(0xacc+775-0xdd3);q<s1;q++){if(def[i]==zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[
-q][(0x1c55+1529-0x224d)]){gsm_default[k]=(0xbc4+3992-0x1b41);k++;gsm_default[k]=
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x369+1774-0xa57)];break;}}}else{
-tmp=(def[i]<<(0x106+5713-0x174f))+def[i+(0x117b+249-0x1273)];i++;if(tmp==8364){
-gsm_default[k]=(0x19a8+1892-0x20f1);k++;gsm_default[k]=(0xbe1+5358-0x206a);k++;
-continue;}for(p=(0x13b6+4094-0x23b4);p<s2;p++){if(tmp==
-Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x158b+2681-0x2003)]){gsm_default[k]=
-Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x150b+275-0x161e)];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=(0x263+2814-0xd61);unsigned long k=(0x24b+3976-0x11d3);unsigned long p=
-(0x178a+1992-0x1f52);unsigned long tmp=(0xf0b+4401-0x203c);unsigned long s1=
-(0x1a61+1243-0x1f3c),s2=(0x2104+186-0x21be);unsigned long q=(0x1a88+2764-0x2554)
-;s1=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x487+8042-0x23f1)]);s2=sizeof(
-UCS2_To_GSMDefault_Table_UCS2)/sizeof(UCS2_To_GSMDefault_Table_UCS2[
-(0x1311+2132-0x1b65)]);for(i=(0x1559+1517-0x1b46);i<len;i++){if(def[i]==
-(0x6a+1871-0x7b9)){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]==(0x1861+978-0x1c13))){
-gsm_default[k]=(0xed9+2289-0x17aa);k++;continue;}for(q=(0x195c+1916-0x20d8);q<s1
-;q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x13eb+3068-0x1fe6)]){
-gsm_default[k]=(0x826+2213-0x10b0);k++;gsm_default[k]=
-zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x8a3+7571-0x2636)];break;}}}else{tmp=(
-def[i]<<(0x736+7595-0x24d9))+def[i+(0x83+7768-0x1eda)];i++;if(tmp==8364){
-gsm_default[k]=(0x13c8+314-0x14e7);k++;gsm_default[k]=(0x146+2091-0x90c);k++;
-continue;}for(p=(0xc9d+1835-0x13c8);p<s2;p++){if(tmp==
-UCS2_To_GSMDefault_Table_UCS2[p][(0x19d4+2489-0x238c)]){gsm_default[k]=
-UCS2_To_GSMDefault_Table_UCS2[p][(0x1346+4271-0x23f5)];break;}}}k++;}gsm_default
-[k]='\0';return k;}UINT8 zUfiSms_TsIntToBcd(const UINT8 i){return(UINT8)(((i%
-(0xa7c+100-0xad6))+((i/(0x65f+8076-0x25e1))<<(0x4b8+2148-0xd18))));}void
+(0x1062+426-0x11ec))){gsm_default[k]=(0xa9+5789-0x1726);k++;continue;}for(q=
+(0xd9c+1630-0x13fa);q<s1;q++){if(def[i]==
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0xc1c+4070-0x1c01)]){gsm_default[k]
+=(0x71b+2758-0x11c6);k++;gsm_default[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex
+[q][(0x33b+5557-0x18f0)];break;}}}else{tmp=(def[i]<<(0xb11+5397-0x201e))+def[i+
+(0x671+5056-0x1a30)];i++;if(tmp==8364){gsm_default[k]=(0x852+7192-0x244f);k++;
+gsm_default[k]=(0xf8f+2868-0x1a5e);k++;continue;}for(p=(0xf3b+3043-0x1b1e);p<s2;
+p++){if(tmp==Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x462+4163-0x14a4)]){
+gsm_default[k]=Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x101+6032-0x1891)];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=(0x177a+3534-0x2548);unsigned
+long k=(0xe1f+4859-0x211a);unsigned long p=(0x1ec6+450-0x2088);unsigned long tmp
+=(0x20dd+478-0x22bb);unsigned long s1=(0x573+7822-0x2401),s2=(0xeb+4464-0x125b);
+unsigned long q=(0x6b3+7521-0x2414);s1=sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[
+(0x93b+5617-0x1f2c)]);s2=sizeof(UCS2_To_GSMDefault_Table_UCS2)/sizeof(
+UCS2_To_GSMDefault_Table_UCS2[(0x98+5111-0x148f)]);for(i=(0x225f+232-0x2347);i<
+len;i++){if(def[i]==(0x5cc+4474-0x1746)){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]==
+(0x91c+468-0xad0))){gsm_default[k]=(0x911+4081-0x18e2);k++;continue;}for(q=
+(0x371+5723-0x19cc);q<s1;q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][
+(0xdca+241-0xeba)]){gsm_default[k]=(0x335+19-0x32d);k++;gsm_default[k]=
+zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x6b1+3649-0x14f2)];break;}}}else{tmp=(
+def[i]<<(0xb3b+495-0xd22))+def[i+(0xee8+5548-0x2493)];i++;if(tmp==8364){
+gsm_default[k]=(0x183f+509-0x1a21);k++;gsm_default[k]=(0x14d6+543-0x1690);k++;
+continue;}for(p=(0x553+3506-0x1305);p<s2;p++){if(tmp==
+UCS2_To_GSMDefault_Table_UCS2[p][(0x1a07+777-0x1d0f)]){gsm_default[k]=
+UCS2_To_GSMDefault_Table_UCS2[p][(0xf1d+2849-0x1a3e)];break;}}}k++;}gsm_default[
+k]='\0';return k;}UINT8 zUfiSms_TsIntToBcd(const UINT8 i){return(UINT8)(((i%
+(0x9ec+169-0xa8b))+((i/(0xf44+2179-0x17bd))<<(0x1075+4861-0x236e))));}void
zUfiSms_DecodeRelativeTime(UINT8 iValidTime,T_zUfiSms_TimeStamp*ptTimeStamp){
-uint32 i=(0xb83+1006-0xf71);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
-(0x46a+6251-0x1cd5),sizeof(wms_timestamp_s_type));if(iValidTime<
-(0x11f2+2948-0x1ce6)){i=(iValidTime+(0x9cb+1414-0xf50))*(0x685+3797-0x1555);
-ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0x32c+7312-0x1f80)));
-ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0x1f83+1233-0x2418)));}
-else if(iValidTime<(0x20bd+1105-0x2467)){i=(iValidTime-(0x15b8+1005-0x1916))*
-(0x1652+2882-0x2176);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
-(0x7dc+6728-0x2218)+i/(0x1978+1744-0x200c)));ptTimeStamp->minute=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0xdb9+3828-0x1c71)));}else if(iValidTime<
-(0x183d+3951-0x26e7)){i=iValidTime-(0xa12+1810-0x107e);ptTimeStamp->month=(UINT8
-)zUfiSms_TsIntToBcd((UINT8)(i/(0x11d6+5273-0x2651)));ptTimeStamp->day=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0x1b62+1576-0x216c)));}else{i=(iValidTime-
-(0xfd6+301-0x1043))*(0x1174+3599-0x1f7c);ptTimeStamp->year=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i/(0x1111+5583-0x2573)));ptTimeStamp->month=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)((i%(0x678+321-0x64c))/(0x1992+321-0x1ab5)));
-ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0x1ab0+2292-0x2237))%
-(0xccb+66-0xcef)));}}else{printf(
+uint32 i=(0x8b+5750-0x1701);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
+(0xead+5610-0x2497),sizeof(wms_timestamp_s_type));if(iValidTime<
+(0x96b+6350-0x21a9)){i=(iValidTime+(0x2421+204-0x24ec))*(0x5e0+4756-0x186f);
+ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0x436+1225-0x8c3)));
+ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0xa39+5545-0x1fa6)));}
+else if(iValidTime<(0xfac+1282-0x1407)){i=(iValidTime-(0x9af+2789-0x1405))*
+(0x15b1+3270-0x2259);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
+(0x548+5542-0x1ae2)+i/(0xcd3+5293-0x2144)));ptTimeStamp->minute=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0xbe9+4173-0x1bfa)));}else if(iValidTime<
+(0x28f+3002-0xd84)){i=iValidTime-(0x6df+7659-0x2424);ptTimeStamp->month=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i/(0x543+4697-0x177e)));ptTimeStamp->day=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0x5a8+7520-0x22ea)));}else{i=(iValidTime-
+(0xcc5+5330-0x20d7))*(0x1692+467-0x185e);ptTimeStamp->year=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i/(0x2d8+1545-0x774)));ptTimeStamp->month=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)((i%(0x1461+5145-0x270d))/(0xb55+2300-0x1433)));
+ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0xfbf+2100-0x1686))%
+(0x120c+4089-0x21e7)));}}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=(0xc9+6381-0x19b6);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}for
-(i=(0x21d2+154-0x226c);i<iLen;i++){pIntArray[i]=pCharArray[i]-
-((char)(0xd0+4377-0x11b9));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
+i=(0x1462+1263-0x1951);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}
+for(i=(0xce8+2208-0x1588);i<iLen;i++){pIntArray[i]=pCharArray[i]-
+((char)(0x6ca+4913-0x19cb));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
T_zUfiSms_SubmitTpdu*ptSubmit,T_zUfiSms_ConcatInfo*ptConcatSms,
-T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0x103f+2342-0x1965);if(ptConcatSms->
-total_msg>(0x4a7+6395-0x1da1)){g_zUfiSms_SendingSms.TP_UDHI=(0x4d4+1051-0x8ee);
-g_zUfiSms_SendingSms.TP_UD[(0x13ad+4022-0x2363)]=(0x144b+68-0x148a);
-g_zUfiSms_SendingSms.TP_UD[(0x1316+2202-0x1baf)]=(0x16b0+2305-0x1fac);
-g_zUfiSms_SendingSms.TP_UD[(0x881+1844-0xfb3)]=(0x322+2493-0xcdc);
-g_zUfiSms_SendingSms.TP_UD[(0x11b+8673-0x22f9)]=(char)ptDbSaveData->concat_info[
-(0x12da+170-0x1384)]%(0x621+8491-0x264d);g_zUfiSms_SendingSms.TP_UD[
-(0x141d+4567-0x25f0)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
-(0x52+5604-0x1631)]=(char)ptConcatSms->current_sending+(0xc18+4939-0x1f62);
-g_zUfiSms_SendingSms.TP_UD[(0x500+5572-0x1abe)]=(0xae6+1530-0x10da);for(i=
-(0x376+4914-0x16a8);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD
-[i+(0x2142+531-0x234e)]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.
-TP_UDLength=ptSubmit->user_data.sm_len+(0x12a5+3591-0x20a5);}else{for(i=
-(0x104c+2089-0x1875);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.
+T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0x891+629-0xb06);if(ptConcatSms->
+total_msg>(0xe09+5568-0x23c8)){g_zUfiSms_SendingSms.TP_UDHI=(0x190b+2424-0x2282)
+;g_zUfiSms_SendingSms.TP_UD[(0x57d+7714-0x239f)]=(0x1595+1673-0x1c19);
+g_zUfiSms_SendingSms.TP_UD[(0x389+4159-0x13c7)]=(0x426+6516-0x1d95);
+g_zUfiSms_SendingSms.TP_UD[(0xdf0+2592-0x180e)]=(0x23a+4191-0x1296);
+g_zUfiSms_SendingSms.TP_UD[(0x859+1710-0xf04)]=(char)ptDbSaveData->concat_info[
+(0x37c+7844-0x2220)]%(0xc9a+1038-0xfa9);g_zUfiSms_SendingSms.TP_UD[
+(0x1018+5700-0x2658)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
+(0xa63+6152-0x2266)]=(char)ptConcatSms->current_sending+(0x20c+4789-0x14c0);
+g_zUfiSms_SendingSms.TP_UD[(0x244+8018-0x2190)]=(0xd52+211-0xe1f);for(i=
+(0x8b3+2744-0x136b);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD
+[i+(0x105f+4368-0x2168)]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.
+TP_UDLength=ptSubmit->user_data.sm_len+(0x480+5227-0x18e4);}else{for(i=
+(0x150c+4087-0x2503);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>
-(0x1897+582-0x1adc)){g_zUfiSms_SendingSms.TP_UDHI=(0x639+3580-0x1434);
-g_zUfiSms_SendingSms.TP_UD[(0x957+350-0xab5)]=(0x79d+2920-0x1300);
-g_zUfiSms_SendingSms.TP_UD[(0x4b0+2546-0xea1)]=(0x20fb+482-0x22d8);
-g_zUfiSms_SendingSms.TP_UD[(0x1fad+1252-0x248f)]=(0x12f1+3284-0x1fc2);
-g_zUfiSms_SendingSms.TP_UD[(0xdf7+5884-0x24f0)]=(char)ptDbSaveData->concat_info[
-(0x7ac+862-0xb0a)]%(0xaa1+751-0xc91);g_zUfiSms_SendingSms.TP_UD[
-(0x1088+2897-0x1bd5)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
-(0xd10+3701-0x1b80)]=(char)ptConcatSms->current_sending+(0x690+251-0x78a);(void)
-Bytes2String(ptSubmit->user_data.sm_data,&g_zUfiSms_SendingSms.TP_UD[
-(0x9a7+3544-0x1779)],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)(0xa90+7332-0x26d3))&&x<((char)(0x5d0+2334-0xe87))){x=(x-
-((char)(0x15a0+1757-0x1c1c)))+((char)(0x533+5020-0x188e));}return x;}unsigned
-char zUfiSms_Char2Dec(unsigned char x){unsigned char d=(0x12b2+3098-0x1ecc);if(x
->=((char)(0x1530+19-0x1502))&&x<((char)(0x1a2+9180-0x2537))){d=(x-
-((char)(0xd42+2759-0x17c8)))+(0x134a+4514-0x24e2);}else{d=x-
-((char)(0xeef+3026-0x1a91));}return d;}unsigned char zUfiSms_Char2Byte(unsigned
-char a,unsigned char b){unsigned char data=(0x1d3d+751-0x202c);unsigned char l=
-(0x3c4+3452-0x1140),h=(0x142c+841-0x1775);a=zUfiSms_Low2High(a);b=
-zUfiSms_Low2High(b);h=zUfiSms_Char2Dec(a);l=zUfiSms_Char2Dec(b);data=h*
-(0x1aa8+2854-0x25be)+l;return data;}void zUfiSms_Str2Bytes(unsigned char*text,
-int text_len,unsigned char*data,int data_len){int i=(0x1b07+1835-0x2232);while(
-(0x1d62+1985-0x2521)*i+(0x5f1+6586-0x1faa)<text_len){data[i]=zUfiSms_Char2Byte(
-text[(0x2257+688-0x2505)*i],text[(0x134d+2440-0x1cd3)*i+(0x1242+3499-0x1fec)]);i
-++;}}int zUfiSms_SplitString(char*input,char***output,char cMatchChar){int src=
-(0x13f2+2249-0x1cbb);int dst=(0x212+3580-0x100e);int count=(0x482+2086-0xca8);
-int size=(0xff0+835-0x132b);char quoted=(0x1db+5410-0x16fd);char**tmpout=NULL;*
+T_zUfiSms_DbStoreData*ptDbSaveData){if(ptConcatSms->total_msg>(0x680+632-0x8f7))
+{g_zUfiSms_SendingSms.TP_UDHI=(0x520+5951-0x1c5e);g_zUfiSms_SendingSms.TP_UD[
+(0x63f+1662-0xcbd)]=(0xf09+5044-0x22b8);g_zUfiSms_SendingSms.TP_UD[
+(0xb85+5298-0x2036)]=(0x1bc2+323-0x1d00);g_zUfiSms_SendingSms.TP_UD[
+(0xa62+7329-0x2701)]=(0x952+2638-0x139d);g_zUfiSms_SendingSms.TP_UD[
+(0x11f2+1318-0x1715)]=(char)ptDbSaveData->concat_info[(0xad7+4769-0x1d78)]%
+(0x665+3423-0x12c5);g_zUfiSms_SendingSms.TP_UD[(0x758+4231-0x17db)]=(char)
+ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[(0x889+7315-0x2517)]=(char)
+ptConcatSms->current_sending+(0x16c0+3356-0x23db);(void)Bytes2String(ptSubmit->
+user_data.sm_data,&g_zUfiSms_SendingSms.TP_UD[(0x320+6931-0x1e2d)],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)(0x930+1881-0x1028))&&x<
+((char)(0xa06+955-0xd5a))){x=(x-((char)(0x167f+71-0x1665)))+
+((char)(0x16d6+958-0x1a53));}return x;}unsigned char zUfiSms_Char2Dec(unsigned
+char x){unsigned char d=(0x207+1746-0x8d9);if(x>=((char)(0x1b52+838-0x1e57))&&x<
+((char)(0xb49+5180-0x1f3e))){d=(x-((char)(0x113d+3883-0x2027)))+
+(0x131+7629-0x1ef4);}else{d=x-((char)(0xd0b+6212-0x251f));}return d;}unsigned
+char zUfiSms_Char2Byte(unsigned char a,unsigned char b){unsigned char data=
+(0x6a4+2535-0x108b);unsigned char l=(0x1690+127-0x170f),h=(0x710+4816-0x19e0);a=
+zUfiSms_Low2High(a);b=zUfiSms_Low2High(b);h=zUfiSms_Char2Dec(a);l=
+zUfiSms_Char2Dec(b);data=h*(0xea5+2528-0x1875)+l;return data;}void
+zUfiSms_Str2Bytes(unsigned char*text,int text_len,unsigned char*data,int
+data_len){int i=(0x1e23+1206-0x22d9);while((0x9a3+5255-0x1e28)*i+
+(0x580+7628-0x234b)<text_len){data[i]=zUfiSms_Char2Byte(text[
+(0x12f2+1678-0x197e)*i],text[(0x1b97+2379-0x24e0)*i+(0x4a9+1586-0xada)]);i++;}}
+int zUfiSms_SplitString(char*input,char***output,char cMatchChar){int src=
+(0x7c5+6981-0x230a);int dst=(0x12db+445-0x1498);int count=(0x38+1776-0x728);int
+size=(0x113a+2449-0x1ac3);char quoted=(0x218+1804-0x924);char**tmpout=NULL;*
output=(char**)malloc(sizeof(char*)*size);if(NULL==*output){return-
-(0x130c+76-0x1357);}(*output)[count++]=input;for(src=dst=(0x292+9228-0x269e);
+(0x384+5617-0x1974);}(*output)[count++]=input;for(src=dst=(0x763+6020-0x1ee7);
input[src];){char cInputChar=input[src];if(!quoted&&cInputChar==cMatchChar){
-input[dst++]=(0x2cb+5452-0x1817);while(input[++src]&&(int)isspace(input[src])){}
-;if(count>=size){size+=(0x661+8271-0x26a0);tmpout=(char**)realloc(*output,sizeof
-(char*)*size);if(NULL==tmpout){return-(0xc5d+5156-0x2080);}*output=tmpout;}(*
-output)[count++]=input+dst;}else if(!quoted&&(cInputChar=='\''||cInputChar==
-((char)(0x4ff+4710-0x1743)))){quoted=cInputChar;src++;}else if(cInputChar==
-quoted){quoted=(0x1cda+2503-0x26a1);src++;}else{if(cInputChar=='\\'&"ed!=
-'\''){src++;cInputChar=input[src];if(!cInputChar){free(*output);*output=NULL;
-return-(0x10a0+3926-0x1ff5);}}input[dst++]=cInputChar;src++;}}input[dst]=
-(0x126d+4225-0x22ee);if(quoted){free(*output);*output=NULL;return-
-(0x20d+2208-0xaac);}return count;}int zUfiSms_atohex(char c){int result=
-(0x837+4101-0x183c);if(c>=((char)(0x15af+2509-0x1f4c))&&c<=
-((char)(0xb74+70-0xb81))){result=c-((char)(0x13ec+4597-0x25b1));}else if(c>=
-((char)(0x387+4390-0x144c))&&c<=((char)(0x1719+682-0x195d))){result=(c-
-((char)(0xfbb+1924-0x16de)))+(0x9b6+5431-0x1ee3);}else if(c>=
-((char)(0x435+2695-0xe7b))&&c<=((char)(0xcfb+5835-0x2380))){result=(c-
-((char)(0x165+2461-0xac1)))+(0x38b+1365-0x8d6);}else{at_print(LOG_DEBUG,
+input[dst++]=(0x17e1+2530-0x21c3);while(input[++src]&&(int)isspace(input[src])){
+};if(count>=size){size+=(0x26f+6419-0x1b72);tmpout=(char**)realloc(*output,
+sizeof(char*)*size);if(NULL==tmpout){return-(0x6d2+190-0x78f);}*output=tmpout;}(
+*output)[count++]=input+dst;}else if(!quoted&&(cInputChar=='\''||cInputChar==
+((char)(0x3a6+5949-0x1ac1)))){quoted=cInputChar;src++;}else if(cInputChar==
+quoted){quoted=(0x45+7811-0x1ec8);src++;}else{if(cInputChar=='\\'&"ed!='\'')
+{src++;cInputChar=input[src];if(!cInputChar){free(*output);*output=NULL;return-
+(0x2d5+4405-0x1409);}}input[dst++]=cInputChar;src++;}}input[dst]=
+(0x168b+3450-0x2405);if(quoted){free(*output);*output=NULL;return-
+(0x22ef+370-0x2460);}return count;}int zUfiSms_atohex(char c){int result=
+(0xa57+2571-0x1462);if(c>=((char)(0x170c+660-0x1970))&&c<=
+((char)(0x1c2b+1795-0x22f5))){result=c-((char)(0x72+3568-0xe32));}else if(c>=
+((char)(0x7b6+5279-0x1bf4))&&c<=((char)(0x179+1431-0x6aa))){result=(c-
+((char)(0xc34+4183-0x1c2a)))+(0x89a+35-0x8b3);}else if(c>=
+((char)(0x10df+4378-0x21b8))&&c<=((char)(0x77f+2650-0x1193))){result=(c-
+((char)(0x9a+9132-0x2405)))+(0x708+6450-0x2030);}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=(0x22e4+567-0x251b);int high=
-(0x5fa+3893-0x152f);if(in_ptr==NULL||out_ptr==NULL){printf(
+int iLength,unsigned char*out_ptr){int low=(0x245b+581-0x26a0);int high=
+(0x14bb+1506-0x1a9d);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>(0xe56+1933-0x15e3)){low=in_ptr[iLength-
-(0x1589+4366-0x2696)]&(0x31d+5788-0x19aa);high=(in_ptr[iLength-
-(0xd93+5028-0x2136)]&(0x1903+3174-0x2479))>>(0x1280+3233-0x1f1d);out_ptr[
-(0xcd5+3538-0x1aa5)*iLength-(0x1c5+9274-0x25fe)]=g_zUfiSms_DigAscMap[low];
-out_ptr[(0xa2c+2455-0x13c1)*iLength-(0x370+1431-0x905)]=g_zUfiSms_DigAscMap[high
-];iLength--;}return ZUFI_SUCC;}unsigned int zte_wms_convert_PORTUGUESE_To_UCS2(
+);return ZUFI_FAIL;}while(iLength>(0x28a+3508-0x103e)){low=in_ptr[iLength-
+(0x1950+2005-0x2124)]&(0xe70+5647-0x2470);high=(in_ptr[iLength-
+(0xba0+1634-0x1201)]&(0x1183+432-0x1243))>>(0x1283+4068-0x2263);out_ptr[
+(0xf90+5679-0x25bd)*iLength-(0xbaa+2906-0x1703)]=g_zUfiSms_DigAscMap[low];
+out_ptr[(0x82d+7499-0x2576)*iLength-(0xe8a+2534-0x186e)]=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=(0x1633+1127-0x1a9a);unsigned int j=
+(0x41+1774-0x72f);unsigned int k=(0x1e06+1894-0x256c);unsigned int p=
+(0xbf7+4499-0x1d8a);unsigned int s=(0xf99+5321-0x2462);s=sizeof(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x5c0+52-0x5f4)]);for(i=
+(0x1746+1872-0x1e96);i<len;i++){j=gsmdef[i];if(j==(0xe90+332-0xfc1)){i++;for(p=
+(0x12b6+4849-0x25a7);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
+(0x1b0b+1795-0x220e)]==gsmdef[i]){ucs2[k]=
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0xbcf+3102-0x17ec)]>>
+(0xa00+4705-0x1c59);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x1cca+2190-0x2557)]);break;}}}else
+{ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x2272+1167-0x26f9);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=
-(0x823+5926-0x1f49);unsigned int j=(0x1b89+244-0x1c7d);unsigned int k=
-(0x680+4641-0x18a1);unsigned int p=(0x67a+194-0x73c);unsigned int s=
-(0x464+2992-0x1014);s=sizeof(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x186+8908-0x2452)]);for(i=
-(0xd51+4268-0x1dfd);i<len;i++){j=gsmdef[i];if(j==(0xbc9+1406-0x112c)){i++;for(p=
-(0x1372+2607-0x1da1);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
-(0x2553+287-0x2672)]==gsmdef[i]){ucs2[k]=
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x1d83+1654-0x23f8)]>>
-(0x5a3+2383-0xeea);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x316+6323-0x1bc8)]);break;}}}else{
-ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0xd8f+642-0x1009);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=
-(0x17d5+3759-0x2684);unsigned int j=(0xca4+817-0xfd5);unsigned int k=
-(0x1+1928-0x789);unsigned int p=(0x93+3452-0xe0f);unsigned int s=
-(0x98c+6420-0x22a0);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x696+4553-0x185f)]);for(i=
-(0xd28+527-0xf37);i<len;i++){j=gsmdef[i];if(j==(0xab4+4815-0x1d68)){i++;for(p=
-(0xe62+5827-0x2525);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x594+5985-0x1cf5)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x409+6346-0x1cd2)]>>(0xb9c+6037-0x2329);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x1b6a+593-0x1dba)]);break;}}}else{ucs2[
-k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x1070+4718-0x22d6);k++;ucs2[k]=(
+(0xa8d+3528-0x1855);unsigned int j=(0x349+2331-0xc64);unsigned int k=
+(0xfba+1895-0x1721);unsigned int p=(0xb29+3180-0x1795);unsigned int s=
+(0x9e9+5007-0x1d78);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x24e6+106-0x2550)]);for(i=
+(0x119b+5364-0x268f);i<len;i++){j=gsmdef[i];if(j==(0xe49+1913-0x15a7)){i++;for(p
+=(0x930+3679-0x178f);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x177a+2712-0x2212)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p]
+[(0x747+6575-0x20f5)]>>(0xf20+4255-0x1fb7);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x4d4+8114-0x2485)]);break;}}}else{ucs2[
+k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x1be6+662-0x1e74);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=(0x387+8990-0x26a5)
-;unsigned long j=(0x380+8236-0x23ac);unsigned long k=(0x575+3950-0x14e3);
-unsigned long p=(0x4ac+2554-0xea6);unsigned long s=(0x1133+5379-0x2636);unsigned
- long is_find=(0x227+3792-0x10f7);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/
-sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x165d+1082-0x1a97)]);for(i=
-(0x15a7+3861-0x24bc);i<len;i++){j=gsmdef[i];if(j==(0xba0+6317-0x2432)){i++;for(p
-=(0xa33+4264-0x1adb);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x113c+544-0x135c)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x4ff+4175-0x154d)]>>(0xb09+2015-0x12e0);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x1b9c+334-0x1ce9)]);is_find=
-(0xc7a+463-0xe48);break;}}if(!is_find){at_print(LOG_DEBUG,
+gsmdef,unsigned char*ucs2,unsigned long len){unsigned long i=
+(0x22a7+1112-0x26ff);unsigned long j=(0xb42+94-0xba0);unsigned long k=
+(0x895+706-0xb57);unsigned long p=(0xaa8+3098-0x16c2);unsigned long s=
+(0xcf1+5148-0x210d);unsigned long is_find=(0xd72+2972-0x190e);s=sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[
+(0xfbd+2838-0x1ad3)]);for(i=(0x175d+1617-0x1dae);i<len;i++){j=gsmdef[i];if(j==
+(0x50+478-0x213)){i++;for(p=(0x781+6167-0x1f98);p<s;p++){if(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x755+1425-0xce6)]==gsmdef[i]){ucs2[k]=
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x77d+2763-0x1247)]>>(0xfc2+4435-0x210d)
+;k++;ucs2[k]=(unsigned char)(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x1a12+2921-0x257a)]);is_find=(0x1036+3277-0x1d02);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]>>(0x4ad+7752-0x22ed)
+,gsmdef[i]);i--;ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x9b5+3285-0x1682)
;k++;ucs2[k]=(unsigned char)(zte_sms_GSMDefault_To_UCS2_Table[j]);}}else{ucs2[k]
-=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x2a6+4496-0x142e);k++;ucs2[k]=(unsigned
+=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0xd57+1779-0x1442);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[(0x3d6+3834-0x12ce)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
-(0x636+5711-0x1c84)]={(0x17fa+1031-0x1c01)};UINT16 len=(0x19cc+735-0x1cab);
+ascii_content[(0x775+2420-0x10e7)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
+(0xba8+4806-0x1e6d)]={(0x149c+2446-0x1e2a)};UINT16 len=(0xb41+1531-0x113c);
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==
@@ -670,47 +674,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[(0x96b+2963-0x14fd)+(0x1769+1342-0x1c07)+(0xac6+6268-0x2341)]={
-(0xc7b+3496-0x1a23)};int len=(0x1584+2141-0x1de1);if(msg_content==NULL||
-out_content==NULL||sms_len>(0xb91+4138-0x1a7b)||sms_len<(0x11da+3002-0x1d92)){
-return endEsc;}len=sms_len;memset(data,(0xb69+6342-0x242f),(0x101d+4953-0x22d4))
-;p=data;if(isEsc){*p=(0x346+2312-0xc33);p++;}zUfiSms_Str2Bytes((unsigned char*)
-msg_content,len,(unsigned char*)p,(0xe3b+2988-0x1947));if(p[len/
-(0x66b+8057-0x25e2)-(0x138+2728-0xbdf)]==(0x948+277-0xa42)){endEsc=TRUE;}
-zUfiSms_ConvertUcs2(data,len/(0x6f2+7427-0x23f3)+(isEsc?(0x1a5c+787-0x1d6e):
-(0x203+9267-0x2636))-(endEsc?(0x4d+2694-0xad2):(0xac3+4844-0x1daf)),out_content)
-;return endEsc;}byte*zUfiSms_SmsiUtilitoa(uint32 v,byte*s,UINT16 r){byte buf[
-(0xdc+4285-0x1178)],c;int n;n=sizeof(buf)-(0x13cd+4014-0x237a);buf[n]='\0';do{c=
-(byte)(v%r);if(n<=(0xca3+4240-0x1d33)){printf(
-"\x4f\x56\x45\x52\x46\x4c\x4f\x57\x20");break;}buf[--n]=(byte)((c>
-(0x6df+1930-0xe60))?c+((char)(0x8f4+6375-0x219a))-(0x323+913-0x6aa):c+
-((char)(0x5a9+4910-0x18a7)));}while((v/=r)>(0x38a+6427-0x1ca5));while((*s++=buf[
-n++])!=(0x723+1654-0xd99));return(s-(0xdbd+3808-0x1c9c));}byte*
-zUfiSms_SmsiAddrToStr(wms_address_s_type addr,byte*res_ptr,UINT8*type_of_addr){
-byte bcd_idx=(0x25f5+187-0x26b0);UINT8 temp=(0x69d+1624-0xcf5);*type_of_addr=
-(0x2fd+3941-0x1262);temp=(UINT8)((uint32)addr.number_type&(0x132+9549-0x2678));*
-type_of_addr=(UINT8)((*type_of_addr|temp)<<(0x5b8+6972-0x20f0));temp=(UINT8)((
-uint32)addr.number_plan&(0x1744+388-0x18c1));*type_of_addr=*type_of_addr|temp;*
-type_of_addr=*type_of_addr|(0xc26+5158-0x1fcc);while(bcd_idx<addr.
-number_of_digits){if(addr.digits[bcd_idx]==(0x152d+1036-0x192f)){addr.digits[
-bcd_idx]=(0xc4d+4393-0x1d76);}res_ptr=zUfiSms_SmsiUtilitoa((uint32)addr.digits[
-bcd_idx],res_ptr,(0x10dc+3046-0x1cb2));bcd_idx++;}return res_ptr;}byte*
-zUfiSms_SmsiUtilitoaFill(word v,byte*rb_ptr){int n;byte c,*ptr;ptr=rb_ptr+
-(0x1aff+2946-0x267f);*ptr='\0';for(n=(0x1697+4100-0x269b);n<(0xf0a+1589-0x153d);
-++n){c=(byte)(v%(0xbe9+4272-0x1c8f));v/=(0xa60+2611-0x1489);*--ptr=(c+
-((char)(0x48a+3932-0x13b6)));}return rb_ptr+(0x12bf+445-0x147a);}void
-zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<(0xddf+2589-0x17f2)){
-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=(0x3eb+6200-0x1c23);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=(0x66+3665-0xeb6);db_data->concat_info[(0x396+6391-0x1c8d)]=
-(0x119a+3351-0x1db2)*mux+concat_8->msg_ref;db_data->concat_info[
-(0x10a3+1132-0x150d)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX+
-(0x2f9+7289-0x1f71);db_data->concat_info[(0xac1+3004-0x167c)]=concat_8->total_sm
--ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
-(0x198f+1430-0x1f24)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(concat_8->total_sm%
+data[(0xbaa+3251-0x185c)+(0x1c2d+2840-0x26a5)+(0x558+858-0x8b1)]={
+(0xdda+498-0xfcc)};int len=(0x545+7789-0x23b2);if(msg_content==NULL||out_content
+==NULL||sms_len>(0x45d+6497-0x1c7e)||sms_len<(0xba1+1310-0x10bd)){return endEsc;
+}len=sms_len;memset(data,(0xb28+625-0xd99),(0x19c0+2205-0x21bb));p=data;if(isEsc
+){*p=(0x700+3293-0x13c2);p++;}zUfiSms_Str2Bytes((unsigned char*)msg_content,len,
+(unsigned char*)p,(0x1cfa+1776-0x234a));if(p[len/(0x3b+7195-0x1c54)-
+(0x593+3141-0x11d7)]==(0x304+1706-0x993)){endEsc=TRUE;}zUfiSms_ConvertUcs2(data,
+len/(0x281+8806-0x24e5)+(isEsc?(0xee2+356-0x1045):(0x210b+1034-0x2515))-(endEsc?
+(0x108f+5034-0x2438):(0xf89+3657-0x1dd2)),out_content);return endEsc;}byte*
+zUfiSms_SmsiUtilitoa(uint32 v,byte*s,UINT16 r){byte buf[(0x36+4504-0x11ad)],c;
+int n;n=sizeof(buf)-(0x50d+6771-0x1f7f);buf[n]='\0';do{c=(byte)(v%r);if(n<=
+(0xd47+667-0xfe2)){printf("\x4f\x56\x45\x52\x46\x4c\x4f\x57\x20");break;}buf[--n
+]=(byte)((c>(0x9da+3737-0x186a))?c+((char)(0x615+4641-0x17f5))-
+(0x116b+3495-0x1f08):c+((char)(0x495+1616-0xab5)));}while((v/=r)>
+(0xd5+6076-0x1891));while((*s++=buf[n++])!=(0xe24+1458-0x13d6));return(s-
+(0x1452+1200-0x1901));}byte*zUfiSms_SmsiAddrToStr(wms_address_s_type addr,byte*
+res_ptr,UINT8*type_of_addr){byte bcd_idx=(0xa2a+4909-0x1d57);UINT8 temp=
+(0x12b+7366-0x1df1);*type_of_addr=(0xef5+5152-0x2315);temp=(UINT8)((uint32)addr.
+number_type&(0x158c+2031-0x1d74));*type_of_addr=(UINT8)((*type_of_addr|temp)<<
+(0x7c5+1147-0xc3c));temp=(UINT8)((uint32)addr.number_plan&(0xd99+937-0x113b));*
+type_of_addr=*type_of_addr|temp;*type_of_addr=*type_of_addr|(0x7d0+7492-0x2494);
+while(bcd_idx<addr.number_of_digits){if(addr.digits[bcd_idx]==
+(0xb5a+3738-0x19ea)){addr.digits[bcd_idx]=(0x1183+2711-0x1c1a);}res_ptr=
+zUfiSms_SmsiUtilitoa((uint32)addr.digits[bcd_idx],res_ptr,(0x142d+2440-0x1da5));
+bcd_idx++;}return res_ptr;}byte*zUfiSms_SmsiUtilitoaFill(word v,byte*rb_ptr){int
+ n;byte c,*ptr;ptr=rb_ptr+(0x27a+8380-0x2334);*ptr='\0';for(n=(0x4ed+172-0x599);
+n<(0x701+6909-0x21fc);++n){c=(byte)(v%(0x16e2+432-0x1888));v/=
+(0x2373+629-0x25de);*--ptr=(c+((char)(0x85f+7666-0x2621)));}return rb_ptr+
+(0x52f+438-0x6e3);}void zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<
+(0xa+6007-0x1777)){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=
+(0xb3f+2383-0x148e);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=
+(0x833+1163-0xcbd);db_data->concat_info[(0xd09+5698-0x234b)]=
+(0x10f8+2082-0x181b)*mux+concat_8->msg_ref;db_data->concat_info[
+(0xd19+3233-0x19b8)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX+
+(0x3d9+1925-0xb5d);db_data->concat_info[(0x1fb+7990-0x2130)]=concat_8->total_sm-
+ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
+(0x15a7+4107-0x25b1)?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=
@@ -719,27 +723,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=(0x705+540-0x921);concat_16->seq_num--;
-db_data->concat_sms=(0x3fd+6670-0x1e0a);
-#if (0x1bd6+342-0x1d2c)
-db_data->concat_info[(0xbbb+5262-0x2049)]=concat_16->msg_ref;db_data->
-concat_info[(0x978+5458-0x1ec9)]=concat_16->total_sm;db_data->concat_info[
-(0x13c+4548-0x12fe)]=concat_16->seq_num;
+T_zUfiSms_DbStoreData*db_data){int mux=(0x275+1570-0x897);concat_16->seq_num--;
+db_data->concat_sms=(0x67+5341-0x1543);
+#if (0x16b+5049-0x1524)
+db_data->concat_info[(0x69+6565-0x1a0e)]=concat_16->msg_ref;db_data->concat_info
+[(0x22c+4839-0x1512)]=concat_16->total_sm;db_data->concat_info[
+(0x1691+4158-0x26cd)]=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[(0x3db+5600-0x19bb)]=(0xc8b+5115-0x1f87)*mux+concat_16->
-msg_ref;db_data->concat_info[(0x26b+7028-0x1ddd)]=concat_16->seq_num%
-ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x13c4+1781-0x1ab8);db_data->concat_info[
-(0x66a+2703-0x10f8)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
-ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0x13bf+2064-0x1bce)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(
+db_data->concat_info[(0xebc+1897-0x1625)]=(0x581+1217-0x943)*mux+concat_16->
+msg_ref;db_data->concat_info[(0xe13+5252-0x2295)]=concat_16->seq_num%
+ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x2d9+8459-0x23e3);db_data->concat_info[
+(0x72+1506-0x653)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
+ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0x5a3+6358-0x1e78)?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=
-(0x6a7+270-0x7b4);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8),
-db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0x992+4610-0x1b93);
+(0xe4a+1328-0x1379);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8),
+db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0xc33+2275-0x1515);
zUfiSms_ParseDeliverConcat16(&(user_data_header->u.concat_16),db_data);break;
case WMS_UDH_NAT_LANG_SS:g_zUfiSms_IsLanguageShift=WMS_UDH_NAT_LANG_SS;
zUfiSms_ParserLangSs(user_data_header);break;case WMS_UDH_NAT_LANG_LS:
@@ -749,155 +753,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=(0x38f+3770-0x1249);int ind=(0x465+7101-0x2022);if((
+WMS_GW_ALPHABET_MAX32;int i=(0x285+8500-0x23b9);int ind=(0xa5+3450-0xe1f);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,
-(0x6d6+5125-0x1adb),ZTE_WMS_ADDRESS_LEN_MAX+(0x7e2+1451-0xd8c));db_data->number[
-(0x85d+6566-0x2203)]=((char)(0x849+3610-0x1638));for(i=(0x2142+1005-0x252f);i<
-address_ptr->number_of_digits;i++){if((0x1671+2291-0x1f5a)==address_ptr->digits[
-i]){db_data->number[i+(0x1209+2351-0x1b37)]=((char)(0xd23+1753-0x13cc));}else{
-db_data->number[i+(0x912+6727-0x2358)]=((char)(0x2d0+1107-0x6f3))+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[
-(0x1867+554-0x1a90)]),address_ptr->digits,address_ptr->number_of_digits);}else{
-for(i=(0x91+6947-0x1bb4);i<address_ptr->number_of_digits;i++){if(
-(0x1158+2757-0x1c13)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0xed+7004-0x1c19));}else{db_data->number[i]=((char)(0x1c6+2154-0xa00))+
-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=(0xd33+6538-0x26bc);}
-else{db_data->tp_udhi=(0x1f22+1651-0x2595);}if(db_data->tp_udhi==
-(0x309+8322-0x238a)){for(ind=(0x128c+2773-0x1d61);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[(0x1a28+962-0x1de9)]){printf(
+(0x19a3+1651-0x2016),ZTE_WMS_ADDRESS_LEN_MAX+(0xacc+6573-0x2478));db_data->
+number[(0x235+4262-0x12db)]=((char)(0x1cb5+1513-0x2273));for(i=
+(0x10b1+2408-0x1a19);i<address_ptr->number_of_digits;i++){if((0x40+1946-0x7d0)==
+address_ptr->digits[i]){db_data->number[i+(0x1536+1720-0x1bed)]=
+((char)(0xc09+1488-0x11a9));}else{db_data->number[i+(0x44f+503-0x645)]=
+((char)(0x988+1394-0xeca))+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[(0x1b96+2932-0x2709)]
+),address_ptr->digits,address_ptr->number_of_digits);}else{for(i=
+(0x213+1704-0x8bb);i<address_ptr->number_of_digits;i++){if((0x1195+4784-0x243b)
+==address_ptr->digits[i]){db_data->number[i]=((char)(0xcb+220-0x177));}else{
+db_data->number[i]=((char)(0x1000+4546-0x2192))+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=(0xa09+2292-0x12fc);}else{db_data->
+tp_udhi=(0x137+9576-0x269f);}if(db_data->tp_udhi==(0xc38+5358-0x2125)){for(ind=
+(0x4c5+1485-0xa92);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[
+(0x36c+4870-0x1671)]){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[(0x9ec+2137-0x1244)],ZTE_WMS_CONCAT_SMS_COUNT_MAX);if(
+,db_data->concat_info[(0x11a1+1150-0x161e)],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)
-(0x119d+5196-0x25e8);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
-unsigned char)(0x8d3+6101-0x20a6);}else{printf(
+(0x7a5+3842-0x16a6);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
+unsigned char)(0xfe2+5333-0x24b5);}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=(0x16cf+1016-0x1ac7);ind<ts_data_ptr->u
-.gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[
-(0x1134+5460-0x2684)*ind]=((char)(0x12f1+5118-0x26bf));db_data->sms_content[
-(0x168+3058-0xd56)*ind+(0xfdb+5687-0x2611)]=((char)(0x3b6+3511-0x113d));db_data
-->sms_content[(0x316+760-0x60a)*ind+(0x14b6+1984-0x1c74)]=g_zUfiSms_DigAscMap[((
-ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_data[ind]&(0xb6d+411-0xc18))>>
-(0xe71+1165-0x12fa))];db_data->sms_content[(0x553+2265-0xe28)*ind+
-(0xae8+3330-0x17e7)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.
-user_data.sm_data[ind]&(0x15c+154-0x1e7))];db_data->alphabet=
+alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0x12a9+3775-0x2168);ind<ts_data_ptr->u
+.gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[(0x142+2202-0x9d8)
+*ind]=((char)(0x276+3906-0x1188));db_data->sms_content[(0x984+368-0xaf0)*ind+
+(0x11db+1277-0x16d7)]=((char)(0x16d+203-0x208));db_data->sms_content[
+(0x108a+2306-0x1988)*ind+(0x1300+3992-0x2296)]=g_zUfiSms_DigAscMap[((ts_data_ptr
+->u.gw_pp.u.deliver.user_data.sm_data[ind]&(0x101b+5368-0x2423))>>
+(0x14a4+2690-0x1f22))];db_data->sms_content[(0xfe4+814-0x130e)*ind+
+(0x1452+1092-0x1893)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.
+user_data.sm_data[ind]&(0x1099+5347-0x256d))];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)(0x1f5+2714-0xc8d);}return result;}int
+tp_dcs=(unsigned char)(0xcdb+2374-0x161f);}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=
-(0xa2c+1301-0xf41);int ind=(0x1f67+880-0x22d7);if((NULL==ts_data_ptr)||(NULL==
+(0x1414+721-0x16e5);int ind=(0x700+5139-0x1b13);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[
-(0x6f9+4303-0x17c8)]=((char)(0xeb0+2782-0x1963));for(i=(0x763+94-0x7c1);i<
-address_ptr->number_of_digits;i++){if((0xf6a+4981-0x22d5)==address_ptr->digits[i
-]){db_data->number[i+(0x581+2155-0xdeb)]=((char)(0x173a+193-0x17cb));}else{
-db_data->number[i+(0x540+5149-0x195c)]=((char)(0x1f04+1925-0x2659))+address_ptr
-->digits[i];}}}else{for(i=(0x18d2+1842-0x2004);i<address_ptr->number_of_digits;i
-++){if((0xc4f+3227-0x18e0)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0xc0c+2358-0x1512));}else{db_data->number[i]=((char)(0xbfc+1931-0x1357))
-+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)(0x459+2048-0xc58)
-;}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(unsigned char)
-(0x1114+578-0x1354);}else{printf(
+(0xc83+4829-0x1f60)]=((char)(0x15c5+2849-0x20bb));for(i=(0x227+9120-0x25c7);i<
+address_ptr->number_of_digits;i++){if((0x33a+3641-0x1169)==address_ptr->digits[i
+]){db_data->number[i+(0x1f4d+16-0x1f5c)]=((char)(0x7fc+4952-0x1b24));}else{
+db_data->number[i+(0xe36+4034-0x1df7)]=((char)(0x215+3360-0xf05))+address_ptr->
+digits[i];}}}else{for(i=(0x15f8+4169-0x2641);i<address_ptr->number_of_digits;i++
+){if((0x6ac+7695-0x24b1)==address_ptr->digits[i]){db_data->number[i]=
+((char)(0x12f4+1314-0x17e6));}else{db_data->number[i]=
+((char)(0x1abf+244-0x1b83))+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)
+(0xb3+4811-0x137d);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
+unsigned char)(0x1296+2809-0x1d8d);}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=
-(0x108b+2282-0x1974);}else{db_data->tp_udhi=(0x12af+1624-0x1907);}if(db_data->
-tp_udhi==(0x533+8154-0x250c)){for(ind=(0x9ff+583-0xc46);ind<ts_data_ptr->u.gw_pp
-.u.submit.user_data.num_headers;ind++){result=zUfiSms_ParseUdhiData(&(
+(0xdad+1647-0x141b);}else{db_data->tp_udhi=(0x169f+663-0x1936);}if(db_data->
+tp_udhi==(0x1569+1606-0x1bae)){for(ind=(0x1b67+2130-0x23b9);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[(0xc49+5642-0x2252)]){printf(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0xe60+2350-0x178d)]){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=(0x17d1+1719-0x1e88)
-;ind<ts_data_ptr->u.gw_pp.u.submit.user_data.sm_len;ind++){db_data->sms_content[
-(0xb69+6850-0x2627)*ind]=((char)(0x1cf3+1213-0x2180));db_data->sms_content[
-(0x3f1+82-0x43f)*ind+(0x626+5248-0x1aa5)]=((char)(0x9f4+5556-0x1f78));db_data->
-sms_content[(0x3ba+7402-0x20a0)*ind+(0x6f1+6814-0x218d)]=g_zUfiSms_DigAscMap[((
-ts_data_ptr->u.gw_pp.u.submit.user_data.sm_data[ind]&(0x1f93+1406-0x2421))>>
-(0x1566+2209-0x1e03))];db_data->sms_content[(0xc9f+3916-0x1be7)*ind+
-(0x1035+4238-0x20c0)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.submit.
-user_data.sm_data[ind]&(0x99b+2873-0x14c5))];db_data->alphabet=
+gw_pp.u.submit.dcs.alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0xa8+5028-0x144c);
+ind<ts_data_ptr->u.gw_pp.u.submit.user_data.sm_len;ind++){db_data->sms_content[
+(0x10d+986-0x4e3)*ind]=((char)(0x6e2+6948-0x21d6));db_data->sms_content[
+(0xebb+3119-0x1ae6)*ind+(0x700+2739-0x11b2)]=((char)(0x2049+718-0x22e7));db_data
+->sms_content[(0x392+2958-0xf1c)*ind+(0x6bb+3928-0x1611)]=g_zUfiSms_DigAscMap[((
+ts_data_ptr->u.gw_pp.u.submit.user_data.sm_data[ind]&(0x1ff+8058-0x2089))>>
+(0x445+8630-0x25f7))];db_data->sms_content[(0xd5b+3740-0x1bf3)*ind+
+(0x1aab+305-0x1bd9)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.submit.
+user_data.sm_data[ind]&(0x10ec+22-0x10f3))];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)(0x1273+3531-0x203c);}return result;}int InvertNumbers(
+tp_dcs=(unsigned char)(0x406+3643-0x123f);}return result;}int InvertNumbers(
const char*pSrc,char*pDst,int nSrcLength){int nDstLength;char ch;int i=
-(0xb7+9394-0x2569);if(pSrc==NULL||pDst==NULL||nSrcLength<(0xbe1+2972-0x177d)){
-return-(0x21d6+517-0x23da);}nDstLength=nSrcLength;for(i=(0xe51+1934-0x15df);i<
-nSrcLength;i+=(0x11da+410-0x1372)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
-nSrcLength&(0xd01+4759-0x1f97)){*(pDst-(0x565+1805-0xc70))=
-((char)(0x1c2d+1618-0x2239));nDstLength++;}*pDst='\0';return nDstLength;}int
+(0xc1a+5277-0x20b7);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x6b0+5871-0x1d9f)){
+return-(0x1c1+6350-0x1a8e);}nDstLength=nSrcLength;for(i=(0x10e5+2387-0x1a38);i<
+nSrcLength;i+=(0x1f+1419-0x5a8)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
+nSrcLength&(0x467+2156-0xcd2)){*(pDst-(0x35b+6424-0x1c71))=
+((char)(0x1382+4599-0x2533));nDstLength++;}*pDst='\0';return nDstLength;}int
code_is_gsm7(const SMS_PARAM*pSrc,unsigned char buf[],int nLength){if(pSrc->
-TP_UDHI==(0x1e7c+1250-0x235d)){buf[(0x278+9353-0x26fe)]=(unsigned char)nLength;
-buf[(0xa52+1495-0x1025)]=(unsigned char)pSrc->TP_UD[(0x23d7+204-0x24a3)];buf[
-(0x1fda+848-0x2325)]=(0x1525+3796-0x23f9);buf[(0x819+1752-0xeeb)]=(unsigned char
-)pSrc->TP_UD[(0x11f6+210-0x12c6)];buf[(0x732+4851-0x1a1e)]=(unsigned char)pSrc->
-TP_UD[(0x510+4281-0x15c6)];buf[(0x7ca+4489-0x194b)]=(unsigned char)pSrc->TP_UD[
-(0x363+8597-0x24f4)];buf[(0x1263+631-0x14d1)]=(unsigned char)pSrc->TP_UD[
-(0x9c3+169-0xa67)];buf[(0xfc8+4722-0x2230)]=(unsigned char)pSrc->TP_UD[
-(0xcb6+1653-0x1324)];buf[(0x117a+3789-0x203d)]=(unsigned char)(buf[
-(0xf34+2322-0x183c)]<<(0x139+9585-0x26a9));nLength=nLength-(0x1658+3814-0x2537);
-nLength=Encode7bit(&(pSrc->TP_UD[(0x1b39+2719-0x25d0)]),&buf[
-(0x116b+4342-0x2256)],nLength+(0x18f2+670-0x1b8f))+(0x37b+2752-0xe37)+
-(0x1a3d+2136-0x228f);
-#if (0x8c1+2512-0x1291)
-nLength+=(0x357+3798-0x122b);
+TP_UDHI==(0xde6+2681-0x185e)){buf[(0x27c+347-0x3d4)]=(unsigned char)nLength;buf[
+(0x4d9+8149-0x24aa)]=(unsigned char)pSrc->TP_UD[(0xd5+2525-0xab2)];buf[
+(0x16b+1616-0x7b6)]=(0x1ad8+1429-0x206d);buf[(0x10+6185-0x1833)]=(unsigned char)
+pSrc->TP_UD[(0x2159+448-0x2317)];buf[(0x340+4327-0x1420)]=(unsigned char)pSrc->
+TP_UD[(0x1ec7+1629-0x2521)];buf[(0xd15+3063-0x1904)]=(unsigned char)pSrc->TP_UD[
+(0xecf+5990-0x2631)];buf[(0x7a0+1765-0xe7c)]=(unsigned char)pSrc->TP_UD[
+(0x1f6b+52-0x1f9a)];buf[(0x80+6194-0x18a8)]=(unsigned char)pSrc->TP_UD[
+(0x1284+1259-0x1768)];buf[(0x13eb+2011-0x1bbc)]=(unsigned char)(buf[
+(0xfab+1915-0x171c)]<<(0x108a+1433-0x1622));nLength=nLength-(0xba6+3165-0x17fc);
+nLength=Encode7bit(&(pSrc->TP_UD[(0x778+174-0x81e)]),&buf[(0x1846+794-0x1b55)],
+nLength+(0x1158+4141-0x2184))+(0x46d+6109-0x1c46)+(0xb8+1253-0x597);
+#if (0x8ab+2431-0x122a)
+nLength+=(0x5c5+5810-0x1c75);
#endif
-}else{nLength=pSrc->TP_UDLength;buf[(0xbdd+3464-0x1962)]=nLength;nLength=
-Encode7bit(pSrc->TP_UD,&buf[(0x2357+321-0x2494)],nLength+(0x396+8917-0x266a))+
-(0x1ddc+921-0x2171);}at_print(LOG_DEBUG,
+}else{nLength=pSrc->TP_UDLength;buf[(0xc58+2390-0x15ab)]=nLength;nLength=
+Encode7bit(pSrc->TP_UD,&buf[(0x19b+9576-0x26ff)],nLength+(0x1355+636-0x15d0))+
+(0x1da3+66-0x1de1);}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==(0xd70+478-0xf4d)){buf[
-(0x12d5+2055-0x1ad9)]=(unsigned char)nLength;buf[(0x906+3577-0x16fb)]=(unsigned
-char)pSrc->TP_UD[(0x682+832-0x9c2)];buf[(0x5d4+3367-0x12f6)]=(0x9f6+3557-0x17db)
-;buf[(0xc7b+6647-0x266c)]=(unsigned char)pSrc->TP_UD[(0x84c+6068-0x1ffe)];buf[
-(0x531+3259-0x11e5)]=(unsigned char)pSrc->TP_UD[(0x15a6+2009-0x1d7c)];buf[
-(0xe52+4379-0x1f65)]=(unsigned char)pSrc->TP_UD[(0x436+292-0x556)];buf[
-(0x3b7+8959-0x26ad)]=(unsigned char)pSrc->TP_UD[(0x1cc2+1572-0x22e1)];buf[
-(0xb42+4555-0x1d0a)]=(unsigned char)(EncodeUcs2(&(pSrc->TP_UD[
-(0xefa+3126-0x1b2a)]),&buf[(0xcf0+5124-0x20ea)],nLength-(0x11f+4558-0x12e7))+
-(0x1088+3878-0x1fa8));nLength=buf[(0x10a2+703-0x135e)]+(0x1689+1662-0x1d03);}
-else{buf[(0x1303+580-0x1544)]=EncodeUcs2(pSrc->TP_UD,&buf[(0xb7b+4773-0x1e1c)],
-nLength);nLength=buf[(0x7cc+4790-0x1a7f)]+(0xe02+107-0xe69);}return nLength;}int
- Encode8bit(const char*pSrc,unsigned char*pDst,int nSrcLength){if(pSrc==NULL||
-pDst==NULL||nSrcLength<(0xa80+6831-0x252f)){return-(0x15c9+1946-0x1d62);}memcpy(
+strlen(pSrc->TP_UD);if(pSrc->TP_UDHI==(0x2281+837-0x25c5)){buf[
+(0x226+2210-0xac5)]=(unsigned char)nLength;buf[(0xc55+505-0xe4a)]=(unsigned char
+)pSrc->TP_UD[(0x3c2+549-0x5e7)];buf[(0x787+6039-0x1f19)]=(0xd1b+4436-0x1e6f);buf
+[(0x23b4+600-0x2606)]=(unsigned char)pSrc->TP_UD[(0xd3+2436-0xa55)];buf[
+(0x8fa+3586-0x16f5)]=(unsigned char)pSrc->TP_UD[(0x1c7+5730-0x1826)];buf[
+(0x280+1214-0x736)]=(unsigned char)pSrc->TP_UD[(0xcc0+2810-0x17b6)];buf[
+(0x435+7391-0x210b)]=(unsigned char)pSrc->TP_UD[(0xb68+1516-0x114f)];buf[
+(0x1e68+893-0x21e2)]=(unsigned char)(EncodeUcs2(&(pSrc->TP_UD[(0x2a+1058-0x446)]
+),&buf[(0x11dd+2922-0x1d3d)],nLength-(0x32f+3834-0x1223))+(0xa1a+3821-0x1901));
+nLength=buf[(0x137c+589-0x15c6)]+(0xeeb+3991-0x1e7e);}else{buf[
+(0xa17+1954-0x11b6)]=EncodeUcs2(pSrc->TP_UD,&buf[(0x8cb+1281-0xdc8)],nLength);
+nLength=buf[(0x14d+8081-0x20db)]+(0x112f+664-0x13c3);}return nLength;}int
+Encode8bit(const char*pSrc,unsigned char*pDst,int nSrcLength){if(pSrc==NULL||
+pDst==NULL||nSrcLength<(0xe08+533-0x101d)){return-(0x2246+633-0x24be);}memcpy(
pDst,pSrc,nSrcLength);return nSrcLength;}int EncodePdu_Submit(const SMS_PARAM*
-pSrc,char*pDst){int nLength=(0x177+848-0x4c7);int nDstLength=(0x27+6604-0x19f3);
-unsigned char buf[(0xb98+3019-0x1663)]={(0x1589+745-0x1872)};char tmpSCA[
-(0x9ca+5193-0x1def)]={(0x1991+2671-0x2400)};int check_udl=(0x24a8+601-0x2701);
-memset(tmpSCA,(0xf6c+2382-0x18ba),sizeof(tmpSCA));if(pSrc==NULL||pDst==NULL){
-return-(0x819+2425-0x1191);}
-#if (0x302+4951-0x1658)
+pSrc,char*pDst){int nLength=(0x96+4830-0x1374);int nDstLength=
+(0x1742+3116-0x236e);unsigned char buf[(0xfd0+828-0x120c)]={(0x2d+1227-0x4f8)};
+char tmpSCA[(0x1317+2181-0x1b78)]={(0x727+2525-0x1104)};int check_udl=
+(0x195b+345-0x1ab4);memset(tmpSCA,(0x1519+4546-0x26db),sizeof(tmpSCA));if(pSrc==
+NULL||pDst==NULL){return-(0x997+1346-0xed8);}
+#if (0x16f7+3164-0x2352)
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(
@@ -908,394 +912,394 @@
"\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[(0x4c3+8108-0x246f)]=(char)(((nLength)&
-(0x1927+1093-0x1d6b))==(0xc80+2593-0x16a1)?(nLength):nLength+
-(0x10d6+5071-0x24a4))/(0xbb5+714-0xe7d)+(0x92d+807-0xc53);buf[
-(0x1a0a+1278-0x1f07)]=(0x941+2481-0x1271);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA
-)-(0x23a0+510-0x259d));if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",
-(0x16e7+952-0x1a9b)))){memset(tmpSCA,(0x182+5005-0x150f),sizeof(tmpSCA));nLength
-=nLength-(0x3c0+5362-0x18b1);
-#if (0x1b9c+170-0x1c45)
-nLength=nLength-(0x754+2927-0x12c2);strncpy(tmpSCA,&(pSrc->SCA[
-(0xa50+6814-0x24ec)]),sizeof(tmpSCA)-(0x17cc+1265-0x1cbc));
+nLength=strlen(pSrc->SCA);buf[(0xb6b+2430-0x14e9)]=(char)(((nLength)&
+(0x356+7287-0x1fcc))==(0x14e5+3568-0x22d5)?(nLength):nLength+(0x215d+334-0x22aa)
+)/(0x622+7757-0x246d)+(0x6ed+5982-0x1e4a);buf[(0x4d1+5302-0x1986)]=
+(0xd6f+5868-0x23da);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)-(0xc2c+6308-0x24cf))
+;if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",(0xac5+1996-0x128d)))){memset(tmpSCA,
+(0x209+6538-0x1b93),sizeof(tmpSCA));nLength=nLength-(0xc43+5223-0x20a9);
+#if (0x77c+3649-0x15bc)
+nLength=nLength-(0x105c+2047-0x185a);strncpy(tmpSCA,&(pSrc->SCA[
+(0x1eb+4187-0x1244)]),sizeof(tmpSCA)-(0x1970+1371-0x1eca));
#else
-tmpSCA[(0x424+1023-0x823)]=((char)(0x2151+292-0x224a));strcpy(&(tmpSCA[
-(0x1299+1415-0x181f)]),&(pSrc->SCA[(0x9f0+2614-0x1424)]));
+tmpSCA[(0xa96+4730-0x1d10)]=((char)(0x80d+7034-0x235c));strcpy(&(tmpSCA[
+(0x8eb+6725-0x232f)]),&(pSrc->SCA[(0x1641+2070-0x1e55)]));
#endif
-buf[(0x1232+2262-0x1b08)]=(char)((nLength&(0x57f+3302-0x1264))==
-(0x123a+856-0x1592)?nLength:nLength+(0x140c+503-0x1602))/(0x139c+4437-0x24ef)+
-(0xb1c+6223-0x236a);buf[(0x266d+7-0x2673)]=(0x3d4+2894-0xe91);}else if(
-((char)(0x138a+44-0x138b))==pSrc->SCA[(0x118+8681-0x2301)]){memset(tmpSCA,
-(0x49c+638-0x71a),sizeof(tmpSCA));
-#if (0x254+4235-0x12de)
-nLength=nLength-(0x1190+1383-0x16f6);strncpy(tmpSCA,&(pSrc->SCA[
-(0xa93+3809-0x1973)]),sizeof(tmpSCA)-(0xf2f+168-0xfd6));
+buf[(0x326+4164-0x136a)]=(char)((nLength&(0x140d+2006-0x1be2))==
+(0x11e2+4243-0x2275)?nLength:nLength+(0x2a0+4876-0x15ab))/(0xdb0+2052-0x15b2)+
+(0x1a34+43-0x1a5e);buf[(0xc15+5000-0x1f9c)]=(0xe22+3366-0x1ab7);}else if(
+((char)(0xe9+814-0x3ec))==pSrc->SCA[(0xe19+2282-0x1703)]){memset(tmpSCA,
+(0x2ab+8275-0x22fe),sizeof(tmpSCA));
+#if (0x67b+1018-0xa74)
+nLength=nLength-(0xed0+5242-0x2349);strncpy(tmpSCA,&(pSrc->SCA[
+(0x11f7+1827-0x1919)]),sizeof(tmpSCA)-(0xbc3+5852-0x229e));
#else
strcpy(tmpSCA,pSrc->SCA);
#endif
-buf[(0xc23+6793-0x26ac)]=(char)((nLength&(0x2c4+821-0x5f8))==(0xcb5+6126-0x24a3)
-?(nLength):nLength+(0x1831+1330-0x1d62))/(0xc2f+318-0xd6b)+(0xcfc+6044-0x2497);
-buf[(0x7fd+693-0xab1)]=(0xbd3+3896-0x1a7a);}
-#if (0x2a9+1471-0x867)
+buf[(0xf5d+4806-0x2223)]=(char)((nLength&(0x98+112-0x107))==(0x15ed+330-0x1737)?
+(nLength):nLength+(0xeb8+1522-0x14a9))/(0x1a6+3541-0xf79)+(0x970+510-0xb6d);buf[
+(0x25f+8784-0x24ae)]=(0x80b+2977-0x131b);}
+#if (0xbbf+2652-0x161a)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x70\x64\x73\x74\x32\x3a\x25\x73" "\n",
pDst);
#endif
-if(nLength<(0x1063+3549-0x1e3f)||nLength>=sizeof(tmpSCA))return-
-(0x1935+1116-0x1d90);nDstLength=Bytes2String(buf,pDst,(0x144a+2379-0x1d93));
+if(nLength<(0x4db+5829-0x1b9f)||nLength>=sizeof(tmpSCA))return-
+(0xb9d+2179-0x141f);nDstLength=Bytes2String(buf,pDst,(0xbfa+785-0xf09));
nDstLength+=InvertNumbers(tmpSCA,&pDst[nDstLength],nLength);
-#if (0x25c0+170-0x2669)
+#if (0x379+2522-0xd52)
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[(0xea+8231-0x2111)]==((char)(0x12dc+1938-0x1a43))){nLength=strlen(&
-(pSrc->TPA[(0x619+1703-0xcbf)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
-TP_UDHI==(0xd22+191-0xde1)){if(pSrc->TP_SRR==(0xab2+962-0xe74)){buf[
-(0xc95+695-0xf4c)]=(0x635+3537-0x13f5);}if(pSrc->TP_SRR==(0x350+431-0x4fe)){buf[
-(0x1af+3130-0xde9)]=(0x1da+1863-0x8f0);}}if(pSrc->TP_UDHI==(0x963+4549-0x1b27)){
-if(pSrc->TP_SRR==(0xe24+2404-0x1788)){buf[(0x412+7317-0x20a7)]=
-(0x1734+3167-0x2342);}if(pSrc->TP_SRR==(0x953+4091-0x194d)){buf[
-(0x826+5277-0x1cc3)]=(0x106f+1271-0x14f5);}}buf[(0xc4c+5664-0x226b)]=
-(0x70d+1056-0xb2d);buf[(0x736+4541-0x18f1)]=(char)nLength;if(pSrc->TPA[
-(0x1bab+1819-0x22c6)]==((char)(0x159c+3762-0x2423))){buf[(0x138+1078-0x56b)]=
-(0x7e4+2295-0x104a);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
-(0xf49+2073-0x175e));nDstLength+=InvertNumbers(&(pSrc->TPA[(0x17e3+1627-0x1e3d)]
-),&pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
-(0xe58+3453-0x1bd1)))){buf[(0x1945+1372-0x1e9f)]=(char)nLength-
-(0xf15+3037-0x1af0);buf[(0x188b+3037-0x2465)]=(0x15a9+2798-0x2006);nDstLength+=
-Bytes2String(buf,&pDst[nDstLength],(0x2b7+2442-0xc3d));nDstLength+=InvertNumbers
-(&(pSrc->TPA[(0x2117+509-0x2312)]),&pDst[nDstLength],nLength-(0x5c9+6664-0x1fcf)
-);}else{buf[(0xa0c+711-0xcd0)]=(0x1114+3698-0x1f05);nDstLength+=Bytes2String(buf
-,&pDst[nDstLength],(0x4cc+3142-0x110e));nDstLength+=InvertNumbers(pSrc->TPA,&
-pDst[nDstLength],nLength);}
-#if (0x3e9+4358-0x14ee)
+if(pSrc->TPA[(0xfa+714-0x3c4)]==((char)(0x2274+595-0x249c))){nLength=strlen(&(
+pSrc->TPA[(0x1e1d+395-0x1fa7)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
+TP_UDHI==(0x10bf+1286-0x15c5)){if(pSrc->TP_SRR==(0x120+3534-0xeee)){buf[
+(0x891+4439-0x19e8)]=(0xcfd+4877-0x1ff9);}if(pSrc->TP_SRR==(0x12d0+3248-0x1f7f))
+{buf[(0xd73+3766-0x1c29)]=(0x62+7460-0x1d55);}}if(pSrc->TP_UDHI==
+(0xdad+1787-0x14a7)){if(pSrc->TP_SRR==(0x155c+3629-0x2389)){buf[
+(0x964+6358-0x223a)]=(0x323+2288-0xbc2);}if(pSrc->TP_SRR==(0x3c9+1292-0x8d4)){
+buf[(0x1489+3117-0x20b6)]=(0x2dd+3209-0xef5);}}buf[(0x2fb+1238-0x7d0)]=
+(0x8d4+2471-0x127b);buf[(0xa3d+1533-0x1038)]=(char)nLength;if(pSrc->TPA[
+(0x51f+3582-0x131d)]==((char)(0x1486+4231-0x24e2))){buf[(0xf3f+2567-0x1943)]=
+(0xa20+6779-0x240a);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
+(0xbbd+263-0xcc0));nDstLength+=InvertNumbers(&(pSrc->TPA[(0xa3b+6036-0x21ce)]),&
+pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
+(0x4c5+8637-0x267e)))){buf[(0x2c9+5047-0x167e)]=(char)nLength-
+(0x1648+287-0x1765);buf[(0x1048+4971-0x23b0)]=(0x531+5094-0x1886);nDstLength+=
+Bytes2String(buf,&pDst[nDstLength],(0x439+4951-0x178c));nDstLength+=
+InvertNumbers(&(pSrc->TPA[(0x417+2978-0xfb7)]),&pDst[nDstLength],nLength-
+(0x2ab+4905-0x15d2));}else{buf[(0x1bba+886-0x1f2d)]=(0xe8d+2039-0x1603);
+nDstLength+=Bytes2String(buf,&pDst[nDstLength],(0xbac+5408-0x20c8));nDstLength+=
+InvertNumbers(pSrc->TPA,&pDst[nDstLength],nLength);}
+#if (0x1264+4718-0x24d1)
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[(0x146a+433-0x161b)]=pSrc->TP_PID;buf[
-(0x2683+60-0x26be)]=pSrc->TP_DCS;buf[(0xf0b+4260-0x1fad)]=pSrc->TP_VP;if(pSrc->
+nLength=(int)pSrc->TP_UDLength;buf[(0x72b+568-0x963)]=pSrc->TP_PID;buf[
+(0xfc4+5053-0x2380)]=pSrc->TP_DCS;buf[(0xdd7+5324-0x22a1)]=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==(0x2f7+1731-0x9b9)){buf[(0x1bca+2848-0x26e7)]=(unsigned
- char)nLength;buf[(0x5fa+7746-0x2438)]=(unsigned char)pSrc->TP_UD[
-(0x1223+4374-0x2339)];buf[(0xa1b+5774-0x20a4)]=(0x15f+4763-0x13fa);buf[
-(0x4ad+1453-0xa54)]=(unsigned char)pSrc->TP_UD[(0x123c+4650-0x2464)];buf[
-(0x22cc+393-0x244e)]=(unsigned char)pSrc->TP_UD[(0x1671+1093-0x1ab3)];buf[
-(0x5eb+1379-0xb46)]=(unsigned char)pSrc->TP_UD[(0x39a+976-0x766)];buf[
-(0x719+3187-0x1383)]=(unsigned char)pSrc->TP_UD[(0x5e1+7247-0x222b)];if(nLength-
-(0x4b4+4192-0x150e)<=(0xc16+5445-0x215b)||nLength-(0xfc0+2207-0x1859)>=sizeof(
-buf)-(0x1a32+1501-0x2005))return-(0x1888+365-0x19f4);buf[(0x671+5271-0x1b05)]=(
-unsigned char)(Encode8bit(&(pSrc->TP_UD[(0xdd8+3909-0x1d17)]),&buf[
-(0xa0f+2798-0x14f3)],(unsigned short)(nLength-(0x1700+4083-0x26ed)))+
-(0x15e4+3386-0x2318));nLength=buf[(0x862+199-0x926)]+(0x1269+2212-0x1b09);}else{
-if(nLength<=(0xcc6+2480-0x1676)||nLength>=sizeof(buf)-(0x28c+2770-0xd5a))return-
-(0x18a2+2040-0x2099);buf[(0x665+5792-0x1d02)]=Encode8bit(pSrc->TP_UD,&buf[
-(0x6ff+3409-0x144c)],nLength);nLength=buf[(0x19cb+2956-0x2554)]+
-(0xc9b+198-0xd5d);}}check_udl=nLength-(0x931+6858-0x23f7);nDstLength+=
+TP_UD);if(pSrc->TP_UDHI==(0xd6a+2665-0x17d2)){buf[(0x85+7742-0x1ec0)]=(unsigned
+char)nLength;buf[(0x459+5063-0x181c)]=(unsigned char)pSrc->TP_UD[
+(0xab7+5801-0x2160)];buf[(0xc6a+6725-0x26aa)]=(0x5+6371-0x18e8);buf[
+(0x15c4+1200-0x1a6e)]=(unsigned char)pSrc->TP_UD[(0x19eb+1659-0x2064)];buf[
+(0x345+8948-0x2632)]=(unsigned char)pSrc->TP_UD[(0x16a2+574-0x18dd)];buf[
+(0x2cb+360-0x42b)]=(unsigned char)pSrc->TP_UD[(0xf89+1044-0x1399)];buf[
+(0x1b7+9535-0x26ed)]=(unsigned char)pSrc->TP_UD[(0x14bf+1327-0x19e9)];if(nLength
+-(0xd60+1057-0x117b)<=(0x917+6746-0x2371)||nLength-(0xcf3+3348-0x1a01)>=sizeof(
+buf)-(0x1e7f+1293-0x2382))return-(0x1bf+5659-0x17d9);buf[(0x116a+1711-0x1816)]=(
+unsigned char)(Encode8bit(&(pSrc->TP_UD[(0x4ab+6665-0x1eae)]),&buf[
+(0xc1c+3438-0x1980)],(unsigned short)(nLength-(0x120c+3452-0x1f82)))+
+(0xb5c+4039-0x1b1d));nLength=buf[(0xeb0+6086-0x2673)]+(0xb1+6147-0x18b0);}else{
+if(nLength<=(0xff+6143-0x18fe)||nLength>=sizeof(buf)-(0x5c3+2928-0x112f))return-
+(0x84b+1739-0xf15);buf[(0x206f+42-0x2096)]=Encode8bit(pSrc->TP_UD,&buf[
+(0x1757+3813-0x2638)],nLength);nLength=buf[(0x476+3531-0x123e)]+
+(0xefd+4272-0x1fa9);}}check_udl=nLength-(0x1e5+6190-0x1a0f);nDstLength+=
Bytes2String(buf,&pDst[nDstLength],nLength);sc_cfg_set(NV_CHECK_UDL,"");if(
-check_udl>(0xa1f+7121-0x2564)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");}
-#if (0x1072+2204-0x190d)
+check_udl>(0x1b08+1576-0x20a4)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");
+}
+#if (0x266+3744-0x1105)
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 (0xb1f+5880-0x2216)
+#if (0xec+1274-0x5e5)
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<(0xb10+1491-0x10e3)){return-(0xfc6+3314-0x1cb7);}nSrc=
-(0x2088+897-0x2409);nDst=(0x9b8+191-0xa77);nByte=(0xb4d+3947-0x1ab8);nLeft=
-(0xa70+6902-0x2566);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
-(0x1f00+2124-0x26cd);nLeft=*pSrc>>((0xfcf+3820-0x1eb4)-nByte);pDst++;nDst++;
-nByte++;if(nByte==(0x16b6+1491-0x1c82)){*pDst=nLeft;pDst++;nDst++;nByte=
-(0x2168+791-0x247f);nLeft=(0x13bf+3991-0x2356);}pSrc++;nSrc++;}*pDst='\0';return
- nDst;}int DecodePushPdu(const char*pSrcPdu,SMS_PARAM*pDst){int nDstLength=
-(0xf8c+5400-0x24a4);unsigned char tmp=(0x17+8521-0x2160);int ud_length=
-(0x1122+2129-0x1973);unsigned char buf[(0x1146+2188-0x18d2)]={
-(0x1090+2640-0x1ae0)};char temp_num[(0xae7+2961-0x1614)]={(0x6b3+2596-0x10d7)};
-unsigned char first_octet=(0x37f+4612-0x1583);unsigned char udhl=
-(0x47f+8163-0x2462);unsigned int halftmp=(0xf96+3134-0x1bd4);char tp_ra[
-(0x1068+2803-0x1b58)]={(0x8c1+3881-0x17ea)};int tmplen=(0x104a+1017-0x1443);
-unsigned char IEIDL;int pushType=(0x77a+4395-0x18a5);const char*pSrc=pSrcPdu;if(
-pSrcPdu==NULL||pDst==NULL){printf(
+==NULL||nSrcLength<(0x10d6+535-0x12ed)){return-(0x66a+6175-0x1e88);}nSrc=
+(0x18cd+1728-0x1f8d);nDst=(0xc95+5431-0x21cc);nByte=(0x17d7+2483-0x218a);nLeft=
+(0x32+927-0x3d1);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
+(0xed+7386-0x1d48);nLeft=*pSrc>>((0x7b+8106-0x201e)-nByte);pDst++;nDst++;nByte++
+;if(nByte==(0xa68+2454-0x13f7)){*pDst=nLeft;pDst++;nDst++;nByte=
+(0x1c0+413-0x35d);nLeft=(0x5e9+2514-0xfbb);}pSrc++;nSrc++;}*pDst='\0';return
+nDst;}int DecodePushPdu(const char*pSrcPdu,SMS_PARAM*pDst){int nDstLength=
+(0x1614+2981-0x21b9);unsigned char tmp=(0xd21+1159-0x11a8);int ud_length=
+(0x717+7818-0x25a1);unsigned char buf[(0x19b1+2690-0x2333)]={
+(0x1703+2800-0x21f3)};char temp_num[(0x618+5756-0x1c30)]={(0xd1d+4894-0x203b)};
+unsigned char first_octet=(0xc8b+1230-0x1159);unsigned char udhl=
+(0x1668+284-0x1784);unsigned int halftmp=(0x99d+4092-0x1999);char tp_ra[
+(0x38b+5991-0x1aef)]={(0x6d3+5756-0x1d4f)};int tmplen=(0x1158+4650-0x2382);
+unsigned char IEIDL;int pushType=(0x1bc3+2761-0x268c);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-(0xd9b+3688-0x1c02);}String2Bytes(pSrc,&tmp,(0xd79+3766-0x1c2d));
+);return-(0x1183+4134-0x21a8);}String2Bytes(pSrc,&tmp,(0x17ea+1982-0x1fa6));
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==(0xcef+3692-0x1b5b)){pSrc+=(0xb01+1448-0x10a7);}else{tmp=(tmp-
-(0xb76+388-0xcf9))*(0x41+8035-0x1fa2);pSrc+=(0x1e29+381-0x1fa2);if(tmp>
-(0x187a+2092-0x2086)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x1432+1179-0x18ad));
-tmp=(0xf64+797-0x1261);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=tmp
-;}String2Bytes(pSrc,&tmp,(0xb73+7004-0x26cd));first_octet=tmp;pSrc+=
-(0xad3+7126-0x26a7);String2Bytes(pSrc,&tmp,(0x433+3793-0x1302));halftmp=tmp;if(
-tmp&(0x75d+797-0xa79))tmp+=(0x1997+736-0x1c76);pSrc+=(0x1c6c+1928-0x23f2);memset
-(tp_ra,(0x219a+985-0x2573),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
-(0x770+163-0x811));pSrc+=(0x8e4+5672-0x1f0a);if((tp_ra[(0xba+4950-0x1410)]&
-(0x11a8+1784-0x1850))==(0x7d8+5583-0x1d57)){char tempra[(0x212+7014-0x1cf8)];
-char acAsc[(0x148f+3493-0x21b4)];if(halftmp>=(0xa5f+6193-0x2282)){halftmp=(tmp/
-(0x1019+3016-0x1bdf))/(0x59b+6041-0x1d2d)+(tmp/(0x22b8+40-0x22de));}else{halftmp
-=tmp/(0xa11+3146-0x1659);}memset(tempra,(0x124c+4547-0x240f),sizeof(tempra));
-memcpy(tempra,pSrc,tmp);memset(acAsc,(0x1086+308-0x11ba),sizeof(acAsc));
-nDstLength=String2Bytes(tempra,buf,halftmp&(0x7ff+765-0xaf5)?(int)halftmp*
-(0x116a+3735-0x1ffa)/(0x682+4177-0x16cf)+(0xfb2+3074-0x1bb2):(int)halftmp*
-(0x18c3+905-0x1c45)/(0x39+4673-0x1276));halftmp=Decode7bit(buf,acAsc,nDstLength)
-;memset(pDst->TPA,(0x45+2542-0xa33),sizeof(pDst->TPA));if(halftmp>
-(0x1467+1867-0x1b92)){memcpy(pDst->TPA,acAsc,(0xc08+2918-0x174e));tmp=
-(0x7fc+228-0x8c0);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
-(0x1b84+2683-0x25df)){SerializeNumbers_sms(pSrc,pDst->TPA,(0xd74+5735-0x23bb));}
-else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0xb38+2744-0x15f0)]&
-(0x1895+797-0x1b21))==(0x131+1143-0x517)){memset(temp_num,(0x87d+2959-0x140c),
-sizeof(temp_num));if(pDst->TPA[(0x3a1+7598-0x214f)]!=((char)(0xbb4+3547-0x1964))
-){snprintf(temp_num,sizeof(temp_num),"\x25\x73\x25\x73","\x2b",pDst->TPA);if(
-strlen(temp_num)>(0x140c+4008-0x2394)){snprintf(pDst->TPA,sizeof(pDst->TPA),
+,tmp);if(tmp==(0x813+1491-0xde6)){pSrc+=(0x8bc+5834-0x1f84);}else{tmp=(tmp-
+(0xcc2+5197-0x210e))*(0x1272+975-0x163f);pSrc+=(0x1073+3415-0x1dc6);if(tmp>
+(0x148f+3450-0x21e9)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x1084+5617-0x2655));
+tmp=(0x17fa+1033-0x1be3);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=
+tmp;}String2Bytes(pSrc,&tmp,(0x1536+738-0x1816));first_octet=tmp;pSrc+=
+(0x16c6+870-0x1a2a);String2Bytes(pSrc,&tmp,(0xca+7054-0x1c56));halftmp=tmp;if(
+tmp&(0x99b+5756-0x2016))tmp+=(0x4d9+3345-0x11e9);pSrc+=(0x11c+9437-0x25f7);
+memset(tp_ra,(0x71+7604-0x1e25),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
+(0x273+7759-0x20c0));pSrc+=(0x1b9f+2397-0x24fa);if((tp_ra[(0x1e91+886-0x2207)]&
+(0x170f+3310-0x23ad))==(0x17f6+3816-0x268e)){char tempra[(0x556+431-0x685)];char
+ acAsc[(0xe66+2533-0x17cb)];if(halftmp>=(0x258+3937-0x11ab)){halftmp=(tmp/
+(0x65b+1744-0xd29))/(0x49d+3128-0x10ce)+(tmp/(0x7d1+6092-0x1f9b));}else{halftmp=
+tmp/(0x18e2+168-0x1988);}memset(tempra,(0x1e4b+536-0x2063),sizeof(tempra));
+memcpy(tempra,pSrc,tmp);memset(acAsc,(0x2472+162-0x2514),sizeof(acAsc));
+nDstLength=String2Bytes(tempra,buf,halftmp&(0xf74+1070-0x139b)?(int)halftmp*
+(0x4ef+6595-0x1eab)/(0xa8b+1931-0x1212)+(0x233d+768-0x263b):(int)halftmp*
+(0xd7f+412-0xf14)/(0x193+7373-0x1e5c));halftmp=Decode7bit(buf,acAsc,nDstLength);
+memset(pDst->TPA,(0xcd9+1603-0x131c),sizeof(pDst->TPA));if(halftmp>
+(0x3c6+162-0x448)){memcpy(pDst->TPA,acAsc,(0x1899+262-0x197f));tmp=
+(0x33c+7339-0x1fc7);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
+(0x1737+3051-0x2302)){SerializeNumbers_sms(pSrc,pDst->TPA,(0x1d6c+455-0x1f13));}
+else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0x1698+3204-0x231c)]&
+(0x533+6939-0x1fbd))==(0x14e4+2443-0x1dde)){memset(temp_num,(0x56a+6481-0x1ebb),
+sizeof(temp_num));if(pDst->TPA[(0x1ea+2057-0x9f3)]!=((char)(0xe2+3835-0xfb2))){
+snprintf(temp_num,sizeof(temp_num),"\x25\x73\x25\x73","\x2b",pDst->TPA);if(
+strlen(temp_num)>(0x356+8929-0x2617)){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,(0xdc9+2887-0x190e));pSrc+=(0xad4+2035-0x12c5);String2Bytes(pSrc,(
-unsigned char*)&pDst->TP_DCS,(0x1d1+2255-0xa9e));pSrc+=(0xdd8+4671-0x2015);
-SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0x199c+2516-0x2362));pSrc+=
-(0x170a+4079-0x26eb);String2Bytes(pSrc,&tmp,(0x191f+1871-0x206c));pSrc+=
-(0xbfb+427-0xda4);memset(pDst->TP_UD,(0x1540+2749-0x1ffd),sizeof(pDst->TP_UD));
+TP_PID,(0x849+462-0xa15));pSrc+=(0x18aa+2391-0x21ff);String2Bytes(pSrc,(unsigned
+ char*)&pDst->TP_DCS,(0xad1+2985-0x1678));pSrc+=(0x70d+2935-0x1282);
+SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0x2f9+1835-0xa16));pSrc+=
+(0x272+8582-0x23ea);String2Bytes(pSrc,&tmp,(0x706+3116-0x1330));pSrc+=
+(0x7d1+3988-0x1763);memset(pDst->TP_UD,(0x4cc+5034-0x1876),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&(0x1045+4900-0x2329)){const char*temp=pSrc;unsigned
- char pduType;unsigned char wspLen;unsigned char udhLen;unsigned char DestPort1;
+,first_octet);if(first_octet&(0x947+858-0xc61)){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,(0x417+8487-0x253c));temp+=
-(0x7b1+3046-0x1395);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0x5b6+1588-0xbe8));
-at_print(LOG_DEBUG,
+SMS_NO_PUSH;String2Bytes(temp,&udhl,(0xa73+5450-0x1fbb));temp+=
+(0x1055+5002-0x23dd);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0x607+7163-0x2200))
+;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==(0x10c+390-0x28d)){temp+=(0x17c1+478-0x199d)*
-tmplen+(0xc32+6621-0x260d);tmplen=String2Bytes(temp,&DestPort1,
-(0x16a1+2516-0x2073));at_print(LOG_DEBUG,
+,pDst->TP_IEI);if(pDst->TP_IEI==(0xc12+6141-0x240a)){temp+=(0xa50+1500-0x102a)*
+tmplen+(0x1462+1775-0x1b4f);tmplen=String2Bytes(temp,&DestPort1,
+(0xfbc+239-0x10a9));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+=(0x1ea+3550-0xfc6)*tmplen;tmplen=String2Bytes(temp,&DestPort2,
-(0x123b+3733-0x20ce));at_print(LOG_DEBUG,
+,DestPort1);temp+=(0x1893+3319-0x2588)*tmplen;tmplen=String2Bytes(temp,&
+DestPort2,(0x807+7566-0x2593));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==(0x497+5979-0x1be7))&&((DestPort2==
-(0x1540+2212-0x1d60))||(DestPort2==(0x4bd+7705-0x2251)))){pushType=SMS_PUSH;}}if
-(SMS_PUSH!=pushType){return pushType;}temp=pSrc+udhl*(0x269+437-0x41c)+
-(0xf2a+5028-0x22ca);tmplen=String2Bytes(temp,&pduType,(0x283+1245-0x75e));if(
-pduType==(0x359+2381-0xca0)){pushType=SMS_PUSH;temp+=(0x352+7983-0x227d);tmplen=
-String2Bytes(temp,&pduType,(0x80b+2540-0x11f5));if(pduType==(0x464+5051-0x175b))
-{pushType=SMS_NOTIFICATION;}else{temp+=(0xe69+1683-0x14f8);tmplen=String2Bytes(
-temp,&pduType,(0xbd3+2012-0x13ad));if((pduType==(0x138+4202-0x10e0))||(pduType==
-(0x3b8+9199-0x26f1))){pushType=SMS_BOOTSTRAP;}}}if((pDst->TP_IEI==
-(0x7c1+2060-0xfc9))||(pDst->TP_IEI==(0x38+9501-0x2550))||(pDst->TP_IEI==
-(0xf4a+304-0x1072))){temp=pSrc+(0x8bf+1412-0xe3f);tmplen=String2Bytes(temp,&
-IEIDL,(0xecd+5763-0x254e));if(IEIDL==(udhl-(0xad6+4402-0x1c06))){}else{temp+=
-(0x16e3+3417-0x243a)*(0x1596+1789-0x1c8d);tmplen=String2Bytes(temp,&udhLen,
-(0x8d0+4387-0x19f1));if(udhLen==(0x66a+6178-0x1e89)){temp+=(0x77d+3778-0x163d)*
-tmplen;tmplen=String2Bytes(temp,&RefNum1,(0xc33+4303-0x1d00));pDst->TP_ReferNum=
-RefNum1;temp+=(0x731+4376-0x1847)*tmplen;tmplen=String2Bytes(temp,&pDst->
-TP_AllPieceNum,(0xeeb+1516-0x14d5));temp+=(0xd7+5668-0x16f9)*tmplen;tmplen=
-String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0xe79+2797-0x1964));temp+=
-(0xd19+5941-0x244c)*tmplen;}else if(udhLen==(0x188+6201-0x19bd)){temp+=
-(0x555+7110-0x2119)*tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x131+2921-0xc98))
-;temp+=(0x7a8+604-0xa02)*tmplen;tmplen=String2Bytes(temp,&RefNum2,
-(0x874+3816-0x175a));int ReferNum=RefNum2+RefNum1*(0x2258+1338-0x2692);pDst->
-TP_ReferNum=ReferNum;temp+=(0xc89+1984-0x1447)*tmplen;tmplen=String2Bytes(temp,&
-pDst->TP_AllPieceNum,(0x9ba+4552-0x1b80));temp+=(0x2fd+4262-0x13a1)*tmplen;
-tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x13ec+3576-0x21e2));temp+=
-(0x100d+727-0x12e2)*tmplen;}}}at_print(LOG_DEBUG,
+,DestPort2);if((DestPort1==(0x158+8242-0x217f))&&((DestPort2==
+(0x1a68+1712-0x2094))||(DestPort2==(0x18e8+1225-0x1d2c)))){pushType=SMS_PUSH;}}
+if(SMS_PUSH!=pushType){return pushType;}temp=pSrc+udhl*(0xa2a+5427-0x1f5b)+
+(0x5b+1910-0x7cd);tmplen=String2Bytes(temp,&pduType,(0x1195+3176-0x1dfb));if(
+pduType==(0x3d1+3742-0x1269)){pushType=SMS_PUSH;temp+=(0xfe1+5841-0x26ae);tmplen
+=String2Bytes(temp,&pduType,(0xc06+4992-0x1f84));if(pduType==(0xa65+933-0xd46)){
+pushType=SMS_NOTIFICATION;}else{temp+=(0x2266+748-0x254e);tmplen=String2Bytes(
+temp,&pduType,(0x1e29+2025-0x2610));if((pduType==(0x1b2+991-0x4cf))||(pduType==
+(0x52f+757-0x76e))){pushType=SMS_BOOTSTRAP;}}}if((pDst->TP_IEI==
+(0x38d+4876-0x1695))||(pDst->TP_IEI==(0x29d+4013-0x1245))||(pDst->TP_IEI==
+(0x1553+3745-0x23ec))){temp=pSrc+(0x4d+7986-0x1f7b);tmplen=String2Bytes(temp,&
+IEIDL,(0x1e13+590-0x205f));if(IEIDL==(udhl-(0x4f9+6310-0x1d9d))){}else{temp+=
+(0x12f4+2305-0x1bf3)*(0x12b4+2264-0x1b86);tmplen=String2Bytes(temp,&udhLen,
+(0x1093+2335-0x19b0));if(udhLen==(0x12d7+2682-0x1d4e)){temp+=(0x2c9+8778-0x2511)
+*tmplen;tmplen=String2Bytes(temp,&RefNum1,(0xd71+1393-0x12e0));pDst->TP_ReferNum
+=RefNum1;temp+=(0x181c+949-0x1bcf)*tmplen;tmplen=String2Bytes(temp,&pDst->
+TP_AllPieceNum,(0xdd4+5957-0x2517));temp+=(0x4f1+4822-0x17c5)*tmplen;tmplen=
+String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0xc67+4120-0x1c7d));temp+=
+(0x1e3f+1160-0x22c5)*tmplen;}else if(udhLen==(0x83+939-0x42a)){temp+=
+(0x1203+3470-0x1f8f)*tmplen;tmplen=String2Bytes(temp,&RefNum1,
+(0x229a+955-0x2653));temp+=(0x16c7+1173-0x1b5a)*tmplen;tmplen=String2Bytes(temp,
+&RefNum2,(0x141c+2351-0x1d49));int ReferNum=RefNum2+RefNum1*(0x19dd+1031-0x1ce4)
+;pDst->TP_ReferNum=ReferNum;temp+=(0x1437+396-0x15c1)*tmplen;tmplen=String2Bytes
+(temp,&pDst->TP_AllPieceNum,(0x1b70+690-0x1e20));temp+=(0x16c+3882-0x1094)*
+tmplen;tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x15f0+534-0x1804));
+temp+=(0xada+6392-0x23d0)*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*(0xf22+198-0xfe6)+(0x8c7+4570-0x1a9b)
-;tmplen=String2Bytes(temp,&wspLen,(0x22a8+798-0x25c4));temp=temp+wspLen*
-(0xec+250-0x1e4)+(0x1506+1095-0x194b);}else{temp=pSrc+udhl*(0x414+545-0x633)+
-(0x11c4+2640-0x1c12);}nDstLength=((strlen(temp)<sizeof(pDst->TP_UD))?strlen(temp
-):(sizeof(pDst->TP_UD)-(0x101+6682-0x1b1a)));memcpy(pDst->TP_UD,temp,nDstLength)
-;at_print(LOG_DEBUG,
+SMS_NOTIFICATION==pushType){temp=pSrc+udhl*(0x11e7+1252-0x16c9)+
+(0xe8d+2949-0x1a0c);tmplen=String2Bytes(temp,&wspLen,(0x4f4+1221-0x9b7));temp=
+temp+wspLen*(0x57+1400-0x5cd)+(0x272+434-0x422);}else{temp=pSrc+udhl*
+(0x1b99+2694-0x261d)+(0x5c+8100-0x1ffe);}nDstLength=((strlen(temp)<sizeof(pDst->
+TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0xee7+1834-0x1610)));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=(0xbef+2761-0x16b8);if(pSrc==
-NULL||pDst==NULL||nSrcLength<(0xe1a+4070-0x1e00)){return-(0x363+5235-0x17d5);}
-nDstLength=nSrcLength;for(i=(0xae5+186-0xb9f);i<nSrcLength;i+=
-(0x18dd+2836-0x23ef)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-
-(0x1623+3014-0x21e8))==((char)(0x19d4+537-0x1ba7))){pDst--;nDstLength--;}*pDst=
+*pDst,int nSrcLength){int nDstLength;char ch;int i=(0x103d+1260-0x1529);if(pSrc
+==NULL||pDst==NULL||nSrcLength<(0xbd9+1022-0xfd7)){return-(0x40b+245-0x4ff);}
+nDstLength=nSrcLength;for(i=(0xcc8+6208-0x2508);i<nSrcLength;i+=
+(0x1c79+2075-0x2492)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-
+(0x157d+1508-0x1b60))==((char)(0x35f+3948-0x1285))){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=(0xdc8+6383-0x26b7);
-UINT16 pos=(0x1906+1693-0x1fa3);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+in_len,UINT16 shift,UINT16 out_len_max,UINT8*out){UINT16 i=(0xa90+7082-0x263a);
+UINT16 pos=(0x833+5847-0x1f0a);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(0x6d+2677-0xae2);}shift%=(0x18e7+527-0x1aef);if(shift!=
-(0x1729+491-0x1914)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0x2d8+5222-0x1737)-
-shift)+(0x13f7+3918-0x2344);if(shift==(0x1546+933-0x18e4)){shift=
-(0x5ed+3203-0x1270);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[
-pos]=in[i]>>shift;if(i+(0x69+6221-0x18b5)<in_len){out[pos]|=(UINT8)(in[i+
-(0x12ca+1024-0x16c9)]<<((0x5f8+4155-0x162c)-shift));shift++;if(shift==
-(0x9c0+5139-0x1dcc)){shift=(0x6c4+3621-0x14e9);i++;}}}return pos;}UINT8
+);return(0x477+7224-0x20af);}shift%=(0x171a+1355-0x1c5e);if(shift!=
+(0xc34+4740-0x1eb8)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0x203+9302-0x2652)-
+shift)+(0xbf0+6537-0x2578);if(shift==(0x13dd+202-0x14a0)){shift=
+(0x3db+1741-0xaa8);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[pos
+]=in[i]>>shift;if(i+(0x3a8+7056-0x1f37)<in_len){out[pos]|=(UINT8)(in[i+
+(0x774+7141-0x2358)]<<((0x52c+7351-0x21dc)-shift));shift++;if(shift==
+(0x363+2746-0xe16)){shift=(0x820+7769-0x2679);i++;}}}return pos;}UINT8
wms_ts_encode_address(const wms_address_s_type*addr,UINT8*data){UINT8 i,pos=
-(0xbdd+4952-0x1f35);if(addr->number_of_digits>WMS_GW_ADDRESS_MAX){at_print(
+(0x1120+4537-0x22d9);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(0x8d5+4355-0x19d8);}if(addr->number_type==
+,addr->number_of_digits);return(0x93b+6773-0x23b0);}if(addr->number_type==
WMS_NUMBER_ALPHANUMERIC){data[pos]=(UINT8)((addr->number_of_digits*
-(0x14f+7420-0x1e44)+(0x1ce1+2150-0x2544))/(0x205b+386-0x21d9));}else{data[pos]=
-addr->number_of_digits;}pos++;data[pos]=(0x4f9+2505-0xe42);data[pos]|=(UINT8)((
-UINT8)addr->number_type<<(0xdfd+200-0xec1));data[pos]|=(UINT8)addr->number_plan;
-pos++;if(addr->number_type==WMS_NUMBER_ALPHANUMERIC){pos+=(UINT8)
+(0x252+8188-0x2247)+(0x897+4771-0x1b37))/(0x7e1+4580-0x19c1));}else{data[pos]=
+addr->number_of_digits;}pos++;data[pos]=(0x8fc+6504-0x21e4);data[pos]|=(UINT8)((
+UINT8)addr->number_type<<(0x1941+888-0x1cb5));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,
-(0xd3d+4565-0x1f12),WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=
-(0x162+4733-0x13df);i<addr->number_of_digits;i++){data[pos]=(UINT8)(addr->digits
-[i++]&(0x344+866-0x697));{data[pos]|=(UINT8)(addr->digits[i]<<
-(0x13f5+3004-0x1fad));}pos++;}}return pos;}UINT8 wms_ts_encode_dcs(const
-wms_gw_dcs_s_type*dcs,UINT8*data){UINT8 pos=(0xbd+7965-0x1fda);if(dcs->
+(0x2a7+5230-0x1715),WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=
+(0x286+7510-0x1fdc);i<addr->number_of_digits;i++){data[pos]=(UINT8)(addr->digits
+[i++]&(0xfc5+3036-0x1b92));{data[pos]|=(UINT8)(addr->digits[i]<<
+(0x20a5+447-0x2260));}pos++;}}return pos;}UINT8 wms_ts_encode_dcs(const
+wms_gw_dcs_s_type*dcs,UINT8*data){UINT8 pos=(0x245+3767-0x10fc);if(dcs->
msg_waiting==WMS_GW_MSG_WAITING_NONE){data[pos]=dcs->is_compressed?
-(0xc31+6475-0x255c):(0xd1a+1312-0x123a);data[pos]|=(dcs->msg_class!=
-WMS_MESSAGE_CLASS_NONE)?(0x278+978-0x63a):(0x10df+362-0x1249);data[pos]|=dcs->
-alphabet<<(0x7c+9228-0x2486);data[pos]|=dcs->msg_class&(0x787+1175-0xc1b);}else
-if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE_1111){data[pos]=
-(0x14f0+1541-0x1a05);if(dcs->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]|=
-(0x530+434-0x6de);data[pos]|=dcs->msg_class&(0xb4c+3189-0x17be);}else{if(dcs->
-msg_waiting==WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x239f+223-0x23be);}else if(
+(0x152+5997-0x189f):(0x103a+1135-0x14a9);data[pos]|=(dcs->msg_class!=
+WMS_MESSAGE_CLASS_NONE)?(0xd0c+5456-0x224c):(0x39c+8057-0x2315);data[pos]|=dcs->
+alphabet<<(0x655+2464-0xff3);data[pos]|=dcs->msg_class&(0xd7d+3156-0x19ce);}else
+ if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE_1111){data[pos]=
+(0xba4+4847-0x1da3);if(dcs->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]|=
+(0xbb4+2887-0x16f7);data[pos]|=dcs->msg_class&(0x7b6+7290-0x242d);}else{if(dcs->
+msg_waiting==WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x14b+1445-0x630);}else if(
dcs->msg_waiting==WMS_GW_MSG_WAITING_STORE&&dcs->alphabet==
-WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0x286+1337-0x6ef);}else{data[pos]=
-(0xd53+3219-0x1906);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
-(0x9fb+4521-0x1b9c):(0x16d+5278-0x160b);data[pos]|=dcs->msg_waiting_kind&
-(0x14f9+1367-0x1a4d);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
-UINT8*result){unsigned char low_bit=(bcd&(0x106f+4644-0x2284));unsigned char
-high_bit=((bcd&(0x7e6+5734-0x1d5c))>>(0xa51+1035-0xe58));if(low_bit>
-(0x124d+1039-0x1653)||high_bit>(0xc60+2844-0x1773)){at_print(LOG_DEBUG,
+WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0xb02+6876-0x250e);}else{data[pos]=
+(0x96a+4792-0x1b42);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
+(0x1095+5001-0x2416):(0x1066+4559-0x2235);data[pos]|=dcs->msg_waiting_kind&
+(0xc28+2379-0x1570);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
+UINT8*result){unsigned char low_bit=(bcd&(0x1474+131-0x14e8));unsigned char
+high_bit=((bcd&(0x626+5358-0x1a24))>>(0x5c9+7744-0x2405));if(low_bit>
+(0x46+8526-0x218b)||high_bit>(0xc6a+1772-0x134d)){at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x64\x69\x67\x69\x74\x21");*
-result=(0xbfc+6795-0x2687);return FALSE;}else{*result=((bcd&(0x295+6626-0x1c68))
-+(((bcd&(0x103a+1310-0x1468))>>(0x7f9+3900-0x1731))*(0xf76+738-0x124e)));return
-TRUE;}}UINT8 wms_ts_encode_timestamp(const wms_timestamp_s_type*timestamp,UINT8*
-data){sint7 i;UINT8 pos=(0x1f6f+1266-0x2461),j;if(!wms_ts_bcd_to_int(timestamp->
-year,&j)){return(0xb92+4605-0x1d8f);}data[pos]=((timestamp->year&
-(0x40c+6375-0x1ce4))<<(0xc77+6308-0x2517))+((timestamp->year&
-(0x1fb4+1625-0x251d))>>(0x897+4916-0x1bc7));pos++;if(wms_ts_bcd_to_int(timestamp
-->month,&j)){if(j>(0x986+5556-0x1f2e)||j<(0x1515+3376-0x2244)){at_print(
-LOG_DEBUG,
+result=(0x1c25+2027-0x2410);return FALSE;}else{*result=((bcd&(0x971+2011-0x113d)
+)+(((bcd&(0x118f+5093-0x2484))>>(0x176+1623-0x7c9))*(0xc55+3006-0x1809)));return
+ TRUE;}}UINT8 wms_ts_encode_timestamp(const wms_timestamp_s_type*timestamp,UINT8
+*data){sint7 i;UINT8 pos=(0x1f10+484-0x20f4),j;if(!wms_ts_bcd_to_int(timestamp->
+year,&j)){return(0x68d+6307-0x1f30);}data[pos]=((timestamp->year&
+(0x460+8481-0x2572))<<(0xb4f+823-0xe82))+((timestamp->year&(0x1957+2515-0x223a))
+>>(0xd45+4525-0x1eee));pos++;if(wms_ts_bcd_to_int(timestamp->month,&j)){if(j>
+(0x1ec6+485-0x209f)||j<(0xf6a+1243-0x1444)){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(0x8f9+5826-0x1fbb);}}else{return(0x8ba+3486-0x1658);}data[pos]=((
-timestamp->month&(0x59f+5608-0x1b78))<<(0x1f03+298-0x2029))+((timestamp->month&
-(0x14a2+3667-0x2205))>>(0x42a+1563-0xa41));pos++;if(wms_ts_bcd_to_int(timestamp
-->day,&j)){if(j>(0x1704+302-0x1813)||j<(0xf7c+2072-0x1793)){at_print(LOG_DEBUG,
+,j);return(0x1892+2395-0x21ed);}}else{return(0xcc4+17-0xcd5);}data[pos]=((
+timestamp->month&(0x18cc+1436-0x1e59))<<(0x13b9+2526-0x1d93))+((timestamp->month
+&(0xfd7+118-0xf5d))>>(0x1fda+682-0x2280));pos++;if(wms_ts_bcd_to_int(timestamp->
+day,&j)){if(j>(0x2124+1500-0x26e1)||j<(0x17d6+1474-0x1d97)){at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);
-return(0x121f+881-0x1590);}}else{return(0x1206+852-0x155a);}data[pos]=((
-timestamp->day&(0x16dd+3519-0x248d))<<(0x5c8+3183-0x1233))+((timestamp->day&
-(0xf7c+2784-0x196c))>>(0x1891+1086-0x1ccb));pos++;if(wms_ts_bcd_to_int(timestamp
-->hour,&j)){if(j>(0x6f5+801-0x9ff)){at_print(LOG_DEBUG,
+return(0xa15+2212-0x12b9);}}else{return(0xc45+3274-0x190f);}data[pos]=((
+timestamp->day&(0x1d88+844-0x20c5))<<(0xd4+8120-0x2088))+((timestamp->day&
+(0xdb8+5313-0x2189))>>(0x4b9+8652-0x2681));pos++;if(wms_ts_bcd_to_int(timestamp
+->hour,&j)){if(j>(0x8fa+5139-0x1cf6)){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(0x837+5111-0x1c2e);}}else{return(0x6e4+4904-0x1a0c);}data[pos]=((
-timestamp->hour&(0x18f2+2894-0x2431))<<(0x258+4491-0x13df))+((timestamp->hour&
-(0x1154+338-0x11b6))>>(0x919+1114-0xd6f));pos++;if(wms_ts_bcd_to_int(timestamp->
-minute,&j)){if(j>(0x588+5695-0x1b8c)){at_print(LOG_DEBUG,
+);return(0xfff+3968-0x1f7f);}}else{return(0xcf5+476-0xed1);}data[pos]=((
+timestamp->hour&(0x17c3+3813-0x2699))<<(0xb38+3026-0x1706))+((timestamp->hour&
+(0x548+6353-0x1d29))>>(0x1227+5300-0x26d7));pos++;if(wms_ts_bcd_to_int(timestamp
+->minute,&j)){if(j>(0x8f1+4288-0x1976)){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(0x1265+4694-0x24bb);}}else{return(0x17d+2696-0xc05);}data[pos]=((
-timestamp->minute&(0xa6f+6349-0x232d))<<(0x175b+3319-0x244e))+((timestamp->
-minute&(0x17d0+379-0x185b))>>(0x10ed+5069-0x24b6));pos++;if(wms_ts_bcd_to_int(
-timestamp->second,&j)){if(j>(0x1722+604-0x1943)){at_print(LOG_DEBUG,
+,j);return(0x7a+1540-0x67e);}}else{return(0xec8+2708-0x195c);}data[pos]=((
+timestamp->minute&(0x1671+3715-0x24e5))<<(0x1768+3689-0x25cd))+((timestamp->
+minute&(0x708+7928-0x2510))>>(0x6f0+1612-0xd38));pos++;if(wms_ts_bcd_to_int(
+timestamp->second,&j)){if(j>(0x20b+746-0x4ba)){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(0x142d+4032-0x23ed);}}else{return(0x17c1+1248-0x1ca1);}data[pos]=((
-timestamp->second&(0x1cb8+1073-0x20da))<<(0x368+2455-0xcfb))+((timestamp->second
-&(0x10e2+444-0x11ae))>>(0x761+3188-0x13d1));pos++;i=(sint7)timestamp->timezone;
-if(i>(0x905+932-0xc79)||i<-(0x1364+5034-0x26de)){at_print(LOG_DEBUG,
+,j);return(0x8b2+3607-0x16c9);}}else{return(0x922+3598-0x1730);}data[pos]=((
+timestamp->second&(0x8e1+6979-0x2415))<<(0x299+3556-0x1079))+((timestamp->second
+&(0xe38+903-0x10cf))>>(0xd18+3427-0x1a77));pos++;i=(sint7)timestamp->timezone;if
+(i>(0xd0d+770-0xfdf)||i<-(0xdb8+5079-0x215f)){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(0x1f52+112-0x1fc2);}if(i>=(0x9b6+651-0xc41)){data[pos]=(UINT8)(((
-UINT8)(i%(0x28d+6815-0x1d22)))<<(0x1596+2681-0x200b));data[pos]|=(i/
-(0x7d3+2222-0x1077));}else{i*=(-(0x8e7+6682-0x2300));data[pos]=(UINT8)(((UINT8)(
-i%(0x1183+2016-0x1959)))<<(0x78d+3807-0x1668));data[pos]|=(i/(0x4f+9217-0x2446))
-;data[pos]|=(0x594+1327-0xabb);}pos++;return pos;}UINT8 wms_ts_get_udh_length(
-const wms_udh_s_type*udh){UINT8 length=(0x17ff+776-0x1b07);if(udh!=NULL){switch(
-udh->header_id){case WMS_UDH_CONCAT_8:length=(0x11e1+3350-0x1ef6)+
-(0x1743+477-0x191f)+WMS_UDH_OCTETS_CONCAT8;break;case WMS_UDH_CONCAT_16:length=
-(0x9a4+977-0xd74)+(0x2278+453-0x243c)+WMS_UDH_OCTETS_CONCAT16;break;case
-WMS_UDH_SPECIAL_SM:length=(0x1341+3231-0x1fdf)+(0x21d+213-0x2f1)+
-WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=(0x1246+3399-0x1f8c)+
-(0x883+2606-0x12b0)+WMS_UDH_OCTETS_PORT8;break;case WMS_UDH_PORT_16:length=
-(0x78+680-0x31f)+(0x127+3884-0x1052)+WMS_UDH_OCTETS_PORT16;break;case
-WMS_UDH_SMSC_CONTROL:length=(0x1c0b+628-0x1e7e)+(0x1c20+1547-0x222a)+udh->u.
-other.header_length;break;case WMS_UDH_SOURCE:length=(0x1a88+1345-0x1fc8)+
-(0x184+7089-0x1d34)+udh->u.other.header_length;break;case WMS_UDH_WCMP:length=
-(0x36d+3483-0x1107)+(0x17d2+365-0x193e)+udh->u.other.header_length;break;case
-WMS_UDH_TEXT_FORMATING:if(!udh->u.text_formating.is_color_present){length=
-(0x12f2+240-0x13e1)+(0xda0+5582-0x236d)+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{
-length=(0x13a+6659-0x1b3c)+(0xd58+2645-0x17ac)+WMS_UDH_OCTETS_TEXT_FORMATTING+
-(0x8da+787-0xbec);}break;case WMS_UDH_PRE_DEF_SOUND:length=(0x15a+3857-0x106a)+
-(0x1473+1209-0x192b)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_USER_DEF_SOUND:
-length=(0xa6f+2519-0x1445)+(0x67+3174-0xccc)+udh->u.user_def_sound.data_length+
-(0xc2b+5521-0x21bb);break;case WMS_UDH_PRE_DEF_ANIM:length=(0xe4b+1483-0x1415)+
-(0xea9+1286-0x13ae)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_LARGE_ANIM:length=
-(0xc1a+1622-0x126f)+(0x112+4230-0x1197)+WMS_UDH_LARGE_BITMAP_SIZE*
-WMS_UDH_ANIM_NUM_BITMAPS+(0x6cd+4905-0x19f5);break;case WMS_UDH_SMALL_ANIM:
-length=(0x10c8+363-0x1232)+(0x21a+8407-0x22f0)+WMS_UDH_SMALL_BITMAP_SIZE*
-WMS_UDH_ANIM_NUM_BITMAPS+(0xa1a+1780-0x110d);break;case WMS_UDH_LARGE_PICTURE:
-length=(0x876+2240-0x1135)+(0x3dd+5705-0x1a25)+WMS_UDH_LARGE_PIC_SIZE+
-(0x39b+3462-0x1120);break;case WMS_UDH_SMALL_PICTURE:length=(0x7cd+6198-0x2002)+
-(0x2b8+7408-0x1fa7)+WMS_UDH_SMALL_PIC_SIZE+(0x174+8166-0x2159);break;case
-WMS_UDH_VAR_PICTURE:length=(0x219+6369-0x1af9)+(0x1107+63-0x1145)+(UINT8)(udh->u
-.var_picture.height*udh->u.var_picture.width/(0x5cb+7605-0x2378))+
-(0xb82+4714-0x1de9);break;case WMS_UDH_RFC822:length=(0xb19+2829-0x1625)+
-(0x680+2871-0x11b6)+WMS_UDH_OCTETS_RFC822;break;case WMS_UDH_NAT_LANG_SS:length=
-(0x1bc+602-0x415)+(0xb91+1616-0x11e0)+WMS_UDH_OCTETS_NAT_LANG_SS;break;case
-WMS_UDH_NAT_LANG_LS:length=(0x250+7615-0x200e)+(0xec9+2299-0x17c3)+
-WMS_UDH_OCTETS_NAT_LANG_LS;break;case WMS_UDH_USER_PROMPT:length=
-(0xb67+2895-0x16b5)+(0x6dd+7358-0x239a)+WMS_UDH_OCTETS_USER_PROMPT;break;case
-WMS_UDH_EXTENDED_OBJECT:length=(0x963+175-0xa11)+(0xd66+3741-0x1c02)+udh->u.eo.
-content.length;if(udh->u.eo.first_segment==TRUE){length+=
-WMS_UDH_OCTETS_EO_HEADER;}break;default:length=(0x5a3+3584-0x13a2)+
-(0x1e75+599-0x20cb)+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=(0x1857+324-0x199b);uint32 i;if(headers==
-NULL){at_print(LOG_DEBUG,
+,i);return(0x176+3334-0xe7c);}if(i>=(0x243+2103-0xa7a)){data[pos]=(UINT8)(((
+UINT8)(i%(0x10b2+2723-0x1b4b)))<<(0x214+88-0x268));data[pos]|=(i/
+(0x5e3+7639-0x23b0));}else{i*=(-(0x17e3+2571-0x21ed));data[pos]=(UINT8)(((UINT8)
+(i%(0x145f+2364-0x1d91)))<<(0xfec+2178-0x186a));data[pos]|=(i/
+(0x19c8+2341-0x22e3));data[pos]|=(0x1d35+2246-0x25f3);}pos++;return pos;}UINT8
+wms_ts_get_udh_length(const wms_udh_s_type*udh){UINT8 length=(0x1df9+751-0x20e8)
+;if(udh!=NULL){switch(udh->header_id){case WMS_UDH_CONCAT_8:length=
+(0x1032+2336-0x1951)+(0x78f+4179-0x17e1)+WMS_UDH_OCTETS_CONCAT8;break;case
+WMS_UDH_CONCAT_16:length=(0xafb+1369-0x1053)+(0x1e23+485-0x2007)+
+WMS_UDH_OCTETS_CONCAT16;break;case WMS_UDH_SPECIAL_SM:length=(0xfc+2338-0xa1d)+
+(0x34+5549-0x15e0)+WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=
+(0xfa9+4012-0x1f54)+(0x110f+5407-0x262d)+WMS_UDH_OCTETS_PORT8;break;case
+WMS_UDH_PORT_16:length=(0x12bb+2618-0x1cf4)+(0xd57+2661-0x17bb)+
+WMS_UDH_OCTETS_PORT16;break;case WMS_UDH_SMSC_CONTROL:length=
+(0x14fc+1968-0x1cab)+(0x239b+788-0x26ae)+udh->u.other.header_length;break;case
+WMS_UDH_SOURCE:length=(0x226b+1010-0x265c)+(0x761+2670-0x11ce)+udh->u.other.
+header_length;break;case WMS_UDH_WCMP:length=(0xe0d+2264-0x16e4)+
+(0x4da+4586-0x16c3)+udh->u.other.header_length;break;case WMS_UDH_TEXT_FORMATING
+:if(!udh->u.text_formating.is_color_present){length=(0x1105+4310-0x21da)+
+(0x1bda+1388-0x2145)+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{length=
+(0xc4b+2003-0x141d)+(0x13d7+2485-0x1d8b)+WMS_UDH_OCTETS_TEXT_FORMATTING+
+(0x938+5019-0x1cd2);}break;case WMS_UDH_PRE_DEF_SOUND:length=(0x7a4+5815-0x1e5a)
++(0x22d0+747-0x25ba)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_USER_DEF_SOUND:
+length=(0x11aa+4272-0x2259)+(0x14a0+4512-0x263f)+udh->u.user_def_sound.
+data_length+(0x63a+3490-0x13db);break;case WMS_UDH_PRE_DEF_ANIM:length=
+(0x6df+1409-0xc5f)+(0x27+6690-0x1a48)+WMS_UDH_OCTETS_PRE_DEF;break;case
+WMS_UDH_LARGE_ANIM:length=(0x1262+1828-0x1985)+(0x446+2634-0xe8f)+
+WMS_UDH_LARGE_BITMAP_SIZE*WMS_UDH_ANIM_NUM_BITMAPS+(0x190b+186-0x19c4);break;
+case WMS_UDH_SMALL_ANIM:length=(0xf2c+3757-0x1dd8)+(0x1e95+1334-0x23ca)+
+WMS_UDH_SMALL_BITMAP_SIZE*WMS_UDH_ANIM_NUM_BITMAPS+(0x1a1d+248-0x1b14);break;
+case WMS_UDH_LARGE_PICTURE:length=(0xa6f+5519-0x1ffd)+(0xc78+6235-0x24d2)+
+WMS_UDH_LARGE_PIC_SIZE+(0x17f5+2165-0x2069);break;case WMS_UDH_SMALL_PICTURE:
+length=(0x19b1+2009-0x2189)+(0x892+3075-0x1494)+WMS_UDH_SMALL_PIC_SIZE+
+(0x4d7+1250-0x9b8);break;case WMS_UDH_VAR_PICTURE:length=(0x963+2201-0x11fb)+
+(0x179f+3035-0x2379)+(UINT8)(udh->u.var_picture.height*udh->u.var_picture.width/
+(0x9dc+4753-0x1c65))+(0x18bc+3243-0x2564);break;case WMS_UDH_RFC822:length=
+(0x1a6+6983-0x1cec)+(0x6cf+17-0x6df)+WMS_UDH_OCTETS_RFC822;break;case
+WMS_UDH_NAT_LANG_SS:length=(0x1c8+7411-0x1eba)+(0xc11+4978-0x1f82)+
+WMS_UDH_OCTETS_NAT_LANG_SS;break;case WMS_UDH_NAT_LANG_LS:length=
+(0x8a+7413-0x1d7e)+(0x367+4045-0x1333)+WMS_UDH_OCTETS_NAT_LANG_LS;break;case
+WMS_UDH_USER_PROMPT:length=(0x1485+3390-0x21c2)+(0xa31+4604-0x1c2c)+
+WMS_UDH_OCTETS_USER_PROMPT;break;case WMS_UDH_EXTENDED_OBJECT:length=
+(0x1076+717-0x1342)+(0x257+7757-0x20a3)+udh->u.eo.content.length;if(udh->u.eo.
+first_segment==TRUE){length+=WMS_UDH_OCTETS_EO_HEADER;}break;default:length=
+(0x6fd+4544-0x18bc)+(0xa0a+1274-0xf03)+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=(0xb60+2433-0x14e1);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(0x81+7693-0x1e8e);}if(num_headers>(0x9b0+280-0xac8)){length+=
-(0x1028+3887-0x1f56);for(i=(0x1518+4472-0x2690);i<num_headers&&i<
+);return(0x1bfd+1499-0x21d8);}if(num_headers>(0x1a+7514-0x1d74)){length+=
+(0x1386+538-0x159f);for(i=(0xe27+5652-0x243b);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=(0x24c+3699-0x10bf);
-if(dcs==NULL||user_data==NULL){at_print(LOG_DEBUG,
+*dcs,const wms_gw_user_data_s_type*user_data){uint32 length=(0x1496+1197-0x1943)
+;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(0xd0d+1048-0x1125);}length+=wms_ts_compute_user_data_header_length(
+);return(0x1525+2840-0x203d);}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*(0x1066+1262-0x154d))
-+(0xccc+2642-0x1717))/(0xc7a+4694-0x1ec8);}else{length+=user_data->sm_len;}
+WMS_GW_ALPHABET_7_BIT_DEFAULT){length+=((user_data->sm_len*(0xbd+2932-0xc2a))+
+(0x126a+3959-0x21da))/(0xb9c+2979-0x1737);}else{length+=user_data->sm_len;}
return length;}static int wms_ts_encode_udh_concat_8(UINT8*udh){int pos=
-(0x1988+335-0x1ad7);if(const_header->u.concat_8.total_sm==(0x17b3+377-0x192c)||
-const_header->u.concat_8.seq_num==(0x21b+1084-0x657)||const_header->u.concat_8.
-seq_num>const_header->u.concat_8.total_sm){at_print(LOG_DEBUG,
+(0x1ddf+2288-0x26cf);if(const_header->u.concat_8.total_sm==(0x17a5+471-0x197c)||
+const_header->u.concat_8.seq_num==(0x10ba+5425-0x25eb)||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(0x20bb+271-0x21ca);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0x64d+3863-0x1564);}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=(0x107c+4656-0x22ac);if(
-const_header->u.concat_16.total_sm==(0x386+7775-0x21e5)||const_header->u.
-concat_16.seq_num==(0xaf7+65-0xb38)||const_header->u.concat_16.seq_num>
+wms_ts_encode_udh_concat16(UINT8*udh){int pos=(0x2119+635-0x2394);if(
+const_header->u.concat_16.total_sm==(0x1649+2988-0x21f5)||const_header->u.
+concat_16.seq_num==(0x841+571-0xa7c)||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(0x329+3404-0x1075);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0x51a+7670-0x2310);}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)>>(0x1a7+1530-0x799));udh[pos++]=(UINT8)
-(const_header->u.concat_16.msg_ref&(0x52c+4192-0x148d));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=(0x6a8+5276-0x1b44);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=(0xbb4+6461-0x24f1);udh[pos++]=
+const_header->u.concat_16.msg_ref&65280)>>(0x2ff+5824-0x19b7));udh[pos++]=(UINT8
+)(const_header->u.concat_16.msg_ref&(0xd7d+298-0xda8));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=(0x1bba+1543-0x21c1);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=(0xb6c+1982-0x132a);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=
-(0x571+7602-0x2323);int pos=(0x7a+8073-0x2003);udh[pos++]=(UINT8)const_header->u
-.other.header_id;udh[pos++]=const_header->u.other.header_length;for(i=
-(0xf9f+1814-0x16b5);i<const_header->u.other.header_length;i++){udh[pos++]=
+(0x1396+472-0x156e);int pos=(0x1563+2140-0x1dbf);udh[pos++]=(UINT8)const_header
+->u.other.header_id;udh[pos++]=const_header->u.other.header_length;for(i=
+(0x777+84-0x7cb);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=
-(0xef+1255-0x5d6);if(num_headers==(0x959+1590-0xf8f))return(0x5b3+6882-0x2095);
-++pos;for(i=(0xf77+5-0xf7c);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 (0x109d+4257-0x213e)
+(0x4eb+8400-0x25bb);if(num_headers==(0x184a+2784-0x232a))return
+(0x82b+3387-0x1566);++pos;for(i=(0x458+1462-0xa0e);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 (0x4b2+2453-0xe47)
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,49 +1319,49 @@
case WMS_UDH_NAT_LANG_SS:pos+=wms_ts_encode_udh_nat_lang_ss(data+pos);break;case
WMS_UDH_NAT_LANG_LS:pos+=wms_ts_encode_udh_nat_lang_ls(data+pos);break;default:
pos+=wms_ts_encode_udh_other(data+pos,const_header->header_id);}}data[
-(0x620+1410-0xba2)]=(UINT8)(pos-(0xeaa+3512-0x1c61));return((UINT8)(pos-
-(0x1457+4207-0x24c5)));}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=
-(0x3f5+931-0x798);UINT8 fill_bits=(0x73b+2679-0x11b2);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>(0x3eb+8451-0x24ee)){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+(0x17e6+1908-0x1f59);total_bits_occupied=(
-user_data_header_length+(0x1d29+1214-0x21e6))*(0x12a4+3329-0x1f9d);fill_bits=(
-total_bits_occupied%(0x1094+186-0x1147));if(fill_bits!=(0x26d7+54-0x270d)){
-fill_bits=(0x11da+2388-0x1b27)-fill_bits;}user_data_length=(total_bits_occupied+
-fill_bits+(user_data->sm_len*(0x2091+160-0x212a)))/(0x1212+854-0x1561);data[
-(0x1b78+1596-0x21b4)]=(UINT8)user_data_length;data[(0x109+1093-0x54d)]=
+(0x304+370-0x476)]=(UINT8)(pos-(0x1192+162-0x1233));return((UINT8)(pos-
+(0x645+1447-0xbeb)));}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=
+(0x1771+1016-0x1b69);UINT8 fill_bits=(0x5eb+5364-0x1adf);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>(0xe7b+6051-0x261e)){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+(0x964+4017-0x1914);total_bits_occupied=(
+user_data_header_length+(0x819+7321-0x24b1))*(0xcaa+5334-0x2178);fill_bits=(
+total_bits_occupied%(0x6cd+2008-0xe9e));if(fill_bits!=(0x492+7253-0x20e7)){
+fill_bits=(0xe41+4715-0x20a5)-fill_bits;}user_data_length=(total_bits_occupied+
+fill_bits+(user_data->sm_len*(0x64+9530-0x2597)))/(0x2219+54-0x2248);data[
+(0x18c6+2222-0x2174)]=(UINT8)user_data_length;data[(0x985+4143-0x19b3)]=
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>
-(0xfda+5322-0x24a4)){if(wms_ts_compute_user_data_header_length(user_data->
+(0x1414+4663-0x264b)){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[(0x1dbb+1765-0x24a0)]=(UINT8)(user_data->sm_len+
-user_data_header_length+(0x1ca0+1046-0x20b5));pos+=user_data_header_length+
-(0x1479+2690-0x1efa);}else{at_print(LOG_DEBUG,
+pos);data[(0xa39+4621-0x1c46)]=(UINT8)(user_data->sm_len+user_data_header_length
++(0x137d+1004-0x1768));pos+=user_data_header_length+(0x11db+4779-0x2485);}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=(0xcbf+3211-0x194a),i;if(
+wms_status_e_type st=WMS_OK_S;UINT8*data;UINT8 pos=(0x2f4+3438-0x1062),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,
-(0x15c2+2850-0x20e4),WMS_MAX_LEN);data[pos]=(0x1a80+2133-0x22d5);data[pos]|=
-deliver->more?(0x1804+1283-0x1d07):(0x1007+5612-0x25ef);data[pos]|=deliver->
-status_report_enabled?(0x547+3222-0x11bd):(0x8d5+76-0x921);data[pos]|=deliver->
-user_data_header_present?(0x730+7459-0x2413):(0x17ad+2514-0x217f);data[pos]|=
-deliver->reply_path_present?(0xb77+5110-0x1eed):(0x8f2+7206-0x2518);pos++;i=
-wms_ts_encode_address(&deliver->address,&data[pos]);if(i==(0x5bc+2295-0xeb3)){
-return WMS_INVALID_PARM_SIZE_S;}pos+=i;data[pos]=deliver->pid;pos++;pos+=
+(0x41f+8689-0x2610),WMS_MAX_LEN);data[pos]=(0x549+3301-0x122e);data[pos]|=
+deliver->more?(0x2327+190-0x23e5):(0x1aed+1917-0x2266);data[pos]|=deliver->
+status_report_enabled?(0x169a+2540-0x2066):(0x41c+7256-0x2074);data[pos]|=
+deliver->user_data_header_present?(0x1746+334-0x1854):(0x761+6100-0x1f35);data[
+pos]|=deliver->reply_path_present?(0x1601+1432-0x1b19):(0x23a6+783-0x26b5);pos++
+;i=wms_ts_encode_address(&deliver->address,&data[pos]);if(i==(0xead+5085-0x228a)
+){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==(0x93+9795-0x26d6)){return WMS_INVALID_PARM_VALUE_S;}
+timestamp,data+pos);if(i==(0x921+1706-0xfcb)){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"
@@ -1365,56 +1369,56 @@
dcs,&deliver->user_data,data+pos);pos+=i;}raw_ts_data_ptr->tpdu_type=
WMS_TPDU_DELIVER;raw_ts_data_ptr->len=pos;return st;}UINT8
wms_ts_encode_relative_time(const wms_timestamp_s_type*timestamp){uint32 i;UINT8
- v=(0x8cb+4808-0x1b93),j;if(timestamp!=NULL){if(!wms_ts_bcd_to_int(timestamp->
+ v=(0x1e35+163-0x1ed8),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*(0x34d+5383-0x16e7);if(!wms_ts_bcd_to_int(timestamp->month,&j)){at_print(
+);}i=j*(0xd06+2299-0x1494);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*(0x551+2996-0x10e7);if(!wms_ts_bcd_to_int(timestamp->day,&j)){
+,j);}i=i+j*(0x166+5097-0x1531);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>(0x60c+4987-0x1969)){v=(UINT8)((i+(0x151f+1005-0x1906))/
-(0x809+4795-0x1abd)+(0x143f+2005-0x1b54));}else if(i>=(0x416+4167-0x145c)){v=(
-UINT8)(i+(0x1858+2296-0x20aa));}else{if(!wms_ts_bcd_to_int(timestamp->day,&j)){
++=j;if(i>(0x802+4037-0x17a9)){v=(UINT8)((i+(0x595+6509-0x1efc))/
+(0xb99+5216-0x1ff2)+(0x186f+2271-0x208e));}else if(i>=(0xad9+5442-0x201a)){v=(
+UINT8)(i+(0x527+3640-0x12b9));}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*(0x21b6+148-0x2232)*(0xa30+213-0xac9);if(!wms_ts_bcd_to_int(timestamp->hour,&
-j)){at_print(LOG_DEBUG,
+=j*(0x11d1+514-0x13bb)*(0x1323+1973-0x1a9c);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*(0x1b12+2462-0x2474);if(!wms_ts_bcd_to_int(timestamp->minute,&j)){
+);}i=i+j*(0x15b7+3058-0x216d);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>(0x1075+1381-0x15ce)*(0xd6a+336-0xe7e)){v=(UINT8)((i-((
-(0xfc1+5200-0x2405)*(0x9dc+6948-0x24c4))+(0x149f+1011-0x1875)))/
-(0xab+9366-0x2523)+(0xaf1+1737-0x112b));}else{v=(UINT8)((i+(0xeac+1614-0x14f6))/
-(0x5b6+6869-0x2086)-(0x257+3889-0x1187));}}}else{at_print(LOG_DEBUG,
+,j);}i+=j;if(i>(0x129a+2332-0x1baa)*(0x1e8+580-0x3f0)){v=(UINT8)((i-((
+(0x748+973-0xb09)*(0x16c+4217-0x11a9))+(0x3a3+8738-0x25a8)))/
+(0x1528+3628-0x2336)+(0x2e7+7036-0x1dd4));}else{v=(UINT8)((i+(0x543+1995-0xd0a))
+/(0x1ad+5337-0x1681)-(0x16f6+2435-0x2078));}}}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=(0x1142+5057-0x2503);switch(validity->format){
+validity,UINT8*data){UINT8 i,pos=(0xe12+1826-0x1534);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==(0x1f0f+1359-0x245e)){at_print(LOG_DEBUG,
+if(i==(0xd53+5243-0x21ce)){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=(0x1b93+2379-0x24de),i;if(submit==NULL||raw_ts_data_ptr==NULL){
+UINT8 pos=(0x206c+1412-0x25f0),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,
-(0x11d+8830-0x239b),WMS_MAX_LEN);data[pos]=(0x4f3+5856-0x1bd2);data[pos]|=submit
-->reject_duplicates?(0x11e4+1725-0x189d):(0x6f+9337-0x24e8);if(submit->validity.
-format>(0x6e7+2294-0xfda)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}data[pos]|=
-submit->validity.format<<(0x922+195-0x9e2);data[pos]|=submit->
-status_report_enabled?(0x148a+3844-0x236e):(0x1337+4763-0x25d2);data[pos]|=
-submit->user_data_header_present?(0x1c97+381-0x1dd4):(0x182+5174-0x15b8);data[
-pos]|=submit->reply_path_present?(0x393+1417-0x89c):(0x17f0+60-0x182c);pos++;
-data[pos]=(UINT8)submit->message_reference;pos++;i=wms_ts_encode_address(&submit
-->address,&data[pos]);if(i==(0x609+6582-0x1fbf)){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(
+(0x1442+3593-0x224b),WMS_MAX_LEN);data[pos]=(0x779+5152-0x1b98);data[pos]|=
+submit->reject_duplicates?(0x1059+5405-0x2572):(0x162b+21-0x1640);if(submit->
+validity.format>(0x8ba+5184-0x1cf7)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}
+data[pos]|=submit->validity.format<<(0xefd+5901-0x2607);data[pos]|=submit->
+status_report_enabled?(0x765+312-0x87d):(0x9ad+5323-0x1e78);data[pos]|=submit->
+user_data_header_present?(0x198+9142-0x250e):(0x519+4124-0x1535);data[pos]|=
+submit->reply_path_present?(0x1024+2746-0x1a5e):(0xbcc+1280-0x10cc);pos++;data[
+pos]=(UINT8)submit->message_reference;pos++;i=wms_ts_encode_address(&submit->
+address,&data[pos]);if(i==(0x98f+6520-0x2307)){return WMS_INVALID_PARM_SIZE_S;}
+pos+=i;data[pos]=submit->pid;pos++;pos+=wms_ts_encode_dcs(&submit->dcs,data+pos)
+;pos+=wms_ts_encode_gw_validity(&submit->validity,data+pos);if(
wms_ts_compute_gw_user_data_length(&submit->dcs,&submit->user_data)>
WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
"\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x4c\x65\x6e\x67\x74\x68\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x63\x61\x70\x61\x63\x69\x74\x79"
@@ -1423,21 +1427,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=(0x107+5157-0x152c),i;if(status_report==NULL||raw_ts_data_ptr==NULL){
+UINT8 pos=(0x460+4539-0x161b),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,
-(0x1b47+335-0x1c96),WMS_MAX_LEN);data[pos]=(0x87+1491-0x64a);data[pos]|=
-status_report->more?(0x28a+685-0x537):(0x996+3534-0x1760);data[pos]|=
-status_report->status_report_qualifier?(0x27b+2315-0xb66):(0xb13+1269-0x1008);
-data[pos]|=status_report->user_data_header_present?(0x1303+377-0x143c):
-(0x283+8912-0x2553);pos++;data[pos]=(UINT8)status_report->message_reference;pos
-++;i=wms_ts_encode_address(&status_report->address,&data[pos]);if(i==
-(0xd43+4917-0x2078)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0x112b+235-0x1216),WMS_MAX_LEN);data[pos]=(0x1d6d+44-0x1d89);data[pos]|=
+status_report->more?(0x1a9c+2086-0x22c2):(0x16f9+1928-0x1e7d);data[pos]|=
+status_report->status_report_qualifier?(0x8d9+3149-0x1506):(0x10f3+219-0x11ce);
+data[pos]|=status_report->user_data_header_present?(0x42b+1790-0xae9):
+(0x7a6+1895-0xf0d);pos++;data[pos]=(UINT8)status_report->message_reference;pos++
+;i=wms_ts_encode_address(&status_report->address,&data[pos]);if(i==
+(0x11+4096-0x1011)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
wms_ts_encode_timestamp(&status_report->timestamp,data+pos);if(i==
-(0x1803+1466-0x1dbd)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0x9a+8359-0x2141)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
wms_ts_encode_timestamp(&status_report->discharge_time,data+pos);if(i==
-(0x499+6375-0x1d80)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;data[pos]=
+(0xc36+5727-0x2295)){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 +1456,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 (0x1a89+2977-0x262a)
+#if (0xa8c+1222-0xf52)
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 +1466,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 (0xb23+3152-0x1773)
+#if (0x5d8+5325-0x1aa5)
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,360 +1483,358 @@
"\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=(0x13d7+3384-0x210f);UINT16 pos=
-(0x1051+5195-0x249c);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+out_len_max,UINT16 shift,UINT8*out){int i=(0xcb4+2795-0x179f);UINT16 pos=
+(0x239+4009-0x11e2);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(0x14ad+80-0x14fd);}if(shift!=(0xb81+4247-0x1c18))pos=pos+
-(0x12d6+4541-0x2492);if(shift==(0x785+7273-0x23e7)){out[(0x3b8+3815-0x129f)]=in[
-(0x31f+2407-0xc86)]>>(0x1398+4929-0x26d8);shift=(0x38a+7895-0x2261);i=
-(0xd02+2036-0x14f5);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]
-<<shift)&(0x26f+997-0x5d5);if(pos!=(0x11c5+2128-0x1a15)){
-#if (0x2ad+3374-0xfda)
-if(shift==(0xc77+37-0xc9c)){out[i]|=(0x5e4+2696-0x106c);}else{out[i]|=in[pos-
-(0x611+7238-0x2256)]>>((0x1079+4635-0x228c)-shift);}
+);return(0xbe9+4065-0x1bca);}if(shift!=(0x160a+81-0x165b))pos=pos+
+(0x158c+4201-0x25f4);if(shift==(0xf5d+3487-0x1cf5)){out[(0x1dbc+2342-0x26e2)]=in
+[(0xf62+969-0x132b)]>>(0x5af+388-0x732);shift=(0xc9d+2059-0x14a8);i=
+(0xa48+2693-0x14cc);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]
+<<shift)&(0x784+3894-0x163b);if(pos!=(0x1759+1922-0x1edb)){
+#if (0x1df4+534-0x2009)
+if(shift==(0x11ea+4773-0x248f)){out[i]|=(0x10dd+3949-0x204a);}else{out[i]|=in[
+pos-(0xbd9+5376-0x20d8)]>>((0xb70+5463-0x20bf)-shift);}
#else
-out[i]|=in[pos-(0x18d9+1095-0x1d1f)]>>((0x1c55+1805-0x235a)-shift);
+out[i]|=in[pos-(0xc2b+5457-0x217b)]>>((0x496+4097-0x148f)-shift);
#endif
-}shift++;if(shift==(0x2253+995-0x262f)){shift=(0x3b4+8338-0x2446);i++;if(i>=
+}shift++;if(shift==(0xcc3+4235-0x1d47)){shift=(0x3eb+3115-0x1016);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]>>(0x1bb+6689-0x1bdb);}}return(UINT8)(pos);}UINT8
+);break;}out[i]=in[pos]>>(0x11a8+1278-0x16a5);}}return(UINT8)(pos);}UINT8
wms_ts_decode_address(const UINT8*data,wms_address_s_type*addr){UINT8 i,pos=
-(0xf78+6004-0x26ec);i=data[pos];if(i>WMS_GW_ADDRESS_MAX){at_print(LOG_DEBUG,
+(0x493+6334-0x1d51);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(0x65a+6135-0x1e51);}addr->number_of_digits=i;pos++;addr->digit_mode=
+,i);return(0x10cc+2150-0x1932);}addr->number_of_digits=i;pos++;addr->digit_mode=
WMS_DIGIT_MODE_4_BIT;addr->number_type=(wms_number_type_e_type)((data[pos]&
-(0x148f+665-0x16b8))>>(0x276+8095-0x2211));addr->number_plan=(
-wms_number_plan_e_type)(data[pos]&(0x142f+1492-0x19f4));pos++;if(addr->
-number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0x76c+3565-0x1559);
-addr->digit_mode=WMS_DIGIT_MODE_8_BIT;bytes_increment=(addr->number_of_digits+
-(0x173c+1692-0x1dd7))/(0xeba+4702-0x2116);addr->number_of_digits=(UINT8)(addr->
-number_of_digits*(0x19bd+2354-0x22eb)/(0x1693+2851-0x21af));(void)
+(0x48d+7023-0x1f8c))>>(0x2057+1605-0x2698));addr->number_plan=(
+wms_number_plan_e_type)(data[pos]&(0x226+5142-0x162d));pos++;if(addr->
+number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0x1845+2716-0x22e1)
+;addr->digit_mode=WMS_DIGIT_MODE_8_BIT;bytes_increment=(addr->number_of_digits+
+(0x7d8+4656-0x1a07))/(0x39c+5908-0x1aae);addr->number_of_digits=(UINT8)(addr->
+number_of_digits*(0x1c34+2531-0x2613)/(0x94d+6332-0x2202));(void)
wms_ts_unpack_gw_7_bit_chars(&data[pos],addr->number_of_digits,
-WMS_GW_ADDRESS_MAX,(0x1d3a+1849-0x2473),addr->digits);pos+=bytes_increment;}else
-{for(i=(0x16a5+2313-0x1fae);i<addr->number_of_digits;i++){addr->digits[i++]=data
-[pos]&(0x1c17+2798-0x26f6);addr->digits[i]=(data[pos]&(0x5b2+7731-0x22f5))>>
-(0x46a+3037-0x1043);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data
-,wms_gw_dcs_s_type*dcs){UINT8 pos=(0x4d5+5976-0x1c2d);UINT8 i;if(data==NULL||dcs
+WMS_GW_ADDRESS_MAX,(0x15f8+2404-0x1f5c),addr->digits);pos+=bytes_increment;}else
+{for(i=(0x66b+6271-0x1eea);i<addr->number_of_digits;i++){addr->digits[i++]=data[
+pos]&(0x441+8865-0x26d3);addr->digits[i]=(data[pos]&(0x801+1707-0xdbc))>>
+(0x7c8+1727-0xe83);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data,
+wms_gw_dcs_s_type*dcs){UINT8 pos=(0x7ed+6055-0x1f94);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(0xc10+6581-0x25c5);}dcs->msg_class=WMS_MESSAGE_CLASS_NONE;dcs->
+);return(0x919+4589-0x1b06);}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]&(0xa0a+4665-0x1b83))>>(0xd5+4344-0x11c7);
-switch(i){case(0x2131+285-0x224e):dcs->is_compressed=data[pos]&
-(0x3bf+5440-0x18df);if(data[pos]&(0xd6+4913-0x13f7)){dcs->msg_class=(
-wms_message_class_e_type)(data[pos]&(0x2ca+2330-0xbe1));}else{dcs->msg_class=
+dcs->is_compressed=FALSE;i=(data[pos]&(0x1f24+527-0x2073))>>(0x1cc+4067-0x11a9);
+switch(i){case(0x125b+780-0x1567):dcs->is_compressed=data[pos]&
+(0x127d+3130-0x1e97);if(data[pos]&(0xbe2+2089-0x13fb)){dcs->msg_class=(
+wms_message_class_e_type)(data[pos]&(0x3dc+5954-0x1b1b));}else{dcs->msg_class=
WMS_MESSAGE_CLASS_NONE;}dcs->alphabet=(wms_gw_alphabet_e_type)((data[pos]&
-(0xda8+5689-0x23d5))>>(0xa84+5507-0x2005));break;case(0x5f5+6755-0x2055):if((
-data[pos]&(0x100+4766-0x136e))==(0x16fa+1030-0x1ad0)){dcs->alphabet=(data[pos]&
-(0xb10+2806-0x1602))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
-msg_class=(wms_message_class_e_type)(data[pos]&(0x38a+4008-0x132f));dcs->
+(0x1031+3803-0x1f00))>>(0x638+6878-0x2114));break;case(0x150b+4304-0x25d8):if((
+data[pos]&(0xfa3+2328-0x188b))==(0x2169+20-0x214d)){dcs->alphabet=(data[pos]&
+(0xfc4+5443-0x2503))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
+msg_class=(wms_message_class_e_type)(data[pos]&(0x2ba+6709-0x1cec));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]&
-(0x6d+4700-0x1299))==(0x187f+1202-0x1d31)){dcs->msg_waiting=
+(0x540+7071-0x20af))==(0x1219+1191-0x16c0)){dcs->msg_waiting=
WMS_GW_MSG_WAITING_DISCARD;dcs->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}else if(
-(data[pos]&(0x1043+712-0x12db))==(0x11d8+4849-0x24b9)){dcs->msg_waiting=
+(data[pos]&(0x2ea+7615-0x2079))==(0x740+6228-0x1f84)){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]&(0x1748+3128-0x2378))?TRUE:FALSE;dcs->
-msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x241+461-0x40b));}
-break;default:at_print(LOG_DEBUG,
+msg_waiting_active=(data[pos]&(0x22f+1085-0x664))?TRUE:FALSE;dcs->
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x9db+4193-0x1a39))
+;}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=(0x14bc+1623-0x1b13),i,j;if
-(data==NULL||timestamp==NULL){at_print(LOG_DEBUG,
+UINT8*data,wms_timestamp_s_type*timestamp){UINT8 pos=(0x1a1+2256-0xa71),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(0x821+6606-0x21ef);}i=((data[pos]&(0x5b4+8457-0x26ae))<<
-(0x4c9+2929-0x1036))+((data[pos]&(0x466+1485-0x943))>>(0xde8+2059-0x15ef));if(!
+);return(0x18f7+1905-0x2068);}i=((data[pos]&(0x2cd+7676-0x20ba))<<
+(0xca0+3797-0x1b71))+((data[pos]&(0x16d9+241-0x16da))>>(0x804+2974-0x139e));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=(0x2b1+735-0x590);}timestamp->year=i;pos++;i=((data[pos]&
-(0xb88+5894-0x227f))<<(0xafb+5153-0x1f18))+((data[pos]&(0x1850+2711-0x21f7))>>
-(0xd3b+3185-0x19a8));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x165a+3036-0x222a)||j<
-(0x124f+3382-0x1f84)){at_print(LOG_DEBUG,
+,data[pos]);i=(0x27c+7392-0x1f5c);}timestamp->year=i;pos++;i=((data[pos]&
+(0xd60+2660-0x17b5))<<(0x8d1+302-0x9fb))+((data[pos]&(0x411+5124-0x1725))>>
+(0xe6+5285-0x1587));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xfcc+1288-0x14c8)||j<
+(0x5c2+2941-0x113e)){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=(0x18dd+2242-0x219e);}}else{at_print(LOG_DEBUG,
+,j);i=(0xce7+5692-0x2322);}}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=(0xa7a+2840-0x1591);}timestamp->month=i;pos++;i=((data[pos]&
-(0x1fe0+445-0x218e))<<(0xd9d+2318-0x16a7))+((data[pos]&(0x166+7108-0x1c3a))>>
-(0x147c+3879-0x239f));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x438+4928-0x1759)||j<
-(0x1c0+2712-0xc57)){at_print(LOG_DEBUG,
+,data[pos]);i=(0x13b1+1178-0x184a);}timestamp->month=i;pos++;i=((data[pos]&
+(0x75c+3563-0x1538))<<(0xcb4+4040-0x1c78))+((data[pos]&(0xff8+4142-0x1f36))>>
+(0xac6+6988-0x260e));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x553+5750-0x1baa)||j<
+(0x1200+5051-0x25ba)){at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);i=
-(0x12dc+3782-0x21a1);}}else{at_print(LOG_DEBUG,
+(0x892+4751-0x1b20);}}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=(0xb30+3431-0x1896);}timestamp->day=i;pos++;i=((data[pos]&
-(0x1008+585-0x1242))<<(0x197+3375-0xec2))+((data[pos]&(0x3ff+1081-0x748))>>
-(0x981+7529-0x26e6));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x24f3+484-0x26c0)){
+,data[pos]);i=(0x1e56+1225-0x231e);}timestamp->day=i;pos++;i=((data[pos]&
+(0x2550+162-0x25e3))<<(0x1cfd+983-0x20d0))+((data[pos]&(0x2331+1104-0x2691))>>
+(0xce4+3270-0x19a6));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xb0b+4101-0x1af9)){
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=(0xaf3+3766-0x19a9);}}else{at_print(LOG_DEBUG,
+,j);i=(0x889+5346-0x1d6b);}}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=(0xac+4984-0x1424);}timestamp->hour=i;pos++;i=((data[pos]&
-(0x1714+3736-0x259d))<<(0x10c+848-0x458))+((data[pos]&(0x82b+1676-0xdc7))>>
-(0xd97+3206-0x1a19));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x2000+1813-0x26da)){
+,data[pos]);i=(0x8b+8014-0x1fd9);}timestamp->hour=i;pos++;i=((data[pos]&
+(0x14ff+1155-0x1973))<<(0x4ba+141-0x543))+((data[pos]&(0x576+5972-0x1bda))>>
+(0x3dc+1248-0x8b8));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xc86+6462-0x2589)){
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=(0x1daf+1776-0x249f);}}else{at_print(LOG_DEBUG,
+,j);i=(0x1992+3179-0x25fd);}}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=(0xc1a+4916-0x1f4e);}timestamp->minute=i;pos++;i=((data[pos]&
-(0x308+7678-0x20f7))<<(0x18e4+932-0x1c84))+((data[pos]&(0xa51+2315-0x126c))>>
-(0xa24+5893-0x2125));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xa0f+4046-0x19a2)){
+,data[pos]);i=(0x644+5563-0x1bff);}timestamp->minute=i;pos++;i=((data[pos]&
+(0x1f8+8641-0x23aa))<<(0x186+3766-0x1038))+((data[pos]&(0x3f5+2350-0xc33))>>
+(0xc4c+5320-0x2110));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xb98+4279-0x1c14)){
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=(0x3ed+8877-0x269a);}}else{at_print(LOG_DEBUG,
+,i);i=(0x19bc+1689-0x2055);}}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=(0x251+2947-0xdd4);}timestamp->second=i;pos++;if(data[pos]&
-(0x1a3a+1326-0x1f60)){timestamp->timezone=(data[pos]&(0x15e5+3213-0x226b))*
-(0x1d9a+2281-0x2679)+((data[pos]&(0x211+5505-0x16a2))>>(0x9d6+5620-0x1fc6));
-timestamp->timezone*=(-(0x12d+2030-0x91a));}else{timestamp->timezone=(sint7)((
-data[pos]&(0xee8+3505-0x1c8a))*(0x148a+4697-0x26d9)+((data[pos]&
-(0x1f53+533-0x2078))>>(0x19a2+1143-0x1e15)));}if(timestamp->timezone>
-(0x1ab0+772-0x1d84)||timestamp->timezone<-(0x1f6c+389-0x20c1)){at_print(
-LOG_DEBUG,
+,data[pos]);i=(0x5f6+5728-0x1c56);}timestamp->second=i;pos++;if(data[pos]&
+(0x801+1803-0xf04)){timestamp->timezone=(data[pos]&(0x45+3952-0xfae))*
+(0x738+6639-0x211d)+((data[pos]&(0x2166+446-0x2234))>>(0xa40+3469-0x17c9));
+timestamp->timezone*=(-(0x1d07+2452-0x269a));}else{timestamp->timezone=(sint7)((
+data[pos]&(0xd72+3260-0x1a1f))*(0x60+7729-0x1e87)+((data[pos]&
+(0x3da+5021-0x1687))>>(0x1140+982-0x1512)));}if(timestamp->timezone>
+(0x2a1+7047-0x1df8)||timestamp->timezone<-(0xbe6+729-0xe8f)){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=(0xe92+4475-0x200d);}pos++;return pos;
+,timestamp->timezone);timestamp->timezone=(0xc4a+2076-0x1466);}pos++;return pos;
}static UINT8 wms_ts_decode_udh_concat_8(const UINT8*udh,wms_udh_s_type*
-header_ptr){UINT8 pos=(0xdb0+2853-0x18d5);if(udh==NULL||header_ptr==NULL){
-at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x9e8+4580-0x1bcc);}if(udh[pos]<(0x7b+2304-0x978)){at_print(LOG_DEBUG,
+header_ptr){UINT8 pos=(0xd37+457-0xf00);if(udh==NULL||header_ptr==NULL){at_print
+(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
+(0x121c+3565-0x2009);}if(udh[pos]<(0x2477+183-0x252b)){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(0x1ba+5092-0x159e);}if(udh[pos+(0xd7b+4478-0x1ef7)]==
-(0x864+7378-0x2536)||udh[pos+(0xd44+2777-0x181a)]>udh[pos+(0x107c+3661-0x1ec7)])
+,udh[pos]);return(0x1f5+2166-0xa6b);}if(udh[pos+(0x5f2+5703-0x1c37)]==
+(0x546+5195-0x1991)||udh[pos+(0x1413+2737-0x1ec1)]>udh[pos+(0x1792+479-0x196f)])
{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(0x5ff+8155-0x25da);}pos++;header_ptr->header_id=WMS_UDH_CONCAT_8;
+);return(0x16ca+523-0x18d5);}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[(0xd51+2960-0x18e1)]
-+(0x2c2+4061-0x129e));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x46f+6486-0x1dc5);if(udh==NULL||
-header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x20f+6689-0x1c30);}if(
-udh[pos]<(0x1779+852-0x1ac9)){at_print(LOG_DEBUG,
+pos++];header_ptr->u.concat_8.seq_num=udh[pos++];return(udh[(0xeaf+4788-0x2163)]
++(0x3bb+3110-0xfe0));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
+wms_udh_s_type*header_ptr){UINT8 pos=(0x87d+447-0xa3c);if(udh==NULL||header_ptr
+==NULL){at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");
+return(0x921+3829-0x1816);}if(udh[pos]<(0x665+4418-0x17a3)){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(0x4c5+633-0x73e);}if(udh[pos+(0xd98+3978-0x1d1f)]==
-(0xc20+248-0xd18)||udh[pos+(0x1b6d+198-0x1c2f)]==(0x129+2960-0xcb9)||udh[pos+
-(0x1870+2433-0x21ed)]>udh[pos+(0xe31+3168-0x1a8e)])return(0x32+2731-0xadd);
+,udh[pos]);return(0x31c+5862-0x1a02);}if(udh[pos+(0xa2a+1042-0xe39)]==
+(0x79c+1800-0xea4)||udh[pos+(0x926+108-0x98e)]==(0x2f9+4221-0x1376)||udh[pos+
+(0x178+7190-0x1d8a)]>udh[pos+(0x628+1086-0xa63)])return(0x1548+3675-0x23a3);
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<<(0x715+584-0x955))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[pos
-++];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[(0x125+1606-0x76b)]+
-(0x1bc4+312-0x1cfb));}static UINT8 wms_ts_udh_decode_first_seg_check(const UINT8
- len,const UINT8*data,UINT8*is_first_segment_ptr){UINT8 pos=(0x7c4+3321-0x14bd);
-UINT8 num_headers=(0x791+2127-0xfe0);UINT8 udhl=(0x1ef6+940-0x22a2);UINT8 iedl=
-(0x869+2641-0x12ba);UINT8 iei=(0x122c+2165-0x1aa1);*is_first_segment_ptr=TRUE;if
-(data==NULL||data[pos]==(0x360+4645-0x1585)||len==(0x405+127-0x484)){at_print(
-LOG_DEBUG,
+msg_ref<<(0x96d+6634-0x234f))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[
+pos++];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[(0x4ed+7050-0x2077)
+]+(0x119d+3249-0x1e4d));}static UINT8 wms_ts_udh_decode_first_seg_check(const
+UINT8 len,const UINT8*data,UINT8*is_first_segment_ptr){UINT8 pos=
+(0xa3+4794-0x135d);UINT8 num_headers=(0x5e9+6237-0x1e46);UINT8 udhl=
+(0x1464+596-0x16b8);UINT8 iedl=(0xab1+270-0xbbf);UINT8 iei=(0x798+5053-0x1b55);*
+is_first_segment_ptr=TRUE;if(data==NULL||data[pos]==(0x82a+1496-0xe02)||len==
+(0x11bd+1889-0x191e)){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+(0x16f5+2065-0x1f05)];if(iei==
-WMS_UDH_CONCAT_16){if(data[pos+(0x2a0+6969-0x1dd4)]!=(0x1a8c+1068-0x1eb7)){
+WMS_MAX_UD_HEADERS)){iei=data[pos];iedl=data[pos+(0xd6f+2811-0x1869)];if(iei==
+WMS_UDH_CONCAT_16){if(data[pos+(0x10fb+5532-0x2692)]!=(0x3ac+137-0x434)){
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+=((0x29f+6859-0x1d68)+iedl);}}return TRUE;}static UINT8
+;pos+=((0xab4+1089-0xef3)+iedl);}}return TRUE;}static UINT8
wms_ts_decode_udh_special_sm(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x1005+2588-0x1a21);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x89f+1278-0xd9d);}if(udh
-[pos]<(0x2e6+1008-0x6d4)){at_print(LOG_DEBUG,
+pos=(0x1845+2980-0x23e9);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x81b+4853-0x1b10);}if(
+udh[pos]<(0xc11+5361-0x2100)){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(0xa1+8897-0x2362);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x1375+374-0x14eb);}pos++;header_ptr->header_id=
WMS_UDH_SPECIAL_SM;header_ptr->u.special_sm.msg_waiting=(
-wms_gw_msg_waiting_e_type)((udh[pos]>>(0x799+7402-0x247c)==(0xae8+696-0xda0))?
+wms_gw_msg_waiting_e_type)((udh[pos]>>(0x551+5842-0x1c1c)==(0xe57+2799-0x1946))?
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++]&(0xf6+8745-0x22a0))
-;header_ptr->u.special_sm.message_count=udh[pos++];return(udh[(0x522+1806-0xc30)
-]+(0xad8+2096-0x1307));}static UINT8 wms_ts_decode_udh_port_8(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x23a+1891-0x99d);if(udh==NULL||header_ptr
-==NULL){at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");
-return(0x1dd5+1683-0x2468);}if(udh[pos]<(0x1582+4129-0x25a1)){at_print(LOG_DEBUG
-,
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(udh[pos++]&(0x82b+4832-0x1a8c)
+);header_ptr->u.special_sm.message_count=udh[pos++];return(udh[
+(0x10a+7655-0x1ef1)]+(0x7d+4757-0x1311));}static UINT8 wms_ts_decode_udh_port_8(
+const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x235+6802-0x1cc7);if(udh
+==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1056+1445-0x15fb);}if(
+udh[pos]<(0x3ad+6516-0x1d1f)){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(0xc0+1396-0x634);}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[(0x67f+5003-0x1a0a)]+(0x1adc+1223-0x1fa2));}static UINT8
-wms_ts_decode_udh_port16(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
-(0x2fa+9169-0x26cb);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x186+2451-0xb19);}if(udh
-[pos]<(0xb4+3256-0xd68)){at_print(LOG_DEBUG,
+,udh[pos]);return(0x16f1+3872-0x2611);}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[(0x1a70+1386-0x1fda)]+(0x4b9+1023-0x8b7));}
+static UINT8 wms_ts_decode_udh_port16(const UINT8*udh,wms_udh_s_type*header_ptr)
+{UINT8 pos=(0x932+1885-0x108f);if(udh==NULL||header_ptr==NULL){at_print(
+LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
+(0x12c0+3515-0x207b);}if(udh[pos]<(0x679+5278-0x1b13)){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(0x530+2005-0xd05);}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<<(0x8d5+5376-0x1dcd))|udh[pos++];
+,udh[pos]);return(0x16c8+4025-0x2681);}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<<(0x397+8210-0x23a1))|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<<(0x140c+4516-0x25a8))|udh[pos++];return(udh[
-(0x70c+5767-0x1d93)]+(0xc38+1160-0x10bf));}static UINT8
+)(header_ptr->u.wap_16.orig_port<<(0x878+4540-0x1a2c))|udh[pos++];return(udh[
+(0x17f8+1692-0x1e94)]+(0xf32+1038-0x133f));}static UINT8
wms_ts_decode_udh_text_formatting(const UINT8*udh,wms_udh_s_type*header_ptr){
-UINT8 pos=(0xe48+3826-0x1d3a);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG
-,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x385+5994-0x1aef);}if(
-udh[pos]<(0xa3b+6950-0x255e)){at_print(LOG_DEBUG,
+UINT8 pos=(0x13d4+3196-0x2050);if(udh==NULL||header_ptr==NULL){at_print(
+LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
+(0x1786+3524-0x254a);}if(udh[pos]<(0x14f9+122-0x1570)){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(0x1780+452-0x1944);}if(udh[pos]>=(0x413+4057-0x13e8)){
+,udh[pos]);return(0x1310+1592-0x1948);}if(udh[pos]>=(0x77a+2485-0x112b)){
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]&
-(0x18aa+1615-0x1ef6));header_ptr->u.text_formating.font_size=(
-wms_udh_font_size_e_type)((udh[pos]&(0x1392+3475-0x2119))>>(0x185a+715-0x1b23));
-header_ptr->u.text_formating.style_bold=(udh[pos]&(0xfac+469-0x1171))>>
-(0x1488+913-0x1815);header_ptr->u.text_formating.style_italic=(udh[pos]&
-(0x7d7+5856-0x1e97))>>(0xc24+2871-0x1756);header_ptr->u.text_formating.
-style_underlined=(udh[pos]&(0xa33+5764-0x2077))>>(0xe86+4572-0x205c);header_ptr
-->u.text_formating.style_strikethrough=(udh[pos]&(0x1e8+3740-0x1004))>>
-(0x8fa+1558-0xf09);pos++;if(header_ptr->u.text_formating.is_color_present){
+(0xce7+198-0xdaa));header_ptr->u.text_formating.font_size=(
+wms_udh_font_size_e_type)((udh[pos]&(0x869+6170-0x2077))>>(0x1fd+4147-0x122e));
+header_ptr->u.text_formating.style_bold=(udh[pos]&(0x82a+684-0xac6))>>
+(0x904+475-0xadb);header_ptr->u.text_formating.style_italic=(udh[pos]&
+(0x388+993-0x749))>>(0x42+3289-0xd16);header_ptr->u.text_formating.
+style_underlined=(udh[pos]&(0x58c+1896-0xcb4))>>(0x2278+543-0x2491);header_ptr->
+u.text_formating.style_strikethrough=(udh[pos]&(0x37f+2834-0xe11))>>
+(0x549+2965-0x10d7);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]&(0xa18+3661-0x1856));header_ptr->u.text_formating.text_color_background
-=(wms_udh_text_color_e_type)((udh[pos]&(0x15e0+871-0x1857))>>
-(0x10eb+3901-0x2024));pos++;}return(udh[(0xc2b+6266-0x24a5)]+(0x22aa+378-0x2423)
-);}static UINT8 wms_ts_decode_udh_pre_def_sound(const UINT8*udh,wms_udh_s_type*
-header_ptr){UINT8 pos=(0x883+5736-0x1eeb);if(udh==NULL||header_ptr==NULL){
-at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x76c+2025-0xf55);}if(udh[pos]<(0x676+2655-0x10d3)){at_print(LOG_DEBUG,
+udh[pos]&(0x157c+890-0x18e7));header_ptr->u.text_formating.text_color_background
+=(wms_udh_text_color_e_type)((udh[pos]&(0x186c+2918-0x22e2))>>(0x8fa+1427-0xe89)
+);pos++;}return(udh[(0x28b+1665-0x90c)]+(0x9ad+4805-0x1c71));}static UINT8
+wms_ts_decode_udh_pre_def_sound(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
+ pos=(0x1c5+2690-0xc47);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x8a6+4051-0x1879);}if(
+udh[pos]<(0x318+1448-0x8be)){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(0xd53+6468-0x2697);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x372+1712-0xa22);}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[(0x1821+2535-0x2208)]+
-(0x335+8271-0x2383));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8*
-udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x262+5137-0x1673),j;if(udh==NULL||
+->u.pre_def_sound.snd_number=udh[pos++];return(udh[(0x5a2+2016-0xd82)]+
+(0xdab+144-0xe3a));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8*
+udh,wms_udh_s_type*header_ptr){UINT8 pos=(0xca4+427-0xe4f),j;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1014+3373-0x1d41);}if(
-udh[pos]==(0xb85+4100-0x1b89)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1af7+300-0x1c23);}if(
+udh[pos]==(0x179d+872-0x1b05)){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(0x3e6+3516-0x11a2);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
-header_ptr->u.user_def_sound.data_length=udh[pos++]-(0x196f+3069-0x256b);
+);return(0x2287+1140-0x26fb);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
+header_ptr->u.user_def_sound.data_length=udh[pos++]-(0xd50+5079-0x2126);
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(0x1789+2606-0x21b7);}memset(header_ptr->u.
-user_def_sound.user_def_sound,(0xf60+5704-0x24a9),WMS_UDH_MAX_SND_SIZE);for(j=
-(0xd9+9040-0x2429);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(0x173+3795-0x1046);}memset(header_ptr->u.
+user_def_sound.user_def_sound,(0x4cf+6661-0x1dd5),WMS_UDH_MAX_SND_SIZE);for(j=
+(0x965+3762-0x1817);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=(0xe0d+5150-0x222b);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xa53+5915-0x216e);}if(
-udh[pos]!=(0x16ef+3433-0x2456)){at_print(LOG_DEBUG,
+pos=(0xaa9+7183-0x26b8);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xe3+4296-0x11ab);}if(udh
+[pos]!=(0x2f8+8969-0x25ff)){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(0x15aa+466-0x177c);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x826+7299-0x24a9);}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=(0x89a+6723-0x22dd),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1410+2419-0x1d83);}if(
+pos=(0x17c1+122-0x183b),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x184b+2276-0x212f);}if(
udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_LARGE_BITMAP_SIZE+
-(0x11a3+2946-0x1d24))){at_print(LOG_DEBUG,
+(0xf2a+4824-0x2201))){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(0x1745+2104-0x1f7d);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
-pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0x2f7+4573-0x14d4);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x19f7+1191-0x1e9e);k<
+,udh[pos]);return(0x59+5729-0x16ba);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
+pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0x1faf+1053-0x23cc);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x15cc+3580-0x23c8);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=(0x20b+2160-0xa7b),j,k;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0x15f+2224-0xa0f),j,k;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xaaa+4041-0x1a73);}if(
-udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+
-(0x335+4743-0x15bb))){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x216+4429-0x1363);}if(
+udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+(0x34b+2787-0xe2d)
+)){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(0xcd+4667-0x1308);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
-pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0x292+6423-0x1ba9);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x7b1+2593-0x11d2);k<
+,udh[pos]);return(0x1489+2286-0x1d77);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
+pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0x629+4771-0x18cc);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0xd53+1905-0x14c4);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=(0x16d4+3593-0x24dd),j;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0x983+2980-0x1527),j;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x695+5679-0x1cc4);}if(
-udh[pos]!=WMS_UDH_LARGE_PIC_SIZE+(0x167+2898-0xcb8)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xa32+6536-0x23ba);}if(
+udh[pos]!=WMS_UDH_LARGE_PIC_SIZE+(0x6c7+2130-0xf18)){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(0x814+5758-0x1e92);}header_ptr->header_id=
-WMS_UDH_LARGE_PICTURE;pos++;header_ptr->u.large_picture.position=udh[pos++];for(
-j=(0x1916+174-0x19c4);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=(0x1340+328-0x1488),j;if(
-udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1760+1618-0x1db2);}if(
-udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0x946+6179-0x2168)){at_print(LOG_DEBUG,
+,udh[pos]);return(0x0+9368-0x2498);}header_ptr->header_id=WMS_UDH_LARGE_PICTURE;
+pos++;header_ptr->u.large_picture.position=udh[pos++];for(j=(0xf59+4433-0x20aa);
+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=(0x1442+1050-0x185c),j;if(udh==NULL||
+header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1ba5+2663-0x260c);}if(
+udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0x1ed+7274-0x1e56)){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(0xce7+6521-0x2660);}header_ptr->header_id=
+,udh[pos]);return(0x1923+938-0x1ccd);}header_ptr->header_id=
WMS_UDH_SMALL_PICTURE;pos++;header_ptr->u.small_picture.position=udh[pos++];for(
-j=(0x9c5+4647-0x1bec);j<WMS_UDH_SMALL_PIC_SIZE;j++)header_ptr->u.small_picture.
+j=(0x21f+3836-0x111b);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=(0x1216+3481-0x1faf),j,pic_size;
+UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x1cb9+2212-0x255d),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(0x13cf+274-0x14e1);}if(
-udh[pos]>WMS_UDH_VAR_PIC_SIZE+(0x63d+8245-0x266f)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1221+255-0x1320);}if(
+udh[pos]>WMS_UDH_VAR_PIC_SIZE+(0x1867+323-0x19a7)){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(0x75a+5255-0x1be1);}if((udh[pos]-(0x1474+2554-0x1e6b))!=(udh[
-pos+(0x16b0+3010-0x2270)]*udh[pos+(0x3a5+833-0x6e3)])){at_print(LOG_DEBUG,
+,udh[pos]);return(0xdf3+3054-0x19e1);}if((udh[pos]-(0xb9c+6390-0x248f))!=(udh[
+pos+(0x1b4+4679-0x13f9)]*udh[pos+(0x870+1456-0xe1d)])){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(0x1c8f+1632-0x22ef);}pic_size=udh[pos++]-(0xb5d+5399-0x2071);header_ptr
+);return(0x32f+4278-0x13e5);}pic_size=udh[pos++]-(0xb49+3192-0x17be);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++]*(0x126d+909-0x15f2));
-header_ptr->u.var_picture.height=udh[pos++];for(j=(0x2a1+2684-0xd1d);j<pic_size
+header_ptr->u.var_picture.width=(UINT8)(udh[pos++]*(0x811+1224-0xcd1));
+header_ptr->u.var_picture.height=udh[pos++];for(j=(0x4d5+8191-0x24d4);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=(0x667+5660-0x1c83);if(udh==NULL||header_ptr==NULL){
+header_ptr){UINT8 pos=(0x286+1551-0x895);if(udh==NULL||header_ptr==NULL){
at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x302+4399-0x1431);}if(udh[pos]<(0x1fed+1504-0x25cc)){at_print(LOG_DEBUG,
+(0x472+6344-0x1d3a);}if(udh[pos]<(0x4f2+7695-0x2300)){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(0x760+6489-0x20b9);}pos++;header_ptr->header_id=
+,udh[pos]);return(0xa5+727-0x37c);}pos++;header_ptr->header_id=
WMS_UDH_USER_PROMPT;header_ptr->u.user_prompt.number_of_objects=udh[pos++];
-return(udh[(0x2472+255-0x2571)]+(0x112a+4818-0x23fb));}static UINT8
+return(udh[(0x50f+7166-0x210d)]+(0x15ac+1095-0x19f2));}static UINT8
wms_ts_decode_udh_eo(const UINT8*udh,UINT8 first_segment,wms_udh_s_type*
-header_ptr){UINT8 pos=(0xd93+6140-0x258f),udh_length;if(udh==NULL||header_ptr==
+header_ptr){UINT8 pos=(0xb89+3660-0x19d5),udh_length;if(udh==NULL||header_ptr==
NULL){at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x1765+3537-0x2536);}if(udh[pos]==(0x13b4+4355-0x24b7)){at_print(LOG_DEBUG,
+(0x266+6181-0x1a8b);}if(udh[pos]==(0x9a+7627-0x1e65)){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(0x845+1152-0xcc5);}udh_length=udh[pos++];header_ptr->header_id=
+);return(0x1469+2902-0x1fbf);}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
-(0x7e7+7506-0x2539);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
-length=udh[pos++]<<(0x181a+36-0x1836);header_ptr->u.eo.length|=udh[pos++];
+(0x2d5+2334-0xbf3);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
+length=udh[pos++]<<(0x1021+2071-0x1830);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++]<<(0x1685+3336-0x2385);header_ptr
-->u.eo.position|=udh[pos++];}header_ptr->u.eo.content.length=(udh_length-pos)+
-(0x19f6+1224-0x1ebd);memcpy(header_ptr->u.eo.content.data,udh+pos,header_ptr->u.
+udh[pos++];header_ptr->u.eo.position=udh[pos++]<<(0x21+7477-0x1d4e);header_ptr->
+u.eo.position|=udh[pos++];}header_ptr->u.eo.content.length=(udh_length-pos)+
+(0x268a+113-0x26fa);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=
-(0xe1f+3230-0x1abd);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x74+8622-0x2222);}if(udh
-[pos]<(0xfc5+164-0x1068)){at_print(LOG_DEBUG,
+(0x785+3847-0x168c);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x13c4+397-0x1551);}if(
+udh[pos]<(0x5c2+6757-0x2026)){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(0xec8+2666-0x1932);}pos++;header_ptr->header_id=WMS_UDH_RFC822
-;header_ptr->u.rfc822.header_length=udh[pos++];return(udh[(0x264f+143-0x26de)]+
-(0xa4a+2973-0x15e6));}static UINT8 wms_ts_decode_udh_nat_lang_ss(const UINT8*udh
-,wms_udh_s_type*header_ptr){UINT8 pos=(0x34b+2345-0xc74);if(udh==NULL||
-header_ptr==NULL){return(0x9c0+191-0xa7f);}if(udh[pos]!=
-WMS_UDH_OCTETS_NAT_LANG_SS){return(0x123f+3397-0x1f84);}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(0x15cb+4211-0x263e);}header_ptr->u
-.nat_lang_ss.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
-(0x72b+5731-0x1d8e)]+(0x11b9+1880-0x1910));}static UINT8
+,udh[pos]);return(0x1447+4335-0x2536);}pos++;header_ptr->header_id=
+WMS_UDH_RFC822;header_ptr->u.rfc822.header_length=udh[pos++];return(udh[
+(0x54a+2867-0x107d)]+(0x18d+4021-0x1141));}static UINT8
+wms_ts_decode_udh_nat_lang_ss(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
+pos=(0xe38+3043-0x1a1b);if(udh==NULL||header_ptr==NULL){return(0x60+5391-0x156f)
+;}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_SS){return(0xc68+6006-0x23de);}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(0x9c9+3614-0x17e7);}header_ptr
+->u.nat_lang_ss.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
+(0x574+7148-0x2160)]+(0x354+8388-0x2417));}static UINT8
wms_ts_decode_udh_nat_lang_ls(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x10ff+4920-0x2437);if(udh==NULL||header_ptr==NULL){return
-(0xd3a+2179-0x15bd);}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_LS){return
-(0x1feb+684-0x2297);}pos++;header_ptr->header_id=WMS_UDH_NAT_LANG_LS;if((
+pos=(0x1db2+1537-0x23b3);if(udh==NULL||header_ptr==NULL){return
+(0x12db+2890-0x1e25);}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_LS){return
+(0x390+2522-0xd6a);}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(0x7a5+6040-0x1f3d);}header_ptr->u.nat_lang_ls.nat_lang_id=(
-wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[(0x406+2555-0xe01)]+
-(0x16+4646-0x123b));}static UINT8 wms_ts_decode_udh_other(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x875+5849-0x1f4e),i=(0xb7+9520-0x25e7);if
-(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xcc3+1171-0x1156);}if(
-udh[pos+(0xd8b+2369-0x16cb)]>WMS_UDH_OTHER_SIZE){at_print(LOG_DEBUG,
+return(0x124d+2923-0x1db8);}header_ptr->u.nat_lang_ls.nat_lang_id=(
+wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[(0xb71+5942-0x22a7)]+
+(0x4ed+8273-0x253d));}static UINT8 wms_ts_decode_udh_other(const UINT8*udh,
+wms_udh_s_type*header_ptr){UINT8 pos=(0x5cc+6684-0x1fe8),i=(0x868+5702-0x1eae);
+if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x148f+2307-0x1d92);}if(
+udh[pos+(0x194c+2497-0x230c)]>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(0x1261+1943-0x19f8);}header_ptr->header_id=(wms_udh_id_e_type)udh[pos];
+);return(0x83c+876-0xba8);}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=(0x8fc+3555-0x16df);i<header_ptr->u.other.
+header_length=udh[pos++];for(i=(0x5ec+5248-0x1a6c);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=(0x56a+7607-0x2321);UINT8
-header_length=(0x8a8+5093-0x1c8d),num_headers=(0x8e5+33-0x906);UINT8 udhl;UINT8
-first_segment=TRUE;if(data==NULL||len==(0x2226+419-0x23c9)||data[pos]==
-(0x21f+6720-0x1c5f)||num_headers_ptr==NULL||udh_ptr==NULL){at_print(LOG_DEBUG,
+num_headers_ptr,wms_udh_s_type*udh_ptr){UINT8 pos=(0x59f+2691-0x1022);UINT8
+header_length=(0x62+2940-0xbde),num_headers=(0x11c6+4504-0x235e);UINT8 udhl;
+UINT8 first_segment=TRUE;if(data==NULL||len==(0x2fb+893-0x678)||data[pos]==
+(0x962+695-0xc19)||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(0x1d41+105-0x1daa);}udhl=data[pos];pos++;while((pos<udhl)&&(num_headers
+);return(0x6a4+6585-0x205d);}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[
@@ -1866,66 +1868,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(0xa32+7113-0x25fb);}else if(header_length!=(0xbd4+3259-0x188f)){
+,udhl);return(0x80a+4314-0x18e4);}else if(header_length!=(0xb2b+3626-0x1955)){
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=(0x9da+6059-0x2185);return(0x1dd1+58-0x1e0b);}}
-if(num_headers>=WMS_MAX_UD_HEADERS){at_print(LOG_DEBUG,
+,pos,data[pos]);*num_headers_ptr=(0x42b+5555-0x19de);return(0x116+9597-0x2693);}
+}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+(0x8ca+6615-0x22a0);}if(pos!=(udhl+(0x1229+1699-0x18cb))){at_print(
+);pos=udhl+(0x691+7040-0x2210);}if(pos!=(udhl+(0x456+6712-0x1e8d))){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=(0x6f0+2119-0xf37);udhl=(0xe66+2455-0x17fd);}if(num_headers>
-(0x1682+2968-0x221a)){*num_headers_ptr=num_headers;}return udhl;}UINT8
+);num_headers=(0x2bf+3494-0x1065);udhl=(0xa9b+2881-0x15dc);}if(num_headers>
+(0xeca+3092-0x1ade)){*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=(0xaf+9487-0x25be);UINT8 fill_bits=(0xa9d+2678-0x1513);
-UINT8 user_data_length;UINT8 user_data_header_length=(0x6ad+4936-0x19f5);if(dcs
+user_data){UINT8 i,pos=(0x2a3+4836-0x1587);UINT8 fill_bits=(0x670+6265-0x1ee9);
+UINT8 user_data_length;UINT8 user_data_header_length=(0xd09+5924-0x242d);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(0x1056+2512-0x1a26);}(void)memset(user_data,(0xbef+5978-0x2349),sizeof(
-wms_gw_user_data_s_type));if(len==(0x2d2+6802-0x1d64)){return
-(0x1301+4815-0x25d0);}if(dcs->alphabet==WMS_GW_ALPHABET_7_BIT_DEFAULT){if(len>
+);return(0x1a4b+245-0x1b40);}(void)memset(user_data,(0x7e2+5860-0x1ec6),sizeof(
+wms_gw_user_data_s_type));if(len==(0x15d2+1224-0x1a9a)){return
+(0x122+8503-0x2259);}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(0x849+7673-0x2642);}user_data_length=len;if(user_data_header_present){
+);return(0x6f5+3637-0x152a);}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(0x330+8000-0x2270);}if(user_data_header_length>(0x14b7+1912-0x1c2f)){
-fill_bits=((len*(0xac+2106-0x8df))-((user_data_header_length+(0x1265+565-0x1499)
-)*(0x1d5+3762-0x107f)))%(0x1dcc+1619-0x2418);user_data_length=(UINT8)(((len*
-(0x52c+1560-0xb3d))-((user_data_header_length+(0xb29+4957-0x1e85))*
-(0x18d7+2575-0x22de)))/(0x1ba0+2309-0x249e));pos=user_data_header_length+
-(0xba1+474-0xd7a);if(fill_bits!=(0x106f+3586-0x1e71)){fill_bits=
-(0x1978+3272-0x2638)-fill_bits;}}i=wms_ts_unpack_gw_7_bit_chars(&data[pos],
+);return(0x153c+1088-0x197c);}if(user_data_header_length>(0x6f0+1112-0xb48)){
+fill_bits=((len*(0x7d5+5476-0x1d32))-((user_data_header_length+(0x1c1+159-0x25f)
+)*(0x1a61+124-0x1ad5)))%(0x529+58-0x55c);user_data_length=(UINT8)(((len*
+(0x1f5+7662-0x1fdc))-((user_data_header_length+(0x11eb+2655-0x1c49))*
+(0x162+4340-0x124e)))/(0x649+3656-0x148a));pos=user_data_header_length+
+(0x1591+2873-0x20c9);if(fill_bits!=(0x1b08+2510-0x24d6)){fill_bits=
+(0xa02+4089-0x19f3)-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(0x10ad+948-0x1461);}user_data_length=len;if(user_data_header_present){
+);return(0x1490+4300-0x255c);}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(0xa77+853-0xdcc);}pos+=user_data_header_length+(0x1ca5+695-0x1f5b);
-user_data_length=(len-user_data_header_length)-(0xb19+6115-0x22fb);}memcpy(
+);return(0x21b+341-0x370);}pos+=user_data_header_length+(0x576+6603-0x1f40);
+user_data_length=(len-user_data_header_length)-(0xe57+1037-0x1263);}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=
-(0x13ef+591-0x163e),i;const UINT8*data=ptRawTsData->data;if(ptRawTsData==NULL||
+(0x10a6+1075-0x14d9),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]&(0xa41+6416-0x234e))!=
-(0xc86+5216-0x20e6)){printf(
+);return WMS_NULL_PTR_S;}else if((data[pos]&(0x237+4097-0x1235))!=
+(0x732+2740-0x11e6)){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]&
-(0x5f8+3290-0x12ce))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
-(0x19e1+3246-0x266f))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
-(0x26f+7685-0x2034))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
-(0xf45+74-0xf0f))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&deliver->
-address);if(i==(0xb95+4045-0x1b62)){printf(
+(0x871+1064-0xc95))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
+(0xd24+4101-0x1d09))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
+(0x4bb+3781-0x1340))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
+(0x72f+2665-0x1118))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&
+deliver->address);if(i==(0x15+3635-0xe48)){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.
@@ -1933,74 +1935,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==(0x16ea+3083-0x22f5)){printf(
+timestamp);if(i==(0x1d17+2427-0x2692)){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-(0x1754+1189-0x1bf8)],data+pos,deliver->
+deliver->dcs,data[pos-(0x1904+2270-0x21e1)],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=(0xe8b+6208-0x26cb);if(data==NULL||validity==NULL){at_print(
+UINT8 i,pos=(0x148b+3854-0x2399);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(0x103b+5054-0x23f9);}else{switch(validity->format){case
-WMS_GW_VALIDITY_NONE:memset(validity,(0x410+3927-0x1367),sizeof(
+);return(0x325+6092-0x1af1);}else{switch(validity->format){case
+WMS_GW_VALIDITY_NONE:memset(validity,(0x2613+216-0x26eb),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=
-(0x417+6202-0x1c51),i;const UINT8*data;if(ptRawTsData==NULL||submit==NULL){
+(0xb56+3000-0x170e),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]&(0x21+9364-0x24b1))?TRUE:FALSE;submit->validity.format=(
-wms_gw_validity_format_e_type)((data[pos]&(0xd7d+874-0x10cf))>>(0x6a+2847-0xb86)
-);submit->status_report_enabled=(data[pos]&(0xbb2+3765-0x1a47))?TRUE:FALSE;
-submit->user_data_header_present=(data[pos]&(0xcdf+278-0xdb5))?TRUE:FALSE;submit
-->reply_path_present=(data[pos]&(0xf99+2527-0x18f8))?TRUE:FALSE;pos++;submit->
-message_reference=data[pos];pos++;i=wms_ts_decode_address(&data[pos],&submit->
-address);if(i==(0x3cf+1233-0x8a0)){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==(0x5f8+2753-0x10b9))){return
-WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=wms_ts_decode_gw_user_data(&submit->dcs
-,data[pos-(0x1f2d+1761-0x260d)],data+pos,submit->user_data_header_present,&
+pos]&(0xb9b+2881-0x16d8))?TRUE:FALSE;submit->validity.format=(
+wms_gw_validity_format_e_type)((data[pos]&(0x186+1022-0x56c))>>
+(0x226+2425-0xb9c));submit->status_report_enabled=(data[pos]&(0x3d6+1566-0x9d4))
+?TRUE:FALSE;submit->user_data_header_present=(data[pos]&(0xb42+2143-0x1361))?
+TRUE:FALSE;submit->reply_path_present=(data[pos]&(0x7c7+2725-0x11ec))?TRUE:FALSE
+;pos++;submit->message_reference=data[pos];pos++;i=wms_ts_decode_address(&data[
+pos],&submit->address);if(i==(0x2fc+1117-0x759)){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==(0xdf5+2578-0x1807))){return
+ WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=wms_ts_decode_gw_user_data(&submit->
+dcs,data[pos-(0x9ba+3385-0x16f2)],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=(0x1707+485-0x18ec),i;const UINT8*data;if(ptRawTsData==NULL||status_report==
+pos=(0x568+6554-0x1f02),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]&
-(0x43+443-0x1fa)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]&
-(0x8a0+7454-0x259e)?TRUE:FALSE;status_report->user_data_header_present=(data[pos
-]&(0x6da+2976-0x123a))?TRUE:FALSE;pos++;status_report->message_reference=data[
+(0x211f+559-0x234a)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]&
+(0x1fb1+29-0x1fae)?TRUE:FALSE;status_report->user_data_header_present=(data[pos]
+&(0x1a6a+2464-0x23ca))?TRUE:FALSE;pos++;status_report->message_reference=data[
pos];pos++;i=wms_ts_decode_address(&data[pos],&status_report->address);if(i==
-(0x17e1+1379-0x1d44)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0xfef+1327-0x151e)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
wms_ts_decode_timestamp(data+pos,&status_report->timestamp);if(i==
-(0x177f+1194-0x1c29)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0xf94+5707-0x25df)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
wms_ts_decode_timestamp(data+pos,&status_report->discharge_time);if(i==
-(0x405+5807-0x1ab4)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;status_report->
+(0xad+2605-0xada)){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)(0x2066+1251-0x2549);status_report->user_data
-.sm_len=(0x925+58-0x95f);status_report->mask&=(0x2009+1948-0x26a6);if((
-status_report->mask!=(0xcc1+428-0xd6e))&&(status_report->mask!=
-(0x755+7783-0x25bc))){pos++;if(status_report->mask&WMS_TPDU_MASK_PID){
+status_report->pid=(wms_pid_e_type)(0x13f+2323-0xa52);status_report->user_data.
+sm_len=(0x4e0+1173-0x975);status_report->mask&=(0x789+1109-0xadf);if((
+status_report->mask!=(0x3b8+7109-0x1e7e))&&(status_report->mask!=
+(0x4dc+7743-0x231b))){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-(0x7c4+7136-0x23a3)],data+pos,status_report->
+&status_report->dcs,data[pos-(0x805+5798-0x1eaa)],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=
-(0x1e7f+2102-0x26b5);}return st;}wms_status_e_type wms_ts_decode(const
+(0x1cf4+1112-0x214c);}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 a3246b0..79cc3dc 100755
--- a/ap/app/zte_comm/sms/src/sms_db.c
+++ b/ap/app/zte_comm/sms/src/sms_db.c
@@ -101,85 +101,84 @@
#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=
-(0x227+9030-0x256d);extern T_zUfiSms_ParaInfo g_zUfiSms_CurSmsPara;extern
+(0x15d+4487-0x12e4);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={(0xbdc+2774-0x16b2)};int
-tmp_i=(0x13ea+1659-0x1a65);
-#if (0x3d1+5987-0x1b34)
-if(atoi(date.year)>(0x5b9+0-0x556)||atoi(date.year)<(0x64+3244-0xd10)){printf(
-"[SMS] getsecond error, year out of range: %d!!!",atoi(date.year));return
-(0x36b+6932-0x1e7f);}
+T_zUfiSms_Date date){time_t timet;struct tm tmtime={(0x1cf+5398-0x16e5)};int
+tmp_i=(0x1818+1972-0x1fcc);
+#if (0xd57+2851-0x187a)
+if(atoi(date.year)>(0x1320+389-0x1442)||atoi(date.year)<(0x29b+5558-0x1851)){
+printf("[SMS] getsecond error, year out of range: %d!!!",atoi(date.year));return
+(0x11fa+1644-0x1866);}
#endif
-tmp_i=atoi(date.year);if(tmp_i<(0x1ced+689-0x1f9e)||tmp_i>INT_MAX-
-(0x1e56+426-0x1fff)){at_print(LOG_ERR,
+tmp_i=atoi(date.year);if(tmp_i<(0xc35+6064-0x23e5)||tmp_i>INT_MAX-
+(0xc41+1590-0x1276)){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(0xfd7+3785-0x1ea0);}tmtime.tm_year=tmp_i+(0x25d3+1273-0x22fc)-
-(0x13ba+6351-0x251d);tmp_i=atoi(date.month);if(tmp_i<(0xb76+6892-0x2662)||tmp_i>
-INT_MAX-(0xead+432-0x105c)){at_print(LOG_ERR,
+,tmp_i);return(0xa34+7332-0x26d8);}tmtime.tm_year=tmp_i+(0x189c+5661-0x26e9)-
+(0x145b+6348-0x25bb);tmp_i=atoi(date.month);if(tmp_i<(0x7d9+685-0xa86)||tmp_i>
+INT_MAX-(0xe14+6256-0x2683)){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(0x88d+5853-0x1f6a);}tmtime.tm_mon=tmp_i-(0xca1+2083-0x14c3);tmp_i
-=atoi(date.day);if(tmp_i<(0x9ba+6818-0x245c)||tmp_i>INT_MAX-(0x130d+3712-0x218c)
-){at_print(LOG_ERR,
+,tmp_i);return(0x491+5222-0x18f7);}tmtime.tm_mon=tmp_i-(0x91c+712-0xbe3);tmp_i=
+atoi(date.day);if(tmp_i<(0x1268+3318-0x1f5e)||tmp_i>INT_MAX-(0x2f7+1206-0x7ac)){
+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(0xabf+2107-0x12fa);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);if
-(tmp_i<(0x2bd+1495-0x894)||tmp_i>INT_MAX-(0x651+3085-0x125d)){at_print(LOG_ERR,
+,tmp_i);return(0x694+5832-0x1d5c);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);if
+(tmp_i<(0xce3+2482-0x1695)||tmp_i>INT_MAX-(0xaf7+6570-0x24a0)){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(0x127+3527-0xeee);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if(
-tmp_i<(0x1829+2527-0x2208)||tmp_i>INT_MAX-(0x1170+3062-0x1d65)){at_print(LOG_ERR
-,
+,tmp_i);return(0xd8d+5930-0x24b7);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if(
+tmp_i<(0x1da2+992-0x2182)||tmp_i>INT_MAX-(0x8a9+2624-0x12e8)){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(0x1e0f+1428-0x23a3);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
-tmp_i<(0x2a3+8130-0x2265)||tmp_i>INT_MAX-(0x440+1804-0xb4b)){at_print(LOG_ERR,
+,tmp_i);return(0x85b+2793-0x1344);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
+tmp_i<(0x103+4952-0x145b)||tmp_i>INT_MAX-(0x1799+2556-0x2194)){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(0x140d+2034-0x1bff);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
+,tmp_i);return(0x216+3425-0xf77);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
return timet;}T_zUfiSms_DbResult zUfiSms_OpenDb(void){int retry_times=
-(0x1574+3751-0x241b);int open_rst=SQLITE_ERROR;if(g_zUfiSms_DbPointer!=NULL){
+(0x56a+2888-0x10b2);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++<(0xd5b+563-0xf84));printf(
+SQLITE_CANTOPEN&&retry_times++<(0x232+8683-0x2413));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=(0xdf7+1656-0x146f);int sqlRst=SQLITE_ERROR;while(try_times++<
-(0x9f0+4745-0x1c6f)){sqlRst=sqlite3_exec(g_zUfiSms_DbPointer,exec_sql,callback,
+ try_times=(0xb6+1840-0x7e6);int sqlRst=SQLITE_ERROR;while(try_times++<
+(0x102d+2122-0x186d)){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(
-(0x2009+1601-0x2649));}if(sqlRst!=SQLITE_OK){printf(
+(0x82f+5120-0x1c2e));}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)==(0x91f+921-0xcb8)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZTE_WMS_TMP1_PATH,F_OK)==(0x1422+2218-0x1ccc)){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)!=(0xc1b+1344-0x115b)){slog(SMS_PRINT,SLOG_ERR,
+);if(remove(ZTE_WMS_TMP1_PATH)!=(0x172a+2630-0x2170)){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[(0x1a80+1438-0x2006)]={(0x791+594-0x9e3)};char cmd[
-(0x96c+1398-0xe62)]={(0x1c17+720-0x1ee7)};sc_cfg_get(
+);}}{char rnum_buf[(0x1a13+2223-0x22aa)]={(0x8a+1199-0x539)};char cmd[
+(0xdc5+1812-0x1459)]={(0x2c3+6087-0x1a8a)};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)==(0xb30+4651-0x1d5b)){if(remove(ZTE_WMS_SEC_PATH)!=
-(0x9a4+6409-0x22ad)){slog(SMS_PRINT,SLOG_ERR,
+ZTE_WMS_TMP1_PATH,F_OK)==(0x445+5385-0x194e)){if(remove(ZTE_WMS_SEC_PATH)!=
+(0x162f+2948-0x21b3)){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)!=(0xb3f+5312-0x1fff)){slog(
+);}if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=(0x97a+2038-0x1170)){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>=(0x47b+31-0x499)){if(zresult[
-(0x1fbd+493-0x21aa)]==NULL){*(int*)fvarg=(0x1bd+704-0x47d);}else{*(int*)fvarg=
-atoi(zresult[(0xe1b+4137-0x1e44)]);}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>=(0xe48+2518-0x181d)){if(zresult[
+(0x17b4+1158-0x1c3a)]==NULL){*(int*)fvarg=(0xe21+4368-0x1f31);}else{*(int*)fvarg
+=atoi(zresult[(0x139d+4783-0x264c)]);}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 +187,28 @@
ptSetStatus->err_code,ptSetStatus->send_failed_count,ptSetStatus->
delete_failed_count);result=zUfiSms_ExecSql(strSQL,NULL,NULL);sqlite3_free(
strSQL);return isSucess(result);}void zUfiSms_SetParameterNv(T_zUfiSms_ParaInfo*
-para){if((0xe0+3524-0xea4)==(int)para->status_report_on){sc_cfg_set(
+para){if((0xe4+963-0x4a7)==(int)para->status_report_on){sc_cfg_set(
NV_REPORT_ENABLE,"\x30");}else{sc_cfg_set(NV_REPORT_ENABLE,"\x31");}if(
-(0x756+1251-0xc39)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY,
-"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0x321+680-0x5c9)==(int)
+(0x35d+1630-0x9bb)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY,
+"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0x1c2+2606-0xbf0)==(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((0xb00+5655-0x2117)==(int)para
+NV_DEFAULT_STORE,(char*)para->default_store);}if((0x487+3711-0x1306)==(int)para
->mem_store){sc_cfg_set(NV_PRA_MEMSTORE,"\x30");}else{sc_cfg_set(NV_PRA_MEMSTORE
-,"\x31");}if((0x3e5+3120-0xf16)==(int)para->tp_validity_period){sc_cfg_set(
-NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0xb3d+6697-0x24b9)==(int)
+,"\x31");}if((0x10c+6638-0x19fb)==(int)para->tp_validity_period){sc_cfg_set(
+NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0xc10+3669-0x19b8)==(int)
para->tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x6f\x6e\x65\x77\x65\x65\x6b");}
-else if((0xbb3+6573-0x24b9)==(int)para->tp_validity_period){sc_cfg_set(NV_SMS_VP
-,"\x6f\x6e\x65\x5f\x64\x61\x79");}else if((0xb62+3132-0x170f)==(int)para->
+else if((0x10b+9080-0x23dc)==(int)para->tp_validity_period){sc_cfg_set(NV_SMS_VP
+,"\x6f\x6e\x65\x5f\x64\x61\x79");}else if((0xd39+4634-0x1ec4)==(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=
-(0xd6f+4444-0x1ecb);if(NULL==para){return-(0xdf2+299-0xf1c);}zUfiSms_ExecSql(
+(0xda8+1535-0x13a7);if(NULL==para){return-(0x2692+58-0x26cb);}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>(0x2b3+5630-0x18b1)){strSQL=
+zUfiSms_GetFirstColumnInt,&count);if(count>(0x9c9+4603-0x1bc4)){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 +221,13 @@
mem_store,(int)para->tp_validity_period,(int)para->sendfail_retry_on,(int)para->
outdate_delete_on,para->default_store);}result=zUfiSms_ExecSql(strSQL,NULL,NULL)
;sqlite3_free(strSQL);if(result==ZTE_WMS_DB_OK){zUfiSms_SetParameterNv(para);
-return(0x1401+4600-0x25f9);}return-(0xaaa+2513-0x147a);}int
+return(0x7a7+2466-0x1149);}return-(0x1060+3231-0x1cfe);}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=-(0xa+7204-0x1c2d);zUfiSms_ExecSql(
+void){int max_sms_ref=-(0xef0+4233-0x1f78);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,19 +236,19 @@
content,int len){sqlite3_stmt*stmt=NULL;char*strSQL=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x69\x6e\x64\x2c\x43\x63\x5f\x53\x65\x71\x2c\x43\x63\x5f\x43\x6f\x6e\x74\x65\x6e\x74\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x71\x27\x3b"
,id,mem_store);(void)sqlite3_prepare(g_zUfiSms_DbPointer,strSQL,-
-(0x115c+154-0x11f5),&stmt,(0xad8+1105-0xf29));while(SQLITE_ROW==sqlite3_step(
-stmt)){char*column_text=NULL;memset(pac->IndStr,(0x49c+4420-0x15e0),sizeof(pac->
-IndStr));memset(pac->Seg_Seq,(0x18df+1648-0x1f4f),sizeof(pac->Seg_Seq));if((
-column_text=sqlite3_column_text(stmt,(0x1559+495-0x1748)))!=NULL)strncpy(pac->
-IndStr,column_text,sizeof(pac->FormatInd)-(0xcdb+285-0xdf7));if((column_text=
-sqlite3_column_text(stmt,(0xdb8+5960-0x24ff)))!=NULL)strncpy(pac->Seg_Seq,
-column_text,sizeof(pac->FormatSeq)-(0x1b+2014-0x7f8));if((column_text=
-sqlite3_column_text(stmt,(0x5b4+6699-0x1fdd)))!=NULL)strncpy(content,column_text
-,len-(0x14a1+2534-0x1e86));printf(
+(0x1016+1839-0x1744),&stmt,(0x982+1663-0x1001));while(SQLITE_ROW==sqlite3_step(
+stmt)){char*column_text=NULL;memset(pac->IndStr,(0xe6d+1431-0x1404),sizeof(pac->
+IndStr));memset(pac->Seg_Seq,(0xb08+6995-0x265b),sizeof(pac->Seg_Seq));if((
+column_text=sqlite3_column_text(stmt,(0x16d5+1556-0x1ce9)))!=NULL)strncpy(pac->
+IndStr,column_text,sizeof(pac->FormatInd)-(0x996+7245-0x25e2));if((column_text=
+sqlite3_column_text(stmt,(0xb16+6486-0x246b)))!=NULL)strncpy(pac->Seg_Seq,
+column_text,sizeof(pac->FormatSeq)-(0x13da+2000-0x1ba9));if((column_text=
+sqlite3_column_text(stmt,(0x127+5110-0x151b)))!=NULL)strncpy(content,column_text
+,len-(0x482+4634-0x169b));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(0x2bb+2769-0xd8c);}int zUfiSms_UpdateConcatSmsToDb(T_zUfiSms_DbStoreData*
-db_data,const char*mem_store,char*format_concat,char*content,
+return(0xca3+6155-0x24ae);}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"
@@ -270,31 +269,33 @@
"\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[(0xf4+864-0x454)],db_data->concat_info[(0xaa5+6253-0x2311)]
-,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[(0x1c34+2503-0x25fb)],db_data->concat_info[
+(0x1347+3822-0x2234)],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=
-(0x4e7+6848-0x1fa7);int result=(0x21f1+587-0x243c);result=zUfiSms_ExecSql(
+(0x669+6377-0x1f52);int result=(0x10df+1323-0x160a);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-
-(0x1196+1610-0x17df);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap
-=(0xad1+4828-0x1dad);const T_zUfiSms_SQLMap SQL_MAP[]={{(0x10dd+4238-0x216a),
-ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0xda3+1978-0x155c),ZTE_WMS_DEL_SIM_SQL},{
-(0xf6+5603-0x16d8),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0x22a+1853-0x966),
-ZTE_WMS_CREATE_SMS_REP_SQL},{(0x6fa+1303-0xc10),ZTE_WMS_CREATE_PAR_SQL},{
-(0x9c9+4895-0x1ce7),ZTE_WMS_CREATE_INFO_SQL},{(0x6cb+8122-0x2684),
-ZTE_WMS_CREATE_CELL_BRO_SQL},{(0x21f+3396-0xf62),ZTE_WMS_CREATE_SEND_CONTENT_SQL
-},};for(iMap=(0x1042+2334-0x1960);iMap<sizeof(SQL_MAP)/sizeof(T_zUfiSms_SQLMap);
-iMap++){if(SQL_MAP[iMap].valid==(0xbb3+3080-0x17ba)){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(
+(0x56b+1318-0xa90);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap=
+(0x686+7847-0x252d);const T_zUfiSms_SQLMap SQL_MAP[]={{(0xecf+5261-0x235b),
+ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0xecd+2989-0x1a79),ZTE_WMS_DEL_SIM_SQL},{
+(0x15c5+3884-0x24f0),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0x386+2194-0xc17),
+ZTE_WMS_CREATE_SMS_REP_SQL},{(0xed+1139-0x55f),ZTE_WMS_CREATE_PAR_SQL},{
+(0x1bfc+1330-0x212d),ZTE_WMS_CREATE_INFO_SQL},{(0x4e6+3293-0x11c2),
+ZTE_WMS_CREATE_CELL_BRO_SQL},{(0xe05+4953-0x215d),
+ZTE_WMS_CREATE_SEND_CONTENT_SQL},};for(iMap=(0xedd+1297-0x13ee);iMap<sizeof(
+SQL_MAP)/sizeof(T_zUfiSms_SQLMap);iMap++){if(SQL_MAP[iMap].valid==
+(0x42d+4731-0x16a7)){if(zUfiSms_ExecSql(SQL_MAP[iMap].strSQL,NULL,NULL)!=
+ZTE_WMS_DB_OK){return ZUFI_FAIL;}}}return ZUFI_SUCC;}int zUfiSms_CreateAllTable(
+void){if(ZTE_WMS_DB_OK!=zUfiSms_OpenDb()){printf(
"\x5b\x53\x4d\x53\x5d\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x6f\x70\x65\x6e\x20\x64\x61\x74\x61\x62\x61\x73\x65\x2e\x72\x65\x74\x75\x72\x6e\x2e" "\n"
);return ZTE_SMS_DB_ERROR_NOT_OPEN_DB;}return zUfiSms_CreateTables();}int
zUfiSms_DropAllTable(void){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;if(
@@ -323,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[(0x154c+3350-0x2262)],
-ptDbSaveData->concat_info[(0x16e7+84-0x173a)],ptDbSaveData->concat_info[
-(0xbdb+6852-0x269d)],ptDbSaveData->tp_dcs,ptDbSaveData->msg_ref,pContent,"\x30",
+ptDbSaveData->concat_sms,ptDbSaveData->concat_info[(0x846+5021-0x1be3)],
+ptDbSaveData->concat_info[(0x142f+7-0x1435)],ptDbSaveData->concat_info[
+(0xb92+6713-0x25c9)],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->
@@ -347,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>=(0xcb7+4830-0x1f94)&&fvarg!=NULL){if(zresult[
-(0x141b+1075-0x184e)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
-strncpy(para->buf_addr,zresult[(0x1343+3163-0x1f9e)],para->buf_len-
-(0xf0+9155-0x24b2));return SQLITE_OK;}}return SQLITE_ERROR;}int
+zresult,char**lname){if(columns>=(0x5dd+6589-0x1f99)&&fvarg!=NULL){if(zresult[
+(0xf54+4070-0x1f3a)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
+strncpy(para->buf_addr,zresult[(0x898+4179-0x18eb)],para->buf_len-
+(0x671+2471-0x1017));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={
-(0x8ef+4536-0x1aa7)};char*strSQL=NULL;if(NULL==item||NULL==item_data){return
+(0x1958+2199-0x21ef)};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)||((0xb5d+6314-0x2407)==strcmp(
+sqlite3_free(strSQL);if((ZTE_WMS_DB_OK!=result)||((0x160+4720-0x13d0)==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[
-(0x20d+6046-0x192b)]={(0x1211+1156-0x1695)};snprintf(sql,sizeof(sql),
+(0x294+3444-0xf88)]={(0xb9b+2124-0x13e7)};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-
-(0x160b+474-0x17e4)]);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}int
+(0x231a+612-0x257d)]);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(
@@ -374,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=(0x25f+994-0x641);printf(
+);return WMS_CMD_FAILED;}}else{int i=(0x204+6898-0x1cf6);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=(0x7c+7317-0x1d11);i<g_zUfiSms_DelMsg.nv_count
-;i++){char sql[(0x239b+118-0x2391)]={(0xbd1+1601-0x1212)};snprintf(sql,sizeof(
-sql),
+,g_zUfiSms_DelMsg.nv_count);for(i=(0xa95+5687-0x20cc);i<g_zUfiSms_DelMsg.
+nv_count;i++){char sql[(0x412+810-0x6bc)]={(0x1029+679-0x12d0)};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(
@@ -386,38 +387,39 @@
,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[(0x1e15+38-0x1dbb)]={(0x925+5625-0x1f1e)};
-T_zUfiSms_BufInfo buf_info={(0x4af+2423-0xe26)};char str_index[
-(0x3d6+5988-0x1b38)*WMS_MESSAGE_LIST_MAX]={(0xdb0+6031-0x253f)};buf_info.
-buf_addr=str_index;buf_info.buf_len=sizeof(str_index);snprintf(sql,sizeof(sql),
+ptModifyTag,int is_cc){char sql[(0xd06+3373-0x19b3)]={(0x118b+3051-0x1d76)};
+T_zUfiSms_BufInfo buf_info={(0xea6+1963-0x1651)};char str_index[
+(0x31b+2364-0xc55)*WMS_MESSAGE_LIST_MAX]={(0xb6+8661-0x228b)};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((0x254+6677-0x1c68)==is_cc){int i=(0x7eb+852-0xb3f);int j
-=(0xf53+802-0x1275);int count=(0xd51+4480-0x1ed1);char**out_result=NULL;count=
-zUfiSms_SplitString(str_index,&out_result,((char)(0xdab+3735-0x1c07)));for(i=
-(0x1f3+8655-0x23c2);i<count;i++){if((0x15a1+1220-0x1a65)!=strcmp(out_result[i],
-"")){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->num_of_indices
-=j;free(out_result);}else{ptModifyTag->indices[(0x13e8+3118-0x2016)]=atoi(
-str_index);ptModifyTag->num_of_indices=(0x1b0c+1662-0x2189);}ptModifyTag->
-total_indices=ptModifyTag->num_of_indices;printf(
+);return ZUFI_FAIL;}if((0x19f7+970-0x1dc0)==is_cc){int i=(0x116+9558-0x266c);int
+ j=(0xdad+4057-0x1d86);int count=(0x189+1186-0x62b);char**out_result=NULL;count=
+zUfiSms_SplitString(str_index,&out_result,((char)(0xfdc+320-0x10e1)));for(i=
+(0x2bd+5599-0x189c);i<count;i++){if((0x751+6784-0x21d1)!=strcmp(out_result[i],""
+)){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->num_of_indices=j
+;free(out_result);}else{ptModifyTag->indices[(0xb84+6537-0x250d)]=atoi(str_index
+);ptModifyTag->num_of_indices=(0x74f+7130-0x2328);}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[(0xf2+1983-0x831)]={(0xe92+2955-0x1a1d)};int is_cc=(0x1379+4515-0x251c)
-;T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;snprintf(sql,sizeof(sql),
+char sql[(0x6ba+3296-0x131a)]={(0x2d1+5299-0x1784)};int is_cc=
+(0x1857+3683-0x26ba);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-(0x2fb+6989-0x1e47);}return is_cc;}int
+,ZTE_WMS_DB_SMS_TABLE);return-(0x12fd+3674-0x2156);}return is_cc;}int
zUfiSms_UpdateSmsTagInDb(unsigned long id,unsigned int tags){char sql[
-(0x1024+2065-0x17b5)]={(0x2d0+7930-0x21ca)};snprintf(sql,sizeof(sql),
+(0x8f8+3101-0x1495)]={(0x712+7731-0x2545)};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[
-(0x1071+4698-0x224b)]={(0x454+1388-0x9c0)};if(pTotalCount==NULL){return
+(0x1841+382-0x193f)]={(0x10b3+4601-0x22ac)};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,
@@ -427,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[(0x2305+250-0x237f)]={
-(0x16c8+210-0x179a)};snprintf(sql,sizeof(sql),
+result);}int zUfiSms_DeleteDraftSms(long iSmsId){char sql[(0xa7c+5797-0x20a1)]={
+(0x928+6633-0x2311)};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[(0x20f0+1319-0x2597)]={
-(0xbc2+207-0xc91)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0xfe0+5164-0x240c);}
+int zUfiSms_SetConcatMaxRefer(int ref){char sql[(0x96b+5203-0x1d3e)]={
+(0x20b+8021-0x2160)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0xdd4+6100-0x25a8);}
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[(0xadf+3892-0x1993)]={
-(0x1e04+100-0x1e68)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x597+2907-0x10f2);}
+;}int zUfiSms_SetMaxReference(int ref){char sql[(0x122d+2339-0x1ad0)]={
+(0x2189+189-0x2246)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x1dac+1323-0x22d7);}
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))
@@ -450,76 +452,76 @@
->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>=(0xe39+5805-0x24e5)&&fvarg!=NULL){if(zresult[(0x1375+3174-0x1fdb)]
+{if(columns>=(0x635+7605-0x23e9)&&fvarg!=NULL){if(zresult[(0x2082+1652-0x26f6)]
!=NULL){T_zUfiSms_ParaInfo*para=(T_zUfiSms_ParaInfo*)fvarg;strncpy(para->sca,
-zresult[(0xbb7+762-0xeb1)],sizeof(para->sca)-(0x1862+17-0x1872));para->mem_store
-=atoi(zresult[(0x41f+3171-0x1081)]);para->tp_validity_period=atoi(zresult[
-(0x180d+3207-0x2492)]);para->status_report_on=atoi(zresult[(0x440+5851-0x1b18)])
-;para->sendfail_retry_on=atoi(zresult[(0x55a+6289-0x1de7)]);para->
-outdate_delete_on=atoi(zresult[(0x626+6149-0x1e26)]);(void)strncpy(para->
-default_store,zresult[(0xd41+4834-0x201d)],sizeof(para->default_store)-
-(0x61f+2570-0x1028));return SQLITE_OK;}}return SQLITE_ERROR;}int
+zresult[(0x5+7750-0x1e4b)],sizeof(para->sca)-(0x399+3892-0x12cc));para->
+mem_store=atoi(zresult[(0x83+2739-0xb35)]);para->tp_validity_period=atoi(zresult
+[(0x983+6379-0x226c)]);para->status_report_on=atoi(zresult[(0x6b7+3142-0x12fa)])
+;para->sendfail_retry_on=atoi(zresult[(0x1f0+1818-0x906)]);para->
+outdate_delete_on=atoi(zresult[(0x2610+238-0x26f9)]);(void)strncpy(para->
+default_store,zresult[(0x14f5+2699-0x1f7a)],sizeof(para->default_store)-
+(0x196c+170-0x1a15));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,(0x7a2+756-0xa96)
-,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,
+(0x450+2988-0xffc),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>=(0xcd9+5667-0x22fb)
-&¶!=NULL)(void)strncpy(para->buf_addr,zresult[(0x1b1+3491-0xf54)],para->
-buf_len-(0x156c+4226-0x25ed));return(0x125b+3248-0x1f0b);}int
+T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;if(column>=(0xcb+4138-0x10f4)&&
+para!=NULL)(void)strncpy(para->buf_addr,zresult[(0x150+1667-0x7d3)],para->
+buf_len-(0x2ac+5385-0x17b4));return(0xf47+3049-0x1b30);}int
zUfiSms_GetSmsContent(char*pSmsBuf,int len){T_zUfiSms_BufInfo buf_info={
-(0x1f40+305-0x2071)};char*strSQL=
+(0x2179+467-0x234c)};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,(0xe28+1789-0x1525),len);return isSucess(
+len;memset(buf_info.buf_addr,(0x98b+7474-0x26bd),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=-(0xaad+2346-0x13d6);switch(
+char*sql=NULL;sqlite3_stmt*stmt=NULL;int id=-(0x12b3+3495-0x2059);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[(0x4c2+4658-0x16f4)],
-ptDbSaveData->concat_info[(0x21d0+1303-0x26e6)],pMemStore,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x726+5316-0x1bea)],
+ptDbSaveData->concat_info[(0x1905+937-0x1cad)],pMemStore,
WMS_TAG_TYPE_MO_SENT_V01,WMS_TAG_TYPE_MO_NOT_SENT_V01);break;}case
-(0xc83+4887-0x1f96):{sql=sqlite3_mprintf(
+(0x95b+5186-0x1d99):{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[(0x1d94+686-0x2042)],
-ptDbSaveData->concat_info[(0x75b+6380-0x2046)],pMemStore,(0xa19+3482-0x17af));
-break;}case WMS_TAG_TYPE_MT_READ_V01:case WMS_TAG_TYPE_MT_NOT_READ_V01:{sql=
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x1731+3065-0x232a)],
+ptDbSaveData->concat_info[(0x1c9+64-0x208)],pMemStore,(0xbc+9583-0x2627));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[(0x7a6+4828-0x1a82)],
-ptDbSaveData->concat_info[(0x919+6594-0x22da)],pMemStore,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0xdf4+4747-0x207f)],
+ptDbSaveData->concat_info[(0x103a+4576-0x2219)],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[(0x1188+3811-0x206b)],
-ptDbSaveData->concat_info[(0x39f+1088-0x7de)],pMemStore);at_print(LOG_ERR,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x125f+4390-0x2385)],
+ptDbSaveData->concat_info[(0x606+7927-0x24fc)],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,-(0xcdd+4947-0x202f),&stmt,
-(0xe36+3511-0x1bed))!=SQLITE_OK){at_print(LOG_ERR,
+sqlite3_prepare(g_zUfiSms_DbPointer,sql,-(0x44f+4919-0x1785),&stmt,
+(0x18cd+1253-0x1db2))!=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-(0xd20+204-0xdeb)
-;}while(SQLITE_ROW==sqlite3_step(stmt)){int j=(0xcd8+3180-0x1944);char**
-out_result=NULL;char*column_text=sqlite3_column_text(stmt,(0x425+60-0x461));int
-count=-(0x2407+516-0x260a);if(column_text!=NULL)count=zUfiSms_SplitString(
-column_text,&out_result,((char)(0xbcc+1198-0x103f)));for(j=(0x167+6427-0x1a82);j
-<count;j++){if((0xec2+747-0x11ad)==strcmp(out_result[j],"")){if(j+
-(0xc1b+6573-0x25c7)==ptDbSaveData->concat_info[(0x617+1033-0xa1e)]){id=
-sqlite3_column_int(stmt,(0x1b0a+462-0x1cd7));break;}}}if(out_result!=NULL){free(
-out_result);out_result=NULL;}if(-(0x172+1748-0x845)!=id){break;}}(void)
-sqlite3_finalize(stmt);sqlite3_free(sql);return id;}int
+,sqlite3_errmsg(g_zUfiSms_DbPointer));sqlite3_free(sql);return-
+(0x774+7307-0x23fe);}while(SQLITE_ROW==sqlite3_step(stmt)){int j=
+(0x1b62+213-0x1c37);char**out_result=NULL;char*column_text=sqlite3_column_text(
+stmt,(0x1f40+1023-0x233f));int count=-(0x269+3138-0xeaa);if(column_text!=NULL)
+count=zUfiSms_SplitString(column_text,&out_result,((char)(0x17ed+3329-0x24b3)));
+for(j=(0x16b6+1325-0x1be3);j<count;j++){if((0x14ba+1928-0x1c42)==strcmp(
+out_result[j],"")){if(j+(0x1b5+5498-0x172e)==ptDbSaveData->concat_info[
+(0xb5a+6156-0x2364)]){id=sqlite3_column_int(stmt,(0x14f+3472-0xede));break;}}}if
+(out_result!=NULL){free(out_result);out_result=NULL;}if(-(0x11b7+5328-0x2686)!=
+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>=(0x631+6944-0x2150)){if(zresult[
-(0xb82+6288-0x2412)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
-result->id[result->all_or_count]=atoi(zresult[(0xf1c+2579-0x192f)]);result->
+lname){if(fvarg!=NULL&&columns>=(0x50c+8707-0x270e)){if(zresult[
+(0x183c+2720-0x22dc)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
+result->id[result->all_or_count]=atoi(zresult[(0xc86+1681-0x1317)]);result->
all_or_count++;return SQLITE_OK;}}return SQLITE_ERROR;}VOID
zUfiSms_CheckDbOutdateSms(const char*pDbTable,T_zUfiSms_DelReq*pSmsDel){char
-acSql[(0x16b9+423-0x17e0)]={(0xd7+6415-0x19e6)};struct timeval tp;if(
-(0x1a09+449-0x1bca)!=gettimeofday(&tp,NULL)){printf(
+acSql[(0x70c+7365-0x2351)]={(0x1b6+8569-0x232f)};struct timeval tp;if(
+(0x384+5736-0x19ec)!=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"
@@ -529,21 +531,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>=(0xde7+613-0x104a)){if(zresult[
-(0xa14+4203-0x1a7f)]!=NULL&&zresult[(0x15f4+47-0x1622)]!=NULL){SMS_MSG_INFO*msg=
-(SMS_MSG_INFO*)fvarg;memset(msg->id,(0x2b7+250-0x3b1),sizeof(msg->id));memset(
-msg->total_seq,(0xd8b+5395-0x229e),sizeof(msg->total_seq));strncpy(msg->id,
-zresult[(0xa9+4961-0x140a)],sizeof(msg->id)-(0xa16+6006-0x218b));strncpy(msg->
-total_seq,zresult[(0x2e0+1564-0x8fb)],sizeof(msg->total_seq)-
-(0x1ae7+2537-0x24cf));printf(
+**lname){if(fvarg!=NULL&&column>=(0x1833+327-0x1978)){if(zresult[
+(0xb48+1143-0xfbf)]!=NULL&&zresult[(0x1094+1328-0x15c3)]!=NULL){SMS_MSG_INFO*msg
+=(SMS_MSG_INFO*)fvarg;memset(msg->id,(0x993+1728-0x1053),sizeof(msg->id));memset
+(msg->total_seq,(0x2070+1332-0x25a4),sizeof(msg->total_seq));strncpy(msg->id,
+zresult[(0x1efd+1504-0x24dd)],sizeof(msg->id)-(0xa86+3638-0x18bb));strncpy(msg->
+total_seq,zresult[(0xc77+4887-0x1f8d)],sizeof(msg->total_seq)-
+(0xdec+1348-0x132f));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[(0x1359+916-0x16ed)],
-ptDbSaveData->concat_info[(0x9a2+5547-0x1f4c)]);printf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x121b+1628-0x1877)],
+ptDbSaveData->concat_info[(0x1789+2942-0x2306)]);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 06c3473..146a01d 100755
--- a/ap/app/zte_comm/sms/src/sms_fnc.c
+++ b/ap/app/zte_comm/sms/src/sms_fnc.c
@@ -8,42 +8,43 @@
#include "sms_fnc.h"
#include "sms_db.h"
#include "sms_code.h"
-#define SMS_RETRY_COUNT (0x2001+394-0x2188)
-#define SHORT_INT_LEN (0x21f+5583-0x17e8)
+#define SMS_RETRY_COUNT (0x1155+4465-0x22c3)
+#define SHORT_INT_LEN (0x1007+5144-0x2419)
SMS_LOCATION g_zUfiSms_CurLocation=SMS_LOCATION_SIM;int
-g_zUfiSms_ConcatSmsReference=(0x46f+1119-0x8ce);T_zUfiSms_ParaInfo
+g_zUfiSms_ConcatSmsReference=(0x3d9+4358-0x14df);T_zUfiSms_ParaInfo
g_zUfiSms_CurSmsPara={"",WMS_STORAGE_TYPE_UIM_V01,
-ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0xc02+3670-0x1a58),(0x13e7+73-0x1430)
-,(0x1e96+743-0x217d),"\x6e\x76"};int g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;int
-g_zUfiSms_Dcs=(0x1172+3843-0x2075);unsigned long g_zUfiSms_StoreCapablity[
-ZTE_WMS_MEMORY_MAX]={(0x5f1+8151-0x2564),ZTE_WMS_DB_MSG_COUNT_MAX};
-T_zSms_SendSmsReq g_zUfiSms_FinalCmgsBuf;SMS_PARAM g_zUfiSms_SendingSms;UINT16
-g_zUfiSms_IsLanguageShift=(0xbac+710-0xe72);extern int g_zUfiSms_MsgRefer;extern
- T_zUfiSms_DelSms g_zUfiSms_DelMsg;extern T_zUfiSms_DelIndexInfo g_deleteIndex;
-extern T_zUfiSms_ModifyIndexInfo g_modifyIndex;extern T_zUfiSms_ModifySms
-g_zUfiSms_modifyMsg;extern UINT8 g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_MAX];
-extern int g_zUfiSms_ConcatTotalNum;extern T_zUfiSms_ConcatInfo
-g_zUfiSms_ConcatSms;extern T_zUfiSms_GroupInfo g_zUfiSms_GroupSms;extern int
-g_zUfiSms_UnitLen;extern UINT8 g_zUfiSms_IsConcatSendSuc;extern int
-g_zUfiSms_SendFailedCount;extern T_zUfiSms_DbStoreData g_zUfiSms_DbStoreData[
-ZTE_WMS_CONCAT_SMS_COUNT_MAX];extern int g_zUfiSms_SendFailedRetry;void
-zUfiSms_SetSmsLocation(SMS_LOCATION 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[
-(0x81b+7625-0x25b2)];int i=(0xd86+3245-0x1a33);g_zUfiSms_DelMsg.nv_count=
-(0x5ff+2996-0x11b3);g_zUfiSms_DelMsg.nv_index=(0xef6+4316-0x1fd2);
-g_zUfiSms_DelMsg.sim_count=(0x123f+3425-0x1fa0);g_zUfiSms_DelMsg.sim_index=
-(0x1e3d+128-0x1ebd);for(i=(0xf1b+5689-0x2554);i<ptDelMsg->all_or_count;i++){
-memset(acStorePos,(0xd93+467-0xf66),sizeof(acStorePos));if(ZUFI_FAIL==
-zUfiSms_GetStorePosById("Mem_Store",acStorePos,sizeof(acStorePos),ptDelMsg->id[i
-])){return ZUFI_FAIL;}if((0x10df+90-0x1139)==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(
-(0x194c+3036-0x2528)==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[]={
+ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0x1704+595-0x1957),
+(0x1770+704-0x1a30),(0xca1+1677-0x132e),"\x6e\x76"};int g_zUfiSms_Language=
+NOT_DEFINE_LANGUAGE;int g_zUfiSms_Dcs=(0x2b0+2933-0xe25);unsigned long
+g_zUfiSms_StoreCapablity[ZTE_WMS_MEMORY_MAX]={(0x1348+2657-0x1d45),
+ZTE_WMS_DB_MSG_COUNT_MAX};T_zSms_SendSmsReq g_zUfiSms_FinalCmgsBuf;SMS_PARAM
+g_zUfiSms_SendingSms;UINT16 g_zUfiSms_IsLanguageShift=(0x67f+1181-0xb1c);extern
+int g_zUfiSms_MsgRefer;extern T_zUfiSms_DelSms g_zUfiSms_DelMsg;extern
+T_zUfiSms_DelIndexInfo g_deleteIndex;extern T_zUfiSms_ModifyIndexInfo
+g_modifyIndex;extern T_zUfiSms_ModifySms g_zUfiSms_modifyMsg;extern UINT8
+g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_MAX];extern int g_zUfiSms_ConcatTotalNum;
+extern T_zUfiSms_ConcatInfo g_zUfiSms_ConcatSms;extern T_zUfiSms_GroupInfo
+g_zUfiSms_GroupSms;extern int g_zUfiSms_UnitLen;extern UINT8
+g_zUfiSms_IsConcatSendSuc;extern int g_zUfiSms_SendFailedCount;extern
+T_zUfiSms_DbStoreData g_zUfiSms_DbStoreData[ZTE_WMS_CONCAT_SMS_COUNT_MAX];extern
+ int g_zUfiSms_SendFailedRetry;void zUfiSms_SetSmsLocation(SMS_LOCATION
+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[(0xa25+4560-0x1bc3)];int i=
+(0x596+2491-0xf51);g_zUfiSms_DelMsg.nv_count=(0x1b85+1872-0x22d5);
+g_zUfiSms_DelMsg.nv_index=(0x2f4+6434-0x1c16);g_zUfiSms_DelMsg.sim_count=
+(0xae6+4737-0x1d67);g_zUfiSms_DelMsg.sim_index=(0xc27+5924-0x234b);for(i=
+(0x885+4230-0x190b);i<ptDelMsg->all_or_count;i++){memset(acStorePos,
+(0xe55+3719-0x1cdc),sizeof(acStorePos));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
+"Mem_Store",acStorePos,sizeof(acStorePos),ptDelMsg->id[i])){return ZUFI_FAIL;}if
+((0x738+229-0x81d)==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((0x5d2+5989-0x1d37)==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",
@@ -68,95 +69,96 @@
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(-
-(0x1c2+4443-0x131c)==access(ZTE_WMS_DB_DIR,F_OK)){printf(
+(0x15c+2204-0x9f7)==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(-(0x11b0+5447-0x26f6)==mkdir(ZTE_WMS_DB_DIR,
-(0xa20+5837-0x1eee))){printf(
+,ZTE_WMS_DB_DIR);if(-(0x237d+873-0x26e5)==mkdir(ZTE_WMS_DB_DIR,
+(0x16b3+42-0x14de))){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(-
-(0x1920+94-0x197d)==access(ZTE_WMS_DB_PATH,F_OK)){printf(
+(0x5c6+4875-0x18d0)==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=(0x769+7529-0x24d2);unsigned char mem_store_flag=
-(0x6c0+5233-0x1b31);unsigned int tp_validity_period=(0x11+3368-0xd39);char
-Temp_sms_vp[(0xe45+2018-0x161f)]={(0x567+1300-0xa7b)};CHAR reportEnable[
-(0x33b+7624-0x20d1)]={(0xb53+497-0xd44)};CHAR smsLocation[(0x62a+5840-0x1cc8)]={
-(0x921+1444-0xec5)};CHAR sendfailRetry[(0x7b6+1728-0xe44)]={(0x178d+1076-0x1bc1)
-};CHAR outdateDelete[(0xa16+7191-0x25fb)]={(0xb14+4082-0x1b06)};CHAR
-defaultStore[(0x20ea+1129-0x2521)]={(0x9c0+2957-0x154d)};sc_cfg_get(
-NV_REPORT_ENABLE,reportEnable,sizeof(reportEnable));sc_cfg_get(
+unsigned char sts_flag=(0x1119+2449-0x1aaa);unsigned char mem_store_flag=
+(0x359+7716-0x217d);unsigned int tp_validity_period=(0x1016+3526-0x1ddc);char
+Temp_sms_vp[(0x100+1928-0x880)]={(0xcc+707-0x38f)};CHAR reportEnable[
+(0x10ca+2242-0x195a)]={(0x25f+7235-0x1ea2)};CHAR smsLocation[(0x182b+778-0x1b03)
+]={(0xd59+2927-0x18c8)};CHAR sendfailRetry[(0x8a0+6914-0x2370)]={
+(0xfa3+5836-0x266f)};CHAR outdateDelete[(0x7ef+2741-0x1272)]={
+(0x6e6+3302-0x13cc)};CHAR defaultStore[(0x1183+2207-0x19f0)]={(0x5bb+1076-0x9ef)
+};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((0x719+5436-0x1c55)==
-strcmp(reportEnable,"\x31")){sts_flag=(0x1931+983-0x1d07);}g_zUfiSms_CurSmsPara.
-status_report_on=sts_flag;if((0x11b7+4501-0x234c)==strcmp(smsLocation,"\x4d\x45"
-)){mem_store_flag=(0x10cf+850-0x1421);}else{mem_store_flag=(0x4d1+7529-0x2239);}
-g_zUfiSms_CurSmsPara.mem_store=(unsigned int)((0x1719+3397-0x245e)==
-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=
-(0x151f+2244-0x1ce4);if((0x64f+5528-0x1be7)==strncmp(Temp_sms_vp,
-"\x6c\x6f\x6e\x67\x65\x73\x74",(0x14d3+3607-0x22e3))){tp_validity_period=
-(0xeb2+4822-0x2089);}if((0x1775+3630-0x25a3)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x5f\x64\x61\x79",(0x194c+2189-0x21d2))){tp_validity_period=
-(0x1394+4986-0x2667);}if((0x241+1834-0x96b)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x77\x65\x65\x6b",(0xde5+4626-0x1ff0))){tp_validity_period=
-(0x7a6+2055-0xf00);}if((0xda0+4252-0x1e3c)==strncmp(Temp_sms_vp,
-"\x74\x77\x65\x6c\x76\x65\x68",(0x11f+5558-0x16ce))){tp_validity_period=
-(0x1e8a+2287-0x26ea);}g_zUfiSms_CurSmsPara.tp_validity_period=tp_validity_period
-;if((0xa+4927-0x1349)==strcmp(sendfailRetry,"\x31")){g_zUfiSms_CurSmsPara.
-sendfail_retry_on=(0xe4b+5055-0x2209);}else{g_zUfiSms_CurSmsPara.
-sendfail_retry_on=(0xb7d+1170-0x100f);}if((0x822+3940-0x1786)==strcmp(
+NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if((0x2498+83-0x24eb)==
+strcmp(reportEnable,"\x31")){sts_flag=(0xb4a+525-0xd56);}g_zUfiSms_CurSmsPara.
+status_report_on=sts_flag;if((0x1741+869-0x1aa6)==strcmp(smsLocation,"\x4d\x45")
+){mem_store_flag=(0xe92+2745-0x194b);}else{mem_store_flag=(0x7d+1959-0x823);}
+g_zUfiSms_CurSmsPara.mem_store=(unsigned int)((0x85+7779-0x1ee8)==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=(0xc70+3571-0x1964);if(
+(0x43d+6785-0x1ebe)==strncmp(Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",
+(0x1cc+1319-0x6ec))){tp_validity_period=(0x47b+8995-0x269f);}if(
+(0x42a+1794-0xb2c)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x5f\x64\x61\x79",
+(0x470+1120-0x8c9))){tp_validity_period=(0x1304+729-0x1536);}if(
+(0xeb7+2126-0x1705)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x77\x65\x65\x6b",
+(0x1c5f+591-0x1ea7))){tp_validity_period=(0x4bc+8646-0x25d5);}if(
+(0xfd0+3735-0x1e67)==strncmp(Temp_sms_vp,"\x74\x77\x65\x6c\x76\x65\x68",
+(0x223b+101-0x2299))){tp_validity_period=(0x108a+5377-0x24fc);}
+g_zUfiSms_CurSmsPara.tp_validity_period=tp_validity_period;if(
+(0x677+5206-0x1acd)==strcmp(sendfailRetry,"\x31")){g_zUfiSms_CurSmsPara.
+sendfail_retry_on=(0x1566+2904-0x20bd);}else{g_zUfiSms_CurSmsPara.
+sendfail_retry_on=(0x1+6992-0x1b51);}if((0x101a+2929-0x1b8b)==strcmp(
outdateDelete,"\x31")){g_zUfiSms_CurSmsPara.outdate_delete_on=
-(0xc44+4784-0x1ef3);}else{g_zUfiSms_CurSmsPara.outdate_delete_on=
-(0x1d4+3117-0xe01);}if((0x14c2+337-0x1613)==strcmp(defaultStore,"\x73\x69\x6d"))
-{strncpy(g_zUfiSms_CurSmsPara.default_store,"\x73\x69\x6d",sizeof(
-g_zUfiSms_CurSmsPara.default_store)-(0x1809+2134-0x205e));}else{strncpy(
+(0x7e0+3107-0x1402);}else{g_zUfiSms_CurSmsPara.outdate_delete_on=
+(0x1f56+1612-0x25a2);}if((0x1db3+1592-0x23eb)==strcmp(defaultStore,
+"\x73\x69\x6d")){strncpy(g_zUfiSms_CurSmsPara.default_store,"\x73\x69\x6d",
+sizeof(g_zUfiSms_CurSmsPara.default_store)-(0x6f3+4273-0x17a3));}else{strncpy(
g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(g_zUfiSms_CurSmsPara.
-default_store)-(0x1095+5658-0x26ae));}}void zUfiSms_GetDefaultPara(void){memset(
-&g_zUfiSms_CurSmsPara,(0x207c+27-0x2097),sizeof(T_zUfiSms_ParaInfo));
-g_zUfiSms_CurSmsPara.status_report_on=(0x157c+1005-0x1969);g_zUfiSms_CurSmsPara.
+default_store)-(0x186f+1846-0x1fa4));}}void zUfiSms_GetDefaultPara(void){memset(
+&g_zUfiSms_CurSmsPara,(0x2175+458-0x233f),sizeof(T_zUfiSms_ParaInfo));
+g_zUfiSms_CurSmsPara.status_report_on=(0x23d7+696-0x268f);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
-=(0x1cd6+1267-0x21c9);g_zUfiSms_CurSmsPara.outdate_delete_on=(0x4f5+6633-0x1ede)
-;strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
-g_zUfiSms_CurSmsPara.default_store)-(0x315+147-0x3a7));}
-#if (0x3f5+66-0x437)
+=(0xb71+4540-0x1d2d);g_zUfiSms_CurSmsPara.outdate_delete_on=(0x9a+940-0x446);
+strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
+g_zUfiSms_CurSmsPara.default_store)-(0xddc+1530-0x13d5));}
+#if (0x1620+3427-0x2383)
T_zUfiSms_CmdStatus zUfiSms_SetParameters(T_zUfiSms_CmdMsgBuff*ptSmsBuffer){
T_zUfiSms_ParaInfo*ptSmsParameter=NULL;T_zUfiSms_ParaInfo tNewSmsParameter={
-(0x13b6+812-0x16e2)};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));
+(0x184a+2842-0x2364)};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)!=(0x230d+403-0x24a0)){if(ZUFI_SMS_FAILURE==
+if(strlen(ptSmsParameter->sca)!=(0x2e4+5739-0x194f)){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=(0x308+1783-0x9ff);if(ZUFI_SUCC!=
+int zUfiSms_LoadSmsPara(){int count=(0x3c0+2196-0xc54);if(ZUFI_SUCC!=
zUfiSms_IsDbEmpty(ZTE_WMS_DB_PARAMETER_TABLE,&count)){return ZUFI_FAIL;}if(count
-==(0x1382+3730-0x2214)){zUfiSms_GetDefaultCfgPara();if((0xc86+4307-0x1d59)!=
+==(0xf06+5899-0x2611)){zUfiSms_GetDefaultCfgPara();if((0x265+9110-0x25fb)!=
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((0x971+2490-0x132b)!=zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){
+();if((0x11bb+549-0x13e0)!=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=(0x225+8251-0x2260);if((ZTE_WMS_MEMORY_SIM==mem_store)||(
+int total_count=(0x342+5426-0x1874);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"
@@ -173,54 +175,55 @@
,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((0x58c+4895-0x18ab)==strcmp(
-mem_store,"\x53\x4d")){g_zUfiSms_CurSmsPara.mem_store=(unsigned int)
+int zUfiSms_SetStorePara(char*mem_store){if((0x1b3f+89-0x1b98)==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(
-(0x15a8+563-0x17db)==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((0x7bf+4653-0x19ec)==strcmp(mem_store,
-"\x53\x52")){g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0x811+165-0x8b4);(
-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,
+(0xe36+529-0x1047)==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((0xcc4+4229-0x1d49)==strcmp(mem_store,"\x53\x52")){
+g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0xbab+1310-0x10c7);(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)){
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;}int zUfiSms_SetScaPara(char*sca){strncpy(
-g_zUfiSms_CurSmsPara.sca,sca,sizeof(g_zUfiSms_CurSmsPara.sca)-(0x991+187-0xa4b))
-;if(ZUFI_FAIL==zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){at_print(LOG_ERR,
+g_zUfiSms_CurSmsPara.sca,sca,sizeof(g_zUfiSms_CurSmsPara.sca)-
+(0x30b+3783-0x11d1));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==(0x7b1+1450-0xd5a)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language
-=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0xb05+1668-0x1187)){g_zUfiSms_Dcs=DCS_USC;
-g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x9b6+6434-0x22d5)){
-g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;}else if(cDcs==
-(0x12c3+4639-0x24dd)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
+char cDcs){if(cDcs==(0x77f+6849-0x223f)){g_zUfiSms_Dcs=DCS_ASC;
+g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x56d+1082-0x9a5)){
+g_zUfiSms_Dcs=DCS_USC;g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==
+(0x15f2+2540-0x1fdb)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;
+}else if(cDcs==(0x4c+1705-0x6f0)){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=(0x150+8306-0x21c2);i<ptGroupSms
-->total_receiver;i++){strncpy(ptGroupSms->receivers[i],ptSendMsg->dest_num[i],
+total_receiver=ptSendMsg->receiver_count;for(i=(0x305+2913-0xe66);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=(0x62c+2012-0xe08);
+,i,ptGroupSms->receivers[i]);}ptGroupSms->current_receiver=(0x15a0+2866-0x20d2);
return ZUFI_SUCC;}int zUfiSms_FillConcatSms(T_zUfiSms_SendReq*pSendSrcMsg,
-T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0x1522+214-0x15f8);int
-iUnitlen=(0x128c+1530-0x1886);int iSegNo=(0xda2+1908-0x1516);unsigned char*
+T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0xad3+2162-0x1345);int
+iUnitlen=(0x1bf1+2572-0x25fd);int iSegNo=(0x3c8+7240-0x2010);unsigned char*
pSmsConverted=NULL;unsigned char acConvertContent[
ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*
-(0x1026+5477-0x2587)+(0x2151+856-0x24a5)]={(0x1964+2396-0x22c0)};unsigned char
+(0x1664+3881-0x2589)+(0xf39+3993-0x1ece)]={(0x54a+1762-0xc2c)};unsigned char
acTmpContent[ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*
-(0x3cd+7345-0x207a)+(0x850+2789-0x1331)]={(0x219+7371-0x1ee4)};int iTimeZone=
-(0x4fd+7226-0x2137);int tmp_i=(0x2208+284-0x2324);if(NULL==pSendSrcMsg||NULL==
-pDestConcatMsg){return-(0x1956+3350-0x266b);}iTotalLen=pSendSrcMsg->msg_len;if(
+(0x1f0f+1628-0x2567)+(0x874+7504-0x25c0)]={(0xd19+4559-0x1ee8)};int iTimeZone=
+(0x241b+629-0x2690);int tmp_i=(0x1d90+1421-0x231d);if(NULL==pSendSrcMsg||NULL==
+pDestConcatMsg){return-(0x10ff+4708-0x2362);}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-(0x4d8+2529-0xeb8);}printf(
+);return-(0xa5b+1688-0x10f2);}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,(0x7c8+6285-0x2055),sizeof(acTmpContent));if(
-DCS_USC==g_zUfiSms_Dcs){pSmsConverted=acConvertContent;}else{if(
+acTmpContent));memset(acTmpContent,(0x1921+1044-0x1d35),sizeof(acTmpContent));if
+(DCS_USC==g_zUfiSms_Dcs){pSmsConverted=acConvertContent;}else{if(
NOT_DEFINE_LANGUAGE==g_zUfiSms_Language){iTotalLen=
zUfiSms_ConvertAsciiToGsmDefault(acConvertContent,acTmpContent,pSendSrcMsg->
msg_len);}else if(DCS_GSM7_SPANISH==g_zUfiSms_Language){iTotalLen=
@@ -229,55 +232,56 @@
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)-(0x9dc+3640-0x1813))){
-iTotalLen=sizeof(acConvertContent)-(0x844+165-0x8e8);}pDestConcatMsg->sms_len=
-iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
-DCS_PORTUGUESE&&iTotalLen>(0x4f4+4793-0x1712))||((g_zUfiSms_Dcs==DCS_USC)&&
+=acTmpContent;}if(iTotalLen>(sizeof(acConvertContent)-(0x1cab+2356-0x25de))){
+iTotalLen=sizeof(acConvertContent)-(0x1923+2377-0x226b);}pDestConcatMsg->sms_len
+=iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
+DCS_PORTUGUESE&&iTotalLen>(0x505+4620-0x1676))||((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*
-(0xfe3+2903-0x1b38);}else{if(g_zUfiSms_Language==NOT_DEFINE_LANGUAGE||
+(0x24dc+537-0x26f3);}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>
-(0x1285+599-0x14dc)&&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=(0x2e3+3573-0x10d7);memcpy(pDestConcatMsg->
-msg_contents[(0x1eeb+1318-0x2411)],pSmsConverted,iTotalLen);printf(
+(0xe4a+19-0xe5d)&&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=(0x815+3014-0x13da);memcpy(pDestConcatMsg->
+msg_contents[(0x119f+2423-0x1b16)],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[(0x1083+2805-0x1b78)]);}
+,iUnitlen,pDestConcatMsg->msg_contents[(0xce8+1396-0x125c)]);}
g_zUfiSms_ConcatTotalNum=pDestConcatMsg->total_msg;pDestConcatMsg->
-current_sending=(0x706+7961-0x261f);memcpy(&(pDestConcatMsg->date),&(pSendSrcMsg
-->date),sizeof(T_zUfiSms_Date));tmp_i=atoi(pDestConcatMsg->date.timezone);if(
-tmp_i<INT_MIN+(0x177+1674-0x800)||tmp_i>INT_MAX-(0x39b+8221-0x23b7)){printf(
+current_sending=(0x199a+2177-0x221b);memcpy(&(pDestConcatMsg->date),&(
+pSendSrcMsg->date),sizeof(T_zUfiSms_Date));tmp_i=atoi(pDestConcatMsg->date.
+timezone);if(tmp_i<INT_MIN+(0x16d9+2084-0x1efc)||tmp_i>INT_MAX-
+(0x749+6028-0x1ed4)){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*(0x93b+7018-0x24a1);memset(
-pDestConcatMsg->date.timezone,(0x1e2+7905-0x20c3),sizeof(pDestConcatMsg->date.
-timezone));if(iTimeZone>(0x7c0+1926-0xf46)){snprintf(pDestConcatMsg->date.
+,tmp_i);return ZUFI_FAIL;}iTimeZone=tmp_i*(0x212+4259-0x12b1);memset(
+pDestConcatMsg->date.timezone,(0xd3d+6212-0x2581),sizeof(pDestConcatMsg->date.
+timezone));if(iTimeZone>(0x1e22+6-0x1e28)){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=
-(0x123a+3942-0x21a0);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
-user_data_header_present=TRUE;if((0x16a1+2038-0x1e97)==ptConcatSms->
+(0x31f+931-0x6c2);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
+user_data_header_present=TRUE;if((0x1604+858-0x195e)==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+(0xe40+6160-0x264f);ptSubmit->user_data.
+seq_num=ptConcatSms->current_sending+(0x37a+2288-0xc69);ptSubmit->user_data.
headers[iHeaderNum].u.concat_8.msg_ref=g_zUfiSms_ConcatSmsReference%
-(0x3b0+1526-0x8a7);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
-(0x9a0+6219-0x21ea);ptDbSaveData->concat_info[(0xe23+2025-0x160c)]=
+(0x170b+366-0x177a);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
+(0x14ac+1889-0x1c0c);ptDbSaveData->concat_info[(0x3e4+4152-0x141c)]=
g_zUfiSms_ConcatSmsReference;}int zUfiSms_MakeFinalCmgsBuf(){SMS_PARAM tSmsData;
-int iPduLength=(0x814+6620-0x21f0);int nSmscLength=(0x1401+1445-0x19a6);char
-Tempstrr[(0x8ac+5474-0x1e0c)]={(0x689+4943-0x19d8)};char Temp_sms_vp[
-(0x3dd+7001-0x1f2e)]={(0xcfa+4446-0x1e58)};char tmpBuf1[(0xcdb+2459-0x1673)]={
-(0xfd5+4406-0x210b)};char tmpBuf2[(0x1ea4+455-0x2065)]={(0x59+3021-0xc26)};CHAR
-smsCenter[(0x1cb+5240-0x1611)]={(0x142d+2858-0x1f57)};memset(&tSmsData,
-(0x10a5+1090-0x14e7),sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,
-(0x15a+9599-0x26d9),sizeof(T_zSms_SendSmsReq));if(CODE_GSM7==
-g_zUfiSms_SendingSms.TP_DCS){int i=(0x15f3+1399-0x1b6a);for(;i<
+int iPduLength=(0xe6a+3225-0x1b03);int nSmscLength=(0x1663+777-0x196c);char
+Tempstrr[(0xc38+3184-0x18a6)]={(0x1354+2070-0x1b6a)};char Temp_sms_vp[
+(0x10e7+2102-0x1915)]={(0xae6+6287-0x2375)};char tmpBuf1[(0x499+1345-0x9d7)]={
+(0x259+1262-0x747)};char tmpBuf2[(0x17c7+3496-0x2569)]={(0x514+4337-0x1605)};
+CHAR smsCenter[(0x82f+2159-0x106c)]={(0x565+7475-0x2298)};memset(&tSmsData,
+(0x1515+3544-0x22ed),sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,
+(0x284+9172-0x2658),sizeof(T_zSms_SendSmsReq));if(CODE_GSM7==
+g_zUfiSms_SendingSms.TP_DCS){int i=(0x30a+6460-0x1c46);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);
@@ -285,40 +289,40 @@
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(((0xb01+2786-0x15e3)==strncmp(
-Tempstrr,"\x31",(0xfd1+4252-0x206c)))&&(g_zUfiSms_ConcatSms.current_sending==
-g_zUfiSms_ConcatSms.total_msg-(0x28c+6169-0x1aa4))){tSmsData.TP_SRR=
-(0x156c+2610-0x1f9d);}else{tSmsData.TP_SRR=(0x200f+548-0x2233);}tSmsData.TP_UDHI
-=g_zUfiSms_SendingSms.TP_UDHI;tSmsData.TP_VP=(0x66f+6562-0x1f12);sc_cfg_get(
-NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));if((0x17c5+3708-0x2641)==strncmp(
-Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",(0x17d8+3501-0x257e))){tSmsData.TP_VP
-=(0x29f+9129-0x2549);}else if((0x3b+5973-0x1790)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x5f\x64\x61\x79",(0x443+7514-0x2196))){tSmsData.TP_VP=
-(0x1995+1539-0x1ef1);}else if((0x144d+2596-0x1e71)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x77\x65\x65\x6b",(0x18+3008-0xbd1))){tSmsData.TP_VP=
-(0x414+6652-0x1d63);}else if((0x1151+330-0x129b)==strncmp(Temp_sms_vp,
-"\x74\x77\x65\x6c\x76\x65\x68",(0x250+7245-0x1e96))){tSmsData.TP_VP=
-(0x7b0+310-0x857);}tSmsData.TP_PID=(0xbf3+3490-0x1995);
-#if (0xc1b+3025-0x17eb)
+(NV_REPORT_ENABLE,Tempstrr,sizeof(Tempstrr));if(((0x1328+134-0x13ae)==strncmp(
+Tempstrr,"\x31",(0x37f+7147-0x1f69)))&&(g_zUfiSms_ConcatSms.current_sending==
+g_zUfiSms_ConcatSms.total_msg-(0xe68+5346-0x2349))){tSmsData.TP_SRR=
+(0x3b9+6283-0x1c43);}else{tSmsData.TP_SRR=(0x167+3464-0xeef);}tSmsData.TP_UDHI=
+g_zUfiSms_SendingSms.TP_UDHI;tSmsData.TP_VP=(0xad3+232-0xabc);sc_cfg_get(
+NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));if((0x1a6+4329-0x128f)==strncmp(
+Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",(0x3e3+985-0x7b5))){tSmsData.TP_VP=
+(0x218+7296-0x1d99);}else if((0xac+5183-0x14eb)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x5f\x64\x61\x79",(0x135d+1761-0x1a37))){tSmsData.TP_VP=
+(0x9f1+6809-0x23e3);}else if((0x115c+3976-0x20e4)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x77\x65\x65\x6b",(0x1cdb+1036-0x20e0))){tSmsData.TP_VP=
+(0x94d+1267-0xd93);}else if((0xa72+3857-0x1983)==strncmp(Temp_sms_vp,
+"\x74\x77\x65\x6c\x76\x65\x68",(0x110d+1755-0x17e1))){tSmsData.TP_VP=
+(0x504+1826-0xb97);}tSmsData.TP_PID=(0x1449+4380-0x2565);
+#if (0x151c+126-0x1599)
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 (0x11c2+3312-0x1eb1)
+#if (0x14ab+1977-0x1c63)
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,(0x123c+2027-0x1a25));
+(void)String2Bytes(g_zUfiSms_FinalCmgsBuf.pdu,tmpBuf1,(0x6af+6924-0x21b9));
Bytes2String(tmpBuf1,tmpBuf2,strlen(tmpBuf1));nSmscLength=atoi(tmpBuf2);if(
-nSmscLength<(0x29a+2123-0xae5)||nSmscLength>INT_MAX-(0x1042+4005-0x1fe6)){
+nSmscLength<(0x647+3276-0x1313)||nSmscLength>INT_MAX-(0x6a7+7417-0x239f)){
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=(0x61c+7126-0x21f2);;}nSmscLength++;
-g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0xafa+2181-0x137d)-nSmscLength;
-#if (0xa10+3281-0x16e0)
+,nSmscLength);nSmscLength=(0x2e9+8276-0x233d);;}nSmscLength++;
+g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0x1fa5+899-0x2326)-nSmscLength;
+#if (0x3b8+2939-0xf32)
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(
@@ -328,51 +332,51 @@
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-(0x532+4249-0x15ca);}ptSubmit->
+ptGroupSms||NULL==ptDbSaveData){return-(0x677+3885-0x15a3);}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(((0x12cb+2197-0x1b5f)<ptConcatSms->
-total_msg)&&(ptConcatSms->current_sending+(0x4d+8438-0x2142)<ptConcatSms->
-total_msg)){ptSubmit->status_report_enabled=(0xd61+1842-0x1493);}ptSubmit->
+g_zUfiSms_CurSmsPara.status_report_on;if(((0x16a9+3479-0x243f)<ptConcatSms->
+total_msg)&&(ptConcatSms->current_sending+(0x70d+7364-0x23d0)<ptConcatSms->
+total_msg)){ptSubmit->status_report_enabled=(0xb8f+279-0xca6);}ptSubmit->
message_reference=g_zUfiSms_MsgRefer;ptSubmit->pid=WMS_PID_DEFAULT;ptSubmit->dcs
-.msg_class=(wms_message_class_e_type)(0xe06+6298-0x269c);ptSubmit->dcs.
-is_compressed=(0xd30+1362-0x1282);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)(0x7a3+6016-0x1f1f);ptSubmit->dcs.
+is_compressed=(0x1254+3358-0x1f72);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=
-(0x1159+490-0x1343);if(ptConcatSms->total_msg>(0xc62+1431-0x11f8)){
+(0x13b+614-0x3a1);if(ptConcatSms->total_msg>(0xfe2+5498-0x255b)){
zUfiSms_FillDateheader(ptSubmit,ptConcatSms,ptDbSaveData);ptDbSaveData->
-concat_info[(0x1c8c+1793-0x238b)]=ptConcatSms->current_sending+
-(0x13ab+994-0x178c);ptDbSaveData->concat_info[(0x3b6+1527-0x9ac)]=ptConcatSms->
-total_msg;}if(g_zUfiSms_Language==DCS_PORTUGUESE){UINT8 i=ptSubmit->user_data.
+concat_info[(0x1bc6+1911-0x233b)]=ptConcatSms->current_sending+
+(0xbff+2190-0x148c);ptDbSaveData->concat_info[(0x19e0+1336-0x1f17)]=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][(0x1e7+8737-0x2408)]==((char)(0x43c+1916-0xb8d))){
-(void)zUfiSms_CharToInt(ptGroupSms->receivers[ptGroupSms->current_receiver]+
-(0x14f6+1463-0x1aac),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])
--(0xe66+5673-0x248e),ptSubmit->address.digits);ptSubmit->address.number_type=
+ptGroupSms->current_receiver][(0x1cac+1730-0x236e)]==((char)(0xdd0+6140-0x25a1))
+){(void)zUfiSms_CharToInt(ptGroupSms->receivers[ptGroupSms->current_receiver]+
+(0xc2b+2947-0x17ad),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])-
+(0x19a+3356-0xeb5),ptSubmit->address.digits);ptSubmit->address.number_type=
WMS_NUMBER_INTERNATIONAL;ptSubmit->address.number_of_digits=strlen(ptGroupSms->
-receivers[ptGroupSms->current_receiver])-(0x55a+7063-0x20f0);}else if(ptGroupSms
-->receivers[ptGroupSms->current_receiver][(0xf70+1147-0x13eb)]==
-((char)(0x616+4452-0x174a))&&ptGroupSms->receivers[ptGroupSms->current_receiver]
-[(0x26f+5488-0x17de)]==((char)(0x572+772-0x846))){(void)zUfiSms_CharToInt(
-ptGroupSms->receivers[ptGroupSms->current_receiver]+(0x764+703-0xa21),strlen(
-ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x15fd+2638-0x2049),
+receivers[ptGroupSms->current_receiver])-(0xdf+8504-0x2216);}else if(ptGroupSms
+->receivers[ptGroupSms->current_receiver][(0x620+2685-0x109d)]==
+((char)(0x44b+422-0x5c1))&&ptGroupSms->receivers[ptGroupSms->current_receiver][
+(0x4b8+3773-0x1374)]==((char)(0x80a+3755-0x1685))){(void)zUfiSms_CharToInt(
+ptGroupSms->receivers[ptGroupSms->current_receiver]+(0x121+2736-0xbcf),strlen(
+ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x179f+1086-0x1bdb),
ptSubmit->address.digits);ptSubmit->address.number_type=WMS_NUMBER_INTERNATIONAL
;ptSubmit->address.number_of_digits=strlen(ptGroupSms->receivers[ptGroupSms->
-current_receiver])-(0x20c8+766-0x23c4);}else{(void)zUfiSms_CharToInt(ptGroupSms
+current_receiver])-(0x533+2928-0x10a1);}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)(0xe59+2227-0x170c);ptSubmit->address.
-number_mode=(wms_number_mode_e_type)(0xbba+368-0xd2a);ptSubmit->address.
+digit_mode=(wms_digit_mode_e_type)(0xd0a+4794-0x1fc4);ptSubmit->address.
+number_mode=(wms_number_mode_e_type)(0xf42+4171-0x1f8d);ptSubmit->address.
number_plan=WMS_NUMBER_PLAN_TELEPHONY;memset(&g_zUfiSms_SendingSms,
-(0x12e3+4097-0x22e4),sizeof(SMS_PARAM));snprintf(g_zUfiSms_SendingSms.TPA,sizeof
+(0x1044+3341-0x1d51),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){
@@ -382,36 +386,36 @@
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]={
-(0x65+9664-0x2625)};int i=(0x1651+456-0x1819);if(NULL==ptClientMsg){return;}
+(0x211+894-0x58f)};int i=(0x549+3831-0x1440);if(NULL==ptClientMsg){return;}
memcpy((void*)sca,(void*)(g_zUfiSms_CurSmsPara.sca),sizeof(g_zUfiSms_CurSmsPara.
-sca));if(sca[(0xe16+4668-0x2052)]==((char)(0x77+4714-0x12b6))){ptClientMsg->u.
+sca));if(sca[(0x818+5517-0x1da5)]==((char)(0x1560+2051-0x1d38))){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[(0x5f3+4567-0x17ca)]==
-((char)(0x179+4687-0x139d))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits--;for(i=(0x111f+4975-0x248e);i<ptClientMsg->u.gw_message.
-sc_address.number_of_digits;i++){sca[i]=sca[i+(0xf33+5879-0x2629)];}}else if(sca
-[(0x1ed+3746-0x108f)]==((char)(0xce7+2623-0x16f6))&&sca[(0x1c69+410-0x1e02)]==
-((char)(0xd0d+1708-0x1389))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits-=(0x1c12+2281-0x24f9);for(i=(0x23c3+539-0x25de);i<ptClientMsg->
-u.gw_message.sc_address.number_of_digits;i++){sca[i]=sca[i+(0x16dc+2356-0x200e)]
-;}}(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
- iSmsLen,T_zUfiSms_DbStoreData*ptDbSaveData){if(NULL==ptClientMsg||NULL==
-ptClientData||NULL==ptConcatSms||NULL==ptGroupSms||NULL==ptDbSaveData){at_print(
-LOG_ERR,"\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73" "\n");return;
-}ptDbSaveData->mem_store=ptClientMsg->msg_hdr.mem_store;ptDbSaveData->index=
+sc_address.number_of_digits=strlen(sca);if(sca[(0xc3d+4824-0x1f15)]==
+((char)(0x16af+3046-0x226a))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits--;for(i=(0x1785+1836-0x1eb1);i<ptClientMsg->u.gw_message.
+sc_address.number_of_digits;i++){sca[i]=sca[i+(0xfd4+1637-0x1638)];}}else if(sca
+[(0x1e31+927-0x21d0)]==((char)(0x601+568-0x809))&&sca[(0xab6+7038-0x2633)]==
+((char)(0x40b+825-0x714))){ptClientMsg->u.gw_message.sc_address.number_of_digits
+-=(0x1098+1566-0x16b4);for(i=(0x9cc+6512-0x233c);i<ptClientMsg->u.gw_message.
+sc_address.number_of_digits;i++){sca[i]=sca[i+(0x1db+7394-0x1ebb)];}}(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 iSmsLen,
+T_zUfiSms_DbStoreData*ptDbSaveData){if(NULL==ptClientMsg||NULL==ptClientData||
+NULL==ptConcatSms||NULL==ptGroupSms||NULL==ptDbSaveData){at_print(LOG_ERR,
+"\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73" "\n");return;}
+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,
-(0x1cf6+1242-0x21d0),ZTE_WMS_ADDRESS_LEN_MAX+(0xc77+4066-0x1c58));memcpy(
+(0x154+1048-0x56c),ZTE_WMS_ADDRESS_LEN_MAX+(0x1180+2916-0x1ce3));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,(0x1519+1699-0x1bbc),sizeof(ptDbSaveData->sms_content));if(
+sms_content,(0x5e0+2769-0x10b1),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
@@ -422,7 +426,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,(0x79b+3427-0x14fe),sizeof(
+is_broadcast=FALSE;memset((void*)&tClientTsData,(0x1749+475-0x1924),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
@@ -431,95 +435,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=(0xf6c+5834-0x2636);pContent=(char*
-)malloc((0xf69+5646-0x2573)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent==
-NULL){return ZUFI_FAIL;}memset(pContent,(0x207f+683-0x232a),(0x4d6+1181-0x96f)*
-ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(WMS_GW_ALPHABET_7_BIT_DEFAULT==
-ptDbSaveData->alphabet){static char data[(0xd61+5244-0x21d9)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x954+4907-0x1c7e)]={(0x1522+962-0x18e4)};
-memset(data,(0xe14+4641-0x2035),(0x125f+3724-0x20e7)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x9cd+5711-0x201b));(void)zUfiSms_DecodeContent
+ZUFI_SUCC;char*pContent=NULL;int iTotalCount=(0x22+1741-0x6ef);pContent=(char*)
+malloc((0x1e92+1762-0x2570)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent==
+NULL){return ZUFI_FAIL;}memset(pContent,(0x708+3780-0x15cc),(0x1094+1494-0x1666)
+*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(WMS_GW_ALPHABET_7_BIT_DEFAULT==
+ptDbSaveData->alphabet){static char data[(0x8ad+1742-0xf77)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x1059+660-0x12ec)]={(0x669+4379-0x1784)};
+memset(data,(0x392+5804-0x1a3e),(0x929+1971-0x10d8)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x1ad+4417-0x12ed));(void)zUfiSms_DecodeContent
((char*)ptDbSaveData->sms_content,strlen(ptDbSaveData->sms_content),FALSE,data);
-strncpy(pContent,data,(0x124+6883-0x1c03)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-
-(0x159c+1283-0x1a9e));}else{strncpy(pContent,ptDbSaveData->sms_content,
-(0xb60+6668-0x2568)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x6b+5971-0x17bd));}
-ptDbSaveData->tp_dcs=(unsigned char)(0xb6+745-0x39d);if(-(0x6bb+8040-0x2622)==
+strncpy(pContent,data,(0x9fa+5223-0x1e5d)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-
+(0x1dc7+830-0x2104));}else{strncpy(pContent,ptDbSaveData->sms_content,
+(0x31a+6839-0x1dcd)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x1225+5303-0x26db));
+}ptDbSaveData->tp_dcs=(unsigned char)(0x8+4070-0xfec);if(-(0x32f+2066-0xb40)==
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-(0x1b15+290-0x1c36);}if(ZUFI_FAIL==zUfiSms_InsertNormalSmsToDb(
+;return-(0x178+8869-0x241c);}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=(0xc1+6851-0x1b84);for(i=(0x139+1372-0x695);i<count;i++){if(
-ptDbSaveData->concat_info[(0x3c1+5057-0x1780)]==i+(0xae4+4291-0x1ba6)){free(
-out_result[i]);out_result[i]=NULL;break;}}return(0x1472+3086-0x2080);}int
+out_result){int i=(0x14d9+3264-0x2199);for(i=(0x158+6090-0x1922);i<count;i++){if
+(ptDbSaveData->concat_info[(0x2d+1260-0x517)]==i+(0x16ba+1652-0x1d2d)){free(
+out_result[i]);out_result[i]=NULL;break;}}return(0x99+8899-0x235c);}int
zUfiSms_AddNewSmsToConcatData(T_zUfiSms_DbStoreData*ptDbSaveData,char*
pOldContent,char*pFormatNewContent,char*pRealNewContent,T_zUfiSms_DbStoreStr*pac
-,int*pConcatTotalNum,int len){int count=(0xc19+3267-0x18dc);char**out_result=
-NULL;char cSegChar=((char)(0x16f1+1760-0x1d96));int i=(0x9bc+373-0xb31);int
-iTotalSegNum=(0xa98+4705-0x1cf9);char acContentSeg[(0xb12+4939-0x1e5b)*
+,int*pConcatTotalNum,int len){int count=(0x12c1+98-0x1323);char**out_result=NULL
+;char cSegChar=((char)(0x1746+2295-0x2002));int i=(0x273+5188-0x16b7);int
+iTotalSegNum=(0x1959+2522-0x2333);char acContentSeg[(0x2410+532-0x2622)*
ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX*ZTE_WMS_SMS_COUNT_MAX]={
-(0x19f6+2826-0x2500)};char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==
-pOldContent){return-(0x538+3031-0x110e);}count=zUfiSms_SplitString(pOldContent,&
-out_result,cSegChar);for(i=(0x39f+3883-0x12ca);i<count;i++){if(ptDbSaveData->
-concat_info[(0xccf+5083-0x20a8)]==i+(0x894+4255-0x1932)){out_result[i]=(char*)
+(0x1479+1703-0x1b20)};char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==
+pOldContent){return-(0xf55+589-0x11a1);}count=zUfiSms_SplitString(pOldContent,&
+out_result,cSegChar);for(i=(0xd6b+5525-0x2300);i<count;i++){if(ptDbSaveData->
+concat_info[(0x1328+2893-0x1e73)]==i+(0x565+61-0x5a1)){out_result[i]=(char*)
malloc(sizeof(ptDbSaveData->sms_content));memset(out_result[i],
-(0x1b17+531-0x1d2a),sizeof(ptDbSaveData->sms_content));if(
+(0x574+1407-0xaf3),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)-(0x1452+3200-0x20d1));}break;}}for(i=
-(0x184a+1219-0x1d0d);i<count;i++){snprintf(acContentSeg+strlen(acContentSeg),
+sizeof(ptDbSaveData->sms_content)-(0x11d+1970-0x8ce));}break;}}for(i=
+(0x141b+424-0x15c3);i<count;i++){snprintf(acContentSeg+strlen(acContentSeg),
sizeof(acContentSeg)-strlen(acContentSeg),"\x25\x73",out_result[i]);strcat(
-pFormatNewContent,out_result[i]);if(i!=count-(0xb25+4076-0x1b10)){strcat(
+pFormatNewContent,out_result[i]);if(i!=count-(0x118f+1468-0x174a)){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=(0x221+6657-0x1c22);i<count;i++){if(ptDbSaveData->concat_info[
-(0x8a3+2480-0x1251)]==i+(0x4ca+442-0x683)){out_result[i]=(char*)malloc(
-SHORT_INT_LEN);memset(out_result[i],(0x1e86+1093-0x22cb),SHORT_INT_LEN);snprintf
-(out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->index);break;}}for(i=
-(0x11cb+5033-0x2574);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd)
-,sizeof(pac->FormatInd)-strlen(pac->FormatInd),"\x25\x73",out_result[i]);if(i!=
-count-(0x145d+4607-0x265b)){snprintf(pac->FormatInd+strlen(pac->FormatInd),
-sizeof(pac->FormatInd)-strlen(pac->FormatInd),"\x3b");}}zUfiSms_ConcatDataFree(
+i=(0xb00+5646-0x210e);i<count;i++){if(ptDbSaveData->concat_info[
+(0x4c9+2107-0xd02)]==i+(0x774+5684-0x1da7)){out_result[i]=(char*)malloc(
+SHORT_INT_LEN);memset(out_result[i],(0xf7b+4923-0x22b6),SHORT_INT_LEN);snprintf(
+out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->index);break;}}for(i=
+(0x4c+3887-0xf7b);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd),
+sizeof(pac->FormatInd)-strlen(pac->FormatInd),"\x25\x73",out_result[i]);if(i!=
+count-(0x24f+6113-0x1a2f)){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=(0x7f+3285-0xd54);i
-<count;i++){if(ptDbSaveData->concat_info[(0x16a1+3311-0x238e)]==i+
-(0x351+6357-0x1c25)){out_result[i]=(char*)malloc(SHORT_INT_LEN);memset(
-out_result[i],(0x23fd+750-0x26eb),SHORT_INT_LEN);snprintf(out_result[i],
-SHORT_INT_LEN,"\x25\x64",ptDbSaveData->concat_info[(0x10a9+410-0x1241)]);break;}
-}for(i=(0x187c+2939-0x23f7);i<count;i++){snprintf(pac->FormatSeq+strlen(pac->
+zUfiSms_SplitString(pac->Seg_Seq,&out_result,cSegChar);for(i=(0x7d7+7553-0x2558)
+;i<count;i++){if(ptDbSaveData->concat_info[(0x788+1135-0xbf5)]==i+
+(0xf90+3669-0x1de4)){out_result[i]=(char*)malloc(SHORT_INT_LEN);memset(
+out_result[i],(0x21ad+165-0x2252),SHORT_INT_LEN);snprintf(out_result[i],
+SHORT_INT_LEN,"\x25\x64",ptDbSaveData->concat_info[(0x1c6+4141-0x11f1)]);break;}
+}for(i=(0x198+2959-0xd27);i<count;i++){snprintf(pac->FormatSeq+strlen(pac->
FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x25\x73",out_result[i
-]);if(i!=count-(0x42+6860-0x1b0d)){snprintf(pac->FormatSeq+strlen(pac->FormatSeq
-),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x3b");}if((0x20f7+376-0x226f)
-!=strcmp(out_result[i],"")){iTotalSegNum++;}}*pConcatTotalNum=iTotalSegNum;
-zUfiSms_ConcatDataFree(ptDbSaveData,count,out_result);free(out_result);
-out_result=NULL;return(0x1dbb+857-0x2114);}int zUfiSms_UpdateConcatSms(
-T_zUfiSms_DbStoreData*ptDbSaveData,const char*pStorePos,long iSmsId){
-T_zUfiSms_DbStoreStr ac={(0xb59+3098-0x1773)};char*pOldContent=NULL;char*
-pFormatNewContent=NULL;char*pRealNewContent=NULL;int iTotalNum=
-(0xe9b+6179-0x26be);int result=ZUFI_SUCC;int spaceLen=(0x10bc+4801-0x2379)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xeaf+2873-0x19e4)
+]);if(i!=count-(0x11c3+3748-0x2066)){snprintf(pac->FormatSeq+strlen(pac->
+FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x3b");}if(
+(0x972+5407-0x1e91)!=strcmp(out_result[i],"")){iTotalSegNum++;}}*pConcatTotalNum
+=iTotalSegNum;zUfiSms_ConcatDataFree(ptDbSaveData,count,out_result);free(
+out_result);out_result=NULL;return(0x1f8d+798-0x22ab);}int
+zUfiSms_UpdateConcatSms(T_zUfiSms_DbStoreData*ptDbSaveData,const char*pStorePos,
+long iSmsId){T_zUfiSms_DbStoreStr ac={(0x1fac+1644-0x2618)};char*pOldContent=
+NULL;char*pFormatNewContent=NULL;char*pRealNewContent=NULL;int iTotalNum=
+(0x2319+851-0x266c);int result=ZUFI_SUCC;int spaceLen=(0x8b4+7547-0x262b)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x8fa+4334-0x19e4)
;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,(0x1bcf+1596-0x220b),
-spaceLen);memset(pOldContent,(0x1d5b+1790-0x2459),spaceLen);memset(
-pFormatNewContent,(0x683+7416-0x237b),spaceLen);(void)zUfiSms_GetConcatInfo(
+pRealNewContent);return ZUFI_FAIL;}memset(pRealNewContent,(0x1279+2370-0x1bbb),
+spaceLen);memset(pOldContent,(0x2f+5655-0x1646),spaceLen);memset(
+pFormatNewContent,(0x44b+1831-0xb72),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(-(0x5f+4281-0x1117)==
+,ac.IndStr,ac.Seg_Seq,ac.FormatInd,ac.FormatSeq);if(-(0xc83+3313-0x1973)==
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=
-(0x116a+223-0x1247);if(ZUFI_FAIL==zUfiSms_UpdateConcatSmsToDb(ptDbSaveData,
+(0xfdf+2563-0x19e0);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"
@@ -528,32 +532,32 @@
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={(0xf74+1814-0x168a)};int
-iSms_TotalCount=(0x1f79+735-0x2258);int i=(0x11c1+166-0x1267);char acTmpContent[
-(0x9c8+6777-0x2341)];int iConcatNum=(0x53d+1371-0xa98);char*pFormatConcat=NULL;
-char*pContent=NULL;int spaceLen=(0x2047+1664-0x26c3)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xa80+461-0xc49);
-if(NULL==ptDbSaveData||NULL==pStorePos){return ZUFI_FAIL;}printf(
+const char*pStorePos){T_zUfiSms_DbStoreStr ac={(0xa33+2669-0x14a0)};int
+iSms_TotalCount=(0x6a7+6455-0x1fde);int i=(0xb0b+2755-0x15ce);char acTmpContent[
+(0x1596+4165-0x24db)];int iConcatNum=(0x6c3+6038-0x1e59);char*pFormatConcat=NULL
+;char*pContent=NULL;int spaceLen=(0x722+3102-0x133c)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x3e6+6509-0x1d4f)
+;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,(0x3ab+8209-0x23bc),sizeof(acTmpContent));iSms_TotalCount=
-ptDbSaveData->concat_info[(0x356+3616-0x1175)];for(i=(0xddf+4299-0x1ea9);i<
+);memset(acTmpContent,(0x354+8052-0x22c8),sizeof(acTmpContent));iSms_TotalCount=
+ptDbSaveData->concat_info[(0x101b+2478-0x19c8)];for(i=(0xf03+1626-0x155c);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,(0x6c0+4763-0x195b),
+pFormatConcat){return ZUFI_FAIL;}memset(pFormatConcat,(0x1232+208-0x1302),
spaceLen);pContent=(char*)malloc(spaceLen);if(pContent==NULL){free(pFormatConcat
-);return ZUFI_FAIL;}memset(pContent,(0x1118+1570-0x173a),spaceLen);if(-
-(0x1c6c+72-0x1cb3)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
+);return ZUFI_FAIL;}memset(pContent,(0x12ff+997-0x16e4),spaceLen);if(-
+(0x179a+614-0x19ff)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
pFormatConcat,pContent,&ac,&iConcatNum,spaceLen)){free(pFormatConcat);free(
pContent);pFormatConcat=NULL;pContent=NULL;return ZUFI_FAIL;}ptDbSaveData->
-tp_dcs=(0x1ad2+991-0x1eaf);if(ZUFI_FAIL==zUfiSms_InsertConcatSmsToDb(
+tp_dcs=(0x535+4505-0x16cc);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=(0x1827+3094-0x243d);int total_count=
-(0x9c1+7435-0x26cc);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
-iSmsId=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,pMemStore);if(-(0x834+338-0x985)
+ptDbSaveData,char*pMemStore){long iSmsId=(0x7f3+6846-0x22b1);int total_count=
+(0x248+7557-0x1fcd);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
+iSmsId=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,pMemStore);if(-(0xafc+109-0xb68)
!=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(
@@ -566,184 +570,184 @@
"\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[(0x764+4772-0x19fe)];int iTotalCount=
-(0x238+1746-0x90a);int id=(0xe37+833-0x1178);UINT8 needCheckMemory=
-(0x2019+1364-0x256c);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(
-acDbMemStore,(0x1bb+707-0x47e),sizeof(acDbMemStore));if(WMS_STORAGE_TYPE_UIM_V01
-==iMemStore){strncpy(acDbMemStore,ZTE_WMS_DB_SIM_TABLE,sizeof(acDbMemStore)-
-(0xa05+6492-0x2360));}else{strncpy(acDbMemStore,ZTE_WMS_DB_NV_TABLE,sizeof(
-acDbMemStore)-(0x2a+1437-0x5c6));}if((0xcd7+3375-0x1a05)==ptDbSaveData->
+iMemStore,long iSmsId){char acDbMemStore[(0xe87+191-0xf3c)];int iTotalCount=
+(0xe34+3021-0x1a01);int id=(0x1a2+5589-0x1777);UINT8 needCheckMemory=
+(0x6c9+2005-0xe9d);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(acDbMemStore,
+(0x17fb+1353-0x1d44),sizeof(acDbMemStore));if(WMS_STORAGE_TYPE_UIM_V01==
+iMemStore){strncpy(acDbMemStore,ZTE_WMS_DB_SIM_TABLE,sizeof(acDbMemStore)-
+(0x1cc4+777-0x1fcc));}else{strncpy(acDbMemStore,ZTE_WMS_DB_NV_TABLE,sizeof(
+acDbMemStore)-(0x496+6488-0x1ded));}if((0x13cd+2378-0x1d16)==ptDbSaveData->
concat_sms){id=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,&acDbMemStore);if(-
-(0xee4+3737-0x1d7c)!=id){needCheckMemory=(0x372+4870-0x1678);}}if(
-needCheckMemory==(0x412+6045-0x1bae)){if(ZUFI_FAIL==zUfiSms_GetTotalCount(
-acDbMemStore,&iTotalCount)){return ZUFI_FAIL;}printf(
+(0x487+7041-0x2007)!=id){needCheckMemory=(0x17cd+23-0x17e4);}}if(needCheckMemory
+==(0xe8d+2900-0x19e0)){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[
-(0x1d65+1404-0x22df)]==(0x1654+1970-0x1e06)||ptDbSaveData->concat_info[
-(0xd3d+3186-0x19ad)]>ptDbSaveData->concat_info[(0x8a3+65-0x8e3)]){ptDbSaveData->
-concat_sms=(0x2e4+9028-0x2628);}printf(
+(0xc27+5125-0x202a)]==(0x3af+993-0x790)||ptDbSaveData->concat_info[
+(0x9+5442-0x1549)]>ptDbSaveData->concat_info[(0x467+944-0x816)]){ptDbSaveData->
+concat_sms=(0xdcd+2073-0x15e6);}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[
-(0x629+5538-0x1bca)]);if((0x20d9+1483-0x26a3)==ptDbSaveData->concat_sms){if(
-ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0xdf7+3149-0x1a43)]){
+(0x8c9+5591-0x1e9f)]);if((0x1ac4+747-0x1dae)==ptDbSaveData->concat_sms){if(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0x978+2122-0x11c1)]){
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=(0x266+3932-0x11c2);if(NULL==ptDbSaveData){
+ptDbSaveData,int cid){int atRes=(0xaf1+7138-0x26d3);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,-(0x14bf+4349-0x25bb))){g_zUfiSms_MsgRefer++;
-ptDbSaveData->msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(
-g_zUfiSms_MsgRefer);}}else{CHAR sendfailRetry[(0x16a7+1170-0x1b07)]={
-(0xca+4590-0x12b8)};sc_cfg_get(NV_SENDFAIL_RETRY,sendfailRetry,sizeof(
-sendfailRetry));if((0xdeb+4517-0x1f90)==strcmp("\x31",sendfailRetry)){
-g_zUfiSms_SendFailedRetry=(0x4e7+8231-0x250b);}atRes=zSms_SendCmgsReq();if(atRes
-!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{zSms_RecvCmgsOk();}}return
-WMS_CMD_SUCCESS;}int zUfiSms_SendConcatSms(int cid){int atRes=
-(0xc2b+4962-0x1f8d);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,
-(0x1458+303-0x1587),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,
-(0xb4d+2520-0x1525),sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&
-tDbSaveData);if(!g_zUfiSms_IsConcatSendSuc){tDbSaveData.tag=
+WMS_STORAGE_TYPE_NV_V01,-(0x99f+316-0xada))){g_zUfiSms_MsgRefer++;ptDbSaveData->
+msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}}
+else{CHAR sendfailRetry[(0x101a+1231-0x14b7)]={(0x78d+2049-0xf8e)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x268+2016-0xa48)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0xf64+4723-0x21d4);}
+atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{
+zSms_RecvCmgsOk();}}return WMS_CMD_SUCCESS;}int zUfiSms_SendConcatSms(int cid){
+int atRes=(0x33a+2996-0xeee);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,(0xbad+2229-0x1462),sizeof(T_zUfiSms_ClientMsg));memset((void*)&
+tDbSaveData,(0x7b5+7357-0x2472),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,-(0x13f7+1601-0x1a37));g_zUfiSms_SendFailedCount++;}else
-{CHAR sendfailRetry[(0x1aa2+1469-0x202d)]={(0x286+9193-0x266f)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x206+7608-0x1fbe)==
-strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x265a+128-0x26d7);}
+WMS_STORAGE_TYPE_NV_V01,-(0x14da+362-0x1643));g_zUfiSms_SendFailedCount++;}else{
+CHAR sendfailRetry[(0x72d+8008-0x2643)]={(0xaec+2390-0x1442)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x4f0+2057-0xcf9)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x35c+6750-0x1db7);}
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+(0x194b+1933-0x20d7))){
+g_zUfiSms_UnitLen*(g_zUfiSms_ConcatSms.current_sending+(0x23f+2013-0xa1b))){
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,(0x11e5+1095-0x162c),sizeof(
+tSendStatus;memset((void*)&tSendStatus,(0x914+2005-0x10e9),sizeof(
T_zUfiSms_StatusInfo));tSendStatus.err_code=ZTE_SMS_CMS_NONE;tSendStatus.
send_failed_count=g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=
-(0x1e5+2193-0xa76);tSendStatus.cmd_status=WMS_CMD_FAILED;tSendStatus.cmd=
+(0x324+341-0x479);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=(0x85a+2773-0x132f);int i=
-(0x62+5677-0x168f);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR
-sendfailRetry[(0xdf0+3672-0x1c16)]={(0x1fe0+1517-0x25cd)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x898+2953-0x1421)==
-strcmp("\x31",sendfailRetry)){for(i=(0x802+4551-0x19c9);i<SMS_RETRY_COUNT;i++){
+return result;}int zSvr_sendCmgs(VOID){int atRes=(0x1dd4+888-0x214c);int i=
+(0x398+8592-0x2528);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR
+sendfailRetry[(0x759+2027-0xf12)]={(0xf48+2070-0x175e)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x4cc+3412-0x1220)==
+strcmp("\x31",sendfailRetry)){for(i=(0x9b8+515-0xbbb);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=(0x4e8+5648-0x1af8);if(-
-(0xa1+1483-0x66b)==g_zUfiSms_UnitLen){printf(
+T_zUfiSms_DbStoreData tDbSaveData;int res=(0x1d55+458-0x1f1f);if(-
+(0x2e1+5742-0x194e)==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,(0x2e9+6887-0x1dd0),
-sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0xb0f+3948-0x1a7b),
-sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&tDbSaveData);if(!
+g_zUfiSms_ConcatSms.total_msg){memset((void*)&tClientMsg,(0x16a4+80-0x16f4),
+sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x662+491-0x84d),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,-(0x375+3152-0xfc4));
-g_zUfiSms_SendFailedCount++;}else{res=zSvr_sendCmgs();if(res!=ZSMS_RESULT_OK){
+zUfiSms_WriteSmsToDb(&tDbSaveData,WMS_STORAGE_TYPE_NV_V01,-(0x1133+2811-0x1c2d))
+;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+(0x1361+1902-0x1ace))){g_zUfiSms_UnitLen=g_zUfiSms_ConcatSms.
+current_sending+(0xdb3+4611-0x1fb5))){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,(0x1fb0+781-0x22bd),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
+tSendStatus,(0x5a6+5027-0x1949),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
err_code=ZTE_SMS_CMS_NONE;tSendStatus.send_failed_count=
-g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0x1dfd+1445-0x23a2);
+g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0x725+3742-0x15c3);
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 (0x8c6+5183-0x1d05)
-if(g_zUfiSms_ConcatSms.total_msg>(0x50c+5692-0x1b47)){printf(
+#if (0x869+2126-0x10b7)
+if(g_zUfiSms_ConcatSms.total_msg>(0xcf2+3028-0x18c5)){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,(0x52b+4824-0x1803)
-,sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x63b+6813-0x20d8),
-sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&tDbSaveData);printf(
+);zUfiSms_SendConcatSms(cid);}else{memset((void*)&tClientMsg,
+(0x1771+3264-0x2431),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,
+(0xa72+5127-0x1e79),sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&
+tDbSaveData);printf(
"\x3d\x3d\x3d\x3d\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x6e\x6f\x72\x61\x6d\x6c\x53\x6d\x73\x2e" "\n"
);if(WMS_CMD_FAILED==zUfiSms_SendOutSms(&tDbSaveData,cid)){printf(
"\x21\x21\x21\x21\x21\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x4f\x75\x74\x53\x6d\x73\x20\x46\x61\x69\x6c\x2e" "\n"
);g_zUfiSms_SendFailedCount++;return WMS_CMD_FAILED;}}
#endif
return WMS_CMD_SUCCESS;}int zUfiSms_FormatDeliverTimestamp(T_zUfiSms_Date tData,
-T_zUfiSms_TimeStamp*ptTimestamp){unsigned char tTimeZone[(0x87f+7641-0x2653)]={
-(0x7cc+1307-0xce7)};int tmp_i=(0x1cf9+1405-0x2276);memset(ptTimestamp,
-(0x550+8173-0x253d),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
-(0x1955+586-0x1b9e)){ptTimestamp->year=zUfiSms_atohex(((char)(0x1bca+89-0x1bf3))
-)*(0x157c+4291-0x262f)+zUfiSms_atohex(tData.year[(0xbd2+4316-0x1cae)]);}else if(
-strlen(tData.year)==(0x84a+276-0x95c)){ptTimestamp->year=zUfiSms_atohex(tData.
-year[(0x53c+2526-0xf1a)])*(0x1e2+5095-0x15b9)+zUfiSms_atohex(tData.year[
-(0x3f1+7527-0x2157)]);}else if(strlen(tData.year)==(0x1ef8+769-0x21f5)){
-ptTimestamp->year=zUfiSms_atohex(tData.year[(0x989+6384-0x2277)])*
-(0x26f+7431-0x1f66)+zUfiSms_atohex(tData.year[(0x1aea+1719-0x219e)]);}else{
-printf("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x79\x65\x61\x72\x2e");return ZUFI_FAIL;
-}if(strlen(tData.month)==(0x391+3433-0x10f9)){ptTimestamp->month=zUfiSms_atohex(
-((char)(0x6aa+6336-0x1f3a)))*(0x71a+1434-0xca4)+zUfiSms_atohex(tData.month[
-(0x5c+4308-0x1130)]);}else if(strlen(tData.month)==(0x252+2199-0xae7)){
-ptTimestamp->month=zUfiSms_atohex(tData.month[(0x37d+2135-0xbd4)])*
-(0xf78+4677-0x21ad)+zUfiSms_atohex(tData.month[(0x6bd+2520-0x1094)]);}else{
-printf("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.day)
-==(0x3f4+1429-0x988)){ptTimestamp->day=zUfiSms_atohex(
-((char)(0x1507+737-0x17b8)))*(0xc28+6721-0x2659)+zUfiSms_atohex(tData.day[
-(0x8e0+7687-0x26e7)]);}else if(strlen(tData.day)==(0xa61+4293-0x1b24)){
-ptTimestamp->day=zUfiSms_atohex(tData.day[(0xa7+5958-0x17ed)])*
-(0x11ca+4810-0x2484)+zUfiSms_atohex(tData.day[(0x391+1949-0xb2d)]);}else{printf(
+T_zUfiSms_TimeStamp*ptTimestamp){unsigned char tTimeZone[(0x1714+2919-0x2276)]={
+(0x453+2765-0xf20)};int tmp_i=(0x328+4056-0x1300);memset(ptTimestamp,
+(0x110b+1163-0x1596),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
+(0x114d+5403-0x2667)){ptTimestamp->year=zUfiSms_atohex(
+((char)(0x1e1f+107-0x1e5a)))*(0x989+187-0xa34)+zUfiSms_atohex(tData.year[
+(0xb0c+4403-0x1c3f)]);}else if(strlen(tData.year)==(0x22fd+892-0x2677)){
+ptTimestamp->year=zUfiSms_atohex(tData.year[(0xf6+8755-0x2329)])*
+(0x934+2899-0x1477)+zUfiSms_atohex(tData.year[(0x1217+950-0x15cc)]);}else if(
+strlen(tData.year)==(0x100c+2873-0x1b41)){ptTimestamp->year=zUfiSms_atohex(tData
+.year[(0x171f+903-0x1aa4)])*(0xb13+6015-0x2282)+zUfiSms_atohex(tData.year[
+(0xf11+4131-0x1f31)]);}else{printf(
+"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x79\x65\x61\x72\x2e");return ZUFI_FAIL;}if(
+strlen(tData.month)==(0x237f+662-0x2614)){ptTimestamp->month=zUfiSms_atohex(
+((char)(0x1e19+2296-0x26e1)))*(0x3c1+6198-0x1be7)+zUfiSms_atohex(tData.month[
+(0x1605+1300-0x1b19)]);}else if(strlen(tData.month)==(0xbe9+2533-0x15cc)){
+ptTimestamp->month=zUfiSms_atohex(tData.month[(0x5cd+3199-0x124c)])*
+(0x215a+70-0x2190)+zUfiSms_atohex(tData.month[(0x7a+2293-0x96e)]);}else{printf(
+"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.day)==
+(0xd7b+5250-0x21fc)){ptTimestamp->day=zUfiSms_atohex(((char)(0xefa+4982-0x2240))
+)*(0x130d+251-0x13f8)+zUfiSms_atohex(tData.day[(0x64+8672-0x2244)]);}else if(
+strlen(tData.day)==(0xa5a+1371-0xfb3)){ptTimestamp->day=zUfiSms_atohex(tData.day
+[(0x192b+3358-0x2649)])*(0x1433+3823-0x2312)+zUfiSms_atohex(tData.day[
+(0x55d+2318-0xe6a)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.hour)==
-(0x1117+1278-0x1614)){ptTimestamp->hour=zUfiSms_atohex(
-((char)(0xc36+2908-0x1762)))*(0xd96+1214-0x1244)+zUfiSms_atohex(tData.hour[
-(0x6fb+4691-0x194e)]);}else if(strlen(tData.hour)==(0x249+9401-0x2700)){
-ptTimestamp->hour=zUfiSms_atohex(tData.hour[(0xc63+2131-0x14b6)])*
-(0x1beb+2493-0x2598)+zUfiSms_atohex(tData.hour[(0xb18+2162-0x1389)]);}else{
-printf("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x68\x6f\x75\x72\x2e");}if(strlen(tData.
-min)==(0xa82+1251-0xf64)){ptTimestamp->minute=zUfiSms_atohex(
-((char)(0x54f+1594-0xb59)))*(0x5eb+3887-0x150a)+zUfiSms_atohex(tData.min[
-(0x2244+809-0x256d)]);}else if(strlen(tData.min)==(0x1266+3355-0x1f7f)){
-ptTimestamp->minute=zUfiSms_atohex(tData.min[(0x1aa2+447-0x1c61)])*
-(0x1062+3484-0x1dee)+zUfiSms_atohex(tData.min[(0x1aec+2679-0x2562)]);}else{
-printf("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x6d\x69\x6e\x75\x74\x65\x2e");}if(
-strlen(tData.sec)==(0x6a4+1214-0xb61)){ptTimestamp->second=zUfiSms_atohex(
-((char)(0xf81+4313-0x202a)))*(0x1e1b+1068-0x2237)+zUfiSms_atohex(tData.sec[
-(0x1838+3238-0x24de)]);}else if(strlen(tData.sec)==(0xef8+4622-0x2104)){
-ptTimestamp->second=zUfiSms_atohex(tData.sec[(0x1984+2825-0x248d)])*
-(0x162+8127-0x2111)+zUfiSms_atohex(tData.sec[(0x315+705-0x5d5)]);}else{printf(
+(0xf+3843-0xf11)){ptTimestamp->hour=zUfiSms_atohex(((char)(0x69+751-0x328)))*
+(0xdc6+2474-0x1760)+zUfiSms_atohex(tData.hour[(0x116f+2723-0x1c12)]);}else if(
+strlen(tData.hour)==(0x4ca+4762-0x1762)){ptTimestamp->hour=zUfiSms_atohex(tData.
+hour[(0x10a6+1895-0x180d)])*(0xcc8+388-0xe3c)+zUfiSms_atohex(tData.hour[
+(0x8ed+2893-0x1439)]);}else{printf(
+"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x68\x6f\x75\x72\x2e");}if(strlen(tData.min)==
+(0xaf+8549-0x2213)){ptTimestamp->minute=zUfiSms_atohex(
+((char)(0x1490+3270-0x2126)))*(0x1aca+2002-0x228c)+zUfiSms_atohex(tData.min[
+(0x3e1+1136-0x851)]);}else if(strlen(tData.min)==(0xe79+5465-0x23d0)){
+ptTimestamp->minute=zUfiSms_atohex(tData.min[(0xeb6+2043-0x16b1)])*
+(0x13fb+2476-0x1d97)+zUfiSms_atohex(tData.min[(0xb92+2875-0x16cc)]);}else{printf
+("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x6d\x69\x6e\x75\x74\x65\x2e");}if(strlen(
+tData.sec)==(0x250+2833-0xd60)){ptTimestamp->second=zUfiSms_atohex(
+((char)(0x1a35+909-0x1d92)))*(0x358+8287-0x23a7)+zUfiSms_atohex(tData.sec[
+(0xd66+1968-0x1516)]);}else if(strlen(tData.sec)==(0x444+8522-0x258c)){
+ptTimestamp->second=zUfiSms_atohex(tData.sec[(0xf0d+5513-0x2496)])*
+(0x8c6+803-0xbd9)+zUfiSms_atohex(tData.sec[(0xed+3272-0xdb4)]);}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+(0x4b9+261-0x5bd)||tmp_i>INT_MAX-
-(0x5b5+809-0x8dd)){printf(
+tData.timezone);if(tmp_i<INT_MIN+(0x17a5+3042-0x2386)||tmp_i>INT_MAX-
+(0x829+3455-0x15a7)){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,(0x76+5727-0x16d5),sizeof(tTimeZone))
-;snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0x179+649-0x3fe));if(
-tData.timezone[(0x1f+7047-0x1ba6)]==((char)(0x1868+2937-0x23b4))){if(strlen(
-tTimeZone)==(0xe10+5614-0x23fc)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0x2e9+355-0x41c)))*(0x902+7077-0x2497)+zUfiSms_atohex(tTimeZone[
-(0xac4+2638-0x1511)]);}else if(strlen(tTimeZone)==(0x1bf+9120-0x255c)){
-ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x6f6+4903-0x1a1c)])*
-(0x1015+3103-0x1c2a)+zUfiSms_atohex(tTimeZone[(0x17ab+3336-0x24b1)]);}else{
-printf(
+,tmp_i);return ZUFI_FAIL;}memset(tTimeZone,(0xb0c+393-0xc95),sizeof(tTimeZone));
+snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0x1359+4400-0x2485));if(
+tData.timezone[(0xc70+3052-0x185c)]==((char)(0x160a+2712-0x2075))){if(strlen(
+tTimeZone)==(0x10ec+5414-0x2610)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0xf3c+3235-0x1baf)))*(0xedd+2408-0x1835)+zUfiSms_atohex(tTimeZone[
+(0xfe0+3274-0x1ca9)]);}else if(strlen(tTimeZone)==(0x776+976-0xb43)){ptTimestamp
+->timezone=zUfiSms_atohex(tTimeZone[(0xa96+2419-0x1408)])*(0x1303+3791-0x21c8)+
+zUfiSms_atohex(tTimeZone[(0x1dbb+1480-0x2381)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2d\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}
-ptTimestamp->timezone=(0x508+8444-0x2604)-ptTimestamp->timezone;}else{if(strlen(
-tTimeZone)==(0x9f6+3659-0x1840)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0xa61+5019-0x1dcc)))*(0x181+7714-0x1f93)+zUfiSms_atohex(tTimeZone[
-(0xc9a+724-0xf6e)]);}else if(strlen(tTimeZone)==(0xc70+4007-0x1c15)){ptTimestamp
-->timezone=zUfiSms_atohex(tTimeZone[(0xcf+6115-0x18b2)])*(0xb76+1715-0x121f)+
-zUfiSms_atohex(tTimeZone[(0x21fd+522-0x2406)]);}else{printf(
-"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2b\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}}
+ptTimestamp->timezone=(0x39b+1321-0x8c4)-ptTimestamp->timezone;}else{if(strlen(
+tTimeZone)==(0x618+6579-0x1fca)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0x1d2d+1775-0x23ec)))*(0x2276+8-0x226e)+zUfiSms_atohex(tTimeZone[
+(0x62c+3562-0x1416)]);}else if(strlen(tTimeZone)==(0x11a+6863-0x1be7)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x297+5278-0x1735)])*
+(0x351+7161-0x1f40)+zUfiSms_atohex(tTimeZone[(0x1516+1517-0x1b02)]);}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=(0xf64+1999-0x1733);deliver->user_data_header_present=TRUE;if(
-(0x1385+2765-0x1e52)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference
-++;(void)zUfiSms_SetConcatMaxRefer(g_zUfiSms_ConcatSmsReference);}deliver->
-user_data_header_present=TRUE;deliver->user_data.num_headers=(0x1e91+62-0x1ece);
-deliver->user_data.headers[(0xab1+1343-0xff0)].header_id=WMS_UDH_CONCAT_8;
-deliver->user_data.headers[(0x74+6436-0x1998)].u.concat_8.msg_ref=msg_ref;
-deliver->user_data.headers[(0xaa7+2777-0x1580)].u.concat_8.total_sm=concat_sms->
-total_msg;deliver->user_data.headers[(0x247+6068-0x19fb)].u.concat_8.seq_num=
-concat_sms->current_sending+(0x1753+2527-0x2131);ptDbSaveData->concat_sms=
-(0x163+7101-0x1d1f);ptDbSaveData->concat_info[(0x19f+4878-0x14ad)]=msg_ref;}void
- zUfiSms_FillDeliverPdu(T_zUfiSms_DeliverPdu*ptDeliver,T_zUfiSms_ConcatInfo*
+UINT16 msg_ref=(0x2d+2718-0xacb);deliver->user_data_header_present=TRUE;if(
+(0x22d+3542-0x1003)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference++
+;(void)zUfiSms_SetConcatMaxRefer(g_zUfiSms_ConcatSmsReference);}deliver->
+user_data_header_present=TRUE;deliver->user_data.num_headers=(0x285+2683-0xcff);
+deliver->user_data.headers[(0xc10+1006-0xffe)].header_id=WMS_UDH_CONCAT_8;
+deliver->user_data.headers[(0x1316+3802-0x21f0)].u.concat_8.msg_ref=msg_ref;
+deliver->user_data.headers[(0x11f+6500-0x1a83)].u.concat_8.total_sm=concat_sms->
+total_msg;deliver->user_data.headers[(0x7f2+3407-0x1541)].u.concat_8.seq_num=
+concat_sms->current_sending+(0x2ea+7554-0x206b);ptDbSaveData->concat_sms=
+(0x62b+8333-0x26b7);ptDbSaveData->concat_info[(0x15c0+2993-0x2171)]=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=
@@ -751,22 +755,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>
-(0xc13+2449-0x15a3)){zUfiSms_FillDeliver(ptDeliver,concat_sms,ptDbSaveData);
-ptDbSaveData->concat_sms=(0x140c+425-0x15b4);ptDbSaveData->concat_info[
-(0xaf6+798-0xe12)]=concat_sms->current_sending+(0x1a3f+350-0x1b9c);ptDbSaveData
-->concat_info[(0x15e2+1040-0x19f1)]=concat_sms->total_msg;ptDbSaveData->
-concat_info[(0x1209+333-0x1356)]=ptDeliver->user_data.headers[
-(0x17a4+1071-0x1bd3)].u.concat_8.msg_ref;}else{ptDeliver->
+(0xc26+5903-0x2334)){zUfiSms_FillDeliver(ptDeliver,concat_sms,ptDbSaveData);
+ptDbSaveData->concat_sms=(0x1062+4515-0x2204);ptDbSaveData->concat_info[
+(0x2ec+1976-0xaa2)]=concat_sms->current_sending+(0x116+6141-0x1912);ptDbSaveData
+->concat_info[(0x110f+5351-0x25f5)]=concat_sms->total_msg;ptDbSaveData->
+concat_info[(0x1957+859-0x1cb2)]=ptDeliver->user_data.headers[
+(0xaa2+4068-0x1a86)].u.concat_8.msg_ref;}else{ptDeliver->
user_data_header_present=FALSE;ptDeliver->user_data.num_headers=
-(0x382+777-0x68b);}ptDeliver->user_data.sm_len=iSmsLen;memcpy(ptDeliver->
+(0x8b2+2917-0x1417);}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][(0xc6c+3376-0x199c)]==
-((char)(0x679+6599-0x2015))){(void)zUfiSms_CharToInt(group_sms->receivers[
-group_sms->current_receiver]+(0x764+7342-0x2411),strlen(group_sms->receivers[
-group_sms->current_receiver])-(0x408+4472-0x157f),ptDeliver->address.digits);
+;if(group_sms->receivers[group_sms->current_receiver][(0x834+1781-0xf29)]==
+((char)(0x65d+7730-0x2464))){(void)zUfiSms_CharToInt(group_sms->receivers[
+group_sms->current_receiver]+(0x105+8719-0x2313),strlen(group_sms->receivers[
+group_sms->current_receiver])-(0x1856+1305-0x1d6e),ptDeliver->address.digits);
ptDeliver->address.number_type=WMS_NUMBER_INTERNATIONAL;ptDeliver->address.
number_of_digits=(UINT8)strlen(group_sms->receivers[group_sms->current_receiver]
-)-(0xf92+843-0x12dc);}else{(void)zUfiSms_CharToInt(group_sms->receivers[
+)-(0x1c3+4223-0x1241);}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->
@@ -779,7 +783,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,-
-(0x385+790-0x69a))){at_print(LOG_ERR,
+(0x1196+792-0x14ad))){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(
@@ -795,19 +799,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=
-(0x18fc+794-0x1c16);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
-(0x481+8675-0x2663)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
-current_sending=(0x45c+4267-0x1507);ptConcatSms->current_sending<ptConcatSms->
+(0x165c+2293-0x1f51);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
+(0x1378+3723-0x2202)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
+current_sending=(0x1187+3718-0x200d);ptConcatSms->current_sending<ptConcatSms->
total_msg;ptConcatSms->current_sending++){memset((void*)&tClientMsg,
-(0xd73+4333-0x1e60),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
-(0xe62+6206-0x26a0),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
-(0xd7c+5996-0x24e8),sizeof(T_zUfiSms_DbStoreData));tClientMsg.msg_hdr.mem_store=
-(ptSaveSms->mem_store==WMS_STORAGE_TYPE_UIM_V01)?WMS_STORAGE_TYPE_UIM_V01:
+(0x1542+2993-0x20f3),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
+(0x91c+2531-0x12ff),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
+(0x7e7+1171-0xc7a),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
-(0x58b+6951-0x20ae):{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)
+(0x1314+5100-0x26fc):{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;(
@@ -819,42 +823,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)-
-(0x735+3189-0x13a9));if(TRUE==g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){result=
+(0x1b2b+1243-0x2005));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==(0x15+2902-0xb6a)){result=
+);}else{if(tDbSaveData.concat_sms==(0x849+6291-0x20db)){result=
zUfiSms_SaveConcatSms(ptSaveSms,ptConcatSms,ptGroupSms,&tDbSaveData,iSmsLength);
-current_sending=ptConcatSms->current_sending+(0x18e8+766-0x1be5);if(ptConcatSms
-->sms_len<iSmsLength*(current_sending+(0x1820+3200-0x249f))){iSmsLength=
+current_sending=ptConcatSms->current_sending+(0xa66+4237-0x1af2);if(ptConcatSms
+->sms_len<iSmsLength*(current_sending+(0x1747+2157-0x1fb3))){iSmsLength=
ptConcatSms->sms_len-iSmsLength*current_sending;}}else{result=
zUfiSms_SaveNormalSms(ptSaveSms,&tDbSaveData);}}}return result;}int
-zUfiSms_DeleteSmsInSim(){char str_index[(0xebf+5222-0x22a5)]={
-(0x11af+5037-0x255c)};int index=(0x45a+4873-0x1763);int is_cc=
-(0x499+7003-0x1ff4);int iSmsId=(0x110+6974-0x1c4e);T_zUfiSms_ModifyTag
-tDeleteInfo={(0x38f+2272-0xc6f)};char StrValue[(0x747+7782-0x25a3)]={
-(0x85d+2817-0x135e)};memset(&tDeleteInfo,(0x90a+6062-0x20b8),sizeof(
-T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_DelMsg.sim_id[g_zUfiSms_DelMsg.sim_index]
-;if(-(0x1740+2844-0x225b)==(is_cc=zUfiSms_IsConcatSms(iSmsId))){printf(
+zUfiSms_DeleteSmsInSim(){char str_index[(0x6bb+272-0x74b)]={(0xf5c+4317-0x2039)}
+;int index=(0xb53+6205-0x2390);int is_cc=(0x133+2844-0xc4f);int iSmsId=
+(0x493+1113-0x8ec);T_zUfiSms_ModifyTag tDeleteInfo={(0x44f+6118-0x1c35)};char
+StrValue[(0x3d2+1735-0xa8f)]={(0x458+5932-0x1b84)};memset(&tDeleteInfo,
+(0x88b+245-0x980),sizeof(T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_DelMsg.sim_id[
+g_zUfiSms_DelMsg.sim_index];if(-(0x639+4355-0x173b)==(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((0x37c+2202-0xc15)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(
-iSmsId,&tDeleteInfo,is_cc)){return ZUFI_FAIL;}g_zUfiSms_DelMsg.sim_index++;
+,is_cc,iSmsId);if((0x1729+2842-0x2242)==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>
-(0xf8f+3534-0x1d5d)){index=tDeleteInfo.indices[tDeleteInfo.id_index];
+(0x968+2998-0x151e)){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,
-(0x2523+375-0x269a),sizeof(str_index));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
+(0x13c8+3085-0x1fd5),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=(0x63a+6075-0x1df5);
-char StrValue[(0x723+5612-0x1d05)]={(0x18d5+2988-0x2481)};zUfiSms_SetSmsLocation
-(SMS_LOCATION_SIM);memset(&g_deleteIndex,(0x1311+785-0x1622),sizeof(
+T_zUfiSms_CmdStatus zUfiSms_DeleteSimSms(VOID){int atRes=(0x829+3594-0x1633);
+char StrValue[(0xd7d+422-0xf19)]={(0x15c6+3291-0x22a1)};zUfiSms_SetSmsLocation(
+SMS_LOCATION_SIM);memset(&g_deleteIndex,(0x173a+3132-0x2376),sizeof(
T_zUfiSms_DelIndexInfo));while(g_zUfiSms_DelMsg.sim_index_count>
-(0xeb3+5715-0x2506)){if(ZUFI_FAIL==zUfiSms_DeleteSmsInSim()){printf(
+(0x327+8523-0x2472)){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.
@@ -863,69 +867,70 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x69\x6d\x53\x6d\x73\x20\x73\x75\x63\x63\x65\x73\x73" "\n"
);return WMS_CMD_SUCCESS;}void zUfiSms_GetReportStatus(char*pdu_tmp,int*stat){
unsigned char tmp;unsigned char first_octet;if(pdu_tmp==NULL){return;}(void)
-String2Bytes(pdu_tmp,&tmp,(0xbfd+3805-0x1ad8));if(tmp==(0x44b+3049-0x1034)){
-pdu_tmp+=(0x1f7+5390-0x1703);}else{tmp=(tmp+(0x16ff+1910-0x1e74))*
-(0x421+1205-0x8d4);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
-(0x15dc+173-0x1687));first_octet=tmp;if(first_octet&(0x4d9+3203-0x115a)){*stat=
-(0xb29+6225-0x2375);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
-T_zUfiSms_TpduType iTpduType;UINT8 mti=(0xd95+5464-0x22ed);mti=(
-T_zUfiSms_TpduType)(pData[(0xde1+936-0x1189)]&(0x415+1159-0x899));switch(mti){
-case(0x1362+1214-0x1820):iTpduType=WMS_TPDU_DELIVER;break;case
-(0x175+5682-0x17a6):iTpduType=WMS_TPDU_SUBMIT;break;case(0xdfc+5930-0x2524):
-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=(0x22e2+382-0x2460);memset(
-pNumber,(0xe21+512-0x1021),ZTE_WMS_ADDRESS_LEN_MAX+(0x760+7819-0x25ea));if(
-tAddress.number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x8d3+1979-0x108e)]=
-((char)(0xd9+6435-0x19d1));pNumber++;}if(tAddress.digit_mode!=
+String2Bytes(pdu_tmp,&tmp,(0x603+4240-0x1691));if(tmp==(0x1c6+6016-0x1946)){
+pdu_tmp+=(0xcf+4770-0x136f);}else{tmp=(tmp+(0x1b3a+1293-0x2046))*
+(0x2df+5607-0x18c4);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
+(0x890+2765-0x135b));first_octet=tmp;if(first_octet&(0x1430+2918-0x1f94)){*stat=
+(0xb48+1706-0x11ed);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
+T_zUfiSms_TpduType iTpduType;UINT8 mti=(0x166+5697-0x17a7);mti=(
+T_zUfiSms_TpduType)(pData[(0x1d82+1430-0x2318)]&(0x1d4a+619-0x1fb2));switch(mti)
+{case(0xd9f+3453-0x1b1c):iTpduType=WMS_TPDU_DELIVER;break;case(0x24+8074-0x1fad)
+:iTpduType=WMS_TPDU_SUBMIT;break;case(0x4ec+463-0x6b9):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=(0x17df+3478-0x2575);memset(pNumber,
+(0x213+524-0x41f),ZTE_WMS_ADDRESS_LEN_MAX+(0x1dc4+1965-0x2570));if(tAddress.
+number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x589+1175-0xa20)]=
+((char)(0x8d0+4958-0x1c03));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[(0x1a73+801-0x1d94)]));}}byte*zUfiSms_UtilTimeStamp(
+sizeof(tAddress.digits[(0x1182+2833-0x1c93)]));}}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)(0xb52+2622-0x156e));tmp=zte_wms_time
-.year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0xad5+2183-0x134d))+((tmp>>
-(0x7d3+3118-0x13fd))*(0x127b+40-0x1299)),res_ptr);zUfiSms_SprintfTime(date->year
-,sizeof(date->year),zte_wms_time.year);*res_ptr++=((char)(0xce8+2813-0x17b6));
-tmp=zte_wms_time.month;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x8a8+3584-0x1699)
-)+((tmp>>(0x155c+1385-0x1ac1))*(0xbea+1627-0x123b)),res_ptr);zUfiSms_SprintfTime
-(date->month,sizeof(date->month),zte_wms_time.month);*res_ptr++=
-((char)(0x12fc+4300-0x2399));tmp=zte_wms_time.day;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0x13c0+4055-0x2388))+((tmp>>(0xa51+6598-0x2413))*
-(0x301+3490-0x1099)),res_ptr);zUfiSms_SprintfTime(date->day,sizeof(date->day),
-zte_wms_time.day);*res_ptr++=((char)(0x106c+2664-0x1aa8));tmp=zte_wms_time.hour;
-res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0xdfd+3437-0x1b5b))+((tmp>>
-(0x685+6038-0x1e17))*(0xf7d+3925-0x1ec8)),res_ptr);zUfiSms_SprintfTime(date->
-hour,sizeof(date->hour),zte_wms_time.hour);*res_ptr++=
-((char)(0x305+5472-0x182b));tmp=zte_wms_time.minute;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0xce4+6438-0x25fb))+((tmp>>(0xb99+762-0xe8f))*
-(0x10c7+2504-0x1a85)),res_ptr);zUfiSms_SprintfTime(date->min,sizeof(date->min),
-zte_wms_time.minute);*res_ptr++=((char)(0x1cad+2665-0x26dc));tmp=zte_wms_time.
-second;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0xcd1+1875-0x1415))+((tmp>>
-(0x3fc+72-0x440))*(0xf53+5705-0x2592)),res_ptr);zUfiSms_SprintfTime(date->sec,
-sizeof(date->sec),zte_wms_time.second);if(zte_wms_time.timezone<
-(0xa70+1990-0x1236)){*res_ptr++=((char)(0x759+5809-0x1ddd));tmp=(UINT8)(
-zte_wms_time.timezone*(-(0x1746+836-0x1a89)));snprintf(date->timezone,sizeof(
-date->timezone),"\x2d\x25\x64",-(0x956+7315-0x25e8)*zte_wms_time.timezone);}else
-{*res_ptr++=((char)(0xea0+422-0x101b));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)(0x1188+3929-0x20bf));return res_ptr;}T_zUfiSms_CmdStatus
-zUfiSms_HandleReport(unsigned char*ptPduData){T_zUfiSms_RawTsData tRawTsData;
-T_zUfiSms_ClientTsData tClientTsData;int iReportStatus=(0x182d+3668-0x2681);
-unsigned char acDeliverNumber[ZTE_WMS_ADDRESS_LEN_MAX+(0x18a+6088-0x1951)];
-unsigned char tTpScts[ZTE_WMS_TP_SCTS_LEN_MAX+(0x1b1a+1265-0x200a)];
-T_zUfiSms_Date tSmsDate;char acRecFlag[(0x106c+5255-0x24ee)]={(0x68f+49-0x6c0)};
-int iRpCount=(0x186a+2863-0x2399);char tmp[(0x9d9+5031-0x1d76)];int tmp_i=
-(0x12f+128-0x1af);unsigned int pos=(0xec4+5000-0x224c);if(NULL==ptPduData){
-return WMS_CMD_FAILED;}memset(acDeliverNumber,(0x1937+81-0x1988),sizeof(
-acDeliverNumber));memset(&tSmsDate,(0x14b+2029-0x938),sizeof(T_zUfiSms_Date));
-memset(tTpScts,(0x13cd+1414-0x1953),sizeof(tTpScts));memset(&tRawTsData,
-(0x1522+727-0x17f9),sizeof(T_zUfiSms_RawTsData));memset(&tClientTsData,
-(0x30b+1530-0x905),sizeof(T_zUfiSms_ClientTsData));snprintf(tmp,sizeof(tmp),
-"\x25\x58",ptPduData[(0xcaf+5729-0x2310)]);tmp_i=atoi(tmp);if(tmp_i<
-(0x1dc9+1226-0x2293)||tmp_i>INT_MAX-(0x11d6+690-0x1487)){at_print(LOG_ERR,
+NULL==date){return NULL;}*res_ptr++=((char)(0xe71+5940-0x2583));tmp=zte_wms_time
+.year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x15b1+4391-0x26c9))+((tmp>>
+(0x4c8+1037-0x8d1))*(0x145c+1538-0x1a54)),res_ptr);zUfiSms_SprintfTime(date->
+year,sizeof(date->year),zte_wms_time.year);*res_ptr++=
+((char)(0x2340+583-0x2558));tmp=zte_wms_time.month;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0xb7f+364-0xcdc))+((tmp>>(0x12f1+5102-0x26db))*
+(0x1531+4119-0x253e)),res_ptr);zUfiSms_SprintfTime(date->month,sizeof(date->
+month),zte_wms_time.month);*res_ptr++=((char)(0x14bd+345-0x15e7));tmp=
+zte_wms_time.day;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x1dff+362-0x1f5a))+((
+tmp>>(0xcd2+4542-0x1e8c))*(0x1412+3915-0x2353)),res_ptr);zUfiSms_SprintfTime(
+date->day,sizeof(date->day),zte_wms_time.day);*res_ptr++=
+((char)(0x4b+5230-0x148d));tmp=zte_wms_time.hour;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0xf53+5231-0x23b3))+((tmp>>(0x1848+2006-0x201a))*
+(0x2f6+3936-0x124c)),res_ptr);zUfiSms_SprintfTime(date->hour,sizeof(date->hour),
+zte_wms_time.hour);*res_ptr++=((char)(0x22d+8255-0x2232));tmp=zte_wms_time.
+minute;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0xe30+4206-0x1e8f))+((tmp>>
+(0xce0+6409-0x25e5))*(0x4f7+2878-0x102b)),res_ptr);zUfiSms_SprintfTime(date->min
+,sizeof(date->min),zte_wms_time.minute);*res_ptr++=((char)(0x236+1841-0x92d));
+tmp=zte_wms_time.second;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&
+(0xb05+6342-0x23bc))+((tmp>>(0x998+97-0x9f5))*(0x1919+1059-0x1d32)),res_ptr);
+zUfiSms_SprintfTime(date->sec,sizeof(date->sec),zte_wms_time.second);if(
+zte_wms_time.timezone<(0xfd5+4113-0x1fe6)){*res_ptr++=
+((char)(0x1738+2365-0x2048));tmp=(UINT8)(zte_wms_time.timezone*(-
+(0x88f+5505-0x1e0f)));snprintf(date->timezone,sizeof(date->timezone),
+"\x2d\x25\x64",-(0x2bd+3889-0x11ed)*zte_wms_time.timezone);}else{*res_ptr++=
+((char)(0x1b7+7269-0x1df1));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)(0x1b07+296-0x1c0d));
+return res_ptr;}T_zUfiSms_CmdStatus zUfiSms_HandleReport(unsigned char*ptPduData
+){T_zUfiSms_RawTsData tRawTsData;T_zUfiSms_ClientTsData tClientTsData;int
+iReportStatus=(0x537+4787-0x17ea);unsigned char acDeliverNumber[
+ZTE_WMS_ADDRESS_LEN_MAX+(0x424+8809-0x268c)];unsigned char tTpScts[
+ZTE_WMS_TP_SCTS_LEN_MAX+(0x25f9+244-0x26ec)];T_zUfiSms_Date tSmsDate;char
+acRecFlag[(0x32+836-0x371)]={(0x34a+963-0x70d)};int iRpCount=(0x329+4762-0x15c3)
+;char tmp[(0xaa1+2214-0x133d)];int tmp_i=(0x761+7825-0x25f2);unsigned int pos=
+(0x8f6+2074-0x1110);if(NULL==ptPduData){return WMS_CMD_FAILED;}memset(
+acDeliverNumber,(0x129f+4392-0x23c7),sizeof(acDeliverNumber));memset(&tSmsDate,
+(0x13d5+4235-0x2460),sizeof(T_zUfiSms_Date));memset(tTpScts,(0xfea+3756-0x1e96),
+sizeof(tTpScts));memset(&tRawTsData,(0x561+3437-0x12ce),sizeof(
+T_zUfiSms_RawTsData));memset(&tClientTsData,(0x451+8029-0x23ae),sizeof(
+T_zUfiSms_ClientTsData));snprintf(tmp,sizeof(tmp),"\x25\x58",ptPduData[
+(0x2f2+7105-0x1eb3)]);tmp_i=atoi(tmp);if(tmp_i<(0x1026+4065-0x2007)||tmp_i>
+INT_MAX-(0x138+2509-0xb04)){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+(0x177+1207-0x62d);if(pos>=
+,tmp_i);return WMS_CMD_FAILED;}pos=tmp_i+(0x10b3+5025-0x2453);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(&
@@ -934,59 +939,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=(0xe01+619-0x106b);break;}case
+case WMS_TP_STATUS_REPLACED:{iReportStatus=(0xa95+189-0xb51);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=(0x1425+641-0x16a3);break;}default:{iReportStatus=
-(0xcd8+703-0xf95);break;}}zUfiSms_FormatDeliverNumber(tClientTsData.u.gw_pp.u.
+iReportStatus=(0x188f+95-0x18eb);break;}default:{iReportStatus=
+(0x35c+5456-0x18aa);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,(0xb91+5431-0x20c8),sizeof(acRecFlag))
-;sc_cfg_get(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag,sizeof(acRecFlag));iRpCount=
-atoi(acRecFlag);if(iRpCount<(0x10ab+621-0x1318)||iRpCount>INT_MAX-
-(0xc68+2222-0x1515)){at_print(LOG_ERR,
+);return WMS_CMD_FAILED;}memset(acRecFlag,(0x12b7+2897-0x1e08),sizeof(acRecFlag)
+);sc_cfg_get(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag,sizeof(acRecFlag));iRpCount=
+atoi(acRecFlag);if(iRpCount<(0xc33+4026-0x1bed)||iRpCount>INT_MAX-
+(0x1cc4+1587-0x22f6)){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,(0x749+392-0x8d1),sizeof(
+,iRpCount);return WMS_CMD_FAILED;}memset(acRecFlag,(0x12a2+4056-0x227a),sizeof(
acRecFlag));snprintf(acRecFlag,sizeof(acRecFlag),"\x25\x64",iRpCount+
-(0x2af+7850-0x2158));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return
+(0x5fb+1914-0xd74));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return
WMS_CMD_SUCCESS;}void zUfiSms_DelModemSms(int in_index){
-#if (0xa12+3151-0x1661)
-char StrValue[(0x233c+961-0x26f3)]={(0x10c+4025-0x10c5)};printf(
+#if (0x5c1+3353-0x12da)
+char StrValue[(0x1b6+6113-0x198d)]={(0x48b+3548-0x1267)};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=(0x1a42+846-0x1d90);atRes=zSms_SendCmgdReq(in_index);if(atRes==
+int atRes=(0x114b+3727-0x1fda);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=
-(0x1856+914-0x1be8);memset(&g_zUfiSms_modifyMsg,(0x23c8+29-0x23e5),sizeof(
-T_zUfiSms_ModifySms));for(i=(0x1938+657-0x1bc9);i<ptModifyBuff->total_id;i++){
+(0x16d3+663-0x196a);memset(&g_zUfiSms_modifyMsg,(0x1ac+7176-0x1db4),sizeof(
+T_zUfiSms_ModifySms));for(i=(0x598+6869-0x206d);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[(0x1008+4638-0x21a6)]={
-(0xba+8404-0x218e)};int index=(0x97c+4415-0x1abb);int is_cc=(0x2369+100-0x23cd);
-int iSmsId=(0x6bf+964-0xa83);T_zUfiSms_ModifyTag tModifyInfo={
-(0x5a9+7245-0x21f6)};char StrValue[(0x1634+2083-0x1e4d)]={(0xcd2+293-0xdf7)};
-memset(&tModifyInfo,(0x15a1+1783-0x1c98),sizeof(T_zUfiSms_ModifyTag));iSmsId=
-g_zUfiSms_modifyMsg.sim_id[g_zUfiSms_modifyMsg.sim_index];if(-
-(0x23ac+617-0x2614)==(is_cc=zUfiSms_IsConcatSms(iSmsId))){at_print(LOG_ERR,
+zUfiSms_GetUnreadSmsIndexInSim(){char str_index[(0x1282+4044-0x21ce)]={
+(0x977+6128-0x2167)};int index=(0x13e8+4146-0x241a);int is_cc=
+(0x21f+6869-0x1cf4);int iSmsId=(0x770+722-0xa42);T_zUfiSms_ModifyTag tModifyInfo
+={(0x4e8+8596-0x267c)};char StrValue[(0xb6f+5370-0x205f)]={(0x2e3+5322-0x17ad)};
+memset(&tModifyInfo,(0x10c1+1722-0x177b),sizeof(T_zUfiSms_ModifyTag));iSmsId=
+g_zUfiSms_modifyMsg.sim_id[g_zUfiSms_modifyMsg.sim_index];if(-(0x1613+92-0x166e)
+==(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((0x8b8+5074-0x1c89)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(iSmsId,
+,is_cc);if((0x13d2+204-0x149d)==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>
-(0x59a+5446-0x1ae0)){index=tModifyInfo.indices[tModifyInfo.id_index];
+(0x19a9+3225-0x2642)){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,(0xf9+5712-0x1749),sizeof(
+,index,g_modifyIndex.total);}}else{memset(str_index,(0x918+433-0xac9),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"
@@ -995,14 +1000,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=(0xcb+6632-0x1ab3);char StrValue[
-(0x12d2+2134-0x1b1e)]={(0x3d9+2310-0xcdf)};printf(
+T_zUfiSms_ModifyFlag*ptModifyBuff){int atRes=(0x1bef+1468-0x21ab);char StrValue[
+(0x605+6819-0x209e)]={(0x123f+3987-0x21d2)};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,
-(0x2dc+5080-0x16b4),sizeof(T_zUfiSms_ModifyIndexInfo));printf(
+(0x609+2793-0x10f2),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>
-(0x10af+154-0x1149)){if(ZUFI_FAIL==zUfiSms_GetUnreadSmsIndexInSim()){at_print(
+(0x1e1+6694-0x1c07)){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.
@@ -1021,22 +1026,22 @@
zUfiSms_DecodeSmsData(T_zUfiSms_DbStoreData*pDb_Data,int msg_index,
zUfiSms_StoreType iStorePos,T_SmsStatus bSms_Status,wms_message_format_enum_v01
format,long iPdu_Len,unsigned char*pPdu_Received){T_zUfiSms_RawTsData raw_ts;
-T_zUfiSms_ClientTsData ts_data_ptr;char tmp[(0x199d+402-0x1b25)];int tmp_i=
-(0x1290+2572-0x1c9c);unsigned int pos=(0xb0c+537-0xd25);int result=ZUFI_SUCC;if(
+T_zUfiSms_ClientTsData ts_data_ptr;char tmp[(0x184b+2685-0x22be)];int tmp_i=
+(0x23c+2980-0xde0);unsigned int pos=(0x2211+379-0x238c);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,
-(0x12f2+3882-0x221c),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
-(0x5c1+73-0x60a),sizeof(wms_client_ts_data_s_type));memset(tmp,
-(0x1cc+7400-0x1eb4),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
-pPdu_Received[(0x1c4+5751-0x183b)]);tmp_i=atoi(tmp);if(tmp_i<(0x206b+367-0x21da)
-||tmp_i>INT_MAX-(0x185a+244-0x194d)){at_print(LOG_ERR,
+(0x589+6137-0x1d82),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
+(0x1b28+1700-0x21cc),sizeof(wms_client_ts_data_s_type));memset(tmp,
+(0xd2b+2135-0x1582),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
+pPdu_Received[(0x613+3876-0x1537)]);tmp_i=atoi(tmp);if(tmp_i<
+(0x15b6+4154-0x25f0)||tmp_i>INT_MAX-(0x1296+4757-0x252a)){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+(0xd1b+486-0xf00);if(pos>=iPdu_Len){return
-ZUFI_FAIL;}raw_ts.len=iPdu_Len-pos;memcpy((void*)raw_ts.data,(void*)(
+,tmp_i);return ZUFI_FAIL;}pos=tmp_i+(0x16da+2539-0x20c4);if(pos>=iPdu_Len){
+return ZUFI_FAIL;}raw_ts.len=iPdu_Len-pos;memcpy((void*)raw_ts.data,(void*)(
pPdu_Received+pos),WMS_MAX_LEN);raw_ts.tpdu_type=zUfiSms_GetTpduType(
pPdu_Received+pos);raw_ts.format=(WMS_MESSAGE_FORMAT_CDMA_V01==format)?
WMS_FORMAT_CDMA:WMS_FORMAT_GW_PP;(void)wms_ts_decode(&raw_ts,&ts_data_ptr);
@@ -1045,62 +1050,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[
-(0x13a0+2895-0x1ecb)]={(0xce7+4336-0x1dd7)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit
-,sizeof(IsInit));if((0x362+4779-0x160d)==strcmp("\x6f\x6b",IsInit)){printf(
+(0xf0a+3845-0x1deb)]={(0x1520+1420-0x1aac)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit
+,sizeof(IsInit));if((0x3c3+4715-0x162e)==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 (0x9ab+5587-0x1f7e)
+#if (0x2679+52-0x26ad)
int zUfiSms_FormatSms(CHAR*pSmsRawContent,int contentSize,T_zUfiSms_SmsItem*
-ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x4e7+7501-0x2208)))
-;if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0xba3+5578-0x216c)),
-((char)(0x8e2+6155-0x20c1)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((char
-*)(P2+(0x434+6284-0x1cbf)),((char)(0x38b+5981-0x1abc)));atBase_PreProcRes(
-pSmsRawContent,contentSize);if((0x314+8821-0x2588)==iCmdId){if(P3==P2+
-(0xf6b+2562-0x196c)){sscanf(pSmsRawContent,
+ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x9af+3069-0x1580)))
+;if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0x54d+7305-0x21d5)),
+((char)(0xe96+3862-0x1d80)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((char
+*)(P2+(0x10b9+616-0x1320)),((char)(0x117d+2673-0x1bc2)));atBase_PreProcRes(
+pSmsRawContent,contentSize);if((0x637+3146-0x1280)==iCmdId){if(P3==P2+
+(0x100+8800-0x235f)){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(
-(0x110d+2042-0x1905)==iCmdId){if(P2==P1+(0xc05+1706-0x12ae)){sscanf(
+(0x2f3+8849-0x2582)==iCmdId){if(P2==P1+(0x6f9+3919-0x1647)){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={(0x9d1+6843-0x248c)};
+WMS_CMD_PROCESSING;T_zUfiSms_DbStoreData db_data={(0x4e3+2235-0xd9e)};
zUfiSms_StoreType mem_store=WMS_STORAGE_TYPE_UIM_V01;unsigned char pdu_tmp[
-ZSMS_PDU_SIZE]={(0x5a3+6672-0x1fb3)};int total_count=(0xbff+5652-0x2213);int
-sim_capability=(0x1492+767-0x1791);printf(
+ZSMS_PDU_SIZE]={(0x528+5596-0x1b04)};int total_count=(0x1b21+82-0x1b73);int
+sim_capability=(0x416+3855-0x1325);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,(0x51f+5950-0x1c5d),sizeof
-(db_data));memset(pdu_tmp,(0x1033+1741-0x1700),sizeof(pdu_tmp));(void)
+,strlen(pSmsItem->pdu),pSmsItem->pdu);memset(&db_data,(0x132c+439-0x14e3),sizeof
+(db_data));memset(pdu_tmp,(0x1b2c+2536-0x2514),sizeof(pdu_tmp));(void)
String2Bytes(pSmsItem->pdu,pdu_tmp,(int)strlen(pSmsItem->pdu));
-#if (0x17e3+3340-0x24ee)
-zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0xb86+5378-0x2083)==
+#if (0x265+5984-0x19c4)
+zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0xd99+3707-0x1c0f)==
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 (0x1e7+2497-0xba7)
+#if (0x1798+455-0x195e)
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 (0xc72+1234-0x1143)
+#if (0xf96+2975-0x1b34)
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,-(0x57+8458-0x2160));{}
-#if (0xa31+1169-0xec1)
+(void)zUfiSms_WriteSmsToDb(&db_data,mem_store,-(0x1147+1844-0x187a));{}
+#if (0x2c+5799-0x16d2)
if(SMS_LOCATION_SIM==g_zUfiSms_CurLocation){CHAR simCapability[
-(0x5bc+4597-0x177f)]={(0x62f+6959-0x215e)};sc_cfg_get(
+(0x15da+3898-0x24e2)]={(0x6a2+1226-0xb6c)};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 +1115,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)!=(0x13b+8493-0x2268)){if((access(
-ZTE_WMS_TMP1_PATH,F_OK)==(0x2167+151-0x21fe))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
-(0x137b+4010-0x2325))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
-(0x3ff+94-0x45d)){printf(
+if(access(ZTE_WMS_DB_PATH,F_OK)!=(0xeca+3309-0x1bb7)){if((access(
+ZTE_WMS_TMP1_PATH,F_OK)==(0x15b+6656-0x1b5b))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
+(0x1bcb+946-0x1f7d))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
+(0x1497+922-0x1831)){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)==(0x564+1041-0x975))&&(access(
-ZTE_WMS_SEC_PATH,F_OK)!=(0x1689+3600-0x2499))){if(rename(ZTE_WMS_TMP0_PATH,
-ZTE_WMS_SEC_PATH)!=(0xd32+3318-0x1a28)){printf(
+);}}if((access(ZTE_WMS_TMP0_PATH,F_OK)==(0x1e9+8566-0x235f))&&(access(
+ZTE_WMS_SEC_PATH,F_OK)!=(0x269+5779-0x18fc))){if(rename(ZTE_WMS_TMP0_PATH,
+ZTE_WMS_SEC_PATH)!=(0x1d15+1440-0x22b5)){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)==(0xe9c+4968-0x2204)){char rnum_buf[
-(0x91c+2598-0x132a)]={(0x6bf+1549-0xccc)};char cmd[(0xa52+5929-0x20fb)]={
-(0x6e4+2640-0x1134)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZTE_WMS_SEC_PATH,F_OK)==(0xbcd+2031-0x13bc)){char rnum_buf[
+(0x141b+2306-0x1d05)]={(0x242+1611-0x88d)};char cmd[(0x65c+3736-0x1474)]={
+(0x424+8083-0x23b7)};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,47 +1138,48 @@
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[(0x955+6597-0x2310)]={(0x67c+294-0x7a2)};
+zUfiSms_CfgSmsNvInit(void){char tmp[(0x1ba+4106-0x11ba)]={(0x410+281-0x529)};
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,(0xa52+2097-0x1283),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
+pStatusInfo,(0x6e4+3683-0x1547),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
iCmdId;pStatusInfo->cmd_status=WMS_CMD_PROCESSING;pStatusInfo->err_code=
-ZTE_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0x7aa+3325-0x14a7);pStatusInfo
-->delete_failed_count=(0x998+2500-0x135c);(void)zUfiSms_SetCmdStatus(pStatusInfo
-);}void zUfiSms_CfgInit(void){char tmp[(0x1bf0+2133-0x243b)]={(0x7bd+1329-0xcee)
-};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=(0x31b+2440-0xca3);char buf[
-(0x12b0+1425-0x182d)]={(0x12ac+119-0x1323)};if(ZUFI_FAIL==
-zUfiSms_GetTagCountInDb(mem_store,WMS_TAG_TYPE_MT_NOT_READ_V01,&total_count)){
-return FALSE;}sprintf(buf,"\x25\x64",total_count);sc_cfg_set(
+ZTE_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0x195+6766-0x1c03);pStatusInfo
+->delete_failed_count=(0x2517+489-0x2700);(void)zUfiSms_SetCmdStatus(pStatusInfo
+);}void zUfiSms_CfgInit(void){char tmp[(0x132c+4891-0x263d)]={
+(0x13f+6329-0x19f8)};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=(0x62+9364-0x24f6);char buf[(0x120a+1651-0x1869)]={
+(0x148+230-0x22e)};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(
-(0xdfb+2379-0x1746)==total_count){return FALSE;}else{return TRUE;}}VOID
+(0xaf7+6341-0x23bc)==total_count){return FALSE;}else{return TRUE;}}VOID
zUfiSms_SendSmsStatusInfo(wms_message_status_info sms_op){
-T_zUfi_SmsStatusInfoInd ind={(0x227b+643-0x24fe)};CHAR temp[(0x264+3063-0xe29)]=
-{(0x4fa+7538-0x226c)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=
-(0x3e6+6269-0x1c62);}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=
-(0x7ea+7265-0x244a);}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.
-sms_unread_ind=(0x11ac+4633-0x23c4);}else{ind.sms_unread_ind=(0x6e0+598-0x936);}
-sc_cfg_get("\x73\x6d\x73\x5f\x75\x6e\x72\x65\x61\x64\x5f\x63\x6f\x75\x6e\x74",
-temp,sizeof(temp));ind.sms_unread_count=atoi(temp);if((g_zUfiSms_MemFullFlag[
+T_zUfi_SmsStatusInfoInd ind={(0x72c+4212-0x17a0)};CHAR temp[(0x16e9+468-0x188b)]
+={(0x68f+7622-0x2455)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=(0x4cb+683-0x775)
+;}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=(0x111a+238-0x1207);}if(
+zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.sms_unread_ind=(0x1b5+7008-0x1d14);}
+else{ind.sms_unread_ind=(0xb54+4453-0x1cb9);}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=(0x1c1d+1118-0x207a);}else{ind.
-sms_memory_full_ind=(0x1546+244-0x163a);}printf(
+]==TRUE)){ind.sms_memory_full_ind=(0x1391+3131-0x1fcb);}else{ind.
+sms_memory_full_ind=(0x167+6998-0x1cbd);}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,(0x17fd+669-0x1a9a));if(ind.sms_memory_full_ind==
-(0x576+5752-0x1bed)){sc_cfg_set(NV_SMS_INIT_STATUS,
+T_zUfi_SmsStatusInfoInd),&ind,(0x6c1+7421-0x23be));if(ind.sms_memory_full_ind==
+(0x1391+3890-0x22c2)){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==(0x313+3012-0xed6)){sc_cfg_set(NV_SMS_INIT_STATUS,
+sms_unread_ind==(0x186+2221-0xa32)){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(
@@ -1182,7 +1188,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,(0x439+5927-0x1b5f),pushSmsLen,fp);if(len==
+);return;}len=fwrite(pushSms,(0x33d+3992-0x12d4),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 13fd581..ec18b6f 100755
--- a/ap/app/zte_comm/sms/src/sms_main.c
+++ b/ap/app/zte_comm/sms/src/sms_main.c
@@ -15,42 +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=(0x766+3786-0x1630);int g_zSms_MsqId=-
-(0x162d+3852-0x2538);int g_zSms_LocalMsqId=-(0x12e8+1356-0x1833);sem_t
-g_sms_sem_id;T_zSms_optRsp g_smsOptRsp={(0x31c+9186-0x26fe)};static const
+g_zUfiSms_IsConcatSendSuc;int iSmsIndex=(0x1a15+2051-0x2218);int g_zSms_MsqId=-
+(0x18f4+2181-0x2178);int g_zSms_LocalMsqId=-(0x218c+14-0x2199);sem_t
+g_sms_sem_id;T_zSms_optRsp g_smsOptRsp={(0x44d+708-0x711)};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},{(0x3e5+2529-0xdc6),NULL,FALSE}};VOID atWeb_SendSms(
-UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;T_zUfiSms_StatusInfo tStatus={
-(0x4a4+776-0x7ac)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)pDatabuf;
-zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_SEND);(void)zUfiSms_SendRawSms((
+atWeb_OutdateSmsCheck,TRUE},{(0x95c+3781-0x1821),NULL,FALSE}};VOID atWeb_SendSms
+(UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;T_zUfiSms_StatusInfo tStatus={
+(0x3c+7753-0x1e85)};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={(0x430+6274-0x1cb2)};T_zUfiSms_CmdStatus result=
-WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x73d+6230-0x1f93)};assert(
+){T_zUfiSms_DelReq tDelReq={(0xcbc+6177-0x24dd)};T_zUfiSms_CmdStatus result=
+WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x1027+5759-0x26a6)};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 (0x1d59+14-0x1d67)
+#if (0x1cc6+1544-0x22ce)
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,(0xfd6+2754-0x1a98),req
-->eBoxName);if(req->eBoxName==SMS_INBOX){sms_LoadSmsFromSim();}
+,req->eBoxName);SMS_DeleteRecordFromXML(SMS_LOCATION_SIM,(0x176c+2730-0x2216),
+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={
-(0xdc0+2721-0x1861)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)
+(0x14f4+1273-0x19ed)};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={(0x63+1265-0x554)};assert(
+WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x17ad+1067-0x1bd8)};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.
@@ -60,250 +60,250 @@
zUfiSms_ChangeMainState(SMS_STATE_SAVING);sc_cfg_set(NV_SMS_SAVE_RESULT,
"\x6f\x6b");}VOID atWeb_SetSms(UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;
T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={
-(0x11c0+1565-0x17dd)};printf(
+(0xae2+1147-0xf5d)};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={(0x180b+3790-0x26d9)};
+pDatabuf){T_zUfiSms_DelReq tSmsDel={(0xad6+2435-0x1459)};
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>(0x13f+9107-0x24d2)){
-atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x82b+1234-0xcfd),sizeof(
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0xd57+5951-0x2496)){
+atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x18a+8481-0x22ab),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>(0xfb9+2087-0x17e0)){
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0xd76+3693-0x1be3)){
atWeb_DelSmsByIndex(&tSmsDel);}}VOID zSms_HandleWebMsg(MSG_BUF*ptMsgBuf){UINT32
-i=(0x40f+733-0x6ec);assert(ptMsgBuf!=NULL);printf(
+i=(0x15cd+4061-0x25aa);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((0x1e8a+2002-0x265c)!=SmsHandleWebTab[i].msg_id){if(
+,ptMsgBuf->usMsgCmd);while((0xff8+219-0x10d3)!=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,(0xd5b+1326-0x1289));}else if(NULL!=SmsHandleWebTab[i].
+ptMsgBuf->aucDataBuf,(0x1459+162-0x14fb));}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,(0x10a8+1262-0x1596));return(0x116f+1563-0x178a);}SINT32
-zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x16a3+551-0x18ca)};
-memset(&sendSmsInfo,(0x2a5+8489-0x23ce),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
+unsigned char*)pData,(0x968+4681-0x1bb1));return(0x1231+533-0x1446);}SINT32
+zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x9d5+7294-0x2653)};
+memset(&sendSmsInfo,(0x9f6+2670-0x1464),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
length=g_zUfiSms_FinalCmgsBuf.length;if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<
-ZSMS_PDU_SIZE-(0xb96+1360-0x10e5)){memcpy(sendSmsInfo.pdu,g_zUfiSms_FinalCmgsBuf
+ZSMS_PDU_SIZE-(0x18f6+293-0x1a1a)){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-(0x5d2+1677-0xc5d));}*(sendSmsInfo.pdu+strlen(
+ZSMS_PDU_SIZE-(0x9d8+4797-0x1c93));}*(sendSmsInfo.pdu+strlen(
g_zUfiSms_FinalCmgsBuf.pdu))=ZSMS_CTRL_Z_CHAR;
-#if (0x16ff+1439-0x1c9d)
+#if (0x93b+6838-0x23f0)
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==(0x10bb+3323-0x1db5)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0xdc1+2193-0x1651)){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-(0xe33+2413-0x179f)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0xd5+8984-0x23ec)].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-(0x428+3742-0x12c5)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x5af+830-0x8ec)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x233+6411-0x1b3d)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x1093+34-0x10b4)){
g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc();}SINT32 zSms_SendCmgdReq
-(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0x937+3481-0x16d0)};delSmsReq.index=
+(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0xa11+5981-0x216e)};delSmsReq.index=
index;zSms_SendMsg(MSG_CMD_DELSMS_REQ,sizeof(T_zSms_DelSmsReq),&delSmsReq);
-sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x55+6138-0x184e)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x1f2d+660-0x21c0)){return
ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmgdOk(VOID){CHAR
-strUsed[(0xc95+3617-0x1aac)]={(0x4e0+2679-0xf57)};int used=(0x641+2656-0x10a1);
-int tmp_i=(0x6d7+1300-0xbeb);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+strUsed[(0x284+7099-0x1e35)]={(0x11d+1573-0x742)};int used=(0x87c+7071-0x241b);
+int tmp_i=(0x3f6+3609-0x120f);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<(0x19e3+920-0x1d7b)||tmp_i>INT_MAX-(0x1fb1+1413-0x2535)){
+strUsed);if(tmp_i<(0x408+7812-0x228c)||tmp_i>INT_MAX-(0x10d3+1548-0x16de)){
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=(0x1068+2840-0x1b80);}used=tmp_i-(0x1eff+385-0x207f);if(used<
-(0x1344+4557-0x2511)){used=(0x17e8+962-0x1baa);}memset(&strUsed,
-(0xe1a+1062-0x1240),(0x15f+4154-0x118f));snprintf(strUsed,sizeof(strUsed),
+,tmp_i);tmp_i=(0x72d+6142-0x1f2b);}used=tmp_i-(0x1d9+6169-0x19f1);if(used<
+(0x1526+2395-0x1e81)){used=(0x1647+1739-0x1d12);}memset(&strUsed,
+(0x12+3091-0xc25),(0xf71+394-0x10f1));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[(0xff2+1493-0x15bd)]={
-(0x7c4+2958-0x1352)};CHAR strTotal[(0x7af+2075-0xfc0)]={(0x1200+3474-0x1f92)};
-CHAR strUsed[(0x8a5+3843-0x179e)]={(0xea4+5781-0x2539)};int total=
-(0xbe8+448-0xda8);int used=(0x202+6794-0x1c8c);int remain=(0x5aa+6282-0x1e34);
+);}VOID zSms_RecvCmgdFinish(VOID){char StrValue[(0x1dd5+190-0x1e89)]={
+(0x8f+3080-0xc97)};CHAR strTotal[(0x20cc+1413-0x2647)]={(0x1f2d+864-0x228d)};
+CHAR strUsed[(0x69a+4321-0x1771)]={(0xbed+5581-0x21ba)};int total=
+(0xd31+4810-0x1ffb);int used=(0x150a+230-0x15f0);int remain=(0x23fc+131-0x247f);
sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
-strUsed);if(used<(0xc30+6712-0x2668)||used>INT_MAX-(0x186a+675-0x1b0c)){at_print
-(LOG_ERR,
+strUsed);if(used<(0x1ad0+2896-0x2620)||used>INT_MAX-(0x2196+380-0x2311)){
+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=(0x3a7+4116-0x13bb);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
-strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0x93+5692-0x16cf)||
-total>INT_MAX-(0x24+9009-0x2354)){at_print(LOG_ERR,
+,used);used=(0x13a8+4095-0x23a7);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
+strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0x1af0+946-0x1ea2)||
+total>INT_MAX-(0xba9+147-0xc3b)){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=(0xf05+2315-0x1810);}remain=total-used;if(remain<
-(0x100c+2731-0x1ab7)){remain=(0xaf+5625-0x16a8);}memset(&StrValue,
-(0x1a2+4840-0x148a),(0xde0+5083-0x21b1));snprintf(StrValue,sizeof(StrValue),
+,total);total=(0x715+4605-0x1912);}remain=total-used;if(remain<
+(0x11a2+5463-0x26f9)){remain=(0x458+1712-0xb08);}memset(&StrValue,
+(0x665+1310-0xb83),(0x13b+1779-0x824));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={(0x109b+4383-0x21ba)};storageReq.type=avail;zSms_SendMsg(
+storageReq={(0x40c+3230-0x10aa)};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==(0x13b7+3036-0x1f92)){return ZSMS_RESULT_OK
-;}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCmgrReq(UINT8 index){
-T_zSms_ModifyTagReq modTagReq={(0x14e7+2024-0x1ccf)};modTagReq.index=index;
+g_sms_sem_id);if(g_smsOptRsp.result==(0xc18+5406-0x2135)){return ZSMS_RESULT_OK;
+}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCmgrReq(UINT8 index){
+T_zSms_ModifyTagReq modTagReq={(0x156+2387-0xaa9)};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==(0x20ef+757-0x23e3)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x144b+2002-0x1c1c)){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)-
-(0x1488+18-0x1499));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),&
-setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x1a88+2846-0x25a5)){
+(0x14b+2281-0xa33));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),&
+setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x2a+9675-0x25f4)){
return ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCnmiReq(PSTR
- pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0xb3f+4023-0x1af6)};if(
-(0x500+2321-0xe11)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
-(0x67b+2801-0x116b);}else{notifySetReq.mt=(0x478+7488-0x21b6);}zSms_SendMsg(
+ pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0x7f0+6939-0x230b)};if(
+(0xef4+2680-0x196c)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
+(0x557+7981-0x2483);}else{notifySetReq.mt=(0x9df+7017-0x2546);}zSms_SendMsg(
MSG_CMD_NOTIFY_SET_REQ,sizeof(T_zSms_NotifySetReq),¬ifySetReq);sem_wait(&
-g_sms_sem_id);if(g_smsOptRsp.result==(0xd7a+4603-0x1f74)){return ZSMS_RESULT_OK;
-}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmtInd(UINT8*pDatabuf){CHAR
-needSMS[(0xa4f+1935-0x11ac)]={(0xba9+1429-0x113e)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1710+83-0x1763)==strcmp(
+g_sms_sem_id);if(g_smsOptRsp.result==(0x1be3+2624-0x2622)){return ZSMS_RESULT_OK
+;}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmtInd(UINT8*pDatabuf){CHAR
+needSMS[(0x10a0+5107-0x2461)]={(0x25c+8996-0x2580)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xc33+3893-0x1b68)==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={(0x610+4509-0x17ad)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0x51d+3393-0x125e)};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[(0x431+165-0x4b8)]={
-(0x9c0+6902-0x24b6)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
-CHAR needSMS[(0x2d3+70-0x2e7)]={(0x360+2885-0xea5)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x932+5767-0x1fb9)==strcmp(
+zSms_RecvCmtiInd(UINT8*pDatabuf){char sms_Main_state[(0x1125+5172-0x253b)]={
+(0x373+5982-0x1ad1)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
+CHAR needSMS[(0xc6a+1273-0x1131)]={(0xf0+9394-0x25a2)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x13b6+1149-0x1833)==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")==
-(0x1775+2073-0x1f8e)){printf(
+(0x27f+8020-0x21d3)){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((0x2b8+8718-0x24c6)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0x4f1+332-0x63b))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0xeb3+4684-0x20ff)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0x1454+3197-0x20cf))){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[(0x1990+1607-0x1fa5)]={(0x17b8+724-0x1a8c)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1346+1223-0x180d)==strcmp(
-needSMS,"\x6e\x6f")){printf(
+needSMS[(0x36c+796-0x656)]={(0x634+3986-0x15c6)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0x33f+7140-0x1f23)==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={(0x109f+4997-0x2424)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0xc4a+5900-0x2356)};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[(0x866+1949-0xfe5)]={
-(0x1221+1296-0x1731)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf
-;CHAR needSMS[(0x1220+2734-0x1c9c)]={(0x11d+9319-0x2584)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xdbd+5550-0x236b)==strcmp(
+zSms_RecvCdsiInd(UINT8*pDatabuf){char sms_Main_state[(0xead+6252-0x26fb)]={
+(0x92+9318-0x24f8)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
+CHAR needSMS[(0x17ab+2671-0x21e8)]={(0x10e6+5566-0x26a4)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1135+4398-0x2263)==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")==
-(0xd4+2013-0x8b1)){printf(
+(0x1519+3737-0x23b2)){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((0xbea+6433-0x250b)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0xfd6+1242-0x14ae))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0xb8f+2441-0x1518)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0x125a+1684-0x18ec))){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={(0xa3a+2370-0x137c)};CHAR ackPduStr[(0x1af+79-0x1cc)]={
-(0xa24+5973-0x2179)};ackReq.ackmode=ack_mode;if(ack_mode==(0x126c+2124-0x1ab6)){
-zUfiSms_EncodePdu_DeliverReport(ackPduStr,(0x165+9220-0x2496));memcpy(ackReq.pdu
-,ackPduStr,strlen(ackPduStr));
-#if (0x23ef+527-0x25fe)
-if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0x9d3+4343-0x1ac9)){memcpy(ackReq.pdu,
+T_zSms_SmsAckReq ackReq={(0x223+4035-0x11e6)};CHAR ackPduStr[(0x886+676-0xaf8)]=
+{(0x2ea+4003-0x128d)};ackReq.ackmode=ack_mode;if(ack_mode==(0x459+1086-0x895)){
+zUfiSms_EncodePdu_DeliverReport(ackPduStr,(0x180+1632-0x70d));memcpy(ackReq.pdu,
+ackPduStr,strlen(ackPduStr));
+#if (0x14c1+4431-0x2610)
+if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0x112c+185-0x11e4)){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-(0x7e1+7843-0x2682));}
+,ackPduStr);memcpy(ackReq.pdu,ackPduStr,ZSMS_PDU_SIZE-(0x54f+5367-0x1a44));}
#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)/(0x67d+7542-0x23f1);}zSms_SendMsg(
+,ackReq.pdu);ackReq.length=strlen(ackPduStr)/(0x1199+3824-0x2087);}zSms_SendMsg(
MSG_CMD_SMSACK_REQ,sizeof(T_zSms_SmsAckReq),&ackReq);sem_wait(&g_sms_sem_id);if(
-g_smsOptRsp.result==(0xbcb+863-0xf29)){return ZSMS_RESULT_OK;}else{return
+g_smsOptRsp.result==(0x58d+7300-0x2210)){return ZSMS_RESULT_OK;}else{return
ZSMS_RESULT_ERROR;}}int zSms_SendZmgrReq(int index){T_zSms_ReadSmsReq readSmsReq
-={(0x1a5b+715-0x1d26)};iSmsIndex=index;printf(
+={(0x1430+958-0x17ee)};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(0xd2+7538-0x1e44);}VOID zSms_RecvZmgrRsp(
-UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0x60a+779-0x915)};memcpy(&tCmgrRsp,(
+T_zSms_ReadSmsReq),&readSmsReq);return(0x246+2841-0xd5f);}VOID zSms_RecvZmgrRsp(
+UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0xb6b+1341-0x10a8)};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={(0x12f3+4694-0x2549)};memcpy(&smsOptRsp
-,(T_zSms_optRsp*)pDatabuf,sizeof(T_zSms_optRsp));if(smsOptRsp.result==
-(0x7aa+2245-0x106e)){sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{printf(
+UINT8*pDatabuf){T_zSms_optRsp smsOptRsp={(0xbd4+2989-0x1781)};memcpy(&smsOptRsp,
+(T_zSms_optRsp*)pDatabuf,sizeof(T_zSms_optRsp));if(smsOptRsp.result==
+(0x62+5080-0x1439)){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((
-(0x14d6+2915-0x2038)==ptPara->result)&&((0x1036+5373-0x2533)==ptPara->opertype))
-{CHAR needSms[(0x1746+3131-0x234f)]={(0x23a+3709-0x10b7)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0xa4c+1932-0x11d8)!=strcmp(
+(0x18d9+727-0x1baf)==ptPara->result)&&((0xa0b+5199-0x1e5a)==ptPara->opertype)){
+CHAR needSms[(0xf2+2400-0xa20)]={(0x60b+2994-0x11bd)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0x951+5568-0x1f11)!=strcmp(
needSms,"\x6e\x6f")){zSvr_Zpbic_Sms_Init();}}}VOID zSms_RecvCpmsInd(UINT8*
pDatabuf){T_zSms_CpmsInd*cpmsInd=(T_zSms_CpmsInd*)pDatabuf;CHAR strBuf[
-(0x1c5a+748-0x1f3c)]={(0xb76+108-0xbe2)};int remainSpace=(0x5c9+1111-0xa20);
+(0x1447+2465-0x1dde)]={(0x8d+6505-0x19f6)};int remainSpace=(0x1f08+1451-0x24b3);
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,(0x1219+2491-0x1bd4),
-(0x7ba+4402-0x18e2));snprintf(strBuf,sizeof(strBuf),"\x25\x64",cpmsInd->used);
+ZTE_WMS_NVCONFIG_SIM_CAPABILITY,strBuf);memset(&strBuf,(0xacf+6769-0x2540),
+(0x7df+1497-0xdae));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,(0xd73+89-0xdcc),(0x6bc+3050-0x129c));snprintf(
+cpmsInd->used;memset(&strBuf,(0x3a1+1716-0xa55),(0x1bb8+2808-0x26a6));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 (0x506+2823-0xfcd)
+#define AT_CMD_MAX (0x63f+7374-0x22cd)
#define ZAT_TAB_REPLACE ((unsigned char )(\
-(0x148c+3616-0x21b0)))
+(0xae7+6848-0x24ab)))
#define ZAT_NULL_FILL ((unsigned char )(\
-(0xa86+2370-0x12cb)))
-#define ZAT_SPACE_REPLACE ((unsigned char )((0x5fa+1955-0xc9f)\
+(0xc66+5973-0x22be)))
+#define ZAT_SPACE_REPLACE ((unsigned char )((0x4ad+1109-0x804)\
))
#define ZAT_LF_REPLACE ((unsigned char )(\
-(0xf07+3511-0x1bc3)))
-#define ZAT_CR_REPLACE ((unsigned char )((0x4a1+1838-0xad5)\
+(0x1af1+361-0x1b5f)))
+#define ZAT_CR_REPLACE ((unsigned char )((0x330+1958-0x9dc)\
))
static void atBase_PreProcRes(char*pParaLine,int paraSize){signed long flg=
-(0x9d+5589-0x1672);unsigned long i=(0x39b+7400-0x2083);unsigned long length=
-(0x1282+1602-0x18c4);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=
-(char*)malloc(AT_CMD_MAX);if(NULL==pStrDestMalloc){return;}memset(pStrDestMalloc
-,(0x5f5+1728-0xcb5),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
-length=strlen(pParaLine);if((length==(0x14c8+1178-0x1962))||(length>=AT_CMD_MAX)
-){free(pStrDestMalloc);return;}for(i=(0x1e1c+196-0x1ee0);(i<length)&&(pDest-
-pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0xf5a+713-0x1201))==*pSource){flg=(
-(0xa4d+4772-0x1cf1)==flg)?(0x148c+4485-0x2610):(0x1288+3724-0x2114);if(
-((char)(0x1904+1408-0x1e62))==*(pSource+(0x718+6338-0x1fd9))){*pDest++=(char)
-ZAT_NULL_FILL;}}else if((((char)(0x1017+1236-0x14bf))==*pSource)&&(
-(0x14a6+637-0x1723)==flg)){*pDest++=((char)(0x572+6820-0x1ff6));if(
-((char)(0x888+712-0xb24))==*(pSource+(0xe6+2634-0xb2f))){*pDest++=
-((char)(0x13a5+3848-0x2274));}else if('\0'==*(pSource+(0xaeb+407-0xc81))){*pDest
-++=(char)ZAT_NULL_FILL;}}else{if((((char)(0x1618+1858-0x1d3a))==*pSource)&&(
-(0x9ea+743-0xcd0)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
-pSource)&&((0x392+3508-0x1145)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
-'\n'==*pSource)&&((0x1e67+1570-0x2488)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}
-else if(('\r'==*pSource)&&((0xc45+762-0xf3e)==flg)){*pDest++=(char)
-ZAT_CR_REPLACE;}else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,
-(0x18cf+3164-0x252b),paraSize);strncpy(pParaLine,pStrDestMalloc,paraSize-
-(0x5f9+3327-0x12f7));free(pStrDestMalloc);}VOID zSms_RecvCscaInd(UINT8*pDatabuf)
-{T_zSms_CscaInd cscaInd={(0x2ac+807-0x5d3)};
-#if (0x8ca+2395-0x1224)
+(0x2c1+214-0x397);unsigned long i=(0x193b+653-0x1bc8);unsigned long length=
+(0xcca+714-0xf94);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=(
+char*)malloc(AT_CMD_MAX);if(NULL==pStrDestMalloc){return;}memset(pStrDestMalloc,
+(0x1d70+2391-0x26c7),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
+length=strlen(pParaLine);if((length==(0x95a+1799-0x1061))||(length>=AT_CMD_MAX))
+{free(pStrDestMalloc);return;}for(i=(0x13a5+1559-0x19bc);(i<length)&&(pDest-
+pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x33f+604-0x579))==*pSource){flg=(
+(0x74c+11-0x757)==flg)?(0x13a+5308-0x15f5):(0xd35+690-0xfe7);if(
+((char)(0xe0f+6146-0x25ef))==*(pSource+(0x761+126-0x7de))){*pDest++=(char)
+ZAT_NULL_FILL;}}else if((((char)(0x89c+5193-0x1cb9))==*pSource)&&(
+(0x1e1+3336-0xee9)==flg)){*pDest++=((char)(0xc51+3374-0x195f));if(
+((char)(0x1102+2095-0x1905))==*(pSource+(0x18ab+2065-0x20bb))){*pDest++=
+((char)(0xcb6+4967-0x1fe4));}else if('\0'==*(pSource+(0x99f+4395-0x1ac9))){*
+pDest++=(char)ZAT_NULL_FILL;}}else{if((((char)(0x7c8+5973-0x1efd))==*pSource)&&(
+(0x2356+460-0x2521)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
+pSource)&&((0x1868+3258-0x2521)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
+'\n'==*pSource)&&((0x1163+632-0x13da)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}else
+ if(('\r'==*pSource)&&((0x5cb+2760-0x1092)==flg)){*pDest++=(char)ZAT_CR_REPLACE;
+}else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,(0xe73+2338-0x1795),
+paraSize);strncpy(pParaLine,pStrDestMalloc,paraSize-(0x1c71+1975-0x2427));free(
+pStrDestMalloc);}VOID zSms_RecvCscaInd(UINT8*pDatabuf){T_zSms_CscaInd cscaInd={
+(0x1e88+1737-0x2551)};
+#if (0x4+8332-0x208f)
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 (0xe51+207-0xf1f)
+#if (0x19e4+2465-0x2384)
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);
@@ -311,22 +311,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,
-(0x10ec+1219-0x15af),NULL);return(0x24df+57-0x2518);}VOID zSms_initAtOk(VOID){
-T_zUfiSms_StatusInfo tStatus={(0x178+212-0x24c)};sc_cfg_set(NV_SMS_STORE,
+(0x1ba+719-0x489),NULL);return(0x3f1+2326-0xd07);}VOID zSms_initAtOk(VOID){
+T_zUfiSms_StatusInfo tStatus={(0xe24+4173-0x1e71)};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={(0x12c8+154-0x1362)};sc_cfg_set(NV_SMS_LOAD_RESULT
+T_zUfiSms_StatusInfo tStatus={(0xafb+3673-0x1954)};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==
-(0xe61+710-0x1126)){zSms_initAtOk();}else{zSms_initAtErr();}}UINT8
+(0x1386+1873-0x1ad6)){zSms_initAtOk();}else{zSms_initAtErr();}}UINT8
zSms_SmsMsgCreat(VOID){g_zSms_MsqId=msgget(MODULE_ID_SMS,IPC_CREAT|
-(0x564+5565-0x19a1));if(g_zSms_MsqId==-(0x60f+3459-0x1391)){return ZUFI_FAIL;}
-g_zSms_LocalMsqId=msgget(MODULE_ID_SMS_LOCAL,IPC_CREAT|(0x1900+3963-0x26fb));if(
-g_zSms_LocalMsqId==-(0x10f2+2087-0x1918)){return ZUFI_FAIL;}sem_init(&
-g_sms_sem_id,(0x14ac+2364-0x1de8),(0x1dd+3468-0xf69));return ZUFI_SUCC;}void
+(0x13cb+3924-0x219f));if(g_zSms_MsqId==-(0xc39+5937-0x2369)){return ZUFI_FAIL;}
+g_zSms_LocalMsqId=msgget(MODULE_ID_SMS_LOCAL,IPC_CREAT|(0xc23+5037-0x1e50));if(
+g_zSms_LocalMsqId==-(0x1f53+1684-0x25e6)){return ZUFI_FAIL;}sem_init(&
+g_sms_sem_id,(0x4d7+1879-0xc2e),(0xf20+645-0x11a5));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:
@@ -350,44 +350,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,
-(0x1c0b+1802-0x2315));break;default:break;}}VOID zSms_HandleResetToFactory(){
-CHAR clearSms[(0x2a8+2264-0xb4e)]={(0xf6+5583-0x16c5)};sc_cfg_get(
+(0x1842+1453-0x1def));break;default:break;}}VOID zSms_HandleResetToFactory(){
+CHAR clearSms[(0x8c2+2347-0x11bb)]={(0x1d77+441-0x1f30)};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")==(0x5af+5131-0x19ba)){printf(
+,clearSms);if(strcmp(clearSms,"\x79\x65\x73")==(0x147f+157-0x151c)){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,(0xf7d+1182-0x141b),NULL,
-(0x5cb+3731-0x145e));}void zSms_HandleMainCtrlMsg(MSG_BUF*ptMsgBuf){assert(
+MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,(0x1572+1465-0x1b2b),NULL,
+(0x1d29+1829-0x244e));}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=(0x370+5567-0x192f);MSG_BUF stMsg={
-(0xa16+4816-0x1ce6)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((int
+sms_msg_thread_proc(void*arg){int iRet=(0x211+1842-0x943);MSG_BUF stMsg={
+(0x507+5418-0x1a31)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((int
*)arg);prctl(PR_SET_NAME,"\x73\x6d\x73\x5f\x6c\x6f\x63\x61\x6c",
-(0x25d+600-0x4b5),(0x1dc8+1835-0x24f3),(0x17b6+3055-0x23a5));while(
-(0x7a1+6789-0x2225)){iRet=(0x2b3+2988-0xe5f);memset(&stMsg,(0x1adc+1786-0x21d6),
-sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x194+478-0x372),
-(0xfa+530-0x30c));if(iRet>=(0xc22+101-0xc87)){switch(stMsg.src_id){case
+(0x17fb+1864-0x1f43),(0xa4d+3782-0x1913),(0x1b0f+526-0x1d1d));while(
+(0x1078+4458-0x21e1)){iRet=(0x86+7396-0x1d6a);memset(&stMsg,(0x3fc+5663-0x1a1b),
+sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x26+7781-0x1e8b),
+(0x1390+2915-0x1ef3));if(iRet>=(0x10d+8553-0x2276)){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=(0xc61+6087-0x2428);MSG_BUF msgBuf={(0x46d+7511-0x21c4)};CHAR
-needSMS[(0x10fc+2815-0x1bc9)]={(0x632+5758-0x1cb0)};prctl(PR_SET_NAME,
-"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x1033+676-0x12d7),(0x18d+7091-0x1d40),
-(0xec2+10-0xecc));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(
-needSMS));if((0x15ad+1219-0x1a70)!=strcmp(needSMS,"\x6e\x6f")){zUfiSms_InitDb();
-zUfiSms_CfgSmsNvInit();zUfiMmi_SendSmsStatus();zSms_SmsMsgCreat();}else{return-
-(0xc33+1295-0x1141);}printf(
+recv_thread_tid=(0xc20+6263-0x2497);MSG_BUF msgBuf={(0xb49+6667-0x2554)};CHAR
+needSMS[(0xe43+5131-0x221c)]={(0xb76+3505-0x1927)};prctl(PR_SET_NAME,
+"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x283+6855-0x1d4a),(0x961+4883-0x1c74),
+(0x61f+1882-0xd79));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
+sizeof(needSMS));if((0x710+6295-0x1fa7)!=strcmp(needSMS,"\x6e\x6f")){
+zUfiSms_InitDb();zUfiSms_CfgSmsNvInit();zUfiMmi_SendSmsStatus();zSms_SmsMsgCreat
+();}else{return-(0x32+977-0x402);}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))==-(0x1797+809-0x1abf)){assert((0x112c+5091-0x250f));}
-sms_msg_thread_proc(&g_zSms_MsqId);return(0x5cd+4711-0x1834);}
+*)(&g_zSms_LocalMsqId))==-(0xc9+1188-0x56c)){assert((0x1147+698-0x1401));}
+sms_msg_thread_proc(&g_zSms_MsqId);return(0x1410+3138-0x2052);}
diff --git a/ap/app/zte_comm/sms/src/sms_proc.c b/ap/app/zte_comm/sms/src/sms_proc.c
index 8fe6c98..69c3cb6 100755
--- a/ap/app/zte_comm/sms/src/sms_proc.c
+++ b/ap/app/zte_comm/sms/src/sms_proc.c
@@ -5,115 +5,115 @@
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={(0x726+7002-0x2280)};
-T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0x1b2d+998-0x1f13)};
-T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0x1d31+923-0x20cc)};int
-g_zUfiSms_UnitLen=(0x2521+438-0x26d7);int g_zUfiSms_ConcatTotalNum=
-(0x10bf+4949-0x2414);int g_zUfiSms_CurConcatSegNo=(0x10e9+1272-0x15e1);UINT8
-g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0x92a+712-0xbf2);
-int g_zUfiSms_MsgRefer=(0x155+6891-0x1c40);int g_zUfiSms_SendFailedRetry=
-(0xf25+224-0x1005);char g_Zmena_value[(0x1473+3246-0x211f)]={(0x3d1+2802-0xec3)}
-;int g_displaymode=(0x220+6313-0x1ac9);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={(0x1a3+9026-0x24e5)};
+T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0x1133+1151-0x15b2)};
+T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0x3d8+4323-0x14bb)};int
+g_zUfiSms_UnitLen=(0x66f+1081-0xaa8);int g_zUfiSms_ConcatTotalNum=
+(0x1831+2572-0x223d);int g_zUfiSms_CurConcatSegNo=(0xac8+5408-0x1fe8);UINT8
+g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0x9b2+1734-0x1078)
+;int g_zUfiSms_MsgRefer=(0xdf9+84-0xe4d);int g_zUfiSms_SendFailedRetry=
+(0x320+5666-0x1942);char g_Zmena_value[(0x67a+3150-0x12c6)]={(0x680+7542-0x23f6)
+};int g_displaymode=(0x4cf+8494-0x25fd);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[
-(0x20dc+495-0x22bf)];}FOTA_MSG_BUF;
-#define WEBUI_NOTIFY_PUSH_MSG_ (0xc72+4835-0x1f52)
+(0xfa+9460-0x25e2)];}FOTA_MSG_BUF;
+#define WEBUI_NOTIFY_PUSH_MSG_ (0x510+7251-0x2160)
typedef struct{unsigned int isread_record;unsigned int inbox_full;}
T_zUfiMmi_SmsRecord;void zUfiMmi_SendSmsStatus(void){int iSmsNum=
-(0xa89+3152-0x16d9);T_zUfiMmi_SmsRecord tRecord={(0x3db+8220-0x23f7)};CHAR
-smsNum[(0xfbf+3452-0x1d09)]={(0x6eb+3532-0x14b7)};sc_cfg_get(NV_SMS_IN_NUM,
+(0x2d0+4584-0x14b8);T_zUfiMmi_SmsRecord tRecord={(0x68d+3343-0x139c)};CHAR
+smsNum[(0x5e5+3152-0x1203)]={(0x1029+3347-0x1d3c)};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=(0x453+8819-0x26c5);}else{tRecord.inbox_full=(0x1c13+1384-0x217b);}}
+inbox_full=(0x141b+3336-0x2122);}else{tRecord.inbox_full=(0x1e9+195-0x2ac);}}
VOID zUfiSms_Init(VOID){zUfiSms_CfgInit();zUfiSms_ChangeMainState(
-SMS_STATE_INITING);}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=
-(0x15cb+1412-0x1b4f);T_zUfiSms_StatusInfo tStatus={(0xbd5+4050-0x1ba7)};CHAR
-outDate[(0x118+5509-0x166b)]={(0x10d1+1132-0x153d)};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(
-(0xc8d+6600-0x2655));at_print(LOG_DEBUG,
+SMS_STATE_INITING);}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=(0x8f5+3677-0x1752)
+;T_zUfiSms_StatusInfo tStatus={(0x146+3526-0xf0c)};CHAR outDate[
+(0x6bd+2320-0xf9b)]={(0x896+2189-0x1123)};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(
+(0x1844+2812-0x2340));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((0x197+5497-0x1710)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck(
+,outDate);if((0x13b+4793-0x13f4)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck(
ZUFI_NULL);}}VOID zUfiSms_DeleteAllSimSms(VOID){zUfiSms_DeleteAllSimSmsInDb();}
-#if (0x19e2+2721-0x2483)
-VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0xd85+2561-0x1754)]={
-(0x9ac+456-0xb74)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
-g_Zmena_rsp&&((0x625+4917-0x195a)!=strcmp(
-"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0x115d+2167-0x19d4)!=
+#if (0x37a+2263-0xc51)
+VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0xb31+443-0xcba)]={
+(0xf4c+2961-0x1add)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
+g_Zmena_rsp&&((0x17dc+173-0x1889)!=strcmp(
+"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0x15f9+4245-0x268e)!=
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 (0x7+2784-0xae7)
-CHAR ackPduStr[(0x799+640-0x889)]={(0x589+7331-0x222c)};SMS_PARAM reportParam={
-(0x5+9546-0x254f)};int total_length=(0x2c3+2576-0xcd3);UINT8 TP_FCS=
-(0x1f44+1646-0x25b2);CHAR strValue[(0xd51+2389-0x16a4)]={(0x330+3354-0x104a)};if
-(needAck){TP_FCS=(0x575+1889-0xcd6);sprintf(strValue,"\x25\x64",
-(0x19e3+516-0x1be6));}else{TP_FCS=(0x6f5+6902-0x2118);sprintf(strValue,
-"\x25\x64",(0x48+9505-0x2567));}sprintf(reportParam.SCA,"\x25\x73",cfg_get(
+#if (0x5fa+7104-0x21ba)
+CHAR ackPduStr[(0x26b5+96-0x2585)]={(0x199d+1524-0x1f91)};SMS_PARAM reportParam=
+{(0xa8d+999-0xe74)};int total_length=(0x5d4+2376-0xf1c);UINT8 TP_FCS=
+(0x4e3+4952-0x183b);CHAR strValue[(0xf37+4271-0x1fe4)]={(0x111+9669-0x26d6)};if(
+needAck){TP_FCS=(0x2018+1727-0x26d7);sprintf(strValue,"\x25\x64",
+(0x12e1+447-0x149f));}else{TP_FCS=(0x1018+3559-0x1d2c);sprintf(strValue,
+"\x25\x64",(0xc29+492-0xe13));}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,(0x1775+2971-0x2310),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu
-.length=String2Bytes(ackPduStr,g_zUfiSms_ackPdu.pdu,strlen(ackPduStr));memset(
-g_zUfiSms_ackPdu.pdu,(0x1e6d+339-0x1fc0),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
+g_zUfiSms_ackPdu,(0xf1b+220-0xff7),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu.
+length=String2Bytes(ackPduStr,g_zUfiSms_ackPdu.pdu,strlen(ackPduStr));memset(
+g_zUfiSms_ackPdu.pdu,(0x12e5+380-0x1461),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
g_zUfiSms_ackPdu.pdu,&ackPduStr,sizeof(ackPduStr));atBase_SendMsgToSelf(
ZAT_CNMA_CMD,strValue,sizeof(strValue));
#endif
-#if (0x10c4+3999-0x2063)
-CHAR strValue[(0x1323+110-0x138f)]={(0x5+7539-0x1d78)};if(needAck){snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0x12fd+1933-0x1a89));}else{snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0x1c2+2084-0x9e4));}zSvr_InnerSendMsg(
+#if (0x1ef4+2002-0x26c6)
+CHAR strValue[(0x5b4+5900-0x1cbe)]={(0x957+7591-0x26fe)};if(needAck){snprintf(
+strValue,sizeof(strValue),"\x25\x64",(0x64b+2079-0xe69));}else{snprintf(strValue
+,sizeof(strValue),"\x25\x64",(0xe5b+2196-0x16ed));}zSvr_InnerSendMsg(
ZUFI_MODULE_ID_AT_LOCAL,ZUFI_MODULE_ID_AT_UNSOLI,MSG_CMD_AT_CNMA,strlen(strValue
),strValue);
#endif
-if(needAck){zSms_SendCnmaReq((0xbfb+2944-0x177a));}else{zSms_SendCnmaReq(
-(0x1318+4769-0x25b7));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq
-*ptSendMsg){if(NULL==ptSendMsg||(0x151b+2990-0x20c9)==ptSendMsg->receiver_count)
-{return WMS_CMD_FAILED;}at_print(LOG_DEBUG,
+if(needAck){zSms_SendCnmaReq((0xb13+1520-0x1102));}else{zSms_SendCnmaReq(
+(0xb1a+7079-0x26bf));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq*
+ptSendMsg){if(NULL==ptSendMsg||(0x1142+3221-0x1dd7)==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[(0x1ae1+2866-0x2613)],ptSendMsg->
+,ptSendMsg->receiver_count,ptSendMsg->dest_num[(0xd2d+1262-0x121b)],ptSendMsg->
msg_len,ptSendMsg->id);
-#if (0x16a6+104-0x170d)
+#if (0x946+3643-0x1780)
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=(0x1607+1835-0x1d32)
-;if(ptSendMsg->isDelete==TRUE||-(0x58d+2277-0xe71)!=ptSendMsg->id){(void)
+sc_cfg_set(NV_SMS_SEND_RESULT,"");g_zUfiSms_SendFailedCount=(0x43a+5392-0x194a);
+if(ptSendMsg->isDelete==TRUE||-(0x43c+4666-0x1675)!=ptSendMsg->id){(void)
zUfiSms_DeleteDraftSms(ptSendMsg->id);}zUfiSms_SetGlobalDcsLang(ptSendMsg->dcs);
-memset(&g_zUfiSms_GroupSms,(0xd86+821-0x10bb),sizeof(g_zUfiSms_GroupSms));if(
+memset(&g_zUfiSms_GroupSms,(0x648+704-0x908),sizeof(g_zUfiSms_GroupSms));if(
ZUFI_FAIL==zUfiSms_FillGroupSms(ptSendMsg,&g_zUfiSms_GroupSms)){return
-WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0x834+4050-0x1806),sizeof(
+WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0x799+6731-0x21e4),sizeof(
g_zUfiSms_ConcatSms));g_zUfiSms_UnitLen=zUfiSms_FillConcatSms(ptSendMsg,&
g_zUfiSms_ConcatSms);g_zUfiSms_IsConcatSendSuc=TRUE;g_zUfiSms_CurConcatSegNo=
-(0xc1a+738-0xefc);memset(g_zUfiSms_DbStoreData,(0x194b+1068-0x1d77),sizeof(
-g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0x9a9+6126-0x218d)){
-g_displaymode=(0x12c0+3767-0x2176);at_print(LOG_DEBUG,
+(0xd45+324-0xe89);memset(g_zUfiSms_DbStoreData,(0x1bbd+2204-0x2459),sizeof(
+g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0x685+4460-0x17e7)){
+g_displaymode=(0x8a5+6975-0x23e3);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=(0x68+1599-0x6a7);at_print(LOG_DEBUG,
+);}else{g_displaymode=(0x1b56+1997-0x2323);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=(0x28a+8115-0x223d);T_zUfiSms_CmdStatus result=
+ tGroupSms;int iSmsLen=(0x1177+4403-0x22aa);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,(0x2c4+4527-0x1473),sizeof(T_zUfiSms_ConcatInfo));memset(&
-tGroupSms,(0x1e02+1050-0x221c),sizeof(T_zUfiSms_GroupInfo));(void)
+memset(&tConcatSms,(0x869+86-0x8bf),sizeof(T_zUfiSms_ConcatInfo));memset(&
+tGroupSms,(0x151+2841-0xc6a),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=
-(0x1510+2801-0x2001);tGroupSms.current_receiver<tGroupSms.total_receiver;
-tGroupSms.current_receiver++){tConcatSms.current_sending=(0x13f5+2577-0x1e06);
+(0x22e2+294-0x2408);tGroupSms.current_receiver<tGroupSms.total_receiver;
+tGroupSms.current_receiver++){tConcatSms.current_sending=(0x5f9+2091-0xe24);
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"
@@ -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[(0xdaf+4969-0x2118)]);(void)
+,ptDelBuff->all_or_count,ptDelBuff->id[(0x1968+2138-0x21c2)]);(void)
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_ChangeMainState(
-SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0x205a+1478-0x2620),sizeof(
+SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0x82f+5468-0x1d8b),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((0x1a4+6260-0x1a18)<
+,g_zUfiSms_DelMsg.nv_count,g_zUfiSms_DelMsg.sim_count);if((0x20a9+260-0x21ad)<
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,113 @@
memoryFullbeforeDelete&&!g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]){
at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x20\x73\x65\x6e\x64\x20\x41\x54\x2b\x5a\x4d\x45\x4e\x41\x3d\x30" "\n"
-);zSms_SendZmenaReq((0xa4b+2183-0x12d2));}if(memoryFullbeforeDelete&&!
+);zSms_SendZmenaReq((0x807+3468-0x1593));}if(memoryFullbeforeDelete&&!
g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]||unreadBeforeDelete&&!
zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_DEFAULT);}}if((0xef7+2774-0x19cd)<g_zUfiSms_DelMsg.sim_count){result=
+MSG_SMS_DEFAULT);}}if((0x70b+736-0x9eb)<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=(0x1fd8+517-0x21dd);
-T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0x974+5438-0x1e80)]=
-{(0xe81+5011-0x2214)};if(NULL==ptModifyBuff){at_print(LOG_ERR,
+T_zUfiSms_ModifyFlag*ptModifyBuff){unsigned long i=(0xf6a+4004-0x1f0e);
+T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0x1d02+217-0x1da9)]=
+{(0x949+2246-0x120f)};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=(0xc7f+4014-0x1c2d);i<ptModifyBuff->total_id;i++){if(
-ptModifyBuff->id[i]<(0x14b5+3582-0x22b2)||ZUFI_FAIL==zUfiSms_UpdateSmsTagInDb(
+WMS_CMD_FAILED;}for(i=(0x5dc+1979-0xd97);i<ptModifyBuff->total_id;i++){if(
+ptModifyBuff->id[i]<(0xf6+9399-0x25ac)||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[(0x23d+7749-0x2082)])){return ZUFI_FAIL;}if((0x5b6+2457-0xf4f)
+ptModifyBuff->id[(0x3e0+6212-0x1c24)])){return ZUFI_FAIL;}if((0xc9a+6235-0x24f5)
==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_READING);}if((0x1a0c+2743-0x24c3)==strcmp(acStorePos,
-ZTE_WMS_DB_SIM_TABLE)&&ptModifyBuff->total_id>(0x3f7+3509-0x11ac)){
+MSG_SMS_READING);}if((0x1740+3518-0x24fe)==strcmp(acStorePos,
+ZTE_WMS_DB_SIM_TABLE)&&ptModifyBuff->total_id>(0x839+7165-0x2436)){
zUfiSms_ModifyModemSms(ptModifyBuff);}return result;}T_zUfiSms_CmdStatus
-zUfiSms_SetSmsPara(T_zUfiSms_ParaInfo*ptParaBuff){int atRes=(0xb5+2574-0xac3);
-CHAR sca[ZTE_WMS_ADDRESS_DIGIT_MAX_V01+(0x293+6220-0x1ade)]={
-(0x141d+1219-0x18e0)};CHAR store[(0x46a+2045-0xc53)]={(0x10e5+688-0x1395)};CHAR
-defaultStore[(0xa93+4156-0x1a9d)]={(0x571+6426-0x1e8b)};if(ptParaBuff==ZUFI_NULL
-){return WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=(0x1da6+370-0x1f18)){
-strncpy(sca,ptParaBuff->sca,sizeof(sca)-(0x99a+5084-0x1d75));at_print(LOG_DEBUG,
+zUfiSms_SetSmsPara(T_zUfiSms_ParaInfo*ptParaBuff){int atRes=(0x1f79+1412-0x24fd)
+;CHAR sca[ZTE_WMS_ADDRESS_DIGIT_MAX_V01+(0xac9+2574-0x14d6)]={
+(0xd5f+4319-0x1e3e)};CHAR store[(0x9d2+4882-0x1cd0)]={(0x15ec+1098-0x1a36)};CHAR
+ defaultStore[(0x6d6+2344-0xfcc)]={(0x489+5555-0x1a3c)};if(ptParaBuff==ZUFI_NULL
+){return WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=(0x1641+1725-0x1cfe)){
+strncpy(sca,ptParaBuff->sca,sizeof(sca)-(0x1f46+119-0x1fbc));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')&&((0xb4a+2345-0x1473)!=strcmp(
+if((*(ptParaBuff->default_store)!='\0')&&((0xb39+3399-0x1880)!=strcmp(
defaultStore,ptParaBuff->default_store))){{strncpy(store,ptParaBuff->
-default_store,sizeof(store)-(0x107b+1670-0x1700));}atRes=zSms_SendCnmiReq(store)
-;if(atRes!=ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0x196d+1974-0x2122)==
+default_store,sizeof(store)-(0xb95+1376-0x10f4));}atRes=zSms_SendCnmiReq(store);
+if(atRes!=ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0x494+3483-0x122e)==
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[(0xe85+4325-0x1f65)]={(0x43b+2157-0xca8)};char remind_flag[
-(0xe61+3303-0x1b43)];int sms_count=(0xe63+3816-0x1d4b);int remind_count=
-(0x2c+8211-0x203f);memset(sms_rec_flag,(0x147d+2482-0x1e2f),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<(0x16a+5917-0x1887)||sms_count>INT_MAX
--(0xa7a+5275-0x1f14)){at_print(LOG_ERR,
+char sms_rec_flag[(0x2fd+2104-0xb30)]={(0xf49+2738-0x19fb)};char remind_flag[
+(0x1b31+2320-0x243c)];int sms_count=(0x584+357-0x6e9);int remind_count=
+(0x1836+1751-0x1f0d);memset(sms_rec_flag,(0x18da+557-0x1b07),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<(0x4ac+1170-0x93e)||sms_count>INT_MAX-
+(0x1383+3998-0x2320)){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,(0x21e5+563-0x2418),sizeof(sms_rec_flag)
+,sms_count);return;}memset(sms_rec_flag,(0xdb2+6422-0x26c8),sizeof(sms_rec_flag)
);snprintf(sms_rec_flag,sizeof(sms_rec_flag),"\x25\x64",sms_count+
-(0xba6+4673-0x1de6));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);
+(0xb9c+6777-0x2614));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);
sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED_LED,sms_rec_flag);memset(remind_flag,
-(0x6e3+2006-0xeb9),sizeof(remind_flag));snprintf(remind_flag,sizeof(remind_flag)
-,"\x25\x64",remind_count+(0x1981+1220-0x1e44));sc_cfg_set(
+(0x1d34+2421-0x26a9),sizeof(remind_flag));snprintf(remind_flag,sizeof(
+remind_flag),"\x25\x64",remind_count+(0x191c+2805-0x2410));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]={
-(0x566+3490-0x1308)};T_zUfiSms_DbStoreData tDbStoreData={(0x17f5+3035-0x23d0)};
-int isPushSms=(0xfc3+4992-0x2343);if(strcmp(ptRespData->pdu,"")==
-(0x232+1638-0x898)){CHAR srState[(0x99+3779-0xf2a)]={(0x13dc+2987-0x1f87)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x13c1+839-0x1708)!=strcmp(
+(0x1f68+476-0x2144)};T_zUfiSms_DbStoreData tDbStoreData={(0x1dc4+749-0x20b1)};
+int isPushSms=(0x1016+1313-0x1537);if(strcmp(ptRespData->pdu,"")==
+(0x16a+3360-0xe8a)){CHAR srState[(0x2431+255-0x24fe)]={(0x18a7+1997-0x2074)};
+sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0xaac+319-0xbeb)!=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(
-(0x1c82+1851-0x23b8)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
+(0x996+3145-0x15da)==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!=
-(0x253+690-0x504)){return(0xe2b+2544-0x181b);}zUfiSms_GetCurrentRecvTotalSeq(
+(0xbf6+1919-0x1374)){return(0x17d+3103-0xd9c);}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[(0x8d6+5777-0x1f67)],data->
-concat_info[(0x72c+518-0x931)],data->concat_info[(0x78b+1966-0xf37)]);if(data->
-concat_info[(0xd0b+4958-0x2068)]==atoi(pmsg->total_seq)){return
-(0x1b0+4293-0x1275);}return-(0x288+2471-0xc2e);}void zUfiSms_TrafficChangeSmsTag
-(T_zUfiSms_DbStoreData*data){CHAR smsNumber[(0x153+1366-0x677)]={
-(0x1116+694-0x13cc)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,smsNumber,sizeof(smsNumber
-));if((0xb1+4227-0x1134)==strcmp(smsNumber,data->number)){data->tag=
-WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=(0xbf7+4520-0x1d9e);}}void
+,pmsg->id,atoi(pmsg->total_seq),data->concat_info[(0x5fb+3854-0x1509)],data->
+concat_info[(0x1310+3026-0x1ee1)],data->concat_info[(0x24e8+202-0x25b0)]);if(
+data->concat_info[(0x13fa+4465-0x256a)]==atoi(pmsg->total_seq)){return
+(0x947+3339-0x1652);}return-(0x4e6+1865-0xc2e);}void zUfiSms_TrafficChangeSmsTag
+(T_zUfiSms_DbStoreData*data){CHAR smsNumber[(0x1e6c+204-0x1f06)]={
+(0xde6+1255-0x12cd)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,smsNumber,sizeof(smsNumber
+));if((0x122d+667-0x14c8)==strcmp(smsNumber,data->number)){data->tag=
+WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=(0x1513+3608-0x232a);}}void
zUfiSms_HandleTrafficSms(T_zUfiSms_DbStoreData*data){int iSmsId=
-(0x12a7+3052-0x1e93);SMS_MSG_INFO msg={(0x42a+3733-0x12bf)};CHAR smsNumber[
-(0xea6+1620-0x14c8)]={(0x1307+4880-0x2617)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
+(0x109+1776-0x7f9);SMS_MSG_INFO msg={(0x206+4316-0x12e2)};CHAR smsNumber[
+(0x275+9081-0x25bc)]={(0x8c0+1078-0xcf6)};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((0x1034+2042-0x182e)==strcmp(smsNumber,data->number)
-){if((0x510+7177-0x2119)!=zUfiSms_CheckIfWholeSms(data,&msg)){at_print(LOG_DEBUG
-,
+,data->number,smsNumber);if((0x3bb+8614-0x2561)==strcmp(smsNumber,data->number))
+{if((0x2076+865-0x23d7)!=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]={
-(0x819+6696-0x2241)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x128+5175-0x155f);SMS_PARAM one_sms={(0x81d+133-0x8a2)};int
-unread_sms_before_recv_new_sms=(0x534+2840-0x104c);memset(&tDbStoreData,
-(0xfb3+292-0x10d7),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x19bd+123-0x1a38)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x543+2078-0xd61);SMS_PARAM one_sms={(0x906+272-0xa16)};int
+unread_sms_before_recv_new_sms=(0x917+6407-0x221e);memset(&tDbStoreData,
+(0x262+4824-0x153a),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,"")==(0x260+8387-0x2323)){CHAR srState[
-(0x461+6962-0x1f61)]={(0xc20+689-0xed1)};sc_cfg_get(NV_SR_STATE,srState,sizeof(
-srState));if((0x212+4125-0x122f)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0x420+3038-0xffe)){CHAR srState[(0x45c+4923-0x1765)
+]={(0x3df+962-0x7a1)};sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if(
+(0x96a+4055-0x1941)!=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((0x29b+7178-0x1ea5));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x2e5+2439-0xc6c));}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,
@@ -266,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((0x1a9+7212-0x1dd0)==ptRespData->stat){(void)
+ptRespData->pdu));if((0x183+2086-0x9a4)==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=(0x1fc5+14-0x1fd2);}else{
-unread_sms_before_recv_new_sms=(0x873+352-0x9d3);}zUfiSms_TrafficChangeSmsTag(&
-tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,
-iStorePos,-(0x61a+7347-0x22cc))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
-(0x1652+264-0x1759));return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){
+unread_sms_before_recv_new_sms=(0x16a+4034-0x112b);}else{
+unread_sms_before_recv_new_sms=(0x4a1+3732-0x1335);}zUfiSms_TrafficChangeSmsTag(
+&tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,
+iStorePos,-(0x6a2+7911-0x2588))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
+(0x1173+3512-0x1f2a));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]={
-(0x1461+353-0x15c2)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0xd53+1072-0x1183);SMS_PARAM one_sms={(0xf62+1959-0x1709)};CHAR defaultStore[
-(0x1282+53-0x1285)]={(0x1bc0+1292-0x20cc)};memset(&tDbStoreData,
-(0xb80+5290-0x202a),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0xef7+199-0xfbe)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0xf10+5303-0x23c7);SMS_PARAM one_sms={(0x10d6+455-0x129d)};CHAR defaultStore[
+(0x61f+4085-0x15e2)]={(0x844+6121-0x202d)};memset(&tDbStoreData,
+(0x13d4+1634-0x1a36),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,"")==(0x700+5548-0x1cac)){CHAR srState[
-(0xfbf+2861-0x1aba)]={(0x10a4+1993-0x186d)};sc_cfg_get(NV_SR_STATE,srState,
-sizeof(srState));if((0x1754+1478-0x1d1a)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0x1810+3195-0x248b)){CHAR srState[
+(0x1156+2083-0x1947)]={(0x11eb+3577-0x1fe4)};sc_cfg_get(NV_SR_STATE,srState,
+sizeof(srState));if((0x331+3136-0xf71)!=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");}
@@ -300,50 +299,7 @@
,isPushSms);at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x25\x64\x20" "\n"
,isPushSms);if(SMS_NOTIFICATION==isPushSms){BakNotificationSms(one_sms.TP_UD,
-strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x53+999-0x43a));}if(SMS_NO_PUSH
-!=isPushSms){at_print(LOG_DEBUG,
-"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
-,one_sms.index);at_print(LOG_DEBUG,
-"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x52\x65\x66\x65\x72\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
-,one_sms.TP_ReferNum);at_print(LOG_DEBUG,
-"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x41\x6c\x6c\x50\x69\x65\x63\x65\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
-,one_sms.TP_AllPieceNum);at_print(LOG_DEBUG,
-"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x43\x75\x72\x72\x65\x6e\x74\x50\x69\x65\x63\x65\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
-,one_sms.TP_CurrentPieceNum);zUfiSms_ChangeMainState(SMS_STATE_RECVED);return;}
-zUfiSms_GetReportStatus(ptRespData->pdu,&ptRespData->stat);(void)String2Bytes(
-ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if((0x66c+7026-0x21d9)
-==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((0xb75+6225-0x23c6)==
-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,-(0x820+7297-0x24a0))){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]={
-(0x896+1800-0xf9e)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0xaac+4372-0x1bc0);SMS_PARAM one_sms={(0xf43+1934-0x16d1)};int
-unread_sms_before_recv_new_sms=(0xdc4+5209-0x221d);memset(&tDbStoreData,
-(0x4c1+5729-0x1b22),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,"")==
-(0x4b4+3198-0x1132)){CHAR srState[(0x1422+4494-0x257e)]={(0x162+569-0x39b)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x12d0+4493-0x245d)!=strcmp(
-srState,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
-NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_RECVED)
-;}else{sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");}
-return;}isPushSms=DecodePushPdu(ptRespData->pdu,&one_sms);at_print(LOG_DEBUG,
-"\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x20\x25\x64" "\n"
-,isPushSms);at_print(LOG_DEBUG,
-"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x25\x64\x20" "\n"
-,isPushSms);if(SMS_NOTIFICATION==isPushSms){BakNotificationSms(one_sms.TP_UD,
-strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x1eea+1015-0x22e1));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0xfb4+646-0x123a));}if(
SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
,one_sms.index);at_print(LOG_DEBUG,
@@ -354,81 +310,124 @@
"\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((0x81c+514-0xa19)==
-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)
+ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if(
+(0x19d1+1050-0x1de6)==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(
+(0x121a+730-0x14f4)==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,-
+(0xc80+5686-0x22b5))){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]={
+(0xc35+2090-0x145f)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0xffc+1871-0x174b);SMS_PARAM one_sms={(0x1f04+1801-0x260d)};int
+unread_sms_before_recv_new_sms=(0x8b2+4498-0x1a44);memset(&tDbStoreData,
+(0x1ce7+812-0x2013),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,"")==
+(0x9e8+7224-0x2620)){CHAR srState[(0x6d4+4445-0x17ff)]={(0x1786+513-0x1987)};
+sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x1211+291-0x1334)!=strcmp(
+srState,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
+NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_RECVED)
+;}else{sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");}
+return;}isPushSms=DecodePushPdu(ptRespData->pdu,&one_sms);at_print(LOG_DEBUG,
+"\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x20\x25\x64" "\n"
+,isPushSms);at_print(LOG_DEBUG,
+"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x25\x64\x20" "\n"
+,isPushSms);if(SMS_NOTIFICATION==isPushSms){BakNotificationSms(one_sms.TP_UD,
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x8dd+5490-0x1e4f));}if(
+SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
+"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
+,one_sms.index);at_print(LOG_DEBUG,
+"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x52\x65\x66\x65\x72\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
+,one_sms.TP_ReferNum);at_print(LOG_DEBUG,
+"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x41\x6c\x6c\x50\x69\x65\x63\x65\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
+,one_sms.TP_AllPieceNum);at_print(LOG_DEBUG,
+"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x43\x75\x72\x72\x65\x6e\x74\x50\x69\x65\x63\x65\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
+,one_sms.TP_CurrentPieceNum);zUfiSms_ChangeMainState(SMS_STATE_RECVED);return;}
+zUfiSms_GetReportStatus(ptRespData->pdu,&ptRespData->stat);(void)String2Bytes(
+ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if((0xd6b+2541-0x1753)
+==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=
-(0xe29+3747-0x1ccb);}else{unread_sms_before_recv_new_sms=(0x700+168-0x7a8);}if(
+(0x194+3275-0xe5e);}else{unread_sms_before_recv_new_sms=(0x65b+5119-0x1a5a);}if(
ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-
-(0xe74+2868-0x19a7))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
+(0x10c+5126-0x1511))){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={(0x473+1345-0x9b4)};g_zUfiSms_DbStoreData->
+){T_zUfiSms_StatusInfo tStatusInfo={(0x7d0+2450-0x1162)};g_zUfiSms_DbStoreData->
msg_displaymode=g_displaymode;if(g_zUfiSms_DbStoreData->msg_displaymode!=
-(0x3df+2846-0xefc)){if((0xf6a+4504-0x2102)==zUfiSms_WriteSmsToDb(&
-g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0xeaf+875-0x1219)],
-WMS_STORAGE_TYPE_NV_V01,-(0x3dd+4627-0x15ef))){g_zUfiSms_MsgRefer++;(void)
+(0x1666+1153-0x1ae6)){if((0x110b+448-0x12cb)==zUfiSms_WriteSmsToDb(&
+g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x13f2+3331-0x20f4)],
+WMS_STORAGE_TYPE_NV_V01,-(0xd0f+3001-0x18c7))){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=
-(0x31f+3010-0xee1);memset((void*)&tStatusInfo,(0x684+5972-0x1dd8),sizeof(
+(0x3a6+6870-0x1e7c);memset((void*)&tStatusInfo,(0x9b+1370-0x5f5),sizeof(
T_zUfiSms_StatusInfo));tStatusInfo.err_code=ZTE_SMS_CMS_NONE;tStatusInfo.
send_failed_count=g_zUfiSms_SendFailedCount;tStatusInfo.delete_failed_count=
-(0x1dc+9046-0x2532);if(g_zUfiSms_SendFailedCount==(0x161a+616-0x1882)){
+(0x199a+2650-0x23f4);if(g_zUfiSms_SendFailedCount==(0x1422+2317-0x1d2f)){
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={(0x115c+2359-0x1a93)};int
-errs=(0x16f9+175-0x17a8);key_t req_id=ftok(
+int zte_fota_notifyPushMsg(int cmd){FOTA_MSG_BUF msg={(0x761+830-0xa9f)};int
+errs=(0x1857+1139-0x1cca);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"
-,(0x1056+2812-0x1b51));int msgid=msgget(req_id,(0x901+1964-0x10ad));if(msgid!=-
-(0x8c0+3113-0x14e8)){msg.mtype=(0x97+5445-0x15db);msg.mtext[(0x97c+4767-0x1c1b)]
+,(0x155b+668-0x17f6));int msgid=msgget(req_id,(0x2380+671-0x261f));if(msgid!=-
+(0x6aa+1372-0xc05)){msg.mtype=(0x123f+998-0x1624);msg.mtext[(0xea5+3451-0x1c20)]
=WEBUI_NOTIFY_PUSH_MSG_;errs=msgsnd(msgid,&msg,sizeof(msg)-sizeof(long),
-(0xed8+2944-0x1a58));}return(errs<(0xcb4+3566-0x1aa2)?(0x1938+3499-0x26e3):
-(0x1054+358-0x11b9));}
-#if (0x229c+204-0x2368)
+(0x1434+354-0x1596));}return(errs<(0xcc6+4992-0x2046)?(0x7bf+3725-0x164c):
+(0x40f+2625-0xe4f));}
+#if (0x1b9+1470-0x777)
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 (0xa1c+62-0xa5a)
+#if (0x505+5841-0x1bd6)
int atSms_SendZmglReq(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){int res
-=(0x387+8866-0x2629);pthread_mutex_lock(&smsdb_mutex);res=zSvr_SendAtSyn(
+=(0x15b3+3389-0x22f0);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={(0x773+4276-0x1827)};sc_cfg_set(NV_SMS_LOAD_RESULT
+T_zUfiSms_StatusInfo tStatus={(0x78d+4682-0x19d7)};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={
-(0x14c7+756-0x17bb)};sc_cfg_set(NV_SMS_LOAD_RESULT,"\x66\x61\x69\x6c");
+(0x13e1+1951-0x1b80)};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={
-(0x155a+486-0x1740)};printf(
+(0x1d35+2250-0x25ff)};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,
-(0x3c8+6678-0x1dde),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
-->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x78f+5597-0x1d6b));printf(
+(0x171b+3694-0x2589),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
+->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x13b9+4504-0x2550));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[(0xbfa+1078-0x101c)
-]={(0x839+1079-0xc70)};iSmsIndex=atoi(pAtCmdPara);printf(
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x4eb+6167-0x1cee)
+]={(0x2e9+4163-0x132c)};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 (0xaf1+1392-0x1061)
-static T_zUfiSms_SmsItem tSmsPara={(0x15a4+3742-0x2442)};T_zUfiSms_CmgrSetRsp
-tCmgrRsp={(0x49b+8504-0x25d3)};printf(
+#if (0x36c+340-0x4c0)
+static T_zUfiSms_SmsItem tSmsPara={(0x117f+3627-0x1faa)};T_zUfiSms_CmgrSetRsp
+tCmgrRsp={(0x746+2942-0x12c4)};printf(
"\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x67\x72\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->result){printf(
@@ -437,14 +436,14 @@
.stat=tSmsPara.stat;sscanf(pResLine->resParas,"\x25\x35\x30\x30\x73",tCmgrRsp.
pdu);zUfiSms_CmgrRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();sc_cfg_set(
"\x73\x6d\x73\x5f\x72\x65\x63\x76\x5f\x72\x65\x73\x75\x6c\x74","\x6f\x6b");}else
-{memset(&tSmsPara,(0xd57+1659-0x13d2),sizeof(T_zUfiSms_SmsItem));(void)
-zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0xcf9+3485-0x1a94));tSmsPara.
+{memset(&tSmsPara,(0x100a+4376-0x2122),sizeof(T_zUfiSms_SmsItem));(void)
+zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0x1c9d+1662-0x2319));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[(0xca1+3824-0x1b7d)]={(0x226+660-0x4ba)};iSmsIndex=atoi(pAtCmdPara);
+pAtcmdStr[(0x4e8+7875-0x2397)]={(0x2321+506-0x251b)};iSmsIndex=atoi(pAtCmdPara);
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x5a\x6d\x67\x72\x52\x65\x71\x20\x47\x65\x74\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2e" "\n"
,iSmsIndex);snprintf(pAtcmdStr,sizeof(pAtcmdStr),
@@ -457,8 +456,8 @@
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x72\x45\x72\x72\x20\x20\x53\x4d\x53\x20\x7a\x6d\x67\x72\x20\x69\x73\x20\x66\x61\x69\x6c" "\n"
);{sc_cfg_set(NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(
SMS_STATE_RECVED);}}VOID atSms_RecvZmgrRsp(T_zAt_AtRes*pResLine){static
-T_zUfiSms_SmsItem tSmsPara={(0x2218+1216-0x26d8)};T_zUfiSms_CmgrSetRsp tCmgrRsp=
-{(0x361+4426-0x14ab)};printf(
+T_zUfiSms_SmsItem tSmsPara={(0x10a+2603-0xb35)};T_zUfiSms_CmgrSetRsp tCmgrRsp={
+(0x1a3+4113-0x11b4)};printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x72\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->result){printf(
@@ -466,56 +465,56 @@
);return;}tCmgrRsp.index=tSmsPara.index;tCmgrRsp.length=tSmsPara.length;tCmgrRsp
.stat=tSmsPara.stat;sscanf(pResLine->resParas,"\x25\x35\x30\x30\x73",tCmgrRsp.
pdu);zUfiSms_ZmgrRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();sc_cfg_set(
-NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,(0x43+1215-0x502),sizeof(
-T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine->resParas,sizeof(pResLine->
-resParas),&tSmsPara,(0x1452+2630-0x1e96));tSmsPara.index=iSmsIndex;printf(
+NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,(0x3fc+7616-0x21bc),sizeof
+(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine->resParas,sizeof(pResLine
+->resParas),&tSmsPara,(0x2c6+3931-0x121f));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[(0x533+5393-0x1a30)
-]={(0x64c+2827-0x1157)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x16f+8488-0x2283)
+]={(0x675+3449-0x13ee)};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[(0xced+4787-0x1f96)]={(0xa02+1638-0x1068)};
-int used=(0x37f+4158-0x13bd);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+atSms_RecvCmgdOk(VOID){CHAR strUsed[(0xc+6781-0x1a7f)]={(0x13fa+3192-0x2072)};
+int used=(0x884+1316-0xda8);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)-(0x417+5113-0x180f);if(used<(0x37+6319-0x18e6)){used=(0x4e6+2032-0xcd6)
-;}memset(&strUsed,(0x344+2990-0xef2),(0x1417+2157-0x1c7a));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)-(0x245d+135-0x24e3);if(used<(0xa65+6454-0x239b)){used=
+(0x1456+4563-0x2629);}memset(&strUsed,(0x6d5+5702-0x1d1b),(0xc2d+1637-0x1288));
+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[(0x1580+523-0x1781)]={
-(0x1147+4915-0x247a)};CHAR strTotal[(0xb19+535-0xd26)]={(0x6b9+6278-0x1f3f)};
-CHAR strUsed[(0x8fd+5407-0x1e12)]={(0x6b1+5899-0x1dbc)};int total=
-(0x97f+2978-0x1521);int used=(0x18b+6946-0x1cad);int remain=(0x1548+4023-0x24ff)
-;sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
+);}VOID atSms_RecvCmgdFinish(VOID){char StrValue[(0x7b4+6909-0x22a7)]={
+(0x199a+109-0x1a07)};CHAR strTotal[(0x32f+6975-0x1e64)]={(0x17d7+2138-0x2031)};
+CHAR strUsed[(0xd59+4800-0x200f)]={(0x1534+692-0x17e8)};int total=
+(0x198+8675-0x237b);int used=(0x199b+21-0x19b0);int remain=(0x12b5+3117-0x1ee2);
+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<(0xa69+6688-0x2489)){remain=
-(0x9dd+2365-0x131a);}memset(&StrValue,(0xb8c+283-0xca7),(0x749+816-0xa6f));
+total=atoi(strTotal);remain=total-used;if(remain<(0x83f+7677-0x263c)){remain=
+(0x6a4+3260-0x1360);}memset(&StrValue,(0x620+7514-0x237a),(0x2cf+2693-0xd4a));
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=(0x43d+8271-0x248c);CHAR pAtcmdStr[ZSMS_PDU_SIZE
-]={(0x197+6638-0x1b85)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+pAtRst,int atRstSize){int atRes=(0x207+6743-0x1c5e);CHAR pAtcmdStr[ZSMS_PDU_SIZE
+]={(0x18b2+2857-0x23db)};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,(0x73d+7235-0x2380),ZSMS_PDU_SIZE
-);if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-(0x1258+4488-0x23df)){
-memcpy(pAtcmdStr,g_zUfiSms_FinalCmgsBuf.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));
-}else{printf(
+ZAT_RESULT_SMS){return atRes;}memset(pAtcmdStr,(0x1b52+2136-0x23aa),
+ZSMS_PDU_SIZE);if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-
+(0x738+5212-0x1b93)){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-(0x1396+2258-0x1c66));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.
-pdu))=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0xa77+2740-0x152b),atRstSize);return
+ZSMS_PDU_SIZE-(0xfbd+5309-0x2478));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.
+pdu))=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0xd24+3746-0x1bc6),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-(0x321+7854-0x21ce)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0xbba+2028-0x13a5)].tag=WMS_TAG_TYPE_MO_SENT_V01;
zUfiSms_CmgsRespProc(cid);}VOID atSms_RecvCmgsErr(UINT8*pResLine,int cid){
at_print(LOG_DEBUG,
"\x73\x6d\x73\x20\x73\x65\x6e\x64\x65\x64\x20\x66\x61\x69\x6c\x2e\x20" "\n");
@@ -523,16 +522,16 @@
ZTE_WMS_CONCAT_SMS_COUNT_MAX){return;}g_zUfiSms_SendFailedCount++;at_print(
LOG_DEBUG,
"\x73\x65\x6e\x64\x20\x73\x6d\x73\x20\x66\x61\x69\x6c\x65\x64\x2c\x73\x6f\x20\x77\x72\x69\x74\x65\x20\x73\x6d\x73\x20\x74\x6f\x20\x64\x72\x61\x66\x74\x62\x6f\x78\x2e" "\n"
-);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x801+2526-0x11de)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x27d+978-0x64e)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x1407+2082-0x1c28)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x1a88+2413-0x23f4)){
g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc(cid);}VOID
atSms_RecvCmgsRsp(T_zAt_AtRes*pResLine){return;}VOID atSms_RecvCmtRsp(
-T_zAt_AtRes*pResLine){CHAR needSMS[(0x15c5+2951-0x211a)]={(0x1220+2756-0x1ce4)};
-sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x2343+665-0x25dc)==
+T_zAt_AtRes*pResLine){CHAR needSMS[(0xb39+5252-0x1f8b)]={(0x1163+1638-0x17c9)};
+sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xae1+177-0xb92)==
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={(0x970+6273-0x21f1)};
-T_zUfiSms_CmtSetRsp tCmtRsp={(0x2020+574-0x225e)};if(NULL==pResLine){return;}
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0x4df+275-0x5f2)};
+T_zUfiSms_CmtSetRsp tCmtRsp={(0x560+992-0x940)};if(NULL==pResLine){return;}
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
@@ -542,40 +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,
-(0x363+458-0x52d),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0x9e9+6932-0x24fd),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[
-(0x13a+6480-0x1a58)]={(0x20d9+844-0x2425)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x81+8531-0x21d4)==strcmp(needSMS,"\x6e\x6f")){
+(0x437+5631-0x1a04)]={(0xe1b+2056-0x1623)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0x849+5167-0x1c78)==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[(0xad3+4573-0x1c92)]={(0xdac+1559-0x13c3)};char*
+);return;}char sms_Main_state[(0xa19+1971-0x11ae)]={(0x24dd+167-0x2584)};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")==
-(0x1ee6+559-0x2115)){printf(
+(0x1137+3237-0x1ddc)){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(
-(0xb99+2902-0x16ef)==strncmp("\x53\x4d",memory,(0x8a4+5915-0x1fbd))){
+(0x332+2436-0xcb6)==strncmp("\x53\x4d",memory,(0x1e8+1951-0x985))){
zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0x8ca+801-0xbe7);printf(
+SMS_STATE_RECVING);memory+=(0x831+4783-0x1adc);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[(0x17b2+2648-0x21d8)]={(0xeb3+6091-0x267e)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x23f4+730-0x26ce)==strcmp(
+){CHAR needSMS[(0x1e5+6981-0x1cf8)]={(0x1ef7+1052-0x2313)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x55c+7929-0x2455)==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={(0xa31+4845-0x1d1e)};
-T_zUfiSms_CmgrSetRsp tCmgrRsp={(0x4ab+4039-0x1472)};if(NULL==pResLine){return;}
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0xaac+1993-0x1275)};
+T_zUfiSms_CmgrSetRsp tCmgrRsp={(0x115f+2318-0x1a6d)};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"
@@ -583,79 +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,
-(0xd4+7391-0x1db3),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0x732+614-0x998),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[
-(0x1688+1768-0x1d3e)]={(0xbd5+1838-0x1303)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0xedc+4489-0x2065)==strcmp(needSMS,"\x6e\x6f")){
+(0x1663+2441-0x1fba)]={(0x338+5635-0x193b)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0xbbd+4618-0x1dc7)==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[(0x1cd+8309-0x2224)]={(0x71a+1687-0xdb1)};char*
+);return;}char sms_Main_state[(0xbe0+4206-0x1c30)]={(0x4cd+8761-0x2706)};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")==
-(0x290+6845-0x1d4d)){printf(
+(0xc82+1287-0x1189)){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((0x1604+3392-0x2344)==strncmp("\x53\x4d",memory,(0xc33+3325-0x192e))
+,memory);if((0xd16+1010-0x1108)==strncmp("\x53\x4d",memory,(0x1122+1380-0x1684))
){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0xde7+6363-0x26be);printf(
+SMS_STATE_RECVING);memory+=(0xdd9+5267-0x2268);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[(0x1827+3505-0x25c4)]={
-(0xa31+2995-0x15e4)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+ cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0xbc9+2761-0x167e)]={
+(0x16bf+242-0x17b1)};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=(0xa1a+4276-0x1ace);CHAR pAtcmdStr[ZSMS_PDU_SIZE
-]={(0x119+3994-0x10b3)};CHAR ackPduStr[(0x228+199-0x2bd)]={(0x1899+2720-0x2339)}
-;if(atoi(pAtCmdPara)==(0x828+3584-0x1627)){snprintf(pAtcmdStr,sizeof(pAtcmdStr),
-"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73" "\r\n",pAtCmdPara);atRes=
+pAtRst,int atRstSize){int atRes=(0x444+5157-0x1869);CHAR pAtcmdStr[ZSMS_PDU_SIZE
+]={(0x3fd+5056-0x17bd)};CHAR ackPduStr[(0x1dd1+853-0x20f4)]={(0xb91+5654-0x21a7)
+};if(atoi(pAtCmdPara)==(0x128a+2036-0x1a7d)){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(0x2bf+592-0x50f);}else{zUfiSms_EncodePdu_DeliverReport(
-ackPduStr,(0x1845+2123-0x1fbd));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+,pAtcmdStr);return(0xb92+2259-0x1465);}else{zUfiSms_EncodePdu_DeliverReport(
+ackPduStr,(0x7b2+1723-0xd9a));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73\x2c\x25\x64" "\r\n",pAtCmdPara,strlen(
-ackPduStr)/(0x3c0+7362-0x2080));atRes=zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,
+ackPduStr)/(0x1636+384-0x17b4));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,(0x8e5+3078-0x14eb),ZSMS_PDU_SIZE);if(strlen(
-ackPduStr)<ZSMS_PDU_SIZE-(0x1e9f+65-0x1edf)){memcpy(pAtcmdStr,ackPduStr,strlen(
+,pAtcmdStr);memset(pAtcmdStr,(0x7f8+2253-0x10c5),ZSMS_PDU_SIZE);if(strlen(
+ackPduStr)<ZSMS_PDU_SIZE-(0x7ac+7424-0x24ab)){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-(0xaa4+1480-0x106a));}*(
+,ackPduStr);memcpy(pAtcmdStr,ackPduStr,ZSMS_PDU_SIZE-(0x438+2969-0xfcf));}*(
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,(0x4eb+6857-0x1fb4),atRstSize);return zSvr_SendAtSyn(
+,pAtcmdStr);memset(pAtRst,(0xcd4+1947-0x146f),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]={(0x58f+6966-0x20c5)};int atRes=
-(0x1240+4159-0x227f);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]={(0x139a+3138-0x1fdc)
-};if(pDatabuf==NULL){printf(
+cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x1439+836-0x177d)};int atRes=
+(0x1d27+781-0x2034);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]={(0xdfd+2290-0x16ef)}
+;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]
-={(0xc69+5912-0x2381)};int atRes=(0xb36+6382-0x2424);if(pDatabuf==NULL){printf(
+={(0x15d9+843-0x1924)};int atRes=(0xc8c+3324-0x1988);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]=
-{(0x8c4+3572-0x16b8)};if(pDatabuf==NULL){printf(
+{(0xf29+856-0x1281)};if(pDatabuf==NULL){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x55\x6e\x73\x6f\x6c\x69\x5f\x52\x65\x70\x6f\x72\x74\x5f\x5a\x6d\x67\x72\x20\x6e\x75\x6c\x6c"
);return;}atSms_SendZmgrReq(pDatabuf,cid,errCode,ZSVR_AT_RES_CODE_LEN);}
#endif
diff --git a/ap/app/zte_comm/wlan/src/wifi_ap_ctrl.c b/ap/app/zte_comm/wlan/src/wifi_ap_ctrl.c
index 14f7110..3af0113 100755
--- a/ap/app/zte_comm/wlan/src/wifi_ap_ctrl.c
+++ b/ap/app/zte_comm/wlan/src/wifi_ap_ctrl.c
@@ -1491,7 +1491,6 @@
}
}
}
-//zw.wang WiFi for MAC is obtained from firmware and set on 20240508 start
#if defined(CONFIG_WIFI_EFUSE_MAC)
int wifi_fw_mac_config_ssid(struct wlan_ap_server *ap_svr)
{
@@ -1516,12 +1515,13 @@
sc_cfg_set("at_wifi_mac", fake_at_wifi_mac);
get_mac_config_ssid_key_nv();
- //wlan_ap_get_para(ap_svr);
- //wlan_ap_save_config(ap_svr);
+#ifndef USE_CAP_SUPPORT
+ wlan_ap_get_para(ap_svr);//D80 update when ap start
+ wlan_ap_save_config(ap_svr);
+#endif
}
return 0;
}
-//zw.wang WiFi for MAC is obtained from firmware and set on 20240508 end
#endif
#ifdef USE_CAP_SUPPORT
@@ -2499,9 +2499,9 @@
*/
void wlan_basic_restart_apsta()
{
- char m_ssid_enable[8] = {0};
- sc_cfg_get("m_ssid_enable", m_ssid_enable, sizeof (m_ssid_enable));
- if (strcmp(m_ssid_enable, "1") == 0) {
+ //when multi-ssid to apsta, goahead has set m_ssid_enable to 0
+ //sc_cfg_get("m_ssid_enable", m_ssid_enable, sizeof (m_ssid_enable));
+ if (1 == ap_server->ap1_state) {
write_status (WIFISTATUS, WIFI_CLOSED);
clear_sta_count_nv();
//close mssid
diff --git a/ap/app/zte_comm/wlan/src/wlan-station.c b/ap/app/zte_comm/wlan/src/wlan-station.c
index 1be786d..ea2efcd 100755
--- a/ap/app/zte_comm/wlan/src/wlan-station.c
+++ b/ap/app/zte_comm/wlan/src/wlan-station.c
@@ -1607,6 +1607,14 @@
//channel
#ifdef USE_CAP_SUPPORT
+ if (signal <= 0 && signal > -128) {
+ scan_result->signal_db = (signed char)signal;
+ }
+ else {
+ scan_result->signal_db = (signed char)(-128);
+ }
+ //scan_result->ch_freq = frequency;
+
scan_result->channel = frequency_to_channel(frequency);
#else
switch (frequency) {
@@ -2897,7 +2905,9 @@
scan_list.info[i].auth = transe_sta_auth_mode(g_scan_result_list_p[i]->auth_mode);
scan_list.info[i].cipher = transe_sta_encrypt_type(g_scan_result_list_p[i]->encrypt_type);
scan_list.info[i].channel = g_scan_result_list_p[i]->channel;
+ //scan_list.info[i].frequency = g_scan_result_list_p[i]->ch_freq;
scan_list.info[i].signal_level = g_scan_result_list_p[i]->signal;
+ scan_list.info[i].signal = g_scan_result_list_p[i]->signal_db;
strncpy(scan_list.info[i].essid, g_scan_result_list_p[i]->ssid, sizeof(scan_list.info[i].essid)-1);
strncpy(scan_list.info[i].bssid, g_scan_result_list_p[i]->mac, sizeof(scan_list.info[i].bssid)-1);
scan_list.cnt++;
diff --git a/ap/app/zte_comm/wlan/src/wlan_config_ssid.c b/ap/app/zte_comm/wlan/src/wlan_config_ssid.c
index 663203f..307fd22 100755
--- a/ap/app/zte_comm/wlan/src/wlan_config_ssid.c
+++ b/ap/app/zte_comm/wlan/src/wlan_config_ssid.c
@@ -341,11 +341,11 @@
//snprintf(mac_cmd, sizeof(mac_cmd), "MAC_A1=%s\n", mac);
wf_log ("set_mac_conf:[%s]", mac_cmd);
wlan_write_file("/etc_rw/aic_macconfig.txt", mac_cmd);
-//zw.wang WiFi for MAC is obtained from firmware and set on 20240508 start
-#endif
+#endif
return 0;
}
-static int set_mac_at (char *mac, char *mac2)
+
+static int set_mac_at(char *mac, char *mac2)
{
#if defined(CONFIG_WIFI_EFUSE_MAC)
char mac_cmd[128]={0};
@@ -362,7 +362,7 @@
#endif
return 0;
}
-//zw.wang WiFi for MAC is obtained from firmware and set on 20240508 end
+
static VOID setWifiKeyForImei (CHAR* outkey, CHAR* imeistr, UINT32 num)
{
CHAR old_key[WLAN_NV_WPAPSK1_LENGTH] = {0};
@@ -552,9 +552,8 @@
make_user_mac (read_mac);
set_mac_conf(mac, m_mac);
-//zw.wang WiFi for MAC is obtained from firmware and set on 20240508 start
+
set_mac_at(read_mac, m_read_mac);
-//zw.wang WiFi for MAC is obtained from firmware and set on 20240508 end
}
diff --git a/ap/app/zte_comm/wlan/src/wlan_main.c b/ap/app/zte_comm/wlan/src/wlan_main.c
index bd738d5..d655641 100755
--- a/ap/app/zte_comm/wlan/src/wlan_main.c
+++ b/ap/app/zte_comm/wlan/src/wlan_main.c
@@ -898,10 +898,10 @@
if (idx == IN_WIFI_AP_INDEX_MAX) {
if (g_work_mode == IN_WIFI_WORK_MODE_AP1) {
- idx == IN_WIFI_AP_INDEX_AP1;
+ idx = IN_WIFI_AP_INDEX_AP1;
}
else {
- idx == IN_WIFI_AP_INDEX_AP0;
+ idx = IN_WIFI_AP_INDEX_AP0;
}
}
@@ -2049,7 +2049,7 @@
#endif
#endif
-#if !(defined(CONFIG_WIFI_EFUSE_MAC)) //zw.wang WiFi for MAC is obtained from firmware and set on 20240508
+#if !(defined(CONFIG_WIFI_EFUSE_MAC))
send_get_mac_req();
#endif
@@ -2067,7 +2067,7 @@
init_config();
-#if !(defined(CONFIG_WIFI_EFUSE_MAC)) //zw.wang WiFi for MAC is obtained from firmware and set on 20240508
+#if !(defined(CONFIG_WIFI_EFUSE_MAC))
get_mac_config_ssid_key_nv();
#endif
@@ -2114,7 +2114,7 @@
return -1;
}
-#if defined(CONFIG_WIFI_EFUSE_MAC) //zw.wang WiFi for MAC is obtained from firmware and set on 20240508
+#if defined(CONFIG_WIFI_EFUSE_MAC)
wifi_fw_mac_config_ssid(ap_server);
#endif
diff --git a/ap/app/zte_mdl/zte_mdl.c b/ap/app/zte_mdl/zte_mdl.c
index e3d50ce..d93283c 100755
--- a/ap/app/zte_mdl/zte_mdl.c
+++ b/ap/app/zte_mdl/zte_mdl.c
@@ -102,9 +102,11 @@
int main(int argc, char *argv[])
{
/* nvserver */
- pthread_t nvserver_thread_tid;
- pthread_create(&nvserver_thread_tid, NULL, (void *)nvserver_entry, NULL);
-
+ pthread_t nvserver_thread_tid;
+
+ //daemon(0, 0);
+ pthread_create(&nvserver_thread_tid, NULL, (void *)nvserver_entry, NULL);
+
/* zte_drv_serial_ctrl */
pthread_t zte_drv_serial_ctrl_thread_tid;
pthread_create(&zte_drv_serial_ctrl_thread_tid, NULL, (void *)zte_drv_serial_ctrl_entry, NULL);