[Bugfix][T106BUG-18][T106BUG-11]merge sim patch
Only Configure:No
Affected branch:master
Affected module:No
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I52cffab83c99392b55772b0d7a9dcb441a18d0b7
diff --git a/ap/app/hostapd-2.10/hostapd/libwpa_client.a b/ap/app/hostapd-2.10/hostapd/libwpa_client.a
index 6d8221f..4625963 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/wpa_supplicant-2.10/wpa_supplicant/libwpa_client.a b/ap/app/wpa_supplicant-2.10/wpa_supplicant/libwpa_client.a
index 9e9c84b..21b156b 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/nvserver/nvserver.c b/ap/app/zte_comm/nvserver/nvserver.c
index 9fa611e..c32915c 100755
--- a/ap/app/zte_comm/nvserver/nvserver.c
+++ b/ap/app/zte_comm/nvserver/nvserver.c
@@ -31,73 +31,76 @@
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=
-(0xd36+3128-0x196e);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",(0x90c+6054-0x20b2)
-,(0x73+4086-0x1069),(0xe64+5132-0x2270));memset(&rcvBuf,(0x139c+3214-0x202a),
-sizeof(rcvBuf));memset(&sndBuf,(0x1a+1727-0x6d9),sizeof(sndBuf));memset(&msgInfo
-,(0x1eb2+1153-0x2333),sizeof(msgInfo));msgId=msgget(MODULE_ID_NV,IPC_CREAT|
-(0xe5d+650-0xf67));if(-(0x16e1+1469-0x1c9d)==msgId){printf(
+(0x12f7+3751-0x219e);T_NV_MSG_INFO rcvBuf;T_NV_MSG_RESULT sndBuf;struct msqid_ds
+ msgInfo;prctl(PR_SET_NAME,"\x6e\x76\x73\x65\x72\x76\x65\x72",
+(0x1b19+3016-0x26e1),(0x1537+569-0x1770),(0x104f+123-0x10ca));memset(&rcvBuf,
+(0x11f1+2613-0x1c26),sizeof(rcvBuf));memset(&sndBuf,(0x13ed+2776-0x1ec5),sizeof(
+sndBuf));memset(&msgInfo,(0x124+6019-0x18a7),sizeof(msgInfo));msgId=msgget(
+MODULE_ID_NV,IPC_CREAT|(0x1d84+2640-0x2654));if(-(0x159b+1393-0x1b0b)==msgId){
+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-(0xa83+3015-0x1649);}if(-(0x1102+2280-0x19e9)!=msgctl(msgId,
-IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0x1f20+732-0x21fb)==msgctl(
+,errno);return-(0x1053+3811-0x1f35);}if(-(0x57b+4811-0x1845)!=msgctl(msgId,
+IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0x186f+926-0x1c0c)==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()!=(0x15f0+897-0x1971)){printf(
+,errno);}if(nvDirInit()!=(0xe8f+3530-0x1c59)){printf(
"\x6e\x76\x44\x69\x72\x49\x6e\x69\x74\x20\x66\x61\x69\x6c\x65\x21" "\n");return-
-(0xb9+1934-0x846);}nvConfig();nvInit();while((0x1642+728-0x1919)){if(-
-(0x7c3+7789-0x262f)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
-MSG_TYPE_NV,(0xb36+6986-0x2680))){printf(
+(0x5a2+7666-0x2393);}nvConfig();nvInit();while((0x1a6b+3090-0x267c)){if(-
+(0x25ef+225-0x26cf)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
+MSG_TYPE_NV,(0x263+8625-0x2414))){printf(
"\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(-(0x2b0+5590-0x1885)==msgsnd(
-msgId,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0x1b0d+992-0x1eed))){printf(
+,errno);continue;}analyMsg(&rcvBuf,&sndBuf);if(-(0x11d+5118-0x151a)==msgsnd(
+msgId,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0x19dd+3290-0x26b7))){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((0x153+9249-0x2574));}static void configdir(char*dir){
+,errno);continue;}}return((0xaa+6507-0x1a15));}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<(0x82f+3720-0x16b7)){fprintf(stderr,
+d_name,&statbuf);if(ret<(0x88b+3070-0x1489)){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)==(0x282+4431-0x13d1)||strcmp("\x2e\x2e",entry->
-d_name)==(0x20c+5038-0x15ba))continue;if(!isNvConfiged(entry->d_name)){if(
+strcmp("\x2e",entry->d_name)==(0x11bb+1718-0x1871)||strcmp("\x2e\x2e",entry->
+d_name)==(0x4ab+2378-0xdf5))continue;if(!isNvConfiged(entry->d_name)){if(
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]={(0x40f+4911-0x173e)};fp=fopen
+val=NULL;FILE*fp=NULL;char buf[NV_MAX_CONFIG_LEN]={(0xdd6+1142-0x124c)};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[
-(0x127d+2998-0x1e33)]=='\n'||buf[(0x1b9c+1791-0x229b)]==
-((char)(0x125+2115-0x945)))continue;val=strchr(buf,((char)(0x1a78+2031-0x222a)))
-;if(!val){printf(
+(0xaf8+2382-0x1446)]=='\n'||buf[(0x4ed+3799-0x13c4)]==
+((char)(0x1bd9+239-0x1ca5)))continue;val=strchr(buf,((char)(0xab+3859-0xf81)));
+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)-(0x644+3845-0x1548)]='\0';*val++=
+,NV_CONFIG_FILE,buf);continue;}buf[strlen(buf)-(0x211b+506-0x2314)]='\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)!=(0xd07+1833-0x1430)){if(mkdir(NV_FS_PATH,(0x9e9+4176-0x184c))
-!=(0x130a+1784-0x1a02)){printf(
+NV_FS_PATH,F_OK)!=(0xef0+351-0x104f)){if(mkdir(NV_FS_PATH,(0xe45+2189-0x14e5))!=
+(0xdd7+2382-0x1725)){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-(0x99a+470-0xb6f);}if(mkdir(NV_FS_MAIN_PATH,
-(0xedf+6254-0x2560))!=(0xe12+3746-0x1cb4)){printf(
+,NV_FS_PATH,errno);return-(0x21c+1486-0x7e9);}if(mkdir(NV_FS_MAIN_PATH,
+(0x9a5+4367-0x18c7))!=(0xb67+4670-0x1da5)){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-(0x12cf+895-0x164d);}if(mkdir(NV_FS_BACKUP_PATH,
-(0x967+4521-0x1923))!=(0xe42+6320-0x26f2)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0x1332+4518-0x24d7);}if(mkdir(NV_FS_BACKUP_PATH,
+(0xc4b+1819-0x1179))!=(0x116+948-0x4ca)){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-(0x19c+3152-0xdeb);}}else{if(access(
-NV_FS_MAIN_PATH,F_OK)!=(0xa52+214-0xb28)){if(mkdir(NV_FS_MAIN_PATH,
-(0xecc+4698-0x1f39))!=(0x959+2796-0x1445)){printf(
+,NV_FS_BACKUP_PATH,errno);return-(0xa21+3359-0x173f);}}else{if(access(
+NV_FS_MAIN_PATH,F_OK)!=(0x12a4+3900-0x21e0)){if(mkdir(NV_FS_MAIN_PATH,
+(0x19b3+2345-0x20ef))!=(0xb1d+6035-0x22b0)){printf(
"\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-(0xea+2345-0xa12);}}if(access(NV_FS_BACKUP_PATH,
-F_OK)!=(0x1e7+6321-0x1a98)){if(mkdir(NV_FS_BACKUP_PATH,(0x296+8209-0x20ba))!=
-(0x15f+6474-0x1aa9)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0xa7d+6228-0x22d0);}}if(access(NV_FS_BACKUP_PATH
+,F_OK)!=(0xb67+1885-0x12c4)){if(mkdir(NV_FS_BACKUP_PATH,(0xc78+1969-0x123c))!=
+(0x1684+306-0x17b6)){printf(
"\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-(0xbea+435-0xd9c);}}}return(0x655+4303-0x1724);
-}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[NV_PATH_LEN]={
-(0x480+5877-0x1b75)};char nvBackupFile[NV_PATH_LEN]={(0x965+222-0xa43)};
+,NV_FS_BACKUP_PATH,errno);return-(0x4ca+7443-0x21dc);}}}return
+(0x18d+8017-0x20de);}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[
+NV_PATH_LEN]={(0x8f8+2022-0x10de)};char nvBackupFile[NV_PATH_LEN]={
+(0x533+1185-0x9d4)};
#ifdef FOTA_AB
-T_FLAGS_INFO flags_info={(0x3d3+8847-0x2662)};int ret=(0xce4+1110-0x113a);
+T_FLAGS_INFO flags_info={(0x792+2805-0x1287)};int ret=(0xdd7+4915-0x210a);
#endif
for(list=nv_list;list;list=list->next){snprintf(nvMainFile,NV_PATH_LEN,
"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,list->nvFile);snprintf(nvBackupFile,
@@ -105,73 +108,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()==(0x1414+2986-0x1fbc)){
+if(!strcmp(list->nvFile,NV_CFG)&&get_update_status()==(0x1391+3374-0x20bd)){
reloadFactroyParam(list);delete_not_needed(list);nvcommit(list->nvFile);
#ifdef FOTA_AB
ret=flags_get(&flags_info);flags_info.boot_fota_flag.fota_status=
-(0x8e4+4025-0x189d);ret=flags_set(&flags_info);
+(0xd9d+2967-0x1934);ret=flags_set(&flags_info);
#endif
-}}}uint hash(const char*s){uint hash=(0x159b+3924-0x24ef);while(*s){hash=
+}}}uint hash(const char*s){uint hash=(0x1398+1810-0x1aaa);while(*s){hash=
NV_HASH_MUL*hash+*s++;}return hash;}static int loadFactroyParam(T_NV_NODE*list){
char*val=NULL;FILE*fp=NULL;T_NV_CONFIG*config=NULL;char buf[NV_MAX_ITEM_LEN]={
-(0xb43+5595-0x211e)};for(config=list->fileList;config;config=config->next){fp=
+(0x1656+2747-0x2111)};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[(0x1ddf+2338-0x2701)]=='\n'||buf[(0x786+3488-0x1526)
-]==((char)(0x1822+248-0x18f7)))continue;val=strchr(buf,
-((char)(0x7df+1795-0xea5)));if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0x124d+5276-0x26e9)]=='\n'||buf[(0x2df+8093-0x227c)
+]==((char)(0x147+9511-0x264b)))continue;val=strchr(buf,
+((char)(0x163+3723-0xfb1)));if(!val){printf(
"\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)-(0x1302+2821-0x1e06)]==
-'\n')buf[strlen(buf)-(0x282+4287-0x1340)]='\0';*val++='\0';nvset(list->nvFile,
-buf,val,(0xd82+5730-0x23e3));}printf(
+,config->configFile,buf);continue;}if(buf[strlen(buf)-(0x95f+1394-0xed0)]=='\n')
+buf[strlen(buf)-(0x161a+1921-0x1d9a)]='\0';*val++='\0';nvset(list->nvFile,buf,
+val,(0x1276+3233-0x1f16));}printf(
"\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=(0x50a+5470-0x1a68);int cnt=(0x111+6981-0x1c56);FILE*fp=NULL;
-char*buf=NULL;struct stat statbuff={(0x832+2420-0x11a6)};if(stat(file,&statbuff)
-<(0x2103+633-0x237c))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=(0x1863+283-0x197e);while(cnt<len){cnt=
-cnt+fread(buf+cnt,(0x100f+205-0x10db),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[(0x1f60+2659-0x19c3)];ssize_t nread;int ret=-(0x61b+118-0x690);fd_from=
-open(from,O_RDONLY);if(fd_from<(0xf5d+5190-0x23a3))return-(0x8d4+1218-0xd94);
-fd_to=open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,(0x125d+679-0x1364));if(fd_to<
-(0x538+5840-0x1c08)){ret=-(0x6b7+2144-0xf14);goto out_error;}while(
-(0x11fb+3785-0x20c3)){char*out_ptr;ssize_t nwritten;nread=read(fd_from,buf,
-sizeof(buf));if(nread==(0xdb4+5296-0x2264)){break;}else{if(nread<
-(0x12dc+2971-0x1e77)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
-(0x190d+242-0x19fb);goto out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,
-out_ptr,nread);if(nwritten>(0xa29+6584-0x23e1)){nread-=nwritten;out_ptr+=
-nwritten;}else{if(nwritten<(0x76d+1983-0xf2c)){if(errno==EINTR||errno==EAGAIN){
-continue;}else{ret=-(0xf70+1124-0x13cf);goto out_error;}}}}while(nread>
-(0x616+5351-0x1afd));}ret=fsync(fd_to);if(ret<(0x21ef+11-0x21fa)){printf(
+char*file){int len=(0x1339+1926-0x1abf);int cnt=(0x610+976-0x9e0);FILE*fp=NULL;
+char*buf=NULL;struct stat statbuff={(0x360+2587-0xd7b)};if(stat(file,&statbuff)<
+(0x6a5+1081-0xade))return false;len=statbuff.st_size;if(len<NV_CHECK_SIZE)return
+ false;fp=fopen(file,"\x72\x6f");if(!fp)return false;buf=(char*)malloc(len);if(!
+buf){fclose(fp);return false;}cnt=(0x1d50+1685-0x23e5);while(cnt<len){cnt=cnt+
+fread(buf+cnt,(0x641+6863-0x210f),len-cnt,fp);if(ferror(fp)){clearerr(fp);free(
+buf);fclose(fp);return false;}}if(len!=cnt){free(buf);fclose(fp);return false;}
+if(getSum(buf,len-NV_CHECK_SIZE)+NV_FILE_FLAG!=*(uint*)(buf+len-NV_CHECK_SIZE)){
+free(buf);fclose(fp);return false;}free(buf);fclose(fp);return true;}static int
+copyfile(const char*from,const char*to){int fd_to;int fd_from;char buf[
+(0x11f3+7679-0x1ff2)];ssize_t nread;int ret=-(0x387+8070-0x230c);fd_from=open(
+from,O_RDONLY);if(fd_from<(0x1a92+3130-0x26cc))return-(0x2e4+6521-0x1c5b);fd_to=
+open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,(0x899+7759-0x2548));if(fd_to<
+(0x1030+1273-0x1529)){ret=-(0x419+8950-0x270c);goto out_error;}while(
+(0x5f0+5802-0x1c99)){char*out_ptr;ssize_t nwritten;nread=read(fd_from,buf,sizeof
+(buf));if(nread==(0x9eb+6879-0x24ca)){break;}else{if(nread<(0x60a+110-0x678)){if
+(errno==EINTR||errno==EAGAIN){continue;}else{ret=-(0xcb5+5442-0x21f3);goto
+out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,out_ptr,nread);if(nwritten>
+(0xe7f+5947-0x25ba)){nread-=nwritten;out_ptr+=nwritten;}else{if(nwritten<
+(0x1170+2190-0x19fe)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
+(0x1cb9+299-0x1ddf);goto out_error;}}}}while(nread>(0x260+9380-0x2704));}ret=
+fsync(fd_to);if(ret<(0x525+1403-0xaa0)){printf(
"\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)<(0x89b+3413-0x15f0)){fd_to=
--(0xb0b+2826-0x1614);ret=-(0x25f+3323-0xf54);goto out_error;}close(fd_from);
-return(0x7ca+3259-0x1485);out_error:printf(
+,strerror(errno),to);goto out_error;}if(close(fd_to)<(0x1f3d+1530-0x2537)){fd_to
+=-(0x75f+6431-0x207d);ret=-(0x1e16+1971-0x25c3);goto out_error;}close(fd_from);
+return(0x1989+2493-0x2346);out_error:printf(
"\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>=(0xbcf+4192-0x1c2f))close(fd_to);return
+,from,to,ret);close(fd_from);if(fd_to>=(0xfbd+3801-0x1e96))close(fd_to);return
ret;}static int restoreNvFs(char*dstFile,char*srcFile){if(copyfile(srcFile,
-dstFile)!=(0x499+8254-0x24d7))return RESULT_FAIL;return RESULT_SUCCESS;}static
-int loadNvFs(char*file){int len=(0x2245+1139-0x26b8);int cnt=(0x406+4477-0x1583)
-;FILE*fp=NULL;char*buf=NULL;char*name=NULL;char*value=NULL;char*eq=NULL;struct
-stat statbuff={(0x91f+2966-0x14b5)};char nvFile[NV_PATH_LEN]={
-(0x316+8271-0x2365)};sprintf(nvFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file)
-;if(stat(nvFile,&statbuff)<(0x1799+3401-0x24e2))return RESULT_FAIL;len=statbuff.
+dstFile)!=(0x1141+5552-0x26f1))return RESULT_FAIL;return RESULT_SUCCESS;}static
+int loadNvFs(char*file){int len=(0x715+4869-0x1a1a);int cnt=(0xb39+3384-0x1871);
+FILE*fp=NULL;char*buf=NULL;char*name=NULL;char*value=NULL;char*eq=NULL;struct
+stat statbuff={(0x1297+1527-0x188e)};char nvFile[NV_PATH_LEN]={
+(0xd67+5218-0x21c9)};sprintf(nvFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file)
+;if(stat(nvFile,&statbuff)<(0x975+3867-0x1890))return RESULT_FAIL;len=statbuff.
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+
-(0x8a+4955-0x13e4));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
-(0x225+7662-0x2013),len+(0x1f9d+33-0x1fbd));cnt=(0x97a+5479-0x1ee1);while(cnt<
-len){cnt=cnt+fread(buf+cnt,(0x1ff1+1279-0x24ef),len-cnt,fp);if(ferror(fp)){
+(0x1cb9+2360-0x25f0));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
+(0x1040+3256-0x1cf8),len+(0x105a+3083-0x1c64));cnt=(0x709+4120-0x1721);while(cnt
+<len){cnt=cnt+fread(buf+cnt,(0x1f0c+584-0x2153),len-cnt,fp);if(ferror(fp)){
clearerr(fp);fclose(fp);free(buf);return RESULT_FILE_READ_FAIL;}}if(cnt!=len){
fclose(fp);free(buf);return RESULT_FILE_READ_FAIL;}buf[len]='\0';name=buf;while(
-*name){if(!(eq=strchr(name,((char)(0xdd1+3356-0x1ab0))))){break;}*eq='\0';value=
-eq+(0x2191+557-0x23bd);nvset(file,name,value,(0xf84+4202-0x1fed));*eq=
-((char)(0x726+7678-0x24e7));name=value+strlen(value)+(0x1d8+9088-0x2557);}free(
+*name){if(!(eq=strchr(name,((char)(0x1dc8+1952-0x252b))))){break;}*eq='\0';value
+=eq+(0xe5b+1394-0x13cc);nvset(file,name,value,(0x904+4166-0x1949));*eq=
+((char)(0x2d5+5417-0x17c1));name=value+strlen(value)+(0x11+4583-0x11f7);}free(
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
@@ -187,100 +190,100 @@
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x70\x61\x72\x61\x6d\x20\x69\x6c\x6c\x65\x67\x61\x6c\x21" "\n"
);return RESULT_INVAL;}if(configFile){newConfig=(T_NV_CONFIG*)malloc(sizeof(
T_NV_CONFIG));if(!newConfig)return RESULT_MALLOC_FAIL;strncpy(newConfig->
-configFile,configFile,NV_PATH_LEN-(0x39d+8995-0x26bf));newConfig->configFile[
-NV_PATH_LEN-(0xa9c+6159-0x22aa)]='\0';newConfig->next=NULL;}for(list=nv_list;
-list;list=list->next){if(strcmp(list->nvFile,nvFile)==(0x915+2007-0x10ec))break;
-}if(!list){newList=(T_NV_NODE*)malloc(sizeof(T_NV_NODE));if(!newList){if(
+configFile,configFile,NV_PATH_LEN-(0x5e1+2259-0xeb3));newConfig->configFile[
+NV_PATH_LEN-(0x150+8368-0x21ff)]='\0';newConfig->next=NULL;}for(list=nv_list;
+list;list=list->next){if(strcmp(list->nvFile,nvFile)==(0x543+1630-0xba1))break;}
+if(!list){newList=(T_NV_NODE*)malloc(sizeof(T_NV_NODE));if(!newList){if(
newConfig)free(newConfig);return RESULT_MALLOC_FAIL;}newList->next=NULL;strncpy(
-newList->nvFile,nvFile,NV_PATH_LEN-(0x216+4427-0x1360));newList->nvFile[
-NV_PATH_LEN-(0x1742+874-0x1aab)]='\0';memset(newList->nvTable,
-(0xdcf+1745-0x14a0),NV_HASH_LEN*(0xfc7+1769-0x16ac));newList->fileList=newConfig
-;if(!nv_list)nv_list=newList;else{newList->next=nv_list->next;nv_list->next=
-newList;}}else if(!list->fileList)list->fileList=newConfig;else{if(newConfig==
-NULL)return RESULT_FAIL;newConfig->next=list->fileList->next;list->fileList->
-next=newConfig;}return RESULT_SUCCESS;}static bool isCfgConfiged(char*configFile
-){T_NV_NODE*list=NULL;T_NV_CONFIG*config=NULL;for(list=nv_list;list;list=list->
-next){for(config=list->fileList;config;config=config->next){if(!strcmp(config->
-configFile,configFile))return true;}}return false;}static bool isNvConfiged(char
-*nvFile){T_NV_NODE*list=NULL;for(list=nv_list;list;list=list->next){if(!strcmp(
-list->nvFile,nvFile))return true;}return false;}static uint getSum(const char*s,
-int len){uint sum=(0x2225+1084-0x2661);char*data=(char*)s;while(len-- >
-(0xc59+2541-0x1646)){sum+=(*data++);}return sum;}static int saveNvFs(char*nvName
-,char*nvFile){int i=(0x116a+4658-0x239c);int sum=(0xd49+6560-0x26e9);int bufSize
-=(0x17db+2074-0x1ff5);int itemSize=(0xfb4+1923-0x1737);int ret=
-(0x6c9+7134-0x22a7);int fp=(0x83b+4997-0x1bc0);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,
-(0x16d2+1633-0x1b93));if(fp==-(0x147f+691-0x1731)){printf(
+newList->nvFile,nvFile,NV_PATH_LEN-(0x279+4152-0x12b0));newList->nvFile[
+NV_PATH_LEN-(0x211+357-0x375)]='\0';memset(newList->nvTable,(0x1410+3588-0x2214)
+,NV_HASH_LEN*(0xf3f+5903-0x264a));newList->fileList=newConfig;if(!nv_list)
+nv_list=newList;else{newList->next=nv_list->next;nv_list->next=newList;}}else if
+(!list->fileList)list->fileList=newConfig;else{if(newConfig==NULL)return
+RESULT_FAIL;newConfig->next=list->fileList->next;list->fileList->next=newConfig;
+}return RESULT_SUCCESS;}static bool isCfgConfiged(char*configFile){T_NV_NODE*
+list=NULL;T_NV_CONFIG*config=NULL;for(list=nv_list;list;list=list->next){for(
+config=list->fileList;config;config=config->next){if(!strcmp(config->configFile,
+configFile))return true;}}return false;}static bool isNvConfiged(char*nvFile){
+T_NV_NODE*list=NULL;for(list=nv_list;list;list=list->next){if(!strcmp(list->
+nvFile,nvFile))return true;}return false;}static uint getSum(const char*s,int
+len){uint sum=(0x19a0+2329-0x22b9);char*data=(char*)s;while(len-- >
+(0x7c5+6614-0x219b)){sum+=(*data++);}return sum;}static int saveNvFs(char*nvName
+,char*nvFile){int i=(0x105f+3818-0x1f49);int sum=(0xad7+7136-0x26b7);int bufSize
+=(0x14f0+4020-0x24a4);int itemSize=(0x966+63-0x9a5);int ret=(0x504+6213-0x1d49);
+int fp=(0x515+8326-0x259b);char*buf=NULL;T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL
+;for(list=nv_list;list;list=list->next){if(strcmp(list->nvFile,nvName))continue;
+fp=open(nvFile,O_SYNC|O_RDWR|O_CREAT|O_TRUNC,(0x28b+7592-0x1e93));if(fp==-
+(0xc47+1419-0x11d1)){printf(
"\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=(0xc69+6638-0x2657);i<
+(!buf){close(fp);return RESULT_MALLOC_FAIL;}for(i=(0x2db+4563-0x14ae);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)+(0x1d3f+630-0x1fb3);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp,
-buf,bufSize)<(0x1c18+932-0x1fbc)){printf(
+item->value)+(0x3f1+8945-0x26e0);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp,
+buf,bufSize)<(0xeab+6060-0x2657)){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=(0xe00+5527-0x2397);}sprintf(buf+bufSize,
++=getSum(buf,bufSize);bufSize=(0x39b+535-0x5b2);}sprintf(buf+bufSize,
"\x25\x73\x3d\x25\x73",item->key,item->value);bufSize+=itemSize;}}if(bufSize!=
-(0x1cc+3665-0x101d)){if(write(fp,buf,bufSize)<(0x14+7316-0x1ca8)){printf(
+(0x1b8+6729-0x1c01)){if(write(fp,buf,bufSize)<(0xe39+2723-0x18dc)){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)<(0x1d9+819-0x50c)){
-printf(
+bufSize);}sum+=NV_FILE_FLAG;if(write(fp,&sum,NV_CHECK_SIZE)<(0x2011+387-0x2194))
+{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<(0x547+6420-0x1e5b)){printf(
+buf);close(fp);if(ret<(0xf17+905-0x12a0)){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=
-(0xe34+5698-0x2476);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;for(list=nv_list;
+(0x16e0+1509-0x1cc5);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-(0x115+9033-0x245d));
-value[NV_MAX_VAL_LEN-(0x1385+4341-0x2479)]='\0';return RESULT_SUCCESS;}}return
+key,key))continue;strncpy(value,item->value,NV_MAX_VAL_LEN-(0xcf7+779-0x1001));
+value[NV_MAX_VAL_LEN-(0x1bc+8288-0x221b)]='\0';return RESULT_SUCCESS;}}return
RESULT_NO_ITEM;}static int nvset(char*file,const char*key,const char*value,int
-saveFlag){int index=(0x1e3+6539-0x1b6e);int ret=(0x1bba+654-0x1e48);int
-key_buf_len=(0x130c+2829-0x1e19);int value_buf_len=(0x72f+6674-0x2141);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)+(0x383+7336-0x202a);value_buf_len=
-strlen(value)+(0x161+6558-0x1afe);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-
-(0xe1f+2406-0x1784));item->value[value_buf_len-(0x146+9599-0x26c4)]='\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){
+saveFlag){int index=(0xd61+5268-0x21f5);int ret=(0xaaa+2793-0x1593);int
+key_buf_len=(0x135b+3339-0x2066);int value_buf_len=(0x4b+3162-0xca5);T_NV_NODE*
+list=NULL;T_NV_ITEM*item=NULL;T_NV_ITEM*newItem=NULL;if(NULL==key||NULL==value)
+return RESULT_FAIL;key_buf_len=strlen(key)+(0x644+4271-0x16f2);value_buf_len=
+strlen(value)+(0xce5+642-0xf66);for(list=nv_list;list;list=list->next){if(strcmp
+(list->nvFile,file))continue;index=hash(key)%NV_HASH_LEN;for(item=list->nvTable[
+index];item;item=item->next){if(strcmp(item->key,key))continue;if(saveFlag)item
+->saveFlag=saveFlag;if(!strcmp(item->value,value))return RESULT_SUCCESS;free(
+item->value);item->value=(char*)malloc(value_buf_len);if(!item->value)return
+RESULT_MALLOC_FAIL;strncpy(item->value,value,value_buf_len-(0x11e4+4978-0x2555))
+;item->value[value_buf_len-(0x140f+1407-0x198d)]='\0';return RESULT_SUCCESS;}
+newItem=(T_NV_ITEM*)malloc(sizeof(T_NV_ITEM));if(!newItem)return
+RESULT_MALLOC_FAIL;newItem->key=(char*)malloc(key_buf_len);if(!newItem->key){
free(newItem);return RESULT_MALLOC_FAIL;}newItem->value=(char*)malloc(
value_buf_len);if(!newItem->value){free(newItem->key);free(newItem);return
-RESULT_MALLOC_FAIL;}strncpy(newItem->key,key,key_buf_len-(0x1520+575-0x175e));
-newItem->key[key_buf_len-(0xd98+3230-0x1a35)]='\0';strncpy(newItem->value,value,
-value_buf_len-(0xcd6+306-0xe07));newItem->value[value_buf_len-
-(0x175f+289-0x187f)]='\0';newItem->next=NULL;newItem->saveFlag=saveFlag;newItem
-->update_flag=(0x802+6800-0x2292);if(!list->nvTable[index])list->nvTable[index]=
+RESULT_MALLOC_FAIL;}strncpy(newItem->key,key,key_buf_len-(0xbb9+1232-0x1088));
+newItem->key[key_buf_len-(0x178+2228-0xa2b)]='\0';strncpy(newItem->value,value,
+value_buf_len-(0x1bb1+497-0x1da1));newItem->value[value_buf_len-
+(0xe07+3106-0x1a28)]='\0';newItem->next=NULL;newItem->saveFlag=saveFlag;newItem
+->update_flag=(0xd4d+750-0x103b);if(!list->nvTable[index])list->nvTable[index]=
newItem;else{newItem->next=list->nvTable[index]->next;list->nvTable[index]->next
=newItem;}return RESULT_SUCCESS;}ret=addConfigFile(file,NULL);if(ret==
RESULT_SUCCESS)return nvset(file,key,value,saveFlag);else return ret;}static int
- nvunset(char*file,char*key){int index=(0xd81+1366-0x12d7);T_NV_NODE*list=NULL;
+ nvunset(char*file,char*key){int index=(0x5ea+3796-0x14be);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=(0x18d1+980-0x1ca5);
+RESULT_NO_ITEM;}static int nvreset(char*file){int ret=(0x347+6086-0x1b0d);
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=(0x1051+1122-0x14b3)
-;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=
-(0x1330+4044-0x22fc);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=(0x78b+6791-0x2212);char nvMainFile[NV_PATH_LEN]={
-(0x253+3847-0x115a)};char nvBackupFile[NV_PATH_LEN]={(0x1783+2848-0x22a3)};
+}return RESULT_NO_FILE;}static int nvclear(char*file){int i=(0x1de8+954-0x21a2);
+T_NV_NODE*list=NULL;T_NV_ITEM*cur=NULL;T_NV_ITEM*item=NULL;for(list=nv_list;list
+;list=list->next){if(strcmp(list->nvFile,file))continue;for(i=
+(0xd1d+3193-0x1996);i<NV_HASH_LEN;i++){for(item=list->nvTable[i];item;){cur=item
+;item=item->next;free(cur->key);free(cur->value);free(cur);}list->nvTable[i]=
+NULL;}return RESULT_SUCCESS;}return RESULT_NO_FILE;}static int nvcommit(char*
+file){int ret=(0x1286+2707-0x1d19);char nvMainFile[NV_PATH_LEN]={
+(0x1d0c+1656-0x2384)};char nvBackupFile[NV_PATH_LEN]={(0x101c+1513-0x1605)};
sprintf(nvMainFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file);sprintf(
nvBackupFile,"\x25\x73\x2f\x25\x73",NV_FS_BACKUP_PATH,file);ret=saveNvFs(file,
nvMainFile);if(ret!=RESULT_SUCCESS)return ret;return restoreNvFs(nvBackupFile,
diff --git a/ap/app/zte_comm/nvserver/nvupdate.c b/ap/app/zte_comm/nvserver/nvupdate.c
index 46565f8..90ec1af 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={(0x143a+1964-0x1be6)};
-unsigned int status=(0x663+612-0x8c7);int ret=(0x195c+474-0x1b36);ret=flags_get(
-&flags_info);status=flags_info.boot_fota_flag.fota_status;if(status==
-(0x740+7441-0x2450))return(0x16d9+3508-0x248b);else return(0x15e4+4022-0x259a);}
+int get_update_status(void){T_FLAGS_INFO flags_info={(0xc56+1828-0x137a)};
+unsigned int status=(0xa61+3485-0x17fe);int ret=(0x1f55+1413-0x24da);ret=
+flags_get(&flags_info);status=flags_info.boot_fota_flag.fota_status;if(status==
+(0x109+7756-0x1f54))return(0xc18+3727-0x1aa5);else return(0x864+3912-0x17ac);}
#else
-int get_update_status(void){int update_status;FILE*fd=(0x1fe7+737-0x22c8);int
+int get_update_status(void){int update_status;FILE*fd=(0x8aa+3942-0x1810);int
ret;char*filename=NULL;if(access(FOTA_UPDATE_STATUS_FILE_OLD,R_OK)==
-(0x1808+2242-0x20ca)){filename=FOTA_UPDATE_STATUS_FILE_OLD;}else{filename=
+(0x3f6+8063-0x2375)){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<(0xa61+4828-0x1d3d)){printf(
+(ret<(0x1f00+438-0x20b6)){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-(0xf6a+854-0x12bf);
-}
+update_status);fclose(fd);return update_status;error0:return-(0x6c9+5426-0x1bfa)
+;}
#endif
int nvupdate(char*nv_file,char*config_file,const char*key,const char*value,int
-saveFlag){int index=(0x1af9+1683-0x218c);int key_buf_len=(0x555+1941-0xcea);int
-value_buf_len=(0x186b+2309-0x2170);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;
+saveFlag){int index=(0x386+929-0x727);int key_buf_len=(0x32c+3352-0x1044);int
+value_buf_len=(0x17a+585-0x3c3);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;
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)+(0x1aa3+663-0x1d39);value_buf_len=
-strlen(value)+(0x18f+9358-0x261c);for(list=nv_list;list;list=list->next){if(
+,nv_file,key,value);key_buf_len=strlen(key)+(0xc25+402-0xdb6);value_buf_len=
+strlen(value)+(0xd7+5252-0x155a);for(list=nv_list;list;list=list->next){if(
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=(0x10b8+342-0x120d);printf(
+update_flag=(0x414+5234-0x1885);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((0x5c8+835-0x90a)==item->update_flag){printf
-(
+config_file,"\x75\x73\x65\x72")){if((0x188+5416-0x16af)==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=
-(0x74c+636-0x9c7);printf(
+(0x91d+139-0x9a7);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-(0x1745+619-0x19af));item->value[value_buf_len-
-(0x1ffc+469-0x21d0)]='\0';item->update_flag=(0x1224+1037-0x1630);return
+value,value_buf_len-(0x103d+3904-0x1f7c));item->value[value_buf_len-
+(0x5c8+305-0x6f8)]='\0';item->update_flag=(0x11e2+1934-0x196f);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)+
-(0x1659+1613-0x1ca5));if(!newItem->key){free(newItem);printf(
+(0xc37+6367-0x2515));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-
-(0x1f92+1019-0x238c));newItem->key[key_buf_len-(0x1fb+279-0x311)]='\0';strncpy(
-newItem->value,value,value_buf_len-(0x5bb+3024-0x118a));newItem->value[
-value_buf_len-(0x87a+311-0x9b0)]='\0';newItem->next=NULL;newItem->saveFlag=
-saveFlag;newItem->update_flag=(0x210d+472-0x22e4);printf(
+(0x11ea+4455-0x2350));newItem->key[key_buf_len-(0x1e75+556-0x20a0)]='\0';strncpy
+(newItem->value,value,value_buf_len-(0x2cd+1769-0x9b5));newItem->value[
+value_buf_len-(0x555+8051-0x24c7)]='\0';newItem->next=NULL;newItem->saveFlag=
+saveFlag;newItem->update_flag=(0x103f+5836-0x270a);printf(
"\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]={(0x70a+1556-0xd1e)};printf(
+NV_MAX_ITEM_LEN]={(0x16f4+3164-0x2350)};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[(0x1100+717-0x13cd)]=='\n'||buf[(0xb44+5762-0x21c6)]
-==((char)(0x111+4889-0x1407)))continue;val=strchr(buf,
-((char)(0x327+6366-0x1bc8)));if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0x132a+1872-0x1a7a)]=='\n'||buf[(0x1b8+6120-0x19a0)
+]==((char)(0xb13+4768-0x1d90)))continue;val=strchr(buf,
+((char)(0x1a99+2848-0x257c)));if(!val){printf(
"\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)-(0x1832+671-0x1ad0)]='\0';*
-val++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0x1693+1037-0x1a9f)
-);}printf(
+,config->configFile,buf);continue;}buf[strlen(buf)-(0xab8+5631-0x20b6)]='\0';*
+val++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0x326+6743-0x1d7c))
+;}printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x72\x65\x6c\x6f\x61\x64\x46\x61\x63\x74\x72\x6f\x79\x50\x61\x72\x61\x6d\x20\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65\x20\x65\x6e\x64\x3a\x25\x73\x21" "\n"
,config->configFile);fclose(fp);}return RESULT_SUCCESS;}void dump_list(T_NV_ITEM
*list){if(list==NULL){printf(
@@ -108,12 +108,12 @@
list->next;while(p!=NULL){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x75\x6d\x70\x20\x6b\x65\x79\x3d\x25\x73\x2c\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x2c\x20\x70\x3d\x30\x78\x25\x78" "\n"
,p->key,p->value,((unsigned int)p));p=p->next;}}int delete_not_needed(T_NV_NODE*
-list){int index=(0xff2+1821-0x170f);T_NV_ITEM*item=NULL;T_NV_ITEM head={
-(0x1062+5597-0x263f)};T_NV_ITEM*prev=&head;printf(
+list){int index=(0x1a5c+3012-0x2620);T_NV_ITEM*item=NULL;T_NV_ITEM head={
+(0x8fb+4667-0x1b36)};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=(0xb61+2216-0x1409);index<NV_HASH_LEN;index++){head.next=list->
-nvTable[index];prev=&head;for(item=prev->next;item;){if((0x1c20+418-0x1dc1)==
-item->update_flag){prev=item;item=item->next;}else{printf(
+);for(index=(0x179+6200-0x19b1);index<NV_HASH_LEN;index++){head.next=list->
+nvTable[index];prev=&head;for(item=prev->next;item;){if((0xf8+4954-0x1451)==item
+->update_flag){prev=item;item=item->next;}else{printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x65\x6c\x65\x74\x65\x20\x6b\x65\x79\x3d\x25\x73\x2c\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x20" "\n"
,item->key,item->value);prev->next=item->next;free(item->key);free(item->value);
free(item);item=prev->next;}}list->nvTable[index]=head.next;}printf(
diff --git a/ap/app/zte_comm/phonebook/src/pb_db.c b/ap/app/zte_comm/phonebook/src/pb_db.c
index 801a0a1..8edc9e6 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]={(0x975+2842-0x148f)};UINT32 count=(0x1a6f+1895-0x21d6);result
+ZPB_MAX_BYTES_DB]={(0x9b3+6861-0x2480)};UINT32 count=(0x1e9c+1882-0x25f6);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,(0x56c+7495-0x22b3),sizeof(sql));snprintf(sql
-,sizeof(sql)-(0x98a+2877-0x14c6),
+,result);return result;}memset(sql,(0xa12+1453-0xfbf),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0x19bf+175-0x1a6d),
"\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((0x371+1634-0x9d3)<count){memset(sql,(0xa07+509-0xc04),sizeof(sql));
-snprintf(sql,sizeof(sql)-(0xaeb+2640-0x153a),
+count);if((0x6ab+5907-0x1dbe)<count){memset(sql,(0xb09+2270-0x13e7),sizeof(sql))
+;snprintf(sql,sizeof(sql)-(0x1952+2531-0x2334),
"\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]={(0x6b6+3712-0x1536)};result=
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x6ed+3549-0x14ca)};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 (0xe9c+1566-0x14ba)
+#if (0xda2+786-0x10b4)
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)==(0x1454+1012-0x1848)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZPB_TMP_PATH,F_OK)==(0x1693+636-0x190f)){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)!=(0x1243+2570-0x1c4d)){slog(PB_PRINT,SLOG_ERR,
+remove(ZPB_TMP_PATH)!=(0x21fd+418-0x239f)){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)!=(0xe59+660-0x10ed)){slog(PB_PRINT,
+);}}if(rename(ZPB_SEC_PATH,ZPB_TMP_PATH)!=(0x666+5711-0x1cb5)){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[(0xd47+5540-0x22d3)]={(0x41b+4704-0x167b)};char cmd[
-(0xfe0+1303-0x1477)]={(0x1831+1826-0x1f53)};sc_cfg_get(
+);}{char rnum_buf[(0x9d8+3427-0x1723)]={(0x1049+755-0x133c)};char cmd[
+(0x21bb+1069-0x2568)]={(0x6b9+858-0xa13)};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
-)==(0x1142+5097-0x252b)){if(remove(ZPB_TMP_PATH)!=(0x504+6291-0x1d97)){slog(
+)==(0x1f06+565-0x213b)){if(remove(ZPB_TMP_PATH)!=(0x12bc+2884-0x1e00)){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(0xa6c+5617-0x205d);}return
-(0x17cf+1691-0x1e69);}return(0x33a+253-0x437);}T_zPb_DbResult atPb_ExecDbSql(
+(pSql,"\x3b")||strstr(pSql,"\x2d\x2d")){return(0x1a19+219-0x1af4);}return
+(0x1d9c+1072-0x21cb);}return(0x4c2+2497-0xe83);}T_zPb_DbResult atPb_ExecDbSql(
const char*pSql,sqlite3_callback callback,VOID*pFvarg){sqlite3*pDb=NULL;CHAR
-dbErrMsg[(0x153b+1390-0x1a29)]={(0xe70+3127-0x1aa7)};if(NULL==pSql){return
+dbErrMsg[(0x11c+9703-0x2683)]={(0x11fa+2311-0x1b01)};if(NULL==pSql){return
ZPB_DB_ERROR_INVALIDPTR;}
#ifdef WEBS_SECURITY
-if(check_sql_cmd(pSql)==(0x4a2+1585-0xad3)){slog(PB_PRINT,SLOG_ERR,
+if(check_sql_cmd(pSql)==(0xdd9+5534-0x2377)){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)-(0x57f+3453-0x12fb));slog(PB_PRINT,SLOG_ERR
-,
+sqlite3_errmsg(pDb),sizeof(dbErrMsg)-(0x1ea+1586-0x81b));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=(0x160d+2984-0x21b5);if((0x105c+2697-0x1ae4)>line){
-slog(PB_PRINT,SLOG_ERR,
+char**lname){SINT32 index=(0x1e77+1809-0x2588);if((0x17d+5463-0x16d3)>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-(0x21a3+212-0x2276);}index=atoi(zresult[(0x4a7+340-0x5fb)]);if(index>
+);return-(0x1807+726-0x1adc);}index=atoi(zresult[(0xc86+4964-0x1fea)]);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-(0x9d0+1880-0x1127);}slog(PB_PRINT,SLOG_DEBUG,
+);return-(0xfd5+4374-0x20ea);}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(0xef6+3595-0x1d01);}
-T_zPb_DbResult atPb_InitApIndex(){CHAR sql[ZPB_MAX_BYTES_DB]={(0xf18+352-0x1078)
-};SINT32 i=(0x11b+650-0x3a4);g_zPb_ApIndex[(0xf3b+2476-0x18e7)]=
-ZPB_AP_MAX_RECORD;for(i=(0xbb7+1445-0x115b);i<=g_zPb_ApIndex[(0x140+5773-0x17cd)
-];i++){g_zPb_ApIndex[i]=PBM_ERROR_NOT_FOUND;}snprintf(sql,sizeof(sql),
+,index);g_zPb_ApIndex[index]=PBM_SUCCESS;return(0x823+5454-0x1d71);}
+T_zPb_DbResult atPb_InitApIndex(){CHAR sql[ZPB_MAX_BYTES_DB]={(0x2d4+2812-0xdd0)
+};SINT32 i=(0x10a6+238-0x1193);g_zPb_ApIndex[(0xeab+714-0x1175)]=
+ZPB_AP_MAX_RECORD;for(i=(0x102c+5138-0x243d);i<=g_zPb_ApIndex[
+(0xdda+2723-0x187d)];i++){g_zPb_ApIndex[i]=PBM_ERROR_NOT_FOUND;}snprintf(sql,
+sizeof(sql),
"\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(-(0x15d8+2988-0x2183)
-==access(path,(0x4b5+2731-0xf60))){slog(PB_PRINT,SLOG_DEBUG,
+ZUFI_NULL);}INT zte_pbm_check_and_creat_dir(char*path){if(-(0x619+7404-0x2304)==
+access(path,(0xb99+245-0xc8e))){slog(PB_PRINT,SLOG_DEBUG,
"\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(-(0x1079+2816-0x1b78)==mkdir(path,(0x117b+4584-0x2164))){slog(
+,ZPB_DB_DIR);if(-(0xfa1+506-0x119a)==mkdir(path,(0x723+1261-0xa11))){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-(0x6e5+3517-0x14a1);}}return(0x1085+1221-0x154a);}UINT8
+);return-(0xef1+4302-0x1fbe);}}return(0xcd+1986-0x88f);}UINT8
zte_pbm_check_web_pbm_dir(VOID){
#ifdef _MBB_OS_UCLINUX
(VOID)zte_pbm_check_and_creat_dir(
@@ -142,24 +142,24 @@
"\x2f\x65\x74\x63\x5f\x72\x77\x2f\x63\x6f\x6e\x66\x69\x67");
#endif
return ZUFI_SUCC;}T_zPb_DbResult atPb_DelSimRecFromPbTable(SINT32 index){
-T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x22ba+595-0x250d)}
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x7b8+3533-0x1585)}
;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]={(0x18ac+335-0x19fb)};if(NULL==
+result=ZPB_DB_ERROR;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1066+5279-0x2505)};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[(0x458+6354-0x1cf8)]={(0xf19+4598-0x210f)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,
-pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0x530+5632-0x1b2f))&&(pbPara->pbIndex
-<=atoi(pbMax))){g_zPb_SimIndex[pbPara->pbIndex]=PBM_SUCCESS;}(VOID)sc_cfg_set(
-ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
-ZPB_NEW_ERROR);}slog(PB_PRINT,SLOG_DEBUG,
+pbMax[(0x55+8375-0x20da)]={(0x15f1+1746-0x1cc3)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,
+pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0x16e7+1375-0x1c45))&&(pbPara->
+pbIndex<=atoi(pbMax))){g_zPb_SimIndex[pbPara->pbIndex]=PBM_SUCCESS;}(VOID)
+sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}else{(VOID)sc_cfg_set(
+ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x70\x62\x6d\x3a\x65\x78\x65\x63\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x72\x65\x73\x75\x6c\x74\x20\x25\x64" "\n"
,ZPB_DB_PBM_TABLE,result);return result;}VOID atPb_SqlModifyOneRec(
T_zPb_WebContact*pbmPara,char*sql,int len){printf(
@@ -173,17 +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={(0x93c+2047-0x113b)};if((0xb48+4277-0x1bfc)>line){slog(PB_PRINT,SLOG_ERR,
+para={(0x17a2+2158-0x2010)};if((0x2450+125-0x24cc)>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[(0xf15+2902-0x1a6b)]);para.
-pbLocation=atoi(zresult[(0xbff+6501-0x2563)]);slog(PB_PRINT,SLOG_DEBUG,
+);return ZPB_DB_ERROR;}para.pbIndex=atoi(zresult[(0xd59+5398-0x226f)]);para.
+pbLocation=atoi(zresult[(0x1c86+681-0x1f2e)]);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]={(0x1036+1905-0x17a7)};snprintf(sql,sizeof(sql)-
-(0xdc5+395-0xf4f),
+ZPB_MAX_BYTES_DB]={(0x559+6374-0x1e3f)};snprintf(sql,sizeof(sql)-
+(0x116+2032-0x905),
"\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,(0xe49+1242-0x1323),sizeof(
+,ZPB_DB_PBM_TABLE,pbPara->pbId);memset(pbPara,(0x62f+6530-0x1fb1),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]={(0x1cc+5749-0x1841)}
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0xc9b+3108-0x18bf)}
;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((0x1c13+1240-0x20ea)>line){
+(VOID*fvarg,int line,char**zresult,char**lname){if((0x227f+214-0x2354)>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-(0x2ec+17-0x2fc);}*(int*)fvarg=atoi(zresult[(0x975+2096-0x11a5)]);
-return(0x13fa+2923-0x1f65);}T_zPb_DbResult atPb_SetSimCapacityTable(
+);return-(0x1e3d+1739-0x2507);}*(int*)fvarg=atoi(zresult[(0x2140+102-0x21a6)]);
+return(0x3e5+8969-0x26ee);}T_zPb_DbResult atPb_SetSimCapacityTable(
T_zPb_UsimCapacity pbPara){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[
-ZPB_MAX_BYTES_DB]={(0x35a+7764-0x21ae)};UINT32 count=(0x98b+3388-0x16c7);
-snprintf(sql,sizeof(sql)-(0xc23+5388-0x212e),
+ZPB_MAX_BYTES_DB]={(0x8d7+359-0xa3e)};UINT32 count=(0x2e6+7740-0x2122);snprintf(
+sql,sizeof(sql)-(0x2dd+4776-0x1584),
"\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((0x366+1247-0x845)<count){memset(sql,(0x398+3056-0xf88),sizeof(sql));
-snprintf(sql,sizeof(sql)-(0x12fc+1281-0x17fc),
+count);if((0xd6+236-0x1c2)<count){memset(sql,(0xa92+2971-0x162d),sizeof(sql));
+snprintf(sql,sizeof(sql)-(0x224+1054-0x641),
"\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,(0xd81+1694-0x141f),sizeof(sql));snprintf(sql,
-sizeof(sql)-(0x9dc+1126-0xe41),"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,(0x765+955-0xb20),sizeof(sql));snprintf(sql,sizeof(
+sql)-(0x468+8294-0x24cd),"insert into %s (Sim_type,Max_record_number,Used_record_number,Max_number_len,Max_name_len,Max_anr_len,Max_anr1_len, \
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]={(0x2471+605-0x26ce)
-};SINT32 count=(0x59f+771-0x8a2);T_zPb_ApCapacity pbPara={(0x11d9+163-0x127c)};
-snprintf(sql,sizeof(sql)-(0x2309+712-0x25d0),
+{T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={
+(0x194d+3142-0x2593)};SINT32 count=(0x463+1888-0xbc3);T_zPb_ApCapacity pbPara={
+(0xa10+3495-0x17b7)};snprintf(sql,sizeof(sql)-(0x1612+1627-0x1c6c),
"\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((0xc93+6392-0x258b)<count){memset(sql,
-(0x1a2+4701-0x13ff),sizeof(sql));snprintf(sql,sizeof(sql)-(0x104f+3963-0x1fc9),
+atPb_DbCountTableLineCb,&count);if((0x456+5142-0x186c)<count){memset(sql,
+(0x441+2696-0xec9),sizeof(sql));snprintf(sql,sizeof(sql)-(0x12b+1968-0x8da),
"\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,(0x64+3006-0xc22),sizeof(sql));snprintf(sql,sizeof(
-sql)-(0x1c79+542-0x1e96),
+);return result;}}memset(sql,(0x1b3b+331-0x1c86),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0xb56+5426-0x2087),
"\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,(0x10e4+1044-0x14f8),
-sizeof(sql));snprintf(sql,sizeof(sql)-(0xd1f+3442-0x1a90),
+,pbPara.maxRecordNum,pbPara.usedRecordNum);memset(sql,(0x12d+6342-0x19f3),sizeof
+(sql));snprintf(sql,sizeof(sql)-(0x1e4c+1331-0x237e),
"\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=
-(0x1b70+2459-0x250b);if((0x4f6+2626-0xf37)>line){return ZPB_DB_ERROR;}pbIndex=(
+(0x15d6+926-0x1974);if((0x1fd+8977-0x250d)>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+(0x5a0+8366-0x264d)]=atoi(zresult[(0xb81+927-0xf20)]);
+,i);pbIndex->apIndex[i+(0x1db+2850-0xcfc)]=atoi(zresult[(0x1a95+1320-0x1fbd)]);
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+(0xef1+4044-0x1ebc)]);pbIndex->count=i+(0x10b2+4270-0x215f);
+,pbIndex->apIndex[i+(0xba1+4174-0x1bee)]);pbIndex->count=i+(0x12c+1223-0x5f2);
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]
-={(0x2165+513-0x2366)};SINT32 countByGroup=(0xbb0+2025-0x1399);CHAR pbGroup[
-ZPB_PARAM_SIZE20]={(0x57d+6916-0x2081)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
-pbGroup));snprintf(sql,sizeof(sql)-(0x1d5c+744-0x2043),
+={(0x37+5602-0x1619)};SINT32 countByGroup=(0x7d7+5168-0x1c07);CHAR pbGroup[
+ZPB_PARAM_SIZE20]={(0x9ed+3758-0x189b)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
+pbGroup));snprintf(sql,sizeof(sql)-(0x403+3376-0x1132),
"\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,(0x430+5418-0x195a),sizeof(sql
-));snprintf(sql,sizeof(sql)-(0xb7b+1785-0x1273),
+atPb_DbCountTableLineCb,&countByGroup);memset(sql,(0xe7d+681-0x1126),sizeof(sql)
+);snprintf(sql,sizeof(sql)-(0xa03+1497-0xfdb),
"\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,
-(0x221+5595-0x17fc),sizeof(sql));snprintf(sql,sizeof(sql)-(0x8b4+451-0xa76),
+(0x15a3+1192-0x1a4b),sizeof(sql));snprintf(sql,sizeof(sql)-(0x134a+1170-0x17db),
"\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={(0x357+2698-0xde1)};if(NULL==
+recData,SINT32 delTime){T_zPb_Header pbHeader={(0x993+786-0xca5)};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]={(0x420+8520-0x2568)};if(NULL==
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1290+3489-0x2031)};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)-(0x133c+2853-0x1e60),
+,delTime,pbPara->delId[delTime]);snprintf(sql,sizeof(sql)-(0xa94+1062-0xeb9),
"\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=(0x1b9+1726-0x876);for(i=(0x11c3+3826-0x20b4);(i<=g_zPb_SimIndex[
-(0x174+7414-0x1e6a)])&&(i<(ZPB_SIM_MAX_RECORD+(0x7f8+1379-0xd5a)));i++){
+SINT32 i=(0x12ec+5150-0x2709);for(i=(0x1e47+1969-0x25f7);(i<=g_zPb_SimIndex[
+(0x728+5620-0x1d1c)])&&(i<(ZPB_SIM_MAX_RECORD+(0xcf0+3140-0x1933)));i++){
g_zPb_SimIndex[i]=PBM_ERROR_NOT_FOUND;}}VOID atPb_ClearApPbmIndexArray(VOID){
-SINT32 i=(0x1d2+9214-0x25cf);for(i=(0x1f28+1922-0x26a9);(i<=g_zPb_ApIndex[
-(0x162b+3239-0x22d2)])&&(i<(ZPB_AP_MAX_RECORD+(0x454+340-0x5a7)));i++){
+SINT32 i=(0x65c+4859-0x1956);for(i=(0x8ea+1607-0xf30);(i<=g_zPb_ApIndex[
+(0x1420+1943-0x1bb7)])&&(i<(ZPB_AP_MAX_RECORD+(0x59a+1255-0xa80)));i++){
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]={(0x1010+448-0x11d0)};if(NULL==pbPara){slog
-(PB_PRINT,SLOG_ERR,
+ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0xdc8+52-0xdfc)};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)-(0x5fc+4099-0x15fe),
+);return ZPB_DB_ERROR_INVALIDPTR;}snprintf(sql,sizeof(sql)-(0x4f+4465-0x11bf),
"\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 f9c4ad9..8333429 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={(0x759+6806-0x21ef)};sem_t g_Pb_sem_id={
-(0x1713+2274-0x1ff5)};int g_zPb_MsqId=-(0x12b+1961-0x8d3);int g_zPb_LocalMsqId=-
-(0x17e0+463-0x19ae);VOID atWeb_AddOneContact(UINT8*pDatabuf){T_zPb_WebContact*
+pDatabuf);T_zPb_optRsp g_PbOptRsp={(0xc86+602-0xee0)};sem_t g_Pb_sem_id={
+(0x612+4068-0x15f6)};int g_zPb_MsqId=-(0x43f+7247-0x208d);int g_zPb_LocalMsqId=-
+(0x690+1481-0xc58);VOID atWeb_AddOneContact(UINT8*pDatabuf){T_zPb_WebContact*
webPbContact=NULL;if(pDatabuf==NULL){printf(
"\x5b\x70\x62\x5d\x2c\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x43\x6f\x6e\x74\x61\x63\x74\x20\x70\x61\x72\x61\x20\x69\x73\x20\x6e\x75\x6c\x6c" "\n"
);return;}webPbContact=(T_zPb_WebContact*)pDatabuf;atWeb_AddOnePb(webPbContact,
@@ -35,21 +35,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(((0x17a1+1296-0x1cb0)==ptPara->result)&&(
-(0xc09+5753-0x2281)==ptPara->opertype)){CHAR needPb[(0x328+6323-0x1ba9)]={
-(0x160c+169-0x16b5)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
-(0x8b7+6906-0x23b1)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
-MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0x2041+1085-0x247e),NULL,
-(0x1f93+450-0x2155));}}}VOID zPb_RecvZuslotInd(UINT8*pDatabuf){T_zAt_ZuslotRes*
-ptPara=ZUFI_NULL;if(pDatabuf==NULL){return;}ptPara=(T_zAt_ZuslotRes*)(pDatabuf);
-printf(
+,ptPara->result,ptPara->opertype);if(((0x11a9+1091-0x15eb)==ptPara->result)&&(
+(0xe72+3425-0x1bd2)==ptPara->opertype)){CHAR needPb[(0x17c7+2462-0x2133)]={
+(0x24a+5072-0x161a)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
+(0x121+5002-0x14ab)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
+MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0xb4+8690-0x22a6),NULL,(0xc4b+1784-0x1343))
+;}}}VOID zPb_RecvZuslotInd(UINT8*pDatabuf){T_zAt_ZuslotRes*ptPara=ZUFI_NULL;if(
+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==(0x1119+2859-0x1c44)){
-CHAR needPb[(0x193f+669-0x1baa)]={(0xaa7+969-0xe70)};sc_cfg_get(
-NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x781+5876-0x1e75)!=strcmp(needPb,
+,ptPara->slot,ptPara->slot_state);if(ptPara->slot_state==(0xe05+4869-0x210a)){
+CHAR needPb[(0x8df+1646-0xf1b)]={(0x359+8589-0x24e6)};sc_cfg_get(
+NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x5ab+5561-0x1b64)!=strcmp(needPb,
"\x6e\x6f")){atPb_CfgPbNvInit();atPb_DelAllRecsSimDb();}}}VOID zPb_RecvPbInitRst
-(UINT8*pDatabuf){int pbReadRet=-(0x166c+506-0x1865);memcpy(&g_PbOptRsp,pDatabuf,
-sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-(0x1846+3131-0x2480)){
+(UINT8*pDatabuf){int pbReadRet=-(0xee4+1175-0x137a);memcpy(&g_PbOptRsp,pDatabuf,
+sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-(0x1acb+1807-0x21d9)){
atPb_IintPbErr(NULL);return;}pbReadRet=atPb_SendScpbrSet_repeat(g_Pb_sem_id);
printf(
"\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"
@@ -66,18 +65,18 @@
,ptMsgBuf->usMsgCmd);switch(ptMsgBuf->usMsgCmd){case MSG_CMD_WRITE_PB:case
MSG_CMD_DEL_A_PB:case MSG_CMD_DEL_MUTI_PB:case MSG_CMD_DEL_ALL_PB:
ipc_send_message(MODULE_ID_PB,MODULE_ID_PB_LOCAL,ptMsgBuf->usMsgCmd,ptMsgBuf->
-usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,(0x1a51+1598-0x208f));break;
+usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,(0x444+6543-0x1dd3));break;
default:break;}}UINT8 zPbMsgCreat(VOID){g_zPb_MsqId=msgget(MODULE_ID_PB,
-IPC_CREAT|(0x554+8688-0x25c4));if(g_zPb_MsqId==-(0xb5d+218-0xc36)){return
+IPC_CREAT|(0x564+7227-0x201f));if(g_zPb_MsqId==-(0x19b6+1242-0x1e8f)){return
ZUFI_FAIL;}g_zPb_LocalMsqId=msgget(MODULE_ID_PB_LOCAL,IPC_CREAT|
-(0x1da6+1688-0x22be));if(g_zPb_LocalMsqId==-(0xe13+2048-0x1612)){return
-ZUFI_FAIL;}sem_init(&g_Pb_sem_id,(0x25f+5306-0x1719),(0x1ecf+1878-0x2625));
-return ZUFI_SUCC;}void detect_modem_state(void){CHAR state[(0x11bf+3351-0x1ea4)]
-={(0x3d2+8465-0x24e3)};sc_cfg_get(
+(0x4b0+1785-0xa29));if(g_zPb_LocalMsqId==-(0x272+784-0x581)){return ZUFI_FAIL;}
+sem_init(&g_Pb_sem_id,(0x55d+3531-0x1328),(0x1af6+2065-0x2307));return ZUFI_SUCC
+;}void detect_modem_state(void){CHAR state[(0xe2a+936-0x11a0)]={
+(0xdad+3853-0x1cba)};sc_cfg_get(
"\x6d\x6f\x64\x65\x6d\x5f\x6d\x61\x69\x6e\x5f\x73\x74\x61\x74\x65",state,sizeof(
-state));if((0xb97+3910-0x1add)==strcmp(state,
+state));if((0x650+6382-0x1f3e)==strcmp(state,
"\x6d\x6f\x64\x65\x6d\x5f\x73\x69\x6d\x5f\x75\x6e\x64\x65\x74\x65\x63\x74\x65\x64"
-)||(0xcc1+2073-0x14da)==strcmp(state,
+)||(0x11f+5222-0x1585)==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(
@@ -96,58 +95,58 @@
MSG_CMD_ZUSLOT_IND:zPb_RecvZuslotInd(ptMsgBuf->aucDataBuf);break;case
MSG_CMD_PBINIT_RSP:ipc_send_message(MODULE_ID_PB,MODULE_ID_PB_LOCAL,ptMsgBuf->
usMsgCmd,ptMsgBuf->usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,
-(0x1707+2799-0x21f6));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR
-clearPb[(0x622+5198-0x1a3e)]={(0xc43+5961-0x238c)};sc_cfg_get(
+(0x30+7189-0x1c45));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR
+clearPb[(0x1758+666-0x19c0)]={(0x6fc+3205-0x1381)};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")==(0x1f2+2356-0xb26)){atPb_DropDb();}
+,clearPb);if(strcmp(clearPb,"\x79\x65\x73")==(0x9c6+797-0xce3)){atPb_DropDb();}
ipc_send_message(MODULE_ID_PB,MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,
-(0x165+737-0x446),NULL,(0x13cb+1074-0x17fd));}void zPbHandleMainCtrlMsg(MSG_BUF*
-ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
+(0xbb0+2325-0x14c5),NULL,(0x7ea+2114-0x102c));}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=(0x423+2708-0xeb7);MSG_BUF stMsg={
-(0xf36+1592-0x156e)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
+pb_msg_thread_proc(void*arg){int iRet=(0x1592+3582-0x2390);MSG_BUF stMsg={
+(0x7eb+6067-0x1f9e)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
int*)arg);prctl(PR_SET_NAME,"\x70\x62\x5f\x6c\x6f\x63\x61\x6c",
-(0xf92+3963-0x1f0d),(0xf51+2683-0x19cc),(0x108b+2611-0x1abe));while(
-(0x75c+3309-0x1448)){iRet=(0x10e9+5098-0x24d3);memset(&stMsg,(0x2a+7950-0x1f38),
-sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x10bf+2196-0x1953),
-(0xdeb+5345-0x22cc));printf(
+(0x4ef+5160-0x1917),(0x5bd+5190-0x1a03),(0x4c0+338-0x612));while(
+(0x1d4+5884-0x18cf)){iRet=(0x1651+2980-0x21f5);memset(&stMsg,
+(0x127f+2832-0x1d8f),sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,
+(0x12f7+1523-0x18ea),(0x6b6+7150-0x22a4));printf(
"\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>=(0x18aa+3683-0x270d)){
-switch(stMsg.src_id){case MODULE_ID_WEB_CGI:{zPbHandleWebMsg(&stMsg);break;}case
- MODULE_ID_AT_CTL:{zPbHandleAtctlMsg(&stMsg);break;}case MODULE_ID_PB:{
+,stMsg.src_id,stMsg.usMsgCmd,MODULE_ID_AT_CTL);if(iRet>=(0x1b+734-0x2f9)){switch
+(stMsg.src_id){case MODULE_ID_WEB_CGI:{zPbHandleWebMsg(&stMsg);break;}case
+MODULE_ID_AT_CTL:{zPbHandleAtctlMsg(&stMsg);break;}case MODULE_ID_PB:{
zPbLocalHandleWebMsg(&stMsg);zPbLocalHandleAtctlMsg(&stMsg);break;}case
MODULE_ID_MAIN_CTRL:{zPbHandleMainCtrlMsg(&stMsg);break;}default:{break;}}}else{
printf(
"\x5b\x70\x62\x5d\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x2c\x20\x65\x72\x72\x6d\x73\x67\x20\x3d\x20\x25\x73" "\n"
,errno,strerror(errno));}}}int phonebook_main(int argc,char*argv[]){pthread_t
-recv_thread_tid=(0x28f+5865-0x1978);MSG_BUF msgBuf={(0x8c5+2521-0x129e)};CHAR
-needPb[(0xa39+7029-0x257c)]={(0x1d07+902-0x208d)};prctl(PR_SET_NAME,
-"\x70\x62\x5f\x6d\x61\x69\x6e",(0x9c7+3967-0x1946),(0x450+6144-0x1c50),
-(0x1a30+2029-0x221d));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,
-sizeof(needPb));if((0x1e3a+1048-0x2252)!=strcmp(needPb,"\x6e\x6f")){
+recv_thread_tid=(0x705+1756-0xde1);MSG_BUF msgBuf={(0x1fa8+1652-0x261c)};CHAR
+needPb[(0x2023+780-0x22fd)]={(0x1551+4297-0x261a)};prctl(PR_SET_NAME,
+"\x70\x62\x5f\x6d\x61\x69\x6e",(0xe28+1017-0x1221),(0x83d+7085-0x23ea),
+(0xb94+1527-0x118b));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof
+(needPb));if((0x9c+7299-0x1d1f)!=strcmp(needPb,"\x6e\x6f")){
#ifdef WEBS_SECURITY
-if(access(ZPB_DB_PATH,F_OK)!=(0x136f+702-0x162d)){if(access(ZPB_TMP_PATH,F_OK)==
-(0xd1a+1170-0x11ac)){if(remove(ZPB_SEC_PATH)!=(0x3d9+2507-0xda4)){slog(PB_PRINT,
-SLOG_ERR,
+if(access(ZPB_DB_PATH,F_OK)!=(0x11e5+1695-0x1884)){if(access(ZPB_TMP_PATH,F_OK)
+==(0x374+6191-0x1ba3)){if(remove(ZPB_SEC_PATH)!=(0x111+1492-0x6e5)){slog(
+PB_PRINT,SLOG_ERR,
"\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)!=(0x1705+65-0x1746)){slog(PB_PRINT,
+);}if(rename(ZPB_TMP_PATH,ZPB_SEC_PATH)!=(0xbec+1462-0x11a2)){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)==(0x12b4+2275-0x1b97)){char rnum_buf[
-(0x289+8118-0x2227)]={(0x14a+3294-0xe28)};char cmd[(0x51f+8628-0x2653)]={
-(0x7d4+5692-0x1e10)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZPB_SEC_PATH,F_OK)==(0x14b2+2059-0x1cbd)){char rnum_buf[
+(0x15a0+778-0x1892)]={(0x561+2429-0xede)};char cmd[(0x73f+5857-0x1da0)]={
+(0x19a6+3149-0x25f3)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
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-(0x19af+2590-0x23cc);}printf(
+zPbMsgCreat();atPb_Init();}else{return-(0x13d4+4590-0x25c1);}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))==-(0x1181+3547-0x1f5b)){assert((0x19ba+1339-0x1ef5));}
-detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x142f+3919-0x237e)
-;}
+(&g_zPb_LocalMsqId))==-(0x1ac+7218-0x1ddd)){assert((0xc1b+3857-0x1b2c));}
+detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x522+6149-0x1d27);
+}
diff --git a/ap/app/zte_comm/phonebook/src/pb_proc.c b/ap/app/zte_comm/phonebook/src/pb_proc.c
index 0b4446d..a19c6ad 100755
--- a/ap/app/zte_comm/phonebook/src/pb_proc.c
+++ b/ap/app/zte_comm/phonebook/src/pb_proc.c
@@ -3,185 +3,184 @@
#include <semaphore.h>
#include <limits.h>
#include "pb_com.h"
-#define ZPB_UCS2 (0x72c+2056-0xf33)
-#define ZPB_UCS2_PREFIX (0x1058+849-0x1329)
-#define ZPB_UCS2_PREFIX_LEN (0x8ea+6203-0x2123)
-#define ZPB_NON_GSM (0xe9+325-0x20e)
-#define ZPB_GSM_CHARACTER_SET_SIZE (0x277+7050-0x1d81)
-#define ZPB_INIT_LOAD_RECORD_NUM (0x777+7498-0x248f)
+#define ZPB_UCS2 (0x2112+391-0x2298)
+#define ZPB_UCS2_PREFIX (0xb80+5464-0x2058)
+#define ZPB_UCS2_PREFIX_LEN (0x244+5063-0x1609)
+#define ZPB_NON_GSM (0x465+5540-0x19e9)
+#define ZPB_GSM_CHARACTER_SET_SIZE (0x106+1429-0x61b)
+#define ZPB_INIT_LOAD_RECORD_NUM (0x73+1803-0x74c)
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=
-(0x10b4+5297-0x2565);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+
-(0x9c4+4193-0x1a24)]={(0x16d4+3484-0x2470)};SINT32 g_zPb_ApIndex[
-ZPB_AP_MAX_RECORD+(0xb87+6062-0x2334)]={(0x1ba2+1554-0x21b4)};
-T_zPb_DelStatusMultiOrAll g_zPb_DelStatusUsim={(0x583+5375-0x1a82)};const
-unsigned char G_ZPB_NEWUCS2TOGSM[ZPB_GSM_CHARACTER_SET_SIZE*(0x4a1+1858-0xbe1)]=
-{ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0xe5b+1690-0x14eb),ZPB_NON_GSM,
-ZPB_NON_GSM,(0x1312+2041-0x1afe),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM
+(0x1f6+5791-0x1895);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+(0x85a+5305-0x1d12)
+]={(0xfc4+1136-0x1434)};SINT32 g_zPb_ApIndex[ZPB_AP_MAX_RECORD+(0xfd+2853-0xc21)
+]={(0x1c7+9518-0x26f5)};T_zPb_DelStatusMultiOrAll g_zPb_DelStatusUsim={
+(0xf0+6592-0x1ab0)};const unsigned char G_ZPB_NEWUCS2TOGSM[
+ZPB_GSM_CHARACTER_SET_SIZE*(0x7c+905-0x403)]={ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,(0x6c0+390-0x83c),ZPB_NON_GSM,ZPB_NON_GSM,
+(0xcfd+1169-0x1181),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,(0x17f1+2167-0x2048),(0x1a31+1046-0x1e26),(0xf85+1827-0x1686),
+(0x7e5+7800-0x263a),(0xf6d+3030-0x1b41),(0xf02+2174-0x175b),(0x10f4+3458-0x1e50)
+,(0x848+328-0x969),(0x1447+3263-0x20de),(0x7b6+5401-0x1ca6),(0x148f+1812-0x1b79)
+,(0x188b+2335-0x217f),(0x1375+687-0x15f8),(0x1f4f+573-0x215f),
+(0xe3f+1533-0x140e),(0x28f+6344-0x1b28),(0x1140+2759-0x1bd7),(0x3b7+1648-0x9f6),
+(0x1af4+3058-0x26b4),(0xeef+4925-0x21f9),(0x16d+7203-0x1d5c),(0x1fe4+954-0x2369)
+,(0x7cc+2636-0x11e2),(0x189+2887-0xc99),(0x17c9+1348-0x1cd5),(0xbba+1361-0x10d2)
+,(0x1b2b+1364-0x2045),(0xd89+6563-0x26f1),(0x863+7218-0x2459),
+(0x1d92+2366-0x2693),(0x32d+2077-0xb0c),(0xc67+2083-0x144b),(0x10+550-0x236),
+(0xc0b+3689-0x1a33),(0xe70+3803-0x1d09),(0x1df+3269-0xe61),(0x3e0+6770-0x1e0e),
+(0x1679+4167-0x267b),(0x10d3+4935-0x23d4),(0xdaf+2333-0x1685),
+(0x11ad+5150-0x2583),(0x39d+9114-0x26ee),(0x101b+583-0x1218),(0x1bb+8883-0x2423)
+,(0x5a5+3618-0x137b),(0x734+3498-0x1491),(0x3a9+3164-0xfb7),(0x934+6623-0x22c4),
+(0x1109+2820-0x1bbd),(0x937+1009-0xcd7),(0x1afc+2263-0x2381),(0xb31+4995-0x1e61)
+,(0x40d+8108-0x2365),(0x1e22+940-0x2179),(0x1215+5116-0x25bb),(0xd4+2259-0x950),
+(0x1288+895-0x15af),(0x1992+3287-0x2610),(0x1ec+3049-0xd7b),(0x6ed+6143-0x1e91),
+ZPB_NON_GSM,(0x58b+7888-0x23fe),ZPB_NON_GSM,(0x2da+3168-0xf29),ZPB_NON_GSM,
+(0x12bc+5184-0x269b),(0x10a6+127-0x10c3),(0x837+4558-0x19a2),
+(0x10f8+3146-0x1cde),(0x1be6+2189-0x240e),(0x49a+7404-0x2120),
+(0xa0c+7099-0x2560),(0x860+7623-0x25bf),(0x4ec+430-0x631),(0x80+6629-0x19fb),
+(0xeb+8067-0x2003),(0x1a38+2773-0x24a1),(0x11a8+603-0x1396),(0x957+3442-0x165b),
+(0x610+3777-0x1462),(0x8df+3809-0x1750),(0x1570+3180-0x216b),(0xaf0+5262-0x1f0c)
+,(0x8f1+5703-0x1ec5),(0x88c+7246-0x2466),(0x2509+563-0x26c7),(0xa2f+1402-0xf33),
+(0x573+4675-0x173f),(0x1079+2228-0x18b5),(0x2507+434-0x2640),
+(0x1488+1096-0x1856),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM
,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,(0x1626+3717-0x248b),(0x176c+1089-0x1b8c),
-(0x16bd+2779-0x2176),(0x56+2470-0x9d9),(0x54d+4700-0x17a7),(0x862+1996-0x1009),
-(0x1281+4385-0x237c),(0x54d+1337-0xa5f),(0xdb4+5197-0x21d9),(0xe8c+2725-0x1908),
-(0x33f+4427-0x1460),(0xdc1+5508-0x231a),(0x799+7070-0x230b),(0x1d6a+707-0x2000),
-(0x13d4+3498-0x2150),(0x1ab+1269-0x671),(0x205f+1692-0x26cb),
-(0x12a5+1264-0x1764),(0x47d+3548-0x1227),(0x633+7904-0x24e0),
-(0x13cd+1185-0x183a),(0xb34+2542-0x14ed),(0x144a+3722-0x229e),
-(0xddb+4469-0x1f19),(0x40d+8043-0x2340),(0x125a+1291-0x172c),(0x3ab+4071-0x1358)
-,(0xe22+5835-0x24b2),(0x46f+2386-0xd85),(0xd1d+3799-0x1bb7),(0xe19+1940-0x156f),
-(0x3d3+6858-0x1e5e),(0x127b+357-0x13e0),(0x43+1681-0x693),(0x71+7531-0x1d9a),
-(0x18e1+313-0x19d7),(0x1068+1862-0x176a),(0x22b+2177-0xa67),(0x9f9+3811-0x1896),
-(0xed6+753-0x1180),(0xc0c+1829-0x12e9),(0x1c6b+1443-0x21c5),(0xfdf+2244-0x1859),
-(0x352+187-0x3c2),(0x19df+1678-0x2021),(0xf11+5704-0x250c),(0xd2c+2287-0x15cd),
-(0x36d+994-0x700),(0x1741+467-0x18c4),(0x696+7380-0x2319),(0x1508+2027-0x1ca1),
-(0xf7b+1686-0x15be),(0x1920+2485-0x2281),(0xd17+2868-0x17f6),(0x1a2f+155-0x1a74)
-,(0x128a+4224-0x22b3),(0x4b6+797-0x77b),(0x4d6+5578-0x1a47),(0x192+4499-0x12cb),
-(0x3a1+6565-0x1ceb),ZPB_NON_GSM,(0x7c1+3350-0x147a),ZPB_NON_GSM,
-(0xaa4+1820-0x11af),ZPB_NON_GSM,(0x4a9+6454-0x1d7e),(0x9aa+1551-0xf57),
-(0xda4+3245-0x19ee),(0xeaa+5707-0x2491),(0x580+5632-0x1b1b),(0xcba+925-0xff1),
-(0x892+713-0xaf4),(0x158+9580-0x265c),(0xa74+99-0xa6e),(0x146c+2328-0x1d1a),
-(0x12b8+1892-0x19b1),(0x6b5+1260-0xb35),(0x16e6+2058-0x1e83),
-(0x1011+3350-0x1cb9),(0x1364+2976-0x1e95),(0x1405+3176-0x1ffd),
-(0x862+6689-0x2212),(0x1059+3200-0x1c67),(0x8c0+4499-0x19e0),(0x90f+7122-0x246d)
-,(0xa81+3476-0x17a0),(0xb67+4481-0x1c72),(0x3aa+7541-0x20a8),(0x106a+268-0x10fe)
-,(0x6f5+1717-0xd31),(0xcdd+4976-0x1fd3),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0x20ed+1172-0x2541),ZPB_NON_GSM,
+(0x479+7002-0x1fd2),(0x6fb+7484-0x2413),(0x210+5221-0x1672),ZPB_NON_GSM,
+(0x10e8+5442-0x25cb),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM
+,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0x1898+1616-0x1ea8)
-,ZPB_NON_GSM,(0xb0a+2237-0x13c6),(0x1bf2+591-0x1e1d),(0x10e8+2716-0x1b81),
-ZPB_NON_GSM,(0x24b+7357-0x1ea9),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,(0x1349+1472-0x18a9),(0xf78+2025-0x1720),(0x598+4481-0x16d8),
-(0x1180+5419-0x266a),(0x7b3+2755-0x1235),(0x24cc+129-0x24f2),
-(0x19fc+2064-0x21fe),(0x15b8+81-0x15ed),(0x356+4742-0x15d3),(0x3ec+8228-0x23cb),
-(0x16fc+1441-0x1c7e),(0x19e4+2091-0x21ca),(0xbd6+1732-0x1255),
-(0xa59+2452-0x13a4),(0x1f22+429-0x2086),(0x150+4615-0x130e),(0x1592+825-0x1882),
-ZPB_NON_GSM,(0x30f+2961-0xe43),(0xec+1455-0x64c),(0x180+8689-0x2322),
-(0x627+4555-0x17a3),(0x320+5765-0x1956),(0x642+1584-0xc16),ZPB_NON_GSM,
-(0x1bdf+2256-0x24a4),(0x1c57+2560-0x2602),(0x422+7803-0x2248),(0xac+4266-0x1101)
-,(0xf49+2427-0x1866),(0x2cc+2270-0xb51),ZPB_NON_GSM,(0x13f6+2243-0x1c9b),
-(0x1272+175-0x12a2),(0xeac+4116-0x1e5f),(0xd1f+4481-0x1e3f),(0x1276+4293-0x22da)
-,(0x503+4943-0x17d7),(0x1e93+188-0x1f40),(0x1471+4060-0x2430),
-(0x200c+1786-0x26fd),(0x624+4419-0x1763),(0x1787+1805-0x1e8f),(0xe88+342-0xf79),
-(0x1e4c+741-0x20cc),(0x1896+657-0x1b20),(0x4c7+4867-0x1761),(0x7b6+6226-0x1f9f),
-(0xb1d+3012-0x1678),ZPB_NON_GSM,(0x2161+727-0x23bb),(0x1027+2519-0x19f6),
-(0x712+7062-0x2239),(0x75a+8176-0x26db),(0x9b9+6446-0x2278),(0x234b+1085-0x270c)
-,ZPB_NON_GSM,(0x18f5+2892-0x2435),(0x121c+4233-0x229f),(0x96c+3977-0x1880),
-(0x13dd+3316-0x205c),(0x69f+6540-0x1fad),(0xd46+519-0xed4),ZPB_NON_GSM,
-(0xca1+3559-0x1a0f)};VOID atPb_Init(VOID){UINT32 pbCount=(0xaf1+6054-0x2297);
-g_zPb_SimIndex[(0x377+390-0x4fd)]=(0x165b+1146-0x1ad5);sc_cfg_set(ZPB_NV_INIT,
-ZPB_LOADING);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(pbCount=
-(0x12ef+999-0x16d5);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,
+(0xc44+1506-0x11c6),(0x409+3129-0x1001),(0xa34+4051-0x19c6),(0x1447+3345-0x2117)
+,(0x2016+88-0x202d),(0x1460+264-0x150d),(0xd04+1601-0x1337),(0x7dc+5834-0x1e8a),
+(0xeb0+4786-0x2159),(0x1300+3020-0x1e87),(0x509+8368-0x259a),(0x1974+530-0x1b41)
+,(0x7f2+4756-0x1a41),(0xd23+1691-0x1375),(0x1bc7+620-0x1dea),(0xbf7+5602-0x2190)
+,(0x109+6846-0x1b7e),ZPB_NON_GSM,(0x1969+1956-0x20b0),(0x1ab+3201-0xddd),
+(0xb2d+605-0xd3b),(0xa3d+4484-0x1b72),(0x1627+21-0x15ed),(0x1ad4+2798-0x2566),
+ZPB_NON_GSM,(0x1828+2797-0x230a),(0x1d5f+805-0x202f),(0xee0+3518-0x1c49),
+(0x60f+753-0x8ab),(0xda7+140-0xdd5),(0xee4+1960-0x1633),ZPB_NON_GSM,
+(0x485+7057-0x1ff8),(0x1ff9+1069-0x23a7),(0x1082+755-0x1314),(0xcb1+44-0xc7c),
+(0x2385+176-0x23d4),(0x578+1696-0xb9d),(0x1adc+41-0x1af6),(0x1458+3950-0x23a9),
+(0x1510+3375-0x2236),(0x193b+2924-0x24a3),(0xb1f+1657-0x1193),
+(0x1238+1891-0x1936),(0xbaa+252-0xc41),(0x53d+5064-0x18fe),(0x1c2+7918-0x2047),
+(0x663+6410-0x1f04),(0xe15+3557-0x1b91),ZPB_NON_GSM,(0x5d2+2397-0xeb2),
+(0x180a+2932-0x2376),(0x4b5+928-0x7e6),(0xe9d+277-0xf43),(0x1ed8+1189-0x230e),
+(0x297+1444-0x7bf),ZPB_NON_GSM,(0xc+7404-0x1cec),(0xa78+2923-0x15dd),
+(0x183d+2286-0x20b6),(0xfd7+3329-0x1c63),(0x749+7624-0x2493),(0x109+2293-0x985),
+ZPB_NON_GSM,(0x3bd+5495-0x18bb)};VOID atPb_Init(VOID){UINT32 pbCount=
+(0xf3c+251-0x1037);g_zPb_SimIndex[(0xa9a+4235-0x1b25)]=(0x221+3788-0x10ed);
+sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
+ZPB_OPERATE_SUC);for(pbCount=(0xec5+5634-0x24c6);pbCount<=ZPB_SIM_MAX_RECORD;
+pbCount++){g_zPb_SimIndex[pbCount]=PBM_ERROR_NOT_FOUND;}if(ZPB_DB_OK!=
+atPb_CreatDb()){slog(PB_PRINT,SLOG_ERR,"pb:atPb_Init:create pbm table failed\n")
+;return;}if(ZPB_DB_OK!=atPb_InitApIndex()){slog(PB_PRINT,SLOG_ERR,
"\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=
-(0x27f+8403-0x2352);int min=32767;int max=(0x138c+3934-0x22ea);int temp=
-(0x4a4+5346-0x1986);int outOff=(0x1ad6+3004-0x2692);printf(
+(0x155a+960-0x191a);int min=32767;int max=(0x137a+253-0x1477);int temp=
+(0x106b+4556-0x2237);int outOff=(0xcc1+4683-0x1f0c);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<=(0x8ea+3364-0x160e)||src==NULL||dest==NULL){return-
-(0x17e6+3543-0x25bc);}if(srcLen<=(0x1e6c+1193-0x2313)){dest[(0x12b9+4592-0x24a9)
-]=(0x45f+4194-0x1441);memcpy(dest+(0xb27+6871-0x25fd),src,srcLen);printf(
+,srcLen);if(srcLen<=(0x92b+2319-0x123a)||src==NULL||dest==NULL){return-
+(0x2089+1322-0x25b2);}if(srcLen<=(0x22a9+744-0x258f)){dest[(0x1948+2021-0x212d)]
+=(0x18ec+1522-0x1e5e);memcpy(dest+(0xb04+2703-0x1592),src,srcLen);printf(
"\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+(0x11bf+4898-0x24e0));return srcLen+(0xb89+2286-0x1476);}for(i=
-(0x57c+7764-0x23d0);i<srcLen;i+=(0xf35+1623-0x158a)){if(src[i]!=
-(0x1f32+166-0x1fd8)){temp=(int)(((src[i]<<(0x3f3+3194-0x1065))&65280)|(src[i+
-(0x183f+3473-0x25cf)]&(0x56a+13-0x478)));
-#if (0xc6f+3411-0x19c2)
-if(temp<(0x873+6475-0x21be)){max=min+(0x1bd4+117-0x1bc7);break;}
+,srcLen+(0x17f6+2802-0x22e7));return srcLen+(0xa16+4548-0x1bd9);}for(i=
+(0xbfd+1031-0x1004);i<srcLen;i+=(0xd81+1042-0x1191)){if(src[i]!=
+(0x62a+1911-0xda1)){temp=(int)(((src[i]<<(0xcf+1192-0x56f))&65280)|(src[i+
+(0x3f7+3924-0x134a)]&(0x2045+1938-0x26d8)));
+#if (0x8b6+6368-0x2196)
+if(temp<(0x8e2+6950-0x2408)){max=min+(0x71b+4085-0x168e);break;}
#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)<(0x6b6+6599-0x1ffc)){if((unsigned char)(min&
-(0xbd1+3160-0x17a9))==(unsigned char)(max&(0x1999+2013-0x20f6))){dest[
-(0x122c+2890-0x1d75)]=(unsigned char)(srcLen/(0x105c+2359-0x1991));dest[
-(0x598+6213-0x1ddd)]=(unsigned char)(0x1f44+830-0x2201);min=(int)(min&32640);
-dest[(0x2e9+2824-0xdef)]=(unsigned char)((min>>(0xb64+2823-0x1664))&
-(0x1772+1274-0x1b6d));outOff=(0x77f+2704-0x120c);printf(
+,min,max);if((max-min)<(0x1b7+4478-0x12b4)){if((unsigned char)(min&
+(0x236f+415-0x248e))==(unsigned char)(max&(0x953+5659-0x1eee))){dest[
+(0x668+618-0x8d1)]=(unsigned char)(srcLen/(0xddb+6099-0x25ac));dest[
+(0x26b+8238-0x2299)]=(unsigned char)(0xccb+3407-0x1999);min=(int)(min&32640);
+dest[(0x615+5344-0x1af3)]=(unsigned char)((min>>(0xb9d+206-0xc64))&
+(0x131d+4747-0x24a9));outOff=(0x118c+1930-0x1913);printf(
"\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[(0x173a+2288-0x2029)]=(unsigned char)(srcLen/(0xec9+3340-0x1bd3));
-dest[(0xa97+6823-0x253e)]=(unsigned char)(0x3b9+2069-0xb4c);dest[
-(0x21f+3339-0xf28)]=(unsigned char)((min>>(0x3c9+3169-0x1022))&
-(0x11ef+1355-0x163b));dest[(0x15e4+1323-0x1b0c)]=(unsigned char)(min&
-(0x593+5507-0x1a17));outOff=(0x1391+2832-0x1e9d);printf(
+);}else{dest[(0x582+2107-0xdbc)]=(unsigned char)(srcLen/(0x60+6777-0x1ad7));dest
+[(0x14c0+3327-0x21bf)]=(unsigned char)(0x1404+3636-0x21b6);dest[
+(0x2db+3026-0xeab)]=(unsigned char)((min>>(0x2420+711-0x26df))&
+(0x201+7200-0x1d22));dest[(0xe4+4072-0x10c9)]=(unsigned char)(min&
+(0xfe9+3181-0x1b57));outOff=(0x1093+5564-0x264b);printf(
"\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=(0x62b+7340-0x22d7);i<srcLen;i+=(0x16c7+158-0x1763)){if(src[i]==
-(0x169+7625-0x1f32)){dest[outOff]=(unsigned char)(src[i+(0xc77+3620-0x1a9a)]&
-(0x83a+6166-0x1fd1));}else{temp=(int)((((src[i]<<(0x533+2130-0xd7d))&65280)|(src
-[i+(0x1376+4884-0x2689)]&(0x87f+7327-0x241f)))-min);dest[outOff]=(unsigned char)
-(temp|(0xcaf+1873-0x1380));}outOff++;}printf(
+);}for(i=(0xe96+176-0xf46);i<srcLen;i+=(0x5c8+4152-0x15fe)){if(src[i]==
+(0x11f2+4026-0x21ac)){dest[outOff]=(unsigned char)(src[i+(0x1758+340-0x18ab)]&
+(0x94c+3954-0x183f));}else{temp=(int)((((src[i]<<(0xe1+7053-0x1c66))&65280)|(src
+[i+(0x22+3603-0xe34)]&(0xde2+4713-0x1f4c)))-min);dest[outOff]=(unsigned char)(
+temp|(0xd7a+956-0x10b6));}outOff++;}printf(
"\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[(0x1c68+1092-0x20ac)]=
-(0x1590+4048-0x24e0);memcpy(dest+(0x4bc+6977-0x1ffc),src,srcLen);printf(
+,outOff,outOff,dest[outOff]);return outOff;}dest[(0x531+7482-0x226b)]=
+(0x1a07+1851-0x20c2);memcpy(dest+(0x1d7+5265-0x1667),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+(0x157a+3201-0x21fa));return srcLen+(0x107d+2624-0x1abc);}int
+,srcLen+(0xc56+3009-0x1816));return srcLen+(0x108d+226-0x116e);}int
atPb_GetU80Code(const UINT8*srcCode,UINT32 srcCodeLen,UINT8*destCode,UINT32
destCodeLen){assert(destCode!=NULL&&srcCode!=NULL);if(srcCodeLen==
-(0x8aa+4688-0x1afa)||destCodeLen==(0xdf2+3839-0x1cf1)||destCodeLen<srcCodeLen){
-return-(0x680+963-0xa42);}memset(destCode,(0x17b+5412-0x169f),destCodeLen);
-destCode[(0x553+1302-0xa69)]=(0x526+7470-0x21d4);printf(
+(0x372+2314-0xc7c)||destCodeLen==(0x11da+291-0x12fd)||destCodeLen<srcCodeLen){
+return-(0x8d8+5932-0x2003);}memset(destCode,(0x233+5810-0x18e5),destCodeLen);
+destCode[(0x899+2945-0x141a)]=(0x1505+1507-0x1a68);printf(
"\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[(0x15a5+887-0x191c)]);switch(srcCode[(0x10bf+4206-0x212d)]){case
-(0xd66+3381-0x1a1b):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}case
-(0x6d1+4320-0x1730):{atPb_CvtU81ToU80(srcCode+(0x12f5+2846-0x1e12),srcCodeLen-
-(0x1adb+2558-0x24d8),destCode+(0xffc+468-0x11cf),destCodeLen-(0xbd1+4050-0x1ba2)
-);return srcCode[(0x57a+915-0x90c)]*(0x1794+3411-0x24e5)+(0x146a+1468-0x1a25);}
-case(0x9ea+5092-0x1d4c):{atPb_CvtU82ToU80(srcCode+(0xe13+3208-0x1a9a),srcCodeLen
--(0x1a42+2579-0x2454),destCode+(0x456+789-0x76a),destCodeLen-(0x4cd+4625-0x16dd)
-);return srcCode[(0x973+827-0xcad)]*(0x11f3+4360-0x22f9)+(0x15f0+2231-0x1ea6);}
-default:{return-(0xba5+5942-0x22da);}}}BOOL atPb_CvtU82ToU80(const UINT8*srcData
-,UINT32 srcLen,UINT8*destData,UINT32 destLen){UINT8 chNum=(0x1218+972-0x15e4);
-UINT16 basePointer=(0x1c60+785-0x1f71);UINT8 iCurChar=(0x1d6+4454-0x133c);UINT32
- iCurSrc=(0x1702+2681-0x217b);chNum=(UINT32)srcData[(0xc75+3175-0x18dc)];
-basePointer=(UINT16)srcData[(0x3fa+7314-0x208b)];basePointer=basePointer<<
-(0x11d5+2242-0x1a8f);basePointer=basePointer+srcData[(0x963+7163-0x255c)];if(
-chNum*(0xd33+4079-0x1d20)>destLen){return FALSE;}for(iCurSrc=(0x5e1+1154-0xa60);
-iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++){UINT8*curDest=destData+
-(0xba3+895-0xf20)*iCurChar;atPb_CvtChCode(basePointer,srcData[iCurSrc],curDest,
-curDest+(0x431+7518-0x218e));}return TRUE;}BOOL atPb_CvtU81ToU80(const UINT8*
-srcData,UINT32 srcLen,UINT8*destData,UINT32 destLen){UINT8 chNum=
-(0xecf+2438-0x1855);UINT16 basePointer=(0x1a9f+2492-0x245b);UINT8 iCurChar=
-(0xb77+2533-0x155c);UINT32 iCurSrc=(0xe24+3237-0x1ac9);chNum=srcData[
-(0x18f0+1351-0x1e37)];basePointer=((UINT16)srcData[(0x8c4+3417-0x161c)])<<
-(0x2335+531-0x2541);if(chNum*(0x27a+2318-0xb86)>destLen){return FALSE;}for(
-iCurSrc=(0x247+3965-0x11c2);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++)
-{UINT8*curDest=destData+(0x162c+933-0x19cf)*iCurChar;atPb_CvtChCode(basePointer,
-srcData[iCurSrc],curDest,curDest+(0x1370+1337-0x18a8));}return TRUE;}VOID
+,srcCode[(0x1743+1274-0x1c3d)]);switch(srcCode[(0x86f+6301-0x210c)]){case
+(0xd29+3001-0x1862):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}case
+(0xc6a+313-0xd22):{atPb_CvtU81ToU80(srcCode+(0xecf+5874-0x25c0),srcCodeLen-
+(0x14fc+1716-0x1baf),destCode+(0x63a+5086-0x1a17),destCodeLen-
+(0x761+7748-0x25a4));return srcCode[(0x937+5239-0x1dad)]*(0x539+7110-0x20fd)+
+(0x1134+52-0x1167);}case(0x858+4156-0x1812):{atPb_CvtU82ToU80(srcCode+
+(0x1e0d+339-0x1f5f),srcCodeLen-(0x1124+3507-0x1ed6),destCode+(0xbc4+761-0xebc),
+destCodeLen-(0xa13+1136-0xe82));return srcCode[(0x103+1318-0x628)]*
+(0xc5b+6688-0x2679)+(0x926+5460-0x1e79);}default:{return-(0x1de5+281-0x1efd);}}}
+BOOL atPb_CvtU82ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32
+destLen){UINT8 chNum=(0x1ef5+309-0x202a);UINT16 basePointer=(0xc64+4895-0x1f83);
+UINT8 iCurChar=(0x3a5+3035-0xf80);UINT32 iCurSrc=(0x148+508-0x344);chNum=(UINT32
+)srcData[(0x2f4+8739-0x2517)];basePointer=(UINT16)srcData[(0x5cd+7224-0x2204)];
+basePointer=basePointer<<(0x785+5946-0x1eb7);basePointer=basePointer+srcData[
+(0x1110+2276-0x19f2)];if(chNum*(0x1e6+6701-0x1c11)>destLen){return FALSE;}for(
+iCurSrc=(0x48b+2091-0xcb3);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++){
+UINT8*curDest=destData+(0x9a4+7020-0x250e)*iCurChar;atPb_CvtChCode(basePointer,
+srcData[iCurSrc],curDest,curDest+(0x1dc4+1763-0x24a6));}return TRUE;}BOOL
+atPb_CvtU81ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32 destLen
+){UINT8 chNum=(0xf0f+4722-0x2181);UINT16 basePointer=(0x12b+288-0x24b);UINT8
+iCurChar=(0x5f+1919-0x7de);UINT32 iCurSrc=(0x29c+204-0x368);chNum=srcData[
+(0x1a46+3083-0x2651)];basePointer=((UINT16)srcData[(0xba3+125-0xc1f)])<<
+(0x1c61+131-0x1cdd);if(chNum*(0xca8+499-0xe99)>destLen){return FALSE;}for(
+iCurSrc=(0x10a2+2649-0x1af9);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++
+){UINT8*curDest=destData+(0xb50+3480-0x18e6)*iCurChar;atPb_CvtChCode(basePointer
+,srcData[iCurSrc],curDest,curDest+(0x587+5794-0x1c28));}return TRUE;}VOID
atPb_CvtChCode(UINT16 basePointer,UINT8 srcData,UINT8*chMsb,UINT8*chLsb){UINT16
-curChar=(0xc4b+4571-0x1e26);assert(chMsb!=NULL&&chLsb!=NULL);if((srcData&
-(0x1b67+481-0x1cc8))==(0x2541+283-0x265c)){curChar=srcData;}else{curChar=
-basePointer+(srcData&(0xb48+776-0xdd1));}*chMsb=(UINT8)(curChar>>
-(0x8fa+2382-0x1240));*chLsb=(UINT8)((curChar<<(0x662+5944-0x1d92))>>
-(0xe8+7688-0x1ee8));return;}int atPb_String2Bytes(const char*pSrc,unsigned char*
-pDst,int nSrcLength){int i=(0x1161+342-0x12b7);if(pSrc==NULL||pDst==NULL||
-nSrcLength<(0x1f8+4994-0x157a)){return-(0x1d1+7476-0x1f04);}for(i=
-(0xd06+220-0xde2);i<nSrcLength;i+=(0x1873+283-0x198c)){if(*pSrc>=
-((char)(0x7fd+1661-0xe4a))&&*pSrc<=((char)(0x4d1+4689-0x16e9))){*pDst=(*pSrc-
-((char)(0x1760+1454-0x1cde)))<<(0x906+539-0xb1d);}else{*pDst=((toupper(*pSrc)-
-((char)(0x8f3+5908-0x1fc6)))+(0xdfb+128-0xe71))<<(0xb3+8086-0x2045);}pSrc++;if(*
-pSrc>=((char)(0x1820+74-0x183a))&&*pSrc<=((char)(0x57f+825-0x87f))){*pDst|=*pSrc
--((char)(0xfa4+2958-0x1b02));}else{*pDst|=(toupper(*pSrc)-
-((char)(0x140+7843-0x1fa2)))+(0xd1+9585-0x2638);}pSrc++;pDst++;}return
-nSrcLength/(0x112f+3991-0x20c4);}int atPb_Bytes2String(const unsigned char*pSrc,
+curChar=(0x13d1+2652-0x1e2d);assert(chMsb!=NULL&&chLsb!=NULL);if((srcData&
+(0x415+1877-0xaea))==(0x7c2+2615-0x11f9)){curChar=srcData;}else{curChar=
+basePointer+(srcData&(0x21bf+772-0x2444));}*chMsb=(UINT8)(curChar>>
+(0xecb+4339-0x1fb6));*chLsb=(UINT8)((curChar<<(0x12aa+3470-0x2030))>>
+(0x573+4079-0x155a));return;}int atPb_String2Bytes(const char*pSrc,unsigned char
+*pDst,int nSrcLength){int i=(0x843+2048-0x1043);if(pSrc==NULL||pDst==NULL||
+nSrcLength<(0x176f+10-0x1779)){return-(0x4ff+7489-0x223f);}for(i=
+(0x1454+1116-0x18b0);i<nSrcLength;i+=(0x102f+3098-0x1c47)){if(*pSrc>=
+((char)(0xc70+1567-0x125f))&&*pSrc<=((char)(0x1fa+2473-0xb6a))){*pDst=(*pSrc-
+((char)(0x227c+1191-0x26f3)))<<(0x160+5807-0x180b);}else{*pDst=((toupper(*pSrc)-
+((char)(0x6c4+2820-0x1187)))+(0x1266+1885-0x19b9))<<(0xc08+6023-0x238b);}pSrc++;
+if(*pSrc>=((char)(0xb04+6392-0x23cc))&&*pSrc<=((char)(0x1051+5595-0x25f3))){*
+pDst|=*pSrc-((char)(0xa39+4956-0x1d65));}else{*pDst|=(toupper(*pSrc)-
+((char)(0xb85+6879-0x2623)))+(0x100d+750-0x12f1);}pSrc++;pDst++;}return
+nSrcLength/(0x1361+176-0x140f);}int atPb_Bytes2String(const unsigned char*pSrc,
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=
-(0x7a+9287-0x24c1);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x8a4+2153-0x110d)){
-return-(0x7b4+4027-0x176e);}for(i=(0xced+1018-0x10e7);i<nSrcLength;i++){*pDst++=
-tab[*pSrc>>(0x6f7+6503-0x205a)];*pDst++=tab[*pSrc&(0x1593+1789-0x1c81)];pSrc++;}
-*pDst='\0';return nSrcLength*(0x1541+1263-0x1a2e);}static VOID
+(0x16fd+508-0x18f9);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x659+8342-0x26ef)){
+return-(0x313+1184-0x7b2);}for(i=(0x2261+1182-0x26ff);i<nSrcLength;i++){*pDst++=
+tab[*pSrc>>(0x115c+715-0x1423)];*pDst++=tab[*pSrc&(0x184a+3657-0x2684)];pSrc++;}
+*pDst='\0';return nSrcLength*(0x109a+2366-0x19d6);}static VOID
atPb_WebRecodeShow(T_zPb_WebContact const*pFromweb){slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x66\x72\x6f\x6d\x77\x65\x62\x2e\x49\x6e\x64\x65\x78\x3d\x25\x64" "\n"
,pFromweb->pbIndex);slog(PB_PRINT,SLOG_DEBUG,
@@ -201,20 +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[
-(0x46+8379-0x20ed)]={(0x48a+2051-0xc8d)};if(strncmp(cpbsInd->locType,"\x53\x4d",
-(0x84f+5506-0x1dcf))==(0x17c9+3608-0x25e1)){(VOID)snprintf(resInfo,
-(0xf8+1813-0x7f9),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
-NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x6e1+844-0xa2d),(0x1bbb+2531-0x258a)
-);(VOID)snprintf(resInfo,(0x12d5+646-0x1547),"\x25\x64",cpbsInd->totalEntries);(
-VOID)sc_cfg_set(NV_PB_TOTALENTRIES,resInfo);g_zPb_SimIndex[(0x397+5546-0x1941)]=
-(UINT32)(cpbsInd->totalEntries);}else{printf(
+(0x22db+1086-0x2705)]={(0x46c+6446-0x1d9a)};if(strncmp(cpbsInd->locType,
+"\x53\x4d",(0x1983+2740-0x2435))==(0xf2c+5214-0x238a)){(VOID)snprintf(resInfo,
+(0xc24+5147-0x202b),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
+NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x116a+2294-0x1a60),
+(0x20ea+908-0x2462));(VOID)snprintf(resInfo,(0x16a4+2850-0x21b2),"\x25\x64",
+cpbsInd->totalEntries);(VOID)sc_cfg_set(NV_PB_TOTALENTRIES,resInfo);
+g_zPb_SimIndex[(0x86a+7366-0x2530)]=(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[(0x315+7921-0x21fc)]={(0x228+603-0x483)};assert(
-pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0x18fc+2186-0x217c),"\x25\x64"
-,len);(VOID)sc_cfg_set(pbNvKeyWord,converted);}VOID atPb_ScpbrTestRsp(
-T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0xd61+5313-0x2222)};
-CHAR pbUsed[(0x1523+622-0x175f)]={(0x179+9317-0x25de)};sc_cfg_get(
+UINT32 len){char converted[(0xb21+4208-0x1b87)]={(0x4e7+1543-0xaee)};assert(
+pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0x53+7265-0x1caa),"\x25\x64",
+len);(VOID)sc_cfg_set(pbNvKeyWord,converted);}VOID atPb_ScpbrTestRsp(
+T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0x1b86+1978-0x2340)};
+CHAR pbUsed[(0x14f0+415-0x165d)]={(0xb88+4125-0x1ba5)};sc_cfg_get(
NV_PB_USEDENTRIES,pbUsed,sizeof(pbUsed));g_zPb_DelIndex=(UINT32)scpbsInd->
minIndex;pbPara.simType=ZPB_USIM;pbPara.maxRecordNum=scpbsInd->maxIndex;pbPara.
usedRecordNum=atoi(pbUsed);pbPara.maxNumberLen=scpbsInd->maxNumberLen;pbPara.
@@ -223,22 +223,22 @@
atPb_SetScpbrResToNv(ZPB_NV_USIMINDEXMIN,(UINT32)scpbsInd->minIndex);
atPb_SetScpbrResToNv(ZPB_NV_USIMINDEXMAX,(UINT32)scpbsInd->maxIndex);(VOID)
atPb_SetSimCapacityTable(pbPara);}int atPb_SendScpbrSet_repeat(sem_t tSemId){int
- min=(0xab+4301-0x1178);int max=(0x1acc+1442-0x206e);int res=
-(0x1400+3123-0x2033);int index=(0xe3c+5627-0x2437);CHAR pbMin[(0xa63+666-0xccb)]
-={(0x9ca+5755-0x2045)};CHAR pbMax[(0x162d+2226-0x1ead)]={(0xc6f+234-0xd59)};int
-indexmin=(0xedd+3533-0x1caa);int indexmax=(0x1896+3068-0x2492);
-T_zPb_ScpbrReadRes scpbrReadInfo={(0x136+7655-0x1f1d)};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")
-==(0x211+9020-0x254d)||strcmp(pbMax,"\x30")==(0x16a0+3248-0x2350)){sc_cfg_set(
-ZPB_NV_INIT,ZPB_OPERATE_SUC);printf(
+ min=(0x242d+601-0x2686);int max=(0x2494+547-0x26b7);int res=
+(0x104a+4851-0x233d);int index=(0x30+9019-0x236b);CHAR pbMin[(0xfd6+4789-0x2259)
+]={(0x5a1+6931-0x20b4)};CHAR pbMax[(0xca+3505-0xe49)]={(0xe69+2275-0x174c)};int
+indexmin=(0x6a8+5562-0x1c62);int indexmax=(0x192c+675-0x1bcf);T_zPb_ScpbrReadRes
+ scpbrReadInfo={(0x6aa+6739-0x20fd)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof
+(pbMin));sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));(VOID)sc_cfg_set(
+ZPB_NV_INIT,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0x4a9+2913-0x100a)||strcmp(
+pbMax,"\x30")==(0x1174+2220-0x1a20)){sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);
+printf(
"\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-(0xd47+2840-0x185e);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
-"\x25\x64",&max);if((min<(0xbfd+4227-0x1c80)||min>INT_MAX-(0xe71+2984-0x1a18))||
-(max<(0xe24+6164-0x2638)||max>INT_MAX-(0xa64+4323-0x1b46))){printf(
+);return-(0x141c+4045-0x23e8);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
+"\x25\x64",&max);if((min<(0x1be7+721-0x1eb8)||min>INT_MAX-(0x15b1+2321-0x1ec1))
+||(max<(0xa8a+6305-0x232b)||max>INT_MAX-(0xa65+1996-0x1230))){printf(
"\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-(0xa44+7113-0x260c);}while((0xe09+538-0x1022)){if(indexmin<min)
-{indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0xddb+3563-0x1bc5);if(
+,min,max);return-(0xd97+2116-0x15da);}while((0xe25+599-0x107b)){if(indexmin<min)
+{indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0xfd9+1016-0x13d0);if(
indexmax>max){indexmax=max;break;}printf(
"\x5b\x50\x42\x5d\x20\x31\x31\x31\x20\x69\x6e\x64\x65\x78\x6d\x69\x6e\x3d\x25\x64\x2c\x20\x69\x6e\x64\x65\x78\x6d\x61\x78\x3d\x25\x64\x2c\x28\x25\x64\x2d\x25\x64\x29" "\n"
,indexmin,indexmax,min,max);}else{indexmin=indexmin+ZPB_INIT_LOAD_RECORD_NUM;if(
@@ -250,17 +250,17 @@
,indexmin,indexmax,min,max);}scpbrReadInfo.minIndex=indexmin;scpbrReadInfo.
maxIndex=indexmax;res=ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,
MSG_CMD_READ_PB_REQ,sizeof(T_zPb_ScpbrReadRes),&scpbrReadInfo,
-(0x1326+656-0x15b6));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-
-(0x639+7783-0x249f)){break;}}return g_PbOptRsp.result;}
-#if (0xcc4+4925-0x2001)
+(0xb1c+3695-0x198b));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-
+(0x7ad+106-0x816)){break;}}return g_PbOptRsp.result;}
+#if (0xf7b+36-0xf9f)
int atPb_SendScpbrSet(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){UINT32
-indexmin=(0x42+3574-0xe38);UINT32 indexmax=(0x194a+1225-0x1e13);CHAR atcmdMsg[
-(0xd63+2189-0x15aa)]={(0x1654+2263-0x1f2b)};int res=(0x13cf+2002-0x1ba1);CHAR
-pbMin[(0x1346+2583-0x1d2b)]={(0x295+6359-0x1b6c)};CHAR pbMax[(0x91+9183-0x243e)]
-={(0x81d+5864-0x1f05)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
+indexmin=(0x871+1165-0xcfe);UINT32 indexmax=(0x971+5000-0x1cf9);CHAR atcmdMsg[
+(0x108d+1959-0x17ee)]={(0xd64+4746-0x1fee)};int res=(0xb90+5294-0x203e);CHAR
+pbMin[(0xd83+5015-0x20e8)]={(0x178f+2182-0x2015)};CHAR pbMax[(0x927+151-0x98c)]=
+{(0x175f+3460-0x24e3)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));(VOID)sc_cfg_set(ZPB_NV_INIT
-,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0x23d+5945-0x1976)||strcmp(pbMax,"\x30")
-==(0x290+4450-0x13f2)){printf(
+,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0x1bf+2041-0x9b8)||strcmp(pbMax,"\x30")
+==(0xe1f+329-0xf68)){printf(
"\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x63\x61\x72\x64\x20\x75\x6e\x73\x75\x70\x70\x6f\x72\x74\x20\x70\x62" "\n"
);return ZAT_RESULT_OK;}sscanf(pbMin,"\x25\x64",&indexmin);sscanf(pbMax,
"\x25\x64",&indexmax);(VOID)snprintf(atcmdMsg,sizeof(atcmdMsg),
@@ -269,45 +269,45 @@
atcmdMsg,cid,pAtRst,atRstSize);pthread_mutex_unlock(&smsdb_mutex);return res;}
#endif
UINT8 atPb_EncodeText(CHAR*pbDst,CHAR const*pbTextSrc,UINT32 dstLen){UINT8 i=
-(0x890+3601-0x16a1);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x192+5182-0x15d0)};if
-(pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0x8bd+5121-0x1cba)+
-ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0x1748+2858-0x2272)],
-sizeof(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0x37f+6585-0x1d38);
-(i<strlen(pbTextSrc))&&(i*(0x599+6515-0x1f08)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
-snprintf(strTarget+i*(0x872+2904-0x13c6)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i
-*(0x3f8+121-0x46d)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i]);
-}strncpy(pbDst,strTarget,dstLen-(0x53b+8618-0x26e4));return ZUFI_SUCC;}}return
-ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){T_zPb_WebContact
-pbRecord={(0x19e0+871-0x1d47)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
-(0x8d0+1648-0xf40)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0xa8+4125-0x10c5)};int
-text_len=(0x878+4444-0x19d4);int tmp_len=(0x273+8055-0x21ea);CHAR tmp[
-ZPB_TEXT_SIZE_BYTES]={(0x107f+3298-0x1d61)};if(atRes->coding!=ZPB_UCS2){if(
+(0x1b6f+276-0x1c83);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x223b+825-0x2574)};if
+(pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0x39c+410-0x532)+
+ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0xd98+4974-0x2106)],
+sizeof(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0xa7f+6957-0x25ac);
+(i<strlen(pbTextSrc))&&(i*(0xd3d+737-0x101a)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
+snprintf(strTarget+i*(0x8a3+4268-0x194b)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i
+*(0x75d+2601-0x1182)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i]
+);}strncpy(pbDst,strTarget,dstLen-(0x39d+8917-0x2671));return ZUFI_SUCC;}}return
+ ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){T_zPb_WebContact
+pbRecord={(0x27+1043-0x43a)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
+(0x1485+276-0x1599)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0x8b9+1133-0xd26)};int
+text_len=(0xb81+36-0xba5);int tmp_len=(0xbca+3193-0x1843);CHAR tmp[
+ZPB_TEXT_SIZE_BYTES]={(0xe36+4341-0x1f2b)};if(atRes->coding!=ZPB_UCS2){if(
atPb_EncodeText(pbDst,atRes->text,ZPB_TEXT_SIZE_BYTES)==ZUFI_SUCC){strncpy(atRes
-->text,pbDst+(0x1073+351-0x11d0),sizeof(atRes->text)-(0x535+5785-0x1bcd));}else{
+->text,pbDst+(0xb0d+4221-0x1b88),sizeof(atRes->text)-(0x501+1990-0xcc6));}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<
-(0x6ec+3329-0x13ed))return;memset(&text,(0x7dd+7950-0x26eb),ZPB_TEXT_SIZE_BYTES)
-;text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>(0xac4+1418-0x104c))
-{memset(&atRes->text,(0x259+2267-0xb34),ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->text
-,text+(0x703+7797-0x2576),strlen(text)-(0x51+3346-0xd61));}}pbRecord.pbId=-
-(0xb82+4372-0x1c95);pbRecord.pbIndex=(SINT32)atRes->index;strncpy(pbRecord.name,
-atRes->text,sizeof(pbRecord.name)-(0xedc+978-0x12ad));strncpy(pbRecord.
-mobilNumber,atRes->number1,sizeof(pbRecord.mobilNumber)-(0x164+7518-0x1ec1));
-strncpy(pbRecord.officeNumber,atRes->number2,sizeof(pbRecord.officeNumber)-
-(0x185b+1951-0x1ff9));strncpy(pbRecord.homeNumber,atRes->number3,sizeof(pbRecord
-.homeNumber)-(0x15b+7102-0x1d18));strncpy(pbRecord.email,atRes->email,sizeof(
-pbRecord.email)-(0x1f3b+1743-0x2609));pbRecord.pbLocation=ZPB_LOCATION_USIM;(
-VOID)atPb_LoadARecToPbmTable(&pbRecord);}VOID atPb_SetDelStatusMultOrAll(){if(
-g_zPb_DelStatusUsim.dealFailNum>(0xf40+5417-0x2469)){if(g_zPb_DelStatusUsim.
-dealSuccNum>(0x3a3+1006-0x791)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
+(0x255+3036-0xe31))return;memset(&text,(0x527+5285-0x19cc),ZPB_TEXT_SIZE_BYTES);
+text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>(0x765+3069-0x1360)){
+memset(&atRes->text,(0x15f7+3364-0x231b),ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->
+text,text+(0x1aef+1779-0x21e0),strlen(text)-(0xb1f+4649-0x1d46));}}pbRecord.pbId
+=-(0x6+7613-0x1dc2);pbRecord.pbIndex=(SINT32)atRes->index;strncpy(pbRecord.name,
+atRes->text,sizeof(pbRecord.name)-(0x67+311-0x19d));strncpy(pbRecord.mobilNumber
+,atRes->number1,sizeof(pbRecord.mobilNumber)-(0x173b+2196-0x1fce));strncpy(
+pbRecord.officeNumber,atRes->number2,sizeof(pbRecord.officeNumber)-
+(0x421+7543-0x2197));strncpy(pbRecord.homeNumber,atRes->number3,sizeof(pbRecord.
+homeNumber)-(0x143c+999-0x1822));strncpy(pbRecord.email,atRes->email,sizeof(
+pbRecord.email)-(0x249+3831-0x113f));pbRecord.pbLocation=ZPB_LOCATION_USIM;(VOID
+)atPb_LoadARecToPbmTable(&pbRecord);}VOID atPb_SetDelStatusMultOrAll(){if(
+g_zPb_DelStatusUsim.dealFailNum>(0x71c+236-0x808)){if(g_zPb_DelStatusUsim.
+dealSuccNum>(0xe63+210-0xf35)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
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 (0x20af+227-0x2192)
+#if (0x1fb+3848-0x1103)
VOID atPb_RecvScpbwAddErr(UINT8*pErrCode){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
-ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x532+5308-0x19ec))
-==(0x1085+995-0x1468))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73");
+ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x90c+6822-0x23b0))
+==(0x315+8889-0x25ce))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73");
printf(
"\x70\x62\x3a\x52\x65\x63\x76\x20\x43\x4d\x45\x20\x45\x72\x72\x43\x6f\x64\x65\x3a\x20\x32\x30\x2e" "\n"
);}else{printf(
@@ -318,85 +318,85 @@
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=(0x1c40+825-0x1f79);UINT8 iTemp=(0x628+544-0x848);SINT32 i=
-(0x170d+1556-0x1d21);if((NULL==pcHex)||(NULL==pcASC)||((0x3d1+3170-0x1033)==
-iDstLen)||(iDstLen<(iSrcLen/(0xef8+1230-0x13c4)+(0x14f+6575-0x1afd)))){return;}
-for(i=(0x1618+671-0x18b7);i<iSrcLen;i++){if(iOddOrEven%(0xc91+53-0xcc4)==
-(0x50a+4900-0x182e)){iTemp=*(pcASC+i);if((iTemp>=((char)(0x1154+4830-0x2402)))&&
-(iTemp<=((char)(0x1120+191-0x11a6)))){*(pcHex+i/(0x1396+557-0x15c1))|=(UINT8)(
-iTemp-(0x2d4+4905-0x15cd))<<(0x51d+1490-0xaeb);}else{*(pcHex+i/
-(0x24c6+283-0x25df))|=(UINT8)(iTemp-(0x183c+1199-0x1cb4))<<(0x916+438-0xac8);}}
-else{iTemp=*(pcASC+i);if((iTemp>=((char)(0xe64+4386-0x1f56)))&&(iTemp<=
-((char)(0x738+2707-0x1192)))){*(pcHex+i/(0x1a3+2290-0xa93))|=iTemp-
-(0xe99+3342-0x1b77);}else{*(pcHex+i/(0x13af+281-0x14c6))|=iTemp-
-(0x887+3934-0x17ae);}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,
-SINT32 iLength){int iRetVal=(0x459+7804-0x22d4);char cTemp;int i=
-(0x927+251-0xa22);if(NULL==psUcs2){return-(0xe85+5305-0x233d);}for(i=
-(0x4f2+2100-0xd26);i<iLength;i++){if((0x94d+7393-0x252e)>psUcs2[i]){switch(
-psUcs2[i]){case(0xeb1+4888-0x21bd):case(0xcd4+2843-0x1794):case
-(0x563+7617-0x22c8):case(0x9e7+2723-0x142d):case(0x55b+1086-0x93b):case
-(0xf69+2785-0x19cf):case(0x7e2+5750-0x1ddc):case(0x17a6+2628-0x216d):case
-(0xea6+4643-0x204b):case(0x2ad+1189-0x6ae):case(0x791+4346-0x186b):{break;}
+){UINT32 iOddOrEven=(0xcb3+1628-0x130f);UINT8 iTemp=(0x5a+4430-0x11a8);SINT32 i=
+(0xdd6+5562-0x2390);if((NULL==pcHex)||(NULL==pcASC)||((0x94f+5787-0x1fea)==
+iDstLen)||(iDstLen<(iSrcLen/(0xfe9+4751-0x2276)+(0xec0+1091-0x1302)))){return;}
+for(i=(0xb8f+5489-0x2100);i<iSrcLen;i++){if(iOddOrEven%(0x239+3383-0xf6e)==
+(0x836+5424-0x1d66)){iTemp=*(pcASC+i);if((iTemp>=((char)(0xb76+1393-0x10b7)))&&(
+iTemp<=((char)(0x100d+5361-0x24c5)))){*(pcHex+i/(0x1b98+2487-0x254d))|=(UINT8)(
+iTemp-(0x553+4478-0x16a1))<<(0x5e5+3170-0x1243);}else{*(pcHex+i/
+(0x143a+867-0x179b))|=(UINT8)(iTemp-(0x74a+6119-0x1efa))<<(0x18d0+1602-0x1f0e);}
+}else{iTemp=*(pcASC+i);if((iTemp>=((char)(0x6f7+7936-0x25c7)))&&(iTemp<=
+((char)(0x4e7+1271-0x9a5)))){*(pcHex+i/(0x12d0+737-0x15af))|=iTemp-
+(0xbc6+2375-0x14dd);}else{*(pcHex+i/(0x1050+2441-0x19d7))|=iTemp-
+(0x17ec+3310-0x24a3);}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,
+SINT32 iLength){int iRetVal=(0x80c+1998-0xfd9);char cTemp;int i=
+(0xff9+4088-0x1ff1);if(NULL==psUcs2){return-(0x1c98+317-0x1dd4);}for(i=
+(0x8ef+7654-0x26d5);i<iLength;i++){if((0x114b+3926-0x1fa1)>psUcs2[i]){switch(
+psUcs2[i]){case(0x16f+8209-0x2174):case(0x700+1051-0xac0):case
+(0x1325+1500-0x18a5):case(0x440+3833-0x12dc):case(0xbf4+125-0xc13):case
+(0x13dc+3182-0x1fcf):case(0x1496+2064-0x1c2a):case(0x1396+338-0x146b):case
+(0x1555+1245-0x19b4):case(0x10df+630-0x12b1):case(0x5e1+356-0x725):{break;}
default:{cTemp=(char)G_ZPB_NEWUCS2TOGSM[psUcs2[i]];if(ZPB_NON_GSM==cTemp){
-iRetVal=(0x1965+2552-0x235d);}break;}}}else{switch(psUcs2[i]){case
-(0xea2+5938-0x2240):case(0x9df+2252-0xf05):case(0x10e6+3281-0x1a24):case
-(0x1c15+2211-0x211d):case(0xb72+3647-0x1608):case(0xd39+5146-0x1db3):case
-(0x154d+3565-0x1f72):case(0x1652+1739-0x197a):case(0xe55+2508-0x1469):case
-(0x1c13+2503-0x223c):{break;}default:{iRetVal=(0x1afd+1864-0x2245);break;}}}if(
-(0x24a1+137-0x252a)==iRetVal){break;}}return iRetVal;}static UINT8
+iRetVal=(0x1ec6+372-0x203a);}break;}}}else{switch(psUcs2[i]){case
+(0x7c1+4863-0x172c):case(0x574+1385-0x737):case(0xcb7+3476-0x16b8):case
+(0x12e5+2200-0x17e2):case(0x885+6867-0x1faf):case(0x89d+8071-0x2484):case
+(0x5b4+6415-0x1afb):case(0xe78+5580-0x20a1):case(0x7a6+3802-0x12c8):case
+(0xf33+488-0xd7d):{break;}default:{iRetVal=(0x446+6004-0x1bba);break;}}}if(
+(0x5b1+3317-0x12a6)==iRetVal){break;}}return iRetVal;}static UINT8
atPb_EncodeNameToUcs2(char*pbDst,UINT32 iDstLen,char const*pbSrc){UINT16 acHex[
-(0x20c+8082-0x209e)]={(0x6f7+6222-0x1f45)};SINT32 srclen=(0x983+935-0xd2a);
-SINT32 rest=(0x23c+8677-0x2421);assert(pbDst!=NULL&&pbSrc!=NULL);srclen=(SINT32)
-strlen(pbSrc);slog(PB_PRINT,SLOG_DEBUG,
+(0xc1b+392-0xca3)]={(0xb06+3878-0x1a2c)};SINT32 srclen=(0xb63+740-0xe47);SINT32
+rest=(0x735+3651-0x1578);assert(pbDst!=NULL&&pbSrc!=NULL);srclen=(SINT32)strlen(
+pbSrc);slog(PB_PRINT,SLOG_DEBUG,
"\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,(0x1ddc+314-0x1e16),(UINT8*)pbSrc,srclen);rest=
-atPb_IfUcs2IsSMS7(acHex,srclen/(0x6dd+7801-0x2552));if(rest==
-(0x1f54+1873-0x26a4)){return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest
-==(0x785+6903-0x227c)){if(strlen(pbSrc)+(0xadf+3355-0x17f8)<iDstLen){memcpy(
-pbDst,"\x38\x30",(0x1799+2817-0x2298));memcpy(pbDst+(0x76d+3856-0x167b),pbSrc,
-srclen);return ZUFI_SUCC;}}return ZUFI_FAIL;}SINT32 atPb_FindIdleIndex(
-T_zPb_WebContact const*pbRecv,BOOL pbNewFlag){SINT32 count=(0x1590+1808-0x1c9f);
-SINT32 total=(0x2e4+4377-0x13fd);SINT32*IndexType=NULL;if((NULL==pbRecv)){slog(
-PB_PRINT,SLOG_ERR,
+,pbSrc,srclen);pb_AsctoHex(acHex,(0x174b+3354-0x2365),(UINT8*)pbSrc,srclen);rest
+=atPb_IfUcs2IsSMS7(acHex,srclen/(0x15e1+3348-0x22f1));if(rest==
+(0x167b+621-0x18e7)){return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest==
+(0xe40+1573-0x1465)){if(strlen(pbSrc)+(0x829+6180-0x204b)<iDstLen){memcpy(pbDst,
+"\x38\x30",(0xed6+3313-0x1bc5));memcpy(pbDst+(0xdb5+6462-0x26f1),pbSrc,srclen);
+return ZUFI_SUCC;}}return ZUFI_FAIL;}SINT32 atPb_FindIdleIndex(T_zPb_WebContact
+const*pbRecv,BOOL pbNewFlag){SINT32 count=(0x952+1235-0xe24);SINT32 total=
+(0xa4a+2540-0x1436);SINT32*IndexType=NULL;if((NULL==pbRecv)){slog(PB_PRINT,
+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-(0x1023+3016-0x1bea);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv
-->pbLocation){total=g_zPb_SimIndex[(0x125f+2823-0x1d66)];IndexType=
-g_zPb_SimIndex;}else if(ZPB_LOCATION_AP==pbRecv->pbLocation){total=g_zPb_ApIndex
-[(0x7d0+3026-0x13a2)];IndexType=g_zPb_ApIndex;}for(;count<=total;count++){if((
+);return-(0x157+1669-0x7db);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv->
+pbLocation){total=g_zPb_SimIndex[(0xc8c+6019-0x240f)];IndexType=g_zPb_SimIndex;}
+else if(ZPB_LOCATION_AP==pbRecv->pbLocation){total=g_zPb_ApIndex[
+(0x17e7+1754-0x1ec1)];IndexType=g_zPb_ApIndex;}for(;count<=total;count++){if((
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-(0xb88+1974-0x133d);}slog(PB_PRINT,SLOG_DEBUG,
+,count);return-(0xd65+1497-0x133d);}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=(0xbd4+4400-0x1d04);SINT32 i=
-(0x328+3178-0xf92);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0xdf0+6033-0x2581)};CHAR str[
-(0xe0b+474-0xfe2)]={(0x1225+2127-0x1a74)};SINT32 length=(0x227b+314-0x23b5);
-length=atPb_String2Bytes(pSrc,buf,len);for(i=(0xdc4+1295-0x12d3);i<length;i+=
-(0xa9b+542-0xcb7)){if(buf[i]!=(0x886+3026-0x1458)||buf[i+(0x8d2+3684-0x1735)]>
-(0x1123+706-0x1366)){return FALSE;}pDst[j++]=buf[i+(0x96a+1777-0x105a)];}return
+CHAR*pSrc,CHAR*pDst,SINT32 len){SINT32 j=(0x79f+4313-0x1878);SINT32 i=
+(0x514+5281-0x19b5);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0x1b10+2847-0x262f)};CHAR
+str[(0x784+4953-0x1ada)]={(0x139+888-0x4b1)};SINT32 length=(0x9c8+1984-0x1188);
+length=atPb_String2Bytes(pSrc,buf,len);for(i=(0x2f5+8804-0x2559);i<length;i+=
+(0xaa+4394-0x11d2)){if(buf[i]!=(0x1182+2734-0x1c30)||buf[i+(0x14d3+3251-0x2185)]
+>(0xa96+465-0xbe8)){return FALSE;}pDst[j++]=buf[i+(0x5d5+5684-0x1c08)];}return
TRUE;}VOID atWeb_AddOrModOnePbUsim(T_zPb_WebContact*pWebPbContact,BOOL pbNewFlag
-,sem_t semId){int atRes=(0x4f4+7989-0x2429);CHAR pbName[ZPB_TEXT_SIZE_BYTES+
-(0x944+7318-0x25d7)]={(0xf21+487-0x1108)};CHAR buf_src[ZPB_TEXT_SIZE_BYTES+
-(0x221b+1180-0x26b4)]={(0x9d4+7125-0x25a9)};CHAR buf_dest[ZPB_TEXT_SIZE_BYTES+
-(0x13f+8895-0x23fb)]={(0x1194+3082-0x1d9e)};T_zPb_ScpbwParam scpbwParam={
-(0x21f+492-0x40b)};int len=(0x5e3+1480-0xbab);atPb_WebRecodeShow(pWebPbContact);
-if(atPb_GetASCII(pWebPbContact->name,pbName,strlen(pWebPbContact->name))){
-scpbwParam.coding=(0xe32+1589-0x1467);}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=
-(0x21dd+1030-0x25e2);}scpbwParam.pbIndex=pWebPbContact->pbIndex;strncpy(
-scpbwParam.name,pbName,sizeof(scpbwParam.name)-(0x765+6515-0x20d7));strncpy(
-scpbwParam.mobilNumber,pWebPbContact->mobilNumber,sizeof(scpbwParam.mobilNumber)
--(0x191+1070-0x5be));strncpy(scpbwParam.officeNumber,pWebPbContact->officeNumber
-,sizeof(scpbwParam.officeNumber)-(0x1252+3686-0x20b7));strncpy(scpbwParam.
-homeNumber,pWebPbContact->homeNumber,sizeof(scpbwParam.homeNumber)-
-(0x10ff+808-0x1426));strncpy(scpbwParam.email,pWebPbContact->email,sizeof(
-scpbwParam.email)-(0x18d+6349-0x1a59));ipc_send_message(MODULE_ID_PB,
-MODULE_ID_AT_CTL,MSG_CMD_ADD_MODIFY_PB_REQ,sizeof(T_zPb_ScpbwParam),(unsigned
-char*)&scpbwParam,(0x4a3+2392-0xdfb));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.
-result!=(0x5f9+7625-0x23c1)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);
-if(TRUE==pbNewFlag){printf(
+,sem_t semId){int atRes=(0xfdc+687-0x128b);CHAR pbName[ZPB_TEXT_SIZE_BYTES+
+(0x1fa6+1177-0x243c)]={(0x1a29+473-0x1c02)};CHAR buf_src[ZPB_TEXT_SIZE_BYTES+
+(0x8e2+3194-0x1559)]={(0x1e0+6711-0x1c17)};CHAR buf_dest[ZPB_TEXT_SIZE_BYTES+
+(0xe94+5653-0x24a6)]={(0x8b7+4070-0x189d)};T_zPb_ScpbwParam scpbwParam={
+(0xf13+499-0x1106)};int len=(0x16c0+3464-0x2448);atPb_WebRecodeShow(
+pWebPbContact);if(atPb_GetASCII(pWebPbContact->name,pbName,strlen(pWebPbContact
+->name))){scpbwParam.coding=(0xb8+9474-0x25ba);}else{len=atPb_String2Bytes(
+pWebPbContact->name,buf_src,strlen(pWebPbContact->name));len=
+atpb_CvtUcs2ToAlphaField(buf_src,len,buf_dest);atPb_Bytes2String(buf_dest,pbName
+,len);scpbwParam.coding=(0xb8c+5501-0x2108);}scpbwParam.pbIndex=pWebPbContact->
+pbIndex;strncpy(scpbwParam.name,pbName,sizeof(scpbwParam.name)-
+(0x1d99+968-0x2160));strncpy(scpbwParam.mobilNumber,pWebPbContact->mobilNumber,
+sizeof(scpbwParam.mobilNumber)-(0x342+4454-0x14a7));strncpy(scpbwParam.
+officeNumber,pWebPbContact->officeNumber,sizeof(scpbwParam.officeNumber)-
+(0x1cc9+1961-0x2471));strncpy(scpbwParam.homeNumber,pWebPbContact->homeNumber,
+sizeof(scpbwParam.homeNumber)-(0x1b76+996-0x1f59));strncpy(scpbwParam.email,
+pWebPbContact->email,sizeof(scpbwParam.email)-(0x230c+183-0x23c2));
+ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,MSG_CMD_ADD_MODIFY_PB_REQ,sizeof(
+T_zPb_ScpbwParam),(unsigned char*)&scpbwParam,(0x744+1811-0xe57));sem_wait(&
+g_Pb_sem_id);if(g_PbOptRsp.result!=(0xb69+5786-0x2202)){(VOID)sc_cfg_set(
+ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);if(TRUE==pbNewFlag){printf(
"\x70\x62\x3a\x61\x64\x64\x20\x53\x63\x70\x62\x77\x20\x65\x72\x72\x6f\x72\x2e" "\n"
);}else{printf(
"\x70\x62\x3a\x6d\x6f\x64\x69\x66\x79\x20\x53\x63\x70\x62\x77\x20\x65\x72\x72\x6f\x72\x2e" "\n"
@@ -408,17 +408,17 @@
);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);printf(
"\x70\x62\x3a\x57\x72\x69\x74\x65\x43\x6f\x6e\x74\x61\x63\x74\x54\x6f\x50\x62\x6d\x54\x61\x62\x6c\x65\x20\x65\x72\x72\x6f\x72\x2e" "\n"
);}}VOID atWeb_AddOnePb(T_zPb_WebContact*webPbContact,sem_t semId){SINT32
-idleIndex=(0xc59+3432-0x19c0);T_zPb_Header pbHeader={(0x205c+907-0x23e7)};BOOL
-pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0xaf9+499-0xcec)};CHAR ptFlag[
-(0x3ca+6063-0x1b65)]={(0x1fea+1496-0x25c2)};printf(
+idleIndex=(0x1ed3+2047-0x26d1);T_zPb_Header pbHeader={(0x1101+4285-0x21be)};BOOL
+ pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0xa28+1039-0xe37)};CHAR ptFlag[
+(0x10a6+2950-0x1c18)]={(0xf1c+3693-0x1d89)};printf(
"\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(-(0x461+2267-0xd3b)==webPbContact->pbId){slog(PB_PRINT,
+,webPbContact->pbId);if(-(0xf58+780-0x1263)==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!=-(0xec+3284-0xdbf)){webPbContact->pbIndex=idleIndex;}
-else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);printf(
+,idleIndex);if(idleIndex!=-(0x1154+1731-0x1816)){webPbContact->pbIndex=idleIndex
+;}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);printf(
"\x5b\x50\x42\x5d\x20\x6d\x65\x6d\x6f\x72\x79\x20\x69\x73\x20\x66\x75\x6c\x6c\x2c\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x61\x64\x64\x20\x72\x65\x63\x6f\x64\x65\x20\x61\x6e\x79\x20\x6d\x6f\x72\x65\x2e" "\n"
);return;}}else{printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x50\x62\x20\x6d\x6f\x64\x69\x66\x79\x2e" "\n"
@@ -436,27 +436,27 @@
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_LOCATION_IS_NULL);}printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x50\x62\x20\x64\x65\x6c\x5f\x69\x64\x3d\x25\x64\x2e" "\n"
,webPbContact->del_id);sc_cfg_get(ZPB_NV_WRITE_FLAG,ptFlag,sizeof(ptFlag));if(
-(0x6b2+4546-0x1874)==strcmp("\x30",ptFlag)&&-(0x1b9+6475-0x1b03)!=webPbContact->
-del_id){delRecord.delId[(0xbdc+5978-0x2336)]=webPbContact->del_id;atWeb_DelOnepb
+(0x1d84+724-0x2058)==strcmp("\x30",ptFlag)&&-(0xb53+4237-0x1bdf)!=webPbContact->
+del_id){delRecord.delId[(0x4eb+7160-0x20e3)]=webPbContact->del_id;atWeb_DelOnepb
(&delRecord,semId);}}VOID atWeb_DelOnepb(T_zPb_DelInfo*delRecord,sem_t semId){
-CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x51f+8283-0x257a)};int atRes=
-(0x8a7+1131-0xd12);SINT32 delTime=(0x1511+68-0x1555);atPb_GetLocationIndexForDel
-(delRecord,delTime);printf(
+CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0xdef+2462-0x178d)};int atRes=
+(0x1232+4840-0x251a);SINT32 delTime=(0x163d+4160-0x267d);
+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[(0x793+5834-0x1e5d)],delRecord->delLocation);if(
+,delRecord->delIndex[(0x1911+899-0x1c94)],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[(0xe2d+1501-0x13d8)]={(0x1fc+5876-0x18f0)};
+delRecord->delLocation){CHAR pbMax[(0xabd+2636-0x14d7)]={(0xbc3+944-0xf73)};
sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));if((delRecord->delIndex[
-(0x393+8973-0x26a0)]>=(0x1c11+1893-0x2375))&&(delRecord->delIndex[
-(0xc2+8611-0x2265)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
+(0xd80+2216-0x1628)]>=(0xb91+5139-0x1fa3))&&(delRecord->delIndex[
+(0x1f5a+388-0x20de)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
MODULE_ID_AT_CTL,MSG_CMD_DELETE_PB_REQ,sizeof(int),(unsigned char*)&delRecord->
-delIndex[(0x979+4981-0x1cee)],(0xb37+6762-0x25a1));sem_wait(&g_Pb_sem_id);if(
-g_PbOptRsp.result!=(0xf22+3445-0x1c96)){sc_cfg_set(ZPB_NV_WRITE_FLAG,
+delIndex[(0x109+2476-0xab5)],(0x1191+1512-0x1779));sem_wait(&g_Pb_sem_id);if(
+g_PbOptRsp.result!=(0x2611+105-0x2679)){sc_cfg_set(ZPB_NV_WRITE_FLAG,
ZPB_DEL_ERROR);}sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}if(ZPB_DB_OK==
atPb_DelARecFromPbmTable(delRecord,delTime)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
ZPB_OPERATE_SUC);printf(
@@ -466,9 +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]={(0xba4+2140-0x1400)};int atRes=(0x8dc+5025-0x1c7d);SINT32
- delCount=(0x121+5926-0x1847);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
-g_zPb_DelStatusUsim,(0x695+5240-0x1b0d),sizeof(T_zPb_DelStatusMultiOrAll));
+ZSVR_AT_RES_CODE_LEN]={(0x81a+316-0x956)};int atRes=(0x67f+6331-0x1f3a);SINT32
+delCount=(0x1b27+1025-0x1f28);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
+g_zPb_DelStatusUsim,(0x11b5+4588-0x23a1),sizeof(T_zPb_DelStatusMultiOrAll));
g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_MULTI_RECORD_USIM;for(;delCount<delRecord->
delTotal;delCount++){slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x33\x3a\x64\x65\x6c\x49\x64\x5b\x25\x64\x5d\x3d\x25\x64\x2c\x64\x65\x6c\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x5b\x25\x64\x5d\x3d\x25\x64" "\n"
@@ -479,14 +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[
-(0x306+4238-0x1362)]={(0x160d+553-0x1836)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,
-sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0x499+3354-0x11b2))&&(
+(0xc3b+4741-0x1e8e)]={(0x5f3+7566-0x2381)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,
+sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0x3b1+2012-0xb8c))&&(
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]
-,(0x171d+990-0x1afb));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0xcc4+6153-0x24cc)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+,(0x1c6+4628-0x13da));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0x1ea6+2107-0x26e0)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);}else{g_zPb_DelStatusUsim.dealSuccNum++;
sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}}else{continue;}(VOID)
atPb_DelSimRecFromPbTable(delRecord->delIndex[delCount]);}else{slog(PB_PRINT,
@@ -494,14 +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={(0x662+1694-0xd00)};SINT32
-i=(0x1a5b+2956-0x25e6);result=atPb_DelRecFromPbmTableByGroup(&index);if(
+T_zPb_DbResult result=ZPB_DB_OK;T_zPb_ApIndex index={(0xad4+1714-0x1186)};SINT32
+ i=(0x7bf+2977-0x135f);result=atPb_DelRecFromPbmTableByGroup(&index);if(
ZPB_DB_OK!=result){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);return
result;}(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(i=
-(0x150a+595-0x175c);i<=ZPB_AP_MAX_RECORD;i++){if((0x17e7+3099-0x2402)!=index.
+(0x186d+1318-0x1d92);i<=ZPB_AP_MAX_RECORD;i++){if((0x220+1508-0x804)!=index.
apIndex[i]){g_zPb_ApIndex[(index.apIndex[i])]=PBM_ERROR_NOT_FOUND;}}return
result;}VOID atPb_DelAllRecsSimDb(VOID){CHAR sql[ZPB_MAX_BYTES_DB]={
-(0x643+1282-0xb45)};snprintf(sql,sizeof(sql)-(0x16+7531-0x1d80),
+(0x61+1876-0x7b5)};snprintf(sql,sizeof(sql)-(0xc89+5841-0x2359),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_USIM);if(ZPB_DB_OK==atPb_ExecDbSql(sql,NULL,NULL)
){atPb_ClearSimPbmIndexArray();if(ZPB_DB_OK!=atPb_ExecDbSql(
@@ -510,28 +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]={(0x79b+3029-0x1370)};int atRes=
-(0x17f6+2818-0x22f8);UINT32 i=(0x1984+2692-0x2408);CHAR sql[ZPB_MAX_BYTES_DB]={
-(0xe57+4413-0x1f94)};UINT32 count=(0x1b63+266-0x1c6d);if(pdelRecord!=NULL){
-memset(&g_zPb_DelStatusUsim,(0x16c2+1457-0x1c73),sizeof(
-T_zPb_DelStatusMultiOrAll));g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_ALL_RECORD_USIM
-;snprintf(sql,sizeof(sql)-(0x1bb3+911-0x1f41),
+CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x13b0+188-0x146c)};int atRes=
+(0xd73+4650-0x1f9d);UINT32 i=(0x1f4+1651-0x867);CHAR sql[ZPB_MAX_BYTES_DB]={
+(0x448+1811-0xb5b)};UINT32 count=(0x448+4715-0x16b3);if(pdelRecord!=NULL){memset
+(&g_zPb_DelStatusUsim,(0x19b1+1260-0x1e9d),sizeof(T_zPb_DelStatusMultiOrAll));
+g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_ALL_RECORD_USIM;snprintf(sql,sizeof(sql)-
+(0x9fd+484-0xbe0),
"\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((0x11dc+3185-0x1e4d)<count){CHAR pbMin[
-(0x1c9a+758-0x1f5e)]={(0xfc8+4405-0x20fd)};CHAR pbMax[(0x1eea+318-0x1ff6)]={
-(0x1306+2405-0x1c6b)};UINT32 i_pbMin=(0x568+1900-0xcd4);UINT32 i_pbMax=
-(0x2139+838-0x247f);sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
+atPb_DbCountTableLineCb,&count);if((0x1cd+1662-0x84b)<count){CHAR pbMin[
+(0x4d5+1157-0x928)]={(0xa47+337-0xb98)};CHAR pbMax[(0xc83+5978-0x23ab)]={
+(0x15c7+1587-0x1bfa)};UINT32 i_pbMin=(0x382+7608-0x213a);UINT32 i_pbMax=
+(0x1d9+5157-0x15fe);sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));i_pbMin=atoi(pbMin);i_pbMax=
atoi(pbMax);if(i_pbMin>ZPB_SIM_MAX_RECORD||i_pbMax>ZPB_SIM_MAX_RECORD){printf(
"\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,
-(0xa36+4693-0x1c8b));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0x556+7825-0x23e6)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+(0x16e2+1092-0x1b26));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0xba1+624-0xe10)){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)-
-(0xa20+6681-0x2438),
+(0xaa+9164-0x2475),
"\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 79a956e..7e9ac6e 100755
--- a/ap/app/zte_comm/sms/src/sms_code.c
+++ b/ap/app/zte_comm/sms/src/sms_code.c
@@ -6,663 +6,659 @@
#ifdef WIN32
#include <wchar.h>
#endif
-#define NON_GSM (0x6d7+6427-0x1fd2)
+#define NON_GSM (0x21f4+978-0x25a6)
#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[(0xf36+5160-0x234e)]={
-((char)(0x5ef+5439-0x1afe)),((char)(0xef7+2905-0x1a1f)),
-((char)(0x2f2+8369-0x2371)),((char)(0xc29+916-0xf8a)),
-((char)(0x162f+1595-0x1c36)),((char)(0x645+3643-0x144b)),
-((char)(0x624+7486-0x232c)),((char)(0xf31+3195-0x1b75)),
-((char)(0x77d+3821-0x1632)),((char)(0xfd+2088-0x8ec)),
-((char)(0x8a5+4768-0x1b04)),((char)(0xb5+7418-0x1d6d)),((char)(0x1fdd+5-0x1f9f))
-,((char)(0x237+8925-0x24d0)),((char)(0x718+1354-0xc1d)),
-((char)(0x10d9+2355-0x19c6))};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)(0x1642+3949-0x258f)),
-((char)(0x9bd+2982-0x1543)),((char)(0x2281+797-0x257e)),
-((char)(0x1381+3139-0x1fa4)),((char)(0xa17+6124-0x21e3)),
-((char)(0x47c+3580-0x1258)),((char)(0x834+7343-0x24c3)),
-((char)(0x1828+3726-0x2696)),((char)(0x1593+3132-0x21af)),
-((char)(0x1401+2386-0x1d33)),((char)(0xc82+199-0xd29)),
-((char)(0x1153+3270-0x1df9)),((char)(0x5ba+4852-0x188e)),
-((char)(0x120c+5140-0x2600)),((char)(0xa61+2996-0x15f5)),
-((char)(0x841+1515-0xe0c)),((char)(0x133f+1220-0x17e3)),
-((char)(0x16b0+3601-0x24a1)),((char)(0x31a+3547-0x10d5)),
-((char)(0x150+1119-0x58f)),((char)(0x429+1310-0x927)),
-((char)(0x2cd+4952-0x1605)),((char)(0x5d2+8296-0x261a)),
-((char)(0x4e4+2457-0xe5d)),((char)(0x222+3750-0x10a8)),((char)(0x745+358-0x88b))
-,((char)(0xf3+4228-0x1157)),((char)(0x1680+2313-0x1f69)),
-((char)(0x716+6440-0x201e)),((char)(0x936+7298-0x2598)),
-((char)(0x1ac+7307-0x1e17)),((char)(0x1171+1595-0x178c)),
-((char)(0xa7+9567-0x25e6)),((char)(0xcbd+6554-0x2636)),(0x1cf+5748-0x1821),
-((char)(0xbc6+4564-0x1d77)),(0x18b6+1391-0x1e23),((char)(0x857+1791-0xf31)),
-((char)(0x2e2+6924-0x1dc8)),(0xf6a+1920-0x16c3),((char)(0x91+2170-0x8e3)),
-((char)(0x4b1+8573-0x2605)),((char)(0x12b9+1310-0x17ad)),
-((char)(0xf20+5279-0x2394)),((char)(0x94f+4733-0x1ba0)),
-((char)(0x6b5+3793-0x1559)),((char)(0x3f2+1374-0x922)),
-((char)(0x71a+6009-0x1e64)),((char)(0x10b3+5162-0x24ad)),
-((char)(0x7a8+4919-0x1aae)),((char)(0x12fb+5108-0x26bd)),
-((char)(0x562+945-0x8e0)),((char)(0x336+5857-0x19e3)),((char)(0x5c0+1915-0xd06))
-,((char)(0x19c2+2590-0x23aa)),((char)(0x2fb+8780-0x2510)),
-((char)(0x218d+722-0x2427)),((char)(0x1546+1398-0x1a83)),
-((char)(0x420+7553-0x2167)),((char)(0x6b3+6779-0x20f3)),
-((char)(0x7c7+4519-0x1932)),((char)(0x3fd+1630-0xa1e)),
-((char)(0x68a+3452-0x13c8)),((char)(0xd1f+4844-0x1fcc)),(0x19b8+2195-0x224b),
-((char)(0xa08+2711-0x145e)),((char)(0x734+2394-0x104c)),
-((char)(0xaa4+2317-0x136e)),((char)(0x365+4048-0x12f1)),
-((char)(0x1281+4942-0x258a)),((char)(0xb04+1657-0x1137)),
-((char)(0x910+4736-0x1b49)),((char)(0x1406+1422-0x194c)),
-((char)(0x6f+7643-0x1e01)),((char)(0x1aa1+733-0x1d34)),
-((char)(0x324+5319-0x17a0)),((char)(0x4b8+7879-0x2333)),
-((char)(0xac0+2007-0x124a)),((char)(0x621+5741-0x1c40)),
-((char)(0x14df+2741-0x1f45)),((char)(0x32f+6304-0x1b7f)),
-((char)(0x17c3+580-0x19b6)),((char)(0x42a+3864-0x12f0)),
-((char)(0x162c+1321-0x1b02)),((char)(0x8b0+4131-0x187f)),
-((char)(0x3a4+5121-0x1750)),((char)(0x6ef+1532-0xc95)),
-((char)(0x4e9+4543-0x1651)),((char)(0x50b+6283-0x1d3e)),
-((char)(0xe0a+4685-0x1ffe)),((char)(0xb16+5001-0x1e45)),6972,6959,6974,
-(0x1f4d+7004-0x1f95),(0x1a8a+164-0x1b1d),((char)(0x1ff9+1466-0x2593)),
-((char)(0x24bd+349-0x25b9)),((char)(0x5d5+771-0x876)),
-((char)(0x129+6484-0x1a1a)),((char)(0x3c3+6891-0x1e4a)),
-((char)(0x1c16+784-0x1ec1)),((char)(0x83d+1290-0xce1)),
-((char)(0x1214+4197-0x2212)),((char)(0x2264+1292-0x2708)),
-((char)(0x5a3+6336-0x1dfa)),((char)(0x148+5038-0x148c)),
-((char)(0x134+5666-0x16eb)),((char)(0x71+4135-0x102c)),
-((char)(0x1dbb+1934-0x24dc)),((char)(0x964+7441-0x2607)),
-((char)(0x443+8013-0x2321)),((char)(0xd06+2885-0x17db)),
-((char)(0x31d+2859-0xdd7)),((char)(0x1d37+2375-0x260c)),
-((char)(0x2cc+241-0x34a)),((char)(0x1e1+6118-0x1953)),
-((char)(0x1e6+9384-0x2619)),((char)(0xb14+2342-0x13c4)),
-((char)(0x911+7582-0x2638)),((char)(0x276+9139-0x25b1)),
-((char)(0x651+1728-0xc98)),((char)(0x4cb+1480-0xa19)),6952,6976,6953,6973,
-((char)(0x1a9a+2491-0x2435)),((char)(0x6d7+6943-0x21d6)),
-((char)(0xc14+6839-0x26ab)),((char)(0x1719+3472-0x2489)),
-((char)(0x1e9b+1889-0x25dc)),((char)(0xde5+4488-0x1f4d)),
-((char)(0xfa9+5940-0x26bd)),((char)(0x7ab+5103-0x1b7a)),
-((char)(0x762+4012-0x16ee)),((char)(0x661+4515-0x17e4)),
-((char)(0x905+5389-0x1df2)),((char)(0xf3c+318-0x105a)),
-((char)(0x1ad0+145-0x1b41)),((char)(0x1873+720-0x1b23)),
-((char)(0xa1f+1299-0xf12)),((char)(0x5e1+5794-0x1c63)),
-((char)(0x107+4986-0x1461)),((char)(0xabc+1224-0xf64)),
-((char)(0x130f+999-0x16d6)),((char)(0x1509+4034-0x24ab)),
-((char)(0xb15+1623-0x114c)),((char)(0x19e4+2800-0x24b4)),
-((char)(0x226c+215-0x2323)),((char)(0x7cb+6250-0x2015)),
-((char)(0x1225+2688-0x1c85)),((char)(0x1b7a+432-0x1d0a)),
-((char)(0x1e0a+1300-0x22fe)),((char)(0x27a+1017-0x653)),
-((char)(0xc42+698-0xedc)),((char)(0x12b9+3853-0x21a6)),
-((char)(0x65c+1915-0xdb7)),((char)(0x6d5+1952-0xe55)),((char)(0x352+2941-0xeaf))
-,((char)(0x294+2145-0xad5)),(0x1b4f+2183-0x2396),((char)(0x251+5151-0x1650)),
-(0x1257+4385-0x2377),(0x1038+2097-0x1845),(0x737+1244-0xc10),
-((char)(0x11b6+671-0x1435)),(0x16cc+2476-0x2019),((char)(0x813+6421-0x2108)),
-((char)(0xcdf+1468-0x127b)),((char)(0xd55+1371-0x1290)),
-((char)(0xf1c+1834-0x1626)),((char)(0x2a2+3172-0xee6)),
-((char)(0x707+8111-0x2696)),((char)(0x12e8+2112-0x1b08)),
-((char)(0xad0+2016-0x1290)),((char)(0x180d+2973-0x238a)),
-((char)(0x6c1+1996-0xe6d)),((char)(0x1af+3110-0xdb5)),
-((char)(0x11e2+4779-0x246d)),((char)(0xa76+776-0xd5e)),
-((char)(0x196f+3416-0x26a7)),((char)(0x67c+7666-0x244e)),
-((char)(0x805+6572-0x2191)),(0x145+7756-0x1f86),((char)(0xb59+5786-0x21d3)),
-((char)(0x508+3545-0x12c1)),((char)(0x8b5+5304-0x1d4d)),
-((char)(0x4f3+4615-0x16da)),((char)(0xccf+1130-0x1119)),
-((char)(0x39b+8656-0x254b)),(0x249+8956-0x24e5),((char)(0x1508+145-0x1579)),
-((char)(0xec7+1758-0x1585)),((char)(0x156b+2812-0x2047)),
-((char)(0xb5b+2391-0x1492)),(0x184c+3543-0x25c8),(0x18bf+59-0x18ec),
-(0x1250+1535-0x1833),(0x739+4528-0x18e0),((char)(0x2f0+7254-0x1f26)),
-(0xdc4+2669-0x1812),((char)(0x1ca1+1311-0x21a0)),((char)(0x713+6048-0x1e93)),
-((char)(0xc0f+5526-0x2185)),((char)(0xe0a+1183-0x1289)),
-((char)(0xaf2+2366-0x1410)),((char)(0x94d+4673-0x1b6e)),
-((char)(0x12e6+3983-0x2255)),(0x96+66-0x7b),((char)(0x13f2+4357-0x24d7)),
-((char)(0x31c+1452-0x8a8)),((char)(0x103d+1103-0x146c)),
-((char)(0x3c+2161-0x88d)),(0x234+8983-0x24ef),((char)(0x1370+1247-0x182f)),
-((char)(0x4e7+7863-0x237e)),((char)(0x829+5647-0x1e18)),
-((char)(0x9c6+3775-0x1865)),((char)(0x108f+5754-0x26e9)),(0xee6+3007-0x1a47),
-((char)(0x712+5357-0x1bdf)),((char)(0x14f3+1468-0x1a8f)),(0xea0+2275-0x1765),
-(0x15a+6604-0x1aa7),((char)(0xc8+8744-0x22d0)),((char)(0x5d9+3353-0x12d2)),
-((char)(0x24f+7814-0x20b5)),(0xc4a+4150-0x1c05),(0x1370+4017-0x2312),
-(0x11b3+1634-0x17f8),((char)(0x8e9+3533-0x1696)),(0x990+328-0xad4),
-(0x1426+3610-0x223b),((char)(0x5ea+7919-0x24b9)),((char)(0x4ef+55-0x506)),
-(0x478+3471-0x1200),((char)(0x1c2a+579-0x1e4d)),((char)(0x1c86+1343-0x21a5)),
-((char)(0x1d32+1565-0x232f)),((char)(0x9eb+4172-0x1a17)),(0x750+6870-0x21a9),
-(0xe69+6023-0x25e8),((char)(0x1dba+512-0x1f9a)),((char)(0xe48+3368-0x1b50)),
-((char)(0x17a5+3142-0x23cb)),(0xd28+611-0xf0f),((char)(0xff3+2368-0x1913)),
-(0xe50+5263-0x22d3),(0x1472+3448-0x21e4),((char)(0x10d5+1557-0x16ca)),
-((char)(0x14f7+2092-0x1d03)),(0x441+9027-0x2706),((char)(0x40f+4805-0x16b4)),
-((char)(0xe32+6319-0x26c1)),((char)(0xa73+6363-0x232e)),};const unsigned short
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0xc08+4387-0x1d29)]={{
-(0x52c+7578-0x22bd),(0x111f+934-0x13de)},{(0x881+6774-0x22ed),
-(0x709+3261-0x13ba)},{(0x3e1+526-0x5e2),(0x1ffd+635-0x226b)},{
-(0x1c89+2580-0x2689),(0x17d9+3718-0x2601)},{(0xfa1+194-0x103b),
-(0x5cd+6363-0x1e2d)},{(0x1a6d+2691-0x24c7),(0x16f+1479-0x6b9)},{
-(0xf6c+5757-0x25ba),(0x1368+3612-0x2128)},{(0x1681+1280-0x1b45),
-(0xce4+742-0xf6f)},{(0xaa7+5396-0x1f7e),(0x16cc+1723-0x1d09)},{
-(0x11b6+3212-0x1e04),(0x1af6+2110-0x22d7)},{(0x19f4+2931-0x2527),
-(0x7f5+1871-0xec8)},{(0xf29+1940-0x167c),(0xe05+4577-0x1f25)},{
-(0x4ed+4884-0x17b8),(0x70d+2615-0x1077)},{(0x8a9+1341-0xd97),(0x311+8226-0x2260)
-},{(0x1af+4564-0x132e),(0x11c3+638-0x1367)},{(0x9f9+5053-0x1d55),
-(0x6b6+2138-0xe2f)},{(0x1aed+1634-0x20ea),8364},{(0x5bb+7846-0x23f8),
-(0x20c+4316-0x11fb)},{(0x8c1+5961-0x1f9b),(0x13c0+4022-0x2283)},{
-(0x1485+3620-0x2234),(0xd0b+3945-0x1b7a)},};const unsigned short
-Ucs2_To_Gsm7_SPANISH_Table_UCS[][(0x11e6+3831-0x20db)]={{(0x22d+8664-0x23f5),
-(0x1f58+2473-0x256d)},{(0xfeb+3265-0x1c9a),(0x1d96+1970-0x21a2)},{
-(0xf10+4546-0x20bf),(0xa13+6411-0x1f8b)},{(0x2577+200-0x262b),
-(0xd95+5954-0x213c)},{(0x13f+5517-0x16b7),(0x4ea+1700-0x7e5)},{
-(0x6f0+7046-0x2260),(0x2118+280-0x1e90)},{(0xb42+3071-0x172a),
-(0x130c+2792-0x1a4c)},{(0x80a+5409-0x1d13),(0x796+2708-0xe87)},{
-(0x1b3f+2320-0x2436),(0x4f7+7128-0x1d37)},{(0xe01+4119-0x1dfe),(0x404+855-0x3bd)
-},};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,
-(0x1ca5+289-0x1dbc),NON_GSM,NON_GSM,(0xe08+828-0x1137),NON_GSM,NON_GSM,NON_GSM,
+const_header;char g_zUfiSms_DigAscMap[(0x153+8812-0x23af)]={
+((char)(0x1484+860-0x17b0)),((char)(0x1e96+1728-0x2525)),
+((char)(0xdf0+5454-0x230c)),((char)(0x87d+2295-0x1141)),
+((char)(0xa2c+467-0xbcb)),((char)(0x1154+1848-0x1857)),
+((char)(0x64f+3981-0x15a6)),((char)(0xfec+5925-0x26da)),
+((char)(0x1c4+3353-0xea5)),((char)(0xa29+2726-0x1496)),
+((char)(0x1209+612-0x142c)),((char)(0xcf6+4924-0x1ff0)),
+((char)(0x12bb+2079-0x1a97)),((char)(0x18c8+2481-0x2235)),
+((char)(0xd6+1009-0x482)),((char)(0x1586+3055-0x212f))};extern SMS_PARAM
+g_zUfiSms_SendingSms;extern UINT16 g_zUfiSms_IsLanguageShift;extern int
+g_zUfiSms_Language;static int SerializeNumbers_sms(const char*pSrc,char*pDst,int
+ nSrcLength);const unsigned short g_zUfiSms_AsciiToGsmdefaultTable[]={
+((char)(0xa09+3103-0x1608)),((char)(0x179a+2359-0x20b1)),
+((char)(0x1461+2045-0x1c3e)),((char)(0x1a79+2910-0x25b7)),
+((char)(0x12f3+4208-0x2343)),((char)(0x2ab+5668-0x18af)),
+((char)(0x898+68-0x8bc)),((char)(0x566+7434-0x2250)),((char)(0xb42+3035-0x16fd))
+,((char)(0x41c+2282-0xce6)),((char)(0x1988+1562-0x1f82)),
+((char)(0xe1+5549-0x166e)),((char)(0x302+1171-0x775)),
+((char)(0x180c+2508-0x21b8)),((char)(0x1390+4364-0x247c)),
+((char)(0xbd8+6210-0x23fa)),((char)(0xcea+787-0xfdd)),
+((char)(0x386+5478-0x18cc)),((char)(0x434+6153-0x1c1d)),
+((char)(0xedc+816-0x11ec)),((char)(0xbc0+2557-0x159d)),
+((char)(0xaeb+3524-0x188f)),((char)(0x2d6+1543-0x8bd)),
+((char)(0x927+3991-0x189e)),((char)(0x576+2470-0xefc)),((char)(0x50+1405-0x5ad))
+,((char)(0x1399+2209-0x1c1a)),((char)(0xa41+4326-0x1b07)),
+((char)(0x1722+370-0x1874)),((char)(0x8d2+2635-0x12fd)),
+((char)(0x166+1984-0x906)),((char)(0x159+4939-0x1484)),
+((char)(0xfba+4988-0x2316)),((char)(0x1255+910-0x15c2)),(0x871+5432-0x1d87),
+((char)(0x13b9+3802-0x2270)),(0x21d6+981-0x25a9),((char)(0x1998+2483-0x2326)),
+((char)(0x8a9+418-0xa25)),(0xc40+225-0xcfa),((char)(0x23e5+674-0x265f)),
+((char)(0x1f9c+1742-0x2641)),((char)(0x11bf+1174-0x162b)),
+((char)(0x1b0+7707-0x1fa0)),((char)(0x11a5+4086-0x216f)),
+((char)(0x6a8+7610-0x2435)),((char)(0x1e50+1300-0x2336)),
+((char)(0x451+7767-0x2279)),((char)(0xaaf+5121-0x1e80)),
+((char)(0x829+301-0x925)),((char)(0x1fe6+91-0x200f)),((char)(0x14e0+411-0x1648))
+,((char)(0x16d2+591-0x18ed)),((char)(0x115+3654-0xf26)),
+((char)(0x2a7+6334-0x1b2f)),((char)(0x21ca+782-0x24a1)),
+((char)(0xd5c+4302-0x1df2)),((char)(0x377+3773-0x11fb)),
+((char)(0x73b+1979-0xebc)),((char)(0xbc2+158-0xc25)),((char)(0x82a+3999-0x178d))
+,((char)(0xca2+3265-0x1926)),((char)(0x1d29+6-0x1cf1)),
+((char)(0x5b8+3495-0x1320)),(0x1a82+2495-0x2441),((char)(0xda5+3925-0x1cb9)),
+((char)(0x1f4a+1862-0x264e)),((char)(0xb6f+7033-0x26a5)),
+((char)(0x7f1+5622-0x1da3)),((char)(0x89b+415-0x9f5)),
+((char)(0x1018+5574-0x2598)),((char)(0x1d6b+1775-0x2413)),
+((char)(0xc14+2262-0x14a2)),((char)(0x1c2c+2255-0x24b2)),
+((char)(0x3bc+4987-0x16ed)),((char)(0x18d4+1491-0x1e5c)),
+((char)(0x1787+1773-0x1e28)),((char)(0xd1+661-0x319)),
+((char)(0x831+6411-0x20ee)),((char)(0x12cf+1546-0x188a)),
+((char)(0x690+7736-0x2478)),((char)(0xc7f+6534-0x25b4)),
+((char)(0x1da9+408-0x1eef)),((char)(0x594+4611-0x1744)),
+((char)(0xfe3+1345-0x14d0)),((char)(0x15bb+169-0x160f)),
+((char)(0xb58+6481-0x2453)),((char)(0x1714+2417-0x202e)),
+((char)(0x5f4+5034-0x1946)),((char)(0x1229+1073-0x1601)),
+((char)(0x61f+7706-0x23df)),6972,(0x2345+635-0xa91),(0x23d2+6167-0x20ab),6932,
+(0x10a2+1820-0x17ad),((char)(0x1b8+3721-0x1021)),((char)(0x56b+902-0x890)),
+((char)(0x47a+7327-0x20b7)),((char)(0x8a0+4690-0x1a8f)),
+((char)(0x1d7a+1234-0x21e8)),((char)(0x575+4139-0x153b)),
+((char)(0xf7a+5426-0x2446)),((char)(0x19c7+2468-0x2304)),
+((char)(0x2dd+4830-0x1553)),((char)(0x955+1617-0xf3d)),
+((char)(0xcf3+5923-0x23ac)),((char)(0x182b+381-0x193d)),
+((char)(0x1778+3845-0x2611)),((char)(0x21a2+7-0x213c)),
+((char)(0x598+2102-0xd60)),((char)(0x7b1+726-0xa18)),((char)(0xedd+3707-0x1ce8))
+,((char)(0xc81+6791-0x2697)),((char)(0x1a9d+1742-0x20f9)),
+((char)(0xead+2493-0x17f7)),((char)(0x2323+158-0x234d)),
+((char)(0x524+1228-0x97b)),((char)(0x1c3+3362-0xe6f)),
+((char)(0x13c6+291-0x1472)),((char)(0x1032+3855-0x1ec9)),
+((char)(0x883+6693-0x222f)),((char)(0xe63+2941-0x1966)),(0x2439+6396-0x220d),
+6976,(0x224c+6555-0x20be),6973,((char)(0x364+5841-0x1a15)),
+((char)(0x1bbc+2834-0x26ae)),((char)(0x6a7+4562-0x1859)),
+((char)(0x2cd+6560-0x1c4d)),((char)(0xa3b+668-0xcb7)),
+((char)(0x47f+3484-0x11fb)),((char)(0x6c1+5619-0x1c94)),
+((char)(0x230+2418-0xb82)),((char)(0x4e2+965-0x887)),((char)(0x9d7+3745-0x1858))
+,((char)(0x56c+5901-0x1c59)),((char)(0xc22+6582-0x25b8)),
+((char)(0x786+5745-0x1dd7)),((char)(0x339+3913-0x1262)),
+((char)(0x5eb+1067-0x9f6)),((char)(0xda+8601-0x2253)),
+((char)(0x2e8+5003-0x1653)),((char)(0xdcb+4312-0x1e83)),
+((char)(0x331+1159-0x798)),((char)(0x1196+286-0x1294)),
+((char)(0x1607+3858-0x24f9)),((char)(0xa1a+2092-0x1226)),
+((char)(0xf4+4761-0x136d)),((char)(0x65f+2558-0x103d)),
+((char)(0x6d0+1055-0xacf)),((char)(0xd09+3892-0x1c1d)),
+((char)(0x1c48+846-0x1f76)),((char)(0x16a3+3488-0x2423)),
+((char)(0x6c1+4822-0x1977)),((char)(0x107+9740-0x26f3)),
+((char)(0x100+7979-0x200b)),((char)(0x60d+6767-0x205c)),
+((char)(0x109+688-0x399)),((char)(0x3ea+3473-0x115b)),(0xe2b+1274-0x12e5),
+((char)(0xefa+3789-0x1da7)),(0xed+6495-0x1a4b),(0x23f+810-0x545),
+(0x1788+3007-0x2344),((char)(0x46b+1457-0x9fc)),(0x19c1+229-0x1a47),
+((char)(0x1d4+8721-0x23c5)),((char)(0x17b0+3615-0x25af)),
+((char)(0xddc+3191-0x1a33)),((char)(0x9da+1359-0xf09)),
+((char)(0x12d0+1554-0x18c2)),((char)(0x14f+2183-0x9b6)),
+((char)(0xdcb+4646-0x1fd1)),((char)(0xd28+1406-0x1286)),
+((char)(0x856+4023-0x17ed)),((char)(0xcc9+2597-0x16ce)),
+((char)(0x29f+8076-0x220b)),((char)(0xe4b+4227-0x1eae)),
+((char)(0xcd4+3224-0x194c)),((char)(0xba+47-0xc9)),((char)(0x55+6855-0x1afc)),
+((char)(0xb00+738-0xdc2)),(0x9d1+4991-0x1d45),((char)(0xc92+6238-0x24d0)),
+((char)(0x14ef+2290-0x1dc1)),((char)(0x15a7+35-0x15aa)),
+((char)(0x1cd+4627-0x13c0)),((char)(0x71b+2845-0x1218)),
+((char)(0x1921+166-0x19a7)),(0xab2+1882-0x11ac),((char)(0x7bf+5359-0x1c8e)),
+((char)(0x39b+8872-0x2623)),((char)(0xc2+3274-0xd6c)),
+((char)(0x21b+6078-0x19b9)),(0x16e9+1183-0x1b2d),(0xebd+4391-0x1fd6),
+(0x20d0+79-0x2103),(0xfec+1095-0x142a),((char)(0x9cd+6679-0x23c4)),
+(0x94b+7634-0x26fe),((char)(0x7c4+2501-0x1169)),((char)(0x394+5238-0x17ea)),
+((char)(0x603+7572-0x2377)),((char)(0x9b+5340-0x1557)),((char)(0xdec+158-0xe6a))
+,((char)(0x116c+3853-0x2059)),((char)(0x658+4659-0x186b)),(0x1ff1+1822-0x26b2),
+((char)(0x225+786-0x517)),((char)(0x15ad+2883-0x20d0)),
+((char)(0x99f+4033-0x1940)),((char)(0x180b+952-0x1ba3)),(0xc73+6155-0x2422),
+((char)(0xb96+396-0xd02)),((char)(0xca9+3766-0x1b3f)),
+((char)(0x1a94+2924-0x25e0)),((char)(0xef9+2158-0x1747)),
+((char)(0x1296+1716-0x192a)),(0x1d53+1898-0x245f),((char)(0x57c+3464-0x12e4)),
+((char)(0x611+2599-0x1018)),(0x7d5+687-0xa66),(0x11fa+4200-0x21e3),
+((char)(0x946+7303-0x25ad)),((char)(0x1385+4470-0x24db)),
+((char)(0x6f7+4879-0x19e6)),(0x108b+3084-0x1c1c),(0xda5+6458-0x26d0),
+(0x1887+1415-0x1df1),((char)(0xda9+1293-0x1296)),(0x1203+4654-0x242d),
+(0x15a3+3945-0x2507),((char)(0x23a+9369-0x26b3)),((char)(0x17dd+751-0x1aac)),
+(0x640+2061-0xe46),((char)(0xf7+6377-0x19c0)),((char)(0xf69+263-0x1050)),
+((char)(0x13f6+3298-0x20b8)),((char)(0x379+5137-0x176a)),(0xf9f+867-0x1285),
+(0xba4+3180-0x1808),((char)(0x9d2+7139-0x2595)),((char)(0x67+2362-0x981)),
+((char)(0xfb+1805-0x7e8)),(0xad5+1556-0x106d),((char)(0x183d+1167-0x1cac)),
+(0x3c0+2047-0xbb3),(0x169a+1742-0x1d62),((char)(0x372+6603-0x1d1d)),
+((char)(0x1f78+1564-0x2574)),(0xb03+1403-0x1000),((char)(0x15fb+392-0x1763)),
+((char)(0xe55+1234-0x1307)),((char)(0x9f7+1724-0x1093)),};const unsigned short
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0x89+946-0x439)]={{(0x5ff+8005-0x253b),
+(0x1345+4681-0x24a7)},{(0xb10+6406-0x240c),(0x1661+3073-0x2256)},{
+(0x1848+715-0x1b06),(0x17b7+46-0x17d8)},{(0x1018+4678-0x224a),
+(0xd34+3197-0x1953)},{(0x543+3157-0x1170),(0x4a8+7930-0x2327)},{
+(0x3eb+7746-0x2204),(0xb72+6721-0x2536)},{(0x394+8054-0x22db),
+(0x8a6+6059-0x1ff5)},{(0x97c+1385-0xea9),(0x963+1733-0xfcd)},{
+(0xa09+2964-0x1560),(0x3fd+4061-0x135c)},{(0x1ec5+1976-0x263f),(0xcb4+123-0xcd2)
+},{(0x1cd3+1050-0x20ad),(0xf82+3886-0x1e34)},{(0x1a5a+971-0x1de4),
+(0x9cf+3040-0x14ee)},{(0x6f3+2609-0x10db),(0xb89+1906-0x122e)},{
+(0x70b+5560-0x1c74),(0x28d+989-0x597)},{(0xcc5+5993-0x23d9),(0x86c+2276-0x1076)}
+,{(0x1520+1381-0x1a24),(0x3a0+5842-0x1991)},{(0x1243+4139-0x2209),
+(0x243b+1750-0xa65)},{(0x891+5608-0x1e10),(0x1c3+1487-0x6a5)},{
+(0xbca+6827-0x2606),(0xc7c+1568-0x11a9)},{(0x1ba7+971-0x1efd),
+(0xe98+1998-0x156c)},};const unsigned short Ucs2_To_Gsm7_SPANISH_Table_UCS[][
+(0x1263+5249-0x26e2)]={{(0x1af+1015-0x596),(0xccf+2309-0x1240)},{
+(0x664+5760-0x1cd2),(0xe3f+1369-0xff2)},{(0x1957+877-0x1cb1),
+(0x173d+4397-0x24d7)},{(0x22dc+978-0x269a),(0x10f9+3198-0x19dc)},{
+(0x155c+2894-0x2095),(0x129c+5575-0x24ba)},{(0x11b+6459-0x1a40),
+(0x1d21+2669-0x23ee)},{(0x35b+6180-0x1b68),936},{(0x77c+4182-0x17ba),
+(0x932+3550-0x136d)},{(0x1622+1573-0x1c2e),(0x1fb5+89-0x1c76)},{
+(0x185f+823-0x1b7c),(0xaf7+6800-0x21e9)},};const unsigned char
+Ucs2_To_Gsm7_SPANISH_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xd29+5250-0x21a1),NON_GSM,NON_GSM,
+(0x17cb+1410-0x1d40),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x9a1+786-0xc93),(0x11bd+4528-0x234c),
-(0x1956+2818-0x2436),(0x107b+4091-0x2053),(0x161b+333-0x1766),
-(0x1787+2205-0x1fff),(0x3d0+3803-0x1285),(0x1580+1323-0x1a84),
-(0x3a7+8624-0x252f),(0x103a+673-0x12b2),(0x1391+4287-0x2426),
-(0x1227+4274-0x22ae),(0x909+2827-0x13e8),(0x380+2532-0xd37),(0x54b+8120-0x24d5),
-(0x6e1+7538-0x2424),(0x13a2+1692-0x1a0e),(0x93f+7294-0x258c),
-(0x1963+2424-0x22a9),(0x5f0+4783-0x186c),(0x3a9+2407-0xcdc),(0xdd+9687-0x267f),
-(0x449+5186-0x1855),(0x1089+3985-0x1fe3),(0x190d+1525-0x1eca),
-(0x1f13+571-0x2115),(0x195c+3213-0x25af),(0x17a+1809-0x850),(0x126a+1484-0x17fa)
-,(0x102c+2214-0x1895),(0x903+5861-0x1faa),(0x3bd+5592-0x1956),
-(0x10e7+1405-0x1664),(0x1310+3994-0x2269),(0x217c+64-0x217a),(0xaab+4043-0x1a33)
-,(0x4b+4930-0x1349),(0xc36+6580-0x25a5),(0x13e1+2496-0x1d5b),(0x1ff+7974-0x20de)
-,(0x5f4+7538-0x231e),(0xb95+3976-0x1ad4),(0x19b7+401-0x1afe),
-(0x1928+3246-0x258b),(0x157+6070-0x18c1),(0x4b3+6651-0x1e61),(0xae1+431-0xc42),
-(0x1ebd+360-0x1fd6),(0x17f5+816-0x1ad5),(0x21d+6020-0x1950),(0x1cbf+2614-0x26a3)
-,(0x2365+112-0x2382),(0x16ea+266-0x17a0),(0x157b+1911-0x1c9d),
-(0x142b+584-0x161d),(0x5c6+4733-0x17ec),(0x1430+3775-0x2297),(0x4b8+6169-0x1c78)
-,(0xd4d+4506-0x1e8d),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x5ec+2637-0x1028),NON_GSM
-,(0x1c3+8054-0x20d8),(0x887+2820-0x1329),(0x103a+5244-0x2453),
-(0x17ed+2531-0x216c),(0x196+3219-0xdc4),(0xa4a+6520-0x235c),(0x1762+785-0x1a0c),
-(0x7b5+4140-0x1779),(0x1976+1035-0x1d18),(0xe4a+3583-0x1bdf),(0x1055+294-0x1110)
-,(0x63b+5012-0x1963),(0xbbc+4191-0x1bae),(0x5ef+2014-0xd5f),(0xf40+5062-0x2297),
-(0x1372+1505-0x18e3),(0x902+5170-0x1cc3),(0x15c4+2377-0x1e9b),
-(0xfd1+1596-0x159a),(0x2011+1621-0x25f2),(0x1b1c+2047-0x22a6),
-(0x1de2+172-0x1e18),(0x33d+3618-0x10e8),(0x20c9+1654-0x26c7),(0xfe5+2260-0x1840)
-,(0x1a9+1104-0x57f),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x1c22+2176-0x2482),(0x5e4+7398-0x22a9),(0xab+9556-0x25dd),
+(0x381+673-0x5ff),(0x32c+383-0x4a9),(0x102a+657-0x1296),(0x184c+1658-0x1ea0),
+(0x553+4416-0x166c),(0x1ec2+1103-0x22e9),(0x1bc+7964-0x20af),
+(0x1075+3238-0x1cf1),(0x1ef3+1642-0x2532),(0x1719+3665-0x253e),
+(0x6b8+6717-0x20c8),(0x1fc1+1859-0x26d6),(0x37d+6240-0x1bae),
+(0x1014+2175-0x1863),(0x12d0+3665-0x20f0),(0x14e2+1507-0x1a93),
+(0x1a2+1115-0x5ca),(0x4dc+151-0x53f),(0x155c+1114-0x1981),(0x16fb+1193-0x1b6e),
+(0xf7+5984-0x1820),(0xc86+3594-0x1a58),(0xab4+2536-0x1463),(0xd66+3406-0x1a7a),
+(0xae4+1072-0xed9),(0x1c35+2788-0x26dd),(0x2d5+2080-0xab8),(0x4f2+1951-0xc53),
+(0xc8+8563-0x21fc),(0xb70+6123-0x235b),(0xcb6+2268-0x1551),(0x1937+3502-0x26a3),
+(0x143d+4256-0x249a),(0x1b8+6972-0x1cb0),(0xa15+6675-0x23e3),(0x20ab+178-0x2117)
+,(0x1729+2269-0x1fbf),(0x50c+2746-0xf7e),(0xb17+3297-0x17af),(0x196b+922-0x1cbb)
+,(0x9ed+4820-0x1c76),(0x173f+2121-0x1f3c),(0x425+7409-0x20c9),(0x230+1898-0x94c)
+,(0x1a54+2664-0x246d),(0xd0+3404-0xdcc),(0xeba+1248-0x1349),(0xaaf+5927-0x2184),
+(0x16e2+1607-0x1cd6),(0x15bc+922-0x1902),(0x851+5065-0x1bc5),(0x134+1928-0x866),
+(0xb7b+1625-0x117d),(0x117+8902-0x2385),(0xbe4+4072-0x1b73),(0x123b+117-0x1256),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x7af+2310-0x10a4),NON_GSM,(0x10af+159-0x10ed),
+(0x1672+1064-0x1a38),(0x2dd+5249-0x16fb),(0x21d9+180-0x2229),
+(0x16d6+3793-0x2542),(0x8e1+5039-0x1c2a),(0x11dc+3827-0x2068),
+(0x1011+5041-0x235a),(0x6b+4916-0x1336),(0x4e8+6985-0x1fc7),(0x9b5+6089-0x2113),
+(0x1c2d+2652-0x261d),(0x137+2858-0xbf4),(0x9eb+2244-0x1241),(0xb7c+3422-0x186b),
+(0x6e4+4315-0x174f),(0x3b9+531-0x55b),(0x1dab+1944-0x24d1),(0x1659+1024-0x19e6),
+(0xbe0+185-0xc25),(0x771+5715-0x1d4f),(0x4cc+5306-0x1910),(0x13f+1142-0x53e),
+(0x20ec+1083-0x24af),(0xaf7+3878-0x19a4),(0xcf6+842-0xfc6),NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x25d+4510-0x13e0),(0xe0f+393-0xf58),NON_GSM,(0xd68+5393-0x2278),
-(0xf62+4841-0x2227),(0x626+1578-0xc4d),NON_GSM,(0x1b3+2489-0xb0d),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xefb+3666-0x1d32),(0x11a7+1668-0x17eb)
+,NON_GSM,(0x1404+1387-0x196e),(0x320+6025-0x1a85),(0x10df+5419-0x2607),NON_GSM,
+(0xb94+6479-0x2484),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x45f+7551-0x217e),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0xde7+4527-0x1f3b),(0x30c+4170-0x1348),
+(0x79d+3524-0x1545),(0x1b06+1584-0x212d),NON_GSM,(0xd52+267-0xe3e),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x760+972-0xacf),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x1e39+1310-0x22fb),NON_GSM,(0x175b+2239-0x200f),
+NON_GSM,NON_GSM,NON_GSM,(0x1361+3705-0x217c),NON_GSM,NON_GSM,(0x665+5782-0x1cdd)
+,(0x15b+3156-0xd30),NON_GSM,NON_GSM,NON_GSM,(0x1d1+4877-0x1463),
+(0x14c+8809-0x23a6),(0x8e9+4433-0x1a1d),NON_GSM,(0x9a3+7478-0x26d5),
+(0xee2+5179-0x2318),NON_GSM,NON_GSM,(0x57c+862-0x8d3),NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0xfad+2509-0x18fd),(0x1ee9+1062-0x2307),NON_GSM,NON_GSM,NON_GSM,
+(0x1113+1969-0x1848),NON_GSM,(0xdef+6048-0x2583),(0x1e21+941-0x21c8),NON_GSM,
+NON_GSM,(0x313+478-0x473),NON_GSM,NON_GSM,NON_GSM};const unsigned short
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][(0x1cf7+1187-0x2198)]={{
+(0x15c+9356-0x25e3),(0xc4b+1730-0x1223)},{(0x1179+1020-0x156c),
+(0x461+4268-0x1426)},{(0x9cd+4539-0x1b7e),(0xafb+4680-0x1d37)},{
+(0x3c3+779-0x6c3),(0xf52+3413-0x1bd3)},{(0xe75+3608-0x1c81),(0x178a+4124-0x26b2)
+},{(0x54d+5594-0x1b1a),(0x1234+4438-0x237d)},{(0x1dab+795-0x20b8),
+(0x15b7+2921-0x205f)},{(0x973+1944-0x10fc),(0x17ac+3562-0x24b5)},{
+(0x202f+152-0x20b5),(0x3da+2680-0xaac)},{(0x1a39+101-0x1a8b),
+(0x12b5+1068-0x134e)},{(0x757+1908-0xeb7),(0xa6c+129-0xa8f)},{
+(0x66a+7774-0x24b3),(0xf63+2918-0x1720)},{(0x900+2327-0x1201),
+(0x606+6778-0x1ce0)},{(0x15bf+86-0x15fe),(0xeb7+2580-0x1523)},{
+(0x1ed1+1986-0x267b),(0xea0+4800-0x1dbd)},{(0x96c+5443-0x1e96),
+(0x1202+3920-0x1dba)},{(0x1321+4993-0x2683),(0x1330+3199-0x1ee5)},{
+(0x1c01+1962-0x2383),(0x17f1+232-0x185e)},{(0xa63+3309-0x1727),
+(0x144d+2603-0x1dfb)},{(0xac+9266-0x24af),(0x1833+3406-0x2525)},{
+(0x1609+2799-0x20bc),(0x111+8742-0x22dc)},{(0x244+5645-0x1814),
+(0x937+6096-0x2089)},{(0xb8+7924-0x1f6e),(0x612+4732-0x1831)},{
+(0x7ac+1121-0xbcd),(0xbe1+1097-0xfae)},{(0x210+8311-0x2246),(0xdaf+2404-0x1653)}
+,{(0x105c+3112-0x1c3b),(0x1188+4674-0x22fd)},{(0x1de8+641-0x201a),
+(0x15b0+2929-0x204e)},{(0x11bf+4793-0x2423),(0x1df2+1023-0x2117)},{
+(0x110c+718-0x137f),(0x351+5710-0x18dc)},{(0xa9f+1909-0x11b8),
+(0x1b89+2600-0x24dc)},{(0xc7a+5475-0x217c),(0x19d8+334-0x1a64)},{
+(0xce8+1501-0x1260),8364},{(0x1077+1292-0x151a),(0x11a7+3028-0x1c8e)},{
+(0x203+8452-0x2298),(0x116+5433-0x155c)},{(0x17b4+2088-0x1f67),
+(0x978+1727-0xf3d)},{(0x666+2061-0xdf8),(0xccd+1078-0x1020)},{(0xed0+685-0x1101)
+,(0x435+5167-0x176f)},{(0x3c5+1020-0x742),(0x25b7+369-0x2646)},};const unsigned
+short Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][(0x182+4530-0x1332)]={{
+(0x16a5+2554-0x208f),(0x14ad+3751-0x1fc0)},{(0xc69+5826-0x2316),8929},{
+(0x57b+7641-0x233c),8364},{(0x1a8a+2837-0x253a),(0x20d3+3601-0xe38)},};const
+unsigned char Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x42a+3453-0x119d),
+NON_GSM,NON_GSM,(0xdfa+4634-0x2007),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x196f+364-0x1abb),(0xaf0+911-0xe5e),
+(0x2238+251-0x2311),(0x1fc6+12-0x1faf),(0x34c+2784-0xe2a),(0x320+8391-0x23c2),
+(0x1fa2+1100-0x23c8),(0x231f+449-0x24b9),(0x4c6+4924-0x17da),(0xd86+4478-0x1edb)
+,(0x228a+691-0x2513),(0x52+6966-0x1b5d),(0x15ef+3613-0x23e0),(0x2025+563-0x222b)
+,(0xe66+4750-0x20c6),(0x10ac+1250-0x155f),(0x786+6961-0x2287),
+(0xd5b+2679-0x17a1),(0x9e3+584-0xbf9),(0xca6+6306-0x2515),(0xbf4+1061-0xfe5),
+(0x935+3412-0x1654),(0xb31+5371-0x1ff6),(0x1c7b+1623-0x229b),(0x331+7565-0x2086)
+,(0x1dfa+1391-0x2330),(0xf74+503-0x1131),(0x19dd+3133-0x25df),(0x1bd+107-0x1ec),
+(0x15cc+800-0x18af),(0x1119+4242-0x216d),(0x6c6+5148-0x1aa3),(0x520+4935-0x1867)
+,(0xa27+1600-0x1026),(0x52+8894-0x22ce),(0x9c+3437-0xdc6),(0x480+7109-0x2001),
+(0xa45+2814-0x14fe),(0xc9+6906-0x1b7d),(0x4a2+8759-0x2692),(0x562+4328-0x1602),
+(0x1a49+467-0x1bd3),(0xa2c+4291-0x1aa5),(0x12e5+502-0x1490),(0xb72+315-0xc61),
+(0x67b+499-0x821),(0x139+2972-0xc87),(0x22e6+100-0x22fb),(0x318+3356-0xfe4),
+(0xf75+1884-0x1680),(0xb32+2235-0x139b),(0x8c6+1768-0xf5b),(0x155b+1055-0x1926),
+(0xe08+1644-0x141f),(0x813+5497-0x1d36),(0x1c2+2264-0xa43),(0x6a3+1814-0xd61),
+(0x10b4+2334-0x1979),(0xcaf+2496-0x1615),NON_GSM,(0x14f+7413-0x1e2d),NON_GSM,
+(0x226+4958-0x156e),(0x2f3+7999-0x2221),(0xe7d+4194-0x1e62),(0x5a8+6278-0x1dcd),
+(0xed2+2816-0x1970),(0x1670+3121-0x223e),(0x57f+2894-0x1069),
+(0x1eb9+1345-0x2395),(0x124b+4184-0x223d),(0x1689+2952-0x21aa),
+(0xfb5+1032-0x1355),(0x1d2b+1458-0x2274),(0x10e4+2141-0x18d7),
+(0x2c1+4277-0x130b),(0x785+7289-0x2392),(0x63c+7823-0x245e),(0x6bd+2501-0x1014),
+(0x810+7857-0x2652),(0x1738+3054-0x22b6),(0x276+624-0x475),(0x1131+698-0x1379),
+(0x12f1+3917-0x21cb),(0x1124+3389-0x1ded),(0x1ca0+273-0x1d3c),
+(0x1058+3515-0x1d9d),(0x107+7398-0x1d76),(0x1f01+1002-0x2273),
+(0x14bb+994-0x1824),(0x1d2c+2421-0x2627),NON_GSM,(0x26c+1141-0x6c7),NON_GSM,
+(0x3b6+6035-0x1ae9),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0x2011+95-0x2010),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x1cb+1808-0x880),(0x1697+2366-0x1fc7),(0x802+539-0xa01),(0x2150+110-0x21b5),
-NON_GSM,(0xb28+3178-0x1773),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x7d4+3190-0x13ed),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1028+3017-0x1b95)
-,NON_GSM,(0x1820+885-0x1b8a),NON_GSM,NON_GSM,NON_GSM,(0x15a5+257-0x1648),NON_GSM
-,NON_GSM,(0x1251+1392-0x17a3),(0x11eb+5191-0x25b3),NON_GSM,NON_GSM,NON_GSM,
-(0x161+415-0x285),(0x22ed+533-0x24f3),(0x2a2+7490-0x1fc7),NON_GSM,
-(0x14dc+4371-0x25eb),(0xa75+246-0xb66),NON_GSM,NON_GSM,(0x1ec+5103-0x15d4),
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x929+6405-0x21b1),(0x3f3+1271-0x8e2),NON_GSM,
-NON_GSM,NON_GSM,(0xa68+2272-0x12cc),NON_GSM,(0x5fd+2800-0x10e1),
-(0xc23+3144-0x1865),NON_GSM,NON_GSM,(0x4fb+137-0x506),NON_GSM,NON_GSM,NON_GSM};
-const unsigned short zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][
-(0xee3+993-0x12c2)]={{(0x693+5910-0x1da4),(0x1078+5136-0x239e)},{
-(0x82+5440-0x15b9),(0x507+3924-0x1374)},{(0x874+2214-0x1110),
-(0x1242+2927-0x1da5)},{(0x12d1+2768-0x1d96),(0x2165+1082-0x24cb)},{
-(0x5d8+7246-0x221a),(0xce3+5336-0x20c7)},{(0x17b4+2216-0x204f),
-(0x9f6+3704-0x1861)},{(0x189d+647-0x1b16),(0x2170+1076-0x24e3)},{
-(0x1671+2315-0x1f6d),(0x5fc+797-0x838)},{(0x69c+4725-0x18ff),
-(0x1aa4+1784-0x1df6)},{(0x74b+7724-0x2564),(0x1424+3712-0x1f11)},{
-(0x1b08+2868-0x2628),(0x89d+2336-0x115f)},{(0xa09+4012-0x19a0),
-(0x966+6701-0x1fea)},{(0x20+8733-0x2227),(0xcc7+4545-0x1ae8)},{
-(0x13d5+4345-0x24b7),(0xd95+1656-0x1065)},{(0xdd7+5072-0x218f),
-(0x1916+1795-0x1c76)},{(0xa76+2777-0x1536),(0xe75+5298-0x1f8f)},{
-(0x106b+1622-0x16a2),(0x8e3+2763-0x12e4)},{(0xc4+8887-0x2353),
-(0x1135+862-0x1418)},{(0x1382+4082-0x234b),(0xa1a+6103-0x2174)},{
-(0xd3d+1940-0x14a2),(0xb90+446-0xcf2)},{(0xdd4+5245-0x2215),(0x16fa+3134-0x22dd)
-},{(0x3bb+2418-0xcf0),(0x1beb+2788-0x2651)},{(0xc9c+6083-0x2421),
-(0x10da+2585-0x1a96)},{(0x93f+5333-0x1dd4),(0x12b4+3939-0x219b)},{
-(0x273+6029-0x19bf),(0x1f2+2366-0xa70)},{(0x234+3504-0xf9b),(0x40f+4616-0x154a)}
-,{(0x260+7131-0x1dec),(0x14aa+1220-0x189b)},{(0xca3+529-0xe5f),
-(0x1363+156-0x1325)},{(0x347+8876-0x2598),(0x2027+680-0x220c)},{
-(0x339+4931-0x1620),(0x435+3456-0x10e0)},{(0x99+4054-0x100e),
-(0x1413+2184-0x1bd9)},{(0x1a20+2112-0x21fb),8364},{(0x4a9+7864-0x22f8),
-(0x17ab+3192-0x2336)},{(0x516+7709-0x22c4),(0x21b3+749-0x23ad)},{
-(0x14e8+1829-0x1b98),(0xfdb+1400-0x1459)},{(0x3d6+7459-0x207e),
-(0x19b+3155-0xd0b)},{(0x1419+4563-0x2570),(0x510+7799-0x2292)},{
-(0x1d3+5301-0x1609),(0x4c1+1125-0x844)},};const unsigned short
-Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][(0xb9+9395-0x256a)]={{(0xefa+186-0xfa4),
-(0xc59+5198-0x1d13)},{(0xd83+2582-0x1784),8929},{(0x6b5+7718-0x24c3),8364},{
-(0x2f0+4321-0x136c),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,(0x897+2144-0x10ed),NON_GSM,NON_GSM,
-(0x677+1650-0xcdc),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1320+3391-0x2044),NON_GSM_P,
+NON_GSM,(0x2e9+6792-0x1d70),NON_GSM_P,(0xaa2+6863-0x256e),NON_GSM,
+(0x1942+502-0x1ad9),NON_GSM,NON_GSM,(0x14c3+208-0x1581),NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,(0x14ed+2994-0x207b),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x1051+1189-0x14d6),(0x1251+3931-0x218b),(0x5cc+3112-0x11d2),
-(0xce7+503-0xebb),(0xa18+3267-0x16d9),(0x3f0+6034-0x1b5d),(0x2d+1348-0x54b),
-(0xd12+4715-0x1f56),(0x13e6+3194-0x2038),(0x1f81+1068-0x2384),
-(0xf18+3213-0x1b7b),(0x1ceb+344-0x1e18),(0x3ec+3180-0x102c),(0x97a+2163-0x11c0),
-(0xd5+2405-0xa0c),(0xb8c+3092-0x1771),(0x724+3008-0x12b4),(0x800+5818-0x1e89),
-(0xe1f+4538-0x1fa7),(0x38b+996-0x73c),(0x23a+9345-0x2687),(0x1aaa+321-0x1bb6),
-(0x83d+2256-0x10d7),(0x13a4+4470-0x24e3),(0xa9c+3212-0x16f0),(0x116+1809-0x7ee),
-(0x3f3+8899-0x267c),(0x1fd1+1144-0x240e),(0xa12+6416-0x22e6),(0x1157+853-0x146f)
-,(0x18a5+2590-0x2285),(0x17cb+243-0x187f),(0x722+5202-0x1b74),
-(0x12f5+138-0x133e),(0x199+9003-0x2482),(0x868+1316-0xd49),(0xc9f+6074-0x2415),
-(0x761+6507-0x2087),(0x9e2+2404-0x1300),(0x14ad+1228-0x1932),
-(0x135b+1582-0x1941),(0x1f55+364-0x2078),(0x1164+1434-0x16b4),(0x170+2004-0x8f9)
-,(0x122b+3776-0x209f),(0x21f4+1028-0x25ab),(0x53c+3382-0x1224),
-(0x445+3897-0x132f),(0x23ff+796-0x26cb),(0x129c+3459-0x1fce),(0x8da+4855-0x1b7f)
-,(0xdc6+4809-0x203c),(0xd22+4079-0x1cbd),(0x1c7b+118-0x1c9c),(0xd07+4506-0x1e4b)
-,(0x10f4+2176-0x191d),(0xabd+111-0xad4),(0x65d+7124-0x21d8),(0x843+4716-0x1a55),
-NON_GSM,(0x100c+2736-0x1aa5),NON_GSM,(0xcc9+4835-0x1f96),(0x6ca+3551-0x1498),
-(0x20a9+1283-0x252f),(0x1a9+9484-0x2654),(0x15dd+2506-0x1f45),
-(0x120f+1019-0x15a7),(0x638+7738-0x240e),(0x1547+758-0x17d8),
-(0x1571+1543-0x1b12),(0x1ab6+2260-0x2323),(0xa84+250-0xb16),(0xccb+1067-0x108d),
-(0x4c0+4977-0x17c7),(0x656+1054-0xa09),(0x11b5+5083-0x2524),(0xc34+6113-0x23a8),
-(0x99+8346-0x20c5),(0x25a1+375-0x26a9),(0x9ec+6921-0x2485),(0x4da+1072-0x899),
-(0x6bb+4306-0x171b),(0x3ac+5312-0x17f9),(0x2242+845-0x251b),(0x235+2566-0xbc6),
-(0x830+4626-0x19cc),(0x1190+1124-0x157d),(0x430+5792-0x1a58),(0xab1+4714-0x1ca2)
-,(0x76a+6501-0x2055),NON_GSM,(0x3e9+6941-0x1eec),NON_GSM,(0x1170+3099-0x1d2b),
+(0x1e34+654-0x20ae),(0x663+6733-0x20a2),(0x6d9+218-0x797),(0xc23+3098-0x17e2),
+NON_GSM_P,NON_GSM_P,NON_GSM_P,(0xc60+796-0xf69),NON_GSM,(0x1e3+435-0x377),
+(0x129a+3806-0x215a),NON_GSM,NON_GSM,(0xc01+3757-0x1a6e),NON_GSM,NON_GSM,NON_GSM
+,NON_GSM_P,NON_GSM,(0x1437+4337-0x250f),(0x1e42+78-0x1e85),(0xf26+3008-0x1a8a),
+NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM,(0x1428+4828-0x26a7),NON_GSM,
+(0x194d+296-0x1a17),NON_GSM,NON_GSM,NON_GSM_P,(0x1d94+1961-0x24be),
+(0x127c+3256-0x1f25),(0x10c6+4533-0x225e),(0x206+7939-0x208e),NON_GSM_P,
+NON_GSM_P,NON_GSM_P,(0x14ea+3704-0x2359),NON_GSM_P,(0xd8+552-0x2fb),
+(0x13b3+2860-0x1edb),NON_GSM,NON_GSM_P,(0xa51+4974-0x1db8),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM_P,NON_GSM_P,(0xb41+6834-0x25eb),(0x4f5+7073-0x208a),
+(0x1b7b+1117-0x1f5c),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM_P,(0x1499+3159-0x20ea),
+NON_GSM,(0x15dd+2872-0x2097),NON_GSM,NON_GSM,NON_GSM};const unsigned short
+zte_sms_GSMDefault_To_UCS2_Table_Ex[][(0x21b9+1226-0x2681)]={{
+(0xd07+3550-0x1adb),(0x17fd+841-0x1b3a)},{(0x1c6f+312-0x1d93),(0x21f+1351-0x708)
+},{(0x80a+7363-0x24a5),(0xb6b+6317-0x239d)},{(0x15b3+4256-0x262a),
+(0x2ad+6542-0x1bbe)},{(0x3fa+2964-0xf5f),(0x3d9+8406-0x2453)},{
+(0xa96+4506-0x1bf4),(0xde8+5032-0x2135)},{(0x15b+3159-0xd75),(0x39d+3085-0xf2c)}
+,{(0x782+4221-0x17c1),(0x2175+1373-0x2675)},{(0x99+9213-0x2456),
+(0x430+1117-0x811)},{(0xa76+5674-0x203b),(0x246c+2121-0xc09)},};const unsigned
+short UCS2_To_GSMDefault_Table_UCS2[][(0x151f+3386-0x2257)]={{(0x809+1685-0xe8e)
+,(0x113f+5703-0x23f2)},{(0x406+1161-0x87d),(0xf72+6541-0x2559)},{
+(0x15af+1442-0x1b3e),(0x17c5+3594-0x223c)},{(0x14cb+2205-0x1d54),
+(0x9f4+6133-0x1e4e)},{(0x16f+4374-0x1270),(0x71a+2224-0xc21)},{
+(0x2221+532-0x241f),(0x992+4575-0x17d1)},{(0x135c+2703-0x1dd4),
+(0x10e2+2215-0x15e1)},{(0xad0+5861-0x219d),(0xeab+2819-0x160b)},{
+(0x1274+694-0x1511),(0x163d+1750-0x197b)},{(0x1ba5+1435-0x2126),
+(0x1114+4300-0x1e42)},};const unsigned char UCS2_To_GSMDefault_Table_ASC[]={
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0x1619+4125-0x261b),NON_GSM_P,NON_GSM,
-(0x18af+2112-0x20ee),NON_GSM_P,(0x258a+334-0x26d5),NON_GSM,(0xbb5+1557-0x116b),
-NON_GSM,NON_GSM,(0x518+1533-0xb03),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x1f98+1241-0x244d),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x66+4803-0x1315),(0x777+116-0x7dd),(0x398+5470-0x18da),(0x1cdf+2607-0x26b3),
-NON_GSM_P,NON_GSM_P,NON_GSM_P,(0xb38+989-0xf02),NON_GSM,(0x7bb+7540-0x2510),
-(0x1e3c+1649-0x248f),NON_GSM,NON_GSM,(0x22b+6486-0x1b41),NON_GSM,NON_GSM,NON_GSM
-,NON_GSM_P,NON_GSM,(0x112+2619-0xb34),(0x35d+3851-0x125d),(0x7ea+1757-0xe6b),
-NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM,(0x7b3+2874-0x1290),NON_GSM,
-(0x9ec+3616-0x17ae),NON_GSM,NON_GSM,NON_GSM_P,(0xaa1+5027-0x1dc5),
-(0xac5+1926-0x123c),(0xfb5+4947-0x22eb),(0x55d+5680-0x1b12),NON_GSM_P,NON_GSM_P,
-NON_GSM_P,(0x21d8+970-0x2599),NON_GSM_P,(0x166+4931-0x14a4),(0xa47+27-0xa5e),
-NON_GSM,NON_GSM_P,(0x72+3913-0xfb4),NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM_P,
-(0x1511+1243-0x19e4),(0x186d+274-0x1973),(0x8ef+5411-0x1d96),NON_GSM_P,NON_GSM,
-NON_GSM_P,NON_GSM_P,(0x853+6154-0x2057),NON_GSM,(0x122b+1429-0x1742),NON_GSM,
-NON_GSM,NON_GSM};const unsigned short zte_sms_GSMDefault_To_UCS2_Table_Ex[][
-(0x257f+321-0x26be)]={{(0x105d+2254-0x1921),(0x15eb+4112-0x25ef)},{
-(0x7ac+3863-0x16af),(0x2c1+4919-0x159a)},{(0x13f6+4870-0x26d4),
-(0x11a4+1501-0x1706)},{(0x11dc+833-0x14f4),(0x139+8668-0x2298)},{
-(0x12f3+3900-0x2200),(0xe47+4227-0x1e6e)},{(0x22f+2053-0x9f8),(0xca+4620-0x127b)
-},{(0xb47+843-0xe55),(0x4d6+8350-0x24f6)},{(0x10b8+4227-0x20fd),
-(0x3cb+7833-0x2207)},{(0x2012+515-0x21d5),(0x18d7+3116-0x2487)},{
-(0x150+5748-0x175f),8364},};const unsigned short UCS2_To_GSMDefault_Table_UCS2[]
-[(0xa60+5257-0x1ee7)]={{(0xcb3+617-0xf0c),(0xaef+4656-0x198b)},{
-(0xc57+1217-0x1106),(0x1525+5036-0x252b)},{(0x2a2+4701-0x14ec),
-(0xa3d+5374-0x1ba8)},{(0x1a1a+2373-0x234b),(0xeda+1364-0x1093)},{
-(0x10f7+5625-0x26db),(0x15ed+2307-0x1b47)},{(0x76a+1677-0xde1),
-(0x18c2+4016-0x24d2)},{(0x9e7+982-0xda6),(0x114d+6008-0x251d)},{
-(0x4e6+531-0x6e1),(0xb24+1353-0xcca)},{(0x1420+4100-0x240b),(0xda8+1393-0xf81)},
-{(0x1555+2560-0x1f3b),(0x1408+2876-0x1ba6)},};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,(0x307+6848-0x1dbd),NON_GSM,NON_GSM,
-(0xf3a+1575-0x1554),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x6f4+1700-0xd78),(0x1330+1159-0x1796),(0x1f7a+242-0x204a),
-(0x13f+4863-0x141b),(0x900+4113-0x190f),(0xa7+6722-0x1ac4),(0x24f0+463-0x2699),
-(0x121+4003-0x109d),(0x878+7117-0x241d),(0x45+3759-0xecb),(0xf3f+5459-0x2468),
-(0xf7c+5986-0x26b3),(0x1ac5+1230-0x1f67),(0x5df+5155-0x19d5),
-(0x1079+4170-0x2095),(0x21f5+130-0x2248),(0x502+8760-0x270a),(0x2f0+8895-0x257e)
-,(0xe5+4961-0x1414),(0x4d+8340-0x20ae),(0x7a7+5506-0x1cf5),(0x4a2+509-0x66a),
-(0x1c52+206-0x1cea),(0x6e1+7253-0x22ff),(0x11e8+1348-0x16f4),
-(0x1a45+1770-0x20f6),(0x302+8184-0x22c0),(0x8b6+1510-0xe61),(0x43d+8050-0x2373),
-(0x2b9+8153-0x2255),(0x964+695-0xbdd),(0xf6a+834-0x126d),(0xdf3+3606-0x1c09),
-(0x7c6+4594-0x1977),(0x1ab4+703-0x1d31),(0x3cb+6324-0x1c3c),(0x1109+582-0x130b),
-(0x2489+308-0x2578),(0x192a+1694-0x1f82),(0xe3b+3878-0x1d1a),(0xda6+6538-0x26e8)
-,(0xe13+1979-0x1585),(0xcb3+3201-0x18ea),(0x1454+3281-0x20da),
-(0x18c+6362-0x1a1a),(0x1ad+2844-0xc7c),(0x13e4+1148-0x1812),(0xc34+984-0xfbd),
-(0xf84+821-0x1269),(0x477+274-0x538),(0x1f99+1553-0x2558),(0x47b+6251-0x1c93),
-(0x1ad3+775-0x1d86),(0x300+2029-0xa98),(0x8bb+2453-0x11fa),(0x2192+544-0x235b),
-(0x438+6453-0x1d15),(0x566+2314-0xe17),(0xf06+943-0x125b),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0xbf+6446-0x19dc),NON_GSM,(0xcf8+430-0xe45),
-(0x1096+4692-0x2288),(0x10c6+3203-0x1ce6),(0x6b0+1985-0xe0d),
-(0x102a+3536-0x1d95),(0x482+3274-0x10e6),(0x1248+4086-0x21d7),(0x9d4+1102-0xdba)
-,(0x101+6605-0x1a65),(0x19df+2086-0x219b),(0x123a+3752-0x2077),
-(0x8b4+1024-0xc48),(0x1104+1838-0x17c5),(0x19a8+1134-0x1da8),(0xdc+3713-0xeee),
-(0x218d+1093-0x2562),(0x874+2102-0x1039),(0x548+5006-0x1864),
-(0x12ca+3768-0x210f),(0x16eb+4142-0x26a5),(0x16e2+1068-0x1a99),(0xaef+783-0xd88)
-,(0x903+3111-0x14b3),(0x1110+4769-0x2339),(0x12d3+4490-0x23e4),(0x385+641-0x58c)
+(0x2088+1549-0x268b),NON_GSM,NON_GSM,(0xbeb+5841-0x22af),NON_GSM,NON_GSM,NON_GSM
,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
-,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
-,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
-,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x157b+2312-0x1e68),
-(0x8d5+7629-0x2662),NON_GSM,(0x8d7+5265-0x1d67),(0x15fc+3227-0x2273),
-(0x664+6748-0x20bd),NON_GSM,(0x13b1+877-0x16bf),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1e77+1756-0x2533),
+(0x135d+2033-0x1b2d),(0x1327+197-0x13ca),(0x30f+8945-0x25dd),(0xa15+557-0xc40),
+(0x1c7c+537-0x1e70),(0x150f+391-0x1670),(0xfb5+5158-0x23b4),(0xc01+1656-0x1251),
+(0x1246+5115-0x2618),(0xd79+3748-0x1bf3),(0xcf8+4723-0x1f40),(0xc35+3898-0x1b43)
+,(0x1b16+2656-0x2549),(0x1445+3509-0x21cc),(0x8e1+7649-0x2693),
+(0x667+4137-0x1660),(0x1f7+2934-0xd3c),(0x13d9+1161-0x1830),(0xc15+3607-0x19f9),
+(0x1514+327-0x1627),(0x4ec+8597-0x264c),(0x232+7155-0x1def),(0x1c5+2608-0xbbe),
+(0xa38+265-0xb09),(0x3ed+8385-0x2475),(0x1897+1657-0x1ed6),(0x2196+240-0x224b),
+(0x47d+1172-0x8d5),(0x107+2874-0xc04),(0x167c+3161-0x2297),(0xdec+4154-0x1de7),
+(0x105c+4798-0x231a),(0x337+7691-0x2101),(0x3d2+854-0x6e6),(0xeaf+799-0x118b),
+(0x1478+4276-0x24e8),(0x14f+5739-0x1775),(0x807+7726-0x25ef),
+(0x10f9+4997-0x2437),(0x20c6+1365-0x25d3),(0x1b2a+688-0x1d91),
+(0xaef+6952-0x25cd),(0xf8+9569-0x260e),(0xe16+5316-0x228e),(0xf9c+5305-0x2408),
+(0x591+3541-0x1318),(0x15e0+1813-0x1ca6),(0xae9+3971-0x1a1c),(0x980+150-0x9c5),
+(0x1263+1511-0x17f8),(0x69d+5679-0x1c79),(0x76a+3475-0x14a9),(0x1c41+216-0x1cc4)
+,(0x21ff+116-0x221d),(0x35d+9206-0x26fc),(0xdc5+4686-0x1fbb),(0x7e9+6100-0x1f64)
+,(0x1a9c+706-0x1d04),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x897+302-0x9b4),NON_GSM,
+(0x8e5+7121-0x2455),(0x9ed+5615-0x1f7a),(0x728+6200-0x1efd),(0x14b+82-0x139),
+(0x1578+2777-0x1fec),(0x1b1+7693-0x1f58),(0x3cb+5669-0x1989),(0x4f0+6399-0x1d87)
+,(0xe31+1088-0x1208),(0x502+8437-0x258d),(0xd29+4827-0x1f99),(0x173+7437-0x1e14)
+,(0x60f+2261-0xe77),(0x8d7+4403-0x199c),(0x182+2457-0xaac),(0x1487+4147-0x244a),
+(0x5aa+438-0x6ef),(0x4ca+6398-0x1d56),(0x2e2+1114-0x6c9),(0x1634+4276-0x2674),
+(0x1377+4529-0x24b3),(0x11e4+2630-0x1bb4),(0x437+2441-0xd49),(0x15d+1465-0x69e),
+(0x4d0+1900-0xbc3),(0x10e8+2729-0x1b17),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x620+2779-0x109b),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xd71+1057-0x1137),
-(0x8a1+882-0xc05),(0x65d+6182-0x1e67),(0x3c7+7775-0x221d),NON_GSM,
-(0x157d+468-0x1732),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x791+3918-0x1682),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xc0+4740-0x12e8),NON_GSM,
-(0x1f5b+643-0x21d3),NON_GSM,NON_GSM,NON_GSM,(0x445+5624-0x19df),NON_GSM,NON_GSM,
-(0xdf9+2528-0x17bb),(0x4b4+2635-0xe80),NON_GSM,NON_GSM,NON_GSM,
-(0x31d+7438-0x1fb0),(0xa03+2328-0x130c),(0x160d+3109-0x2215),NON_GSM,
-(0x1592+326-0x16d4),(0x12eb+1050-0x1700),NON_GSM,NON_GSM,(0x5b1+2170-0xe24),
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x163+3321-0xddf),(0x1822+3680-0x267a),NON_GSM,
-NON_GSM,NON_GSM,(0x15cc+4209-0x25c1),NON_GSM,(0x26+2289-0x90b),
-(0x1553+3523-0x2310),NON_GSM,NON_GSM,(0x1017+2986-0x1b43),NON_GSM,NON_GSM,
-NON_GSM};const unsigned short zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={
-(0x2431+503-0x25e8),(0x22a+9134-0x2535),(0x2a0+5841-0x194d),(0x16ba+563-0x1848),
-(0xea7+358-0xf23),(0x364+3705-0x10f4),(0xcb3+1879-0x1310),(0x20cd+62-0x201e),
-(0xcb0+4679-0x1e04),(0x173d+3288-0x232e),(0x1475+102-0x14d1),
-(0x226f+1090-0x25dd),(0x479+6720-0x1dc5),(0x163+6772-0x1bca),(0xd0+1646-0x67d),
-(0x6b8+5582-0x1ba5),(0xa58+6659-0x20c7),(0xeaf+3440-0x1bc0),(0x24b+4234-0x122b),
-(0x1b6c+1742-0x2173),(0x934+6796-0x2300),8734,(0x175a+3098-0x2316),
-(0x1edb+92-0x1edb),8364,(0x25d+4140-0x11b6),(0x1eed+1717-0x2526),
-(0x15c3+4089-0x251c),(0x1981+1513-0x1ea8),(0x18ba+3785-0x26a1),
-(0x4f0+4973-0x1793),(0xd93+3275-0x1995),(0x21b+2099-0xa2e),(0x1990+341-0x1ac4),
-(0x15ba+2843-0x20b3),(0xa25+1865-0x114b),(0x15b5+3516-0x22c1),
-(0x2013+580-0x2232),(0x15c6+1146-0x1a1a),(0x688+7666-0x2453),(0x1c64+747-0x1f27)
-,(0x881+3044-0x143c),(0x1164+2951-0x1cc1),(0x18f3+1633-0x1f29),
-(0x2240+887-0x258b),(0x1469+4044-0x2408),(0x1481+2952-0x1fdb),
-(0xdfd+4221-0x1e4b),(0xe38+5380-0x230c),(0x11f9+4729-0x2441),(0xb96+4682-0x1dae)
-,(0x1f73+285-0x205d),(0x4bc+8698-0x2682),(0x351+7282-0x1f8e),(0xfcc+1026-0x1398)
-,(0xfca+5857-0x2674),(0x1726+352-0x184e),(0x74b+7958-0x2628),
-(0x158c+4219-0x25cd),(0xf24+1892-0x164d),(0x776+1636-0xd9e),(0x48+5339-0x14e6),
-(0xeda+1999-0x166b),(0x106+8948-0x23bb),(0x17aa+3810-0x25bf),(0x214+4270-0x1281)
-,(0x3e7+1137-0x816),(0xc3+6382-0x196e),(0x392+2308-0xc52),(0x126a+322-0x1367),
-(0x9eb+2660-0x1409),(0x1911+353-0x1a2b),(0x982+6644-0x232e),(0x43b+1779-0xae5),
-(0xb16+4727-0x1d43),(0x214+6155-0x19d4),(0x637+6530-0x1f6d),(0x1a5+7860-0x200c),
-(0x102c+4530-0x2190),(0x16a5+224-0x1736),(0xae0+2755-0x1553),
-(0x136b+4829-0x25f7),(0x1ba7+2595-0x2578),(0x436+619-0x64e),(0x10b9+3040-0x1c45)
-,(0xd0d+5964-0x2404),(0x2105+892-0x242b),(0xa16+2683-0x143a),(0x343+5779-0x197e)
-,(0x1085+2252-0x18f8),(0x178f+2060-0x1f41),(0x833+5993-0x1ed9),
-(0x99b+6075-0x2081),(0xb2a+5910-0x2166),(0x112d+729-0x132a),(0x2387+306-0x2412),
-(0x1f1+1794-0x875),(0x14dc+1655-0x1af2),(0xe17+4130-0x1dd7),(0x1a32+1071-0x1dfe)
-,(0x1a48+1569-0x2005),(0x158c+3477-0x22bc),(0x186+5471-0x167f),
-(0x5c7+6631-0x1f47),(0x1195+3546-0x1f07),(0xb42+2688-0x1559),(0xff4+1317-0x14af)
-,(0x21e8+881-0x24ee),(0x17bc+4021-0x2705),(0xe49+146-0xe6e),(0xaa7+6547-0x23cc),
-(0x16ed+3344-0x238e),(0xe4+997-0x459),(0x2da+7609-0x2022),(0x1084+4626-0x2224),
-(0x7d7+4499-0x18f7),(0x1b4a+2691-0x2559),(0xd30+1527-0x12b2),(0x311+627-0x50e),
-(0x116a+3376-0x1e23),(0x1b62+209-0x1bbb),(0x9b0+132-0x9bb),(0x885+3839-0x170a),
-(0x1173+2643-0x1ae3),(0x1570+3214-0x2109),(0x2d3+5204-0x16c7),
-(0x1206+1454-0x16b8),(0x5ec+4277-0x15c1)};const unsigned short
-zte_sms_GSMDefault_To_UCS2_Table[]={(0x944+3867-0x181f),(0x1643+2367-0x1edf),
-(0x7eb+368-0x937),(0x956+1784-0xfa9),(0x1061+4402-0x20ab),(0x100d+202-0xfee),
-(0x9f2+5672-0x1f21),(0xc09+86-0xb73),(0x10e1+4400-0x211f),(0x187c+2234-0x206f),
-(0x16e9+2253-0x1fac),(0x168+4111-0x109f),(0x1148+4453-0x21b5),
-(0x87d+7435-0x257b),(0x1605+3993-0x24d9),(0x71d+5941-0x1d6d),
-(0x10a1+2486-0x16c3),(0x1a08+493-0x1b96),(0x45d+7653-0x1e9c),
-(0x1dfd+1286-0x1f70),(0x79a+8137-0x23c8),(0x726+1646-0x9eb),(0x1110+5879-0x2467)
-,(0x13ef+4320-0x2127),(0xbc1+6868-0x22f2),(0x1432+5114-0x2494),(0x899+427-0x6a6)
-,(0x189c+775-0x1b03),(0x1903+1774-0x1f2b),(0x136d+3736-0x211f),
-(0x99f+4283-0x197b),(0xe4+5824-0x16db),(0xde8+5474-0x232a),(0x1fb+1062-0x600),
-(0x1e65+1290-0x234d),(0x1c47+1238-0x20fa),(0x1b6a+2426-0x2440),
-(0x613+6702-0x201c),(0x282+4252-0x12f8),(0x2d9+9133-0x265f),(0xe23+4575-0x1fda),
-(0x963+1724-0xff6),(0x3d7+44-0x3d9),(0x1841+1271-0x1d0d),(0x140a+296-0x1506),
-(0x1d53+2474-0x26d0),(0xa7d+4744-0x1cd7),(0x210b+242-0x21ce),(0xc32+585-0xe4b),
-(0x7c9+5594-0x1d72),(0x95+2718-0xb01),(0x4eb+8273-0x2509),(0x2306+571-0x250d),
-(0x159b+4251-0x2601),(0x1182+3448-0x1ec4),(0x107+3636-0xf04),(0x15bd+455-0x174c)
-,(0x291+1858-0x99a),(0x716+1575-0xd03),(0xe7+9182-0x248a),(0xe3c+4267-0x1eab),
-(0x905+4859-0x1bc3),(0x66+5323-0x14f3),(0x9c6+7438-0x2695),(0x7b8+7038-0x2295),
-(0x1af+3561-0xf57),(0x470+2721-0xecf),(0x517+34-0x4f6),(0xb2d+1930-0x1273),
-(0x1a14+1223-0x1e96),(0x2c1+6132-0x1a6f),(0x1fb+9515-0x26df),(0x8c1+3803-0x1754)
-,(0x2bb+414-0x410),(0xe90+1340-0x1382),(0x49d+3272-0x111a),(0xcc0+3750-0x1b1a),
-(0x676+5428-0x1b5d),(0x270+4588-0x140e),(0x5c7+2829-0x1085),(0x1d41+1464-0x22a9)
-,(0x229+6455-0x1b0f),(0xee1+3801-0x1d68),(0x1e68+1-0x1e16),(0x22a2+1093-0x2693),
-(0xf42+5390-0x23fb),(0xa17+1366-0xf17),(0x150d+2304-0x1db6),(0x407+6-0x3b5),
-(0xa9+6604-0x1a1c),(0x10a0+2199-0x18dd),(0x1524+2904-0x1fb8),
-(0x1cc6+1072-0x2020),(0xd4b+6531-0x25fd),(0x1005+1047-0x1340),
-(0x10dd+627-0x12a9),(0xa84+6549-0x235a),(0x316+6662-0x1cbb),(0x17bb+967-0x1b20),
-(0x13bc+3797-0x222e),(0x11aa+884-0x14ba),(0x5d3+3899-0x14a9),(0xe85+1277-0x131c)
-,(0x2256+711-0x24b6),(0xc8a+4722-0x1e94),(0x1dec+62-0x1dc1),(0xbd9+1876-0x12c3),
-(0x16a5+3235-0x22dd),(0xe8a+5031-0x21c5),(0x291+5824-0x18e4),(0x6c3+4169-0x169e)
-,(0x4ca+6767-0x1eca),(0x1b1d+1349-0x1ff2),(0x221b+681-0x2453),
-(0x6a5+5798-0x1cd9),(0x294+7693-0x202e),(0x19c0+2471-0x22f3),(0xddd+6499-0x26cb)
-,(0x77f+1087-0xb48),(0x8c2+2941-0x13c8),(0xff7+4477-0x20fc),(0x169a+1305-0x1b3a)
-,(0x1db8+1355-0x2289),(0x13f5+27-0x132c),(0xb29+4005-0x19d8),(0xb9d+3265-0x176d)
-,(0xf1d+3542-0x1bf7),(0x149f+3817-0x22a8)};int Bytes2String(const unsigned char*
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,(0x23a0+749-0x2672),(0x185b+2790-0x2301),NON_GSM,
+(0x1919+3067-0x2513),(0x1797+1347-0x1cb6),(0x12f7+1528-0x18ec),NON_GSM,
+(0xa29+4729-0x1c43),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x26f+8687-0x23fe),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x1dd6+2026-0x2565),(0x11c+5701-0x1753),
+(0xb06+2830-0x15f8),(0x1c98+1462-0x2245),NON_GSM,(0xe27+2049-0x1609),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xbac+1864-0x1297),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x166f+4104-0x261b),NON_GSM,(0x1f33+978-0x22fa),NON_GSM
+,NON_GSM,NON_GSM,(0xe0c+6229-0x2603),NON_GSM,NON_GSM,(0x780+8071-0x26e9),
+(0x1348+900-0x164d),NON_GSM,NON_GSM,NON_GSM,(0x21b+1632-0x800),
+(0x14ec+4648-0x2705),(0x7e1+3970-0x1746),NON_GSM,(0x4ec+3916-0x1434),
+(0x16a3+2177-0x1f1f),NON_GSM,NON_GSM,(0x1152+1397-0x16c0),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,(0x12ef+5106-0x2664),(0x14d8+1487-0x1a9f),NON_GSM,NON_GSM,
+NON_GSM,(0x132f+4310-0x2389),NON_GSM,(0x10d2+272-0x11d6),(0x20e9+1426-0x2675),
+NON_GSM,NON_GSM,(0x17f1+2536-0x215b),NON_GSM,NON_GSM,NON_GSM};const unsigned
+short zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={(0x1e79+1366-0x238f),
+(0xeb+8332-0x20d4),(0xfc6+1837-0x16cf),(0x989+2390-0x123a),(0x16b0+2727-0x206d),
+(0x3d2+1405-0x866),(0xe89+4240-0x1e1f),(0x1353+331-0x13b1),(0x983+5498-0x1e0a),
+(0x197+7903-0x1f8f),(0x14ff+631-0x176c),(0xe7b+2073-0x15c0),(0x217d+1025-0x248a)
+,(0x1426+1104-0x1869),(0x1cc+9343-0x258a),(0x19ff+3488-0x26be),
+(0x5b1+8943-0x250c),(0xf45+5014-0x227c),(0x789+7792-0x254f),(0x91f+6558-0x21f6),
+(0x1884+47-0x17f3),8734,(0x15e1+4398-0x26b1),(0x81c+805-0xae5),8364,
+(0x149d+3126-0x2000),(0x101d+4858-0x229b),(0x5d9+3423-0x1298),
+(0xd1b+6137-0x2452),(0x9a7+6701-0x22f2),(0x750+3289-0x135f),(0x5ef+6584-0x1ede),
+(0x499+2046-0xc77),(0x360+740-0x623),(0x11d9+3965-0x2134),(0xfa+4200-0x113f),
+(0x12b9+4562-0x23db),(0x11a5+2342-0x1aa6),(0x173b+3226-0x23af),
+(0x63b+1394-0xb86),(0x1497+3764-0x2323),(0x197d+1247-0x1e33),(0xf55+1117-0x1388)
+,(0x4c6+5041-0x184c),(0x184b+2502-0x21e5),(0x1a1a+3298-0x26cf),
+(0xc3a+2951-0x1793),(0x254+6784-0x1ca5),(0xf99+5602-0x254b),(0x213+9202-0x25d4),
+(0x1210+3987-0x2171),(0x15b9+2455-0x1f1d),(0x713+7065-0x2278),(0x1c2+1502-0x76b)
+,(0x2071+1165-0x24c8),(0xf28+5172-0x2325),(0x91b+3056-0x14d3),
+(0x1952+648-0x1ba1),(0xff8+511-0x11bd),(0x1483+4313-0x2521),(0xb81+235-0xc30),
+(0x132+3590-0xefb),(0xad1+1279-0xf92),(0x1886+3658-0x2691),(0x605+7908-0x241c),
+(0x1397+250-0x1450),(0x10dc+5533-0x2637),(0xc47+203-0xccf),(0xc5f+1461-0x11d0),
+(0x1068+3247-0x1cd2),(0x1a52+1130-0x1e76),(0x118c+106-0x11af),
+(0x1b6b+1602-0x2165),(0x738+6579-0x20a2),(0x2aa+2277-0xb45),(0x2ab+6861-0x1d2d),
+(0xcbc+1685-0x1305),(0x8c8+2501-0x1240),(0x10f5+4780-0x2353),(0x2f2+6138-0x1a9d)
+,(0xe8d+3877-0x1d62),(0x3c2+67-0x3b4),(0x110b+2177-0x193a),(0xcf+1663-0x6fb),
+(0x2e4+1037-0x69d),(0x903+4211-0x1921),(0x879+7356-0x24df),(0x137b+3881-0x224d),
+(0xaf9+4361-0x1baa),(0x1ffd+812-0x22d0),(0xc96+2243-0x14ff),(0xf19+3811-0x1d39),
+(0x2d4+7023-0x1d6e),(0x23e0+898-0x2688),(0x1188+3615-0x1ecb),(0xa68+637-0xc3e),
+(0x1865+2753-0x22a8),(0xd4d+3362-0x1a0e),(0x1266+1336-0x173c),
+(0xfa4+5448-0x2489),(0x5b9+1706-0xbff),(0xe81+967-0x11e3),(0x1d75+1239-0x21e6),
+(0x147c+1283-0x1918),(0x1ca+9175-0x2539),(0x1c3+3940-0x10be),(0xbcc+3677-0x19bf)
+,(0x338+6410-0x1bd7),(0x169d+1299-0x1b44),(0xdfc+4143-0x1dbe),
+(0x7ca+4328-0x1844),(0x9eb+2078-0x119a),(0xd28+1000-0x10a0),(0x268+8436-0x22eb),
+(0x754+975-0xab1),(0x46b+4694-0x164e),(0x5fa+74-0x5d0),(0xc59+377-0xd5d),
+(0x76c+5798-0x1d9c),(0x1ad+3935-0x1095),(0x23a+7264-0x1e22),(0x5b3+925-0x8d7),
+(0x17fa+2078-0x1f9e),(0x51a+3518-0x11f5),(0xcd1+958-0xf9a),(0x2613+151-0x264a),
+(0x10f+1165-0x4a0),(0x7f6+7867-0x25d1)};const unsigned short
+zte_sms_GSMDefault_To_UCS2_Table[]={(0x10df+1500-0x167b),(0xa53+4661-0x1be5),
+(0x3c3+4910-0x16cd),(0x18b+5733-0x174b),(0xd6b+336-0xdd3),(0x4a4+3510-0x1171),
+(0x838+1615-0xd8e),(0x3a9+3225-0xf56),(0x140c+2008-0x1af2),(0x1e12+2367-0x268a),
+(0x1137+4530-0x22df),(0x543+6528-0x1deb),(0x3aa+3991-0x1249),(0xc05+2299-0x14f3)
+,(0xf8d+5653-0x24dd),(0x208a+1034-0x23af),916,(0x1b1+7559-0x1ed9),
+(0x19cd+1749-0x1cfc),(0x14a0+1381-0x1672),(0xf19+2482-0x1530),
+(0x26a7+992-0x26de),(0x8d0+5034-0x18da),(0x17b3+2978-0x1fad),(0xfbc+1674-0x12a3)
+,(0x4e1+4119-0x1160),(0xb16+7298-0x23fa),(0x1f70+1035-0x22db),(0x359+1827-0x9b6)
+,(0x1854+2168-0x1fe6),(0x32b+4746-0x14d6),(0x1655+1168-0x1a1c),
+(0xf4+4175-0x1123),(0xca5+2245-0x1549),(0x90+8068-0x1ff2),(0x1803+2834-0x22f2),
+(0x926+5241-0x1cfb),(0xf86+1303-0x1478),(0x1087+1643-0x16cc),(0x27c+810-0x57f),
+(0xadd+144-0xb45),(0xdd4+2739-0x185e),(0x3bc+7522-0x20f4),(0xa85+4134-0x1a80),
+(0x194c+2146-0x2182),(0x523+8288-0x2556),(0x417+2135-0xc40),(0xd82+4609-0x1f54),
+(0x3ea+2846-0xed8),(0x703+53-0x707),(0x1585+1203-0x1a06),(0x9c6+1363-0xee6),
+(0xf77+4345-0x203c),(0x128d+3286-0x1f2e),(0x3c9+3602-0x11a5),(0xc74+3879-0x1b64)
+,(0x5a9+3294-0x124f),(0xe9b+3955-0x1dd5),(0x1059+1517-0x160c),
+(0x4d5+3031-0x1071),(0xe0d+234-0xebb),(0xadd+599-0xcf7),(0x1d72+1800-0x243c),
+(0x565+4303-0x15f5),(0x366+1892-0xa29),(0x12fc+2362-0x1bf5),(0x482+8232-0x2468),
+(0xb42+4258-0x1ba1),(0x588+8203-0x254f),(0x11b4+129-0x11f0),(0x644+5303-0x1ab5),
+(0xdd5+4148-0x1dc2),(0x9f+5789-0x16f4),(0x15a2+4244-0x25ed),(0x171a+2853-0x21f5)
+,(0xc5+197-0x13f),(0x113+1040-0x4d7),(0x4d+6752-0x1a60),(0x59+3119-0xc3a),
+(0xaa+1452-0x607),(0x9a+3835-0xf45),(0xb61+672-0xdb0),(0x36f+2780-0xdf9),
+(0x28b+7205-0x1e5d),(0x71d+2252-0xf95),(0x1caa+798-0x1f73),(0x80b+4421-0x18fa),
+(0xc07+3852-0x1abc),(0x318+8940-0x25ac),(0xac5+6437-0x2391),(0x4c1+6225-0x1cb8),
+(0x94c+5588-0x1e5c),(0x162+2238-0x94a),(0xce7+802-0xf38),(0x5cb+2700-0xf7b),
+(0x406+3336-0x1067),(0x1d4c+1693-0x232a),(0x5b0+6016-0x1ccf),(0x1243+790-0x14f7)
+,(0x12e2+869-0x15e4),(0x168+1219-0x5c7),(0x626+4389-0x16e6),(0x1574+834-0x1850),
+(0x2f5+7987-0x21c1),(0x8eb+4517-0x1a28),(0x12da+2157-0x1ade),(0x347+7242-0x1f27)
+,(0x706+2974-0x1239),(0x19a+320-0x26e),(0x2f4+7982-0x21b5),(0x124a+1402-0x1756),
+(0x751+1563-0xcfd),(0xf3+8928-0x2363),(0x4b6+4344-0x153d),(0x1693+2248-0x1ee9),
+(0x8cc+4754-0x1aeb),(0x7e7+3535-0x1542),(0xd70+4423-0x1e42),(0xdd3+3519-0x1b1c),
+(0x421+5430-0x18e0),(0x112f+1669-0x173c),(0x114f+2003-0x18a9),
+(0x19bf+877-0x1cb2),(0xf14+1966-0x15de),(0x530+3524-0x11fe),(0x5d0+35-0x502),
+(0x88a+7405-0x247b),(0xf1f+968-0x1207)};int Bytes2String(const unsigned char*
pSrc,char*pDst,int nSrcLength){const char tab[]="0123456789ABCDEF";int i=
-(0xf7+5098-0x14e1);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1015+471-0x11ec)){
-return-(0x1629+1293-0x1b35);}for(i=(0x1448+4227-0x24cb);i<nSrcLength;i++){*pDst
-++=tab[*pSrc>>(0xcb2+6434-0x25d0)];*pDst++=tab[*pSrc&(0x1d+4108-0x101a)];pSrc++;
-}*pDst='\0';return nSrcLength*(0x1db5+781-0x20c0);}int String2Bytes(const char*
-pSrc,unsigned char*pDst,int nSrcLength){int i=(0x448+4348-0x1544);if(pSrc==NULL
-||pDst==NULL||nSrcLength<(0x899+4244-0x192d)){return-(0x3d3+2844-0xeee);}for(i=
-(0x1131+801-0x1452);i<nSrcLength;i+=(0x120+4914-0x1450)){if(*pSrc>=
-((char)(0x3f5+3112-0xfed))&&*pSrc<=((char)(0x1fa+1427-0x754))){*pDst=(*pSrc-
-((char)(0x16f0+3149-0x230d)))<<(0x2399+522-0x259f);}else{*pDst=((toupper(*pSrc)-
-((char)(0xfbf+2271-0x185d)))+(0x442+8534-0x258e))<<(0xc5c+2616-0x1690);}pSrc++;
-if(*pSrc>=((char)(0x2084+1624-0x26ac))&&*pSrc<=((char)(0xf35+2827-0x1a07))){*
-pDst|=*pSrc-((char)(0x9cc+694-0xc52));}else{*pDst|=(toupper(*pSrc)-
-((char)(0xeaa+2533-0x184e)))+(0xca8+5512-0x2226);}pSrc++;pDst++;}return
-nSrcLength/(0x986+6546-0x2316);}int EncodeUcs2(const char*pSrc,unsigned char*
-pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x2212+334-0x2360)){
-return-(0x8b7+5013-0x1c4b);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);return
- nSrcLength/(0xa1+7351-0x1d56);}int Encode7bit(const char*pSrc,unsigned char*
-pDst,int nSrcLength){int nSrc;int nDst;int nChar;unsigned char nLeft=
-(0x1227+4137-0x2250);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x7b0+6123-0x1f9b)){
-return-(0x9e0+2489-0x1398);}nSrc=(0xf0f+1816-0x1627);nDst=(0xc74+2923-0x17df);
-while(nSrc<nSrcLength){nChar=nSrc&(0xb15+2218-0x13b8);if(nChar==
-(0x189+297-0x2b2)){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>
-(0x147b+2479-0x1e29))&&(nSrc==(nSrcLength-(0x1702+2887-0x2248)))){nDst++;}}else{
-*pDst=(*pSrc<<((0xa89+6956-0x25ad)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst
-++;}pSrc++;nSrc++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst
-,UINT8 TP_FCS){SINT32 nLength=(0x148a+871-0x17f1);SINT32 nDstLength=
-(0x1625+3651-0x2468);UINT8 buf[(0x1d9f+2272-0x257f)]={(0x31d+6285-0x1baa)};if(
-NULL==pDst){return-(0x38+6227-0x188a);}if(TP_FCS!=(0x653+1312-0xb73)){buf[
-(0xde7+1356-0x1333)]=(0x33d+5663-0x195c);buf[(0x229b+1054-0x26b8)]=TP_FCS;buf[
-(0x22+8611-0x21c3)]=(0x1426+3174-0x208c);nDstLength+=Bytes2String(buf,&pDst[
-nDstLength],(0x23f+3725-0x10c9));}else{buf[(0x991+3725-0x181e)]=
-(0xadf+3551-0x18be);buf[(0x446+154-0x4df)]=(0x173b+698-0x19f5);nDstLength+=
-Bytes2String(buf,&pDst[nDstLength],(0x1982+1691-0x201b));}return nDstLength;}
-unsigned long zUfiSms_ConvertAsciiToGsmDefault(const unsigned char*inputs,
-unsigned char*outputs,unsigned long len){unsigned long i=(0x11d4+5251-0x2657);
-unsigned long j=(0xf8+6861-0x1bc5);unsigned long k=(0xa48+7357-0x2705);if(NULL==
-inputs||NULL==outputs){printf(
+(0x111a+3975-0x20a1);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x17ab+3721-0x2634))
+{return-(0x46f+8235-0x2499);}for(i=(0x91b+5671-0x1f42);i<nSrcLength;i++){*pDst++
+=tab[*pSrc>>(0xdd+9404-0x2595)];*pDst++=tab[*pSrc&(0x4bd+942-0x85c)];pSrc++;}*
+pDst='\0';return nSrcLength*(0x1557+1244-0x1a31);}int String2Bytes(const char*
+pSrc,unsigned char*pDst,int nSrcLength){int i=(0xd1a+5303-0x21d1);if(pSrc==NULL
+||pDst==NULL||nSrcLength<(0x114d+2413-0x1aba)){return-(0xd50+5756-0x23cb);}for(i
+=(0x4dc+6499-0x1e3f);i<nSrcLength;i+=(0x5+6216-0x184b)){if(*pSrc>=
+((char)(0x1bf+2403-0xaf2))&&*pSrc<=((char)(0x1b64+815-0x1e5a))){*pDst=(*pSrc-
+((char)(0x1d8d+687-0x200c)))<<(0x1e9+510-0x3e3);}else{*pDst=((toupper(*pSrc)-
+((char)(0xdd4+6356-0x2667)))+(0x230b+268-0x240d))<<(0xe66+5186-0x22a4);}pSrc++;
+if(*pSrc>=((char)(0x1014+1584-0x1614))&&*pSrc<=((char)(0x4a1+4336-0x1558))){*
+pDst|=*pSrc-((char)(0x46d+5007-0x17cc));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x1e9c+1587-0x248e)))+(0xa92+1196-0xf34);}pSrc++;pDst++;}return
+nSrcLength/(0x1986+1111-0x1ddb);}int EncodeUcs2(const char*pSrc,unsigned char*
+pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1df8+544-0x2018)){
+return-(0xfc5+5627-0x25bf);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);return
+ nSrcLength/(0x519+635-0x792);}int Encode7bit(const char*pSrc,unsigned char*pDst
+,int nSrcLength){int nSrc;int nDst;int nChar;unsigned char nLeft=
+(0x23a+508-0x436);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1af2+1408-0x2072)){
+return-(0x1682+2669-0x20ee);}nSrc=(0xb29+6746-0x2583);nDst=(0x1d7c+1952-0x251c);
+while(nSrc<nSrcLength){nChar=nSrc&(0x7ab+1981-0xf61);if(nChar==
+(0x11df+1581-0x180c)){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>
+(0x9f8+2270-0x12d5))&&(nSrc==(nSrcLength-(0x559+6172-0x1d74)))){nDst++;}}else{*
+pDst=(*pSrc<<((0x20c+369-0x375)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst++;}
+pSrc++;nSrc++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst,
+UINT8 TP_FCS){SINT32 nLength=(0x770+6437-0x2095);SINT32 nDstLength=
+(0x23b8+157-0x2455);UINT8 buf[(0xfa1+4530-0x2053)]={(0x209+2996-0xdbd)};if(NULL
+==pDst){return-(0x3ec+8036-0x234f);}if(TP_FCS!=(0x13bb+3662-0x2209)){buf[
+(0x259+1578-0x883)]=(0x7f8+7062-0x238e);buf[(0x2297+610-0x24f8)]=TP_FCS;buf[
+(0x55f+5931-0x1c88)]=(0x259+5640-0x1861);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0x470+98-0x4cf));}else{buf[(0xaa5+16-0xab5)]=(0x3eb+1994-0xbb5);buf
+[(0xb1f+4130-0x1b40)]=(0x68c+2347-0xfb7);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0xe89+3414-0x1bdd));}return nDstLength;}unsigned long
+zUfiSms_ConvertAsciiToGsmDefault(const unsigned char*inputs,unsigned char*
+outputs,unsigned long len){unsigned long i=(0x1aff+2992-0x26af);unsigned long j=
+(0xad8+860-0xe34);unsigned long k=(0x974+3384-0x16ac);if(NULL==inputs||NULL==
+outputs){printf(
"\x73\x6d\x73\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73");
-return(0xe25+976-0x11f5);}for(i=(0x517+6090-0x1ce1);i<len;i++){j=inputs[i];if(
-g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x1ba1+134-0x1b28)){outputs[k]=
+return(0x65d+2208-0xefd);}for(i=(0x41+4559-0x1210);i<len;i++){j=inputs[i];if(
+g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x171b+3651-0x245f)){outputs[k]=
g_zUfiSms_AsciiToGsmdefaultTable[j];}else{outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0xcb9+6061-0x245e);k++;outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&(0x2af+1884-0x90c));}k++;}return k;}unsigned
- long zUfiSms_ConvertUcs2ToSpanish(const unsigned char*def,unsigned char*
-gsm_default,unsigned long len){unsigned long i=(0x31c+2442-0xca6);unsigned long
-k=(0x3d6+4181-0x142b);unsigned long p=(0x5a+4012-0x1006);unsigned long tmp=
-(0xab5+5879-0x21ac);unsigned long s1=(0x2275+207-0x2344),s2=(0xd52+5622-0x2348);
-unsigned long q=(0x420+4269-0x14cd);s1=sizeof(
+g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0xdd8+6263-0x2647);k++;outputs[k]=(
+g_zUfiSms_AsciiToGsmdefaultTable[j]&(0x1805+1019-0x1b01));}k++;}return k;}
+unsigned long zUfiSms_ConvertUcs2ToSpanish(const unsigned char*def,unsigned char
+*gsm_default,unsigned long len){unsigned long i=(0x162d+1779-0x1d20);unsigned
+long k=(0x1543+2494-0x1f01);unsigned long p=(0x16e3+2360-0x201b);unsigned long
+tmp=(0x44b+1836-0xb77);unsigned long s1=(0x1578+4308-0x264c),s2=
+(0xbb2+2041-0x13ab);unsigned long q=(0x824+1096-0xc6c);s1=sizeof(
zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0xf99+4764-0x2235)]);s2=sizeof(
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0x85a+33-0x87b)]);s2=sizeof(
Ucs2_To_Gsm7_SPANISH_Table_UCS)/sizeof(Ucs2_To_Gsm7_SPANISH_Table_UCS[
-(0x7e4+645-0xa69)]);for(i=(0x9a1+6832-0x2451);i<len;i++){if(def[i]==
-(0x311+2839-0xe28)){i++;if(Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]!=NON_GSM){
+(0x1751+3292-0x242d)]);for(i=(0x719+5952-0x1e59);i<len;i++){if(def[i]==
+(0x390+4614-0x1596)){i++;if(Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]!=NON_GSM){
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]==(0x1b90+2556-0x256c))
-){gsm_default[k]=(0x13d+3143-0xd64);k++;continue;}for(q=(0x53f+4498-0x16d1);q<s1
-;q++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0xc4a+3448-0x19c1)]){
-gsm_default[k]=(0x1381+2943-0x1ee5);k++;gsm_default[k]=
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x1850+3680-0x26b0)];break;}}}else{tmp
-=(def[i]<<(0x5c5+5690-0x1bf7))+def[i+(0x1eef+375-0x2065)];i++;if(tmp==8364){
-gsm_default[k]=(0xb13+3917-0x1a45);k++;gsm_default[k]=(0x128+7193-0x1cdc);k++;}
-for(p=(0x141c+4690-0x266e);p<s2;p++){if(tmp==Ucs2_To_Gsm7_SPANISH_Table_UCS[p][
-(0x11f8+4993-0x2578)]){gsm_default[k]=Ucs2_To_Gsm7_SPANISH_Table_UCS[p][
-(0x105c+5045-0x2411)];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=(0x9f3+1292-0xeff);unsigned long
-k=(0x1450+1609-0x1a99);unsigned long p=(0xe5f+3607-0x1c76);unsigned long tmp=
-(0x1924+3271-0x25eb);unsigned long s1=(0x225c+826-0x2596),s2=
-(0x17c9+3068-0x23c5);unsigned long q=(0xf6b+4050-0x1f3d);s1=sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x15c0+3267-0x2283)]);s2=sizeof(
+Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x7f3+6066-0x1f85)))
+{gsm_default[k]=(0x945+1247-0xe04);k++;continue;}for(q=(0xe9b+424-0x1043);q<s1;q
+++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0xc34+465-0xe04)]){
+gsm_default[k]=(0x475+8334-0x24e8);k++;gsm_default[k]=
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x12a0+2584-0x1cb8)];break;}}}else{tmp
+=(def[i]<<(0x394+4042-0x1356))+def[i+(0xa32+2488-0x13e9)];i++;if(tmp==
+(0x25d6+2848-0x104a)){gsm_default[k]=(0x57b+1180-0x9fc);k++;gsm_default[k]=
+(0x218b+811-0x2451);k++;}for(p=(0x47b+3369-0x11a4);p<s2;p++){if(tmp==
+Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0xe77+4393-0x1f9f)]){gsm_default[k]=
+Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0x13ec+1052-0x1808)];break;}}}k++;}
+gsm_default[k]='\0';return k;}unsigned long zUfiSms_ConvertUcs2ToPortuguese(
+const unsigned char*def,unsigned char*gsm_default,unsigned long len){unsigned
+long i=(0x2ca+9277-0x2707);unsigned long k=(0xb0b+3714-0x198d);unsigned long p=
+(0x1583+1394-0x1af5);unsigned long tmp=(0x937+4092-0x1933);unsigned long s1=
+(0x86d+261-0x972),s2=(0xc4a+4097-0x1c4b);unsigned long q=(0x1c36+2544-0x2626);s1
+=sizeof(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x1d32+2376-0x267a)]);s2=sizeof(
Ucs2_To_Gsm7_PORTUGUESE_Table_UCS)/sizeof(Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[
-(0xe8f+922-0x1229)]);for(i=(0x93b+366-0xaa9);i<len;i++){if(def[i]==
-(0x20d+4189-0x126a)){i++;if(Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]!=NON_GSM){
+(0x11c2+1002-0x15ac)]);for(i=(0xd77+62-0xdb5);i<len;i++){if(def[i]==
+(0x9b0+4827-0x1c8b)){i++;if(Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]!=NON_GSM){
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]==
-(0x3ed+3421-0x112a))){gsm_default[k]=(0x4f1+2544-0xec1);k++;continue;}for(q=
-(0x733+7662-0x2521);q<s1;q++){if(def[i]==
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x41c+4920-0x1753)]){gsm_default[k]
-=(0xb5c+1468-0x10fd);k++;gsm_default[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex
-[q][(0x3b3+3518-0x1171)];break;}}}else{tmp=(def[i]<<(0xef+6384-0x19d7))+def[i+
-(0x21a8+464-0x2377)];i++;if(tmp==(0x252c+281-0x599)){gsm_default[k]=
-(0x58a+8193-0x2570);k++;gsm_default[k]=(0x59c+7596-0x22e3);k++;continue;}for(p=
-(0x11e8+3777-0x20a9);p<s2;p++){if(tmp==Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][
-(0x47c+2877-0xfb8)]){gsm_default[k]=Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][
-(0x1740+662-0x19d6)];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=(0x111+4012-0x10bd);unsigned long
- k=(0x2aa+2686-0xd28);unsigned long p=(0x1c9b+1703-0x2342);unsigned long tmp=
-(0x9b3+4162-0x19f5);unsigned long s1=(0x6d3+5383-0x1bda),s2=(0x1633+691-0x18e6);
-unsigned long q=(0x160+9435-0x263b);s1=sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[
-(0xc77+6294-0x250d)]);s2=sizeof(UCS2_To_GSMDefault_Table_UCS2)/sizeof(
-UCS2_To_GSMDefault_Table_UCS2[(0x3da+8599-0x2571)]);for(i=(0xf88+4606-0x2186);i<
-len;i++){if(def[i]==(0x1697+3562-0x2481)){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]==
-(0xf52+5349-0x2417))){gsm_default[k]=(0x3c9+7129-0x1f82);k++;continue;}for(q=
-(0xf55+19-0xf68);q<s1;q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][
-(0x7cf+4810-0x1a98)]){gsm_default[k]=(0x197+4576-0x135c);k++;gsm_default[k]=
-zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0xc1f+3647-0x1a5e)];break;}}}else{tmp=(
-def[i]<<(0x932+829-0xc67))+def[i+(0x84+2470-0xa29)];i++;if(tmp==8364){
-gsm_default[k]=(0x17c6+3513-0x2564);k++;gsm_default[k]=(0x133d+1399-0x184f);k++;
-continue;}for(p=(0x95a+2609-0x138b);p<s2;p++){if(tmp==
-UCS2_To_GSMDefault_Table_UCS2[p][(0x3e6+4629-0x15fa)]){gsm_default[k]=
-UCS2_To_GSMDefault_Table_UCS2[p][(0x73f+4088-0x1737)];break;}}}k++;}gsm_default[
+(0x215+8205-0x2202))){gsm_default[k]=(0x5b1+5444-0x1ad5);k++;continue;}for(q=
+(0x17bd+1432-0x1d55);q<s1;q++){if(def[i]==
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x667+2481-0x1017)]){gsm_default[k]
+=(0x1bd0+2227-0x2468);k++;gsm_default[k]=
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x18d+7114-0x1d57)];break;}}}else{
+tmp=(def[i]<<(0x49b+3930-0x13ed))+def[i+(0x14c6+4351-0x25c4)];i++;if(tmp==8364){
+gsm_default[k]=(0x3ef+6068-0x1b88);k++;gsm_default[k]=(0x240+8676-0x23bf);k++;
+continue;}for(p=(0x1173+1068-0x159f);p<s2;p++){if(tmp==
+Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0xd4a+3110-0x196f)]){gsm_default[k]=
+Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x15b8+2987-0x2163)];break;}}}k++;}
+gsm_default[k]='\0';return k;}unsigned long zUfiSms_ConvertUcs2ToGsmDefault(
+const unsigned char*def,unsigned char*gsm_default,unsigned long len){unsigned
+long i=(0x1107+3374-0x1e35);unsigned long k=(0x1553+3869-0x2470);unsigned long p
+=(0xcd3+560-0xf03);unsigned long tmp=(0x1d75+2445-0x2702);unsigned long s1=
+(0x24f4+94-0x2552),s2=(0x2252+504-0x244a);unsigned long q=(0x719+2890-0x1263);s1
+=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x173c+104-0x17a4)]);s2=sizeof(
+UCS2_To_GSMDefault_Table_UCS2)/sizeof(UCS2_To_GSMDefault_Table_UCS2[
+(0xca+1961-0x873)]);for(i=(0xfec+1498-0x15c6);i<len;i++){if(def[i]==
+(0x18b4+1310-0x1dd2)){i++;if(UCS2_To_GSMDefault_Table_ASC[def[i]]!=NON_GSM){
+gsm_default[k]=UCS2_To_GSMDefault_Table_ASC[def[i]];k++;continue;}else if((
+UCS2_To_GSMDefault_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x1c21+948-0x1fb5))){
+gsm_default[k]=(0x170+3769-0x1009);k++;continue;}for(q=(0x1a5b+588-0x1ca7);q<s1;
+q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x11ba+3612-0x1fd5)]){
+gsm_default[k]=(0x10d7+4731-0x2337);k++;gsm_default[k]=
+zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0xe79+17-0xe8a)];break;}}}else{tmp=(def[
+i]<<(0x14a+6124-0x192e))+def[i+(0xcb1+2542-0x169e)];i++;if(tmp==
+(0x23e9+3040-0xf1d)){gsm_default[k]=(0x992+870-0xcdd);k++;gsm_default[k]=
+(0x26f+5136-0x161a);k++;continue;}for(p=(0x8b7+4019-0x186a);p<s2;p++){if(tmp==
+UCS2_To_GSMDefault_Table_UCS2[p][(0xf73+2939-0x1aed)]){gsm_default[k]=
+UCS2_To_GSMDefault_Table_UCS2[p][(0x253+5129-0x165c)];break;}}}k++;}gsm_default[
k]='\0';return k;}UINT8 zUfiSms_TsIntToBcd(const UINT8 i){return(UINT8)(((i%
-(0xbf6+1698-0x128e))+((i/(0x2454+279-0x2561))<<(0x289+1924-0xa09))));}void
+(0x6c5+7260-0x2317))+((i/(0x1177+2891-0x1cb8))<<(0x1416+953-0x17cb))));}void
zUfiSms_DecodeRelativeTime(UINT8 iValidTime,T_zUfiSms_TimeStamp*ptTimeStamp){
-uint32 i=(0x77f+1988-0xf43);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
-(0x390+8537-0x24e9),sizeof(wms_timestamp_s_type));if(iValidTime<
-(0xc33+1511-0x118a)){i=(iValidTime+(0xef9+1954-0x169a))*(0x54c+6940-0x2063);
-ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0xd2d+4779-0x1f9c)));
-ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0x16a+772-0x432)));}
-else if(iValidTime<(0x3a2+8663-0x24d2)){i=(iValidTime-(0x15a2+3023-0x20e2))*
-(0x2f2+5733-0x1939);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
-(0xa06+3563-0x17e5)+i/(0xa88+6178-0x226e)));ptTimeStamp->minute=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0x4d0+1573-0xab9)));}else if(iValidTime<
-(0x21ad+288-0x2208)){i=iValidTime-(0x7d8+2041-0xf2b);ptTimeStamp->month=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i/(0xc80+204-0xd2e)));ptTimeStamp->day=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0xe59+6066-0x25ed)));}else{i=(iValidTime-
-(0xe2b+682-0x1015))*(0x13a+9437-0x2610);ptTimeStamp->year=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i/(0x555+2704-0xe78)));ptTimeStamp->month=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)((i%(0x110d+3351-0x1cb7))/(0xc82+4634-0x1e7e)));
-ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0xde9+4969-0x1fe5))%
-(0xed6+1666-0x153a)));}}else{printf(
+uint32 i=(0x1e6+4350-0x12e4);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
+(0x12b+351-0x28a),sizeof(wms_timestamp_s_type));if(iValidTime<
+(0xb64+1443-0x1077)){i=(iValidTime+(0x1be8+1832-0x230f))*(0x2385+846-0x26ce);
+ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0x160+6220-0x1970)));
+ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0xe6+2167-0x921)));}
+else if(iValidTime<(0x1d99+149-0x1d87)){i=(iValidTime-(0xdd+3406-0xd9c))*
+(0x6dd+2678-0x1135);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
+(0x10a2+3595-0x1ea1)+i/(0x38a+2275-0xc31)));ptTimeStamp->minute=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0x1c78+1828-0x2360)));}else if(iValidTime<
+(0x1bb9+1900-0x2260)){i=iValidTime-(0x1c4c+286-0x1cc4);ptTimeStamp->month=(UINT8
+)zUfiSms_TsIntToBcd((UINT8)(i/(0xb32+5403-0x202f)));ptTimeStamp->day=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0xeb9+2126-0x16e9)));}else{i=(iValidTime-
+(0x6fc+368-0x7ac))*(0x1d6c+2068-0x2579);ptTimeStamp->year=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i/(0x1644+3273-0x21a0)));ptTimeStamp->month=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)((i%(0x6d3+4429-0x16b3))/(0x6eb+4385-0x17ee)));
+ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0x1667+2423-0x1e71))%
+(0x57c+377-0x6d7)));}}else{printf(
"\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=(0x3a9+6121-0x1b92);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}
-for(i=(0x1be3+227-0x1cc6);i<iLen;i++){pIntArray[i]=pCharArray[i]-
-((char)(0x999+690-0xc1b));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
+i=(0x12d5+4029-0x2292);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}
+for(i=(0xbbf+1454-0x116d);i<iLen;i++){pIntArray[i]=pCharArray[i]-
+((char)(0xc42+688-0xec2));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
T_zUfiSms_SubmitTpdu*ptSubmit,T_zUfiSms_ConcatInfo*ptConcatSms,
-T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0x7cd+7801-0x2646);if(ptConcatSms->
-total_msg>(0x1694+2438-0x2019)){g_zUfiSms_SendingSms.TP_UDHI=(0x352+2131-0xba4);
-g_zUfiSms_SendingSms.TP_UD[(0x4d4+5679-0x1b03)]=(0x8dc+7279-0x2546);
-g_zUfiSms_SendingSms.TP_UD[(0x20e7+567-0x231d)]=(0x1c01+885-0x1f71);
-g_zUfiSms_SendingSms.TP_UD[(0xcd1+558-0xefd)]=(0x711+6675-0x2121);
-g_zUfiSms_SendingSms.TP_UD[(0x7c3+4368-0x18d0)]=(char)ptDbSaveData->concat_info[
-(0x1267+368-0x13d7)]%(0xbdc+1274-0xfd7);g_zUfiSms_SendingSms.TP_UD[
-(0x4c7+5316-0x1987)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
-(0x1be9+2783-0x26c3)]=(char)ptConcatSms->current_sending+(0x1590+609-0x17f0);
-g_zUfiSms_SendingSms.TP_UD[(0xb7f+7033-0x26f2)]=(0x440+5448-0x1982);for(i=
-(0x37c+3350-0x1092);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD
-[i+(0xed4+5778-0x255f)]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.
-TP_UDLength=ptSubmit->user_data.sm_len+(0x2252+80-0x229b);}else{for(i=
-(0xc87+736-0xf67);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD[i
-]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.TP_UDLength=ptSubmit->
+T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0xc75+218-0xd4f);if(ptConcatSms->
+total_msg>(0x1172+1651-0x17e4)){g_zUfiSms_SendingSms.TP_UDHI=(0x14da+838-0x181f)
+;g_zUfiSms_SendingSms.TP_UD[(0x18ff+535-0x1b16)]=(0xf3a+3310-0x1c23);
+g_zUfiSms_SendingSms.TP_UD[(0x18b5+271-0x19c3)]=(0x62d+7999-0x2567);
+g_zUfiSms_SendingSms.TP_UD[(0x16b2+2206-0x1f4e)]=(0x565+6964-0x2096);
+g_zUfiSms_SendingSms.TP_UD[(0x85d+5272-0x1cf2)]=(char)ptDbSaveData->concat_info[
+(0x1096+1378-0x15f8)]%(0xc5f+5605-0x2145);g_zUfiSms_SendingSms.TP_UD[
+(0x1454+27-0x146b)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
+(0x727+4681-0x196b)]=(char)ptConcatSms->current_sending+(0x178+1410-0x6f9);
+g_zUfiSms_SendingSms.TP_UD[(0x4e8+8514-0x2624)]=(0x132c+2639-0x1d75);for(i=
+(0x90d+864-0xc6d);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD[i
++(0x11a+4465-0x1284)]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.
+TP_UDLength=ptSubmit->user_data.sm_len+(0x67a+5009-0x1a04);}else{for(i=
+(0x54+7575-0x1deb);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD[
+i]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.TP_UDLength=ptSubmit->
user_data.sm_len;}}void zUfiSms_FillGlobalTpudUcs2(T_zUfiSms_SubmitTpdu*ptSubmit
,T_zUfiSms_ConcatInfo*ptConcatSms,T_zUfiSms_DbStoreData*ptDbSaveData){if(
-ptConcatSms->total_msg>(0xfe1+1071-0x140f)){g_zUfiSms_SendingSms.TP_UDHI=
-(0x20a7+637-0x2323);g_zUfiSms_SendingSms.TP_UD[(0x1cff+518-0x1f05)]=
-(0x1d62+558-0x1f8b);g_zUfiSms_SendingSms.TP_UD[(0xd1f+1580-0x134a)]=
-(0x2d0+5053-0x1688);g_zUfiSms_SendingSms.TP_UD[(0x4f7+5941-0x1c2a)]=
-(0x382+2421-0xcf4);g_zUfiSms_SendingSms.TP_UD[(0xc5c+219-0xd34)]=(char)
-ptDbSaveData->concat_info[(0x1270+3015-0x1e37)]%(0xd4a+2959-0x17da);
-g_zUfiSms_SendingSms.TP_UD[(0xa7a+4083-0x1a69)]=(char)ptConcatSms->total_msg;
-g_zUfiSms_SendingSms.TP_UD[(0x981+928-0xd1c)]=(char)ptConcatSms->current_sending
-+(0x1787+3444-0x24fa);(void)Bytes2String(ptSubmit->user_data.sm_data,&
-g_zUfiSms_SendingSms.TP_UD[(0x1ec+8019-0x2139)],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)(0x61f+2843-0x10d9))&&x<((char)(0x40a+5735-0x1a0a))){x=(x-
-((char)(0x64d+6905-0x20e5)))+((char)(0x1835+807-0x1b1b));}return x;}unsigned
-char zUfiSms_Char2Dec(unsigned char x){unsigned char d=(0x2074+1004-0x2460);if(x
->=((char)(0xb4b+6594-0x24cc))&&x<((char)(0x6b0+4431-0x17b8))){d=(x-
-((char)(0x2039+1040-0x2408)))+(0x89c+1782-0xf88);}else{d=x-
-((char)(0x241f+287-0x250e));}return d;}unsigned char zUfiSms_Char2Byte(unsigned
-char a,unsigned char b){unsigned char data=(0x21f+5961-0x1968);unsigned char l=
-(0x432+6026-0x1bbc),h=(0x97a+7400-0x2662);a=zUfiSms_Low2High(a);b=
-zUfiSms_Low2High(b);h=zUfiSms_Char2Dec(a);l=zUfiSms_Char2Dec(b);data=h*
-(0xd87+59-0xdb2)+l;return data;}void zUfiSms_Str2Bytes(unsigned char*text,int
-text_len,unsigned char*data,int data_len){int i=(0x126+522-0x330);while(
-(0x92f+6180-0x2151)*i+(0x158a+2455-0x1f20)<text_len){data[i]=zUfiSms_Char2Byte(
-text[(0x161+7671-0x1f56)*i],text[(0xd4f+348-0xea9)*i+(0xfaf+4916-0x22e2)]);i++;}
-}int zUfiSms_SplitString(char*input,char***output,char cMatchChar){int src=
-(0x4c9+1488-0xa99);int dst=(0x787+4580-0x196b);int count=(0x7f8+2064-0x1008);int
- size=(0x684+7134-0x225a);char quoted=(0x18c+8391-0x2253);char**tmpout=NULL;*
+ptConcatSms->total_msg>(0x91a+4940-0x1c65)){g_zUfiSms_SendingSms.TP_UDHI=
+(0x10a5+2871-0x1bdb);g_zUfiSms_SendingSms.TP_UD[(0x3ea+8100-0x238e)]=
+(0x6c6+6654-0x20bf);g_zUfiSms_SendingSms.TP_UD[(0x1292+3316-0x1f85)]=
+(0x7b6+1396-0xd25);g_zUfiSms_SendingSms.TP_UD[(0xc56+3354-0x196e)]=
+(0x225f+665-0x24f5);g_zUfiSms_SendingSms.TP_UD[(0x1631+3563-0x2419)]=(char)
+ptDbSaveData->concat_info[(0xbb0+1604-0x11f4)]%(0xb4f+2745-0x1509);
+g_zUfiSms_SendingSms.TP_UD[(0xe12+4506-0x1fa8)]=(char)ptConcatSms->total_msg;
+g_zUfiSms_SendingSms.TP_UD[(0x22f2+748-0x25d9)]=(char)ptConcatSms->
+current_sending+(0x7b5+5073-0x1b85);(void)Bytes2String(ptSubmit->user_data.
+sm_data,&g_zUfiSms_SendingSms.TP_UD[(0xcf9+1892-0x1457)],ptSubmit->user_data.
+sm_len);}else{(void)Bytes2String(ptSubmit->user_data.sm_data,
+g_zUfiSms_SendingSms.TP_UD,ptSubmit->user_data.sm_len);}}unsigned char
+zUfiSms_Low2High(unsigned char x){if(x>=((char)(0x569+3151-0x1157))&&x<
+((char)(0x45f+6696-0x1e20))){x=(x-((char)(0xdb4+2822-0x1859)))+
+((char)(0xa5+4619-0x126f));}return x;}unsigned char zUfiSms_Char2Dec(unsigned
+char x){unsigned char d=(0x1ce4+1804-0x23f0);if(x>=((char)(0xbcb+535-0xda1))&&x<
+((char)(0x4ef+2652-0xf04))){d=(x-((char)(0xc93+5505-0x21d3)))+
+(0x1b9d+1612-0x21df);}else{d=x-((char)(0x671+6328-0x1ef9));}return d;}unsigned
+char zUfiSms_Char2Byte(unsigned char a,unsigned char b){unsigned char data=
+(0x147a+160-0x151a);unsigned char l=(0x3f2+3095-0x1009),h=(0x1103+1991-0x18ca);a
+=zUfiSms_Low2High(a);b=zUfiSms_Low2High(b);h=zUfiSms_Char2Dec(a);l=
+zUfiSms_Char2Dec(b);data=h*(0xe00+3092-0x1a04)+l;return data;}void
+zUfiSms_Str2Bytes(unsigned char*text,int text_len,unsigned char*data,int
+data_len){int i=(0x1ca+1077-0x5ff);while((0x1c6f+1199-0x211c)*i+
+(0xd19+5867-0x2403)<text_len){data[i]=zUfiSms_Char2Byte(text[(0xd3+3962-0x104b)*
+i],text[(0x1c8c+1682-0x231c)*i+(0x202f+452-0x21f2)]);i++;}}int
+zUfiSms_SplitString(char*input,char***output,char cMatchChar){int src=
+(0x17c4+3757-0x2671);int dst=(0x118a+3850-0x2094);int count=(0x2258+840-0x25a0);
+int size=(0x125+4277-0x11d2);char quoted=(0x96f+1346-0xeb1);char**tmpout=NULL;*
output=(char**)malloc(sizeof(char*)*size);if(NULL==*output){return-
-(0x571+579-0x7b3);}(*output)[count++]=input;for(src=dst=(0x157a+1208-0x1a32);
+(0x587+5852-0x1c62);}(*output)[count++]=input;for(src=dst=(0xd68+1996-0x1534);
input[src];){char cInputChar=input[src];if(!quoted&&cInputChar==cMatchChar){
-input[dst++]=(0x1364+4828-0x2640);while(input[++src]&&(int)isspace(input[src])){
-};if(count>=size){size+=(0x4c7+5461-0x1a0c);tmpout=(char**)realloc(*output,
-sizeof(char*)*size);if(NULL==tmpout){return-(0x1072+5482-0x25db);}*output=tmpout
-;}(*output)[count++]=input+dst;}else if(!quoted&&(cInputChar=='\''||cInputChar==
-((char)(0x43c+47-0x449)))){quoted=cInputChar;src++;}else if(cInputChar==quoted){
-quoted=(0x53f+1214-0x9fd);src++;}else{if(cInputChar=='\\'&"ed!='\''){src++;
-cInputChar=input[src];if(!cInputChar){free(*output);*output=NULL;return-
-(0x128b+471-0x1461);}}input[dst++]=cInputChar;src++;}}input[dst]=
-(0x197+3281-0xe68);if(quoted){free(*output);*output=NULL;return-
-(0x6b5+4555-0x187f);}return count;}int zUfiSms_atohex(char c){int result=
-(0xf5f+643-0x11e2);if(c>=((char)(0x825+109-0x862))&&c<=
-((char)(0x4e6+7253-0x2102))){result=c-((char)(0xaef+3640-0x18f7));}else if(c>=
-((char)(0x1a98+2110-0x2275))&&c<=((char)(0x5e1+1096-0x9c3))){result=(c-
-((char)(0x299+4436-0x138c)))+(0x782+1225-0xc41);}else if(c>=
-((char)(0x19ea+137-0x1a32))&&c<=((char)(0xe23+2059-0x15e8))){result=(c-
-((char)(0x826+1619-0xe38)))+(0xaeb+4577-0x1cc2);}else{at_print(LOG_DEBUG,
+input[dst++]=(0xa3f+3712-0x18bf);while(input[++src]&&(int)isspace(input[src])){}
+;if(count>=size){size+=(0x55+6469-0x198a);tmpout=(char**)realloc(*output,sizeof(
+char*)*size);if(NULL==tmpout){return-(0x16f9+886-0x1a6e);}*output=tmpout;}(*
+output)[count++]=input+dst;}else if(!quoted&&(cInputChar=='\''||cInputChar==
+((char)(0x30b+9103-0x2678)))){quoted=cInputChar;src++;}else if(cInputChar==
+quoted){quoted=(0x135f+2246-0x1c25);src++;}else{if(cInputChar=='\\'&"ed!=
+'\''){src++;cInputChar=input[src];if(!cInputChar){free(*output);*output=NULL;
+return-(0xcd1+1366-0x1226);}}input[dst++]=cInputChar;src++;}}input[dst]=
+(0x11a0+1409-0x1721);if(quoted){free(*output);*output=NULL;return-
+(0x584+738-0x865);}return count;}int zUfiSms_atohex(char c){int result=
+(0x332+6158-0x1b40);if(c>=((char)(0x65f+3948-0x159b))&&c<=
+((char)(0x1c47+570-0x1e48))){result=c-((char)(0x97a+4556-0x1b16));}else if(c>=
+((char)(0x13c9+4659-0x259b))&&c<=((char)(0x2eb+4685-0x14d2))){result=(c-
+((char)(0x845+2304-0x10e4)))+(0x2ca+7517-0x201d);}else if(c>=
+((char)(0xd28+3884-0x1c13))&&c<=((char)(0x1ab1+604-0x1cc7))){result=(c-
+((char)(0x1d66+2038-0x251b)))+(0x639+5488-0x1b9f);}else{at_print(LOG_DEBUG,
"\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=(0xbd1+3199-0x1850);int high=
-(0x6a7+6632-0x208f);if(in_ptr==NULL||out_ptr==NULL){printf(
+int iLength,unsigned char*out_ptr){int low=(0x1152+5326-0x2620);int high=
+(0x18ad+711-0x1b74);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>(0x879+5595-0x1e54)){low=in_ptr[iLength-
-(0x1750+2743-0x2206)]&(0x43c+495-0x61c);high=(in_ptr[iLength-
-(0x1241+5156-0x2664)]&(0x934+7502-0x2592))>>(0x2d0+5579-0x1897);out_ptr[
-(0x14f+4999-0x14d4)*iLength-(0x1f70+1241-0x2448)]=g_zUfiSms_DigAscMap[low];
-out_ptr[(0x122d+1387-0x1796)*iLength-(0x742+4958-0x1a9e)]=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=(0x1f91+1708-0x263d);unsigned int j=
-(0x100a+4229-0x208f);unsigned int k=(0xe72+4598-0x2068);unsigned int p=
-(0x5ff+89-0x658);unsigned int s=(0x1fc7+569-0x2200);s=sizeof(
+);return ZUFI_FAIL;}while(iLength>(0x819+6771-0x228c)){low=in_ptr[iLength-
+(0x284+126-0x301)]&(0x1c4f+373-0x1db5);high=(in_ptr[iLength-(0x149a+3082-0x20a3)
+]&(0xa36+2658-0x13a8))>>(0x8f9+5072-0x1cc5);out_ptr[(0xd1d+5177-0x2154)*iLength-
+(0xac+2311-0x9b2)]=g_zUfiSms_DigAscMap[low];out_ptr[(0x1527+1283-0x1a28)*iLength
+-(0x19c+3977-0x1123)]=g_zUfiSms_DigAscMap[high];iLength--;}return ZUFI_SUCC;}
+unsigned int zte_wms_convert_PORTUGUESE_To_UCS2(const unsigned char*gsmdef,
+unsigned char*ucs2,unsigned int len){unsigned int i=(0x17e2+54-0x1818);unsigned
+int j=(0x889+7035-0x2404);unsigned int k=(0xcc5+5294-0x2173);unsigned int p=
+(0x2b5+4319-0x1394);unsigned int s=(0x15f8+3914-0x2542);s=sizeof(
zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x667+603-0x8c2)]);for(i=
-(0xe87+5735-0x24ee);i<len;i++){j=gsmdef[i];if(j==(0xf94+3506-0x1d2b)){i++;for(p=
-(0x18df+3118-0x250d);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
-(0xba1+486-0xd87)]==gsmdef[i]){ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[
-p][(0x1e3c+1555-0x244e)]>>(0xb95+4625-0x1d9e);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x1013+3977-0x1f9b)]);break;}}}else
-{ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x157b+2952-0x20fb);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(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0xef7+5699-0x253a)]);for(i=
+(0x3c7+4873-0x16d0);i<len;i++){j=gsmdef[i];if(j==(0xf8f+1941-0x1709)){i++;for(p=
+(0x1f8+3319-0xeef);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
+(0x444+823-0x77b)]==gsmdef[i]){ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[
+p][(0x23f+4220-0x12ba)]>>(0x432+4420-0x156e);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0xe74+6050-0x2615)]);break;}}}else{
+ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0xd3c+1817-0x144d);k++;ucs2[k
+]=(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=
-(0xb1f+4684-0x1d6b);unsigned int j=(0xe0d+1604-0x1451);unsigned int k=
-(0x21ed+472-0x23c5);unsigned int p=(0x1cf+6926-0x1cdd);unsigned int s=
-(0x952+6747-0x23ad);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x42b+8112-0x23db)]);for(i=
-(0x420+6682-0x1e3a);i<len;i++){j=gsmdef[i];if(j==(0x258+6308-0x1ae1)){i++;for(p=
-(0x958+387-0xadb);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x464+7205-0x2089)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x21db+425-0x2383)]>>(0x1d80+1884-0x24d4);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x30c+1268-0x7ff)]);break;}}}else{ucs2[k
-]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x52d+2780-0x1001);k++;ucs2[k]=(
+(0x1e36+264-0x1f3e);unsigned int j=(0xf4f+2876-0x1a8b);unsigned int k=
+(0x1216+3989-0x21ab);unsigned int p=(0x8c8+1399-0xe3f);unsigned int s=
+(0x5cb+1418-0xb55);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x2149+1169-0x25da)]);for(i=
+(0x11dd+4640-0x23fd);i<len;i++){j=gsmdef[i];if(j==(0x171+184-0x20e)){i++;for(p=
+(0x2ac+2474-0xc56);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0xbfa+4953-0x1f53)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x8d3+2075-0x10ed)]>>(0x8a5+7129-0x2476);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x882+7107-0x2444)]);break;}}}else{ucs2[
+k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x88+5466-0x15da);k++;ucs2[k]=(
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=(0x2093+387-0x2216)
-;unsigned long j=(0xca+4854-0x13c0);unsigned long k=(0x1eb+3998-0x1189);unsigned
- long p=(0xa27+2449-0x13b8);unsigned long s=(0x1a69+2305-0x236a);unsigned long
-is_find=(0xfd2+3441-0x1d43);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof
-(zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x10dd+1220-0x15a1)]);for(i=
-(0x1323+1895-0x1a8a);i<len;i++){j=gsmdef[i];if(j==(0x1f59+1109-0x2393)){i++;for(
-p=(0xb8b+3054-0x1779);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x8e1+1166-0xd6f)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x150c+20-0x151f)]>>(0xc08+5904-0x2310);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0xd22+5473-0x2282)]);is_find=
-(0x163+1266-0x654);break;}}if(!is_find){at_print(LOG_DEBUG,
+gsmdef,unsigned char*ucs2,unsigned long len){unsigned long i=(0x1617+295-0x173e)
+;unsigned long j=(0x15dd+4385-0x26fe);unsigned long k=(0x51+3993-0xfea);unsigned
+ long p=(0x2454+612-0x26b8);unsigned long s=(0x397+5709-0x19e4);unsigned long
+is_find=(0x10f6+243-0x11e9);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof
+(zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x462+8629-0x2617)]);for(i=
+(0x1da4+1881-0x24fd);i<len;i++){j=gsmdef[i];if(j==(0x293+4202-0x12e2)){i++;for(p
+=(0x26d7+15-0x26e6);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0xccc+5546-0x2276)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x1805+1803-0x1f0f)]>>(0x466+4320-0x153e);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x12ed+2605-0x1d19)]);is_find=
+(0x19ec+3102-0x2609);break;}}if(!is_find){at_print(LOG_DEBUG,
"\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]>>(0x704+759-0x9f3);k
-++;ucs2[k]=(unsigned char)(zte_sms_GSMDefault_To_UCS2_Table[j]);}}else{ucs2[k]=
-zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x1862+3539-0x262d);k++;ucs2[k]=(unsigned
+,gsmdef[i]);i--;ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x1c4+4850-0x14ae)
+;k++;ucs2[k]=(unsigned char)(zte_sms_GSMDefault_To_UCS2_Table[j]);}}else{ucs2[k]
+=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x267+2933-0xdd4);k++;ucs2[k]=(unsigned
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[(0xe8+9206-0x24dc)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
-(0x10b+742-0x3f0)]={(0x1fad+229-0x2092)};UINT16 len=(0x25+7627-0x1df0);switch(
+ascii_content[(0x83d+3797-0x1710)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
+(0xbeb+6584-0x25a2)]={(0x33c+3546-0x1116)};UINT16 len=(0xf7+838-0x43d);switch(
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==
@@ -672,47 +668,47 @@
sms_len);break;}(void)zUfiSms_DispatchWtoi((char*)ascii_content,len,(char*)
out_content);}boolean zUfiSms_DecodeContent(char*msg_content,UINT16 sms_len,
boolean isEsc,char*out_content){boolean endEsc=FALSE;char*p=NULL;static char
-data[(0x8a9+662-0xb3e)+(0x152+7312-0x1d42)+(0x2da+2285-0xbc6)]={
-(0xff4+130-0x1076)};int len=(0x1692+1506-0x1c74);if(msg_content==NULL||
-out_content==NULL||sms_len>(0x1bff+2768-0x258f)||sms_len<(0x937+3880-0x185d)){
-return endEsc;}len=sms_len;memset(data,(0x4df+7878-0x23a5),(0x10a8+5115-0x2401))
-;p=data;if(isEsc){*p=(0xd82+2767-0x1836);p++;}zUfiSms_Str2Bytes((unsigned char*)
-msg_content,len,(unsigned char*)p,(0x11fa+1349-0x169f));if(p[len/
-(0x12f2+3193-0x1f69)-(0xc0d+3326-0x190a)]==(0x562+4278-0x15fd)){endEsc=TRUE;}
-zUfiSms_ConvertUcs2(data,len/(0x173+2025-0x95a)+(isEsc?(0x1262+954-0x161b):
-(0xcf8+3636-0x1b2c))-(endEsc?(0x5a1+3773-0x145d):(0x4d1+3711-0x1350)),
+data[(0x69c+514-0x89d)+(0x2f5+1858-0x997)+(0x1249+2692-0x1ccc)]={
+(0x1c3d+1719-0x22f4)};int len=(0x63+5757-0x16e0);if(msg_content==NULL||
+out_content==NULL||sms_len>(0x149d+1954-0x1aff)||sms_len<(0x458+1351-0x99d)){
+return endEsc;}len=sms_len;memset(data,(0x1909+286-0x1a27),(0x93b+5055-0x1c58));
+p=data;if(isEsc){*p=(0x45a+6890-0x1f29);p++;}zUfiSms_Str2Bytes((unsigned char*)
+msg_content,len,(unsigned char*)p,(0x1950+2694-0x2336));if(p[len/
+(0xfa9+3691-0x1e12)-(0x349+2322-0xc5a)]==(0xe6a+4434-0x1fa1)){endEsc=TRUE;}
+zUfiSms_ConvertUcs2(data,len/(0xc72+4557-0x1e3d)+(isEsc?(0x9d8+2727-0x147e):
+(0x1131+1030-0x1537))-(endEsc?(0x151d+2668-0x1f88):(0x848+7352-0x2500)),
out_content);return endEsc;}byte*zUfiSms_SmsiUtilitoa(uint32 v,byte*s,UINT16 r){
-byte buf[(0xc4a+1536-0x1229)],c;int n;n=sizeof(buf)-(0x1bfd+1661-0x2279);buf[n]=
-'\0';do{c=(byte)(v%r);if(n<=(0x17b3+653-0x1a40)){printf(
+byte buf[(0x403+8579-0x2565)],c;int n;n=sizeof(buf)-(0x6a+1083-0x4a4);buf[n]=
+'\0';do{c=(byte)(v%r);if(n<=(0x9a+5727-0x16f9)){printf(
"\x4f\x56\x45\x52\x46\x4c\x4f\x57\x20");break;}buf[--n]=(byte)((c>
-(0x5c+5321-0x151c))?c+((char)(0x895+3874-0x1776))-(0x188d+847-0x1bd2):c+
-((char)(0x793+5691-0x1d9e)));}while((v/=r)>(0x7dd+6634-0x21c7));while((*s++=buf[
-n++])!=(0xd9f+65-0xde0));return(s-(0x283+313-0x3bb));}byte*zUfiSms_SmsiAddrToStr
-(wms_address_s_type addr,byte*res_ptr,UINT8*type_of_addr){byte bcd_idx=
-(0x13ba+1257-0x18a3);UINT8 temp=(0x1caa+1408-0x222a);*type_of_addr=
-(0x2f1+5126-0x16f7);temp=(UINT8)((uint32)addr.number_type&(0x138d+1061-0x17ab));
-*type_of_addr=(UINT8)((*type_of_addr|temp)<<(0x1134+3782-0x1ff6));temp=(UINT8)((
-uint32)addr.number_plan&(0x922+3416-0x1673));*type_of_addr=*type_of_addr|temp;*
-type_of_addr=*type_of_addr|(0xd31+4128-0x1cd1);while(bcd_idx<addr.
-number_of_digits){if(addr.digits[bcd_idx]==(0x6e2+4109-0x16e5)){addr.digits[
-bcd_idx]=(0x649+3846-0x154f);}res_ptr=zUfiSms_SmsiUtilitoa((uint32)addr.digits[
-bcd_idx],res_ptr,(0xb2f+541-0xd3c));bcd_idx++;}return res_ptr;}byte*
+(0xa78+3046-0x1655))?c+((char)(0x106+9117-0x2462))-(0x161b+838-0x1957):c+
+((char)(0x1058+2394-0x1982)));}while((v/=r)>(0x6b1+7013-0x2216));while((*s++=buf
+[n++])!=(0x396+1656-0xa0e));return(s-(0x331+2638-0xd7e));}byte*
+zUfiSms_SmsiAddrToStr(wms_address_s_type addr,byte*res_ptr,UINT8*type_of_addr){
+byte bcd_idx=(0x4b7+7244-0x2103);UINT8 temp=(0x844+5563-0x1dff);*type_of_addr=
+(0xee2+1552-0x14f2);temp=(UINT8)((uint32)addr.number_type&(0x2108+671-0x23a0));*
+type_of_addr=(UINT8)((*type_of_addr|temp)<<(0x478+6365-0x1d51));temp=(UINT8)((
+uint32)addr.number_plan&(0x306+9226-0x2709));*type_of_addr=*type_of_addr|temp;*
+type_of_addr=*type_of_addr|(0x1694+1386-0x1b7e);while(bcd_idx<addr.
+number_of_digits){if(addr.digits[bcd_idx]==(0xd5f+3189-0x19ca)){addr.digits[
+bcd_idx]=(0xc23+4522-0x1dcd);}res_ptr=zUfiSms_SmsiUtilitoa((uint32)addr.digits[
+bcd_idx],res_ptr,(0x533+4077-0x1510));bcd_idx++;}return res_ptr;}byte*
zUfiSms_SmsiUtilitoaFill(word v,byte*rb_ptr){int n;byte c,*ptr;ptr=rb_ptr+
-(0xf94+5212-0x23ee);*ptr='\0';for(n=(0x396+34-0x3b8);n<(0xe8+2711-0xb7d);++n){c=
-(byte)(v%(0x1e4+6577-0x1b8b));v/=(0x9b+2817-0xb92);*--ptr=(c+
-((char)(0x1a97+2902-0x25bd)));}return rb_ptr+(0x1009+3680-0x1e67);}void
-zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<(0x2497+485-0x2672)){
+(0xd48+3337-0x1a4f);*ptr='\0';for(n=(0x205+2344-0xb2d);n<(0x206+7726-0x2032);++n
+){c=(byte)(v%(0x51c+7446-0x2228));v/=(0x8fa+3512-0x16a8);*--ptr=(c+
+((char)(0x1b92+1778-0x2254)));}return rb_ptr+(0x31a+8819-0x258b);}void
+zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<(0x1c73+1458-0x221b)){
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=(0x878+6886-0x235e);concat_8->seq_num--;
+T_zUfiSms_DbStoreData*db_data){int mux=(0x6dc+7182-0x22ea);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=(0x6c+7272-0x1cd3);db_data->concat_info[(0xbb6+3332-0x18ba)]
-=(0x905+3599-0x1615)*mux+concat_8->msg_ref;db_data->concat_info[
-(0x945+5323-0x1e0e)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX+
-(0x868+3373-0x1594);db_data->concat_info[(0x116f+5380-0x2672)]=concat_8->
-total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
-(0x25c+7084-0x1e07)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(concat_8->total_sm%
+db_data->concat_sms=(0x534+5820-0x1bef);db_data->concat_info[
+(0x18a0+2496-0x2260)]=(0xf41+2361-0x177b)*mux+concat_8->msg_ref;db_data->
+concat_info[(0x1185+4905-0x24ac)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX
++(0x625+1096-0xa6c);db_data->concat_info[(0xe3c+5363-0x232e)]=concat_8->total_sm
+-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
+(0x33b+1041-0x74b)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(concat_8->total_sm%
ZTE_WMS_CONCAT_SMS_COUNT_MAX);}static void zUfiSms_ParserLangSs(wms_udh_s_type*
user_data_header){if(user_data_header==NULL){return;}switch(user_data_header->u.
nat_lang_ss.nat_lang_id){case WMS_UDH_NAT_LANG_PORTUGUESE:g_zUfiSms_Language=
@@ -721,27 +717,27 @@
user_data_header->u.nat_lang_ss.nat_lang_id){case WMS_UDH_NAT_LANG_PORTUGUESE:
g_zUfiSms_Language=DCS_PORTUGUESE;break;default:break;}}static void
zUfiSms_ParseDeliverConcat16(T_zUfiSms_UdhConcat16*concat_16,
-T_zUfiSms_DbStoreData*db_data){int mux=(0x520+7141-0x2105);concat_16->seq_num--;
-db_data->concat_sms=(0x21b4+176-0x2263);
-#if (0x6a4+1292-0xbb0)
-db_data->concat_info[(0x105+81-0x156)]=concat_16->msg_ref;db_data->concat_info[
-(0x7a4+4708-0x1a07)]=concat_16->total_sm;db_data->concat_info[
-(0x1e65+706-0x2125)]=concat_16->seq_num;
+T_zUfiSms_DbStoreData*db_data){int mux=(0x30+901-0x3b5);concat_16->seq_num--;
+db_data->concat_sms=(0x1862+2737-0x2312);
+#if (0xd85+2316-0x1691)
+db_data->concat_info[(0x90b+1414-0xe91)]=concat_16->msg_ref;db_data->concat_info
+[(0x554+3200-0x11d3)]=concat_16->total_sm;db_data->concat_info[
+(0x3f9+1102-0x845)]=concat_16->seq_num;
#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[(0xd6f+2920-0x18d7)]=(0xbf9+1025-0xefb)*mux+concat_16->
-msg_ref;db_data->concat_info[(0x698+1159-0xb1d)]=concat_16->seq_num%
-ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xb97+4633-0x1daf);db_data->concat_info[
-(0x458+3770-0x1311)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
-ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0x1714+335-0x1862)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(
+db_data->concat_info[(0x1764+255-0x1863)]=(0xda1+5895-0x23a9)*mux+concat_16->
+msg_ref;db_data->concat_info[(0xa2f+3874-0x194f)]=concat_16->seq_num%
+ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x1dd+3420-0xf38);db_data->concat_info[
+(0x4c+6658-0x1a4d)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
+ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0x1333+1071-0x1761)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(
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=
-(0xe3f+3873-0x1d5f);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8),
-db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0xe4d+187-0xf07);
+(0x14ed+381-0x1669);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8),
+db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0x16f9+496-0x18e8);
zUfiSms_ParseDeliverConcat16(&(user_data_header->u.concat_16),db_data);break;
case WMS_UDH_NAT_LANG_SS:g_zUfiSms_IsLanguageShift=WMS_UDH_NAT_LANG_SS;
zUfiSms_ParserLangSs(user_data_header);break;case WMS_UDH_NAT_LANG_LS:
@@ -751,154 +747,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=(0x957+2189-0x11e4);int ind=(0x168+1037-0x575);if((
+WMS_GW_ALPHABET_MAX32;int i=(0x1c6+4131-0x11e9);int ind=(0x244a+80-0x249a);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,
-(0x9b+3141-0xce0),ZTE_WMS_ADDRESS_LEN_MAX+(0x116d+2061-0x1979));db_data->number[
-(0x2b2+4796-0x156e)]=((char)(0x810+6257-0x2056));for(i=(0x298+3271-0xf5f);i<
-address_ptr->number_of_digits;i++){if((0x18a+7470-0x1eae)==address_ptr->digits[i
-]){db_data->number[i+(0x13f+8913-0x240f)]=((char)(0x629+6088-0x1dc1));}else{
-db_data->number[i+(0xe4d+3964-0x1dc8)]=((char)(0x4dd+7364-0x2171))+address_ptr->
+(0x418+5105-0x1809),ZTE_WMS_ADDRESS_LEN_MAX+(0x868+4366-0x1975));db_data->number
+[(0x133+6141-0x1930)]=((char)(0x97a+2709-0x13e4));for(i=(0x19bc+667-0x1c57);i<
+address_ptr->number_of_digits;i++){if((0xaf7+6060-0x2299)==address_ptr->digits[i
+]){db_data->number[i+(0x454+3295-0x1132)]=((char)(0xb5d+3412-0x1881));}else{
+db_data->number[i+(0x751+7482-0x248a)]=((char)(0x1ee6+68-0x1efa))+address_ptr->
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[
-(0x36c+7690-0x2175)]),address_ptr->digits,address_ptr->number_of_digits);}else{
-for(i=(0x1139+1114-0x1593);i<address_ptr->number_of_digits;i++){if(
-(0x902+4791-0x1baf)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0x219+3557-0xfce));}else{db_data->number[i]=((char)(0x1cec+1340-0x21f8))
+(0xee9+5231-0x2357)]),address_ptr->digits,address_ptr->number_of_digits);}else{
+for(i=(0x19d2+2269-0x22af);i<address_ptr->number_of_digits;i++){if(
+(0x141b+1677-0x1a9e)==address_ptr->digits[i]){db_data->number[i]=
+((char)(0x231+5813-0x18b6));}else{db_data->number[i]=((char)(0xdef+6203-0x25fa))
+address_ptr->digits[i];}}}}(void)zUfiSms_UtilTimeStamp(ts_data_ptr->u.gw_pp.u.
deliver.timestamp,db_data->tp_scts,&db_data->julian_date);if(ts_data_ptr->u.
-gw_pp.u.deliver.user_data_header_present){db_data->tp_udhi=(0xa73+1188-0xf16);}
-else{db_data->tp_udhi=(0x174d+924-0x1ae9);}if(db_data->tp_udhi==
-(0x185b+1394-0x1dcc)){for(ind=(0x159+2996-0xd0d);ind<ts_data_ptr->u.gw_pp.u.
+gw_pp.u.deliver.user_data_header_present){db_data->tp_udhi=(0x12+1061-0x436);}
+else{db_data->tp_udhi=(0x2027+299-0x2152);}if(db_data->tp_udhi==
+(0xab5+4078-0x1aa2)){for(ind=(0x66a+5346-0x1b4c);ind<ts_data_ptr->u.gw_pp.u.
deliver.user_data.num_headers;ind++){result=zUfiSms_ParseUdhiData(&(ts_data_ptr
->u.gw_pp.u.deliver.user_data.headers[ind]),db_data);if(
-ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0x126d+4121-0x2285)]){printf(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0x1f8+3560-0xfdf)]){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[(0x5d5+5703-0x1c1b)],ZTE_WMS_CONCAT_SMS_COUNT_MAX);if(
+,db_data->concat_info[(0x1b11+628-0x1d84)],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)
-(0x1d94+1178-0x222d);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
-unsigned char)(0x19e5+1395-0x1f56);}else{printf(
+(0x2ac+6632-0x1c93);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
+unsigned char)(0x7cf+7985-0x26fe);}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=(0x22aa+932-0x264e);ind<ts_data_ptr->u.
-gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[(0x10bd+535-0x12d0)
-*ind]=((char)(0x1966+2545-0x2327));db_data->sms_content[(0x920+6007-0x2093)*ind+
-(0x1672+3854-0x257f)]=((char)(0x913+4640-0x1b03));db_data->sms_content[
-(0x8a4+6034-0x2032)*ind+(0x332+4791-0x15e7)]=g_zUfiSms_DigAscMap[((ts_data_ptr->
-u.gw_pp.u.deliver.user_data.sm_data[ind]&(0x3b4+5158-0x16ea))>>(0xba0+769-0xe9d)
-)];db_data->sms_content[(0x853+1563-0xe6a)*ind+(0x2b7+1437-0x851)]=
-g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_data[ind]&
-(0x34d+8992-0x265e))];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)
-(0x37+8497-0x2166);}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=(0xa78+1770-0x1162);int ind=(0x1513+4063-0x24f2);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((
+alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0x98f+7138-0x2571);ind<ts_data_ptr->u.
+gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[
+(0x1b86+2716-0x261e)*ind]=((char)(0x848+4811-0x1ae3));db_data->sms_content[
+(0x474+552-0x698)*ind+(0xbc1+1751-0x1297)]=((char)(0x1284+4134-0x227a));db_data
+->sms_content[(0xfc1+5836-0x2689)*ind+(0x237b+219-0x2454)]=g_zUfiSms_DigAscMap[(
+(ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_data[ind]&(0x76d+4573-0x185a))>>
+(0x1072+124-0x10ea))];db_data->sms_content[(0x177+2603-0xb9e)*ind+
+(0x883+1383-0xde7)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.
+user_data.sm_data[ind]&(0xce5+1886-0x1434))];db_data->alphabet=
+WMS_GW_ALPHABET_UCS2;}}else if(ts_data_ptr->u.gw_pp.u.deliver.dcs.alphabet==
+WMS_GW_ALPHABET_7_BIT_DEFAULT){result=zUfiSms_DispatchWtoi(ts_data_ptr->u.gw_pp.
+u.deliver.user_data.sm_data,ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_len,
+db_data->sms_content);db_data->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;db_data->
+tp_dcs=(unsigned char)(0x8ca+2687-0x1347);}return result;}int
+zUfiSms_FormatSubmitDbdata(T_zUfiSms_ClientTsData*ts_data_ptr,
+T_zUfiSms_DbStoreData*db_data){int result=ZUFI_SUCC;wms_address_s_type*
+address_ptr=NULL;wms_gw_alphabet_e_type tp_dcs=WMS_GW_ALPHABET_MAX32;int i=
+(0x395+6400-0x1c95);int ind=(0x2224+1013-0x2619);if((NULL==ts_data_ptr)||(NULL==
+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[
-(0xec+7126-0x1cc2)]=((char)(0x1534+385-0x168a));for(i=(0x703+6079-0x1ec2);i<
-address_ptr->number_of_digits;i++){if((0x377+6518-0x1ce3)==address_ptr->digits[i
-]){db_data->number[i+(0x889+4344-0x1980)]=((char)(0xff6+5626-0x25c0));}else{
-db_data->number[i+(0x63c+1717-0xcf0)]=((char)(0x8b6+4060-0x1862))+address_ptr->
-digits[i];}}}else{for(i=(0x755+2247-0x101c);i<address_ptr->number_of_digits;i++)
-{if((0x1552+3341-0x2255)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0xb94+3675-0x19bf));}else{db_data->number[i]=((char)(0x4e0+1199-0x95f))+
+(0xedd+4754-0x216f)]=((char)(0x18c9+2848-0x23be));for(i=(0x1866+1432-0x1dfe);i<
+address_ptr->number_of_digits;i++){if((0x1f68+1654-0x25d4)==address_ptr->digits[
+i]){db_data->number[i+(0x960+2226-0x1211)]=((char)(0x403+3861-0x12e8));}else{
+db_data->number[i+(0xc6+9542-0x260b)]=((char)(0x1692+506-0x185c))+address_ptr->
+digits[i];}}}else{for(i=(0x3b8+562-0x5ea);i<address_ptr->number_of_digits;i++){
+if((0x19fc+2622-0x2430)==address_ptr->digits[i]){db_data->number[i]=
+((char)(0x7f2+1602-0xe04));}else{db_data->number[i]=((char)(0xa7b+5734-0x20b1))+
address_ptr->digits[i];}}}tp_dcs=ts_data_ptr->u.gw_pp.u.submit.dcs.alphabet;
db_data->sms_class=ts_data_ptr->u.gw_pp.u.submit.dcs.msg_class;if(
WMS_GW_ALPHABET_8_BIT>=tp_dcs){db_data->tp_dcs=(unsigned char)
-(0x11da+5147-0x25f4);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
-unsigned char)(0x111c+4490-0x22a4);}else{printf(
+(0x1993+2291-0x2285);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
+unsigned char)(0x3df+7376-0x20ad);}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=
-(0x166+944-0x515);}else{db_data->tp_udhi=(0xb7b+4539-0x1d36);}if(db_data->
-tp_udhi==(0x369+3154-0xfba)){for(ind=(0xa94+2329-0x13ad);ind<ts_data_ptr->u.
+(0x1ae7+3063-0x26dd);}else{db_data->tp_udhi=(0x602+783-0x911);}if(db_data->
+tp_udhi==(0x1e8f+864-0x21ee)){for(ind=(0x1ba+9509-0x26df);ind<ts_data_ptr->u.
gw_pp.u.submit.user_data.num_headers;ind++){result=zUfiSms_ParseUdhiData(&(
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[(0x1900+3407-0x264e)]){printf(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0x28b+1769-0x973)]){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=(0xa9f+2730-0x1549);
+gw_pp.u.submit.dcs.alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0x41+5510-0x15c7);
ind<ts_data_ptr->u.gw_pp.u.submit.user_data.sm_len;ind++){db_data->sms_content[
-(0x620+5403-0x1b37)*ind]=((char)(0x16ed+1250-0x1b9f));db_data->sms_content[
-(0x887+6513-0x21f4)*ind+(0x6b3+5165-0x1adf)]=((char)(0x9ab+3213-0x1608));db_data
-->sms_content[(0x6bb+6740-0x210b)*ind+(0x1fa7+496-0x2195)]=g_zUfiSms_DigAscMap[(
-(ts_data_ptr->u.gw_pp.u.submit.user_data.sm_data[ind]&(0x19f8+1468-0x1ec4))>>
-(0x56a+4632-0x177e))];db_data->sms_content[(0x97+9288-0x24db)*ind+
-(0x1468+1838-0x1b93)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.submit.
-user_data.sm_data[ind]&(0xd8d+2423-0x16f5))];db_data->alphabet=
-WMS_GW_ALPHABET_UCS2;}}else if(ts_data_ptr->u.gw_pp.u.submit.dcs.alphabet==
+(0x1447+161-0x14e4)*ind]=((char)(0x463+2269-0xd10));db_data->sms_content[
+(0x99a+4825-0x1c6f)*ind+(0x53c+2093-0xd68)]=((char)(0x4fd+1611-0xb18));db_data->
+sms_content[(0x615+6165-0x1e26)*ind+(0x24f+2250-0xb17)]=g_zUfiSms_DigAscMap[((
+ts_data_ptr->u.gw_pp.u.submit.user_data.sm_data[ind]&(0x676+2362-0xec0))>>
+(0xf15+5893-0x2616))];db_data->sms_content[(0x14e6+2746-0x1f9c)*ind+
+(0x2c0+2560-0xcbd)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.submit.user_data
+.sm_data[ind]&(0x10d3+1218-0x1586))];db_data->alphabet=WMS_GW_ALPHABET_UCS2;}}
+else if(ts_data_ptr->u.gw_pp.u.submit.dcs.alphabet==
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)(0x37+85-0x8a);}return result;}int InvertNumbers(const
-char*pSrc,char*pDst,int nSrcLength){int nDstLength;char ch;int i=
-(0x870+893-0xbed);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x113f+1064-0x1567)){
-return-(0x1859+2228-0x210c);}nDstLength=nSrcLength;for(i=(0x125f+1655-0x18d6);i<
-nSrcLength;i+=(0x1fc+6211-0x1a3d)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
-nSrcLength&(0x8b4+1024-0xcb3)){*(pDst-(0x898+5798-0x1f3c))=
-((char)(0x2046+1143-0x2477));nDstLength++;}*pDst='\0';return nDstLength;}int
+tp_dcs=(unsigned char)(0xaf0+1710-0x119c);}return result;}int InvertNumbers(
+const char*pSrc,char*pDst,int nSrcLength){int nDstLength;char ch;int i=
+(0x415+8740-0x2639);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x10bb+2585-0x1ad4)){
+return-(0x178f+2081-0x1faf);}nDstLength=nSrcLength;for(i=(0x542+2046-0xd40);i<
+nSrcLength;i+=(0x2013+19-0x2024)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
+nSrcLength&(0x132+6166-0x1947)){*(pDst-(0x1753+1762-0x1e33))=
+((char)(0x401+6311-0x1c62));nDstLength++;}*pDst='\0';return nDstLength;}int
code_is_gsm7(const SMS_PARAM*pSrc,unsigned char buf[],int nLength){if(pSrc->
-TP_UDHI==(0x184c+687-0x1afa)){buf[(0x226+6634-0x1c0d)]=(unsigned char)nLength;
-buf[(0x114d+861-0x14a6)]=(unsigned char)pSrc->TP_UD[(0x690+5741-0x1cfd)];buf[
-(0x2444+252-0x253b)]=(0x16f9+2568-0x2101);buf[(0x1b7d+1057-0x1f98)]=(unsigned
-char)pSrc->TP_UD[(0x18c4+1675-0x1f4d)];buf[(0xde9+1174-0x1278)]=(unsigned char)
-pSrc->TP_UD[(0x1564+3481-0x22fa)];buf[(0x96f+6621-0x2344)]=(unsigned char)pSrc->
-TP_UD[(0x1da9+2061-0x25b2)];buf[(0x1da5+460-0x1f68)]=(unsigned char)pSrc->TP_UD[
-(0x3d2+2499-0xd90)];buf[(0xb39+1433-0x10c8)]=(unsigned char)pSrc->TP_UD[
-(0x74f+318-0x886)];buf[(0xee1+292-0xffb)]=(unsigned char)(buf[
-(0x1775+3996-0x2707)]<<(0x11db+1441-0x177b));nLength=nLength-(0x1e51+782-0x2158)
-;nLength=Encode7bit(&(pSrc->TP_UD[(0x7cd+3404-0x1511)]),&buf[(0xc51+1646-0x12b4)
-],nLength+(0xc7d+5987-0x23df))+(0xf43+2129-0x1790)+(0xd4d+3620-0x1b6b);
-#if (0x167+3267-0xe2a)
-nLength+=(0x24a+3513-0x1001);
+TP_UDHI==(0x19df+3128-0x2616)){buf[(0x7f0+1423-0xd7c)]=(unsigned char)nLength;
+buf[(0x18e4+1976-0x2098)]=(unsigned char)pSrc->TP_UD[(0x1513+2117-0x1d58)];buf[
+(0x14ef+1678-0x1b78)]=(0x1cd0+1724-0x238c);buf[(0xca9+738-0xf85)]=(unsigned char
+)pSrc->TP_UD[(0xdb0+2770-0x1880)];buf[(0x150a+1915-0x1c7e)]=(unsigned char)pSrc
+->TP_UD[(0x12+1832-0x737)];buf[(0x5e3+1061-0xa00)]=(unsigned char)pSrc->TP_UD[
+(0x1028+4904-0x234c)];buf[(0x18ab+1661-0x1f1f)]=(unsigned char)pSrc->TP_UD[
+(0x10f6+1907-0x1864)];buf[(0x13fd+1498-0x19cd)]=(unsigned char)pSrc->TP_UD[
+(0x196+8229-0x21b4)];buf[(0x9c9+1310-0xedd)]=(unsigned char)(buf[
+(0x17c2+2698-0x2242)]<<(0x2a0+2359-0xbd6));nLength=nLength-(0x4ba+2037-0xca8);
+nLength=Encode7bit(&(pSrc->TP_UD[(0x1687+969-0x1a48)]),&buf[(0x12aa+1615-0x18ee)
+],nLength+(0xb96+4559-0x1d64))+(0x14dd+1068-0x1905)+(0xa28+4744-0x1caa);
+#if (0x1853+1130-0x1cbd)
+nLength+=(0x7b6+7023-0x2323);
#endif
-}else{nLength=pSrc->TP_UDLength;buf[(0xa8a+1903-0x11f6)]=nLength;nLength=
-Encode7bit(pSrc->TP_UD,&buf[(0x16e1+748-0x19c9)],nLength+(0x14a2+2314-0x1dab))+
-(0xa1f+7262-0x2679);}at_print(LOG_DEBUG,
+}else{nLength=pSrc->TP_UDLength;buf[(0x14b9+4085-0x24ab)]=nLength;nLength=
+Encode7bit(pSrc->TP_UD,&buf[(0xff0+818-0x131e)],nLength+(0x870+1904-0xfdf))+
+(0xb14+3819-0x19fb);}at_print(LOG_DEBUG,
"\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==(0x235c+171-0x2406)){buf[
-(0x925+1307-0xe3d)]=(unsigned char)nLength;buf[(0x149f+3349-0x21b0)]=(unsigned
-char)pSrc->TP_UD[(0x1e8f+1338-0x23c9)];buf[(0x16ab+559-0x18d5)]=
-(0xa39+1629-0x1096);buf[(0x698+7215-0x22c1)]=(unsigned char)pSrc->TP_UD[
-(0xc1f+5027-0x1fc0)];buf[(0x1f9+4682-0x143c)]=(unsigned char)pSrc->TP_UD[
-(0x476+6298-0x1d0d)];buf[(0x1fc5+1370-0x2517)]=(unsigned char)pSrc->TP_UD[
-(0x1e04+43-0x1e2b)];buf[(0xbd6+4578-0x1daf)]=(unsigned char)pSrc->TP_UD[
-(0xb17+2374-0x1458)];buf[(0xad3+2198-0x1366)]=(unsigned char)(EncodeUcs2(&(pSrc
-->TP_UD[(0xc8+659-0x355)]),&buf[(0xfd4+3794-0x1e9c)],nLength-(0x1f2f+558-0x2157)
-)+(0x2a4+8187-0x2299));nLength=buf[(0xd10+5415-0x2234)]+(0x251+4101-0x1252);}
-else{buf[(0x1f56+581-0x2198)]=EncodeUcs2(pSrc->TP_UD,&buf[(0x1406+2846-0x1f20)],
-nLength);nLength=buf[(0x10a2+4965-0x2404)]+(0x42+4309-0x1113);}return nLength;}
-int Encode8bit(const char*pSrc,unsigned char*pDst,int nSrcLength){if(pSrc==NULL
-||pDst==NULL||nSrcLength<(0xff3+5290-0x249d)){return-(0xa58+377-0xbd0);}memcpy(
-pDst,pSrc,nSrcLength);return nSrcLength;}int EncodePdu_Submit(const SMS_PARAM*
-pSrc,char*pDst){int nLength=(0x502+205-0x5cf);int nDstLength=
-(0x1012+5603-0x25f5);unsigned char buf[(0xf9b+4434-0x1fed)]={
-(0x1321+2111-0x1b60)};char tmpSCA[(0xccb+1453-0x1254)]={(0x12f2+2838-0x1e08)};
-int check_udl=(0x9b9+6701-0x23e6);memset(tmpSCA,(0x892+4835-0x1b75),sizeof(
-tmpSCA));if(pSrc==NULL||pDst==NULL){return-(0x20b9+1307-0x25d3);}
-#if (0xd57+2375-0x169d)
+strlen(pSrc->TP_UD);if(pSrc->TP_UDHI==(0x36c+1294-0x879)){buf[
+(0x9c7+6985-0x250d)]=(unsigned char)nLength;buf[(0xaba+4621-0x1cc3)]=(unsigned
+char)pSrc->TP_UD[(0xfed+2263-0x18c4)];buf[(0x237+8391-0x22f9)]=
+(0x764+3422-0x14c2);buf[(0x10a5+476-0x127b)]=(unsigned char)pSrc->TP_UD[
+(0x6e9+2792-0x11cf)];buf[(0x766+4576-0x193f)]=(unsigned char)pSrc->TP_UD[
+(0x894+6186-0x20bb)];buf[(0xe15+2345-0x1736)]=(unsigned char)pSrc->TP_UD[
+(0x359+6816-0x1df5)];buf[(0x418+766-0x70d)]=(unsigned char)pSrc->TP_UD[
+(0x13d8+4905-0x26fc)];buf[(0x1334+4662-0x2567)]=(unsigned char)(EncodeUcs2(&(
+pSrc->TP_UD[(0x9f9+598-0xc49)]),&buf[(0x12+3933-0xf65)],nLength-
+(0x281+401-0x40c))+(0x474+2770-0xf40));nLength=buf[(0x1a5f+2896-0x25ac)]+
+(0xc1+8151-0x2094);}else{buf[(0x145c+4320-0x2539)]=EncodeUcs2(pSrc->TP_UD,&buf[
+(0x6a3+1082-0xad9)],nLength);nLength=buf[(0x1eac+879-0x2218)]+
+(0x99d+5660-0x1fb5);}return nLength;}int Encode8bit(const char*pSrc,unsigned
+char*pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<
+(0xe64+1652-0x14d8)){return-(0xe60+2359-0x1796);}memcpy(pDst,pSrc,nSrcLength);
+return nSrcLength;}int EncodePdu_Submit(const SMS_PARAM*pSrc,char*pDst){int
+nLength=(0x12e7+3986-0x2279);int nDstLength=(0x8c1+4571-0x1a9c);unsigned char
+buf[(0x99b+5691-0x1ed6)]={(0xba+6406-0x19c0)};char tmpSCA[(0x12c6+463-0x1471)]={
+(0x394+1389-0x901)};int check_udl=(0x128b+129-0x130c);memset(tmpSCA,
+(0x476+4359-0x157d),sizeof(tmpSCA));if(pSrc==NULL||pDst==NULL){return-
+(0x14c5+3340-0x21d0);}
+#if (0x1cab+2225-0x255b)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x20\x45\x6e\x63\x6f\x64\x65\x50\x64\x75\x5f\x53\x75\x62\x6d\x69\x74\x20\x6d\x61\x6b\x65\x20\x70\x64\x75\x20\x64\x61\x74\x61" "\n"
);printf(
@@ -909,392 +906,393 @@
"\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[(0xb38+1236-0x100c)]=(char)(((nLength)&
-(0xc37+2521-0x160f))==(0xe59+5612-0x2445)?(nLength):nLength+(0x1895+873-0x1bfd))
-/(0x230+7443-0x1f41)+(0x765+6898-0x2256);buf[(0xc5c+1311-0x117a)]=
-(0x570+904-0x877);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)-(0x199a+2171-0x2214));
-if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",(0x1f8+5211-0x164f)))){memset(tmpSCA,
-(0xe4f+5682-0x2481),sizeof(tmpSCA));nLength=nLength-(0xc34+1509-0x1218);
-#if (0x795+4695-0x19eb)
-nLength=nLength-(0x51f+4462-0x168c);strncpy(tmpSCA,&(pSrc->SCA[
-(0x9c5+3763-0x1876)]),sizeof(tmpSCA)-(0x1df5+1000-0x21dc));
+nLength=strlen(pSrc->SCA);buf[(0x218+7401-0x1f01)]=(char)(((nLength)&
+(0x220d+52-0x2240))==(0x19a0+2821-0x24a5)?(nLength):nLength+(0x16c3+1868-0x1e0e)
+)/(0xa27+2010-0x11ff)+(0x924+1069-0xd50);buf[(0x198c+1358-0x1ed9)]=
+(0x794+3965-0x1690);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)-(0x104f+5699-0x2691)
+);if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",(0xc67+5995-0x23ce)))){memset(tmpSCA
+,(0x12f6+1108-0x174a),sizeof(tmpSCA));nLength=nLength-(0x1268+2490-0x1c21);
+#if (0x2cf+8055-0x2245)
+nLength=nLength-(0x1994+2274-0x2275);strncpy(tmpSCA,&(pSrc->SCA[
+(0xcbc+1379-0x121d)]),sizeof(tmpSCA)-(0x66c+7256-0x22c3));
#else
-tmpSCA[(0xf01+2644-0x1955)]=((char)(0xc23+880-0xf68));strcpy(&(tmpSCA[
-(0x3fc+8104-0x23a3)]),&(pSrc->SCA[(0xd31+3387-0x1a6a)]));
+tmpSCA[(0x11c+3162-0xd76)]=((char)(0x17ef+2337-0x20e5));strcpy(&(tmpSCA[
+(0xbe1+2847-0x16ff)]),&(pSrc->SCA[(0xf6d+5111-0x2362)]));
#endif
-buf[(0x304+5295-0x17b3)]=(char)((nLength&(0x620+5371-0x1b1a))==
-(0x82f+7153-0x2420)?nLength:nLength+(0x117+1527-0x70d))/(0x1048+4748-0x22d2)+
-(0x1802+1080-0x1c39);buf[(0x11a7+2019-0x1989)]=(0x12a6+217-0x12ee);}else if(
-((char)(0x317+646-0x572))==pSrc->SCA[(0x166+6091-0x1931)]){memset(tmpSCA,
-(0x820+98-0x882),sizeof(tmpSCA));
-#if (0x8b2+2063-0x10c0)
-nLength=nLength-(0xd68+2405-0x16cc);strncpy(tmpSCA,&(pSrc->SCA[
-(0x8e6+7393-0x25c6)]),sizeof(tmpSCA)-(0x18+8554-0x2181));
+buf[(0x933+7431-0x263a)]=(char)((nLength&(0x18d4+2366-0x2211))==
+(0xb72+2653-0x15cf)?nLength:nLength+(0x488+3086-0x1095))/(0x14e4+317-0x161f)+
+(0x7fd+4377-0x1915);buf[(0x8c6+3361-0x15e6)]=(0x5da+8075-0x24d4);}else if(
+((char)(0x11a6+3587-0x1f7e))==pSrc->SCA[(0x16a6+649-0x192f)]){memset(tmpSCA,
+(0x16f+6244-0x19d3),sizeof(tmpSCA));
+#if (0x1fb4+911-0x2342)
+nLength=nLength-(0x1299+3360-0x1fb8);strncpy(tmpSCA,&(pSrc->SCA[
+(0xe54+1234-0x1325)]),sizeof(tmpSCA)-(0x15f4+2751-0x20b2));
#else
strcpy(tmpSCA,pSrc->SCA);
#endif
-buf[(0x817+6836-0x22cb)]=(char)((nLength&(0xcdc+1612-0x1327))==
-(0x1476+4440-0x25ce)?(nLength):nLength+(0x1d91+1591-0x23c7))/(0x458+763-0x751)+
-(0xa04+3959-0x197a);buf[(0x1100+143-0x118e)]=(0x2a8+8338-0x22a9);}
-#if (0x1327+1514-0x1910)
+buf[(0x1f11+51-0x1f44)]=(char)((nLength&(0x1732+527-0x1940))==
+(0x1c5+8747-0x23f0)?(nLength):nLength+(0x8b2+5704-0x1ef9))/(0x1996+1702-0x203a)+
+(0x1d79+1455-0x2327);buf[(0xabd+5258-0x1f46)]=(0x1cd+9328-0x25ac);}
+#if (0x105+499-0x2f7)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x70\x64\x73\x74\x32\x3a\x25\x73" "\n",
pDst);
#endif
-if(nLength<(0x44f+3442-0x11c0)||nLength>=sizeof(tmpSCA))return-
-(0x10af+1139-0x1521);nDstLength=Bytes2String(buf,pDst,(0x1b3d+368-0x1cab));
+if(nLength<(0xda8+4334-0x1e95)||nLength>=sizeof(tmpSCA))return-
+(0x1774+2103-0x1faa);nDstLength=Bytes2String(buf,pDst,(0x8af+1344-0xded));
nDstLength+=InvertNumbers(tmpSCA,&pDst[nDstLength],nLength);
-#if (0x138a+2738-0x1e3b)
+#if (0x591+2147-0xdf3)
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[(0x97c+4516-0x1b20)]==((char)(0xff4+5011-0x235c))){nLength=strlen(&
-(pSrc->TPA[(0xd81+5538-0x2322)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
-TP_UDHI==(0x79+6815-0x1b18)){if(pSrc->TP_SRR==(0x7d2+3148-0x141e)){buf[
-(0x16eb+1907-0x1e5e)]=(0x7d6+1164-0xc51);}if(pSrc->TP_SRR==(0x1bd8+1922-0x2359))
-{buf[(0x6c5+2063-0xed4)]=(0x1848+1763-0x1efa);}}if(pSrc->TP_UDHI==
-(0x692+4915-0x19c4)){if(pSrc->TP_SRR==(0x91c+4869-0x1c21)){buf[
-(0x164b+2172-0x1ec7)]=(0x1379+1918-0x1aa6);}if(pSrc->TP_SRR==(0x363+3718-0x11e8)
-){buf[(0x1833+958-0x1bf1)]=(0xe43+5537-0x2373);}}buf[(0x24c+5305-0x1704)]=
-(0xfd+3232-0xd9d);buf[(0x5a9+3434-0x1311)]=(char)nLength;if(pSrc->TPA[
-(0x7b2+3729-0x1643)]==((char)(0x2532+300-0x2633))){buf[(0x735+4345-0x182b)]=
-(0x5f7+3235-0x1209);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
-(0x37+5187-0x1476));nDstLength+=InvertNumbers(&(pSrc->TPA[(0xa07+1376-0xf66)]),&
-pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
-(0xfc9+2418-0x1937)))){buf[(0x15bb+1443-0x1b5c)]=(char)nLength-
-(0x1983+2659-0x23e4);buf[(0x17a0+2554-0x2197)]=(0xd42+4191-0x1d10);nDstLength+=
-Bytes2String(buf,&pDst[nDstLength],(0x873+6074-0x2029));nDstLength+=
-InvertNumbers(&(pSrc->TPA[(0x248+8599-0x23dd)]),&pDst[nDstLength],nLength-
-(0x6c+4909-0x1397));}else{buf[(0x728+978-0xaf7)]=(0x1a2b+773-0x1caf);nDstLength
-+=Bytes2String(buf,&pDst[nDstLength],(0x5+8968-0x2309));nDstLength+=
-InvertNumbers(pSrc->TPA,&pDst[nDstLength],nLength);}
-#if (0x4ab+5331-0x197d)
+if(pSrc->TPA[(0x5f3+2865-0x1124)]==((char)(0x1efb+2028-0x26bc))){nLength=strlen(
+&(pSrc->TPA[(0x23c+189-0x2f8)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
+TP_UDHI==(0x15c8+2434-0x1f4a)){if(pSrc->TP_SRR==(0x4a0+7636-0x2274)){buf[
+(0x1347+27-0x1362)]=(0xa3a+724-0xcfd);}if(pSrc->TP_SRR==(0x113d+5483-0x26a7)){
+buf[(0xcb5+4210-0x1d27)]=(0x1b4+8350-0x2221);}}if(pSrc->TP_UDHI==
+(0x610+2825-0x1118)){if(pSrc->TP_SRR==(0x2df+2156-0xb4b)){buf[
+(0x12d4+296-0x13fc)]=(0xa50+3286-0x16d5);}if(pSrc->TP_SRR==(0x1dca+739-0x20ac)){
+buf[(0x1d8c+2345-0x26b5)]=(0x19bb+1411-0x1ecd);}}buf[(0xe4b+3953-0x1dbb)]=
+(0x6a0+3786-0x156a);buf[(0xaf9+6657-0x24f8)]=(char)nLength;if(pSrc->TPA[
+(0x4f5+5177-0x192e)]==((char)(0x11d3+3908-0x20ec))){buf[(0xe35+6272-0x26b2)]=
+(0x368+6791-0x1d5e);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
+(0x516+7676-0x230e));nDstLength+=InvertNumbers(&(pSrc->TPA[(0x803+7164-0x23fe)])
+,&pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
+(0x8f6+5531-0x1e8d)))){buf[(0x80+8237-0x20ab)]=(char)nLength-(0x9d9+3024-0x15a7)
+;buf[(0xe77+2777-0x194d)]=(0x7bc+5563-0x1ce6);nDstLength+=Bytes2String(buf,&pDst
+[nDstLength],(0x5a0+8285-0x25f9));nDstLength+=InvertNumbers(&(pSrc->TPA[
+(0x551+6559-0x1eee)]),&pDst[nDstLength],nLength-(0x989+7218-0x25b9));}else{buf[
+(0x373+3789-0x123d)]=(0xa1d+7115-0x2567);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0x11e2+2809-0x1cd7));nDstLength+=InvertNumbers(pSrc->TPA,&pDst[
+nDstLength],nLength);}
+#if (0x10d3+4794-0x238c)
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[(0x743+5807-0x1df2)]=pSrc->TP_PID;buf[
-(0x374+5349-0x1858)]=pSrc->TP_DCS;buf[(0xf0b+1739-0x15d4)]=pSrc->TP_VP;if(pSrc->
+nLength=(int)pSrc->TP_UDLength;buf[(0xda8+1807-0x14b7)]=pSrc->TP_PID;buf[
+(0x3db+6579-0x1d8d)]=pSrc->TP_DCS;buf[(0x11f+5914-0x1837)]=pSrc->TP_VP;if(pSrc->
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==(0x162c+1428-0x1bbf)){buf[(0xcda+5983-0x2436)]=(
-unsigned char)nLength;buf[(0x163c+462-0x1806)]=(unsigned char)pSrc->TP_UD[
-(0x14ac+4043-0x2477)];buf[(0xf20+4296-0x1fe3)]=(0xe7+7128-0x1cbf);buf[
-(0x1513+1427-0x1aa0)]=(unsigned char)pSrc->TP_UD[(0x22+6270-0x189e)];buf[
-(0x51b+7022-0x2082)]=(unsigned char)pSrc->TP_UD[(0x23c+4458-0x13a3)];buf[
-(0x8e3+7140-0x24bf)]=(unsigned char)pSrc->TP_UD[(0xbd8+272-0xce4)];buf[
-(0x893+4764-0x1b26)]=(unsigned char)pSrc->TP_UD[(0x16e1+3366-0x2402)];if(nLength
--(0x28b+6495-0x1be4)<=(0x8ad+4120-0x18c5)||nLength-(0x1b0a+980-0x1ed8)>=sizeof(
-buf)-(0xc0c+3635-0x1a35))return-(0x93+806-0x3b8);buf[(0x136a+4732-0x25e3)]=(
-unsigned char)(Encode8bit(&(pSrc->TP_UD[(0xc05+434-0xdb1)]),&buf[
-(0x31+5676-0x1653)],(unsigned short)(nLength-(0xd9c+3992-0x1d2e)))+
-(0x211c+166-0x21bc));nLength=buf[(0x451+7043-0x1fd1)]+(0x110+2317-0xa19);}else{
-if(nLength<=(0x1a6+7004-0x1d02)||nLength>=sizeof(buf)-(0x15ec+3078-0x21ee))
-return-(0xc6c+2561-0x166c);buf[(0x694+5446-0x1bd7)]=Encode8bit(pSrc->TP_UD,&buf[
-(0x980+2525-0x1359)],nLength);nLength=buf[(0x42b+2179-0xcab)]+
-(0x2125+962-0x24e3);}}check_udl=nLength-(0xb29+3018-0x16ef);nDstLength+=
+TP_UD);if(pSrc->TP_UDHI==(0x4b+1336-0x582)){buf[(0x458+382-0x5d3)]=(unsigned
+char)nLength;buf[(0x1235+506-0x142b)]=(unsigned char)pSrc->TP_UD[
+(0x18fc+2450-0x228e)];buf[(0x1876+658-0x1b03)]=(0x78a+2142-0xfe8);buf[
+(0xb53+3616-0x196d)]=(unsigned char)pSrc->TP_UD[(0xb11+377-0xc88)];buf[
+(0x244+9164-0x2609)]=(unsigned char)pSrc->TP_UD[(0x69b+8182-0x268e)];buf[
+(0xac3+7141-0x26a0)]=(unsigned char)pSrc->TP_UD[(0x1b6f+2346-0x2495)];buf[
+(0x555+1248-0xa2c)]=(unsigned char)pSrc->TP_UD[(0x94+4060-0x106b)];if(nLength-
+(0x1293+3204-0x1f11)<=(0xde8+831-0x1127)||nLength-(0x494+1665-0xb0f)>=sizeof(buf
+)-(0x50d+8086-0x2499))return-(0xcf4+78-0xd41);buf[(0x13b+9170-0x250a)]=(unsigned
+ char)(Encode8bit(&(pSrc->TP_UD[(0x13a+8407-0x220b)]),&buf[(0x60b+3920-0x1551)],
+(unsigned short)(nLength-(0x5bf+3334-0x12bf)))+(0x131d+1051-0x1732));nLength=buf
+[(0x6eb+2578-0x10fa)]+(0x1e84+2159-0x26ef);}else{if(nLength<=
+(0x116a+5428-0x269e)||nLength>=sizeof(buf)-(0x117d+1490-0x174b))return-
+(0x478+1505-0xa58);buf[(0x2e1+1244-0x7ba)]=Encode8bit(pSrc->TP_UD,&buf[
+(0x1cc8+1546-0x22ce)],nLength);nLength=buf[(0x1363+2436-0x1ce4)]+
+(0x11c+3700-0xf8c);}}check_udl=nLength-(0x29b+796-0x5b3);nDstLength+=
Bytes2String(buf,&pDst[nDstLength],nLength);sc_cfg_set(NV_CHECK_UDL,"");if(
-check_udl>(0x8cc+6323-0x20f3)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");}
-#if (0x1b8+8465-0x22c8)
+check_udl>(0x1435+147-0x143c)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");}
+#if (0xa60+6272-0x22df)
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 (0x1684+601-0x18dc)
+#if (0xd49+3335-0x1a4f)
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<(0x83a+5392-0x1d4a)){return-(0x184b+2617-0x2283);}nSrc=
-(0x5dd+6814-0x207b);nDst=(0xa4b+1727-0x110a);nByte=(0xccc+3237-0x1971);nLeft=
-(0x1a6d+368-0x1bdd);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
-(0xe69+6132-0x25de);nLeft=*pSrc>>((0x1d0+3677-0x1026)-nByte);pDst++;nDst++;nByte
-++;if(nByte==(0x5ea+6515-0x1f56)){*pDst=nLeft;pDst++;nDst++;nByte=
-(0x3e1+5461-0x1936);nLeft=(0xff9+3506-0x1dab);}pSrc++;nSrc++;}*pDst='\0';return
+==NULL||nSrcLength<(0x1873+3196-0x24ef)){return-(0x1371+2514-0x1d42);}nSrc=
+(0xc71+5042-0x2023);nDst=(0x7a4+2584-0x11bc);nByte=(0x755+3919-0x16a4);nLeft=
+(0x867+5820-0x1f23);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
+(0x174+4811-0x13c0);nLeft=*pSrc>>((0xe47+5180-0x227c)-nByte);pDst++;nDst++;nByte
+++;if(nByte==(0x1f45+1533-0x253b)){*pDst=nLeft;pDst++;nDst++;nByte=
+(0x2560+236-0x264c);nLeft=(0x181+6561-0x1b22);}pSrc++;nSrc++;}*pDst='\0';return
nDst;}int DecodePushPdu(const char*pSrcPdu,SMS_PARAM*pDst){int nDstLength=
-(0x179+1754-0x853);unsigned char tmp=(0x5dd+2604-0x1009);int ud_length=
-(0x7c0+1511-0xda7);unsigned char buf[(0x166d+618-0x17d7)]={(0x57c+1378-0xade)};
-char temp_num[(0x275+1492-0x7e5)]={(0x719+1358-0xc67)};unsigned char first_octet
-=(0x12d7+3800-0x21af);unsigned char udhl=(0x40b+6488-0x1d63);unsigned int
-halftmp=(0x1487+3626-0x22b1);char tp_ra[(0xb41+5417-0x2067)]={
-(0x1b56+1039-0x1f65)};int tmplen=(0x52c+5076-0x1900);unsigned char IEIDL;int
-pushType=(0x43d+5613-0x1a2a);const char*pSrc=pSrcPdu;if(pSrcPdu==NULL||pDst==
-NULL){printf(
+(0x12+6692-0x1a36);unsigned char tmp=(0x19f+7748-0x1fe3);int ud_length=
+(0x17eb+1691-0x1e86);unsigned char buf[(0xb48+4216-0x1ac0)]={(0xa9d+4410-0x1bd7)
+};char temp_num[(0x13ef+1891-0x1aee)]={(0xde1+1058-0x1203)};unsigned char
+first_octet=(0xc4+8628-0x2278);unsigned char udhl=(0x120b+4877-0x2518);unsigned
+int halftmp=(0x123d+2629-0x1c82);char tp_ra[(0x29+6626-0x1a08)]={
+(0x9a6+190-0xa64)};int tmplen=(0x461+2456-0xdf9);unsigned char IEIDL;int
+pushType=(0xba6+534-0xdbc);const char*pSrc=pSrcPdu;if(pSrcPdu==NULL||pDst==NULL)
+{printf(
"\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-(0x1865+951-0x1c1b);}String2Bytes(pSrc,&tmp,(0x367+3762-0x1217));
+);return-(0x13e6+4378-0x24ff);}String2Bytes(pSrc,&tmp,(0x430+3516-0x11ea));
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==(0x65f+4771-0x1902)){pSrc+=(0x1a5b+2507-0x2424);}else{tmp=(tmp-
-(0xa7a+1442-0x101b))*(0xc1f+4268-0x1cc9);pSrc+=(0xd42+1346-0x1280);if(tmp>
-(0x6dc+7549-0x2439)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x134+156-0x1b0));tmp=
-(0x91f+2702-0x138d);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=tmp;}
-String2Bytes(pSrc,&tmp,(0x1282+610-0x14e2));first_octet=tmp;pSrc+=
-(0x11d1+2704-0x1c5f);String2Bytes(pSrc,&tmp,(0x10b6+1878-0x180a));halftmp=tmp;if
-(tmp&(0x15c+8223-0x217a))tmp+=(0x258c+254-0x2689);pSrc+=(0xfa5+274-0x10b5);
-memset(tp_ra,(0x335+2829-0xe42),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
-(0x80+7801-0x1ef7));pSrc+=(0x977+4993-0x1cf6);if((tp_ra[(0x1615+2524-0x1ff1)]&
-(0xac5+5025-0x1e16))==(0x17c5+881-0x1ae6)){char tempra[(0x1c8c+2423-0x2583)];
-char acAsc[(0x13af+4954-0x2689)];if(halftmp>=(0x1fdc+1332-0x2502)){halftmp=(tmp/
-(0xb0d+2778-0x15e5))/(0x1c0c+653-0x1e92)+(tmp/(0x11dc+2365-0x1b17));}else{
-halftmp=tmp/(0x316+2862-0xe42);}memset(tempra,(0x13ec+2750-0x1eaa),sizeof(tempra
-));memcpy(tempra,pSrc,tmp);memset(acAsc,(0x1f20+1727-0x25df),sizeof(acAsc));
-nDstLength=String2Bytes(tempra,buf,halftmp&(0x89d+3359-0x15b5)?(int)halftmp*
-(0x17ba+3162-0x240d)/(0x10f9+4860-0x23f1)+(0x13fa+2581-0x1e0d):(int)halftmp*
-(0xae1+5721-0x2133)/(0x3fc+4972-0x1764));halftmp=Decode7bit(buf,acAsc,nDstLength
-);memset(pDst->TPA,(0x31+7228-0x1c6d),sizeof(pDst->TPA));if(halftmp>
-(0x1c37+229-0x1cfc)){memcpy(pDst->TPA,acAsc,(0x352+7937-0x2233));tmp=
-(0x562+3425-0x12a3);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
-(0x1fb+5324-0x16a7)){SerializeNumbers_sms(pSrc,pDst->TPA,(0x316+8883-0x25a9));}
-else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0xd36+2818-0x1838)]&
-(0xd1d+6583-0x2643))==(0x17e4+74-0x179d)){memset(temp_num,(0x1696+761-0x198f),
-sizeof(temp_num));if(pDst->TPA[(0x885+4743-0x1b0c)]!=
-((char)(0x154c+3931-0x247c))){snprintf(temp_num,sizeof(temp_num),
-"\x25\x73\x25\x73","\x2b",pDst->TPA);if(strlen(temp_num)>(0xbdd+1666-0x123f)){
-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,(0xe30+6157-0x263b));pSrc+=
-(0x19c4+1292-0x1ece);String2Bytes(pSrc,(unsigned char*)&pDst->TP_DCS,
-(0xca+340-0x21c));pSrc+=(0x79d+5834-0x1e65);SerializeNumbers_sms(pSrc,pDst->
-TP_SCTS,(0x9e3+2982-0x157b));pSrc+=(0x16b0+1417-0x1c2b);String2Bytes(pSrc,&tmp,
-(0x4b2+6687-0x1ecf));pSrc+=(0xf06+1056-0x1324);memset(pDst->TP_UD,
-(0x53b+5736-0x1ba3),sizeof(pDst->TP_UD));at_print(LOG_DEBUG,
+,tmp);if(tmp==(0x705+7229-0x2342)){pSrc+=(0x1984+3202-0x2604);}else{tmp=(tmp-
+(0x114d+3219-0x1ddf))*(0xaa4+104-0xb0a);pSrc+=(0x9ef+2244-0x12af);if(tmp>
+(0x2b3+5946-0x19cd)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x60a+2330-0xf04));tmp
+=(0xac1+6532-0x2425);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=tmp;}
+String2Bytes(pSrc,&tmp,(0xd52+344-0xea8));first_octet=tmp;pSrc+=
+(0x6bd+8054-0x2631);String2Bytes(pSrc,&tmp,(0x16f9+933-0x1a9c));halftmp=tmp;if(
+tmp&(0x1539+293-0x165d))tmp+=(0x40+8361-0x20e8);pSrc+=(0x2232+1181-0x26cd);
+memset(tp_ra,(0xe3a+1935-0x15c9),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
+(0xa18+4504-0x1bae));pSrc+=(0xdc0+4620-0x1fca);if((tp_ra[(0xe8f+3700-0x1d03)]&
+(0x1936+474-0x1ac0))==(0x178d+3820-0x2629)){char tempra[(0x619+1884-0xcf5)];char
+ acAsc[(0x1c0+9586-0x26b2)];if(halftmp>=(0x255+6005-0x19bc)){halftmp=(tmp/
+(0x2451+54-0x2485))/(0x5b9+3347-0x12c5)+(tmp/(0xd71+1355-0x12ba));}else{halftmp=
+tmp/(0x491+4606-0x168d);}memset(tempra,(0x5c9+6428-0x1ee5),sizeof(tempra));
+memcpy(tempra,pSrc,tmp);memset(acAsc,(0x872+5561-0x1e2b),sizeof(acAsc));
+nDstLength=String2Bytes(tempra,buf,halftmp&(0x13b+5096-0x151c)?(int)halftmp*
+(0x3c2+4487-0x1542)/(0x2105+891-0x247c)+(0x1806+3495-0x25ab):(int)halftmp*
+(0x5ac+2372-0xee9)/(0x76a+2522-0x1140));halftmp=Decode7bit(buf,acAsc,nDstLength)
+;memset(pDst->TPA,(0x19ff+887-0x1d76),sizeof(pDst->TPA));if(halftmp>
+(0x8f3+5890-0x1fd5)){memcpy(pDst->TPA,acAsc,(0x122f+27-0x122a));tmp=
+(0x1fb+5057-0x159c);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
+(0x135a+2975-0x1ed9)){SerializeNumbers_sms(pSrc,pDst->TPA,(0x9ad+6082-0x214f));}
+else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0x4c3+935-0x86a)]&
+(0x2158+1560-0x26df))==(0xb65+2287-0x13c3)){memset(temp_num,(0xf33+4296-0x1ffb),
+sizeof(temp_num));if(pDst->TPA[(0x784+6347-0x204f)]!=((char)(0x834+2293-0x10fe))
+){snprintf(temp_num,sizeof(temp_num),"\x25\x73\x25\x73","\x2b",pDst->TPA);if(
+strlen(temp_num)>(0xb16+5395-0x2009)){snprintf(pDst->TPA,sizeof(pDst->TPA),
+"\x25\x33\x32\x73",temp_num);}else{snprintf(pDst->TPA,sizeof(pDst->TPA),
+"\x25\x73",temp_num);}}}}pSrc+=tmp;String2Bytes(pSrc,(unsigned char*)&pDst->
+TP_PID,(0xd8d+3934-0x1ce9));pSrc+=(0x13ca+3451-0x2143);String2Bytes(pSrc,(
+unsigned char*)&pDst->TP_DCS,(0x11d9+2122-0x1a21));pSrc+=(0xdca+1643-0x1433);
+SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0x10f0+1805-0x17ef));pSrc+=
+(0xc47+6869-0x270e);String2Bytes(pSrc,&tmp,(0x20c+9005-0x2537));pSrc+=
+(0x106c+2194-0x18fc);memset(pDst->TP_UD,(0x21b0+1172-0x2644),sizeof(pDst->TP_UD)
+);at_print(LOG_DEBUG,
"\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&(0xbcc+521-0xd95)){const char*temp=pSrc;unsigned
+,first_octet);if(first_octet&(0x1e5+7145-0x1d8e)){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,(0x227+2477-0xbd2));temp+=
-(0x13c4+3796-0x2296);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0x1701+3084-0x230b)
-);at_print(LOG_DEBUG,
+SMS_NO_PUSH;String2Bytes(temp,&udhl,(0x13f4+2090-0x1c1c));temp+=
+(0x172f+2323-0x2040);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0xb22+3163-0x177b))
+;at_print(LOG_DEBUG,
"\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==(0x26c+6957-0x1d94)){temp+=(0x1b08+1815-0x221d)*
-tmplen+(0x16d0+2151-0x1f35);tmplen=String2Bytes(temp,&DestPort1,
-(0x2074+41-0x209b));at_print(LOG_DEBUG,
+,pDst->TP_IEI);if(pDst->TP_IEI==(0x16a6+1093-0x1ae6)){temp+=(0x1278+197-0x133b)*
+tmplen+(0xc1d+831-0xf5a);tmplen=String2Bytes(temp,&DestPort1,
+(0x1892+2417-0x2201));at_print(LOG_DEBUG,
"\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+=(0x18cf+309-0x1a02)*tmplen;tmplen=String2Bytes(temp,&DestPort2
-,(0xf44+3750-0x1de8));at_print(LOG_DEBUG,
+,DestPort1);temp+=(0xce4+906-0x106c)*tmplen;tmplen=String2Bytes(temp,&DestPort2,
+(0x2b9+944-0x667));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==(0x10a+9541-0x2644))&&((DestPort2==
-(0x201b+880-0x2307))||(DestPort2==(0x1d6f+2154-0x2554)))){pushType=SMS_PUSH;}}if
-(SMS_PUSH!=pushType){return pushType;}temp=pSrc+udhl*(0x2e2+8218-0x22fa)+
-(0xd5+1575-0x6f8);tmplen=String2Bytes(temp,&pduType,(0x337+2237-0xbf2));if(
-pduType==(0x9a5+473-0xb78)){pushType=SMS_PUSH;temp+=(0xd6f+919-0x1102);tmplen=
-String2Bytes(temp,&pduType,(0x557+5623-0x1b4c));if(pduType==(0x114+8739-0x2273))
-{pushType=SMS_NOTIFICATION;}else{temp+=(0x328+6831-0x1dd3);tmplen=String2Bytes(
-temp,&pduType,(0x321+823-0x656));if((pduType==(0x2261+535-0x23b6))||(pduType==
-(0x1c8+7470-0x1e40))){pushType=SMS_BOOTSTRAP;}}}if((pDst->TP_IEI==
-(0x69b+710-0x95d))||(pDst->TP_IEI==(0x133+8012-0x207a))||(pDst->TP_IEI==
-(0x4f3+503-0x6e2))){temp=pSrc+(0xb03+3634-0x1931);tmplen=String2Bytes(temp,&
-IEIDL,(0x98a+60-0x9c4));if(IEIDL==(udhl-(0x77c+7137-0x235b))){}else{temp+=
-(0x1807+1795-0x1f08)*(0x1d61+1840-0x248b);tmplen=String2Bytes(temp,&udhLen,
-(0x417+6219-0x1c60));if(udhLen==(0x90d+5588-0x1ede)){temp+=(0x36a+2710-0xdfe)*
-tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x1133+1917-0x18ae));pDst->TP_ReferNum
-=RefNum1;temp+=(0xd6a+155-0xe03)*tmplen;tmplen=String2Bytes(temp,&pDst->
-TP_AllPieceNum,(0x68c+1600-0xcca));temp+=(0x16f4+3818-0x25dc)*tmplen;tmplen=
-String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x49+4157-0x1084));temp+=
-(0x20e9+140-0x2173)*tmplen;}else if(udhLen==(0xc94+4308-0x1d64)){temp+=
-(0x1493+3999-0x2430)*tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x138+67-0x179));
-temp+=(0x516+8245-0x2549)*tmplen;tmplen=String2Bytes(temp,&RefNum2,
-(0x387+5238-0x17fb));int ReferNum=RefNum2+RefNum1*(0x110d+4620-0x2219);pDst->
-TP_ReferNum=ReferNum;temp+=(0x653+5233-0x1ac2)*tmplen;tmplen=String2Bytes(temp,&
-pDst->TP_AllPieceNum,(0xb04+113-0xb73));temp+=(0xb7a+6948-0x269c)*tmplen;tmplen=
-String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x1983+300-0x1aad));temp+=
-(0xd4a+6448-0x2678)*tmplen;}}}at_print(LOG_DEBUG,
+,DestPort2);if((DestPort1==(0x390+3597-0x1192))&&((DestPort2==
+(0xbd4+4435-0x1ca3))||(DestPort2==(0x12e7+766-0x1560)))){pushType=SMS_PUSH;}}if(
+SMS_PUSH!=pushType){return pushType;}temp=pSrc+udhl*(0x1f33+1117-0x238e)+
+(0xfab+598-0x11fd);tmplen=String2Bytes(temp,&pduType,(0xad2+4375-0x1be7));if(
+pduType==(0x1632+737-0x190d)){pushType=SMS_PUSH;temp+=(0x134a+1543-0x194d);
+tmplen=String2Bytes(temp,&pduType,(0xaa9+5292-0x1f53));if(pduType==
+(0x89c+1333-0xd0d)){pushType=SMS_NOTIFICATION;}else{temp+=(0x1d19+150-0x1dab);
+tmplen=String2Bytes(temp,&pduType,(0x259c+284-0x26b6));if((pduType==
+(0xa4b+1594-0xfc3))||(pduType==(0xe5+7133-0x1c0c))){pushType=SMS_BOOTSTRAP;}}}if
+((pDst->TP_IEI==(0x878+5832-0x1f3c))||(pDst->TP_IEI==(0x15ad+1097-0x19f1))||(
+pDst->TP_IEI==(0x24d4+449-0x268d))){temp=pSrc+(0x1bbd+1711-0x2268);tmplen=
+String2Bytes(temp,&IEIDL,(0x1923+246-0x1a17));if(IEIDL==(udhl-
+(0xdf1+3695-0x1c5e))){}else{temp+=(0x969+4064-0x1947)*(0xa45+2823-0x1546);tmplen
+=String2Bytes(temp,&udhLen,(0x462+7006-0x1fbe));if(udhLen==(0xae2+2169-0x1358)){
+temp+=(0x719+6212-0x1f5b)*tmplen;tmplen=String2Bytes(temp,&RefNum1,
+(0x115b+4343-0x2250));pDst->TP_ReferNum=RefNum1;temp+=(0x685+5248-0x1b03)*tmplen
+;tmplen=String2Bytes(temp,&pDst->TP_AllPieceNum,(0x1be7+1154-0x2067));temp+=
+(0x1ec9+374-0x203d)*tmplen;tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,
+(0x5ec+6349-0x1eb7));temp+=(0x1495+3216-0x2123)*tmplen;}else if(udhLen==
+(0x13cc+3479-0x215f)){temp+=(0x295+3417-0xfec)*tmplen;tmplen=String2Bytes(temp,&
+RefNum1,(0x32d+3254-0xfe1));temp+=(0x7ac+120-0x822)*tmplen;tmplen=String2Bytes(
+temp,&RefNum2,(0xd66+525-0xf71));int ReferNum=RefNum2+RefNum1*
+(0x1a7+7785-0x1f10);pDst->TP_ReferNum=ReferNum;temp+=(0x1620+4336-0x270e)*tmplen
+;tmplen=String2Bytes(temp,&pDst->TP_AllPieceNum,(0x109+8765-0x2344));temp+=
+(0x1f49+1833-0x2670)*tmplen;tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,
+(0x20d8+1283-0x25d9));temp+=(0x1328+2267-0x1c01)*tmplen;}}}at_print(LOG_DEBUG,
"\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*(0x1bd3+1712-0x2281)+
-(0xa8b+5401-0x1f9e);tmplen=String2Bytes(temp,&wspLen,(0x101d+2635-0x1a66));temp=
-temp+wspLen*(0x1338+4566-0x250c)+(0x17c4+1753-0x1e9b);}else{temp=pSrc+udhl*
-(0x81f+5122-0x1c1f)+(0x1ac8+2927-0x2635);}nDstLength=((strlen(temp)<sizeof(pDst
-->TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0x596+2-0x597)));memcpy(pDst->TP_UD
-,temp,nDstLength);at_print(LOG_DEBUG,
+SMS_NOTIFICATION==pushType){temp=pSrc+udhl*(0xc21+607-0xe7e)+
+(0x1407+1236-0x18d5);tmplen=String2Bytes(temp,&wspLen,(0x9e6+7338-0x268e));temp=
+temp+wspLen*(0x2c4+7655-0x20a9)+(0xc0f+3166-0x186b);}else{temp=pSrc+udhl*
+(0x2f1+5-0x2f4)+(0x14f9+3316-0x21eb);}nDstLength=((strlen(temp)<sizeof(pDst->
+TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0x4a2+4285-0x155e)));memcpy(pDst->
+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=(0x11ea+5385-0x26f3);if(pSrc
-==NULL||pDst==NULL||nSrcLength<(0x1a57+2417-0x23c8)){return-(0xcf1+3349-0x1a05);
-}nDstLength=nSrcLength;for(i=(0x116d+2384-0x1abd);i<nSrcLength;i+=
-(0x300+4875-0x1609)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-
-(0x121f+2539-0x1c09))==((char)(0x1dcb+2271-0x2664))){pDst--;nDstLength--;}*pDst=
+*pDst,int nSrcLength){int nDstLength;char ch;int i=(0x997+7087-0x2546);if(pSrc==
+NULL||pDst==NULL||nSrcLength<(0x7e1+4584-0x19c9)){return-(0x1fd+5123-0x15ff);}
+nDstLength=nSrcLength;for(i=(0x656+1118-0xab4);i<nSrcLength;i+=
+(0xd84+2465-0x1723)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-
+(0x880+7506-0x25d1))==((char)(0x3c6+6067-0x1b33))){pDst--;nDstLength--;}*pDst=
'\0';return nDstLength;}UINT16 wms_ts_pack_gw_7_bit_chars(const UINT8*in,UINT16
-in_len,UINT16 shift,UINT16 out_len_max,UINT8*out){UINT16 i=(0x12c7+4466-0x2439);
-UINT16 pos=(0x188+6385-0x1a79);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+in_len,UINT16 shift,UINT16 out_len_max,UINT8*out){UINT16 i=(0x10f7+752-0x13e7);
+UINT16 pos=(0x19ff+2307-0x2302);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
"\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(0x3a7+1104-0x7f7);}shift%=(0x2319+953-0x26cb);if(shift!=
-(0x56b+8381-0x2628)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0xe10+3566-0x1bf7)-
-shift)+(0xaed+6214-0x2332);if(shift==(0x5c3+4129-0x15dd)){shift=
-(0xc17+5376-0x2117);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[
-pos]=in[i]>>shift;if(i+(0x15a6+3373-0x22d2)<in_len){out[pos]|=(UINT8)(in[i+
-(0x585+2916-0x10e8)]<<((0x80c+5713-0x1e56)-shift));shift++;if(shift==
-(0xcd+7620-0x1e8a)){shift=(0x71c+1986-0xede);i++;}}}return pos;}UINT8
+);return(0x736+4767-0x19d5);}shift%=(0x1911+135-0x1991);if(shift!=
+(0x8e2+2765-0x13af)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0xbf0+1257-0x10d2)-
+shift)+(0x707+2826-0x1210);if(shift==(0x3dc+6124-0x1bc1)){shift=
+(0x734+6183-0x1f5b);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[
+pos]=in[i]>>shift;if(i+(0xd12+4468-0x1e85)<in_len){out[pos]|=(UINT8)(in[i+
+(0x1b0+3793-0x1080)]<<((0x9d8+3373-0x16fe)-shift));shift++;if(shift==
+(0x134b+4915-0x2677)){shift=(0x77c+6057-0x1f25);i++;}}}return pos;}UINT8
wms_ts_encode_address(const wms_address_s_type*addr,UINT8*data){UINT8 i,pos=
-(0x12ea+4088-0x22e2);if(addr->number_of_digits>WMS_GW_ADDRESS_MAX){at_print(
+(0x160d+1965-0x1dba);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(0x738+3592-0x1540);}if(addr->number_type==
+,addr->number_of_digits);return(0xc3+2481-0xa74);}if(addr->number_type==
WMS_NUMBER_ALPHANUMERIC){data[pos]=(UINT8)((addr->number_of_digits*
-(0x118+8398-0x21df)+(0xf4+7665-0x1ee2))/(0x808+557-0xa31));}else{data[pos]=addr
-->number_of_digits;}pos++;data[pos]=(0x1571+45-0x151e);data[pos]|=(UINT8)((UINT8
-)addr->number_type<<(0xa26+4558-0x1bf0));data[pos]|=(UINT8)addr->number_plan;pos
-++;if(addr->number_type==WMS_NUMBER_ALPHANUMERIC){pos+=(UINT8)
+(0x1369+3658-0x21ac)+(0x872+5637-0x1e74))/(0x1530+3907-0x246f));}else{data[pos]=
+addr->number_of_digits;}pos++;data[pos]=(0x1283+93-0x1260);data[pos]|=(UINT8)((
+UINT8)addr->number_type<<(0x81+3054-0xc6b));data[pos]|=(UINT8)addr->number_plan;
+pos++;if(addr->number_type==WMS_NUMBER_ALPHANUMERIC){pos+=(UINT8)
wms_ts_pack_gw_7_bit_chars(addr->digits,addr->number_of_digits,
-(0x686+2396-0xfe2),WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=
-(0x8ad+7214-0x24db);i<addr->number_of_digits;i++){data[pos]=(UINT8)(addr->digits
-[i++]&(0x13f6+244-0x14db));{data[pos]|=(UINT8)(addr->digits[i]<<
-(0x3e9+1357-0x932));}pos++;}}return pos;}UINT8 wms_ts_encode_dcs(const
-wms_gw_dcs_s_type*dcs,UINT8*data){UINT8 pos=(0x2244+3-0x2247);if(dcs->
-msg_waiting==WMS_GW_MSG_WAITING_NONE){data[pos]=dcs->is_compressed?
-(0x167+8154-0x2121):(0x139f+1562-0x19b9);data[pos]|=(dcs->msg_class!=
-WMS_MESSAGE_CLASS_NONE)?(0x794+5271-0x1c1b):(0xf0f+4790-0x21c5);data[pos]|=dcs->
-alphabet<<(0xcb4+5382-0x21b8);data[pos]|=dcs->msg_class&(0x70c+619-0x974);}else
-if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE_1111){data[pos]=(0x7b7+883-0xa3a);
-if(dcs->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]|=(0x478+1047-0x88b);data[pos]
-|=dcs->msg_class&(0x1462+386-0x15e1);}else{if(dcs->msg_waiting==
-WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x2011+1289-0x245a);}else if(dcs->
+(0xb2+4352-0x11b2),WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=(0xd16+616-0xf7e);
+i<addr->number_of_digits;i++){data[pos]=(UINT8)(addr->digits[i++]&
+(0xa9d+2384-0x13de));{data[pos]|=(UINT8)(addr->digits[i]<<(0x465+5947-0x1b9c));}
+pos++;}}return pos;}UINT8 wms_ts_encode_dcs(const wms_gw_dcs_s_type*dcs,UINT8*
+data){UINT8 pos=(0x1694+1118-0x1af2);if(dcs->msg_waiting==
+WMS_GW_MSG_WAITING_NONE){data[pos]=dcs->is_compressed?(0x229c+375-0x23f3):
+(0x16+2248-0x8de);data[pos]|=(dcs->msg_class!=WMS_MESSAGE_CLASS_NONE)?
+(0xa6a+3464-0x17e2):(0x129+4665-0x1362);data[pos]|=dcs->alphabet<<
+(0x5b9+475-0x792);data[pos]|=dcs->msg_class&(0x1431+3448-0x21a6);}else if(dcs->
+msg_waiting==WMS_GW_MSG_WAITING_NONE_1111){data[pos]=(0x98a+7470-0x25c8);if(dcs
+->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]|=(0x246+7077-0x1de7);data[pos]|=dcs
+->msg_class&(0xe71+4315-0x1f49);}else{if(dcs->msg_waiting==
+WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x10dd+4686-0x226b);}else if(dcs->
msg_waiting==WMS_GW_MSG_WAITING_STORE&&dcs->alphabet==
-WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0x6ba+7997-0x2527);}else{data[pos]=
-(0x7d5+5822-0x1db3);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
-(0x8df+6420-0x21eb):(0xdfb+1344-0x133b);data[pos]|=dcs->msg_waiting_kind&
-(0xaef+5223-0x1f53);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
-UINT8*result){unsigned char low_bit=(bcd&(0x12b6+102-0x130d));unsigned char
-high_bit=((bcd&(0x1927+1683-0x1eca))>>(0x8e7+2828-0x13ef));if(low_bit>
-(0x219+168-0x2b8)||high_bit>(0xf75+2606-0x199a)){at_print(LOG_DEBUG,
+WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0x1286+2620-0x1bf2);}else{data[pos]=
+(0x13ef+258-0x1411);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
+(0x1db2+1446-0x2350):(0x14c+6572-0x1af8);data[pos]|=dcs->msg_waiting_kind&
+(0x5c8+2517-0xf9a);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
+UINT8*result){unsigned char low_bit=(bcd&(0x10c5+3343-0x1dc5));unsigned char
+high_bit=((bcd&(0x109+3613-0xe36))>>(0x87c+5462-0x1dce));if(low_bit>
+(0x196+7019-0x1cf8)||high_bit>(0x1863+3147-0x24a5)){at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x64\x69\x67\x69\x74\x21");*
-result=(0xddd+2599-0x1804);return FALSE;}else{*result=((bcd&(0x1cd9+973-0x2097))
-+(((bcd&(0x1a58+2337-0x2289))>>(0x149+3728-0xfd5))*(0x1d53+1968-0x24f9)));return
- TRUE;}}UINT8 wms_ts_encode_timestamp(const wms_timestamp_s_type*timestamp,UINT8
-*data){sint7 i;UINT8 pos=(0x273+2456-0xc0b),j;if(!wms_ts_bcd_to_int(timestamp->
-year,&j)){return(0x1bf4+2062-0x2402);}data[pos]=((timestamp->year&
-(0xaff+1205-0xfa5))<<(0x960+3517-0x1719))+((timestamp->year&(0x1a59+1655-0x1fe0)
-)>>(0x1e00+2033-0x25ed));pos++;if(wms_ts_bcd_to_int(timestamp->month,&j)){if(j>
-(0x16bd+1945-0x1e4a)||j<(0xbb1+3069-0x17ad)){at_print(LOG_DEBUG,
+result=(0x82d+961-0xbee);return FALSE;}else{*result=((bcd&(0x125+2678-0xb8c))+((
+(bcd&(0x406+264-0x41e))>>(0x574+624-0x7e0))*(0xb4c+1163-0xfcd)));return TRUE;}}
+UINT8 wms_ts_encode_timestamp(const wms_timestamp_s_type*timestamp,UINT8*data){
+sint7 i;UINT8 pos=(0xcdd+337-0xe2e),j;if(!wms_ts_bcd_to_int(timestamp->year,&j))
+{return(0xf3a+2412-0x18a6);}data[pos]=((timestamp->year&(0x191+9129-0x252b))<<
+(0x42b+2408-0xd8f))+((timestamp->year&(0x352+7659-0x204d))>>(0x160+1471-0x71b));
+pos++;if(wms_ts_bcd_to_int(timestamp->month,&j)){if(j>(0x282+7600-0x2026)||j<
+(0xa1+1841-0x7d1)){at_print(LOG_DEBUG,
"\x4d\x6f\x6e\x74\x68\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);return(0x39+5089-0x141a);}}else{return(0x11e5+3954-0x2157);}data[pos]=((
-timestamp->month&(0x5ab+275-0x6af))<<(0xa31+2223-0x12dc))+((timestamp->month&
-(0x286+6807-0x1c2d))>>(0x1cea+79-0x1d35));pos++;if(wms_ts_bcd_to_int(timestamp->
-day,&j)){if(j>(0xc74+2688-0x16d5)||j<(0xe0+1215-0x59e)){at_print(LOG_DEBUG,
+,j);return(0x965+3518-0x1723);}}else{return(0x945+499-0xb38);}data[pos]=((
+timestamp->month&(0xf6a+3444-0x1ccf))<<(0x946+1901-0x10af))+((timestamp->month&
+(0x1bfc+596-0x1d60))>>(0x3b0+8026-0x2306));pos++;if(wms_ts_bcd_to_int(timestamp
+->day,&j)){if(j>(0xfa7+1046-0x139e)||j<(0x1c7a+1975-0x2430)){at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);
-return(0x650+667-0x8eb);}}else{return(0xbcb+488-0xdb3);}data[pos]=((timestamp->
-day&(0x595+102-0x5ec))<<(0x141d+3294-0x20f7))+((timestamp->day&
-(0x433+1817-0xa5c))>>(0x1b5d+2997-0x270e));pos++;if(wms_ts_bcd_to_int(timestamp
-->hour,&j)){if(j>(0x6bc+6231-0x1efc)){at_print(LOG_DEBUG,
+return(0x1418+1986-0x1bda);}}else{return(0x581+6091-0x1d4c);}data[pos]=((
+timestamp->day&(0x147b+2823-0x1f73))<<(0x9f4+2609-0x1421))+((timestamp->day&
+(0x1940+1560-0x1e68))>>(0x21f5+182-0x22a7));pos++;if(wms_ts_bcd_to_int(timestamp
+->hour,&j)){if(j>(0x235+7775-0x207d)){at_print(LOG_DEBUG,
"\x48\x6f\x75\x72\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j
-);return(0x164b+2938-0x21c5);}}else{return(0xec8+305-0xff9);}data[pos]=((
-timestamp->hour&(0xa57+3784-0x1910))<<(0x4ac+2393-0xe01))+((timestamp->hour&
-(0x10d+4155-0x1058))>>(0x59a+1186-0xa38));pos++;if(wms_ts_bcd_to_int(timestamp->
-minute,&j)){if(j>(0x1fb+7934-0x20be)){at_print(LOG_DEBUG,
+);return(0x17d3+374-0x1949);}}else{return(0x1216+3041-0x1df7);}data[pos]=((
+timestamp->hour&(0x161c+1122-0x1a6f))<<(0x14c+9072-0x24b8))+((timestamp->hour&
+(0x177a+2027-0x1e75))>>(0x1039+1440-0x15d5));pos++;if(wms_ts_bcd_to_int(
+timestamp->minute,&j)){if(j>(0x1e3+5148-0x15c4)){at_print(LOG_DEBUG,
"\x4d\x69\x6e\x75\x74\x65\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);return(0xc1f+5735-0x2286);}}else{return(0x646+176-0x6f6);}data[pos]=((
-timestamp->minute&(0x1292+5212-0x26df))<<(0x1f53+1588-0x2583))+((timestamp->
-minute&(0x1778+4214-0x26fe))>>(0x178+967-0x53b));pos++;if(wms_ts_bcd_to_int(
-timestamp->second,&j)){if(j>(0xcc8+3936-0x1bed)){at_print(LOG_DEBUG,
+,j);return(0x6dd+2366-0x101b);}}else{return(0xdaf+23-0xdc6);}data[pos]=((
+timestamp->minute&(0x6c3+6397-0x1fb1))<<(0x120d+2100-0x1a3d))+((timestamp->
+minute&(0x1501+2018-0x1bf3))>>(0x19c7+428-0x1b6f));pos++;if(wms_ts_bcd_to_int(
+timestamp->second,&j)){if(j>(0x11a5+4528-0x231a)){at_print(LOG_DEBUG,
"\x53\x65\x63\x6f\x6e\x64\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);return(0x400+1340-0x93c);}}else{return(0x15ea+3433-0x2353);}data[pos]=((
-timestamp->second&(0x8ab+3396-0x15e0))<<(0xc9b+4579-0x1e7a))+((timestamp->second
-&(0x5cf+1513-0xac8))>>(0xc6b+523-0xe72));pos++;i=(sint7)timestamp->timezone;if(i
->(0xb3+8940-0x236f)||i<-(0xbd8+2632-0x15f0)){at_print(LOG_DEBUG,
+,j);return(0xdf6+6310-0x269c);}}else{return(0x72a+7730-0x255c);}data[pos]=((
+timestamp->second&(0xea9+4859-0x2195))<<(0x1054+3363-0x1d73))+((timestamp->
+second&(0x5e2+1645-0xb5f))>>(0x11fd+997-0x15de));pos++;i=(sint7)timestamp->
+timezone;if(i>(0x87a+7760-0x269a)||i<-(0x884+901-0xbd9)){at_print(LOG_DEBUG,
"\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(0x835+2692-0x12b9);}if(i>=(0x50c+3546-0x12e6)){data[pos]=(UINT8)(((
-UINT8)(i%(0xa7f+1276-0xf71)))<<(0x175b+2850-0x2279));data[pos]|=(i/
-(0x57d+1960-0xd1b));}else{i*=(-(0xe80+3743-0x1d1e));data[pos]=(UINT8)(((UINT8)(i
-%(0x1a7+129-0x21e)))<<(0x639+5730-0x1c97));data[pos]|=(i/(0x4d8+3819-0x13b9));
-data[pos]|=(0x505+7524-0x2261);}pos++;return pos;}UINT8 wms_ts_get_udh_length(
-const wms_udh_s_type*udh){UINT8 length=(0x6d6+7984-0x2606);if(udh!=NULL){switch(
-udh->header_id){case WMS_UDH_CONCAT_8:length=(0x6a2+6406-0x1fa7)+
-(0x602+1787-0xcfc)+WMS_UDH_OCTETS_CONCAT8;break;case WMS_UDH_CONCAT_16:length=
-(0xa34+3500-0x17df)+(0x5ca+4882-0x18db)+WMS_UDH_OCTETS_CONCAT16;break;case
-WMS_UDH_SPECIAL_SM:length=(0x87b+5366-0x1d70)+(0x656+3553-0x1436)+
-WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=(0xc0f+3364-0x1932)+
-(0x12eb+4045-0x22b7)+WMS_UDH_OCTETS_PORT8;break;case WMS_UDH_PORT_16:length=
-(0xc60+5525-0x21f4)+(0x17ec+2049-0x1fec)+WMS_UDH_OCTETS_PORT16;break;case
-WMS_UDH_SMSC_CONTROL:length=(0xb14+5596-0x20ef)+(0x185c+1779-0x1f4e)+udh->u.
-other.header_length;break;case WMS_UDH_SOURCE:length=(0xb6+4434-0x1207)+
-(0xe62+556-0x108d)+udh->u.other.header_length;break;case WMS_UDH_WCMP:length=
-(0x305+5356-0x17f0)+(0x26b+9346-0x26ec)+udh->u.other.header_length;break;case
-WMS_UDH_TEXT_FORMATING:if(!udh->u.text_formating.is_color_present){length=
-(0x1806+3204-0x2489)+(0x13a+9279-0x2578)+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{
-length=(0x11d3+3256-0x1e8a)+(0xa88+3460-0x180b)+WMS_UDH_OCTETS_TEXT_FORMATTING+
-(0x7+1228-0x4d2);}break;case WMS_UDH_PRE_DEF_SOUND:length=(0x3ca+7405-0x20b6)+
-(0x1bfc+1168-0x208b)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_USER_DEF_SOUND:
-length=(0xb93+2697-0x161b)+(0x31+7165-0x1c2d)+udh->u.user_def_sound.data_length+
-(0x5ad+8000-0x24ec);break;case WMS_UDH_PRE_DEF_ANIM:length=(0x1b6a+1274-0x2063)+
-(0xd64+2173-0x15e0)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_LARGE_ANIM:length=
-(0x535+4349-0x1631)+(0x184c+589-0x1a98)+WMS_UDH_LARGE_BITMAP_SIZE*
-WMS_UDH_ANIM_NUM_BITMAPS+(0x200+4282-0x12b9);break;case WMS_UDH_SMALL_ANIM:
-length=(0x500+2897-0x1050)+(0xdbb+5426-0x22ec)+WMS_UDH_SMALL_BITMAP_SIZE*
-WMS_UDH_ANIM_NUM_BITMAPS+(0xf7c+4465-0x20ec);break;case WMS_UDH_LARGE_PICTURE:
-length=(0x701+4341-0x17f5)+(0x10f9+3095-0x1d0f)+WMS_UDH_LARGE_PIC_SIZE+
-(0x1bf0+940-0x1f9b);break;case WMS_UDH_SMALL_PICTURE:length=(0x2561+290-0x2682)+
-(0x82b+532-0xa3e)+WMS_UDH_SMALL_PIC_SIZE+(0x16f0+166-0x1795);break;case
-WMS_UDH_VAR_PICTURE:length=(0x15f8+3141-0x223c)+(0x1b3+3680-0x1012)+(UINT8)(udh
-->u.var_picture.height*udh->u.var_picture.width/(0x2ed+8488-0x240d))+
-(0x1b2d+863-0x1e89);break;case WMS_UDH_RFC822:length=(0x14e1+2066-0x1cf2)+
-(0xaef+5684-0x2122)+WMS_UDH_OCTETS_RFC822;break;case WMS_UDH_NAT_LANG_SS:length=
-(0x43a+1468-0x9f5)+(0x158d+3568-0x237c)+WMS_UDH_OCTETS_NAT_LANG_SS;break;case
-WMS_UDH_NAT_LANG_LS:length=(0x8fb+1267-0xded)+(0x1644+3991-0x25da)+
+,i);return(0x177a+3749-0x261f);}if(i>=(0x1674+1609-0x1cbd)){data[pos]=(UINT8)(((
+UINT8)(i%(0x1776+2566-0x2172)))<<(0x161a+3022-0x21e4));data[pos]|=(i/
+(0x98d+1588-0xfb7));}else{i*=(-(0x1213+3113-0x1e3b));data[pos]=(UINT8)(((UINT8)(
+i%(0x264+8205-0x2267)))<<(0x13cb+4030-0x2385));data[pos]|=(i/
+(0x1089+4282-0x2139));data[pos]|=(0x1a14+358-0x1b72);}pos++;return pos;}UINT8
+wms_ts_get_udh_length(const wms_udh_s_type*udh){UINT8 length=(0xc71+3686-0x1ad7)
+;if(udh!=NULL){switch(udh->header_id){case WMS_UDH_CONCAT_8:length=
+(0xe2+1226-0x5ab)+(0xa23+1760-0x1102)+WMS_UDH_OCTETS_CONCAT8;break;case
+WMS_UDH_CONCAT_16:length=(0x1363+144-0x13f2)+(0x2d0+8017-0x2220)+
+WMS_UDH_OCTETS_CONCAT16;break;case WMS_UDH_SPECIAL_SM:length=(0xb69+1559-0x117f)
++(0x19c+9457-0x268c)+WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=
+(0x14a4+2280-0x1d8b)+(0x1c4+732-0x49f)+WMS_UDH_OCTETS_PORT8;break;case
+WMS_UDH_PORT_16:length=(0x1eec+1128-0x2353)+(0x13f1+2872-0x1f28)+
+WMS_UDH_OCTETS_PORT16;break;case WMS_UDH_SMSC_CONTROL:length=(0xb1a+3464-0x18a1)
++(0x13b+5141-0x154f)+udh->u.other.header_length;break;case WMS_UDH_SOURCE:length
+=(0x7a3+446-0x960)+(0x882+4422-0x19c7)+udh->u.other.header_length;break;case
+WMS_UDH_WCMP:length=(0x907+2164-0x117a)+(0x902+1761-0xfe2)+udh->u.other.
+header_length;break;case WMS_UDH_TEXT_FORMATING:if(!udh->u.text_formating.
+is_color_present){length=(0x13ea+823-0x1720)+(0x1c93+1324-0x21be)+
+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{length=(0x1486+324-0x15c9)+
+(0x14e0+4429-0x262c)+WMS_UDH_OCTETS_TEXT_FORMATTING+(0xfef+330-0x1138);}break;
+case WMS_UDH_PRE_DEF_SOUND:length=(0x355+2373-0xc99)+(0x2bb+4776-0x1562)+
+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_USER_DEF_SOUND:length=
+(0x99d+6606-0x236a)+(0x177+9321-0x25df)+udh->u.user_def_sound.data_length+
+(0x647+4335-0x1735);break;case WMS_UDH_PRE_DEF_ANIM:length=(0x7c1+2218-0x106a)+
+(0x7ba+6178-0x1fdb)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_LARGE_ANIM:length=
+(0x1952+3278-0x261f)+(0x2d+3546-0xe06)+WMS_UDH_LARGE_BITMAP_SIZE*
+WMS_UDH_ANIM_NUM_BITMAPS+(0xf08+348-0x1063);break;case WMS_UDH_SMALL_ANIM:length
+=(0x3e4+3738-0x127d)+(0x1a07+1994-0x21d0)+WMS_UDH_SMALL_BITMAP_SIZE*
+WMS_UDH_ANIM_NUM_BITMAPS+(0x821+43-0x84b);break;case WMS_UDH_LARGE_PICTURE:
+length=(0x16ac+4151-0x26e2)+(0xfa7+5707-0x25f1)+WMS_UDH_LARGE_PIC_SIZE+
+(0x525+7995-0x245f);break;case WMS_UDH_SMALL_PICTURE:length=(0x1c67+568-0x1e9e)+
+(0x4cd+3578-0x12c6)+WMS_UDH_SMALL_PIC_SIZE+(0x10f+4400-0x123e);break;case
+WMS_UDH_VAR_PICTURE:length=(0x333+794-0x64c)+(0x1072+1838-0x179f)+(UINT8)(udh->u
+.var_picture.height*udh->u.var_picture.width/(0xa82+43-0xaa5))+
+(0x15e8+1275-0x1ae0);break;case WMS_UDH_RFC822:length=(0x6d1+3465-0x1459)+
+(0x468+1742-0xb35)+WMS_UDH_OCTETS_RFC822;break;case WMS_UDH_NAT_LANG_SS:length=
+(0x729+7052-0x22b4)+(0x234+2284-0xb1f)+WMS_UDH_OCTETS_NAT_LANG_SS;break;case
+WMS_UDH_NAT_LANG_LS:length=(0x78b+1560-0xda2)+(0x2371+249-0x2469)+
WMS_UDH_OCTETS_NAT_LANG_LS;break;case WMS_UDH_USER_PROMPT:length=
-(0xa47+3124-0x167a)+(0x70c+5413-0x1c30)+WMS_UDH_OCTETS_USER_PROMPT;break;case
-WMS_UDH_EXTENDED_OBJECT:length=(0xd71+3968-0x1cf0)+(0xac4+3479-0x185a)+udh->u.eo
-.content.length;if(udh->u.eo.first_segment==TRUE){length+=
-WMS_UDH_OCTETS_EO_HEADER;}break;default:length=(0x1218+867-0x157a)+
-(0x1784+890-0x1afd)+udh->u.other.header_length;break;}}return length;}uint32
+(0x1ec7+845-0x2213)+(0x94+8664-0x226b)+WMS_UDH_OCTETS_USER_PROMPT;break;case
+WMS_UDH_EXTENDED_OBJECT:length=(0x79a+7365-0x245e)+(0x20df+1524-0x26d2)+udh->u.
+eo.content.length;if(udh->u.eo.first_segment==TRUE){length+=
+WMS_UDH_OCTETS_EO_HEADER;}break;default:length=(0x4b1+6934-0x1fc6)+
+(0x947+6420-0x225a)+udh->u.other.header_length;break;}}return length;}uint32
wms_ts_compute_user_data_header_length(const UINT8 num_headers,const
-wms_udh_s_type*headers){uint32 length=(0x45b+1231-0x92a);uint32 i;if(headers==
+wms_udh_s_type*headers){uint32 length=(0x19f3+1883-0x214e);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(0xfa9+1584-0x15d9);}if(num_headers>(0xcf+280-0x1e7)){length+=
-(0x37c+7304-0x2003);for(i=(0x2124+1030-0x252a);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=(0xc28+4785-0x1ed9);
-if(dcs==NULL||user_data==NULL){at_print(LOG_DEBUG,
+);return(0x1420+3631-0x224f);}if(num_headers>(0x255a+35-0x257d)){length+=
+(0xd38+1475-0x12fa);for(i=(0x61+2069-0x876);i<num_headers&&i<WMS_MAX_UD_HEADERS;
+i++){length+=(uint32)wms_ts_get_udh_length(&headers[i]);}}return length;}uint32
+wms_ts_compute_gw_user_data_length(const wms_gw_dcs_s_type*dcs,const
+wms_gw_user_data_s_type*user_data){uint32 length=(0x1299+1948-0x1a35);if(dcs==
+NULL||user_data==NULL){at_print(LOG_DEBUG,
"\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(0x1c33+1444-0x21d7);}length+=wms_ts_compute_user_data_header_length(
+);return(0xf7d+5202-0x23cf);}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*(0x22c8+520-0x24c9))+
-(0xbe1+4389-0x1cff))/(0xbc8+2309-0x14c5);}else{length+=user_data->sm_len;}return
- length;}static int wms_ts_encode_udh_concat_8(UINT8*udh){int pos=
-(0x9c8+6267-0x2243);if(const_header->u.concat_8.total_sm==(0x97b+2107-0x11b6)||
-const_header->u.concat_8.seq_num==(0x125c+5044-0x2610)||const_header->u.concat_8
-.seq_num>const_header->u.concat_8.total_sm){at_print(LOG_DEBUG,
+WMS_GW_ALPHABET_7_BIT_DEFAULT){length+=((user_data->sm_len*(0x21f6+1255-0x26d6))
++(0x23+8839-0x22a3))/(0xeb5+982-0x1283);}else{length+=user_data->sm_len;}return
+length;}static int wms_ts_encode_udh_concat_8(UINT8*udh){int pos=
+(0x8da+2912-0x143a);if(const_header->u.concat_8.total_sm==(0xb+8227-0x202e)||
+const_header->u.concat_8.seq_num==(0xb4b+6842-0x2605)||const_header->u.concat_8.
+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(0x7ca+2580-0x11de);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0x2132+992-0x2512);}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=(0x3a+4569-0x1213);if(const_header
-->u.concat_16.total_sm==(0x1027+1985-0x17e8)||const_header->u.concat_16.seq_num
-==(0x11cc+3831-0x20c3)||const_header->u.concat_16.seq_num>const_header->u.
-concat_16.total_sm){at_print(LOG_DEBUG,
+wms_ts_encode_udh_concat16(UINT8*udh){int pos=(0x1d10+2417-0x2681);if(
+const_header->u.concat_16.total_sm==(0x832+2304-0x1132)||const_header->u.
+concat_16.seq_num==(0x1b16+2037-0x230b)||const_header->u.concat_16.seq_num>
+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(0x321+5716-0x1975);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0x1aa0+913-0x1e31);}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)>>(0x47c+6294-0x1d0a));udh[pos++]=(UINT8
-)(const_header->u.concat_16.msg_ref&(0x731+7028-0x21a6));udh[pos++]=const_header
+const_header->u.concat_16.msg_ref&65280)>>(0x34d+3314-0x1037));udh[pos++]=(UINT8
+)(const_header->u.concat_16.msg_ref&(0x594+1174-0x92b));udh[pos++]=const_header
->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=(0xd9b+3368-0x1ac3);udh[pos
-++]=(UINT8)WMS_UDH_NAT_LANG_SS;udh[pos++]=(UINT8)WMS_UDH_OCTETS_NAT_LANG_SS;udh[
+int wms_ts_encode_udh_nat_lang_ss(UINT8*udh){int pos=(0x8da+358-0xa40);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=(0x1dc9+695-0x2080);udh[pos++]=
-(UINT8)WMS_UDH_NAT_LANG_LS;udh[pos++]=(UINT8)WMS_UDH_OCTETS_NAT_LANG_LS;udh[pos
+wms_ts_encode_udh_nat_lang_ls(UINT8*udh){int pos=(0x1f41+1891-0x26a4);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=
-(0x396+4359-0x149d);int pos=(0x312+7041-0x1e93);udh[pos++]=(UINT8)const_header->
-u.other.header_id;udh[pos++]=const_header->u.other.header_length;for(i=
-(0x409+2167-0xc80);i<const_header->u.other.header_length;i++){udh[pos++]=
+(0x70c+1254-0xbf2);int pos=(0x737+7921-0x2628);udh[pos++]=(UINT8)const_header->u
+.other.header_id;udh[pos++]=const_header->u.other.header_length;for(i=
+(0x4c3+7686-0x22c9);i<const_header->u.other.header_length;i++){udh[pos++]=
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=
-(0x15f3+1304-0x1b0b);if(num_headers==(0x576+6967-0x20ad))return(0x700+981-0xad5)
-;++pos;for(i=(0x12b+8068-0x20af);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 (0x165d+2344-0x1f85)
+(0x413+2764-0xedf);if(num_headers==(0x1a4f+1775-0x213e))return
+(0xd53+5654-0x2369);++pos;for(i=(0x70+8939-0x235b);i<WMS_MAX_UD_HEADERS&&i<
+num_headers;i++){const_header=&headers[i];switch(const_header->header_id){case
+WMS_UDH_CONCAT_8:pos+=wms_ts_encode_udh_concat_8(data+pos);break;case
+WMS_UDH_CONCAT_16:pos+=wms_ts_encode_udh_concat16(data+pos);break;
+#if (0x380+4235-0x140b)
case WMS_UDH_SPECIAL_SM:pos+=wms_ts_encode_udh_special_sm(data+pos);break;case
WMS_UDH_PORT_8:pos+=wms_ts_encode_udh_port_8(data+pos);break;case
WMS_UDH_PORT_16:pos+=wms_ts_encode_udh_port16(data+pos);break;case
@@ -1314,104 +1312,104 @@
case WMS_UDH_NAT_LANG_SS:pos+=wms_ts_encode_udh_nat_lang_ss(data+pos);break;case
WMS_UDH_NAT_LANG_LS:pos+=wms_ts_encode_udh_nat_lang_ls(data+pos);break;default:
pos+=wms_ts_encode_udh_other(data+pos,const_header->header_id);}}data[
-(0x93b+4610-0x1b3d)]=(UINT8)(pos-(0x462+8655-0x2630));return((UINT8)(pos-
-(0x1523+789-0x1837)));}UINT8 wms_ts_encode_gw_user_data(const wms_gw_dcs_s_type*
+(0x383+3463-0x110a)]=(UINT8)(pos-(0x55c+8513-0x269c));return((UINT8)(pos-
+(0xb37+1948-0x12d2)));}UINT8 wms_ts_encode_gw_user_data(const wms_gw_dcs_s_type*
dcs,const wms_gw_user_data_s_type*user_data,UINT8*data){UINT16 i,pos=
-(0x9b2+3922-0x1904);UINT8 fill_bits=(0x9aa+3643-0x17e5);UINT16
+(0x1b55+792-0x1e6d);UINT8 fill_bits=(0x2ad+2670-0xd1b);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>(0xffc+4617-0x2205)){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+(0xac9+2703-0x1557);total_bits_occupied=(
-user_data_header_length+(0xa4a+2097-0x127a))*(0x1111+3833-0x2002);fill_bits=(
-total_bits_occupied%(0x2031+1232-0x24fa));if(fill_bits!=(0x6a2+3547-0x147d)){
-fill_bits=(0x10f6+1551-0x16fe)-fill_bits;}user_data_length=(total_bits_occupied+
-fill_bits+(user_data->sm_len*(0x1027+4272-0x20d0)))/(0x92f+3534-0x16f6);data[
-(0x264+2005-0xa39)]=(UINT8)user_data_length;data[(0x2aa+2310-0xbaf)]=
+WMS_GW_ALPHABET_7_BIT_DEFAULT){if(user_data->num_headers>(0xa44+1355-0xf8f)){if(
+wms_ts_compute_user_data_header_length(user_data->num_headers,user_data->headers
+)<=WMS_SMS_UDL_MAX_8_BIT){user_data_header_length=wms_ts_encode_user_data_header
+(user_data->num_headers,user_data->headers,data+pos);pos+=
+user_data_header_length+(0xe4a+949-0x11fe);total_bits_occupied=(
+user_data_header_length+(0xb46+64-0xb85))*(0x5cf+7935-0x24c6);fill_bits=(
+total_bits_occupied%(0x18e1+131-0x195d));if(fill_bits!=(0x59a+3349-0x12af)){
+fill_bits=(0xc0c+4195-0x1c68)-fill_bits;}user_data_length=(total_bits_occupied+
+fill_bits+(user_data->sm_len*(0xaf+7055-0x1c37)))/(0x1834+493-0x1a1a);data[
+(0x9d4+2959-0x1563)]=(UINT8)user_data_length;data[(0x22b+6331-0x1ae5)]=
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>
-(0x537+914-0x8c9)){if(wms_ts_compute_user_data_header_length(user_data->
+(0x1a5c+24-0x1a74)){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[(0x1057+5670-0x267d)]=(UINT8)(user_data->sm_len+
-user_data_header_length+(0xd80+6090-0x2549));pos+=user_data_header_length+
-(0x351+5040-0x1700);}else{at_print(LOG_DEBUG,
+pos);data[(0xb98+2865-0x16c9)]=(UINT8)(user_data->sm_len+user_data_header_length
++(0x3b7+1418-0x940));pos+=user_data_header_length+(0xbb8+3714-0x1a39);}else{
+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=(0xc2c+6329-0x24e5),i;if(
+wms_status_e_type st=WMS_OK_S;UINT8*data;UINT8 pos=(0x9e5+2815-0x14e4),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,
-(0x287+5812-0x193b),WMS_MAX_LEN);data[pos]=(0x1e6b+720-0x213b);data[pos]|=
-deliver->more?(0xb34+229-0xc19):(0x153+3248-0xdff);data[pos]|=deliver->
-status_report_enabled?(0xa66+43-0xa71):(0x783+3214-0x1411);data[pos]|=deliver->
-user_data_header_present?(0x22d+3506-0xf9f):(0x20+7037-0x1b9d);data[pos]|=
-deliver->reply_path_present?(0x11af+3051-0x1d1a):(0x215d+131-0x21e0);pos++;i=
-wms_ts_encode_address(&deliver->address,&data[pos]);if(i==(0x259+7290-0x1ed3)){
+(0x1ae3+2064-0x22f3),WMS_MAX_LEN);data[pos]=(0x762+7759-0x25b1);data[pos]|=
+deliver->more?(0x342+4104-0x134a):(0x1014+4770-0x22b2);data[pos]|=deliver->
+status_report_enabled?(0x1cd+4244-0x1241):(0x128f+4373-0x23a4);data[pos]|=
+deliver->user_data_header_present?(0x3a9+8600-0x2501):(0x156c+1513-0x1b55);data[
+pos]|=deliver->reply_path_present?(0x20e5+1675-0x26f0):(0x1f16+68-0x1f5a);pos++;
+i=wms_ts_encode_address(&deliver->address,&data[pos]);if(i==(0x399+1272-0x891)){
return WMS_INVALID_PARM_SIZE_S;}pos+=i;data[pos]=deliver->pid;pos++;pos+=
wms_ts_encode_dcs(&deliver->dcs,data+pos);i=wms_ts_encode_timestamp(&deliver->
-timestamp,data+pos);if(i==(0x9e7+7239-0x262e)){return WMS_INVALID_PARM_VALUE_S;}
-pos+=i;if(wms_ts_compute_gw_user_data_length(&deliver->dcs,&deliver->user_data)>
-WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
+timestamp,data+pos);if(i==(0x10a4+1572-0x16c8)){return WMS_INVALID_PARM_VALUE_S;
+}pos+=i;if(wms_ts_compute_gw_user_data_length(&deliver->dcs,&deliver->user_data)
+>WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
"\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x4c\x65\x6e\x67\x74\x68\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x63\x61\x70\x61\x63\x69\x74\x79"
);st=WMS_INVALID_USER_DATA_SIZE_S;}else{i=wms_ts_encode_gw_user_data(&deliver->
dcs,&deliver->user_data,data+pos);pos+=i;}raw_ts_data_ptr->tpdu_type=
WMS_TPDU_DELIVER;raw_ts_data_ptr->len=pos;return st;}UINT8
wms_ts_encode_relative_time(const wms_timestamp_s_type*timestamp){uint32 i;UINT8
- v=(0xf79+4326-0x205f),j;if(timestamp!=NULL){if(!wms_ts_bcd_to_int(timestamp->
+ v=(0x134c+4175-0x239b),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*(0x16c1+1363-0x1aa7);if(!wms_ts_bcd_to_int(timestamp->month,&j)){at_print
+);}i=j*(0x1128+5011-0x234e);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*(0x1fa+880-0x54c);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>(0x2c0+184-0x35a)){v=(UINT8)((i+(0x1cb8+1865-0x23fb))/
-(0xd69+4981-0x20d7)+(0xb88+3206-0x174e));}else if(i>=(0xc7d+6482-0x25ce)){v=(
-UINT8)(i+(0x5c5+8252-0x255b));}else{if(!wms_ts_bcd_to_int(timestamp->day,&j)){
+,j);}i=i+j*(0x356+7777-0x2199);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*(0x872+5838-0x1f28)*(0xab3+1426-0x1009);if(!wms_ts_bcd_to_int(timestamp->hour
-,&j)){at_print(LOG_DEBUG,
++=j;if(i>(0x1454+3127-0x206d)){v=(UINT8)((i+(0x138b+4578-0x2567))/
+(0x2d8+530-0x4e3)+(0x1c67+2045-0x23a4));}else if(i>=(0x73b+1149-0xbb7)){v=(UINT8
+)(i+(0x736+1521-0xc81));}else{if(!wms_ts_bcd_to_int(timestamp->day,&j)){at_print
+(LOG_DEBUG,
+"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);}i
+=j*(0x60c+2559-0xff3)*(0x8b0+1785-0xf6d);if(!wms_ts_bcd_to_int(timestamp->hour,&
+j)){at_print(LOG_DEBUG,
"\x48\x6f\x75\x72\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j
-);}i=i+j*(0xb34+2192-0x1388);if(!wms_ts_bcd_to_int(timestamp->minute,&j)){
+);}i=i+j*(0x178+2863-0xc6b);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>(0x81f+3986-0x17a5)*(0x858+3172-0x1480)){v=(UINT8)((i-((
-(0x25a2+369-0x2707)*(0x829+7428-0x24f1))+(0x694+273-0x788)))/
-(0x12bc+3228-0x1f3a)+(0x1864+3052-0x23c1));}else{v=(UINT8)((i+(0x43+8181-0x2034)
-)/(0x71f+7900-0x25f6)-(0x17a3+3647-0x25e1));}}}else{at_print(LOG_DEBUG,
+,j);}i+=j;if(i>(0x4fa+221-0x5cb)*(0x3f1+4641-0x15d6)){v=(UINT8)((i-((
+(0x157d+3347-0x2284)*(0xb15+4265-0x1b82))+(0xd19+4805-0x1fc1)))/
+(0x717+3560-0x14e1)+(0x602+7996-0x24af));}else{v=(UINT8)((i+(0x173a+1161-0x1bbf)
+)/(0x1575+849-0x18c1)-(0x24b5+137-0x253d));}}}else{at_print(LOG_DEBUG,
"\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=(0x91a+5668-0x1f3e);switch(validity->format){
+validity,UINT8*data){UINT8 i,pos=(0x9ed+3125-0x1622);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==(0xa64+4832-0x1d44)){at_print(LOG_DEBUG,
+if(i==(0x1519+3983-0x24a8)){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=(0x1573+4220-0x25ef),i;if(submit==NULL||raw_ts_data_ptr==NULL){
-at_print(LOG_DEBUG,
+UINT8 pos=(0x56b+3714-0x13ed),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,
-(0xaa3+6157-0x22b0),WMS_MAX_LEN);data[pos]=(0xde1+369-0xf51);data[pos]|=submit->
-reject_duplicates?(0x1868+3715-0x26e7):(0x2043+283-0x215e);if(submit->validity.
-format>(0x832+3144-0x1477)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}data[pos]|=
-submit->validity.format<<(0x1d8d+479-0x1f69);data[pos]|=submit->
-status_report_enabled?(0x130a+3100-0x1f06):(0xcec+4050-0x1cbe);data[pos]|=submit
-->user_data_header_present?(0x1a47+1194-0x1eb1):(0x335+6193-0x1b66);data[pos]|=
-submit->reply_path_present?(0x979+3161-0x1552):(0x696+4836-0x197a);pos++;data[
+(0x887+1202-0xd39),WMS_MAX_LEN);data[pos]=(0xbcb+3418-0x1924);data[pos]|=submit
+->reject_duplicates?(0x1f4+8043-0x215b):(0xa27+268-0xb33);if(submit->validity.
+format>(0x11c5+475-0x139d)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}data[pos]|=
+submit->validity.format<<(0x419+585-0x65f);data[pos]|=submit->
+status_report_enabled?(0x184b+2621-0x2268):(0x1d0c+984-0x20e4);data[pos]|=submit
+->user_data_header_present?(0x3f3+8238-0x23e1):(0xe11+2935-0x1988);data[pos]|=
+submit->reply_path_present?(0x1268+2747-0x1ca3):(0xe3c+4824-0x2114);pos++;data[
pos]=(UINT8)submit->message_reference;pos++;i=wms_ts_encode_address(&submit->
-address,&data[pos]);if(i==(0x168a+2453-0x201f)){return WMS_INVALID_PARM_SIZE_S;}
+address,&data[pos]);if(i==(0xddf+747-0x10ca)){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)>
@@ -1422,21 +1420,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=(0x616+801-0x937),i;if(status_report==NULL||raw_ts_data_ptr==NULL){
+UINT8 pos=(0x7c0+5639-0x1dc7),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,
-(0xa7f+1718-0x1135),WMS_MAX_LEN);data[pos]=(0x11ba+2269-0x1a87);data[pos]|=
-status_report->more?(0x230+2209-0xad1):(0x2fc+1273-0x7f1);data[pos]|=
-status_report->status_report_qualifier?(0x1a45+2727-0x24cc):(0xa0a+385-0xb8b);
-data[pos]|=status_report->user_data_header_present?(0x4c0+4292-0x1544):
-(0x35d+4858-0x1657);pos++;data[pos]=(UINT8)status_report->message_reference;pos
+(0x744+4788-0x19f8),WMS_MAX_LEN);data[pos]=(0x13fa+2667-0x1e55);data[pos]|=
+status_report->more?(0xa4f+2891-0x159a):(0xd96+1691-0x142d);data[pos]|=
+status_report->status_report_qualifier?(0x1bcb+2788-0x268f):(0xdac+2357-0x16e1);
+data[pos]|=status_report->user_data_header_present?(0xed0+684-0x113c):
+(0x1f38+455-0x20ff);pos++;data[pos]=(UINT8)status_report->message_reference;pos
++;i=wms_ts_encode_address(&status_report->address,&data[pos]);if(i==
-(0x1960+1639-0x1fc7)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0x4eb+94-0x549)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
wms_ts_encode_timestamp(&status_report->timestamp,data+pos);if(i==
-(0xb7+5631-0x16b6)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0x1177+3170-0x1dd9)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
wms_ts_encode_timestamp(&status_report->discharge_time,data+pos);if(i==
-(0x7ad+2003-0xf80)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;data[pos]=
+(0x9e3+1070-0xe11)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;data[pos]=
status_report->tp_status;pos++;data[pos]=(UINT8)status_report->mask;pos++;if(
status_report->mask&WMS_TPDU_MASK_PID){data[pos]=status_report->pid;pos++;}if(
status_report->mask&WMS_TPDU_MASK_DCS){pos+=wms_ts_encode_dcs(&status_report->
@@ -1451,7 +1449,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 (0x12a5+301-0x13d2)
+#if (0x1d29+1932-0x24b5)
case WMS_FORMAT_CDMA:case WMS_FORMAT_ANALOG_AWISMS:case WMS_FORMAT_ANALOG_CLI:
case WMS_FORMAT_ANALOG_VOICE_MAIL:case WMS_FORMAT_ANALOG_SMS:case WMS_FORMAT_MWI
:st=wms_ts_encode_bearer_data(&ptClientTsData->u.cdma,ptRawTsData);break;
@@ -1461,7 +1459,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 (0x169b+2378-0x1fe5)
+#if (0x1db6+1948-0x2552)
case WMS_TPDU_SUBMIT_REPORT_ACK:st=wms_ts_encode_submit_report_ack(&msg->u.
submit_report_ack,ptRawTsData);break;case WMS_TPDU_SUBMIT_REPORT_ERROR:st=
wms_ts_encode_submit_report_error(&msg->u.submit_report_error,ptRawTsData);break
@@ -1478,364 +1476,365 @@
"\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=(0x210a+762-0x2404);UINT16 pos=
-(0x1e57+1145-0x22d0);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+out_len_max,UINT16 shift,UINT8*out){int i=(0x6bd+2786-0x119f);UINT16 pos=
+(0x2e6+6751-0x1d45);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
"\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(0x1e9+6494-0x1b47);}if(shift!=(0x1da+3235-0xe7d))pos=pos+
-(0xcc2+60-0xcfd);if(shift==(0x1d1+801-0x4eb)){out[(0x477+8418-0x2559)]=in[
-(0x10ba+4100-0x20be)]>>(0xfa2+3252-0x1c55);shift=(0xb6f+662-0xe05);i=
-(0x6d2+721-0x9a2);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]<<
-shift)&(0x649+5743-0x1c39);if(pos!=(0x18a7+1523-0x1e9a)){
-#if (0x682+3623-0x14a8)
-if(shift==(0x639+2683-0x10b4)){out[i]|=(0xd2+5543-0x1679);}else{out[i]|=in[pos-
-(0x5b+8820-0x22ce)]>>((0x334+5052-0x16e8)-shift);}
+);return(0x139b+4902-0x26c1);}if(shift!=(0xd8b+2412-0x16f7))pos=pos+
+(0xcf1+4738-0x1f72);if(shift==(0xbbb+3915-0x1aff)){out[(0x802+220-0x8de)]=in[
+(0xb79+3239-0x1820)]>>(0x1335+862-0x1692);shift=(0x15a4+2004-0x1d78);i=
+(0x103d+3452-0x1db8);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]
+<<shift)&(0x1337+4940-0x2604);if(pos!=(0xc6a+4389-0x1d8f)){
+#if (0xf28+2093-0x1754)
+if(shift==(0x570+8360-0x2618)){out[i]|=(0x2102+199-0x21c9);}else{out[i]|=in[pos-
+(0x20a+1723-0x8c4)]>>((0x211+8697-0x2402)-shift);}
#else
-out[i]|=in[pos-(0x1417+814-0x1744)]>>((0x1875+1441-0x1e0e)-shift);
+out[i]|=in[pos-(0xb92+5420-0x20bd)]>>((0x12a7+3123-0x1ed2)-shift);
#endif
-}shift++;if(shift==(0x6e3+6065-0x1e8d)){shift=(0x123b+2287-0x1b2a);i++;if(i>=
+}shift++;if(shift==(0x511+8118-0x24c0)){shift=(0x975+2092-0x11a1);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]>>(0x9a2+5042-0x1d53);}}return(UINT8)(pos);}UINT8
+);break;}out[i]=in[pos]>>(0x6bc+4977-0x1a2c);}}return(UINT8)(pos);}UINT8
wms_ts_decode_address(const UINT8*data,wms_address_s_type*addr){UINT8 i,pos=
-(0x652+942-0xa00);i=data[pos];if(i>WMS_GW_ADDRESS_MAX){at_print(LOG_DEBUG,
+(0x1468+3519-0x2227);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(0x45+3736-0xedd);}addr->number_of_digits=i;pos++;addr->digit_mode=
+,i);return(0x1074+90-0x10ce);}addr->number_of_digits=i;pos++;addr->digit_mode=
WMS_DIGIT_MODE_4_BIT;addr->number_type=(wms_number_type_e_type)((data[pos]&
-(0x1a10+580-0x1be4))>>(0xec5+1420-0x144d));addr->number_plan=(
-wms_number_plan_e_type)(data[pos]&(0xd16+1508-0x12eb));pos++;if(addr->
-number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0x1c8a+1651-0x22fd)
+(0x1cfc+984-0x2064))>>(0xb75+2458-0x150b));addr->number_plan=(
+wms_number_plan_e_type)(data[pos]&(0x638+4623-0x1838));pos++;if(addr->
+number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0x1ca0+1088-0x20e0)
;addr->digit_mode=WMS_DIGIT_MODE_8_BIT;bytes_increment=(addr->number_of_digits+
-(0x1383+5002-0x270c))/(0xb6a+3661-0x19b5);addr->number_of_digits=(UINT8)(addr->
-number_of_digits*(0x8b2+2197-0x1143)/(0x1181+2808-0x1c72));(void)
+(0x8f2+172-0x99d))/(0x18+9183-0x23f5);addr->number_of_digits=(UINT8)(addr->
+number_of_digits*(0x1271+2961-0x1dfe)/(0x188f+1125-0x1ced));(void)
wms_ts_unpack_gw_7_bit_chars(&data[pos],addr->number_of_digits,
-WMS_GW_ADDRESS_MAX,(0x1378+3851-0x2283),addr->digits);pos+=bytes_increment;}else
-{for(i=(0x6a7+328-0x7ef);i<addr->number_of_digits;i++){addr->digits[i++]=data[
-pos]&(0xf80+1045-0x1386);addr->digits[i]=(data[pos]&(0x11a5+3972-0x2039))>>
-(0xeb3+471-0x1086);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data,
-wms_gw_dcs_s_type*dcs){UINT8 pos=(0x569+7178-0x2173);UINT8 i;if(data==NULL||dcs
-==NULL){at_print(LOG_DEBUG,
+WMS_GW_ADDRESS_MAX,(0x6a9+80-0x6f9),addr->digits);pos+=bytes_increment;}else{for
+(i=(0x602+4752-0x1892);i<addr->number_of_digits;i++){addr->digits[i++]=data[pos]
+&(0x629+5797-0x1cbf);addr->digits[i]=(data[pos]&(0xecb+1325-0x1308))>>
+(0x16ed+816-0x1a19);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data
+,wms_gw_dcs_s_type*dcs){UINT8 pos=(0x1929+2595-0x234c);UINT8 i;if(data==NULL||
+dcs==NULL){at_print(LOG_DEBUG,
"\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(0x11f4+2267-0x1acf);}dcs->msg_class=WMS_MESSAGE_CLASS_NONE;dcs->
+);return(0x169+6663-0x1b70);}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]&(0x14a8+2261-0x1cbd))>>(0xff9+2760-0x1abb)
-;switch(i){case(0x80b+13-0x818):dcs->is_compressed=data[pos]&(0x29+3147-0xc54);
-if(data[pos]&(0x2ca+6687-0x1cd9)){dcs->msg_class=(wms_message_class_e_type)(data
-[pos]&(0x89a+7162-0x2491));}else{dcs->msg_class=WMS_MESSAGE_CLASS_NONE;}dcs->
-alphabet=(wms_gw_alphabet_e_type)((data[pos]&(0x164+5181-0x1595))>>
-(0x22f+7377-0x1efe));break;case(0x1cc+8146-0x219b):if((data[pos]&
-(0x116a+1864-0x1882))==(0x8c4+5184-0x1cd4)){dcs->alphabet=(data[pos]&
-(0x550+1987-0xd0f))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
-msg_class=(wms_message_class_e_type)(data[pos]&(0x70c+3924-0x165d));dcs->
+dcs->is_compressed=FALSE;i=(data[pos]&(0x941+2351-0x11b0))>>(0x11cd+3232-0x1e67)
+;switch(i){case(0x457+3141-0x109c):dcs->is_compressed=data[pos]&
+(0x12a3+4459-0x23ee);if(data[pos]&(0xb56+5926-0x226c)){dcs->msg_class=(
+wms_message_class_e_type)(data[pos]&(0x12a5+4636-0x24be));}else{dcs->msg_class=
+WMS_MESSAGE_CLASS_NONE;}dcs->alphabet=(wms_gw_alphabet_e_type)((data[pos]&
+(0x4e2+5371-0x19d1))>>(0x149b+993-0x187a));break;case(0x395+8098-0x2334):if((
+data[pos]&(0x144d+1585-0x1a4e))==(0x2d5+7549-0x2022)){dcs->alphabet=(data[pos]&
+(0x298+4378-0x13ae))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
+msg_class=(wms_message_class_e_type)(data[pos]&(0xa91+4984-0x1e06));dcs->
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]&
-(0x1dfa+101-0x1e2f))==(0x8fb+2358-0x1231)){dcs->msg_waiting=
+(0xf8c+2361-0x1895))==(0x843+1631-0xea2)){dcs->msg_waiting=
WMS_GW_MSG_WAITING_DISCARD;dcs->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}else if(
-(data[pos]&(0x1acd+2608-0x24cd))==(0x1861+1853-0x1f8e)){dcs->msg_waiting=
+(data[pos]&(0x13f4+4343-0x24bb))==(0x1671+380-0x17dd)){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]&(0x1bf+7697-0x1fc8))?TRUE:FALSE;dcs->
-msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x5b9+500-0x7aa));}
-break;default:at_print(LOG_DEBUG,
+msg_waiting_active=(data[pos]&(0x88+5625-0x1679))?TRUE:FALSE;dcs->
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x768+4879-0x1a74))
+;}break;default:at_print(LOG_DEBUG,
"\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=(0x91b+5247-0x1d9a),i,j;if(
+UINT8*data,wms_timestamp_s_type*timestamp){UINT8 pos=(0x813+6844-0x22cf),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(0xdd0+2851-0x18f3);}i=((data[pos]&(0x15d0+2942-0x213f))<<
-(0x9d+9534-0x25d7))+((data[pos]&(0xe89+6378-0x2683))>>(0x46f+8380-0x2527));if(!
+);return(0x7f5+5333-0x1cca);}i=((data[pos]&(0x522+2046-0xd11))<<
+(0xf47+1017-0x133c))+((data[pos]&(0x59b+4804-0x176f))>>(0x47f+262-0x581));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=(0x7c3+1448-0xd6b);}timestamp->year=i;pos++;i=((data[pos]&
-(0xd63+4632-0x1f6c))<<(0x3a2+2566-0xda4))+((data[pos]&(0x2c1+2598-0xbf7))>>
-(0x5e6+1913-0xd5b));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xef6+695-0x11a1)||j<
-(0x209+792-0x520)){at_print(LOG_DEBUG,
+,data[pos]);i=(0x16a1+4101-0x26a6);}timestamp->year=i;pos++;i=((data[pos]&
+(0x75a+2331-0x1066))<<(0x1d+5947-0x1754))+((data[pos]&(0x37a+3067-0xe85))>>
+(0x1345+3779-0x2204));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1b54+2192-0x23d8)||j<
+(0x7ec+5885-0x1ee8)){at_print(LOG_DEBUG,
"\x4d\x6f\x6e\x74\x68\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);i=(0x3+589-0x24f);}}else{at_print(LOG_DEBUG,
+,j);i=(0x1763+3499-0x250d);}}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=(0x75f+7484-0x249a);}timestamp->month=i;pos++;i=((data[pos]&
-(0xf7+5358-0x15d6))<<(0x4bc+3388-0x11f4))+((data[pos]&(0x63d+6874-0x2027))>>
-(0x1217+5086-0x25f1));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x711+6287-0x1f81)||j<
-(0x5db+1170-0xa6c)){at_print(LOG_DEBUG,
+,data[pos]);i=(0x13c2+1854-0x1aff);}timestamp->month=i;pos++;i=((data[pos]&
+(0x826+7058-0x23a9))<<(0xbcd+6085-0x238e))+((data[pos]&(0x1c7+6352-0x19a7))>>
+(0xbff+3294-0x18d9));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1ea+1380-0x72f)||j<
+(0x955+4015-0x1903)){at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);i=
-(0xe83+5973-0x25d7);}}else{at_print(LOG_DEBUG,
+(0x22c+6814-0x1cc9);}}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=(0x124+9061-0x2488);}timestamp->day=i;pos++;i=((data[pos]&
-(0x746+8112-0x26e7))<<(0x13d0+4094-0x23ca))+((data[pos]&(0xacd+2561-0x13de))>>
-(0xfd7+2654-0x1a31));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x88f+6899-0x236b)){
+,data[pos]);i=(0x236+5104-0x1625);}timestamp->day=i;pos++;i=((data[pos]&
+(0x1f6c+315-0x2098))<<(0xb83+6912-0x267f))+((data[pos]&(0x105b+841-0x12b4))>>
+(0x11b+839-0x45e));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x9ea+2048-0x11d3)){
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=(0x1772+78-0x17c0);}}else{at_print(LOG_DEBUG,
+,j);i=(0xe23+3009-0x19e4);}}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=(0x12aa+39-0x12d1);}timestamp->hour=i;pos++;i=((data[pos]&
-(0x1301+2844-0x1e0e))<<(0x23c9+338-0x2517))+((data[pos]&(0x2ba+1502-0x7a8))>>
-(0x694+6168-0x1ea8));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x227a+878-0x25ad)){
+,data[pos]);i=(0x3d4+8072-0x235c);}timestamp->hour=i;pos++;i=((data[pos]&
+(0xde7+2369-0x1719))<<(0xddf+2043-0x15d6))+((data[pos]&(0x817+2395-0x1082))>>
+(0x7cf+5762-0x1e4d));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x18fb+1165-0x1d4d)){
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=(0x48f+1081-0x8c8);}}else{at_print(LOG_DEBUG,
+,j);i=(0x1c1+4355-0x12c4);}}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=(0x1082+1281-0x1583);}timestamp->minute=i;pos++;i=((data[pos]&
-(0x16f9+325-0x182f))<<(0x1476+1843-0x1ba5))+((data[pos]&(0x865+5291-0x1c20))>>
-(0xc8c+6527-0x2607));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x65b+6406-0x1f26)){
+,data[pos]);i=(0x1b0+1954-0x952);}timestamp->minute=i;pos++;i=((data[pos]&
+(0xe7+8250-0x2112))<<(0x13c+4235-0x11c3))+((data[pos]&(0x671+1009-0x972))>>
+(0x1e1+5229-0x164a));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1a76+54-0x1a71)){
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=(0xdba+5482-0x2324);}}else{at_print(LOG_DEBUG,
+,i);i=(0x10d4+1207-0x158b);}}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=(0x1b9+895-0x538);}timestamp->second=i;pos++;if(data[pos]&
-(0x9a2+4296-0x1a62)){timestamp->timezone=(data[pos]&(0x42a+1204-0x8d7))*
-(0x1555+2050-0x1d4d)+((data[pos]&(0x1c7b+769-0x1e8c))>>(0x836+4270-0x18e0));
-timestamp->timezone*=(-(0xed3+2163-0x1745));}else{timestamp->timezone=(sint7)((
-data[pos]&(0x1610+2351-0x1f30))*(0x125f+2182-0x1adb)+((data[pos]&
-(0xdf7+3399-0x1a4e))>>(0xb0+9370-0x2546)));}if(timestamp->timezone>
-(0x3f7+2419-0xd3a)||timestamp->timezone<-(0xe7f+5591-0x2426)){at_print(LOG_DEBUG
-,
+,data[pos]);i=(0x24f4+50-0x2526);}timestamp->second=i;pos++;if(data[pos]&
+(0xdeb+2991-0x1992)){timestamp->timezone=(data[pos]&(0x277+1677-0x8fd))*
+(0x167f+3314-0x2367)+((data[pos]&(0x895+585-0x9ee))>>(0x730+5700-0x1d70));
+timestamp->timezone*=(-(0x4b8+7894-0x238d));}else{timestamp->timezone=(sint7)((
+data[pos]&(0xf9d+2329-0x18a7))*(0xf63+2080-0x1779)+((data[pos]&
+(0x1c62+1599-0x21b1))>>(0x6bd+3405-0x1406)));}if(timestamp->timezone>
+(0x15a6+3683-0x23d9)||timestamp->timezone<-(0x181f+309-0x1924)){at_print(
+LOG_DEBUG,
"\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=(0x1cc+8643-0x238f);}pos++;return pos;
+,timestamp->timezone);timestamp->timezone=(0x64b+4374-0x1761);}pos++;return pos;
}static UINT8 wms_ts_decode_udh_concat_8(const UINT8*udh,wms_udh_s_type*
-header_ptr){UINT8 pos=(0x59f+6206-0x1ddd);if(udh==NULL||header_ptr==NULL){
+header_ptr){UINT8 pos=(0x139d+351-0x14fc);if(udh==NULL||header_ptr==NULL){
at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x14a9+972-0x1875);}if(udh[pos]<(0x1bf5+759-0x1ee9)){at_print(LOG_DEBUG,
+(0xd52+2312-0x165a);}if(udh[pos]<(0x502+4525-0x16ac)){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(0x1416+1494-0x19ec);}if(udh[pos+(0x374+1571-0x995)]==
-(0x50+3639-0xe87)||udh[pos+(0x1360+486-0x1543)]>udh[pos+(0xba1+826-0xed9)]){
+,udh[pos]);return(0x527+2806-0x101d);}if(udh[pos+(0xf80+5426-0x24b0)]==
+(0xaaf+6288-0x233f)||udh[pos+(0x5f7+4641-0x1815)]>udh[pos+(0x769+5506-0x1ce9)]){
at_print(LOG_DEBUG,
"\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(0xb28+6324-0x23dc);}pos++;header_ptr->header_id=WMS_UDH_CONCAT_8;
+);return(0xd2+6622-0x1ab0);}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[(0x11a8+2291-0x1a9b)
-]+(0x1d6d+872-0x20d4));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0xd86+290-0xea8);if(udh==NULL||header_ptr
-==NULL){at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");
-return(0x2156+1322-0x2680);}if(udh[pos]<(0x278+3310-0xf62)){at_print(LOG_DEBUG,
+pos++];header_ptr->u.concat_8.seq_num=udh[pos++];return(udh[(0x1ac9+1252-0x1fad)
+]+(0xacc+4638-0x1ce9));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
+wms_udh_s_type*header_ptr){UINT8 pos=(0xfdd+3292-0x1cb9);if(udh==NULL||
+header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x2004+1086-0x2442);}if(
+udh[pos]<(0xd66+6444-0x268e)){at_print(LOG_DEBUG,
"\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(0xe00+553-0x1029);}if(udh[pos+(0xb71+3805-0x1a4b)]==
-(0x1795+3249-0x2446)||udh[pos+(0xbe6+3398-0x1928)]==(0xeb7+4624-0x20c7)||udh[pos
-+(0x207d+1616-0x26c9)]>udh[pos+(0x17eb+515-0x19eb)])return(0x1432+1499-0x1a0d);
+,udh[pos]);return(0xe78+3090-0x1a8a);}if(udh[pos+(0x1961+1670-0x1fe4)]==
+(0xa99+384-0xc19)||udh[pos+(0x1083+3120-0x1caf)]==(0xd39+4420-0x1e7d)||udh[pos+
+(0xea8+1809-0x15b5)]>udh[pos+(0x4e8+4940-0x1831)])return(0x1231+1435-0x17cc);
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<<(0x19c1+1203-0x1e6c))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[
-pos++];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[(0xa5d+1462-0x1013)
-]+(0x338+9164-0x2703));}static UINT8 wms_ts_udh_decode_first_seg_check(const
-UINT8 len,const UINT8*data,UINT8*is_first_segment_ptr){UINT8 pos=
-(0x59a+5506-0x1b1c);UINT8 num_headers=(0x50b+7109-0x20d0);UINT8 udhl=
-(0xdd3+3521-0x1b94);UINT8 iedl=(0x9eb+6106-0x21c5);UINT8 iei=(0xb0d+1519-0x10fc)
-;*is_first_segment_ptr=TRUE;if(data==NULL||data[pos]==(0x772+1842-0xea4)||len==
-(0x729+4391-0x1850)){at_print(LOG_DEBUG,
+msg_ref<<(0xc9+334-0x20f))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[pos++
+];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[(0x39a+3191-0x1011)]+
+(0xc4+6760-0x1b2b));}static UINT8 wms_ts_udh_decode_first_seg_check(const UINT8
+len,const UINT8*data,UINT8*is_first_segment_ptr){UINT8 pos=(0x116+6794-0x1ba0);
+UINT8 num_headers=(0xd4d+5840-0x241d);UINT8 udhl=(0x643+5342-0x1b21);UINT8 iedl=
+(0x453+7883-0x231e);UINT8 iei=(0x7b2+5016-0x1b4a);*is_first_segment_ptr=TRUE;if(
+data==NULL||data[pos]==(0x1c1+1289-0x6ca)||len==(0x5e0+110-0x64e)){at_print(
+LOG_DEBUG,
"\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+(0xbca+5336-0x20a1)];if(iei==
-WMS_UDH_CONCAT_16){if(data[pos+(0x275+2689-0xcf1)]!=(0x18c6+1952-0x2065)){
+WMS_MAX_UD_HEADERS)){iei=data[pos];iedl=data[pos+(0x1047+267-0x1151)];if(iei==
+WMS_UDH_CONCAT_16){if(data[pos+(0x278+6580-0x1c27)]!=(0xb51+4860-0x1e4c)){
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+=((0xd08+295-0xe2d)+iedl);}}return TRUE;}static UINT8
+;pos+=((0xd65+1128-0x11cb)+iedl);}}return TRUE;}static UINT8
wms_ts_decode_udh_special_sm(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x20+9734-0x2626);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x16c6+3845-0x25cb);}if(
-udh[pos]<(0x455+4523-0x15fe)){at_print(LOG_DEBUG,
+pos=(0x1be9+1726-0x22a7);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1735+3322-0x242f);}if(
+udh[pos]<(0xc66+604-0xec0)){at_print(LOG_DEBUG,
"\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(0x625+1732-0xce9);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x2f+8487-0x2156);}pos++;header_ptr->header_id=
WMS_UDH_SPECIAL_SM;header_ptr->u.special_sm.msg_waiting=(
-wms_gw_msg_waiting_e_type)((udh[pos]>>(0x1e0a+1137-0x2274)==(0x5b5+8205-0x25c2))
-?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++]&(0xf67+5481-0x2451)
-);header_ptr->u.special_sm.message_count=udh[pos++];return(udh[
-(0x5a7+7227-0x21e2)]+(0x1e2b+341-0x1f7f));}static UINT8 wms_ts_decode_udh_port_8
-(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x10f8+4433-0x2249);if(
-udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1383+159-0x1422);}if(
-udh[pos]<(0xf75+1329-0x14a4)){at_print(LOG_DEBUG,
+wms_gw_msg_waiting_e_type)((udh[pos]>>(0x192c+2459-0x22c0)==(0x1f05+1876-0x2659)
+)?WMS_GW_MSG_WAITING_DISCARD:WMS_GW_MSG_WAITING_STORE);header_ptr->u.special_sm.
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(udh[pos++]&(0x4ff+2339-0xda3))
+;header_ptr->u.special_sm.message_count=udh[pos++];return(udh[
+(0x117f+4578-0x2361)]+(0x1cfc+345-0x1e54));}static UINT8
+wms_ts_decode_udh_port_8(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
+(0x504+1400-0xa7c);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1e66+1541-0x246b);}if(
+udh[pos]<(0x5b8+6259-0x1e29)){at_print(LOG_DEBUG,
"\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(0x1605+138-0x168f);}pos++;header_ptr->header_id=WMS_UDH_PORT_8
+,udh[pos]);return(0x2e5+8387-0x23a8);}pos++;header_ptr->header_id=WMS_UDH_PORT_8
;header_ptr->u.wap_8.dest_port=udh[pos++];header_ptr->u.wap_8.orig_port=udh[pos
-++];return(udh[(0x1d41+1781-0x2436)]+(0x10a1+4557-0x226d));}static UINT8
+++];return(udh[(0x2d2+247-0x3c9)]+(0xe03+3509-0x1bb7));}static UINT8
wms_ts_decode_udh_port16(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
-(0x122f+3300-0x1f13);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x3e3+3707-0x125e);}if(
-udh[pos]<(0x14d0+575-0x170b)){at_print(LOG_DEBUG,
+(0x3a8+1920-0xb28);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x4e7+1711-0xb96);}if(udh
+[pos]<(0x2057+1575-0x267a)){at_print(LOG_DEBUG,
"\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(0x122a+163-0x12cd);}header_ptr->header_id=WMS_UDH_PORT_16;pos
+,udh[pos]);return(0x474+4323-0x1557);}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<<(0x44f+8678-0x262d))|udh[pos++];
+UINT16)(header_ptr->u.wap_16.dest_port<<(0x598+4837-0x1875))|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<<(0xd54+468-0xf20))|udh[pos++];return(udh[
-(0x1106+4446-0x2264)]+(0xe28+5418-0x2351));}static UINT8
+)(header_ptr->u.wap_16.orig_port<<(0xbd9+1138-0x1043))|udh[pos++];return(udh[
+(0x95+9381-0x253a)]+(0xdaa+2620-0x17e5));}static UINT8
wms_ts_decode_udh_text_formatting(const UINT8*udh,wms_udh_s_type*header_ptr){
-UINT8 pos=(0xa47+1506-0x1029);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG
-,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1d57+519-0x1f5e);}if(
-udh[pos]<(0x103f+4005-0x1fe1)){at_print(LOG_DEBUG,
+UINT8 pos=(0x37b+6700-0x1da7);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG
+,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1975+2208-0x2215);}if(
+udh[pos]<(0x111f+877-0x1489)){at_print(LOG_DEBUG,
"\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(0x652+2704-0x10e2);}if(udh[pos]>=(0x1550+3575-0x2343)){
+,udh[pos]);return(0x9c5+2948-0x1549);}if(udh[pos]>=(0x12c9+1260-0x17b1)){
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]&
-(0x36b+1578-0x992));header_ptr->u.text_formating.font_size=(
-wms_udh_font_size_e_type)((udh[pos]&(0xa5b+4598-0x1c45))>>(0xf1+5162-0x1519));
-header_ptr->u.text_formating.style_bold=(udh[pos]&(0x662+6289-0x1ee3))>>
-(0x993+32-0x9af);header_ptr->u.text_formating.style_italic=(udh[pos]&
-(0xcf2+6613-0x26a7))>>(0x2f5+6250-0x1b5a);header_ptr->u.text_formating.
-style_underlined=(udh[pos]&(0x17b9+1053-0x1b96))>>(0x12b+3251-0xdd8);header_ptr
-->u.text_formating.style_strikethrough=(udh[pos]&(0xa78+5328-0x1ec8))>>
-(0x621+1643-0xc85);pos++;if(header_ptr->u.text_formating.is_color_present){
+(0x1979+12-0x1982));header_ptr->u.text_formating.font_size=(
+wms_udh_font_size_e_type)((udh[pos]&(0x7b9+3684-0x1611))>>(0xc6+11-0xcf));
+header_ptr->u.text_formating.style_bold=(udh[pos]&(0x3ea+3341-0x10e7))>>
+(0x90a+899-0xc89);header_ptr->u.text_formating.style_italic=(udh[pos]&
+(0x1325+1624-0x195d))>>(0x1518+235-0x15fe);header_ptr->u.text_formating.
+style_underlined=(udh[pos]&(0x13a2+3086-0x1f70))>>(0x7e6+6279-0x2067);header_ptr
+->u.text_formating.style_strikethrough=(udh[pos]&(0xd93+4488-0x1e9b))>>
+(0x1688+349-0x17de);pos++;if(header_ptr->u.text_formating.is_color_present){
header_ptr->u.text_formating.text_color_foreground=(wms_udh_text_color_e_type)(
-udh[pos]&(0x2a1+2189-0xb1f));header_ptr->u.text_formating.text_color_background=
-(wms_udh_text_color_e_type)((udh[pos]&(0xfb0+1201-0x1371))>>(0x16fa+1580-0x1d22)
-);pos++;}return(udh[(0x209b+1563-0x26b6)]+(0x507+6803-0x1f99));}static UINT8
+udh[pos]&(0x951+1404-0xebe));header_ptr->u.text_formating.text_color_background=
+(wms_udh_text_color_e_type)((udh[pos]&(0x139c+4477-0x2429))>>(0x1eb9+627-0x2128)
+);pos++;}return(udh[(0x1879+3143-0x24c0)]+(0x3f2+2499-0xdb4));}static UINT8
wms_ts_decode_udh_pre_def_sound(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
- pos=(0x127d+4115-0x2290);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x435+7975-0x235c);}if(
-udh[pos]<(0xa29+1889-0x1188)){at_print(LOG_DEBUG,
+ pos=(0x27d+1377-0x7de);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1085+5281-0x2526);}if(
+udh[pos]<(0x1a9+9332-0x261b)){at_print(LOG_DEBUG,
"\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(0xcb9+5940-0x23ed);}pos++;header_ptr->header_id=
+,udh[pos]);return(0xe49+572-0x1085);}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[(0xf54+4986-0x22ce)]+
-(0xded+190-0xeaa));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8*
-udh,wms_udh_s_type*header_ptr){UINT8 pos=(0xf7+6255-0x1966),j;if(udh==NULL||
+->u.pre_def_sound.snd_number=udh[pos++];return(udh[(0x15d3+2260-0x1ea7)]+
+(0xc9b+3352-0x19b2));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8*
+udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x12bd+2906-0x1e17),j;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1388+1494-0x195e);}if(
-udh[pos]==(0x33c+6134-0x1b32)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x19d+3946-0x1107);}if(
+udh[pos]==(0x552+2087-0xd79)){at_print(LOG_DEBUG,
"\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(0x4b7+327-0x5fe);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
-header_ptr->u.user_def_sound.data_length=udh[pos++]-(0xeb9+4414-0x1ff6);
+);return(0x322+6419-0x1c35);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
+header_ptr->u.user_def_sound.data_length=udh[pos++]-(0xc3f+4633-0x1e57);
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(0xc73+4651-0x1e9e);}memset(header_ptr->u.
-user_def_sound.user_def_sound,(0x10b5+2629-0x19fb),WMS_UDH_MAX_SND_SIZE);for(j=
-(0x23fb+639-0x267a);j<header_ptr->u.user_def_sound.data_length;j++)header_ptr->u
+,header_ptr->header_id);return(0xe7f+449-0x1040);}memset(header_ptr->u.
+user_def_sound.user_def_sound,(0x1cf2+2432-0x2573),WMS_UDH_MAX_SND_SIZE);for(j=
+(0xae3+4102-0x1ae9);j<header_ptr->u.user_def_sound.data_length;j++)header_ptr->u
.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=(0xb86+142-0xc14);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xfe2+54-0x1018);}if(udh[
-pos]!=(0x18a2+1331-0x1dd3)){at_print(LOG_DEBUG,
+pos=(0x1365+2114-0x1ba7);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x80+1068-0x4ac);}if(udh[
+pos]!=(0x67f+6858-0x2147)){at_print(LOG_DEBUG,
"\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(0x1d33+2483-0x26e6);}pos++;header_ptr->header_id=
+,udh[pos]);return(0xcf+4304-0x119f);}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=(0x918+219-0x9f3),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1132+850-0x1484);}if(
+pos=(0x20f2+206-0x21c0),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x210d+527-0x231c);}if(
udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_LARGE_BITMAP_SIZE+
-(0x146d+2421-0x1de1))){at_print(LOG_DEBUG,
+(0x543+4528-0x16f2))){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(0xfc+8618-0x22a6);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
-pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0xdb5+5959-0x24fc);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0xf1c+2192-0x17ac);k<
+,udh[pos]);return(0xb7f+2024-0x1367);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
+pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0xc48+5713-0x2299);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0xd58+3182-0x19c6);k<
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=(0x105+6350-0x19d3),j,k;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0x5f6+1124-0xa5a),j,k;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1115+3411-0x1e68);}if(
-udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+
-(0x2108+379-0x2282))){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x151c+65-0x155d);}if(udh
+[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+(0x1412+1502-0x19ef))
+){at_print(LOG_DEBUG,
"\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(0x2c8+7692-0x20d4);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
-pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0x59b+1333-0xad0);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x169b+61-0x16d8);k<
+,udh[pos]);return(0x4e5+4845-0x17d2);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
+pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0xbef+6057-0x2398);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x227+1731-0x8ea);k<
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=(0xbd5+2671-0x1644),j;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0x218+2262-0xaee),j;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x682+1459-0xc35);}if(udh
-[pos]!=WMS_UDH_LARGE_PIC_SIZE+(0x835+4899-0x1b57)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1474+1444-0x1a18);}if(
+udh[pos]!=WMS_UDH_LARGE_PIC_SIZE+(0x33a+2464-0xcd9)){at_print(LOG_DEBUG,
"\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(0x1708+709-0x19cd);}header_ptr->header_id=
+,udh[pos]);return(0x996+7157-0x258b);}header_ptr->header_id=
WMS_UDH_LARGE_PICTURE;pos++;header_ptr->u.large_picture.position=udh[pos++];for(
-j=(0x1848+961-0x1c09);j<WMS_UDH_LARGE_PIC_SIZE;j++)header_ptr->u.large_picture.
+j=(0x48a+8231-0x24b1);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=(0x276+2787-0xd59),j;if(udh
-==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1b7f+2572-0x258b);}if(
-udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0xe32+578-0x1073)){at_print(LOG_DEBUG,
+const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0xbd5+6791-0x265c),j;if(
+udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1363+3197-0x1fe0);}if(
+udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0x48f+3650-0x12d0)){at_print(LOG_DEBUG,
"\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(0x1e14+585-0x205d);}header_ptr->header_id=
+,udh[pos]);return(0x14aa+3148-0x20f6);}header_ptr->header_id=
WMS_UDH_SMALL_PICTURE;pos++;header_ptr->u.small_picture.position=udh[pos++];for(
-j=(0x12ac+1195-0x1757);j<WMS_UDH_SMALL_PIC_SIZE;j++)header_ptr->u.small_picture.
+j=(0x906+460-0xad2);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=(0x1f9a+1020-0x2396),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(0xb2d+2443-0x14b8);}if(
-udh[pos]>WMS_UDH_VAR_PIC_SIZE+(0x1c04+2375-0x2548)){at_print(LOG_DEBUG,
+UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x1b0+4540-0x136c),j,pic_size;if
+(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x11d2+1549-0x17df);}if(
+udh[pos]>WMS_UDH_VAR_PIC_SIZE+(0x1b4+6666-0x1bbb)){at_print(LOG_DEBUG,
"\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(0xaa4+7154-0x2696);}if((udh[pos]-(0x16c3+3394-0x2402))!=(udh[
-pos+(0x69c+3172-0x12fe)]*udh[pos+(0x1875+564-0x1aa6)])){at_print(LOG_DEBUG,
+,udh[pos]);return(0xb2+1965-0x85f);}if((udh[pos]-(0xfd9+2482-0x1988))!=(udh[pos+
+(0x60d+7410-0x22fd)]*udh[pos+(0x15cf+3711-0x244b)])){at_print(LOG_DEBUG,
"\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(0x170+3434-0xeda);}pic_size=udh[pos++]-(0x31a+8974-0x2625);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++]*(0x6c7+5949-0x1dfc));
-header_ptr->u.var_picture.height=udh[pos++];for(j=(0x17fa+2079-0x2019);j<
+);return(0x10b2+3427-0x1e15);}pic_size=udh[pos++]-(0x1848+1838-0x1f73);
+header_ptr->header_id=WMS_UDH_VAR_PICTURE;header_ptr->u.var_picture.position=udh
+[pos++];header_ptr->u.var_picture.width=(UINT8)(udh[pos++]*(0x1a17+1587-0x2042))
+;header_ptr->u.var_picture.height=udh[pos++];for(j=(0x1518+255-0x1617);j<
pic_size&&j<WMS_UDH_VAR_PIC_SIZE;j++)header_ptr->u.var_picture.data[j]=udh[pos++
];return pos;}static UINT8 wms_ts_decode_udh_user_prompt(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x14cf+1947-0x1c6a);if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0x14ec+2531-0x1ecf);if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x962+3853-0x186f);}if(
-udh[pos]<(0x161+9602-0x26e2)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x393+3197-0x1010);}if(
+udh[pos]<(0x847+4255-0x18e5)){at_print(LOG_DEBUG,
"\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(0x16c+5682-0x179e);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x1299+2690-0x1d1b);}pos++;header_ptr->header_id=
WMS_UDH_USER_PROMPT;header_ptr->u.user_prompt.number_of_objects=udh[pos++];
-return(udh[(0x21e3+606-0x2441)]+(0x3f3+2405-0xd57));}static UINT8
+return(udh[(0x208a+1648-0x26fa)]+(0x525+2347-0xe4f));}static UINT8
wms_ts_decode_udh_eo(const UINT8*udh,UINT8 first_segment,wms_udh_s_type*
-header_ptr){UINT8 pos=(0xc1a+1093-0x105f),udh_length;if(udh==NULL||header_ptr==
+header_ptr){UINT8 pos=(0xf93+1090-0x13d5),udh_length;if(udh==NULL||header_ptr==
NULL){at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0xe9f+1277-0x139c);}if(udh[pos]==(0xbe3+5736-0x224b)){at_print(LOG_DEBUG,
+(0x108+7059-0x1c9b);}if(udh[pos]==(0x1279+3947-0x21e4)){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(0xf0f+3195-0x1b8a);}udh_length=udh[pos++];header_ptr->header_id=
+);return(0x18f6+2531-0x22d9);}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
-(0x2529+191-0x25e8);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
-length=udh[pos++]<<(0x20d+4873-0x150e);header_ptr->u.eo.length|=udh[pos++];
+(0xddd+5463-0x2334);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
+length=udh[pos++]<<(0x130c+4144-0x2334);header_ptr->u.eo.length|=udh[pos++];
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++]<<(0x2ff+7414-0x1fed);header_ptr
+udh[pos++];header_ptr->u.eo.position=udh[pos++]<<(0xa96+2782-0x156c);header_ptr
->u.eo.position|=udh[pos++];}header_ptr->u.eo.content.length=(udh_length-pos)+
-(0x25c+5621-0x1850);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=
-(0x77b+6261-0x1ff0);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x9e7+2988-0x1593);}if(
-udh[pos]<(0x1d5+6407-0x1adb)){at_print(LOG_DEBUG,
+(0x25d+542-0x47a);memcpy(header_ptr->u.eo.content.data,udh+pos,header_ptr->u.eo.
+content.length);pos+=header_ptr->u.eo.content.length;return pos;}static UINT8
+wms_ts_decode_udh_rfc822(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
+(0xf1a+1497-0x14f3);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x9f2+2731-0x149d);}if(
+udh[pos]<(0xe8c+148-0xf1f)){at_print(LOG_DEBUG,
"\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(0xbf9+3913-0x1b42);}pos++;header_ptr->header_id=WMS_UDH_RFC822
-;header_ptr->u.rfc822.header_length=udh[pos++];return(udh[(0x7f0+3328-0x14f0)]+
-(0xf1+6363-0x19cb));}static UINT8 wms_ts_decode_udh_nat_lang_ss(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x341+7768-0x2199);if(udh==NULL||
-header_ptr==NULL){return(0x10d1+316-0x120d);}if(udh[pos]!=
-WMS_UDH_OCTETS_NAT_LANG_SS){return(0x6e8+5783-0x1d7f);}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(0x578+3554-0x135a);}header_ptr->u.
-nat_lang_ss.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
-(0x708+6727-0x214f)]+(0x7e8+563-0xa1a));}static UINT8
+,udh[pos]);return(0x1091+5677-0x26be);}pos++;header_ptr->header_id=
+WMS_UDH_RFC822;header_ptr->u.rfc822.header_length=udh[pos++];return(udh[
+(0x217+2175-0xa96)]+(0x1ba4+2837-0x26b8));}static UINT8
+wms_ts_decode_udh_nat_lang_ss(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
+pos=(0x48+9439-0x2527);if(udh==NULL||header_ptr==NULL){return(0xe40+4633-0x2059)
+;}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_SS){return(0x115c+3207-0x1de3);}pos++;
+header_ptr->header_id=WMS_UDH_NAT_LANG_SS;if((WMS_UDH_NAT_LANG_TURKISH>udh[pos])
+||(WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){return(0x17a2+1642-0x1e0c);}header_ptr
+->u.nat_lang_ss.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
+(0x12c0+3001-0x1e79)]+(0x6da+1138-0xb4b));}static UINT8
wms_ts_decode_udh_nat_lang_ls(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x1354+1571-0x1977);if(udh==NULL||header_ptr==NULL){return
-(0x1844+2820-0x2348);}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_LS){return
-(0x2b3+8033-0x2214);}pos++;header_ptr->header_id=WMS_UDH_NAT_LANG_LS;if((
+pos=(0x2c3+7299-0x1f46);if(udh==NULL||header_ptr==NULL){return
+(0xe3d+3858-0x1d4f);}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_LS){return
+(0xf78+1436-0x1514);}pos++;header_ptr->header_id=WMS_UDH_NAT_LANG_LS;if((
WMS_UDH_NAT_LANG_TURKISH>udh[pos])||(WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){
-return(0x1dfc+391-0x1f83);}header_ptr->u.nat_lang_ls.nat_lang_id=(
-wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[(0x4b8+589-0x705)]+
-(0x538+136-0x5bf));}static UINT8 wms_ts_decode_udh_other(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x1300+3943-0x2267),i=(0x1edd+1278-0x23db)
-;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x4da+1181-0x977);}if(udh
-[pos+(0x21a9+99-0x220b)]>WMS_UDH_OTHER_SIZE){at_print(LOG_DEBUG,
+return(0x16b7+3748-0x255b);}header_ptr->u.nat_lang_ls.nat_lang_id=(
+wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[(0x243+3538-0x1015)]+
+(0x2463+549-0x2687));}static UINT8 wms_ts_decode_udh_other(const UINT8*udh,
+wms_udh_s_type*header_ptr){UINT8 pos=(0x9a+3835-0xf95),i=(0x2f9+8346-0x2393);if(
+udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xae5+1315-0x1008);}if(
+udh[pos+(0xb71+305-0xca1)]>WMS_UDH_OTHER_SIZE){at_print(LOG_DEBUG,
"\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(0x150c+1422-0x1a9a);}header_ptr->header_id=(wms_udh_id_e_type)udh[pos];
+);return(0x1029+5574-0x25ef);}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=(0xced+4788-0x1fa1);i<header_ptr->u.other.
+header_length=udh[pos++];for(i=(0x242+1148-0x6be);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=(0x2fb+619-0x566);UINT8
-header_length=(0x24f8+285-0x2615),num_headers=(0x5f2+1148-0xa6e);UINT8 udhl;
-UINT8 first_segment=TRUE;if(data==NULL||len==(0x1ac+8525-0x22f9)||data[pos]==
-(0x5e7+4639-0x1806)||num_headers_ptr==NULL||udh_ptr==NULL){at_print(LOG_DEBUG,
+num_headers_ptr,wms_udh_s_type*udh_ptr){UINT8 pos=(0x1461+4694-0x26b7);UINT8
+header_length=(0x173+5214-0x15d1),num_headers=(0x106f+4160-0x20af);UINT8 udhl;
+UINT8 first_segment=TRUE;if(data==NULL||len==(0x19b7+1405-0x1f34)||data[pos]==
+(0x17b0+2738-0x2262)||num_headers_ptr==NULL||udh_ptr==NULL){at_print(LOG_DEBUG,
"\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(0xc3a+5915-0x2355);}udhl=data[pos];pos++;while((pos<udhl)&&(num_headers
-<WMS_MAX_UD_HEADERS)){switch(data[pos++]){case WMS_UDH_CONCAT_8:header_length=
-wms_ts_decode_udh_concat_8(data+pos,&udh_ptr[num_headers]);break;case
-WMS_UDH_CONCAT_16:header_length=wms_ts_decode_udh_concat16(data+pos,&udh_ptr[
-num_headers]);break;case WMS_UDH_SPECIAL_SM:header_length=
+);return(0x1081+3001-0x1c3a);}udhl=data[pos];pos++;while((pos<udhl)&&(
+num_headers<WMS_MAX_UD_HEADERS)){switch(data[pos++]){case WMS_UDH_CONCAT_8:
+header_length=wms_ts_decode_udh_concat_8(data+pos,&udh_ptr[num_headers]);break;
+case WMS_UDH_CONCAT_16:header_length=wms_ts_decode_udh_concat16(data+pos,&
+udh_ptr[num_headers]);break;case WMS_UDH_SPECIAL_SM:header_length=
wms_ts_decode_udh_special_sm(data+pos,&udh_ptr[num_headers]);break;case
WMS_UDH_PORT_8:header_length=wms_ts_decode_udh_port_8(data+pos,&udh_ptr[
num_headers]);break;case WMS_UDH_PORT_16:header_length=wms_ts_decode_udh_port16(
@@ -1865,66 +1864,66 @@
data+pos,&udh_ptr[num_headers]);break;}if((UINT16)pos+(UINT16)header_length>
WMS_MAX_LEN){at_print(LOG_DEBUG,
"\x6e\x75\x6d\x62\x65\x72\x20\x6f\x66\x20\x62\x79\x74\x65\x73\x20\x64\x65\x63\x6f\x64\x65\x64\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x55\x44\x48\x4c\x20\x76\x61\x6c\x75\x65\x20\x6f\x66\x20\x25\x64"
-,udhl);return(0x1887+1241-0x1d60);}else if(header_length!=(0x110+3410-0xe62)){
-pos+=header_length;num_headers++;}else{at_print(LOG_DEBUG,
+,udhl);return(0x1926+2015-0x2105);}else if(header_length!=(0xd6b+15-0xd7a)){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=(0xa43+3145-0x168c);return(0x1576+2572-0x1f82);
+,pos,data[pos]);*num_headers_ptr=(0xa21+4344-0x1b19);return(0x12f2+4376-0x240a);
}}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+(0x18d6+1131-0x1d40);}if(pos!=(udhl+(0xc65+6115-0x2447))){at_print(
+);pos=udhl+(0x11f6+5054-0x25b3);}if(pos!=(udhl+(0x849+7345-0x24f9))){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=(0x15c4+833-0x1905);udhl=(0x2112+1427-0x26a5);}if(num_headers>
-(0x2c7+4101-0x12cc)){*num_headers_ptr=num_headers;}return udhl;}UINT8
+);num_headers=(0x227+1526-0x81d);udhl=(0x119c+3881-0x20c5);}if(num_headers>
+(0xa9+1288-0x5b1)){*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=(0x9b0+131-0xa33);UINT8 fill_bits=(0x3b1+28-0x3cd);UINT8
-user_data_length;UINT8 user_data_header_length=(0x173+6906-0x1c6d);if(dcs==NULL
-||data==NULL||user_data==NULL){at_print(LOG_DEBUG,
+user_data){UINT8 i,pos=(0x90b+7313-0x259c);UINT8 fill_bits=(0x17e6+3127-0x241d);
+UINT8 user_data_length;UINT8 user_data_header_length=(0xaa3+6100-0x2277);if(dcs
+==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(0x2117+855-0x246e);}(void)memset(user_data,(0x38a+5536-0x192a),sizeof(
-wms_gw_user_data_s_type));if(len==(0x74+6360-0x194c)){return(0xb38+1093-0xf7d);}
-if(dcs->alphabet==WMS_GW_ALPHABET_7_BIT_DEFAULT){if(len>WMS_SMS_UDL_MAX_7_BIT){
-at_print(LOG_DEBUG,
+);return(0x13cf+1716-0x1a83);}(void)memset(user_data,(0x1f42+1345-0x2483),sizeof
+(wms_gw_user_data_s_type));if(len==(0x90b+2257-0x11dc)){return
+(0x1255+1157-0x16da);}if(dcs->alphabet==WMS_GW_ALPHABET_7_BIT_DEFAULT){if(len>
+WMS_SMS_UDL_MAX_7_BIT){at_print(LOG_DEBUG,
"\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(0xa1b+2667-0x1486);}user_data_length=len;if(user_data_header_present){
+);return(0x147c+4282-0x2536);}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(0xc2c+6055-0x23d3);}if(user_data_header_length>(0xfbb+3432-0x1d23)){
-fill_bits=((len*(0xfa5+2054-0x17a4))-((user_data_header_length+
-(0x620+1451-0xbca))*(0x851+35-0x86c)))%(0xb65+6086-0x2324);user_data_length=(
-UINT8)(((len*(0xf5d+4705-0x21b7))-((user_data_header_length+(0xcbb+5595-0x2295))
-*(0x1683+2071-0x1e92)))/(0x3bd+8944-0x26a6));pos=user_data_header_length+
-(0x32b+5874-0x1a1c);if(fill_bits!=(0x11ed+4736-0x246d)){fill_bits=
-(0xe30+5136-0x2238)-fill_bits;}}i=wms_ts_unpack_gw_7_bit_chars(&data[pos],
-user_data_length,WMS_MAX_LEN,fill_bits,user_data->sm_data);user_data->sm_len=
-user_data_length;}else{if(len>WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
+);return(0x1824+441-0x19dd);}if(user_data_header_length>(0x1c54+1260-0x2140)){
+fill_bits=((len*(0x986+5101-0x1d6c))-((user_data_header_length+
+(0x244+1481-0x80c))*(0xc6d+789-0xf7a)))%(0x925+5497-0x1e97);user_data_length=(
+UINT8)(((len*(0x1227+4061-0x21fd))-((user_data_header_length+
+(0x17a6+3278-0x2473))*(0x514+8468-0x2620)))/(0xc7a+555-0xe9e));pos=
+user_data_header_length+(0xdb1+463-0xf7f);if(fill_bits!=(0x16ab+2809-0x21a4)){
+fill_bits=(0x1c63+99-0x1cbe)-fill_bits;}}i=wms_ts_unpack_gw_7_bit_chars(&data[
+pos],user_data_length,WMS_MAX_LEN,fill_bits,user_data->sm_data);user_data->
+sm_len=user_data_length;}else{if(len>WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
"\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(0x14cd+2840-0x1fe5);}user_data_length=len;if(user_data_header_present){
+);return(0x8f8+247-0x9ef);}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(0x1544+3684-0x23a8);}pos+=user_data_header_length+(0x732+2676-0x11a5);
-user_data_length=(len-user_data_header_length)-(0xdff+1442-0x13a0);}memcpy(
+);return(0xc64+1857-0x13a5);}pos+=user_data_header_length+(0x24+1383-0x58a);
+user_data_length=(len-user_data_header_length)-(0x152a+2098-0x1d5b);}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=
-(0xd29+6590-0x26e7),i;const UINT8*data=ptRawTsData->data;if(ptRawTsData==NULL||
+(0x118f+3752-0x2037),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]&(0x1c0+429-0x36a))!=
-(0xb2f+3227-0x17ca)){printf(
+);return WMS_NULL_PTR_S;}else if((data[pos]&(0xb8c+1763-0x126c))!=
+(0x808+1409-0xd89)){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]&
-(0x922+3936-0x187e))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
-(0xd7a+796-0x1076))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
-(0x1c7c+1521-0x222d))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
-(0xe35+971-0x1180))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&deliver
-->address);if(i==(0x13b0+4562-0x2582)){printf(
+(0x256+8607-0x23f1))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
+(0xa99+3802-0x1953))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
+(0x1713+3651-0x2516))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
+(0xf11+6025-0x261a))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&
+deliver->address);if(i==(0x1355+3091-0x1f68)){printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x70\x61\x72\x61\x6d\x20\x73\x69\x7a\x65\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x64\x65\x6c\x69\x76\x65\x72"
);return WMS_INVALID_PARM_SIZE_S;}pos+=i;deliver->pid=(wms_pid_e_type)data[pos];
pos++;pos+=wms_ts_decode_dcs(data+pos,&deliver->dcs);if(deliver->dcs.
@@ -1932,75 +1931,75 @@
WMS_PID_RETURN_CALL){deliver->dcs.msg_waiting=WMS_GW_MSG_WAITING_STORE;deliver->
dcs.msg_waiting_active=TRUE;deliver->dcs.msg_waiting_kind=
WMS_GW_MSG_WAITING_VOICEMAIL;}}i=wms_ts_decode_timestamp(data+pos,&deliver->
-timestamp);if(i==(0x1540+3313-0x2231)){printf(
+timestamp);if(i==(0x2e2+6850-0x1da4)){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-(0xbb0+6305-0x2450)],data+pos,deliver->
+deliver->dcs,data[pos-(0x8b1+5378-0x1db2)],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=(0x8d5+5083-0x1cb0);if(data==NULL||validity==NULL){at_print(
-LOG_DEBUG,
+UINT8 i,pos=(0xc9+9498-0x25e3);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(0x1211+5176-0x2649);}else{switch(validity->format){case
-WMS_GW_VALIDITY_NONE:memset(validity,(0x1326+3987-0x22b9),sizeof(
+);return(0x126+5281-0x15c7);}else{switch(validity->format){case
+WMS_GW_VALIDITY_NONE:memset(validity,(0xeb4+1146-0x132e),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=
-(0x402+6107-0x1bdd),i;const UINT8*data;if(ptRawTsData==NULL||submit==NULL){
+(0x67b+3708-0x14f7),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]&(0x1976+1277-0x1e6f))?TRUE:FALSE;submit->validity.format=(
-wms_gw_validity_format_e_type)((data[pos]&(0x5d2+6830-0x2068))>>
-(0x6e6+2137-0xf3c));submit->status_report_enabled=(data[pos]&
-(0x1175+4135-0x217c))?TRUE:FALSE;submit->user_data_header_present=(data[pos]&
-(0xe81+4844-0x212d))?TRUE:FALSE;submit->reply_path_present=(data[pos]&
-(0xd5a+5707-0x2325))?TRUE:FALSE;pos++;submit->message_reference=data[pos];pos++;
-i=wms_ts_decode_address(&data[pos],&submit->address);if(i==(0x900+6822-0x23a6)){
+pos]&(0x1027+5130-0x242d))?TRUE:FALSE;submit->validity.format=(
+wms_gw_validity_format_e_type)((data[pos]&(0xdf0+3855-0x1ce7))>>
+(0x379+7233-0x1fb7));submit->status_report_enabled=(data[pos]&
+(0x1199+2508-0x1b45))?TRUE:FALSE;submit->user_data_header_present=(data[pos]&
+(0xf34+4622-0x2102))?TRUE:FALSE;submit->reply_path_present=(data[pos]&
+(0xe99+1191-0x12c0))?TRUE:FALSE;pos++;submit->message_reference=data[pos];pos++;
+i=wms_ts_decode_address(&data[pos],&submit->address);if(i==(0x1ec8+74-0x1f12)){
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==(0x1f04+1893-0x2669))){return WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=
-wms_ts_decode_gw_user_data(&submit->dcs,data[pos-(0x306+415-0x4a4)],data+pos,
+(i==(0xab0+2577-0x14c1))){return WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=
+wms_ts_decode_gw_user_data(&submit->dcs,data[pos-(0xac5+6687-0x24e3)],data+pos,
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=(0x8ac+2420-0x1220),i;const UINT8*data;if(ptRawTsData==NULL||status_report==
-NULL){printf(
+pos=(0x14d1+1541-0x1ad6),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]&
-(0x75a+4221-0x17d3)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]&
-(0x1526+2039-0x1cfd)?TRUE:FALSE;status_report->user_data_header_present=(data[
-pos]&(0x254b+79-0x255a))?TRUE:FALSE;pos++;status_report->message_reference=data[
-pos];pos++;i=wms_ts_decode_address(&data[pos],&status_report->address);if(i==
-(0x345+6178-0x1b67)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0xb3a+4412-0x1c72)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]&
+(0x377+493-0x544)?TRUE:FALSE;status_report->user_data_header_present=(data[pos]&
+(0x12a6+5144-0x267e))?TRUE:FALSE;pos++;status_report->message_reference=data[pos
+];pos++;i=wms_ts_decode_address(&data[pos],&status_report->address);if(i==
+(0x1bec+2305-0x24ed)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
wms_ts_decode_timestamp(data+pos,&status_report->timestamp);if(i==
-(0x1564+778-0x186e)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0x4fc+5320-0x19c4)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
wms_ts_decode_timestamp(data+pos,&status_report->discharge_time);if(i==
-(0x77a+8018-0x26cc)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;status_report->
+(0xe65+1740-0x1531)){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)(0xe7d+5998-0x25eb);status_report->user_data.
-sm_len=(0x1708+3774-0x25c6);status_report->mask&=(0x1b40+1797-0x2146);if((
-status_report->mask!=(0xaa1+808-0xcca))&&(status_report->mask!=
-(0x1b02+100-0x1b66))){pos++;if(status_report->mask&WMS_TPDU_MASK_PID){
+status_report->pid=(wms_pid_e_type)(0x1cc+769-0x4cd);status_report->user_data.
+sm_len=(0xf8b+2368-0x18cb);status_report->mask&=(0x15ef+1128-0x1958);if((
+status_report->mask!=(0x107c+3907-0x1ec0))&&(status_report->mask!=
+(0x500+8283-0x255b))){pos++;if(status_report->mask&WMS_TPDU_MASK_PID){
status_report->pid=(wms_pid_e_type)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-(0x4af+2917-0x1013)],data+pos,status_report->
+&status_report->dcs,data[pos-(0xcab+6440-0x25d2)],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=
-(0x13d7+2048-0x1bd7);}return st;}wms_status_e_type wms_ts_decode(const
+(0x17b8+432-0x1968);}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 f4090de..9417556 100755
--- a/ap/app/zte_comm/sms/src/sms_db.c
+++ b/ap/app/zte_comm/sms/src/sms_db.c
@@ -100,85 +100,84 @@
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x68\x65\x72\x65\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x73\x69\x6d\x27\x3b"
#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=(0x4f+238-0x13d)
-;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={(0xbc0+2776-0x1698)};int tmp_i=
-(0xb46+5680-0x2176);
-#if (0x12af+4920-0x25e7)
-if(atoi(date.year)>(0x4cc+2765-0xf36)||atoi(date.year)<(0x2008+1185-0x24a9)){
+valid;char*strSQL;}T_zUfiSms_SQLMap;sqlite3*g_zUfiSms_DbPointer=
+(0x1308+1214-0x17c6);extern T_zUfiSms_ParaInfo g_zUfiSms_CurSmsPara;extern
+unsigned long g_zUfiSms_StoreCapablity[ZTE_WMS_MEMORY_MAX];extern
+T_zUfiSms_DelSms g_zUfiSms_DelMsg;static int isSucess(T_zUfiSms_DbResult dbRst){
+return dbRst==ZTE_WMS_DB_OK?ZUFI_SUCC:ZUFI_FAIL;}time_t zte_getsecond(
+T_zUfiSms_Date date){time_t timet;struct tm tmtime={(0x23f+2537-0xc28)};int
+tmp_i=(0x1486+1456-0x1a36);
+#if (0x1155+5035-0x2500)
+if(atoi(date.year)>(0x215+5255-0x1639)||atoi(date.year)<(0x1939+542-0x1b57)){
printf("[SMS] getsecond error, year out of range: %d!!!",atoi(date.year));return
-(0x10a+554-0x334);}
+(0x9c+2222-0x94a);}
#endif
-tmp_i=atoi(date.year);if(tmp_i<(0x18e6+967-0x1cad)||tmp_i>INT_MAX-
-(0x958+2887-0x149e)){at_print(LOG_ERR,
+tmp_i=atoi(date.year);if(tmp_i<(0x916+6739-0x2369)||tmp_i>INT_MAX-
+(0xd2c+3190-0x19a1)){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(0x1c47+2700-0x26d3);}tmtime.tm_year=tmp_i+(0x2087+3626-0x26e1)-
-(0x1f58+2592-0x220c);tmp_i=atoi(date.month);if(tmp_i<(0x14b+3370-0xe75)||tmp_i>
-INT_MAX-(0xc0d+3419-0x1967)){at_print(LOG_ERR,
+,tmp_i);return(0x6ef+6643-0x20e2);}tmtime.tm_year=tmp_i+(0x1da1+2824-0x20d9)-
+(0x1d67+4223-0x267a);tmp_i=atoi(date.month);if(tmp_i<(0x1689+2486-0x203f)||tmp_i
+>INT_MAX-(0x1d9f+1577-0x23c7)){at_print(LOG_ERR,
"\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(0x1263+1597-0x18a0);}tmtime.tm_mon=tmp_i-(0x2281+949-0x2635);
-tmp_i=atoi(date.day);if(tmp_i<(0x90f+5932-0x203b)||tmp_i>INT_MAX-
-(0x23b2+263-0x24b8)){at_print(LOG_ERR,
+,tmp_i);return(0x377+8942-0x2665);}tmtime.tm_mon=tmp_i-(0x174c+81-0x179c);tmp_i=
+atoi(date.day);if(tmp_i<(0x119c+4380-0x22b8)||tmp_i>INT_MAX-(0x622+3151-0x1270))
+{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(0xe78+3498-0x1c22);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);if
-(tmp_i<(0xe27+1641-0x1490)||tmp_i>INT_MAX-(0x16bf+3456-0x243e)){at_print(LOG_ERR
+,tmp_i);return(0xa2f+6728-0x2477);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);if
+(tmp_i<(0x10df+3456-0x1e5f)||tmp_i>INT_MAX-(0x129+9658-0x26e2)){at_print(LOG_ERR
,
"\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(0x3cd+3077-0xfd2);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if(
-tmp_i<(0x18bc+3336-0x25c4)||tmp_i>INT_MAX-(0x151c+2610-0x1f4d)){at_print(LOG_ERR
-,
+,tmp_i);return(0xf2f+600-0x1187);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if(
+tmp_i<(0xe6f+92-0xecb)||tmp_i>INT_MAX-(0x7f4+3513-0x15ac)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x6d\x69\x6e\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0x26a+6324-0x1b1e);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
-tmp_i<(0xb1c+3463-0x18a3)||tmp_i>INT_MAX-(0xaf+9532-0x25ea)){at_print(LOG_ERR,
+,tmp_i);return(0x1662+3230-0x2300);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
+tmp_i<(0x1020+4264-0x20c8)||tmp_i>INT_MAX-(0x19f+6393-0x1a97)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x73\x65\x63\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0x1991+730-0x1c6b);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
+,tmp_i);return(0x25a+343-0x3b1);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
return timet;}T_zUfiSms_DbResult zUfiSms_OpenDb(void){int retry_times=
-(0xa1b+4861-0x1d18);int open_rst=SQLITE_ERROR;if(g_zUfiSms_DbPointer!=NULL){
+(0x967+4028-0x1923);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++<(0x875+6115-0x204e));printf(
+SQLITE_CANTOPEN&&retry_times++<(0xbd5+2426-0x1545));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=(0x11bf+4478-0x233d);int sqlRst=SQLITE_ERROR;while(try_times++<
-(0xc46+6038-0x23d2)){sqlRst=sqlite3_exec(g_zUfiSms_DbPointer,exec_sql,callback,
+ try_times=(0x1fb8+902-0x233e);int sqlRst=SQLITE_ERROR;while(try_times++<
+(0x18a3+483-0x1a7c)){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(
-(0x1325+1681-0x19b5));}if(sqlRst!=SQLITE_OK){printf(
+(0x1793+305-0x18c3));}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)==(0x1a32+2899-0x2585)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZTE_WMS_TMP1_PATH,F_OK)==(0x314+8918-0x25ea)){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)!=(0xd96+3383-0x1acd)){slog(SMS_PRINT,SLOG_ERR,
+);if(remove(ZTE_WMS_TMP1_PATH)!=(0xbfc+2065-0x140d)){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[(0x329+8639-0x24d0)]={(0x15b1+3368-0x22d9)};char cmd[
-(0x11c5+4130-0x2167)]={(0xc0+1949-0x85d)};sc_cfg_get(
+);}}{char rnum_buf[(0x2d1+8284-0x2315)]={(0x172+5435-0x16ad)};char cmd[
+(0x9bc+1757-0x1019)]={(0x167d+2839-0x2194)};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)==(0x115d+1521-0x174e)){if(remove(ZTE_WMS_SEC_PATH)!=
-(0x1e41+522-0x204b)){slog(SMS_PRINT,SLOG_ERR,
+ZTE_WMS_TMP1_PATH,F_OK)==(0x5ea+7342-0x2298)){if(remove(ZTE_WMS_SEC_PATH)!=
+(0x94+2292-0x988)){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)!=(0x9ff+6101-0x21d4)){slog(
+);}if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=(0x15d6+4176-0x2626)){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>=(0x1845+1333-0x1d79)){if(zresult[
-(0x234a+119-0x23c1)]==NULL){*(int*)fvarg=(0xbe7+3338-0x18f1);}else{*(int*)fvarg=
-atoi(zresult[(0x9a5+7025-0x2516)]);}return SQLITE_OK;}else{return SQLITE_ERROR;}
+**zresult,char**lname){if(columns>=(0x12b5+2038-0x1aaa)){if(zresult[
+(0x8b0+3124-0x14e4)]==NULL){*(int*)fvarg=(0x89b+3394-0x15dd);}else{*(int*)fvarg=
+atoi(zresult[(0x606+6620-0x1fe2)]);}return SQLITE_OK;}else{return SQLITE_ERROR;}
}int zUfiSms_SetCmdStatus(T_zUfiSms_StatusInfo*ptSetStatus){T_zUfiSms_DbResult
result=ZTE_WMS_DB_OK;char*strSQL=NULL;printf(
"\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"
@@ -189,28 +188,28 @@
ptSetStatus->err_code,ptSetStatus->send_failed_count,ptSetStatus->
delete_failed_count);result=zUfiSms_ExecSql(strSQL,NULL,NULL);sqlite3_free(
strSQL);return isSucess(result);}void zUfiSms_SetParameterNv(T_zUfiSms_ParaInfo*
-para){if((0x690+3407-0x13df)==(int)para->status_report_on){sc_cfg_set(
+para){if((0xc1b+6779-0x2696)==(int)para->status_report_on){sc_cfg_set(
NV_REPORT_ENABLE,"\x30");}else{sc_cfg_set(NV_REPORT_ENABLE,"\x31");}if(
-(0xeb7+2367-0x17f6)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY,
-"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0x268+5207-0x16bf)==(int
-)para->outdate_delete_on){sc_cfg_set(NV_OUTDATE_DELETE,"\x30");}else{sc_cfg_set(
+(0xe12+5524-0x23a6)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY,
+"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0x375+2032-0xb65)==(int)
+para->outdate_delete_on){sc_cfg_set(NV_OUTDATE_DELETE,"\x30");}else{sc_cfg_set(
NV_OUTDATE_DELETE,"\x31");}if(*(para->default_store)!='\0'){sc_cfg_set(
-NV_DEFAULT_STORE,(char*)para->default_store);}if((0x604+5344-0x1ae4)==(int)para
+NV_DEFAULT_STORE,(char*)para->default_store);}if((0xd04+3347-0x1a17)==(int)para
->mem_store){sc_cfg_set(NV_PRA_MEMSTORE,"\x30");}else{sc_cfg_set(NV_PRA_MEMSTORE
-,"\x31");}if((0x1c4c+1214-0x200b)==(int)para->tp_validity_period){sc_cfg_set(
-NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0x1d88+2282-0x25c5)==(int)
+,"\x31");}if((0xd1a+3956-0x1b8f)==(int)para->tp_validity_period){sc_cfg_set(
+NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0x1d18+1401-0x21e4)==(int)
para->tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x6f\x6e\x65\x77\x65\x65\x6b");}
-else if((0x882+3259-0x1496)==(int)para->tp_validity_period){sc_cfg_set(NV_SMS_VP
-,"\x6f\x6e\x65\x5f\x64\x61\x79");}else if((0x638+1350-0xaef)==(int)para->
-tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x74\x77\x65\x6c\x76\x65\x68");}printf
-(
+else if((0x1080+4532-0x218d)==(int)para->tp_validity_period){sc_cfg_set(
+NV_SMS_VP,"\x6f\x6e\x65\x5f\x64\x61\x79");}else if((0x5d9+7529-0x22b3)==(int)
+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=
-(0x1ce5+2010-0x24bf);if(NULL==para){return-(0x85f+6725-0x22a3);}zUfiSms_ExecSql(
+(0x369+8708-0x256d);if(NULL==para){return-(0x43+4780-0x12ee);}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>(0x1ee1+1925-0x2666)){strSQL=
+zUfiSms_GetFirstColumnInt,&count);if(count>(0x1c2b+188-0x1ce7)){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->
@@ -223,13 +222,13 @@
mem_store,(int)para->tp_validity_period,(int)para->sendfail_retry_on,(int)para->
outdate_delete_on,para->default_store);}result=zUfiSms_ExecSql(strSQL,NULL,NULL)
;sqlite3_free(strSQL);if(result==ZTE_WMS_DB_OK){zUfiSms_SetParameterNv(para);
-return(0x2+7758-0x1e50);}return-(0xb16+6638-0x2503);}int zUfiSms_GetTotalCount(
-const char*pDbTable,int*pTotalCount){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;
+return(0x635+5724-0x1c91);}return-(0x3c6+7678-0x21c3);}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=-(0x341+4894-0x165e);zUfiSms_ExecSql(
+void){int max_sms_ref=-(0x855+330-0x99e);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",
@@ -238,20 +237,20 @@
content,int len){sqlite3_stmt*stmt=NULL;char*strSQL=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x69\x6e\x64\x2c\x43\x63\x5f\x53\x65\x71\x2c\x43\x63\x5f\x43\x6f\x6e\x74\x65\x6e\x74\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x71\x27\x3b"
,id,mem_store);(void)sqlite3_prepare(g_zUfiSms_DbPointer,strSQL,-
-(0xb50+277-0xc64),&stmt,(0xa1+8950-0x2397));while(SQLITE_ROW==sqlite3_step(stmt)
-){char*column_text=NULL;memset(pac->IndStr,(0x1117+5391-0x2626),sizeof(pac->
-IndStr));memset(pac->Seg_Seq,(0x1698+725-0x196d),sizeof(pac->Seg_Seq));if((
-column_text=sqlite3_column_text(stmt,(0x1dc+2899-0xd2f)))!=NULL)strncpy(pac->
-IndStr,column_text,sizeof(pac->FormatInd)-(0x13ef+3121-0x201f));if((column_text=
-sqlite3_column_text(stmt,(0xbfc+2132-0x144f)))!=NULL)strncpy(pac->Seg_Seq,
-column_text,sizeof(pac->FormatSeq)-(0x111b+4933-0x245f));if((column_text=
-sqlite3_column_text(stmt,(0x1400+1645-0x1a6b)))!=NULL)strncpy(content,
-column_text,len-(0x20f4+866-0x2455));printf(
+(0xc12+5113-0x200a),&stmt,(0x6cb+1489-0xc9c));while(SQLITE_ROW==sqlite3_step(
+stmt)){char*column_text=NULL;memset(pac->IndStr,(0x188+3456-0xf08),sizeof(pac->
+IndStr));memset(pac->Seg_Seq,(0x4d0+588-0x71c),sizeof(pac->Seg_Seq));if((
+column_text=sqlite3_column_text(stmt,(0xab1+3110-0x16d7)))!=NULL)strncpy(pac->
+IndStr,column_text,sizeof(pac->FormatInd)-(0xf25+3129-0x1b5d));if((column_text=
+sqlite3_column_text(stmt,(0xca2+4284-0x1d5d)))!=NULL)strncpy(pac->Seg_Seq,
+column_text,sizeof(pac->FormatSeq)-(0x822+7251-0x2474));if((column_text=
+sqlite3_column_text(stmt,(0x194a+1176-0x1de0)))!=NULL)strncpy(content,
+column_text,len-(0x1d7a+1535-0x2378));printf(
"\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(0xd3a+2591-0x1759);}int zUfiSms_UpdateConcatSmsToDb(T_zUfiSms_DbStoreData
-*db_data,const char*mem_store,char*format_concat,char*content,
-T_zUfiSms_DbStoreStr*pac,int concat_num,long id){char*sql=NULL;
+return(0x194a+2990-0x24f8);}int zUfiSms_UpdateConcatSmsToDb(
+T_zUfiSms_DbStoreData*db_data,const char*mem_store,char*format_concat,char*
+content,T_zUfiSms_DbStoreStr*pac,int concat_num,long id){char*sql=NULL;
T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;sql=sqlite3_mprintf(
"\x55\x50\x44\x41\x54\x45\x20\x73\x6d\x73\x20\x53\x45\x54\x20\x69\x6e\x64\x3d\x27\x25\x73\x27\x2c\x54\x61\x67\x3d\x27\x25\x64\x27\x2c\x43\x63\x5f\x53\x65\x71\x3d\x27\x25\x73\x27\x2c\x43\x63\x5f\x4e\x75\x6d\x3d\x27\x25\x64\x27\x2c\x20"
"\x43\x63\x5f\x43\x6f\x6e\x74\x65\x6e\x74\x3d\x27\x25\x71\x27\x2c\x43\x6f\x6e\x74\x65\x6e\x74\x3d\x27\x25\x71\x27\x2c\x59\x65\x61\x72\x3d\x27\x25\x71\x27\x2c\x4d\x6f\x6e\x74\x68\x3d\x27\x25\x71\x27\x2c\x20"
@@ -271,8 +270,8 @@
"\x43\x6f\x6e\x74\x65\x6e\x74\x2c\x53\x6d\x73\x5f\x52\x65\x70\x6f\x72\x74\x5f\x52\x65\x63\x69\x76\x65\x64\x2c\x44\x72\x61\x66\x74\x5f\x47\x72\x6f\x75\x70\x5f\x49\x64\x2c\x59\x65\x61\x72\x2c\x4d\x6f\x6e\x74\x68\x2c\x44\x61\x79\x2c\x48\x6f\x75\x72\x2c\x4d\x69\x6e\x75\x74\x65\x2c\x53\x65\x63\x6f\x6e\x64\x2c\x54\x69\x6d\x65\x5a\x6f\x6e\x65\x2c\x4d\x6b\x74\x69\x6d\x65\x2c\x44\x69\x73\x70\x6c\x61\x79\x4d\x6f\x64\x65\x29\x20"
"\x56\x41\x4c\x55\x45\x53\x28" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c\x20\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c\x20\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c\x20" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c\x20\x27\x25\x64\x27\x29\x3b"
,pac->FormatInd,mem_store,db_data->tag,db_data->number,db_data->concat_sms,
-db_data->concat_info[(0x1552+3000-0x210a)],db_data->concat_info[
-(0x7d1+7671-0x25c7)],pac->FormatSeq,concat_num,format_concat,db_data->tp_dcs,
+db_data->concat_info[(0xd8c+3952-0x1cfc)],db_data->concat_info[
+(0x869+5596-0x1e44)],pac->FormatSeq,concat_num,format_concat,db_data->tp_dcs,
db_data->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.
@@ -281,21 +280,21 @@
"\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=
-(0x605+1883-0xd60);int result=(0x15f9+865-0x195a);result=zUfiSms_ExecSql(
+(0x5d4+1237-0xaa9);int result=(0x135+5733-0x179a);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-
-(0x544+665-0x7dc);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap=
-(0x1582+1398-0x1af8);const T_zUfiSms_SQLMap SQL_MAP[]={{(0x1f84+141-0x2010),
-ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0x659+5028-0x19fc),ZTE_WMS_DEL_SIM_SQL},{
-(0x1024+1877-0x1778),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0x1609+2377-0x1f51),
-ZTE_WMS_CREATE_SMS_REP_SQL},{(0x119+9481-0x2621),ZTE_WMS_CREATE_PAR_SQL},{
-(0x1e3b+1780-0x252e),ZTE_WMS_CREATE_INFO_SQL},{(0xb70+6190-0x239d),
-ZTE_WMS_CREATE_CELL_BRO_SQL},{(0xef7+2934-0x1a6c),
-ZTE_WMS_CREATE_SEND_CONTENT_SQL},};for(iMap=(0x340+2959-0xecf);iMap<sizeof(
+(0x9ff+7356-0x26ba);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap=
+(0x107a+4597-0x226f);const T_zUfiSms_SQLMap SQL_MAP[]={{(0x37+6153-0x183f),
+ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0x9a9+5221-0x1e0d),ZTE_WMS_DEL_SIM_SQL},{
+(0x164+8708-0x2367),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0x946+2684-0x13c1),
+ZTE_WMS_CREATE_SMS_REP_SQL},{(0xa24+2176-0x12a3),ZTE_WMS_CREATE_PAR_SQL},{
+(0x21+4281-0x10d9),ZTE_WMS_CREATE_INFO_SQL},{(0xef6+3942-0x1e5b),
+ZTE_WMS_CREATE_CELL_BRO_SQL},{(0x207d+477-0x2259),
+ZTE_WMS_CREATE_SEND_CONTENT_SQL},};for(iMap=(0xdbf+1311-0x12de);iMap<sizeof(
SQL_MAP)/sizeof(T_zUfiSms_SQLMap);iMap++){if(SQL_MAP[iMap].valid==
-(0xc45+619-0xeaf)){if(zUfiSms_ExecSql(SQL_MAP[iMap].strSQL,NULL,NULL)!=
+(0x24b4+386-0x2635)){if(zUfiSms_ExecSql(SQL_MAP[iMap].strSQL,NULL,NULL)!=
ZTE_WMS_DB_OK){return ZUFI_FAIL;}}}return ZUFI_SUCC;}int zUfiSms_CreateAllTable(
void){if(ZTE_WMS_DB_OK!=zUfiSms_OpenDb()){printf(
"\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"
@@ -326,10 +325,10 @@
"\x27\x25\x64\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x20"
"\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x75\x27\x2c\x20\x27\x25\x64\x27\x29\x3b"
,ptDbSaveData->index,pStorePos,ptDbSaveData->tag,ptDbSaveData->number,
-ptDbSaveData->concat_sms,ptDbSaveData->concat_info[(0x8f7+1047-0xd0e)],
-ptDbSaveData->concat_info[(0x8e6+5908-0x1ff9)],ptDbSaveData->concat_info[
-(0x76f+6226-0x1fbf)],ptDbSaveData->tp_dcs,ptDbSaveData->msg_ref,pContent,"\x30",
-ptDbSaveData->draft_group_id,ptDbSaveData->julian_date.year,ptDbSaveData->
+ptDbSaveData->concat_sms,ptDbSaveData->concat_info[(0x433+4934-0x1779)],
+ptDbSaveData->concat_info[(0x158c+4283-0x2646)],ptDbSaveData->concat_info[
+(0x1259+3963-0x21d2)],ptDbSaveData->tp_dcs,ptDbSaveData->msg_ref,pContent,"\x30"
+,ptDbSaveData->draft_group_id,ptDbSaveData->julian_date.year,ptDbSaveData->
julian_date.month,ptDbSaveData->julian_date.day,ptDbSaveData->julian_date.hour,
ptDbSaveData->julian_date.min,ptDbSaveData->julian_date.sec,ptDbSaveData->
julian_date.timezone,(unsigned int)zte_getsecond(ptDbSaveData->julian_date),
@@ -350,25 +349,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>=(0x12f8+5058-0x26b9)&&fvarg!=NULL){if(zresult[
-(0x185+3073-0xd86)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
-strncpy(para->buf_addr,zresult[(0x638+5955-0x1d7b)],para->buf_len-
-(0x11f+232-0x206));return SQLITE_OK;}}return SQLITE_ERROR;}int
+zresult,char**lname){if(columns>=(0x1ba2+525-0x1dae)&&fvarg!=NULL){if(zresult[
+(0x32+6137-0x182b)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
+strncpy(para->buf_addr,zresult[(0x4f0+2212-0xd94)],para->buf_len-
+(0x1517+3041-0x20f7));return SQLITE_OK;}}return SQLITE_ERROR;}int
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={
-(0x2d1+6501-0x1c36)};char*strSQL=NULL;if(NULL==item||NULL==item_data){return
+(0x9a3+4217-0x1a1c)};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)||((0xc2f+264-0xd37)==strcmp(
+sqlite3_free(strSQL);if((ZTE_WMS_DB_OK!=result)||((0x7ed+4395-0x1918)==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[
-(0x37b+6857-0x1dc4)]={(0x13ea+4056-0x23c2)};snprintf(sql,sizeof(sql),
+(0x1766+3837-0x25e3)]={(0xd58+2299-0x1653)};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-
-(0xce7+763-0xfe1)]);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}int
+(0x492+7193-0x20aa)]);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(
@@ -377,11 +376,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=(0xd78+1713-0x1429);printf(
+);return WMS_CMD_FAILED;}}else{int i=(0x44f+105-0x4b8);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=(0x718+2636-0x1164);i<g_zUfiSms_DelMsg.
-nv_count;i++){char sql[(0x1c8b+2139-0x2466)]={(0x12fd+1212-0x17b9)};snprintf(sql
-,sizeof(sql),
+,g_zUfiSms_DelMsg.nv_count);for(i=(0x1d89+1458-0x233b);i<g_zUfiSms_DelMsg.
+nv_count;i++){char sql[(0xf57+2415-0x1846)]={(0x1a10+2395-0x236b)};snprintf(sql,
+sizeof(sql),
"\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(
@@ -389,38 +388,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[(0xe8b+757-0x1100)]={(0x1841+959-0x1c00)};
-T_zUfiSms_BufInfo buf_info={(0x230+4383-0x134f)};char str_index[
-(0x1d09+2139-0x2562)*WMS_MESSAGE_LIST_MAX]={(0x1a8+2239-0xa67)};buf_info.
+ptModifyTag,int is_cc){char sql[(0x232+5719-0x1809)]={(0x14b5+2499-0x1e78)};
+T_zUfiSms_BufInfo buf_info={(0xfc+7665-0x1eed)};char str_index[
+(0x104c+5600-0x262a)*WMS_MESSAGE_LIST_MAX]={(0x61d+4387-0x1740)};buf_info.
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((0x1e24+685-0x20d0)==is_cc){int i=(0xab8+3537-0x1889);int
- j=(0x18b0+2849-0x23d1);int count=(0x1875+3547-0x2650);char**out_result=NULL;
-count=zUfiSms_SplitString(str_index,&out_result,((char)(0x13f2+749-0x16a4)));for
-(i=(0x1410+2829-0x1f1d);i<count;i++){if((0x9c4+1068-0xdf0)!=strcmp(out_result[i]
-,"")){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->
-num_of_indices=j;free(out_result);}else{ptModifyTag->indices[(0x17f1+17-0x1802)]
-=atoi(str_index);ptModifyTag->num_of_indices=(0x28d+7000-0x1de4);}ptModifyTag->
-total_indices=ptModifyTag->num_of_indices;printf(
+);return ZUFI_FAIL;}if((0x4b2+5528-0x1a49)==is_cc){int i=(0x16b1+4120-0x26c9);
+int j=(0x586+4262-0x162c);int count=(0x6b8+940-0xa64);char**out_result=NULL;
+count=zUfiSms_SplitString(str_index,&out_result,((char)(0x8d+215-0x129)));for(i=
+(0x47+9058-0x23a9);i<count;i++){if((0x1b33+578-0x1d75)!=strcmp(out_result[i],"")
+){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->num_of_indices=j;
+free(out_result);}else{ptModifyTag->indices[(0xe49+5772-0x24d5)]=atoi(str_index)
+;ptModifyTag->num_of_indices=(0x97+5824-0x1756);}ptModifyTag->total_indices=
+ptModifyTag->num_of_indices;printf(
"\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[(0x4a6+1351-0x96d)]={(0x2e7+3036-0xec3)};int is_cc=(0xb6b+4335-0x1c5a);
-T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;snprintf(sql,sizeof(sql),
+char sql[(0x7c1+3155-0x1394)]={(0x1fd+1240-0x6d5)};int is_cc=
+(0x1357+4087-0x234e);T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;snprintf(sql,sizeof
+(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-(0x1333+480-0x1512);}return is_cc;}int
+,ZTE_WMS_DB_SMS_TABLE);return-(0xd41+2707-0x17d3);}return is_cc;}int
zUfiSms_UpdateSmsTagInDb(unsigned long id,unsigned int tags){char sql[
-(0x9a7+6283-0x21b2)]={(0x3b0+4986-0x172a)};snprintf(sql,sizeof(sql),
+(0x952+4085-0x18c7)]={(0x8f3+3531-0x16be)};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[
-(0x1e55+605-0x2032)]={(0x9f6+5001-0x1d7f)};if(pTotalCount==NULL){return
+(0xcd3+4788-0x1f07)]={(0x347+4217-0x13c0)};if(pTotalCount==NULL){return
ZUFI_FAIL;}if(mem_store==ZTE_WMS_MEMORY_MAX){snprintf(sql,sizeof(sql),
"\x53\x45\x4c\x45\x43\x54\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x46\x52\x4f\x4d\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x54\x61\x67\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_SMS_TABLE,tags);}else if(mem_store==ZTE_WMS_MEMORY_NV){snprintf(sql,
@@ -430,17 +430,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[(0x84+2445-0x991)]={
-(0xbf8+4975-0x1f67)};snprintf(sql,sizeof(sql),
+result);}int zUfiSms_DeleteDraftSms(long iSmsId){char sql[(0x1200+1150-0x15fe)]=
+{(0x1424+640-0x16a4)};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[(0x6bd+960-0x9fd)]={
-(0x13a1+1244-0x187d)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0xaca+4257-0x1b6b);}
+int zUfiSms_SetConcatMaxRefer(int ref){char sql[(0xd2+2801-0xb43)]={
+(0x889+3937-0x17ea)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0x8a5+6440-0x21cd);}
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[(0xfa2+1670-0x15a8)]={
-(0x1dca+1037-0x21d7)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x559+2886-0x109f);}
+;}int zUfiSms_SetMaxReference(int ref){char sql[(0xba1+6528-0x24a1)]={
+(0x5ec+8257-0x262d)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x149d+4073-0x2486);}
snprintf(sql,sizeof(sql),
"\x55\x50\x44\x41\x54\x45\x20\x25\x73\x20\x53\x45\x54\x20\x4d\x61\x78\x5f\x53\x6d\x73\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x31\x3b"
,ZTE_WMS_DB_PARAMETER_TABLE,ref);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL))
@@ -453,74 +453,75 @@
->hour,ptSmsDate->min,ptSmsDate->sec,ptSmsDate->timezone);result=zUfiSms_ExecSql
(strSQL,NULL,NULL);sqlite3_free(strSQL);return isSucess(result);}int
zUfiSms_GetFirstColumnParaInfo(void*fvarg,int columns,char**zresult,char**lname)
-{if(columns>=(0x14dd+881-0x184d)&&fvarg!=NULL){if(zresult[(0x1841+510-0x1a3f)]!=
+{if(columns>=(0x393+4641-0x15b3)&&fvarg!=NULL){if(zresult[(0x9dd+3576-0x17d5)]!=
NULL){T_zUfiSms_ParaInfo*para=(T_zUfiSms_ParaInfo*)fvarg;strncpy(para->sca,
-zresult[(0x110+4565-0x12e5)],sizeof(para->sca)-(0xd21+2047-0x151f));para->
-mem_store=atoi(zresult[(0x5c9+1588-0xbfc)]);para->tp_validity_period=atoi(
-zresult[(0x1010+3181-0x1c7b)]);para->status_report_on=atoi(zresult[
-(0xe58+5293-0x2302)]);para->sendfail_retry_on=atoi(zresult[(0x5b+4136-0x107f)]);
-para->outdate_delete_on=atoi(zresult[(0x1f4a+22-0x1f5b)]);(void)strncpy(para->
-default_store,zresult[(0x1f5d+1205-0x240c)],sizeof(para->default_store)-
-(0x4e3+3377-0x1213));return SQLITE_OK;}}return SQLITE_ERROR;}int
+zresult[(0x7a4+5272-0x1c3c)],sizeof(para->sca)-(0x6cb+3439-0x1439));para->
+mem_store=atoi(zresult[(0xb9c+1748-0x126f)]);para->tp_validity_period=atoi(
+zresult[(0x3d9+3011-0xf9a)]);para->status_report_on=atoi(zresult[
+(0x4ab+4861-0x17a5)]);para->sendfail_retry_on=atoi(zresult[(0x273+6558-0x1c0d)])
+;para->outdate_delete_on=atoi(zresult[(0x679+7783-0x24db)]);(void)strncpy(para->
+default_store,zresult[(0x1016+2694-0x1a96)],sizeof(para->default_store)-
+(0x319+5615-0x1907));return SQLITE_OK;}}return SQLITE_ERROR;}int
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,
-(0x950+3341-0x165d),sizeof(T_zUfiSms_ParaInfo));return isSucess(zUfiSms_ExecSql(
+(0xa5f+1936-0x11ef),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>=(0x1686+464-0x1855)
-&¶!=NULL)(void)strncpy(para->buf_addr,zresult[(0x29f+1750-0x975)],para->
-buf_len-(0x178a+1702-0x1e2f));return(0xb76+5514-0x2100);}int
+T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;if(column>=(0x1e29+240-0x1f18)
+&¶!=NULL)(void)strncpy(para->buf_addr,zresult[(0x1026+4648-0x224e)],para->
+buf_len-(0x13eb+4893-0x2707));return(0x206+8512-0x2346);}int
zUfiSms_GetSmsContent(char*pSmsBuf,int len){T_zUfiSms_BufInfo buf_info={
-(0x9cf+6739-0x2422)};char*strSQL=
+(0x1d9c+1510-0x2382)};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,(0x1932+923-0x1ccd),len);return isSucess(
+len;memset(buf_info.buf_addr,(0x58+2868-0xb8c),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=-(0x1142+422-0x12e7);switch(
+char*sql=NULL;sqlite3_stmt*stmt=NULL;int id=-(0x181a+2738-0x22cb);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[(0x10ed+3961-0x2066)],
-ptDbSaveData->concat_info[(0xc52+6004-0x23c5)],pMemStore,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x63f+3884-0x156b)],
+ptDbSaveData->concat_info[(0x1c8+4475-0x1342)],pMemStore,
WMS_TAG_TYPE_MO_SENT_V01,WMS_TAG_TYPE_MO_NOT_SENT_V01);break;}case
-(0x635+8161-0x2612):{sql=sqlite3_mprintf(
+(0x56d+4845-0x1856):{sql=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x65\x71\x2c\x69\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x41\x4e\x44\x20\x54\x61\x67\x20\x3d\x20\x27\x25\x64\x27\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0x240+519-0x447)],ptDbSaveData
-->concat_info[(0xaf8+2454-0x148d)],pMemStore,(0x504+4075-0x14eb));break;}case
-WMS_TAG_TYPE_MT_READ_V01:case WMS_TAG_TYPE_MT_NOT_READ_V01:{sql=sqlite3_mprintf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0xc49+6059-0x23f4)],
+ptDbSaveData->concat_info[(0x799+1326-0xcc6)],pMemStore,(0x1043+5270-0x24d5));
+break;}case WMS_TAG_TYPE_MT_READ_V01:case WMS_TAG_TYPE_MT_NOT_READ_V01:{sql=
+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[(0x3e4+122-0x45e)],ptDbSaveData
-->concat_info[(0x1b8f+2430-0x250c)],pMemStore,WMS_TAG_TYPE_MT_READ_V01,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x448+1810-0xb5a)],ptDbSaveData
+->concat_info[(0x1bb6+577-0x1df6)],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[(0x2079+944-0x2429)],
-ptDbSaveData->concat_info[(0xeb8+262-0xfbd)],pMemStore);at_print(LOG_ERR,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x70c+4631-0x1923)],
+ptDbSaveData->concat_info[(0x1068+397-0x11f4)],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,-(0x69d+58-0x6d6),&stmt,
-(0x554+399-0x6e3))!=SQLITE_OK){at_print(LOG_ERR,
+sqlite3_prepare(g_zUfiSms_DbPointer,sql,-(0x1164+4362-0x226d),&stmt,
+(0x8ff+3311-0x15ee))!=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-(0x6+5997-0x1772)
-;}while(SQLITE_ROW==sqlite3_step(stmt)){int j=(0xc2+9022-0x2400);char**
-out_result=NULL;char*column_text=sqlite3_column_text(stmt,(0x1eb+579-0x42e));int
- count=-(0x9a+8478-0x21b7);if(column_text!=NULL)count=zUfiSms_SplitString(
-column_text,&out_result,((char)(0xcb8+2825-0x1786)));for(j=(0xf9+5078-0x14cf);j<
-count;j++){if((0x12da+1264-0x17ca)==strcmp(out_result[j],"")){if(j+
-(0x134a+4103-0x2350)==ptDbSaveData->concat_info[(0x80f+2055-0x1014)]){id=
-sqlite3_column_int(stmt,(0x8df+4955-0x1c39));break;}}}if(out_result!=NULL){free(
-out_result);out_result=NULL;}if(-(0x67d+3388-0x13b8)!=id){break;}}(void)
-sqlite3_finalize(stmt);sqlite3_free(sql);return id;}int
+,sqlite3_errmsg(g_zUfiSms_DbPointer));sqlite3_free(sql);return-
+(0x2a9+7322-0x1f42);}while(SQLITE_ROW==sqlite3_step(stmt)){int j=
+(0x250+9009-0x2581);char**out_result=NULL;char*column_text=sqlite3_column_text(
+stmt,(0xb0+5125-0x14b5));int count=-(0x121d+3249-0x1ecd);if(column_text!=NULL)
+count=zUfiSms_SplitString(column_text,&out_result,((char)(0x1d21+752-0x1fd6)));
+for(j=(0x10b2+2101-0x18e7);j<count;j++){if((0xb5a+4881-0x1e6b)==strcmp(
+out_result[j],"")){if(j+(0xcd3+651-0xf5d)==ptDbSaveData->concat_info[
+(0x88b+5924-0x1fad)]){id=sqlite3_column_int(stmt,(0xf26+2446-0x18b3));break;}}}
+if(out_result!=NULL){free(out_result);out_result=NULL;}if(-(0xa98+6950-0x25bd)!=
+id){break;}}(void)sqlite3_finalize(stmt);sqlite3_free(sql);return id;}int
zUfiSms_CheckDbOutdateSms_Callback(void*fvarg,int columns,char**zresult,char**
-lname){if(fvarg!=NULL&&columns>=(0x192+278-0x2a7)){if(zresult[
-(0x788+6015-0x1f07)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
-result->id[result->all_or_count]=atoi(zresult[(0x1a01+542-0x1c1f)]);result->
+lname){if(fvarg!=NULL&&columns>=(0x178f+2110-0x1fcc)){if(zresult[
+(0xd15+2883-0x1858)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
+result->id[result->all_or_count]=atoi(zresult[(0x1a4b+2710-0x24e1)]);result->
all_or_count++;return SQLITE_OK;}}return SQLITE_ERROR;}VOID
zUfiSms_CheckDbOutdateSms(const char*pDbTable,T_zUfiSms_DelReq*pSmsDel){char
-acSql[(0x151b+1025-0x189c)]={(0x6b7+2673-0x1128)};struct timeval tp;if(
-(0x16d2+2795-0x21bd)!=gettimeofday(&tp,NULL)){printf(
+acSql[(0x1388+3920-0x2258)]={(0x569+1877-0xcbe)};struct timeval tp;if(
+(0x2a0+1941-0xa35)!=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"
@@ -530,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>=(0x1884+1560-0x1e9a)){if(zresult[
-(0x13a7+4284-0x2463)]!=NULL&&zresult[(0x44+7801-0x1ebc)]!=NULL){SMS_MSG_INFO*msg
-=(SMS_MSG_INFO*)fvarg;memset(msg->id,(0x103+8786-0x2355),sizeof(msg->id));memset
-(msg->total_seq,(0xf2a+143-0xfb9),sizeof(msg->total_seq));strncpy(msg->id,
-zresult[(0xd9d+1229-0x126a)],sizeof(msg->id)-(0x12e0+241-0x13d0));strncpy(msg->
-total_seq,zresult[(0x1c63+877-0x1fcf)],sizeof(msg->total_seq)-
-(0x476+5691-0x1ab0));printf(
+**lname){if(fvarg!=NULL&&column>=(0x741+4713-0x19a8)){if(zresult[
+(0x96c+6563-0x230f)]!=NULL&&zresult[(0xe2d+5666-0x244e)]!=NULL){SMS_MSG_INFO*msg
+=(SMS_MSG_INFO*)fvarg;memset(msg->id,(0x1232+1274-0x172c),sizeof(msg->id));
+memset(msg->total_seq,(0xf82+1504-0x1562),sizeof(msg->total_seq));strncpy(msg->
+id,zresult[(0x333+4219-0x13ae)],sizeof(msg->id)-(0xb02+6086-0x22c7));strncpy(msg
+->total_seq,zresult[(0xbc8+5005-0x1f54)],sizeof(msg->total_seq)-
+(0xcf0+4415-0x1e2e));printf(
"\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[(0xfba+3865-0x1ed3)],
-ptDbSaveData->concat_info[(0xee8+5468-0x2443)]);printf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x1970+785-0x1c81)],
+ptDbSaveData->concat_info[(0x2fa+8350-0x2397)]);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 23cee76..04febed 100755
--- a/ap/app/zte_comm/sms/src/sms_fnc.c
+++ b/ap/app/zte_comm/sms/src/sms_fnc.c
@@ -8,17 +8,17 @@
#include "sms_fnc.h"
#include "sms_db.h"
#include "sms_code.h"
-#define SMS_RETRY_COUNT (0x16c4+3457-0x2442)
-#define SHORT_INT_LEN (0x1c3+4194-0x121f)
+#define SMS_RETRY_COUNT (0x7d6+3840-0x16d3)
+#define SHORT_INT_LEN (0x1758+2289-0x2043)
SMS_LOCATION g_zUfiSms_CurLocation=SMS_LOCATION_SIM;int
-g_zUfiSms_ConcatSmsReference=(0x161+7641-0x1f3a);T_zUfiSms_ParaInfo
+g_zUfiSms_ConcatSmsReference=(0x519+2161-0xd8a);T_zUfiSms_ParaInfo
g_zUfiSms_CurSmsPara={"",WMS_STORAGE_TYPE_UIM_V01,
-ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0xf04+1315-0x1427),(0xaa+5073-0x147b)
-,(0x126c+243-0x135f),"\x6e\x76"};int g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;int
-g_zUfiSms_Dcs=(0x761+6342-0x2027);unsigned long g_zUfiSms_StoreCapablity[
-ZTE_WMS_MEMORY_MAX]={(0x96+5070-0x1400),ZTE_WMS_DB_MSG_COUNT_MAX};
+ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0x503+5985-0x1c64),(0x5a5+1237-0xa7a)
+,(0x1caa+2077-0x24c7),"\x6e\x76"};int g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;int
+ g_zUfiSms_Dcs=(0x1c+1033-0x425);unsigned long g_zUfiSms_StoreCapablity[
+ZTE_WMS_MEMORY_MAX]={(0x172c+2383-0x2017),ZTE_WMS_DB_MSG_COUNT_MAX};
T_zSms_SendSmsReq g_zUfiSms_FinalCmgsBuf;SMS_PARAM g_zUfiSms_SendingSms;UINT16
-g_zUfiSms_IsLanguageShift=(0xa52+7127-0x2629);extern int g_zUfiSms_MsgRefer;
+g_zUfiSms_IsLanguageShift=(0x178c+1851-0x1ec7);extern int g_zUfiSms_MsgRefer;
extern T_zUfiSms_DelSms g_zUfiSms_DelMsg;extern T_zUfiSms_DelIndexInfo
g_deleteIndex;extern T_zUfiSms_ModifyIndexInfo g_modifyIndex;extern
T_zUfiSms_ModifySms g_zUfiSms_modifyMsg;extern UINT8 g_zUfiSms_MemFullFlag[
@@ -31,21 +31,20 @@
eLocation){switch(eLocation){case SMS_LOCATION_SIM:{g_zUfiSms_CurLocation=
SMS_LOCATION_SIM;break;}case SMS_LOCATION_ME:{g_zUfiSms_CurLocation=
SMS_LOCATION_ME;break;}default:{return;}}}int zUfiSms_SetDeleteInfo(
-T_zUfiSms_DelReq*ptDelMsg){char acStorePos[(0x2e9+3950-0x1225)];int i=
-(0x58b+6191-0x1dba);g_zUfiSms_DelMsg.nv_count=(0x10bb+3527-0x1e82);
-g_zUfiSms_DelMsg.nv_index=(0xcbc+5971-0x240f);g_zUfiSms_DelMsg.sim_count=
-(0x14b+6180-0x196f);g_zUfiSms_DelMsg.sim_index=(0x4b9+3292-0x1195);for(i=
-(0x549+1191-0x9f0);i<ptDelMsg->all_or_count;i++){memset(acStorePos,
-(0x9ea+1361-0xf3b),sizeof(acStorePos));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
-"Mem_Store",acStorePos,sizeof(acStorePos),ptDelMsg->id[i])){return ZUFI_FAIL;}if
-((0x1b1+716-0x47d)==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((0xec7+3664-0x1d17)==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",
+T_zUfiSms_DelReq*ptDelMsg){char acStorePos[(0x2c3+731-0x56c)];int i=
+(0x84c+477-0xa29);g_zUfiSms_DelMsg.nv_count=(0x1e73+819-0x21a6);g_zUfiSms_DelMsg
+.nv_index=(0x161b+3380-0x234f);g_zUfiSms_DelMsg.sim_count=(0xfa0+5311-0x245f);
+g_zUfiSms_DelMsg.sim_index=(0x940+2321-0x1251);for(i=(0x836+5518-0x1dc4);i<
+ptDelMsg->all_or_count;i++){memset(acStorePos,(0xf16+3304-0x1bfe),sizeof(
+acStorePos));if(ZUFI_FAIL==zUfiSms_GetStorePosById("Mem_Store",acStorePos,sizeof
+(acStorePos),ptDelMsg->id[i])){return ZUFI_FAIL;}if((0x1211+1172-0x16a5)==strcmp
+(acStorePos,ZTE_WMS_DB_NV_TABLE)){g_zUfiSms_DelMsg.nv_id[g_zUfiSms_DelMsg.
+nv_count]=ptDelMsg->id[i];g_zUfiSms_DelMsg.nv_count++;g_zUfiSms_DelMsg.
+nv_index_count++;}else if((0x1afc+1260-0x1fe8)==strcmp(acStorePos,
+ZTE_WMS_DB_SIM_TABLE)){g_zUfiSms_DelMsg.sim_id[g_zUfiSms_DelMsg.sim_count]=
+ptDelMsg->id[i];g_zUfiSms_DelMsg.sim_count++;g_zUfiSms_DelMsg.sim_index_count++;
+}}return ZUFI_SUCC;}void zUfiSms_ChangeMainState(T_zUfiSms_MainState iNewState){
+char*ptStrSmsState[]={"\x73\x6d\x73\x5f\x69\x6e\x69\x74\x69\x6e\x67",
"\x73\x6d\x73\x5f\x69\x6e\x69\x74\x65\x64",
"\x73\x6d\x73\x5f\x6c\x6f\x61\x64\x69\x6e\x67",
"\x73\x6d\x73\x5f\x6c\x6f\x61\x64\x65\x64",
@@ -69,96 +68,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(-
-(0x1124+4552-0x22eb)==access(ZTE_WMS_DB_DIR,F_OK)){printf(
+(0x1878+1628-0x1ed3)==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(-(0xf59+4587-0x2143)==mkdir(ZTE_WMS_DB_DIR,
-(0xafa+5688-0x1f33))){printf(
+,ZTE_WMS_DB_DIR);if(-(0xf18+3600-0x1d27)==mkdir(ZTE_WMS_DB_DIR,
+(0x767+2736-0x1018))){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(-
-(0xe70+5744-0x24df)==access(ZTE_WMS_DB_PATH,F_OK)){printf(
+(0x1678+1003-0x1a62)==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=(0x7d5+7587-0x2578);unsigned char mem_store_flag=
-(0xbda+5920-0x22fa);unsigned int tp_validity_period=(0x130+4662-0x1366);char
-Temp_sms_vp[(0xa9c+2709-0x1529)]={(0xb31+6684-0x254d)};CHAR reportEnable[
-(0xbd+657-0x31c)]={(0x636+6229-0x1e8b)};CHAR smsLocation[(0x8f0+7086-0x246c)]={
-(0xbba+4450-0x1d1c)};CHAR sendfailRetry[(0xe9+7930-0x1fb1)]={(0x471+4392-0x1599)
-};CHAR outdateDelete[(0x5fb+7025-0x213a)]={(0x1200+2686-0x1c7e)};CHAR
-defaultStore[(0xc6+4724-0x1308)]={(0x237+3828-0x112b)};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((0x3fc+7250-0x204e)==
-strcmp(reportEnable,"\x31")){sts_flag=(0x6fc+1225-0xbc4);}g_zUfiSms_CurSmsPara.
-status_report_on=sts_flag;if((0x1d59+255-0x1e58)==strcmp(smsLocation,"\x4d\x45")
-){mem_store_flag=(0x1085+423-0x122c);}else{mem_store_flag=(0x15ec+1236-0x1abf);}
-g_zUfiSms_CurSmsPara.mem_store=(unsigned int)((0x12fd+2599-0x1d24)==
-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=
-(0x13b8+4512-0x2459);if((0xe68+4506-0x2002)==strncmp(Temp_sms_vp,
-"\x6c\x6f\x6e\x67\x65\x73\x74",(0x9f0+3930-0x1943))){tp_validity_period=
-(0x1795+2556-0x2092);}if((0x3ac+8625-0x255d)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x5f\x64\x61\x79",(0x40a+6824-0x1eab))){tp_validity_period=
-(0xc2c+5586-0x2157);}if((0x7c3+1845-0xef8)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x77\x65\x65\x6b",(0xffc+3520-0x1db5))){tp_validity_period=
-(0x1393+4835-0x25c9);}if((0xd5+3154-0xd27)==strncmp(Temp_sms_vp,
-"\x74\x77\x65\x6c\x76\x65\x68",(0x12ef+4626-0x24fa))){tp_validity_period=
-(0x84d+4131-0x17e1);}g_zUfiSms_CurSmsPara.tp_validity_period=tp_validity_period;
-if((0xb2f+3796-0x1a03)==strcmp(sendfailRetry,"\x31")){g_zUfiSms_CurSmsPara.
-sendfail_retry_on=(0x1348+4271-0x23f6);}else{g_zUfiSms_CurSmsPara.
-sendfail_retry_on=(0x1c95+393-0x1e1e);}if((0x1034+1854-0x1772)==strcmp(
-outdateDelete,"\x31")){g_zUfiSms_CurSmsPara.outdate_delete_on=
-(0x1870+2089-0x2098);}else{g_zUfiSms_CurSmsPara.outdate_delete_on=
-(0x4bf+4331-0x15aa);}if((0x148+2364-0xa84)==strcmp(defaultStore,"\x73\x69\x6d"))
-{strncpy(g_zUfiSms_CurSmsPara.default_store,"\x73\x69\x6d",sizeof(
-g_zUfiSms_CurSmsPara.default_store)-(0x135f+3379-0x2091));}else{strncpy(
-g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(g_zUfiSms_CurSmsPara.
-default_store)-(0x1d3d+2199-0x25d3));}}void zUfiSms_GetDefaultPara(void){memset(
-&g_zUfiSms_CurSmsPara,(0x1224+3689-0x208d),sizeof(T_zUfiSms_ParaInfo));
-g_zUfiSms_CurSmsPara.status_report_on=(0xabc+6242-0x231e);g_zUfiSms_CurSmsPara.
-mem_store=WMS_STORAGE_TYPE_NV_V01;g_zUfiSms_CurSmsPara.tp_validity_period=
+unsigned char sts_flag=(0x15f9+3254-0x22af);unsigned char mem_store_flag=
+(0x3e8+4901-0x170d);unsigned int tp_validity_period=(0x697+3953-0x1608);char
+Temp_sms_vp[(0x745+6690-0x215f)]={(0x153+1026-0x555)};CHAR reportEnable[
+(0x1bf3+2715-0x265c)]={(0xa8a+5448-0x1fd2)};CHAR smsLocation[
+(0x1646+2394-0x1f6e)]={(0xe22+1542-0x1428)};CHAR sendfailRetry[
+(0x2660+24-0x2646)]={(0x13c1+2337-0x1ce2)};CHAR outdateDelete[
+(0xf05+4607-0x20d2)]={(0x15ff+2375-0x1f46)};CHAR defaultStore[
+(0x1961+325-0x1a74)]={(0x660+7292-0x22dc)};sc_cfg_get(NV_REPORT_ENABLE,
+reportEnable,sizeof(reportEnable));sc_cfg_get(NV_SMS_LOCATION_SET,smsLocation,
+sizeof(smsLocation));sc_cfg_get(NV_SENDFAIL_RETRY,sendfailRetry,sizeof(
+sendfailRetry));sc_cfg_get(NV_OUTDATE_DELETE,outdateDelete,sizeof(outdateDelete)
+);sc_cfg_get(NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if(
+(0x1a9+7702-0x1fbf)==strcmp(reportEnable,"\x31")){sts_flag=(0x146a+3626-0x2293);
+}g_zUfiSms_CurSmsPara.status_report_on=sts_flag;if((0x1cc8+275-0x1ddb)==strcmp(
+smsLocation,"\x4d\x45")){mem_store_flag=(0x534+4447-0x1693);}else{mem_store_flag
+=(0x10e1+21-0x10f5);}g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(
+(0xf09+877-0x1276)==mem_store_flag?WMS_STORAGE_TYPE_NV_V01:
+WMS_STORAGE_TYPE_UIM_V01);sc_cfg_get(NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));
+tp_validity_period=(0x17f+635-0x2fb);if((0x1018+4670-0x2256)==strncmp(
+Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",(0xf6f+4592-0x2158))){
+tp_validity_period=(0x8ac+4858-0x1aa7);}if((0xb5f+3894-0x1a95)==strncmp(
+Temp_sms_vp,"\x6f\x6e\x65\x5f\x64\x61\x79",(0x3a5+3942-0x1304))){
+tp_validity_period=(0x5e8+4145-0x1572);}if((0x48c+1450-0xa36)==strncmp(
+Temp_sms_vp,"\x6f\x6e\x65\x77\x65\x65\x6b",(0x6d+8598-0x21fc))){
+tp_validity_period=(0x179+6966-0x1c02);}if((0x1267+1730-0x1929)==strncmp(
+Temp_sms_vp,"\x74\x77\x65\x6c\x76\x65\x68",(0xa26+3021-0x15ec))){
+tp_validity_period=(0x25fa+214-0x2641);}g_zUfiSms_CurSmsPara.tp_validity_period=
+tp_validity_period;if((0x165d+935-0x1a04)==strcmp(sendfailRetry,"\x31")){
+g_zUfiSms_CurSmsPara.sendfail_retry_on=(0x1201+408-0x1398);}else{
+g_zUfiSms_CurSmsPara.sendfail_retry_on=(0xd91+6459-0x26cc);}if(
+(0x1576+1136-0x19e6)==strcmp(outdateDelete,"\x31")){g_zUfiSms_CurSmsPara.
+outdate_delete_on=(0x1d8+4010-0x1181);}else{g_zUfiSms_CurSmsPara.
+outdate_delete_on=(0x73d+2113-0xf7e);}if((0xb82+3116-0x17ae)==strcmp(
+defaultStore,"\x73\x69\x6d")){strncpy(g_zUfiSms_CurSmsPara.default_store,
+"\x73\x69\x6d",sizeof(g_zUfiSms_CurSmsPara.default_store)-(0xc4c+5258-0x20d5));}
+else{strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
+g_zUfiSms_CurSmsPara.default_store)-(0x61c+5012-0x19af));}}void
+zUfiSms_GetDefaultPara(void){memset(&g_zUfiSms_CurSmsPara,(0x98+4962-0x13fa),
+sizeof(T_zUfiSms_ParaInfo));g_zUfiSms_CurSmsPara.status_report_on=
+(0xf61+5275-0x23fc);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
-=(0xae1+6102-0x22b7);g_zUfiSms_CurSmsPara.outdate_delete_on=(0xebd+5393-0x23ce);
-strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
-g_zUfiSms_CurSmsPara.default_store)-(0x51+9517-0x257d));}
-#if (0x1c25+1552-0x2235)
+=(0x153b+2190-0x1dc9);g_zUfiSms_CurSmsPara.outdate_delete_on=(0x9a6+2233-0x125f)
+;strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
+g_zUfiSms_CurSmsPara.default_store)-(0x1a3+6946-0x1cc4));}
+#if (0x1437+1571-0x1a5a)
T_zUfiSms_CmdStatus zUfiSms_SetParameters(T_zUfiSms_CmdMsgBuff*ptSmsBuffer){
T_zUfiSms_ParaInfo*ptSmsParameter=NULL;T_zUfiSms_ParaInfo tNewSmsParameter={
-(0x1e21+1231-0x22f0)};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)
-);
+(0x1070+718-0x133e)};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)!=(0x2043+658-0x22d5)){if(ZUFI_SMS_FAILURE==
+if(strlen(ptSmsParameter->sca)!=(0x8+2493-0x9c5)){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=(0x8cf+981-0xca4);if(ZUFI_SUCC!=
+int zUfiSms_LoadSmsPara(){int count=(0x1990+1431-0x1f27);if(ZUFI_SUCC!=
zUfiSms_IsDbEmpty(ZTE_WMS_DB_PARAMETER_TABLE,&count)){return ZUFI_FAIL;}if(count
-==(0x6fc+570-0x936)){zUfiSms_GetDefaultCfgPara();if((0x135+3529-0xefe)!=
+==(0x15e9+1571-0x1c0c)){zUfiSms_GetDefaultCfgPara();if((0x971+5154-0x1d93)!=
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((0x1263+1317-0x1788)!=zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){
+();if((0x1d51+1635-0x23b4)!=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=(0x1d23+2242-0x25e5);if((ZTE_WMS_MEMORY_SIM==mem_store)||(
+int total_count=(0x7e1+744-0xac9);if((ZTE_WMS_MEMORY_SIM==mem_store)||(
ZTE_WMS_MEMORY_MAX==mem_store)){if(ZUFI_FAIL==zUfiSms_GetTotalCount(
ZTE_WMS_DB_SIM_TABLE,&total_count)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x3a\x67\x65\x74\x20\x74\x61\x62\x6c\x65\x20\x74\x6f\x74\x61\x6c\x20\x63\x6f\x75\x6e\x74\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
@@ -175,13 +174,13 @@
,total_count);if(total_count>=(int)g_zUfiSms_StoreCapablity[
WMS_STORAGE_TYPE_NV_V01]){g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]=TRUE;}
else{g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]=FALSE;}}return ZUFI_SUCC;}
-int zUfiSms_SetStorePara(char*mem_store){if((0xe75+4233-0x1efe)==strcmp(
+int zUfiSms_SetStorePara(char*mem_store){if((0x151c+2192-0x1dac)==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(
-(0x12f6+4389-0x241b)==strcmp(mem_store,"\x4d\x45")){g_zUfiSms_CurSmsPara.
+(0x399+8215-0x23b0)==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((0xf3f+5001-0x22c8)==strcmp(mem_store,
-"\x53\x52")){g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0x16e2+3164-0x233c);(
+NV_SMS_LOCATION_SET,"\x31");}else if((0x81c+4052-0x17f0)==strcmp(mem_store,
+"\x53\x52")){g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0x1539+1079-0x196e);(
void)sc_cfg_set(NV_SMS_LOCATION_SET,"\x32");}else{g_zUfiSms_CurSmsPara.mem_store
=(unsigned int)WMS_STORAGE_TYPE_NONE_V01;(void)sc_cfg_set(NV_SMS_LOCATION_SET,
"\x2d\x31");}if(ZUFI_FAIL==zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){
@@ -189,41 +188,41 @@
"\x63\x61\x6e\x20\x6e\x6f\x74\x20\x73\x65\x74\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x2e" "\n"
);return ZUFI_FAIL;}return ZUFI_SUCC;}int zUfiSms_SetScaPara(char*sca){strncpy(
g_zUfiSms_CurSmsPara.sca,sca,sizeof(g_zUfiSms_CurSmsPara.sca)-
-(0x100d+790-0x1322));if(ZUFI_FAIL==zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara
-)){at_print(LOG_ERR,
+(0x177d+2587-0x2197));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==(0x9b5+2327-0x12cb)){g_zUfiSms_Dcs=DCS_ASC;
-g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x945+1484-0xf0f)){
-g_zUfiSms_Dcs=DCS_USC;g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==
-(0x1c00+1146-0x2077)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;
-}else if(cDcs==(0x6e2+6015-0x1e5c)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
+char cDcs){if(cDcs==(0xefa+545-0x111a)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language
+=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x12b7+3018-0x1e7f)){g_zUfiSms_Dcs=DCS_USC;
+g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x538+3711-0x13b4)){
+g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;}else if(cDcs==
+(0xe48+3212-0x1acf)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
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=(0x38c+5809-0x1a3d);i<ptGroupSms
+total_receiver=ptSendMsg->receiver_count;for(i=(0x1fca+641-0x224b);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=(0x15d2+503-0x17c9);
+,i,ptGroupSms->receivers[i]);}ptGroupSms->current_receiver=(0x42b+8283-0x2486);
return ZUFI_SUCC;}int zUfiSms_FillConcatSms(T_zUfiSms_SendReq*pSendSrcMsg,
-T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0x3dd+2203-0xc78);int
-iUnitlen=(0x6f6+2837-0x120b);int iSegNo=(0x25+3317-0xd1a);unsigned char*
+T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0x6ed+5667-0x1d10);int
+iUnitlen=(0x1023+2068-0x1837);int iSegNo=(0x311+4574-0x14ef);unsigned char*
pSmsConverted=NULL;unsigned char acConvertContent[
ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*
-(0x1593+3912-0x24d7)+(0xc80+2816-0x177c)]={(0x4a8+1485-0xa75)};unsigned char
+(0x1079+5280-0x2515)+(0x488+4946-0x17d6)]={(0x6f+9672-0x2637)};unsigned char
acTmpContent[ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*
-(0x2099+1590-0x26cb)+(0x884+1274-0xd7a)]={(0x962+4296-0x1a2a)};int iTimeZone=
-(0x2024+283-0x213f);int tmp_i=(0x12b1+1936-0x1a41);if(NULL==pSendSrcMsg||NULL==
-pDestConcatMsg){return-(0x1ffa+582-0x223f);}iTotalLen=pSendSrcMsg->msg_len;if(
+(0x12a+9419-0x25f1)+(0x135f+1307-0x1876)]={(0x75d+2138-0xfb7)};int iTimeZone=
+(0x84+2336-0x9a4);int tmp_i=(0xa42+4879-0x1d51);if(NULL==pSendSrcMsg||NULL==
+pDestConcatMsg){return-(0x14d1+583-0x1717);}iTotalLen=pSendSrcMsg->msg_len;if(
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-(0xb9a+4099-0x1b9c);}printf(
+);return-(0x634+8159-0x2612);}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,(0x1078+1594-0x16b2),sizeof(acTmpContent));if
-(DCS_USC==g_zUfiSms_Dcs){pSmsConverted=acConvertContent;}else{if(
+acTmpContent));memset(acTmpContent,(0x465+432-0x615),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=
@@ -232,56 +231,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)-(0x1e4f+2167-0x26c5))){
-iTotalLen=sizeof(acConvertContent)-(0x1839+2495-0x21f7);}pDestConcatMsg->sms_len
-=iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
-DCS_PORTUGUESE&&iTotalLen>(0x19b+9156-0x24c4))||((g_zUfiSms_Dcs==DCS_USC)&&
+=acTmpContent;}if(iTotalLen>(sizeof(acConvertContent)-(0x18a4+584-0x1aeb))){
+iTotalLen=sizeof(acConvertContent)-(0x222+5816-0x18d9);}pDestConcatMsg->sms_len=
+iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
+DCS_PORTUGUESE&&iTotalLen>(0x1fbc+28-0x1f3d))||((g_zUfiSms_Dcs==DCS_USC)&&
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*
-(0x149b+4050-0x246b);}else{if(g_zUfiSms_Language==NOT_DEFINE_LANGUAGE||
+(0x20f1+248-0x21e7);}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>
-(0x8c9+4816-0x1b99)&&iSegNo<ZTE_WMS_CONCAT_SMS_COUNT_MAX){memcpy(pDestConcatMsg
+(0xea5+5806-0x2553)&&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=(0x39d+7496-0x20e4);memcpy(pDestConcatMsg->
-msg_contents[(0x289+3842-0x118b)],pSmsConverted,iTotalLen);printf(
+pDestConcatMsg->total_msg=(0xfa3+1296-0x14b2);memcpy(pDestConcatMsg->
+msg_contents[(0xc2c+5262-0x20ba)],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[(0xaf9+69-0xb3e)]);}
+,iUnitlen,pDestConcatMsg->msg_contents[(0x12b4+100-0x1318)]);}
g_zUfiSms_ConcatTotalNum=pDestConcatMsg->total_msg;pDestConcatMsg->
-current_sending=(0x1006+1650-0x1678);memcpy(&(pDestConcatMsg->date),&(
+current_sending=(0x1042+3616-0x1e62);memcpy(&(pDestConcatMsg->date),&(
pSendSrcMsg->date),sizeof(T_zUfiSms_Date));tmp_i=atoi(pDestConcatMsg->date.
-timezone);if(tmp_i<INT_MIN+(0x1740+506-0x1939)||tmp_i>INT_MAX-
-(0x1f09+163-0x1fab)){printf(
+timezone);if(tmp_i<INT_MIN+(0xb6c+5987-0x22ce)||tmp_i>INT_MAX-(0xb91+148-0xc24))
+{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*(0x7c0+5041-0x1b6d);memset(
-pDestConcatMsg->date.timezone,(0xe0d+4195-0x1e70),sizeof(pDestConcatMsg->date.
-timezone));if(iTimeZone>(0xc46+1279-0x1145)){snprintf(pDestConcatMsg->date.
+,tmp_i);return ZUFI_FAIL;}iTimeZone=tmp_i*(0xd7a+4016-0x1d26);memset(
+pDestConcatMsg->date.timezone,(0x386+1713-0xa37),sizeof(pDestConcatMsg->date.
+timezone));if(iTimeZone>(0xb02+1081-0xf3b)){snprintf(pDestConcatMsg->date.
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=
-(0x910+3299-0x15f3);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
-user_data_header_present=TRUE;if((0x1a29+513-0x1c2a)==ptConcatSms->
+(0x1a56+217-0x1b2f);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
+user_data_header_present=TRUE;if((0x13b8+3184-0x2028)==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+(0x8d0+4988-0x1c4b);ptSubmit->user_data.
+seq_num=ptConcatSms->current_sending+(0x9ab+3856-0x18ba);ptSubmit->user_data.
headers[iHeaderNum].u.concat_8.msg_ref=g_zUfiSms_ConcatSmsReference%
-(0x2614+86-0x256b);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
-(0x152+8022-0x20a7);ptDbSaveData->concat_info[(0x1b21+895-0x1ea0)]=
+(0x14d3+4451-0x2537);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
+(0xc48+2280-0x152f);ptDbSaveData->concat_info[(0x21a+2606-0xc48)]=
g_zUfiSms_ConcatSmsReference;}int zUfiSms_MakeFinalCmgsBuf(){SMS_PARAM tSmsData;
-int iPduLength=(0xc1+7631-0x1e90);int nSmscLength=(0x6ea+135-0x771);char
-Tempstrr[(0x712+5341-0x1bed)]={(0x6a8+5142-0x1abe)};char Temp_sms_vp[
-(0x58b+3124-0x11b7)]={(0x2046+1531-0x2641)};char tmpBuf1[(0x1305+4864-0x2602)]={
-(0x17a3+1394-0x1d15)};char tmpBuf2[(0x9c8+103-0xa29)]={(0xa20+4300-0x1aec)};CHAR
- smsCenter[(0xb49+4803-0x1dda)]={(0x931+2546-0x1323)};memset(&tSmsData,
-(0x4e9+1588-0xb1d),sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,
-(0x702+2597-0x1127),sizeof(T_zSms_SendSmsReq));if(CODE_GSM7==
-g_zUfiSms_SendingSms.TP_DCS){int i=(0xe0d+705-0x10ce);for(;i<
+int iPduLength=(0x1eff+1489-0x24d0);int nSmscLength=(0xcd+6586-0x1a87);char
+Tempstrr[(0xb90+3111-0x17b5)]={(0x1b20+669-0x1dbd)};char Temp_sms_vp[
+(0xd10+3837-0x1c05)]={(0x1968+3396-0x26ac)};char tmpBuf1[(0x6db+6711-0x210f)]={
+(0xf21+3744-0x1dc1)};char tmpBuf2[(0xa7d+3478-0x180d)]={(0x278+196-0x33c)};CHAR
+smsCenter[(0x8fc+5241-0x1d43)]={(0x20d8+1284-0x25dc)};memset(&tSmsData,
+(0x14a1+1915-0x1c1c),sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,
+(0x139d+3255-0x2054),sizeof(T_zSms_SendSmsReq));if(CODE_GSM7==
+g_zUfiSms_SendingSms.TP_DCS){int i=(0x24aa+161-0x254b);for(;i<
g_zUfiSms_SendingSms.TP_UDLength;i++){tSmsData.TP_UD[i]=g_zUfiSms_SendingSms.
TP_UD[i];}tSmsData.TP_UDLength=g_zUfiSms_SendingSms.TP_UDLength;}else{snprintf(
tSmsData.TP_UD,sizeof(tSmsData.TP_UD),"\x25\x73",g_zUfiSms_SendingSms.TP_UD);
@@ -289,40 +288,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(((0x103b+3796-0x1f0f)==strncmp(
-Tempstrr,"\x31",(0xb2d+92-0xb88)))&&(g_zUfiSms_ConcatSms.current_sending==
-g_zUfiSms_ConcatSms.total_msg-(0x135+2164-0x9a8))){tSmsData.TP_SRR=
-(0x9a3+6412-0x22ae);}else{tSmsData.TP_SRR=(0xc08+1931-0x1393);}tSmsData.TP_UDHI=
-g_zUfiSms_SendingSms.TP_UDHI;tSmsData.TP_VP=(0x1224+2369-0x1a66);sc_cfg_get(
-NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));if((0x343+2922-0xead)==strncmp(
-Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",(0x14b7+701-0x176d))){tSmsData.TP_VP=
-(0x1f95+1776-0x2586);}else if((0x1c09+2408-0x2571)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x5f\x64\x61\x79",(0xd20+1838-0x1447))){tSmsData.TP_VP=
-(0x1154+3274-0x1d77);}else if((0x1735+1945-0x1ece)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x77\x65\x65\x6b",(0x921+2616-0x1352))){tSmsData.TP_VP=
-(0x185c+1686-0x1e45);}else if((0x1a+4356-0x111e)==strncmp(Temp_sms_vp,
-"\x74\x77\x65\x6c\x76\x65\x68",(0x630+3278-0x12f7))){tSmsData.TP_VP=
-(0x14dc+1851-0x1b88);}tSmsData.TP_PID=(0xcac+419-0xe4f);
-#if (0xfcb+623-0x1239)
+(NV_REPORT_ENABLE,Tempstrr,sizeof(Tempstrr));if(((0x460+7016-0x1fc8)==strncmp(
+Tempstrr,"\x31",(0xf03+904-0x128a)))&&(g_zUfiSms_ConcatSms.current_sending==
+g_zUfiSms_ConcatSms.total_msg-(0x484+3285-0x1158))){tSmsData.TP_SRR=
+(0xe05+4324-0x1ee8);}else{tSmsData.TP_SRR=(0xbfa+4366-0x1d08);}tSmsData.TP_UDHI=
+g_zUfiSms_SendingSms.TP_UDHI;tSmsData.TP_VP=(0x279+7676-0x1f76);sc_cfg_get(
+NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));if((0x4f7+852-0x84b)==strncmp(
+Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",(0x1a81+1837-0x21a7))){tSmsData.TP_VP
+=(0x1aec+3157-0x2642);}else if((0xa0c+575-0xc4b)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x5f\x64\x61\x79",(0x11bf+4145-0x21e9))){tSmsData.TP_VP=
+(0x5c3+2668-0xf88);}else if((0x21b+2449-0xbac)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x77\x65\x65\x6b",(0x1cb6+2180-0x2533))){tSmsData.TP_VP=
+(0x72b+3601-0x148f);}else if((0x156c+3941-0x24d1)==strncmp(Temp_sms_vp,
+"\x74\x77\x65\x6c\x76\x65\x68",(0xa8a+2676-0x14f7))){tSmsData.TP_VP=
+(0x1ae1+2318-0x2360);}tSmsData.TP_PID=(0xaba+3049-0x16a3);
+#if (0x1d02+184-0x1db9)
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 (0x950+2011-0x112a)
+#if (0x166a+449-0x182a)
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,(0x178+4467-0x12e9));
+(void)String2Bytes(g_zUfiSms_FinalCmgsBuf.pdu,tmpBuf1,(0x458+6238-0x1cb4));
Bytes2String(tmpBuf1,tmpBuf2,strlen(tmpBuf1));nSmscLength=atoi(tmpBuf2);if(
-nSmscLength<(0x34d+3020-0xf19)||nSmscLength>INT_MAX-(0xda+559-0x308)){at_print(
-LOG_ERR,
+nSmscLength<(0x2000+228-0x20e4)||nSmscLength>INT_MAX-(0x1dc5+2138-0x261e)){
+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=(0xf3+5095-0x14da);;}nSmscLength++;
-g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0x20c1+1508-0x26a3)-nSmscLength;
-#if (0x319+3907-0x125b)
+,nSmscLength);nSmscLength=(0x1606+3850-0x2510);;}nSmscLength++;
+g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0xe07+3001-0x19be)-nSmscLength;
+#if (0x7ac+4549-0x1970)
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(
@@ -332,50 +331,50 @@
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-(0xb77+5438-0x20b4);}ptSubmit->
+ptGroupSms||NULL==ptDbSaveData){return-(0x1034+4961-0x2394);}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(((0xe52+5935-0x2580)<ptConcatSms->
-total_msg)&&(ptConcatSms->current_sending+(0x173a+1977-0x1ef2)<ptConcatSms->
-total_msg)){ptSubmit->status_report_enabled=(0x929+7209-0x2552);}ptSubmit->
+g_zUfiSms_CurSmsPara.status_report_on;if(((0xa3a+2082-0x125b)<ptConcatSms->
+total_msg)&&(ptConcatSms->current_sending+(0x15ea+2139-0x1e44)<ptConcatSms->
+total_msg)){ptSubmit->status_report_enabled=(0x35d+1277-0x85a);}ptSubmit->
message_reference=g_zUfiSms_MsgRefer;ptSubmit->pid=WMS_PID_DEFAULT;ptSubmit->dcs
-.msg_class=(wms_message_class_e_type)(0x222+4687-0x146d);ptSubmit->dcs.
-is_compressed=(0x514+4707-0x1777);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)(0x54b+4549-0x170c);ptSubmit->dcs.
+is_compressed=(0x1fdb+1031-0x23e2);ptSubmit->dcs.alphabet=(g_zUfiSms_Dcs==
+DCS_ASC)?WMS_GW_ALPHABET_7_BIT_DEFAULT:WMS_GW_ALPHABET_UCS2;ptSubmit->validity.
+format=WMS_GW_VALIDITY_RELATIVE;zUfiSms_DecodeRelativeTime(g_zUfiSms_CurSmsPara.
tp_validity_period,&ptSubmit->validity.u.time);ptSubmit->user_data.num_headers=
-(0x142+4776-0x13ea);if(ptConcatSms->total_msg>(0xd3+6616-0x1aaa)){
+(0xef+1613-0x73c);if(ptConcatSms->total_msg>(0x17d2+82-0x1823)){
zUfiSms_FillDateheader(ptSubmit,ptConcatSms,ptDbSaveData);ptDbSaveData->
-concat_info[(0x1204+3290-0x1edc)]=ptConcatSms->current_sending+
-(0x14d6+2016-0x1cb5);ptDbSaveData->concat_info[(0x1131+2999-0x1ce7)]=ptConcatSms
-->total_msg;}if(g_zUfiSms_Language==DCS_PORTUGUESE){UINT8 i=ptSubmit->user_data.
+concat_info[(0x1349+468-0x151b)]=ptConcatSms->current_sending+
+(0x1da+7716-0x1ffd);ptDbSaveData->concat_info[(0xb7d+4630-0x1d92)]=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][(0x6a2+6521-0x201b)]==((char)(0x422+1216-0x8b7))){
+ptGroupSms->current_receiver][(0xe2+6987-0x1c2d)]==((char)(0x3ab+7275-0x1feb))){
(void)zUfiSms_CharToInt(ptGroupSms->receivers[ptGroupSms->current_receiver]+
-(0x763+4564-0x1936),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])-
-(0x261+5211-0x16bb),ptSubmit->address.digits);ptSubmit->address.number_type=
+(0x1204+1032-0x160b),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])
+-(0xc32+6190-0x245f),ptSubmit->address.digits);ptSubmit->address.number_type=
WMS_NUMBER_INTERNATIONAL;ptSubmit->address.number_of_digits=strlen(ptGroupSms->
-receivers[ptGroupSms->current_receiver])-(0x191c+220-0x19f7);}else if(ptGroupSms
-->receivers[ptGroupSms->current_receiver][(0x665+6912-0x2165)]==
-((char)(0xe82+4511-0x1ff1))&&ptGroupSms->receivers[ptGroupSms->current_receiver]
-[(0x15fa+1355-0x1b44)]==((char)(0x16cb+1188-0x1b3f))){(void)zUfiSms_CharToInt(
-ptGroupSms->receivers[ptGroupSms->current_receiver]+(0x326+2898-0xe76),strlen(
-ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x62d+4332-0x1717),
+receivers[ptGroupSms->current_receiver])-(0x179b+3914-0x26e4);}else if(
+ptGroupSms->receivers[ptGroupSms->current_receiver][(0xc86+2944-0x1806)]==
+((char)(0x1b66+1059-0x1f59))&&ptGroupSms->receivers[ptGroupSms->current_receiver
+][(0x2f1+427-0x49b)]==((char)(0xcb2+4178-0x1cd4))){(void)zUfiSms_CharToInt(
+ptGroupSms->receivers[ptGroupSms->current_receiver]+(0xdac+2373-0x16ef),strlen(
+ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x788+2713-0x121f),
ptSubmit->address.digits);ptSubmit->address.number_type=WMS_NUMBER_INTERNATIONAL
;ptSubmit->address.number_of_digits=strlen(ptGroupSms->receivers[ptGroupSms->
-current_receiver])-(0xae4+435-0xc95);}else{(void)zUfiSms_CharToInt(ptGroupSms->
+current_receiver])-(0x55+5646-0x1661);}else{(void)zUfiSms_CharToInt(ptGroupSms->
receivers[ptGroupSms->current_receiver],strlen(ptGroupSms->receivers[ptGroupSms
->current_receiver]),ptSubmit->address.digits);ptSubmit->address.number_type=
WMS_NUMBER_UNKNOWN;ptSubmit->address.number_of_digits=strlen(ptGroupSms->
receivers[ptGroupSms->current_receiver]);}ptSubmit->address.digit_mode=(
-wms_digit_mode_e_type)(0x32b+4369-0x143c);ptSubmit->address.number_mode=(
-wms_number_mode_e_type)(0x74f+780-0xa5b);ptSubmit->address.number_plan=
-WMS_NUMBER_PLAN_TELEPHONY;memset(&g_zUfiSms_SendingSms,(0x971+5424-0x1ea1),
+wms_digit_mode_e_type)(0xeca+5604-0x24ae);ptSubmit->address.number_mode=(
+wms_number_mode_e_type)(0x1ada+2298-0x23d4);ptSubmit->address.number_plan=
+WMS_NUMBER_PLAN_TELEPHONY;memset(&g_zUfiSms_SendingSms,(0x929+3673-0x1782),
sizeof(SMS_PARAM));snprintf(g_zUfiSms_SendingSms.TPA,sizeof(g_zUfiSms_SendingSms
.TPA),"\x25\x73",ptGroupSms->receivers[ptGroupSms->current_receiver]);if(
g_zUfiSms_Language!=NOT_DEFINE_LANGUAGE){g_zUfiSms_SendingSms.TP_DCS=CODE_GSM7;}
@@ -385,21 +384,21 @@
zUfiSms_FillGlobalTpudUcs2(ptSubmit,ptConcatSms,ptDbSaveData);}(void)
zUfiSms_MakeFinalCmgsBuf();return ZUFI_SUCC;}void zUfiSms_FillSca(
T_zUfiSms_ClientMsg*ptClientMsg){char sca[ZTE_WMS_SCA_LEN_MAX]={
-(0x1bfd+2454-0x2593)};int i=(0x1049+3871-0x1f68);if(NULL==ptClientMsg){return;}
+(0xb61+4678-0x1da7)};int i=(0x1a24+1543-0x202b);if(NULL==ptClientMsg){return;}
memcpy((void*)sca,(void*)(g_zUfiSms_CurSmsPara.sca),sizeof(g_zUfiSms_CurSmsPara.
-sca));if(sca[(0xccd+1714-0x137f)]==((char)(0x14d4+1993-0x1c72))){ptClientMsg->u.
+sca));if(sca[(0x1eba+1938-0x264c)]==((char)(0x23d8+695-0x2664))){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[(0x86+2105-0x8bf)]==
-((char)(0x54d+8647-0x26e9))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits--;for(i=(0x1585+2357-0x1eba);i<ptClientMsg->u.gw_message.
-sc_address.number_of_digits;i++){sca[i]=sca[i+(0x1778+691-0x1a2a)];}}else if(sca
-[(0x561+3481-0x12fa)]==((char)(0x1a3d+1302-0x1f23))&&sca[(0xf72+5247-0x23f0)]==
-((char)(0x1453+4464-0x2593))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits-=(0x167+1128-0x5cd);for(i=(0xe01+19-0xe14);i<ptClientMsg->u.
-gw_message.sc_address.number_of_digits;i++){sca[i]=sca[i+(0x467+8139-0x2430)];}}
-(void)zUfiSms_CharToInt(sca,ptClientMsg->u.gw_message.sc_address.
+sc_address.number_of_digits=strlen(sca);if(sca[(0x946+6908-0x2442)]==
+((char)(0x112d+3556-0x1ee6))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits--;for(i=(0x1205+1477-0x17ca);i<ptClientMsg->u.gw_message.
+sc_address.number_of_digits;i++){sca[i]=sca[i+(0x329+5949-0x1a65)];}}else if(sca
+[(0x1774+950-0x1b2a)]==((char)(0x1965+1069-0x1d62))&&sca[(0x1986+1876-0x20d9)]==
+((char)(0x96b+4311-0x1a12))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits-=(0x1745+2014-0x1f21);for(i=(0x8a6+4989-0x1c23);i<ptClientMsg->
+u.gw_message.sc_address.number_of_digits;i++){sca[i]=sca[i+(0xa5d+1096-0xea3)];}
+}(void)zUfiSms_CharToInt(sca,ptClientMsg->u.gw_message.sc_address.
number_of_digits,ptClientMsg->u.gw_message.sc_address.digits);}void
zUfiSms_FillDbSaveData(T_zUfiSms_ClientMsg*ptClientMsg,T_zUfiSms_ClientTsData*
ptClientData,T_zUfiSms_ConcatInfo*ptConcatSms,T_zUfiSms_GroupInfo*ptGroupSms,int
@@ -409,12 +408,12 @@
}ptDbSaveData->mem_store=ptClientMsg->msg_hdr.mem_store;ptDbSaveData->index=
ptClientMsg->msg_hdr.index;ptDbSaveData->mode=ptClientMsg->msg_hdr.message_mode;
ptDbSaveData->tag=ptClientMsg->msg_hdr.tag;memset(ptDbSaveData->number,
-(0x1353+4706-0x25b5),ZTE_WMS_ADDRESS_LEN_MAX+(0x2f+4659-0x1261));memcpy(
+(0x8cf+5226-0x1d39),ZTE_WMS_ADDRESS_LEN_MAX+(0x455+3874-0x1376));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,(0x362+7840-0x2202),sizeof(ptDbSaveData->sms_content));if(
+sms_content,(0x1cf+5400-0x16e7),sizeof(ptDbSaveData->sms_content));if(
g_zUfiSms_Dcs==DCS_USC){ptDbSaveData->alphabet=WMS_GW_ALPHABET_UCS2;}else if(
g_zUfiSms_Dcs==DCS_ASC){ptDbSaveData->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}(
void)zUfiSms_DispatchWtoi(ptConcatSms->msg_contents[ptConcatSms->current_sending
@@ -425,7 +424,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,(0x433+3841-0x1334),sizeof(
+is_broadcast=FALSE;memset((void*)&tClientTsData,(0x129f+2310-0x1ba5),sizeof(
wms_client_ts_data_s_type));tClientTsData.format=WMS_FORMAT_GW_PP;tClientTsData.
u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)zUfiSms_FillSubmitTpdu(&
g_zUfiSms_ConcatSms,&g_zUfiSms_GroupSms,g_zUfiSms_UnitLen,&tClientTsData.u.gw_pp
@@ -434,97 +433,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=(0x14b4+4680-0x26fc);pContent=(char
-*)malloc((0x934+5904-0x2040)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent
-==NULL){return ZUFI_FAIL;}memset(pContent,(0x2217+363-0x2382),(0xf3+5037-0x149c)
-*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(WMS_GW_ALPHABET_7_BIT_DEFAULT==
-ptDbSaveData->alphabet){static char data[(0x901+5761-0x1f7e)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x3b0+7600-0x215f)]={(0x694+8050-0x2606)};
-memset(data,(0x8e7+5903-0x1ff6),(0xb79+962-0xf37)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x1278+5045-0x262c));(void)
-zUfiSms_DecodeContent((char*)ptDbSaveData->sms_content,strlen(ptDbSaveData->
-sms_content),FALSE,data);strncpy(pContent,data,(0x2da+7613-0x2093)*
-ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x13a4+1493-0x1978));}else{strncpy(
-pContent,ptDbSaveData->sms_content,(0xdd1+4137-0x1df6)*
-ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x16a1+862-0x19fe));}ptDbSaveData->tp_dcs
-=(unsigned char)(0x1044+2383-0x1991);if(-(0x1b25+667-0x1dbf)==iSmsId){if(
-ZUFI_FAIL==zUfiSms_GetTotalCount(pMemStore,&iTotalCount)){free(pContent);
-pContent=NULL;return ZUFI_FAIL;}printf(
+ZUFI_SUCC;char*pContent=NULL;int iTotalCount=(0x385+5147-0x17a0);pContent=(char*
+)malloc((0x58c+7269-0x21ed)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent==
+NULL){return ZUFI_FAIL;}memset(pContent,(0xe11+1498-0x13eb),(0x14a5+406-0x1637)*
+ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(WMS_GW_ALPHABET_7_BIT_DEFAULT==
+ptDbSaveData->alphabet){static char data[(0x1713+1313-0x1c30)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x3ab+7881-0x2273)]={(0x14a0+1613-0x1aed)};
+memset(data,(0x66c+3124-0x12a0),(0x1534+770-0x1832)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x77c+5484-0x1ce7));(void)zUfiSms_DecodeContent
+((char*)ptDbSaveData->sms_content,strlen(ptDbSaveData->sms_content),FALSE,data);
+strncpy(pContent,data,(0xd2a+6625-0x2707)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-
+(0x5a2+493-0x78e));}else{strncpy(pContent,ptDbSaveData->sms_content,
+(0x2363+63-0x239e)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x96d+2895-0x14bb));}
+ptDbSaveData->tp_dcs=(unsigned char)(0xd8+8-0xde);if(-(0xad4+3040-0x16b3)==
+iSmsId){if(ZUFI_FAIL==zUfiSms_GetTotalCount(pMemStore,&iTotalCount)){free(
+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-(0x21b+702-0x4d8);}if(ZUFI_FAIL==zUfiSms_InsertNormalSmsToDb(
+;return-(0x159d+312-0x16d4);}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=(0xbb9+4313-0x1c92);for(i=(0x95f+1531-0xf5a);i<count;i++){if(
-ptDbSaveData->concat_info[(0x740+2414-0x10ac)]==i+(0x1d5b+472-0x1f32)){free(
-out_result[i]);out_result[i]=NULL;break;}}return(0x15a2+3104-0x21c2);}int
+out_result){int i=(0xb50+1701-0x11f5);for(i=(0x5f0+1966-0xd9e);i<count;i++){if(
+ptDbSaveData->concat_info[(0x37+3396-0xd79)]==i+(0x1c12+2448-0x25a1)){free(
+out_result[i]);out_result[i]=NULL;break;}}return(0x9d0+1972-0x1184);}int
zUfiSms_AddNewSmsToConcatData(T_zUfiSms_DbStoreData*ptDbSaveData,char*
pOldContent,char*pFormatNewContent,char*pRealNewContent,T_zUfiSms_DbStoreStr*pac
-,int*pConcatTotalNum,int len){int count=(0xbeb+4325-0x1cd0);char**out_result=
-NULL;char cSegChar=((char)(0xc1d+6040-0x237a));int i=(0x117c+3775-0x203b);int
-iTotalSegNum=(0x5bc+6241-0x1e1d);char acContentSeg[(0x15ef+463-0x17bc)*
+,int*pConcatTotalNum,int len){int count=(0x10dd+1128-0x1545);char**out_result=
+NULL;char cSegChar=((char)(0xf95+758-0x1250));int i=(0x155b+1540-0x1b5f);int
+iTotalSegNum=(0x2eb+1213-0x7a8);char acContentSeg[(0x1100+4389-0x2223)*
ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX*ZTE_WMS_SMS_COUNT_MAX]={
-(0x2164+1038-0x2572)};char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==
-pOldContent){return-(0xc9a+5442-0x21db);}count=zUfiSms_SplitString(pOldContent,&
-out_result,cSegChar);for(i=(0xd43+5300-0x21f7);i<count;i++){if(ptDbSaveData->
-concat_info[(0xff+6567-0x1aa4)]==i+(0x1aff+548-0x1d22)){out_result[i]=(char*)
+(0x136+3786-0x1000)};char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==
+pOldContent){return-(0x206+6741-0x1c5a);}count=zUfiSms_SplitString(pOldContent,&
+out_result,cSegChar);for(i=(0x16e9+1115-0x1b44);i<count;i++){if(ptDbSaveData->
+concat_info[(0x837+5735-0x1e9c)]==i+(0xcb5+3770-0x1b6e)){out_result[i]=(char*)
malloc(sizeof(ptDbSaveData->sms_content));memset(out_result[i],
-(0x15df+2178-0x1e61),sizeof(ptDbSaveData->sms_content));if(
+(0x1e26+260-0x1f2a),sizeof(ptDbSaveData->sms_content));if(
WMS_GW_ALPHABET_7_BIT_DEFAULT==ptDbSaveData->alphabet){isEsc=
zUfiSms_DecodeContent(ptDbSaveData->sms_content,strlen(ptDbSaveData->sms_content
),isEsc,out_result[i]);}else{strncpy(out_result[i],ptDbSaveData->sms_content,
-sizeof(ptDbSaveData->sms_content)-(0x563+4265-0x160b));}break;}}for(i=
-(0xdd6+2801-0x18c7);i<count;i++){snprintf(acContentSeg+strlen(acContentSeg),
+sizeof(ptDbSaveData->sms_content)-(0xdb3+1592-0x13ea));}break;}}for(i=
+(0x1c76+805-0x1f9b);i<count;i++){snprintf(acContentSeg+strlen(acContentSeg),
sizeof(acContentSeg)-strlen(acContentSeg),"\x25\x73",out_result[i]);strcat(
-pFormatNewContent,out_result[i]);if(i!=count-(0xd2c+2311-0x1632)){strcat(
+pFormatNewContent,out_result[i]);if(i!=count-(0x16d0+4069-0x26b4)){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=(0x2c6+7821-0x2153);i<count;i++){if(ptDbSaveData->concat_info[
-(0x1fa9+706-0x2269)]==i+(0x617+2475-0xfc1)){out_result[i]=(char*)malloc(
-SHORT_INT_LEN);memset(out_result[i],(0xcaa+6087-0x2471),SHORT_INT_LEN);snprintf(
+i=(0x11b2+2447-0x1b41);i<count;i++){if(ptDbSaveData->concat_info[
+(0x1bc4+934-0x1f68)]==i+(0x158f+3541-0x2363)){out_result[i]=(char*)malloc(
+SHORT_INT_LEN);memset(out_result[i],(0x437+4152-0x146f),SHORT_INT_LEN);snprintf(
out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->index);break;}}for(i=
-(0x1cb1+1736-0x2379);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd)
-,sizeof(pac->FormatInd)-strlen(pac->FormatInd),"\x25\x73",out_result[i]);if(i!=
-count-(0x1f72+1586-0x25a3)){snprintf(pac->FormatInd+strlen(pac->FormatInd),
-sizeof(pac->FormatInd)-strlen(pac->FormatInd),"\x3b");}}zUfiSms_ConcatDataFree(
+(0x1846+165-0x18eb);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd),
+sizeof(pac->FormatInd)-strlen(pac->FormatInd),"\x25\x73",out_result[i]);if(i!=
+count-(0x7bf+7068-0x235a)){snprintf(pac->FormatInd+strlen(pac->FormatInd),sizeof
+(pac->FormatInd)-strlen(pac->FormatInd),"\x3b");}}zUfiSms_ConcatDataFree(
ptDbSaveData,count,out_result);free(out_result);out_result=NULL;count=
-zUfiSms_SplitString(pac->Seg_Seq,&out_result,cSegChar);for(i=
-(0x1352+2136-0x1baa);i<count;i++){if(ptDbSaveData->concat_info[
-(0x63a+7523-0x239b)]==i+(0x2db+2616-0xd12)){out_result[i]=(char*)malloc(
-SHORT_INT_LEN);memset(out_result[i],(0xaba+4254-0x1b58),SHORT_INT_LEN);snprintf(
-out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->concat_info[
-(0x112+5785-0x17a9)]);break;}}for(i=(0xb31+6797-0x25be);i<count;i++){snprintf(
-pac->FormatSeq+strlen(pac->FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->
-FormatSeq),"\x25\x73",out_result[i]);if(i!=count-(0x1df6+674-0x2097)){snprintf(
-pac->FormatSeq+strlen(pac->FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->
-FormatSeq),"\x3b");}if((0x961+2137-0x11ba)!=strcmp(out_result[i],"")){
-iTotalSegNum++;}}*pConcatTotalNum=iTotalSegNum;zUfiSms_ConcatDataFree(
-ptDbSaveData,count,out_result);free(out_result);out_result=NULL;return
-(0x1144+810-0x146e);}int zUfiSms_UpdateConcatSms(T_zUfiSms_DbStoreData*
-ptDbSaveData,const char*pStorePos,long iSmsId){T_zUfiSms_DbStoreStr ac={
-(0x19dd+204-0x1aa9)};char*pOldContent=NULL;char*pFormatNewContent=NULL;char*
-pRealNewContent=NULL;int iTotalNum=(0x118f+5175-0x25c6);int result=ZUFI_SUCC;int
- spaceLen=(0x8f6+5400-0x1e0a)*ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*
-ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x781+3217-0x140e);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,(0xfb6+4074-0x1fa0),spaceLen);memset(pOldContent,
-(0x25f+2014-0xa3d),spaceLen);memset(pFormatNewContent,(0xc6+6268-0x1942),
-spaceLen);(void)zUfiSms_GetConcatInfo(pStorePos,iSmsId,&ac,pOldContent,spaceLen)
-;printf(
+zUfiSms_SplitString(pac->Seg_Seq,&out_result,cSegChar);for(i=(0x24fc+217-0x25d5)
+;i<count;i++){if(ptDbSaveData->concat_info[(0x87c+2862-0x13a8)]==i+
+(0xc15+1575-0x123b)){out_result[i]=(char*)malloc(SHORT_INT_LEN);memset(
+out_result[i],(0x19d3+2382-0x2321),SHORT_INT_LEN);snprintf(out_result[i],
+SHORT_INT_LEN,"\x25\x64",ptDbSaveData->concat_info[(0x1ca2+418-0x1e42)]);break;}
+}for(i=(0x299+6240-0x1af9);i<count;i++){snprintf(pac->FormatSeq+strlen(pac->
+FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x25\x73",out_result[i
+]);if(i!=count-(0xf81+4283-0x203b)){snprintf(pac->FormatSeq+strlen(pac->
+FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x3b");}if(
+(0x1002+4325-0x20e7)!=strcmp(out_result[i],"")){iTotalSegNum++;}}*
+pConcatTotalNum=iTotalSegNum;zUfiSms_ConcatDataFree(ptDbSaveData,count,
+out_result);free(out_result);out_result=NULL;return(0x2dc+192-0x39c);}int
+zUfiSms_UpdateConcatSms(T_zUfiSms_DbStoreData*ptDbSaveData,const char*pStorePos,
+long iSmsId){T_zUfiSms_DbStoreStr ac={(0xf6c+2522-0x1946)};char*pOldContent=NULL
+;char*pFormatNewContent=NULL;char*pRealNewContent=NULL;int iTotalNum=
+(0x253b+388-0x26bf);int result=ZUFI_SUCC;int spaceLen=(0x10b6+468-0x1286)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xff5+2240-0x18b1)
+;pOldContent=(char*)malloc(spaceLen);pFormatNewContent=(char*)malloc(spaceLen);
+pRealNewContent=(char*)malloc(spaceLen);if(pOldContent==NULL||pFormatNewContent
+==NULL||pRealNewContent==NULL){if(pOldContent)free(pOldContent);if(
+pFormatNewContent)free(pFormatNewContent);if(pRealNewContent)free(
+pRealNewContent);return ZUFI_FAIL;}memset(pRealNewContent,(0x178a+2574-0x2198),
+spaceLen);memset(pOldContent,(0x29c+6914-0x1d9e),spaceLen);memset(
+pFormatNewContent,(0xbd4+1562-0x11ee),spaceLen);(void)zUfiSms_GetConcatInfo(
+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(-(0xc51+3663-0x1a9f)==
+,ac.IndStr,ac.Seg_Seq,ac.FormatInd,ac.FormatSeq);if(-(0x4f4+93-0x550)==
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=
-(0x527+7163-0x2120);if(ZUFI_FAIL==zUfiSms_UpdateConcatSmsToDb(ptDbSaveData,
+(0x17c+5352-0x1662);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"
@@ -533,33 +530,33 @@
pFormatNewContent=NULL;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x55\x70\x64\x61\x74\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x20\x73\x75\x63\x63\x65\x73\x73\x2e" "\n"
);return result;}int zUfiSms_InsertConcatSms(T_zUfiSms_DbStoreData*ptDbSaveData,
-const char*pStorePos){T_zUfiSms_DbStoreStr ac={(0x1739+379-0x18b4)};int
-iSms_TotalCount=(0x15ba+4319-0x2699);int i=(0x103c+3305-0x1d25);char
-acTmpContent[(0x14dd+3754-0x2287)];int iConcatNum=(0xc81+2764-0x174d);char*
-pFormatConcat=NULL;char*pContent=NULL;int spaceLen=(0x416+3023-0xfe1)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x1bf+3520-0xf7b);
-if(NULL==ptDbSaveData||NULL==pStorePos){return ZUFI_FAIL;}printf(
+const char*pStorePos){T_zUfiSms_DbStoreStr ac={(0xc77+1969-0x1428)};int
+iSms_TotalCount=(0x203+4028-0x11bf);int i=(0x57d+5144-0x1995);char acTmpContent[
+(0x16d+8207-0x207c)];int iConcatNum=(0x4ea+4482-0x166c);char*pFormatConcat=NULL;
+char*pContent=NULL;int spaceLen=(0xcc0+3934-0x1c1a)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xbdb+5830-0x229d)
+;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,(0xc93+6330-0x254d),sizeof(acTmpContent));iSms_TotalCount=
-ptDbSaveData->concat_info[(0x4fc+2012-0xcd7)];for(i=(0xc0a+673-0xeaa);i<
+);memset(acTmpContent,(0x14f5+2962-0x2087),sizeof(acTmpContent));iSms_TotalCount
+=ptDbSaveData->concat_info[(0x4d8+1721-0xb90)];for(i=(0x14ba+4205-0x2526);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,(0x14c0+3601-0x22d1),
+pFormatConcat){return ZUFI_FAIL;}memset(pFormatConcat,(0xa8d+3356-0x17a9),
spaceLen);pContent=(char*)malloc(spaceLen);if(pContent==NULL){free(pFormatConcat
-);return ZUFI_FAIL;}memset(pContent,(0x1bfb+278-0x1d11),spaceLen);if(-
-(0x1713+2438-0x2098)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
+);return ZUFI_FAIL;}memset(pContent,(0x854+6613-0x2229),spaceLen);if(-
+(0x77f+5886-0x1e7c)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
pFormatConcat,pContent,&ac,&iConcatNum,spaceLen)){free(pFormatConcat);free(
pContent);pFormatConcat=NULL;pContent=NULL;return ZUFI_FAIL;}ptDbSaveData->
-tp_dcs=(0xa6d+5240-0x1ee3);if(ZUFI_FAIL==zUfiSms_InsertConcatSmsToDb(
+tp_dcs=(0x1f4a+514-0x214a);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=(0xc25+3481-0x19be);int total_count=
-(0xad3+1496-0x10ab);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
+ptDbSaveData,char*pMemStore){long iSmsId=(0x1896+77-0x18e3);int total_count=
+(0x1bb+2481-0xb6c);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
iSmsId=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,pMemStore);if(-
-(0x278+8753-0x24a8)!=iSmsId){printf(
+(0xe16+6346-0x26df)!=iSmsId){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x74\x6f\x72\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x54\x6f\x44\x62\x20\x45\x6e\x74\x65\x72\x20\x55\x70\x64\x61\x74\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x20\x53\x6d\x73\x49\x64\x3a\x25\x64\x2e" "\n"
,iSmsId);return zUfiSms_UpdateConcatSms(ptDbSaveData,pMemStore,iSmsId);}else{if(
ZUFI_FAIL==zUfiSms_GetTotalCount(pMemStore,&total_count)){printf(
@@ -571,207 +568,207 @@
"\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[(0xbd2+830-0xf06)];int iTotalCount=
-(0xf6f+1177-0x1408);int id=(0x6d1+1583-0xd00);UINT8 needCheckMemory=
-(0x2b4+1404-0x82f);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(acDbMemStore,
-(0x23d+9269-0x2672),sizeof(acDbMemStore));if(WMS_STORAGE_TYPE_UIM_V01==iMemStore
-){strncpy(acDbMemStore,ZTE_WMS_DB_SIM_TABLE,sizeof(acDbMemStore)-
-(0x270+9286-0x26b5));}else{strncpy(acDbMemStore,ZTE_WMS_DB_NV_TABLE,sizeof(
-acDbMemStore)-(0xfcf+1278-0x14cc));}if((0x1738+3475-0x24ca)==ptDbSaveData->
+iMemStore,long iSmsId){char acDbMemStore[(0x170d+1309-0x1c20)];int iTotalCount=
+(0x5a0+5350-0x1a86);int id=(0x13bf+4438-0x2515);UINT8 needCheckMemory=
+(0xf07+2071-0x171d);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(acDbMemStore
+,(0x1473+964-0x1837),sizeof(acDbMemStore));if(WMS_STORAGE_TYPE_UIM_V01==
+iMemStore){strncpy(acDbMemStore,ZTE_WMS_DB_SIM_TABLE,sizeof(acDbMemStore)-
+(0x653+6333-0x1f0f));}else{strncpy(acDbMemStore,ZTE_WMS_DB_NV_TABLE,sizeof(
+acDbMemStore)-(0x6a0+5570-0x1c61));}if((0xba0+5438-0x20dd)==ptDbSaveData->
concat_sms){id=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,&acDbMemStore);if(-
-(0x1cfd+2325-0x2611)!=id){needCheckMemory=(0x657+2202-0xef1);}}if(
-needCheckMemory==(0x3cb+801-0x6eb)){if(ZUFI_FAIL==zUfiSms_GetTotalCount(
+(0x19bb+933-0x1d5f)!=id){needCheckMemory=(0x2354+575-0x2593);}}if(
+needCheckMemory==(0x600+3313-0x12f0)){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[
-(0xae8+4634-0x1d00)]==(0xfa9+115-0x101c)||ptDbSaveData->concat_info[
-(0x8b+9469-0x2586)]>ptDbSaveData->concat_info[(0x3bf+2143-0xc1d)]){ptDbSaveData
-->concat_sms=(0x1333+1362-0x1885);}printf(
+(0x1fa+1354-0x742)]==(0x3ac+432-0x55c)||ptDbSaveData->concat_info[
+(0xf0a+2648-0x1960)]>ptDbSaveData->concat_info[(0x16c5+996-0x1aa8)]){
+ptDbSaveData->concat_sms=(0x308+2691-0xd8b);}printf(
"\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[
-(0xc6+9551-0x2614)]);if((0x188c+1994-0x2055)==ptDbSaveData->concat_sms){if(
-ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0x155b+1045-0x196f)]){
+(0x16a4+2620-0x20df)]);if((0x4e0+6927-0x1fee)==ptDbSaveData->concat_sms){if(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0x59d+8124-0x2558)]){
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=(0x3a7+7393-0x2088);if(NULL==ptDbSaveData){
+ptDbSaveData,int cid){int atRes=(0x1336+2238-0x1bf4);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,-(0x1231+1948-0x19cc))){g_zUfiSms_MsgRefer++;
-ptDbSaveData->msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(
-g_zUfiSms_MsgRefer);}}else{CHAR sendfailRetry[(0xcf3+1687-0x1358)]={
-(0x170+5512-0x16f8)};sc_cfg_get(NV_SENDFAIL_RETRY,sendfailRetry,sizeof(
-sendfailRetry));if((0x1af8+2605-0x2525)==strcmp("\x31",sendfailRetry)){
-g_zUfiSms_SendFailedRetry=(0x46a+8338-0x24f9);}atRes=zSms_SendCmgsReq();if(atRes
-!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{zSms_RecvCmgsOk();}}return
-WMS_CMD_SUCCESS;}int zUfiSms_SendConcatSms(int cid){int atRes=(0x1d0+2789-0xcb5)
-;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,(0x21f+5562-0x17d9),sizeof(
-T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0xef+7148-0x1cdb),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,-(0x1f7+3304-0xede));
-g_zUfiSms_SendFailedCount++;}else{CHAR sendfailRetry[(0x79+232-0x12f)]={
-(0x22b7+915-0x264a)};sc_cfg_get(NV_SENDFAIL_RETRY,sendfailRetry,sizeof(
-sendfailRetry));if((0xc47+2328-0x155f)==strcmp("\x31",sendfailRetry)){
-g_zUfiSms_SendFailedRetry=(0x86+3300-0xd67);}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+(0x629+1126-0xa8e))){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,(0x20b+185-0x2c4),sizeof(T_zUfiSms_StatusInfo));tSendStatus.err_code
-=ZTE_SMS_CMS_NONE;tSendStatus.send_failed_count=g_zUfiSms_SendFailedCount;
-tSendStatus.delete_failed_count=(0xc1b+355-0xd7e);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=
-(0x41c+3786-0x12e6);int i=(0x13b5+252-0x14b1);atRes=zSms_SendCmgsReq();if(atRes
-!=ZSMS_RESULT_OK){CHAR sendfailRetry[(0x1831+1724-0x1ebb)]={(0x1017+4274-0x20c9)
-};sc_cfg_get(NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if(
-(0xd16+1883-0x1471)==strcmp("\x31",sendfailRetry)){for(i=(0x11b7+3811-0x209a);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=(0x1df4+2322-0x2706);if(-
-(0x1439+574-0x1676)==g_zUfiSms_UnitLen){printf(
+WMS_STORAGE_TYPE_NV_V01,-(0xbaf+3942-0x1b14))){g_zUfiSms_MsgRefer++;ptDbSaveData
+->msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}
+}else{CHAR sendfailRetry[(0x4cb+7081-0x2042)]={(0x1138+5057-0x24f9)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x1665+97-0x16c6)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x38f+3796-0x1260);}
+atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{
+zSms_RecvCmgsOk();}}return WMS_CMD_SUCCESS;}int zUfiSms_SendConcatSms(int cid){
+int atRes=(0x148+1414-0x6ce);T_zUfiSms_ClientMsg tClientMsg;
+T_zUfiSms_DbStoreData tDbSaveData;int result=ZUFI_FAIL;if(g_zUfiSms_ConcatSms.
+current_sending>=g_zUfiSms_ConcatSms.total_msg){return ZUFI_FAIL;}memset((void*)
+&tClientMsg,(0x1b1b+1175-0x1fb2),sizeof(T_zUfiSms_ClientMsg));memset((void*)&
+tDbSaveData,(0x19eb+991-0x1dca),sizeof(tDbSaveData));zUfiSms_SetPduData(&
+tClientMsg,&tDbSaveData);if(!g_zUfiSms_IsConcatSendSuc){tDbSaveData.tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;(void)zUfiSms_WriteSmsToDb(&tDbSaveData,
+WMS_STORAGE_TYPE_NV_V01,-(0x1630+544-0x184f));g_zUfiSms_SendFailedCount++;}else{
+CHAR sendfailRetry[(0x491+6402-0x1d61)]={(0x756+496-0x946)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x1218+2239-0x1ad7)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x38f+5860-0x1a70);}
+atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{
+zSms_RecvCmgsOk();}}g_zUfiSms_ConcatSms.current_sending++;if(g_zUfiSms_ConcatSms
+.current_sending<g_zUfiSms_ConcatSms.total_msg){if(g_zUfiSms_ConcatSms.sms_len<
+g_zUfiSms_UnitLen*(g_zUfiSms_ConcatSms.current_sending+(0xe24+577-0x1064))){
+g_zUfiSms_UnitLen=g_zUfiSms_ConcatSms.sms_len-g_zUfiSms_UnitLen*
+g_zUfiSms_ConcatSms.current_sending;}}if(g_zUfiSms_ConcatSms.current_sending==
+g_zUfiSms_ConcatSms.total_msg&&!g_zUfiSms_IsConcatSendSuc){T_zUfiSms_StatusInfo
+tSendStatus;memset((void*)&tSendStatus,(0x8f2+5043-0x1ca5),sizeof(
+T_zUfiSms_StatusInfo));tSendStatus.err_code=ZTE_SMS_CMS_NONE;tSendStatus.
+send_failed_count=g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=
+(0x1d30+348-0x1e8c);tSendStatus.cmd_status=WMS_CMD_FAILED;tSendStatus.cmd=
+WMS_SMS_CMD_MSG_SEND;(void)zUfiSms_SetCmdStatus(&tSendStatus);sc_cfg_set(
+NV_SMS_SEND_RESULT,"\x66\x61\x69\x6c");sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");
+return ZUFI_FAIL;}if(!g_zUfiSms_IsConcatSendSuc){zUfiSms_SendConcatSms(cid);}
+return result;}int zSvr_sendCmgs(VOID){int atRes=(0x15a3+4249-0x263c);int i=
+(0xf91+5015-0x2328);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR
+sendfailRetry[(0x1d03+2087-0x24f8)]={(0x3ba+2226-0xc6c)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0xbfa+6606-0x25c8)==
+strcmp("\x31",sendfailRetry)){for(i=(0x9a+8532-0x21ee);i<SMS_RETRY_COUNT;i++){
+atRes=zSms_SendCmgsReq();if(atRes==ZSMS_RESULT_OK){break;}}}}return atRes;}
+T_zUfiSms_CmdStatus zUfiSms_SendSms(VOID){T_zUfiSms_ClientMsg tClientMsg;
+T_zUfiSms_DbStoreData tDbSaveData;int res=(0x2bd+6010-0x1a37);if(-
+(0x28b+229-0x36f)==g_zUfiSms_UnitLen){printf(
"\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,(0x110+8508-0x224c),
-sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x69b+3714-0x151d),
+g_zUfiSms_ConcatSms.total_msg){memset((void*)&tClientMsg,(0x1a6f+463-0x1c3e),
+sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x125+6733-0x1b72),
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,-(0xce4+3878-0x1c09));
+zUfiSms_WriteSmsToDb(&tDbSaveData,WMS_STORAGE_TYPE_NV_V01,-(0x30b+9076-0x267e));
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+(0x14b8+1843-0x1bea))){g_zUfiSms_UnitLen=g_zUfiSms_ConcatSms.
+current_sending+(0xc4f+5255-0x20d5))){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,(0x13d2+3365-0x20f7),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
+tSendStatus,(0x889+1798-0xf8f),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
err_code=ZTE_SMS_CMS_NONE;tSendStatus.send_failed_count=
-g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0x1c94+1914-0x240e);
+g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0xef3+3111-0x1b1a);
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 (0x95f+4593-0x1b50)
-if(g_zUfiSms_ConcatSms.total_msg>(0x19b+2942-0xd18)){printf(
+#if (0x920+2634-0x136a)
+if(g_zUfiSms_ConcatSms.total_msg>(0xa6+6101-0x187a)){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,(0xc72+1085-0x10af)
-,sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0xd0d+524-0xf19),
-sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&tDbSaveData);printf(
+);zUfiSms_SendConcatSms(cid);}else{memset((void*)&tClientMsg,
+(0x1767+2445-0x20f4),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,
+(0x8d7+4254-0x1975),sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&
+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[(0x1735+2209-0x1fd1)]={
-(0xe1d+1897-0x1586)};int tmp_i=(0x11aa+4407-0x22e1);memset(ptTimestamp,
-(0xe1a+3017-0x19e3),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
-(0x11ad+631-0x1423)){ptTimestamp->year=zUfiSms_atohex(
-((char)(0xed3+5565-0x2460)))*(0x862+1891-0xfb5)+zUfiSms_atohex(tData.year[
-(0x80c+316-0x948)]);}else if(strlen(tData.year)==(0x3a0+8853-0x2633)){
-ptTimestamp->year=zUfiSms_atohex(tData.year[(0x108d+2427-0x1a08)])*
-(0x577+7585-0x2308)+zUfiSms_atohex(tData.year[(0xa32+7350-0x26e7)]);}else if(
-strlen(tData.year)==(0xb70+377-0xce5)){ptTimestamp->year=zUfiSms_atohex(tData.
-year[(0x1eed+764-0x21e7)])*(0x291+8838-0x2507)+zUfiSms_atohex(tData.year[
-(0x665+877-0x9cf)]);}else{printf(
+T_zUfiSms_TimeStamp*ptTimestamp){unsigned char tTimeZone[(0x188f+2442-0x2214)]={
+(0x115a+4051-0x212d)};int tmp_i=(0x1627+523-0x1832);memset(ptTimestamp,
+(0x1316+2566-0x1d1c),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
+(0x70+5390-0x157d)){ptTimestamp->year=zUfiSms_atohex(
+((char)(0x1558+2693-0x1fad)))*(0x1600+3704-0x2468)+zUfiSms_atohex(tData.year[
+(0x16c9+1561-0x1ce2)]);}else if(strlen(tData.year)==(0xb09+681-0xdb0)){
+ptTimestamp->year=zUfiSms_atohex(tData.year[(0xc0+8822-0x2336)])*
+(0x1d9+4203-0x1234)+zUfiSms_atohex(tData.year[(0x1c52+254-0x1d4f)]);}else if(
+strlen(tData.year)==(0x9d+9518-0x25c7)){ptTimestamp->year=zUfiSms_atohex(tData.
+year[(0x16d9+2142-0x1f35)])*(0x1ba8+725-0x1e6d)+zUfiSms_atohex(tData.year[
+(0xe46+3614-0x1c61)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x79\x65\x61\x72\x2e");return ZUFI_FAIL;}if(
-strlen(tData.month)==(0xf21+1856-0x1660)){ptTimestamp->month=zUfiSms_atohex(
-((char)(0x15b2+2666-0x1fec)))*(0xcf7+3073-0x18e8)+zUfiSms_atohex(tData.month[
-(0x106+408-0x29e)]);}else if(strlen(tData.month)==(0xb5c+5273-0x1ff3)){
-ptTimestamp->month=zUfiSms_atohex(tData.month[(0x686+856-0x9de)])*
-(0x1e72+237-0x1f4f)+zUfiSms_atohex(tData.month[(0x164+2518-0xb39)]);}else{printf
-("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.day)==
-(0x707+3176-0x136e)){ptTimestamp->day=zUfiSms_atohex(((char)(0x2219+577-0x242a))
-)*(0x11f1+4498-0x2373)+zUfiSms_atohex(tData.day[(0x1179+1004-0x1565)]);}else if(
-strlen(tData.day)==(0xc01+2320-0x150f)){ptTimestamp->day=zUfiSms_atohex(tData.
-day[(0x1067+1927-0x17ee)])*(0xa3b+2207-0x12ca)+zUfiSms_atohex(tData.day[
-(0xf7d+1486-0x154a)]);}else{printf(
+strlen(tData.month)==(0x165d+1912-0x1dd4)){ptTimestamp->month=zUfiSms_atohex(
+((char)(0x11a+7482-0x1e24)))*(0x214+5411-0x1727)+zUfiSms_atohex(tData.month[
+(0x922+6269-0x219f)]);}else if(strlen(tData.month)==(0x5ad+112-0x61b)){
+ptTimestamp->month=zUfiSms_atohex(tData.month[(0x1b+1555-0x62e)])*
+(0x128+1321-0x641)+zUfiSms_atohex(tData.month[(0x13b3+3833-0x22ab)]);}else{
+printf("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.day)
+==(0x14d6+1898-0x1c3f)){ptTimestamp->day=zUfiSms_atohex(
+((char)(0x8cb+3115-0x14c6)))*(0x16cf+2346-0x1fe9)+zUfiSms_atohex(tData.day[
+(0xec0+494-0x10ae)]);}else if(strlen(tData.day)==(0x984+3978-0x190c)){
+ptTimestamp->day=zUfiSms_atohex(tData.day[(0x1200+5175-0x2637)])*
+(0x32b+6320-0x1bcb)+zUfiSms_atohex(tData.day[(0x348+5785-0x19e0)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.hour)==
-(0xbf9+4402-0x1d2a)){ptTimestamp->hour=zUfiSms_atohex(
-((char)(0x4b7+7185-0x2098)))*(0x1be0+1594-0x220a)+zUfiSms_atohex(tData.hour[
-(0x101+1233-0x5d2)]);}else if(strlen(tData.hour)==(0x1350+600-0x15a6)){
-ptTimestamp->hour=zUfiSms_atohex(tData.hour[(0xf1d+2090-0x1747)])*
-(0x101c+5147-0x2427)+zUfiSms_atohex(tData.hour[(0x40b+5577-0x19d3)]);}else{
-printf("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x68\x6f\x75\x72\x2e");}if(strlen(tData.
-min)==(0x1756+963-0x1b18)){ptTimestamp->minute=zUfiSms_atohex(
-((char)(0x17c8+1190-0x1c3e)))*(0x23c+1518-0x81a)+zUfiSms_atohex(tData.min[
-(0x184c+526-0x1a5a)]);}else if(strlen(tData.min)==(0x8e5+5403-0x1dfe)){
-ptTimestamp->minute=zUfiSms_atohex(tData.min[(0xf22+3725-0x1daf)])*
-(0xf3b+129-0xfac)+zUfiSms_atohex(tData.min[(0x962+6193-0x2192)]);}else{printf(
+(0x2a3+5138-0x16b4)){ptTimestamp->hour=zUfiSms_atohex(((char)(0xad6+1048-0xebe))
+)*(0x4ed+4996-0x1861)+zUfiSms_atohex(tData.hour[(0x2bf+7009-0x1e20)]);}else if(
+strlen(tData.hour)==(0xa86+4679-0x1ccb)){ptTimestamp->hour=zUfiSms_atohex(tData.
+hour[(0x1f7c+1328-0x24ac)])*(0xae9+6702-0x2507)+zUfiSms_atohex(tData.hour[
+(0x11f0+476-0x13cb)]);}else{printf(
+"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x68\x6f\x75\x72\x2e");}if(strlen(tData.min)==
+(0x474+2649-0xecc)){ptTimestamp->minute=zUfiSms_atohex(((char)(0x2e3+135-0x33a))
+)*(0xc13+4343-0x1cfa)+zUfiSms_atohex(tData.min[(0x22ec+944-0x269c)]);}else if(
+strlen(tData.min)==(0x2499+540-0x26b3)){ptTimestamp->minute=zUfiSms_atohex(tData
+.min[(0x3ff+3758-0x12ad)])*(0x215+7145-0x1dee)+zUfiSms_atohex(tData.min[
+(0xfb5+2242-0x1876)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x6d\x69\x6e\x75\x74\x65\x2e");}if(strlen(tData
-.sec)==(0x8f6+1144-0xd6d)){ptTimestamp->second=zUfiSms_atohex(
-((char)(0x159d+3923-0x24c0)))*(0xa78+2854-0x158e)+zUfiSms_atohex(tData.sec[
-(0xde4+5931-0x250f)]);}else if(strlen(tData.sec)==(0x49a+2827-0xfa3)){
-ptTimestamp->second=zUfiSms_atohex(tData.sec[(0xbe6+237-0xcd3)])*
-(0xf8d+1446-0x1523)+zUfiSms_atohex(tData.sec[(0xd84+6118-0x2569)]);}else{printf(
+.sec)==(0x94+4204-0x10ff)){ptTimestamp->second=zUfiSms_atohex(
+((char)(0x4b6+1927-0xc0d)))*(0x19a6+3154-0x25e8)+zUfiSms_atohex(tData.sec[
+(0x769+4225-0x17ea)]);}else if(strlen(tData.sec)==(0x485+3367-0x11aa)){
+ptTimestamp->second=zUfiSms_atohex(tData.sec[(0x2003+1389-0x2570)])*
+(0x551+2807-0x1038)+zUfiSms_atohex(tData.sec[(0xa18+4883-0x1d2a)]);}else{printf(
"\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+(0x201+443-0x3bb)||tmp_i>INT_MAX-
-(0x472+6379-0x1d5c)){printf(
+tData.timezone);if(tmp_i<INT_MIN+(0x147f+1050-0x1898)||tmp_i>INT_MAX-
+(0x135c+2358-0x1c91)){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,(0x494+2281-0xd7d),sizeof(tTimeZone))
-;snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0x58c+1875-0xcdb));if(
-tData.timezone[(0xae3+4524-0x1c8f)]==((char)(0x692+4909-0x1992))){if(strlen(
-tTimeZone)==(0x8c+3192-0xd02)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0x2ea+6349-0x1b87)))*(0x15a2+2172-0x1e0e)+zUfiSms_atohex(tTimeZone[
-(0xff5+782-0x1302)]);}else if(strlen(tTimeZone)==(0xe85+2541-0x186f)){
-ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x964+4773-0x1c08)])*
-(0x440+678-0x6dc)+zUfiSms_atohex(tTimeZone[(0xc5+6012-0x183f)]);}else{printf(
+,tmp_i);return ZUFI_FAIL;}memset(tTimeZone,(0x20a1+439-0x2258),sizeof(tTimeZone)
+);snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0xb6c+6217-0x23b1));if(
+tData.timezone[(0xabf+5606-0x20a5)]==((char)(0x1a71+66-0x1a86))){if(strlen(
+tTimeZone)==(0x892+3265-0x1551)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0x1754+1193-0x1bcd)))*(0x1cd3+2342-0x25e9)+zUfiSms_atohex(tTimeZone[
+(0x61f+6693-0x2043)]);}else if(strlen(tTimeZone)==(0x114d+2112-0x198a)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x423+3377-0x1153)])*
+(0x705+3456-0x147b)+zUfiSms_atohex(tTimeZone[(0x18e0+410-0x1a78)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2d\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}
-ptTimestamp->timezone=(0x16e3+3022-0x22b1)-ptTimestamp->timezone;}else{if(strlen
-(tTimeZone)==(0xb1b+2277-0x13ff)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0x1725+1153-0x1b76)))*(0x1742+1641-0x1d9b)+zUfiSms_atohex(tTimeZone[
-(0x14+7265-0x1c75)]);}else if(strlen(tTimeZone)==(0x126d+1174-0x1701)){
-ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x93a+3927-0x1891)])*
-(0xc75+3807-0x1b4a)+zUfiSms_atohex(tTimeZone[(0xff8+1101-0x1444)]);}else{printf(
+ptTimestamp->timezone=(0x1c8f+421-0x1e34)-ptTimestamp->timezone;}else{if(strlen(
+tTimeZone)==(0x163+1591-0x799)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0x3d8+2635-0xdf3)))*(0x1855+2217-0x20ee)+zUfiSms_atohex(tTimeZone[
+(0xa32+2557-0x142f)]);}else if(strlen(tTimeZone)==(0x3f1+4931-0x1732)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0xe0+7423-0x1ddf)])*
+(0xacf+4311-0x1b9c)+zUfiSms_atohex(tTimeZone[(0xfc2+585-0x120a)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2b\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}}
return ZUFI_SUCC;}void zUfiSms_FillDeliver(T_zUfiSms_DeliverPdu*deliver,
T_zUfiSms_ConcatInfo*concat_sms,T_zUfiSms_DbStoreData*ptDbSaveData){static
-UINT16 msg_ref=(0x83a+4944-0x1b8a);deliver->user_data_header_present=TRUE;if(
-(0x7c2+4668-0x19fe)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference++
+UINT16 msg_ref=(0x1fcc+1398-0x2542);deliver->user_data_header_present=TRUE;if(
+(0x20ba+301-0x21e7)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference++
;(void)zUfiSms_SetConcatMaxRefer(g_zUfiSms_ConcatSmsReference);}deliver->
-user_data_header_present=TRUE;deliver->user_data.num_headers=
-(0x1a4a+2576-0x2459);deliver->user_data.headers[(0xfa0+4105-0x1fa9)].header_id=
-WMS_UDH_CONCAT_8;deliver->user_data.headers[(0xcf5+5097-0x20de)].u.concat_8.
-msg_ref=msg_ref;deliver->user_data.headers[(0x1672+314-0x17ac)].u.concat_8.
-total_sm=concat_sms->total_msg;deliver->user_data.headers[(0xbfa+33-0xc1b)].u.
-concat_8.seq_num=concat_sms->current_sending+(0x8a4+3857-0x17b4);ptDbSaveData->
-concat_sms=(0x22b+5256-0x16b2);ptDbSaveData->concat_info[(0xeed+3122-0x1b1f)]=
-msg_ref;}void zUfiSms_FillDeliverPdu(T_zUfiSms_DeliverPdu*ptDeliver,
-T_zUfiSms_ConcatInfo*concat_sms,T_zUfiSms_GroupInfo*group_sms,int iSmsLen,
-T_zUfiSms_DbStoreData*ptDbSaveData){if(NULL==concat_sms||NULL==group_sms){return
-;}ptDeliver->more=FALSE;ptDeliver->reply_path_present=FALSE;ptDeliver->
-status_report_enabled=g_zUfiSms_CurSmsPara.status_report_on;ptDeliver->pid=
-WMS_PID_DEFAULT;ptDeliver->dcs.msg_class=WMS_MESSAGE_CLASS_NONE;ptDeliver->dcs.
-is_compressed=FALSE;if(g_zUfiSms_Dcs==DCS_ASC){ptDeliver->dcs.alphabet=
-WMS_GW_ALPHABET_7_BIT_DEFAULT;}else{ptDeliver->dcs.alphabet=WMS_GW_ALPHABET_UCS2
-;}if(concat_sms->total_msg>(0x128a+382-0x1407)){zUfiSms_FillDeliver(ptDeliver,
-concat_sms,ptDbSaveData);ptDbSaveData->concat_sms=(0x52f+5807-0x1bdd);
-ptDbSaveData->concat_info[(0x1149+2766-0x1c15)]=concat_sms->current_sending+
-(0x154f+4004-0x24f2);ptDbSaveData->concat_info[(0x66+9871-0x26f4)]=concat_sms->
-total_msg;ptDbSaveData->concat_info[(0x359+2187-0xbe4)]=ptDeliver->user_data.
-headers[(0xf36+1678-0x15c4)].u.concat_8.msg_ref;}else{ptDeliver->
-user_data_header_present=FALSE;ptDeliver->user_data.num_headers=
-(0xfb2+3791-0x1e81);}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][(0x1058+725-0x132d)]==
-((char)(0x19f8+2686-0x244b))){(void)zUfiSms_CharToInt(group_sms->receivers[
-group_sms->current_receiver]+(0x202+9191-0x25e8),strlen(group_sms->receivers[
-group_sms->current_receiver])-(0x240+6107-0x1a1a),ptDeliver->address.digits);
-ptDeliver->address.number_type=WMS_NUMBER_INTERNATIONAL;ptDeliver->address.
-number_of_digits=(UINT8)strlen(group_sms->receivers[group_sms->current_receiver]
-)-(0xac1+4559-0x1c8f);}else{(void)zUfiSms_CharToInt(group_sms->receivers[
-group_sms->current_receiver],strlen(group_sms->receivers[group_sms->
+user_data_header_present=TRUE;deliver->user_data.num_headers=(0x1cda+991-0x20b8)
+;deliver->user_data.headers[(0x1c88+765-0x1f85)].header_id=WMS_UDH_CONCAT_8;
+deliver->user_data.headers[(0x1ea3+545-0x20c4)].u.concat_8.msg_ref=msg_ref;
+deliver->user_data.headers[(0x561+5603-0x1b44)].u.concat_8.total_sm=concat_sms->
+total_msg;deliver->user_data.headers[(0x12f2+2214-0x1b98)].u.concat_8.seq_num=
+concat_sms->current_sending+(0x1392+398-0x151f);ptDbSaveData->concat_sms=
+(0xb98+6847-0x2656);ptDbSaveData->concat_info[(0x610+2409-0xf79)]=msg_ref;}void
+zUfiSms_FillDeliverPdu(T_zUfiSms_DeliverPdu*ptDeliver,T_zUfiSms_ConcatInfo*
+concat_sms,T_zUfiSms_GroupInfo*group_sms,int iSmsLen,T_zUfiSms_DbStoreData*
+ptDbSaveData){if(NULL==concat_sms||NULL==group_sms){return;}ptDeliver->more=
+FALSE;ptDeliver->reply_path_present=FALSE;ptDeliver->status_report_enabled=
+g_zUfiSms_CurSmsPara.status_report_on;ptDeliver->pid=WMS_PID_DEFAULT;ptDeliver->
+dcs.msg_class=WMS_MESSAGE_CLASS_NONE;ptDeliver->dcs.is_compressed=FALSE;if(
+g_zUfiSms_Dcs==DCS_ASC){ptDeliver->dcs.alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}
+else{ptDeliver->dcs.alphabet=WMS_GW_ALPHABET_UCS2;}if(concat_sms->total_msg>
+(0x2261+1183-0x26ff)){zUfiSms_FillDeliver(ptDeliver,concat_sms,ptDbSaveData);
+ptDbSaveData->concat_sms=(0x20cc+1461-0x2680);ptDbSaveData->concat_info[
+(0x369+4143-0x1396)]=concat_sms->current_sending+(0x2c0+2664-0xd27);ptDbSaveData
+->concat_info[(0x6b9+4295-0x177f)]=concat_sms->total_msg;ptDbSaveData->
+concat_info[(0x942+6663-0x2349)]=ptDeliver->user_data.headers[(0x2a1+1523-0x894)
+].u.concat_8.msg_ref;}else{ptDeliver->user_data_header_present=FALSE;ptDeliver->
+user_data.num_headers=(0x841+3980-0x17cd);}ptDeliver->user_data.sm_len=iSmsLen;
+memcpy(ptDeliver->user_data.sm_data,concat_sms->msg_contents[concat_sms->
+current_sending],iSmsLen);if(group_sms->receivers[group_sms->current_receiver][
+(0x7db+2058-0xfe5)]==((char)(0xd52+4538-0x1ee1))){(void)zUfiSms_CharToInt(
+group_sms->receivers[group_sms->current_receiver]+(0x1334+141-0x13c0),strlen(
+group_sms->receivers[group_sms->current_receiver])-(0xfdd+2217-0x1885),ptDeliver
+->address.digits);ptDeliver->address.number_type=WMS_NUMBER_INTERNATIONAL;
+ptDeliver->address.number_of_digits=(UINT8)strlen(group_sms->receivers[group_sms
+->current_receiver])-(0x624+3088-0x1233);}else{(void)zUfiSms_CharToInt(group_sms
+->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->
receivers[group_sms->current_receiver]);}ptDeliver->address.digit_mode=
@@ -783,7 +780,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,-
-(0x866+1225-0xd2e))){at_print(LOG_ERR,
+(0xa82+275-0xb94))){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(
@@ -799,19 +796,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=
-(0x1be3+2384-0x2533);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
-(0x257+3272-0xf1e)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
-current_sending=(0x3ed+8123-0x23a8);ptConcatSms->current_sending<ptConcatSms->
+(0x74d+4430-0x189b);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
+(0x1367+1788-0x1a62)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
+current_sending=(0x16b2+2869-0x21e7);ptConcatSms->current_sending<ptConcatSms->
total_msg;ptConcatSms->current_sending++){memset((void*)&tClientMsg,
-(0xb55+291-0xc78),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
-(0x12ad+2642-0x1cff),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
-(0x79d+6695-0x21c4),sizeof(T_zUfiSms_DbStoreData));tClientMsg.msg_hdr.mem_store=
-(ptSaveSms->mem_store==WMS_STORAGE_TYPE_UIM_V01)?WMS_STORAGE_TYPE_UIM_V01:
+(0xd41+6411-0x264c),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
+(0x79b+2259-0x106e),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
+(0x1df6+1120-0x2256),sizeof(T_zUfiSms_DbStoreData));tClientMsg.msg_hdr.mem_store
+=(ptSaveSms->mem_store==WMS_STORAGE_TYPE_UIM_V01)?WMS_STORAGE_TYPE_UIM_V01:
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
-(0x1497+570-0x16cd):{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)
+(0x1624+3020-0x21ec):{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;(
@@ -823,42 +820,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)-
-(0x1f0f+1674-0x2598));if(TRUE==g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){result=
+(0x738+6865-0x2208));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==(0x1291+2305-0x1b91)){result=
+);}else{if(tDbSaveData.concat_sms==(0x11eb+2808-0x1ce2)){result=
zUfiSms_SaveConcatSms(ptSaveSms,ptConcatSms,ptGroupSms,&tDbSaveData,iSmsLength);
-current_sending=ptConcatSms->current_sending+(0x1c84+510-0x1e81);if(ptConcatSms
-->sms_len<iSmsLength*(current_sending+(0x23a0+541-0x25bc))){iSmsLength=
+current_sending=ptConcatSms->current_sending+(0x1f64+561-0x2194);if(ptConcatSms
+->sms_len<iSmsLength*(current_sending+(0x511+1938-0xca2))){iSmsLength=
ptConcatSms->sms_len-iSmsLength*current_sending;}}else{result=
zUfiSms_SaveNormalSms(ptSaveSms,&tDbSaveData);}}}return result;}int
-zUfiSms_DeleteSmsInSim(){char str_index[(0xdc+9044-0x23b0)]={(0xcb3+3509-0x1a68)
-};int index=(0xa11+4899-0x1d34);int is_cc=(0x514+3376-0x1244);int iSmsId=
-(0x8c7+5715-0x1f1a);T_zUfiSms_ModifyTag tDeleteInfo={(0x1cda+2389-0x262f)};char
-StrValue[(0x7a2+2216-0x1040)]={(0xfb0+1661-0x162d)};memset(&tDeleteInfo,
-(0x206f+1680-0x26ff),sizeof(T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_DelMsg.sim_id
-[g_zUfiSms_DelMsg.sim_index];if(-(0x79+3899-0xfb3)==(is_cc=zUfiSms_IsConcatSms(
-iSmsId))){printf(
+zUfiSms_DeleteSmsInSim(){char str_index[(0x18dc+3611-0x2677)]={
+(0x133+3166-0xd91)};int index=(0x83+3304-0xd6b);int is_cc=(0xcdb+1807-0x13ea);
+int iSmsId=(0x23f4+141-0x2481);T_zUfiSms_ModifyTag tDeleteInfo={
+(0xa84+1749-0x1159)};char StrValue[(0x998+3726-0x181c)]={(0x6d3+4721-0x1944)};
+memset(&tDeleteInfo,(0x11d5+1292-0x16e1),sizeof(T_zUfiSms_ModifyTag));iSmsId=
+g_zUfiSms_DelMsg.sim_id[g_zUfiSms_DelMsg.sim_index];if(-(0x1a7c+1112-0x1ed3)==(
+is_cc=zUfiSms_IsConcatSms(iSmsId))){printf(
"\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((0x127+9284-0x256a)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(
+,is_cc,iSmsId);if((0xcfa+5591-0x22d0)==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>
-(0x705+6716-0x2141)){index=tDeleteInfo.indices[tDeleteInfo.id_index];
+(0x1c95+247-0x1d8c)){index=tDeleteInfo.indices[tDeleteInfo.id_index];
g_deleteIndex.index[g_deleteIndex.total]=index;g_deleteIndex.total++;tDeleteInfo
.id_index++;tDeleteInfo.num_of_indices--;}}else{memset(str_index,
-(0x2e7+2523-0xcc2),sizeof(str_index));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
+(0x889+939-0xc34),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=(0x1f89+400-0x2119);
-char StrValue[(0x1d39+1059-0x2152)]={(0x64b+6757-0x20b0)};zUfiSms_SetSmsLocation
-(SMS_LOCATION_SIM);memset(&g_deleteIndex,(0x30b+275-0x41e),sizeof(
+T_zUfiSms_CmdStatus zUfiSms_DeleteSimSms(VOID){int atRes=(0x118f+3998-0x212d);
+char StrValue[(0x75c+2170-0xfcc)]={(0xd24+5184-0x2164)};zUfiSms_SetSmsLocation(
+SMS_LOCATION_SIM);memset(&g_deleteIndex,(0x1b8b+1928-0x2313),sizeof(
T_zUfiSms_DelIndexInfo));while(g_zUfiSms_DelMsg.sim_index_count>
-(0x1673+662-0x1909)){if(ZUFI_FAIL==zUfiSms_DeleteSmsInSim()){printf(
+(0x95b+4836-0x1c3f)){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.
@@ -867,69 +864,69 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x69\x6d\x53\x6d\x73\x20\x73\x75\x63\x63\x65\x73\x73" "\n"
);return WMS_CMD_SUCCESS;}void zUfiSms_GetReportStatus(char*pdu_tmp,int*stat){
unsigned char tmp;unsigned char first_octet;if(pdu_tmp==NULL){return;}(void)
-String2Bytes(pdu_tmp,&tmp,(0x225+1597-0x860));if(tmp==(0x11f9+1507-0x17dc)){
-pdu_tmp+=(0x583+7116-0x214d);}else{tmp=(tmp+(0x810+4013-0x17bc))*
-(0x19d8+1231-0x1ea5);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
-(0x83f+1244-0xd19));first_octet=tmp;if(first_octet&(0xacd+3266-0x178d)){*stat=
-(0x98+3004-0xc4f);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
-T_zUfiSms_TpduType iTpduType;UINT8 mti=(0xcdc+477-0xeb9);mti=(T_zUfiSms_TpduType
-)(pData[(0x1ef4+41-0x1f1d)]&(0x8bf+5443-0x1dff));switch(mti){case
-(0x78a+4741-0x1a0f):iTpduType=WMS_TPDU_DELIVER;break;case(0x20+9513-0x2548):
-iTpduType=WMS_TPDU_SUBMIT;break;case(0x980+2939-0x14f9):iTpduType=
+String2Bytes(pdu_tmp,&tmp,(0x81+8292-0x20e3));if(tmp==(0x1327+3611-0x2142)){
+pdu_tmp+=(0xf6f+578-0x11af);}else{tmp=(tmp+(0x1ab9+2941-0x2635))*
+(0x135+1050-0x54d);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
+(0x1828+3488-0x25c6));first_octet=tmp;if(first_octet&(0x94b+5511-0x1ed0)){*stat=
+(0x168+4760-0x13fb);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
+T_zUfiSms_TpduType iTpduType;UINT8 mti=(0x53f+458-0x709);mti=(T_zUfiSms_TpduType
+)(pData[(0x26a2+103-0x2709)]&(0xb5b+3509-0x190d));switch(mti){case
+(0x1d69+1538-0x236b):iTpduType=WMS_TPDU_DELIVER;break;case(0x147+3625-0xf6f):
+iTpduType=WMS_TPDU_SUBMIT;break;case(0x1c0b+988-0x1fe5):iTpduType=
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=(0x11ad+4602-0x23a7);memset(pNumber,
-(0x637+3345-0x1348),ZTE_WMS_ADDRESS_LEN_MAX+(0x478+1631-0xad6));if(tAddress.
-number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x4e8+888-0x860)]=
-((char)(0x59+3993-0xfc7));pNumber++;}if(tAddress.digit_mode!=
+unsigned char*pNumber){UINT8 number_type=(0x8+9042-0x235a);memset(pNumber,
+(0x777+2940-0x12f3),ZTE_WMS_ADDRESS_LEN_MAX+(0xf53+32-0xf72));if(tAddress.
+number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x1cf+47-0x1fe)]=
+((char)(0x51c+2940-0x106d));pNumber++;}if(tAddress.digit_mode!=
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[(0x78+6864-0x1b48)]));}}byte*zUfiSms_UtilTimeStamp(
+sizeof(tAddress.digits[(0x80a+5668-0x1e2e)]));}}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)(0x5c1+1634-0xc01));tmp=zte_wms_time.
-year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x1e04+1808-0x2505))+((tmp>>
-(0x33a+2535-0xd1d))*(0x84d+3441-0x15b4)),res_ptr);zUfiSms_SprintfTime(date->year
-,sizeof(date->year),zte_wms_time.year);*res_ptr++=((char)(0xc02+3496-0x197b));
-tmp=zte_wms_time.month;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x4fb+7952-0x23fc)
-)+((tmp>>(0x69f+3750-0x1541))*(0x636+6452-0x1f60)),res_ptr);zUfiSms_SprintfTime(
-date->month,sizeof(date->month),zte_wms_time.month);*res_ptr++=
-((char)(0x55f+3864-0x1448));tmp=zte_wms_time.day;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0xbf9+6686-0x2608))+((tmp>>(0x17fc+818-0x1b2a))*
-(0x1933+3274-0x25f3)),res_ptr);zUfiSms_SprintfTime(date->day,sizeof(date->day),
-zte_wms_time.day);*res_ptr++=((char)(0x58b+1794-0xc61));tmp=zte_wms_time.hour;
-res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x208+5422-0x1727))+((tmp>>
-(0x105b+4305-0x2128))*(0xcfc+3220-0x1986)),res_ptr);zUfiSms_SprintfTime(date->
-hour,sizeof(date->hour),zte_wms_time.hour);*res_ptr++=
-((char)(0x7b3+4166-0x17bf));tmp=zte_wms_time.minute;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0x901+5749-0x1f67))+((tmp>>(0x13ba+2163-0x1c29))*
-(0x95d+1341-0xe90)),res_ptr);zUfiSms_SprintfTime(date->min,sizeof(date->min),
-zte_wms_time.minute);*res_ptr++=((char)(0xa2a+5443-0x1f33));tmp=zte_wms_time.
-second;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0xb36+5707-0x2172))+((tmp>>
-(0x21cb+188-0x2283))*(0x2f8+7156-0x1ee2)),res_ptr);zUfiSms_SprintfTime(date->sec
-,sizeof(date->sec),zte_wms_time.second);if(zte_wms_time.timezone<
-(0xf5c+3852-0x1e68)){*res_ptr++=((char)(0x466+7982-0x2367));tmp=(UINT8)(
-zte_wms_time.timezone*(-(0x1a0a+3070-0x2607)));snprintf(date->timezone,sizeof(
-date->timezone),"\x2d\x25\x64",-(0x689+978-0xa5a)*zte_wms_time.timezone);}else{*
-res_ptr++=((char)(0x600+2775-0x10ac));tmp=(UINT8)zte_wms_time.timezone;snprintf(
+NULL==date){return NULL;}*res_ptr++=((char)(0x169c+2977-0x221b));tmp=
+zte_wms_time.year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x4a1+8796-0x26ee))+((
+tmp>>(0x659+3364-0x1379))*(0x112a+1285-0x1625)),res_ptr);zUfiSms_SprintfTime(
+date->year,sizeof(date->year),zte_wms_time.year);*res_ptr++=
+((char)(0x471+7827-0x22d5));tmp=zte_wms_time.month;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0x1aa7+502-0x1c8e))+((tmp>>(0x5b0+4473-0x1725))*
+(0x1741+2164-0x1fab)),res_ptr);zUfiSms_SprintfTime(date->month,sizeof(date->
+month),zte_wms_time.month);*res_ptr++=((char)(0x268+179-0x2ec));tmp=zte_wms_time
+.day;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x11c4+1808-0x18c5))+((tmp>>
+(0x11e9+2426-0x1b5f))*(0x1823+525-0x1a26)),res_ptr);zUfiSms_SprintfTime(date->
+day,sizeof(date->day),zte_wms_time.day);*res_ptr++=((char)(0x1b94+2419-0x24db));
+tmp=zte_wms_time.hour;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x36a+7544-0x20d3))
++((tmp>>(0x1132+391-0x12b5))*(0x2124+1314-0x263c)),res_ptr);zUfiSms_SprintfTime(
+date->hour,sizeof(date->hour),zte_wms_time.hour);*res_ptr++=
+((char)(0x1455+2614-0x1e51));tmp=zte_wms_time.minute;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0x2c1+5458-0x1804))+((tmp>>(0xe5+9073-0x2452))*
+(0xbfc+231-0xcd9)),res_ptr);zUfiSms_SprintfTime(date->min,sizeof(date->min),
+zte_wms_time.minute);*res_ptr++=((char)(0x193+700-0x415));tmp=zte_wms_time.
+second;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x585+2345-0xe9f))+((tmp>>
+(0x1f2+233-0x2d7))*(0x907+1532-0xef9)),res_ptr);zUfiSms_SprintfTime(date->sec,
+sizeof(date->sec),zte_wms_time.second);if(zte_wms_time.timezone<
+(0x157+2335-0xa76)){*res_ptr++=((char)(0x693+6952-0x218e));tmp=(UINT8)(
+zte_wms_time.timezone*(-(0xc0+5474-0x1621)));snprintf(date->timezone,sizeof(date
+->timezone),"\x2d\x25\x64",-(0x1d57+654-0x1fe4)*zte_wms_time.timezone);}else{*
+res_ptr++=((char)(0x67c+2391-0xfa8));tmp=(UINT8)zte_wms_time.timezone;snprintf(
date->timezone,sizeof(date->timezone),"\x2b\x25\x64",zte_wms_time.timezone);}
res_ptr=zUfiSms_SmsiUtilitoaFill(tmp,res_ptr);*res_ptr++=
-((char)(0x3b8+8203-0x23a1));return res_ptr;}T_zUfiSms_CmdStatus
+((char)(0x1f6f+1834-0x2677));return res_ptr;}T_zUfiSms_CmdStatus
zUfiSms_HandleReport(unsigned char*ptPduData){T_zUfiSms_RawTsData tRawTsData;
-T_zUfiSms_ClientTsData tClientTsData;int iReportStatus=(0x415+4069-0x13fa);
-unsigned char acDeliverNumber[ZTE_WMS_ADDRESS_LEN_MAX+(0xbf0+2414-0x155d)];
-unsigned char tTpScts[ZTE_WMS_TP_SCTS_LEN_MAX+(0x103c+2832-0x1b4b)];
-T_zUfiSms_Date tSmsDate;char acRecFlag[(0x1c67+44-0x1c8e)]={(0x1042+1198-0x14f0)
-};int iRpCount=(0x4af+8112-0x245f);char tmp[(0x36a+5787-0x19fb)];int tmp_i=
-(0x42+7054-0x1bd0);unsigned int pos=(0x13df+2905-0x1f38);if(NULL==ptPduData){
-return WMS_CMD_FAILED;}memset(acDeliverNumber,(0xc83+4915-0x1fb6),sizeof(
-acDeliverNumber));memset(&tSmsDate,(0x2c6+74-0x310),sizeof(T_zUfiSms_Date));
-memset(tTpScts,(0xd86+322-0xec8),sizeof(tTpScts));memset(&tRawTsData,
-(0x580+3483-0x131b),sizeof(T_zUfiSms_RawTsData));memset(&tClientTsData,
-(0x4a5+1024-0x8a5),sizeof(T_zUfiSms_ClientTsData));snprintf(tmp,sizeof(tmp),
-"\x25\x58",ptPduData[(0x2dd+1775-0x9cc)]);tmp_i=atoi(tmp);if(tmp_i<
-(0xafb+3981-0x1a88)||tmp_i>INT_MAX-(0xd06+3369-0x1a2e)){at_print(LOG_ERR,
+T_zUfiSms_ClientTsData tClientTsData;int iReportStatus=(0x5c9+3140-0x120d);
+unsigned char acDeliverNumber[ZTE_WMS_ADDRESS_LEN_MAX+(0x189+4578-0x136a)];
+unsigned char tTpScts[ZTE_WMS_TP_SCTS_LEN_MAX+(0x2aa+7716-0x20cd)];
+T_zUfiSms_Date tSmsDate;char acRecFlag[(0x146+6574-0x1aef)]={(0xd39+2663-0x17a0)
+};int iRpCount=(0x1e9d+1389-0x240a);char tmp[(0x8dc+6529-0x2253)];int tmp_i=
+(0x462+2254-0xd30);unsigned int pos=(0x3ea+3682-0x124c);if(NULL==ptPduData){
+return WMS_CMD_FAILED;}memset(acDeliverNumber,(0x89c+4154-0x18d6),sizeof(
+acDeliverNumber));memset(&tSmsDate,(0x1249+3275-0x1f14),sizeof(T_zUfiSms_Date));
+memset(tTpScts,(0x7b1+6964-0x22e5),sizeof(tTpScts));memset(&tRawTsData,
+(0x15d9+4295-0x26a0),sizeof(T_zUfiSms_RawTsData));memset(&tClientTsData,
+(0x22fb+627-0x256e),sizeof(T_zUfiSms_ClientTsData));snprintf(tmp,sizeof(tmp),
+"\x25\x58",ptPduData[(0x514+8276-0x2568)]);tmp_i=atoi(tmp);if(tmp_i<
+(0x20b7+735-0x2396)||tmp_i>INT_MAX-(0x276+6843-0x1d30)){at_print(LOG_ERR,
"\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+(0x905+7636-0x26d8);if(pos>=
+,tmp_i);return WMS_CMD_FAILED;}pos=tmp_i+(0x4c2+4699-0x171c);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(&
@@ -938,59 +935,60 @@
"\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x67\x77\x2f\x77\x63\x64\x6d\x61\x20\x73\x6d\x73\x20\x72\x65\x70\x6f\x72\x74\x20\x73\x74\x61\x74\x75\x73\x2e"
);return WMS_CMD_FAILED;}switch(tClientTsData.u.gw_pp.u.status_report.tp_status)
{case WMS_TP_STATUS_RECEIVED_OK:case WMS_TP_STATUS_UNABLE_TO_CONFIRM_DELIVERY:
-case WMS_TP_STATUS_REPLACED:{iReportStatus=(0x1484+3840-0x2383);break;}case
+case WMS_TP_STATUS_REPLACED:{iReportStatus=(0x119+5159-0x153f);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=(0x390+2803-0xe80);break;}default:{iReportStatus=
-(0x141d+4556-0x25e7);break;}}zUfiSms_FormatDeliverNumber(tClientTsData.u.gw_pp.u
-.status_report.address,acDeliverNumber);(void)zUfiSms_UtilTimeStamp(
-tClientTsData.u.gw_pp.u.status_report.timestamp,tTpScts,&tSmsDate);if(ZUFI_FAIL
-==zUfiSms_InsertReportStatusToDb(acDeliverNumber,&tSmsDate,iReportStatus)){
+iReportStatus=(0xa38+6764-0x24a1);break;}default:{iReportStatus=
+(0x23a+1600-0x878);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,(0x606+1346-0xb48),sizeof(acRecFlag));
-sc_cfg_get(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag,sizeof(acRecFlag));iRpCount=
-atoi(acRecFlag);if(iRpCount<(0x4b0+6564-0x1e54)||iRpCount>INT_MAX-
-(0x2164+72-0x21ab)){at_print(LOG_ERR,
+);return WMS_CMD_FAILED;}memset(acRecFlag,(0x4fc+3593-0x1305),sizeof(acRecFlag))
+;sc_cfg_get(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag,sizeof(acRecFlag));iRpCount=
+atoi(acRecFlag);if(iRpCount<(0xa59+6151-0x2260)||iRpCount>INT_MAX-
+(0x2c+6893-0x1b18)){at_print(LOG_ERR,
"\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,(0x8dd+1649-0xf4e),sizeof(
+,iRpCount);return WMS_CMD_FAILED;}memset(acRecFlag,(0x823+6402-0x2125),sizeof(
acRecFlag));snprintf(acRecFlag,sizeof(acRecFlag),"\x25\x64",iRpCount+
-(0x2586+46-0x25b3));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return
+(0x1d01+1392-0x2270));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return
WMS_CMD_SUCCESS;}void zUfiSms_DelModemSms(int in_index){
-#if (0x111c+4073-0x2105)
-char StrValue[(0x735+3646-0x1569)]={(0x4a2+5945-0x1bdb)};printf(
+#if (0x1c5a+1800-0x2362)
+char StrValue[(0x17f5+2461-0x2188)]={(0x15c3+788-0x18d7)};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=(0x28a+1048-0x6a2);atRes=zSms_SendCmgdReq(in_index);if(atRes==
+int atRes=(0x1487+1795-0x1b8a);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=
-(0x952+6674-0x2364);memset(&g_zUfiSms_modifyMsg,(0xb9d+5695-0x21dc),sizeof(
-T_zUfiSms_ModifySms));for(i=(0x1956+2987-0x2501);i<ptModifyBuff->total_id;i++){
+(0x2bb+6582-0x1c71);memset(&g_zUfiSms_modifyMsg,(0x13d2+55-0x1409),sizeof(
+T_zUfiSms_ModifySms));for(i=(0x228f+971-0x265a);i<ptModifyBuff->total_id;i++){
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[(0x2134+490-0x229e)]={
-(0x1b72+1126-0x1fd8)};int index=(0x839+1486-0xe07);int is_cc=(0xcbc+687-0xf6b);
-int iSmsId=(0x1da6+2406-0x270c);T_zUfiSms_ModifyTag tModifyInfo={
-(0x3a2+1789-0xa9f)};char StrValue[(0xe1b+3348-0x1b25)]={(0x17b+8444-0x2277)};
-memset(&tModifyInfo,(0x145a+2124-0x1ca6),sizeof(T_zUfiSms_ModifyTag));iSmsId=
-g_zUfiSms_modifyMsg.sim_id[g_zUfiSms_modifyMsg.sim_index];if(-(0xec8+202-0xf91)
-==(is_cc=zUfiSms_IsConcatSms(iSmsId))){at_print(LOG_ERR,
+zUfiSms_GetUnreadSmsIndexInSim(){char str_index[(0x2f7+1819-0x992)]={
+(0x105a+4019-0x200d)};int index=(0x1c68+1992-0x2430);int is_cc=
+(0x1303+974-0x16d1);int iSmsId=(0x13db+2840-0x1ef3);T_zUfiSms_ModifyTag
+tModifyInfo={(0x1202+2351-0x1b31)};char StrValue[(0x625+100-0x67f)]={
+(0x720+3683-0x1583)};memset(&tModifyInfo,(0x148+8057-0x20c1),sizeof(
+T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_modifyMsg.sim_id[g_zUfiSms_modifyMsg.
+sim_index];if(-(0x40+4487-0x11c6)==(is_cc=zUfiSms_IsConcatSms(iSmsId))){at_print
+(LOG_ERR,
"\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((0xb78+6440-0x249f)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(iSmsId,
-&tModifyInfo,is_cc)){return ZUFI_FAIL;}g_zUfiSms_modifyMsg.sim_index++;
+,is_cc);if((0x18+4399-0x1146)==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>
-(0x708+3951-0x1677)){index=tModifyInfo.indices[tModifyInfo.id_index];
+(0x131a+4188-0x2376)){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,(0x17cb+2463-0x216a),sizeof(
+,index,g_modifyIndex.total);}}else{memset(str_index,(0xd6a+2039-0x1561),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"
@@ -999,14 +997,14 @@
g_zUfiSms_modifyMsg.sim_index_count--;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x55\x6e\x72\x65\x61\x64\x53\x6d\x73\x49\x6e\x64\x65\x78\x49\x6e\x53\x69\x6d\x20\x5b\x31\x20\x21\x3d\x20\x69\x73\x5f\x63\x63\x5d\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64\x2c\x20\x74\x6f\x74\x61\x6c\x3d\x25\x64" "\n"
,index,g_modifyIndex.total);}return ZUFI_SUCC;}void zUfiSms_ModifyModemSms(
-T_zUfiSms_ModifyFlag*ptModifyBuff){int atRes=(0x734+2322-0x1046);char StrValue[
-(0xf1+5892-0x17eb)]={(0x1214+2682-0x1c8e)};printf(
+T_zUfiSms_ModifyFlag*ptModifyBuff){int atRes=(0xac1+2148-0x1325);char StrValue[
+(0x6b+1224-0x529)]={(0x780+1784-0xe78)};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,
-(0x15ff+2359-0x1f36),sizeof(T_zUfiSms_ModifyIndexInfo));printf(
+(0x2010+1092-0x2454),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>
-(0xd11+4571-0x1eec)){if(ZUFI_FAIL==zUfiSms_GetUnreadSmsIndexInSim()){at_print(
+(0x3e4+4640-0x1604)){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.
@@ -1025,22 +1023,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[(0x2074+1222-0x2530)];int tmp_i=
-(0x453+1531-0xa4e);unsigned int pos=(0x54b+7314-0x21dd);int result=ZUFI_SUCC;if(
+T_zUfiSms_ClientTsData ts_data_ptr;char tmp[(0x1b2a+1726-0x21de)];int tmp_i=
+(0x36a+135-0x3f1);unsigned int pos=(0x1140+2457-0x1ad9);int result=ZUFI_SUCC;if(
NULL==pDb_Data){return ZUFI_FAIL;}pDb_Data->mem_store=(unsigned long)iStorePos;
pDb_Data->index=(unsigned short)msg_index;if(RECEIVED_UNREAD==bSms_Status){
pDb_Data->tag=WMS_TAG_TYPE_MT_NOT_READ_V01;}else if(RECEIVED_READ==bSms_Status){
pDb_Data->tag=WMS_TAG_TYPE_MT_READ_V01;}else if(STORED_UNSEND==bSms_Status){
pDb_Data->tag=WMS_TAG_TYPE_MO_NOT_SENT_V01;}else{pDb_Data->tag=
WMS_TAG_TYPE_MO_SENT_V01;}pDb_Data->mode=(unsigned short)format;memset(&raw_ts,
-(0x1de4+1155-0x2267),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
-(0x65b+3201-0x12dc),sizeof(wms_client_ts_data_s_type));memset(tmp,
-(0x9c0+1697-0x1061),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
-pPdu_Received[(0x8bf+5726-0x1f1d)]);tmp_i=atoi(tmp);if(tmp_i<(0x609+7741-0x2446)
-||tmp_i>INT_MAX-(0x3ef+5467-0x1949)){at_print(LOG_ERR,
+(0x1045+2552-0x1a3d),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
+(0x1396+281-0x14af),sizeof(wms_client_ts_data_s_type));memset(tmp,
+(0x6ba+7484-0x23f6),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
+pPdu_Received[(0xf0+8625-0x22a1)]);tmp_i=atoi(tmp);if(tmp_i<(0x1bdc+1063-0x2003)
+||tmp_i>INT_MAX-(0x151+6652-0x1b4c)){at_print(LOG_ERR,
"\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+(0xe38+1310-0x1355);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+(0x5db+1098-0xa24);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);
@@ -1049,62 +1047,61 @@
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[
-(0xaf4+3055-0x16bf)]={(0x14c2+3452-0x223e)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit
-,sizeof(IsInit));if((0x8d0+5921-0x1ff1)==strcmp("\x6f\x6b",IsInit)){printf(
+(0x2449+215-0x24fc)]={(0x2df+6326-0x1b95)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit,
+sizeof(IsInit));if((0x431+6539-0x1dbc)==strcmp("\x6f\x6b",IsInit)){printf(
"\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 (0x5fc+8272-0x264c)
+#if (0xd1d+6464-0x265d)
int zUfiSms_FormatSms(CHAR*pSmsRawContent,int contentSize,T_zUfiSms_SmsItem*
-ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x817+493-0x9d8)));
-if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0x3aa+1431-0x940)),
-((char)(0x1c55+861-0x1f86)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((char
-*)(P2+(0xca7+501-0xe9b)),((char)(0xac7+3794-0x196d)));atBase_PreProcRes(
-pSmsRawContent,contentSize);if((0x540+3964-0x14bb)==iCmdId){if(P3==P2+
-(0x98d+5639-0x1f93)){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(
-(0x333+1322-0x85b)==iCmdId){if(P2==P1+(0x4f8+6371-0x1dda)){sscanf(pSmsRawContent
-,"\x25\x64\x20\x25\x64\x20",&ptSmsPara->stat,&ptSmsPara->length);}else{sscanf(
-pSmsRawContent,"\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&ptSmsPara->stat,
-ptSmsPara->alpha,&ptSmsPara->length);}}atBase_RestoreString(ptSmsPara->alpha);
-atBase_RestoreString(ptSmsPara->pdu);return ZUFI_SUCC;}
+ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x79b+6768-0x21df)))
+;if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0x727+7422-0x2424)),
+((char)(0x1916+2314-0x21f4)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((
+char*)(P2+(0x20a+6638-0x1bf7)),((char)(0x16ab+2989-0x222c)));atBase_PreProcRes(
+pSmsRawContent,contentSize);if((0x5cc+2529-0xfac)==iCmdId){if(P3==P2+
+(0x69a+590-0x8e7)){sscanf(pSmsRawContent,"\x25\x64\x20\x25\x64\x20\x25\x64\x20",
+&ptSmsPara->index,&ptSmsPara->stat,&ptSmsPara->length);}else{sscanf(
+pSmsRawContent,"\x25\x64\x20\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&
+ptSmsPara->index,&ptSmsPara->stat,ptSmsPara->alpha,&ptSmsPara->length);}}else if
+((0x605+2583-0x101a)==iCmdId){if(P2==P1+(0x1f02+185-0x1fba)){sscanf(
+pSmsRawContent,"\x25\x64\x20\x25\x64\x20",&ptSmsPara->stat,&ptSmsPara->length);}
+else{sscanf(pSmsRawContent,"\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&
+ptSmsPara->stat,ptSmsPara->alpha,&ptSmsPara->length);}}atBase_RestoreString(
+ptSmsPara->alpha);atBase_RestoreString(ptSmsPara->pdu);return ZUFI_SUCC;}
#endif
void zUfiSms_CmglRespProc(T_zSms_SmsInd*pSmsItem){T_zUfiSms_CmdStatus result=
-WMS_CMD_PROCESSING;T_zUfiSms_DbStoreData db_data={(0x205+6821-0x1caa)};
+WMS_CMD_PROCESSING;T_zUfiSms_DbStoreData db_data={(0x1d8c+772-0x2090)};
zUfiSms_StoreType mem_store=WMS_STORAGE_TYPE_UIM_V01;unsigned char pdu_tmp[
-ZSMS_PDU_SIZE]={(0x506+2182-0xd8c)};int total_count=(0x7e4+1548-0xdf0);int
-sim_capability=(0x35+7189-0x1c4a);printf(
+ZSMS_PDU_SIZE]={(0x3f0+3242-0x109a)};int total_count=(0xd62+4394-0x1e8c);int
+sim_capability=(0x422+2768-0xef2);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,(0x2228+1099-0x2673),
-sizeof(db_data));memset(pdu_tmp,(0x81+773-0x386),sizeof(pdu_tmp));(void)
+,strlen(pSmsItem->pdu),pSmsItem->pdu);memset(&db_data,(0x173a+2627-0x217d),
+sizeof(db_data));memset(pdu_tmp,(0x238b+187-0x2446),sizeof(pdu_tmp));(void)
String2Bytes(pSmsItem->pdu,pdu_tmp,(int)strlen(pSmsItem->pdu));
-#if (0xe60+3056-0x1a4f)
-zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0x1fc+4264-0x129f)==
+#if (0xc9d+3607-0x1ab3)
+zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0x14d+1313-0x669)==
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 (0x935+4482-0x1ab6)
+#if (0x1021+462-0x11ee)
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 (0x4ac+539-0x6c6)
+#if (0x238+7182-0x1e45)
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,-(0xc55+4189-0x1cb1));{}
-#if (0x40+9237-0x2454)
+(void)zUfiSms_WriteSmsToDb(&db_data,mem_store,-(0x259+382-0x3d6));{}
+#if (0x720+2836-0x1233)
if(SMS_LOCATION_SIM==g_zUfiSms_CurLocation){CHAR simCapability[
-(0x74a+4312-0x17f0)]={(0x970+6129-0x2161)};sc_cfg_get(
+(0x9f0+6686-0x23dc)]={(0xc6+2959-0xc55)};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){
@@ -1114,18 +1111,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)!=(0x150+6618-0x1b2a)){if((access(
-ZTE_WMS_TMP1_PATH,F_OK)==(0x3dd+8819-0x2650))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
-(0x2048+172-0x20f4))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
-(0x135b+2790-0x1e41)){printf(
+if(access(ZTE_WMS_DB_PATH,F_OK)!=(0x1f4+6395-0x1aef)){if((access(
+ZTE_WMS_TMP1_PATH,F_OK)==(0x41b+7738-0x2255))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
+(0x30d+198-0x3d3))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
+(0x1cd6+563-0x1f09)){printf(
"\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)==(0x11c2+4348-0x22be))&&(access(
-ZTE_WMS_SEC_PATH,F_OK)!=(0x10c3+3446-0x1e39))){if(rename(ZTE_WMS_TMP0_PATH,
-ZTE_WMS_SEC_PATH)!=(0x503+1661-0xb80)){printf(
+);}}if((access(ZTE_WMS_TMP0_PATH,F_OK)==(0x731+1385-0xc9a))&&(access(
+ZTE_WMS_SEC_PATH,F_OK)!=(0xcdd+2494-0x169b))){if(rename(ZTE_WMS_TMP0_PATH,
+ZTE_WMS_SEC_PATH)!=(0x23a8+673-0x2649)){printf(
"\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)==(0x207+6748-0x1c63)){char rnum_buf[
-(0x1b82+2755-0x262d)]={(0x854+1258-0xd3e)};char cmd[(0x194c+1247-0x1dab)]={
-(0xab1+2211-0x1354)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZTE_WMS_SEC_PATH,F_OK)==(0x56b+6173-0x1d88)){char rnum_buf[
+(0x1503+2461-0x1e88)]={(0x631+2303-0xf30)};char cmd[(0x3b3+8217-0x234c)]={
+(0x1300+1167-0x178f)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
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);}}
@@ -1137,47 +1134,47 @@
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_SendSmsStatusInfo(
MSG_SMS_DEFAULT);g_zUfiSms_MsgRefer=zUfiSms_GetSmsMaxReferInDb();
g_zUfiSms_ConcatSmsReference=zUfiSms_GetConcatMaxReferInDb();}void
-zUfiSms_CfgSmsNvInit(void){char tmp[(0x13a3+1990-0x1b5f)]={(0xa8+6317-0x1955)};
+zUfiSms_CfgSmsNvInit(void){char tmp[(0x1a50+3057-0x2637)]={(0xea3+651-0x112e)};
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,(0x700+4490-0x188a),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
+pStatusInfo,(0xe47+682-0x10f1),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
iCmdId;pStatusInfo->cmd_status=WMS_CMD_PROCESSING;pStatusInfo->err_code=
-ZTE_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0x1b5b+2498-0x251d);pStatusInfo
-->delete_failed_count=(0x516+6167-0x1d2d);(void)zUfiSms_SetCmdStatus(pStatusInfo
-);}void zUfiSms_CfgInit(void){char tmp[(0x47+902-0x3c3)]={(0x2b6+1818-0x9d0)};
+ZTE_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0x6b4+868-0xa18);pStatusInfo->
+delete_failed_count=(0x1570+1840-0x1ca0);(void)zUfiSms_SetCmdStatus(pStatusInfo)
+;}void zUfiSms_CfgInit(void){char tmp[(0x6b+2432-0x9e1)]={(0x8bb+5415-0x1de2)};
sc_cfg_set(NV_SMS_STATE,"");sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,"");sc_cfg_set(
NV_SMS_LOAD_RESULT,"");sc_cfg_set(NV_SMS_RECV_RESULT,"");snprintf(tmp,sizeof(tmp
),"\x25\x64",ZTE_WMS_DB_MSG_COUNT_MAX);sc_cfg_set(ZTE_WMS_NVCONFIG_NV_CAPABILITY
,tmp);sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CAPABILITY,"");sc_cfg_set(
ZTE_WMS_NVCONFIG_SMS_REPORT,"");sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");sc_cfg_set(
NV_SMS_CENTER_NUM,"");}int zUfiSms_IsUnreadSms(T_zUfiSms_MemoryType mem_store){
-int total_count=(0x12f+1451-0x6da);char buf[(0x8c6+889-0xc2b)]={
-(0x3c+8722-0x224e)};if(ZUFI_FAIL==zUfiSms_GetTagCountInDb(mem_store,
+int total_count=(0x13b8+4560-0x2588);char buf[(0x145+9310-0x258f)]={
+(0x7ab+4156-0x17e7)};if(ZUFI_FAIL==zUfiSms_GetTagCountInDb(mem_store,
WMS_TAG_TYPE_MT_NOT_READ_V01,&total_count)){return FALSE;}sprintf(buf,"\x25\x64"
,total_count);sc_cfg_set(
"\x73\x6d\x73\x5f\x75\x6e\x72\x65\x61\x64\x5f\x63\x6f\x75\x6e\x74",buf);if(
-(0xc71+2771-0x1744)==total_count){return FALSE;}else{return TRUE;}}VOID
+(0x6b7+1267-0xbaa)==total_count){return FALSE;}else{return TRUE;}}VOID
zUfiSms_SendSmsStatusInfo(wms_message_status_info sms_op){
-T_zUfi_SmsStatusInfoInd ind={(0x1235+961-0x15f6)};CHAR temp[(0x1a83+1337-0x1f8a)
-]={(0x2b3+5191-0x16fa)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=
-(0x3c5+2001-0xb95);}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=
-(0x510+8393-0x25d8);}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.
-sms_unread_ind=(0x19e5+2811-0x24df);}else{ind.sms_unread_ind=(0x6f1+3547-0x14cc)
-;}sc_cfg_get("\x73\x6d\x73\x5f\x75\x6e\x72\x65\x61\x64\x5f\x63\x6f\x75\x6e\x74",
+T_zUfi_SmsStatusInfoInd ind={(0x1dab+1248-0x228b)};CHAR temp[(0xf2d+3024-0x1acb)
+]={(0x6e5+4640-0x1905)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=
+(0x14f9+3630-0x2326);}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=
+(0x1b77+2264-0x244e);}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.
+sms_unread_ind=(0xac1+4263-0x1b67);}else{ind.sms_unread_ind=(0x85b+3749-0x1700);
+}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=(0x10cd+3945-0x2035);}else{ind.
-sms_memory_full_ind=(0xa90+4710-0x1cf6);}printf(
+]==TRUE)){ind.sms_memory_full_ind=(0xb81+4874-0x1e8a);}else{ind.
+sms_memory_full_ind=(0xf45+2207-0x17e4);}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,(0x129a+2843-0x1db5));if(ind.sms_memory_full_ind==
-(0x1c4c+465-0x1e1c)){sc_cfg_set(NV_SMS_INIT_STATUS,
+T_zUfi_SmsStatusInfoInd),&ind,(0x452+1876-0xba6));if(ind.sms_memory_full_ind==
+(0xb46+1864-0x128d)){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==(0x4d6+8639-0x2694)){sc_cfg_set(NV_SMS_INIT_STATUS,
+sms_unread_ind==(0x939+3810-0x181a)){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(
@@ -1186,7 +1183,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,(0x11c3+375-0x1339),pushSmsLen,fp);if(len==
+);return;}len=fwrite(pushSms,(0xeb8+760-0x11af),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 4aa8f11..e6956bd 100755
--- a/ap/app/zte_comm/sms/src/sms_main.c
+++ b/ap/app/zte_comm/sms/src/sms_main.c
@@ -15,42 +15,43 @@
g_zUfiSms_FinalCmgsBuf;extern int g_zUfiSms_CurConcatSegNo;extern
T_zUfiSms_DbStoreData g_zUfiSms_DbStoreData[ZTE_WMS_CONCAT_SMS_COUNT_MAX];extern
int g_zUfiSms_SendFailedCount;extern int g_zUfiSms_ConcatTotalNum;extern UINT8
-g_zUfiSms_IsConcatSendSuc;int iSmsIndex=(0xaa3+2576-0x14b3);int g_zSms_MsqId=-
-(0x68b+4600-0x1882);int g_zSms_LocalMsqId=-(0x1404+278-0x1519);sem_t
-g_sms_sem_id;T_zSms_optRsp g_smsOptRsp={(0xa27+1248-0xf07)};static const
-T_zSmsHandleTable SmsHandleWebTab[]={{MSG_CMD_SEND_SMS,atWeb_SendSms,TRUE},{
+g_zUfiSms_IsConcatSendSuc;int iSmsIndex=(0x1a5+4164-0x11e9);int g_zSms_MsqId=-
+(0x285+1323-0x7af);int g_zSms_LocalMsqId=-(0x789+2328-0x10a0);sem_t g_sms_sem_id
+;T_zSms_optRsp g_smsOptRsp={(0xd2+7472-0x1e02)};static const T_zSmsHandleTable
+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},{(0x30+9887-0x26cf),NULL,FALSE}};VOID atWeb_SendSms(
-UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;T_zUfiSms_StatusInfo tStatus={
-(0x36c+366-0x4da)};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={(0xecc+62-0xf0a)};T_zUfiSms_CmdStatus result=
-WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x85c+1798-0xf62)};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 (0xe25+1588-0x1459)
+atWeb_OutdateSmsCheck,TRUE},{(0xdaa+3222-0x1a40),NULL,FALSE}};VOID atWeb_SendSms
+(UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;T_zUfiSms_StatusInfo tStatus={
+(0x164c+1111-0x1aa3)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)
+pDatabuf;zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_SEND);(void)
+zUfiSms_SendRawSms((T_zUfiSms_SendReq*)ptMessage->msg_data);}VOID
+atWeb_DelSmsByIndex(UINT8*pDatabuf){T_zUfiSms_DelReq tDelReq={(0xfcb+457-0x1194)
+};T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={
+(0x541+2834-0x1053)};assert(pDatabuf!=NULL);printf(
+"[SMS] atWeb_DelSmsByIndex recv msg\n");memcpy(&tDelReq,pDatabuf,sizeof(
+T_zUfiSms_DelReq));zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_DELETE);result
+=zUfiSms_DeleteSms(&tDelReq);tStatus.cmd_status=result;(void)
+zUfiSms_SetCmdStatus(&tStatus);zUfiMmi_SendSmsStatus();}VOID atWeb_DelSmsByType(
+UINT8*pDatabuf){
+#if (0x4a6+4403-0x15d9)
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,(0x261+6056-0x1a09),req
-->eBoxName);if(req->eBoxName==SMS_INBOX){sms_LoadSmsFromSim();}
+,req->eBoxName);SMS_DeleteRecordFromXML(SMS_LOCATION_SIM,(0x141f+3062-0x2015),
+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={
-(0x95+6333-0x1952)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)pDatabuf
-;zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_MODIFY_TAG);result=
+(0xcd9+6357-0x25ae)};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={(0x506+1616-0xb56)};assert(
+WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x1532+4418-0x2674)};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,251 +61,251 @@
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={
-(0xb6b+561-0xd9c)};printf(
+(0x3b+5469-0x1598)};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={(0x1d76+868-0x20da)};
+pDatabuf){T_zUfiSms_DelReq tSmsDel={(0x1b5d+477-0x1d3a)};
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>(0x289+8769-0x24ca)){
-atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x661+6311-0x1f08),sizeof(
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x7eb+1972-0xf9f)){
+atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x591+2777-0x106a),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>(0x250+5469-0x17ad)){
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x561+4185-0x15ba)){
atWeb_DelSmsByIndex(&tSmsDel);}}VOID zSms_HandleWebMsg(MSG_BUF*ptMsgBuf){UINT32
-i=(0x21b+4384-0x133b);assert(ptMsgBuf!=NULL);printf(
+i=(0x1e4a+796-0x2166);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((0x1c10+1035-0x201b)!=SmsHandleWebTab[i].msg_id){if(
+,ptMsgBuf->usMsgCmd);while((0x1027+1208-0x14df)!=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,(0x1e89+1201-0x233a));}else if(NULL!=SmsHandleWebTab[i].
+ptMsgBuf->aucDataBuf,(0x17bc+534-0x19d2));}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,(0x2fc+159-0x39b));return(0xdfb+1050-0x1215);}SINT32
-zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x14c8+855-0x181f)};
-memset(&sendSmsInfo,(0x13ec+1841-0x1b1d),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
+unsigned char*)pData,(0xef1+4672-0x2131));return(0x161a+3782-0x24e0);}SINT32
+zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x191a+1852-0x2056)};
+memset(&sendSmsInfo,(0x9c+1137-0x50d),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
length=g_zUfiSms_FinalCmgsBuf.length;if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<
-ZSMS_PDU_SIZE-(0x11c9+2543-0x1bb7)){memcpy(sendSmsInfo.pdu,
-g_zUfiSms_FinalCmgsBuf.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));}else{printf(
+ZSMS_PDU_SIZE-(0xd92+3323-0x1a8c)){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-(0x1ebc+792-0x21d2));}*(sendSmsInfo.pdu+strlen(
+ZSMS_PDU_SIZE-(0x504+8504-0x263a));}*(sendSmsInfo.pdu+strlen(
g_zUfiSms_FinalCmgsBuf.pdu))=ZSMS_CTRL_Z_CHAR;
-#if (0x9f7+3471-0x1785)
+#if (0x10ac+4793-0x2364)
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==(0x1bd1+1819-0x22eb)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x11c+4929-0x145c)){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-(0x16d5+3880-0x25fc)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0xb46+1624-0x119d)].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-(0x2ba+292-0x3dd)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x1e6c+1165-0x22f8)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0xa31+5191-0x1e77)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x1a65+484-0x1c48)){
g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc();}SINT32 zSms_SendCmgdReq
-(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0x4dd+1060-0x901)};delSmsReq.index=
+(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0x455+8369-0x2506)};delSmsReq.index=
index;zSms_SendMsg(MSG_CMD_DELSMS_REQ,sizeof(T_zSms_DelSmsReq),&delSmsReq);
-sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x1608+2855-0x212e)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x82a+6188-0x2055)){return
ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmgdOk(VOID){CHAR
-strUsed[(0x85a+6031-0x1fdf)]={(0x175c+3245-0x2409)};int used=
-(0x1029+1902-0x1797);int tmp_i=(0x0+760-0x2f8);sc_cfg_set(NV_SMS_DEL_RESULT,
-"\x6f\x6b");printf(
+strUsed[(0xc68+5533-0x21fb)]={(0x1e3+6325-0x1a98)};int used=(0x13e3+3569-0x21d4)
+;int tmp_i=(0x10f8+1312-0x1618);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
"\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<(0x6b9+8144-0x2689)||tmp_i>INT_MAX-(0xfa1+5338-0x247a)){
+strUsed);if(tmp_i<(0x2c+5151-0x144b)||tmp_i>INT_MAX-(0xbc1+1745-0x1291)){
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=(0x8f4+7283-0x2567);}used=tmp_i-(0x1711+3013-0x22d5);if(used<
-(0x1d04+1712-0x23b4)){used=(0xbc+5169-0x14ed);}memset(&strUsed,
-(0x2d1+6673-0x1ce2),(0x108d+1662-0x1701));snprintf(strUsed,sizeof(strUsed),
+,tmp_i);tmp_i=(0x1044+1553-0x1655);}used=tmp_i-(0x345+3352-0x105c);if(used<
+(0x600+5981-0x1d5d)){used=(0xca9+1166-0x1137);}memset(&strUsed,
+(0x1396+1813-0x1aab),(0x13df+1807-0x1ae4));snprintf(strUsed,sizeof(strUsed),
"\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[(0x182c+1343-0x1d61)]={
-(0x1b67+623-0x1dd6)};CHAR strTotal[(0x6ff+2828-0x1201)]={(0x18d2+91-0x192d)};
-CHAR strUsed[(0x1f7f+1165-0x2402)]={(0x1870+581-0x1ab5)};int total=
-(0xb2d+946-0xedf);int used=(0x1acc+2380-0x2418);int remain=(0x1644+755-0x1937);
+);}VOID zSms_RecvCmgdFinish(VOID){char StrValue[(0x12e5+3076-0x1edf)]={
+(0xf08+502-0x10fe)};CHAR strTotal[(0xf5d+5511-0x24da)]={(0x903+5521-0x1e94)};
+CHAR strUsed[(0xf9c+2542-0x1980)]={(0x57+2208-0x8f7)};int total=
+(0x1437+86-0x148d);int used=(0x5ad+6681-0x1fc6);int remain=(0x743+5625-0x1d3c);
sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
-strUsed);if(used<(0xe77+184-0xf2f)||used>INT_MAX-(0x349+2213-0xbed)){at_print(
-LOG_ERR,
+strUsed);if(used<(0x2138+527-0x2347)||used>INT_MAX-(0x326+3793-0x11f6)){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=(0x1696+2417-0x2007);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
-strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0x19e1+219-0x1abc)||
-total>INT_MAX-(0x9e7+6417-0x22f7)){at_print(LOG_ERR,
+,used);used=(0x1d61+378-0x1edb);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
+strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0x25d1+264-0x26d9)||
+total>INT_MAX-(0x65+7921-0x1f55)){at_print(LOG_ERR,
"\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=(0xaef+6240-0x234f);}remain=total-used;if(remain<
-(0x2eb+1189-0x790)){remain=(0x10c5+2787-0x1ba8);}memset(&StrValue,
-(0xd21+2240-0x15e1),(0x1bb0+307-0x1cd9));snprintf(StrValue,sizeof(StrValue),
+,total);total=(0x243+6689-0x1c64);}remain=total-used;if(remain<
+(0x359+2899-0xeac)){remain=(0x6f7+2962-0x1289);}memset(&StrValue,
+(0x2069+634-0x22e3),(0x2367+765-0x265a));snprintf(StrValue,sizeof(StrValue),
"\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={(0x10a+7264-0x1d6a)};storageReq.type=avail;zSms_SendMsg(
+storageReq={(0x14a+9231-0x2559)};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==(0x2627+68-0x266a)){return ZSMS_RESULT_OK;}
-else{return ZSMS_RESULT_ERROR;}}int zSms_SendCmgrReq(UINT8 index){
-T_zSms_ModifyTagReq modTagReq={(0x242+6425-0x1b5b)};modTagReq.index=index;
+g_sms_sem_id);if(g_smsOptRsp.result==(0x24cd+156-0x2568)){return ZSMS_RESULT_OK;
+}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCmgrReq(UINT8 index){
+T_zSms_ModifyTagReq modTagReq={(0x101f+420-0x11c3)};modTagReq.index=index;
zSms_SendMsg(MSG_CMD_MODIFY_TAG_REQ,sizeof(T_zSms_ModifyTagReq),&modTagReq);
-sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0xd9+9767-0x26ff)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x470+1090-0x8b1)){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)-
-(0x77+4733-0x12f3));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),&
-setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x13ef+1589-0x1a23)){
+(0xdf8+4233-0x1e80));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),&
+setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0xd1+5497-0x1649)){
return ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCnmiReq(PSTR
- pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0x431+7313-0x20c2)};if(
-(0xba+618-0x324)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
-(0x759+1047-0xb6f);}else{notifySetReq.mt=(0x2f4+390-0x478);}zSms_SendMsg(
+ pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0xa7+3126-0xcdd)};if(
+(0x81a+3342-0x1528)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
+(0x7ad+1253-0xc91);}else{notifySetReq.mt=(0x928+4992-0x1ca6);}zSms_SendMsg(
MSG_CMD_NOTIFY_SET_REQ,sizeof(T_zSms_NotifySetReq),¬ifySetReq);sem_wait(&
-g_sms_sem_id);if(g_smsOptRsp.result==(0xb53+1513-0x113b)){return ZSMS_RESULT_OK;
+g_sms_sem_id);if(g_smsOptRsp.result==(0x216f+727-0x2445)){return ZSMS_RESULT_OK;
}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmtInd(UINT8*pDatabuf){CHAR
-needSMS[(0xf14+3453-0x1c5f)]={(0xd1b+56-0xd53)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x3f9+1983-0xbb8)==strcmp(needSMS,"\x6e\x6f")){
+needSMS[(0x7e3+2573-0x11be)]={(0x3ca+1080-0x802)};sc_cfg_get(NV_NEED_SUPPORT_SMS
+,needSMS,sizeof(needSMS));if((0x13e4+1804-0x1af0)==strcmp(needSMS,"\x6e\x6f")){
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={(0x566+7744-0x23a6)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0x107+6511-0x1a76)};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[(0x33+2986-0xbbf)]={
-(0x11f3+3945-0x215c)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf
-;CHAR needSMS[(0x1735+3918-0x2651)]={(0x15c+4742-0x13e2)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xdb3+4313-0x1e8c)==strcmp(
+zSms_RecvCmtiInd(UINT8*pDatabuf){char sms_Main_state[(0xfb6+1251-0x147b)]={
+(0x1656+1991-0x1e1d)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf
+;CHAR needSMS[(0x2d7+8306-0x2317)]={(0x31+4623-0x1240)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x92c+2071-0x1143)==strcmp(
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")==
-(0x188+166-0x22e)){printf(
+(0x930+2892-0x147c)){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((0x59+3778-0xf1b)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0x3cf+8913-0x269e))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0x6d5+7236-0x2319)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0x557+1913-0xcce))){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[(0x1dd1+490-0x1f89)]={(0xc86+4421-0x1dcb)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xacc+2112-0x130c)==strcmp(
-needSMS,"\x6e\x6f")){printf(
+needSMS[(0x247+2131-0xa68)]={(0x2312+925-0x26af)};sc_cfg_get(NV_NEED_SUPPORT_SMS
+,needSMS,sizeof(needSMS));if((0x28+1959-0x7cf)==strcmp(needSMS,"\x6e\x6f")){
+printf(
"\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={(0x4ba+3087-0x10c9)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0xf40+4662-0x2176)};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[(0x929+1061-0xd30)]={
-(0xb70+5055-0x1f2f)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
-CHAR needSMS[(0x2225+583-0x243a)]={(0xfab+2972-0x1b47)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xc2c+4548-0x1df0)==strcmp(
+zSms_RecvCdsiInd(UINT8*pDatabuf){char sms_Main_state[(0x1075+736-0x1337)]={
+(0x1dd3+894-0x2151)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
+CHAR needSMS[(0xe78+1196-0x12f2)]={(0x1b22+1720-0x21da)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xf10+2652-0x196c)==strcmp(
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")==
-(0x6a7+5529-0x1c40)){printf(
+(0x1b28+1636-0x218c)){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((0x1478+2081-0x1c99)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0x9+2942-0xb85))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0x9b8+6995-0x250b)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0xa8a+1712-0x1138))){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={(0x1e62+1437-0x23ff)};CHAR ackPduStr[
-(0x350+6206-0x1b5c)]={(0x1ea3+380-0x201f)};ackReq.ackmode=ack_mode;if(ack_mode==
-(0x774+703-0xa31)){zUfiSms_EncodePdu_DeliverReport(ackPduStr,(0x3d7+2785-0xde5))
-;memcpy(ackReq.pdu,ackPduStr,strlen(ackPduStr));
-#if (0xf0+3352-0xe08)
-if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0x50a+1492-0xadd)){memcpy(ackReq.pdu,
+T_zSms_SmsAckReq ackReq={(0x1563+1128-0x19cb)};CHAR ackPduStr[
+(0xdc7+6031-0x2524)]={(0xbb3+6162-0x23c5)};ackReq.ackmode=ack_mode;if(ack_mode==
+(0x1439+3953-0x23a8)){zUfiSms_EncodePdu_DeliverReport(ackPduStr,
+(0x712+1932-0xdcb));memcpy(ackReq.pdu,ackPduStr,strlen(ackPduStr));
+#if (0x63b+8267-0x2686)
+if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0x1e2c+1909-0x25a0)){memcpy(ackReq.pdu,
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-(0x11d9+3649-0x2018));}
+,ackPduStr);memcpy(ackReq.pdu,ackPduStr,ZSMS_PDU_SIZE-(0x78+3146-0xcc0));}
#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)/(0xbf7+3361-0x1916);}zSms_SendMsg(
+,ackReq.pdu);ackReq.length=strlen(ackPduStr)/(0x204d+1611-0x2696);}zSms_SendMsg(
MSG_CMD_SMSACK_REQ,sizeof(T_zSms_SmsAckReq),&ackReq);sem_wait(&g_sms_sem_id);if(
-g_smsOptRsp.result==(0x766+1532-0xd61)){return ZSMS_RESULT_OK;}else{return
+g_smsOptRsp.result==(0x14cc+3075-0x20ce)){return ZSMS_RESULT_OK;}else{return
ZSMS_RESULT_ERROR;}}int zSms_SendZmgrReq(int index){T_zSms_ReadSmsReq readSmsReq
-={(0x38c+3006-0xf4a)};iSmsIndex=index;printf(
+={(0x1fa0+305-0x20d1)};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(0x770+383-0x8ef);}VOID zSms_RecvZmgrRsp(
-UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0x19dc+1304-0x1ef4)};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={(0x700+2513-0x10d1)};memcpy(&smsOptRsp,
-(T_zSms_optRsp*)pDatabuf,sizeof(T_zSms_optRsp));if(smsOptRsp.result==
-(0x10a7+104-0x110e)){sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{printf(
+T_zSms_ReadSmsReq),&readSmsReq);return(0x10f8+1790-0x17f6);}VOID
+zSms_RecvZmgrRsp(UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0x36f+7855-0x221e)};
+memcpy(&tCmgrRsp,(T_zSms_SmsInd*)pDatabuf,sizeof(T_zSms_SmsInd));tCmgrRsp.index=
+iSmsIndex;zUfiSms_ZmgrRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();}VOID
+zSms_RecvZmgrOk(UINT8*pDatabuf){T_zSms_optRsp smsOptRsp={(0xe8d+112-0xefd)};
+memcpy(&smsOptRsp,(T_zSms_optRsp*)pDatabuf,sizeof(T_zSms_optRsp));if(smsOptRsp.
+result==(0x11cf+3629-0x1ffb)){sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{
+printf(
"\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((
-(0x26a+4745-0x14f2)==ptPara->result)&&((0x2420+121-0x2499)==ptPara->opertype)){
-CHAR needSms[(0xae9+942-0xe65)]={(0x48+5754-0x16c2)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0xf84+6008-0x26fc)!=strcmp(
+(0x16c7+4126-0x26e4)==ptPara->result)&&((0xa52+3625-0x187b)==ptPara->opertype)){
+CHAR needSms[(0x6f4+6897-0x21b3)]={(0x152+1866-0x89c)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0x149c+2189-0x1d29)!=strcmp(
needSms,"\x6e\x6f")){zSvr_Zpbic_Sms_Init();}}}VOID zSms_RecvCpmsInd(UINT8*
pDatabuf){T_zSms_CpmsInd*cpmsInd=(T_zSms_CpmsInd*)pDatabuf;CHAR strBuf[
-(0x248d+77-0x24d0)]={(0xeff+1885-0x165c)};int remainSpace=(0x607+4615-0x180e);
+(0x187+3515-0xf38)]={(0x1e05+369-0x1f76)};int remainSpace=(0x19b8+1744-0x2088);
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,(0xa90+4146-0x1ac2),
-(0x1fad+1337-0x24dc));snprintf(strBuf,sizeof(strBuf),"\x25\x64",cpmsInd->used);
+ZTE_WMS_NVCONFIG_SIM_CAPABILITY,strBuf);memset(&strBuf,(0x350+134-0x3d6),
+(0x1e40+2006-0x260c));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,(0x9b1+543-0xbd0),(0x148+4436-0x1292));snprintf(
+cpmsInd->used;memset(&strBuf,(0x2525+377-0x269e),(0x1174+738-0x144c));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 (0xef7+5859-0x259a)
+#define AT_CMD_MAX (0xad2+6343-0x2359)
#define ZAT_TAB_REPLACE ((unsigned char )(\
-(0x2268+1267-0x265f)))
-#define ZAT_NULL_FILL ((unsigned char )((0x309+3107-0xe2f)\
-))
-#define ZAT_SPACE_REPLACE ((unsigned char )((0x1736+91-0x1693)\
-))
-#define ZAT_LF_REPLACE ((unsigned char )(\
-(0x1726+315-0x1766)))
+(0x16b9+2121-0x1e06)))
+#define ZAT_NULL_FILL ((unsigned char )(\
+(0x7d6+3449-0x1452)))
+#define ZAT_SPACE_REPLACE ((unsigned char )(\
+(0x387+5632-0x1889)))
+#define ZAT_LF_REPLACE ((unsigned char )((0x5d1+583-0x71d))\
+)
#define ZAT_CR_REPLACE ((unsigned char )(\
-(0xd32+1413-0x11bd)))
+(0xf21+1565-0x1444)))
static void atBase_PreProcRes(char*pParaLine,int paraSize){signed long flg=
-(0x50c+1111-0x963);unsigned long i=(0x416+2132-0xc6a);unsigned long length=
-(0x310+8550-0x2476);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=(
-char*)malloc(AT_CMD_MAX);if(NULL==pStrDestMalloc){return;}memset(pStrDestMalloc,
-(0x7d0+3398-0x1516),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
-length=strlen(pParaLine);if((length==(0xf61+3574-0x1d57))||(length>=AT_CMD_MAX))
-{free(pStrDestMalloc);return;}for(i=(0x100+5781-0x1795);(i<length)&&(pDest-
-pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x2f5+1762-0x9b5))==*pSource){flg=(
-(0x180+7011-0x1ce3)==flg)?(0x37a+5311-0x1838):(0x4f7+3102-0x1115);if(
-((char)(0x1382+215-0x1437))==*(pSource+(0x1135+3873-0x2055))){*pDest++=(char)
-ZAT_NULL_FILL;}}else if((((char)(0x12ca+2385-0x1bef))==*pSource)&&(
-(0x12ff+62-0x133d)==flg)){*pDest++=((char)(0x38+1627-0x673));if(
-((char)(0x2619+275-0x2700))==*(pSource+(0xd10+4677-0x1f54))){*pDest++=
-((char)(0x8e3+2908-0x1406));}else if('\0'==*(pSource+(0x7d1+240-0x8c0))){*pDest
-++=(char)ZAT_NULL_FILL;}}else{if((((char)(0x7a+2368-0x99a))==*pSource)&&(
-(0xa18+2810-0x1511)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
-pSource)&&((0x1365+155-0x13ff)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
-'\n'==*pSource)&&((0xb2+7598-0x1e5f)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}else
-if(('\r'==*pSource)&&((0xea2+4129-0x1ec2)==flg)){*pDest++=(char)ZAT_CR_REPLACE;}
-else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,(0x7c+8884-0x2330),paraSize
-);strncpy(pParaLine,pStrDestMalloc,paraSize-(0x12dd+4775-0x2583));free(
-pStrDestMalloc);}VOID zSms_RecvCscaInd(UINT8*pDatabuf){T_zSms_CscaInd cscaInd={
-(0xdec+5191-0x2233)};
-#if (0xc01+6640-0x25f0)
+(0x534+4537-0x16ed);unsigned long i=(0x1744+2282-0x202e);unsigned long length=
+(0x1123+3526-0x1ee9);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=
+(char*)malloc(AT_CMD_MAX);if(NULL==pStrDestMalloc){return;}memset(pStrDestMalloc
+,(0xedb+4874-0x21e5),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
+length=strlen(pParaLine);if((length==(0x9f5+2524-0x13d1))||(length>=AT_CMD_MAX))
+{free(pStrDestMalloc);return;}for(i=(0x1f5b+1947-0x26f6);(i<length)&&(pDest-
+pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x11c7+1031-0x15ac))==*pSource){flg=(
+(0xa0f+4572-0x1beb)==flg)?(0x926+3915-0x1870):(0x84+3282-0xd56);if(
+((char)(0x5af+6856-0x2055))==*(pSource+(0x30c+1386-0x875))){*pDest++=(char)
+ZAT_NULL_FILL;}}else if((((char)(0x18bd+2592-0x22b1))==*pSource)&&(
+(0x1816+2200-0x20ae)==flg)){*pDest++=((char)(0xae0+6598-0x2486));if(
+((char)(0x419+4618-0x15f7))==*(pSource+(0xe6a+990-0x1247))){*pDest++=
+((char)(0x1739+1563-0x1d1b));}else if('\0'==*(pSource+(0x776+566-0x9ab))){*pDest
+++=(char)ZAT_NULL_FILL;}}else{if((((char)(0x17f1+684-0x1a7d))==*pSource)&&(
+(0x19e3+1821-0x20ff)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
+pSource)&&((0x3f6+3817-0x12de)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
+'\n'==*pSource)&&((0x191d+2758-0x23e2)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}
+else if(('\r'==*pSource)&&((0x18a3+186-0x195c)==flg)){*pDest++=(char)
+ZAT_CR_REPLACE;}else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,
+(0x5d0+1546-0xbda),paraSize);strncpy(pParaLine,pStrDestMalloc,paraSize-
+(0xb59+831-0xe97));free(pStrDestMalloc);}VOID zSms_RecvCscaInd(UINT8*pDatabuf){
+T_zSms_CscaInd cscaInd={(0x314+8851-0x25a7)};
+#if (0x313+8630-0x24c8)
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 (0x52+9271-0x2488)
+#if (0x4a8+6126-0x1c95)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x7a\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x73\x63\x61\x49\x6e\x64\x20\x73\x63\x61\x3a\x25\x73\x2c\x20\x74\x6f\x73\x63\x61\x25\x73" "\n"
,cscaInd.sca,cscaInd.tosca);
@@ -312,22 +313,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,
-(0x1c86+1421-0x2213),NULL);return(0x10bf+2294-0x19b5);}VOID zSms_initAtOk(VOID){
-T_zUfiSms_StatusInfo tStatus={(0xd70+31-0xd8f)};sc_cfg_set(NV_SMS_STORE,
+(0xa4f+2569-0x1458),NULL);return(0xe91+1329-0x13c2);}VOID zSms_initAtOk(VOID){
+T_zUfiSms_StatusInfo tStatus={(0x8d9+578-0xb1b)};sc_cfg_set(NV_SMS_STORE,
"\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={(0x26a+6597-0x1c2f)};sc_cfg_set(NV_SMS_LOAD_RESULT
-,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_LOADED);tStatus.
-cmd_status=WMS_CMD_FAILED;tStatus.cmd=WMS_SMS_CMD_INIT;(void)
+T_zUfiSms_StatusInfo tStatus={(0x15d0+3194-0x224a)};sc_cfg_set(
+NV_SMS_LOAD_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_LOADED)
+;tStatus.cmd_status=WMS_CMD_FAILED;tStatus.cmd=WMS_SMS_CMD_INIT;(void)
zUfiSms_SetCmdStatus(&tStatus);}VOID zSms_RecvSmsInitRst(UINT8*pDatabuf){memcpy(
&g_smsOptRsp,pDatabuf,sizeof(T_zSms_optRsp));if(g_smsOptRsp.result==
-(0x5f6+5045-0x19aa)){zSms_initAtOk();}else{zSms_initAtErr();}}UINT8
+(0x288+2492-0xc43)){zSms_initAtOk();}else{zSms_initAtErr();}}UINT8
zSms_SmsMsgCreat(VOID){g_zSms_MsqId=msgget(MODULE_ID_SMS,IPC_CREAT|
-(0x558+3203-0x105b));if(g_zSms_MsqId==-(0x670+1765-0xd54)){return ZUFI_FAIL;}
-g_zSms_LocalMsqId=msgget(MODULE_ID_SMS_LOCAL,IPC_CREAT|(0x57c+8680-0x25e4));if(
-g_zSms_LocalMsqId==-(0x272+2471-0xc18)){return ZUFI_FAIL;}sem_init(&g_sms_sem_id
-,(0x54a+1948-0xce6),(0x569+3722-0x13f3));return ZUFI_SUCC;}void
+(0x1358+3067-0x1dd3));if(g_zSms_MsqId==-(0x12d+7118-0x1cfa)){return ZUFI_FAIL;}
+g_zSms_LocalMsqId=msgget(MODULE_ID_SMS_LOCAL,IPC_CREAT|(0xa95+842-0xc5f));if(
+g_zSms_LocalMsqId==-(0x1764+3798-0x2639)){return ZUFI_FAIL;}sem_init(&
+g_sms_sem_id,(0xcff+1578-0x1329),(0x81a+6309-0x20bf));return ZUFI_SUCC;}void
zSms_HandleAtctlLocalMsg(MSG_BUF*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
"\x73\x6d\x73\x20\x6c\x6f\x63\x61\x6c\x20\x72\x65\x63\x76\x20\x6d\x73\x67\x20\x63\x6d\x64\x3a\x25\x64" "\n"
,ptMsgBuf->usMsgCmd);switch(ptMsgBuf->usMsgCmd){case MSG_CMD_ZPBIC_IND:
@@ -351,44 +352,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,
-(0x1f09+947-0x22bc));break;default:break;}}VOID zSms_HandleResetToFactory(){CHAR
- clearSms[(0x3f2+6740-0x1e14)]={(0x1bf+2156-0xa2b)};sc_cfg_get(
+(0xf47+3566-0x1d35));break;default:break;}}VOID zSms_HandleResetToFactory(){CHAR
+ clearSms[(0x1b29+2706-0x2589)]={(0x595+6080-0x1d55)};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")==(0xbcc+4365-0x1cd9)){printf(
+,clearSms);if(strcmp(clearSms,"\x79\x65\x73")==(0x1096+1062-0x14bc)){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,(0xe0d+4554-0x1fd7),NULL,
-(0xcc6+3864-0x1bde));}void zSms_HandleMainCtrlMsg(MSG_BUF*ptMsgBuf){assert(
+MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,(0x184f+382-0x19cd),NULL,
+(0xdff+4532-0x1fb3));}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=(0x1717+3090-0x2329);MSG_BUF stMsg={
-(0x1778+1803-0x1e83)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((
-int*)arg);prctl(PR_SET_NAME,"\x73\x6d\x73\x5f\x6c\x6f\x63\x61\x6c",
-(0x1f+6066-0x17d1),(0x7e4+5419-0x1d0f),(0x5ab+2631-0xff2));while(
-(0x1358+2351-0x1c86)){iRet=(0xc4d+3603-0x1a60);memset(&stMsg,(0xe4d+1160-0x12d5)
-,sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x9e6+1208-0xe9e),
-(0x1964+465-0x1b35));if(iRet>=(0xb59+450-0xd1b)){switch(stMsg.src_id){case
+sms_msg_thread_proc(void*arg){int iRet=(0x177a+2584-0x2192);MSG_BUF stMsg={
+(0x45c+4675-0x169f)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((int
+*)arg);prctl(PR_SET_NAME,"\x73\x6d\x73\x5f\x6c\x6f\x63\x61\x6c",
+(0x1dcf+1349-0x2314),(0xca1+2283-0x158c),(0x14d5+4159-0x2514));while(
+(0xc79+5387-0x2183)){iRet=(0x1b1+4609-0x13b2);memset(&stMsg,(0x1094+1469-0x1651)
+,sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x6da+2789-0x11bf),
+(0x87a+2186-0x1104));if(iRet>=(0x1482+1130-0x18ec)){switch(stMsg.src_id){case
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=(0x14a+1601-0x78b);MSG_BUF msgBuf={(0x59+6228-0x18ad)};CHAR
-needSMS[(0x23a+118-0x27e)]={(0x123+6660-0x1b27)};prctl(PR_SET_NAME,
-"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x1d30+859-0x208b),(0xf12+4444-0x206e),
-(0xbd+5138-0x14cf));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
-sizeof(needSMS));if((0xcdf+2112-0x151f)!=strcmp(needSMS,"\x6e\x6f")){
+recv_thread_tid=(0x76c+2862-0x129a);MSG_BUF msgBuf={(0x79+7385-0x1d52)};CHAR
+needSMS[(0x12f0+3128-0x1ef6)]={(0x156d+1590-0x1ba3)};prctl(PR_SET_NAME,
+"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x1b10+1394-0x2082),(0x173b+1659-0x1db6),
+(0x7bb+5471-0x1d1a));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
+sizeof(needSMS));if((0x74f+5139-0x1b62)!=strcmp(needSMS,"\x6e\x6f")){
zUfiSms_InitDb();zUfiSms_CfgSmsNvInit();zUfiMmi_SendSmsStatus();zSms_SmsMsgCreat
-();}else{return-(0x680+494-0x86d);}printf(
+();}else{return-(0x739+5558-0x1cee);}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))==-(0xc9+3044-0xcac)){assert((0x1443+4077-0x2430));}
-sms_msg_thread_proc(&g_zSms_MsqId);return(0x1489+57-0x14c2);}
+*)(&g_zSms_LocalMsqId))==-(0x440+6622-0x1e1d)){assert((0x11df+816-0x150f));}
+sms_msg_thread_proc(&g_zSms_MsqId);return(0x1e8+1557-0x7fd);}
diff --git a/ap/app/zte_comm/sms/src/sms_proc.c b/ap/app/zte_comm/sms/src/sms_proc.c
index 136a437..a73d809 100755
--- a/ap/app/zte_comm/sms/src/sms_proc.c
+++ b/ap/app/zte_comm/sms/src/sms_proc.c
@@ -5,117 +5,117 @@
T_zUfiSms_ConcatInfo g_zUfiSms_ConcatSms;T_zUfiSms_GroupInfo g_zUfiSms_GroupSms;
T_zUfiSms_DbStoreData g_zUfiSms_DbStoreData[ZTE_WMS_CONCAT_SMS_COUNT_MAX];UINT8
g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_MAX]={FALSE,FALSE};T_zUfiSms_DelSms
-g_zUfiSms_DelMsg;T_zUfiSms_DelIndexInfo g_deleteIndex={(0x3f0+3392-0x1130)};
-T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0xd87+1300-0x129b)};
-T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0x1663+3980-0x25ef)};int
-g_zUfiSms_UnitLen=(0xae2+5457-0x2033);int g_zUfiSms_ConcatTotalNum=
-(0xe07+140-0xe93);int g_zUfiSms_CurConcatSegNo=(0xd89+6332-0x2645);UINT8
-g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0x20d+8215-0x2224)
-;int g_zUfiSms_MsgRefer=(0x12a2+3150-0x1ef0);int g_zUfiSms_SendFailedRetry=
-(0x7a9+6105-0x1f82);char g_Zmena_value[(0x15b+8730-0x2373)]={(0x1c5f+704-0x1f1f)
-};int g_displaymode=(0x1976+307-0x1aa9);extern SMS_LOCATION
+g_zUfiSms_DelMsg;T_zUfiSms_DelIndexInfo g_deleteIndex={(0x8e1+1940-0x1075)};
+T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0x1396+4636-0x25b2)};
+T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0xd65+3839-0x1c64)};int
+g_zUfiSms_UnitLen=(0xb40+2733-0x15ed);int g_zUfiSms_ConcatTotalNum=
+(0x1633+2984-0x21db);int g_zUfiSms_CurConcatSegNo=(0xd7+8674-0x22b9);UINT8
+g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0x831+2712-0x12c9)
+;int g_zUfiSms_MsgRefer=(0x77f+5288-0x1c27);int g_zUfiSms_SendFailedRetry=
+(0x7e6+7390-0x24c4);char g_Zmena_value[(0x15cd+4337-0x26bc)]={
+(0x1983+2890-0x24cd)};int g_displaymode=(0xb80+4537-0x1d39);extern SMS_LOCATION
g_zUfiSms_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[
-(0x1d48+1094-0x2182)];}FOTA_MSG_BUF;
-#define WEBUI_NOTIFY_PUSH_MSG_ (0x569+6236-0x1dc2)
+(0x8e9+2629-0x1322)];}FOTA_MSG_BUF;
+#define WEBUI_NOTIFY_PUSH_MSG_ (0x190+9502-0x26ab)
typedef struct{unsigned int isread_record;unsigned int inbox_full;}
T_zUfiMmi_SmsRecord;void zUfiMmi_SendSmsStatus(void){int iSmsNum=
-(0x847+7838-0x26e5);T_zUfiMmi_SmsRecord tRecord={(0xc16+5786-0x22b0)};CHAR
-smsNum[(0x5d+1268-0x51f)]={(0xadd+2940-0x1659)};sc_cfg_get(NV_SMS_IN_NUM,smsNum,
-sizeof(smsNum));iSmsNum=atoi(smsNum);tRecord.isread_record=zUfiSms_IsUnreadSms(
+(0x1fed+1533-0x25ea);T_zUfiMmi_SmsRecord tRecord={(0x4ab+7917-0x2398)};CHAR
+smsNum[(0x929+1430-0xe8d)]={(0x31d+8344-0x23b5)};sc_cfg_get(NV_SMS_IN_NUM,smsNum
+,sizeof(smsNum));iSmsNum=atoi(smsNum);tRecord.isread_record=zUfiSms_IsUnreadSms(
ZTE_WMS_MEMORY_MAX);if(iSmsNum>=ZSMS_NUM_MAX_CPE){tRecord.inbox_full=
-(0x2477+299-0x25a1);}else{tRecord.inbox_full=(0x19e6+1524-0x1fda);}}VOID
+(0x16f4+2789-0x21d8);}else{tRecord.inbox_full=(0x402+8134-0x23c8);}}VOID
zUfiSms_Init(VOID){zUfiSms_CfgInit();zUfiSms_ChangeMainState(SMS_STATE_INITING);
-}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=(0xcb+6468-0x1a0f);
-T_zUfiSms_StatusInfo tStatus={(0x1b27+2799-0x2616)};CHAR outDate[
-(0xaf9+1505-0x10a8)]={(0x74a+3038-0x1328)};zUfiSms_Init();zUfiSms_InitCmdStatus(
+}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=(0xd36+2309-0x163b);
+T_zUfiSms_StatusInfo tStatus={(0x896+574-0xad4)};CHAR outDate[
+(0x274+3690-0x10ac)]={(0x562+4948-0x18b6)};zUfiSms_Init();zUfiSms_InitCmdStatus(
&tStatus,WMS_SMS_CMD_INIT);zSms_SendSmsInitReq();at_print(LOG_DEBUG,
"corem zSvr_Zpbic_Sms_Init has send init req\n");zSms_SendZmenaReq(
-(0x291+7391-0x1f70));at_print(LOG_DEBUG,
+(0x688+2606-0x10b6));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((0x180c+927-0x1bab)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck(
-ZUFI_NULL);}}VOID zUfiSms_DeleteAllSimSms(VOID){zUfiSms_DeleteAllSimSmsInDb();}
-#if (0x130d+2932-0x1e81)
-VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0xb7c+6297-0x23e3)]={
-(0x945+1583-0xf74)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
-g_Zmena_rsp&&((0x1a09+2079-0x2228)!=strcmp(
-"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0xad9+1500-0x10b5)!=strcmp
+,outDate);if((0x2087+1037-0x2494)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck
+(ZUFI_NULL);}}VOID zUfiSms_DeleteAllSimSms(VOID){zUfiSms_DeleteAllSimSmsInDb();}
+#if (0xd44+570-0xf7e)
+VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0x10b1+5123-0x2482)]={
+(0x16ea+2723-0x218d)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
+g_Zmena_rsp&&((0x5b5+3114-0x11df)!=strcmp(
+"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0xaf9+4639-0x1d18)!=strcmp
("\x4c\x69\x6d\x69\x74\x65\x64\x20\x53\x65\x72\x76\x69\x63\x65",netType))){
atUnsoli_Report_Zmena(NULL,cid);}}
#endif
void zUfiSms_Ack_new_msg(BOOL needAck){
-#if (0x1b4+328-0x2fc)
-CHAR ackPduStr[(0x6e7+2506-0xf21)]={(0x1fc5+1471-0x2584)};SMS_PARAM reportParam=
-{(0x1d17+1124-0x217b)};int total_length=(0x1825+3324-0x2521);UINT8 TP_FCS=
-(0x7a6+3487-0x1545);CHAR strValue[(0x50f+2509-0xeda)]={(0xb89+63-0xbc8)};if(
-needAck){TP_FCS=(0x1e4d+1311-0x236c);sprintf(strValue,"\x25\x64",
-(0x62b+5846-0x1d00));}else{TP_FCS=(0x18ea+762-0x1b11);sprintf(strValue,
-"\x25\x64",(0x141c+1738-0x1ae4));}sprintf(reportParam.SCA,"\x25\x73",cfg_get(
+#if (0x190b+1789-0x2008)
+CHAR ackPduStr[(0x1792+3719-0x2489)]={(0x2e5+6057-0x1a8e)};SMS_PARAM reportParam
+={(0x1740+2245-0x2005)};int total_length=(0x95c+548-0xb80);UINT8 TP_FCS=
+(0x13c8+1046-0x17de);CHAR strValue[(0xb48+1444-0x10ea)]={(0x447+1569-0xa68)};if(
+needAck){TP_FCS=(0x61b+1771-0xd06);sprintf(strValue,"\x25\x64",
+(0x5a2+4473-0x171a));}else{TP_FCS=(0x12d+7422-0x1d58);sprintf(strValue,
+"\x25\x64",(0x14c2+659-0x1753));}sprintf(reportParam.SCA,"\x25\x73",cfg_get(
"\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,(0x4a+1073-0x47b),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu.
-length=String2Bytes(ackPduStr,g_zUfiSms_ackPdu.pdu,strlen(ackPduStr));memset(
-g_zUfiSms_ackPdu.pdu,(0x21c+7679-0x201b),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
+g_zUfiSms_ackPdu,(0x1362+2050-0x1b64),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu
+.length=String2Bytes(ackPduStr,g_zUfiSms_ackPdu.pdu,strlen(ackPduStr));memset(
+g_zUfiSms_ackPdu.pdu,(0x90f+6470-0x2255),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
g_zUfiSms_ackPdu.pdu,&ackPduStr,sizeof(ackPduStr));atBase_SendMsgToSelf(
ZAT_CNMA_CMD,strValue,sizeof(strValue));
#endif
-#if (0x1c18+2349-0x2545)
-CHAR strValue[(0x6f6+7276-0x2360)]={(0x2a5+3460-0x1029)};if(needAck){snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0x2f6+3963-0x1270));}else{snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0xc55+5305-0x210c));}zSvr_InnerSendMsg(
+#if (0x1206+1030-0x160c)
+CHAR strValue[(0x591+4348-0x168b)]={(0x5b8+8305-0x2629)};if(needAck){snprintf(
+strValue,sizeof(strValue),"\x25\x64",(0x14a5+2417-0x1e15));}else{snprintf(
+strValue,sizeof(strValue),"\x25\x64",(0x124d+2891-0x1d96));}zSvr_InnerSendMsg(
ZUFI_MODULE_ID_AT_LOCAL,ZUFI_MODULE_ID_AT_UNSOLI,MSG_CMD_AT_CNMA,strlen(strValue
),strValue);
#endif
-if(needAck){zSms_SendCnmaReq((0x1ff1+929-0x2391));}else{zSms_SendCnmaReq(
-(0xb68+205-0xc33));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq*
-ptSendMsg){if(NULL==ptSendMsg||(0x55a+7704-0x2372)==ptSendMsg->receiver_count){
+if(needAck){zSms_SendCnmaReq((0xd2d+4871-0x2033));}else{zSms_SendCnmaReq(
+(0xae6+906-0xe6e));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq*
+ptSendMsg){if(NULL==ptSendMsg||(0x630+118-0x6a6)==ptSendMsg->receiver_count){
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[(0x555+5439-0x1a94)],ptSendMsg->
+,ptSendMsg->receiver_count,ptSendMsg->dest_num[(0x3a0+5887-0x1a9f)],ptSendMsg->
msg_len,ptSendMsg->id);
-#if (0x321+1164-0x7ac)
+#if (0x1083+2663-0x1ae9)
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=(0x11e9+697-0x14a2);
-if(ptSendMsg->isDelete==TRUE||-(0x181b+2903-0x2371)!=ptSendMsg->id){(void)
+sc_cfg_set(NV_SMS_SEND_RESULT,"");g_zUfiSms_SendFailedCount=(0x314+3347-0x1027);
+if(ptSendMsg->isDelete==TRUE||-(0x2bc+4040-0x1283)!=ptSendMsg->id){(void)
zUfiSms_DeleteDraftSms(ptSendMsg->id);}zUfiSms_SetGlobalDcsLang(ptSendMsg->dcs);
-memset(&g_zUfiSms_GroupSms,(0x3c9+746-0x6b3),sizeof(g_zUfiSms_GroupSms));if(
+memset(&g_zUfiSms_GroupSms,(0x4d1+4618-0x16db),sizeof(g_zUfiSms_GroupSms));if(
ZUFI_FAIL==zUfiSms_FillGroupSms(ptSendMsg,&g_zUfiSms_GroupSms)){return
-WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0x1bf1+1343-0x2130),sizeof(
+WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0x8b0+6771-0x2323),sizeof(
g_zUfiSms_ConcatSms));g_zUfiSms_UnitLen=zUfiSms_FillConcatSms(ptSendMsg,&
g_zUfiSms_ConcatSms);g_zUfiSms_IsConcatSendSuc=TRUE;g_zUfiSms_CurConcatSegNo=
-(0x1925+2507-0x22f0);memset(g_zUfiSms_DbStoreData,(0x2d6+3608-0x10ee),sizeof(
-g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0x9ba+7133-0x258d)){
-g_displaymode=(0x1cc+9152-0x258b);at_print(LOG_DEBUG,
+(0x2280+358-0x23e6);memset(g_zUfiSms_DbStoreData,(0x113d+5018-0x24d7),sizeof(
+g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0xe94+13-0xe97)){g_displaymode
+=(0xd5f+5372-0x225a);at_print(LOG_DEBUG,
"\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=(0xb13+671-0xdb2);at_print(LOG_DEBUG,
+);}else{g_displaymode=(0xa11+5189-0x1e56);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=(0xacd+115-0xb40);T_zUfiSms_CmdStatus result=
+ tGroupSms;int iSmsLen=(0xf32+2593-0x1953);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,(0xb08+909-0xe95),sizeof(T_zUfiSms_ConcatInfo));memset(&
-tGroupSms,(0x19ac+197-0x1a71),sizeof(T_zUfiSms_GroupInfo));(void)
+memset(&tConcatSms,(0x524+3575-0x131b),sizeof(T_zUfiSms_ConcatInfo));memset(&
+tGroupSms,(0xc46+2343-0x156d),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=
-(0x3e9+4466-0x155b);tGroupSms.current_receiver<tGroupSms.total_receiver;
-tGroupSms.current_receiver++){tConcatSms.current_sending=(0x6cd+984-0xaa5);
-result=zUfiSms_SaveSmsToDb(pSaveBuff,&tConcatSms,&tGroupSms,iSmsLen);at_print(
-LOG_DEBUG,
+(0xc7+7712-0x1ee7);tGroupSms.current_receiver<tGroupSms.total_receiver;tGroupSms
+.current_receiver++){tConcatSms.current_sending=(0x477+7748-0x22bb);result=
+zUfiSms_SaveSmsToDb(pSaveBuff,&tConcatSms,&tGroupSms,iSmsLen);at_print(LOG_DEBUG
+,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x52\x61\x77\x53\x6d\x73\x20\x63\x75\x72\x72\x65\x6e\x74\x5f\x72\x65\x63\x65\x69\x76\x65\x72\x3d\x25\x64\x2c\x72\x65\x73\x75\x6c\x74\x3d\x25\x64" "\n"
,tGroupSms.current_receiver,result);}sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);if(g_zUfiSms_MemFullFlag[
@@ -127,16 +127,16 @@
memoryFullbeforeDelete=FALSE;BOOL unreadBeforeDelete=FALSE;if(NULL==ptDelBuff){
return WMS_CMD_FAILED;}at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x21\x21\x21\x21\x21\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x6d\x73\x21\x21\x63\x6f\x75\x6e\x74\x3a\x25\x64\x2f\x69\x64\x5b\x25\x64\x5d\x2e" "\n"
-,ptDelBuff->all_or_count,ptDelBuff->id[(0x19ba+2939-0x2535)]);(void)
+,ptDelBuff->all_or_count,ptDelBuff->id[(0xcdd+6680-0x26f5)]);(void)
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_ChangeMainState(
-SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0x2ba+6864-0x1d8a),sizeof(
+SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0x354+6815-0x1df3),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((0x7da+449-0x99b)<
+,g_zUfiSms_DelMsg.nv_count,g_zUfiSms_DelMsg.sim_count);if((0x4a0+154-0x53a)<
g_zUfiSms_DelMsg.nv_count){if(g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]){
memoryFullbeforeDelete=TRUE;}unreadBeforeDelete=zUfiSms_IsUnreadSms(
ZTE_WMS_MEMORY_NV);result=(T_zUfiSms_CmdStatus)zUfiSms_DeleteNvSms();(void)
@@ -147,113 +147,113 @@
memoryFullbeforeDelete&&!g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]){
at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x20\x73\x65\x6e\x64\x20\x41\x54\x2b\x5a\x4d\x45\x4e\x41\x3d\x30" "\n"
-);zSms_SendZmenaReq((0xfbf+2788-0x1aa3));}if(memoryFullbeforeDelete&&!
+);zSms_SendZmenaReq((0x45b+8435-0x254e));}if(memoryFullbeforeDelete&&!
g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]||unreadBeforeDelete&&!
zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_DEFAULT);}}if((0xbf3+657-0xe84)<g_zUfiSms_DelMsg.sim_count){result=
+MSG_SMS_DEFAULT);}}if((0x1fda+1747-0x26ad)<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=(0x12b7+4549-0x247c);
-T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0x52b+1268-0x9ed)]={
-(0x748+2376-0x1090)};if(NULL==ptModifyBuff){at_print(LOG_ERR,
+T_zUfiSms_ModifyFlag*ptModifyBuff){unsigned long i=(0x1f39+589-0x2186);
+T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0x1523+2084-0x1d15)]
+={(0x1f35+1594-0x256f)};if(NULL==ptModifyBuff){at_print(LOG_ERR,
"\x69\x6e\x70\x75\x74\x73\x20\x69\x73\x20\x6e\x75\x6c\x6c\x2e");return
-WMS_CMD_FAILED;}for(i=(0x21d+6426-0x1b37);i<ptModifyBuff->total_id;i++){if(
-ptModifyBuff->id[i]<(0x1257+684-0x1502)||ZUFI_FAIL==zUfiSms_UpdateSmsTagInDb(
+WMS_CMD_FAILED;}for(i=(0xe60+4861-0x215d);i<ptModifyBuff->total_id;i++){if(
+ptModifyBuff->id[i]<(0x78c+557-0x9b8)||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[(0x642+6054-0x1de8)])){return ZUFI_FAIL;}if((0xf1a+4866-0x221c)
+ptModifyBuff->id[(0xe80+3598-0x1c8e)])){return ZUFI_FAIL;}if((0xa55+6863-0x2524)
==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_READING);}if((0x1f1+1315-0x714)==strcmp(acStorePos,ZTE_WMS_DB_SIM_TABLE)
-&&ptModifyBuff->total_id>(0x983+641-0xc04)){zUfiSms_ModifyModemSms(ptModifyBuff)
-;}return result;}T_zUfiSms_CmdStatus zUfiSms_SetSmsPara(T_zUfiSms_ParaInfo*
-ptParaBuff){int atRes=(0x8a3+1430-0xe39);CHAR sca[ZTE_WMS_ADDRESS_DIGIT_MAX_V01+
-(0x41f+8611-0x25c1)]={(0x6b4+2788-0x1198)};CHAR store[(0x530+4331-0x1607)]={
-(0x17dd+112-0x184d)};CHAR defaultStore[(0x9ba+4506-0x1b22)]={(0x445+2988-0xff1)}
-;if(ptParaBuff==ZUFI_NULL){return WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=
-(0x59f+6378-0x1e89)){strncpy(sca,ptParaBuff->sca,sizeof(sca)-
-(0x1713+2801-0x2203));at_print(LOG_DEBUG,
+MSG_SMS_READING);}if((0x475+225-0x556)==strcmp(acStorePos,ZTE_WMS_DB_SIM_TABLE)
+&&ptModifyBuff->total_id>(0x25c+1945-0x9f5)){zUfiSms_ModifyModemSms(ptModifyBuff
+);}return result;}T_zUfiSms_CmdStatus zUfiSms_SetSmsPara(T_zUfiSms_ParaInfo*
+ptParaBuff){int atRes=(0x8+4341-0x10fd);CHAR sca[ZTE_WMS_ADDRESS_DIGIT_MAX_V01+
+(0x4dc+887-0x852)]={(0xc27+1530-0x1221)};CHAR store[(0xd39+4675-0x1f68)]={
+(0x250+1605-0x895)};CHAR defaultStore[(0x1107+2035-0x18c8)]={(0x20b2+770-0x23b4)
+};if(ptParaBuff==ZUFI_NULL){return WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=
+(0x7b7+2486-0x116d)){strncpy(sca,ptParaBuff->sca,sizeof(sca)-(0x266+6211-0x1aa8)
+);at_print(LOG_DEBUG,
"\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')&&((0xc30+2072-0x1448)!=strcmp(
+if((*(ptParaBuff->default_store)!='\0')&&((0x42b+6284-0x1cb7)!=strcmp(
defaultStore,ptParaBuff->default_store))){{strncpy(store,ptParaBuff->
-default_store,sizeof(store)-(0x5db+1883-0xd35));}atRes=zSms_SendCnmiReq(store);
-if(atRes!=ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0x229+3010-0xdea)==
+default_store,sizeof(store)-(0x1568+121-0x15e0));}atRes=zSms_SendCnmiReq(store);
+if(atRes!=ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0x712+6485-0x2066)==
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[(0xe0b+6038-0x259c)]={(0x63b+3158-0x1291)};char remind_flag[
-(0x892+1382-0xdf3)];int sms_count=(0x875+7296-0x24f5);int remind_count=
-(0x863+7559-0x25ea);memset(sms_rec_flag,(0x945+5697-0x1f86),sizeof(sms_rec_flag)
+char sms_rec_flag[(0xb4c+4672-0x1d87)]={(0x1e84+1183-0x2323)};char remind_flag[
+(0x1138+318-0x1271)];int sms_count=(0x140+5727-0x179f);int remind_count=
+(0x5e2+3617-0x1403);memset(sms_rec_flag,(0x455+7095-0x200c),sizeof(sms_rec_flag)
);sc_cfg_get(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag,sizeof(sms_rec_flag));
-sms_count=atoi(sms_rec_flag);if(sms_count<(0x1654+4230-0x26da)||sms_count>
-INT_MAX-(0xea+5610-0x16d3)){at_print(LOG_ERR,
+sms_count=atoi(sms_rec_flag);if(sms_count<(0xdbc+4530-0x1f6e)||sms_count>INT_MAX
+-(0x1425+3263-0x20e3)){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,(0x12d2+2751-0x1d91),sizeof(sms_rec_flag
-));snprintf(sms_rec_flag,sizeof(sms_rec_flag),"\x25\x64",sms_count+
-(0x114+6905-0x1c0c));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);
+,sms_count);return;}memset(sms_rec_flag,(0x62c+6438-0x1f52),sizeof(sms_rec_flag)
+);snprintf(sms_rec_flag,sizeof(sms_rec_flag),"\x25\x64",sms_count+
+(0x89f+2926-0x140c));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);
sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED_LED,sms_rec_flag);memset(remind_flag,
-(0x93d+804-0xc61),sizeof(remind_flag));snprintf(remind_flag,sizeof(remind_flag),
-"\x25\x64",remind_count+(0x46+4975-0x13b4));sc_cfg_set(
+(0x77f+736-0xa5f),sizeof(remind_flag));snprintf(remind_flag,sizeof(remind_flag),
+"\x25\x64",remind_count+(0x94c+3313-0x163c));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]={
-(0xa02+1985-0x11c3)};T_zUfiSms_DbStoreData tDbStoreData={(0x3da+8960-0x26da)};
-int isPushSms=(0x10c8+2879-0x1c07);if(strcmp(ptRespData->pdu,"")==
-(0x1e6f+871-0x21d6)){CHAR srState[(0x1585+1627-0x1bae)]={(0xacf+2084-0x12f3)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x169a+3551-0x2479)!=strcmp(
+(0xd75+1346-0x12b7)};T_zUfiSms_DbStoreData tDbStoreData={(0x2c2+2998-0xe78)};int
+ isPushSms=(0x35c+5898-0x1a66);if(strcmp(ptRespData->pdu,"")==
+(0x130c+2361-0x1c45)){CHAR srState[(0x41+5927-0x1736)]={(0x11c6+1762-0x18a8)};
+sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x673+8096-0x2613)!=strcmp(
srState,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
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(
-(0x549+3899-0x147f)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
+(0x1978+721-0x1c44)==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!=
-(0xed4+3109-0x1af8)){return(0xefa+1668-0x157e);}zUfiSms_GetCurrentRecvTotalSeq(
+(0x1431+2564-0x1e34)){return(0x459+5420-0x1985);}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[(0xc8+3214-0xd56)],data->
-concat_info[(0x60c+142-0x699)],data->concat_info[(0x6c4+5587-0x1c95)]);if(data->
-concat_info[(0xfb+8139-0x20c5)]==atoi(pmsg->total_seq)){return(0xd1+5618-0x16c3)
-;}return-(0xae6+233-0xbce);}void zUfiSms_TrafficChangeSmsTag(
-T_zUfiSms_DbStoreData*data){CHAR smsNumber[(0x1268+428-0x13e2)]={
-(0x19f7+18-0x1a09)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,smsNumber,sizeof(smsNumber)
-);if((0xe19+588-0x1065)==strcmp(smsNumber,data->number)){data->tag=
-WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=(0x400+404-0x593);}}void
-zUfiSms_HandleTrafficSms(T_zUfiSms_DbStoreData*data){int iSmsId=
-(0x3b0+5566-0x196e);SMS_MSG_INFO msg={(0x128+4280-0x11e0)};CHAR smsNumber[
-(0x1f44+1776-0x2602)]={(0x43f+6110-0x1c1d)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
+,pmsg->id,atoi(pmsg->total_seq),data->concat_info[(0x121a+3144-0x1e62)],data->
+concat_info[(0x837+5867-0x1f21)],data->concat_info[(0xf9f+1228-0x1469)]);if(data
+->concat_info[(0x957+4486-0x1adc)]==atoi(pmsg->total_seq)){return
+(0xa68+6787-0x24eb);}return-(0x6ca+3751-0x1570);}void
+zUfiSms_TrafficChangeSmsTag(T_zUfiSms_DbStoreData*data){CHAR smsNumber[
+(0x10b2+94-0x10de)]={(0x1cd0+1112-0x2128)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
+smsNumber,sizeof(smsNumber));if((0x3b8+282-0x4d2)==strcmp(smsNumber,data->number
+)){data->tag=WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=(0x281+6510-0x1bee);
+}}void zUfiSms_HandleTrafficSms(T_zUfiSms_DbStoreData*data){int iSmsId=
+(0x359+6694-0x1d7f);SMS_MSG_INFO msg={(0x3c4+5631-0x19c3)};CHAR smsNumber[
+(0x19b0+2201-0x2217)]={(0x234+4839-0x151b)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
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((0x2bf+2942-0xe3d)==strcmp(smsNumber,data->number)){
-if((0xe78+3306-0x1b62)!=zUfiSms_CheckIfWholeSms(data,&msg)){at_print(LOG_DEBUG,
+,data->number,smsNumber);if((0x143+6525-0x1ac0)==strcmp(smsNumber,data->number))
+{if((0x8e6+1583-0xf15)!=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]={
-(0x543+1630-0xba1)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x86f+2852-0x1393);SMS_PARAM one_sms={(0x128d+3142-0x1ed3)};int
-unread_sms_before_recv_new_sms=(0x1e42+41-0x1e6b);memset(&tDbStoreData,
-(0x16e8+2194-0x1f7a),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x1c8+9313-0x2629)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x1022+3206-0x1ca8);SMS_PARAM one_sms={(0x16f3+2775-0x21ca)};int
+unread_sms_before_recv_new_sms=(0x415+7525-0x217a);memset(&tDbStoreData,
+(0xf9d+1583-0x15cc),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
"\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,"")==(0x406+1803-0xb11)){CHAR srState[(0x749+109-0x784)]=
-{(0x38b+8245-0x23c0)};sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if(
-(0x1f4+112-0x264)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0x1425+817-0x1756)){CHAR srState[
+(0xd5a+5709-0x2375)]={(0x1857+3186-0x24c9)};sc_cfg_get(NV_SR_STATE,srState,
+sizeof(srState));if((0x234a+591-0x2599)!=strcmp(srState,
"\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((0x122+2008-0x8fa));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x100+4447-0x125f));}if(
SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
,one_sms.index);at_print(LOG_DEBUG,
@@ -265,32 +265,32 @@
,one_sms.TP_CurrentPieceNum);zUfiSms_ChangeMainState(SMS_STATE_RECVED);
zUfiSms_Ack_new_msg(TRUE);return;}zUfiSms_GetReportStatus(ptRespData->pdu,&
ptRespData->stat);(void)String2Bytes(ptRespData->pdu,acFormatPdu,(int)strlen(
-ptRespData->pdu));if((0x16d9+439-0x188b)==ptRespData->stat){(void)
+ptRespData->pdu));if((0x10a5+1524-0x1694)==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=(0x5f+6135-0x1855);}else{
-unread_sms_before_recv_new_sms=(0x8f8+2067-0x110b);}zUfiSms_TrafficChangeSmsTag(
-&tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,
-iStorePos,-(0xe95+3560-0x1c7c))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
-(0x31+9389-0x24dd));return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){
+unread_sms_before_recv_new_sms=(0x408+738-0x6e9);}else{
+unread_sms_before_recv_new_sms=(0x1cbb+1894-0x2421);}zUfiSms_TrafficChangeSmsTag
+(&tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,
+iStorePos,-(0x395+2205-0xc31))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
+(0xdcf+4704-0x202e));return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){
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]={
-(0x1161+2004-0x1935)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x16d2+199-0x1799);SMS_PARAM one_sms={(0x12d8+3665-0x2129)};CHAR defaultStore[
-(0xa42+3357-0x172d)]={(0xc86+6146-0x2488)};memset(&tDbStoreData,
-(0x1861+3361-0x2582),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0xf36+3440-0x1ca6)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x1dd+3665-0x102e);SMS_PARAM one_sms={(0xf9d+2700-0x1a29)};CHAR defaultStore[
+(0x9e2+3297-0x1691)]={(0x3d9+1672-0xa61)};memset(&tDbStoreData,
+(0x6f6+6009-0x1e6f),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
"\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,"")==(0xe9a+4691-0x20ed)){CHAR srState[
-(0x470+6792-0x1ec6)]={(0x2fc+6870-0x1dd2)};sc_cfg_get(NV_SR_STATE,srState,sizeof
-(srState));if((0x13+9004-0x233f)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0x952+2525-0x132f)){CHAR srState[
+(0x3df+5717-0x1a02)]={(0x4a4+6317-0x1d51)};sc_cfg_get(NV_SR_STATE,srState,sizeof
+(srState));if((0x6c6+2965-0x125b)!=strcmp(srState,
"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_RECVED)
;}else{sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");}
@@ -299,7 +299,7 @@
,isPushSms);at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x25\x64\x20" "\n"
,isPushSms);if(SMS_NOTIFICATION==isPushSms){BakNotificationSms(one_sms.TP_UD,
-strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x1e68+1469-0x2425));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0xc2f+6373-0x2514));}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,
@@ -310,30 +310,30 @@
"\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((0x143+8006-0x2084)
-==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((0x1d48+1436-0x22e4)==
-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,-(0xc5c+2462-0x15f9))){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]={
-(0x8fc+4309-0x19d1)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x533+3311-0x1222);SMS_PARAM one_sms={(0x251d+405-0x26b2)};int
-unread_sms_before_recv_new_sms=(0xc0f+5979-0x236a);memset(&tDbStoreData,
-(0x74d+25-0x766),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if(
+(0x154c+3045-0x212c)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
+sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");return;}
+sc_cfg_get(NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if(
+(0x3+856-0x35b)==strcmp(defaultStore,"\x73\x69\x6d")){iStorePos=
+WMS_STORAGE_TYPE_UIM_V01;}(void)zUfiSms_DecodeSmsData(&tDbStoreData,ptRespData->
+index,iStorePos,(T_SmsStatus)ptRespData->stat,WMS_MESSAGE_FORMAT_GW_PP_V01,
+ptRespData->length,acFormatPdu);if(tDbStoreData.sms_class==WMS_MESSAGE_CLASS_2){
+iStorePos=WMS_STORAGE_TYPE_UIM_V01;}zUfiSms_TrafficChangeSmsTag(&tDbStoreData);
+if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-
+(0xe74+5337-0x234c))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
+zUfiSms_CmgrNvSet();zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);
+zUfiSms_ChangeMainState(SMS_STATE_RECVED);zUfiSms_HandleTrafficSms(&tDbStoreData
+);return;}void zUfiSms_CmgrRespProc(T_zSms_SmsInd*ptRespData){zUfiSms_StoreType
+iStorePos=WMS_STORAGE_TYPE_NV_V01;unsigned char acFormatPdu[ZSMS_PDU_SIZE]={
+(0xbf2+6580-0x25a6)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x1826+1574-0x1e4c);SMS_PARAM one_sms={(0x1ef8+1287-0x23ff)};int
+unread_sms_before_recv_new_sms=(0x1a39+1052-0x1e55);memset(&tDbStoreData,
+(0xa17+2512-0x13e7),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x45\x6e\x74\x65\x72\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2f\x70\x64\x75\x3a\x25\x73\x21" "\n"
,ptRespData->index,ptRespData->stat,ptRespData->length,ptRespData->pdu);
zUfiSms_SendSmsStatusInfo(MSG_SMS_READING);if(strcmp(ptRespData->pdu,"")==
-(0x254+1179-0x6ef)){CHAR srState[(0x796+2707-0x11f7)]={(0x17d1+393-0x195a)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x19c3+1925-0x2148)!=strcmp(
+(0xc12+5644-0x221e)){CHAR srState[(0xf56+5949-0x2661)]={(0x6df+8226-0x2701)};
+sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x170+4053-0x1145)!=strcmp(
srState,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_RECVED)
;}else{sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");}
@@ -342,7 +342,7 @@
,isPushSms);at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x25\x64\x20" "\n"
,isPushSms);if(SMS_NOTIFICATION==isPushSms){BakNotificationSms(one_sms.TP_UD,
-strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x24d+1458-0x7ff));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x227+2021-0xa0c));}if(
SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
,one_sms.index);at_print(LOG_DEBUG,
@@ -353,81 +353,81 @@
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x43\x75\x72\x72\x65\x6e\x74\x50\x69\x65\x63\x65\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
,one_sms.TP_CurrentPieceNum);zUfiSms_ChangeMainState(SMS_STATE_RECVED);return;}
zUfiSms_GetReportStatus(ptRespData->pdu,&ptRespData->stat);(void)String2Bytes(
-ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if((0x36b+6922-0x1e70)
+ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if((0x360+5796-0x19ff)
==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);sc_cfg_set(
NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");return;}(void)
zUfiSms_DecodeSmsData(&tDbStoreData,ptRespData->index,iStorePos,(T_SmsStatus)
ptRespData->stat,WMS_MESSAGE_FORMAT_GW_PP_V01,ptRespData->length,acFormatPdu);if
(tDbStoreData.sms_class==WMS_MESSAGE_CLASS_2){iStorePos=WMS_STORAGE_TYPE_UIM_V01
;}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){unread_sms_before_recv_new_sms=
-(0x1d96+2153-0x25fe);}else{unread_sms_before_recv_new_sms=(0x1bcd+1089-0x200e);}
-if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-
-(0x9ec+7417-0x26e4))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
+(0x11ca+1880-0x1921);}else{unread_sms_before_recv_new_sms=(0xd38+315-0xe73);}if(
+ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-
+(0x445+4752-0x16d4))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
zUfiSms_CmgrNvSet();zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);
zUfiSms_ChangeMainState(SMS_STATE_RECVED);return;}void zUfiSms_CmgsRespProc(VOID
-){T_zUfiSms_StatusInfo tStatusInfo={(0x932+1670-0xfb8)};g_zUfiSms_DbStoreData->
+){T_zUfiSms_StatusInfo tStatusInfo={(0x1b75+14-0x1b83)};g_zUfiSms_DbStoreData->
msg_displaymode=g_displaymode;if(g_zUfiSms_DbStoreData->msg_displaymode!=
-(0x108f+2544-0x1a7e)){if((0x265+7880-0x212d)==zUfiSms_WriteSmsToDb(&
-g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x1cea+766-0x1fe7)],
-WMS_STORAGE_TYPE_NV_V01,-(0x6b+4607-0x1269))){g_zUfiSms_MsgRefer++;(void)
+(0x1422+4451-0x2584)){if((0xc6c+5275-0x2107)==zUfiSms_WriteSmsToDb(&
+g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x5f0+5735-0x1c56)],
+WMS_STORAGE_TYPE_NV_V01,-(0x1aa5+2189-0x2331))){g_zUfiSms_MsgRefer++;(void)
zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}}printf(
"\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=
-(0xa9c+5179-0x1ed7);memset((void*)&tStatusInfo,(0x7e3+4947-0x1b36),sizeof(
+(0x16b+1106-0x5bd);memset((void*)&tStatusInfo,(0x2b3+1904-0xa23),sizeof(
T_zUfiSms_StatusInfo));tStatusInfo.err_code=ZTE_SMS_CMS_NONE;tStatusInfo.
send_failed_count=g_zUfiSms_SendFailedCount;tStatusInfo.delete_failed_count=
-(0x353+8425-0x243c);if(g_zUfiSms_SendFailedCount==(0xe31+3461-0x1bb6)){
+(0x83a+3062-0x1430);if(g_zUfiSms_SendFailedCount==(0x9aa+6396-0x22a6)){
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={(0x1371+1237-0x1846)};int
-errs=(0x1d2+7482-0x1f0c);key_t req_id=ftok(
+int zte_fota_notifyPushMsg(int cmd){FOTA_MSG_BUF msg={(0x11ab+4421-0x22f0)};int
+errs=(0x17db+3580-0x25d7);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"
-,(0x208b+842-0x23d4));int msgid=msgget(req_id,(0x9f2+1830-0x1118));if(msgid!=-
-(0x864+4247-0x18fa)){msg.mtype=(0xd5+3271-0xd9b);msg.mtext[(0x1747+2903-0x229e)]
-=WEBUI_NOTIFY_PUSH_MSG_;errs=msgsnd(msgid,&msg,sizeof(msg)-sizeof(long),
-(0x6b1+5575-0x1c78));}return(errs<(0x4e7+4576-0x16c7)?(0x1023+4721-0x2294):
-(0x539+2581-0xf4d));}
-#if (0xa31+5450-0x1f7b)
+,(0xbcf+5683-0x2201));int msgid=msgget(req_id,(0xb9a+1919-0x1319));if(msgid!=-
+(0x1c11+878-0x1f7e)){msg.mtype=(0x5d1+3502-0x137e);msg.mtext[(0xf42+3073-0x1b43)
+]=WEBUI_NOTIFY_PUSH_MSG_;errs=msgsnd(msgid,&msg,sizeof(msg)-sizeof(long),
+(0x3c0+2358-0xcf6));}return(errs<(0x1661+356-0x17c5)?(0x1116+825-0x144f):
+(0x189b+2402-0x21fc));}
+#if (0x10f8+5399-0x260f)
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 (0x107+6147-0x190a)
+#if (0xd4d+1912-0x14c5)
int atSms_SendZmglReq(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){int res
-=(0x1f2b+1555-0x253e);pthread_mutex_lock(&smsdb_mutex);res=zSvr_SendAtSyn(
+=(0x8c3+5452-0x1e0f);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={(0x699+360-0x801)};sc_cfg_set(NV_SMS_LOAD_RESULT,
+T_zUfiSms_StatusInfo tStatus={(0xe7f+689-0x1130)};sc_cfg_set(NV_SMS_LOAD_RESULT,
"\x6f\x6b");tStatus.cmd_status=WMS_CMD_SUCCESS;tStatus.cmd=WMS_SMS_CMD_INIT;(
void)zUfiSms_SetCmdStatus(&tStatus);zUfiSms_ChangeMainState(SMS_STATE_LOADED);}
int atSms_initAtErr(UINT8*pErrCode){T_zUfiSms_StatusInfo tStatus={
-(0x1ddd+1388-0x2349)};sc_cfg_set(NV_SMS_LOAD_RESULT,"\x66\x61\x69\x6c");
+(0xb+346-0x165)};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={
-(0x555+7346-0x2207)};printf(
+(0x93b+4620-0x1b47)};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,
-(0xa2d+2893-0x157a),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
-->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x9c7+5228-0x1e32));printf(
+(0xb86+3465-0x190f),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
+->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x60a+629-0x87e));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[(0x52a+2649-0xf6f)]
-={(0x300+7295-0x1f7f)};iSmsIndex=atoi(pAtCmdPara);printf(
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0xdba+5849-0x247f)
+]={(0x78a+8001-0x26cb)};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 (0xd0b+6020-0x248f)
-static T_zUfiSms_SmsItem tSmsPara={(0x408+4310-0x14de)};T_zUfiSms_CmgrSetRsp
-tCmgrRsp={(0x1a2a+1728-0x20ea)};printf(
+#if (0x622+7928-0x251a)
+static T_zUfiSms_SmsItem tSmsPara={(0xcf3+3085-0x1900)};T_zUfiSms_CmgrSetRsp
+tCmgrRsp={(0xea8+4032-0x1e68)};printf(
"\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x67\x72\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->result){printf(
@@ -436,14 +436,14 @@
.stat=tSmsPara.stat;sscanf(pResLine->resParas,"\x25\x35\x30\x30\x73",tCmgrRsp.
pdu);zUfiSms_CmgrRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();sc_cfg_set(
"\x73\x6d\x73\x5f\x72\x65\x63\x76\x5f\x72\x65\x73\x75\x6c\x74","\x6f\x6b");}else
-{memset(&tSmsPara,(0x1d5c+733-0x2039),sizeof(T_zUfiSms_SmsItem));(void)
-zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0xa36+7312-0x26c4));tSmsPara.
+{memset(&tSmsPara,(0x1b1+7193-0x1dca),sizeof(T_zUfiSms_SmsItem));(void)
+zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0x19b5+2555-0x23ae));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[(0x21aa+429-0x2343)]={(0x3dc+8130-0x239e)};iSmsIndex=atoi(pAtCmdPara);
+pAtcmdStr[(0xc60+1789-0x1349)]={(0x681+3045-0x1266)};iSmsIndex=atoi(pAtCmdPara);
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x5a\x6d\x67\x72\x52\x65\x71\x20\x47\x65\x74\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2e" "\n"
,iSmsIndex);snprintf(pAtcmdStr,sizeof(pAtcmdStr),
@@ -456,8 +456,8 @@
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x72\x45\x72\x72\x20\x20\x53\x4d\x53\x20\x7a\x6d\x67\x72\x20\x69\x73\x20\x66\x61\x69\x6c" "\n"
);{sc_cfg_set(NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(
SMS_STATE_RECVED);}}VOID atSms_RecvZmgrRsp(T_zAt_AtRes*pResLine){static
-T_zUfiSms_SmsItem tSmsPara={(0x1fff+1705-0x26a8)};T_zUfiSms_CmgrSetRsp tCmgrRsp=
-{(0x1793+3425-0x24f4)};printf(
+T_zUfiSms_SmsItem tSmsPara={(0x918+4792-0x1bd0)};T_zUfiSms_CmgrSetRsp tCmgrRsp={
+(0x278+5758-0x18f6)};printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x72\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->result){printf(
@@ -465,57 +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,(0x10e1+2905-0x1c3a),
-sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine->resParas,sizeof(
-pResLine->resParas),&tSmsPara,(0x624+4937-0x196b));tSmsPara.index=iSmsIndex;
-printf(
+NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,(0xc23+4538-0x1ddd),sizeof
+(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine->resParas,sizeof(pResLine
+->resParas),&tSmsPara,(0x1594+3771-0x244d));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[
-(0x15e1+4239-0x265c)]={(0x108d+4090-0x2087)};snprintf(pAtcmdStr,sizeof(pAtcmdStr
-),"\x41\x54\x2b\x43\x4d\x47\x44\x3d\x25\x73" "\r\n",pAtCmdPara);return
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x41b+5674-0x1a31)
+]={(0x22f6+699-0x25b1)};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[(0xca5+3525-0x1a60)]={(0x139b+4944-0x26eb)};
-int used=(0xff+9315-0x2562);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+atSms_RecvCmgdOk(VOID){CHAR strUsed[(0x49+4676-0x1283)]={(0x946+3879-0x186d)};
+int used=(0x350+8264-0x2398);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
"\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)-(0x592+3017-0x115a);if(used<(0x1256+3154-0x1ea8)){used=
-(0x1a4a+126-0x1ac8);}memset(&strUsed,(0x1495+510-0x1693),(0xdca+3021-0x198d));
+strUsed)-(0x153b+1173-0x19cf);if(used<(0x88d+7560-0x2615)){used=
+(0x19b1+1125-0x1e16);}memset(&strUsed,(0x23a+5867-0x1925),(0x1129+2095-0x194e));
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[(0x1dcb+1121-0x2222)]={
-(0xb26+4470-0x1c9c)};CHAR strTotal[(0xc8b+2699-0x170c)]={(0x23b1+308-0x24e5)};
-CHAR strUsed[(0xb1f+6433-0x2436)]={(0x1950+3390-0x268e)};int total=
-(0x1cc0+762-0x1fba);int used=(0x6c6+3774-0x1584);int remain=(0xd89+4950-0x20df);
-sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
+);}VOID atSms_RecvCmgdFinish(VOID){char StrValue[(0x5bf+6103-0x1d8c)]={
+(0x17fc+2285-0x20e9)};CHAR strTotal[(0xe34+4889-0x2143)]={(0xa54+6038-0x21ea)};
+CHAR strUsed[(0x1707+3518-0x24bb)]={(0x1500+119-0x1577)};int total=
+(0xf5d+1728-0x161d);int used=(0x87c+3183-0x14eb);int remain=(0x1b57+2824-0x265f)
+;sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
strUsed);sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,strTotal,sizeof(strTotal));
-total=atoi(strTotal);remain=total-used;if(remain<(0xbed+1500-0x11c9)){remain=
-(0x64d+3302-0x1333);}memset(&StrValue,(0xbbb+3993-0x1b54),(0x104b+2252-0x190d));
+total=atoi(strTotal);remain=total-used;if(remain<(0x7a0+1256-0xc88)){remain=
+(0x4c1+2311-0xdc8);}memset(&StrValue,(0x900+2562-0x1302),(0x1c44+2442-0x25c4));
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=(0xdd5+4041-0x1d9e);CHAR pAtcmdStr[ZSMS_PDU_SIZE
-]={(0x209+7761-0x205a)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+pAtRst,int atRstSize){int atRes=(0x5+3414-0xd5b);CHAR pAtcmdStr[ZSMS_PDU_SIZE]={
+(0x344+806-0x66a)};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,(0x238b+683-0x2636),ZSMS_PDU_SIZE
-);if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-(0x1565+1117-0x19c1)){
-memcpy(pAtcmdStr,g_zUfiSms_FinalCmgsBuf.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));
-}else{printf(
+ZAT_RESULT_SMS){return atRes;}memset(pAtcmdStr,(0xa89+240-0xb79),ZSMS_PDU_SIZE);
+if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-(0x28f+1874-0x9e0)){memcpy(
+pAtcmdStr,g_zUfiSms_FinalCmgsBuf.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));}else{
+printf(
"\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-(0xd17+5519-0x22a4));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.
-pdu))=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0x445+4538-0x15ff),atRstSize);return
+ZSMS_PDU_SIZE-(0x18+3742-0xeb4));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.pdu)
+)=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0x644+2314-0xf4e),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-(0xda6+2349-0x16d2)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0x556+8424-0x263d)].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-(0x6aa+1496-0xc81)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x695+1788-0xd90)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x1d+5374-0x151a)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x16d9+2445-0x2065)){
g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc(cid);}VOID
atSms_RecvCmgsRsp(T_zAt_AtRes*pResLine){return;}VOID atSms_RecvCmtRsp(
-T_zAt_AtRes*pResLine){CHAR needSMS[(0xd97+2448-0x16f5)]={(0x85f+223-0x93e)};
-sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1510+98-0x1572)==
-strcmp(needSMS,"\x6e\x6f")){printf(
+T_zAt_AtRes*pResLine){CHAR needSMS[(0x312+879-0x64f)]={(0xfc9+885-0x133e)};
+sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x166c+4237-0x26f9)
+==strcmp(needSMS,"\x6e\x6f")){printf(
"\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={(0x8da+290-0x9fc)};
-T_zUfiSms_CmtSetRsp tCmtRsp={(0x451+4190-0x14af)};if(NULL==pResLine){return;}
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0x6c+9383-0x2513)};
+T_zUfiSms_CmtSetRsp tCmtRsp={(0x162+8950-0x2458)};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,120 +541,120 @@
"\x25\x35\x30\x30\x73",tCmtRsp.pdu);pthread_mutex_lock(&smsdb_mutex);
zUfiSms_CmtRespProc(&tCmtRsp);zUfiMmi_SendSmsStatus();pthread_mutex_unlock(&
smsdb_mutex);sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,
-(0x26a9+66-0x26eb),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0x421+6740-0x1e75),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[
-(0xc70+2330-0x1558)]={(0xd3a+3548-0x1b16)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x24f4+490-0x26de)==strcmp(needSMS,"\x6e\x6f")){
-printf(
+(0x2059+1664-0x26a7)]={(0x275+4935-0x15bc)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0xbe5+23-0xbfc)==strcmp(needSMS,"\x6e\x6f")){printf
+(
"\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[(0x2c5+4776-0x154f)]={(0xfe5+642-0x1267)};char*
+);return;}char sms_Main_state[(0x1af9+1841-0x220c)]={(0x1da4+2237-0x2661)};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")==
-(0xee6+5027-0x2289)){printf(
+(0x1a5f+1953-0x2200)){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(
-(0x6ac+6549-0x2041)==strncmp("\x53\x4d",memory,(0xb24+5569-0x20e3))){
+(0x19cb+963-0x1d8e)==strncmp("\x53\x4d",memory,(0x938+6286-0x21c4))){
zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0x2c8+8430-0x23b2);printf(
+SMS_STATE_RECVING);memory+=(0xf8f+5473-0x24ec);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[(0x186a+658-0x1aca)]={(0x1d76+1837-0x24a3)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1228+2411-0x1b93)==strcmp(
+){CHAR needSMS[(0x1a08+1299-0x1ee9)]={(0x1f52+456-0x211a)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1967+391-0x1aee)==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={(0x1567+847-0x18b6)};
-T_zUfiSms_CmgrSetRsp tCmgrRsp={(0x1ea+3151-0xe39)};if(NULL==pResLine){return;}if
-(pResLine->pduFlag==ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0xcfa+4914-0x202c)};
+T_zUfiSms_CmgrSetRsp tCmgrRsp={(0x670+5744-0x1ce0)};if(NULL==pResLine){return;}
+if(pResLine->pduFlag==ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->
result){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x52\x73\x70\x20\x67\x65\x74\x20\x72\x65\x73\x75\x6c\x74\x20\x45\x72\x72\x6f\x72\x2e" "\n"
);return;}tCmgrRsp.length=tSmsPara.length;sscanf(pResLine->resParas,
"\x25\x35\x30\x30\x73",tCmgrRsp.pdu);pthread_mutex_lock(&smsdb_mutex);
zUfiSms_CdsRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();pthread_mutex_unlock(&
smsdb_mutex);sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,
-(0xf31+4848-0x2221),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0x7d+7101-0x1c3a),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[
-(0x1089+1978-0x1811)]={(0x152+4746-0x13dc)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x96f+1160-0xdf7)==strcmp(needSMS,"\x6e\x6f")){
+(0x10f5+194-0x1185)]={(0x663+3288-0x133b)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0x1f0+8572-0x236c)==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[(0x19b5+289-0x1ab8)]={(0x1ad3+2328-0x23eb)};char*
+);return;}char sms_Main_state[(0x4d1+7551-0x2232)]={(0x1df3+775-0x20fa)};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")==
-(0xd24+2463-0x16c3)){printf(
+(0x17e7+1138-0x1c59)){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((0x1933+1409-0x1eb4)==strncmp("\x53\x4d",memory,(0x23dc+475-0x25b5))
-){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0x10d2+4363-0x21d9);printf(
+,memory);if((0xf80+2316-0x188c)==strncmp("\x53\x4d",memory,(0x3b+3928-0xf91))){
+zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
+SMS_STATE_RECVING);memory+=(0x437+1728-0xaf3);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[(0x1c69+2079-0x2474)]={
-(0x494+1884-0xbf0)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+ cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x1122+4728-0x2386)]={
+(0x12df+102-0x1345)};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=(0x1317+23-0x132e);CHAR pAtcmdStr[ZSMS_PDU_SIZE]
-={(0x255+2832-0xd65)};CHAR ackPduStr[(0x1757+2038-0x1f1b)]={(0x14d7+3642-0x2311)
-};if(atoi(pAtCmdPara)==(0x512+7681-0x2312)){snprintf(pAtcmdStr,sizeof(pAtcmdStr)
-,"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73" "\r\n",pAtCmdPara);atRes=
-zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,pAtRst,atRstSize);printf(
+pAtRst,int atRstSize){int atRes=(0x1f+7412-0x1d13);CHAR pAtcmdStr[ZSMS_PDU_SIZE]
+={(0x18a1+1518-0x1e8f)};CHAR ackPduStr[(0x1f72+1329-0x2471)]={
+(0x8f5+3705-0x176e)};if(atoi(pAtCmdPara)==(0xe0+3989-0x1074)){snprintf(pAtcmdStr
+,sizeof(pAtcmdStr),"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73" "\r\n",pAtCmdPara)
+;atRes=zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,pAtRst,atRstSize);printf(
"\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(0xf84+2265-0x185d);}else{zUfiSms_EncodePdu_DeliverReport(
-ackPduStr,(0x4b2+1332-0x913));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+,pAtcmdStr);return(0xd63+2933-0x18d8);}else{zUfiSms_EncodePdu_DeliverReport(
+ackPduStr,(0xd1a+6209-0x2488));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73\x2c\x25\x64" "\r\n",pAtCmdPara,strlen(
-ackPduStr)/(0xc61+2607-0x168e));atRes=zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,
+ackPduStr)/(0x644+3795-0x1515));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,(0x315+1372-0x871),ZSMS_PDU_SIZE);if(strlen(
-ackPduStr)<ZSMS_PDU_SIZE-(0xa3d+2919-0x15a3)){memcpy(pAtcmdStr,ackPduStr,strlen(
+,pAtcmdStr);memset(pAtcmdStr,(0x1591+1621-0x1be6),ZSMS_PDU_SIZE);if(strlen(
+ackPduStr)<ZSMS_PDU_SIZE-(0x942+3753-0x17ea)){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-(0x387+2394-0xcdf));}*(
+,ackPduStr);memcpy(pAtcmdStr,ackPduStr,ZSMS_PDU_SIZE-(0xcb0+4926-0x1fec));}*(
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,(0xd7c+3125-0x19b1),atRstSize);return zSvr_SendAtSyn(
+,pAtcmdStr);memset(pAtRst,(0x16c+8992-0x248c),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]={(0x17b4+3827-0x26a7)};int atRes=
-(0xb58+79-0xba7);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]={(0x38+3644-0xe74)};
-if(pDatabuf==NULL){printf(
+cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x724+4278-0x17da)};int atRes=
+(0x1412+1172-0x18a6);if(pDatabuf==NULL){return;}atRes=atSms_SendCmgdReq(pDatabuf
+,cid,errCode,ZSVR_AT_RES_CODE_LEN);if(atRes==ZSMS_RESULT_OK){atSms_RecvCmgdOk();
+}else{atSms_RecvCmgdErr();}atSms_RecvCmgdFinish();}VOID atUnsoli_Report_Cnma(
+UINT8*pDatabuf,int cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x1ac9+321-0x1c0a)}
+;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]
-={(0x34b+2389-0xca0)};int atRes=(0x16dc+1466-0x1c96);if(pDatabuf==NULL){printf(
+={(0xa66+3291-0x1741)};int atRes=(0x13cb+1218-0x188d);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]=
-{(0x84+4051-0x1057)};if(pDatabuf==NULL){printf(
+{(0x551+816-0x881)};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