[Feature][task-view-306]merge P56U09 version

Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No

Change-Id: Ic1d79772789f930ca0b0aaee9c8e6086e86300ce
diff --git a/ap/app/hostapd-2.10/hostapd/libwpa_client.a b/ap/app/hostapd-2.10/hostapd/libwpa_client.a
index 60f329a..2ba2b63 100755
--- a/ap/app/hostapd-2.10/hostapd/libwpa_client.a
+++ b/ap/app/hostapd-2.10/hostapd/libwpa_client.a
Binary files differ
diff --git a/ap/app/include/wifi_msg.h b/ap/app/include/wifi_msg.h
index a148d67..a68a6e8 100755
--- a/ap/app/include/wifi_msg.h
+++ b/ap/app/include/wifi_msg.h
@@ -373,8 +373,10 @@
 #define WIFI_STATION_FLAGS_LEN    128
 
 typedef struct  update_spot_info {
-	char  spot[WIFI_STATION_SPOT_LEN];
+	char spot[WIFI_STATION_SPOT_LEN];
 	char action[WIFI_STATION_SPOT_ACTION_LEN];
+	char ssid[WIFI_SSID_LEN];			//ssid should be less than 32 bytes
+	char pwd[WLAN_PSK_LEN];				//pwd len should be in 8~64 bytes
 } updateinfo_t;
 
 typedef enum wifi_profile_content {
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 0183a76..46e8abd 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 5264db2..101a499 100755
--- a/ap/app/zte_comm/nvserver/nvserver.c
+++ b/ap/app/zte_comm/nvserver/nvserver.c
@@ -31,74 +31,74 @@
 file,char*key,char*value);static int nvunset(char*file,char*key);static int 
 nvclear(char*file);static int nvreset(char*file);static int nvcommit(char*file);
 T_NV_NODE*nv_list;int nvserver_main(int argc,char*argv[]){int msgId=
-(0x209+4095-0x1208);T_NV_MSG_INFO rcvBuf;T_NV_MSG_RESULT sndBuf;struct msqid_ds 
-msgInfo;prctl(PR_SET_NAME,"\x6e\x76\x73\x65\x72\x76\x65\x72",(0x5ef+953-0x9a8),
-(0x89a+1705-0xf43),(0x243c+329-0x2585));memset(&rcvBuf,(0x1b54+1510-0x213a),
-sizeof(rcvBuf));memset(&sndBuf,(0x1a1d+3270-0x26e3),sizeof(sndBuf));memset(&
-msgInfo,(0x12d7+429-0x1484),sizeof(msgInfo));msgId=msgget(MODULE_ID_NV,IPC_CREAT
-|(0x878+5660-0x1d14));if(-(0x792+243-0x884)==msgId){printf(
+(0xe7a+2066-0x168c);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",(0x721+7163-0x231c)
+,(0x77a+1071-0xba9),(0x22b+6826-0x1cd5));memset(&rcvBuf,(0x12dd+715-0x15a8),
+sizeof(rcvBuf));memset(&sndBuf,(0xa8a+3067-0x1685),sizeof(sndBuf));memset(&
+msgInfo,(0xdcf+2206-0x166d),sizeof(msgInfo));msgId=msgget(MODULE_ID_NV,IPC_CREAT
+|(0xae7+5318-0x1e2d));if(-(0x1755+3387-0x248f)==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-(0x674+7929-0x256c);}if(-(0xfc7+4456-0x212e)!=msgctl(msgId,
-IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0xcd2+5966-0x241f)==msgctl(
+,errno);return-(0x151f+3866-0x2438);}if(-(0x694+8073-0x261c)!=msgctl(msgId,
+IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0x6e0+5543-0x1c86)==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()!=(0x1ab1+1541-0x20b6)){printf(
+,errno);}if(nvDirInit()!=(0x1916+2322-0x2228)){printf(
 "\x6e\x76\x44\x69\x72\x49\x6e\x69\x74\x20\x66\x61\x69\x6c\x65\x21" "\n");return-
-(0x1c4b+589-0x1e97);}nvConfig();nvInit();while((0x280+4929-0x15c0)){if(-
-(0x196b+1134-0x1dd8)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
-MSG_TYPE_NV,(0xbe1+2889-0x172a))){printf(
+(0x6d7+7153-0x22c7);}nvConfig();nvInit();while((0x45f+958-0x81c)){if(-
+(0x301+3995-0x129b)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
+MSG_TYPE_NV,(0xc26+3801-0x1aff))){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(-(0x950+4098-0x1951)==msgsnd(
-msgId,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0x1ca2+7-0x1ca9))){printf(
+,errno);continue;}analyMsg(&rcvBuf,&sndBuf);if(-(0x6c0+5642-0x1cc9)==msgsnd(
+msgId,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0x57f+3769-0x1438))){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((0x15b3+2369-0x1ef4));}static void configdir(char*dir)
-{DIR*dp;int ret;struct dirent*entry;struct stat statbuf;if((dp=opendir(dir))==
+,errno);continue;}}return((0x10c9+920-0x1461));}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<(0x11e1+1995-0x19ac)){fprintf(stderr,
+d_name,&statbuf);if(ret<(0x93f+3551-0x171e)){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)==(0x10b3+2384-0x1a03)||strcmp("\x2e\x2e",entry->
-d_name)==(0x117f+2241-0x1a40))continue;if(!isNvConfiged(entry->d_name)){if(
+strcmp("\x2e",entry->d_name)==(0x82d+7150-0x241b)||strcmp("\x2e\x2e",entry->
+d_name)==(0xae0+824-0xe18))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]={(0x8f5+2539-0x12e0)};fp=fopen
+val=NULL;FILE*fp=NULL;char buf[NV_MAX_CONFIG_LEN]={(0x510+4322-0x15f2)};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[
-(0x23ac+484-0x2590)]=='\n'||buf[(0xcd2+4917-0x2007)]==
-((char)(0x19d7+1471-0x1f73)))continue;val=strchr(buf,
-((char)(0x1e34+1374-0x2355)));if(!val){printf(
+(0x84f+7727-0x267e)]=='\n'||buf[(0xf2a+4513-0x20cb)]==
+((char)(0x601+4850-0x18d0)))continue;val=strchr(buf,((char)(0xf85+3266-0x1c0a)))
+;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)-(0xc9a+2263-0x1570)]='\0';*val++=
+,NV_CONFIG_FILE,buf);continue;}buf[strlen(buf)-(0xb39+4270-0x1be6)]='\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)!=(0x699+3173-0x12fe)){if(mkdir(NV_FS_PATH,(0x1451+1846-0x199a))
-!=(0x55a+2656-0xfba)){printf(
+NV_FS_PATH,F_OK)!=(0x1ca9+1419-0x2234)){if(mkdir(NV_FS_PATH,(0x29d+142-0x13e))!=
+(0x1e29+652-0x20b5)){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-(0x6d1+6521-0x2049);}if(mkdir(NV_FS_MAIN_PATH,
-(0x3ea+8060-0x2179))!=(0x2257+547-0x247a)){printf(
+,NV_FS_PATH,errno);return-(0x194d+264-0x1a54);}if(mkdir(NV_FS_MAIN_PATH,
+(0x249a+1070-0x26db))!=(0x14f+2741-0xc04)){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-(0x13d7+2433-0x1d57);}if(mkdir(NV_FS_BACKUP_PATH,
-(0x5f3+5231-0x1875))!=(0x635+6984-0x217d)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0xd8f+5331-0x2261);}if(mkdir(NV_FS_BACKUP_PATH,
+(0x1c92+1041-0x1eb6))!=(0x122c+168-0x12d4)){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-(0x1310+1671-0x1996);}}else{if(access(
-NV_FS_MAIN_PATH,F_OK)!=(0xed2+597-0x1127)){if(mkdir(NV_FS_MAIN_PATH,
-(0xd16+3236-0x17cd))!=(0x497+2723-0xf3a)){printf(
+,NV_FS_BACKUP_PATH,errno);return-(0xa12+30-0xa2f);}}else{if(access(
+NV_FS_MAIN_PATH,F_OK)!=(0x14e8+1394-0x1a5a)){if(mkdir(NV_FS_MAIN_PATH,
+(0x1ff7+2203-0x26a5))!=(0x23eb+788-0x26ff)){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-(0x1e87+1561-0x249f);}}if(access(
-NV_FS_BACKUP_PATH,F_OK)!=(0x2219+104-0x2281)){if(mkdir(NV_FS_BACKUP_PATH,
-(0x1c51+1571-0x2087))!=(0x1438+447-0x15f7)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0xc98+1801-0x13a0);}}if(access(NV_FS_BACKUP_PATH
+,F_OK)!=(0x3b7+6332-0x1c73)){if(mkdir(NV_FS_BACKUP_PATH,(0xd77+6373-0x246f))!=
+(0x1557+2974-0x20f5)){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-(0xda8+4876-0x20b3);}}}return
-(0x19cf+1549-0x1fdc);}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[
-NV_PATH_LEN]={(0x15d+9159-0x2524)};char nvBackupFile[NV_PATH_LEN]={
-(0x18cd+2765-0x239a)};
+,NV_FS_BACKUP_PATH,errno);return-(0x73b+7107-0x22fd);}}}return
+(0x10c+5360-0x15fc);}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[
+NV_PATH_LEN]={(0x471+321-0x5b2)};char nvBackupFile[NV_PATH_LEN]={
+(0xdbb+722-0x108d)};
 #ifdef FOTA_AB
-T_FLAGS_INFO flags_info={(0xfbc+989-0x1399)};int ret=(0x3f9+5150-0x1817);
+T_FLAGS_INFO flags_info={(0xc88+3690-0x1af2)};int ret=(0x2+587-0x24d);
 #endif
 for(list=nv_list;list;list=list->next){snprintf(nvMainFile,NV_PATH_LEN,
 "\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,list->nvFile);snprintf(nvBackupFile,
@@ -106,80 +106,80 @@
 nvMainFile)){if(!checkNvFs(nvBackupFile))restoreNvFs(nvBackupFile,nvMainFile);}
 else if(checkNvFs(nvBackupFile)){restoreNvFs(nvMainFile,nvBackupFile);}else{
 loadFactroyParam(list);nvcommit(list->nvFile);continue;}loadNvFs(list->nvFile);
-if(!strcmp(list->nvFile,NV_CFG)&&get_update_status()==(0xc7+3572-0xeb9)){
+if(!strcmp(list->nvFile,NV_CFG)&&get_update_status()==(0x89+9653-0x263c)){
 reloadFactroyParam(list);delete_not_needed(list);nvcommit(list->nvFile);
 #ifdef FOTA_AB
 ret=flags_get(&flags_info);flags_info.boot_fota_flag.fota_status=
-(0x38a+170-0x434);ret=flags_set(&flags_info);
+(0xfc6+4638-0x21e4);ret=flags_set(&flags_info);
 #endif
-}}}uint hash(const char*s){uint hash=(0x731+4220-0x17ad);while(*s){hash=
+}}}uint hash(const char*s){uint hash=(0x537+6036-0x1ccb);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]={
-(0xcab+2015-0x148a)};for(config=list->fileList;config;config=config->next){fp=
+(0x1d8+9324-0x2644)};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[(0x207+8575-0x2386)]=='\n'||buf[(0x1a03+810-0x1d2d)]
-==((char)(0x6cf+6487-0x2003)))continue;val=strchr(buf,
-((char)(0x741+2705-0x1195)));if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0x1277+4187-0x22d2)]=='\n'||buf[(0x6ff+8141-0x26cc)
+]==((char)(0xd0a+3970-0x1c69)))continue;val=strchr(buf,
+((char)(0x1486+1381-0x19ae)));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)-(0x131d+1243-0x17f7)]==
-'\n')buf[strlen(buf)-(0x1df2+849-0x2142)]='\0';*val++='\0';nvset(list->nvFile,
-buf,val,(0x8b7+4145-0x18e7));}printf(
+,config->configFile,buf);continue;}if(buf[strlen(buf)-(0x75c+239-0x84a)]=='\n')
+buf[strlen(buf)-(0x104+6728-0x1b4b)]='\0';*val++='\0';nvset(list->nvFile,buf,val
+,(0x134a+1615-0x1998));}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=(0x1d51+1210-0x220b);int cnt=(0x125c+3616-0x207c);FILE*fp=
-NULL;char*buf=NULL;struct stat statbuff={(0x186a+1396-0x1dde)};if(stat(file,&
-statbuff)<(0x184+2278-0xa6a))return false;len=statbuff.st_size;if(len<
-NV_CHECK_SIZE)return false;fp=fopen(file,"\x72\x6f");if(!fp)return false;buf=(
-char*)malloc(len);if(!buf){fclose(fp);return false;}cnt=(0xf14+4502-0x20aa);
-while(cnt<len){cnt=cnt+fread(buf+cnt,(0x6b2+7964-0x25cd),len-cnt,fp);if(ferror(
-fp)){clearerr(fp);free(buf);fclose(fp);return false;}}if(len!=cnt){free(buf);
-fclose(fp);return false;}if(getSum(buf,len-NV_CHECK_SIZE)+NV_FILE_FLAG!=*(uint*)
-(buf+len-NV_CHECK_SIZE)){free(buf);fclose(fp);return false;}free(buf);fclose(fp)
-;return true;}static int copyfile(const char*from,const char*to){int fd_to;int 
-fd_from;char buf[(0x126c+1519-0x85b)];ssize_t nread;int ret=-(0x893+7553-0x2613)
-;fd_from=open(from,O_RDONLY);if(fd_from<(0xafa+6485-0x244f))return-
-(0x621+1739-0xcea);fd_to=open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,
-(0x1cf9+964-0x1f1d));if(fd_to<(0x340+6746-0x1d9a)){ret=-(0x57+884-0x3c8);goto 
-out_error;}while((0x2385+790-0x269a)){char*out_ptr;ssize_t nwritten;nread=read(
-fd_from,buf,sizeof(buf));if(nread==(0x4c3+7723-0x22ee)){break;}else{if(nread<
-(0x20cf+283-0x21ea)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
-(0x86a+7595-0x2611);goto out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,
-out_ptr,nread);if(nwritten>(0xc75+2449-0x1606)){nread-=nwritten;out_ptr+=
-nwritten;}else{if(nwritten<(0xa34+6034-0x21c6)){if(errno==EINTR||errno==EAGAIN){
-continue;}else{ret=-(0xdf8+743-0x10da);goto out_error;}}}}while(nread>
-(0x26c0+32-0x26e0));}ret=fsync(fd_to);if(ret<(0xe54+2082-0x1676)){printf(
+char*file){int len=(0xb72+5012-0x1f06);int cnt=(0x354+6751-0x1db3);FILE*fp=NULL;
+char*buf=NULL;struct stat statbuff={(0xdb8+3546-0x1b92)};if(stat(file,&statbuff)
+<(0x244+1296-0x754))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=(0x2075+1098-0x24bf);while(cnt<len){cnt=
+cnt+fread(buf+cnt,(0xc34+187-0xcee),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[
+(0x12b8+6770-0x1d2a)];ssize_t nread;int ret=-(0x480+3392-0x11bf);fd_from=open(
+from,O_RDONLY);if(fd_from<(0x70+5260-0x14fc))return-(0x15ec+4222-0x2668);fd_to=
+open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,(0xb21+4555-0x1b4c));if(fd_to<
+(0x795+6002-0x1f07)){ret=-(0x1562+3795-0x2432);goto out_error;}while(
+(0x434+8843-0x26be)){char*out_ptr;ssize_t nwritten;nread=read(fd_from,buf,sizeof
+(buf));if(nread==(0x6d5+8193-0x26d6)){break;}else{if(nread<(0x7bb+3192-0x1433)){
+if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-(0x1588+717-0x1851);goto 
+out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,out_ptr,nread);if(nwritten>
+(0x9aa+1698-0x104c)){nread-=nwritten;out_ptr+=nwritten;}else{if(nwritten<
+(0xe7d+77-0xeca)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
+(0xc34+1310-0x114d);goto out_error;}}}}while(nread>(0x726+5923-0x1e49));}ret=
+fsync(fd_to);if(ret<(0x48f+5872-0x1b7f)){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)<(0x20f6+1175-0x258d)){fd_to
-=-(0x1abc+749-0x1da8);ret=-(0x1c90+2508-0x2656);goto out_error;}close(fd_from);
-return(0xe04+1599-0x1443);out_error:printf(
+,strerror(errno),to);goto out_error;}if(close(fd_to)<(0x1306+2532-0x1cea)){fd_to
+=-(0x10e4+4316-0x21bf);ret=-(0x2df+1211-0x794);goto out_error;}close(fd_from);
+return(0x1cd4+1409-0x2255);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>=(0x1ebc+741-0x21a1))close(fd_to);return 
-ret;}static int restoreNvFs(char*dstFile,char*srcFile){if(copyfile(srcFile,
-dstFile)!=(0x16f+3128-0xda7))return RESULT_FAIL;return RESULT_SUCCESS;}static 
-int loadNvFs(char*file){int len=(0x2032+756-0x2326);int cnt=(0x1c14+676-0x1eb8);
-FILE*fp=NULL;char*buf=NULL;char*name=NULL;char*value=NULL;char*eq=NULL;struct 
-stat statbuff={(0xbc9+611-0xe2c)};char nvFile[NV_PATH_LEN]={(0x9b+1245-0x578)};
+,from,to,ret);close(fd_from);if(fd_to>=(0xc25+185-0xcde))close(fd_to);return ret
+;}static int restoreNvFs(char*dstFile,char*srcFile){if(copyfile(srcFile,dstFile)
+!=(0xf14+2971-0x1aaf))return RESULT_FAIL;return RESULT_SUCCESS;}static int 
+loadNvFs(char*file){int len=(0x2dc+4597-0x14d1);int cnt=(0x2d4+9022-0x2612);FILE
+*fp=NULL;char*buf=NULL;char*name=NULL;char*value=NULL;char*eq=NULL;struct stat 
+statbuff={(0xbf6+3098-0x1810)};char nvFile[NV_PATH_LEN]={(0x1971+3000-0x2529)};
 sprintf(nvFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file);if(stat(nvFile,&
-statbuff)<(0x1374+3443-0x20e7))return RESULT_FAIL;len=statbuff.st_size;if(
+statbuff)<(0x762+4454-0x18c8))return RESULT_FAIL;len=statbuff.st_size;if(
 NV_CHECK_SIZE>len)return RESULT_FAIL;fp=fopen(nvFile,"\x72\x6f");if(!fp)return 
 RESULT_FILE_OPEN_FAIL;len=len-NV_CHECK_SIZE;buf=(char*)malloc(len+
-(0x1898+0-0x1897));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
-(0xe61+4699-0x20bc),len+(0x10dd+4748-0x2368));cnt=(0x29c+8750-0x24ca);while(cnt<
-len){cnt=cnt+fread(buf+cnt,(0xec7+3911-0x1e0d),len-cnt,fp);if(ferror(fp)){
+(0x1ba2+1756-0x227d));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
+(0xc11+5775-0x22a0),len+(0xf89+3474-0x1d1a));cnt=(0xa33+4352-0x1b33);while(cnt<
+len){cnt=cnt+fread(buf+cnt,(0x1477+4008-0x241e),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)(0x59f+1260-0xa4e))))){break;}*eq='\0';value=
-eq+(0x1493+1684-0x1b26);nvset(file,name,value,(0x126+3821-0x1012));*eq=
-((char)(0xd5c+3981-0x1cac));name=value+strlen(value)+(0x22f+521-0x437);}free(buf
-);fclose(fp);return RESULT_SUCCESS;}static void analyMsg(T_NV_MSG_INFO*msgrecv,
-T_NV_MSG_RESULT*msgsnd){switch(msgrecv->nvType){case MSG_GET:msgsnd->result=
-nvget(msgrecv->file,msgrecv->key,msgsnd->value);break;case MSG_SET:msgsnd->
-result=nvset(msgrecv->file,msgrecv->key,msgrecv->value,msgrecv->saveflag);break;
-case MSG_UNSET:msgsnd->result=nvunset(msgrecv->file,msgrecv->key);break;case 
-MSG_CLEAR:msgsnd->result=nvclear(msgrecv->file);break;case MSG_RESET:msgsnd->
-result=nvreset(msgrecv->file);break;case MSG_SHOW:msgsnd->result=saveNvFs(
+*name){if(!(eq=strchr(name,((char)(0x2277+449-0x23fb))))){break;}*eq='\0';value=
+eq+(0x1898+637-0x1b14);nvset(file,name,value,(0x14cc+904-0x1853));*eq=
+((char)(0x323+4632-0x14fe));name=value+strlen(value)+(0x383+4424-0x14ca);}free(
+buf);fclose(fp);return RESULT_SUCCESS;}static void analyMsg(T_NV_MSG_INFO*
+msgrecv,T_NV_MSG_RESULT*msgsnd){switch(msgrecv->nvType){case MSG_GET:msgsnd->
+result=nvget(msgrecv->file,msgrecv->key,msgsnd->value);break;case MSG_SET:msgsnd
+->result=nvset(msgrecv->file,msgrecv->key,msgrecv->value,msgrecv->saveflag);
+break;case MSG_UNSET:msgsnd->result=nvunset(msgrecv->file,msgrecv->key);break;
+case MSG_CLEAR:msgsnd->result=nvclear(msgrecv->file);break;case MSG_RESET:msgsnd
+->result=nvreset(msgrecv->file);break;case MSG_SHOW:msgsnd->result=saveNvFs(
 msgrecv->file,NV_FS_SHOW);;break;case MSG_COMMIT:msgsnd->result=nvcommit(msgrecv
 ->file);break;default:break;}msgsnd->msgType=msgrecv->pid;msgsnd->msgIndex=
 msgrecv->msgIndex;}static int addConfigFile(char*nvFile,char*configFile){
@@ -188,104 +188,103 @@
 "\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-(0x1f28+709-0x21ec));newConfig->configFile[
-NV_PATH_LEN-(0x291+345-0x3e9)]='\0';newConfig->next=NULL;}for(list=nv_list;list;
-list=list->next){if(strcmp(list->nvFile,nvFile)==(0x21b+3089-0xe2c))break;}if(!
-list){newList=(T_NV_NODE*)malloc(sizeof(T_NV_NODE));if(!newList){if(newConfig)
-free(newConfig);return RESULT_MALLOC_FAIL;}newList->next=NULL;strncpy(newList->
-nvFile,nvFile,NV_PATH_LEN-(0xe61+5060-0x2224));newList->nvFile[NV_PATH_LEN-
-(0x704+3236-0x13a7)]='\0';memset(newList->nvTable,(0x887+1381-0xdec),NV_HASH_LEN
-*(0x1858+1842-0x1f86));newList->fileList=newConfig;if(!nv_list)nv_list=newList;
-else{newList->next=nv_list->next;nv_list->next=newList;}}else if(!list->fileList
-)list->fileList=newConfig;else{if(newConfig==NULL)return RESULT_FAIL;newConfig->
-next=list->fileList->next;list->fileList->next=newConfig;}return RESULT_SUCCESS;
-}static bool isCfgConfiged(char*configFile){T_NV_NODE*list=NULL;T_NV_CONFIG*
-config=NULL;for(list=nv_list;list;list=list->next){for(config=list->fileList;
-config;config=config->next){if(!strcmp(config->configFile,configFile))return 
-true;}}return false;}static bool isNvConfiged(char*nvFile){T_NV_NODE*list=NULL;
-for(list=nv_list;list;list=list->next){if(!strcmp(list->nvFile,nvFile))return 
-true;}return false;}static uint getSum(const char*s,int len){uint sum=
-(0x20b9+662-0x234f);char*data=(char*)s;while(len-- >(0x93d+6263-0x21b4)){sum+=(*
-data++);}return sum;}static int saveNvFs(char*nvName,char*nvFile){int i=
-(0x8ab+5763-0x1f2e);int sum=(0xfec+4575-0x21cb);int bufSize=(0xeda+5983-0x2639);
-int itemSize=(0x1468+2076-0x1c84);int ret=(0xa40+6819-0x24e3);int fp=
-(0xe4+8683-0x22cf);char*buf=NULL;T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;for(
-list=nv_list;list;list=list->next){if(strcmp(list->nvFile,nvName))continue;fp=
-open(nvFile,O_SYNC|O_RDWR|O_CREAT|O_TRUNC,(0x4a4+4533-0x14b9));if(fp==-
-(0x1036+753-0x1326)){printf(
+configFile,configFile,NV_PATH_LEN-(0x3d9+364-0x544));newConfig->configFile[
+NV_PATH_LEN-(0x17d1+2559-0x21cf)]='\0';newConfig->next=NULL;}for(list=nv_list;
+list;list=list->next){if(strcmp(list->nvFile,nvFile)==(0x1e00+1484-0x23cc))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-(0x324+1980-0xadf));newList->nvFile[
+NV_PATH_LEN-(0x955+3249-0x1605)]='\0';memset(newList->nvTable,
+(0xc52+4853-0x1f47),NV_HASH_LEN*(0x73a+6839-0x21ed));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=(0x1ddf+172-0x1e8b);char*data=(char*)s;while(len-- >
+(0x549+1618-0xb9b)){sum+=(*data++);}return sum;}static int saveNvFs(char*nvName,
+char*nvFile){int i=(0x826+6755-0x2289);int sum=(0x752+3072-0x1352);int bufSize=
+(0x153+1357-0x6a0);int itemSize=(0x1b65+2062-0x2373);int ret=(0x93d+3433-0x16a6)
+;int fp=(0x454+794-0x76e);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,(0x43c+8005-0x21e1));if(fp==-
+(0xa35+228-0xb18)){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=(0xf86+1867-0x16d1);i<
+(!buf){close(fp);return RESULT_MALLOC_FAIL;}for(i=(0xf16+2821-0x1a1b);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)+(0x20d0+1126-0x2534);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp
-,buf,bufSize)<(0x1cf5+385-0x1e76)){printf(
+item->value)+(0x13b4+2864-0x1ee2);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp
+,buf,bufSize)<(0x284+1627-0x8df)){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=(0x159d+4280-0x2655);}sprintf(buf+bufSize,
++=getSum(buf,bufSize);bufSize=(0x17b2+3190-0x2428);}sprintf(buf+bufSize,
 "\x25\x73\x3d\x25\x73",item->key,item->value);bufSize+=itemSize;}}if(bufSize!=
-(0x202b+304-0x215b)){if(write(fp,buf,bufSize)<(0x613+4423-0x175a)){printf(
+(0x983+5619-0x1f76)){if(write(fp,buf,bufSize)<(0x3c2+4379-0x14dd)){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)<(0x1eb5+1324-0x23e1)
+bufSize);}sum+=NV_FILE_FLAG;if(write(fp,&sum,NV_CHECK_SIZE)<(0x181b+3703-0x2692)
 ){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<(0x2da+6151-0x1ae1)){printf(
+buf);close(fp);if(ret<(0x1837+246-0x192d)){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=
-(0x1800+1825-0x1f21);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;for(list=nv_list;
+(0x1d3+4764-0x146f);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-(0xaa1+6608-0x2470));
-value[NV_MAX_VAL_LEN-(0x122f+791-0x1545)]='\0';return RESULT_SUCCESS;}}return 
+key,key))continue;strncpy(value,item->value,NV_MAX_VAL_LEN-(0xd5a+4074-0x1d43));
+value[NV_MAX_VAL_LEN-(0x9b3+2600-0x13da)]='\0';return RESULT_SUCCESS;}}return 
 RESULT_NO_ITEM;}static int nvset(char*file,const char*key,const char*value,int 
-saveFlag){int index=(0xdd6+4499-0x1f69);int ret=(0x92+5360-0x1582);int 
-key_buf_len=(0x1702+2510-0x20d0);int value_buf_len=(0x14ff+4295-0x25c6);
-T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;T_NV_ITEM*newItem=NULL;if(NULL==key||
-NULL==value)return RESULT_FAIL;key_buf_len=strlen(key)+(0x6f9+6894-0x21e6);
-value_buf_len=strlen(value)+(0x9f0+4052-0x19c3);for(list=nv_list;list;list=list
-->next){if(strcmp(list->nvFile,file))continue;index=hash(key)%NV_HASH_LEN;for(
-item=list->nvTable[index];item;item=item->next){if(strcmp(item->key,key))
-continue;if(saveFlag)item->saveFlag=saveFlag;if(!strcmp(item->value,value))
-return RESULT_SUCCESS;free(item->value);item->value=(char*)malloc(value_buf_len)
-;if(!item->value)return RESULT_MALLOC_FAIL;strncpy(item->value,value,
-value_buf_len-(0x303+1556-0x916));item->value[value_buf_len-(0x4ca+1362-0xa1b)]=
-'\0';return RESULT_SUCCESS;}newItem=(T_NV_ITEM*)malloc(sizeof(T_NV_ITEM));if(!
-newItem)return RESULT_MALLOC_FAIL;newItem->key=(char*)malloc(key_buf_len);if(!
-newItem->key){free(newItem);return RESULT_MALLOC_FAIL;}newItem->value=(char*)
-malloc(value_buf_len);if(!newItem->value){free(newItem->key);free(newItem);
-return RESULT_MALLOC_FAIL;}strncpy(newItem->key,key,key_buf_len-
-(0x1454+709-0x1718));newItem->key[key_buf_len-(0x1a19+2342-0x233e)]='\0';strncpy
-(newItem->value,value,value_buf_len-(0x10fc+1816-0x1813));newItem->value[
-value_buf_len-(0x12e2+1287-0x17e8)]='\0';newItem->next=NULL;newItem->saveFlag=
-saveFlag;newItem->update_flag=(0x9+7491-0x1d4c);if(!list->nvTable[index])list->
-nvTable[index]=newItem;else{newItem->next=list->nvTable[index]->next;list->
-nvTable[index]->next=newItem;}return RESULT_SUCCESS;}ret=addConfigFile(file,NULL
-);if(ret==RESULT_SUCCESS)return nvset(file,key,value,saveFlag);else return ret;}
-static int nvunset(char*file,char*key){int index=(0xc21+2692-0x16a5);T_NV_NODE*
-list=NULL;T_NV_ITEM*item=NULL;T_NV_ITEM*prev=NULL;for(list=nv_list;list;list=
-list->next){if(strcmp(list->nvFile,file))continue;index=hash(key)%NV_HASH_LEN;
-for(item=list->nvTable[index];item;prev=item,item=item->next){if(strcmp(item->
-key,key))continue;if(!prev)list->nvTable[index]=item->next;else prev->next=item
-->next;free(item->key);free(item->value);free(item);return RESULT_SUCCESS;}}
-return RESULT_NO_ITEM;}static int nvreset(char*file){int ret=(0xd28+4620-0x1f34)
-;T_NV_NODE*list=NULL;for(list=nv_list;list;list=list->next){if(strcmp(list->
+saveFlag){int index=(0xd0c+552-0xf34);int ret=(0x8a5+3844-0x17a9);int 
+key_buf_len=(0x10ea+785-0x13fb);int value_buf_len=(0x465+6781-0x1ee2);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)+(0x4c8+3774-0x1385);value_buf_len=
+strlen(value)+(0xd44+3765-0x1bf8);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-
+(0x293+6898-0x1d84));item->value[value_buf_len-(0xdfb+2094-0x1628)]='\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-(0x68f+1599-0xccd));
+newItem->key[key_buf_len-(0x237+1412-0x7ba)]='\0';strncpy(newItem->value,value,
+value_buf_len-(0x10b8+4596-0x22ab));newItem->value[value_buf_len-
+(0x13a4+4644-0x25c7)]='\0';newItem->next=NULL;newItem->saveFlag=saveFlag;newItem
+->update_flag=(0xca1+6650-0x269b);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=(0x16f7+1158-0x1b7d);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=(0x7c0+7258-0x241a);
+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=(0x19f3+341-0x1b48);
+}return RESULT_NO_FILE;}static int nvclear(char*file){int i=(0xdd0+17-0xde1);
 T_NV_NODE*list=NULL;T_NV_ITEM*cur=NULL;T_NV_ITEM*item=NULL;for(list=nv_list;list
-;list=list->next){if(strcmp(list->nvFile,file))continue;for(i=
-(0x1423+2484-0x1dd7);i<NV_HASH_LEN;i++){for(item=list->nvTable[i];item;){cur=
-item;item=item->next;free(cur->key);free(cur->value);free(cur);}list->nvTable[i]
-=NULL;}return RESULT_SUCCESS;}return RESULT_NO_FILE;}static int nvcommit(char*
-file){int ret=(0x20f1+734-0x23cf);char nvMainFile[NV_PATH_LEN]={
-(0x206f+1215-0x252e)};char nvBackupFile[NV_PATH_LEN]={(0x1d20+1365-0x2275)};
-sprintf(nvMainFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file);sprintf(
-nvBackupFile,"\x25\x73\x2f\x25\x73",NV_FS_BACKUP_PATH,file);ret=saveNvFs(file,
-nvMainFile);if(ret!=RESULT_SUCCESS)return ret;return restoreNvFs(nvBackupFile,
-nvMainFile);}
+;list=list->next){if(strcmp(list->nvFile,file))continue;for(i=(0x104+605-0x361);
+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=
+(0x115c+3316-0x1e50);char nvMainFile[NV_PATH_LEN]={(0x21f+8420-0x2303)};char 
+nvBackupFile[NV_PATH_LEN]={(0xdf0+4084-0x1de4)};sprintf(nvMainFile,
+"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file);sprintf(nvBackupFile,
+"\x25\x73\x2f\x25\x73",NV_FS_BACKUP_PATH,file);ret=saveNvFs(file,nvMainFile);if(
+ret!=RESULT_SUCCESS)return ret;return restoreNvFs(nvBackupFile,nvMainFile);}
 #ifdef __cplusplus
 }
 #endif
diff --git a/ap/app/zte_comm/nvserver/nvupdate.c b/ap/app/zte_comm/nvserver/nvupdate.c
index 2830fc2..3028294 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={(0xb6d+2186-0x13f7)};
-unsigned int status=(0x14c6+3759-0x2375);int ret=(0x2b3+7519-0x2012);ret=
-flags_get(&flags_info);status=flags_info.boot_fota_flag.fota_status;if(status==
-(0x8b0+6948-0x23d3))return(0x152b+3247-0x21d8);else return(0xed5+3378-0x1c07);}
+int get_update_status(void){T_FLAGS_INFO flags_info={(0x11+8127-0x1fd0)};
+unsigned int status=(0x3ff+7834-0x2299);int ret=(0x47+9018-0x2381);ret=flags_get
+(&flags_info);status=flags_info.boot_fota_flag.fota_status;if(status==
+(0x4ed+645-0x771))return(0x18a3+3150-0x24ef);else return(0x11cb+3530-0x1f95);}
 #else
-int get_update_status(void){int update_status;FILE*fd=(0x35b+3454-0x10d9);int 
+int get_update_status(void){int update_status;FILE*fd=(0x864+4715-0x1acf);int 
 ret;char*filename=NULL;if(access(FOTA_UPDATE_STATUS_FILE_OLD,R_OK)==
-(0x1dec+1019-0x21e7)){filename=FOTA_UPDATE_STATUS_FILE_OLD;}else{filename=
+(0x11bc+3480-0x1f54)){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<(0x1063+3165-0x1cc0)){printf(
+(ret<(0x12cb+1191-0x1772)){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-(0xba9+1750-0x127e)
+update_status);fclose(fd);return update_status;error0:return-(0x197a+676-0x1c1d)
 ;}
 #endif
 int nvupdate(char*nv_file,char*config_file,const char*key,const char*value,int 
-saveFlag){int index=(0xfe9+3366-0x1d0f);int key_buf_len=(0x1ddd+1220-0x22a1);int
- value_buf_len=(0x11db+1233-0x16ac);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;
+saveFlag){int index=(0x1b99+1285-0x209e);int key_buf_len=(0x1b8b+634-0x1e05);int
+ value_buf_len=(0xc03+275-0xd16);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)+(0x23e3+759-0x26d9);value_buf_len=
-strlen(value)+(0x1f4+2370-0xb35);for(list=nv_list;list;list=list->next){if(
+,nv_file,key,value);key_buf_len=strlen(key)+(0x1c1+5757-0x183d);value_buf_len=
+strlen(value)+(0x1de0+1134-0x224d);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=(0x1b33+2662-0x2598);printf(
+update_flag=(0xb8c+5734-0x21f1);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((0xd51+5472-0x22b0)==item->update_flag){
+config_file,"\x75\x73\x65\x72")){if((0x586+4751-0x1814)==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=
-(0x39a+7978-0x22c3);printf(
+(0x411+4388-0x1534);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-(0x1471+1707-0x1b1b));item->value[value_buf_len-
-(0xfa0+315-0x10da)]='\0';item->update_flag=(0x15e5+3127-0x221b);return 
+value,value_buf_len-(0x334+7692-0x213f));item->value[value_buf_len-
+(0x59f+4826-0x1878)]='\0';item->update_flag=(0x9e7+6105-0x21bf);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)+
-(0xcf1+2732-0x179c));if(!newItem->key){free(newItem);printf(
+(0x150f+2636-0x1f5a));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-
-(0x1754+1643-0x1dbe));newItem->key[key_buf_len-(0x1b6f+2951-0x26f5)]='\0';
-strncpy(newItem->value,value,value_buf_len-(0x15fa+62-0x1637));newItem->value[
-value_buf_len-(0x1643+1681-0x1cd3)]='\0';newItem->next=NULL;newItem->saveFlag=
-saveFlag;newItem->update_flag=(0xe5c+5876-0x254f);printf(
+(0x1daf+705-0x206f));newItem->key[key_buf_len-(0x4c2+109-0x52e)]='\0';strncpy(
+newItem->value,value,value_buf_len-(0x306+5736-0x196d));newItem->value[
+value_buf_len-(0xddd+299-0xf07)]='\0';newItem->next=NULL;newItem->saveFlag=
+saveFlag;newItem->update_flag=(0x1e82+595-0x20d4);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]={(0x797+2019-0xf7a)};printf(
+NV_MAX_ITEM_LEN]={(0x11eb+2510-0x1bb9)};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[(0x55c+170-0x606)]=='\n'||buf[(0x1edf+1859-0x2622)]
-==((char)(0x759+6410-0x2040)))continue;val=strchr(buf,((char)(0x1c21+58-0x1c1e))
-);if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0x7c7+1130-0xc31)]=='\n'||buf[(0x1580+3707-0x23fb)]
+==((char)(0x8b2+730-0xb69)))continue;val=strchr(buf,((char)(0xa1f+5807-0x2091)))
+;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)-(0x1315+1949-0x1ab1)]='\0';*
-val++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0x253+3001-0xe0b));
-}printf(
+,config->configFile,buf);continue;}buf[strlen(buf)-(0x10a0+5373-0x259c)]='\0';*
+val++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0x2210+1063-0x2636)
+);}printf(
 "\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x72\x65\x6c\x6f\x61\x64\x46\x61\x63\x74\x72\x6f\x79\x50\x61\x72\x61\x6d\x20\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65\x20\x65\x6e\x64\x3a\x25\x73\x21" "\n"
 ,config->configFile);fclose(fp);}return RESULT_SUCCESS;}void dump_list(T_NV_ITEM
 *list){if(list==NULL){printf(
@@ -108,11 +108,11 @@
 list->next;while(p!=NULL){printf(
 "\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x75\x6d\x70\x20\x6b\x65\x79\x3d\x25\x73\x2c\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x2c\x20\x70\x3d\x30\x78\x25\x78" "\n"
 ,p->key,p->value,((unsigned int)p));p=p->next;}}int delete_not_needed(T_NV_NODE*
-list){int index=(0xe24+3667-0x1c77);T_NV_ITEM*item=NULL;T_NV_ITEM head={
-(0xf42+5257-0x23cb)};T_NV_ITEM*prev=&head;printf(
+list){int index=(0xc20+2485-0x15d5);T_NV_ITEM*item=NULL;T_NV_ITEM head={
+(0x15ec+919-0x1983)};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=(0x179f+1947-0x1f3a);index<NV_HASH_LEN;index++){head.next=list->
-nvTable[index];prev=&head;for(item=prev->next;item;){if((0x1996+2542-0x2383)==
+);for(index=(0x11c6+4121-0x21df);index<NV_HASH_LEN;index++){head.next=list->
+nvTable[index];prev=&head;for(item=prev->next;item;){if((0xb56+5861-0x223a)==
 item->update_flag){prev=item;item=item->next;}else{printf(
 "\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x65\x6c\x65\x74\x65\x20\x6b\x65\x79\x3d\x25\x73\x2c\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x20" "\n"
 ,item->key,item->value);prev->next=item->next;free(item->key);free(item->value);
diff --git a/ap/app/zte_comm/phonebook/src/pb_db.c b/ap/app/zte_comm/phonebook/src/pb_db.c
index 0b2f155..7e3ac3f 100755
--- a/ap/app/zte_comm/phonebook/src/pb_db.c
+++ b/ap/app/zte_comm/phonebook/src/pb_db.c
@@ -1,8 +1,8 @@
 
 #include "pb_com.h"

 T_zPb_DbResult atPb_CreatDb(){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[
-ZPB_MAX_BYTES_DB]={(0xeca+4830-0x21a8)};UINT32 count=(0x176d+897-0x1aee);result=
-atPb_ExecDbSql(ZPB_CREATE_PBM_TABLE,NULL,NULL);if(ZPB_DB_OK!=result){slog(
+ZPB_MAX_BYTES_DB]={(0x17bf+3885-0x26ec)};UINT32 count=(0x677+5507-0x1bfa);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"
 ,result);return result;}result=atPb_ExecDbSql(
@@ -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,(0x5dc+3489-0x137d),sizeof(sql));snprintf(sql
-,sizeof(sql)-(0x113f+4819-0x2411),
+,result);return result;}memset(sql,(0x7c5+1762-0xea7),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0x29f+1571-0x8c1),
 "\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((0x1c9c+2292-0x2590)<count){memset(sql,(0x18e7+2743-0x239e),sizeof(sql
-));snprintf(sql,sizeof(sql)-(0x10fa+1353-0x1642),
+count);if((0x373+2622-0xdb1)<count){memset(sql,(0x4d8+6944-0x1ff8),sizeof(sql));
+snprintf(sql,sizeof(sql)-(0x674+7098-0x222d),
 "\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]={(0x3e0+5284-0x1884)};result=
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1015+4461-0x2182)};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 (0x7a7+7897-0x2680)

+#if (0x2197+446-0x2355)

 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)==(0x1548+1576-0x1b70)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZPB_TMP_PATH,F_OK)==(0x7ed+181-0x8a2)){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)!=(0xc65+5747-0x22d8)){slog(PB_PRINT,SLOG_ERR,
+remove(ZPB_TMP_PATH)!=(0xb37+5205-0x1f8c)){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)!=(0x1a36+2972-0x25d2)){slog(PB_PRINT,
+);}}if(rename(ZPB_SEC_PATH,ZPB_TMP_PATH)!=(0x1030+5248-0x24b0)){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[(0xcf6+4675-0x1f21)]={(0x3e3+7762-0x2235)};char cmd[
-(0x2041+783-0x22d0)]={(0x1a3+6854-0x1c69)};sc_cfg_get(
+);}{char rnum_buf[(0x1565+3485-0x22ea)]={(0xd7b+4880-0x208b)};char cmd[
+(0x14f3+1868-0x1bbf)]={(0xe43+2558-0x1841)};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
-)==(0xe3f+706-0x1101)){if(remove(ZPB_TMP_PATH)!=(0x73a+2278-0x1020)){slog(
+)==(0x1637+944-0x19e7)){if(remove(ZPB_TMP_PATH)!=(0x9eb+4596-0x1bdf)){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(0xf58+5844-0x262c);}return
-(0x442+897-0x7c2);}return(0x30d+6691-0x1d30);}T_zPb_DbResult atPb_ExecDbSql(
+(pSql,"\x3b")||strstr(pSql,"\x2d\x2d")){return(0x149d+3953-0x240e);}return
+(0x28b+6211-0x1acd);}return(0x6b7+2456-0x104f);}T_zPb_DbResult atPb_ExecDbSql(
 const char*pSql,sqlite3_callback callback,VOID*pFvarg){sqlite3*pDb=NULL;CHAR 
-dbErrMsg[(0x4f7+8293-0x24dc)]={(0xcff+6156-0x250b)};if(NULL==pSql){return 
+dbErrMsg[(0x11eb+3354-0x1e85)]={(0x22b+5720-0x1883)};if(NULL==pSql){return 
 ZPB_DB_ERROR_INVALIDPTR;}
 #ifdef WEBS_SECURITY

-if(check_sql_cmd(pSql)==(0x155c+1204-0x1a10)){slog(PB_PRINT,SLOG_ERR,
+if(check_sql_cmd(pSql)==(0xa76+5764-0x20fa)){slog(PB_PRINT,SLOG_ERR,
 "\x21\x21\x61\x74\x50\x62\x5f\x45\x78\x65\x63\x44\x62\x53\x71\x6c\x3a\x78\x73\x73\x20\x25\x73" "\n"
 ,pSql);return ZPB_DB_ERROR_INVALIDPTR;}
 #endif	

@@ -102,34 +102,33 @@
 );return ZPB_DB_ERROR_NOTOPENDB;}slog(PB_PRINT,SLOG_DEBUG,
 "\x70\x62\x3a\x61\x74\x50\x62\x5f\x45\x78\x65\x63\x44\x62\x53\x71\x6c\x3a\x25\x73" "\n"
 ,pSql);if(sqlite3_exec(pDb,pSql,callback,pFvarg,NULL)){strncpy(dbErrMsg,
-sqlite3_errmsg(pDb),sizeof(dbErrMsg)-(0x623+4419-0x1765));slog(PB_PRINT,SLOG_ERR
-,
+sqlite3_errmsg(pDb),sizeof(dbErrMsg)-(0x3d8+123-0x452));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=(0x1ca+8423-0x22b1);if((0x10e9+4699-0x2343)>line){slog
+char**lname){SINT32 index=(0x1ab8+2955-0x2643);if((0x698+5816-0x1d4f)>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-(0xba5+2707-0x1637);}index=atoi(zresult[(0x230+1070-0x65e)]);if(index>
+);return-(0xaec+2311-0x13f2);}index=atoi(zresult[(0xb28+6501-0x248d)]);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-(0x1670+4112-0x267f);}slog(PB_PRINT,SLOG_DEBUG,
+);return-(0x120f+3797-0x20e3);}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(0x773+7128-0x234b);}
+,index);g_zPb_ApIndex[index]=PBM_SUCCESS;return(0x1207+2834-0x1d19);}
 T_zPb_DbResult atPb_InitApIndex(){CHAR sql[ZPB_MAX_BYTES_DB]={
-(0x8e6+2542-0x12d4)};SINT32 i=(0xd42+5896-0x2449);g_zPb_ApIndex[
-(0x8d4+5528-0x1e6c)]=ZPB_AP_MAX_RECORD;for(i=(0x1035+2055-0x183b);i<=
-g_zPb_ApIndex[(0x1765+3815-0x264c)];i++){g_zPb_ApIndex[i]=PBM_ERROR_NOT_FOUND;}
-snprintf(sql,sizeof(sql),
+(0x2160+1016-0x2558)};SINT32 i=(0xec8+3074-0x1ac9);g_zPb_ApIndex[
+(0x7e0+2610-0x1212)]=ZPB_AP_MAX_RECORD;for(i=(0x4a0+2443-0xe2a);i<=g_zPb_ApIndex
+[(0x11a1+2820-0x1ca5)];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(-(0x1198+1386-0x1701)
-==access(path,(0x765+6983-0x22ac))){slog(PB_PRINT,SLOG_DEBUG,
+ZUFI_NULL);}INT zte_pbm_check_and_creat_dir(char*path){if(-(0xe16+5704-0x245d)==
+access(path,(0x5ac+8376-0x2664))){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(-(0x1b5d+1402-0x20d6)==mkdir(path,(0x14b6+2345-0x1be0))){slog(
+,ZPB_DB_DIR);if(-(0x1c30+1852-0x236b)==mkdir(path,(0x656+3578-0x1251))){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-(0x388+6014-0x1b05);}}return(0x35a+7639-0x2131);}UINT8 
+);return-(0xc46+633-0xebe);}}return(0xcca+563-0xefd);}UINT8 
 zte_pbm_check_web_pbm_dir(VOID){
 #ifdef _MBB_OS_UCLINUX

 (VOID)zte_pbm_check_and_creat_dir(
@@ -143,21 +142,21 @@
 "\x2f\x65\x74\x63\x5f\x72\x77\x2f\x63\x6f\x6e\x66\x69\x67");
 #endif

 return ZUFI_SUCC;}T_zPb_DbResult atPb_DelSimRecFromPbTable(SINT32 index){
-T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1377+3586-0x2179)
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x197f+3239-0x2626)
 };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]={(0x1926+2735-0x23d5)};if(NULL==
+result=ZPB_DB_ERROR;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1627+4219-0x26a2)};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[(0x196+4842-0x144e)]={(0xa3b+6238-0x2299)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,
-pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0x4d7+4497-0x1667))&&(pbPara->pbIndex
+pbMax[(0x43f+803-0x730)]={(0x94b+5655-0x1f62)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,
+pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0x598+2686-0x1015))&&(pbPara->pbIndex
 <=atoi(pbMax))){g_zPb_SimIndex[pbPara->pbIndex]=PBM_SUCCESS;}(VOID)sc_cfg_set(
 ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
 ZPB_NEW_ERROR);}slog(PB_PRINT,SLOG_DEBUG,
@@ -174,17 +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={(0xbf8+6024-0x2380)};if((0x70+9460-0x2563)>line){slog(PB_PRINT,SLOG_ERR,
+para={(0x904+4519-0x1aab)};if((0x1479+2419-0x1deb)>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[(0x4df+8434-0x25d1)]);para.
-pbLocation=atoi(zresult[(0x1d6+5432-0x170d)]);slog(PB_PRINT,SLOG_DEBUG,
+);return ZPB_DB_ERROR;}para.pbIndex=atoi(zresult[(0x11cb+4266-0x2275)]);para.
+pbLocation=atoi(zresult[(0xddb+3424-0x1b3a)]);slog(PB_PRINT,SLOG_DEBUG,
 "\x70\x62\x3a\x61\x74\x50\x62\x5f\x44\x62\x47\x65\x74\x50\x61\x72\x61\x6d\x43\x62\x3a\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
 ,para.pbIndex,para.pbLocation);memcpy(fvarg,&para,sizeof(para));return ZPB_DB_OK
 ;}T_zPb_DbResult atPb_GetIndexLocationById(T_zPb_Header*pbPara){CHAR sql[
-ZPB_MAX_BYTES_DB]={(0x2562+425-0x270b)};snprintf(sql,sizeof(sql)-
-(0x1006+384-0x1185),
+ZPB_MAX_BYTES_DB]={(0x2013+801-0x2334)};snprintf(sql,sizeof(sql)-
+(0x1944+3076-0x2547),
 "\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,(0xd43+5618-0x2335),sizeof(
+,ZPB_DB_PBM_TABLE,pbPara->pbId);memset(pbPara,(0x250+7824-0x20e0),sizeof(
 T_zPb_Header));return atPb_ExecDbSql(sql,atPb_DbGetParamCb,pbPara);}VOID 
 atPb_SqlNewOneRec(T_zPb_WebContact*pbmPara,CHAR*sql,int len){if(
 ZPB_LOCATION_USIM==pbmPara->pbLocation){snprintf(sql,len,"insert into %s (Pbm_index,Location,Number,Type,Name,Anr,Anr1,Email,Sne)\

@@ -196,8 +195,8 @@
 pbmPara->pbType,pbmPara->name,pbmPara->homeNumber,pbmPara->officeNumber,pbmPara
 ->email,pbmPara->sne,pbmPara->group);}}T_zPb_DbResult 
 atPb_WriteContactToPbmTable(T_zPb_WebContact*pPbRecord,BOOL pbNewFlag){
-T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x15c3+3895-0x24fa)
-};if(NULL==pPbRecord){slog(PB_PRINT,SLOG_ERR,
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0xc67+4861-0x1f64)}
+;if(NULL==pPbRecord){slog(PB_PRINT,SLOG_ERR,
 "\x70\x62\x3a\x61\x74\x50\x62\x5f\x57\x72\x69\x74\x65\x43\x6f\x6e\x74\x61\x63\x74\x54\x6f\x50\x62\x6d\x54\x61\x62\x6c\x65\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74"
 );return ZPB_DB_ERROR_INVALIDPTR;}slog(PB_PRINT,SLOG_DEBUG,
 "\x70\x62\x3a\x61\x74\x50\x62\x5f\x57\x72\x69\x74\x65\x43\x6f\x6e\x74\x61\x63\x74\x54\x6f\x50\x62\x6d\x54\x61\x62\x6c\x65\x3a\x69\x6e\x70\x75\x74\x20\x69\x6e\x64\x65\x78\x20\x69\x73\x20\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64" "\n"
@@ -207,75 +206,75 @@
 ZPB_LOCATION_USIM==pPbRecord->pbLocation){g_zPb_SimIndex[(pPbRecord->pbIndex)]=
 PBM_SUCCESS;}else if(ZPB_LOCATION_AP==pPbRecord->pbLocation){g_zPb_ApIndex[(
 pPbRecord->pbIndex)]=PBM_SUCCESS;}}return result;}SINT32 atPb_DbCountTableLineCb
-(VOID*fvarg,int line,char**zresult,char**lname){if((0x4b9+2232-0xd70)>line){slog
+(VOID*fvarg,int line,char**zresult,char**lname){if((0x6a+9234-0x247b)>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-(0xcb4+2701-0x1740);}*(int*)fvarg=atoi(zresult[(0x7b0+6355-0x2083)]);
-return(0x9da+4974-0x1d48);}T_zPb_DbResult atPb_SetSimCapacityTable(
+);return-(0x1a19+334-0x1b66);}*(int*)fvarg=atoi(zresult[(0xf9d+2448-0x192d)]);
+return(0x14f2+2451-0x1e85);}T_zPb_DbResult atPb_SetSimCapacityTable(
 T_zPb_UsimCapacity pbPara){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[
-ZPB_MAX_BYTES_DB]={(0x19a5+1759-0x2084)};UINT32 count=(0x3bb+2126-0xc09);
-snprintf(sql,sizeof(sql)-(0x200+4397-0x132c),
+ZPB_MAX_BYTES_DB]={(0x5f4+6581-0x1fa9)};UINT32 count=(0xbcb+6172-0x23e7);
+snprintf(sql,sizeof(sql)-(0x1a32+1835-0x215c),
 "\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((0x166+7558-0x1eec)<count){memset(sql,(0x719+7010-0x227b),sizeof(sql))
-;snprintf(sql,sizeof(sql)-(0xe63+193-0xf23),
+count);if((0x83b+5003-0x1bc6)<count){memset(sql,(0x78+2703-0xb07),sizeof(sql));
+snprintf(sql,sizeof(sql)-(0xc87+846-0xfd4),
 "\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,(0xf20+3115-0x1b4b),sizeof(sql));snprintf(sql,
-sizeof(sql)-(0x5c+5390-0x1569),"insert into %s (Sim_type,Max_record_number,Used_record_number,Max_number_len,Max_name_len,Max_anr_len,Max_anr1_len, \

+);return result;}}memset(sql,(0x126a+213-0x133f),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0x91f+1686-0xfb4),"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]={(0xad1+5593-0x20aa)
-};SINT32 count=(0x1818+2394-0x2172);T_zPb_ApCapacity pbPara={(0x8eb+3847-0x17f2)
-};snprintf(sql,sizeof(sql)-(0xc64+2284-0x154f),
+{T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0xdf4+4783-0x20a3)
+};SINT32 count=(0x1e4d+1940-0x25e1);T_zPb_ApCapacity pbPara={
+(0x1c3b+1800-0x2343)};snprintf(sql,sizeof(sql)-(0x14c0+3297-0x21a0),
 "\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((0x164+3657-0xfad)<count){memset(sql,
-(0x247c+62-0x24ba),sizeof(sql));snprintf(sql,sizeof(sql)-(0xa41+6680-0x2458),
+atPb_DbCountTableLineCb,&count);if((0x18df+221-0x19bc)<count){memset(sql,
+(0x1c+6659-0x1a1f),sizeof(sql));snprintf(sql,sizeof(sql)-(0x10e0+2762-0x1ba9),
 "\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,(0x1af0+1165-0x1f7d),sizeof(sql));snprintf(sql,
-sizeof(sql)-(0x66d+3545-0x1445),
+);return result;}}memset(sql,(0xa61+6377-0x234a),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0x4ad+6230-0x1d02),
 "\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,(0x1fd8+1311-0x24f7),
-sizeof(sql));snprintf(sql,sizeof(sql)-(0x949+1945-0x10e1),
+,pbPara.maxRecordNum,pbPara.usedRecordNum);memset(sql,(0x1892+418-0x1a34),sizeof
+(sql));snprintf(sql,sizeof(sql)-(0x911+6386-0x2202),
 "\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=
-(0x27b+4851-0x156e);if((0xb62+2573-0x156e)>line){return ZPB_DB_ERROR;}pbIndex=(
+(0x523+5894-0x1c29);if((0xc05+4139-0x1c2f)>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+(0x5c3+4970-0x192c)]=atoi(zresult[(0xdbf+6020-0x2543)]);
+,i);pbIndex->apIndex[i+(0x63f+7847-0x24e5)]=atoi(zresult[(0x5e5+4079-0x15d4)]);
 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+(0xea9+6225-0x26f9)]);pbIndex->count=i+(0x9eb+1871-0x1139);
+,pbIndex->apIndex[i+(0x1624+1631-0x1c82)]);pbIndex->count=i+(0x23c+2043-0xa36);
 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]
-={(0xf51+5958-0x2697)};SINT32 countByGroup=(0x9bf+6089-0x2188);CHAR pbGroup[
-ZPB_PARAM_SIZE20]={(0xc9d+2831-0x17ac)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
-pbGroup));snprintf(sql,sizeof(sql)-(0x1278+1123-0x16da),
+={(0x5f+1373-0x5bc)};SINT32 countByGroup=(0xebf+267-0xfca);CHAR pbGroup[
+ZPB_PARAM_SIZE20]={(0x837+1702-0xedd)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
+pbGroup));snprintf(sql,sizeof(sql)-(0x1090+3204-0x1d13),
 "\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,(0x13b8+2603-0x1de3),sizeof(
-sql));snprintf(sql,sizeof(sql)-(0x131a+1052-0x1735),
+atPb_DbCountTableLineCb,&countByGroup);memset(sql,(0x1d41+1412-0x22c5),sizeof(
+sql));snprintf(sql,sizeof(sql)-(0xbc5+84-0xc18),
 "\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,
-(0x1d91+797-0x20ae),sizeof(sql));snprintf(sql,sizeof(sql)-(0x906+733-0xbe2),
+(0x7e8+6380-0x20d4),sizeof(sql));snprintf(sql,sizeof(sql)-(0x189d+1369-0x1df5),
 "\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x20\x61\x6e\x64\x20\x28\x50\x62\x6d\x5f\x67\x72\x6f\x75\x70\x3d" "\"" "\x25\x73" "\"" "\x29"
 ,ZPB_DB_PBM_TABLE,ZPB_LOCATION_AP,pbGroup);if(ZPB_DB_OK==atPb_ExecDbSql(sql,NULL
 ,NULL)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}slog(PB_PRINT,
@@ -283,7 +282,7 @@
 "\x70\x62\x3a\x70\x62\x6d\x3a\x65\x78\x65\x63\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x72\x65\x73\x75\x6c\x74\x20\x25\x64" "\n"
 ,ZPB_DB_PBM_TABLE,result);}else{return ZPB_DB_ERROR;}(VOID)sc_cfg_set(
 ZPB_NV_GROUP,"");return result;}VOID atPb_GetLocationIndexForDel(T_zPb_DelInfo*
-recData,SINT32 delTime){T_zPb_Header pbHeader={(0x16cd+2322-0x1fdf)};if(NULL==
+recData,SINT32 delTime){T_zPb_Header pbHeader={(0x50d+1274-0xa07)};if(NULL==
 recData){slog(PB_PRINT,SLOG_ERR,
 "\x70\x62\x3a\x61\x74\x50\x62\x5f\x47\x65\x74\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x49\x6e\x64\x65\x78\x46\x6f\x72\x44\x65\x6c\x2d\x2d\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74" "\n"
 );return;}pbHeader.pbId=recData->delId[delTime];if(ZPB_DB_OK!=
@@ -294,30 +293,30 @@
 "\x70\x62\x3a\x70\x62\x6d\x3a\x64\x65\x6c\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x2c\x64\x65\x6c\x5f\x70\x62\x6d\x5f\x74\x69\x6d\x65\x3d\x25\x64"
 ,recData->delIndex[delTime],recData->delLocation,delTime);}T_zPb_DbResult 
 atPb_DelARecFromPbmTable(T_zPb_DelInfo*pbPara,SINT32 delTime){T_zPb_DbResult 
-result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x200+1070-0x62e)};if(NULL==pbPara
-){slog(PB_PRINT,SLOG_ERR,
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1603+2123-0x1e4e)};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)-(0x1e8a+228-0x1f6d),
+,delTime,pbPara->delId[delTime]);snprintf(sql,sizeof(sql)-(0xa9d+31-0xabb),
 "\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=(0x576+8564-0x26e9);for(i=(0x1e1a+1870-0x2567);(i<=g_zPb_SimIndex[
-(0x150d+2515-0x1ee0)])&&(i<(ZPB_SIM_MAX_RECORD+(0x2339+925-0x26d5)));i++){
+SINT32 i=(0xff+4212-0x1172);for(i=(0x1127+5041-0x24d7);(i<=g_zPb_SimIndex[
+(0x1634+3491-0x23d7)])&&(i<(ZPB_SIM_MAX_RECORD+(0x16bc+555-0x18e6)));i++){
 g_zPb_SimIndex[i]=PBM_ERROR_NOT_FOUND;}}VOID atPb_ClearApPbmIndexArray(VOID){
-SINT32 i=(0xf2b+1030-0x1330);for(i=(0x11da+1612-0x1825);(i<=g_zPb_ApIndex[
-(0x952+5274-0x1dec)])&&(i<(ZPB_AP_MAX_RECORD+(0xcd9+4025-0x1c91)));i++){
+SINT32 i=(0x66b+2883-0x11ad);for(i=(0x155a+956-0x1915);(i<=g_zPb_ApIndex[
+(0x254+4705-0x14b5)])&&(i<(ZPB_AP_MAX_RECORD+(0x4ab+8038-0x2410)));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]={(0x9b+219-0x176)};if(NULL==pbPara){slog(
-PB_PRINT,SLOG_ERR,
+ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x602+6240-0x1e62)};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)-(0xb09+822-0xe3e),
+);return ZPB_DB_ERROR_INVALIDPTR;}snprintf(sql,sizeof(sql)-(0x41c+1190-0x8c1),
 "\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 2701faa..9442602 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={(0x15e9+684-0x1895)};sem_t g_Pb_sem_id={
-(0x130a+2734-0x1db8)};int g_zPb_MsqId=-(0x158+8956-0x2453);int g_zPb_LocalMsqId=
--(0x5d2+7864-0x2489);VOID atWeb_AddOneContact(UINT8*pDatabuf){T_zPb_WebContact*
+pDatabuf);T_zPb_optRsp g_PbOptRsp={(0xc13+6886-0x26f9)};sem_t g_Pb_sem_id={
+(0x1aa5+97-0x1b06)};int g_zPb_MsqId=-(0xde9+4652-0x2014);int g_zPb_LocalMsqId=-
+(0x3e8+8013-0x2334);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,21 @@
 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(((0x4a4+725-0x778)==ptPara->result)&&(
-(0x1ef+7342-0x1e9c)==ptPara->opertype)){CHAR needPb[(0x18a9+2785-0x2358)]={
-(0x1806+830-0x1b44)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
-(0x54a+6175-0x1d69)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
-MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0x19d7+2110-0x2215),NULL,
-(0x134d+4345-0x2446));}}}VOID zPb_RecvZuslotInd(UINT8*pDatabuf){T_zAt_ZuslotRes*
+,ptPara->result,ptPara->opertype);if(((0xd24+2346-0x164d)==ptPara->result)&&(
+(0x48b+6771-0x1efd)==ptPara->opertype)){CHAR needPb[(0x6ef+2128-0xf0d)]={
+(0x50a+4142-0x1538)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
+(0x2d6+545-0x4f7)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
+MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0x608+7221-0x223d),NULL,
+(0x151d+1227-0x19e8));}}}VOID zPb_RecvZuslotInd(UINT8*pDatabuf){T_zAt_ZuslotRes*
 ptPara=ZUFI_NULL;if(pDatabuf==NULL){return;}ptPara=(T_zAt_ZuslotRes*)(pDatabuf);
 printf(
 "\x7a\x50\x62\x5f\x52\x65\x63\x76\x5a\x70\x62\x69\x63\x49\x6e\x64\x20\x70\x61\x72\x61\x2c\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2c\x20\x74\x79\x70\x65\x3a\x25\x64" "\n"
-,ptPara->slot,ptPara->slot_state);if(ptPara->slot_state==(0x26e3+14-0x26f1)){
-CHAR needPb[(0x673+5336-0x1b19)]={(0xb2f+5426-0x2061)};sc_cfg_get(
-NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x11c+1010-0x50e)!=strcmp(needPb,
+,ptPara->slot,ptPara->slot_state);if(ptPara->slot_state==(0x141f+4389-0x2544)){
+CHAR needPb[(0x520+322-0x630)]={(0xabb+6947-0x25de)};sc_cfg_get(
+NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x4d4+5028-0x1878)!=strcmp(needPb,
 "\x6e\x6f")){atPb_CfgPbNvInit();atPb_DelAllRecsSimDb();}}}VOID zPb_RecvPbInitRst
-(UINT8*pDatabuf){int pbReadRet=-(0x34f+4334-0x143c);memcpy(&g_PbOptRsp,pDatabuf,
-sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-(0x482+1460-0xa35)){atPb_IintPbErr(
+(UINT8*pDatabuf){int pbReadRet=-(0x120b+4522-0x23b4);memcpy(&g_PbOptRsp,pDatabuf
+,sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-(0x98a+28-0x9a5)){atPb_IintPbErr(
 NULL);return;}pbReadRet=atPb_SendScpbrSet_repeat(g_Pb_sem_id);printf(
 "\x7a\x50\x62\x5f\x52\x65\x63\x76\x50\x62\x49\x6e\x69\x74\x52\x73\x74\x20\x72\x65\x73\x75\x6c\x74\x3a\x25\x64" "\n"
 ,pbReadRet);sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);}void zPbLocalHandleWebMsg(
@@ -65,17 +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,(0x411+9-0x41a));break;default:
-break;}}UINT8 zPbMsgCreat(VOID){g_zPb_MsqId=msgget(MODULE_ID_PB,IPC_CREAT|
-(0x1c2+7335-0x1ce9));if(g_zPb_MsqId==-(0x1c35+76-0x1c80)){return ZUFI_FAIL;}
-g_zPb_LocalMsqId=msgget(MODULE_ID_PB_LOCAL,IPC_CREAT|(0x220+5561-0x1659));if(
-g_zPb_LocalMsqId==-(0xbb1+5615-0x219f)){return ZUFI_FAIL;}sem_init(&g_Pb_sem_id,
-(0x48f+1019-0x88a),(0x315+1540-0x919));return ZUFI_SUCC;}void detect_modem_state
-(void){CHAR state[(0x1561+4256-0x25cf)]={(0x1ffb+1060-0x241f)};sc_cfg_get(
+usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,(0xae3+3648-0x1923));break;
+default:break;}}UINT8 zPbMsgCreat(VOID){g_zPb_MsqId=msgget(MODULE_ID_PB,
+IPC_CREAT|(0x4a4+8140-0x22f0));if(g_zPb_MsqId==-(0x1ced+284-0x1e08)){return 
+ZUFI_FAIL;}g_zPb_LocalMsqId=msgget(MODULE_ID_PB_LOCAL,IPC_CREAT|
+(0xb03+2724-0x1427));if(g_zPb_LocalMsqId==-(0xe98+6222-0x26e5)){return ZUFI_FAIL
+;}sem_init(&g_Pb_sem_id,(0x40d+6402-0x1d0f),(0x569+2863-0x1098));return 
+ZUFI_SUCC;}void detect_modem_state(void){CHAR state[(0x12dd+3914-0x21f5)]={
+(0x4d9+1720-0xb91)};sc_cfg_get(
 "\x6d\x6f\x64\x65\x6d\x5f\x6d\x61\x69\x6e\x5f\x73\x74\x61\x74\x65",state,sizeof(
-state));if((0xe9c+473-0x1075)==strcmp(state,
+state));if((0x17f3+2474-0x219d)==strcmp(state,
 "\x6d\x6f\x64\x65\x6d\x5f\x73\x69\x6d\x5f\x75\x6e\x64\x65\x74\x65\x63\x74\x65\x64"
-)||(0xe58+1658-0x14d2)==strcmp(state,
+)||(0xe0f+3886-0x1d3d)==strcmp(state,
 "\x6d\x6f\x64\x65\x6d\x5f\x73\x69\x6d\x5f\x64\x65\x73\x74\x72\x6f\x79")){
 sc_cfg_set("\x70\x62\x6d\x5f\x69\x6e\x69\x74\x5f\x66\x6c\x61\x67","\x30");}}void
  zPbLocalHandleAtctlMsg(MSG_BUF*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
@@ -94,28 +95,28 @@
 MSG_CMD_ZUSLOT_IND:zPb_RecvZuslotInd(ptMsgBuf->aucDataBuf);break;case 
 MSG_CMD_PBINIT_RSP:ipc_send_message(MODULE_ID_PB,MODULE_ID_PB_LOCAL,ptMsgBuf->
 usMsgCmd,ptMsgBuf->usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,
-(0xe97+4980-0x220b));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR 
-clearPb[(0x19b7+1799-0x208c)]={(0x279+1090-0x6bb)};sc_cfg_get(
+(0x1b1c+2464-0x24bc));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR 
+clearPb[(0x21a0+988-0x254a)]={(0x111d+2882-0x1c5f)};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")==(0x1cf+6222-0x1a1d)){atPb_DropDb();
-}ipc_send_message(MODULE_ID_PB,MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,
-(0xb0c+6681-0x2525),NULL,(0x1dbf+1558-0x23d5));}void zPbHandleMainCtrlMsg(
+,clearPb);if(strcmp(clearPb,"\x79\x65\x73")==(0x235+3478-0xfcb)){atPb_DropDb();}
+ipc_send_message(MODULE_ID_PB,MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,
+(0x103f+2866-0x1b71),NULL,(0x175a+885-0x1acf));}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=(0x47+4261-0x10ec);MSG_BUF stMsg={
-(0x2b7+6997-0x1e0c)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
+pb_msg_thread_proc(void*arg){int iRet=(0x17ff+3491-0x25a2);MSG_BUF stMsg={
+(0x1105+5001-0x248e)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
 int*)arg);prctl(PR_SET_NAME,"\x70\x62\x5f\x6c\x6f\x63\x61\x6c",
-(0x24f+5969-0x19a0),(0xa80+2248-0x1348),(0x738+6688-0x2158));while(
-(0x1e42+782-0x214f)){iRet=(0x100c+3295-0x1ceb);memset(&stMsg,(0xb1c+4684-0x1d68)
-,sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x12a+6611-0x1afd),
-(0x170a+3824-0x25fa));printf(
+(0xf7f+4472-0x20f7),(0x35b+6231-0x1bb2),(0x23a+9284-0x267e));while(
+(0xc4c+2934-0x17c1)){iRet=(0x1bdd+17-0x1bee);memset(&stMsg,(0xff9+649-0x1282),
+sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x7b+2412-0x9e7),
+(0x3b5+4689-0x1606));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>=(0x263+6634-0x1c4d)){
+,stMsg.src_id,stMsg.usMsgCmd,MODULE_ID_AT_CTL);if(iRet>=(0x2041+658-0x22d3)){
 switch(stMsg.src_id){case MODULE_ID_WEB_CGI:{zPbHandleWebMsg(&stMsg);break;}case
  MODULE_ID_AT_CTL:{zPbHandleAtctlMsg(&stMsg);break;}case MODULE_ID_PB:{
 zPbLocalHandleWebMsg(&stMsg);zPbLocalHandleAtctlMsg(&stMsg);break;}case 
@@ -123,29 +124,29 @@
 printf(
 "\x5b\x70\x62\x5d\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x2c\x20\x65\x72\x72\x6d\x73\x67\x20\x3d\x20\x25\x73" "\n"
 ,errno,strerror(errno));}}}int phonebook_main(int argc,char*argv[]){pthread_t 
-recv_thread_tid=(0x2296+995-0x2679);MSG_BUF msgBuf={(0x6d+2491-0xa28)};CHAR 
-needPb[(0x22c8+303-0x23c5)]={(0xcb7+5365-0x21ac)};prctl(PR_SET_NAME,
-"\x70\x62\x5f\x6d\x61\x69\x6e",(0x690+6939-0x21ab),(0x1f03+587-0x214e),
-(0xfb5+2067-0x17c8));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof
-(needPb));if((0x1915+1186-0x1db7)!=strcmp(needPb,"\x6e\x6f")){
+recv_thread_tid=(0xc24+2678-0x169a);MSG_BUF msgBuf={(0x184+7485-0x1ec1)};CHAR 
+needPb[(0xadc+4263-0x1b51)]={(0x1f6+3015-0xdbd)};prctl(PR_SET_NAME,
+"\x70\x62\x5f\x6d\x61\x69\x6e",(0xf75+359-0x10dc),(0xe42+4078-0x1e30),
+(0x9c4+1634-0x1026));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof
+(needPb));if((0x23ed+769-0x26ee)!=strcmp(needPb,"\x6e\x6f")){
 #ifdef WEBS_SECURITY

-if(access(ZPB_DB_PATH,F_OK)!=(0xb3c+2656-0x159c)){if(access(ZPB_TMP_PATH,F_OK)==
-(0x1b08+504-0x1d00)){if(remove(ZPB_SEC_PATH)!=(0x5d5+6721-0x2016)){slog(PB_PRINT
-,SLOG_ERR,
+if(access(ZPB_DB_PATH,F_OK)!=(0x1146+681-0x13ef)){if(access(ZPB_TMP_PATH,F_OK)==
+(0x913+1803-0x101e)){if(remove(ZPB_SEC_PATH)!=(0x15ec+2408-0x1f54)){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)!=(0x1448+151-0x14df)){slog(PB_PRINT,
+);}if(rename(ZPB_TMP_PATH,ZPB_SEC_PATH)!=(0x16f6+3785-0x25bf)){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)==(0x10d9+3997-0x2076)){char rnum_buf[
-(0x101+5189-0x152e)]={(0xaf5+2586-0x150f)};char cmd[(0xb77+1662-0x1175)]={
-(0x262c+212-0x2700)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZPB_SEC_PATH,F_OK)==(0x376+3721-0x11ff)){char rnum_buf[
+(0x12e3+3012-0x1e8f)]={(0x8cd+4648-0x1af5)};char cmd[(0xb36+3206-0x173c)]={
+(0x3d0+7585-0x2171)};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-(0xd48+426-0xef1);}printf(
+zPbMsgCreat();atPb_Init();}else{return-(0x50+284-0x16b);}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))==-(0x490+1868-0xbdb)){assert((0x219+2400-0xb79));}
-detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x61f+7640-0x23f7);
-}
+(&g_zPb_LocalMsqId))==-(0x4b5+5588-0x1a88)){assert((0x22c+8869-0x24d1));}
+detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x107a+1824-0x179a)
+;}
diff --git a/ap/app/zte_comm/phonebook/src/pb_proc.c b/ap/app/zte_comm/phonebook/src/pb_proc.c
index a270c15..45e21df 100755
--- a/ap/app/zte_comm/phonebook/src/pb_proc.c
+++ b/ap/app/zte_comm/phonebook/src/pb_proc.c
@@ -3,186 +3,185 @@
 #include <semaphore.h>

 #include <limits.h>

 #include "pb_com.h"

-#define ZPB_UCS2                    (0x1c90+439-0x1e46)

-#define ZPB_UCS2_PREFIX             (0x1327+1110-0x16fd)

-#define ZPB_UCS2_PREFIX_LEN         (0x2bb+1289-0x7c2)

-#define ZPB_NON_GSM                     (0x123a+3252-0x1ece)

-#define ZPB_GSM_CHARACTER_SET_SIZE      (0x434+1755-0xa8f)

-#define ZPB_INIT_LOAD_RECORD_NUM    (0x935+6533-0x2288)

+#define ZPB_UCS2                    (0x6d2+7518-0x242f)

+#define ZPB_UCS2_PREFIX             (0x1803+1618-0x1dd5)

+#define ZPB_UCS2_PREFIX_LEN         (0xca2+5315-0x2163)

+#define ZPB_NON_GSM                     (0x7f2+4457-0x193b)

+#define ZPB_GSM_CHARACTER_SET_SIZE      (0x1e79+2035-0x25ec)

+#define ZPB_INIT_LOAD_RECORD_NUM    (0x1b83+1510-0x2137)

 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=
-(0x19e6+1328-0x1f16);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+
-(0xb05+6762-0x256e)]={(0x1294+5039-0x2643)};SINT32 g_zPb_ApIndex[
-ZPB_AP_MAX_RECORD+(0x8a4+5642-0x1ead)]={(0x12ff+3375-0x202e)};
-T_zPb_DelStatusMultiOrAll g_zPb_DelStatusUsim={(0x163f+1959-0x1de6)};const 
-unsigned char G_ZPB_NEWUCS2TOGSM[ZPB_GSM_CHARACTER_SET_SIZE*(0x8c3+5632-0x1ec1)]
-={ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0xd12+5873-0x23f9),ZPB_NON_GSM,
-ZPB_NON_GSM,(0xba1+3760-0x1a44),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+(0x498+1087-0x8d7);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+(0x1787+3536-0x2556)
+]={(0x173+4598-0x1369)};SINT32 g_zPb_ApIndex[ZPB_AP_MAX_RECORD+
+(0x127+4523-0x12d1)]={(0x11+1299-0x524)};T_zPb_DelStatusMultiOrAll 
+g_zPb_DelStatusUsim={(0x4b4+7925-0x23a9)};const unsigned char G_ZPB_NEWUCS2TOGSM
+[ZPB_GSM_CHARACTER_SET_SIZE*(0xce0+5699-0x2321)]={ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,(0x1db3+185-0x1e62),ZPB_NON_GSM,ZPB_NON_GSM,
+(0x7a9+5222-0x1c02),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
 ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
 ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,(0x4cc+4131-0x14cf),(0x1b3+9050-0x24ec),
-(0x1d0+2912-0xd0e),(0x16b6+3694-0x2501),(0x4a4+5735-0x1b09),(0x1106+4792-0x2399)
-,(0x84b+253-0x922),(0x678+1611-0xc9c),(0x356+9109-0x26c3),(0xc84+3577-0x1a54),
-(0x1d45+1955-0x24be),(0x1dc5+1-0x1d9b),(0x2609+150-0x2673),(0x8b2+6220-0x20d1),
-(0x1af0+2713-0x255b),(0x11ff+4357-0x22d5),(0xd71+2093-0x156e),(0x8a2+1809-0xf82)
-,(0x1452+2089-0x1c49),(0x1375+816-0x1672),(0x61f+1943-0xd82),
-(0x20f1+1069-0x24e9),(0x13a7+1358-0x18bf),(0x490+6673-0x1e6a),
-(0x1ba0+1943-0x22ff),(0x10cc+2579-0x1aa6),(0x25b7+217-0x2656),
-(0x249c+260-0x2565),(0x1ed7+2137-0x26f4),(0xb68+953-0xee4),(0x870+258-0x934),
-(0xea9+6046-0x2608),(0x188d+3492-0x2631),(0x5ff+4937-0x1907),(0x91b+1319-0xe00),
-(0x2a0+9195-0x2648),(0x16df+1673-0x1d24),(0x2b1+8446-0x236a),(0x4d7+7804-0x230d)
-,(0x5df+7055-0x2127),(0x10c3+3408-0x1dcb),(0x415+7053-0x1f59),(0xa4f+270-0xb13),
-(0x999+2076-0x116a),(0x673+6316-0x1ed3),(0x1798+446-0x1909),(0x18c+8495-0x226d),
-(0xa5c+2263-0x12e4),(0xff+7764-0x1f03),(0x357+144-0x396),(0x83+7062-0x1bc7),
-(0x4c4+7030-0x1fe7),(0x320+5275-0x1767),(0x7ef+7880-0x2662),(0xc15+5743-0x222e),
-(0xf03+2740-0x1960),(0x81a+935-0xb69),(0x369+5982-0x1a6e),(0x882+1470-0xde6),
-(0x1248+4949-0x2542),ZPB_NON_GSM,(0x134+7745-0x1f18),ZPB_NON_GSM,
-(0x15fc+3409-0x233c),ZPB_NON_GSM,(0xa6b+1956-0x11ae),(0x850+3298-0x14d0),
-(0xc2d+6378-0x24b4),(0x1106+1613-0x16ef),(0xbf1+6659-0x258f),(0xadf+5752-0x20f1)
-,(0xbb4+3828-0x1a41),(0x158+3389-0xe2d),(0xf19+224-0xf90),(0x2bb+285-0x36e),
-(0xc3+1794-0x75a),(0x10b6+3301-0x1d2f),(0x53d+1923-0xc53),(0x6d8+211-0x73d),
-(0x13c6+4734-0x25d5),(0x1314+4429-0x23f1),(0x657+2367-0xf25),(0x900+6193-0x20bf)
-,(0xafd+4586-0x1c74),(0xf76+4372-0x2016),(0x1416+1183-0x1840),
-(0x24e5+235-0x255a),(0x1d5+113-0x1cf),(0x2f9+8772-0x24c5),(0xbcb+1758-0x1230),
-(0x2bd+1448-0x7eb),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,(0x3d1+1016-0x7a9),(0x600+4902-0x1905),(0x894+490-0xa5c),
+(0x10af+3233-0x1d2d),(0x55b+4049-0x152a),(0x805+3233-0x1481),(0xc0b+3338-0x18ef)
+,(0x1dd1+568-0x1fe2),(0x2b9+3675-0x10ec),(0x889+6872-0x2338),(0x720+7422-0x23f4)
+,(0xf6c+1881-0x169a),(0x78f+7564-0x24ef),(0x1108+5321-0x25a4),
+(0xb7b+1570-0x116f),(0x7f+6189-0x187d),(0x413+5910-0x1af9),(0x582+1759-0xc30),
+(0x830+5852-0x1eda),(0x1693+512-0x1860),(0x1a47+2145-0x2274),(0xb79+3302-0x182a)
+,(0x166c+1438-0x1bd4),(0x604+268-0x6d9),(0x1880+2544-0x2238),
+(0x1067+2075-0x1849),(0x1a45+3097-0x2624),(0x9f8+1506-0xf9f),(0xbc+1890-0x7e2),
+(0x11c4+5068-0x2553),(0xa51+1691-0x10ae),(0x21f+9271-0x2617),(0x546+4155-0x1581)
+,(0x11ab+3967-0x20e9),(0xcec+5865-0x2393),(0x6af+3467-0x13f7),
+(0x1152+3553-0x1eef),(0xc0d+6296-0x2460),(0xae3+3938-0x19ff),(0x24af+202-0x2532)
+,(0x1a26+2546-0x23d0),(0x421+2354-0xd0a),(0xdcb+2747-0x183c),(0x1f3+5841-0x1879)
+,(0xd04+2634-0x1702),(0x1167+4093-0x2117),(0x2a0+7564-0x1fde),(0xdd+3745-0xf2f),
+(0x14bc+761-0x1765),(0x46f+2158-0xc8c),(0x118d+435-0x12ee),(0x2d1+8743-0x24a5),
+(0x161c+2187-0x1e53),(0xca0+1627-0x12a6),(0x613+6250-0x1e27),(0x8cc+2094-0x10a3)
+,(0x5ac+5390-0x1a62),(0x1087+2218-0x18d8),(0x17b+6871-0x1bf8),
+(0x1367+1182-0x17aa),ZPB_NON_GSM,(0x4c7+3102-0x1088),ZPB_NON_GSM,
+(0x17bc+3457-0x252c),ZPB_NON_GSM,(0x886+2445-0x11b2),(0xe1+2247-0x946),
+(0x100d+2401-0x190b),(0xe67+3162-0x1a5d),(0x326+3119-0xef0),(0x75f+8085-0x268e),
+(0x3a9+6234-0x1b9c),(0xb7+6692-0x1a73),(0x11f+6265-0x192f),(0x449+5681-0x1a10),
+(0x3d7+6864-0x1e3c),(0xe07+738-0x107d),(0xb38+3688-0x1933),(0x7a4+4711-0x199d),
+(0xfba+3182-0x1bb9),(0x1684+3638-0x244a),(0xd9d+4093-0x1d29),
+(0x17ba+2784-0x2228),(0x28b+922-0x5b2),(0xb02+6345-0x2357),(0x9e5+670-0xc0e),
+(0x98b+3273-0x15de),(0x907+2245-0x1155),(0xd71+2691-0x177c),(0x334+5090-0x169d),
+(0x5e1+2809-0x1060),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
 ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
 ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
 ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
 ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
 ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0xd06+4215-0x1d3d),ZPB_NON_GSM,
-(0x1b1+4193-0x1211),(0x983+6051-0x2102),(0x1357+2937-0x1ecd),ZPB_NON_GSM,
-(0x5f1+3513-0x134b),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0x1180+1886-0x189e),ZPB_NON_GSM,
+(0x7b1+4203-0x181b),(0x16c3+2810-0x2199),(0x42a+7733-0x225c),ZPB_NON_GSM,
+(0x3d1+4382-0x1490),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
 ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
 ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
 ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-(0x1c19+395-0x1d44),(0xc06+3625-0x19ee),(0x335+4384-0x1414),(0x7c8+6392-0x207f),
-(0x3d1+587-0x5db),(0x1cf9+1242-0x2178),(0xd60+106-0xdbc),(0x1db2+2237-0x2653),
-(0x264+5963-0x19a6),(0x19fb+2642-0x2408),(0x1a5d+3-0x1a41),(0x22d+6984-0x1d30),
-(0x17cd+3273-0x2451),(0x9c2+6067-0x212c),(0x717+8229-0x26f3),
-(0x1412+4445-0x2526),(0x53c+1416-0xa7b),ZPB_NON_GSM,(0x198+1177-0x5d4),
-(0x665+3581-0x1413),(0x1308+3518-0x2077),(0xf39+4167-0x1f31),(0x5dd+7230-0x21cc)
-,(0x499+684-0x6e9),ZPB_NON_GSM,(0x1cfb+1120-0x2150),(0xb89+1245-0x1011),
-(0x116b+93-0x1173),(0x4ca+235-0x560),(0x12d+598-0x325),(0x811+2362-0x10f2),
-ZPB_NON_GSM,(0x703+5706-0x1d2f),(0x19f3+3351-0x268b),(0x853+4911-0x1b21),
-(0x1680+606-0x187d),(0x130+7347-0x1d82),(0x743+4561-0x1899),(0x1c16+441-0x1dc0),
-(0x6f9+1423-0xc6b),(0xf04+4792-0x21b3),(0x42a+690-0x6d8),(0x545+1772-0xc2c),
-(0x15b0+3196-0x21c7),(0x1b8+5221-0x15b8),(0xb47+3648-0x1980),(0x4f7+2377-0xdd7),
-(0x247+8561-0x234f),(0x527+3416-0x1216),ZPB_NON_GSM,(0x6f7+5410-0x1b9c),
-(0x1ab4+1722-0x2166),(0x1689+3799-0x24f1),(0x112b+3812-0x1fa0),
-(0x2e9+5336-0x1752),(0x1ea6+310-0x1f60),ZPB_NON_GSM,(0x969+1234-0xe2f),
-(0x9b6+1192-0xe58),(0x173+3554-0xee0),(0x49f+4330-0x1514),(0xec6+5774-0x24d6),
-(0x1036+110-0x102b),ZPB_NON_GSM,(0x83a+2208-0x1061)};VOID atPb_Init(VOID){UINT32
- pbCount=(0xe06+3224-0x1a9e);g_zPb_SimIndex[(0x1e55+601-0x20ae)]=
-(0x1ce0+262-0x1de6);sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);(VOID)sc_cfg_set(
-ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(pbCount=(0x1d4a+1770-0x2433);pbCount<=
-ZPB_SIM_MAX_RECORD;pbCount++){g_zPb_SimIndex[pbCount]=PBM_ERROR_NOT_FOUND;}if(
-ZPB_DB_OK!=atPb_CreatDb()){slog(PB_PRINT,SLOG_ERR,
-"pb:atPb_Init:create pbm table failed\n");return;}if(ZPB_DB_OK!=atPb_InitApIndex
-()){slog(PB_PRINT,SLOG_ERR,
+(0x355+8559-0x2464),(0x26b+2650-0xc84),(0xacd+1544-0x1094),(0x922+3466-0x166b),
+(0xe2+7817-0x1f2a),(0x1a3c+971-0x1dac),(0x1f8+6409-0x1af3),(0x17aa+2435-0x2111),
+(0x65+3185-0xccd),(0x181b+1330-0x1d08),(0x1965+595-0x1b99),(0x504+1710-0xb6d),
+(0x5dd+8229-0x25bd),(0x1dc+7630-0x1f61),(0x6d1+995-0xa6b),(0xc13+2606-0x15f8),
+(0x136a+3362-0x2043),ZPB_NON_GSM,(0xe0f+4994-0x2134),(0xfec+4372-0x20b1),
+(0x232+8678-0x23c9),(0x16ad+1918-0x1ddc),(0x8b5+1181-0xd03),(0x3ab+3299-0x1032),
+ZPB_NON_GSM,(0x715+4256-0x17aa),(0x833+6752-0x223e),(0xaa7+805-0xd77),
+(0x19cb+2460-0x2312),(0x775+1463-0xcce),(0x1c20+1010-0x1fb9),ZPB_NON_GSM,
+(0x42b+8093-0x23aa),(0x1358+255-0x13d8),(0x476+4654-0x1643),(0x192c+3451-0x2646)
+,(0x321+942-0x66e),(0x7e0+125-0x7e2),(0x180a+3847-0x2702),(0x5b3+6033-0x1d27),
+(0x1472+148-0x14fd),(0x1a13+1411-0x1f92),(0x16fc+2696-0x217f),
+(0x2626+297-0x26ea),(0xceb+2837-0x179b),(0x5b+2239-0x913),(0x7f+3452-0xd92),
+(0xcf5+4927-0x1fcb),(0x1319+825-0x15e9),ZPB_NON_GSM,(0x8cb+3197-0x14cb),
+(0x1685+40-0x16a5),(0x19ac+3268-0x2601),(0x1647+775-0x18df),(0x21ea+996-0x255f),
+(0x1de7+1217-0x222c),ZPB_NON_GSM,(0x2427+149-0x24b0),(0x13b9+397-0x1540),
+(0x276+2589-0xc1e),(0x13e3+1330-0x18a0),(0xbd2+369-0xcc5),(0x1881+846-0x1b56),
+ZPB_NON_GSM,(0x7a8+2784-0x120f)};VOID atPb_Init(VOID){UINT32 pbCount=
+(0x864+5774-0x1ef2);g_zPb_SimIndex[(0x1281+384-0x1401)]=(0x2b3+8108-0x225f);
+sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
+ZPB_OPERATE_SUC);for(pbCount=(0x1d77+1261-0x2263);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=
-(0xb2d+3244-0x17d9);int min=32767;int max=(0x5fc+7928-0x24f4);int temp=
-(0xad7+2922-0x1641);int outOff=(0xd1b+3129-0x1954);printf(
+atpb_CvtUcs2ToAlphaField(char*src,int srcLen,char*dest){int i=(0x1bf+2759-0xc86)
+;int min=32767;int max=(0x1969+2374-0x22af);int temp=(0xa34+6954-0x255e);int 
+outOff=(0x16f8+1823-0x1e17);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<=(0x11ba+4174-0x2208)||src==NULL||dest==NULL){return-
-(0x25f+2961-0xdef);}if(srcLen<=(0x13df+4609-0x25de)){dest[(0x829+852-0xb7d)]=
-(0xee5+222-0xf43);memcpy(dest+(0xf8a+6005-0x26fe),src,srcLen);printf(
+,srcLen);if(srcLen<=(0x545+1987-0xd08)||src==NULL||dest==NULL){return-
+(0x8e0+1880-0x1037);}if(srcLen<=(0xb8c+2802-0x167c)){dest[(0xa03+1925-0x1188)]=
+(0x3c2+7567-0x20d1);memcpy(dest+(0x712+3864-0x1629),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+(0x13b3+2557-0x1daf));return srcLen+(0x578+6212-0x1dbb);}for(i=
-(0x3a3+4559-0x1572);i<srcLen;i+=(0x971+4180-0x19c3)){if(src[i]!=
-(0xb2f+4832-0x1e0f)){temp=(int)(((src[i]<<(0x11ea+4511-0x2381))&65280)|(src[i+
-(0x19a4+2592-0x23c3)]&(0x696+632-0x80f)));
-#if (0x14da+3238-0x2180) 
-if(temp<(0x1150+5417-0x2679)){max=min+(0x267+80-0x235);break;}
+,srcLen+(0xc97+5932-0x23c2));return srcLen+(0x1684+2846-0x21a1);}for(i=
+(0x870+315-0x9ab);i<srcLen;i+=(0xcc9+6302-0x2565)){if(src[i]!=
+(0x9a2+2288-0x1292)){temp=(int)(((src[i]<<(0x143+612-0x39f))&65280)|(src[i+
+(0x8f7+4721-0x1b67)]&(0x105b+755-0x124f)));
+#if (0x458+7459-0x217b) 
+if(temp<(0xa08+1241-0xee1)){max=min+(0xcb8+1382-0x119c);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)<(0x4c9+868-0x7ac)){if((unsigned char)(min&
-(0x19a0+1376-0x1e80))==(unsigned char)(max&(0x47c+6630-0x1de2))){dest[
-(0x1e4b+453-0x200f)]=(unsigned char)(srcLen/(0x1829+2290-0x2119));dest[
-(0x10b7+5246-0x2535)]=(unsigned char)(0x1ef0+302-0x1f9d);min=(int)(min&32640);
-dest[(0x8cf+4809-0x1b96)]=(unsigned char)((min>>(0x469+1390-0x9d0))&
-(0x973+5402-0x1d8e));outOff=(0x1d1+2490-0xb88);printf(
+,min,max);if((max-min)<(0xaa6+468-0xbf9)){if((unsigned char)(min&
+(0xe11+3451-0x1b0c))==(unsigned char)(max&(0x1bd4+248-0x1c4c))){dest[
+(0x108+5382-0x160d)]=(unsigned char)(srcLen/(0x1a9c+2005-0x226f));dest[
+(0x1186+4311-0x225d)]=(unsigned char)(0xec8+709-0x110c);min=(int)(min&32640);
+dest[(0xd6+7267-0x1d37)]=(unsigned char)((min>>(0x469+1672-0xaea))&
+(0x140d+752-0x15fe));outOff=(0x1fc5+1006-0x23b0);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[(0x1980+1400-0x1ef7)]=(unsigned char)(srcLen/(0x1a2b+574-0x1c67));
-dest[(0x1258+3056-0x1e48)]=(unsigned char)(0x1554+3769-0x238b);dest[
-(0x1a27+2066-0x2237)]=(unsigned char)((min>>(0x9cd+2390-0x131b))&
-(0x103+1294-0x512));dest[(0x1ca4+449-0x1e62)]=(unsigned char)(min&
-(0x4e3+7766-0x223a));outOff=(0xb4f+2533-0x1530);printf(
+);}else{dest[(0x2182+182-0x2237)]=(unsigned char)(srcLen/(0x17ab+1967-0x1f58));
+dest[(0x99b+5395-0x1eae)]=(unsigned char)(0x116a+4241-0x2179);dest[
+(0x182d+2200-0x20c3)]=(unsigned char)((min>>(0x10ab+5007-0x2432))&
+(0x9fd+1136-0xd6e));dest[(0xf58+2700-0x19e1)]=(unsigned char)(min&
+(0xc41+2730-0x15ec));outOff=(0xc6+2222-0x970);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=(0x272+4964-0x15d6);i<srcLen;i+=(0xc4b+241-0xd3a)){if(src[i]==
-(0x28+6004-0x179c)){dest[outOff]=(unsigned char)(src[i+(0xd23+575-0xf61)]&
-(0xdb2+2006-0x1509));}else{temp=(int)((((src[i]<<(0x6ab+7305-0x232c))&65280)|(
-src[i+(0x9fb+6304-0x229a)]&(0x2058+1333-0x248e)))-min);dest[outOff]=(unsigned 
-char)(temp|(0xb90+743-0xdf7));}outOff++;}printf(
+);}for(i=(0x665+8131-0x2628);i<srcLen;i+=(0x19ec+3239-0x2691)){if(src[i]==
+(0xe61+5964-0x25ad)){dest[outOff]=(unsigned char)(src[i+(0x126+4917-0x145a)]&
+(0x1135+3166-0x1d14));}else{temp=(int)((((src[i]<<(0x1abf+1965-0x2264))&65280)|(
+src[i+(0x2e1+1142-0x756)]&(0x4d5+1041-0x7e7)))-min);dest[outOff]=(unsigned char)
+(temp|(0x142d+332-0x14f9));}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[(0x1937+3393-0x2678)]=
-(0xdba+4533-0x1eef);memcpy(dest+(0x8f2+6850-0x23b3),src,srcLen);printf(
+,outOff,outOff,dest[outOff]);return outOff;}dest[(0x58d+227-0x670)]=
+(0xb2f+3618-0x18d1);memcpy(dest+(0x16e6+80-0x1735),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+(0x2da+5056-0x1699));return srcLen+(0x4fa+8694-0x26ef);}int 
+,srcLen+(0x1466+4370-0x2577));return srcLen+(0xc82+1817-0x139a);}int 
 atPb_GetU80Code(const UINT8*srcCode,UINT32 srcCodeLen,UINT8*destCode,UINT32 
 destCodeLen){assert(destCode!=NULL&&srcCode!=NULL);if(srcCodeLen==
-(0xfc0+4414-0x20fe)||destCodeLen==(0xf71+3105-0x1b92)||destCodeLen<srcCodeLen){
-return-(0x1b1+2535-0xb97);}memset(destCode,(0x1d09+788-0x201d),destCodeLen);
-destCode[(0x3fc+4466-0x156e)]=(0x236b+98-0x234d);printf(
+(0x100d+3756-0x1eb9)||destCodeLen==(0x345+3118-0xf73)||destCodeLen<srcCodeLen){
+return-(0xa2f+955-0xde9);}memset(destCode,(0xa55+3208-0x16dd),destCodeLen);
+destCode[(0x2d3+8272-0x2323)]=(0x21bf+830-0x247d);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[(0xbe6+3210-0x1870)]);switch(srcCode[(0x97f+5342-0x1e5d)]){case
-(0x691+2337-0xf32):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}case
-(0x131c+4362-0x23a5):{atPb_CvtU81ToU80(srcCode+(0x1d4d+564-0x1f80),srcCodeLen-
-(0xda0+4498-0x1f31),destCode+(0x1e9+2998-0xd9e),destCodeLen-(0x79a+349-0x8f6));
-return srcCode[(0x6ab+2034-0xe9c)]*(0x6a8+1047-0xabd)+(0x7d5+6011-0x1f4f);}case
-(0x2140+1252-0x25a2):{atPb_CvtU82ToU80(srcCode+(0x759+5688-0x1d90),srcCodeLen-
-(0x1cb6+1513-0x229e),destCode+(0x608+935-0x9ae),destCodeLen-(0x121f+3378-0x1f50)
-);return srcCode[(0x1839+3207-0x24bf)]*(0x129f+3420-0x1ff9)+(0x587+5793-0x1c27);
-}default:{return-(0x2286+37-0x22aa);}}}BOOL atPb_CvtU82ToU80(const UINT8*srcData
-,UINT32 srcLen,UINT8*destData,UINT32 destLen){UINT8 chNum=(0x6b3+6500-0x2017);
-UINT16 basePointer=(0xde3+2942-0x1961);UINT8 iCurChar=(0x1012+1839-0x1741);
-UINT32 iCurSrc=(0xb93+5711-0x21e2);chNum=(UINT32)srcData[(0xed8+343-0x102f)];
-basePointer=(UINT16)srcData[(0x61a+5560-0x1bd1)];basePointer=basePointer<<
-(0xc04+3985-0x1b8d);basePointer=basePointer+srcData[(0x1972+361-0x1ad9)];if(
-chNum*(0x10b2+3484-0x1e4c)>destLen){return FALSE;}for(iCurSrc=(0xa6+5455-0x15f2)
-;iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++){UINT8*curDest=destData+
-(0x1bb5+1001-0x1f9c)*iCurChar;atPb_CvtChCode(basePointer,srcData[iCurSrc],
-curDest,curDest+(0x331+3056-0xf20));}return TRUE;}BOOL atPb_CvtU81ToU80(const 
-UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32 destLen){UINT8 chNum=
-(0x1c33+382-0x1db1);UINT16 basePointer=(0x13d0+2132-0x1c24);UINT8 iCurChar=
-(0x10e9+5358-0x25d7);UINT32 iCurSrc=(0x34f+3615-0x116e);chNum=srcData[
-(0x1a6+1010-0x598)];basePointer=((UINT16)srcData[(0x1149+4403-0x227b)])<<
-(0x3d+7482-0x1d70);if(chNum*(0x2b9+5902-0x19c5)>destLen){return FALSE;}for(
-iCurSrc=(0x2a+5464-0x1580);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++){
-UINT8*curDest=destData+(0xb43+3856-0x1a51)*iCurChar;atPb_CvtChCode(basePointer,
-srcData[iCurSrc],curDest,curDest+(0x979+732-0xc54));}return TRUE;}VOID 
+,srcCode[(0x153+5462-0x16a9)]);switch(srcCode[(0x3d8+3908-0x131c)]){case
+(0x1949+1845-0x1ffe):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}
+case(0x164d+2406-0x1f32):{atPb_CvtU81ToU80(srcCode+(0x4f1+3972-0x1474),
+srcCodeLen-(0xd73+4823-0x2049),destCode+(0x13a+3920-0x1089),destCodeLen-
+(0x2f8+152-0x38f));return srcCode[(0xb64+7043-0x26e6)]*(0x22a8+1062-0x26cc)+
+(0x1bd+6126-0x19aa);}case(0x1f4+5342-0x1650):{atPb_CvtU82ToU80(srcCode+
+(0x10c5+2108-0x1900),srcCodeLen-(0x3e2+7228-0x201d),destCode+(0x6d3+5377-0x1bd3)
+,destCodeLen-(0xa1f+3866-0x1938));return srcCode[(0x50d+6916-0x2010)]*
+(0x65d+7576-0x23f3)+(0xa4d+6253-0x22b9);}default:{return-(0x46b+6749-0x1ec7);}}}
+BOOL atPb_CvtU82ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32 
+destLen){UINT8 chNum=(0xe85+385-0x1006);UINT16 basePointer=(0x6ad+1588-0xce1);
+UINT8 iCurChar=(0xbb9+483-0xd9c);UINT32 iCurSrc=(0x955+289-0xa76);chNum=(UINT32)
+srcData[(0xd58+3873-0x1c79)];basePointer=(UINT16)srcData[(0x75d+3054-0x134a)];
+basePointer=basePointer<<(0x1f1f+1631-0x2576);basePointer=basePointer+srcData[
+(0x165a+537-0x1871)];if(chNum*(0x102a+781-0x1335)>destLen){return FALSE;}for(
+iCurSrc=(0x442+3820-0x132b);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++)
+{UINT8*curDest=destData+(0x1b7a+1871-0x22c7)*iCurChar;atPb_CvtChCode(basePointer
+,srcData[iCurSrc],curDest,curDest+(0x4d0+5-0x4d4));}return TRUE;}BOOL 
+atPb_CvtU81ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32 destLen
+){UINT8 chNum=(0x752+7363-0x2415);UINT16 basePointer=(0x1866+1439-0x1e05);UINT8 
+iCurChar=(0x125f+4956-0x25bb);UINT32 iCurSrc=(0xc28+5227-0x2093);chNum=srcData[
+(0x1e8a+1117-0x22e7)];basePointer=((UINT16)srcData[(0xbb8+1670-0x123d)])<<
+(0x15c3+3033-0x2195);if(chNum*(0xcc0+2325-0x15d3)>destLen){return FALSE;}for(
+iCurSrc=(0xb68+1830-0x128c);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++)
+{UINT8*curDest=destData+(0x14d+8692-0x233f)*iCurChar;atPb_CvtChCode(basePointer,
+srcData[iCurSrc],curDest,curDest+(0x5cb+6315-0x1e75));}return TRUE;}VOID 
 atPb_CvtChCode(UINT16 basePointer,UINT8 srcData,UINT8*chMsb,UINT8*chLsb){UINT16 
-curChar=(0x3b4+1641-0xa1d);assert(chMsb!=NULL&&chLsb!=NULL);if((srcData&
-(0x142f+771-0x16b2))==(0x9b3+2089-0x11dc)){curChar=srcData;}else{curChar=
-basePointer+(srcData&(0xb60+3367-0x1808));}*chMsb=(UINT8)(curChar>>
-(0xe08+4120-0x1e18));*chLsb=(UINT8)((curChar<<(0x213+2863-0xd3a))>>
-(0x1703+1722-0x1db5));return;}int atPb_String2Bytes(const char*pSrc,unsigned 
-char*pDst,int nSrcLength){int i=(0xba+8417-0x219b);if(pSrc==NULL||pDst==NULL||
-nSrcLength<(0xfbd+4267-0x2068)){return-(0xac1+4914-0x1df2);}for(i=
-(0xed8+6160-0x26e8);i<nSrcLength;i+=(0x1722+350-0x187e)){if(*pSrc>=
-((char)(0xb1a+5547-0x2095))&&*pSrc<=((char)(0x14b5+922-0x1816))){*pDst=(*pSrc-
-((char)(0x216d+1190-0x25e3)))<<(0x373+2770-0xe41);}else{*pDst=((toupper(*pSrc)-
-((char)(0x15c1+1480-0x1b48)))+(0xd30+2120-0x156e))<<(0x16f2+3549-0x24cb);}pSrc++
-;if(*pSrc>=((char)(0x4fd+5337-0x19a6))&&*pSrc<=((char)(0xd12+3688-0x1b41))){*
-pDst|=*pSrc-((char)(0x4ca+6476-0x1de6));}else{*pDst|=(toupper(*pSrc)-
-((char)(0x17c9+299-0x18b3)))+(0xdfd+3172-0x1a57);}pSrc++;pDst++;}return 
-nSrcLength/(0x1058+3481-0x1def);}int atPb_Bytes2String(const unsigned char*pSrc,
+curChar=(0xd3d+4631-0x1f54);assert(chMsb!=NULL&&chLsb!=NULL);if((srcData&
+(0x180f+1147-0x1c0a))==(0xb8+1401-0x631)){curChar=srcData;}else{curChar=
+basePointer+(srcData&(0x314+83-0x2e8));}*chMsb=(UINT8)(curChar>>
+(0x1cfa+1512-0x22da));*chLsb=(UINT8)((curChar<<(0x2020+206-0x20e6))>>
+(0xcdf+5193-0x2120));return;}int atPb_String2Bytes(const char*pSrc,unsigned char
+*pDst,int nSrcLength){int i=(0xc49+6415-0x2558);if(pSrc==NULL||pDst==NULL||
+nSrcLength<(0x24ef+438-0x26a5)){return-(0x36c+6148-0x1b6f);}for(i=
+(0x13d2+4517-0x2577);i<nSrcLength;i+=(0x1cf1+2517-0x26c4)){if(*pSrc>=
+((char)(0x68f+4440-0x17b7))&&*pSrc<=((char)(0x162f+327-0x173d))){*pDst=(*pSrc-
+((char)(0x247+1395-0x78a)))<<(0xce1+506-0xed7);}else{*pDst=((toupper(*pSrc)-
+((char)(0x1580+1658-0x1bb9)))+(0x1af1+878-0x1e55))<<(0x614+7366-0x22d6);}pSrc++;
+if(*pSrc>=((char)(0x27c+1585-0x87d))&&*pSrc<=((char)(0xa5d+4488-0x1bac))){*pDst
+|=*pSrc-((char)(0x290+9203-0x2653));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x994+1059-0xd76)))+(0x258+9105-0x25df);}pSrc++;pDst++;}return 
+nSrcLength/(0x2190+277-0x22a3);}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=
-(0x7ef+405-0x984);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1a4f+3128-0x2687)){
-return-(0x1f8b+446-0x2148);}for(i=(0x1283+3526-0x2049);i<nSrcLength;i++){*pDst++
-=tab[*pSrc>>(0x474+6819-0x1f13)];*pDst++=tab[*pSrc&(0x3d3+4237-0x1451)];pSrc++;}
-*pDst='\0';return nSrcLength*(0xe84+5791-0x2521);}static VOID atPb_WebRecodeShow
-(T_zPb_WebContact const*pFromweb){slog(PB_PRINT,SLOG_DEBUG,
+(0x16dc+782-0x19ea);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x634+8340-0x26c8)){
+return-(0x7ed+4719-0x1a5b);}for(i=(0x232d+308-0x2461);i<nSrcLength;i++){*pDst++=
+tab[*pSrc>>(0x16df+2321-0x1fec)];*pDst++=tab[*pSrc&(0x696+4101-0x168c)];pSrc++;}
+*pDst='\0';return nSrcLength*(0x1211+55-0x1246);}static VOID atPb_WebRecodeShow(
+T_zPb_WebContact const*pFromweb){slog(PB_PRINT,SLOG_DEBUG,
 "\x70\x62\x3a\x66\x72\x6f\x6d\x77\x65\x62\x2e\x49\x6e\x64\x65\x78\x3d\x25\x64" "\n"
 ,pFromweb->pbIndex);slog(PB_PRINT,SLOG_DEBUG,
 "\x70\x62\x3a\x66\x72\x6f\x6d\x77\x65\x62\x2e\x4e\x61\x6d\x65\x3d\x25\x73" "\n",
@@ -201,20 +200,20 @@
 ){sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);printf(
 "\x5b\x50\x42\x5d\x20\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x61\x74\x42\x61\x73\x65\x5f\x49\x69\x6e\x74\x50\x62\x4f\x6b\x20" "\n"
 );}VOID atPb_RecvCpbsReadRsp(T_zPb_AtCpbsReadRes*cpbsInd){CHAR resInfo[
-(0x9d4+1265-0xeb1)]={(0x58+3439-0xdc7)};if(strncmp(cpbsInd->locType,"\x53\x4d",
-(0x1ba9+2840-0x26bf))==(0x2392+466-0x2564)){(VOID)snprintf(resInfo,
-(0x111c+349-0x1265),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
-NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x142+4057-0x111b),(0x40b+1190-0x89d)
-);(VOID)snprintf(resInfo,(0xed3+3797-0x1d94),"\x25\x64",cpbsInd->totalEntries);(
-VOID)sc_cfg_set(NV_PB_TOTALENTRIES,resInfo);g_zPb_SimIndex[(0x7d4+2885-0x1319)]=
-(UINT32)(cpbsInd->totalEntries);}else{printf(
+(0x8f1+3295-0x15bc)]={(0x7b5+188-0x871)};if(strncmp(cpbsInd->locType,"\x53\x4d",
+(0x1fb1+970-0x2379))==(0x147c+3591-0x2283)){(VOID)snprintf(resInfo,
+(0x5b+8805-0x22ac),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
+NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x7d+9084-0x23f9),(0x982+1581-0xf9b))
+;(VOID)snprintf(resInfo,(0x11e1+123-0x1248),"\x25\x64",cpbsInd->totalEntries);(
+VOID)sc_cfg_set(NV_PB_TOTALENTRIES,resInfo);g_zPb_SimIndex[(0x190f+1969-0x20c0)]
+=(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[(0xa45+6114-0x221d)]={(0x9f2+2041-0x11eb)};assert(
-pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0xe2f+5572-0x23e9),"\x25\x64",
+UINT32 len){char converted[(0x1168+1124-0x15c2)]={(0xad6+5589-0x20ab)};assert(
+pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0xa7c+3868-0x198e),"\x25\x64",
 len);(VOID)sc_cfg_set(pbNvKeyWord,converted);}VOID atPb_ScpbrTestRsp(
-T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0x332+1225-0x7fb)};
-CHAR pbUsed[(0x117f+158-0x11eb)]={(0x157f+2466-0x1f21)};sc_cfg_get(
+T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0x1069+1641-0x16d2)};
+CHAR pbUsed[(0xd6+6381-0x1991)]={(0xb1+7090-0x1c63)};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 +222,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=(0x1eba+712-0x2182);int max=(0x1184+104-0x11ec);int res=
-(0x1ff7+1631-0x2656);int index=(0xfb+5756-0x1777);CHAR pbMin[(0xd35+6369-0x25e4)
-]={(0x1f40+1026-0x2342)};CHAR pbMax[(0x505+1526-0xac9)]={(0x4c2+4729-0x173b)};
-int indexmin=(0x1083+1935-0x1812);int indexmax=(0x383+1787-0xa7e);
-T_zPb_ScpbrReadRes scpbrReadInfo={(0xce5+1753-0x13be)};sc_cfg_get(
-ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,
-sizeof(pbMax));(VOID)sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);if(strcmp(pbMin,"\x30")
-==(0x5f8+3788-0x14c4)||strcmp(pbMax,"\x30")==(0x583+4681-0x17cc)){sc_cfg_set(
-ZPB_NV_INIT,ZPB_OPERATE_SUC);printf(
+ min=(0xed7+376-0x104f);int max=(0x115c+1397-0x16d1);int res=
+(0x119d+3670-0x1ff3);int index=(0x56f+5369-0x1a68);CHAR pbMin[
+(0x5b9+8181-0x257c)]={(0x1da3+2345-0x26cc)};CHAR pbMax[(0x9ca+390-0xb1e)]={
+(0x2159+375-0x22d0)};int indexmin=(0x517+6115-0x1cfa);int indexmax=
+(0xb6+8889-0x236f);T_zPb_ScpbrReadRes scpbrReadInfo={(0x57+4936-0x139f)};
+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")==(0x658+8140-0x2624)||strcmp(pbMax,"\x30")
+==(0x6a0+7537-0x2411)){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-(0x10bb+5420-0x25e6);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
-"\x25\x64",&max);if((min<(0x80b+6556-0x21a7)||min>INT_MAX-(0xbf7+4405-0x1d2b))||
-(max<(0x1d00+2562-0x2702)||max>INT_MAX-(0xa95+1849-0x11cd))){printf(
+);return-(0x31f+3474-0x10b0);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
+"\x25\x64",&max);if((min<(0x7ac+3088-0x13bc)||min>INT_MAX-(0x1c66+2721-0x2706))
+||(max<(0x1b7+1397-0x72c)||max>INT_MAX-(0x38f+3384-0x10c6))){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-(0x1ab3+547-0x1cd5);}while((0xff2+5712-0x2641)){if(indexmin<min
-){indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0xe5d+6052-0x2600);if(
+,min,max);return-(0xa13+5589-0x1fe7);}while((0x822+3976-0x17a9)){if(indexmin<min
+){indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0x8cd+1549-0xed9);if(
 indexmax>max){indexmax=max;break;}printf(
 "\x5b\x50\x42\x5d\x20\x31\x31\x31\x20\x69\x6e\x64\x65\x78\x6d\x69\x6e\x3d\x25\x64\x2c\x20\x69\x6e\x64\x65\x78\x6d\x61\x78\x3d\x25\x64\x2c\x28\x25\x64\x2d\x25\x64\x29" "\n"
 ,indexmin,indexmax,min,max);}else{indexmin=indexmin+ZPB_INIT_LOAD_RECORD_NUM;if(
@@ -249,18 +248,18 @@
 "\x5b\x50\x42\x5d\x20\x32\x32\x32\x20\x69\x6e\x64\x65\x78\x6d\x69\x6e\x3d\x25\x64\x2c\x20\x69\x6e\x64\x65\x78\x6d\x61\x78\x3d\x25\x64\x2c\x28\x25\x64\x2d\x25\x64\x29" "\n"
 ,indexmin,indexmax,min,max);}scpbrReadInfo.minIndex=indexmin;scpbrReadInfo.
 maxIndex=indexmax;res=ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,
-MSG_CMD_READ_PB_REQ,sizeof(T_zPb_ScpbrReadRes),&scpbrReadInfo,(0xe07+826-0x1141)
-);sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-(0xf67+4702-0x21c4)){break;}}
-return g_PbOptRsp.result;}
-#if (0x498+4093-0x1495)

+MSG_CMD_READ_PB_REQ,sizeof(T_zPb_ScpbrReadRes),&scpbrReadInfo,
+(0x72b+3715-0x15ae));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-
+(0x2a0+2317-0xbac)){break;}}return g_PbOptRsp.result;}
+#if (0xb07+6241-0x2368)

 int atPb_SendScpbrSet(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){UINT32 
-indexmin=(0x1b5+2339-0xad8);UINT32 indexmax=(0x16ed+3397-0x2432);CHAR atcmdMsg[
-(0x1689+1494-0x1c19)]={(0x100b+169-0x10b4)};int res=(0x425+8787-0x2678);CHAR 
-pbMin[(0x17e3+1670-0x1e37)]={(0x1608+3210-0x2292)};CHAR pbMax[
-(0xe7f+4309-0x1f22)]={(0x1875+1313-0x1d96)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin
-,sizeof(pbMin));sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));(VOID)
-sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0xc50+2810-0x174a)
-||strcmp(pbMax,"\x30")==(0x1128+3651-0x1f6b)){printf(
+indexmin=(0x14ec+1728-0x1bac);UINT32 indexmax=(0xd0b+3131-0x1946);CHAR atcmdMsg[
+(0x6f0+3288-0x1382)]={(0x2236+473-0x240f)};int res=(0x32a+2263-0xc01);CHAR pbMin
+[(0x2ac+8367-0x2329)]={(0xae3+5361-0x1fd4)};CHAR pbMax[(0x155a+2951-0x20af)]={
+(0x1606+3926-0x255c)};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")==(0x16c0+1270-0x1bb6)||strcmp(pbMax,"\x30"
+)==(0x14d+6119-0x1934)){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 +268,46 @@
 atcmdMsg,cid,pAtRst,atRstSize);pthread_mutex_unlock(&smsdb_mutex);return res;}
 #endif

 UINT8 atPb_EncodeText(CHAR*pbDst,CHAR const*pbTextSrc,UINT32 dstLen){UINT8 i=
-(0x3ac+1158-0x832);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x629+1445-0xbce)};if(
-pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0xa33+2771-0x1502)+
-ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0xf8b+3847-0x1e92)],
-sizeof(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0x1486+3953-0x23f7)
-;(i<strlen(pbTextSrc))&&(i*(0x18b+2928-0xcf7)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
-snprintf(strTarget+i*(0x27+4861-0x1320)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i*
-(0x17a8+3424-0x2504)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i]
-);}strncpy(pbDst,strTarget,dstLen-(0x69+4029-0x1025));return ZUFI_SUCC;}}return 
-ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){T_zPb_WebContact 
-pbRecord={(0x68f+6328-0x1f47)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
-(0x612+5322-0x1adc)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0xb11+2685-0x158e)};int 
-text_len=(0x15d5+1312-0x1af5);int tmp_len=(0x161d+3686-0x2483);CHAR tmp[
-ZPB_TEXT_SIZE_BYTES]={(0xb8c+5608-0x2174)};if(atRes->coding!=ZPB_UCS2){if(
+(0x20a8+1020-0x24a4);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x696+7549-0x2413)};
+if(pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0x1e64+2093-0x268d)+
+ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0x133b+782-0x1649)],
+sizeof(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0x656+5034-0x1a00);
+(i<strlen(pbTextSrc))&&(i*(0x1353+4127-0x236e)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
+snprintf(strTarget+i*(0x17d+7519-0x1ed8)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i
+*(0x1c0+6052-0x1960)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i]
+);}strncpy(pbDst,strTarget,dstLen-(0xedf+5579-0x24a9));return ZUFI_SUCC;}}return
+ ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){T_zPb_WebContact 
+pbRecord={(0xc20+2211-0x14c3)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
+(0xb89+6920-0x2691)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0xb6f+5136-0x1f7f)};int 
+text_len=(0x118f+4561-0x2360);int tmp_len=(0x1b9f+1868-0x22eb);CHAR tmp[
+ZPB_TEXT_SIZE_BYTES]={(0xe89+4808-0x2151)};if(atRes->coding!=ZPB_UCS2){if(
 atPb_EncodeText(pbDst,atRes->text,ZPB_TEXT_SIZE_BYTES)==ZUFI_SUCC){strncpy(atRes
-->text,pbDst+(0x7ab+5331-0x1c7c),sizeof(atRes->text)-(0x1797+1926-0x1f1c));}else
-{slog(PB_PRINT,SLOG_ERR,
+->text,pbDst+(0xdc3+447-0xf80),sizeof(atRes->text)-(0x1075+1916-0x17f0));}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<
-(0x12aa+186-0x1364))return;memset(&text,(0x30d+1045-0x722),ZPB_TEXT_SIZE_BYTES);
-text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>(0x96+2347-0x9bf)){
-memset(&atRes->text,(0x158+1023-0x557),ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->text,
-text+(0x22c+1565-0x847),strlen(text)-(0x14dc+3266-0x219c));}}pbRecord.pbId=-
-(0xe77+1807-0x1585);pbRecord.pbIndex=(SINT32)atRes->index;strncpy(pbRecord.name,
-atRes->text,sizeof(pbRecord.name)-(0x1ab+7060-0x1d3e));strncpy(pbRecord.
-mobilNumber,atRes->number1,sizeof(pbRecord.mobilNumber)-(0x1a29+1868-0x2174));
-strncpy(pbRecord.officeNumber,atRes->number2,sizeof(pbRecord.officeNumber)-
-(0x1e52+207-0x1f20));strncpy(pbRecord.homeNumber,atRes->number3,sizeof(pbRecord.
-homeNumber)-(0x95f+6952-0x2486));strncpy(pbRecord.email,atRes->email,sizeof(
-pbRecord.email)-(0x4a7+1749-0xb7b));pbRecord.pbLocation=ZPB_LOCATION_USIM;(VOID)
-atPb_LoadARecToPbmTable(&pbRecord);}VOID atPb_SetDelStatusMultOrAll(){if(
-g_zPb_DelStatusUsim.dealFailNum>(0xe3a+1607-0x1481)){if(g_zPb_DelStatusUsim.
-dealSuccNum>(0xc1+6808-0x1b59)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
-ZPB_MUL_DEL_PART_SUC);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);}}
-else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}}
-#if (0x1554+4018-0x2506)

+(0x1b44+161-0x1be5))return;memset(&text,(0x1133+5562-0x26ed),ZPB_TEXT_SIZE_BYTES
+);text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>
+(0x14d6+1895-0x1c3b)){memset(&atRes->text,(0x6ac+5000-0x1a34),
+ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->text,text+(0x3c5+1978-0xb7d),strlen(text)-
+(0x986+2022-0x116a));}}pbRecord.pbId=-(0xdc2+6075-0x257c);pbRecord.pbIndex=(
+SINT32)atRes->index;strncpy(pbRecord.name,atRes->text,sizeof(pbRecord.name)-
+(0x15d2+4024-0x2589));strncpy(pbRecord.mobilNumber,atRes->number1,sizeof(
+pbRecord.mobilNumber)-(0x4ea+2613-0xf1e));strncpy(pbRecord.officeNumber,atRes->
+number2,sizeof(pbRecord.officeNumber)-(0x95f+6821-0x2403));strncpy(pbRecord.
+homeNumber,atRes->number3,sizeof(pbRecord.homeNumber)-(0x2276+682-0x251f));
+strncpy(pbRecord.email,atRes->email,sizeof(pbRecord.email)-(0xdd8+3636-0x1c0b));
+pbRecord.pbLocation=ZPB_LOCATION_USIM;(VOID)atPb_LoadARecToPbmTable(&pbRecord);}
+VOID atPb_SetDelStatusMultOrAll(){if(g_zPb_DelStatusUsim.dealFailNum>
+(0xca0+266-0xdaa)){if(g_zPb_DelStatusUsim.dealSuccNum>(0x179f+1794-0x1ea1)){(
+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 (0xa1c+4-0xa20)

 VOID atPb_RecvScpbwAddErr(UINT8*pErrCode){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
-ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x2154+658-0x23e4))
-==(0xaed+2759-0x15b4))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73");
+ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x11d3+2262-0x1aa7)
+)==(0xe45+5283-0x22e8))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73");
 printf(
 "\x70\x62\x3a\x52\x65\x63\x76\x20\x43\x4d\x45\x20\x45\x72\x72\x43\x6f\x64\x65\x3a\x20\x32\x30\x2e" "\n"
 );}else{printf(
@@ -318,84 +318,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=(0xf98+4681-0x21e1);UINT8 iTemp=(0x2098+498-0x228a);SINT32 i
-=(0x6+877-0x373);if((NULL==pcHex)||(NULL==pcASC)||((0x126b+3299-0x1f4e)==iDstLen
-)||(iDstLen<(iSrcLen/(0x206+2953-0xd8d)+(0x122a+2974-0x1dc7)))){return;}for(i=
-(0x81+6342-0x1947);i<iSrcLen;i++){if(iOddOrEven%(0xc22+3880-0x1b48)==
-(0x100b+3203-0x1c8e)){iTemp=*(pcASC+i);if((iTemp>=((char)(0xa90+7037-0x25dd)))&&
-(iTemp<=((char)(0xa76+4793-0x1cf6)))){*(pcHex+i/(0x15e7+3628-0x2411))|=(UINT8)(
-iTemp-(0xaad+6057-0x2226))<<(0x1767+3018-0x232d);}else{*(pcHex+i/
-(0x13c0+4329-0x24a7))|=(UINT8)(iTemp-(0x41a+5182-0x1821))<<(0x480+4318-0x155a);}
-}else{iTemp=*(pcASC+i);if((iTemp>=((char)(0x1574+1216-0x1a04)))&&(iTemp<=
-((char)(0x250+5887-0x1916)))){*(pcHex+i/(0x1249+5028-0x25eb))|=iTemp-
-(0xb1d+3963-0x1a68);}else{*(pcHex+i/(0x759+3974-0x16dd))|=iTemp-(0x81b+19-0x7f7)
-;}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,SINT32 iLength){int 
-iRetVal=(0x8c9+450-0xa8a);char cTemp;int i=(0x1926+331-0x1a71);if(NULL==psUcs2){
-return-(0xb8d+3722-0x1a16);}for(i=(0x14dc+2041-0x1cd5);i<iLength;i++){if(
-(0x1334+958-0x15f2)>psUcs2[i]){switch(psUcs2[i]){case(0x4f9+3628-0x1319):case
-(0x13b9+2496-0x1d1e):case(0x677+1145-0xa94):case(0xf65+4181-0x1f5d):case
-(0xbbf+6814-0x25ff):case(0x1010+4276-0x2049):case(0x18ed+79-0x18c0):case
-(0xc66+4633-0x1e02):case(0x2a1+9203-0x2616):case(0x104b+5765-0x262c):case
-(0x4a9+267-0x594):{break;}default:{cTemp=(char)G_ZPB_NEWUCS2TOGSM[psUcs2[i]];if(
-ZPB_NON_GSM==cTemp){iRetVal=(0x1d2d+2491-0x26e8);}break;}}}else{switch(psUcs2[i]
-){case(0x1487+1516-0x16df):case(0x17e8+4006-0x23e8):case(0x895+2559-0xf01):case
-(0xf4d+4413-0x1cef):case(0x1a09+2907-0x21bb):case(0x1585+1332-0x1719):case
-(0x183f+4399-0x25a6):case(0x22bc+326-0x205f):case(0x102c+5647-0x2283):case
-(0x177d+1965-0x1b8c):{break;}default:{iRetVal=(0xb16+6180-0x233a);break;}}}if(
-(0x616+6347-0x1ee1)==iRetVal){break;}}return iRetVal;}static UINT8 
+){UINT32 iOddOrEven=(0xd02+37-0xd27);UINT8 iTemp=(0x2173+735-0x2452);SINT32 i=
+(0x68d+1857-0xdce);if((NULL==pcHex)||(NULL==pcASC)||((0x1452+1445-0x19f7)==
+iDstLen)||(iDstLen<(iSrcLen/(0xbed+468-0xdbf)+(0x1ce6+2225-0x2596)))){return;}
+for(i=(0x4d4+2848-0xff4);i<iSrcLen;i++){if(iOddOrEven%(0x83+9284-0x24c5)==
+(0x6c3+610-0x925)){iTemp=*(pcASC+i);if((iTemp>=((char)(0x960+2068-0x1144)))&&(
+iTemp<=((char)(0x2b5+8245-0x22b1)))){*(pcHex+i/(0x156b+4022-0x251f))|=(UINT8)(
+iTemp-(0x52f+1344-0xa3f))<<(0xd72+1821-0x148b);}else{*(pcHex+i/
+(0x357+6115-0x1b38))|=(UINT8)(iTemp-(0x1c7+4193-0x11f1))<<(0x2ca+4429-0x1413);}}
+else{iTemp=*(pcASC+i);if((iTemp>=((char)(0x2a2+5145-0x168b)))&&(iTemp<=
+((char)(0x624+2612-0x101f)))){*(pcHex+i/(0x738+5534-0x1cd4))|=iTemp-
+(0x14b+7781-0x1f80);}else{*(pcHex+i/(0x629+333-0x774))|=iTemp-
+(0xf10+4781-0x2186);}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,
+SINT32 iLength){int iRetVal=(0xb6d+1350-0x10b2);char cTemp;int i=
+(0x4d2+2646-0xf28);if(NULL==psUcs2){return-(0x268+6462-0x1ba5);}for(i=
+(0x320+4158-0x135e);i<iLength;i++){if((0xccf+6899-0x26c2)>psUcs2[i]){switch(
+psUcs2[i]){case(0xf29+3426-0x1c7f):case(0x1afb+3129-0x26d9):case
+(0xa1+9593-0x25be):case(0x297+801-0x55b):case(0xb77+2311-0x1420):case
+(0xc04+3858-0x1a9b):case(0x10f1+1197-0x1522):case(0xb78+6249-0x2364):case
+(0x9c+5129-0x1427):case(0xeb5+2730-0x18bb):case(0x119a+2584-0x1b92):{break;}
+default:{cTemp=(char)G_ZPB_NEWUCS2TOGSM[psUcs2[i]];if(ZPB_NON_GSM==cTemp){
+iRetVal=(0x3c5+2086-0xbeb);}break;}}}else{switch(psUcs2[i]){case
+(0x1dbc+1594-0x2062):case(0xbfa+1882-0xfae):case(0x20a4+876-0x207d):case
+(0xe57+7138-0x269e):case(0x185d+2602-0x1ede):case(0x89a+4232-0x1582):case
+(0x24d9+426-0x22bb):case(0x6ad+371-0x47d):case(0x925+526-0x77b):case
+(0x63b+683-0x548):{break;}default:{iRetVal=(0x4cf+8524-0x261b);break;}}}if(
+(0xa66+3140-0x16aa)==iRetVal){break;}}return iRetVal;}static UINT8 
 atPb_EncodeNameToUcs2(char*pbDst,UINT32 iDstLen,char const*pbSrc){UINT16 acHex[
-(0x10a+5360-0x14fa)]={(0x89c+6929-0x23ad)};SINT32 srclen=(0x11ad+3288-0x1e85);
-SINT32 rest=(0x771+282-0x88b);assert(pbDst!=NULL&&pbSrc!=NULL);srclen=(SINT32)
+(0x101+6636-0x19ed)]={(0x1d08+2017-0x24e9)};SINT32 srclen=(0x1f6+515-0x3f9);
+SINT32 rest=(0x73d+4794-0x19f7);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,(0x403+1372-0x85f),(UINT8*)pbSrc,srclen);rest=
-atPb_IfUcs2IsSMS7(acHex,srclen/(0x6+1802-0x70c));if(rest==(0xef6+2548-0x18e9)){
-return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest==(0x1247+1144-0x16bf))
-{if(strlen(pbSrc)+(0x82a+5949-0x1f65)<iDstLen){memcpy(pbDst,"\x38\x30",
-(0xe26+2438-0x17aa));memcpy(pbDst+(0xf25+1593-0x155c),pbSrc,srclen);return 
+,pbSrc,srclen);pb_AsctoHex(acHex,(0x23dd+523-0x24e8),(UINT8*)pbSrc,srclen);rest=
+atPb_IfUcs2IsSMS7(acHex,srclen/(0x1877+227-0x1956));if(rest==(0x48f+5112-0x1886)
+){return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest==(0x668+2154-0xed2))
+{if(strlen(pbSrc)+(0x6e1+1183-0xb7e)<iDstLen){memcpy(pbDst,"\x38\x30",
+(0x834+7356-0x24ee));memcpy(pbDst+(0x14e5+3816-0x23cb),pbSrc,srclen);return 
 ZUFI_SUCC;}}return ZUFI_FAIL;}SINT32 atPb_FindIdleIndex(T_zPb_WebContact const*
-pbRecv,BOOL pbNewFlag){SINT32 count=(0x134+5133-0x1540);SINT32 total=
-(0x21e4+735-0x24c3);SINT32*IndexType=NULL;if((NULL==pbRecv)){slog(PB_PRINT,
+pbRecv,BOOL pbNewFlag){SINT32 count=(0x458+5105-0x1848);SINT32 total=
+(0x17c5+1475-0x1d88);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-(0x378+5021-0x1714);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv->
-pbLocation){total=g_zPb_SimIndex[(0x14f2+1678-0x1b80)];IndexType=g_zPb_SimIndex;
-}else if(ZPB_LOCATION_AP==pbRecv->pbLocation){total=g_zPb_ApIndex[
-(0x154b+1197-0x19f8)];IndexType=g_zPb_ApIndex;}for(;count<=total;count++){if((
+);return-(0x2441+489-0x2629);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv->
+pbLocation){total=g_zPb_SimIndex[(0x2ba+8322-0x233c)];IndexType=g_zPb_SimIndex;}
+else if(ZPB_LOCATION_AP==pbRecv->pbLocation){total=g_zPb_ApIndex[
+(0x1360+3013-0x1f25)];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-(0xf1+9207-0x24e7);}slog(PB_PRINT,SLOG_DEBUG,
+,count);return-(0x797+4588-0x1982);}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=(0x1f7+1197-0x6a4);SINT32 i=
-(0x2258+1083-0x2693);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0x10e0+4886-0x23f6)};CHAR 
-str[(0x7d6+7866-0x268d)]={(0x42d+4339-0x1520)};SINT32 length=(0x14+8066-0x1f96);
-length=atPb_String2Bytes(pSrc,buf,len);for(i=(0x589+4953-0x18e2);i<length;i+=
-(0x5a1+2808-0x1097)){if(buf[i]!=(0xbb5+5068-0x1f81)||buf[i+(0x6b5+7969-0x25d5)]>
-(0xdbf+5550-0x22ee)){return FALSE;}pDst[j++]=buf[i+(0x1c7b+2429-0x25f7)];}return
- TRUE;}VOID atWeb_AddOrModOnePbUsim(T_zPb_WebContact*pWebPbContact,BOOL 
-pbNewFlag,sem_t semId){int atRes=(0x438+6933-0x1f4d);CHAR pbName[
-ZPB_TEXT_SIZE_BYTES+(0x9b2+7519-0x270e)]={(0x127b+3246-0x1f29)};CHAR buf_src[
-ZPB_TEXT_SIZE_BYTES+(0x20c5+1584-0x26f2)]={(0x19b1+149-0x1a46)};CHAR buf_dest[
-ZPB_TEXT_SIZE_BYTES+(0x1948+1799-0x204c)]={(0x1255+173-0x1302)};T_zPb_ScpbwParam
- scpbwParam={(0x4eb+7198-0x2109)};int len=(0x310+3182-0xf7e);atPb_WebRecodeShow(
+CHAR*pSrc,CHAR*pDst,SINT32 len){SINT32 j=(0x136b+1208-0x1823);SINT32 i=
+(0xce6+1534-0x12e4);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0xb0+9044-0x2404)};CHAR str[
+(0x1687+1131-0x1aef)]={(0x230a+1009-0x26fb)};SINT32 length=(0x1a30+856-0x1d88);
+length=atPb_String2Bytes(pSrc,buf,len);for(i=(0x1754+3180-0x23c0);i<length;i+=
+(0x9a8+4789-0x1c5b)){if(buf[i]!=(0x1fb9+736-0x2299)||buf[i+(0x12f6+1387-0x1860)]
+>(0x59c+8556-0x2689)){return FALSE;}pDst[j++]=buf[i+(0x8b0+858-0xc09)];}return 
+TRUE;}VOID atWeb_AddOrModOnePbUsim(T_zPb_WebContact*pWebPbContact,BOOL pbNewFlag
+,sem_t semId){int atRes=(0xcda+823-0x1011);CHAR pbName[ZPB_TEXT_SIZE_BYTES+
+(0xeec+550-0x110f)]={(0x92+3878-0xfb8)};CHAR buf_src[ZPB_TEXT_SIZE_BYTES+
+(0x263+1734-0x926)]={(0x4a+4954-0x13a4)};CHAR buf_dest[ZPB_TEXT_SIZE_BYTES+
+(0x1a6+6755-0x1c06)]={(0xc77+4874-0x1f81)};T_zPb_ScpbwParam scpbwParam={
+(0x1273+26-0x128d)};int len=(0x154a+1159-0x19d1);atPb_WebRecodeShow(
 pWebPbContact);if(atPb_GetASCII(pWebPbContact->name,pbName,strlen(pWebPbContact
-->name))){scpbwParam.coding=(0x17ac+2091-0x1fd7);}else{len=atPb_String2Bytes(
+->name))){scpbwParam.coding=(0x2266+79-0x22b5);}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=(0x1073+3611-0x1e8d);}scpbwParam.pbIndex=pWebPbContact->
-pbIndex;strncpy(scpbwParam.name,pbName,sizeof(scpbwParam.name)-(0x330+791-0x646)
-);strncpy(scpbwParam.mobilNumber,pWebPbContact->mobilNumber,sizeof(scpbwParam.
-mobilNumber)-(0x16c5+2864-0x21f4));strncpy(scpbwParam.officeNumber,pWebPbContact
-->officeNumber,sizeof(scpbwParam.officeNumber)-(0x964+3347-0x1676));strncpy(
-scpbwParam.homeNumber,pWebPbContact->homeNumber,sizeof(scpbwParam.homeNumber)-
-(0x148+2745-0xc00));strncpy(scpbwParam.email,pWebPbContact->email,sizeof(
-scpbwParam.email)-(0xdb2+1999-0x1580));ipc_send_message(MODULE_ID_PB,
-MODULE_ID_AT_CTL,MSG_CMD_ADD_MODIFY_PB_REQ,sizeof(T_zPb_ScpbwParam),(unsigned 
-char*)&scpbwParam,(0x13b1+4026-0x236b));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.
-result!=(0x846+2657-0x12a6)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);
-if(TRUE==pbNewFlag){printf(
+,len);scpbwParam.coding=(0x47c+4307-0x154e);}scpbwParam.pbIndex=pWebPbContact->
+pbIndex;strncpy(scpbwParam.name,pbName,sizeof(scpbwParam.name)-
+(0x968+6487-0x22be));strncpy(scpbwParam.mobilNumber,pWebPbContact->mobilNumber,
+sizeof(scpbwParam.mobilNumber)-(0x8a8+5240-0x1d1f));strncpy(scpbwParam.
+officeNumber,pWebPbContact->officeNumber,sizeof(scpbwParam.officeNumber)-
+(0x15d9+2668-0x2044));strncpy(scpbwParam.homeNumber,pWebPbContact->homeNumber,
+sizeof(scpbwParam.homeNumber)-(0x1f52+1685-0x25e6));strncpy(scpbwParam.email,
+pWebPbContact->email,sizeof(scpbwParam.email)-(0x296+1207-0x74c));
+ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,MSG_CMD_ADD_MODIFY_PB_REQ,sizeof(
+T_zPb_ScpbwParam),(unsigned char*)&scpbwParam,(0x81+1469-0x63e));sem_wait(&
+g_Pb_sem_id);if(g_PbOptRsp.result!=(0x21f6+473-0x23ce)){(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"
@@ -407,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=(0x6a+1433-0x602);T_zPb_Header pbHeader={(0x12c3+4741-0x2548)};BOOL 
-pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0x12a8+3009-0x1e69)};CHAR ptFlag[
-(0xe0b+5411-0x231a)]={(0x11d8+3958-0x214e)};printf(
+idleIndex=(0x14d+7021-0x1cb9);T_zPb_Header pbHeader={(0x51f+3339-0x122a)};BOOL 
+pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0xf28+2666-0x1992)};CHAR ptFlag[
+(0x1090+2436-0x1a00)]={(0x15a9+1530-0x1ba3)};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(-(0x5a6+8268-0x25f1)==webPbContact->pbId){slog(PB_PRINT,
+,webPbContact->pbId);if(-(0x2222+680-0x24c9)==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!=-(0x572+3271-0x1238)){webPbContact->pbIndex=idleIndex;
-}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);printf(
+,idleIndex);if(idleIndex!=-(0x513+1558-0xb28)){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"
@@ -435,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(
-(0x1a43+2308-0x2347)==strcmp("\x30",ptFlag)&&-(0xa94+2271-0x1372)!=webPbContact
-->del_id){delRecord.delId[(0xd67+1095-0x11ae)]=webPbContact->del_id;
-atWeb_DelOnepb(&delRecord,semId);}}VOID atWeb_DelOnepb(T_zPb_DelInfo*delRecord,
-sem_t semId){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0xa88+4198-0x1aee)};int atRes=
-(0x6cb+1261-0xbb8);SINT32 delTime=(0x2e1+7001-0x1e3a);
-atPb_GetLocationIndexForDel(delRecord,delTime);printf(
+(0xf8+4749-0x1385)==strcmp("\x30",ptFlag)&&-(0x910+4682-0x1b59)!=webPbContact->
+del_id){delRecord.delId[(0xa59+909-0xde6)]=webPbContact->del_id;atWeb_DelOnepb(&
+delRecord,semId);}}VOID atWeb_DelOnepb(T_zPb_DelInfo*delRecord,sem_t semId){CHAR
+ errCode[ZSVR_AT_RES_CODE_LEN]={(0x1910+2140-0x216c)};int atRes=
+(0x28f+4506-0x1429);SINT32 delTime=(0x5da+67-0x61d);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[(0x30b+9060-0x266f)],delRecord->delLocation);if(
+,delRecord->delIndex[(0x7ec+2655-0x124b)],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[(0x1da6+494-0x1f62)]={(0x7b0+303-0x8df)};
+delRecord->delLocation){CHAR pbMax[(0x5c2+4793-0x1849)]={(0x1ecb+2068-0x26df)};
 sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));if((delRecord->delIndex[
-(0x8b3+4658-0x1ae5)]>=(0xd15+5939-0x2447))&&(delRecord->delIndex[
-(0x1957+204-0x1a23)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
+(0x1d3+475-0x3ae)]>=(0x14f2+3011-0x20b4))&&(delRecord->delIndex[
+(0x1c88+697-0x1f41)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
 MODULE_ID_AT_CTL,MSG_CMD_DELETE_PB_REQ,sizeof(int),(unsigned char*)&delRecord->
-delIndex[(0x1866+811-0x1b91)],(0x3cc+3832-0x12c4));sem_wait(&g_Pb_sem_id);if(
-g_PbOptRsp.result!=(0x198f+532-0x1ba2)){sc_cfg_set(ZPB_NV_WRITE_FLAG,
+delIndex[(0x500+899-0x883)],(0x13ea+600-0x1642));sem_wait(&g_Pb_sem_id);if(
+g_PbOptRsp.result!=(0x15a7+3380-0x22da)){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(
@@ -465,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]={(0x143+3059-0xd36)};int atRes=(0x1b7+2087-0x9de);SINT32 
-delCount=(0x1647+4218-0x26c1);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
-g_zPb_DelStatusUsim,(0x1263+513-0x1464),sizeof(T_zPb_DelStatusMultiOrAll));
+ZSVR_AT_RES_CODE_LEN]={(0x176d+1338-0x1ca7)};int atRes=(0xa4c+5551-0x1ffb);
+SINT32 delCount=(0x1a5d+1347-0x1fa0);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
+g_zPb_DelStatusUsim,(0x1409+3362-0x212b),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"
@@ -478,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[
-(0x16c8+2304-0x1f96)]={(0x331+5812-0x19e5)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax
-,sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0xeaa+789-0x11be))&&(
+(0x740+6194-0x1f40)]={(0x12ec+2982-0x1e92)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax
+,sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0x69+8538-0x21c2))&&(
 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]
-,(0xe43+169-0xeec));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0x17a+1962-0x923)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+,(0x88a+675-0xb2d));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0x97f+1491-0xf51)){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,
@@ -493,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={(0x138a+2696-0x1e12)};
-SINT32 i=(0x869+5462-0x1dbe);result=atPb_DelRecFromPbmTableByGroup(&index);if(
+T_zPb_DbResult result=ZPB_DB_OK;T_zPb_ApIndex index={(0xab2+3638-0x18e8)};SINT32
+ i=(0xfef+1393-0x155f);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=
-(0x3fc+5427-0x192e);i<=ZPB_AP_MAX_RECORD;i++){if((0xb71+2164-0x13e5)!=index.
+(0xd12+5648-0x2321);i<=ZPB_AP_MAX_RECORD;i++){if((0x174a+2766-0x2218)!=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]={
-(0x378+3445-0x10ed)};snprintf(sql,sizeof(sql)-(0x5c4+5478-0x1b29),
+(0x4dd+5671-0x1b04)};snprintf(sql,sizeof(sql)-(0x4d9+1248-0x9b8),
 "\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(
@@ -509,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]={(0x7f5+3609-0x160e)};int atRes=
-(0x12fa+3849-0x2203);UINT32 i=(0x3cd+7911-0x22b4);CHAR sql[ZPB_MAX_BYTES_DB]={
-(0x15d+567-0x394)};UINT32 count=(0x178+4913-0x14a9);if(pdelRecord!=NULL){memset(
-&g_zPb_DelStatusUsim,(0x16eb+2826-0x21f5),sizeof(T_zPb_DelStatusMultiOrAll));
-g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_ALL_RECORD_USIM;snprintf(sql,sizeof(sql)-
-(0xd62+3961-0x1cda),
+CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x50a+2178-0xd8c)};int atRes=
+(0x719+849-0xa6a);UINT32 i=(0x91d+5291-0x1dc8);CHAR sql[ZPB_MAX_BYTES_DB]={
+(0x1ea1+126-0x1f1f)};UINT32 count=(0xe98+2267-0x1773);if(pdelRecord!=NULL){
+memset(&g_zPb_DelStatusUsim,(0xbbd+4097-0x1bbe),sizeof(T_zPb_DelStatusMultiOrAll
+));g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_ALL_RECORD_USIM;snprintf(sql,sizeof(sql)
+-(0xeb4+264-0xfbb),
 "\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((0x8bf+7011-0x2422)<count){CHAR pbMin[
-(0x1770+2180-0x1fc2)]={(0x647+2600-0x106f)};CHAR pbMax[(0x76a+1052-0xb54)]={
-(0x1537+2068-0x1d4b)};UINT32 i_pbMin=(0x17c+9260-0x25a8);UINT32 i_pbMax=
-(0x1780+3793-0x2651);sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
+atPb_DbCountTableLineCb,&count);if((0x1ca0+359-0x1e07)<count){CHAR pbMin[
+(0x23f+3520-0xfcd)]={(0xf45+3938-0x1ea7)};CHAR pbMax[(0x63b+366-0x777)]={
+(0x8bd+7078-0x2463)};UINT32 i_pbMin=(0x2bc+2170-0xb36);UINT32 i_pbMax=
+(0xe3c+3960-0x1db4);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,
-(0x2e0+739-0x5c3));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0x859+3259-0x1513)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+(0x15e2+3771-0x249d));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0x503+7292-0x217e)){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)-
-(0xc7b+2660-0x16de),
+(0x1055+3126-0x1c8a),
 "\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 e4f1322..9475a71 100755
--- a/ap/app/zte_comm/sms/src/sms_code.c
+++ b/ap/app/zte_comm/sms/src/sms_code.c
@@ -6,662 +6,663 @@
 #ifdef WIN32

 #include <wchar.h>

 #endif

-#define     NON_GSM                         (0xda9+12-0xd95)

+#define     NON_GSM                         (0x13ac+798-0x16aa)

 #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[(0xc95+4995-0x2008)]={
-((char)(0xb33+6479-0x2452)),((char)(0x10c+3423-0xe3a)),
-((char)(0xfd1+2029-0x178c)),((char)(0x29b+1983-0xa27)),
-((char)(0x233a+238-0x23f4)),((char)(0x11b7+1085-0x15bf)),
-((char)(0x19ed+3035-0x2592)),((char)(0x416+8296-0x2447)),
-((char)(0x78c+7448-0x246c)),((char)(0x524+366-0x659)),((char)(0x1da+2160-0xa09))
-,((char)(0x994+1049-0xd6b)),((char)(0x865+6704-0x2252)),
-((char)(0x1839+2764-0x22c1)),((char)(0xc40+1595-0x1236)),
-((char)(0x1f39+442-0x20ad))};extern SMS_PARAM g_zUfiSms_SendingSms;extern UINT16
- g_zUfiSms_IsLanguageShift;extern int g_zUfiSms_Language;static int 
+const_header;char g_zUfiSms_DigAscMap[(0x2ef+7960-0x21f7)]={
+((char)(0x1b71+454-0x1d07)),((char)(0x18fd+622-0x1b3a)),
+((char)(0x30b+4063-0x12b8)),((char)(0x163b+1532-0x1c04)),
+((char)(0xca4+4042-0x1c3a)),((char)(0x52+6832-0x1acd)),((char)(0xc2a+959-0xfb3))
+,((char)(0x159a+1072-0x1993)),((char)(0x486+5732-0x1ab2)),
+((char)(0x57+1072-0x44e)),((char)(0x2073+187-0x20ed)),
+((char)(0x603+5623-0x1bb8)),((char)(0xeac+5100-0x2255)),
+((char)(0x937+524-0xaff)),((char)(0xec6+3693-0x1cee)),
+((char)(0x17bf+2686-0x21f7))};extern SMS_PARAM g_zUfiSms_SendingSms;extern 
+UINT16 g_zUfiSms_IsLanguageShift;extern int g_zUfiSms_Language;static int 
 SerializeNumbers_sms(const char*pSrc,char*pDst,int nSrcLength);const unsigned 
-short g_zUfiSms_AsciiToGsmdefaultTable[]={((char)(0x22a+3086-0xe18)),
-((char)(0x7d+6973-0x1b9a)),((char)(0x1d52+1030-0x2138)),
-((char)(0x194d+2887-0x2474)),((char)(0x13c1+119-0x1418)),
-((char)(0x168+6152-0x1950)),((char)(0xdb6+1720-0x144e)),
-((char)(0x1a41+337-0x1b72)),((char)(0x230c+580-0x2530)),
-((char)(0x1253+2765-0x1d00)),((char)(0x178+2201-0x9f1)),
-((char)(0x1203+4386-0x2305)),((char)(0x53f+118-0x595)),
-((char)(0x153f+2397-0x1e7c)),((char)(0xe66+2317-0x1753)),
-((char)(0x76a+5410-0x1c6c)),((char)(0x124a+2891-0x1d75)),
-((char)(0x315+3502-0x10a3)),((char)(0x1fdf+625-0x2230)),
-((char)(0x98d+6450-0x229f)),((char)(0x1f8+568-0x410)),
-((char)(0x3f5+8327-0x245c)),((char)(0x1324+3885-0x2231)),
-((char)(0x77c+4928-0x1a9c)),((char)(0xd0c+2711-0x1783)),
-((char)(0x62a+2881-0x114b)),((char)(0xaa6+5372-0x1f82)),
-((char)(0x4a1+1741-0xb4e)),((char)(0x9e3+6866-0x2495)),
-((char)(0x2c6+7075-0x1e49)),((char)(0x5ac+8448-0x268c)),
-((char)(0x631+4147-0x1644)),((char)(0x7e0+2220-0x106c)),
-((char)(0xa93+826-0xdac)),(0xe00+3528-0x1ba6),((char)(0x37f+1219-0x81f)),
-(0x228+6429-0x1b43),((char)(0x1936+1751-0x1fe8)),((char)(0x1b51+1478-0x20f1)),
-(0x132f+150-0x139e),((char)(0x1a24+2402-0x235e)),((char)(0x192+6230-0x19bf)),
-((char)(0xcb1+1191-0x112e)),((char)(0x1830+2005-0x1fda)),
-((char)(0xf09+2229-0x1792)),((char)(0x58f+5689-0x1b9b)),
-((char)(0x1746+823-0x1a4f)),((char)(0x1428+1493-0x19ce)),
-((char)(0x3e8+2953-0xf41)),((char)(0xb97+1545-0x116f)),
-((char)(0x1271+4692-0x2493)),((char)(0x1374+1195-0x17ec)),
-((char)(0xf0c+3235-0x1b7b)),((char)(0x655+7142-0x2206)),
-((char)(0x1d6d+2384-0x2687)),((char)(0x17cd+2120-0x1fde)),
-((char)(0x8e9+1651-0xf24)),((char)(0x3c6+7225-0x1fc6)),
-((char)(0x8a5+4995-0x1bee)),((char)(0xfc+3309-0xdae)),
-((char)(0x1221+348-0x1341)),((char)(0x1ead+1641-0x24d9)),
-((char)(0xd9f+4278-0x1e17)),((char)(0x18f8+1004-0x1ca5)),(0x93a+4221-0x19b7),
-((char)(0x109a+3631-0x1e88)),((char)(0x93a+4944-0x1c48)),
-((char)(0x3c6+2555-0xd7e)),((char)(0x32c+2690-0xd6a)),((char)(0x720+77-0x728)),
-((char)(0x2030+1426-0x257c)),((char)(0x1f1d+790-0x21ec)),
-((char)(0x1c70+1752-0x2300)),((char)(0xb97+2761-0x1617)),
-((char)(0xc04+222-0xc98)),((char)(0xc94+1295-0x1158)),
-((char)(0xd78+2341-0x1651)),((char)(0xed9+4057-0x1e65)),
-((char)(0xe90+5046-0x21f8)),((char)(0x971+3446-0x1698)),
-((char)(0x1279+3004-0x1de5)),((char)(0x7cf+3124-0x13b2)),
-((char)(0x49c+7883-0x2315)),((char)(0xb4b+3067-0x16f3)),
-((char)(0x977+4237-0x19b0)),((char)(0x816+3165-0x141e)),
-((char)(0xa24+7123-0x25a1)),((char)(0x1b5+7186-0x1d70)),
-((char)(0x231b+666-0x255d)),((char)(0x1564+1900-0x1c77)),
-((char)(0xd6c+6050-0x24b4)),(0x236a+3782-0x16f4),6959,6974,(0x1b8a+4699-0x12d1),
-(0x14c9+518-0x16be),((char)(0x1555+2257-0x1e06)),((char)(0x1666+71-0x164c)),
-((char)(0x98+5072-0x1406)),((char)(0x196c+3284-0x25dd)),
-((char)(0xfe2+5402-0x2498)),((char)(0x544+6495-0x1e3e)),
-((char)(0x52c+5356-0x19b2)),((char)(0x1e9+6306-0x1a24)),
-((char)(0x24f+1935-0x976)),((char)(0x115+5541-0x1651)),
-((char)(0x120a+5142-0x25b6)),((char)(0x2b5+5050-0x1604)),
-((char)(0x46f+6533-0x1d88)),((char)(0x184c+2845-0x22fc)),
-((char)(0x1b25+1749-0x218c)),((char)(0x4a3+5517-0x19c1)),
-((char)(0x1f03+699-0x214e)),((char)(0x285+3536-0xfe4)),((char)(0x6fc+33-0x6ab)),
-((char)(0x18c7+1376-0x1db4)),((char)(0x9c9+4586-0x1b3f)),
-((char)(0xef9+443-0x103f)),((char)(0x1bf+1211-0x604)),((char)(0x750+1514-0xcc3))
-,((char)(0xdab+1308-0x124f)),((char)(0xc40+6510-0x2535)),
-((char)(0x494+8489-0x2543)),(0x23c0+5861-0x1f7d),6976,(0x210a+237-0x6ce),
-(0x1ef7+2862-0xee8),((char)(0x91d+6470-0x2243)),((char)(0x1db7+1126-0x21fd)),
-((char)(0x1462+2789-0x1f27)),((char)(0x86d+3152-0x149d)),
-((char)(0xc05+4451-0x1d48)),((char)(0x199b+1748-0x204f)),
-((char)(0x43b+3721-0x12a4)),((char)(0x1e0f+700-0x20ab)),
-((char)(0x9b9+2790-0x147f)),((char)(0x9bb+6484-0x22ef)),
-((char)(0x12d8+2823-0x1dbf)),((char)(0x12af+3582-0x208d)),
-((char)(0xadc+6104-0x2294)),((char)(0x83b+4712-0x1a83)),
-((char)(0x698+6512-0x1fe8)),((char)(0x344+6262-0x1b9a)),
-((char)(0xb74+4903-0x1e7b)),((char)(0xf7d+493-0x114a)),
-((char)(0x9eb+7328-0x266b)),((char)(0x706+5380-0x1bea)),
-((char)(0xf3+1189-0x578)),((char)(0x2342+869-0x2687)),
-((char)(0x1985+543-0x1b84)),((char)(0x20ff+1531-0x26da)),
-((char)(0x86+5744-0x16d6)),((char)(0xe1d+3218-0x1a8f)),
-((char)(0x876+2140-0x10b2)),((char)(0x2b7+5016-0x162f)),
-((char)(0x17fd+3133-0x241a)),((char)(0x2ff+5705-0x1928)),
-((char)(0x96b+511-0xb4a)),((char)(0x83f+7003-0x237a)),((char)(0xfa+6638-0x1ac8))
-,((char)(0x41+3385-0xd5a)),(0x123b+3699-0x206e),((char)(0x1525+2635-0x1f50)),
-(0x15c3+23-0x15d9),(0x3dc+6642-0x1daa),(0x1461+1162-0x18e8),
-((char)(0x3c8+2558-0xda6)),(0x16e0+1081-0x1aba),((char)(0x1ad0+1424-0x2040)),
-((char)(0x734+6560-0x20b4)),((char)(0x1875+3744-0x26f5)),
-((char)(0xe8+6027-0x1853)),((char)(0x51+6800-0x1ac1)),
-((char)(0x193d+113-0x198e)),((char)(0xeeb+1968-0x167b)),
-((char)(0x273+4951-0x15aa)),((char)(0x1068+3352-0x1d60)),
-((char)(0x1d1d+1628-0x2359)),((char)(0x1a0+3228-0xe1c)),
-((char)(0x4a1+3666-0x12d3)),((char)(0xfe8+4775-0x226f)),
-((char)(0x11e9+1052-0x15e5)),((char)(0xc63+1488-0x1213)),
-((char)(0x1208+3247-0x1e97)),(0xcfc+5511-0x2278),((char)(0xdcd+400-0xf3d)),
-((char)(0x3b+5096-0x1403)),((char)(0x77b+2157-0xfc8)),
-((char)(0x7dd+4008-0x1765)),((char)(0x641+1600-0xc61)),
-((char)(0x1798+3016-0x2340)),(0x1b61+2166-0x2377),((char)(0xcf8+1896-0x1440)),
-((char)(0xc54+1583-0x1263)),((char)(0x4ff+5476-0x1a43)),
-((char)(0xa6b+6920-0x2553)),(0xa67+4326-0x1af2),(0x4bb+7634-0x227f),
-(0x1892+557-0x1aa3),(0xd51+272-0xe58),((char)(0x1cd6+332-0x1e02)),
-(0x6af+450-0x852),((char)(0x3c+1419-0x5a7)),((char)(0x1ec7+1718-0x255d)),
-((char)(0x2041+518-0x2227)),((char)(0x1ed9+1066-0x22e3)),
-((char)(0xb85+4490-0x1cef)),((char)(0x2077+776-0x235f)),
-((char)(0xf06+2952-0x1a6e)),(0x1608+1030-0x19b1),((char)(0x13d8+949-0x176d)),
-((char)(0xb78+5295-0x2007)),((char)(0xa9c+1286-0xf82)),
-((char)(0x8ef+3553-0x16b0)),(0xc2f+28-0xbef),((char)(0x1a12+1015-0x1de9)),
-((char)(0x6cd+894-0xa2b)),((char)(0x1a14+422-0x1b9a)),((char)(0x1744+93-0x1781))
-,((char)(0x97c+5205-0x1db1)),(0x879+1597-0xe58),((char)(0x689+3070-0x1267)),
-((char)(0x6d2+7504-0x2402)),(0x6b5+7927-0x258e),(0xb1+1728-0x6f2),
-((char)(0xb58+5160-0x1f60)),((char)(0x1365+3336-0x204d)),
-((char)(0xf42+3469-0x1caf)),(0x165d+538-0x17fc),(0xd8d+3984-0x1d0e),
-(0x1d3c+326-0x1e65),((char)(0x1de7+328-0x1f0f)),(0x132c+1026-0x172a),
-(0x1573+141-0x15fb),((char)(0x1516+1051-0x1911)),((char)(0x7c4+7818-0x262e)),
-(0x2102+1298-0x260d),((char)(0x29f+7835-0x211a)),((char)(0x1bf0+2878-0x270e)),
-((char)(0xc24+282-0xd1e)),((char)(0x856+6481-0x2187)),(0xca1+1133-0x1091),
-(0x485+4519-0x1624),((char)(0x707+4237-0x1774)),((char)(0x6df+2860-0x11eb)),
-((char)(0x1384+1669-0x19e9)),(0xa4d+2934-0x1547),((char)(0x4fb+769-0x7dc)),
-(0xa0c+4886-0x1d16),(0x755+5554-0x1d01),((char)(0x375+539-0x570)),
-((char)(0xb7f+6469-0x24a4)),(0x95+2129-0x868),((char)(0x14d3+4-0x14b7)),
-((char)(0x563+7437-0x2250)),((char)(0x13aa+602-0x15e4)),};const unsigned short 
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0xb29+2364-0x1463)]={{
-(0x769+1513-0xd49),(0x6d7+2541-0xfdd)},{(0x13df+2799-0x1ec4),(0x1828+713-0x1ae5)
-},{(0x2dc+5796-0x1973),(0xe33+5048-0x21de)},{(0x14e9+2456-0x1e6d),
-(0x983+6252-0x2191)},{(0x804+376-0x954),(0xb0d+5129-0x1e9b)},{
-(0x297+6727-0x1cb5),(0x1ec+8573-0x22ec)},{(0xf15+3697-0x1d57),
-(0xd8a+1009-0x111f)},{(0x15a+8342-0x21b4),(0xd47+225-0xdcd)},{
-(0x10a+6456-0x1a05),(0x73d+1421-0xc4c)},{(0x350+1919-0xa91),(0x1a57+2102-0x2230)
-},{(0x14f1+3226-0x214b),(0x3d2+8484-0x247a)},{(0x1b25+2539-0x24cf),
-(0x1dea+1178-0x21c3)},{(0x1824+940-0x1b87),(0x16a1+3606-0x23ea)},{
-(0x752+3341-0x1410),(0x1295+4927-0x2501)},{(0x5d9+4414-0x16c2),
-(0x1078+2247-0x1865)},{(0x130a+3418-0x2003),(0x225c+597-0x23d0)},{
-(0xf62+2363-0x1838),8364},{(0x18d9+939-0x1c1b),(0xe9f+6035-0x2545)},{
-(0x84+8028-0x1f71),(0x10dd+3428-0x1d4e)},{(0xb2f+6887-0x25a1),
-(0x22d1+585-0x2420)},};const unsigned short Ucs2_To_Gsm7_SPANISH_Table_UCS[][
-(0x283+1331-0x7b4)]={{(0x1050+1864-0x1788),(0xd88+5330-0x1ec6)},{
-(0x121+7137-0x1cf0),(0x8d0+3362-0x124c)},{(0x7db+164-0x86c),(0x17e4+1945-0x1bea)
-},{(0x153+8548-0x22a3),(0x209c+1960-0x24a9)},{(0xcb+5567-0x1675),
-(0x2444+694-0x2351)},{(0x40+9468-0x2526),(0x1d98+3246-0x26a6)},{
-(0x78b+3813-0x1659),(0xffa+5115-0x204d)},{(0x11a7+154-0x1229),
-(0x26f5+284-0x246e)},{(0x1b1+2010-0x972),(0x1501+41-0x1192)},{
-(0x777+4295-0x1824),(0x833+1454-0xa43)},};const unsigned char 
-Ucs2_To_Gsm7_SPANISH_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x7b2+5473-0x1d09),NON_GSM,NON_GSM,
-(0xd20+3446-0x1a89),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+short g_zUfiSms_AsciiToGsmdefaultTable[]={((char)(0x208+330-0x332)),
+((char)(0x97b+5759-0x1fda)),((char)(0x92+1508-0x656)),
+((char)(0x12c8+829-0x15e5)),((char)(0xb85+3682-0x19c7)),
+((char)(0x63d+2260-0xef1)),((char)(0x11f4+2973-0x1d71)),
+((char)(0xa08+5423-0x1f17)),((char)(0x3b2+8801-0x25f3)),
+((char)(0x184b+302-0x1959)),((char)(0x377+7840-0x21f7)),
+((char)(0x692+6229-0x1ec7)),((char)(0x1dd2+517-0x1fb7)),((char)(0xa29+69-0xa4e))
+,((char)(0x3e8+6618-0x1da2)),((char)(0x6b3+194-0x755)),
+((char)(0xfe4+5193-0x240d)),((char)(0x29+8353-0x20aa)),
+((char)(0x1310+2738-0x1da2)),((char)(0x101d+5026-0x239f)),
+((char)(0x965+6078-0x2103)),((char)(0x1c1d+696-0x1eb5)),
+((char)(0x90d+2640-0x133d)),((char)(0xa77+3076-0x165b)),
+((char)(0x950+5846-0x2006)),((char)(0x84f+235-0x91a)),
+((char)(0x11fb+1534-0x17d9)),((char)(0x710+5978-0x1e4a)),
+((char)(0x1723+1410-0x1c85)),((char)(0x3fa+282-0x4f4)),
+((char)(0x981+6183-0x2188)),((char)(0x79d+7961-0x2696)),
+((char)(0x270+8716-0x245c)),((char)(0x33c+9202-0x270d)),(0x16e1+327-0x1806),
+((char)(0x4d8+2823-0xfbc)),(0x1e08+2174-0x2684),((char)(0x4e9+4549-0x1689)),
+((char)(0x8a2+3101-0x1499)),(0x1186+1292-0x166b),((char)(0x6a+1540-0x646)),
+((char)(0x1328+2235-0x1bba)),((char)(0x129b+3907-0x21b4)),
+((char)(0x45c+5531-0x19cc)),((char)(0x1387+1422-0x18e9)),
+((char)(0x42b+5918-0x1b1c)),((char)(0x1810+3245-0x248f)),
+((char)(0x15d0+2499-0x1f64)),((char)(0xf75+4445-0x20a2)),
+((char)(0xb6c+2548-0x152f)),((char)(0xd71+3992-0x1cd7)),
+((char)(0x734+6961-0x2232)),((char)(0x64f+5557-0x1bd0)),
+((char)(0xd25+5379-0x21f3)),((char)(0xd7d+6106-0x2521)),
+((char)(0x14c2+3573-0x2280)),((char)(0x54b+7352-0x21cb)),
+((char)(0xbac+2372-0x14b7)),((char)(0x1db1+1645-0x23e4)),
+((char)(0x5c1+5177-0x19bf)),((char)(0x19f+5275-0x15fe)),
+((char)(0x282+4258-0x12e7)),((char)(0x1003+2659-0x1a28)),
+((char)(0x1835+2658-0x2258)),(0x91f+2492-0x12db),((char)(0x1153+2224-0x19c2)),
+((char)(0x599+4094-0x1555)),((char)(0x2187+994-0x2526)),
+((char)(0x8c0+6277-0x2101)),((char)(0xa8+1164-0x4ef)),
+((char)(0x664+4411-0x1759)),((char)(0xa77+4832-0x1d10)),
+((char)(0x175a+2081-0x1f33)),((char)(0x1535+3916-0x2438)),
+((char)(0x1244+1982-0x19b8)),((char)(0x3a3+6995-0x1eab)),
+((char)(0xa96+1101-0xe97)),((char)(0x15c2+3472-0x2305)),
+((char)(0x5df+4518-0x1737)),((char)(0x19d6+686-0x1c35)),
+((char)(0x1257+1304-0x171f)),((char)(0x1383+3265-0x1ff3)),
+((char)(0x3bb+7892-0x223d)),((char)(0x1b40+1502-0x20cb)),
+((char)(0x25d+3953-0x117a)),((char)(0xa32+1712-0x108d)),
+((char)(0x879+4091-0x181e)),((char)(0x16bc+197-0x172a)),
+((char)(0x1f13+904-0x2243)),((char)(0xf38+16-0xeef)),((char)(0x6a3+5750-0x1cbf))
+,(0x22e2+6276-0x202a),(0x240b+431-0xa8b),(0x2468+5270-0x1dc0),
+(0x1d38+3544-0xffc),(0x25f+7115-0x1e19),((char)(0x5f9+523-0x7e4)),
+((char)(0xf31+3616-0x1cf0)),((char)(0x414+2593-0xdd3)),
+((char)(0x3c0+7585-0x20fe)),((char)(0x11d4+3207-0x1df7)),
+((char)(0x10dd+5133-0x2485)),((char)(0xbc0+4570-0x1d34)),
+((char)(0x47a+3378-0x1145)),((char)(0xd52+2912-0x184a)),
+((char)(0xf36+1033-0x12d6)),((char)(0x10bf+2990-0x1c03)),
+((char)(0xa11+5856-0x2086)),((char)(0x4c2+5826-0x1b18)),
+((char)(0x574+3159-0x115e)),((char)(0x8ab+1606-0xe83)),
+((char)(0x541+6290-0x1d64)),((char)(0xb3+2091-0x86e)),((char)(0xaf5+857-0xddd)),
+((char)(0x1ef9+988-0x2263)),((char)(0x1860+1143-0x1c64)),
+((char)(0x1082+438-0x11c4)),((char)(0x20d5+381-0x21dd)),
+((char)(0x43b+3990-0x135b)),((char)(0xc3+8491-0x2177)),
+((char)(0x88c+4129-0x1835)),((char)(0x15ac+736-0x1813)),
+((char)(0xaf7+2804-0x1571)),6952,6976,6953,(0x1c40+7120-0x1cd3),
+((char)(0x5a9+3995-0x1524)),((char)(0xbc+7571-0x1e2f)),
+((char)(0x120+8041-0x2069)),((char)(0xf74+4922-0x228e)),
+((char)(0x5c3+4121-0x15bc)),((char)(0xb03+3338-0x17ed)),
+((char)(0x1352+1535-0x1931)),((char)(0x1dea+2273-0x26ab)),
+((char)(0x115+3461-0xe7a)),((char)(0x137f+3449-0x20d8)),
+((char)(0x987+7221-0x259c)),((char)(0x653+2043-0xe2e)),
+((char)(0x564+1898-0xcae)),((char)(0x42f+3425-0x1170)),
+((char)(0x5ed+2942-0x114b)),((char)(0x2249+1092-0x266d)),
+((char)(0x1401+4469-0x2556)),((char)(0x1932+2490-0x22cc)),
+((char)(0x7d8+173-0x865)),((char)(0x10ff+4530-0x2291)),
+((char)(0xdf2+3041-0x19b3)),((char)(0xbe2+3568-0x19b2)),
+((char)(0x68c+1793-0xd6d)),((char)(0x1f4f+221-0x200c)),
+((char)(0x1d55+2153-0x259e)),((char)(0x1e6f+474-0x2029)),
+((char)(0xf0b+1724-0x15a7)),((char)(0xc2c+6874-0x26e6)),
+((char)(0xd35+3106-0x1937)),((char)(0x394+2101-0xba9)),
+((char)(0x1363+979-0x1716)),((char)(0xba+2114-0x8dc)),
+((char)(0x1f08+1676-0x2574)),((char)(0x77b+3506-0x150d)),(0x98a+1111-0xda1),
+((char)(0x2c8+6405-0x1bad)),(0xc25+743-0xf0b),(0xc35+3628-0x1a3d),
+(0x1534+751-0x1820),((char)(0x605+4140-0x1611)),(0x1c91+2098-0x2464),
+((char)(0x12c7+4436-0x23fb)),((char)(0x15c6+4454-0x270c)),
+((char)(0x1068+3026-0x1c1a)),((char)(0x1fa5+403-0x2118)),
+((char)(0x230+266-0x31a)),((char)(0x1454+1542-0x1a3a)),
+((char)(0x683+5651-0x1c76)),((char)(0x1e4c+1795-0x252f)),
+((char)(0x942+4512-0x1ac2)),((char)(0x5b0+2840-0x10a8)),
+((char)(0x9f5+177-0xa86)),((char)(0xd5b+6055-0x24e2)),
+((char)(0xdea+1035-0x11d5)),((char)(0x2c5+7745-0x20e6)),
+((char)(0xf87+2102-0x179d)),((char)(0xd26+3598-0x1b14)),(0x3b9+6022-0x1b34),
+((char)(0x125a+4413-0x2377)),((char)(0x1a30+1369-0x1f69)),
+((char)(0xc85+4579-0x1e48)),((char)(0xa43+4816-0x1cf3)),
+((char)(0x220a+1201-0x269b)),((char)(0x15d6+3910-0x24fc)),(0x6bf+8108-0x260b),
+((char)(0xbd1+5428-0x20e5)),((char)(0xb28+5008-0x1e98)),
+((char)(0x1805+639-0x1a64)),((char)(0xc86+2576-0x1676)),(0x142a+3080-0x1fd7),
+(0x58+1111-0x4a1),(0x669+5387-0x1b58),(0xf6f+3493-0x1d0b),
+((char)(0x2f+4440-0x1167)),(0x708+1188-0xb8d),((char)(0x1a7+7627-0x1f52)),
+((char)(0x1861+1430-0x1dd7)),((char)(0x12a6+4813-0x2553)),
+((char)(0x1b74+2472-0x24fc)),((char)(0xa67+910-0xdd5)),
+((char)(0x3b0+4481-0x1511)),((char)(0x1f36+109-0x1f83)),(0x41c+5203-0x1812),
+((char)(0x613+6825-0x209c)),((char)(0xd7d+4034-0x1d1f)),
+((char)(0x12cd+3453-0x202a)),((char)(0x1f1d+1230-0x23cb)),(0x12a0+4196-0x22a8),
+((char)(0x510+7563-0x227b)),((char)(0x1d88+2365-0x26a5)),
+((char)(0x1ec4+993-0x2285)),((char)(0x1fd6+1465-0x256f)),
+((char)(0xf5b+4245-0x1fd0)),(0x116c+5014-0x24a4),((char)(0xaf5+6460-0x2411)),
+((char)(0x15cd+1126-0x1a13)),(0x85a+1499-0xe17),(0xe97+2791-0x18ff),
+((char)(0x2b0+5988-0x19f4)),((char)(0x1500+2528-0x1ec0)),
+((char)(0x107a+5108-0x244e)),(0x1ed+3469-0xeff),(0x59a+7952-0x249b),
+(0x861+3132-0x1480),((char)(0x263+3559-0x102a)),(0x1494+1807-0x1b9f),
+(0x904+3400-0x1647),((char)(0x1bc5+1230-0x2073)),((char)(0x737+3407-0x1466)),
+(0x13c+3999-0x10d4),((char)(0x459+2676-0xead)),((char)(0x10ad+2196-0x1921)),
+((char)(0x1971+1296-0x1e61)),((char)(0x1408+1372-0x1944)),(0x101+2883-0xbc7),
+(0x450+6099-0x1c1b),((char)(0x110d+662-0x1383)),((char)(0x1ea+8105-0x2173)),
+((char)(0x13d4+1680-0x1a44)),(0x24b+4668-0x140b),((char)(0xbb9+433-0xd4a)),
+(0xa90+5625-0x207d),(0x296+1392-0x800),((char)(0x15a1+2743-0x2038)),
+((char)(0xf2a+1281-0x140b)),(0x519+8318-0x2519),((char)(0x1b8+5247-0x1617)),
+((char)(0x1177+570-0x1391)),((char)(0x11db+2473-0x1b64)),};const unsigned short 
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0x14b0+2340-0x1dd2)]={{
+(0x233d+43-0x235f),(0xb10+2469-0x13ce)},{(0xbcd+1080-0xffb),(0x6c+7417-0x1d59)},
+{(0x15e9+2733-0x2089),(0x13a2+281-0x14ae)},{(0x105d+197-0x110e),
+(0xe52+1968-0x15a4)},{(0x171d+85-0x174a),(0x78b+7014-0x2276)},{
+(0x8d7+2905-0x1407),(0x5d3+3019-0x1121)},{(0x6ac+8094-0x261b),
+(0x2034+1047-0x23ef)},{(0x5a5+2990-0x1117),(0xb84+6829-0x25d6)},{
+(0x1076+4826-0x2313),(0x65a+127-0x65b)},{(0x1a8d+1360-0x1f9f),
+(0x16bd+3098-0x227a)},{(0x13fd+746-0x16a7),(0x399+6183-0x1b44)},{
+(0x13d8+4108-0x23a3),(0x127a+1041-0x15ca)},{(0x12d4+778-0x1595),
+(0xe42+5768-0x23fd)},{(0xc91+6144-0x2442),(0x527+1500-0xa30)},{
+(0xa72+5105-0x1e0e),(0x12fc+4210-0x2294)},{(0x196a+180-0x19bd),
+(0x2194+27-0x20ce)},{(0x853+7293-0x246b),(0x22c7+5012-0x15af)},{
+(0xee0+5004-0x2203),(0x1387+3175-0x1f01)},{(0x1095+3340-0x1d32),
+(0x1c0+7304-0x1d55)},{(0x1170+4045-0x20c8),(0x8b1+2981-0x135c)},};const unsigned
+ short Ucs2_To_Gsm7_SPANISH_Table_UCS[][(0x797+2377-0x10de)]={{(0xcf2+85-0xd37),
+(0x1ae7+130-0x17d5)},{(0x542+2827-0x103b),(0x15fa+2665-0x1cbd)},{
+(0x1367+2313-0x1c5d),(0x61d+5618-0x187c)},{(0xee2+2579-0x18e1),
+(0x7ec+3877-0x1376)},{(0x118a+1347-0x16b8),(0x1a73+592-0x191a)},{
+(0x2c+7093-0x1bcb),(0xacf+2900-0x1283)},{(0x38d+743-0x65d),(0x1dff+2796-0x2543)}
+,{(0x4cc+4728-0x172c),(0x74f+1610-0x9f6)},{(0x200+5709-0x1834),
+(0x57c+8308-0x2258)},{(0x4e9+7367-0x2196),(0x20f0+1891-0x24b5)},};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,(0x13ff+868-0x1759),NON_GSM,NON_GSM,
+(0x4ff+4417-0x1633),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
 NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x385+5981-0x1ac2),(0x107+5050-0x14a0),(0x51f+8094-0x249b),
-(0x894+3621-0x1696),(0x1c2d+658-0x1ebd),(0x216+7661-0x1fde),(0xae8+3335-0x17c9),
-(0x226+2481-0xbb0),(0x11d7+1239-0x1686),(0x1536+2491-0x1ec8),
-(0x1574+1946-0x1ce4),(0x15a8+4239-0x260c),(0xe4b+600-0x1077),(0xd65+2105-0x1571)
-,(0xb18+3669-0x193f),(0x130a+3362-0x1ffd),(0x2b2+8493-0x23af),
-(0x128+8286-0x2155),(0xfbf+5551-0x253c),(0xc9b+5855-0x2347),(0x181+9478-0x2653),
-(0x980+1301-0xe60),(0x124b+4854-0x250b),(0x198+7780-0x1fc5),(0x1c42+233-0x1cf3),
-(0x1d9b+1698-0x2404),(0x11af+432-0x1325),(0x147b+4245-0x24d5),(0xac4+217-0xb61),
-(0xed3+3028-0x1a6a),(0x166b+2841-0x2146),(0x108c+4933-0x2392),
-(0x1233+3639-0x206a),(0xe1a+5746-0x244b),(0x1d9f+1582-0x238b),
-(0xb8b+4241-0x1bd9),(0x2b9+493-0x462),(0x783+4318-0x181c),(0xf8a+4633-0x215d),
-(0xb89+1068-0xf6e),(0xacd+2138-0x12df),(0x23b1+895-0x26e7),(0x2b5+3502-0x1019),
-(0x88f+7769-0x269d),(0x312+4353-0x13c7),(0x738+2677-0x1160),(0x1068+2804-0x1b0e)
-,(0xf2a+896-0x125b),(0xa96+5493-0x1fbb),(0x11af+3385-0x1e97),(0x52c+1048-0x8f2),
-(0x6e7+1991-0xe5b),(0x544+8665-0x26c9),(0xdd1+5028-0x2120),(0x83a+1509-0xdc9),
-(0x111b+2781-0x1ba1),(0x122f+219-0x12b2),(0x15f5+4302-0x266a),(0x291+3068-0xe33)
-,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x78d+7078-0x2322),NON_GSM,(0x383+2299-0xc1d),
-(0xd9d+4576-0x1f1b),(0x17b5+3629-0x257f),(0x11ad+1803-0x1854),
-(0x5f9+6582-0x1f4a),(0x11d+2603-0xae2),(0xbd5+5820-0x222a),(0xd2c+5583-0x2293),
-(0x809+450-0x962),(0x1231+2599-0x1bee),(0xe44+1440-0x1379),(0x474+488-0x5f0),
-(0x457+7150-0x1fd8),(0x42a+8062-0x233a),(0x657+3802-0x14c2),(0x5ca+6271-0x1dd9),
-(0x401+8290-0x23f2),(0xafc+3060-0x167e),(0x1533+401-0x1651),(0xaac+350-0xb96),
-(0x1d12+269-0x1daa),(0xa4a+2928-0x1544),(0x51d+6211-0x1ce9),(0xde4+1917-0x14e9),
-(0x772+4218-0x1773),(0x109d+4643-0x2246),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
+NON_GSM,(0x26d+5720-0x18a5),(0x832+3306-0x14fb),(0xbd8+3873-0x1ad7),
+(0x19ff+2669-0x2449),(0x678+3286-0x134c),(0x3ac+1975-0xb3e),(0xfcb+5509-0x252a),
+(0xde2+3041-0x199c),(0x1901+2616-0x2311),(0x516+7085-0x209a),
+(0x18d8+3009-0x246f),(0xf06+2876-0x1a17),(0x1aab+2770-0x2551),(0x257+1391-0x799)
+,(0x36d+2321-0xc50),(0x237+7447-0x1f1f),(0xbf4+3481-0x195d),(0x103+7608-0x1e8a),
+(0x65b+6568-0x1fd1),(0xcd+1943-0x831),(0x983+6726-0x2395),(0x64a+2358-0xf4b),
+(0x11a9+3319-0x1e6a),(0x3c+6396-0x1901),(0x557+4920-0x1857),(0x123f+1009-0x15f7)
+,(0x1467+43-0x1458),(0x4c+2649-0xa6a),(0x1025+861-0x1346),(0x1054+3460-0x1d9b),
+(0x9c0+4349-0x1a7f),(0x186b+1213-0x1ce9),(0xb05+5681-0x2136),(0x1a4+2233-0xa1c),
+(0x39f+6903-0x1e54),(0x172b+2197-0x1f7d),(0x4eb+3446-0x121d),(0x13e7+937-0x174b)
+,(0xc01+2119-0x1402),(0x1b98+1487-0x2120),(0x1ba3+109-0x1bc8),
+(0x811+6055-0x1f6f),(0x7f0+6100-0x1f7a),(0x1f5+1727-0x869),(0x19b0+2905-0x24bd),
+(0x1b76+2207-0x23c8),(0x1892+2791-0x232b),(0x531+8131-0x24a5),(0x114+105-0x12d),
+(0xd3a+2584-0x1701),(0x1bb1+2570-0x2569),(0x7dc+1746-0xe5b),(0xb55+2273-0x13e2),
+(0xdb2+1701-0x1402),(0x7f0+7516-0x24f6),(0x149+335-0x241),(0x10f9+123-0x111c),
+(0x2205+1121-0x260d),(0xe74+1260-0x1306),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x104+6555-0x1a8e),NON_GSM,(0x5f9+7886-0x2466),(0x233+3328-0xed1),
+(0x1f72+36-0x1f33),(0x42d+1838-0xaf7),(0x100f+1585-0x15db),(0x1952+3494-0x2692),
+(0x1ada+42-0x1a9d),(0x2d8+1990-0xa36),(0x1171+330-0x1252),(0x116b+2406-0x1a67),
+(0xb06+2356-0x13cf),(0x17e9+2059-0x1f88),(0xe66+6098-0x25cb),(0x9f7+850-0xcdb),
+(0xe3c+1403-0x1348),(0xcf2+2944-0x1802),(0x1e25+409-0x1f4d),(0x2ba+3076-0xe4c),
+(0x1d83+883-0x2083),(0xaf9+6864-0x2555),(0x1a68+2046-0x21f1),(0x86c+17-0x807),
+(0x1006+1107-0x13e2),(0x1967+2071-0x2106),(0x1f2+2337-0xa9a),(0x156d+284-0x160f)
 ,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
 ,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
 ,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
-,NON_GSM,NON_GSM,(0x635+1922-0xd9c),(0xed+3174-0xd13),NON_GSM,
-(0x1af9+267-0x1c03),(0x16c3+2086-0x1ec5),(0x8b2+1105-0xd00),NON_GSM,
-(0xc64+2071-0x141c),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1448+2786-0x1f0f),
+(0xa1c+2238-0x129a),NON_GSM,(0x5ed+2397-0xf49),(0x120a+107-0x1251),
+(0x162b+3099-0x2243),NON_GSM,(0x80f+6771-0x2223),NON_GSM,NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x166+1293-0x613),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xecd+4523-0x201d),
+(0x218d+345-0x22d8),(0x12d2+3450-0x2030),(0x88a+5970-0x1fd3),NON_GSM,
+(0xb5a+145-0xbcc),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x177f+65-0x1763),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x190c+3553-0x2691),NON_GSM,
+(0x19bc+2956-0x253d),NON_GSM,NON_GSM,NON_GSM,(0x8af+4818-0x1b23),NON_GSM,NON_GSM
+,(0x31+2136-0x86b),(0x1776+1650-0x1d69),NON_GSM,NON_GSM,NON_GSM,
+(0x15b4+1554-0x1b4b),(0x9b5+5277-0x1e43),(0x9c2+2107-0x11e0),NON_GSM,
+(0x2166+569-0x239b),(0xa3d+744-0xd20),NON_GSM,NON_GSM,(0x1b3+7737-0x1fe5),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x288+8299-0x2276),(0x28+7724-0x1e4c),NON_GSM,
+NON_GSM,NON_GSM,(0x8d7+2501-0x1220),NON_GSM,(0x1f8c+1314-0x24a2),
+(0x7e6+2375-0x1127),NON_GSM,NON_GSM,(0x244b+130-0x244f),NON_GSM,NON_GSM,NON_GSM}
+;const unsigned short zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][
+(0x13db+1223-0x18a0)]={{(0x608+2318-0xf11),(0x1723+2120-0x1e81)},{
+(0x1707+1781-0x1df3),(0x1105+760-0x1316)},{(0x1e9+4376-0x12f7),
+(0x2145+1373-0x2696)},{(0x542+8243-0x256a),(0x818+4095-0x1743)},{
+(0xc35+2594-0x164b),(0x24b+5590-0x172d)},{(0x210f+202-0x21cc),(0x108+5-0x100)},{
+(0xc6+4324-0x119c),(0x639+227-0x65b)},{(0x719+1939-0xe9d),(0x130a+4184-0x2281)},
+{(0x749+6193-0x1f68),(0x110f+2880-0x18a9)},{(0x1033+4322-0x2102),
+(0xa87+1019-0xaef)},{(0x9ea+148-0xa6a),(0x20e6+1488-0x2658)},{
+(0x50f+3197-0x1177),(0xe27+5912-0x2196)},{(0x18f1+1703-0x1f82),
+(0x242b+719-0x235a)},{(0x1744+2663-0x2194),(0xde7+5110-0x1e35)},{
+(0x41d+6453-0x1d3a),(0x1721+914-0x1710)},{(0xa51+7218-0x266a),
+(0x9c9+5431-0x1b68)},{(0x62a+5264-0x1a9b),(0x1cc8+2460-0x259a)},{
+(0x1d9c+2021-0x2559),(0xca3+2981-0x17cd)},{(0x3a8+5478-0x18e5),
+(0x182c+597-0x1a04)},{(0x2452+58-0x245d),(0x2306+567-0x24e1)},{
+(0xed+3962-0x102b),(0x7f0+5413-0x1cba)},{(0x13ad+3061-0x1f65),
+(0x76d+5825-0x1db0)},{(0xbcb+1978-0x1347),(0x2091+620-0x22a0)},{
+(0x6c7+1872-0xdd7),(0x93+5670-0x163d)},{(0x1c9a+552-0x1e81),(0x390+1152-0x750)},
+{(0xd29+6579-0x2693),(0x22c5+333-0x2345)},{(0xec6+4967-0x21de),
+(0x340+1940-0xa01)},{(0x1f71+283-0x2037),(0x2502+161-0x24c9)},{
+(0x8fb+7245-0x24ed),(0x115+2415-0x9c1)},{(0x15f1+2687-0x2014),(0x30a+3067-0xe30)
+},{(0xda9+1244-0x1224),(0x862+710-0xa66)},{(0x1241+1407-0x175b),8364},{
+(0x2200+893-0x2514),(0x14ed+3843-0x2303)},{(0x1ef+6225-0x19d1),
+(0x350+1416-0x7e5)},{(0x6bf+1412-0xbce),(0xf1b+2972-0x19bd)},{
+(0x2ca+6380-0x1b3b),(0x11c5+4224-0x2162)},{(0x1539+515-0x16c0),
+(0x12e4+571-0x142a)},{(0x6e0+5055-0x1a20),(0x763+5763-0x1d04)},};const unsigned 
+short Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][(0x36b+7206-0x1f8f)]={{
+(0x2ff+3678-0x114d),(0x684+4709-0x1555)},{(0x755+4942-0x1a8e),
+(0x25a7+5507-0x1849)},{(0x17af+397-0x1924),8364},{(0x30c+5149-0x16c4),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,(0xf68+4332-0x204a),
+NON_GSM,NON_GSM,(0x1a3+3932-0x10f2),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
 NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1430+4678-0x2616),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0xba+3870-0xf7d),(0x1d25+1527-0x230e),
-(0x85d+6006-0x1fb7),(0x1a11+3053-0x25f5),NON_GSM,(0xa80+6996-0x25b5),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x20f7+1203-0x254d),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0x18f+2911-0xc92),NON_GSM,(0x25f+1985-0xa15),NON_GSM,
-NON_GSM,NON_GSM,(0x1486+291-0x154b),NON_GSM,NON_GSM,(0x1b16+357-0x1c5d),
-(0x5b7+3149-0x1185),NON_GSM,NON_GSM,NON_GSM,(0x9ef+2391-0x12cb),
-(0x948+4524-0x1ae5),(0x1246+2994-0x1ddb),NON_GSM,(0x112+9117-0x24ab),
-(0xc43+3217-0x18cf),NON_GSM,NON_GSM,(0x146+7929-0x2038),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x1888+352-0x196b),(0x12fa+2822-0x1df8),NON_GSM,NON_GSM,NON_GSM,
-(0x1901+1793-0x1f86),NON_GSM,(0x439+4370-0x153f),(0xa89+4261-0x1b28),NON_GSM,
-NON_GSM,(0x117f+3810-0x1fe3),NON_GSM,NON_GSM,NON_GSM};const unsigned short 
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][(0x1299+4214-0x230d)]={{
-(0x24a3+518-0x26a4),(0x2c6+4808-0x14a4)},{(0x1395+4755-0x261f),
-(0x15db+4086-0x24ea)},{(0x5c+5008-0x13e2),(0x131f+1863-0x1a5a)},{
-(0x1006+4179-0x204e),(0x605+339-0x684)},{(0x69+7219-0x1c90),(0x2e9+9150-0x25b3)}
-,{(0x11e5+5129-0x25e1),(0xb46+1464-0x10f1)},{(0x64c+4235-0x16c9),
-(0xd00+1792-0x133f)},{(0x463+1307-0x96f),(0x1831+3137-0x2391)},{
-(0x4b3+6928-0x1fb1),(0x54f+6196-0x19dd)},{(0x990+6602-0x2347),
-(0x700+7280-0x1fdd)},{(0xe54+652-0x10cc),(0x1490+1031-0x1839)},{
-(0x19ec+1279-0x1ed6),(0x11a2+2586-0x1813)},{(0x994+5967-0x20cd),
-(0x1608+3415-0x1fbf)},{(0x12f0+2073-0x1af2),(0x16ac+2710-0x1d9a)},{
-(0x253+300-0x367),(0x91c+2795-0x1064)},{(0x23f+5525-0x17bb),(0x4a6+1398-0x684)},
-{(0x1a8f+1607-0x20b7),(0x669+5942-0x1cd5)},{(0x1923+3048-0x24e3),
-(0xd6b+5541-0x2295)},{(0xcbf+1818-0x13b0),(0x41b+4493-0x152b)},{
-(0x696+120-0x6df),(0x10a+4-0xb2)},{(0x6b9+4820-0x1951),(0xfb0+5378-0x2457)},{
-(0x117+4501-0x126f),(0xf68+3773-0x1da7)},{(0x942+1744-0xfd4),(0xc4+9732-0x266b)}
-,{(0x97b+2070-0x1151),(0x1720+724-0x1978)},{(0x117+2237-0x993),
-(0xe2d+3754-0x1c17)},{(0x85+2073-0x855),(0xd38+1522-0x125d)},{
-(0x8a8+2560-0x1259),(0x1049+399-0x1105)},{(0x1b31+1384-0x2044),
-(0x1642+3172-0x21cc)},{(0x63+20-0x1c),(0x141a+2194-0x1be9)},{(0x665+3908-0x154d)
-,(0x12a3+4932-0x2512)},{(0x1235+4353-0x22d5),(0x192+585-0x319)},{
-(0x101b+5062-0x237c),8364},{(0x15bd+3118-0x2182),(0x118b+4510-0x223c)},{
-(0x2d0+954-0x61b),(0x1ba6+149-0x1b48)},{(0x404+2465-0xd30),(0x223c+996-0x2526)},
-{(0x1370+2494-0x1cb3),(0x1bdc+1052-0x1f15)},{(0x818+7363-0x245f),
-(0x1678+607-0x17e2)},{(0x3e6+5792-0x1a07),(0x66a+6831-0x2037)},};const unsigned 
-short Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][(0x1299+1936-0x1a27)]={{
-(0x809+6853-0x22be),(0xc5c+6610-0x229a)},{(0xf25+4195-0x1f73),(0x259b+231-0x3a1)
-},{(0xcff+5746-0x2359),8364},{(0x1e18+51-0x1de6),8364},};const unsigned char 
-Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x41c+372-0x586),NON_GSM,NON_GSM,
-(0x1d0+7938-0x20c5),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x1389+2980-0x1f0d),(0x3dd+8510-0x24fa),(0x15c4+2280-0x1e8a),
-(0x11dc+2281-0x1aa2),(0x1c5+5966-0x1911),(0x283+6208-0x1a9e),(0x85c+547-0xa59),
-(0x34c+6577-0x1cd6),(0x4e7+779-0x7ca),(0x1fbf+490-0x2180),(0x8b2+7350-0x253e),
-(0x1d7+63-0x1eb),(0x199+9266-0x259f),(0x3d5+3416-0x1100),(0x65b+1633-0xc8e),
-(0x2287+1054-0x2676),(0x2f2+7878-0x2188),(0x1456+4476-0x25a1),
-(0x170b+1727-0x1d98),(0x2a7+7200-0x1e94),(0x234+8925-0x24dd),(0x99a+135-0x9ec),
-(0x61c+7274-0x2250),(0x21b3+1013-0x2571),(0x1775+3042-0x231f),(0x7bf+762-0xa80),
-(0x47+1613-0x65a),(0x293+2063-0xa67),(0x1116+3039-0x1cb9),(0x1ef+3052-0xd9e),
-(0x9e9+3227-0x1646),(0xa2f+4972-0x1d5c),(0xec7+5855-0x25a6),(0x752+92-0x76d),
-(0x794+2906-0x12ac),(0x521+6553-0x1e77),(0xd10+3045-0x18b1),(0x2220+786-0x24ed),
-(0x7cf+7387-0x2464),(0x22ef+945-0x2659),(0x4af+3757-0x1314),(0x10cd+4453-0x21e9)
-,(0x1242+1838-0x1926),(0xbf+6104-0x184c),(0x46a+8657-0x25ef),(0x61c+1325-0xafc),
-(0x1c51+1757-0x22e0),(0x164a+2989-0x21a8),(0xb70+6891-0x260b),
-(0xa8f+5197-0x1e8b),(0x11b4+2166-0x19d8),(0x341+1347-0x831),(0x16a0+3087-0x225b)
-,(0x1eab+1748-0x252a),(0x804+4490-0x1938),(0x1349+3658-0x213c),
-(0x89d+2851-0x1368),(0x421+3256-0x1080),(0x14db+3851-0x238c),NON_GSM,
-(0x110f+5229-0x2565),NON_GSM,(0x1020+2852-0x1b2e),(0x1d4d+601-0x1f95),
-(0x16e8+2160-0x1edb),(0x1bb1+348-0x1cac),(0x116f+5062-0x24d3),
-(0x4f3+6972-0x1fcc),(0x1686+4069-0x2607),(0x27d+8090-0x21b2),(0x17b5+44-0x177b),
-(0x13d8+1746-0x1a43),(0x1a7c+2389-0x2369),(0x993+1791-0x1029),
-(0x1fa7+1753-0x2616),(0xb1f+6813-0x2551),(0x7dc+5814-0x1e26),
-(0x1857+2193-0x207b),(0x976+1866-0x1052),(0x479+1403-0x985),(0x1363+4718-0x2561)
-,(0xcd9+6540-0x25f4),(0x178+7687-0x1f0d),(0xb7a+2187-0x1392),(0x4f3+858-0x7d9),
-(0x8e5+2938-0x13ea),(0x5f9+172-0x62f),(0x810+1192-0xc41),(0x1501+2095-0x1cb8),
-(0x6e2+2156-0xed5),(0x1553+672-0x1779),NON_GSM,(0x455+6285-0x1cc8),NON_GSM,
-(0xea9+767-0x1148),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x93d+1973-0x10d7),NON_GSM_P,
-NON_GSM,(0x906+2556-0x1301),NON_GSM_P,(0x27a+7613-0x2034),NON_GSM,
-(0x10ff+2641-0x1af1),NON_GSM,NON_GSM,(0x1d17+2485-0x26ba),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0x215b+558-0x2365),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x57c+6574-0x1f16),(0x1502+3795-0x23c7),(0x1994+3118-0x25a6),
-(0x814+4944-0x1b09),NON_GSM_P,NON_GSM_P,NON_GSM_P,(0xfb+8330-0x2172),NON_GSM,
-(0xc1a+5919-0x231a),(0x8d1+2825-0x13bc),NON_GSM,NON_GSM,(0x1e43+1143-0x227a),
-NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM,(0xf1+7088-0x1c88),(0x17c+3643-0xfac),
-(0x618+3992-0x1554),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM,(0x1720+1082-0x1afd),
-NON_GSM,(0x8f4+2735-0x1345),NON_GSM,NON_GSM,NON_GSM_P,(0x11e5+3645-0x1fa3),
-(0x1029+3424-0x1d7a),(0x2f7+727-0x5b1),(0xa5c+370-0xb53),NON_GSM_P,NON_GSM_P,
-NON_GSM_P,(0x800+3055-0x13e6),NON_GSM_P,(0x63f+4735-0x18b9),(0x4f0+826-0x826),
-NON_GSM,NON_GSM_P,(0x963+3101-0x1579),NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,
-NON_GSM_P,(0x2389+590-0x25cf),(0x2d+6489-0x197a),(0x2f8+209-0x34d),NON_GSM_P,
-NON_GSM,NON_GSM_P,NON_GSM_P,(0xe8d+3717-0x1d0c),NON_GSM,(0x1af0+352-0x1bd2),
-NON_GSM,NON_GSM,NON_GSM};const unsigned short 
-zte_sms_GSMDefault_To_UCS2_Table_Ex[][(0x41a+7550-0x2196)]={{(0xb76+508-0xd68),
-(0x1e9a+1293-0x239b)},{(0x12c2+3993-0x2247),(0x398+6096-0x1b0a)},{
-(0x13bc+345-0x14ed),(0x1cd+4192-0x11b2)},{(0xf5b+5718-0x2588),
-(0x7a4+3386-0x1461)},{(0x20bb+346-0x21e6),(0x241+5076-0x15b9)},{
-(0x52d+7056-0x2081),(0x1509+876-0x181a)},{(0x32d+9004-0x261c),
-(0x1b2+8022-0x208a)},{(0xd0d+4359-0x1dd6),(0xa4b+3040-0x15ce)},{
-(0x13d4+1409-0x1915),(0x3b3+2050-0xb39)},{(0x1b6+1984-0x911),8364},};const 
-unsigned short UCS2_To_GSMDefault_Table_UCS2[][(0x1094+4360-0x219a)]={{
-(0x45a+7808-0x22ca),(0xf81+5091-0x1fd0)},{(0x510+7889-0x23cf),
-(0x16fb+3029-0x1f2a)},{(0x116d+989-0x1537),(0xfc4+4410-0x1d6b)},{
-(0x105f+2853-0x1b70),(0x1671+3465-0x205f)},{(0x6f3+6057-0x1e87),
-(0x2523+544-0x239a)},{(0x197a+3436-0x26d0),(0x1407+39-0x108e)},{
-(0xa6c+6942-0x2573),(0x737+3090-0xfa1)},{(0x1077+4551-0x2226),(0xf26+733-0xe60)}
-,{(0x50d+6586-0x1eae),(0xa07+3410-0x13c1)},{(0x297+8434-0x236f),
-(0x911+2767-0x1042)},};const unsigned char UCS2_To_GSMDefault_Table_ASC[]={
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x10bb+4011-0x205c),NON_GSM,NON_GSM,(0x14e9+4213-0x2551),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x4bb+1142-0x911),
-(0x1304+801-0x1604),(0x5d9+4075-0x15a2),(0x6dd+6070-0x1e70),(0x221b+642-0x249b),
-(0x1667+676-0x18e6),(0xa73+3277-0x171a),(0x2117+198-0x21b6),(0x6fb+2502-0x1099),
-(0xb14+3597-0x18f8),(0x11cc+3900-0x20de),(0x2493+663-0x26ff),(0x2197+692-0x241f)
-,(0x805+6215-0x201f),(0x986+7231-0x2597),(0x48+9556-0x256d),(0x594+4338-0x1656),
-(0x6b3+4601-0x187b),(0x17b7+1229-0x1c52),(0xf1+2886-0xc04),(0x6c3+1596-0xccb),
-(0x153a+71-0x154c),(0x104d+302-0x1145),(0x29f+7327-0x1f07),(0xbd0+3610-0x19b2),
-(0x1822+987-0x1bc4),(0x375+4990-0x16b9),(0x1a05+1805-0x20d7),(0xbb2+2031-0x1365)
-,(0xb4b+5711-0x215d),(0x11a8+4293-0x222f),(0xccb+4194-0x1cee),
-(0x204c+355-0x21af),(0x349+4093-0x1305),(0xcc5+6594-0x2645),(0xcf8+37-0xcda),
-(0x753+3222-0x13a5),(0x524+3470-0x126d),(0x161+7262-0x1d79),(0x4ad+2907-0xfc1),
-(0x249+58-0x23b),(0x554+3181-0x1178),(0x1792+774-0x1a4e),(0x6dd+5406-0x1bb0),
-(0x693+654-0x8d5),(0xb5c+906-0xe99),(0xf02+5777-0x2545),(0x1dd+129-0x20f),
-(0x83d+7574-0x2583),(0xeba+334-0xfb7),(0xce6+5280-0x2134),(0xfe2+2180-0x1813),
-(0x900+2043-0x10a7),(0xb89+5933-0x2261),(0x12e7+1746-0x1963),(0xfbd+3641-0x1d9f)
-,(0x45f+3043-0xfea),(0x1c15+2706-0x264e),(0x17ff+2997-0x235a),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0x6b+3343-0xd69),NON_GSM,(0xf8f+4260-0x1fd2),
-(0x104b+4503-0x2180),(0x2ca+4772-0x150b),(0x695+3226-0x12cb),
-(0x1219+3291-0x1e8f),(0x11aa+2354-0x1a76),(0xbdd+3387-0x18b1),(0xad+9502-0x2563)
-,(0xea3+2424-0x17b2),(0xa8a+7198-0x263e),(0x1e28+1894-0x2523),
-(0x1636+930-0x196c),(0x2c3+5111-0x164d),(0x8da+6697-0x2295),(0x153b+378-0x1646),
-(0x21bf+1174-0x25e5),(0xfa3+3350-0x1c48),(0x567+1944-0xc8d),(0x6a6+4106-0x163d),
-(0x110+3698-0xf0e),(0x7d0+3277-0x1428),(0x1687+2018-0x1df3),(0x552+1397-0xa50),
-(0x15d6+4491-0x26e9),(0x1c9d+1823-0x2343),(0x46c+8333-0x247f),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x4ec+2544-0xebc),(0x490+4632-0x1687),
+(0x16aa+2336-0x1fa8),(0x2477+428-0x2600),(0x1a8a+2602-0x24b2),
+(0xbdb+5393-0x20c7),(0xce6+5507-0x2243),(0x96a+3848-0x184b),(0x78+8066-0x1fd2),
+(0x2bf+1416-0x81e),(0xcb4+4029-0x1c47),(0xbf1+346-0xd20),(0x7d0+3777-0x1665),
+(0x523+1802-0xc00),(0x42d+7493-0x2144),(0x1dda+598-0x2001),(0xe53+4402-0x1f55),
+(0x11ef+1108-0x1612),(0xd34+6056-0x24aa),(0x165b+3776-0x24e8),
+(0x480+5175-0x1883),(0x7b9+5800-0x1e2c),(0x9b+9424-0x2535),(0x1123+4471-0x2263),
+(0x5c+3401-0xd6d),(0xed5+5285-0x2341),(0x692+5373-0x1b55),(0x22a4+1133-0x26d6),
+(0x12fc+3995-0x225b),(0xf65+1009-0x1319),(0x46+6937-0x1b21),(0x13f9+3572-0x21ae)
+,(0xfed+5880-0x26e5),(0xc70+854-0xf85),(0x17b4+3145-0x23bb),(0xd6b+3018-0x18f2),
+(0x83b+3360-0x1517),(0x6b6+1007-0xa60),(0x1278+2692-0x1cb6),(0xf6b+4863-0x2223),
+(0x8d3+4193-0x18ec),(0x77a+7184-0x2341),(0x72a+4823-0x19b7),(0x858+5494-0x1d83),
+(0x11e9+4030-0x215b),(0x16f+8642-0x22e4),(0x8a4+7091-0x2409),
+(0x149f+3438-0x21be),(0x21b8+171-0x2213),(0x1161+481-0x12f1),(0xd19+416-0xe67),
+(0x1d90+1097-0x2186),(0xc1d+464-0xd99),(0x825+4064-0x17b0),(0x326+3343-0xfdf),
+(0x1c3+3286-0xe42),(0xb96+3270-0x1804),(0xc98+4071-0x1c26),(0x48f+7849-0x22de),
+NON_GSM,(0x150a+1423-0x1a82),NON_GSM,(0x58f+4381-0x1696),(0xe66+1154-0x12d7),
+(0x1f4f+734-0x21b0),(0x77+154-0xb0),(0x1beb+2193-0x241a),(0x108b+5134-0x2436),
+(0xb15+1263-0xfa0),(0xb17+5270-0x1f48),(0x205d+152-0x208f),(0x2b9+5749-0x18c7),
+(0x1392+2404-0x1c8e),(0x1b1b+1486-0x2080),(0x88b+5594-0x1dfb),
+(0x1bb1+2048-0x2346),(0xe25+4097-0x1dba),(0x408+5641-0x19a4),
+(0x181a+1692-0x1e48),(0x354+7775-0x2144),(0x2c8+8662-0x242e),(0x131+2318-0x9ce),
+(0xdc5+3357-0x1a70),(0x8b8+7030-0x23bb),(0x1c72+944-0x1fae),(0xf60+2752-0x19ab),
+(0x695+5415-0x1b46),(0x3b5+7263-0x1f9d),(0x34c+3634-0x1106),(0xef1+328-0xfc0),
+(0x2023+968-0x2371),NON_GSM,(0x666+7705-0x2465),NON_GSM,(0xbf3+5178-0x1fcd),
 NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
 NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
 NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1021+3231-0x1ca5),(0xbe1+5214-0x1fff)
-,NON_GSM,(0x181+8612-0x2324),(0x120f+3840-0x20eb),(0x3a3+2973-0xf3d),NON_GSM,
-(0xc04+3889-0x1ad6),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x2cf+1689-0x94d),NON_GSM_P,NON_GSM,(0xd74+2839-0x188a)
+,NON_GSM_P,(0x909+6047-0x20a5),NON_GSM,(0xcb2+1732-0x1317),NON_GSM,NON_GSM,
+(0x12cc+3077-0x1ebf),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xdaf+4079-0x1d7a)
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x50f+6482-0x1e4d),(0x5da+6287-0x1e5b)
+,(0x118b+5438-0x26ad),(0xa4d+1703-0x1099),NON_GSM_P,NON_GSM_P,NON_GSM_P,
+(0xa9d+2032-0x127a),NON_GSM,(0x829+2642-0x125c),(0xeba+4935-0x21e3),NON_GSM,
+NON_GSM,(0xdd1+5686-0x23c7),NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM,
+(0x1756+317-0x187a),(0x1cc6+979-0x208e),(0x255+6304-0x1a99),NON_GSM_P,NON_GSM,
+NON_GSM_P,NON_GSM,(0x9a6+3952-0x18b9),NON_GSM,(0xc3+7854-0x1f13),NON_GSM,NON_GSM
+,NON_GSM_P,(0x1579+905-0x1883),(0x15d4+2456-0x1f5d),(0xb86+6112-0x2349),
+(0x1509+1324-0x19ba),NON_GSM_P,NON_GSM_P,NON_GSM_P,(0x10c+6244-0x1967),NON_GSM_P
+,(0x15d1+2048-0x1dcc),(0xbc4+2818-0x16c2),NON_GSM,NON_GSM_P,(0x190c+764-0x1c01),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM_P,(0x1e3c+454-0x1ffa),
+(0x13f6+1625-0x1a43),(0x541+581-0x70a),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM_P,
+(0xc8a+6729-0x26cd),NON_GSM,(0x759+3405-0x1428),NON_GSM,NON_GSM,NON_GSM};const 
+unsigned short zte_sms_GSMDefault_To_UCS2_Table_Ex[][(0x578+560-0x7a6)]={{
+(0x1ca+195-0x283),(0xf51+1277-0x1442)},{(0x496+2870-0xfb8),(0x1bb+2927-0xccc)},{
+(0xe66+33-0xe5f),(0x54c+817-0x802)},{(0x17f+2319-0xa65),(0xd06+3112-0x18b1)},{
+(0xd84+6294-0x25eb),(0x765+452-0x8cd)},{(0xf2f+1396-0x1467),(0x140b+4669-0x25ed)
+},{(0xbb1+4663-0x1dab),(0x1268+1511-0x17d1)},{(0x6fa+687-0x96b),
+(0x5b7+1962-0xd04)},{(0x43b+929-0x79c),(0x1dcd+94-0x1daf)},{(0x185c+3320-0x24ef)
+,8364},};const unsigned short UCS2_To_GSMDefault_Table_UCS2[][
+(0x859+7800-0x26cf)]={{(0x645+4249-0x16ce),(0x63c+2285-0xb95)},{
+(0x1616+187-0x16bf),(0x1cef+1332-0x1e7d)},{(0x10a5+3951-0x2001),
+(0x1e7b+363-0x1c53)},{(0x390+1429-0x911),(0xcb9+6605-0x22eb)},{
+(0x48b+4608-0x1676),(0xcb4+3405-0x1658)},{(0x9a9+4599-0x1b8a),
+(0x1de8+2011-0x2223)},{(0x15e3+2530-0x1fae),(0xd60+4686-0x1c06)},{
+(0xd46+2754-0x17f0),(0x261a+1055-0x2696)},{(0x4a2+4288-0x1549),
+(0x61a+2932-0xdf6)},{(0x1636+1236-0x1af0),(0x1348+5579-0x2575)},};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,(0x1e2f+2048-0x2625),NON_GSM,NON_GSM,
+(0x36a+5906-0x1a6f),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
 NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x18e7+2805-0x237c),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0xabc+2540-0x144d),(0x247+7752-0x2081),
-(0xc9a+2137-0x14d7),(0xbcb+867-0xf25),NON_GSM,(0xea+5934-0x17f9),NON_GSM,NON_GSM
-,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x8b4+5015-0x1bee),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0x239+2981-0xd82),NON_GSM,(0x138b+3024-0x1f50),NON_GSM,NON_GSM,
-NON_GSM,(0x16e6+2936-0x2200),NON_GSM,NON_GSM,(0xf78+388-0x10de),
-(0xcaa+6675-0x263e),NON_GSM,NON_GSM,NON_GSM,(0x2a1+9057-0x2587),
-(0x2232+992-0x2603),(0x238+3213-0xea8),NON_GSM,(0xdf2+2953-0x1977),
-(0xf3b+479-0x1115),NON_GSM,NON_GSM,(0x2d9+97-0x333),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x1344+4780-0x2573),(0x28c+9-0x28d),NON_GSM,NON_GSM,NON_GSM,
-(0xd41+342-0xe1b),NON_GSM,(0x237+884-0x59f),(0x25b+5131-0x1660),NON_GSM,NON_GSM,
-(0x59f+683-0x7cc),NON_GSM,NON_GSM,NON_GSM};const unsigned short 
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={(0x34f+7785-0x2178),(0x2a6+310-0x339),
-(0x175b+1785-0x1e30),(0x10f+5226-0x14d4),(0x1c7c+2816-0x2692),
-(0x158a+2233-0x1d5a),(0x2339+529-0x2450),(0x961+2935-0x13eb),(0xa39+7210-0x2570)
-,(0x1d7d+1531-0x2291),(0xf99+2162-0x1801),(0x70f+2707-0x10ce),
-(0x1375+4311-0x2358),(0xb6d+5862-0x2246),(0xe6b+5101-0x2197),(0xd21+1581-0x126d)
-,(0x4d0+8528-0x228c),(0x1710+4006-0x2657),(0x53b+2646-0xee7),(0x49d+6946-0x1ef8)
-,(0x1c50+2194-0x2422),(0x2227+3266-0xccb),(0x1b3f+1762-0x21c3),
-(0x24c+7227-0x1e2b),8364,(0x1686+3185-0x2224),(0x1160+2633-0x1b2d),
-(0xf0f+524-0x107b),(0x1b1b+1898-0x21c3),(0x2012+1545-0x2539),(0xa05+4999-0x1cc2)
-,(0x4fc+6432-0x1d53),(0x1b10+2483-0x24a3),(0x1c17+618-0x1e60),(0x7ff+1014-0xbd3)
-,(0x17a0+614-0x19e3),(0xbc4+6801-0x25a5),(0x337+7886-0x21e0),(0xf98+4496-0x2102)
-,(0x1198+110-0x11df),(0x1b0+4881-0x1499),(0x1297+1826-0x1990),
-(0x12f5+830-0x1609),(0x1746+3231-0x23ba),(0x3a+3135-0xc4d),(0x2b9+6248-0x1af4),
-(0x7d3+2533-0x118a),(0xe7d+1184-0x12ee),(0x885+6160-0x2065),(0xf19+5894-0x25ee),
-(0x32f+4585-0x14e6),(0x5c+732-0x305),(0x874+3917-0x178d),(0x8da+722-0xb77),
-(0x12db+4203-0x2310),(0xaff+4860-0x1dc4),(0x160+4415-0x1267),
-(0x1ab9+3055-0x266f),(0x165a+3032-0x21f8),(0x1ab1+118-0x1aec),
-(0x1f87+1081-0x2384),(0x170c+2983-0x2276),(0x64c+6656-0x200e),(0xd09+407-0xe61),
-(0x1041+4014-0x1f22),(0xb62+5683-0x2154),(0x1940+2286-0x21ec),
-(0x58b+4451-0x16ab),(0x1d6+5403-0x16ad),(0x1e2+2091-0x9c8),(0x1b9b+2446-0x24e3),
-(0x1e7f+1923-0x25bb),(0x8ac+4564-0x1a38),(0x9dc+5821-0x2050),(0x200+5036-0x1562)
-,(0x2c1+7679-0x2075),(0x1c83+2610-0x2669),(0x2300+321-0x23f4),
-(0x115c+556-0x133a),(0xe7a+6262-0x26a1),(0xb33+661-0xd78),(0x1b81+2712-0x25c8),
-(0xa91+3287-0x1716),(0x243+2206-0xa8e),(0x4e5+2364-0xdcd),(0x945+818-0xc22),
-(0x109+5181-0x14f0),(0x1ba7+493-0x1d3d),(0xb23+4973-0x1e38),(0x1574+636-0x1797),
-(0x6fc+3679-0x1501),(0x561+1344-0x9de),(0x5d8+3108-0x1127),(0x21ad+392-0x225b),
-(0x773+2941-0x1214),(0x46c+829-0x702),(0x1f4c+742-0x21b4),(0x17d7+3365-0x249b),
-(0xd05+5873-0x2394),(0x431+4726-0x1644),(0x85f+1311-0xd1a),(0x65a+970-0x9bf),
-(0xfd+9102-0x2425),(0x62d+73-0x60f),(0x12fc+2476-0x1c40),(0xca9+2955-0x17cb),
-(0x1569+2838-0x2015),(0x1d74+1014-0x20ff),(0xae6+3874-0x199c),
-(0x7bb+6742-0x21a4),(0x120+5142-0x14c8),(0x1b40+1635-0x2134),(0x412+6921-0x1eab)
-,(0x1e43+2258-0x26a4),(0xe8a+2921-0x1981),(0x70c+8214-0x26af),
-(0x2477+357-0x2568),(0x521+7478-0x21e2),(0xd72+6060-0x24a8),(0x53b+6828-0x1f70),
-(0xb9+2633-0xa8a),(0xe36+4268-0x1e69),(0xf90+6049-0x26b7),(0xd80+3872-0x1bbd),
-(0xb1b+1744-0x10f6),(0xb08+4277-0x1b5d),(0x1740+2533-0x2029),
-(0x1a05+3014-0x24eb)};const unsigned short zte_sms_GSMDefault_To_UCS2_Table[]={
-(0xa3c+6710-0x2432),(0x67b+8220-0x25f4),(0xa7b+2937-0x15d0),(0x21b4+516-0x2313),
-(0x255f+540-0x2693),(0x1263+5449-0x26c3),(0x1308+3968-0x218f),(0xce2+90-0xc50),
-(0x900+6983-0x2355),(0x1708+3084-0x224d),(0x137+1259-0x618),(0x18f5+320-0x195d),
-(0x22b2+107-0x2225),(0x320+2620-0xd4f),(0x147d+2800-0x1ea8),(0x23b+752-0x446),
-(0x71d+94-0x3e7),(0x1982+3241-0x25cc),(0x22fc+1277-0x2453),(0x15a1+1588-0x1842),
-(0x12a4+3178-0x1b73),(0x2040+2375-0x25de),(0xbdf+5790-0x1edd),(0x78f+932-0x78b),
-(0x1fa1+1708-0x22aa),(0x631+5401-0x17b2),(0x11dc+4559-0x200d),
-(0xb50+6858-0x257a),(0x1e60+1230-0x2268),(0xbfa+4332-0x1c00),(0x5d5+2001-0xcc7),
-(0x1084+2217-0x1864),(0x16e4+2422-0x203a),(0xe7f+6248-0x26c6),(0x516+1395-0xa67)
-,(0x46f+6639-0x1e3b),(0x1f3+3624-0xf77),(0x1f85+1943-0x26f7),(0x1d8+2720-0xc52),
-(0xfa5+3958-0x1ef4),(0x1397+127-0x13ee),(0x180+9143-0x250e),(0xb99+3706-0x19e9),
-(0x6cb+7580-0x243c),(0x78d+4318-0x183f),(0x4b+5479-0x1585),(0x1c6+8994-0x24ba),
-(0x2e5+7815-0x213d),(0x1055+2249-0x18ee),(0xd18+4206-0x1d55),(0x924+435-0xaa5),
-(0xe04+4205-0x1e3e),(0x1086+4132-0x2076),(0x747+7764-0x2566),(0x563+1352-0xa75),
-(0xdbf+952-0x1140),(0x90f+4288-0x1997),(0x141f+4289-0x24a7),(0x399+598-0x5b5),
-(0xab7+3081-0x1685),(0x1772+3013-0x22fb),(0x8fa+5640-0x1ec5),
-(0x1779+3131-0x2376),(0x527+2446-0xe76),(0xdd+5579-0x1607),(0x5f7+782-0x8c4),
-(0x264+2979-0xdc5),(0x30c+8348-0x2365),(0x788+7969-0x2665),(0x14f3+4666-0x26e8),
-(0x58d+4554-0x1711),(0xffb+5151-0x23d3),(0x1639+1852-0x1d2d),(0x9f3+1436-0xf46),
-(0xa49+3432-0x1767),(0x11ff+1370-0x170e),(0x138+2305-0x9ed),(0x1509+3465-0x2245)
-,(0x2b4+8695-0x245d),(0x626+1320-0xaff),(0x695+6462-0x1f83),(0x8e4+7240-0x24db),
-(0x396+4289-0x1405),(0x12a1+4860-0x254a),(0x2b0+500-0x450),(0xf62+4624-0x211d),
-(0xd3f+1170-0x117b),(0x13e7+4944-0x26e0),(0x919+1696-0xf61),(0x8f5+3705-0x1715),
-(0x13a1+3663-0x2196),(0xc69+1408-0x1125),(0x2ab+8015-0x2124),(0x7b9+5902-0x1df6)
-,(0x1b87+2551-0x24a2),(0x1d69+288-0x1de2),(0x26a+4051-0x117e),
-(0xb33+3851-0x19dd),(0x1e29+1776-0x24b7),(0x6b7+1954-0xdf6),(0x9f0+5977-0x20e5),
-(0x104b+1068-0x1412),(0x33d+7012-0x1e3b),(0x67b+6658-0x2016),(0x2290+5-0x222d),
-(0xaa2+1216-0xef9),(0x5fd+1371-0xaee),(0xa49+2862-0x150c),(0x1256+861-0x1547),
-(0x648+3252-0x128f),(0xd0f+5852-0x237d),(0xba2+2134-0x1389),(0x2e9+6334-0x1b37),
-(0xc32+2576-0x15d1),(0xe85+836-0x1157),(0x12bc+2293-0x1b3e),(0x1b07+2892-0x25df)
-,(0xcb+2411-0x9c1),(0x16b4+80-0x168e),(0xc36+6437-0x24e4),(0x1918+2078-0x20be),
-(0x857+5312-0x1c9e),(0x723+3763-0x155c),(0xb13+4598-0x1c25),(0xef9+1514-0x13ed),
-(0x62a+1665-0xbba),(0xe1b+5756-0x239b),(0x801+1656-0xd99)};int Bytes2String(
-const unsigned char*pSrc,char*pDst,int nSrcLength){const char tab[]=
-"0123456789ABCDEF";int i=(0x1c5d+7-0x1c64);if(pSrc==NULL||pDst==NULL||nSrcLength
-<(0x1061+5512-0x25e9)){return-(0x249+2328-0xb60);}for(i=(0x18f8+1375-0x1e57);i<
-nSrcLength;i++){*pDst++=tab[*pSrc>>(0x1279+1388-0x17e1)];*pDst++=tab[*pSrc&
-(0x1801+3586-0x25f4)];pSrc++;}*pDst='\0';return nSrcLength*(0x1033+4056-0x2009);
-}int String2Bytes(const char*pSrc,unsigned char*pDst,int nSrcLength){int i=
-(0x108a+2496-0x1a4a);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1335+365-0x14a2)){
-return-(0x1c57+1196-0x2102);}for(i=(0xc0c+6612-0x25e0);i<nSrcLength;i+=
-(0x73b+1696-0xdd9)){if(*pSrc>=((char)(0xb24+2550-0x14ea))&&*pSrc<=
-((char)(0x63f+2617-0x103f))){*pDst=(*pSrc-((char)(0x131b+1568-0x190b)))<<
-(0xce6+4269-0x1d8f);}else{*pDst=((toupper(*pSrc)-((char)(0x1cba+2252-0x2545)))+
-(0x138d+1822-0x1aa1))<<(0x14f6+2121-0x1d3b);}pSrc++;if(*pSrc>=
-((char)(0x3cd+2048-0xb9d))&&*pSrc<=((char)(0x1a03+695-0x1c81))){*pDst|=*pSrc-
-((char)(0x71c+2954-0x1276));}else{*pDst|=(toupper(*pSrc)-
-((char)(0x81f+174-0x88c)))+(0x389+3928-0x12d7);}pSrc++;pDst++;}return nSrcLength
-/(0x1305+397-0x1490);}int EncodeUcs2(const char*pSrc,unsigned char*pDst,int 
-nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x20bc+1522-0x26ae)){return-
-(0x1848+136-0x18cf);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);return 
-nSrcLength/(0x1925+1765-0x2008);}int Encode7bit(const char*pSrc,unsigned char*
+NON_GSM,(0x638+113-0x689),(0x1b4+3255-0xe4a),(0x5a0+1524-0xb72),
+(0x881+236-0x94a),(0x1924+1201-0x1dd3),(0x656+1966-0xddf),(0x3e4+6583-0x1d75),
+(0x479+3564-0x123e),(0x12ad+4866-0x2587),(0xb45+1676-0x11a8),(0x704+5720-0x1d32)
+,(0x671+2429-0xfc3),(0x84c+4302-0x18ee),(0x572+2163-0xdb8),(0x19ff+2845-0x24ee),
+(0x95f+1673-0xfb9),(0xda+2996-0xc5e),(0x79d+5192-0x1bb4),(0x4c2+2492-0xe4c),
+(0x53a+6288-0x1d97),(0x13f1+567-0x15f4),(0x177b+2928-0x22b6),(0x754+2375-0x1065)
+,(0xd38+5275-0x219c),(0xa98+831-0xd9f),(0xfdb+3286-0x1c78),(0x286+78-0x29a),
+(0x524+4667-0x1724),(0x148c+3053-0x203d),(0x725+2714-0x1182),(0xdc7+6422-0x269f)
+,(0x1c20+2381-0x252e),(0x17cb+352-0x192b),(0x2004+1708-0x266f),
+(0x124+5571-0x16a5),(0xc36+1708-0x129f),(0x1a11+1752-0x20a5),(0x3b8+7659-0x215e)
+,(0xeb8+4075-0x1e5d),(0x1a9+1669-0x7e7),(0xaca+272-0xb92),(0xae7+678-0xd44),
+(0x16d+8033-0x2084),(0x16f6+2953-0x2234),(0x796+3813-0x162f),(0x4cf+5319-0x1949)
+,(0x12e7+1104-0x16e9),(0x720+2087-0xef8),(0x1111+1657-0x173a),
+(0xd78+1915-0x14a2),(0x37d+3539-0x10fe),(0x648+4673-0x1836),(0x105b+3420-0x1d63)
+,(0x98b+3679-0x1795),(0x1f7+4045-0x116e),(0x73+4173-0x1069),(0x1096+1208-0x14f6)
+,(0x8bc+3796-0x1737),(0x1ee2+1498-0x2462),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x16c+662-0x3f1),NON_GSM,(0x1b4+2886-0xc99),(0x8fa+5537-0x1e39),
+(0x907+6816-0x2344),(0x1255+3875-0x2114),(0x1468+3900-0x233f),(0x237+1806-0x8df)
+,(0x15c8+328-0x16a9),(0x105f+4823-0x22ce),(0x1802+1313-0x1cba),
+(0xc95+4529-0x1ddc),(0x1005+3062-0x1b90),(0x143+9625-0x2670),(0xea7+4149-0x1e6f)
+,(0xd2b+6682-0x26d7),(0x19f+7121-0x1d01),(0x515+1016-0x89d),(0x1461+958-0x17ae),
+(0xe46+397-0xf61),(0x4d1+5618-0x1a50),(0x480+8593-0x259d),(0x1d1+3387-0xe97),
+(0x1896+1774-0x1f0e),(0x11f4+5504-0x26fd),(0x5d0+2386-0xeaa),
+(0x14ec+2357-0x1da8),(0x587+4320-0x15ed),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,(0x2274+15-0x2268),(0x1e9+6693-0x1bce),NON_GSM,
+(0x10d3+4782-0x2380),(0x997+6521-0x22ec),(0xdaa+4242-0x1e39),NON_GSM,
+(0x3b4+8250-0x238f),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x2a1+1846-0x977),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x15a+3157-0xd54),(0x5f0+5412-0x1b06),
+(0x1139+352-0x127d),(0xf76+4463-0x20dc),NON_GSM,(0x2431+178-0x24c4),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x3c2+2454-0xcfb),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x1033+4384-0x20f7),NON_GSM,(0x16a7+678-0x1942),NON_GSM
+,NON_GSM,NON_GSM,(0x197+797-0x456),NON_GSM,NON_GSM,(0x2583+270-0x2673),
+(0x1047+4693-0x221d),NON_GSM,NON_GSM,NON_GSM,(0x42b+7596-0x215c),
+(0x1b74+1523-0x2158),(0x25d+8759-0x2477),NON_GSM,(0x602+3338-0x1308),
+(0x471+2938-0xfe6),NON_GSM,NON_GSM,(0x1ee6+1544-0x24e7),NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x702+1415-0xc0c),(0x15f+3338-0xe61),NON_GSM,NON_GSM,NON_GSM,
+(0x1164+4336-0x21d8),NON_GSM,(0x4dc+5675-0x1afb),(0x1e2d+1020-0x2223),NON_GSM,
+NON_GSM,(0x4d3+7461-0x217a),NON_GSM,NON_GSM,NON_GSM};const unsigned short 
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={(0x151d+3958-0x2453),(0x3d5+549-0x557),
+(0x19d3+2129-0x2200),(0x99f+7233-0x253b),(0x1b4c+2679-0x24d9),
+(0x19f2+808-0x1c31),(0x80d+2130-0xf65),(0x8b9+7357-0x2489),(0xa5d+5976-0x20c2),
+(0xf31+3942-0x1db0),(0x247a+95-0x24cf),(0x18a+8504-0x21ee),(0x9d1+3393-0x161e),
+(0x1478+4355-0x256e),(0x931+1968-0x1020),(0x14c2+4629-0x25f6),
+(0x553+5301-0x1674),(0x1229+3069-0x1dc7),(0xba4+506-0xcf4),(0x144+4415-0x11bc),
+(0x1386+2954-0x1e50),8734,(0x1ee8+150-0x1f20),(0x1a4b+1195-0x1e9a),8364,
+(0x860+5346-0x1c6f),(0x1737+1090-0x1afd),(0x15a0+2040-0x1cf8),
+(0x36a+7284-0x1f1c),(0x1edd+1807-0x250a),(0x8fb+860-0xb8d),(0x1324+4548-0x241f),
+(0x10f0+2576-0x1ae0),(0x1cd5+1739-0x237f),(0x1d92+121-0x1de9),
+(0xceb+2654-0x1726),(0x1971+2588-0x22dd),(0x3f1+2089-0xbf5),(0x6e6+5131-0x1acb),
+(0x2da+3762-0x1165),(0xd39+3609-0x1b2a),(0xd10+6691-0x270a),(0x11d0+1121-0x1607)
+,(0x612+4515-0x178a),(0x5e0+7229-0x21f1),(0xcf8+1796-0x13cf),(0x1aaa+33-0x1a9d),
+(0x16a2+1180-0x1b0f),(0x5bf+4238-0x161d),(0x18d+9542-0x26a2),(0x81d+1236-0xcbf),
+(0x111d+5123-0x24ed),(0x22bd+547-0x24ac),(0xf40+3691-0x1d76),(0x2bd+6309-0x1b2c)
+,(0x311+3924-0x122e),(0x2327+197-0x23b4),(0x2a9+3197-0xeed),(0xc39+3274-0x18c9),
+(0xd4a+5749-0x2384),(0x7fd+4376-0x18d9),(0x28b+6040-0x19e6),(0xd56+6537-0x26a1),
+(0x438+695-0x6b0),(0x9b4+3482-0x1681),(0x1fa1+925-0x22fd),(0x9db+3605-0x17ae),
+(0x19a2+2416-0x22cf),(0x1abf+833-0x1dbc),(0x1c99+1630-0x22b2),(0x2b3+1041-0x67e)
+,(0xa72+2976-0x15cb),(0x427+6320-0x1c8f),(0x170f+3952-0x2636),
+(0x1117+2374-0x1a13),(0x1f9b+1038-0x235e),(0x507+2598-0xee1),
+(0x1710+2619-0x20fe),(0x99f+3436-0x16bd),(0xafa+6576-0x245b),
+(0x211b+1281-0x25cc),(0x1254+2707-0x1c96),(0x150a+4345-0x25b1),
+(0x1287+5132-0x2640),(0x1259+5203-0x2658),(0x23d7+567-0x25b9),
+(0x122+4987-0x1447),(0x1714+2417-0x202e),(0x11fb+3585-0x1fa4),
+(0x1149+5062-0x24b6),(0x719+6527-0x203e),(0x1c7b+1387-0x2123),
+(0xdad+1423-0x1267),(0x1606+1050-0x1946),(0x4bf+3118-0x1011),(0xf67+2337-0x17e1)
+,(0xfe3+4998-0x22eb),(0x14a5+1739-0x1b0f),(0x511+1247-0x98e),(0x69f+589-0x889),
+(0xf97+4402-0x2065),(0xd01+6217-0x24e5),(0x1040+840-0x1322),(0x1b8c+2416-0x2495)
+,(0x1d6+1346-0x6b0),(0x9bb+291-0xa75),(0x1f7+1393-0x6fe),(0x803+7292-0x2414),
+(0x8a6+7740-0x2676),(0xd1a+6167-0x24c4),(0x189f+3223-0x24c8),(0x95f+5582-0x1ebe)
+,(0x13f6+3188-0x1ffa),(0xc8c+3587-0x1a1e),(0xa1b+6075-0x2164),
+(0x1f14+1600-0x24e1),(0x1c21+1157-0x2032),(0xf41+2005-0x16a1),
+(0x1a2d+728-0x1c8f),(0x2b9+3038-0xe20),(0x173b+4103-0x26ca),(0x623+7244-0x21f6),
+(0xcfc+2530-0x1664),(0x1044+5506-0x24e3),(0x64b+1045-0x96b),(0x770+6957-0x223d),
+(0xcb5+5449-0x2102),(0x1fa3+62-0x1f01)};const unsigned short 
+zte_sms_GSMDefault_To_UCS2_Table[]={(0xdeb+3752-0x1c53),(0x504+7926-0x2357),
+(0x19b+2271-0xa56),(0x3c5+5489-0x1891),(0x492+7074-0x1f4c),(0x9b7+1747-0xfa1),
+(0xca3+3827-0x1a9d),(0x385+3435-0x1004),(0x241+4967-0x14b6),(0x113b+5129-0x247d)
+,(0x1432+3611-0x2243),(0x382+4165-0x12ef),(0x1656+2025-0x1d47),
+(0x8f3+5768-0x1f6e),(0x3b8+7608-0x20ab),(0x7fd+1635-0xd7b),(0xdf9+7057-0x25f6),
+(0xce7+3020-0x1854),(0xf9a+5368-0x20ec),(0x1026+4350-0x1d91),(0x5ab+2661-0xc75),
+(0xfb3+800-0xf2a),(0x1a5f+756-0x19b3),(0x48a+8486-0x2208),(0x56b+2441-0xb51),
+(0xb32+8044-0x2706),(0x432+3599-0xea3),(0x51c+824-0x7b4),(0x1bb+9571-0x2658),
+(0x77d+3427-0x13fa),(0xf5d+2110-0x16bc),(0x1b69+1273-0x1f99),
+(0x1b91+1286-0x2077),(0xb96+4624-0x1d85),(0x494+2878-0xfb0),(0x1316+250-0x13ed),
+(0x151b+888-0x17ef),(0x156d+1039-0x1957),(0x3eb+8042-0x232f),
+(0x1094+4594-0x225f),(0x4da+7313-0x2143),(0x14a4+651-0x1706),
+(0x1856+1789-0x1f29),(0xf68+1447-0x14e4),(0x78d+4840-0x1a49),(0x15f+3789-0xfff),
+(0x7c9+3147-0x13e6),(0x1538+2112-0x1d49),(0x1355+4326-0x240b),
+(0x146+4973-0x1482),(0x9d8+6441-0x22cf),(0x225b+332-0x2374),(0x55b+5257-0x19b0),
+(0xf7b+1801-0x164f),(0x780+2375-0x1091),(0xa61+6454-0x2360),(0x586+6991-0x209d),
+(0x963+6330-0x21e4),(0x434+8381-0x24b7),(0x1295+46-0x1288),(0x7a2+4999-0x1aed),
+(0x8a7+4545-0x1a2b),(0x12dc+4367-0x23ad),(0x14e6+3651-0x22ea),
+(0x561+8426-0x25aa),(0x42c+6256-0x1c5b),(0xcfb+6008-0x2431),(0x7d1+236-0x87a),
+(0x17f7+913-0x1b44),(0x1da5+1582-0x238e),(0xcd5+5023-0x202e),(0x1f3+9145-0x2565)
+,(0x1461+319-0x1558),(0x1a7b+1547-0x203d),(0x748+4731-0x1979),
+(0x186+6019-0x18be),(0x1245+4803-0x24bc),(0x7cc+1103-0xbce),(0x4fd+7244-0x20fb),
+(0x698+2851-0x116c),(0x10a8+5538-0x25fa),(0xf28+4407-0x200e),(0x1eb+3073-0xd9a),
+(0x47f+2051-0xc2f),(0x7cf+3278-0x1449),(0x228+1854-0x911),(0x1869+3833-0x270c),
+(0x3fb+2912-0xf04),(0xad2+3421-0x17d7),(0x14b3+3882-0x2384),(0x1faa+1960-0x26f8)
+,(0xe38+4578-0x1f56),(0x1370+3271-0x1f61),(0x3e8+4728-0x158f),
+(0xc52+1568-0x1196),(0x668+5161-0x19ea),(0x1070+1846-0x16e7),(0x2a0+3483-0xfda),
+(0x708+1000-0xa8e),(0x15b0+1075-0x1980),(0x757+2367-0x1032),(0x1901+1345-0x1ddd)
+,(0x75d+2960-0x1287),(0xd11+1203-0x115d),(0x1be2+2242-0x243c),
+(0x1842+662-0x1a6f),(0x1233+3062-0x1dbf),(0x9b+8265-0x2079),(0x1fa+8245-0x21c3),
+(0x15c6+4429-0x26a6),(0x1a25+1495-0x1f8e),(0x14c6+3574-0x224d),
+(0xfc3+2633-0x199c),(0x72f+3210-0x1348),(0x86+5619-0x1607),(0x3b7+519-0x54b),
+(0xc33+3269-0x1884),(0x862+379-0x968),(0xeea+5227-0x22df),(0x1f8+4378-0x129b),
+(0x1313+1517-0x1888),(0x15cb+3505-0x2303),(0x256a+417-0x2691),
+(0xd0f+1189-0x10d0),(0x99f+5456-0x1df9),(0x1278+2357-0x1abc),
+(0x1ff6+1170-0x238c),(0x1292+3564-0x1f9e)};int Bytes2String(const unsigned char*
+pSrc,char*pDst,int nSrcLength){const char tab[]="0123456789ABCDEF";int i=
+(0xacf+4260-0x1b73);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x2081+192-0x2141)){
+return-(0x929+4454-0x1a8e);}for(i=(0x3bc+7039-0x1f3b);i<nSrcLength;i++){*pDst++=
+tab[*pSrc>>(0xfea+3094-0x1bfc)];*pDst++=tab[*pSrc&(0x12a7+4829-0x2575)];pSrc++;}
+*pDst='\0';return nSrcLength*(0x432+1740-0xafc);}int String2Bytes(const char*
+pSrc,unsigned char*pDst,int nSrcLength){int i=(0x11a+4572-0x12f6);if(pSrc==NULL
+||pDst==NULL||nSrcLength<(0x139b+4717-0x2608)){return-(0xf8b+2960-0x1b1a);}for(i
+=(0x18b0+46-0x18de);i<nSrcLength;i+=(0x131a+1994-0x1ae2)){if(*pSrc>=
+((char)(0x530+7142-0x20e6))&&*pSrc<=((char)(0xb77+4547-0x1d01))){*pDst=(*pSrc-
+((char)(0x534+818-0x836)))<<(0x1994+541-0x1bad);}else{*pDst=((toupper(*pSrc)-
+((char)(0x132d+552-0x1514)))+(0x1645+414-0x17d9))<<(0x358+2360-0xc8c);}pSrc++;if
+(*pSrc>=((char)(0x7e5+375-0x92c))&&*pSrc<=((char)(0x1931+103-0x195f))){*pDst|=*
+pSrc-((char)(0x1046+2350-0x1944));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x118c+2834-0x1c5d)))+(0x12f4+3606-0x2100);}pSrc++;pDst++;}return 
+nSrcLength/(0x42f+7254-0x2083);}int EncodeUcs2(const char*pSrc,unsigned char*
+pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x9ad+1944-0x1145)){
+return-(0x3f7+913-0x787);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);return 
+nSrcLength/(0x1397+811-0x16c0);}int Encode7bit(const char*pSrc,unsigned char*
 pDst,int nSrcLength){int nSrc;int nDst;int nChar;unsigned char nLeft=
-(0x76c+7596-0x2518);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1431+202-0x14fb)){
-return-(0x10e0+446-0x129d);}nSrc=(0xe1a+4261-0x1ebf);nDst=(0xfb4+2453-0x1949);
-while(nSrc<nSrcLength){nChar=nSrc&(0x27+9210-0x241a);if(nChar==
-(0x1026+1037-0x1433)){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>
-(0x6dd+6067-0x1e8f))&&(nSrc==(nSrcLength-(0xb2a+4193-0x1b8a)))){nDst++;}}else{*
-pDst=(*pSrc<<((0x641+6607-0x2008)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst++
-;}pSrc++;nSrc++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst,
-UINT8 TP_FCS){SINT32 nLength=(0xfb3+1965-0x1760);SINT32 nDstLength=
-(0x1307+758-0x15fd);UINT8 buf[(0x136+4032-0xff6)]={(0x843+7173-0x2448)};if(NULL
-==pDst){return-(0x15ec+3123-0x221e);}if(TP_FCS!=(0x74c+5139-0x1b5f)){buf[
-(0x6cd+2822-0x11d3)]=(0x469+3171-0x10cc);buf[(0x3d9+1125-0x83d)]=TP_FCS;buf[
-(0x4f5+5653-0x1b08)]=(0x88d+2008-0x1065);nDstLength+=Bytes2String(buf,&pDst[
-nDstLength],(0x17b3+3207-0x2437));}else{buf[(0x11f0+1823-0x190f)]=
-(0xecf+5353-0x23b8);buf[(0xdfb+3124-0x1a2e)]=(0x76c+141-0x7f9);nDstLength+=
-Bytes2String(buf,&pDst[nDstLength],(0x74d+4487-0x18d2));}return nDstLength;}
+(0x2e5+4968-0x164d);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x819+4435-0x196c)){
+return-(0x1d02+2281-0x25ea);}nSrc=(0x1f61+555-0x218c);nDst=(0x528+8115-0x24db);
+while(nSrc<nSrcLength){nChar=nSrc&(0x1227+2148-0x1a84);if(nChar==
+(0x8a9+5895-0x1fb0)){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>
+(0x1ad6+117-0x1b4a))&&(nSrc==(nSrcLength-(0x1044+5514-0x25cd)))){nDst++;}}else{*
+pDst=(*pSrc<<((0x65a+1349-0xb97)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst++;
+}pSrc++;nSrc++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst,
+UINT8 TP_FCS){SINT32 nLength=(0x1916+789-0x1c2b);SINT32 nDstLength=
+(0x1602+3575-0x23f9);UINT8 buf[(0xeed+4879-0x20fc)]={(0x610+5777-0x1ca1)};if(
+NULL==pDst){return-(0x9ec+1479-0xfb2);}if(TP_FCS!=(0xc72+5228-0x20de)){buf[
+(0x148+7053-0x1cd5)]=(0x152+9466-0x264c);buf[(0x3c8+7523-0x212a)]=TP_FCS;buf[
+(0x24+5623-0x1619)]=(0xc6a+3849-0x1b73);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0x883+4830-0x1b5e));}else{buf[(0x1013+796-0x132f)]=
+(0x4d2+3870-0x13f0);buf[(0x1b6d+2162-0x23de)]=(0x981+7414-0x2677);nDstLength+=
+Bytes2String(buf,&pDst[nDstLength],(0x9ca+5301-0x1e7d));}return nDstLength;}
 unsigned long zUfiSms_ConvertAsciiToGsmDefault(const unsigned char*inputs,
-unsigned char*outputs,unsigned long len){unsigned long i=(0x65a+2902-0x11b0);
-unsigned long j=(0xa35+1767-0x111c);unsigned long k=(0x3fa+2115-0xc3d);if(NULL==
-inputs||NULL==outputs){printf(
+unsigned char*outputs,unsigned long len){unsigned long i=(0x662+1802-0xd6c);
+unsigned long j=(0xbec+1876-0x1340);unsigned long k=(0x1d02+1225-0x21cb);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(0x99c+6129-0x218d);}for(i=(0x3a2+1904-0xb12);i<len;i++){j=inputs[i];if(
-g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x2fd+3007-0xdbd)){outputs[k]=
+return(0x86d+2202-0x1107);}for(i=(0x29a+3523-0x105d);i<len;i++){j=inputs[i];if(
+g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x181d+1907-0x1e91)){outputs[k]=
 g_zUfiSms_AsciiToGsmdefaultTable[j];}else{outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0xfbc+813-0x12e1);k++;outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&(0x347+114-0x2ba));}k++;}return k;}unsigned 
-long zUfiSms_ConvertUcs2ToSpanish(const unsigned char*def,unsigned char*
-gsm_default,unsigned long len){unsigned long i=(0x1801+3310-0x24ef);unsigned 
-long k=(0x566+3962-0x14e0);unsigned long p=(0xbd5+6115-0x23b8);unsigned long tmp
-=(0x1a46+2411-0x23b1);unsigned long s1=(0x1a83+2541-0x2470),s2=
-(0x347+8334-0x23d5);unsigned long q=(0x19ed+3077-0x25f2);s1=sizeof(
+g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0x1114+2100-0x1940);k++;outputs[k]=
+(g_zUfiSms_AsciiToGsmdefaultTable[j]&(0x19b+6300-0x1938));}k++;}return k;}
+unsigned long zUfiSms_ConvertUcs2ToSpanish(const unsigned char*def,unsigned char
+*gsm_default,unsigned long len){unsigned long i=(0x8d+8516-0x21d1);unsigned long
+ k=(0x364+1312-0x884);unsigned long p=(0x942+970-0xd0c);unsigned long tmp=
+(0xbf+9055-0x241e);unsigned long s1=(0x445+143-0x4d4),s2=(0xf39+2901-0x1a8e);
+unsigned long q=(0x79f+2207-0x103e);s1=sizeof(
 zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0x345+882-0x6b7)]);s2=sizeof(
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0x7a9+4490-0x1933)]);s2=sizeof(
 Ucs2_To_Gsm7_SPANISH_Table_UCS)/sizeof(Ucs2_To_Gsm7_SPANISH_Table_UCS[
-(0x147d+3955-0x23f0)]);for(i=(0x9cd+1985-0x118e);i<len;i++){if(def[i]==
-(0x1858+3153-0x24a9)){i++;if(Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]!=NON_GSM){
+(0x19d1+3286-0x26a7)]);for(i=(0xdf4+5337-0x22cd);i<len;i++){if(def[i]==
+(0x718+4335-0x1807)){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]==(0x1ca9+135-0x1d10)))
-{gsm_default[k]=(0x45d+4001-0x13de);k++;continue;}for(q=(0x9b+6316-0x1947);q<s1;
-q++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0xbfc+2129-0x144c)]){
-gsm_default[k]=(0xb6c+534-0xd67);k++;gsm_default[k]=
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x159f+757-0x1894)];break;}}}else{tmp=
-(def[i]<<(0xd27+3667-0x1b72))+def[i+(0x41c+6708-0x1e4f)];i++;if(tmp==
-(0x2146+1219-0x55d)){gsm_default[k]=(0x1073+780-0x1364);k++;gsm_default[k]=
-(0x704+5277-0x1b3c);k++;}for(p=(0x46a+2003-0xc3d);p<s2;p++){if(tmp==
-Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0x9bf+5978-0x2118)]){gsm_default[k]=
-Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0x251+4446-0x13af)];break;}}}k++;}gsm_default
-[k]='\0';return k;}unsigned long zUfiSms_ConvertUcs2ToPortuguese(const unsigned 
-char*def,unsigned char*gsm_default,unsigned long len){unsigned long i=
-(0xec7+1058-0x12e9);unsigned long k=(0x4d7+3010-0x1099);unsigned long p=
-(0x18f8+2252-0x21c4);unsigned long tmp=(0x18bd+620-0x1b29);unsigned long s1=
-(0xe5+8040-0x204d),s2=(0xe8d+1395-0x1400);unsigned long q=(0x3d9+5758-0x1a57);s1
-=sizeof(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x719+188-0x7d5)]);s2=sizeof(
+Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x571+5085-0x192e)))
+{gsm_default[k]=(0xd70+4168-0x1d98);k++;continue;}for(q=(0x11ef+3478-0x1f85);q<
+s1;q++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0xe5c+6014-0x25d9)]
+){gsm_default[k]=(0x2f+4487-0x119b);k++;gsm_default[k]=
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x1c36+217-0x1d0f)];break;}}}else{tmp=
+(def[i]<<(0x2f2+5360-0x17da))+def[i+(0x1c59+2262-0x252e)];i++;if(tmp==8364){
+gsm_default[k]=(0xd91+5886-0x2474);k++;gsm_default[k]=(0x347+7664-0x20d2);k++;}
+for(p=(0xae0+967-0xea7);p<s2;p++){if(tmp==Ucs2_To_Gsm7_SPANISH_Table_UCS[p][
+(0x14b4+938-0x185d)]){gsm_default[k]=Ucs2_To_Gsm7_SPANISH_Table_UCS[p][
+(0x2359+817-0x268a)];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=(0x420+2654-0xe7e);unsigned long 
+k=(0xb49+1127-0xfb0);unsigned long p=(0x12b+762-0x425);unsigned long tmp=
+(0xb3f+6957-0x266c);unsigned long s1=(0xd86+2634-0x17d0),s2=(0x94c+2811-0x1447);
+unsigned long q=(0xb+7015-0x1b72);s1=sizeof(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x341+2467-0xce4)]);s2=sizeof(
 Ucs2_To_Gsm7_PORTUGUESE_Table_UCS)/sizeof(Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[
-(0xa41+5938-0x2173)]);for(i=(0x17ec+2402-0x214e);i<len;i++){if(def[i]==
-(0x5b8+5611-0x1ba3)){i++;if(Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]!=NON_GSM){
+(0x4ac+4613-0x16b1)]);for(i=(0x1277+1286-0x177d);i<len;i++){if(def[i]==
+(0x9f+5239-0x1516)){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]==(0x2d1+1967-0xa60)
-)){gsm_default[k]=(0x147+2894-0xc75);k++;continue;}for(q=(0x1ff+8512-0x233f);q<
-s1;q++){if(def[i]==zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x2f6+941-0x6a2)
-]){gsm_default[k]=(0x2d4+7236-0x1efd);k++;gsm_default[k]=
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x6dd+1644-0xd49)];break;}}}else{
-tmp=(def[i]<<(0x77d+6976-0x22b5))+def[i+(0x224f+162-0x22f0)];i++;if(tmp==8364){
-gsm_default[k]=(0x189a+1823-0x1f9e);k++;gsm_default[k]=(0x122b+4736-0x2446);k++;
-continue;}for(p=(0x8bf+3255-0x1576);p<s2;p++){if(tmp==
-Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x7b1+5465-0x1d09)]){gsm_default[k]=
-Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0xa25+1437-0xfc2)];break;}}}k++;}
+Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]==NON_GSM)&&(def[i]==
+(0x1a3+5972-0x18d7))){gsm_default[k]=(0x1157+1634-0x1799);k++;continue;}for(q=
+(0x21+1193-0x4ca);q<s1;q++){if(def[i]==zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[
+q][(0xf91+4645-0x21b5)]){gsm_default[k]=(0x653+3159-0x128f);k++;gsm_default[k]=
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x11d3+2294-0x1ac9)];break;}}}else{
+tmp=(def[i]<<(0x13d2+2058-0x1bd4))+def[i+(0xa51+6931-0x2563)];i++;if(tmp==8364){
+gsm_default[k]=(0x180+4778-0x140f);k++;gsm_default[k]=(0x1fb5+1319-0x2477);k++;
+continue;}for(p=(0x216+6451-0x1b49);p<s2;p++){if(tmp==
+Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0xa90+4923-0x1dca)]){gsm_default[k]=
+Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x30d+2685-0xd8a)];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=(0x127b+2714-0x1d15);unsigned long k=(0x11cc+1268-0x16c0);unsigned long p
-=(0x20dd+1279-0x25dc);unsigned long tmp=(0x12a0+1791-0x199f);unsigned long s1=
-(0xe95+5643-0x24a0),s2=(0x1085+1823-0x17a4);unsigned long q=(0x563+7772-0x23bf);
-s1=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x18a3+3164-0x24ff)]);s2=sizeof(
+long i=(0x1383+3046-0x1f69);unsigned long k=(0xc28+1599-0x1267);unsigned long p=
+(0x857+2410-0x11c1);unsigned long tmp=(0x821+1971-0xfd4);unsigned long s1=
+(0x530+1330-0xa62),s2=(0x143+804-0x467);unsigned long q=(0x13b0+495-0x159f);s1=
+sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x3fa+7886-0x22c8)]);s2=sizeof(
 UCS2_To_GSMDefault_Table_UCS2)/sizeof(UCS2_To_GSMDefault_Table_UCS2[
-(0xcb8+985-0x1091)]);for(i=(0x4b9+947-0x86c);i<len;i++){if(def[i]==
-(0x1e72+1525-0x2467)){i++;if(UCS2_To_GSMDefault_Table_ASC[def[i]]!=NON_GSM){
+(0xd47+3437-0x1ab4)]);for(i=(0xd4c+5580-0x2318);i<len;i++){if(def[i]==
+(0x998+6437-0x22bd)){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]==(0x8f+4956-0x13cb))){
-gsm_default[k]=(0x1aa1+2279-0x2368);k++;continue;}for(q=(0x179+1039-0x588);q<s1;
-q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x1b2+8320-0x2231)]){
-gsm_default[k]=(0x3b8+5545-0x1946);k++;gsm_default[k]=
-zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x1b01+2060-0x230d)];break;}}}else{tmp=(
-def[i]<<(0x638+4123-0x164b))+def[i+(0x718+5289-0x1bc0)];i++;if(tmp==8364){
-gsm_default[k]=(0xad4+6871-0x2590);k++;gsm_default[k]=(0x866+5972-0x1f55);k++;
-continue;}for(p=(0x80b+2577-0x121c);p<s2;p++){if(tmp==
-UCS2_To_GSMDefault_Table_UCS2[p][(0x1052+697-0x130a)]){gsm_default[k]=
-UCS2_To_GSMDefault_Table_UCS2[p][(0x9d+6403-0x19a0)];break;}}}k++;}gsm_default[k
-]='\0';return k;}UINT8 zUfiSms_TsIntToBcd(const UINT8 i){return(UINT8)(((i%
-(0x603+411-0x794))+((i/(0x128+6427-0x1a39))<<(0x433+5844-0x1b03))));}void 
+UCS2_To_GSMDefault_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x748+6103-0x1eff))){
+gsm_default[k]=(0xd94+1454-0x1322);k++;continue;}for(q=(0x94f+1785-0x1048);q<s1;
+q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0xf9c+3150-0x1be9)]){
+gsm_default[k]=(0x742+7258-0x2381);k++;gsm_default[k]=
+zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x106+1224-0x5ce)];break;}}}else{tmp=(
+def[i]<<(0x220a+1065-0x262b))+def[i+(0x5b7+6702-0x1fe4)];i++;if(tmp==8364){
+gsm_default[k]=(0x1825+254-0x1908);k++;gsm_default[k]=(0x912+4652-0x1ad9);k++;
+continue;}for(p=(0x1dec+1480-0x23b4);p<s2;p++){if(tmp==
+UCS2_To_GSMDefault_Table_UCS2[p][(0x1bb6+259-0x1cb8)]){gsm_default[k]=
+UCS2_To_GSMDefault_Table_UCS2[p][(0x696+697-0x94f)];break;}}}k++;}gsm_default[k]
+='\0';return k;}UINT8 zUfiSms_TsIntToBcd(const UINT8 i){return(UINT8)(((i%
+(0x18f9+97-0x1950))+((i/(0x168+6625-0x1b3f))<<(0x7df+3389-0x1518))));}void 
 zUfiSms_DecodeRelativeTime(UINT8 iValidTime,T_zUfiSms_TimeStamp*ptTimeStamp){
-uint32 i=(0xba1+278-0xcb7);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
-(0x70d+106-0x777),sizeof(wms_timestamp_s_type));if(iValidTime<
-(0xbe6+5983-0x22b5)){i=(iValidTime+(0x313+8518-0x2458))*(0x220+3689-0x1084);
-ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0x7b2+916-0xb0a)));
-ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0x1592+2917-0x20bb)));}
-else if(iValidTime<(0xb95+2527-0x14cd)){i=(iValidTime-(0x1747+3272-0x2380))*
-(0x9b8+1668-0x101e);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
-(0x1661+1903-0x1dc4)+i/(0x1c24+1157-0x206d)));ptTimeStamp->minute=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0x6e3+3468-0x1433)));}else if(iValidTime<
-(0x104+1115-0x49a)){i=iValidTime-(0x1863+2459-0x2158);ptTimeStamp->month=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i/(0x34+8097-0x1fb7)));ptTimeStamp->day=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0x15e0+1029-0x19c7)));}else{i=(iValidTime-
-(0xd20+243-0xd53))*(0x37b+6379-0x1c5f);ptTimeStamp->year=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i/(0xb3f+1630-0x1030)));ptTimeStamp->month=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)((i%(0xde7+656-0xf0a))/(0x1a98+396-0x1c06)));
-ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0x77c+6989-0x215c))%
-(0x1295+2392-0x1bcf)));}}else{printf(
+uint32 i=(0x879+7654-0x265f);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
+(0x1da+3022-0xda8),sizeof(wms_timestamp_s_type));if(iValidTime<
+(0x8bc+4375-0x1943)){i=(iValidTime+(0x43f+5144-0x1856))*(0x19f5+523-0x1bfb);
+ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0x1109+4969-0x2436)));
+ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0xed4+6199-0x26cf)));}
+else if(iValidTime<(0xd43+4804-0x1f60)){i=(iValidTime-(0x11ba+2510-0x1af9))*
+(0xc73+4328-0x1d3d);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
+(0x64+3945-0xfc1)+i/(0x1b23+851-0x1e3a)));ptTimeStamp->minute=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0x177+4971-0x14a6)));}else if(iValidTime<
+(0x313+6870-0x1d24)){i=iValidTime-(0xe13+1553-0x137e);ptTimeStamp->month=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i/(0xdf1+2283-0x16be)));ptTimeStamp->day=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0xc4b+2804-0x1721)));}else{i=(iValidTime-
+(0x830+4761-0x1a09))*(0x869+977-0xc33);ptTimeStamp->year=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i/(0xd56+3451-0x1964)));ptTimeStamp->month=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)((i%(0x1f97+294-0x1f50))/(0x21d6+553-0x23e1)));
+ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0x7ef+1304-0xb9a))%
+(0x19fc+817-0x1d0f)));}}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=(0x1b86+931-0x1f29);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}
-for(i=(0x9dd+4561-0x1bae);i<iLen;i++){pIntArray[i]=pCharArray[i]-
-((char)(0x4f3+3609-0x12dc));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
+i=(0x1e38+2111-0x2677);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}
+for(i=(0x1cb+3560-0xfb3);i<iLen;i++){pIntArray[i]=pCharArray[i]-
+((char)(0x3a0+856-0x6c8));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
 T_zUfiSms_SubmitTpdu*ptSubmit,T_zUfiSms_ConcatInfo*ptConcatSms,
-T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0x405+122-0x47f);if(ptConcatSms->
-total_msg>(0x1e09+1236-0x22dc)){g_zUfiSms_SendingSms.TP_UDHI=
-(0x10ca+2306-0x19cb);g_zUfiSms_SendingSms.TP_UD[(0x7e0+4032-0x17a0)]=
-(0x696+3451-0x140c);g_zUfiSms_SendingSms.TP_UD[(0xb98+2312-0x149f)]=
-(0xdf1+6179-0x260f);g_zUfiSms_SendingSms.TP_UD[(0x1032+2968-0x1bc8)]=
-(0xca+3623-0xeee);g_zUfiSms_SendingSms.TP_UD[(0x1044+3384-0x1d79)]=(char)
-ptDbSaveData->concat_info[(0x1a80+2098-0x22b2)]%(0x3c5+21-0x2db);
-g_zUfiSms_SendingSms.TP_UD[(0xe4c+4164-0x1e8c)]=(char)ptConcatSms->total_msg;
-g_zUfiSms_SendingSms.TP_UD[(0x171c+2774-0x21ed)]=(char)ptConcatSms->
-current_sending+(0x6ad+3803-0x1587);g_zUfiSms_SendingSms.TP_UD[
-(0x1f65+1299-0x2472)]=(0x1589+1495-0x1b5a);for(i=(0x80b+418-0x9ad);i<ptSubmit->
-user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD[i+(0x1237+1033-0x1639)]=
-ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.TP_UDLength=ptSubmit->
-user_data.sm_len+(0x1f43+1242-0x2416);}else{for(i=(0x22e7+637-0x2564);i<ptSubmit
-->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD[i]=ptSubmit->user_data.
-sm_data[i];}g_zUfiSms_SendingSms.TP_UDLength=ptSubmit->user_data.sm_len;}}void 
-zUfiSms_FillGlobalTpudUcs2(T_zUfiSms_SubmitTpdu*ptSubmit,T_zUfiSms_ConcatInfo*
-ptConcatSms,T_zUfiSms_DbStoreData*ptDbSaveData){if(ptConcatSms->total_msg>
-(0x1220+33-0x1240)){g_zUfiSms_SendingSms.TP_UDHI=(0xed4+2087-0x16fa);
-g_zUfiSms_SendingSms.TP_UD[(0xa43+2063-0x1252)]=(0x240+9308-0x2697);
-g_zUfiSms_SendingSms.TP_UD[(0xd0c+38-0xd31)]=(0xe6a+4746-0x20ef);
-g_zUfiSms_SendingSms.TP_UD[(0x5ea+7182-0x21f6)]=(0x16d4+666-0x196b);
-g_zUfiSms_SendingSms.TP_UD[(0x134b+1241-0x1821)]=(char)ptDbSaveData->concat_info
-[(0x11cd+3851-0x20d8)]%(0x1e2+1792-0x7e3);g_zUfiSms_SendingSms.TP_UD[
-(0x63a+2800-0x1126)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
-(0x115d+118-0x11ce)]=(char)ptConcatSms->current_sending+(0x728+7301-0x23ac);(
-void)Bytes2String(ptSubmit->user_data.sm_data,&g_zUfiSms_SendingSms.TP_UD[
-(0x192b+266-0x1a2f)],ptSubmit->user_data.sm_len);}else{(void)Bytes2String(
-ptSubmit->user_data.sm_data,g_zUfiSms_SendingSms.TP_UD,ptSubmit->user_data.
-sm_len);}}unsigned char zUfiSms_Low2High(unsigned char x){if(x>=
-((char)(0x11b7+905-0x14df))&&x<((char)(0x1500+2371-0x1ddc))){x=(x-
-((char)(0x1229+297-0x12f1)))+((char)(0x1d96+1370-0x22af));}return x;}unsigned 
-char zUfiSms_Char2Dec(unsigned char x){unsigned char d=(0x415+3066-0x100f);if(x
->=((char)(0x13ed+1985-0x1b6d))&&x<((char)(0x109+1466-0x67c))){d=(x-
-((char)(0x382+4856-0x1639)))+(0xc78+4321-0x1d4f);}else{d=x-
-((char)(0xc5c+2454-0x15c2));}return d;}unsigned char zUfiSms_Char2Byte(unsigned 
-char a,unsigned char b){unsigned char data=(0xdb7+1424-0x1347);unsigned char l=
-(0x24ac+101-0x2511),h=(0x866+5455-0x1db5);a=zUfiSms_Low2High(a);b=
-zUfiSms_Low2High(b);h=zUfiSms_Char2Dec(a);l=zUfiSms_Char2Dec(b);data=h*
-(0x1ff+4344-0x12e7)+l;return data;}void zUfiSms_Str2Bytes(unsigned char*text,int
- text_len,unsigned char*data,int data_len){int i=(0xfbd+2980-0x1b61);while(
-(0x67f+4623-0x188c)*i+(0x1b17+2156-0x2382)<text_len){data[i]=zUfiSms_Char2Byte(
-text[(0x230+3393-0xf6f)*i],text[(0x31+3675-0xe8a)*i+(0x16bd+48-0x16ec)]);i++;}}
-int zUfiSms_SplitString(char*input,char***output,char cMatchChar){int src=
-(0x3fd+8817-0x266e);int dst=(0x4a2+3339-0x11ad);int count=(0x70d+1700-0xdb1);int
- size=(0x19e5+1185-0x1e7e);char quoted=(0xf79+2994-0x1b2b);char**tmpout=NULL;*
-output=(char**)malloc(sizeof(char*)*size);if(NULL==*output){return-
-(0xc20+6659-0x2622);}(*output)[count++]=input;for(src=dst=(0x20f+542-0x42d);
-input[src];){char cInputChar=input[src];if(!quoted&&cInputChar==cMatchChar){
-input[dst++]=(0x741+1886-0xe9f);while(input[++src]&&(int)isspace(input[src])){};
-if(count>=size){size+=(0x2336+340-0x247a);tmpout=(char**)realloc(*output,sizeof(
-char*)*size);if(NULL==tmpout){return-(0x2512+205-0x25de);}*output=tmpout;}(*
-output)[count++]=input+dst;}else if(!quoted&&(cInputChar=='\''||cInputChar==
-((char)(0x851+6147-0x2032)))){quoted=cInputChar;src++;}else if(cInputChar==
-quoted){quoted=(0xc4a+4048-0x1c1a);src++;}else{if(cInputChar=='\\'&&quoted!='\''
-){src++;cInputChar=input[src];if(!cInputChar){free(*output);*output=NULL;return-
-(0x7a3+6831-0x2251);}}input[dst++]=cInputChar;src++;}}input[dst]=
-(0x76d+2074-0xf87);if(quoted){free(*output);*output=NULL;return-
-(0x20f7+6-0x20fc);}return count;}int zUfiSms_atohex(char c){int result=
-(0x7c1+3647-0x1600);if(c>=((char)(0x1d71+1056-0x2161))&&c<=
-((char)(0x604+4285-0x1688))){result=c-((char)(0xa52+2614-0x1458));}else if(c>=
-((char)(0xef+2455-0xa25))&&c<=((char)(0xe3f+4639-0x1ff8))){result=(c-
-((char)(0x160+8657-0x22d0)))+(0x1c83+2702-0x2707);}else if(c>=
-((char)(0x55d+2718-0xfba))&&c<=((char)(0xfd8+449-0x1153))){result=(c-
-((char)(0x1a49+682-0x1cb2)))+(0x1ff9+1062-0x2415);}else{at_print(LOG_DEBUG,
+T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0xfec+4090-0x1fe6);if(ptConcatSms->
+total_msg>(0x1b92+1652-0x2205)){g_zUfiSms_SendingSms.TP_UDHI=(0x49c+6242-0x1cfd)
+;g_zUfiSms_SendingSms.TP_UD[(0x11af+3679-0x200e)]=(0x491+6534-0x1e12);
+g_zUfiSms_SendingSms.TP_UD[(0x7e0+6908-0x22db)]=(0x23b+7892-0x210a);
+g_zUfiSms_SendingSms.TP_UD[(0x279+137-0x300)]=(0xa10+5539-0x1fb0);
+g_zUfiSms_SendingSms.TP_UD[(0x10e6+1457-0x1694)]=(char)ptDbSaveData->concat_info
+[(0xa03+825-0xd3c)]%(0x1650+3525-0x2316);g_zUfiSms_SendingSms.TP_UD[
+(0x1724+1902-0x1e8e)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
+(0xe2a+1623-0x147c)]=(char)ptConcatSms->current_sending+(0x369+9096-0x26f0);
+g_zUfiSms_SendingSms.TP_UD[(0x928+4597-0x1b17)]=(0x3f5+8240-0x241f);for(i=
+(0xb67+3814-0x1a4d);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD
+[i+(0x1e3b+1977-0x25ed)]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.
+TP_UDLength=ptSubmit->user_data.sm_len+(0x1073+4641-0x228d);}else{for(i=
+(0x272+5526-0x1808);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>(0xe40+6102-0x2615)){g_zUfiSms_SendingSms.TP_UDHI=
+(0x1e6a+188-0x1f25);g_zUfiSms_SendingSms.TP_UD[(0x289+1027-0x68c)]=
+(0xb77+5175-0x1fa9);g_zUfiSms_SendingSms.TP_UD[(0x901+794-0xc1a)]=
+(0x131f+3192-0x1f92);g_zUfiSms_SendingSms.TP_UD[(0x196+9306-0x25ee)]=
+(0x16ca+2371-0x200a);g_zUfiSms_SendingSms.TP_UD[(0xee9+800-0x1206)]=(char)
+ptDbSaveData->concat_info[(0x2d+6694-0x1a53)]%(0x16a9+2163-0x1e1d);
+g_zUfiSms_SendingSms.TP_UD[(0x1888+3461-0x2609)]=(char)ptConcatSms->total_msg;
+g_zUfiSms_SendingSms.TP_UD[(0xd2d+6006-0x249e)]=(char)ptConcatSms->
+current_sending+(0x49+9320-0x24b0);(void)Bytes2String(ptSubmit->user_data.
+sm_data,&g_zUfiSms_SendingSms.TP_UD[(0xca9+1631-0x1302)],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)(0x103d+5205-0x2431))&&x<
+((char)(0x8d3+2059-0x1077))){x=(x-((char)(0x10f6+789-0x13aa)))+
+((char)(0x10e4+5097-0x248c));}return x;}unsigned char zUfiSms_Char2Dec(unsigned 
+char x){unsigned char d=(0xc3a+6252-0x24a6);if(x>=((char)(0x863+226-0x904))&&x<
+((char)(0x1103+4572-0x2298))){d=(x-((char)(0x1b90+110-0x1bbd)))+
+(0xbf+5126-0x14bb);}else{d=x-((char)(0x5c5+1077-0x9ca));}return d;}unsigned char
+ zUfiSms_Char2Byte(unsigned char a,unsigned char b){unsigned char data=
+(0x9d3+7124-0x25a7);unsigned char l=(0x1a43+3091-0x2656),h=(0x12a+2225-0x9db);a=
+zUfiSms_Low2High(a);b=zUfiSms_Low2High(b);h=zUfiSms_Char2Dec(a);l=
+zUfiSms_Char2Dec(b);data=h*(0xb74+3692-0x19d0)+l;return data;}void 
+zUfiSms_Str2Bytes(unsigned char*text,int text_len,unsigned char*data,int 
+data_len){int i=(0xc7+899-0x44a);while((0x592+3350-0x12a6)*i+(0xcf0+6352-0x25bf)
+<text_len){data[i]=zUfiSms_Char2Byte(text[(0x16e3+2507-0x20ac)*i],text[
+(0x110d+909-0x1498)*i+(0x1bf+7640-0x1f96)]);i++;}}int zUfiSms_SplitString(char*
+input,char***output,char cMatchChar){int src=(0x18c3+2553-0x22bc);int dst=
+(0xbf4+1718-0x12aa);int count=(0xd83+5863-0x246a);int size=(0x9df+587-0xc22);
+char quoted=(0x6d2+3563-0x14bd);char**tmpout=NULL;*output=(char**)malloc(sizeof(
+char*)*size);if(NULL==*output){return-(0xd61+3283-0x1a33);}(*output)[count++]=
+input;for(src=dst=(0x531+4125-0x154e);input[src];){char cInputChar=input[src];if
+(!quoted&&cInputChar==cMatchChar){input[dst++]=(0xf4c+1304-0x1464);while(input[
+++src]&&(int)isspace(input[src])){};if(count>=size){size+=(0x15+1789-0x702);
+tmpout=(char**)realloc(*output,sizeof(char*)*size);if(NULL==tmpout){return-
+(0x6a5+8102-0x264a);}*output=tmpout;}(*output)[count++]=input+dst;}else if(!
+quoted&&(cInputChar=='\''||cInputChar==((char)(0x1c33+729-0x1eea)))){quoted=
+cInputChar;src++;}else if(cInputChar==quoted){quoted=(0x1825+249-0x191e);src++;}
+else{if(cInputChar=='\\'&&quoted!='\''){src++;cInputChar=input[src];if(!
+cInputChar){free(*output);*output=NULL;return-(0x341+5070-0x170e);}}input[dst++]
+=cInputChar;src++;}}input[dst]=(0xe43+2550-0x1839);if(quoted){free(*output);*
+output=NULL;return-(0x1c76+808-0x1f9d);}return count;}int zUfiSms_atohex(char c)
+{int result=(0x18e4+1509-0x1ec9);if(c>=((char)(0x109c+3967-0x1feb))&&c<=
+((char)(0xa63+2818-0x152c))){result=c-((char)(0xfe8+5284-0x245c));}else if(c>=
+((char)(0x507+6560-0x1e46))&&c<=((char)(0x160d+3099-0x21c2))){result=(c-
+((char)(0x6fc+7684-0x249f)))+(0x166a+3551-0x243f);}else if(c>=
+((char)(0x28a+6484-0x1b9d))&&c<=((char)(0x176+7171-0x1d33))){result=(c-
+((char)(0x1bb+2486-0xb30)))+(0x3d+8829-0x22b0);}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=(0x1435+3126-0x206b);int high=
-(0x13d9+4006-0x237f);if(in_ptr==NULL||out_ptr==NULL){printf(
+int iLength,unsigned char*out_ptr){int low=(0x1d77+10-0x1d81);int high=
+(0xe6c+71-0xeb3);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>(0x1d+3328-0xd1d)){low=in_ptr[iLength-
-(0x1f67+257-0x2067)]&(0xb6+5762-0x1729);high=(in_ptr[iLength-(0x2ea+8690-0x24db)
-]&(0x93a+4982-0x1bc0))>>(0x8aa+4557-0x1a73);out_ptr[(0x853+4477-0x19ce)*iLength-
-(0xf6+2749-0xbb2)]=g_zUfiSms_DigAscMap[low];out_ptr[(0x6b6+3255-0x136b)*iLength-
-(0x1337+3955-0x22a8)]=g_zUfiSms_DigAscMap[high];iLength--;}return ZUFI_SUCC;}
-unsigned int zte_wms_convert_PORTUGUESE_To_UCS2(const unsigned char*gsmdef,
-unsigned char*ucs2,unsigned int len){unsigned int i=(0x977+3104-0x1597);unsigned
- int j=(0xec2+5539-0x2465);unsigned int k=(0x191+1352-0x6d9);unsigned int p=
-(0x1e06+2158-0x2674);unsigned int s=(0x8a4+4784-0x1b54);s=sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x1ab2+2261-0x2387)]);for(i=
-(0xe63+1088-0x12a3);i<len;i++){j=gsmdef[i];if(j==(0x902+6247-0x214e)){i++;for(p=
-(0x13e5+3954-0x2357);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
-(0x1b58+217-0x1c31)]==gsmdef[i]){ucs2[k]=
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x1f3c+1757-0x2618)]>>
-(0x1c14+655-0x1e9b);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x130+4449-0x1290)]);break;}}}else{
-ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x1021+505-0x1212);k++;ucs2[k
-]=(unsigned char)(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]);}k++;}ucs2[k]='\0';
-return k;}unsigned int zte_wms_convert_PORTUGUESE_To_UCS2_USE_GSM7_SS_PORTU_LS(
+);return ZUFI_FAIL;}while(iLength>(0x15c1+1901-0x1d2e)){low=in_ptr[iLength-
+(0x1008+3487-0x1da6)]&(0x1cd0+891-0x203c);high=(in_ptr[iLength-
+(0xba4+2403-0x1506)]&(0xee7+2821-0x18fc))>>(0x811+410-0x9a7);out_ptr[
+(0x2f1+2455-0xc86)*iLength-(0x154+4340-0x1247)]=g_zUfiSms_DigAscMap[low];out_ptr
+[(0x249+7935-0x2146)*iLength-(0x1466+3831-0x235b)]=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=
-(0x45+8335-0x20d4);unsigned int j=(0xd74+1184-0x1214);unsigned int k=
-(0xa9d+1487-0x106c);unsigned int p=(0x1867+3018-0x2431);unsigned int s=
-(0x224+2564-0xc28);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x8bb+5116-0x1cb7)]);for(i=
-(0x67f+5557-0x1c34);i<len;i++){j=gsmdef[i];if(j==(0x275+5119-0x1659)){i++;for(p=
-(0x14f5+4441-0x264e);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x4da+7219-0x210d)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x80d+1764-0xef0)]>>(0x1324+4024-0x22d4);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0xb9a+5255-0x2020)]);break;}}}else{ucs2[
-k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x11ac+4421-0x22e9);k++;ucs2[k]=(
+(0x1402+2970-0x1f9c);unsigned int j=(0x98+8064-0x2018);unsigned int k=
+(0xc9+9344-0x2549);unsigned int p=(0x13d+105-0x1a6);unsigned int s=
+(0xe29+1173-0x12be);s=sizeof(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x102d+1543-0x1634)]);for(i=
+(0x11a2+5322-0x266c);i<len;i++){j=gsmdef[i];if(j==(0x8b+5260-0x14fc)){i++;for(p=
+(0x13cc+1785-0x1ac5);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
+(0x608+5615-0x1bf7)]==gsmdef[i]){ucs2[k]=
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x12+6876-0x1aed)]>>
+(0xa7+2278-0x985);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x1a6c+2184-0x22f3)]);break;}}}else
+{ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x144b+3657-0x228c);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=
+(0x306+4785-0x15b7);unsigned int j=(0xfe9+2894-0x1b37);unsigned int k=
+(0x3ea+7081-0x1f93);unsigned int p=(0xd64+4260-0x1e08);unsigned int s=
+(0x68a+7413-0x237f);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x366+4452-0x14ca)]);for(i=
+(0x1585+2354-0x1eb7);i<len;i++){j=gsmdef[i];if(j==(0x60b+6662-0x1ff6)){i++;for(p
+=(0x78b+5145-0x1ba4);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x4b3+7043-0x2036)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x1ed5+1107-0x2327)]>>(0x159f+933-0x193c);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x5d6+3651-0x1418)]);break;}}}else{ucs2[
+k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0xa1b+4408-0x1b4b);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=(0x804+5442-0x1d46)
-;unsigned long j=(0xf4+2572-0xb00);unsigned long k=(0xf1f+4026-0x1ed9);unsigned 
-long p=(0x3b3+7187-0x1fc6);unsigned long s=(0xbf3+2678-0x1669);unsigned long 
-is_find=(0x16d7+2094-0x1f05);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/
-sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x231+6469-0x1b76)]);for(i=
-(0x397+6185-0x1bc0);i<len;i++){j=gsmdef[i];if(j==(0xf11+4540-0x20b2)){i++;for(p=
-(0xd27+2256-0x15f7);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0xac2+17-0xad3)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x61d+402-0x7ae)]>>(0x27+2919-0xb86);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x1670+4189-0x26cc)]);is_find=
-(0x6e4+7721-0x250c);break;}}if(!is_find){at_print(LOG_DEBUG,
+gsmdef,unsigned char*ucs2,unsigned long len){unsigned long i=(0xcd6+5375-0x21d5)
+;unsigned long j=(0x52+5005-0x13df);unsigned long k=(0x3dd+5824-0x1a9d);unsigned
+ long p=(0xae3+349-0xc40);unsigned long s=(0x13e9+1312-0x1909);unsigned long 
+is_find=(0xd1c+5342-0x21fa);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof
+(zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x82f+1940-0xfc3)]);for(i=
+(0x1e59+800-0x2179);i<len;i++){j=gsmdef[i];if(j==(0xc6d+3796-0x1b26)){i++;for(p=
+(0xf4b+2945-0x1acc);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x995+670-0xc33)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x4cb+7006-0x2028)]>>(0x331+470-0x4ff);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0xa3c+2752-0x14fb)]);is_find=
+(0x8c3+1184-0xd62);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]>>
-(0x179c+1835-0x1ebf);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table[j]);}}else{ucs2[k]=
-zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x1bf1+1943-0x2380);k++;ucs2[k]=(unsigned 
+,gsmdef[i]);i--;ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x652+347-0x7a5);k
+++;ucs2[k]=(unsigned char)(zte_sms_GSMDefault_To_UCS2_Table[j]);}}else{ucs2[k]=
+zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x159d+43-0x15c0);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[(0xe64+6012-0x25de)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
-(0x92a+961-0xcea)]={(0xd06+5756-0x2382)};UINT16 len=(0xdbd+5945-0x24f6);switch(
-g_zUfiSms_Language){case DCS_PORTUGUESE:if(g_zUfiSms_IsLanguageShift==
+ascii_content[(0x4e4+7604-0x2296)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
+(0x1f43+1579-0x256d)]={(0x26b+267-0x376)};UINT16 len=(0x1290+2694-0x1d16);switch
+(g_zUfiSms_Language){case DCS_PORTUGUESE:if(g_zUfiSms_IsLanguageShift==
 WMS_UDH_NAT_LANG_SS){len=zte_wms_convert_PORTUGUESE_To_UCS2((const UINT8*)data,(
 UINT8*)ascii_content,sms_len);}else if(g_zUfiSms_IsLanguageShift==
 WMS_UDH_NAT_LANG_LS){len=zte_wms_convert_PORTUGUESE_To_UCS2_USE_GSM7_SS_PORTU_LS
@@ -670,47 +671,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[(0xf+9563-0x2569)+(0x208+8043-0x20d3)+(0x47f+943-0x82d)]={
-(0xdab+5310-0x2269)};int len=(0x1626+188-0x16e2);if(msg_content==NULL||
-out_content==NULL||sms_len>(0x670+3999-0x14cf)||sms_len<(0xbf6+1070-0x1022)){
-return endEsc;}len=sms_len;memset(data,(0xa2d+337-0xb7e),(0x1c0c+311-0x1ca1));p=
-data;if(isEsc){*p=(0x380+7214-0x1f93);p++;}zUfiSms_Str2Bytes((unsigned char*)
-msg_content,len,(unsigned char*)p,(0x15e9+766-0x1847));if(p[len/
-(0x1478+664-0x170e)-(0x4e1+2399-0xe3f)]==(0x61+1-0x47)){endEsc=TRUE;}
-zUfiSms_ConvertUcs2(data,len/(0x35b+5542-0x18ff)+(isEsc?(0x3bc+4800-0x167b):
-(0x1376+4723-0x25e9))-(endEsc?(0x9cd+1204-0xe80):(0x169c+3608-0x24b4)),
+data[(0x2bb+6895-0x1da9)+(0x3a2+6652-0x1cfe)+(0xa98+5718-0x20ed)]={
+(0xb5a+2595-0x157d)};int len=(0xf27+394-0x10b1);if(msg_content==NULL||
+out_content==NULL||sms_len>(0x1a3d+986-0x1cd7)||sms_len<(0x1923+2378-0x226b)){
+return endEsc;}len=sms_len;memset(data,(0xb07+6111-0x22e6),(0x9f2+1745-0x1021));
+p=data;if(isEsc){*p=(0x141c+519-0x1608);p++;}zUfiSms_Str2Bytes((unsigned char*)
+msg_content,len,(unsigned char*)p,(0xf41+5478-0x2407));if(p[len/
+(0xe3a+1266-0x132a)-(0x31+7294-0x1cae)]==(0xe14+4742-0x207f)){endEsc=TRUE;}
+zUfiSms_ConvertUcs2(data,len/(0x9d7+3061-0x15ca)+(isEsc?(0x18c9+855-0x1c1f):
+(0x1b9f+254-0x1c9d))-(endEsc?(0x8a8+4701-0x1b04):(0x633+7394-0x2315)),
 out_content);return endEsc;}byte*zUfiSms_SmsiUtilitoa(uint32 v,byte*s,UINT16 r){
-byte buf[(0x11a1+4824-0x2458)],c;int n;n=sizeof(buf)-(0x6d4+1585-0xd04);buf[n]=
-'\0';do{c=(byte)(v%r);if(n<=(0x88b+4895-0x1baa)){printf(
+byte buf[(0x16a0+1565-0x1c9c)],c;int n;n=sizeof(buf)-(0xa42+171-0xaec);buf[n]=
+'\0';do{c=(byte)(v%r);if(n<=(0x39f+4111-0x13ae)){printf(
 "\x4f\x56\x45\x52\x46\x4c\x4f\x57\x20");break;}buf[--n]=(byte)((c>
-(0xb1b+6962-0x2644))?c+((char)(0x64+3195-0xc9e))-(0x1e55+605-0x20a8):c+
-((char)(0xd12+376-0xe5a)));}while((v/=r)>(0xf20+3081-0x1b29));while((*s++=buf[n
-++])!=(0x1ed+3081-0xdf6));return(s-(0x8a5+5740-0x1f10));}byte*
+(0x6d5+5404-0x1be8))?c+((char)(0x123d+4776-0x24a4))-(0x40a+2099-0xc33):c+
+((char)(0xcf7+1990-0x148d)));}while((v/=r)>(0xbd2+2613-0x1607));while((*s++=buf[
+n++])!=(0xb7c+2450-0x150e));return(s-(0x9f1+326-0xb36));}byte*
 zUfiSms_SmsiAddrToStr(wms_address_s_type addr,byte*res_ptr,UINT8*type_of_addr){
-byte bcd_idx=(0x1c40+192-0x1d00);UINT8 temp=(0x613+370-0x785);*type_of_addr=
-(0x121b+727-0x14f2);temp=(UINT8)((uint32)addr.number_type&(0x786+7207-0x23a6));*
-type_of_addr=(UINT8)((*type_of_addr|temp)<<(0x13f+2829-0xc48));temp=(UINT8)((
-uint32)addr.number_plan&(0x1539+2960-0x20c2));*type_of_addr=*type_of_addr|temp;*
-type_of_addr=*type_of_addr|(0x4fc+7741-0x22b9);while(bcd_idx<addr.
-number_of_digits){if(addr.digits[bcd_idx]==(0x6dc+6167-0x1ee9)){addr.digits[
-bcd_idx]=(0xa3a+44-0xa66);}res_ptr=zUfiSms_SmsiUtilitoa((uint32)addr.digits[
-bcd_idx],res_ptr,(0xd8f+5402-0x2299));bcd_idx++;}return res_ptr;}byte*
+byte bcd_idx=(0x92d+1164-0xdb9);UINT8 temp=(0xb4d+2882-0x168f);*type_of_addr=
+(0x51f+606-0x77d);temp=(UINT8)((uint32)addr.number_type&(0xdcb+2009-0x159d));*
+type_of_addr=(UINT8)((*type_of_addr|temp)<<(0x9d2+4254-0x1a6c));temp=(UINT8)((
+uint32)addr.number_plan&(0x9db+3955-0x1947));*type_of_addr=*type_of_addr|temp;*
+type_of_addr=*type_of_addr|(0xd62+5217-0x2143);while(bcd_idx<addr.
+number_of_digits){if(addr.digits[bcd_idx]==(0x11ac+2270-0x1a80)){addr.digits[
+bcd_idx]=(0x1ad3+2666-0x253d);}res_ptr=zUfiSms_SmsiUtilitoa((uint32)addr.digits[
+bcd_idx],res_ptr,(0x594+3749-0x1429));bcd_idx++;}return res_ptr;}byte*
 zUfiSms_SmsiUtilitoaFill(word v,byte*rb_ptr){int n;byte c,*ptr;ptr=rb_ptr+
-(0x286+167-0x32b);*ptr='\0';for(n=(0x2379+747-0x2664);n<(0x10cc+2954-0x1c54);++n
-){c=(byte)(v%(0x152d+315-0x165e));v/=(0x150d+3214-0x2191);*--ptr=(c+
-((char)(0xf6f+2170-0x17b9)));}return rb_ptr+(0x94f+2018-0x112f);}void 
-zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<(0x1053+2622-0x1a87)){
+(0xb24+4964-0x1e86);*ptr='\0';for(n=(0x41c+1992-0xbe4);n<(0x310+1134-0x77c);++n)
+{c=(byte)(v%(0x7c9+6469-0x2104));v/=(0xfa8+1677-0x162b);*--ptr=(c+
+((char)(0xceb+4482-0x1e3d)));}return rb_ptr+(0xb36+6886-0x261a);}void 
+zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<(0x1510+2262-0x1ddc)){
 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=(0x10eb+1964-0x1897);concat_8->seq_num--;
+T_zUfiSms_DbStoreData*db_data){int mux=(0xe60+5788-0x24fc);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=(0x1370+4347-0x246a);db_data->concat_info[
-(0x1503+4514-0x26a5)]=(0x250+9196-0x253d)*mux+concat_8->msg_ref;db_data->
-concat_info[(0x1fb+2101-0xa2e)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX+
-(0x1a5+729-0x47d);db_data->concat_info[(0xa44+7281-0x26b4)]=concat_8->total_sm-
-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
-(0x6a4+4789-0x1958)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(concat_8->total_sm%
+db_data->concat_sms=(0x16f7+1411-0x1c79);db_data->concat_info[
+(0x204+4250-0x129e)]=(0x77d+2123-0xec9)*mux+concat_8->msg_ref;db_data->
+concat_info[(0xb00+5445-0x2043)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX+
+(0xa0d+5315-0x1ecf);db_data->concat_info[(0xe43+3393-0x1b83)]=concat_8->total_sm
+-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
+(0x5ea+7958-0x24ff)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(concat_8->total_sm%
 ZTE_WMS_CONCAT_SMS_COUNT_MAX);}static void zUfiSms_ParserLangSs(wms_udh_s_type*
 user_data_header){if(user_data_header==NULL){return;}switch(user_data_header->u.
 nat_lang_ss.nat_lang_id){case WMS_UDH_NAT_LANG_PORTUGUESE:g_zUfiSms_Language=
@@ -719,27 +720,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=(0x3a8+6731-0x1df3);concat_16->seq_num--;
-db_data->concat_sms=(0xa31+6458-0x236a);
-#if (0x9a+2670-0xb08)

-db_data->concat_info[(0xfd9+1127-0x1440)]=concat_16->msg_ref;db_data->
-concat_info[(0x9e5+5934-0x2112)]=concat_16->total_sm;db_data->concat_info[
-(0xe74+772-0x1176)]=concat_16->seq_num;
+T_zUfiSms_DbStoreData*db_data){int mux=(0x1aef+2531-0x24d2);concat_16->seq_num--
+;db_data->concat_sms=(0x1ee8+1663-0x2566);
+#if (0xfa0+494-0x118e)

+db_data->concat_info[(0x2038+247-0x212f)]=concat_16->msg_ref;db_data->
+concat_info[(0xf4a+5755-0x25c4)]=concat_16->total_sm;db_data->concat_info[
+(0x1b8+2115-0x9f9)]=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[(0xb3a+6699-0x2565)]=(0x1229+5374-0x2628)*mux+concat_16->
-msg_ref;db_data->concat_info[(0x1426+2088-0x1c4c)]=concat_16->seq_num%
-ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xa69+6951-0x258f);db_data->concat_info[
-(0x1ff+6907-0x1cf9)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
-ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0xc70+2286-0x155d)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(
+db_data->concat_info[(0x1d0+6786-0x1c52)]=(0x318+4582-0x13ff)*mux+concat_16->
+msg_ref;db_data->concat_info[(0x1bf4+1851-0x232d)]=concat_16->seq_num%
+ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x12ff+2568-0x1d06);db_data->concat_info[
+(0xb1a+5609-0x2102)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
+ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0x1d0+162-0x271)?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=
-(0xb64+4596-0x1d57);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8),
-db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0x422+7729-0x2252);
+(0x322+5940-0x1a55);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8),
+db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0xf16+5144-0x232d);
 zUfiSms_ParseDeliverConcat16(&(user_data_header->u.concat_16),db_data);break;
 case WMS_UDH_NAT_LANG_SS:g_zUfiSms_IsLanguageShift=WMS_UDH_NAT_LANG_SS;
 zUfiSms_ParserLangSs(user_data_header);break;case WMS_UDH_NAT_LANG_LS:
@@ -749,155 +750,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=(0x147+6764-0x1bb3);int ind=(0x6a8+8049-0x2619);if((
-NULL==ts_data_ptr)||(NULL==db_data)){printf(
+WMS_GW_ALPHABET_MAX32;int i=(0x376+6528-0x1cf6);int ind=(0x120a+1353-0x1753);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,
-(0x19b1+374-0x1b27),ZTE_WMS_ADDRESS_LEN_MAX+(0xbe4+4530-0x1d95));db_data->number
-[(0xa82+2589-0x149f)]=((char)(0xce7+3512-0x1a74));for(i=(0x12c6+1745-0x1997);i<
-address_ptr->number_of_digits;i++){if((0x809+1267-0xcf2)==address_ptr->digits[i]
-){db_data->number[i+(0x65b+4567-0x1831)]=((char)(0xad+6665-0x1a86));}else{
-db_data->number[i+(0x1d9c+1045-0x21b0)]=((char)(0x19c2+3115-0x25bd))+address_ptr
-->digits[i];}}}else if(WMS_NUMBER_ALPHANUMERIC==address_ptr->number_type){memcpy
-(db_data->number,address_ptr->digits,address_ptr->number_of_digits);}else{if(
-address_ptr->digit_mode==WMS_DIGIT_MODE_8_BIT){memcpy(&(db_data->number[
-(0xc93+6402-0x2594)]),address_ptr->digits,address_ptr->number_of_digits);}else{
-for(i=(0x125a+2300-0x1b56);i<address_ptr->number_of_digits;i++){if(
-(0xad+1996-0x86f)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0x6d8+6226-0x1efa));}else{db_data->number[i]=((char)(0x805+6937-0x22ee))
-+address_ptr->digits[i];}}}}(void)zUfiSms_UtilTimeStamp(ts_data_ptr->u.gw_pp.u.
-deliver.timestamp,db_data->tp_scts,&db_data->julian_date);if(ts_data_ptr->u.
-gw_pp.u.deliver.user_data_header_present){db_data->tp_udhi=(0x41+4666-0x127a);}
-else{db_data->tp_udhi=(0x10b+3972-0x108f);}if(db_data->tp_udhi==
-(0x102+4904-0x1429)){for(ind=(0xf7c+4806-0x2242);ind<ts_data_ptr->u.gw_pp.u.
-deliver.user_data.num_headers;ind++){result=zUfiSms_ParseUdhiData(&(ts_data_ptr
-->u.gw_pp.u.deliver.user_data.headers[ind]),db_data);if(
-ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0x137d+654-0x160a)]){printf(
+(0xa93+5959-0x21da),ZTE_WMS_ADDRESS_LEN_MAX+(0x196c+46-0x1999));db_data->number[
+(0x6bd+5378-0x1bbf)]=((char)(0x37f+8904-0x261c));for(i=(0x50+3684-0xeb4);i<
+address_ptr->number_of_digits;i++){if((0xdab+269-0xeae)==address_ptr->digits[i])
+{db_data->number[i+(0xf90+4937-0x22d8)]=((char)(0x24ed+47-0x24ec));}else{db_data
+->number[i+(0x400+5258-0x1889)]=((char)(0x10aa+4277-0x212f))+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[(0xe83+2912-0x19e2)
+]),address_ptr->digits,address_ptr->number_of_digits);}else{for(i=
+(0x129f+2873-0x1dd8);i<address_ptr->number_of_digits;i++){if((0x3a3+6656-0x1d99)
+==address_ptr->digits[i]){db_data->number[i]=((char)(0xd2c+5449-0x2245));}else{
+db_data->number[i]=((char)(0x18ff+491-0x1aba))+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=(0x16ff+1543-0x1d05);}else{db_data->
+tp_udhi=(0x23c4+457-0x258d);}if(db_data->tp_udhi==(0x8c2+7143-0x24a8)){for(ind=
+(0x885+6755-0x22e8);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[
+(0x1c2f+1550-0x223c)]){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[(0x27+5656-0x163e)],ZTE_WMS_CONCAT_SMS_COUNT_MAX);if(
+,db_data->concat_info[(0x51d+4611-0x171f)],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)
-(0xc5c+4187-0x1cb6);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
-unsigned char)(0x4a5+2788-0xf87);}else{printf(
+(0x302+4607-0x1500);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
+unsigned char)(0x1373+1572-0x1995);}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=(0x7ad+5547-0x1d58);ind<ts_data_ptr->u.
-gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[(0xa2d+7019-0x2594)
-*ind]=((char)(0x16f2+2854-0x21e8));db_data->sms_content[(0x6d6+3168-0x1332)*ind+
-(0x18d9+2917-0x243d)]=((char)(0x367+5449-0x1880));db_data->sms_content[
-(0x1e5f+2112-0x269b)*ind+(0x497+4397-0x15c2)]=g_zUfiSms_DigAscMap[((ts_data_ptr
-->u.gw_pp.u.deliver.user_data.sm_data[ind]&(0x1ca+8690-0x22cc))>>
-(0x1bf6+326-0x1d38))];db_data->sms_content[(0x1189+3631-0x1fb4)*ind+
-(0x1b45+1957-0x22e7)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.
-user_data.sm_data[ind]&(0x9f8+2101-0x121e))];db_data->alphabet=
+alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0x158c+4208-0x25fc);ind<ts_data_ptr->u
+.gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[
+(0x869+4815-0x1b34)*ind]=((char)(0xc94+2137-0x14bd));db_data->sms_content[
+(0x62a+8253-0x2663)*ind+(0xed1+3084-0x1adc)]=((char)(0x22bf+958-0x264d));db_data
+->sms_content[(0x361+4192-0x13bd)*ind+(0xcb5+1069-0x10e0)]=g_zUfiSms_DigAscMap[(
+(ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_data[ind]&(0x151c+4771-0x26cf))>>
+(0x72d+4676-0x196d))];db_data->sms_content[(0x882+6746-0x22d8)*ind+
+(0x36a+6882-0x1e49)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.
+user_data.sm_data[ind]&(0x533+5829-0x1be9))];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)(0x4a5+6501-0x1e08);}return result;}int 
+tp_dcs=(unsigned char)(0x55a+469-0x72d);}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=
-(0x58f+4250-0x1629);int ind=(0x1fa1+492-0x218d);if((NULL==ts_data_ptr)||(NULL==
+(0x460+8702-0x265e);int ind=(0xa58+803-0xd7b);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[
-(0x1986+1330-0x1eb8)]=((char)(0x2207+713-0x24a5));for(i=(0x1574+3851-0x247f);i<
-address_ptr->number_of_digits;i++){if((0x48b+7470-0x21af)==address_ptr->digits[i
-]){db_data->number[i+(0x354+985-0x72c)]=((char)(0x19f1+1253-0x1ea6));}else{
-db_data->number[i+(0x1d31+729-0x2009)]=((char)(0xadc+192-0xb6c))+address_ptr->
-digits[i];}}}else{for(i=(0x10d3+2739-0x1b86);i<address_ptr->number_of_digits;i++
-){if((0x939+380-0xaab)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0xd33+3344-0x1a13));}else{db_data->number[i]=((char)(0x324+8421-0x23d9))
-+address_ptr->digits[i];}}}tp_dcs=ts_data_ptr->u.gw_pp.u.submit.dcs.alphabet;
+(0xb44+1002-0xf2e)]=((char)(0x6b5+2327-0xfa1));for(i=(0x9d3+2722-0x1475);i<
+address_ptr->number_of_digits;i++){if((0x210c+463-0x22d1)==address_ptr->digits[i
+]){db_data->number[i+(0x1821+2253-0x20ed)]=((char)(0x178a+610-0x19bc));}else{
+db_data->number[i+(0x820+3210-0x14a9)]=((char)(0x2256+1078-0x265c))+address_ptr
+->digits[i];}}}else{for(i=(0x13b6+1066-0x17e0);i<address_ptr->number_of_digits;i
+++){if((0x1e21+2011-0x25f2)==address_ptr->digits[i]){db_data->number[i]=
+((char)(0x94+7176-0x1c6c));}else{db_data->number[i]=((char)(0xd9c+2473-0x1715))+
+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)(0x8c+9350-0x2511)
-;}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(unsigned char)
-(0xaed+1563-0x1106);}else{printf(
+WMS_GW_ALPHABET_8_BIT>=tp_dcs){db_data->tp_dcs=(unsigned char)
+(0xe72+5642-0x247b);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
+unsigned char)(0x12a6+4848-0x2594);}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=
-(0x6dd+8224-0x26fc);}else{db_data->tp_udhi=(0x545+7110-0x210b);}if(db_data->
-tp_udhi==(0x158d+1556-0x1ba0)){for(ind=(0x43a+411-0x5d5);ind<ts_data_ptr->u.
+(0x2b7+8477-0x23d3);}else{db_data->tp_udhi=(0xda6+5827-0x2469);}if(db_data->
+tp_udhi==(0x17f2+2328-0x2109)){for(ind=(0xe5c+3417-0x1bb5);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[(0x8a+8251-0x20c4)]){printf(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0xc30+4860-0x1f2b)]){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=(0xb64+1843-0x1297);
+gw_pp.u.submit.dcs.alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0xc15+5549-0x21c2);
 ind<ts_data_ptr->u.gw_pp.u.submit.user_data.sm_len;ind++){db_data->sms_content[
-(0x1ab3+1040-0x1ebf)*ind]=((char)(0x10b+1116-0x537));db_data->sms_content[
-(0x796+1033-0xb9b)*ind+(0x254+6161-0x1a64)]=((char)(0xa33+2309-0x1308));db_data
-->sms_content[(0x29b+5994-0x1a01)*ind+(0x1bfd+1328-0x212b)]=g_zUfiSms_DigAscMap[
-((ts_data_ptr->u.gw_pp.u.submit.user_data.sm_data[ind]&(0x15f2+3696-0x2372))>>
-(0x1901+2388-0x2251))];db_data->sms_content[(0x1381+1801-0x1a86)*ind+
-(0xfec+2380-0x1935)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.submit.
-user_data.sm_data[ind]&(0x2108+1150-0x2577))];db_data->alphabet=
+(0x173f+2821-0x2240)*ind]=((char)(0x355+3022-0xef3));db_data->sms_content[
+(0x6fd+1633-0xd5a)*ind+(0x139d+1343-0x18db)]=((char)(0x40a+3535-0x11a9));db_data
+->sms_content[(0x176c+660-0x19fc)*ind+(0x303+4058-0x12db)]=g_zUfiSms_DigAscMap[(
+(ts_data_ptr->u.gw_pp.u.submit.user_data.sm_data[ind]&(0x1c90+2162-0x2412))>>
+(0xe68+5895-0x256b))];db_data->sms_content[(0xdea+765-0x10e3)*ind+
+(0xe67+2106-0x169e)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.submit.
+user_data.sm_data[ind]&(0x1f40+1657-0x25aa))];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)(0x5bd+4197-0x1620);}return result;}int InvertNumbers(
+tp_dcs=(unsigned char)(0x3df+4127-0x13fc);}return result;}int InvertNumbers(
 const char*pSrc,char*pDst,int nSrcLength){int nDstLength;char ch;int i=
-(0xeb2+6155-0x26bd);if(pSrc==NULL||pDst==NULL||nSrcLength<(0xf0c+3517-0x1cc9)){
-return-(0x2e5+4914-0x1616);}nDstLength=nSrcLength;for(i=(0x19ef+903-0x1d76);i<
-nSrcLength;i+=(0xb0+9622-0x2644)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
-nSrcLength&(0x10c9+5423-0x25f7)){*(pDst-(0x1910+2210-0x21b0))=
-((char)(0x1386+689-0x15f1));nDstLength++;}*pDst='\0';return nDstLength;}int 
+(0xf87+4277-0x203c);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x2248+1002-0x2632)){
+return-(0x1c8d+1650-0x22fe);}nDstLength=nSrcLength;for(i=(0xcc5+718-0xf93);i<
+nSrcLength;i+=(0x10c2+5270-0x2556)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
+nSrcLength&(0x2+9904-0x26b1)){*(pDst-(0xa98+6226-0x22e8))=
+((char)(0x768+1322-0xc4c));nDstLength++;}*pDst='\0';return nDstLength;}int 
 code_is_gsm7(const SMS_PARAM*pSrc,unsigned char buf[],int nLength){if(pSrc->
-TP_UDHI==(0x167b+341-0x17cf)){buf[(0x860+2120-0x10a5)]=(unsigned char)nLength;
-buf[(0x18a7+3619-0x26c6)]=(unsigned char)pSrc->TP_UD[(0x1d2b+1344-0x226b)];buf[
-(0x116b+626-0x13d8)]=(0x1235+2806-0x1d2b);buf[(0xfc+2165-0x96b)]=(unsigned char)
-pSrc->TP_UD[(0xb46+4912-0x1e74)];buf[(0x682+4929-0x19bc)]=(unsigned char)pSrc->
-TP_UD[(0x5a5+5291-0x1a4d)];buf[(0x4c3+2474-0xe65)]=(unsigned char)pSrc->TP_UD[
-(0x720+2326-0x1032)];buf[(0x1dc0+1044-0x21cb)]=(unsigned char)pSrc->TP_UD[
-(0x5c8+6676-0x1fd7)];buf[(0x8a5+1739-0xf66)]=(unsigned char)pSrc->TP_UD[
-(0x815+1817-0xf27)];buf[(0x12f6+5139-0x26ff)]=(unsigned char)(buf[
-(0x654+6788-0x20ce)]<<(0x1738+1079-0x1b6e));nLength=nLength-(0x1649+4202-0x26ac)
-;nLength=Encode7bit(&(pSrc->TP_UD[(0x13a6+3737-0x2237)]),&buf[
-(0xba7+5139-0x1faf)],nLength+(0x167f+4210-0x26f0))+(0x825+3278-0x14ef)+
-(0xae1+2669-0x1548);
-#if (0x89+3439-0xdf8)
-nLength+=(0x111+6843-0x1bca);
+TP_UDHI==(0x1b92+2230-0x2447)){buf[(0x1922+827-0x1c5a)]=(unsigned char)nLength;
+buf[(0x162f+2073-0x1e44)]=(unsigned char)pSrc->TP_UD[(0x190c+937-0x1cb5)];buf[
+(0x16c5+3609-0x24d9)]=(0x1eaa+16-0x1eba);buf[(0x14fa+1378-0x1a56)]=(unsigned 
+char)pSrc->TP_UD[(0x215d+708-0x241f)];buf[(0x210a+431-0x22b2)]=(unsigned char)
+pSrc->TP_UD[(0x558+6767-0x1fc4)];buf[(0xa19+6600-0x23d9)]=(unsigned char)pSrc->
+TP_UD[(0x830+7206-0x2452)];buf[(0x19f+6471-0x1add)]=(unsigned char)pSrc->TP_UD[
+(0x1ea+898-0x567)];buf[(0xc97+5009-0x201e)]=(unsigned char)pSrc->TP_UD[
+(0xe1a+3835-0x1d0e)];buf[(0xf10+1556-0x151a)]=(unsigned char)(buf[
+(0x16f7+4117-0x2702)]<<(0x3c3+2153-0xc2b));nLength=nLength-(0x71+6277-0x18ef);
+nLength=Encode7bit(&(pSrc->TP_UD[(0xe31+5949-0x2566)]),&buf[(0x21c8+951-0x2574)]
+,nLength+(0x197+5128-0x159e))+(0xd6f+1466-0x1325)+(0x1776+933-0x1b15);
+#if (0x187+7156-0x1d7b)
+nLength+=(0x5e1+1835-0xd0a);
 #endif

-}else{nLength=pSrc->TP_UDLength;buf[(0xf75+2010-0x174c)]=nLength;nLength=
-Encode7bit(pSrc->TP_UD,&buf[(0xcb0+1119-0x110b)],nLength+(0x15e4+1339-0x1b1e))+
-(0x8d5+6541-0x225e);}at_print(LOG_DEBUG,
+}else{nLength=pSrc->TP_UDLength;buf[(0xe4+3570-0xed3)]=nLength;nLength=
+Encode7bit(pSrc->TP_UD,&buf[(0xdc6+3651-0x1c05)],nLength+(0x1fc5+1206-0x247a))+
+(0x8ca+7504-0x2616);}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==(0x12c+5614-0x1719)){buf[(0xdb4+414-0xf4f)
-]=(unsigned char)nLength;buf[(0x113f+4676-0x237f)]=(unsigned char)pSrc->TP_UD[
-(0x6ec+7049-0x2275)];buf[(0xee9+538-0x10fe)]=(0xf0b+3339-0x1c16);buf[
-(0x1c0+2377-0xb03)]=(unsigned char)pSrc->TP_UD[(0x529+6435-0x1e4a)];buf[
-(0x282+704-0x53b)]=(unsigned char)pSrc->TP_UD[(0xcc+5271-0x1560)];buf[
-(0x813+1182-0xca9)]=(unsigned char)pSrc->TP_UD[(0xd44+861-0x109d)];buf[
-(0x19b+5158-0x15b8)]=(unsigned char)pSrc->TP_UD[(0x1101+1386-0x1666)];buf[
-(0xff2+3483-0x1d8a)]=(unsigned char)(EncodeUcs2(&(pSrc->TP_UD[
-(0x1cc9+1396-0x2237)]),&buf[(0x1023+3736-0x1eb1)],nLength-(0xc22+491-0xe07))+
-(0x15ba+1024-0x19b4));nLength=buf[(0x226+1644-0x88f)]+(0xac4+4734-0x1d3e);}else{
-buf[(0xaca+1681-0x1158)]=EncodeUcs2(pSrc->TP_UD,&buf[(0xc10+3182-0x187a)],
-nLength);nLength=buf[(0x122d+1173-0x16bf)]+(0x24c+133-0x2cd);}return nLength;}
-int Encode8bit(const char*pSrc,unsigned char*pDst,int nSrcLength){if(pSrc==NULL
-||pDst==NULL||nSrcLength<(0x757+7434-0x2461)){return-(0xb94+3409-0x18e4);}memcpy
-(pDst,pSrc,nSrcLength);return nSrcLength;}int EncodePdu_Submit(const SMS_PARAM*
-pSrc,char*pDst){int nLength=(0x4a8+3213-0x1135);int nDstLength=
-(0x9e2+4945-0x1d33);unsigned char buf[(0xecd+254-0xecb)]={(0xd4a+184-0xe02)};
-char tmpSCA[(0xd6c+6267-0x25c3)]={(0x18ba+3341-0x25c7)};int check_udl=
-(0x511+7296-0x2191);memset(tmpSCA,(0xb83+6564-0x2527),sizeof(tmpSCA));if(pSrc==
-NULL||pDst==NULL){return-(0xca7+1611-0x12f1);}
-#if (0x140+3256-0xdf7)
+strlen(pSrc->TP_UD);if(pSrc->TP_UDHI==(0x1d55+774-0x205a)){buf[
+(0x18fa+893-0x1c74)]=(unsigned char)nLength;buf[(0x1d5+548-0x3f5)]=(unsigned 
+char)pSrc->TP_UD[(0x14e9+346-0x1643)];buf[(0x1764+836-0x1aa3)]=
+(0xe00+2514-0x17d2);buf[(0x422+4605-0x1619)]=(unsigned char)pSrc->TP_UD[
+(0x10f+7830-0x1fa3)];buf[(0x17d+4015-0x1125)]=(unsigned char)pSrc->TP_UD[
+(0x17ec+1072-0x1c19)];buf[(0x194d+500-0x1b39)]=(unsigned char)pSrc->TP_UD[
+(0xb88+5128-0x1f8c)];buf[(0xcfd+234-0xdde)]=(unsigned char)pSrc->TP_UD[
+(0x12cd+107-0x1333)];buf[(0x132d+1980-0x1ae6)]=(unsigned char)(EncodeUcs2(&(pSrc
+->TP_UD[(0x1059+4971-0x23be)]),&buf[(0x1783+2827-0x2284)],nLength-
+(0xd2+441-0x285))+(0x1b97+2351-0x24c0));nLength=buf[(0x2440+137-0x24c6)]+
+(0x976+147-0xa05);}else{buf[(0x381+6753-0x1ddf)]=EncodeUcs2(pSrc->TP_UD,&buf[
+(0x224+9147-0x25db)],nLength);nLength=buf[(0x1397+1822-0x1ab2)]+
+(0x905+2135-0x1158);}return nLength;}int Encode8bit(const char*pSrc,unsigned 
+char*pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<
+(0x2f4+8964-0x25f8)){return-(0x12e3+801-0x1603);}memcpy(pDst,pSrc,nSrcLength);
+return nSrcLength;}int EncodePdu_Submit(const SMS_PARAM*pSrc,char*pDst){int 
+nLength=(0x98d+1320-0xeb5);int nDstLength=(0x3d7+3579-0x11d2);unsigned char buf[
+(0x136+7997-0x1f73)]={(0x34+3452-0xdb0)};char tmpSCA[(0x112f+4312-0x21e3)]={
+(0xe24+2416-0x1794)};int check_udl=(0x927+6403-0x222a);memset(tmpSCA,
+(0x25e6+284-0x2702),sizeof(tmpSCA));if(pSrc==NULL||pDst==NULL){return-
+(0xfe6+4458-0x214f);}
+#if (0x8f6+4269-0x19a2)
 printf(
 "\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x20\x45\x6e\x63\x6f\x64\x65\x50\x64\x75\x5f\x53\x75\x62\x6d\x69\x74\x20\x6d\x61\x6b\x65\x20\x70\x64\x75\x20\x64\x61\x74\x61" "\n"
 );printf(
@@ -908,392 +909,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[(0xcc+8337-0x215d)]=(char)(((nLength)&
-(0x38d+823-0x6c3))==(0x1c83+2468-0x2627)?(nLength):nLength+(0x1738+576-0x1977))/
-(0xaaa+6695-0x24cf)+(0x75f+2711-0x11f5);buf[(0x1391+93-0x13ed)]=
-(0x3ad+6433-0x1c4d);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)-(0x911+2702-0x139e))
-;if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",(0x414+3212-0x109c)))){memset(tmpSCA,
-(0xf58+2690-0x19da),sizeof(tmpSCA));nLength=nLength-(0x10b+8118-0x20c0);
-#if (0x1592+3168-0x21f1)
-nLength=nLength-(0x784+2700-0x120f);strncpy(tmpSCA,&(pSrc->SCA[
-(0x17ba+311-0x18ef)]),sizeof(tmpSCA)-(0x1f28+503-0x211e));
+nLength=strlen(pSrc->SCA);buf[(0xb01+4137-0x1b2a)]=(char)(((nLength)&
+(0x8e5+362-0xa4e))==(0x42a+1043-0x83d)?(nLength):nLength+(0x13a7+2690-0x1e28))/
+(0x98c+1300-0xe9e)+(0xa74+3277-0x1740);buf[(0xf50+3288-0x1c27)]=
+(0x10c2+5623-0x2638);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)-(0x450+2753-0xf10))
+;if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",(0x1330+3098-0x1f46)))){memset(tmpSCA
+,(0x34a+2724-0xdee),sizeof(tmpSCA));nLength=nLength-(0xb6+5008-0x1445);
+#if (0xcac+1693-0x1348)
+nLength=nLength-(0x23c+4034-0x11fd);strncpy(tmpSCA,&(pSrc->SCA[
+(0x16e2+1518-0x1cce)]),sizeof(tmpSCA)-(0x297+731-0x571));
 #else

-tmpSCA[(0x1c15+2634-0x265f)]=((char)(0xa8a+2067-0x1272));strcpy(&(tmpSCA[
-(0x7c+4356-0x117f)]),&(pSrc->SCA[(0x23c2+253-0x24bd)]));
+tmpSCA[(0x189f+252-0x199b)]=((char)(0x2073+880-0x23b8));strcpy(&(tmpSCA[
+(0x969+728-0xc40)]),&(pSrc->SCA[(0xbd3+82-0xc23)]));
 #endif

-buf[(0x143+5460-0x1697)]=(char)((nLength&(0xb0b+4471-0x1c81))==
-(0x1605+163-0x16a8)?nLength:nLength+(0xb04+215-0xbda))/(0xd49+3864-0x1c5f)+
-(0x19a5+1101-0x1df1);buf[(0x36a+8773-0x25ae)]=(0x73b+6965-0x21df);}else if(
-((char)(0xb05+5088-0x1eba))==pSrc->SCA[(0xc42+6616-0x261a)]){memset(tmpSCA,
-(0x1612+2705-0x20a3),sizeof(tmpSCA));
-#if (0xac+1585-0x6dc)
-nLength=nLength-(0xf24+315-0x105e);strncpy(tmpSCA,&(pSrc->SCA[(0xcb+9042-0x241c)
-]),sizeof(tmpSCA)-(0x1c63+2626-0x26a4));
+buf[(0x3f4+2304-0xcf4)]=(char)((nLength&(0x6a9+8212-0x26bc))==
+(0x18d9+1120-0x1d39)?nLength:nLength+(0x136a+1711-0x1a18))/(0xdd1+1127-0x1236)+
+(0xe21+601-0x1079);buf[(0x7b+1206-0x530)]=(0x13af+1035-0x1729);}else if(
+((char)(0xa82+5511-0x1fde))==pSrc->SCA[(0x976+5542-0x1f1c)]){memset(tmpSCA,
+(0x148d+1970-0x1c3f),sizeof(tmpSCA));
+#if (0x1348+4834-0x2629)
+nLength=nLength-(0x5d+2250-0x926);strncpy(tmpSCA,&(pSrc->SCA[(0x39a+880-0x709)])
+,sizeof(tmpSCA)-(0x75+5172-0x14a8));
 #else

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

-buf[(0x1308+2586-0x1d22)]=(char)((nLength&(0x1c7+368-0x336))==
-(0x148d+1467-0x1a48)?(nLength):nLength+(0x1865+1310-0x1d82))/(0xb4b+4426-0x1c93)
-+(0x6fa+7890-0x25cb);buf[(0x6aa+1736-0xd71)]=(0x3d3+6015-0x1ac1);}
-#if (0x108d+1873-0x17dd)
+buf[(0x79d+2313-0x10a6)]=(char)((nLength&(0x1d4+3054-0xdc1))==
+(0x1b43+834-0x1e85)?(nLength):nLength+(0x2673+67-0x26b5))/(0x4ea+5768-0x1b70)+
+(0x798+7767-0x25ee);buf[(0x1c2c+1204-0x20df)]=(0x8bc+836-0xb6f);}
+#if (0x809+7113-0x23d1)
 printf(
 "\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x70\x64\x73\x74\x32\x3a\x25\x73" "\n",
 pDst);
 #endif

-if(nLength<(0x3a3+6174-0x1bc0)||nLength>=sizeof(tmpSCA))return-
-(0x176+4306-0x1247);nDstLength=Bytes2String(buf,pDst,(0xed0+2008-0x16a6));
+if(nLength<(0xe8d+6031-0x261b)||nLength>=sizeof(tmpSCA))return-
+(0x612+5402-0x1b2b);nDstLength=Bytes2String(buf,pDst,(0x96d+7346-0x261d));
 nDstLength+=InvertNumbers(tmpSCA,&pDst[nDstLength],nLength);
-#if (0xd88+3129-0x19c0)
+#if (0x1185+5264-0x2614)
 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[(0x105b+404-0x11ef)]==((char)(0x20d7+1099-0x24f7))){nLength=strlen(
-&(pSrc->TPA[(0x1877+60-0x18b2)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
-TP_UDHI==(0xd2b+3067-0x1926)){if(pSrc->TP_SRR==(0x1300+2127-0x1b4f)){buf[
-(0x99+2476-0xa45)]=(0xca7+1112-0x10ee);}if(pSrc->TP_SRR==(0x5d6+6740-0x2029)){
-buf[(0x920+4745-0x1ba9)]=(0x2315+107-0x234f);}}if(pSrc->TP_UDHI==
-(0x1b54+788-0x1e67)){if(pSrc->TP_SRR==(0xbbc+3993-0x1b55)){buf[
-(0x125b+2740-0x1d0f)]=(0x57c+6727-0x1f72);}if(pSrc->TP_SRR==(0xaf1+2524-0x14cc))
-{buf[(0x486+2669-0xef3)]=(0x2162+1250-0x25d3);}}buf[(0x1046+4780-0x22f1)]=
-(0x14ab+2392-0x1e03);buf[(0x10e6+1674-0x176e)]=(char)nLength;if(pSrc->TPA[
-(0x984+7392-0x2664)]==((char)(0xbdf+5102-0x1fa2))){buf[(0x19a4+1613-0x1fee)]=
-(0x6f9+5419-0x1b93);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
-(0x1a55+2722-0x24f3));nDstLength+=InvertNumbers(&(pSrc->TPA[(0xf56+2117-0x179a)]
-),&pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
-(0x291+5794-0x192f)))){buf[(0x12c6+652-0x1550)]=(char)nLength-(0xdc+6374-0x19c0)
-;buf[(0x1712+832-0x1a4f)]=(0xd62+3149-0x191e);nDstLength+=Bytes2String(buf,&pDst
-[nDstLength],(0x7c8+2818-0x12c6));nDstLength+=InvertNumbers(&(pSrc->TPA[
-(0xd27+5631-0x2324)]),&pDst[nDstLength],nLength-(0x945+6118-0x2129));}else{buf[
-(0x147+5547-0x16ef)]=(0x201+8150-0x2156);nDstLength+=Bytes2String(buf,&pDst[
-nDstLength],(0x114b+2244-0x1a0b));nDstLength+=InvertNumbers(pSrc->TPA,&pDst[
+if(pSrc->TPA[(0xf3+6647-0x1aea)]==((char)(0xc43+4906-0x1f42))){nLength=strlen(&(
+pSrc->TPA[(0x526+8259-0x2568)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
+TP_UDHI==(0x2292+988-0x266e)){if(pSrc->TP_SRR==(0x62b+7850-0x24d5)){buf[
+(0xa2a+3806-0x1908)]=(0x105f+1439-0x15ed);}if(pSrc->TP_SRR==(0x14c2+3547-0x229c)
+){buf[(0x9b7+5193-0x1e00)]=(0x988+2155-0x11c2);}}if(pSrc->TP_UDHI==
+(0x6c9+7306-0x2352)){if(pSrc->TP_SRR==(0xd68+3913-0x1cb1)){buf[
+(0x210+1822-0x92e)]=(0x81b+5232-0x1c3a);}if(pSrc->TP_SRR==(0xa83+6670-0x2490)){
+buf[(0x1fa+4579-0x13dd)]=(0x976+3952-0x1875);}}buf[(0x1811+1398-0x1d86)]=
+(0x463+8081-0x23f4);buf[(0x98d+6871-0x2462)]=(char)nLength;if(pSrc->TPA[
+(0xbb8+1098-0x1002)]==((char)(0x13aa+1663-0x19fe))){buf[(0xae2+3431-0x1846)]=
+(0xae8+5333-0x1f2c);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
+(0xfc4+4788-0x2274));nDstLength+=InvertNumbers(&(pSrc->TPA[(0x4a4+6728-0x1eeb)])
+,&pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
+(0xa2a+1460-0xfda)))){buf[(0xa34+151-0xac9)]=(char)nLength-(0xa16+3536-0x17e4);
+buf[(0x124c+214-0x131f)]=(0xf87+1266-0x13e8);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0x1e9f+1711-0x254a));nDstLength+=InvertNumbers(&(pSrc->TPA[
+(0xc53+3594-0x1a5b)]),&pDst[nDstLength],nLength-(0x255f+116-0x25d1));}else{buf[
+(0xe9+2917-0xc4b)]=(0x879+4114-0x180a);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0x2b0+3037-0xe89));nDstLength+=InvertNumbers(pSrc->TPA,&pDst[
 nDstLength],nLength);}
-#if (0x1b61+2354-0x2492)
+#if (0x1556+889-0x18ce)
 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[(0xd85+4255-0x1e24)]=pSrc->TP_PID;buf[
-(0x1c03+2494-0x25c0)]=pSrc->TP_DCS;buf[(0x16c8+1205-0x1b7b)]=pSrc->TP_VP;if(pSrc
+nLength=(int)pSrc->TP_UDLength;buf[(0xfcb+5526-0x2561)]=pSrc->TP_PID;buf[
+(0x1479+2226-0x1d2a)]=pSrc->TP_DCS;buf[(0x48c+5977-0x1be3)]=pSrc->TP_VP;if(pSrc
 ->TP_DCS==CODE_GSM7){nLength=code_is_gsm7(pSrc,buf,nLength);}else if(pSrc->
 TP_DCS==CODE_UCS2){nLength=code_is_ucs2(pSrc,buf,nLength);}else{nLength=strlen(
-pSrc->TP_UD);if(pSrc->TP_UDHI==(0x8b+2595-0xaad)){buf[(0x937+7537-0x26a5)]=(
-unsigned char)nLength;buf[(0x497+1181-0x930)]=(unsigned char)pSrc->TP_UD[
-(0x1134+4349-0x2231)];buf[(0x46c+7727-0x2296)]=(0x1b77+712-0x1e3f);buf[
-(0xd1b+1549-0x1322)]=(unsigned char)pSrc->TP_UD[(0x3cc+7550-0x2148)];buf[
-(0xc95+723-0xf61)]=(unsigned char)pSrc->TP_UD[(0x980+798-0xc9b)];buf[
-(0x899+5440-0x1dd1)]=(unsigned char)pSrc->TP_UD[(0x3bb+6905-0x1eb0)];buf[
-(0x83a+2097-0x1062)]=(unsigned char)pSrc->TP_UD[(0x10a5+252-0x119c)];if(nLength-
-(0xaf8+3877-0x1a17)<=(0xc8a+6687-0x26a9)||nLength-(0x17f2+955-0x1ba7)>=sizeof(
-buf)-(0xa1f+6885-0x24fa))return-(0x1325+503-0x151b);buf[(0xd09+4951-0x205d)]=(
-unsigned char)(Encode8bit(&(pSrc->TP_UD[(0x1dd3+802-0x20ef)]),&buf[
-(0x869+1442-0xe01)],(unsigned short)(nLength-(0x9d+4226-0x1119)))+
-(0x6ac+6994-0x21f8));nLength=buf[(0x1573+3288-0x2248)]+(0x14fb+1298-0x1a09);}
-else{if(nLength<=(0x11d2+1681-0x1863)||nLength>=sizeof(buf)-(0x149b+4393-0x25c0)
-)return-(0x188b+358-0x19f0);buf[(0x330+8393-0x23f6)]=Encode8bit(pSrc->TP_UD,&buf
-[(0x12e3+1822-0x19fd)],nLength);nLength=buf[(0x687+3670-0x14da)]+
-(0x1a14+572-0x1c4c);}}check_udl=nLength-(0x8a+4457-0x11ef);nDstLength+=
+pSrc->TP_UD);if(pSrc->TP_UDHI==(0xa65+3462-0x17ea)){buf[(0xbda+3579-0x19d2)]=(
+unsigned char)nLength;buf[(0x7a5+4766-0x1a3f)]=(unsigned char)pSrc->TP_UD[
+(0xda5+1398-0x131b)];buf[(0x1800+1468-0x1db7)]=(0x1c05+529-0x1e16);buf[
+(0xd67+4174-0x1daf)]=(unsigned char)pSrc->TP_UD[(0x3a8+1494-0x97c)];buf[
+(0x1b4f+2665-0x25b1)]=(unsigned char)pSrc->TP_UD[(0x13d9+803-0x16f9)];buf[
+(0x1786+457-0x1947)]=(unsigned char)pSrc->TP_UD[(0x1b0d+1556-0x211d)];buf[
+(0x19a7+1338-0x1ed8)]=(unsigned char)pSrc->TP_UD[(0x2a9+458-0x46e)];if(nLength-
+(0x29c+3173-0xefb)<=(0xb3d+7027-0x26b0)||nLength-(0x1454+2345-0x1d77)>=sizeof(
+buf)-(0x153+7652-0x1f2d))return-(0xf81+5502-0x24fe);buf[(0xe7+3152-0xd34)]=(
+unsigned char)(Encode8bit(&(pSrc->TP_UD[(0x7d9+4068-0x17b7)]),&buf[
+(0x1675+398-0x17f9)],(unsigned short)(nLength-(0x8f7+4169-0x193a)))+
+(0x9fd+7062-0x258d));nLength=buf[(0x12ac+8-0x12b1)]+(0xb7f+5098-0x1f65);}else{if
+(nLength<=(0x19d+3530-0xf67)||nLength>=sizeof(buf)-(0x13bc+4660-0x25ec))return-
+(0x1aeb+2758-0x25b0);buf[(0x93a+682-0xbe1)]=Encode8bit(pSrc->TP_UD,&buf[
+(0x391+7281-0x1ffe)],nLength);nLength=buf[(0x1ed6+397-0x2060)]+
+(0xc37+2843-0x174e);}}check_udl=nLength-(0x736+358-0x898);nDstLength+=
 Bytes2String(buf,&pDst[nDstLength],nLength);sc_cfg_set(NV_CHECK_UDL,"");if(
-check_udl>(0x1d3+455-0x30e)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");}
-#if (0x438+2782-0xf15)
+check_udl>(0x999+3899-0x1848)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");}
+#if (0x5c2+374-0x737)
 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 (0xa79+4820-0x1d4c)
+#if (0x538+6694-0x1f5d)
 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<(0x17f+7067-0x1d1a)){return-(0xa63+772-0xd66);}nSrc=
-(0x15e9+2693-0x206e);nDst=(0x155+6452-0x1a89);nByte=(0x507+4184-0x155f);nLeft=
-(0x4b4+7072-0x2054);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
-(0x243a+355-0x251e);nLeft=*pSrc>>((0x14eb+878-0x1852)-nByte);pDst++;nDst++;nByte
-++;if(nByte==(0x1f61+242-0x204c)){*pDst=nLeft;pDst++;nDst++;nByte=
-(0x1389+1699-0x1a2c);nLeft=(0xad4+3590-0x18da);}pSrc++;nSrc++;}*pDst='\0';return
- nDst;}int DecodePushPdu(const char*pSrcPdu,SMS_PARAM*pDst){int nDstLength=
-(0x124f+4023-0x2206);unsigned char tmp=(0x6ab+6187-0x1ed6);int ud_length=
-(0x158+5762-0x17da);unsigned char buf[(0x73d+6268-0x1eb9)]={(0x16cc+4062-0x26aa)
-};char temp_num[(0xb3+7942-0x1f55)]={(0x12c8+4528-0x2478)};unsigned char 
-first_octet=(0x12c7+3839-0x21c6);unsigned char udhl=(0x511+8566-0x2687);unsigned
- int halftmp=(0xd49+6379-0x2634);char tp_ra[(0x502+5194-0x1949)]={
-(0x492+4906-0x17bc)};int tmplen=(0x1741+595-0x1994);unsigned char IEIDL;int 
-pushType=(0x463+391-0x5ea);const char*pSrc=pSrcPdu;if(pSrcPdu==NULL||pDst==NULL)
+==NULL||nSrcLength<(0xf87+3793-0x1e58)){return-(0xf99+3794-0x1e6a);}nSrc=
+(0xcb+9528-0x2603);nDst=(0x53+7348-0x1d07);nByte=(0xd7d+3775-0x1c3c);nLeft=
+(0x598+2497-0xf59);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
+(0x1bb8+347-0x1c94);nLeft=*pSrc>>((0x1cd1+2105-0x2503)-nByte);pDst++;nDst++;
+nByte++;if(nByte==(0x834+5856-0x1f0d)){*pDst=nLeft;pDst++;nDst++;nByte=
+(0xa82+3269-0x1747);nLeft=(0x1a27+330-0x1b71);}pSrc++;nSrc++;}*pDst='\0';return 
+nDst;}int DecodePushPdu(const char*pSrcPdu,SMS_PARAM*pDst){int nDstLength=
+(0x21+75-0x6c);unsigned char tmp=(0x585+73-0x5ce);int ud_length=
+(0x3e8+1640-0xa50);unsigned char buf[(0x11c1+4981-0x2436)]={(0x1784+469-0x1959)}
+;char temp_num[(0x1b49+1844-0x2219)]={(0x2f2+651-0x57d)};unsigned char 
+first_octet=(0xe64+2067-0x1677);unsigned char udhl=(0xc3b+2204-0x14d7);unsigned 
+int halftmp=(0xa4c+3910-0x1992);char tp_ra[(0x484+555-0x6ac)]={
+(0x1b4a+1220-0x200e)};int tmplen=(0x59+6469-0x199e);unsigned char IEIDL;int 
+pushType=(0x192+349-0x2ef);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-(0x1534+850-0x1885);}String2Bytes(pSrc,&tmp,(0x1c2+6473-0x1b09));
+);return-(0xe36+4961-0x2196);}String2Bytes(pSrc,&tmp,(0x4d0+8314-0x2548));
 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==(0x1bdc+2839-0x26f3)){pSrc+=(0xbf4+6672-0x2602);}else{tmp=(tmp-
-(0x5fd+598-0x852))*(0xf8f+1162-0x1417);pSrc+=(0xdf1+3960-0x1d65);if(tmp>
-(0x1803+660-0x1a77)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x337+5643-0x1922));
-tmp=(0x15f0+1253-0x1ab5);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=
-tmp;}String2Bytes(pSrc,&tmp,(0x14f+783-0x45c));first_octet=tmp;pSrc+=
-(0x14f0+168-0x1596);String2Bytes(pSrc,&tmp,(0x1576+2547-0x1f67));halftmp=tmp;if(
-tmp&(0x509+8669-0x26e5))tmp+=(0x22b+321-0x36b);pSrc+=(0x219+35-0x23a);memset(
-tp_ra,(0x73+9090-0x23f5),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
-(0xae6+2668-0x1550));pSrc+=(0x56+3941-0xfb9);if((tp_ra[(0x48d+7681-0x228e)]&
-(0x49b+288-0x56b))==(0xfca+40-0xfa2)){char tempra[(0x10ab+4063-0x200a)];char 
-acAsc[(0x1186+5169-0x2537)];if(halftmp>=(0xf9d+5233-0x2400)){halftmp=(tmp/
-(0x1433+1776-0x1b21))/(0x1817+3549-0x25ed)+(tmp/(0x3+3966-0xf7f));}else{halftmp=
-tmp/(0x4d4+6601-0x1e9b);}memset(tempra,(0x1932+948-0x1ce6),sizeof(tempra));
-memcpy(tempra,pSrc,tmp);memset(acAsc,(0x1804+570-0x1a3e),sizeof(acAsc));
-nDstLength=String2Bytes(tempra,buf,halftmp&(0x12a+5412-0x1647)?(int)halftmp*
-(0x13e8+4268-0x248d)/(0x16ca+1412-0x1c4a)+(0x65d+1389-0xbc8):(int)halftmp*
-(0x771+5656-0x1d82)/(0x118c+295-0x12af));halftmp=Decode7bit(buf,acAsc,nDstLength
-);memset(pDst->TPA,(0x59d+702-0x85b),sizeof(pDst->TPA));if(halftmp>
-(0x4c3+2760-0xf6b)){memcpy(pDst->TPA,acAsc,(0x1de4+942-0x2172));tmp=
-(0x18e1+1224-0x1d89);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
-(0x231f+597-0x2554)){SerializeNumbers_sms(pSrc,pDst->TPA,(0x1963+442-0x1afd));}
-else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0x882+3094-0x1498)]&
-(0x1433+3849-0x22ab))==(0x1824+2000-0x1f63)){memset(temp_num,(0xb4+4698-0x130e),
-sizeof(temp_num));if(pDst->TPA[(0x2a3+4511-0x1442)]!=((char)(0xa66+505-0xc34))){
-snprintf(temp_num,sizeof(temp_num),"\x25\x73\x25\x73","\x2b",pDst->TPA);if(
-strlen(temp_num)>(0x25f+7267-0x1ea2)){snprintf(pDst->TPA,sizeof(pDst->TPA),
+,tmp);if(tmp==(0x121+1095-0x568)){pSrc+=(0x16f3+2113-0x1f32);}else{tmp=(tmp-
+(0x56f+8058-0x24e8))*(0x51f+2548-0xf11);pSrc+=(0x488+400-0x614);if(tmp>
+(0x7e4+7561-0x254d)){SerializeNumbers_sms(pSrc,pDst->SCA,(0xcaa+2524-0x1666));
+tmp=(0xabb+2800-0x158b);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=
+tmp;}String2Bytes(pSrc,&tmp,(0x418+3428-0x117a));first_octet=tmp;pSrc+=
+(0xc41+1705-0x12e8);String2Bytes(pSrc,&tmp,(0x3f6+6384-0x1ce4));halftmp=tmp;if(
+tmp&(0x70+454-0x235))tmp+=(0x42+5628-0x163d);pSrc+=(0xf3+7415-0x1de8);memset(
+tp_ra,(0x139a+4980-0x270e),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
+(0x1387+3435-0x20f0));pSrc+=(0x1136+333-0x1281);if((tp_ra[(0x30a+7401-0x1ff3)]&
+(0x1254+2928-0x1d74))==(0x75c+1781-0xe01)){char tempra[(0xc5f+5736-0x2247)];char
+ acAsc[(0x2d8+918-0x5ee)];if(halftmp>=(0x8a4+4862-0x1b94)){halftmp=(tmp/
+(0x1f13+1593-0x254a))/(0x38a+7388-0x205f)+(tmp/(0x140f+4105-0x2416));}else{
+halftmp=tmp/(0x733+2436-0x10b5);}memset(tempra,(0x891+1277-0xd8e),sizeof(tempra)
+);memcpy(tempra,pSrc,tmp);memset(acAsc,(0x857+1352-0xd9f),sizeof(acAsc));
+nDstLength=String2Bytes(tempra,buf,halftmp&(0xa+1248-0x4e3)?(int)halftmp*
+(0xb0d+1363-0x1059)/(0x85b+1065-0xc80)+(0x348+5341-0x1823):(int)halftmp*
+(0xe6f+5884-0x2564)/(0x104+9021-0x243d));halftmp=Decode7bit(buf,acAsc,nDstLength
+);memset(pDst->TPA,(0x8eb+6697-0x2314),sizeof(pDst->TPA));if(halftmp>
+(0x12b+7923-0x1ffe)){memcpy(pDst->TPA,acAsc,(0x301+5192-0x1729));tmp=
+(0x113a+2854-0x1c40);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
+(0x124+1239-0x5db)){SerializeNumbers_sms(pSrc,pDst->TPA,(0x1d4a+2079-0x2549));}
+else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0x68f+4039-0x1656)]&
+(0xa01+616-0xbd8))==(0x1329+2029-0x1a85)){memset(temp_num,(0x212a+1196-0x25d6),
+sizeof(temp_num));if(pDst->TPA[(0x3e3+771-0x6e6)]!=((char)(0x13d2+4628-0x25bb)))
+{snprintf(temp_num,sizeof(temp_num),"\x25\x73\x25\x73","\x2b",pDst->TPA);if(
+strlen(temp_num)>(0x155f+4263-0x25e6)){snprintf(pDst->TPA,sizeof(pDst->TPA),
 "\x25\x33\x32\x73",temp_num);}else{snprintf(pDst->TPA,sizeof(pDst->TPA),
 "\x25\x73",temp_num);}}}}pSrc+=tmp;String2Bytes(pSrc,(unsigned char*)&pDst->
-TP_PID,(0x2143+659-0x23d4));pSrc+=(0x13fc+4464-0x256a);String2Bytes(pSrc,(
-unsigned char*)&pDst->TP_DCS,(0x14cf+1228-0x1999));pSrc+=(0xe01+6141-0x25fc);
-SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0xf2c+2265-0x17f7));pSrc+=
-(0x125d+3856-0x215f);String2Bytes(pSrc,&tmp,(0x60f+407-0x7a4));pSrc+=
-(0x1560+1390-0x1acc);memset(pDst->TP_UD,(0x174f+2424-0x20c7),sizeof(pDst->TP_UD)
-);at_print(LOG_DEBUG,
+TP_PID,(0x5e2+7739-0x241b));pSrc+=(0xccc+399-0xe59);String2Bytes(pSrc,(unsigned 
+char*)&pDst->TP_DCS,(0x10c6+3883-0x1fef));pSrc+=(0x97+5472-0x15f5);
+SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0xcd0+5322-0x218c));pSrc+=
+(0xb37+3856-0x1a39);String2Bytes(pSrc,&tmp,(0xe22+1076-0x1254));pSrc+=
+(0x1933+635-0x1bac);memset(pDst->TP_UD,(0x500+7719-0x2327),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&(0xdea+3592-0x1bb2)){const char*temp=pSrc;unsigned 
-char pduType;unsigned char wspLen;unsigned char udhLen;unsigned char DestPort1;
+,first_octet);if(first_octet&(0x1ee9+1299-0x23bc)){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,(0x1648+2482-0x1ff8));temp+=
-(0xb48+4804-0x1e0a);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0x1184+3049-0x1d6b))
-;at_print(LOG_DEBUG,
+SMS_NO_PUSH;String2Bytes(temp,&udhl,(0x7fd+3690-0x1665));temp+=
+(0xca2+5609-0x2289);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0xc6f+2050-0x146f));
+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==(0x899+7783-0x26fb)){temp+=(0x843+3258-0x14fb)*
-tmplen+(0x16e8+28-0x1702);tmplen=String2Bytes(temp,&DestPort1,(0x2140+58-0x2178)
-);at_print(LOG_DEBUG,
+,pDst->TP_IEI);if(pDst->TP_IEI==(0x142+1832-0x865)){temp+=(0x433+6001-0x1ba2)*
+tmplen+(0x2f4+7377-0x1fc3);tmplen=String2Bytes(temp,&DestPort1,
+(0x78a+4803-0x1a4b));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+=(0x466+2930-0xfd6)*tmplen;tmplen=String2Bytes(temp,&DestPort2,
-(0x7c1+5624-0x1db7));at_print(LOG_DEBUG,
+,DestPort1);temp+=(0x1972+1081-0x1da9)*tmplen;tmplen=String2Bytes(temp,&
+DestPort2,(0xb44+808-0xe6a));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==(0x19f5+2657-0x244b))&&((DestPort2==(0x921+702-0xb5b)
-)||(DestPort2==(0x1e99+1523-0x2407)))){pushType=SMS_PUSH;}}if(SMS_PUSH!=pushType
-){return pushType;}temp=pSrc+udhl*(0x607+6578-0x1fb7)+(0x179a+1138-0x1c08);
-tmplen=String2Bytes(temp,&pduType,(0x7bc+1554-0xdcc));if(pduType==
-(0x49b+3423-0x11f4)){pushType=SMS_PUSH;temp+=(0x66b+5030-0x1a0d);tmplen=
-String2Bytes(temp,&pduType,(0x64+103-0xc9));if(pduType==(0x1461+4772-0x2641)){
-pushType=SMS_NOTIFICATION;}else{temp+=(0xded+616-0x1051);tmplen=String2Bytes(
-temp,&pduType,(0x1582+2741-0x2035));if((pduType==(0x939+4841-0x1b60))||(pduType
-==(0x810+2825-0x1263))){pushType=SMS_BOOTSTRAP;}}}if((pDst->TP_IEI==
-(0xd3c+2887-0x187f))||(pDst->TP_IEI==(0x996+5163-0x1dbc))||(pDst->TP_IEI==
-(0x1278+1639-0x18d7))){temp=pSrc+(0x3e8+5750-0x1a5a);tmplen=String2Bytes(temp,&
-IEIDL,(0x1b56+1199-0x2003));if(IEIDL==(udhl-(0x90f+2454-0x12a3))){}else{temp+=
-(0x18b5+3334-0x25b9)*(0xa19+5518-0x1fa1);tmplen=String2Bytes(temp,&udhLen,
-(0x1ae1+539-0x1cfa));if(udhLen==(0xb13+7019-0x267b)){temp+=(0x1fdc+74-0x2024)*
-tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x96d+2454-0x1301));pDst->TP_ReferNum=
-RefNum1;temp+=(0xc7d+3689-0x1ae4)*tmplen;tmplen=String2Bytes(temp,&pDst->
-TP_AllPieceNum,(0x135+7355-0x1dee));temp+=(0x5f8+1588-0xc2a)*tmplen;tmplen=
-String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x8a5+2286-0x1191));temp+=
-(0x1b39+2250-0x2401)*tmplen;}else if(udhLen==(0x36f+7758-0x21b9)){temp+=
-(0x394+7828-0x2226)*tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x453+5466-0x19ab)
-);temp+=(0x1000+1409-0x157f)*tmplen;tmplen=String2Bytes(temp,&RefNum2,
-(0x8a4+6949-0x23c7));int ReferNum=RefNum2+RefNum1*(0x831+2176-0xfb1);pDst->
-TP_ReferNum=ReferNum;temp+=(0x966+6689-0x2385)*tmplen;tmplen=String2Bytes(temp,&
-pDst->TP_AllPieceNum,(0x5ab+1415-0xb30));temp+=(0x1940+2248-0x2206)*tmplen;
-tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x13a5+2218-0x1c4d));temp+=
-(0xe3+4146-0x1113)*tmplen;}}}at_print(LOG_DEBUG,
+,DestPort2);if((DestPort1==(0x19d+9104-0x2522))&&((DestPort2==
+(0xcd6+2216-0x14fa))||(DestPort2==(0xa47+3109-0x15e7)))){pushType=SMS_PUSH;}}if(
+SMS_PUSH!=pushType){return pushType;}temp=pSrc+udhl*(0x7c4+3735-0x1659)+
+(0x7cb+7401-0x24b0);tmplen=String2Bytes(temp,&pduType,(0x7ef+6939-0x2308));if(
+pduType==(0x923+68-0x961)){pushType=SMS_PUSH;temp+=(0x9c5+6684-0x23dd);tmplen=
+String2Bytes(temp,&pduType,(0x717+5457-0x1c66));if(pduType==(0x1570+4429-0x25f9)
+){pushType=SMS_NOTIFICATION;}else{temp+=(0x1f6+6602-0x1bbc);tmplen=String2Bytes(
+temp,&pduType,(0x1e70+1696-0x250e));if((pduType==(0xd01+22-0xc55))||(pduType==
+(0x2e7+6699-0x1c5c))){pushType=SMS_BOOTSTRAP;}}}if((pDst->TP_IEI==
+(0x1476+1908-0x1be6))||(pDst->TP_IEI==(0x10a6+5685-0x26d6))||(pDst->TP_IEI==
+(0x1439+2686-0x1eaf))){temp=pSrc+(0x1675+2357-0x1fa6);tmplen=String2Bytes(temp,&
+IEIDL,(0x1611+2754-0x20d1));if(IEIDL==(udhl-(0x95c+44-0x986))){}else{temp+=
+(0x1489+638-0x1705)*(0x1473+877-0x17da);tmplen=String2Bytes(temp,&udhLen,
+(0x497+5543-0x1a3c));if(udhLen==(0x6a0+1564-0xcb9)){temp+=(0x2158+1387-0x26c1)*
+tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x2241+970-0x2609));pDst->TP_ReferNum=
+RefNum1;temp+=(0x15e8+2948-0x216a)*tmplen;tmplen=String2Bytes(temp,&pDst->
+TP_AllPieceNum,(0x617+980-0x9e9));temp+=(0xca6+1366-0x11fa)*tmplen;tmplen=
+String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x13c6+1879-0x1b1b));temp+=
+(0x1171+690-0x1421)*tmplen;}else if(udhLen==(0x7d7+1199-0xc82)){temp+=
+(0xd57+5715-0x23a8)*tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x540+6403-0x1e41)
+);temp+=(0x2f4+1000-0x6da)*tmplen;tmplen=String2Bytes(temp,&RefNum2,
+(0x5da+6443-0x1f03));int ReferNum=RefNum2+RefNum1*(0x2108+1155-0x248b);pDst->
+TP_ReferNum=ReferNum;temp+=(0x733+7883-0x25fc)*tmplen;tmplen=String2Bytes(temp,&
+pDst->TP_AllPieceNum,(0xdb1+3157-0x1a04));temp+=(0xb50+5213-0x1fab)*tmplen;
+tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x1b2d+2349-0x2458));temp+=
+(0x946+5224-0x1dac)*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*(0x23d+4020-0x11ef)+
-(0x923+1877-0x1072);tmplen=String2Bytes(temp,&wspLen,(0x13f9+3835-0x22f2));temp=
-temp+wspLen*(0x1027+3943-0x1f8c)+(0x125d+1427-0x17ee);}else{temp=pSrc+udhl*
-(0xb9c+911-0xf29)+(0x2551+249-0x2648);}nDstLength=((strlen(temp)<sizeof(pDst->
-TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0x34d+5671-0x1973)));memcpy(pDst->
-TP_UD,temp,nDstLength);at_print(LOG_DEBUG,
+SMS_NOTIFICATION==pushType){temp=pSrc+udhl*(0x1a87+2156-0x22f1)+
+(0x1b28+2958-0x26b0);tmplen=String2Bytes(temp,&wspLen,(0xc7b+5527-0x2210));temp=
+temp+wspLen*(0x931+2733-0x13dc)+(0x200f+1174-0x24a3);}else{temp=pSrc+udhl*
+(0x252+253-0x34d)+(0xe79+5671-0x249e);}nDstLength=((strlen(temp)<sizeof(pDst->
+TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0x742+28-0x75d)));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=(0x33c+3501-0x10e9);if(pSrc==
-NULL||pDst==NULL||nSrcLength<(0x1ccf+314-0x1e09)){return-(0x1dc1+424-0x1f68);}
-nDstLength=nSrcLength;for(i=(0x37+1830-0x75d);i<nSrcLength;i+=
-(0xd9a+4317-0x1e75)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-
-(0x149+2776-0xc20))==((char)(0x1e5a+13-0x1e21))){pDst--;nDstLength--;}*pDst='\0'
-;return nDstLength;}UINT16 wms_ts_pack_gw_7_bit_chars(const UINT8*in,UINT16 
-in_len,UINT16 shift,UINT16 out_len_max,UINT8*out){UINT16 i=(0x1f7d+490-0x2167);
-UINT16 pos=(0x390+3156-0xfe4);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+*pDst,int nSrcLength){int nDstLength;char ch;int i=(0x526+4460-0x1692);if(pSrc==
+NULL||pDst==NULL||nSrcLength<(0xee1+3666-0x1d33)){return-(0x70b+4277-0x17bf);}
+nDstLength=nSrcLength;for(i=(0x5b2+8155-0x258d);i<nSrcLength;i+=
+(0x758+3085-0x1363)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-
+(0xbd4+2261-0x14a8))==((char)(0x39d+2095-0xb86))){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=(0xd4b+1232-0x121b);
+UINT16 pos=(0xe7f+3339-0x1b8a);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(0xa45+4600-0x1c3d);}shift%=(0x104d+748-0x1332);if(shift!=
-(0x1fd+2017-0x9de)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0x915+1158-0xd94)-
-shift)+(0xa54+4538-0x1c0d);if(shift==(0x2af+9211-0x26a3)){shift=
-(0x167f+1658-0x1cf9);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[
-pos]=in[i]>>shift;if(i+(0x1070+552-0x1297)<in_len){out[pos]|=(UINT8)(in[i+
-(0x1569+3207-0x21ef)]<<((0x11a3+5353-0x2685)-shift));shift++;if(shift==
-(0xf49+3236-0x1be6)){shift=(0x8dd+7691-0x26e8);i++;}}}return pos;}UINT8 
+);return(0xd64+3344-0x1a74);}shift%=(0x6b3+4386-0x17ce);if(shift!=
+(0x3c0+4322-0x14a2)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0x1568+4097-0x2562)
+-shift)+(0x502+4340-0x15f5);if(shift==(0x1748+634-0x19bb)){shift=
+(0xe3+7829-0x1f78);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[pos
+]=in[i]>>shift;if(i+(0x632+4586-0x181b)<in_len){out[pos]|=(UINT8)(in[i+
+(0xf5c+2189-0x17e8)]<<((0x230c+903-0x268c)-shift));shift++;if(shift==
+(0x11e9+227-0x12c5)){shift=(0x1220+364-0x138c);i++;}}}return pos;}UINT8 
 wms_ts_encode_address(const wms_address_s_type*addr,UINT8*data){UINT8 i,pos=
-(0x2f8+6916-0x1dfc);if(addr->number_of_digits>WMS_GW_ADDRESS_MAX){at_print(
+(0xcab+6737-0x26fc);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(0x108a+5601-0x266b);}if(addr->number_type==
+,addr->number_of_digits);return(0x2086+1547-0x2691);}if(addr->number_type==
 WMS_NUMBER_ALPHANUMERIC){data[pos]=(UINT8)((addr->number_of_digits*
-(0x1470+2017-0x1c4a)+(0x7d0+3254-0x1483))/(0xe5f+5849-0x2534));}else{data[pos]=
-addr->number_of_digits;}pos++;data[pos]=(0x1ed0+2172-0x26cc);data[pos]|=(UINT8)(
-(UINT8)addr->number_type<<(0x1342+3627-0x2169));data[pos]|=(UINT8)addr->
-number_plan;pos++;if(addr->number_type==WMS_NUMBER_ALPHANUMERIC){pos+=(UINT8)
+(0x7c5+659-0xa51)+(0x2389+29-0x23a3))/(0x5ad+1655-0xc20));}else{data[pos]=addr->
+number_of_digits;}pos++;data[pos]=(0xbbd+4333-0x1c2a);data[pos]|=(UINT8)((UINT8)
+addr->number_type<<(0x46b+3337-0x1170));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,
-(0x13cf+4279-0x2486),WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=
-(0x322+6213-0x1b67);i<addr->number_of_digits;i++){data[pos]=(UINT8)(addr->digits
-[i++]&(0x8b0+1894-0x1007));{data[pos]|=(UINT8)(addr->digits[i]<<
-(0x1c20+598-0x1e72));}pos++;}}return pos;}UINT8 wms_ts_encode_dcs(const 
-wms_gw_dcs_s_type*dcs,UINT8*data){UINT8 pos=(0xe1+6216-0x1929);if(dcs->
+(0x11b8+4814-0x2486),WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=
+(0x108a+5447-0x25d1);i<addr->number_of_digits;i++){data[pos]=(UINT8)(addr->
+digits[i++]&(0xb3b+4672-0x1d6c));{data[pos]|=(UINT8)(addr->digits[i]<<
+(0x420+7162-0x2016));}pos++;}}return pos;}UINT8 wms_ts_encode_dcs(const 
+wms_gw_dcs_s_type*dcs,UINT8*data){UINT8 pos=(0x1f12+903-0x2299);if(dcs->
 msg_waiting==WMS_GW_MSG_WAITING_NONE){data[pos]=dcs->is_compressed?
-(0x549+2555-0xf24):(0xe04+4298-0x1ece);data[pos]|=(dcs->msg_class!=
-WMS_MESSAGE_CLASS_NONE)?(0x16af+1304-0x1bb7):(0xbdd+1982-0x139b);data[pos]|=dcs
-->alphabet<<(0x861+3380-0x1593);data[pos]|=dcs->msg_class&(0x189+4827-0x1461);}
+(0x1c83+108-0x1ccf):(0xe52+4845-0x213f);data[pos]|=(dcs->msg_class!=
+WMS_MESSAGE_CLASS_NONE)?(0xfac+4296-0x2064):(0xbe7+5838-0x22b5);data[pos]|=dcs->
+alphabet<<(0x55c+7109-0x211f);data[pos]|=dcs->msg_class&(0xb15+2869-0x1647);}
 else if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE_1111){data[pos]=
-(0x10ec+3139-0x1c3f);if(dcs->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]|=
-(0x185b+2809-0x2350);data[pos]|=dcs->msg_class&(0x1094+5023-0x2430);}else{if(dcs
-->msg_waiting==WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x16fd+898-0x19bf);}else 
-if(dcs->msg_waiting==WMS_GW_MSG_WAITING_STORE&&dcs->alphabet==
-WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0xfdf+6041-0x26a8);}else{data[pos]=
-(0x8ac+6003-0x1f3f);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
-(0xac5+2694-0x1543):(0x683+3438-0x13f1);data[pos]|=dcs->msg_waiting_kind&
-(0x4a+6197-0x187c);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
-UINT8*result){unsigned char low_bit=(bcd&(0x126+1460-0x6cb));unsigned char 
-high_bit=((bcd&(0x240+3283-0xe23))>>(0x13f5+1847-0x1b28));if(low_bit>
-(0xbdd+3801-0x1aad)||high_bit>(0x24a+4160-0x1281)){at_print(LOG_DEBUG,
+(0x115b+2697-0x1af4);if(dcs->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]|=
+(0x1c72+568-0x1ea6);data[pos]|=dcs->msg_class&(0xb00+6529-0x247e);}else{if(dcs->
+msg_waiting==WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x24af+164-0x2493);}else if(
+dcs->msg_waiting==WMS_GW_MSG_WAITING_STORE&&dcs->alphabet==
+WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0xd1d+5802-0x22f7);}else{data[pos]=
+(0x11a6+791-0x13dd);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
+(0xf88+1004-0x136c):(0x138b+1854-0x1ac9);data[pos]|=dcs->msg_waiting_kind&
+(0x145a+3806-0x2335);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
+UINT8*result){unsigned char low_bit=(bcd&(0xc78+6771-0x26dc));unsigned char 
+high_bit=((bcd&(0x119a+2573-0x1ab7))>>(0xbc6+1874-0x1314));if(low_bit>
+(0x3f2+7944-0x22f1)||high_bit>(0xb0+4798-0x1365)){at_print(LOG_DEBUG,
 "\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x64\x69\x67\x69\x74\x21");*
-result=(0x1da4+291-0x1ec7);return FALSE;}else{*result=((bcd&(0x1b07+894-0x1e76))
-+(((bcd&(0xc58+4593-0x1d59))>>(0x6bc+1265-0xba9))*(0x210d+1123-0x2566)));return 
+result=(0x769+7779-0x25cc);return FALSE;}else{*result=((bcd&(0x101f+583-0x1257))
++(((bcd&(0xa2c+4534-0x1af2))>>(0x13c7+3825-0x22b4))*(0x61+4124-0x1073)));return 
 TRUE;}}UINT8 wms_ts_encode_timestamp(const wms_timestamp_s_type*timestamp,UINT8*
-data){sint7 i;UINT8 pos=(0x274+2708-0xd08),j;if(!wms_ts_bcd_to_int(timestamp->
-year,&j)){return(0x4dc+4710-0x1742);}data[pos]=((timestamp->year&
-(0x69b+4977-0x19fd))<<(0xfa0+3035-0x1b77))+((timestamp->year&(0xf80+4473-0x2009)
-)>>(0xe0b+3047-0x19ee));pos++;if(wms_ts_bcd_to_int(timestamp->month,&j)){if(j>
-(0xdb8+5204-0x2200)||j<(0x7e6+1197-0xc92)){at_print(LOG_DEBUG,
+data){sint7 i;UINT8 pos=(0x996+6965-0x24cb),j;if(!wms_ts_bcd_to_int(timestamp->
+year,&j)){return(0x47f+5846-0x1b55);}data[pos]=((timestamp->year&
+(0x38b+8962-0x267e))<<(0xa2a+2990-0x15d4))+((timestamp->year&
+(0x11ca+5600-0x26ba))>>(0x36c+2055-0xb6f));pos++;if(wms_ts_bcd_to_int(timestamp
+->month,&j)){if(j>(0x675+7274-0x22d3)||j<(0x529+3937-0x1489)){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(0xc02+945-0xfb3);}}else{return(0xc+3581-0xe09);}data[pos]=((timestamp
-->month&(0x624+1806-0xd23))<<(0x38c+4097-0x1389))+((timestamp->month&
-(0x135c+2348-0x1b98))>>(0x1b8+6289-0x1a45));pos++;if(wms_ts_bcd_to_int(timestamp
-->day,&j)){if(j>(0x208b+1499-0x2647)||j<(0x982+2274-0x1263)){at_print(LOG_DEBUG,
+,j);return(0x68a+4922-0x19c4);}}else{return(0x1a5+5656-0x17bd);}data[pos]=((
+timestamp->month&(0x7e6+2138-0x1031))<<(0x13fd+2818-0x1efb))+((timestamp->month&
+(0x110+2214-0x8c6))>>(0x498+2781-0xf71));pos++;if(wms_ts_bcd_to_int(timestamp->
+day,&j)){if(j>(0x70f+5715-0x1d43)||j<(0xd63+4978-0x20d4)){at_print(LOG_DEBUG,
 "\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);
-return(0x185+7503-0x1ed4);}}else{return(0x90f+5561-0x1ec8);}data[pos]=((
-timestamp->day&(0x3ac+4657-0x15ce))<<(0xbf6+6368-0x24d2))+((timestamp->day&
-(0xa85+6257-0x2206))>>(0x1a4d+3021-0x2616));pos++;if(wms_ts_bcd_to_int(timestamp
-->hour,&j)){if(j>(0x3b6+2835-0xeb2)){at_print(LOG_DEBUG,
+return(0x379+6551-0x1d10);}}else{return(0xe8a+523-0x1095);}data[pos]=((timestamp
+->day&(0xb8f+1456-0x1130))<<(0xbf+356-0x21f))+((timestamp->day&
+(0x1ebf+1959-0x2576))>>(0x1022+1733-0x16e3));pos++;if(wms_ts_bcd_to_int(
+timestamp->hour,&j)){if(j>(0x1c00+648-0x1e71)){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(0x4f2+37-0x517);}}else{return(0x8b1+4955-0x1c0c);}data[pos]=((timestamp
-->hour&(0x18b3+3607-0x26bb))<<(0x87d+2933-0x13ee))+((timestamp->hour&
-(0x2a4+8668-0x2390))>>(0x1ff4+391-0x2177));pos++;if(wms_ts_bcd_to_int(timestamp
-->minute,&j)){if(j>(0x18a7+2547-0x225f)){at_print(LOG_DEBUG,
+);return(0x777+5795-0x1e1a);}}else{return(0x1578+2788-0x205c);}data[pos]=((
+timestamp->hour&(0xd7+4436-0x121c))<<(0x1a62+413-0x1bfb))+((timestamp->hour&
+(0x179d+128-0x172d))>>(0x1c9d+2497-0x265a));pos++;if(wms_ts_bcd_to_int(timestamp
+->minute,&j)){if(j>(0x1c3+3872-0x10a8)){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(0x1999+1127-0x1e00);}}else{return(0x1e12+2047-0x2611);}data[pos]=((
-timestamp->minute&(0xd41+2790-0x1818))<<(0x1063+5064-0x2427))+((timestamp->
-minute&(0xd65+3284-0x1949))>>(0x1ac4+556-0x1cec));pos++;if(wms_ts_bcd_to_int(
-timestamp->second,&j)){if(j>(0x373+7315-0x1fcb)){at_print(LOG_DEBUG,
+,j);return(0x1061+3381-0x1d96);}}else{return(0x1c0c+1166-0x209a);}data[pos]=((
+timestamp->minute&(0x67a+2367-0xfaa))<<(0x379+4244-0x1409))+((timestamp->minute&
+(0x79d+6289-0x1f3e))>>(0x1b+6799-0x1aa6));pos++;if(wms_ts_bcd_to_int(timestamp->
+second,&j)){if(j>(0xe0a+3979-0x1d5a)){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(0x394+2655-0xdf3);}}else{return(0x1646+3123-0x2279);}data[pos]=((
-timestamp->second&(0x70c+1117-0xb5a))<<(0x1e20+1293-0x2329))+((timestamp->second
-&(0x1937+2595-0x226a))>>(0x8b4+4763-0x1b4b));pos++;i=(sint7)timestamp->timezone;
-if(i>(0x2125+59-0x2130)||i<-(0x84+4847-0x1343)){at_print(LOG_DEBUG,
+,j);return(0x18bf+2570-0x22c9);}}else{return(0x36f+6748-0x1dcb);}data[pos]=((
+timestamp->second&(0x1b53+2750-0x2602))<<(0x8f3+1096-0xd37))+((timestamp->second
+&(0x540+1727-0xb0f))>>(0x1889+1559-0x1e9c));pos++;i=(sint7)timestamp->timezone;
+if(i>(0x7f3+2527-0x11a2)||i<-(0x1c51+1475-0x21e4)){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(0x84a+3368-0x1572);}if(i>=(0x12a9+3475-0x203c)){data[pos]=(UINT8)(((
-UINT8)(i%(0x13e2+987-0x17b3)))<<(0x19e4+799-0x1cff));data[pos]|=(i/
-(0x781+1013-0xb6c));}else{i*=(-(0x2182+1246-0x265f));data[pos]=(UINT8)(((UINT8)(
-i%(0xbf8+3076-0x17f2)))<<(0x767+5715-0x1db6));data[pos]|=(i/(0x54c+3162-0x119c))
-;data[pos]|=(0x17d7+2846-0x22ed);}pos++;return pos;}UINT8 wms_ts_get_udh_length(
-const wms_udh_s_type*udh){UINT8 length=(0xc2a+2762-0x16f4);if(udh!=NULL){switch(
-udh->header_id){case WMS_UDH_CONCAT_8:length=(0xd00+2033-0x14f0)+
-(0x2b7+3765-0x116b)+WMS_UDH_OCTETS_CONCAT8;break;case WMS_UDH_CONCAT_16:length=
-(0x3a4+8849-0x2634)+(0x1f2+2164-0xa65)+WMS_UDH_OCTETS_CONCAT16;break;case 
-WMS_UDH_SPECIAL_SM:length=(0x1872+2202-0x210b)+(0x185d+1937-0x1fed)+
-WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=(0x1f98+1645-0x2604)+
-(0xe56+4112-0x1e65)+WMS_UDH_OCTETS_PORT8;break;case WMS_UDH_PORT_16:length=
-(0xe3c+895-0x11ba)+(0x8bf+1340-0xdfa)+WMS_UDH_OCTETS_PORT16;break;case 
-WMS_UDH_SMSC_CONTROL:length=(0xa+2315-0x914)+(0x1074+4380-0x218f)+udh->u.other.
-header_length;break;case WMS_UDH_SOURCE:length=(0x118+6528-0x1a97)+
-(0xaaf+4907-0x1dd9)+udh->u.other.header_length;break;case WMS_UDH_WCMP:length=
-(0x1050+837-0x1394)+(0xaca+5610-0x20b3)+udh->u.other.header_length;break;case 
+,i);return(0x12ab+25-0x12c4);}if(i>=(0x70b+4104-0x1713)){data[pos]=(UINT8)(((
+UINT8)(i%(0x21c5+434-0x236d)))<<(0x75a+2138-0xfb0));data[pos]|=(i/
+(0x81f+3089-0x1426));}else{i*=(-(0x1170+561-0x13a0));data[pos]=(UINT8)(((UINT8)(
+i%(0x39f+3408-0x10e5)))<<(0x4ba+6922-0x1fc0));data[pos]|=(i/(0x316+4390-0x1432))
+;data[pos]|=(0x173f+12-0x1743);}pos++;return pos;}UINT8 wms_ts_get_udh_length(
+const wms_udh_s_type*udh){UINT8 length=(0x1314+2353-0x1c45);if(udh!=NULL){switch
+(udh->header_id){case WMS_UDH_CONCAT_8:length=(0x4a3+8252-0x24de)+
+(0x892+4358-0x1997)+WMS_UDH_OCTETS_CONCAT8;break;case WMS_UDH_CONCAT_16:length=
+(0x7e8+2407-0x114e)+(0x67+8779-0x22b1)+WMS_UDH_OCTETS_CONCAT16;break;case 
+WMS_UDH_SPECIAL_SM:length=(0x14c+4601-0x1344)+(0x1c32+1484-0x21fd)+
+WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=(0x309+6812-0x1da4)+
+(0x1682+2997-0x2236)+WMS_UDH_OCTETS_PORT8;break;case WMS_UDH_PORT_16:length=
+(0x36a+4770-0x160b)+(0xf83+2759-0x1a49)+WMS_UDH_OCTETS_PORT16;break;case 
+WMS_UDH_SMSC_CONTROL:length=(0x182f+3059-0x2421)+(0x97+6410-0x19a0)+udh->u.other
+.header_length;break;case WMS_UDH_SOURCE:length=(0x460+8814-0x26cd)+
+(0x1064+3174-0x1cc9)+udh->u.other.header_length;break;case WMS_UDH_WCMP:length=
+(0x18df+3084-0x24ea)+(0x14+3601-0xe24)+udh->u.other.header_length;break;case 
 WMS_UDH_TEXT_FORMATING:if(!udh->u.text_formating.is_color_present){length=
-(0x251+7908-0x2134)+(0x1679+283-0x1793)+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{
-length=(0xd1c+5854-0x23f9)+(0x12e7+5134-0x26f4)+WMS_UDH_OCTETS_TEXT_FORMATTING+
-(0x57f+7777-0x23df);}break;case WMS_UDH_PRE_DEF_SOUND:length=
-(0x1a87+1894-0x21ec)+(0x1151+1940-0x18e4)+WMS_UDH_OCTETS_PRE_DEF;break;case 
-WMS_UDH_USER_DEF_SOUND:length=(0x20d5+240-0x21c4)+(0x1827+1972-0x1fda)+udh->u.
-user_def_sound.data_length+(0xd70+6309-0x2614);break;case WMS_UDH_PRE_DEF_ANIM:
-length=(0x18d2+1213-0x1d8e)+(0x1a9a+125-0x1b16)+WMS_UDH_OCTETS_PRE_DEF;break;
-case WMS_UDH_LARGE_ANIM:length=(0x167f+35-0x16a1)+(0x318+4710-0x157d)+
-WMS_UDH_LARGE_BITMAP_SIZE*WMS_UDH_ANIM_NUM_BITMAPS+(0xb20+1004-0xf0b);break;case
- WMS_UDH_SMALL_ANIM:length=(0x75d+2688-0x11dc)+(0x32f+3664-0x117e)+
-WMS_UDH_SMALL_BITMAP_SIZE*WMS_UDH_ANIM_NUM_BITMAPS+(0x670+2178-0xef1);break;case
- WMS_UDH_LARGE_PICTURE:length=(0x356+648-0x5dd)+(0xdf7+4111-0x1e05)+
-WMS_UDH_LARGE_PIC_SIZE+(0x77b+6044-0x1f16);break;case WMS_UDH_SMALL_PICTURE:
-length=(0xed8+3421-0x1c34)+(0xe0b+3253-0x1abf)+WMS_UDH_SMALL_PIC_SIZE+
-(0x805+4940-0x1b50);break;case WMS_UDH_VAR_PICTURE:length=(0x5f3+2752-0x10b2)+
-(0x156+5557-0x170a)+(UINT8)(udh->u.var_picture.height*udh->u.var_picture.width/
-(0xe26+1276-0x131a))+(0xec4+2150-0x1727);break;case WMS_UDH_RFC822:length=
-(0x15f8+56-0x162f)+(0x311+5133-0x171d)+WMS_UDH_OCTETS_RFC822;break;case 
-WMS_UDH_NAT_LANG_SS:length=(0x50b+6822-0x1fb0)+(0x998+6315-0x2242)+
+(0x16b7+2395-0x2011)+(0x1104+2247-0x19ca)+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{
+length=(0x6f5+3028-0x12c8)+(0x85f+2632-0x12a6)+WMS_UDH_OCTETS_TEXT_FORMATTING+
+(0x2e9+6476-0x1c34);}break;case WMS_UDH_PRE_DEF_SOUND:length=(0x620+4005-0x15c4)
++(0xca2+4135-0x1cc8)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_USER_DEF_SOUND:
+length=(0x15c+4537-0x1314)+(0x561+1309-0xa7d)+udh->u.user_def_sound.data_length+
+(0x7f8+746-0xae1);break;case WMS_UDH_PRE_DEF_ANIM:length=(0x152c+2669-0x1f98)+
+(0x11ea+2246-0x1aaf)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_LARGE_ANIM:length
+=(0x81+6225-0x18d1)+(0x138+9074-0x24a9)+WMS_UDH_LARGE_BITMAP_SIZE*
+WMS_UDH_ANIM_NUM_BITMAPS+(0x2a+8788-0x227d);break;case WMS_UDH_SMALL_ANIM:length
+=(0x920+5031-0x1cc6)+(0x64+1396-0x5d7)+WMS_UDH_SMALL_BITMAP_SIZE*
+WMS_UDH_ANIM_NUM_BITMAPS+(0x2e2+2559-0xce0);break;case WMS_UDH_LARGE_PICTURE:
+length=(0x78c+2222-0x1039)+(0xa49+4751-0x1cd7)+WMS_UDH_LARGE_PIC_SIZE+
+(0x1ca4+1229-0x2170);break;case WMS_UDH_SMALL_PICTURE:length=
+(0x1d6c+1282-0x226d)+(0x82d+2616-0x1264)+WMS_UDH_SMALL_PIC_SIZE+
+(0x9a+7755-0x1ee4);break;case WMS_UDH_VAR_PICTURE:length=(0xa6a+2094-0x1297)+
+(0x1fb+49-0x22b)+(UINT8)(udh->u.var_picture.height*udh->u.var_picture.width/
+(0xffa+4295-0x20b9))+(0x1625+2826-0x212c);break;case WMS_UDH_RFC822:length=
+(0x251f+268-0x262a)+(0x10f2+3152-0x1d41)+WMS_UDH_OCTETS_RFC822;break;case 
+WMS_UDH_NAT_LANG_SS:length=(0xddb+5503-0x2359)+(0x12c+2089-0x954)+
 WMS_UDH_OCTETS_NAT_LANG_SS;break;case WMS_UDH_NAT_LANG_LS:length=
-(0x11b8+1051-0x15d2)+(0x7ed+6106-0x1fc6)+WMS_UDH_OCTETS_NAT_LANG_LS;break;case 
-WMS_UDH_USER_PROMPT:length=(0xa42+535-0xc58)+(0x1686+3743-0x2524)+
+(0x4e7+1277-0x9e3)+(0x407+8744-0x262e)+WMS_UDH_OCTETS_NAT_LANG_LS;break;case 
+WMS_UDH_USER_PROMPT:length=(0x592+5502-0x1b0f)+(0x16ba+40-0x16e1)+
 WMS_UDH_OCTETS_USER_PROMPT;break;case WMS_UDH_EXTENDED_OBJECT:length=
-(0x414+8318-0x2491)+(0x479+3676-0x12d4)+udh->u.eo.content.length;if(udh->u.eo.
+(0xc9b+4250-0x1d34)+(0x1d5+436-0x388)+udh->u.eo.content.length;if(udh->u.eo.
 first_segment==TRUE){length+=WMS_UDH_OCTETS_EO_HEADER;}break;default:length=
-(0x11c9+299-0x12f3)+(0xeca+5671-0x24f0)+udh->u.other.header_length;break;}}
+(0x18b4+2793-0x239c)+(0x71d+2209-0xfbd)+udh->u.other.header_length;break;}}
 return length;}uint32 wms_ts_compute_user_data_header_length(const UINT8 
-num_headers,const wms_udh_s_type*headers){uint32 length=(0x15fb+797-0x1918);
+num_headers,const wms_udh_s_type*headers){uint32 length=(0x134c+3895-0x2283);
 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(0x90a+3891-0x183d);}if(num_headers>(0x588+3368-0x12b0)){length+=
-(0x875+6679-0x228b);for(i=(0xcf1+2144-0x1551);i<num_headers&&i<
-WMS_MAX_UD_HEADERS;i++){length+=(uint32)wms_ts_get_udh_length(&headers[i]);}}
-return length;}uint32 wms_ts_compute_gw_user_data_length(const wms_gw_dcs_s_type
-*dcs,const wms_gw_user_data_s_type*user_data){uint32 length=(0x218b+974-0x2559);
-if(dcs==NULL||user_data==NULL){at_print(LOG_DEBUG,
+);return(0x1772+2699-0x21fd);}if(num_headers>(0xa44+4176-0x1a94)){length+=
+(0x942+2684-0x13bd);for(i=(0x1d9c+80-0x1dec);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=(0xa93+3328-0x1793);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(0x403+4782-0x16b1);}length+=wms_ts_compute_user_data_header_length(
+);return(0x14d6+3737-0x236f);}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*(0x2178+47-0x21a0))+
-(0x57b+2027-0xd5f))/(0x12b1+178-0x135b);}else{length+=user_data->sm_len;}return 
-length;}static int wms_ts_encode_udh_concat_8(UINT8*udh){int pos=
-(0x893+430-0xa41);if(const_header->u.concat_8.total_sm==(0x835+3945-0x179e)||
-const_header->u.concat_8.seq_num==(0x1e58+1839-0x2587)||const_header->u.concat_8
-.seq_num>const_header->u.concat_8.total_sm){at_print(LOG_DEBUG,
+WMS_GW_ALPHABET_7_BIT_DEFAULT){length+=((user_data->sm_len*(0x321+7300-0x1f9e))+
+(0x1203+3095-0x1e13))/(0x1323+858-0x1675);}else{length+=user_data->sm_len;}
+return length;}static int wms_ts_encode_udh_concat_8(UINT8*udh){int pos=
+(0x48f+3960-0x1407);if(const_header->u.concat_8.total_sm==(0xd4c+2862-0x187a)||
+const_header->u.concat_8.seq_num==(0x557+2904-0x10af)||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(0x13e3+616-0x164b);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0xe05+5799-0x24ac);}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=(0xa17+1055-0xe36);if(const_header
-->u.concat_16.total_sm==(0x842+1223-0xd09)||const_header->u.concat_16.seq_num==
-(0x427+864-0x787)||const_header->u.concat_16.seq_num>const_header->u.concat_16.
-total_sm){at_print(LOG_DEBUG,
+wms_ts_encode_udh_concat16(UINT8*udh){int pos=(0x35+9534-0x2573);if(const_header
+->u.concat_16.total_sm==(0xb1c+2875-0x1657)||const_header->u.concat_16.seq_num==
+(0x1e11+1177-0x22aa)||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(0x6da+4668-0x1916);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0x10e0+15-0x10ef);}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)>>(0x136d+3113-0x1f8e));udh[pos++]=(
-UINT8)(const_header->u.concat_16.msg_ref&(0x15b4+205-0x1582));udh[pos++]=
-const_header->u.concat_16.total_sm;udh[pos++]=const_header->u.concat_16.seq_num;
-return pos;}int wms_ts_encode_udh_nat_lang_ss(UINT8*udh){int pos=
-(0x753+2268-0x102f);udh[pos++]=(UINT8)WMS_UDH_NAT_LANG_SS;udh[pos++]=(UINT8)
-WMS_UDH_OCTETS_NAT_LANG_SS;udh[pos++]=(UINT8)const_header->u.nat_lang_ss.
-nat_lang_id;return pos;}int wms_ts_encode_udh_nat_lang_ls(UINT8*udh){int pos=
-(0xc08+3907-0x1b4b);udh[pos++]=(UINT8)WMS_UDH_NAT_LANG_LS;udh[pos++]=(UINT8)
-WMS_UDH_OCTETS_NAT_LANG_LS;udh[pos++]=(UINT8)const_header->u.nat_lang_ls.
-nat_lang_id;return pos;}int wms_ts_encode_udh_other(UINT8*udh,wms_udh_id_e_type 
-header_id){int i=(0xbaa+322-0xcec);int pos=(0x2a3+8278-0x22f9);udh[pos++]=(UINT8
-)const_header->u.other.header_id;udh[pos++]=const_header->u.other.header_length;
-for(i=(0x70d+5648-0x1d1d);i<const_header->u.other.header_length;i++){udh[pos++]=
+const_header->u.concat_16.msg_ref&65280)>>(0x1ed5+442-0x2087));udh[pos++]=(UINT8
+)(const_header->u.concat_16.msg_ref&(0xe6d+5618-0x2360));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=(0xc21+3012-0x17e5);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=(0x7d5+7237-0x241a);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=
+(0x1f6+3051-0xde1);int pos=(0xccf+4933-0x2014);udh[pos++]=(UINT8)const_header->u
+.other.header_id;udh[pos++]=const_header->u.other.header_length;for(i=
+(0x9a+8609-0x223b);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=
-(0x3f5+1174-0x88b);if(num_headers==(0x1124+3673-0x1f7d))return
-(0x1113+5273-0x25ac);++pos;for(i=(0x1832+3501-0x25df);i<WMS_MAX_UD_HEADERS&&i<
-num_headers;i++){const_header=&headers[i];switch(const_header->header_id){case 
-WMS_UDH_CONCAT_8:pos+=wms_ts_encode_udh_concat_8(data+pos);break;case 
-WMS_UDH_CONCAT_16:pos+=wms_ts_encode_udh_concat16(data+pos);break;
-#if (0x2119+317-0x2256)

+(0xc06+265-0xd0f);if(num_headers==(0x23d4+717-0x26a1))return(0x88+487-0x26f);++
+pos;for(i=(0xef6+3740-0x1d92);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 (0x10af+3011-0x1c72)

 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 
@@ -1313,106 +1315,106 @@
 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[
-(0x498+725-0x76d)]=(UINT8)(pos-(0x383+4998-0x1708));return((UINT8)(pos-
-(0x1555+1006-0x1942)));}UINT8 wms_ts_encode_gw_user_data(const wms_gw_dcs_s_type
-*dcs,const wms_gw_user_data_s_type*user_data,UINT8*data){UINT16 i,pos=
-(0xf31+2979-0x1ad4);UINT8 fill_bits=(0x3ba+3352-0x10d2);UINT16 
+(0x3a9+8753-0x25da)]=(UINT8)(pos-(0x10d5+294-0x11fa));return((UINT8)(pos-
+(0xf6f+383-0x10ed)));}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=
+(0x3df+1777-0xad0);UINT8 fill_bits=(0x18ab+2714-0x2345);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>(0x91c+4817-0x1bed)){if
+WMS_GW_ALPHABET_7_BIT_DEFAULT){if(user_data->num_headers>(0x2cc+4061-0x12a9)){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+(0x330+6402-0x1c31);total_bits_occupied=(
-user_data_header_length+(0x7d3+173-0x87f))*(0x9ea+4305-0x1ab3);fill_bits=(
-total_bits_occupied%(0x1c44+2360-0x2575));if(fill_bits!=(0x23b9+346-0x2513)){
-fill_bits=(0x94d+2819-0x1449)-fill_bits;}user_data_length=(total_bits_occupied+
-fill_bits+(user_data->sm_len*(0x2426+545-0x2640)))/(0x22ec+143-0x2374);data[
-(0xfbf+5223-0x2426)]=(UINT8)user_data_length;data[(0xe5+5678-0x1712)]=
+pos);pos+=user_data_header_length+(0x559+3426-0x12ba);total_bits_occupied=(
+user_data_header_length+(0x1900+1001-0x1ce8))*(0xae9+3708-0x195d);fill_bits=(
+total_bits_occupied%(0x114+3590-0xf13));if(fill_bits!=(0xea4+513-0x10a5)){
+fill_bits=(0x37f+5344-0x1858)-fill_bits;}user_data_length=(total_bits_occupied+
+fill_bits+(user_data->sm_len*(0x5d0+7436-0x22d5)))/(0x7f+556-0x2a4);data[
+(0x5d9+3405-0x1326)]=(UINT8)user_data_length;data[(0x6e9+3075-0x12eb)]=
 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>
-(0x559+1129-0x9c2)){if(wms_ts_compute_user_data_header_length(user_data->
+(0xb1c+6061-0x22c9)){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[(0x1813+3309-0x2500)]=(UINT8)(user_data->sm_len+
-user_data_header_length+(0x2f8+4012-0x12a3));pos+=user_data_header_length+
-(0xaa7+4304-0x1b76);}else{at_print(LOG_DEBUG,
+pos);data[(0x5b7+5933-0x1ce4)]=(UINT8)(user_data->sm_len+user_data_header_length
++(0xf77+4243-0x2009));pos+=user_data_header_length+(0x8a1+2716-0x133c);}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=(0x478+4417-0x15b9),i;if(
+wms_status_e_type st=WMS_OK_S;UINT8*data;UINT8 pos=(0x1291+2870-0x1dc7),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,
-(0x191a+569-0x1b53),WMS_MAX_LEN);data[pos]=(0x157+6652-0x1b53);data[pos]|=
-deliver->more?(0xb0f+5215-0x1f6e):(0x9a7+1321-0xecc);data[pos]|=deliver->
-status_report_enabled?(0x1a2a+2765-0x24d7):(0x1aef+2548-0x24e3);data[pos]|=
-deliver->user_data_header_present?(0x1eed+83-0x1f00):(0x1050+2404-0x19b4);data[
-pos]|=deliver->reply_path_present?(0x1d0+7944-0x2058):(0x9dc+4574-0x1bba);pos++;
-i=wms_ts_encode_address(&deliver->address,&data[pos]);if(i==(0x848+2485-0x11fd))
-{return WMS_INVALID_PARM_SIZE_S;}pos+=i;data[pos]=deliver->pid;pos++;pos+=
-wms_ts_encode_dcs(&deliver->dcs,data+pos);i=wms_ts_encode_timestamp(&deliver->
-timestamp,data+pos);if(i==(0x545+8263-0x258c)){return WMS_INVALID_PARM_VALUE_S;}
-pos+=i;if(wms_ts_compute_gw_user_data_length(&deliver->dcs,&deliver->user_data)>
-WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
+(0x4f9+3474-0x128b),WMS_MAX_LEN);data[pos]=(0x1bfd+2593-0x261e);data[pos]|=
+deliver->more?(0x1109+5500-0x2685):(0xed5+2017-0x16b2);data[pos]|=deliver->
+status_report_enabled?(0xf87+5971-0x26ba):(0x1c1f+2053-0x2424);data[pos]|=
+deliver->user_data_header_present?(0x1f4d+173-0x1fba):(0xcda+1156-0x115e);data[
+pos]|=deliver->reply_path_present?(0x680+7724-0x242c):(0x1afd+1876-0x2251);pos++
+;i=wms_ts_encode_address(&deliver->address,&data[pos]);if(i==
+(0x19c2+1320-0x1eea)){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==(0x14cf+1132-0x193b)
+){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=(0x617+4649-0x1840),j;if(timestamp!=NULL){if(!wms_ts_bcd_to_int(timestamp->
+ v=(0x1f11+165-0x1fb6),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*(0x291+300-0x250);if(!wms_ts_bcd_to_int(timestamp->month,&j)){at_print(
-LOG_DEBUG,
+);}i=j*(0x18d3+2076-0x1f82);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*(0x8d1+1986-0x1075);if(!wms_ts_bcd_to_int(timestamp->day,&j)){
+,j);}i=i+j*(0x409+5138-0x17fd);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>(0x5d+9538-0x2581)){v=(UINT8)((i+(0x855+2725-0x12f4))/
-(0xa27+2698-0x14aa)+(0xfc2+5468-0x245e));}else if(i>=(0x1516+256-0x1615)){v=(
-UINT8)(i+(0x1374+5059-0x2691));}else{if(!wms_ts_bcd_to_int(timestamp->day,&j)){
++=j;if(i>(0x842+1486-0xdf2)){v=(UINT8)((i+(0xc55+4003-0x1bf2))/
+(0x446+2700-0xecb)+(0x13d+5436-0x15b9));}else if(i>=(0xb19+5619-0x210b)){v=(
+UINT8)(i+(0x15b1+1991-0x1cd2));}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*(0x1025+5806-0x26bb)*(0x837+7593-0x25a4);if(!wms_ts_bcd_to_int(timestamp->
-hour,&j)){at_print(LOG_DEBUG,
+=j*(0x4ad+1745-0xb66)*(0x10e3+2926-0x1c15);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*(0x38a+4318-0x142c);if(!wms_ts_bcd_to_int(timestamp->minute,&j)){
-at_print(LOG_DEBUG,
+);}i=i+j*(0xa0c+986-0xdaa);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>(0x228d+440-0x2439)*(0x78d+7983-0x2680)){v=(UINT8)((i-((
-(0x3a8+4716-0x1608)*(0xd26+2676-0x175e))+(0xc9d+1178-0x111a)))/
-(0x5ac+3084-0x119a)+(0x777+1206-0xb9e));}else{v=(UINT8)((i+(0x114f+2149-0x19b0))
-/(0x9a3+6948-0x24c2)-(0x78+3335-0xd7e));}}}else{at_print(LOG_DEBUG,
+,j);}i+=j;if(i>(0x15d5+1505-0x1baa)*(0x622+7507-0x2339)){v=(UINT8)((i-((
+(0x24d6+354-0x262c)*(0x1190+4226-0x21d6))+(0xe89+2838-0x1982)))/
+(0x2e8+4063-0x12a9)+(0x40f+173-0x42d));}else{v=(UINT8)((i+(0x6c9+4002-0x1667))/
+(0x138d+4457-0x24f1)-(0xc15+3062-0x180a));}}}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=(0xeb7+1411-0x143a);switch(validity->format){
+validity,UINT8*data){UINT8 i,pos=(0xa07+6199-0x223e);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==(0xa34+3284-0x1708)){at_print(LOG_DEBUG,
+if(i==(0x1bc6+2051-0x23c9)){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=(0x13b2+1893-0x1b17),i;if(submit==NULL||raw_ts_data_ptr==NULL){
-at_print(LOG_DEBUG,
+UINT8 pos=(0x41d+6021-0x1ba2),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,
-(0x666+6225-0x1eb7),WMS_MAX_LEN);data[pos]=(0xd29+1838-0x1456);data[pos]|=submit
-->reject_duplicates?(0x1738+3102-0x2352):(0x2e0+8284-0x233c);if(submit->validity
-.format>(0x3c5+8354-0x2464)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}data[pos]
-|=submit->validity.format<<(0x35f+6666-0x1d66);data[pos]|=submit->
-status_report_enabled?(0x771+5056-0x1b11):(0x1f6+4853-0x14eb);data[pos]|=submit
-->user_data_header_present?(0x3b1+3163-0xfcc):(0xc4f+2186-0x14d9);data[pos]|=
-submit->reply_path_present?(0x20fa+859-0x23d5):(0x799+20-0x7ad);pos++;data[pos]=
-(UINT8)submit->message_reference;pos++;i=wms_ts_encode_address(&submit->address,
-&data[pos]);if(i==(0x1a67+2177-0x22e8)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;
-data[pos]=submit->pid;pos++;pos+=wms_ts_encode_dcs(&submit->dcs,data+pos);pos+=
-wms_ts_encode_gw_validity(&submit->validity,data+pos);if(
+(0x1327+2136-0x1b7f),WMS_MAX_LEN);data[pos]=(0x1f0c+168-0x1fb3);data[pos]|=
+submit->reject_duplicates?(0x14ac+623-0x1717):(0x43a+2156-0xca6);if(submit->
+validity.format>(0x508+1340-0xa41)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}
+data[pos]|=submit->validity.format<<(0x833+5152-0x1c50);data[pos]|=submit->
+status_report_enabled?(0xa7+884-0x3fb):(0xce3+4276-0x1d97);data[pos]|=submit->
+user_data_header_present?(0x160b+1249-0x1aac):(0x1634+4127-0x2653);data[pos]|=
+submit->reply_path_present?(0xf19+4873-0x21a2):(0x49f+4131-0x14c2);pos++;data[
+pos]=(UINT8)submit->message_reference;pos++;i=wms_ts_encode_address(&submit->
+address,&data[pos]);if(i==(0x16b6+2457-0x204f)){return WMS_INVALID_PARM_SIZE_S;}
+pos+=i;data[pos]=submit->pid;pos++;pos+=wms_ts_encode_dcs(&submit->dcs,data+pos)
+;pos+=wms_ts_encode_gw_validity(&submit->validity,data+pos);if(
 wms_ts_compute_gw_user_data_length(&submit->dcs,&submit->user_data)>
 WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
 "\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x4c\x65\x6e\x67\x74\x68\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x63\x61\x70\x61\x63\x69\x74\x79"
@@ -1421,21 +1423,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=(0x709+7137-0x22ea),i;if(status_report==NULL||raw_ts_data_ptr==NULL){
+UINT8 pos=(0x181b+1363-0x1d6e),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,
-(0xa74+3436-0x17e0),WMS_MAX_LEN);data[pos]=(0x4fd+1153-0x96e);data[pos]|=
-status_report->more?(0x1f6+283-0x311):(0x309+2015-0xae4);data[pos]|=
-status_report->status_report_qualifier?(0x6e1+4482-0x1843):(0x236+3783-0x10fd);
-data[pos]|=status_report->user_data_header_present?(0x344+8755-0x2537):
-(0xf09+2752-0x19c9);pos++;data[pos]=(UINT8)status_report->message_reference;pos
+(0x111f+4978-0x2491),WMS_MAX_LEN);data[pos]=(0x884+3445-0x15e9);data[pos]|=
+status_report->more?(0x74+8634-0x222e):(0x25b+1363-0x7aa);data[pos]|=
+status_report->status_report_qualifier?(0x1b01+261-0x1be6):(0x387+3770-0x1241);
+data[pos]|=status_report->user_data_header_present?(0x1a3c+2262-0x22d2):
+(0x987+2872-0x14bf);pos++;data[pos]=(UINT8)status_report->message_reference;pos
 ++;i=wms_ts_encode_address(&status_report->address,&data[pos]);if(i==
-(0xa3a+2104-0x1272)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0x3a+4874-0x1344)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
 wms_ts_encode_timestamp(&status_report->timestamp,data+pos);if(i==
-(0xdc9+6249-0x2632)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0x1477+3155-0x20ca)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
 wms_ts_encode_timestamp(&status_report->discharge_time,data+pos);if(i==
-(0xa0d+809-0xd36)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;data[pos]=
+(0x3a+8229-0x205f)){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->
@@ -1450,7 +1452,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 (0xa1+9503-0x25c0)

+#if (0xb0f+6737-0x2560)

 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;
@@ -1460,7 +1462,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 (0x880+3927-0x17d7)

+#if (0x583+507-0x77e)

 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
@@ -1477,359 +1479,361 @@
 "\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=(0x1e43+625-0x20b4);UINT16 pos=
-(0x4e4+3243-0x118f);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+out_len_max,UINT16 shift,UINT8*out){int i=(0x609+1968-0xdb9);UINT16 pos=
+(0xb07+3233-0x17a8);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(0x11a+3567-0xf09);}if(shift!=(0x510+8639-0x26cf))pos=pos+
-(0x1627+150-0x16bc);if(shift==(0xb2b+700-0xde0)){out[(0x4ad+2610-0xedf)]=in[
-(0x8b9+5883-0x1fb4)]>>(0x58c+8043-0x24f6);shift=(0x1866+2486-0x221c);i=
-(0x13c1+3517-0x217d);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]
-<<shift)&(0x10a+3394-0xdcd);if(pos!=(0xc+7513-0x1d65)){
-#if (0xba2+5286-0x2047)       
-if(shift==(0x1a98+837-0x1ddd)){out[i]|=(0x94d+3519-0x170c);}else{out[i]|=in[pos-
-(0x1892+1188-0x1d35)]>>((0x118+2065-0x921)-shift);}
+);return(0x5a0+3902-0x14de);}if(shift!=(0x14b+3153-0xd9c))pos=pos+
+(0xd01+4248-0x1d98);if(shift==(0x15cf+2452-0x1f5c)){out[(0x1dad+254-0x1eab)]=in[
+(0x9f3+5666-0x2015)]>>(0xb34+4572-0x1d0f);shift=(0x9e3+5428-0x1f17);i=
+(0xd8c+6501-0x26f0);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]
+<<shift)&(0x5c0+2271-0xe20);if(pos!=(0x18a0+949-0x1c55)){
+#if (0x681+503-0x877)       
+if(shift==(0x677+4373-0x178c)){out[i]|=(0x1565+4356-0x2669);}else{out[i]|=in[pos
+-(0xc2a+4683-0x1e74)]>>((0xbf4+582-0xe32)-shift);}
 #else

-out[i]|=in[pos-(0x991+1605-0xfd5)]>>((0xdbf+2174-0x1635)-shift);
+out[i]|=in[pos-(0x1287+4793-0x253f)]>>((0xab6+6124-0x229a)-shift);
 #endif

-}shift++;if(shift==(0x1f0a+964-0x22c7)){shift=(0x111+411-0x2ac);i++;if(i>=
+}shift++;if(shift==(0x15b0+2336-0x1ec9)){shift=(0x1655+2161-0x1ec6);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]>>(0x5ca+6378-0x1eb3);}}return(UINT8)(pos);}UINT8 
+);break;}out[i]=in[pos]>>(0xbba+6797-0x2646);}}return(UINT8)(pos);}UINT8 
 wms_ts_decode_address(const UINT8*data,wms_address_s_type*addr){UINT8 i,pos=
-(0xd49+5497-0x22c2);i=data[pos];if(i>WMS_GW_ADDRESS_MAX){at_print(LOG_DEBUG,
+(0x934+4905-0x1c5d);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(0x1fcd+831-0x230c);}addr->number_of_digits=i;pos++;addr->digit_mode=
+,i);return(0x110d+5296-0x25bd);}addr->number_of_digits=i;pos++;addr->digit_mode=
 WMS_DIGIT_MODE_4_BIT;addr->number_type=(wms_number_type_e_type)((data[pos]&
-(0x4e1+8222-0x248f))>>(0xd35+3787-0x1bfc));addr->number_plan=(
-wms_number_plan_e_type)(data[pos]&(0x1af6+1120-0x1f47));pos++;if(addr->
-number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0xc49+6298-0x24e3);
+(0x5ff+1238-0xa65))>>(0xe9c+162-0xf3a));addr->number_plan=(
+wms_number_plan_e_type)(data[pos]&(0x2150+224-0x2221));pos++;if(addr->
+number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0x90a+6702-0x2338);
 addr->digit_mode=WMS_DIGIT_MODE_8_BIT;bytes_increment=(addr->number_of_digits+
-(0x6a8+4316-0x1783))/(0xfb2+26-0xfca);addr->number_of_digits=(UINT8)(addr->
-number_of_digits*(0x125d+3338-0x1f63)/(0xc9f+5390-0x21a6));(void)
+(0x16fb+1669-0x1d7f))/(0x8d6+6327-0x218b);addr->number_of_digits=(UINT8)(addr->
+number_of_digits*(0x6cd+4063-0x16a8)/(0x1751+323-0x188d));(void)
 wms_ts_unpack_gw_7_bit_chars(&data[pos],addr->number_of_digits,
-WMS_GW_ADDRESS_MAX,(0x1fa2+1874-0x26f4),addr->digits);pos+=bytes_increment;}else
-{for(i=(0x6cc+1011-0xabf);i<addr->number_of_digits;i++){addr->digits[i++]=data[
-pos]&(0x9d7+4424-0x1b10);addr->digits[i]=(data[pos]&(0x21a+889-0x4a3))>>
-(0x88a+5078-0x1c5c);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data
-,wms_gw_dcs_s_type*dcs){UINT8 pos=(0xbe0+4427-0x1d2b);UINT8 i;if(data==NULL||dcs
+WMS_GW_ADDRESS_MAX,(0x155+84-0x1a9),addr->digits);pos+=bytes_increment;}else{for
+(i=(0x1c09+1198-0x20b7);i<addr->number_of_digits;i++){addr->digits[i++]=data[pos
+]&(0xe05+4053-0x1dcb);addr->digits[i]=(data[pos]&(0x1e9+8610-0x229b))>>
+(0xcbc+5618-0x22aa);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data
+,wms_gw_dcs_s_type*dcs){UINT8 pos=(0x4ca+4776-0x1772);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(0x139f+3123-0x1fd2);}dcs->msg_class=WMS_MESSAGE_CLASS_NONE;dcs->
+);return(0x4db+2561-0xedc);}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]&(0xa5c+912-0xd2c))>>(0xc31+3950-0x1b99);
-switch(i){case(0x849+2127-0x1098):dcs->is_compressed=data[pos]&
-(0x474+2211-0xcf7);if(data[pos]&(0x3ad+6479-0x1cec)){dcs->msg_class=(
-wms_message_class_e_type)(data[pos]&(0xa89+4440-0x1bde));}else{dcs->msg_class=
+dcs->is_compressed=FALSE;i=(data[pos]&(0x337+7398-0x1f5d))>>(0x519+4505-0x16ac);
+switch(i){case(0x16+5237-0x148b):dcs->is_compressed=data[pos]&
+(0xb30+1876-0x1264);if(data[pos]&(0xb75+1455-0x1114)){dcs->msg_class=(
+wms_message_class_e_type)(data[pos]&(0x1203+3038-0x1dde));}else{dcs->msg_class=
 WMS_MESSAGE_CLASS_NONE;}dcs->alphabet=(wms_gw_alphabet_e_type)((data[pos]&
-(0xcdd+251-0xdcc))>>(0xc2d+2105-0x1464));break;case(0xb6b+4350-0x1c66):if((data[
-pos]&(0x195+468-0x339))==(0xdb2+6333-0x263f)){dcs->alphabet=(data[pos]&
-(0x222c+422-0x23ce))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
-msg_class=(wms_message_class_e_type)(data[pos]&(0xdb5+2190-0x1640));dcs->
+(0x13f8+2494-0x1daa))>>(0x293+8806-0x24f7));break;case(0x393+8583-0x2517):if((
+data[pos]&(0x17c9+482-0x197b))==(0x1fac+930-0x231e)){dcs->alphabet=(data[pos]&
+(0x2a8+2293-0xb99))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
+msg_class=(wms_message_class_e_type)(data[pos]&(0x44c+3013-0x100e));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]&
-(0x994+6412-0x2270))==(0x16c3+3276-0x238f)){dcs->msg_waiting=
+(0x16a+1506-0x71c))==(0x766+1398-0xcdc)){dcs->msg_waiting=
 WMS_GW_MSG_WAITING_DISCARD;dcs->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}else if(
-(data[pos]&(0x132b+3892-0x222f))==(0x1039+2785-0x1b0a)){dcs->msg_waiting=
+(data[pos]&(0x375+4674-0x1587))==(0x173d+3418-0x2487)){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]&(0x68d+2831-0x1194))?TRUE:FALSE;dcs->
-msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x178f+904-0x1b14))
+msg_waiting_active=(data[pos]&(0xe94+4536-0x2044))?TRUE:FALSE;dcs->
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x1570+569-0x17a6))
 ;}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=(0x89f+2663-0x1306),i,j;if(
+UINT8*data,wms_timestamp_s_type*timestamp){UINT8 pos=(0x657+3769-0x1510),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(0x210a+866-0x246c);}i=((data[pos]&(0x115+1914-0x880))<<
-(0x772+7673-0x2567))+((data[pos]&(0x184+2028-0x880))>>(0x1560+1194-0x1a06));if(!
+);return(0x12c4+2443-0x1c4f);}i=((data[pos]&(0x1148+1957-0x18de))<<
+(0x1187+51-0x11b6))+((data[pos]&(0x1861+2399-0x20d0))>>(0x587+674-0x825));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=(0x720+312-0x858);}timestamp->year=i;pos++;i=((data[pos]&
-(0xaa6+3401-0x17e0))<<(0x1e1f+820-0x214f))+((data[pos]&(0x1440+4283-0x240b))>>
-(0x1720+3743-0x25bb));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xef4+5160-0x2310)||j<
-(0x129c+4406-0x23d1)){at_print(LOG_DEBUG,
+,data[pos]);i=(0xba6+4078-0x1b94);}timestamp->year=i;pos++;i=((data[pos]&
+(0x2103+1414-0x267a))<<(0x1623+2191-0x1eae))+((data[pos]&(0x1ef4+1891-0x2567))>>
+(0x13ff+2926-0x1f69));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x368+1390-0x8ca)||j<
+(0xb6d+5999-0x22db)){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=(0x1665+2918-0x21ca);}}else{at_print(LOG_DEBUG,
+,j);i=(0xd51+4775-0x1ff7);}}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=(0x13ca+2333-0x1ce6);}timestamp->month=i;pos++;i=((data[pos]&
-(0x2101+865-0x2453))<<(0xbbf+5779-0x224e))+((data[pos]&(0x1ca0+595-0x1e03))>>
-(0x1c62+1889-0x23bf));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xe80+1133-0x12ce)||j<
-(0x189+1073-0x5b9)){at_print(LOG_DEBUG,
+,data[pos]);i=(0x5fa+7577-0x2392);}timestamp->month=i;pos++;i=((data[pos]&
+(0x1046+5439-0x2576))<<(0x317+2673-0xd84))+((data[pos]&(0x462+8101-0x2317))>>
+(0x1c4+1118-0x61e));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x58b+4830-0x184a)||j<
+(0x584+7797-0x23f8)){at_print(LOG_DEBUG,
 "\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);i=
-(0x1587+1587-0x1bb9);}}else{at_print(LOG_DEBUG,
+(0xcf3+3326-0x19f0);}}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=(0xa82+2733-0x152e);}timestamp->day=i;pos++;i=((data[pos]&
-(0x1d05+211-0x1dc9))<<(0x1e36+1511-0x2419))+((data[pos]&(0x58c+7033-0x2015))>>
-(0x2054+1419-0x25db));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xd8b+4341-0x1e69)){
+,data[pos]);i=(0x618+1903-0xd86);}timestamp->day=i;pos++;i=((data[pos]&
+(0x418+104-0x471))<<(0x5c+3899-0xf93))+((data[pos]&(0x433+1171-0x7d6))>>
+(0x641+3223-0x12d4));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x3e2+1769-0xab4)){
 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=(0x159c+941-0x1949);}}else{at_print(LOG_DEBUG,
+,j);i=(0xd58+4057-0x1d31);}}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=(0x1596+277-0x16ab);}timestamp->hour=i;pos++;i=((data[pos]&
-(0x3a5+1480-0x95e))<<(0x125f+1466-0x1815))+((data[pos]&(0x846+5774-0x1de4))>>
-(0x1ce5+2592-0x2701));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xd2c+3474-0x1a83)){
+,data[pos]);i=(0xd0+7516-0x1e2c);}timestamp->hour=i;pos++;i=((data[pos]&
+(0x132f+4556-0x24ec))<<(0x2bc+6234-0x1b12))+((data[pos]&(0x123d+1518-0x173b))>>
+(0x15dc+2286-0x1ec6));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x3e9+8969-0x26b7)){
 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=(0x35a+6472-0x1ca2);}}else{at_print(LOG_DEBUG,
+,j);i=(0x1425+2084-0x1c49);}}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=(0x1280+3225-0x1f19);}timestamp->minute=i;pos++;i=((data[pos]&
-(0x5ca+4696-0x1813))<<(0x97c+3530-0x1742))+((data[pos]&(0xc4a+412-0xcf6))>>
-(0x251+8202-0x2257));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1b9+7519-0x1edd)){
+,data[pos]);i=(0x868+1485-0xe35);}timestamp->minute=i;pos++;i=((data[pos]&
+(0x10e1+722-0x13a4))<<(0x16af+535-0x18c2))+((data[pos]&(0xc1a+3565-0x1917))>>
+(0x603+4710-0x1865));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1012+1344-0x1517)){
 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=(0x1527+1686-0x1bbd);}}else{at_print(LOG_DEBUG,
+,i);i=(0x222+6039-0x19b9);}}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=(0x850+2156-0x10bc);}timestamp->second=i;pos++;if(data[pos]&
-(0x959+3844-0x1855)){timestamp->timezone=(data[pos]&(0x503+6230-0x1d52))*
-(0x1d7+9251-0x25f0)+((data[pos]&(0x622+8622-0x26e0))>>(0x66+9413-0x2527));
-timestamp->timezone*=(-(0x304+9128-0x26ab));}else{timestamp->timezone=(sint7)((
-data[pos]&(0x39+6889-0x1b13))*(0x9b5+1962-0x1155)+((data[pos]&
-(0x1b22+1348-0x1f76))>>(0x1025+555-0x124c)));}if(timestamp->timezone>
-(0x931+3720-0x1789)||timestamp->timezone<-(0x155f+2977-0x20d0)){at_print(
+,data[pos]);i=(0x8f4+5200-0x1d44);}timestamp->second=i;pos++;if(data[pos]&
+(0xfb5+1738-0x1677)){timestamp->timezone=(data[pos]&(0xedc+2532-0x18b9))*
+(0x1687+786-0x198f)+((data[pos]&(0xb87+5134-0x1ea5))>>(0xff+5283-0x159e));
+timestamp->timezone*=(-(0x14d9+3277-0x21a5));}else{timestamp->timezone=(sint7)((
+data[pos]&(0x59d+2230-0xe44))*(0x2222+1229-0x26e5)+((data[pos]&
+(0xa36+6618-0x2320))>>(0x103a+3180-0x1ca2)));}if(timestamp->timezone>
+(0x8b9+4215-0x1900)||timestamp->timezone<-(0x947+4618-0x1b21)){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=(0x13c8+1015-0x17bf);}pos++;return pos
-;}static UINT8 wms_ts_decode_udh_concat_8(const UINT8*udh,wms_udh_s_type*
-header_ptr){UINT8 pos=(0x18b4+811-0x1bdf);if(udh==NULL||header_ptr==NULL){
+,timestamp->timezone);timestamp->timezone=(0x2a0+6188-0x1acc);}pos++;return pos;
+}static UINT8 wms_ts_decode_udh_concat_8(const UINT8*udh,wms_udh_s_type*
+header_ptr){UINT8 pos=(0x19+8136-0x1fe1);if(udh==NULL||header_ptr==NULL){
 at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x844+2121-0x108d);}if(udh[pos]<(0x119c+4855-0x2490)){at_print(LOG_DEBUG,
+(0x1aa+5520-0x173a);}if(udh[pos]<(0xc02+299-0xd2a)){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(0xc7f+3441-0x19f0);}if(udh[pos+(0x878+2031-0x1065)]==
-(0x8b3+3651-0x16f6)||udh[pos+(0x51b+3620-0x133c)]>udh[pos+(0x407+7196-0x2021)]){
+,udh[pos]);return(0x15a0+3768-0x2458);}if(udh[pos+(0xbdb+3312-0x18c9)]==
+(0x1823+1325-0x1d50)||udh[pos+(0x503+3300-0x11e4)]>udh[pos+(0x33b+1860-0xa7d)]){
 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(0xa77+471-0xc4e);}pos++;header_ptr->header_id=WMS_UDH_CONCAT_8;
+);return(0x9b5+6452-0x22e9);}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[(0xd9f+4735-0x201e)]
-+(0xe3a+1059-0x125c));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x212c+228-0x2210);if(udh==NULL||
+pos++];header_ptr->u.concat_8.seq_num=udh[pos++];return(udh[(0x899+5690-0x1ed3)]
++(0x82c+49-0x85c));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
+wms_udh_s_type*header_ptr){UINT8 pos=(0x14e9+3327-0x21e8);if(udh==NULL||
 header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1154+5153-0x2575);}if(
-udh[pos]<(0x7a8+4947-0x1af7)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1519+3301-0x21fe);}if(
+udh[pos]<(0x1c50+2245-0x2511)){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(0xce2+224-0xdc2);}if(udh[pos+(0x14c+6504-0x1ab1)]==
-(0x1561+4331-0x264c)||udh[pos+(0x989+1429-0xf1a)]==(0x1162+1057-0x1583)||udh[pos
-+(0x1843+3784-0x2707)]>udh[pos+(0x1c43+1839-0x236f)])return(0x4b8+2232-0xd70);
+,udh[pos]);return(0x120d+1894-0x1973);}if(udh[pos+(0x1426+1609-0x1a6c)]==
+(0x1196+3195-0x1e11)||udh[pos+(0x147b+4196-0x24db)]==(0xfc+5227-0x1567)||udh[pos
++(0x683+4951-0x19d6)]>udh[pos+(0x296+51-0x2c6)])return(0x11d+263-0x224);
 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<<(0x6a6+3022-0x126c))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[
-pos++];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[(0xcdb+365-0xe48)]+
-(0x977+3638-0x17ac));}static UINT8 wms_ts_udh_decode_first_seg_check(const UINT8
- len,const UINT8*data,UINT8*is_first_segment_ptr){UINT8 pos=(0xcfd+3963-0x1c78);
-UINT8 num_headers=(0x17a3+2703-0x2232);UINT8 udhl=(0x14ea+705-0x17ab);UINT8 iedl
-=(0x765+4460-0x18d1);UINT8 iei=(0x984+3524-0x1748);*is_first_segment_ptr=TRUE;if
-(data==NULL||data[pos]==(0x805+1832-0xf2d)||len==(0xaf+2675-0xb22)){at_print(
+msg_ref<<(0xf1c+4265-0x1fbd))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[
+pos++];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[
+(0x187a+1877-0x1fcf)]+(0x23bb+762-0x26b4));}static UINT8 
+wms_ts_udh_decode_first_seg_check(const UINT8 len,const UINT8*data,UINT8*
+is_first_segment_ptr){UINT8 pos=(0xd66+5460-0x22ba);UINT8 num_headers=
+(0x1356+408-0x14ee);UINT8 udhl=(0x1317+3381-0x204c);UINT8 iedl=
+(0x7dc+1287-0xce3);UINT8 iei=(0x16a5+181-0x175a);*is_first_segment_ptr=TRUE;if(
+data==NULL||data[pos]==(0x5c1+1177-0xa5a)||len==(0x52c+2858-0x1056)){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+(0x141f+4216-0x2496)];if(iei==
-WMS_UDH_CONCAT_16){if(data[pos+(0x52f+4660-0x175e)]!=(0x193d+85-0x1991)){
+WMS_MAX_UD_HEADERS)){iei=data[pos];iedl=data[pos+(0x13b4+2640-0x1e03)];if(iei==
+WMS_UDH_CONCAT_16){if(data[pos+(0x13e0+2920-0x1f43)]!=(0x3fa+8413-0x24d6)){
 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+=((0xc75+6548-0x2607)+iedl);}}return TRUE;}static UINT8 
+;pos+=((0xf5c+4677-0x219f)+iedl);}}return TRUE;}static UINT8 
 wms_ts_decode_udh_special_sm(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 
-pos=(0x134b+2046-0x1b49);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x183d+3739-0x26d8);}if(
-udh[pos]<(0x19ab+2903-0x2500)){at_print(LOG_DEBUG,
+pos=(0x15e8+690-0x189a);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x745+6048-0x1ee5);}if(
+udh[pos]<(0x6+5970-0x1756)){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(0x5af+5482-0x1b19);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x1195+2588-0x1bb1);}pos++;header_ptr->header_id=
 WMS_UDH_SPECIAL_SM;header_ptr->u.special_sm.msg_waiting=(
-wms_gw_msg_waiting_e_type)((udh[pos]>>(0x135+4488-0x12b6)==(0x775+6299-0x2010))?
+wms_gw_msg_waiting_e_type)((udh[pos]>>(0x254a+50-0x2575)==(0x264+8689-0x2455))?
 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++]&
-(0x143d+4149-0x23f3));header_ptr->u.special_sm.message_count=udh[pos++];return(
-udh[(0x15f0+3680-0x2450)]+(0x1508+2108-0x1d43));}static UINT8 
-wms_ts_decode_udh_port_8(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
-(0x1c04+78-0x1c52);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xdab+1914-0x1525);}if(
-udh[pos]<(0x252+197-0x315)){at_print(LOG_DEBUG,
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(udh[pos++]&(0x99c+1971-0x10d0)
+);header_ptr->u.special_sm.message_count=udh[pos++];return(udh[
+(0x231a+582-0x2560)]+(0xcd1+910-0x105e));}static UINT8 wms_ts_decode_udh_port_8(
+const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x6b8+5814-0x1d6e);if(udh
+==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1a7b+2997-0x2630);}if(
+udh[pos]<(0x1e77+1444-0x2419)){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(0x4df+3218-0x1171);}pos++;header_ptr->header_id=WMS_UDH_PORT_8
-;header_ptr->u.wap_8.dest_port=udh[pos++];header_ptr->u.wap_8.orig_port=udh[pos
-++];return(udh[(0x6eb+1201-0xb9c)]+(0x1715+3811-0x25f7));}static UINT8 
+,udh[pos]);return(0x8d1+723-0xba4);}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[(0xc50+3059-0x1843)]+(0x121b+185-0x12d3));}static UINT8 
 wms_ts_decode_udh_port16(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
-(0xe81+5838-0x254f);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x380+4511-0x151f);}if(
-udh[pos]<(0x159b+815-0x18c6)){at_print(LOG_DEBUG,
+(0x128c+1717-0x1941);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x675+8227-0x2698);}if(
+udh[pos]<(0xbc6+6464-0x2502)){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(0x1ead+132-0x1f31);}header_ptr->header_id=WMS_UDH_PORT_16;pos
+,udh[pos]);return(0x93d+2621-0x137a);}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<<(0x1272+2647-0x1cc1))|udh[pos++];
-header_ptr->u.wap_16.orig_port=udh[pos++];header_ptr->u.wap_16.orig_port=(UINT16
-)(header_ptr->u.wap_16.orig_port<<(0x1521+1584-0x1b49))|udh[pos++];return(udh[
-(0x1784+1689-0x1e1d)]+(0x1a8b+2718-0x2528));}static UINT8 
+UINT16)(header_ptr->u.wap_16.dest_port<<(0xb0+1919-0x827))|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<<(0x1384+213-0x1451))|udh[pos++];return(udh[
+(0x1925+1915-0x20a0)]+(0x943+1069-0xd6f));}static UINT8 
 wms_ts_decode_udh_text_formatting(const UINT8*udh,wms_udh_s_type*header_ptr){
-UINT8 pos=(0x128f+799-0x15ae);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG
-,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x484+488-0x66c);}if(udh
-[pos]<(0x14bc+1642-0x1b23)){at_print(LOG_DEBUG,
+UINT8 pos=(0x711+5456-0x1c61);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG
+,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x208+3968-0x1188);}if(
+udh[pos]<(0x1a5d+2780-0x2536)){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(0x8f2+131-0x975);}if(udh[pos]>=(0x14aa+2690-0x1f28)){
+,udh[pos]);return(0xf82+4755-0x2215);}if(udh[pos]>=(0xca4+3196-0x191c)){
 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]&
-(0x1052+3498-0x1df9));header_ptr->u.text_formating.font_size=(
-wms_udh_font_size_e_type)((udh[pos]&(0x714+4350-0x1806))>>(0x72a+592-0x978));
-header_ptr->u.text_formating.style_bold=(udh[pos]&(0xa43+5947-0x216e))>>
-(0xcf2+4154-0x1d28);header_ptr->u.text_formating.style_italic=(udh[pos]&
-(0x5c9+4780-0x1855))>>(0xa5a+2742-0x150b);header_ptr->u.text_formating.
-style_underlined=(udh[pos]&(0xc88+2978-0x17ea))>>(0x549+8255-0x2582);header_ptr
-->u.text_formating.style_strikethrough=(udh[pos]&(0xbfa+4062-0x1b58))>>
-(0x958+2853-0x1476);pos++;if(header_ptr->u.text_formating.is_color_present){
+(0x2108+981-0x24da));header_ptr->u.text_formating.font_size=(
+wms_udh_font_size_e_type)((udh[pos]&(0x389+5012-0x1711))>>(0x586+6904-0x207c));
+header_ptr->u.text_formating.style_bold=(udh[pos]&(0x7a4+7232-0x23d4))>>
+(0xd24+2585-0x1739);header_ptr->u.text_formating.style_italic=(udh[pos]&
+(0xc4f+1526-0x1225))>>(0x19a+3571-0xf88);header_ptr->u.text_formating.
+style_underlined=(udh[pos]&(0x705+7973-0x25ea))>>(0x71c+2259-0xfe9);header_ptr->
+u.text_formating.style_strikethrough=(udh[pos]&(0x36f+1644-0x95b))>>
+(0x7c1+2808-0x12b2);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]&(0xb90+434-0xd33));header_ptr->u.text_formating.text_color_background=(
-wms_udh_text_color_e_type)((udh[pos]&(0x6a2+1250-0xa94))>>(0xf4+1354-0x63a));pos
-++;}return(udh[(0x781+3608-0x1599)]+(0xd7f+1526-0x1374));}static UINT8 
-wms_ts_decode_udh_pre_def_sound(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
- pos=(0x80d+3169-0x146e);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x11ca+3253-0x1e7f);}if(
-udh[pos]<(0xe1c+1518-0x1408)){at_print(LOG_DEBUG,
-"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x50\x72\x65\x20\x44\x65\x66\x69\x6e\x65\x64\x20\x53\x6f\x75\x6e\x64\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x3d9+7996-0x2315);}pos++;header_ptr->header_id=
-WMS_UDH_PRE_DEF_SOUND;header_ptr->u.pre_def_sound.position=udh[pos++];header_ptr
-->u.pre_def_sound.snd_number=udh[pos++];return(udh[(0x1f0a+671-0x21a9)]+
-(0x1afb+2133-0x234f));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8
-*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0xb76+6484-0x24ca),j;if(udh==NULL||
+udh[pos]&(0x1668+3580-0x2455));header_ptr->u.text_formating.
+text_color_background=(wms_udh_text_color_e_type)((udh[pos]&(0x407+6989-0x1e64))
+>>(0xb17+5844-0x21e7));pos++;}return(udh[(0x5d8+5002-0x1962)]+
+(0x5bc+7250-0x220d));}static UINT8 wms_ts_decode_udh_pre_def_sound(const UINT8*
+udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x1706+4084-0x26fa);if(udh==NULL||
 header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x118+6971-0x1c53);}if(
-udh[pos]==(0x633+5780-0x1cc7)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x670+7932-0x256c);}if(
+udh[pos]<(0xad8+2484-0x148a)){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(0x3c0+7104-0x1f80);}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[(0x181a+219-0x18f5)]+
+(0x5cd+6410-0x1ed6));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8*
+udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x142b+4344-0x2523),j;if(udh==NULL||
+header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x56+3050-0xc40);}if(udh[
+pos]==(0x4da+6941-0x1ff7)){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(0x1ce1+1307-0x21fc);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
-header_ptr->u.user_def_sound.data_length=udh[pos++]-(0x109d+5705-0x26e5);
+);return(0x465+2388-0xdb9);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
+header_ptr->u.user_def_sound.data_length=udh[pos++]-(0xf86+772-0x1289);
 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(0x1281+3792-0x2151);}memset(header_ptr->u.
-user_def_sound.user_def_sound,(0x7f1+3471-0x1481),WMS_UDH_MAX_SND_SIZE);for(j=
-(0x23c6+274-0x24d8);j<header_ptr->u.user_def_sound.data_length;j++)header_ptr->u
-.user_def_sound.user_def_sound[j]=udh[pos++];return pos;}static UINT8 
+,header_ptr->header_id);return(0xc86+3896-0x1bbe);}memset(header_ptr->u.
+user_def_sound.user_def_sound,(0x6aa+3253-0x1260),WMS_UDH_MAX_SND_SIZE);for(j=
+(0x866+656-0xaf6);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=(0x4+2891-0xb4f);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x6c0+1349-0xc05);}if(udh
-[pos]!=(0x1fd5+1323-0x24fe)){at_print(LOG_DEBUG,
+pos=(0x410+888-0x788);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x214+3174-0xe7a);}if(udh
+[pos]!=(0x14a7+1409-0x1a26)){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(0xe83+6088-0x264b);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x489+6891-0x1f74);}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=(0x3f5+844-0x741),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x7cc+879-0xb3b);}if(udh[
-pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_LARGE_BITMAP_SIZE+(0x28f+5838-0x195c))){
-at_print(LOG_DEBUG,
+pos=(0x994+6156-0x21a0),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x745+3239-0x13ec);}if(
+udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_LARGE_BITMAP_SIZE+
+(0x533+7042-0x20b4))){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(0xb7c+4349-0x1c79);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
-pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0x2d3+1373-0x830);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x1713+3694-0x2581);k<
+,udh[pos]);return(0x14a6+3061-0x209b);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
+pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0xa1c+3755-0x18c7);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0xc91+4647-0x1eb8);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=(0xd41+6564-0x26e5),j,k;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0x1ccf+940-0x207b),j,k;if(udh==NULL||
 header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x111+5980-0x186d);}if(
-udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+(0x37a+1573-0x99e)
-)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xa29+2840-0x1541);}if(
+udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+
+(0x2312+266-0x241b))){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(0x1d3a+2419-0x26ad);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
-pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0x2df+2088-0xb07);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x14c7+1579-0x1af2);k<
+,udh[pos]);return(0x1b8f+74-0x1bd9);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
+pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0x76d+3732-0x1601);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x87+8262-0x20cd);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=(0xc2+8915-0x2395),j;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0x1b02+64-0x1b42),j;if(udh==NULL||
 header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x5a6+3963-0x1521);}if(
-udh[pos]!=WMS_UDH_LARGE_PIC_SIZE+(0xa54+2837-0x1568)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x499+80-0x4e9);}if(udh[
+pos]!=WMS_UDH_LARGE_PIC_SIZE+(0x643+3583-0x1441)){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(0x3c4+8381-0x2481);}header_ptr->header_id=
+,udh[pos]);return(0x50b+4095-0x150a);}header_ptr->header_id=
 WMS_UDH_LARGE_PICTURE;pos++;header_ptr->u.large_picture.position=udh[pos++];for(
-j=(0x1b99+265-0x1ca2);j<WMS_UDH_LARGE_PIC_SIZE;j++)header_ptr->u.large_picture.
+j=(0x1be5+1947-0x2380);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=(0x143c+1293-0x1949),j;if(
+const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x593+5973-0x1ce8),j;if(
 udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1911+1405-0x1e8e);}if(
-udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0x575+5439-0x1ab3)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x19f+3845-0x10a4);}if(
+udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0xfbc+216-0x1093)){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(0x1217+4137-0x2240);}header_ptr->header_id=
+,udh[pos]);return(0x10af+1169-0x1540);}header_ptr->header_id=
 WMS_UDH_SMALL_PICTURE;pos++;header_ptr->u.small_picture.position=udh[pos++];for(
-j=(0x8aa+6705-0x22db);j<WMS_UDH_SMALL_PIC_SIZE;j++)header_ptr->u.small_picture.
+j=(0x848+3704-0x16c0);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=(0x354+3740-0x11f0),j,pic_size;if
-(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1649+603-0x18a4);}if(
-udh[pos]>WMS_UDH_VAR_PIC_SIZE+(0xd49+6054-0x24ec)){at_print(LOG_DEBUG,
+UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x1824+1280-0x1d24),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(0x317+836-0x65b);}if(udh[
+pos]>WMS_UDH_VAR_PIC_SIZE+(0x217+7076-0x1db8)){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(0x6d8+6010-0x1e52);}if((udh[pos]-(0x699+5979-0x1df1))!=(udh[
-pos+(0x65c+4701-0x18b7)]*udh[pos+(0x1c77+1746-0x2346)])){at_print(LOG_DEBUG,
+,udh[pos]);return(0x182+2366-0xac0);}if((udh[pos]-(0x352+8735-0x256e))!=(udh[pos
++(0x5da+1584-0xc08)]*udh[pos+(0x1a1f+1301-0x1f31)])){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(0xaa8+5181-0x1ee5);}pic_size=udh[pos++]-(0x893+5816-0x1f48);header_ptr
+);return(0x3db+8691-0x25ce);}pic_size=udh[pos++]-(0x10e8+3176-0x1d4d);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++]*(0x512+8451-0x260d));
-header_ptr->u.var_picture.height=udh[pos++];for(j=(0x230d+984-0x26e5);j<pic_size
+header_ptr->u.var_picture.width=(UINT8)(udh[pos++]*(0x869+6322-0x2113));
+header_ptr->u.var_picture.height=udh[pos++];for(j=(0x53b+2288-0xe2b);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=(0xc7c+5353-0x2165);if(udh==NULL||header_ptr==NULL){
-at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0xcd0+3209-0x1959);}if(udh[pos]<(0x999+4694-0x1bee)){at_print(LOG_DEBUG,
+header_ptr){UINT8 pos=(0x922+215-0x9f9);if(udh==NULL||header_ptr==NULL){at_print
+(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
+(0x1516+1946-0x1cb0);}if(udh[pos]<(0x23a7+51-0x23d9)){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(0x731+7454-0x244f);}pos++;header_ptr->header_id=
+,udh[pos]);return(0xe94+5797-0x2539);}pos++;header_ptr->header_id=
 WMS_UDH_USER_PROMPT;header_ptr->u.user_prompt.number_of_objects=udh[pos++];
-return(udh[(0xe3f+733-0x111c)]+(0x7cf+3374-0x14fc));}static UINT8 
+return(udh[(0xb21+6513-0x2492)]+(0x931+3398-0x1676));}static UINT8 
 wms_ts_decode_udh_eo(const UINT8*udh,UINT8 first_segment,wms_udh_s_type*
-header_ptr){UINT8 pos=(0xaa7+963-0xe6a),udh_length;if(udh==NULL||header_ptr==
+header_ptr){UINT8 pos=(0xb15+5548-0x20c1),udh_length;if(udh==NULL||header_ptr==
 NULL){at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x12c9+3195-0x1f44);}if(udh[pos]==(0x117f+130-0x1201)){at_print(LOG_DEBUG,
+(0xa14+1000-0xdfc);}if(udh[pos]==(0xc3d+465-0xe0e)){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(0xd7c+824-0x10b4);}udh_length=udh[pos++];header_ptr->header_id=
+);return(0x2389+9-0x2392);}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
-(0x41c+5643-0x1a27);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
-length=udh[pos++]<<(0x1836+3384-0x2566);header_ptr->u.eo.length|=udh[pos++];
+(0x168d+1978-0x1e47);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
+length=udh[pos++]<<(0xf+9467-0x2502);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++]<<(0xa5b+1719-0x110a);header_ptr
-->u.eo.position|=udh[pos++];}header_ptr->u.eo.content.length=(udh_length-pos)+
-(0x62b+7171-0x222d);memcpy(header_ptr->u.eo.content.data,udh+pos,header_ptr->u.
+udh[pos++];header_ptr->u.eo.position=udh[pos++]<<(0x498+982-0x866);header_ptr->u
+.eo.position|=udh[pos++];}header_ptr->u.eo.content.length=(udh_length-pos)+
+(0x1427+2727-0x1ecd);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=
-(0x241+8821-0x24b6);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1ac8+1474-0x208a);}if(
-udh[pos]<(0x38a+2776-0xe61)){at_print(LOG_DEBUG,
+(0x1de7+495-0x1fd6);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x7b2+4335-0x18a1);}if(
+udh[pos]<(0x1413+2109-0x1c4f)){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(0x1b6+3195-0xe31);}pos++;header_ptr->header_id=WMS_UDH_RFC822;
-header_ptr->u.rfc822.header_length=udh[pos++];return(udh[(0x18db+1082-0x1d15)]+
-(0x759+4435-0x18ab));}static UINT8 wms_ts_decode_udh_nat_lang_ss(const UINT8*udh
-,wms_udh_s_type*header_ptr){UINT8 pos=(0xa77+3390-0x17b5);if(udh==NULL||
-header_ptr==NULL){return(0x168c+3037-0x2269);}if(udh[pos]!=
-WMS_UDH_OCTETS_NAT_LANG_SS){return(0x11aa+1040-0x15ba);}pos++;header_ptr->
-header_id=WMS_UDH_NAT_LANG_SS;if((WMS_UDH_NAT_LANG_TURKISH>udh[pos])||(
-WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){return(0x200+7017-0x1d69);}header_ptr->u.
-nat_lang_ss.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
-(0x4fd+7211-0x2128)]+(0xa7b+5434-0x1fb4));}static UINT8 
+,udh[pos]);return(0x1454+2243-0x1d17);}pos++;header_ptr->header_id=
+WMS_UDH_RFC822;header_ptr->u.rfc822.header_length=udh[pos++];return(udh[
+(0x961+4483-0x1ae4)]+(0x18fc+1393-0x1e6c));}static UINT8 
+wms_ts_decode_udh_nat_lang_ss(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 
+pos=(0x7+8231-0x202e);if(udh==NULL||header_ptr==NULL){return(0x5ba+3025-0x118b);
+}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_SS){return(0x71b+1881-0xe74);}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(0xe93+1350-0x13d9);}header_ptr
+->u.nat_lang_ss.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
+(0xb72+5913-0x228b)]+(0xc6a+2247-0x1530));}static UINT8 
 wms_ts_decode_udh_nat_lang_ls(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 
-pos=(0x822+1438-0xdc0);if(udh==NULL||header_ptr==NULL){return(0x582+1405-0xaff);
-}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_LS){return(0x45d+187-0x518);}pos++;
+pos=(0x12e9+3566-0x20d7);if(udh==NULL||header_ptr==NULL){return(0x100+515-0x303)
+;}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_LS){return(0x8ba+80-0x90a);}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(0x1293+4231-0x231a);}header_ptr
+||(WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){return(0xe3b+6147-0x263e);}header_ptr
 ->u.nat_lang_ls.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
-(0x21a+5123-0x161d)]+(0x10b7+2499-0x1a79));}static UINT8 wms_ts_decode_udh_other
-(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x878+316-0x9b4),i=
-(0x1ba9+1691-0x2244);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1f4d+1719-0x2604);}if(
-udh[pos+(0x647+1140-0xaba)]>WMS_UDH_OTHER_SIZE){at_print(LOG_DEBUG,
+(0x801+455-0x9c8)]+(0x13bc+3634-0x21ed));}static UINT8 wms_ts_decode_udh_other(
+const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x79+7147-0x1c64),i=
+(0x3b5+5715-0x1a08);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1cfb+2222-0x25a9);}if(
+udh[pos+(0x995+3000-0x154c)]>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(0x1300+3990-0x2296);}header_ptr->header_id=(wms_udh_id_e_type)udh[pos];
+);return(0x288+6066-0x1a3a);}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=(0x14aa+4261-0x254f);i<header_ptr->u.other.
+header_length=udh[pos++];for(i=(0x2084+537-0x229d);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=(0x1ca7+1462-0x225d);UINT8 
-header_length=(0x22b+3790-0x10f9),num_headers=(0x5dc+314-0x716);UINT8 udhl;UINT8
- first_segment=TRUE;if(data==NULL||len==(0xe34+881-0x11a5)||data[pos]==
-(0x735+2582-0x114b)||num_headers_ptr==NULL||udh_ptr==NULL){at_print(LOG_DEBUG,
+num_headers_ptr,wms_udh_s_type*udh_ptr){UINT8 pos=(0x2067+142-0x20f5);UINT8 
+header_length=(0x11d3+5349-0x26b8),num_headers=(0x101d+4669-0x225a);UINT8 udhl;
+UINT8 first_segment=TRUE;if(data==NULL||len==(0x46d+6918-0x1f73)||data[pos]==
+(0x769+1334-0xc9f)||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(0x1624+3502-0x23d2);}udhl=data[pos];pos++;while((pos<udhl)&&(
+);return(0x1886+2744-0x233e);}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,&
@@ -1863,66 +1867,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(0x46d+8166-0x2453);}else if(header_length!=(0xb44+6598-0x250a)){
+,udhl);return(0x1c49+1301-0x215e);}else if(header_length!=(0x167b+1049-0x1a94)){
 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=(0x59+1908-0x7cd);return(0xd59+1329-0x128a);}}
-if(num_headers>=WMS_MAX_UD_HEADERS){at_print(LOG_DEBUG,
+,pos,data[pos]);*num_headers_ptr=(0xa10+7339-0x26bb);return(0xb10+5684-0x2144);}
+}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+(0x1da9+526-0x1fb6);}if(pos!=(udhl+(0xba5+5968-0x22f4))){at_print(
+);pos=udhl+(0x77a+3631-0x15a8);}if(pos!=(udhl+(0xa7d+1878-0x11d2))){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=(0xa0f+6148-0x2213);udhl=(0x150f+3567-0x22fe);}if(num_headers>
-(0x1494+755-0x1787)){*num_headers_ptr=num_headers;}return udhl;}UINT8 
+);num_headers=(0x680+7310-0x230e);udhl=(0x18f8+1214-0x1db6);}if(num_headers>
+(0xa84+2012-0x1260)){*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=(0x24ba+347-0x2615);UINT8 fill_bits=(0x1e0b+1136-0x227b);
-UINT8 user_data_length;UINT8 user_data_header_length=(0x1f9+5546-0x17a3);if(dcs
+user_data){UINT8 i,pos=(0x1410+3367-0x2137);UINT8 fill_bits=(0x1123+551-0x134a);
+UINT8 user_data_length;UINT8 user_data_header_length=(0x1227+2069-0x1a3c);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(0x1090+3695-0x1eff);}(void)memset(user_data,(0x1a73+2561-0x2474),sizeof
-(wms_gw_user_data_s_type));if(len==(0x1ca5+1725-0x2362)){return
-(0xef7+1198-0x13a5);}if(dcs->alphabet==WMS_GW_ALPHABET_7_BIT_DEFAULT){if(len>
-WMS_SMS_UDL_MAX_7_BIT){at_print(LOG_DEBUG,
+);return(0x8fb+6283-0x2186);}(void)memset(user_data,(0x10a1+3823-0x1f90),sizeof(
+wms_gw_user_data_s_type));if(len==(0x417+5122-0x1819)){return(0xbea+5965-0x2337)
+;}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(0x1194+1671-0x181b);}user_data_length=len;if(user_data_header_present){
+);return(0x2168+604-0x23c4);}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(0x807+4150-0x183d);}if(user_data_header_length>(0xd77+4069-0x1d5c)){
-fill_bits=((len*(0x2ed+2427-0xc61))-((user_data_header_length+(0x156+3209-0xdde)
-)*(0xc37+3052-0x181b)))%(0xba1+6704-0x25ca);user_data_length=(UINT8)(((len*
-(0x2b2+5655-0x18c2))-((user_data_header_length+(0x6bd+5155-0x1adf))*
-(0xa7d+1696-0x1115)))/(0x2142+642-0x23bd));pos=user_data_header_length+
-(0x6b1+4063-0x168f);if(fill_bits!=(0x1d07+771-0x200a)){fill_bits=
-(0xa6b+1217-0xf24)-fill_bits;}}i=wms_ts_unpack_gw_7_bit_chars(&data[pos],
+);return(0x8b+3344-0xd9b);}if(user_data_header_length>(0x11e4+4622-0x23f2)){
+fill_bits=((len*(0xfe0+2894-0x1b27))-((user_data_header_length+(0x80+2060-0x88b)
+)*(0x786+6484-0x20d2)))%(0xbf6+2428-0x156b);user_data_length=(UINT8)(((len*
+(0xee5+3383-0x1c15))-((user_data_header_length+(0x632+5206-0x1a87))*
+(0x1b30+1070-0x1f56)))/(0xbdd+183-0xc8d));pos=user_data_header_length+
+(0x1301+3026-0x1ed2);if(fill_bits!=(0xd4+3687-0xf3b)){fill_bits=
+(0x2d4+4960-0x162c)-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(0xb69+4856-0x1e61);}user_data_length=len;if(user_data_header_present){
+);return(0x3aa+1471-0x969);}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(0x35b+3902-0x1299);}pos+=user_data_header_length+(0x17e6+2147-0x2048);
-user_data_length=(len-user_data_header_length)-(0x1073+3884-0x1f9e);}memcpy(
+);return(0xa37+3620-0x185b);}pos+=user_data_header_length+(0x6b+1927-0x7f1);
+user_data_length=(len-user_data_header_length)-(0x662+8204-0x266d);}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=
-(0x1c5+3613-0xfe2),i;const UINT8*data=ptRawTsData->data;if(ptRawTsData==NULL||
+(0x529+3604-0x133d),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]&(0x10bd+981-0x148f))!=
-(0xb3d+2698-0x15c7)){printf(
+);return WMS_NULL_PTR_S;}else if((data[pos]&(0x129d+2459-0x1c35))!=
+(0x4e3+6314-0x1d8d)){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]&
-(0x1918+1726-0x1fd2))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
-(0x11a1+2725-0x1c26))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
-(0x343+6203-0x1b3e))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
-(0x79a+3889-0x164b))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&
-deliver->address);if(i==(0x1217+2576-0x1c27)){printf(
+(0x6c2+6864-0x218e))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
+(0x44f+5779-0x1ac2))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
+(0xe81+599-0x1098))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
+(0x85f+6405-0x20e4))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&
+deliver->address);if(i==(0xdf1+2227-0x16a4)){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.
@@ -1930,74 +1934,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==(0xc21+1425-0x11b2)){printf(
+timestamp);if(i==(0x636+7768-0x248e)){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-(0x239b+752-0x268a)],data+pos,deliver->
+deliver->dcs,data[pos-(0x110b+1114-0x1564)],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=(0x861+1579-0xe8c);if(data==NULL||validity==NULL){at_print(LOG_DEBUG
-,
+UINT8 i,pos=(0x1ba0+2079-0x23bf);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(0x283+7195-0x1e9e);}else{switch(validity->format){case 
-WMS_GW_VALIDITY_NONE:memset(validity,(0x9bd+3284-0x1691),sizeof(
+);return(0x9cd+3879-0x18f4);}else{switch(validity->format){case 
+WMS_GW_VALIDITY_NONE:memset(validity,(0x553+3393-0x1294),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=
-(0x1a6a+1904-0x21da),i;const UINT8*data;if(ptRawTsData==NULL||submit==NULL){
+(0x4da+6667-0x1ee5),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]&(0xe9d+2302-0x1797))?TRUE:FALSE;submit->validity.format=(
-wms_gw_validity_format_e_type)((data[pos]&(0x1aca+3012-0x2676))>>
-(0x700+1095-0xb44));submit->status_report_enabled=(data[pos]&(0x17a+5863-0x1841)
-)?TRUE:FALSE;submit->user_data_header_present=(data[pos]&(0x643+822-0x939))?TRUE
-:FALSE;submit->reply_path_present=(data[pos]&(0x1388+5121-0x2709))?TRUE:FALSE;
-pos++;submit->message_reference=data[pos];pos++;i=wms_ts_decode_address(&data[
-pos],&submit->address);if(i==(0x16d2+232-0x17ba)){return WMS_INVALID_PARM_SIZE_S
-;}pos+=i;submit->pid=(wms_pid_e_type)data[pos];pos++;pos+=wms_ts_decode_dcs(data
-+pos,&submit->dcs);i=wms_ts_decode_gw_validity(data+pos,&submit->validity);if((
-submit->validity.format!=WMS_GW_VALIDITY_NONE)&&(i==(0xbf6+4863-0x1ef5))){return
- WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=wms_ts_decode_gw_user_data(&submit->
-dcs,data[pos-(0x8a0+6817-0x2340)],data+pos,submit->user_data_header_present,&
-submit->user_data);if(i>WMS_SMS_UDL_MAX_8_BIT){printf(
+pos]&(0xb94+2481-0x1541))?TRUE:FALSE;submit->validity.format=(
+wms_gw_validity_format_e_type)((data[pos]&(0x120f+5068-0x25c3))>>
+(0x2077+664-0x230c));submit->status_report_enabled=(data[pos]&
+(0x2b7+5713-0x18e8))?TRUE:FALSE;submit->user_data_header_present=(data[pos]&
+(0x1f37+249-0x1ff0))?TRUE:FALSE;submit->reply_path_present=(data[pos]&
+(0x169+4510-0x1287))?TRUE:FALSE;pos++;submit->message_reference=data[pos];pos++;
+i=wms_ts_decode_address(&data[pos],&submit->address);if(i==(0x342+542-0x560)){
+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==(0xcb+7077-0x1c70))){return WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=
+wms_ts_decode_gw_user_data(&submit->dcs,data[pos-(0x223f+975-0x260d)],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=(0x82f+7613-0x25ec),i;const UINT8*data;if(ptRawTsData==NULL||status_report==
-NULL){printf(
+pos=(0x1899+1889-0x1ffa),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]&
-(0xb90+4032-0x1b4c)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]&
-(0xfd2+3819-0x1e9d)?TRUE:FALSE;status_report->user_data_header_present=(data[pos
-]&(0xe0c+2677-0x1841))?TRUE:FALSE;pos++;status_report->message_reference=data[
-pos];pos++;i=wms_ts_decode_address(&data[pos],&status_report->address);if(i==
-(0x6bc+3675-0x1517)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0x151f+1575-0x1b42)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]
+&(0x66f+3362-0x1371)?TRUE:FALSE;status_report->user_data_header_present=(data[
+pos]&(0x6ab+4738-0x18ed))?TRUE:FALSE;pos++;status_report->message_reference=data
+[pos];pos++;i=wms_ts_decode_address(&data[pos],&status_report->address);if(i==
+(0xa7d+1024-0xe7d)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
 wms_ts_decode_timestamp(data+pos,&status_report->timestamp);if(i==
-(0xa82+694-0xd38)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0x55f+4889-0x1878)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
 wms_ts_decode_timestamp(data+pos,&status_report->discharge_time);if(i==
-(0xc08+1979-0x13c3)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;status_report->
+(0x94f+5214-0x1dad)){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)(0x1198+1961-0x1941);status_report->user_data
-.sm_len=(0xe33+4420-0x1f77);status_report->mask&=(0x1059+2162-0x17cc);if((
-status_report->mask!=(0x5ef+4557-0x16bd))&&(status_report->mask!=
-(0x72a+6345-0x1ff3))){pos++;if(status_report->mask&WMS_TPDU_MASK_PID){
+status_report->pid=(wms_pid_e_type)(0x28c+2568-0xc94);status_report->user_data.
+sm_len=(0x473+8802-0x26d5);status_report->mask&=(0x575+2862-0xfa4);if((
+status_report->mask!=(0x7ba+411-0x856))&&(status_report->mask!=
+(0xf0c+867-0x126f))){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-(0xb92+6849-0x2652)],data+pos,status_report->
+&status_report->dcs,data[pos-(0x19e4+2241-0x22a4)],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=
-(0x480+563-0x6b3);}return st;}wms_status_e_type wms_ts_decode(const 
+(0xcaf+5880-0x23a7);}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 dda3b3c..b4b00e6 100755
--- a/ap/app/zte_comm/sms/src/sms_db.c
+++ b/ap/app/zte_comm/sms/src/sms_db.c
@@ -101,85 +101,85 @@
 #define OUTDATEINTERVAL 7776000

 typedef struct{char*buf_addr;int buf_len;}T_zUfiSms_BufInfo;typedef struct{int 
 valid;char*strSQL;}T_zUfiSms_SQLMap;sqlite3*g_zUfiSms_DbPointer=
-(0xb01+5228-0x1f6d);extern T_zUfiSms_ParaInfo g_zUfiSms_CurSmsPara;extern 
+(0xeb1+2241-0x1772);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={(0x15b5+3479-0x234c)};int 
-tmp_i=(0x808+1392-0xd78);
-#if (0x3ac+8853-0x2641)

-if(atoi(date.year)>(0x42c+904-0x751)||atoi(date.year)<(0xd73+2868-0x18a7)){
+T_zUfiSms_Date date){time_t timet;struct tm tmtime={(0x1b5f+443-0x1d1a)};int 
+tmp_i=(0x14e5+2500-0x1ea9);
+#if (0x522+422-0x6c8)

+if(atoi(date.year)>(0x2b5+270-0x360)||atoi(date.year)<(0x238c+400-0x251c)){
 printf("[SMS] getsecond error, year out of range: %d!!!",atoi(date.year));return
-(0x6d6+5799-0x1d7d);}
+(0x197d+2628-0x23c1);}
 #endif

-tmp_i=atoi(date.year);if(tmp_i<(0xfca+2999-0x1b81)||tmp_i>INT_MAX-
-(0x11b6+161-0x1256)){at_print(LOG_ERR,
+tmp_i=atoi(date.year);if(tmp_i<(0x37c+3735-0x1213)||tmp_i>INT_MAX-
+(0x8c4+6103-0x209a)){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(0xd22+2262-0x15f8);}tmtime.tm_year=tmp_i+(0xa1b+1017-0x644)-
-(0x1477+5728-0x236b);tmp_i=atoi(date.month);if(tmp_i<(0x4da+2949-0x105f)||tmp_i>
-INT_MAX-(0xa74+7092-0x2627)){at_print(LOG_ERR,
+,tmp_i);return(0x310+8950-0x2606);}tmtime.tm_year=tmp_i+(0x26bb+736-0x21cb)-
+(0xeeb+7383-0x2456);tmp_i=atoi(date.month);if(tmp_i<(0x145+26-0x15f)||tmp_i>
+INT_MAX-(0x1eb1+1873-0x2601)){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(0x35b+8741-0x2580);}tmtime.tm_mon=tmp_i-(0xbf1+91-0xc4b);tmp_i=
-atoi(date.day);if(tmp_i<(0x18ac+3445-0x2621)||tmp_i>INT_MAX-(0x1523+3678-0x2380)
-){at_print(LOG_ERR,
+,tmp_i);return(0x348+1836-0xa74);}tmtime.tm_mon=tmp_i-(0x2260+750-0x254d);tmp_i=
+atoi(date.day);if(tmp_i<(0x17af+2149-0x2014)||tmp_i>INT_MAX-(0x37f+205-0x44b)){
+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(0x1780+2811-0x227b);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);
-if(tmp_i<(0x304+3421-0x1061)||tmp_i>INT_MAX-(0x7f6+5132-0x1c01)){at_print(
-LOG_ERR,
+,tmp_i);return(0x2120+680-0x23c8);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);if
+(tmp_i<(0x265+4153-0x129e)||tmp_i>INT_MAX-(0x2436+704-0x26f5)){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(0x3e3+5584-0x19b3);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if(
-tmp_i<(0x581+8118-0x2537)||tmp_i>INT_MAX-(0x900+1663-0xf7e)){at_print(LOG_ERR,
+,tmp_i);return(0x1546+4548-0x270a);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if
+(tmp_i<(0x119c+1018-0x1596)||tmp_i>INT_MAX-(0x69b+7014-0x2200)){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(0x568+744-0x850);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
-tmp_i<(0x81a+6730-0x2264)||tmp_i>INT_MAX-(0x134b+1419-0x18d5)){at_print(LOG_ERR,
+,tmp_i);return(0x598+846-0x8e6);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
+tmp_i<(0x1af7+827-0x1e32)||tmp_i>INT_MAX-(0xe35+2781-0x1911)){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(0x22b+7381-0x1f00);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
+,tmp_i);return(0x2ba+7020-0x1e26);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
 return timet;}T_zUfiSms_DbResult zUfiSms_OpenDb(void){int retry_times=
-(0x19f4+1646-0x2062);int open_rst=SQLITE_ERROR;if(g_zUfiSms_DbPointer!=NULL){
+(0x1084+4219-0x20ff);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++<(0x3dd+5785-0x1a6c));printf(
+SQLITE_CANTOPEN&&retry_times++<(0x966+6994-0x24ae));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=(0x3bb+527-0x5ca);int sqlRst=SQLITE_ERROR;while(try_times++<
-(0x10f5+4996-0x246f)){sqlRst=sqlite3_exec(g_zUfiSms_DbPointer,exec_sql,callback,
+ try_times=(0x149c+3937-0x23fd);int sqlRst=SQLITE_ERROR;while(try_times++<
+(0x91c+5930-0x203c)){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((0x961+856-0xcb8)
-);}if(sqlRst!=SQLITE_OK){printf(
+,try_times,exec_sql,sqlite3_errmsg(g_zUfiSms_DbPointer));sleep(
+(0x5c2+4116-0x15d5));}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)==(0xdd9+2357-0x170e)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZTE_WMS_TMP1_PATH,F_OK)==(0x1175+995-0x1558)){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)!=(0x1600+1122-0x1a62)){slog(SMS_PRINT,SLOG_ERR,
+);if(remove(ZTE_WMS_TMP1_PATH)!=(0x3a9+4726-0x161f)){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[(0x2ac+6599-0x1c5b)]={(0xb53+1774-0x1241)};char cmd[
-(0xf36+4212-0x1f2a)]={(0xc61+3702-0x1ad7)};sc_cfg_get(
+);}}{char rnum_buf[(0xea7+1240-0x1367)]={(0xa41+6939-0x255c)};char cmd[
+(0x1b3c+763-0x1db7)]={(0xe39+4745-0x20c2)};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)==(0x1730+3317-0x2425)){if(remove(ZTE_WMS_SEC_PATH)!=
-(0xaeb+3819-0x19d6)){slog(SMS_PRINT,SLOG_ERR,
+ZTE_WMS_TMP1_PATH,F_OK)==(0x1b0b+2439-0x2492)){if(remove(ZTE_WMS_SEC_PATH)!=
+(0x77d+897-0xafe)){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)!=(0xb72+1054-0xf90)){slog(
+);}if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=(0x47b+7892-0x234f)){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>=(0x31b+3661-0x1167)){if(zresult[
-(0x12d0+4207-0x233f)]==NULL){*(int*)fvarg=(0x5f7+7564-0x2383);}else{*(int*)fvarg
-=atoi(zresult[(0x12b8+4867-0x25bb)]);}return SQLITE_OK;}else{return SQLITE_ERROR
-;}}int zUfiSms_SetCmdStatus(T_zUfiSms_StatusInfo*ptSetStatus){T_zUfiSms_DbResult
- result=ZTE_WMS_DB_OK;char*strSQL=NULL;printf(
+**zresult,char**lname){if(columns>=(0xddd+464-0xfac)){if(zresult[
+(0x1638+847-0x1987)]==NULL){*(int*)fvarg=(0x1893+688-0x1b43);}else{*(int*)fvarg=
+atoi(zresult[(0x15a6+1215-0x1a65)]);}return SQLITE_OK;}else{return SQLITE_ERROR;
+}}int zUfiSms_SetCmdStatus(T_zUfiSms_StatusInfo*ptSetStatus){T_zUfiSms_DbResult 
+result=ZTE_WMS_DB_OK;char*strSQL=NULL;printf(
 "\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x74\x43\x6d\x64\x53\x74\x61\x74\x75\x73\x20\x65\x6e\x74\x65\x72\x2e" "\n"
 );strSQL=sqlite3_mprintf(
 "\x49\x4e\x53\x45\x52\x54\x20\x4f\x52\x20\x52\x45\x50\x4c\x41\x43\x45\x20\x49\x4e\x54\x4f\x20\x25\x73\x28\x43\x6d\x64\x2c\x43\x6d\x64\x5f\x53\x74\x61\x74\x75\x73\x2c\x45\x72\x72\x5f\x43\x6f\x64\x65\x2c\x53\x65\x6e\x64\x5f\x46\x61\x69\x6c\x5f\x43\x6f\x75\x6e\x74\x2c\x44\x65\x6c\x5f\x43\x6f\x75\x6e\x74\x29\x20"
@@ -188,28 +188,28 @@
 ptSetStatus->err_code,ptSetStatus->send_failed_count,ptSetStatus->
 delete_failed_count);result=zUfiSms_ExecSql(strSQL,NULL,NULL);sqlite3_free(
 strSQL);return isSucess(result);}void zUfiSms_SetParameterNv(T_zUfiSms_ParaInfo*
-para){if((0x501+4040-0x14c9)==(int)para->status_report_on){sc_cfg_set(
+para){if((0xfbd+4774-0x2263)==(int)para->status_report_on){sc_cfg_set(
 NV_REPORT_ENABLE,"\x30");}else{sc_cfg_set(NV_REPORT_ENABLE,"\x31");}if(
-(0x379+294-0x49f)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY,
-"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0x5dc+5121-0x19dd)==(int
+(0x9e2+995-0xdc5)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY,
+"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0x19c+4627-0x13af)==(int
 )para->outdate_delete_on){sc_cfg_set(NV_OUTDATE_DELETE,"\x30");}else{sc_cfg_set(
 NV_OUTDATE_DELETE,"\x31");}if(*(para->default_store)!='\0'){sc_cfg_set(
-NV_DEFAULT_STORE,(char*)para->default_store);}if((0x67d+7871-0x253c)==(int)para
-->mem_store){sc_cfg_set(NV_PRA_MEMSTORE,"\x30");}else{sc_cfg_set(NV_PRA_MEMSTORE
-,"\x31");}if((0x6ca+5540-0x1b6f)==(int)para->tp_validity_period){sc_cfg_set(
-NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0x1eeb+412-0x1fda)==(int)
+NV_DEFAULT_STORE,(char*)para->default_store);}if((0x6db+1323-0xc06)==(int)para->
+mem_store){sc_cfg_set(NV_PRA_MEMSTORE,"\x30");}else{sc_cfg_set(NV_PRA_MEMSTORE,
+"\x31");}if((0x1738+1044-0x1a4d)==(int)para->tp_validity_period){sc_cfg_set(
+NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0x1482+3300-0x20b9)==(int)
 para->tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x6f\x6e\x65\x77\x65\x65\x6b");}
-else if((0x1cf1+768-0x1f4a)==(int)para->tp_validity_period){sc_cfg_set(NV_SMS_VP
-,"\x6f\x6e\x65\x5f\x64\x61\x79");}else if((0x19f2+2126-0x21b1)==(int)para->
+else if((0x416+785-0x680)==(int)para->tp_validity_period){sc_cfg_set(NV_SMS_VP,
+"\x6f\x6e\x65\x5f\x64\x61\x79");}else if((0x138b+2607-0x1d2b)==(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=
-(0xa3d+3938-0x199f);if(NULL==para){return-(0x56+2380-0x9a1);}zUfiSms_ExecSql(
+(0x15b+4865-0x145c);if(NULL==para){return-(0x1aa+2177-0xa2a);}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>(0xf81+2107-0x17bc)){strSQL=
+zUfiSms_GetFirstColumnInt,&count);if(count>(0x140c+3365-0x2131)){strSQL=
 sqlite3_mprintf(
 "\x55\x50\x44\x41\x54\x45\x20\x25\x73\x20\x53\x45\x54\x20\x53\x6d\x73\x5f\x52\x65\x70\x6f\x72\x74\x3d\x27\x25\x64\x27\x2c\x53\x6d\x73\x5f\x53\x63\x61\x3d\x27\x25\x71\x27\x2c\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x64\x27\x2c\x54\x70\x5f\x56\x61\x6c\x69\x64\x69\x74\x79\x3d\x27\x25\x64\x27\x2c\x53\x65\x6e\x64\x5f\x52\x65\x74\x72\x79\x3d\x27\x25\x64\x27\x2c\x4f\x75\x74\x64\x61\x74\x65\x5f\x44\x65\x6c\x65\x74\x65\x3d\x27\x25\x64\x27\x2c\x44\x65\x66\x61\x75\x6c\x74\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x71\x27\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x31\x3b"
 ,ZTE_WMS_DB_PARAMETER_TABLE,(int)para->status_report_on,para->sca,(int)para->
@@ -222,13 +222,13 @@
 mem_store,(int)para->tp_validity_period,(int)para->sendfail_retry_on,(int)para->
 outdate_delete_on,para->default_store);}result=zUfiSms_ExecSql(strSQL,NULL,NULL)
 ;sqlite3_free(strSQL);if(result==ZTE_WMS_DB_OK){zUfiSms_SetParameterNv(para);
-return(0x554+4345-0x164d);}return-(0x1cf2+2495-0x26b0);}int 
-zUfiSms_GetTotalCount(const char*pDbTable,int*pTotalCount){T_zUfiSms_DbResult 
-result=ZTE_WMS_DB_OK;char*strSQL=NULL;strSQL=sqlite3_mprintf(
+return(0xfd8+198-0x109e);}return-(0x17d+6657-0x1b7d);}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=-(0x15c3+1460-0x1b76);zUfiSms_ExecSql(
+void){int max_sms_ref=-(0x139a+4947-0x26ec);zUfiSms_ExecSql(
 "\x53\x45\x4c\x45\x43\x54\x20\x4d\x61\x78\x5f\x53\x6d\x73\x5f\x52\x65\x66\x20\x46\x52\x4f\x4d\x20"
  ZTE_WMS_DB_PARAMETER_TABLE
 "\x20\x57\x48\x45\x52\x45\x20\x69\x64\x20\x3d\x20\x31\x3b",
@@ -237,19 +237,19 @@
 content,int len){sqlite3_stmt*stmt=NULL;char*strSQL=sqlite3_mprintf(
 "\x53\x45\x4c\x45\x43\x54\x20\x69\x6e\x64\x2c\x43\x63\x5f\x53\x65\x71\x2c\x43\x63\x5f\x43\x6f\x6e\x74\x65\x6e\x74\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x71\x27\x3b"
 ,id,mem_store);(void)sqlite3_prepare(g_zUfiSms_DbPointer,strSQL,-
-(0x53c+4258-0x15dd),&stmt,(0xd04+3866-0x1c1e));while(SQLITE_ROW==sqlite3_step(
-stmt)){char*column_text=NULL;memset(pac->IndStr,(0x901+7196-0x251d),sizeof(pac->
-IndStr));memset(pac->Seg_Seq,(0x0+4128-0x1020),sizeof(pac->Seg_Seq));if((
-column_text=sqlite3_column_text(stmt,(0x18b5+305-0x19e6)))!=NULL)strncpy(pac->
-IndStr,column_text,sizeof(pac->FormatInd)-(0x1e40+642-0x20c1));if((column_text=
-sqlite3_column_text(stmt,(0x1717+1832-0x1e3e)))!=NULL)strncpy(pac->Seg_Seq,
-column_text,sizeof(pac->FormatSeq)-(0x316+4986-0x168f));if((column_text=
-sqlite3_column_text(stmt,(0x7eb+6755-0x224c)))!=NULL)strncpy(content,column_text
-,len-(0xb78+6262-0x23ed));printf(
+(0x102+2933-0xc76),&stmt,(0xaf7+5571-0x20ba));while(SQLITE_ROW==sqlite3_step(
+stmt)){char*column_text=NULL;memset(pac->IndStr,(0x4ba+6692-0x1ede),sizeof(pac->
+IndStr));memset(pac->Seg_Seq,(0x13a7+4589-0x2594),sizeof(pac->Seg_Seq));if((
+column_text=sqlite3_column_text(stmt,(0x699+8114-0x264b)))!=NULL)strncpy(pac->
+IndStr,column_text,sizeof(pac->FormatInd)-(0x537+3345-0x1247));if((column_text=
+sqlite3_column_text(stmt,(0x8b7+6627-0x2299)))!=NULL)strncpy(pac->Seg_Seq,
+column_text,sizeof(pac->FormatSeq)-(0x6f3+2189-0xf7f));if((column_text=
+sqlite3_column_text(stmt,(0x184c+239-0x1939)))!=NULL)strncpy(content,column_text
+,len-(0x6b4+7554-0x2435));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(0x641+278-0x757);}int zUfiSms_UpdateConcatSmsToDb(T_zUfiSms_DbStoreData*
-db_data,const char*mem_store,char*format_concat,char*content,
+return(0xcd0+1398-0x1246);}int zUfiSms_UpdateConcatSmsToDb(T_zUfiSms_DbStoreData
+*db_data,const char*mem_store,char*format_concat,char*content,
 T_zUfiSms_DbStoreStr*pac,int concat_num,long id){char*sql=NULL;
 T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;sql=sqlite3_mprintf(
 "\x55\x50\x44\x41\x54\x45\x20\x73\x6d\x73\x20\x53\x45\x54\x20\x69\x6e\x64\x3d\x27\x25\x73\x27\x2c\x54\x61\x67\x3d\x27\x25\x64\x27\x2c\x43\x63\x5f\x53\x65\x71\x3d\x27\x25\x73\x27\x2c\x43\x63\x5f\x4e\x75\x6d\x3d\x27\x25\x64\x27\x2c\x20"
@@ -270,30 +270,31 @@
 "\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[(0x61d+1605-0xc62)],db_data->concat_info[(0xe89+862-0x11e6)
-],pac->FormatSeq,concat_num,format_concat,db_data->tp_dcs,db_data->msg_ref,
-content,"\x30",db_data->draft_group_id,db_data->julian_date.year,db_data->
-julian_date.month,db_data->julian_date.day,db_data->julian_date.hour,db_data->
-julian_date.min,db_data->julian_date.sec,db_data->julian_date.timezone,(unsigned
- int)zte_getsecond(db_data->julian_date),db_data->msg_displaymode);printf(
+db_data->concat_info[(0x185+8310-0x21fb)],db_data->concat_info[
+(0x1184+2574-0x1b91)],pac->FormatSeq,concat_num,format_concat,db_data->tp_dcs,
+db_data->msg_ref,content,"\x30",db_data->draft_group_id,db_data->julian_date.
+year,db_data->julian_date.month,db_data->julian_date.day,db_data->julian_date.
+hour,db_data->julian_date.min,db_data->julian_date.sec,db_data->julian_date.
+timezone,(unsigned int)zte_getsecond(db_data->julian_date),db_data->
+msg_displaymode);printf(
 "\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x49\x6e\x73\x65\x72\x74\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x54\x6f\x44\x62\x20\x73\x71\x6c\x3d\x25\x73\x2e" "\n"
 ,sql);result=zUfiSms_ExecSql(sql,NULL,NULL);sqlite3_free(sql);return isSucess(
 result);}int zUfiSms_GetConcatMaxReferInDb(void){int ConcatMaxRefer=
-(0x1649+1326-0x1b77);int result=(0xa8a+3918-0x19d8);result=zUfiSms_ExecSql(
+(0x32d+745-0x616);int result=(0x171d+2111-0x1f5c);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-
-(0x6c0+2273-0xfa0);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap=
-(0xbaa+6612-0x257e);const T_zUfiSms_SQLMap SQL_MAP[]={{(0x86d+4678-0x1ab2),
-ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0x1b31+1714-0x21e2),ZTE_WMS_DEL_SIM_SQL},{
-(0x13e8+864-0x1747),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0x1242+4705-0x24a2),
-ZTE_WMS_CREATE_SMS_REP_SQL},{(0x882+876-0xbed),ZTE_WMS_CREATE_PAR_SQL},{
-(0x974+6240-0x21d3),ZTE_WMS_CREATE_INFO_SQL},{(0xf18+967-0x12de),
-ZTE_WMS_CREATE_CELL_BRO_SQL},{(0xb9b+4160-0x1bda),
-ZTE_WMS_CREATE_SEND_CONTENT_SQL},};for(iMap=(0x1b75+526-0x1d83);iMap<sizeof(
+(0x1754+3707-0x25ce);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap
+=(0xfb8+839-0x12ff);const T_zUfiSms_SQLMap SQL_MAP[]={{(0xf2f+2256-0x17fe),
+ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0xf0b+114-0xf7c),ZTE_WMS_DEL_SIM_SQL},{
+(0x160+721-0x430),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0xd7c+6088-0x2543),
+ZTE_WMS_CREATE_SMS_REP_SQL},{(0xe8+7962-0x2001),ZTE_WMS_CREATE_PAR_SQL},{
+(0x19+1232-0x4e8),ZTE_WMS_CREATE_INFO_SQL},{(0x10ba+4254-0x2157),
+ZTE_WMS_CREATE_CELL_BRO_SQL},{(0x57f+5789-0x1c1b),
+ZTE_WMS_CREATE_SEND_CONTENT_SQL},};for(iMap=(0x222+2184-0xaaa);iMap<sizeof(
 SQL_MAP)/sizeof(T_zUfiSms_SQLMap);iMap++){if(SQL_MAP[iMap].valid==
-(0x1522+4342-0x2617)){if(zUfiSms_ExecSql(SQL_MAP[iMap].strSQL,NULL,NULL)!=
+(0x1dec+1626-0x2445)){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"
@@ -324,9 +325,9 @@
 "\x27\x25\x64\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x20"
 "\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x75\x27\x2c\x20\x27\x25\x64\x27\x29\x3b"
 ,ptDbSaveData->index,pStorePos,ptDbSaveData->tag,ptDbSaveData->number,
-ptDbSaveData->concat_sms,ptDbSaveData->concat_info[(0x961+3669-0x17b6)],
-ptDbSaveData->concat_info[(0x227+4502-0x13bc)],ptDbSaveData->concat_info[
-(0xf30+5004-0x22ba)],ptDbSaveData->tp_dcs,ptDbSaveData->msg_ref,pContent,"\x30",
+ptDbSaveData->concat_sms,ptDbSaveData->concat_info[(0x14e1+42-0x150b)],
+ptDbSaveData->concat_info[(0x1ab+2232-0xa62)],ptDbSaveData->concat_info[
+(0xcf8+3907-0x1c39)],ptDbSaveData->tp_dcs,ptDbSaveData->msg_ref,pContent,"\x30",
 ptDbSaveData->draft_group_id,ptDbSaveData->julian_date.year,ptDbSaveData->
 julian_date.month,ptDbSaveData->julian_date.day,ptDbSaveData->julian_date.hour,
 ptDbSaveData->julian_date.min,ptDbSaveData->julian_date.sec,ptDbSaveData->
@@ -348,25 +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>=(0x1fc+2233-0xab4)&&fvarg!=NULL){if(zresult[
-(0x1690+2494-0x204e)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
-strncpy(para->buf_addr,zresult[(0x57d+5359-0x1a6c)],para->buf_len-
-(0x790+6701-0x21bc));return SQLITE_OK;}}return SQLITE_ERROR;}int 
+zresult,char**lname){if(columns>=(0x33d+8227-0x235f)&&fvarg!=NULL){if(zresult[
+(0x1d12+2318-0x2620)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
+strncpy(para->buf_addr,zresult[(0xcaf+5297-0x2160)],para->buf_len-
+(0x77f+4026-0x1738));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={
-(0x1695+1446-0x1c3b)};char*strSQL=NULL;if(NULL==item||NULL==item_data){return 
+(0x1d4a+769-0x204b)};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)||((0x1390+1396-0x1904)==strcmp(
+sqlite3_free(strSQL);if((ZTE_WMS_DB_OK!=result)||((0x1d7a+1557-0x238f)==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[
-(0x1810+2458-0x212a)]={(0x1d9+9146-0x2593)};snprintf(sql,sizeof(sql),
+(0x992+5310-0x1dd0)]={(0xe29+3733-0x1cbe)};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-
-(0x289+8696-0x2480)]);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}int 
+(0xdfc+5286-0x22a1)]);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}int 
 zUfiSms_DeleteAllSimSmsInDb(void){return isSucess(zUfiSms_ExecSql(
 "\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27"
  ZTE_WMS_DB_SIM_TABLE"\x27\x3b",NULL,NULL));}int zUfiSms_DeleteNvSms(void){if(
@@ -375,10 +376,10 @@
 "\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=(0x113+2780-0xbef);printf(
+);return WMS_CMD_FAILED;}}else{int i=(0x10d4+557-0x1301);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=(0x12dc+1993-0x1aa5);i<g_zUfiSms_DelMsg.
-nv_count;i++){char sql[(0x587+4187-0x1562)]={(0x1e8+2713-0xc81)};snprintf(sql,
+,g_zUfiSms_DelMsg.nv_count);for(i=(0x1141+3886-0x206f);i<g_zUfiSms_DelMsg.
+nv_count;i++){char sql[(0x136+5889-0x17b7)]={(0xbda+447-0xd99)};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!=
@@ -387,39 +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[(0x823+6660-0x21a7)]={(0xdea+3759-0x1c99)};
-T_zUfiSms_BufInfo buf_info={(0x1a30+336-0x1b80)};char str_index[
-(0x21d5+80-0x2223)*WMS_MESSAGE_LIST_MAX]={(0x1052+3821-0x1f3f)};buf_info.
-buf_addr=str_index;buf_info.buf_len=sizeof(str_index);snprintf(sql,sizeof(sql),
+ptModifyTag,int is_cc){char sql[(0x6e5+168-0x70d)]={(0x12b9+4884-0x25cd)};
+T_zUfiSms_BufInfo buf_info={(0x6fc+791-0xa13)};char str_index[(0x9d3+1512-0xfb9)
+*WMS_MESSAGE_LIST_MAX]={(0x5a1+7115-0x216c)};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((0x11cd+2305-0x1acd)==is_cc){int i=(0x120d+1484-0x17d9);
-int j=(0xd81+1303-0x1298);int count=(0x1f14+339-0x2067);char**out_result=NULL;
-count=zUfiSms_SplitString(str_index,&out_result,((char)(0x1842+2344-0x212f)));
-for(i=(0x1600+504-0x17f8);i<count;i++){if((0x1dc5+296-0x1eed)!=strcmp(out_result
-[i],"")){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->
-num_of_indices=j;free(out_result);}else{ptModifyTag->indices[(0x4d6+777-0x7df)]=
-atoi(str_index);ptModifyTag->num_of_indices=(0xacd+7068-0x2668);}ptModifyTag->
+);return ZUFI_FAIL;}if((0x5e9+5112-0x19e0)==is_cc){int i=(0x466+7097-0x201f);int
+ j=(0x10bc+3567-0x1eab);int count=(0x107+7533-0x1e74);char**out_result=NULL;
+count=zUfiSms_SplitString(str_index,&out_result,((char)(0x147d+2216-0x1cea)));
+for(i=(0x883+7539-0x25f6);i<count;i++){if((0x190b+2427-0x2286)!=strcmp(
+out_result[i],"")){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->
+num_of_indices=j;free(out_result);}else{ptModifyTag->indices[(0x21ba+330-0x2304)
+]=atoi(str_index);ptModifyTag->num_of_indices=(0x199+7151-0x1d87);}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[(0x14f9+3722-0x2303)]={(0x202+727-0x4d9)};int is_cc=
-(0x18ff+1045-0x1d14);T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;snprintf(sql,sizeof
-(sql),
+char sql[(0x268+4914-0x151a)]={(0x445+4138-0x146f)};int is_cc=
+(0x293+7365-0x1f58);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-(0x1319+192-0x13d8);}return is_cc;}int 
+,ZTE_WMS_DB_SMS_TABLE);return-(0xcd0+3418-0x1a29);}return is_cc;}int 
 zUfiSms_UpdateSmsTagInDb(unsigned long id,unsigned int tags){char sql[
-(0x815+6001-0x1f06)]={(0x26+4051-0xff9)};snprintf(sql,sizeof(sql),
+(0x2249+384-0x2349)]={(0xcea+3599-0x1af9)};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[
-(0xf6f+5734-0x2555)]={(0x295+2923-0xe00)};if(pTotalCount==NULL){return ZUFI_FAIL
+(0xe89+2312-0x1711)]={(0x65f+1470-0xc1d)};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,
@@ -429,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[(0x8d6+5188-0x1c9a)]={
-(0x121a+176-0x12ca)};snprintf(sql,sizeof(sql),
+result);}int zUfiSms_DeleteDraftSms(long iSmsId){char sql[(0xcd4+6820-0x26f8)]={
+(0x8a+340-0x1de)};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[(0x2aa+6574-0x1bd8)]={
-(0xa0d+6140-0x2209)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0x418+2863-0xf47);}
+int zUfiSms_SetConcatMaxRefer(int ref){char sql[(0x420+6292-0x1c34)]={
+(0x62f+6419-0x1f42)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0xd61+841-0x10aa);}
 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[(0x3c4+4200-0x13ac)]={
-(0xe27+5175-0x225e)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x50+8220-0x206c);}
+;}int zUfiSms_SetMaxReference(int ref){char sql[(0xd54+1123-0x1137)]={
+(0x2300+163-0x23a3)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x87b+4801-0x1b3c);}
 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))
@@ -452,75 +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>=(0xf7a+688-0x1229)&&fvarg!=NULL){if(zresult[(0x15f4+102-0x165a)]!=
+{if(columns>=(0xaf6+5536-0x2095)&&fvarg!=NULL){if(zresult[(0x8b9+5235-0x1d2c)]!=
 NULL){T_zUfiSms_ParaInfo*para=(T_zUfiSms_ParaInfo*)fvarg;strncpy(para->sca,
-zresult[(0xae8+2531-0x14cb)],sizeof(para->sca)-(0x25ab+259-0x26ad));para->
-mem_store=atoi(zresult[(0x14d5+1679-0x1b63)]);para->tp_validity_period=atoi(
-zresult[(0x616+5134-0x1a22)]);para->status_report_on=atoi(zresult[
-(0x604+6776-0x2079)]);para->sendfail_retry_on=atoi(zresult[(0x1124+2096-0x1950)]
-);para->outdate_delete_on=atoi(zresult[(0x1837+290-0x1954)]);(void)strncpy(para
-->default_store,zresult[(0x47b+2029-0xc62)],sizeof(para->default_store)-
-(0xc69+4352-0x1d68));return SQLITE_OK;}}return SQLITE_ERROR;}int 
+zresult[(0x1a9a+80-0x1aea)],sizeof(para->sca)-(0x863+1275-0xd5d));para->
+mem_store=atoi(zresult[(0xa8a+5390-0x1f97)]);para->tp_validity_period=atoi(
+zresult[(0x873+96-0x8d1)]);para->status_report_on=atoi(zresult[
+(0xa4f+4707-0x1caf)]);para->sendfail_retry_on=atoi(zresult[(0x5c6+4934-0x1908)])
+;para->outdate_delete_on=atoi(zresult[(0x1a73+1569-0x208f)]);(void)strncpy(para
+->default_store,zresult[(0xa1c+5676-0x2042)],sizeof(para->default_store)-
+(0x64f+7128-0x2226));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,
-(0x209a+295-0x21c1),sizeof(T_zUfiSms_ParaInfo));return isSucess(zUfiSms_ExecSql(
-strSQL,zUfiSms_GetFirstColumnParaInfo,&g_zUfiSms_CurSmsPara));}int 
+(0x12f9+4445-0x2456),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>=(0x1cbf+1111-0x2115)
-&&para!=NULL)(void)strncpy(para->buf_addr,zresult[(0x56b+2367-0xeaa)],para->
-buf_len-(0x1719+3846-0x261e));return(0xbb6+1769-0x129f);}int 
+T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;if(column>=(0x219+7385-0x1ef1)
+&&para!=NULL)(void)strncpy(para->buf_addr,zresult[(0x2cf+313-0x408)],para->
+buf_len-(0x1b4d+2377-0x2495));return(0xbba+4265-0x1c63);}int 
 zUfiSms_GetSmsContent(char*pSmsBuf,int len){T_zUfiSms_BufInfo buf_info={
-(0x1204+1180-0x16a0)};char*strSQL=
+(0x1d01+1416-0x2289)};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,(0x140+4494-0x12ce),len);return isSucess(
+len;memset(buf_info.buf_addr,(0x7bd+973-0xb8a),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=-(0x31+5770-0x16ba);switch(
+char*sql=NULL;sqlite3_stmt*stmt=NULL;int id=-(0x1552+3618-0x2373);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[(0x155+1048-0x56d)],ptDbSaveData
-->concat_info[(0x7cf+3087-0x13dd)],pMemStore,WMS_TAG_TYPE_MO_SENT_V01,
-WMS_TAG_TYPE_MO_NOT_SENT_V01);break;}case(0xdf9+3551-0x1bd4):{sql=
-sqlite3_mprintf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x1155+4005-0x20fa)],
+ptDbSaveData->concat_info[(0x11eb+2345-0x1b13)],pMemStore,
+WMS_TAG_TYPE_MO_SENT_V01,WMS_TAG_TYPE_MO_NOT_SENT_V01);break;}case
+(0x1a7c+1586-0x20aa):{sql=sqlite3_mprintf(
 "\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x65\x71\x2c\x69\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x41\x4e\x44\x20\x54\x61\x67\x20\x3d\x20\x27\x25\x64\x27\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0x1370+3799-0x2247)],
-ptDbSaveData->concat_info[(0x1486+3356-0x21a1)],pMemStore,(0x4d8+4970-0x183e));
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0xe07+2245-0x16cc)],
+ptDbSaveData->concat_info[(0x200+7307-0x1e8a)],pMemStore,(0x1413+711-0x16d6));
 break;}case WMS_TAG_TYPE_MT_READ_V01:case WMS_TAG_TYPE_MT_NOT_READ_V01:{sql=
 sqlite3_mprintf(
 "\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x65\x71\x2c\x69\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x41\x4e\x44\x20\x28\x54\x61\x67\x20\x3d\x20\x27\x25\x64\x27\x20\x4f\x52\x20\x54\x61\x67\x3d\x20\x27\x25\x64\x27\x29\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0x14a+4388-0x126e)],
-ptDbSaveData->concat_info[(0x5c+9283-0x249e)],pMemStore,WMS_TAG_TYPE_MT_READ_V01
-,WMS_TAG_TYPE_MT_NOT_READ_V01);break;}default:{sql=sqlite3_mprintf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x9b0+4881-0x1cc1)],
+ptDbSaveData->concat_info[(0x618+31-0x636)],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[(0x774+1297-0xc85)],ptDbSaveData
-->concat_info[(0x1759+2593-0x2179)],pMemStore);at_print(LOG_ERR,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x2b7+355-0x41a)],ptDbSaveData
+->concat_info[(0xcd9+2799-0x17c7)],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,-(0x58f+6735-0x1fdd),&stmt,
-(0x194f+1208-0x1e07))!=SQLITE_OK){at_print(LOG_ERR,
+sqlite3_prepare(g_zUfiSms_DbPointer,sql,-(0x13a1+2788-0x1e84),&stmt,
+(0xd53+3471-0x1ae2))!=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-
-(0x3f8+7097-0x1fb0);}while(SQLITE_ROW==sqlite3_step(stmt)){int j=
-(0x945+3582-0x1743);char**out_result=NULL;char*column_text=sqlite3_column_text(
-stmt,(0x127d+987-0x1658));int count=-(0x1c7b+386-0x1dfc);if(column_text!=NULL)
-count=zUfiSms_SplitString(column_text,&out_result,((char)(0x1314+754-0x15cb)));
-for(j=(0x7c9+1435-0xd64);j<count;j++){if((0x10b8+1842-0x17ea)==strcmp(out_result
-[j],"")){if(j+(0x1b50+2371-0x2492)==ptDbSaveData->concat_info[(0xecc+714-0x1194)
-]){id=sqlite3_column_int(stmt,(0xb15+6877-0x25f1));break;}}}if(out_result!=NULL)
-{free(out_result);out_result=NULL;}if(-(0x840+4713-0x1aa8)!=id){break;}}(void)
-sqlite3_finalize(stmt);sqlite3_free(sql);return id;}int 
+(0x1607+1862-0x1d4c);}while(SQLITE_ROW==sqlite3_step(stmt)){int j=
+(0xa3b+1491-0x100e);char**out_result=NULL;char*column_text=sqlite3_column_text(
+stmt,(0x436+4562-0x1608));int count=-(0x306+4454-0x146b);if(column_text!=NULL)
+count=zUfiSms_SplitString(column_text,&out_result,((char)(0x928+2108-0x1129)));
+for(j=(0xdfb+2675-0x186e);j<count;j++){if((0xf1b+721-0x11ec)==strcmp(out_result[
+j],"")){if(j+(0x109f+4285-0x215b)==ptDbSaveData->concat_info[
+(0x1920+2864-0x244e)]){id=sqlite3_column_int(stmt,(0x1d98+2296-0x268f));break;}}
+}if(out_result!=NULL){free(out_result);out_result=NULL;}if(-(0x81d+458-0x9e6)!=
+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>=(0xffd+1825-0x171d)){if(zresult[
-(0x146f+2967-0x2006)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
-result->id[result->all_or_count]=atoi(zresult[(0x71b+2116-0xf5f)]);result->
+lname){if(fvarg!=NULL&&columns>=(0x8a5+218-0x97e)){if(zresult[
+(0x54f+6622-0x1f2d)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
+result->id[result->all_or_count]=atoi(zresult[(0x1230+4965-0x2595)]);result->
 all_or_count++;return SQLITE_OK;}}return SQLITE_ERROR;}VOID 
 zUfiSms_CheckDbOutdateSms(const char*pDbTable,T_zUfiSms_DelReq*pSmsDel){char 
-acSql[(0x4ef+3300-0x1153)]={(0x18b+1257-0x674)};struct timeval tp;if(
-(0x2e7+2668-0xd53)!=gettimeofday(&tp,NULL)){printf(
+acSql[(0x555+5846-0x1bab)]={(0x1422+3897-0x235b)};struct timeval tp;if(
+(0x144+7158-0x1d3a)!=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>=(0x87+6546-0x1a17)){if(zresult[
-(0x76f+3846-0x1675)]!=NULL&&zresult[(0x19c+8508-0x22d7)]!=NULL){SMS_MSG_INFO*msg
-=(SMS_MSG_INFO*)fvarg;memset(msg->id,(0xd80+1324-0x12ac),sizeof(msg->id));memset
-(msg->total_seq,(0x588+2998-0x113e),sizeof(msg->total_seq));strncpy(msg->id,
-zresult[(0x474+398-0x602)],sizeof(msg->id)-(0x71d+7616-0x24dc));strncpy(msg->
-total_seq,zresult[(0x859+3633-0x1689)],sizeof(msg->total_seq)-
-(0x881+7810-0x2702));printf(
+**lname){if(fvarg!=NULL&&column>=(0xef2+4631-0x2107)){if(zresult[
+(0x11e8+4187-0x2243)]!=NULL&&zresult[(0x180f+143-0x189d)]!=NULL){SMS_MSG_INFO*
+msg=(SMS_MSG_INFO*)fvarg;memset(msg->id,(0x1beb+2115-0x242e),sizeof(msg->id));
+memset(msg->total_seq,(0x11d2+4763-0x246d),sizeof(msg->total_seq));strncpy(msg->
+id,zresult[(0x48c+4658-0x16be)],sizeof(msg->id)-(0x15cb+2018-0x1dac));strncpy(
+msg->total_seq,zresult[(0xc84+4466-0x1df5)],sizeof(msg->total_seq)-
+(0xf24+3865-0x1e3c));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[(0x16b0+4139-0x26db)],
-ptDbSaveData->concat_info[(0xe0b+4640-0x202a)]);printf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x911+3339-0x161c)],
+ptDbSaveData->concat_info[(0x1cc3+1693-0x235f)]);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 99b21b8..ca36ccf 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 (0x166f+2220-0x1f18)

-#define SHORT_INT_LEN (0x13dc+718-0x16a4)

+#define SMS_RETRY_COUNT (0x1724+3554-0x2503)

+#define SHORT_INT_LEN (0x1e1+7983-0x210a)

 SMS_LOCATION g_zUfiSms_CurLocation=SMS_LOCATION_SIM;int 
-g_zUfiSms_ConcatSmsReference=(0x6e4+5106-0x1ad6);T_zUfiSms_ParaInfo 
+g_zUfiSms_ConcatSmsReference=(0x692+4359-0x1799);T_zUfiSms_ParaInfo 
 g_zUfiSms_CurSmsPara={"",WMS_STORAGE_TYPE_UIM_V01,
-ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0x184b+2669-0x22b8),
-(0x73d+3850-0x1647),(0x170c+1844-0x1e40),"\x6e\x76"};int g_zUfiSms_Language=
-NOT_DEFINE_LANGUAGE;int g_zUfiSms_Dcs=(0x12ba+2505-0x1c83);unsigned long 
-g_zUfiSms_StoreCapablity[ZTE_WMS_MEMORY_MAX]={(0x4df+1011-0x86e),
+ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0x26b+8859-0x2506),
+(0x153b+2179-0x1dbe),(0x13f+6602-0x1b09),"\x6e\x76"};int g_zUfiSms_Language=
+NOT_DEFINE_LANGUAGE;int g_zUfiSms_Dcs=(0x157f+1090-0x19c1);unsigned long 
+g_zUfiSms_StoreCapablity[ZTE_WMS_MEMORY_MAX]={(0x93a+6807-0x236d),
 ZTE_WMS_DB_MSG_COUNT_MAX};T_zSms_SendSmsReq g_zUfiSms_FinalCmgsBuf;SMS_PARAM 
-g_zUfiSms_SendingSms;UINT16 g_zUfiSms_IsLanguageShift=(0x8c1+2296-0x11b9);extern
+g_zUfiSms_SendingSms;UINT16 g_zUfiSms_IsLanguageShift=(0x9a2+6667-0x23ad);extern
  int g_zUfiSms_MsgRefer;extern T_zUfiSms_DelSms g_zUfiSms_DelMsg;extern 
 T_zUfiSms_DelIndexInfo g_deleteIndex;extern T_zUfiSms_ModifyIndexInfo 
 g_modifyIndex;extern T_zUfiSms_ModifySms g_zUfiSms_modifyMsg;extern UINT8 
@@ -31,17 +31,17 @@
 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[(0xf20+5386-0x23f8)];int i=
-(0x319+4566-0x14ef);g_zUfiSms_DelMsg.nv_count=(0x1071+2199-0x1908);
-g_zUfiSms_DelMsg.nv_index=(0xc5+1668-0x749);g_zUfiSms_DelMsg.sim_count=
-(0x1dca+1092-0x220e);g_zUfiSms_DelMsg.sim_index=(0x3b2+1101-0x7ff);for(i=
-(0x197c+3382-0x26b2);i<ptDelMsg->all_or_count;i++){memset(acStorePos,
-(0x6e2+6287-0x1f71),sizeof(acStorePos));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
+T_zUfiSms_DelReq*ptDelMsg){char acStorePos[(0x19b9+895-0x1d06)];int i=
+(0xaaf+5336-0x1f87);g_zUfiSms_DelMsg.nv_count=(0x191b+2863-0x244a);
+g_zUfiSms_DelMsg.nv_index=(0x2dd+9023-0x261c);g_zUfiSms_DelMsg.sim_count=
+(0x1e2a+2009-0x2603);g_zUfiSms_DelMsg.sim_index=(0xa6b+4922-0x1da5);for(i=
+(0x3a6+1237-0x87b);i<ptDelMsg->all_or_count;i++){memset(acStorePos,
+(0x20ad+710-0x2373),sizeof(acStorePos));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
 "Mem_Store",acStorePos,sizeof(acStorePos),ptDelMsg->id[i])){return ZUFI_FAIL;}if
-((0xe3a+5668-0x245e)==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){g_zUfiSms_DelMsg.
+((0x3a+4474-0x11b4)==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((0xa55+39-0xa7c)==strcmp(acStorePos,
-ZTE_WMS_DB_SIM_TABLE)){g_zUfiSms_DelMsg.sim_id[g_zUfiSms_DelMsg.sim_count]=
+g_zUfiSms_DelMsg.nv_index_count++;}else if((0x708+1891-0xe6b)==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",
@@ -68,65 +68,65 @@
 SMS_STATE_RECVING:case SMS_STATE_RECVED:case SMS_STATE_DELSAVING:case 
 SMS_STATE_DELSAVED:{break;}default:{return;}}sc_cfg_set(NV_SMS_STATE,
 ptStrSmsState[iNewState]);}int zUfiSms_CheckStoreDir(void){if(-
-(0x72a+3498-0x14d3)==access(ZTE_WMS_DB_DIR,F_OK)){printf(
+(0x1f11+1232-0x23e0)==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(-(0x24cf+450-0x2690)==mkdir(ZTE_WMS_DB_DIR,
-(0xcac+7051-0x2638))){printf(
+,ZTE_WMS_DB_DIR);if(-(0xc27+1129-0x108f)==mkdir(ZTE_WMS_DB_DIR,
+(0x5e3+5166-0x1812))){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(-
-(0x19f0+2517-0x23c4)==access(ZTE_WMS_DB_PATH,F_OK)){printf(
+(0x16ec+2738-0x219d)==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=(0xec0+321-0x1001);unsigned char mem_store_flag=
-(0x131f+1621-0x1974);unsigned int tp_validity_period=(0xef+4513-0x1290);char 
-Temp_sms_vp[(0xa3c+3100-0x1650)]={(0xffc+5028-0x23a0)};CHAR reportEnable[
-(0x30b+1990-0xa9f)]={(0x2630+217-0x2709)};CHAR smsLocation[(0x18c8+473-0x1a6f)]=
-{(0xc70+2729-0x1719)};CHAR sendfailRetry[(0x8e6+6300-0x2150)]={(0xdba+224-0xe9a)
-};CHAR outdateDelete[(0x1bca+2865-0x26c9)]={(0x1ffd+1190-0x24a3)};CHAR 
-defaultStore[(0x7d2+7840-0x2640)]={(0xbca+277-0xcdf)};sc_cfg_get(
+unsigned char sts_flag=(0xb74+771-0xe77);unsigned char mem_store_flag=
+(0xfa6+3038-0x1b84);unsigned int tp_validity_period=(0xd53+2543-0x1742);char 
+Temp_sms_vp[(0x1242+3892-0x216e)]={(0x1c6c+563-0x1e9f)};CHAR reportEnable[
+(0xa9b+2816-0x1569)]={(0x1633+2679-0x20aa)};CHAR smsLocation[(0x72+4280-0x10f8)]
+={(0x13b4+1090-0x17f6)};CHAR sendfailRetry[(0xf5a+873-0x1291)]={
+(0x37d+8203-0x2388)};CHAR outdateDelete[(0x1b6d+890-0x1eb5)]={(0x5d8+583-0x81f)}
+;CHAR defaultStore[(0xf4f+2795-0x1a08)]={(0x1658+2353-0x1f89)};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((0xcd+1000-0x4b5)==strcmp
-(reportEnable,"\x31")){sts_flag=(0x31d+7120-0x1eec);}g_zUfiSms_CurSmsPara.
-status_report_on=sts_flag;if((0x763+6214-0x1fa9)==strcmp(smsLocation,"\x4d\x45")
-){mem_store_flag=(0xc3c+2278-0x1522);}else{mem_store_flag=(0x20c4+1412-0x2647);}
-g_zUfiSms_CurSmsPara.mem_store=(unsigned int)((0x141b+1313-0x193c)==
+NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if((0x8e3+5065-0x1cac)==
+strcmp(reportEnable,"\x31")){sts_flag=(0x53b+6460-0x1e76);}g_zUfiSms_CurSmsPara.
+status_report_on=sts_flag;if((0x5df+3266-0x12a1)==strcmp(smsLocation,"\x4d\x45")
+){mem_store_flag=(0x64c+2947-0x11cf);}else{mem_store_flag=(0x926+7021-0x2492);}
+g_zUfiSms_CurSmsPara.mem_store=(unsigned int)((0x15b0+1099-0x19fb)==
 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=
-(0x4f9+4612-0x15fe);if((0x1b1c+265-0x1c25)==strncmp(Temp_sms_vp,
-"\x6c\x6f\x6e\x67\x65\x73\x74",(0x3bf+7690-0x21c2))){tp_validity_period=
-(0xb17+6237-0x2275);}if((0x398+5390-0x18a6)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x5f\x64\x61\x79",(0x4f6+2927-0x105e))){tp_validity_period=
-(0xf42+3374-0x1bc9);}if((0xa43+6259-0x22b6)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x77\x65\x65\x6b",(0x10d0+1701-0x176e))){tp_validity_period=
-(0x12ad+2601-0x1c29);}if((0x853+6993-0x23a4)==strncmp(Temp_sms_vp,
-"\x74\x77\x65\x6c\x76\x65\x68",(0xaf7+3102-0x170e))){tp_validity_period=
-(0x692+6890-0x20ed);}g_zUfiSms_CurSmsPara.tp_validity_period=tp_validity_period;
-if((0x7e4+409-0x97d)==strcmp(sendfailRetry,"\x31")){g_zUfiSms_CurSmsPara.
-sendfail_retry_on=(0xdd9+801-0x10f9);}else{g_zUfiSms_CurSmsPara.
-sendfail_retry_on=(0x1701+2862-0x222f);}if((0xd78+4519-0x1f1f)==strcmp(
-outdateDelete,"\x31")){g_zUfiSms_CurSmsPara.outdate_delete_on=
-(0x990+6467-0x22d2);}else{g_zUfiSms_CurSmsPara.outdate_delete_on=
-(0x8dd+1727-0xf9c);}if((0xb23+4188-0x1b7f)==strcmp(defaultStore,"\x73\x69\x6d"))
-{strncpy(g_zUfiSms_CurSmsPara.default_store,"\x73\x69\x6d",sizeof(
-g_zUfiSms_CurSmsPara.default_store)-(0x1c2b+2387-0x257d));}else{strncpy(
-g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(g_zUfiSms_CurSmsPara.
-default_store)-(0xd03+4403-0x1e35));}}void zUfiSms_GetDefaultPara(void){memset(&
-g_zUfiSms_CurSmsPara,(0x130a+4509-0x24a7),sizeof(T_zUfiSms_ParaInfo));
-g_zUfiSms_CurSmsPara.status_report_on=(0x1b38+1924-0x22bc);g_zUfiSms_CurSmsPara.
+(0x1f08+424-0x1fb1);if((0xb33+649-0xdbc)==strncmp(Temp_sms_vp,
+"\x6c\x6f\x6e\x67\x65\x73\x74",(0x12e7+688-0x1590))){tp_validity_period=
+(0x2592+411-0x262e);}if((0x19ef+741-0x1cd4)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x5f\x64\x61\x79",(0x18dd+2264-0x21ae))){tp_validity_period=
+(0x605+6972-0x209a);}if((0x12a1+64-0x12e1)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x77\x65\x65\x6b",(0x1724+2729-0x21c6))){tp_validity_period=
+(0x777+6585-0x2083);}if((0x579+2580-0xf8d)==strncmp(Temp_sms_vp,
+"\x74\x77\x65\x6c\x76\x65\x68",(0x1d09+1911-0x2479))){tp_validity_period=
+(0x181+8082-0x2084);}g_zUfiSms_CurSmsPara.tp_validity_period=tp_validity_period;
+if((0x66c+7869-0x2529)==strcmp(sendfailRetry,"\x31")){g_zUfiSms_CurSmsPara.
+sendfail_retry_on=(0x3c6+335-0x514);}else{g_zUfiSms_CurSmsPara.sendfail_retry_on
+=(0x871+1099-0xcbc);}if((0x1060+109-0x10cd)==strcmp(outdateDelete,"\x31")){
+g_zUfiSms_CurSmsPara.outdate_delete_on=(0x47c+2722-0xf1d);}else{
+g_zUfiSms_CurSmsPara.outdate_delete_on=(0x737+6363-0x2012);}if(
+(0x2bb+4231-0x1342)==strcmp(defaultStore,"\x73\x69\x6d")){strncpy(
+g_zUfiSms_CurSmsPara.default_store,"\x73\x69\x6d",sizeof(g_zUfiSms_CurSmsPara.
+default_store)-(0x38d+3933-0x12e9));}else{strncpy(g_zUfiSms_CurSmsPara.
+default_store,"\x6e\x76",sizeof(g_zUfiSms_CurSmsPara.default_store)-
+(0x5e8+6678-0x1ffd));}}void zUfiSms_GetDefaultPara(void){memset(&
+g_zUfiSms_CurSmsPara,(0x15e3+357-0x1748),sizeof(T_zUfiSms_ParaInfo));
+g_zUfiSms_CurSmsPara.status_report_on=(0x2a7+8614-0x244d);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
-=(0x1042+719-0x1311);g_zUfiSms_CurSmsPara.outdate_delete_on=(0xdc7+2645-0x181c);
+=(0x7ea+2018-0xfcc);g_zUfiSms_CurSmsPara.outdate_delete_on=(0xd9f+364-0xf0b);
 strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
-g_zUfiSms_CurSmsPara.default_store)-(0xd83+3147-0x19cd));}
-#if (0x17b4+2619-0x21ef)

+g_zUfiSms_CurSmsPara.default_store)-(0x1c62+1280-0x2161));}
+#if (0x1903+2217-0x21ac)

 T_zUfiSms_CmdStatus zUfiSms_SetParameters(T_zUfiSms_CmdMsgBuff*ptSmsBuffer){
 T_zUfiSms_ParaInfo*ptSmsParameter=NULL;T_zUfiSms_ParaInfo tNewSmsParameter={
-(0x86f+5298-0x1d21)};if(NULL==ptSmsBuffer){return WMS_CMD_FAILED;}ptSmsParameter
+(0x696+5609-0x1c7f)};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

@@ -135,28 +135,28 @@
 "\x73\x65\x74\x20\x63\x66\x67\x20\x72\x6f\x75\x74\x65\x73\x20\x66\x61\x69\x6c\x65\x64\x2e"
 );return WMS_CMD_FAILED;}}
 #endif

-if(strlen(ptSmsParameter->sca)!=(0x7d9+469-0x9ae)){if(ZUFI_SMS_FAILURE==
+if(strlen(ptSmsParameter->sca)!=(0x123f+2364-0x1b7b)){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=(0xda9+5410-0x22cb);if(ZUFI_SUCC!=
+int zUfiSms_LoadSmsPara(){int count=(0x509+8303-0x2578);if(ZUFI_SUCC!=
 zUfiSms_IsDbEmpty(ZTE_WMS_DB_PARAMETER_TABLE,&count)){return ZUFI_FAIL;}if(count
-==(0xc0f+2526-0x15ed)){zUfiSms_GetDefaultCfgPara();if((0xd93+127-0xe12)!=
+==(0x206+767-0x505)){zUfiSms_GetDefaultCfgPara();if((0x2e7+5231-0x1756)!=
 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((0x155c+581-0x17a1)!=zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){
+();if((0x1ec+3612-0x1008)!=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=(0x679+6196-0x1ead);if((ZTE_WMS_MEMORY_SIM==mem_store)||(
+int total_count=(0x8f1+6933-0x2406);if((ZTE_WMS_MEMORY_SIM==mem_store)||(
 ZTE_WMS_MEMORY_MAX==mem_store)){if(ZUFI_FAIL==zUfiSms_GetTotalCount(
 ZTE_WMS_DB_SIM_TABLE,&total_count)){printf(
 "\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x3a\x67\x65\x74\x20\x74\x61\x62\x6c\x65\x20\x74\x6f\x74\x61\x6c\x20\x63\x6f\x75\x6e\x74\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
@@ -173,54 +173,54 @@
 ,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((0x1527+2833-0x2038)==strcmp(
+int zUfiSms_SetStorePara(char*mem_store){if((0x495+3868-0x13b1)==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(
-(0x16+7781-0x1e7b)==strcmp(mem_store,"\x4d\x45")){g_zUfiSms_CurSmsPara.mem_store
-=(unsigned int)WMS_STORAGE_TYPE_NV_V01;(void)sc_cfg_set(NV_SMS_LOCATION_SET,
-"\x31");}else if((0x121a+2876-0x1d56)==strcmp(mem_store,"\x53\x52")){
-g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0x11c+6304-0x19ba);(void)
-sc_cfg_set(NV_SMS_LOCATION_SET,"\x32");}else{g_zUfiSms_CurSmsPara.mem_store=(
-unsigned int)WMS_STORAGE_TYPE_NONE_V01;(void)sc_cfg_set(NV_SMS_LOCATION_SET,
+(0x1810+1680-0x1ea0)==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((0x434+2254-0xd02)==strcmp(mem_store,
+"\x53\x52")){g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0x180b+1106-0x1c5b);(
+void)sc_cfg_set(NV_SMS_LOCATION_SET,"\x32");}else{g_zUfiSms_CurSmsPara.mem_store
+=(unsigned int)WMS_STORAGE_TYPE_NONE_V01;(void)sc_cfg_set(NV_SMS_LOCATION_SET,
 "\x2d\x31");}if(ZUFI_FAIL==zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){
 at_print(LOG_ERR,
 "\x63\x61\x6e\x20\x6e\x6f\x74\x20\x73\x65\x74\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x2e" "\n"
 );return ZUFI_FAIL;}return ZUFI_SUCC;}int zUfiSms_SetScaPara(char*sca){strncpy(
 g_zUfiSms_CurSmsPara.sca,sca,sizeof(g_zUfiSms_CurSmsPara.sca)-
-(0xcd0+6392-0x25c7));if(ZUFI_FAIL==zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara
+(0xa53+3152-0x16a2));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==(0xf60+3485-0x1cfc)){g_zUfiSms_Dcs=DCS_ASC;
-g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x3a8+1417-0x92f)){
-g_zUfiSms_Dcs=DCS_USC;g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==
-(0x2263+762-0x255a)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;}
-else if(cDcs==(0x17e6+1787-0x1edc)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
+char cDcs){if(cDcs==(0x3+2938-0xb7c)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
+NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x8cf+7468-0x25f9)){g_zUfiSms_Dcs=DCS_USC;
+g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x2d8+8657-0x24a6)){
+g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;}else if(cDcs==
+(0x1388+197-0x1448)){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=(0xd4d+2664-0x17b5);i<ptGroupSms
-->total_receiver;i++){strncpy(ptGroupSms->receivers[i],ptSendMsg->dest_num[i],
+total_receiver=ptSendMsg->receiver_count;for(i=(0xbfd+928-0xf9d);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=(0x31d+7712-0x213d);
+,i,ptGroupSms->receivers[i]);}ptGroupSms->current_receiver=(0x43+1780-0x737);
 return ZUFI_SUCC;}int zUfiSms_FillConcatSms(T_zUfiSms_SendReq*pSendSrcMsg,
-T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0x1faf+669-0x224c);int 
-iUnitlen=(0xe51+5109-0x2246);int iSegNo=(0x146+2102-0x97c);unsigned char*
+T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0xf12+1020-0x130e);int 
+iUnitlen=(0x293+9207-0x268a);int iSegNo=(0x1b9f+969-0x1f68);unsigned char*
 pSmsConverted=NULL;unsigned char acConvertContent[
 ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*
-(0x1a22+2363-0x2359)+(0x5c+4314-0x1132)]={(0x6ff+5487-0x1c6e)};unsigned char 
+(0x1612+1696-0x1cae)+(0x65+8665-0x223a)]={(0xa2+4202-0x110c)};unsigned char 
 acTmpContent[ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*
-(0x111a+3383-0x1e4d)+(0x6e0+2648-0x1134)]={(0x1584+1359-0x1ad3)};int iTimeZone=
-(0x1506+2952-0x208e);int tmp_i=(0x165d+3707-0x24d8);if(NULL==pSendSrcMsg||NULL==
-pDestConcatMsg){return-(0x298+9074-0x2609);}iTotalLen=pSendSrcMsg->msg_len;if(
+(0xcf7+2077-0x1510)+(0x3a2+6293-0x1c33)]={(0x171f+857-0x1a78)};int iTimeZone=
+(0x1b39+724-0x1e0d);int tmp_i=(0x778+4629-0x198d);if(NULL==pSendSrcMsg||NULL==
+pDestConcatMsg){return-(0x117f+4781-0x242b);}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-(0xbfc+3474-0x198d);}printf(
+);return-(0x9eb+1499-0xfc5);}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,(0x101+3136-0xd41),sizeof(acTmpContent));if(
+acTmpContent));memset(acTmpContent,(0x2a8+835-0x5eb),sizeof(acTmpContent));if(
 DCS_USC==g_zUfiSms_Dcs){pSmsConverted=acConvertContent;}else{if(
 NOT_DEFINE_LANGUAGE==g_zUfiSms_Language){iTotalLen=
 zUfiSms_ConvertAsciiToGsmDefault(acConvertContent,acTmpContent,pSendSrcMsg->
@@ -230,55 +230,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)-(0x13bf+2082-0x1be0))){
-iTotalLen=sizeof(acConvertContent)-(0x1502+1029-0x1906);}pDestConcatMsg->sms_len
-=iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
-DCS_PORTUGUESE&&iTotalLen>(0x14e2+3648-0x2287))||((g_zUfiSms_Dcs==DCS_USC)&&
+=acTmpContent;}if(iTotalLen>(sizeof(acConvertContent)-(0x2b6+8739-0x24d8))){
+iTotalLen=sizeof(acConvertContent)-(0xf2a+647-0x11b0);}pDestConcatMsg->sms_len=
+iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
+DCS_PORTUGUESE&&iTotalLen>(0xbe8+5765-0x21d2))||((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*
-(0xffa+4888-0x2310);}else{if(g_zUfiSms_Language==NOT_DEFINE_LANGUAGE||
+(0x1ff+5872-0x18ed);}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>
-(0xf50+3189-0x1bc5)&&iSegNo<ZTE_WMS_CONCAT_SMS_COUNT_MAX){memcpy(pDestConcatMsg
+(0x1ae6+2389-0x243b)&&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=(0x522+909-0x8ae);memcpy(pDestConcatMsg->msg_contents[
-(0x94a+7372-0x2616)],pSmsConverted,iTotalLen);printf(
+pDestConcatMsg->total_msg=(0x446+7745-0x2286);memcpy(pDestConcatMsg->
+msg_contents[(0x1877+1845-0x1fac)],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[(0x1a06+1375-0x1f65)]);}
+,iUnitlen,pDestConcatMsg->msg_contents[(0x1238+1816-0x1950)]);}
 g_zUfiSms_ConcatTotalNum=pDestConcatMsg->total_msg;pDestConcatMsg->
-current_sending=(0x4b5+4324-0x1599);memcpy(&(pDestConcatMsg->date),&(pSendSrcMsg
-->date),sizeof(T_zUfiSms_Date));tmp_i=atoi(pDestConcatMsg->date.timezone);if(
-tmp_i<INT_MIN+(0x714+594-0x965)||tmp_i>INT_MAX-(0x1baa+442-0x1d63)){printf(
+current_sending=(0x18a5+3672-0x26fd);memcpy(&(pDestConcatMsg->date),&(
+pSendSrcMsg->date),sizeof(T_zUfiSms_Date));tmp_i=atoi(pDestConcatMsg->date.
+timezone);if(tmp_i<INT_MIN+(0x6d8+5810-0x1d89)||tmp_i>INT_MAX-
+(0x1935+426-0x1ade)){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*(0xa93+1043-0xea2);memset(
-pDestConcatMsg->date.timezone,(0x70+2885-0xbb5),sizeof(pDestConcatMsg->date.
-timezone));if(iTimeZone>(0xfe9+4523-0x2194)){snprintf(pDestConcatMsg->date.
+,tmp_i);return ZUFI_FAIL;}iTimeZone=tmp_i*(0xf73+1127-0x13d6);memset(
+pDestConcatMsg->date.timezone,(0x821+1718-0xed7),sizeof(pDestConcatMsg->date.
+timezone));if(iTimeZone>(0x95a+4216-0x19d2)){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=
-(0x2d5+6577-0x1c86);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
-user_data_header_present=TRUE;if((0x15bf+105-0x1628)==ptConcatSms->
+(0xe98+1927-0x161f);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
+user_data_header_present=TRUE;if((0x2fa+4772-0x159e)==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+(0x1c25+2604-0x2650);ptSubmit->user_data.
+seq_num=ptConcatSms->current_sending+(0xd25+1183-0x11c3);ptSubmit->user_data.
 headers[iHeaderNum].u.concat_8.msg_ref=g_zUfiSms_ConcatSmsReference%
-(0x323+1873-0x975);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
-(0x5ef+4795-0x18a9);ptDbSaveData->concat_info[(0x1cea+1813-0x23ff)]=
+(0xba9+3165-0x1707);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
+(0xbbd+5008-0x1f4c);ptDbSaveData->concat_info[(0x1331+1560-0x1949)]=
 g_zUfiSms_ConcatSmsReference;}int zUfiSms_MakeFinalCmgsBuf(){SMS_PARAM tSmsData;
-int iPduLength=(0x1a90+374-0x1c06);int nSmscLength=(0x14f+765-0x44c);char 
-Tempstrr[(0x9f9+4394-0x1b21)]={(0xc5+2880-0xc05)};char Temp_sms_vp[
-(0x12d+1455-0x6d4)]={(0xbc4+4884-0x1ed8)};char tmpBuf1[(0x498+110-0x503)]={
-(0xfc+3358-0xe1a)};char tmpBuf2[(0x100+352-0x25a)]={(0x1002+384-0x1182)};CHAR 
-smsCenter[(0x1905+3630-0x2701)]={(0xc51+6120-0x2439)};memset(&tSmsData,
-(0x1163+1928-0x18eb),sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,
-(0x6d7+6573-0x2084),sizeof(T_zSms_SendSmsReq));if(CODE_GSM7==
-g_zUfiSms_SendingSms.TP_DCS){int i=(0x241c+568-0x2654);for(;i<
+int iPduLength=(0xbbf+1639-0x1226);int nSmscLength=(0x1867+3565-0x2654);char 
+Tempstrr[(0x1a88+1527-0x207d)]={(0xfe9+3657-0x1e32)};char Temp_sms_vp[
+(0x926+4924-0x1c5a)]={(0x1e96+1802-0x25a0)};char tmpBuf1[(0x1ab7+1863-0x21fb)]={
+(0x1b9c+2078-0x23ba)};char tmpBuf2[(0x19a4+2671-0x240d)]={(0x456+4576-0x1636)};
+CHAR smsCenter[(0x623+8436-0x26e5)]={(0x1871+2186-0x20fb)};memset(&tSmsData,
+(0x438+4399-0x1567),sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,
+(0x161b+1818-0x1d35),sizeof(T_zSms_SendSmsReq));if(CODE_GSM7==
+g_zUfiSms_SendingSms.TP_DCS){int i=(0x10e0+3475-0x1e73);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);
@@ -286,40 +287,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(((0xadb+1194-0xf85)==strncmp(
-Tempstrr,"\x31",(0xd3c+568-0xf73)))&&(g_zUfiSms_ConcatSms.current_sending==
-g_zUfiSms_ConcatSms.total_msg-(0x449+6006-0x1bbe))){tSmsData.TP_SRR=
-(0x1430+1960-0x1bd7);}else{tSmsData.TP_SRR=(0x1406+2505-0x1dcf);}tSmsData.
-TP_UDHI=g_zUfiSms_SendingSms.TP_UDHI;tSmsData.TP_VP=(0x157a+2196-0x1d0f);
-sc_cfg_get(NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));if((0x1602+3127-0x2239)==
-strncmp(Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",(0x7d+8354-0x2118))){tSmsData
-.TP_VP=(0x502+1941-0xb98);}else if((0x10d2+4789-0x2387)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x5f\x64\x61\x79",(0xe12+2565-0x1810))){tSmsData.TP_VP=
-(0x116f+79-0x1117);}else if((0x131+7427-0x1e34)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x77\x65\x65\x6b",(0x6d2+1098-0xb15))){tSmsData.TP_VP=
-(0xf0c+6118-0x2645);}else if((0xc98+5153-0x20b9)==strncmp(Temp_sms_vp,
-"\x74\x77\x65\x6c\x76\x65\x68",(0x11bd+1609-0x17ff))){tSmsData.TP_VP=
-(0x434+4691-0x15f8);}tSmsData.TP_PID=(0x104c+4717-0x22b9);
-#if (0x9a9+7368-0x2670)
+(NV_REPORT_ENABLE,Tempstrr,sizeof(Tempstrr));if(((0xdd1+2444-0x175d)==strncmp(
+Tempstrr,"\x31",(0x16f4+2721-0x2194)))&&(g_zUfiSms_ConcatSms.current_sending==
+g_zUfiSms_ConcatSms.total_msg-(0x11e5+1031-0x15eb))){tSmsData.TP_SRR=
+(0x1238+597-0x148c);}else{tSmsData.TP_SRR=(0x2fd+6767-0x1d6c);}tSmsData.TP_UDHI=
+g_zUfiSms_SendingSms.TP_UDHI;tSmsData.TP_VP=(0xb41+4294-0x1b08);sc_cfg_get(
+NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));if((0x304+8858-0x259e)==strncmp(
+Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",(0x1fd2+1519-0x25ba))){tSmsData.TP_VP
+=(0x1205+4361-0x220f);}else if((0x1e49+1888-0x25a9)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x5f\x64\x61\x79",(0x1b1+5187-0x15ed))){tSmsData.TP_VP=
+(0x191b+2426-0x21ee);}else if((0xb2b+6214-0x2371)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x77\x65\x65\x6b",(0x1532+1845-0x1c60))){tSmsData.TP_VP=
+(0xd8d+4747-0x1f6b);}else if((0x370+1356-0x8bc)==strncmp(Temp_sms_vp,
+"\x74\x77\x65\x6c\x76\x65\x68",(0x1b9b+991-0x1f73))){tSmsData.TP_VP=
+(0x9af+3209-0x15a9);}tSmsData.TP_PID=(0x174a+1574-0x1d70);
+#if (0x466+5982-0x1bc3)
 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 (0xb38+4293-0x1bfc)
+#if (0x18ac+2157-0x2118)
 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,(0x9e7+6933-0x24fa));
+(void)String2Bytes(g_zUfiSms_FinalCmgsBuf.pdu,tmpBuf1,(0x158b+660-0x181d));
 Bytes2String(tmpBuf1,tmpBuf2,strlen(tmpBuf1));nSmscLength=atoi(tmpBuf2);if(
-nSmscLength<(0x1aa6+2506-0x2470)||nSmscLength>INT_MAX-(0x510+5395-0x1a22)){
-at_print(LOG_ERR,
+nSmscLength<(0xaa1+331-0xbec)||nSmscLength>INT_MAX-(0x24+2803-0xb16)){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=(0x97a+487-0xb61);;}nSmscLength++;
-g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0x1327+113-0x1396)-nSmscLength;
-#if (0x7f1+7606-0x25a6)
+,nSmscLength);nSmscLength=(0x1d7d+1265-0x226e);;}nSmscLength++;
+g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0xcb+3018-0xc93)-nSmscLength;
+#if (0xcaf+5774-0x233c)
 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(
@@ -329,22 +330,22 @@
 return ZUFI_SUCC;}int zUfiSms_FillSubmitTpdu(T_zUfiSms_ConcatInfo*ptConcatSms,
 T_zUfiSms_GroupInfo*ptGroupSms,int iSmsLen,T_zUfiSms_SubmitTpdu*ptSubmit,
 T_zUfiSms_DbStoreData*ptDbSaveData){if(NULL==ptSubmit||NULL==ptConcatSms||NULL==
-ptGroupSms||NULL==ptDbSaveData){return-(0x10bf+4780-0x236a);}ptSubmit->
+ptGroupSms||NULL==ptDbSaveData){return-(0x28f+8935-0x2575);}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(((0x3e5+4371-0x14f7)<ptConcatSms->
-total_msg)&&(ptConcatSms->current_sending+(0x15f1+2967-0x2187)<ptConcatSms->
-total_msg)){ptSubmit->status_report_enabled=(0x1f7+8378-0x22b1);}ptSubmit->
+g_zUfiSms_CurSmsPara.status_report_on;if(((0x1559+2266-0x1e32)<ptConcatSms->
+total_msg)&&(ptConcatSms->current_sending+(0xa1d+5452-0x1f68)<ptConcatSms->
+total_msg)){ptSubmit->status_report_enabled=(0x1def+263-0x1ef6);}ptSubmit->
 message_reference=g_zUfiSms_MsgRefer;ptSubmit->pid=WMS_PID_DEFAULT;ptSubmit->dcs
-.msg_class=(wms_message_class_e_type)(0xc24+6486-0x2576);ptSubmit->dcs.
-is_compressed=(0x1587+2059-0x1d92);ptSubmit->dcs.alphabet=(g_zUfiSms_Dcs==
+.msg_class=(wms_message_class_e_type)(0x44c+6782-0x1ec6);ptSubmit->dcs.
+is_compressed=(0x10b2+3609-0x1ecb);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=
-(0x201+4740-0x1485);if(ptConcatSms->total_msg>(0xe52+1645-0x14be)){
+(0x172f+3735-0x25c6);if(ptConcatSms->total_msg>(0x16f4+498-0x18e5)){
 zUfiSms_FillDateheader(ptSubmit,ptConcatSms,ptDbSaveData);ptDbSaveData->
-concat_info[(0xfe5+1366-0x1539)]=ptConcatSms->current_sending+
-(0xbcb+2829-0x16d7);ptDbSaveData->concat_info[(0x1005+3290-0x1cde)]=ptConcatSms
+concat_info[(0x1506+379-0x167f)]=ptConcatSms->current_sending+
+(0x1d93+942-0x2140);ptDbSaveData->concat_info[(0x1ba0+2389-0x24f4)]=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
@@ -352,52 +353,51 @@
 user_data.num_headers++;g_zUfiSms_IsLanguageShift=WMS_UDH_NAT_LANG_SS;}ptSubmit
 ->user_data.sm_len=iSmsLen;memcpy(ptSubmit->user_data.sm_data,ptConcatSms->
 msg_contents[ptConcatSms->current_sending],iSmsLen);if(ptGroupSms->receivers[
-ptGroupSms->current_receiver][(0x24+8733-0x2241)]==((char)(0x103a+1722-0x16c9)))
+ptGroupSms->current_receiver][(0x107d+5003-0x2408)]==((char)(0x1c79+10-0x1c58)))
 {(void)zUfiSms_CharToInt(ptGroupSms->receivers[ptGroupSms->current_receiver]+
-(0x17ef+428-0x199a),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])-
-(0x321+1090-0x762),ptSubmit->address.digits);ptSubmit->address.number_type=
+(0xa25+4432-0x1b74),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])-
+(0x1cd6+2132-0x2529),ptSubmit->address.digits);ptSubmit->address.number_type=
 WMS_NUMBER_INTERNATIONAL;ptSubmit->address.number_of_digits=strlen(ptGroupSms->
-receivers[ptGroupSms->current_receiver])-(0x6da+2004-0xead);}else if(ptGroupSms
-->receivers[ptGroupSms->current_receiver][(0x8d3+6109-0x20b0)]==
-((char)(0x6af+1478-0xc45))&&ptGroupSms->receivers[ptGroupSms->current_receiver][
-(0x40b+8722-0x261c)]==((char)(0x77+9339-0x24c2))){(void)zUfiSms_CharToInt(
-ptGroupSms->receivers[ptGroupSms->current_receiver]+(0x18e8+2728-0x238e),strlen(
-ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x11f5+579-0x1436),
+receivers[ptGroupSms->current_receiver])-(0x7e3+6178-0x2004);}else if(ptGroupSms
+->receivers[ptGroupSms->current_receiver][(0xeaa+3464-0x1c32)]==
+((char)(0xbfa+4928-0x1f0a))&&ptGroupSms->receivers[ptGroupSms->current_receiver]
+[(0x158+2372-0xa9b)]==((char)(0xd06+2174-0x1554))){(void)zUfiSms_CharToInt(
+ptGroupSms->receivers[ptGroupSms->current_receiver]+(0xac7+3792-0x1995),strlen(
+ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x1132+955-0x14eb),
 ptSubmit->address.digits);ptSubmit->address.number_type=WMS_NUMBER_INTERNATIONAL
 ;ptSubmit->address.number_of_digits=strlen(ptGroupSms->receivers[ptGroupSms->
-current_receiver])-(0xf6d+5549-0x2518);}else{(void)zUfiSms_CharToInt(ptGroupSms
-->receivers[ptGroupSms->current_receiver],strlen(ptGroupSms->receivers[
-ptGroupSms->current_receiver]),ptSubmit->address.digits);ptSubmit->address.
-number_type=WMS_NUMBER_UNKNOWN;ptSubmit->address.number_of_digits=strlen(
-ptGroupSms->receivers[ptGroupSms->current_receiver]);}ptSubmit->address.
-digit_mode=(wms_digit_mode_e_type)(0x62b+5723-0x1c86);ptSubmit->address.
-number_mode=(wms_number_mode_e_type)(0x212+6553-0x1bab);ptSubmit->address.
-number_plan=WMS_NUMBER_PLAN_TELEPHONY;memset(&g_zUfiSms_SendingSms,
-(0x58c+1861-0xcd1),sizeof(SMS_PARAM));snprintf(g_zUfiSms_SendingSms.TPA,sizeof(
-g_zUfiSms_SendingSms.TPA),"\x25\x73",ptGroupSms->receivers[ptGroupSms->
-current_receiver]);if(g_zUfiSms_Language!=NOT_DEFINE_LANGUAGE){
-g_zUfiSms_SendingSms.TP_DCS=CODE_GSM7;}else{if(g_zUfiSms_Dcs==DCS_USC){
-g_zUfiSms_SendingSms.TP_DCS=CODE_UCS2;}else{g_zUfiSms_SendingSms.TP_DCS=
-CODE_GSM8;}}if(g_zUfiSms_SendingSms.TP_DCS==CODE_GSM7){
-zUfiSms_FillGlobalTpudGsm7(ptSubmit,ptConcatSms,ptDbSaveData);}else{
+current_receiver])-(0xfd+3392-0xe3b);}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)(0x20e2+793-0x23fb);ptSubmit->address.number_mode=(
+wms_number_mode_e_type)(0x427+3445-0x119c);ptSubmit->address.number_plan=
+WMS_NUMBER_PLAN_TELEPHONY;memset(&g_zUfiSms_SendingSms,(0xf74+393-0x10fd),sizeof
+(SMS_PARAM));snprintf(g_zUfiSms_SendingSms.TPA,sizeof(g_zUfiSms_SendingSms.TPA),
+"\x25\x73",ptGroupSms->receivers[ptGroupSms->current_receiver]);if(
+g_zUfiSms_Language!=NOT_DEFINE_LANGUAGE){g_zUfiSms_SendingSms.TP_DCS=CODE_GSM7;}
+else{if(g_zUfiSms_Dcs==DCS_USC){g_zUfiSms_SendingSms.TP_DCS=CODE_UCS2;}else{
+g_zUfiSms_SendingSms.TP_DCS=CODE_GSM8;}}if(g_zUfiSms_SendingSms.TP_DCS==
+CODE_GSM7){zUfiSms_FillGlobalTpudGsm7(ptSubmit,ptConcatSms,ptDbSaveData);}else{
 zUfiSms_FillGlobalTpudUcs2(ptSubmit,ptConcatSms,ptDbSaveData);}(void)
 zUfiSms_MakeFinalCmgsBuf();return ZUFI_SUCC;}void zUfiSms_FillSca(
 T_zUfiSms_ClientMsg*ptClientMsg){char sca[ZTE_WMS_SCA_LEN_MAX]={
-(0x17a+2340-0xa9e)};int i=(0x594+882-0x906);if(NULL==ptClientMsg){return;}memcpy
-((void*)sca,(void*)(g_zUfiSms_CurSmsPara.sca),sizeof(g_zUfiSms_CurSmsPara.sca));
-if(sca[(0xeac+2147-0x170f)]==((char)(0x10ff+1379-0x1637))){ptClientMsg->u.
+(0x1c5b+1573-0x2280)};int i=(0x1c49+1191-0x20f0);if(NULL==ptClientMsg){return;}
+memcpy((void*)sca,(void*)(g_zUfiSms_CurSmsPara.sca),sizeof(g_zUfiSms_CurSmsPara.
+sca));if(sca[(0x190f+152-0x19a7)]==((char)(0x1d13+834-0x202a))){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[(0x245+7931-0x2140)]==
-((char)(0x115f+1311-0x1653))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits--;for(i=(0x3b8+1741-0xa85);i<ptClientMsg->u.gw_message.
-sc_address.number_of_digits;i++){sca[i]=sca[i+(0x34b+219-0x425)];}}else if(sca[
-(0x1659+1318-0x1b7f)]==((char)(0x982+5801-0x1ffb))&&sca[(0x911+1915-0x108b)]==
-((char)(0x1aaf+1165-0x1f0c))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits-=(0xef2+3672-0x1d48);for(i=(0x21e4+571-0x241f);i<ptClientMsg->u
-.gw_message.sc_address.number_of_digits;i++){sca[i]=sca[i+(0x1bd3+2582-0x25e7)];
-}}(void)zUfiSms_CharToInt(sca,ptClientMsg->u.gw_message.sc_address.
+sc_address.number_of_digits=strlen(sca);if(sca[(0x1448+4353-0x2549)]==
+((char)(0x30a+6635-0x1cca))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits--;for(i=(0x3a1+7345-0x2052);i<ptClientMsg->u.gw_message.
+sc_address.number_of_digits;i++){sca[i]=sca[i+(0x891+7061-0x2425)];}}else if(sca
+[(0x87c+4486-0x1a02)]==((char)(0xcc0+4917-0x1fc5))&&sca[(0x9a4+2941-0x1520)]==
+((char)(0x96+6545-0x19f7))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits-=(0x5bf+2285-0xeaa);for(i=(0x12d3+4814-0x25a1);i<ptClientMsg->u
+.gw_message.sc_address.number_of_digits;i++){sca[i]=sca[i+(0x197+4623-0x13a4)];}
+}(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
@@ -407,12 +407,12 @@
 }ptDbSaveData->mem_store=ptClientMsg->msg_hdr.mem_store;ptDbSaveData->index=
 ptClientMsg->msg_hdr.index;ptDbSaveData->mode=ptClientMsg->msg_hdr.message_mode;
 ptDbSaveData->tag=ptClientMsg->msg_hdr.tag;memset(ptDbSaveData->number,
-(0x1160+4192-0x21c0),ZTE_WMS_ADDRESS_LEN_MAX+(0x20c1+965-0x2485));memcpy(
+(0xd4+9505-0x25f5),ZTE_WMS_ADDRESS_LEN_MAX+(0x6ec+2812-0x11e7));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,(0x63+1437-0x600),sizeof(ptDbSaveData->sms_content));if(
+sms_content,(0x81+8715-0x228c),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
@@ -423,7 +423,7 @@
 ptDbSaveData){T_zUfiSms_ClientTsData tClientTsData;ptClientMsg->msg_hdr.
 mem_store=WMS_MEMORY_STORE_NV_GW;ptClientMsg->msg_hdr.tag=WMS_TAG_MO_NOT_SENT;
 ptClientMsg->msg_hdr.message_mode=WMS_MESSAGE_MODE_GW;ptClientMsg->u.gw_message.
-is_broadcast=FALSE;memset((void*)&tClientTsData,(0x225f+942-0x260d),sizeof(
+is_broadcast=FALSE;memset((void*)&tClientTsData,(0x6c2+2753-0x1183),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
@@ -432,95 +432,95 @@
 ptClientMsg,&tClientTsData,&g_zUfiSms_ConcatSms,&g_zUfiSms_GroupSms,
 g_zUfiSms_UnitLen,ptDbSaveData);}int zUfiSms_StoreNormalSmsToDb(
 T_zUfiSms_DbStoreData*ptDbSaveData,const char*pMemStore,long iSmsId){int result=
-ZUFI_SUCC;char*pContent=NULL;int iTotalCount=(0x48f+6885-0x1f74);pContent=(char*
-)malloc((0x159a+3041-0x2177)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent
-==NULL){return ZUFI_FAIL;}memset(pContent,(0xe4a+1485-0x1417),
-(0x1839+3607-0x264c)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(
-WMS_GW_ALPHABET_7_BIT_DEFAULT==ptDbSaveData->alphabet){static char data[
-(0x9ba+4524-0x1b62)*ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x7aa+1936-0xf39)]={
-(0xe60+4401-0x1f91)};memset(data,(0x108a+4802-0x234c),(0x8fa+5436-0x1e32)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x9bc+1392-0xf2b));(void)zUfiSms_DecodeContent(
-(char*)ptDbSaveData->sms_content,strlen(ptDbSaveData->sms_content),FALSE,data);
-strncpy(pContent,data,(0xb3c+6899-0x262b)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-
-(0x1013+340-0x1166));}else{strncpy(pContent,ptDbSaveData->sms_content,
-(0x16d+3621-0xf8e)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x1515+3241-0x21bd));}
-ptDbSaveData->tp_dcs=(unsigned char)(0x1292+1091-0x16d3);if(-(0x8e1+5985-0x2041)
-==iSmsId){if(ZUFI_FAIL==zUfiSms_GetTotalCount(pMemStore,&iTotalCount)){free(
-pContent);pContent=NULL;return ZUFI_FAIL;}printf(
+ZUFI_SUCC;char*pContent=NULL;int iTotalCount=(0x15fb+1357-0x1b48);pContent=(char
+*)malloc((0x952+3356-0x166a)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent
+==NULL){return ZUFI_FAIL;}memset(pContent,(0xb4b+6933-0x2660),(0x533+406-0x6c5)*
+ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(WMS_GW_ALPHABET_7_BIT_DEFAULT==
+ptDbSaveData->alphabet){static char data[(0xa4b+4459-0x1bb2)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0xc8d+5657-0x22a5)]={(0x1a8+3416-0xf00)};memset
+(data,(0xe2+7013-0x1c47),(0xcb2+4953-0x2007)*ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+
+(0xc95+969-0x105d));(void)zUfiSms_DecodeContent((char*)ptDbSaveData->sms_content
+,strlen(ptDbSaveData->sms_content),FALSE,data);strncpy(pContent,data,
+(0x13ac+1492-0x197c)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x2d5+3103-0xef3));}
+else{strncpy(pContent,ptDbSaveData->sms_content,(0x17d9+3386-0x250f)*
+ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0xcbb+3592-0x1ac2));}ptDbSaveData->tp_dcs
+=(unsigned char)(0x1122+2975-0x1cbf);if(-(0x529+4546-0x16ea)==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-(0x5bd+1034-0x9c6);}if(ZUFI_FAIL==zUfiSms_InsertNormalSmsToDb(
+;return-(0x722+5773-0x1dae);}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=(0x1166+5008-0x24f6);for(i=(0x31b+9149-0x26d8);i<count;i++){if
-(ptDbSaveData->concat_info[(0x8a0+4117-0x18b3)]==i+(0x13f5+1655-0x1a6b)){free(
-out_result[i]);out_result[i]=NULL;break;}}return(0x1489+284-0x15a5);}int 
+out_result){int i=(0x994+2797-0x1481);for(i=(0x1c74+662-0x1f0a);i<count;i++){if(
+ptDbSaveData->concat_info[(0x1997+1096-0x1ddd)]==i+(0x3c3+968-0x78a)){free(
+out_result[i]);out_result[i]=NULL;break;}}return(0x1391+4256-0x2431);}int 
 zUfiSms_AddNewSmsToConcatData(T_zUfiSms_DbStoreData*ptDbSaveData,char*
 pOldContent,char*pFormatNewContent,char*pRealNewContent,T_zUfiSms_DbStoreStr*pac
-,int*pConcatTotalNum,int len){int count=(0xb7b+3557-0x1960);char**out_result=
-NULL;char cSegChar=((char)(0x7e8+7092-0x2361));int i=(0x2312+950-0x26c8);int 
-iTotalSegNum=(0x38+6353-0x1909);char acContentSeg[(0x325+3834-0x121d)*
+,int*pConcatTotalNum,int len){int count=(0x18c7+156-0x1963);char**out_result=
+NULL;char cSegChar=((char)(0xf0d+4348-0x1fce));int i=(0x46d+3464-0x11f5);int 
+iTotalSegNum=(0x1c48+1202-0x20fa);char acContentSeg[(0x5e2+6359-0x1eb7)*
 ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX*ZTE_WMS_SMS_COUNT_MAX]={
-(0x1c02+1374-0x2160)};char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==
-pOldContent){return-(0x23d+56-0x274);}count=zUfiSms_SplitString(pOldContent,&
-out_result,cSegChar);for(i=(0xcf8+6212-0x253c);i<count;i++){if(ptDbSaveData->
-concat_info[(0x17cb+2732-0x2275)]==i+(0x1afb+3041-0x26db)){out_result[i]=(char*)
+(0x2323+831-0x2662)};char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==
+pOldContent){return-(0x1940+1627-0x1f9a);}count=zUfiSms_SplitString(pOldContent,
+&out_result,cSegChar);for(i=(0x2ad+9231-0x26bc);i<count;i++){if(ptDbSaveData->
+concat_info[(0x13c8+1847-0x1afd)]==i+(0x10a+3773-0xfc6)){out_result[i]=(char*)
 malloc(sizeof(ptDbSaveData->sms_content));memset(out_result[i],
-(0xb01+2181-0x1386),sizeof(ptDbSaveData->sms_content));if(
+(0x1508+1202-0x19ba),sizeof(ptDbSaveData->sms_content));if(
 WMS_GW_ALPHABET_7_BIT_DEFAULT==ptDbSaveData->alphabet){isEsc=
 zUfiSms_DecodeContent(ptDbSaveData->sms_content,strlen(ptDbSaveData->sms_content
 ),isEsc,out_result[i]);}else{strncpy(out_result[i],ptDbSaveData->sms_content,
-sizeof(ptDbSaveData->sms_content)-(0x2c4+869-0x628));}break;}}for(i=
-(0x1677+4088-0x266f);i<count;i++){snprintf(acContentSeg+strlen(acContentSeg),
-sizeof(acContentSeg)-strlen(acContentSeg),"\x25\x73",out_result[i]);strcat(
-pFormatNewContent,out_result[i]);if(i!=count-(0x14da+2212-0x1d7d)){strcat(
+sizeof(ptDbSaveData->sms_content)-(0x54+6592-0x1a13));}break;}}for(i=
+(0xc9a+54-0xcd0);i<count;i++){snprintf(acContentSeg+strlen(acContentSeg),sizeof(
+acContentSeg)-strlen(acContentSeg),"\x25\x73",out_result[i]);strcat(
+pFormatNewContent,out_result[i]);if(i!=count-(0x10fa+1754-0x17d3)){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=(0x4b4+218-0x58e);i<count;i++){if(ptDbSaveData->concat_info[
-(0x491+7095-0x2046)]==i+(0x1dd+6113-0x19bd)){out_result[i]=(char*)malloc(
-SHORT_INT_LEN);memset(out_result[i],(0x85d+3224-0x14f5),SHORT_INT_LEN);snprintf(
-out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->index);break;}}for(i=
-(0xc6b+3067-0x1866);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd),
+i=(0xff1+3429-0x1d56);i<count;i++){if(ptDbSaveData->concat_info[
+(0xd50+1157-0x11d3)]==i+(0x1d8b+1317-0x22af)){out_result[i]=(char*)malloc(
+SHORT_INT_LEN);memset(out_result[i],(0x1612+2377-0x1f5b),SHORT_INT_LEN);snprintf
+(out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->index);break;}}for(i=
+(0xde2+306-0xf14);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd),
 sizeof(pac->FormatInd)-strlen(pac->FormatInd),"\x25\x73",out_result[i]);if(i!=
-count-(0x1713+2336-0x2032)){snprintf(pac->FormatInd+strlen(pac->FormatInd),
-sizeof(pac->FormatInd)-strlen(pac->FormatInd),"\x3b");}}zUfiSms_ConcatDataFree(
+count-(0x3c2+8148-0x2395)){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=(0x922+4321-0x1a03)
-;i<count;i++){if(ptDbSaveData->concat_info[(0x248c+290-0x25ac)]==i+
-(0x1597+1757-0x1c73)){out_result[i]=(char*)malloc(SHORT_INT_LEN);memset(
-out_result[i],(0x861+683-0xb0c),SHORT_INT_LEN);snprintf(out_result[i],
-SHORT_INT_LEN,"\x25\x64",ptDbSaveData->concat_info[(0x91+9347-0x2512)]);break;}}
-for(i=(0x3e1+8570-0x255b);i<count;i++){snprintf(pac->FormatSeq+strlen(pac->
+zUfiSms_SplitString(pac->Seg_Seq,&out_result,cSegChar);for(i=(0x977+1448-0xf1f);
+i<count;i++){if(ptDbSaveData->concat_info[(0x43f+6240-0x1c9d)]==i+
+(0x1c04+1719-0x22ba)){out_result[i]=(char*)malloc(SHORT_INT_LEN);memset(
+out_result[i],(0xb77+1609-0x11c0),SHORT_INT_LEN);snprintf(out_result[i],
+SHORT_INT_LEN,"\x25\x64",ptDbSaveData->concat_info[(0x5b6+7568-0x2344)]);break;}
+}for(i=(0xe68+6078-0x2626);i<count;i++){snprintf(pac->FormatSeq+strlen(pac->
 FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x25\x73",out_result[i
-]);if(i!=count-(0x39+2538-0xa22)){snprintf(pac->FormatSeq+strlen(pac->FormatSeq)
-,sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x3b");}if((0xda9+4651-0x1fd4)!=
-strcmp(out_result[i],"")){iTotalSegNum++;}}*pConcatTotalNum=iTotalSegNum;
-zUfiSms_ConcatDataFree(ptDbSaveData,count,out_result);free(out_result);
-out_result=NULL;return(0x510+5181-0x194d);}int zUfiSms_UpdateConcatSms(
-T_zUfiSms_DbStoreData*ptDbSaveData,const char*pStorePos,long iSmsId){
-T_zUfiSms_DbStoreStr ac={(0x3b1+3063-0xfa8)};char*pOldContent=NULL;char*
-pFormatNewContent=NULL;char*pRealNewContent=NULL;int iTotalNum=
-(0x4e3+6047-0x1c82);int result=ZUFI_SUCC;int spaceLen=(0x136d+2871-0x1ea0)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x2e7+5572-0x18a7)
+]);if(i!=count-(0x187+4210-0x11f8)){snprintf(pac->FormatSeq+strlen(pac->
+FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x3b");}if(
+(0x19fb+3237-0x26a0)!=strcmp(out_result[i],"")){iTotalSegNum++;}}*
+pConcatTotalNum=iTotalSegNum;zUfiSms_ConcatDataFree(ptDbSaveData,count,
+out_result);free(out_result);out_result=NULL;return(0x685+4469-0x17fa);}int 
+zUfiSms_UpdateConcatSms(T_zUfiSms_DbStoreData*ptDbSaveData,const char*pStorePos,
+long iSmsId){T_zUfiSms_DbStoreStr ac={(0x957+127-0x9d6)};char*pOldContent=NULL;
+char*pFormatNewContent=NULL;char*pRealNewContent=NULL;int iTotalNum=
+(0x5c6+3733-0x145b);int result=ZUFI_SUCC;int spaceLen=(0xcc9+4404-0x1df9)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xb42+5122-0x1f40)
 ;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,(0x1a42+776-0x1d4a),
-spaceLen);memset(pOldContent,(0xeac+6149-0x26b1),spaceLen);memset(
-pFormatNewContent,(0x1778+2606-0x21a6),spaceLen);(void)zUfiSms_GetConcatInfo(
+pRealNewContent);return ZUFI_FAIL;}memset(pRealNewContent,(0xe58+3472-0x1be8),
+spaceLen);memset(pOldContent,(0x15d5+71-0x161c),spaceLen);memset(
+pFormatNewContent,(0x5cd+485-0x7b2),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(-(0xdb8+802-0x10d9)==
+,ac.IndStr,ac.Seg_Seq,ac.FormatInd,ac.FormatSeq);if(-(0x7ad+4908-0x1ad8)==
 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=
-(0x7da+217-0x8b1);if(ZUFI_FAIL==zUfiSms_UpdateConcatSmsToDb(ptDbSaveData,
+(0x1b6+5651-0x17c7);if(ZUFI_FAIL==zUfiSms_UpdateConcatSmsToDb(ptDbSaveData,
 pStorePos,pFormatNewContent,pRealNewContent,&ac,iTotalNum,iSmsId)){result=
 ZUFI_FAIL;}printf(
 "\x5b\x53\x4d\x53\x5d\x20\x74\x65\x65\x74\x20\x31\x20\x49\x6e\x64\x53\x74\x72\x3a\x25\x73\x2c\x53\x65\x67\x5f\x53\x65\x71\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x49\x6e\x64\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x53\x65\x71\x3a\x25\x73" "\n"
@@ -529,33 +529,33 @@
 pFormatNewContent=NULL;printf(
 "\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x55\x70\x64\x61\x74\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x20\x73\x75\x63\x63\x65\x73\x73\x2e" "\n"
 );return result;}int zUfiSms_InsertConcatSms(T_zUfiSms_DbStoreData*ptDbSaveData,
-const char*pStorePos){T_zUfiSms_DbStoreStr ac={(0x679+5634-0x1c7b)};int 
-iSms_TotalCount=(0xdbf+2601-0x17e8);int i=(0x435+2845-0xf52);char acTmpContent[
-(0x172f+3226-0x22c9)];int iConcatNum=(0x17a+6355-0x1a4d);char*pFormatConcat=NULL
-;char*pContent=NULL;int spaceLen=(0x422+8476-0x253a)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x45b+703-0x716);
-if(NULL==ptDbSaveData||NULL==pStorePos){return ZUFI_FAIL;}printf(
+const char*pStorePos){T_zUfiSms_DbStoreStr ac={(0x18c2+2366-0x2200)};int 
+iSms_TotalCount=(0xb58+5987-0x22bb);int i=(0x16f4+826-0x1a2e);char acTmpContent[
+(0x1a1+5747-0x1714)];int iConcatNum=(0xc8+4018-0x107a);char*pFormatConcat=NULL;
+char*pContent=NULL;int spaceLen=(0x13cf+2302-0x1cc9)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x271+6308-0x1b11)
+;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,(0x161+6806-0x1bf7),sizeof(acTmpContent));iSms_TotalCount=
-ptDbSaveData->concat_info[(0x1680+4215-0x26f6)];for(i=(0x5a0+6644-0x1f93);i<
+);memset(acTmpContent,(0x5a5+384-0x725),sizeof(acTmpContent));iSms_TotalCount=
+ptDbSaveData->concat_info[(0xf6+1846-0x82b)];for(i=(0x893+2703-0x1321);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,(0x6e7+174-0x795),spaceLen
-);pContent=(char*)malloc(spaceLen);if(pContent==NULL){free(pFormatConcat);return
- ZUFI_FAIL;}memset(pContent,(0x39b+7977-0x22c4),spaceLen);if(-
-(0x284+7165-0x1e80)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
+pFormatConcat){return ZUFI_FAIL;}memset(pFormatConcat,(0x3f7+7884-0x22c3),
+spaceLen);pContent=(char*)malloc(spaceLen);if(pContent==NULL){free(pFormatConcat
+);return ZUFI_FAIL;}memset(pContent,(0xa55+3255-0x170c),spaceLen);if(-
+(0x210+6127-0x19fe)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
 pFormatConcat,pContent,&ac,&iConcatNum,spaceLen)){free(pFormatConcat);free(
 pContent);pFormatConcat=NULL;pContent=NULL;return ZUFI_FAIL;}ptDbSaveData->
-tp_dcs=(0x12b+701-0x3e6);if(ZUFI_FAIL==zUfiSms_InsertConcatSmsToDb(ptDbSaveData,
-pStorePos,pFormatConcat,pContent,&ac,iConcatNum)){free(pFormatConcat);free(
+tp_dcs=(0x4d5+2165-0xd48);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=(0x1e11+1392-0x2381);int total_count=
-(0x3b9+6242-0x1c1b);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
+ptDbSaveData,char*pMemStore){long iSmsId=(0x7bb+1866-0xf05);int total_count=
+(0x657+7694-0x2465);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
 iSmsId=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,pMemStore);if(-
-(0x646+6546-0x1fd7)!=iSmsId){printf(
+(0x922+7283-0x2594)!=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(
@@ -567,181 +567,182 @@
 "\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[(0x14bb+2117-0x1cf6)];int iTotalCount=
-(0x1097+5456-0x25e7);int id=(0x1aa1+1943-0x2238);UINT8 needCheckMemory=
-(0x1af0+1737-0x21b8);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(
-acDbMemStore,(0x1f3+4925-0x1530),sizeof(acDbMemStore));if(
-WMS_STORAGE_TYPE_UIM_V01==iMemStore){strncpy(acDbMemStore,ZTE_WMS_DB_SIM_TABLE,
-sizeof(acDbMemStore)-(0x1d58+121-0x1dd0));}else{strncpy(acDbMemStore,
-ZTE_WMS_DB_NV_TABLE,sizeof(acDbMemStore)-(0x19ef+3261-0x26ab));}if(
-(0x735+1831-0xe5b)==ptDbSaveData->concat_sms){id=zUfiSms_SearchConcatSmsInDb(
-ptDbSaveData,&acDbMemStore);if(-(0x1259+4079-0x2247)!=id){needCheckMemory=
-(0x17f0+2367-0x212f);}}if(needCheckMemory==(0x1a16+1919-0x2194)){if(ZUFI_FAIL==
-zUfiSms_GetTotalCount(acDbMemStore,&iTotalCount)){return ZUFI_FAIL;}printf(
+iMemStore,long iSmsId){char acDbMemStore[(0x15f9+4025-0x25a8)];int iTotalCount=
+(0x39c+4556-0x1568);int id=(0x117c+2909-0x1cd9);UINT8 needCheckMemory=
+(0x5ea+8477-0x2706);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(acDbMemStore
+,(0x1785+3189-0x23fa),sizeof(acDbMemStore));if(WMS_STORAGE_TYPE_UIM_V01==
+iMemStore){strncpy(acDbMemStore,ZTE_WMS_DB_SIM_TABLE,sizeof(acDbMemStore)-
+(0x16d1+2555-0x20cb));}else{strncpy(acDbMemStore,ZTE_WMS_DB_NV_TABLE,sizeof(
+acDbMemStore)-(0x1c9d+1103-0x20eb));}if((0x2fc+8231-0x2322)==ptDbSaveData->
+concat_sms){id=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,&acDbMemStore);if(-
+(0x9b9+2925-0x1525)!=id){needCheckMemory=(0x382+950-0x738);}}if(needCheckMemory
+==(0xfa0+5824-0x265f)){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[
-(0x23f+2904-0xd95)]==(0x5c4+2444-0xf50)||ptDbSaveData->concat_info[
-(0x234+6204-0x1a6e)]>ptDbSaveData->concat_info[(0x23f+9349-0x26c3)]){
-ptDbSaveData->concat_sms=(0x1184+2604-0x1bb0);}printf(
+(0x1ea2+1217-0x2361)]==(0xfd3+2585-0x19ec)||ptDbSaveData->concat_info[
+(0x14ad+1517-0x1a98)]>ptDbSaveData->concat_info[(0x8b8+3693-0x1724)]){
+ptDbSaveData->concat_sms=(0xb61+3391-0x18a0);}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[(0x4ef+59-0x529)
-]);if((0x2071+1240-0x2548)==ptDbSaveData->concat_sms){if(
-ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0xdd4+6118-0x25b9)]){
+,iTotalCount,ptDbSaveData->concat_sms,ptDbSaveData->concat_info[
+(0x133a+4931-0x267c)]);if((0x34d+8425-0x2435)==ptDbSaveData->concat_sms){if(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0x1c8c+629-0x1f00)]){
 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=(0xaa1+7214-0x26cf);if(NULL==ptDbSaveData){
-return WMS_CMD_FAILED;}if(!g_zUfiSms_IsConcatSendSuc){ptDbSaveData->tag=
+ptDbSaveData,int cid){int atRes=(0x41d+2904-0xf75);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,-(0xc01+4547-0x1dc3))){g_zUfiSms_MsgRefer++;ptDbSaveData
+WMS_STORAGE_TYPE_NV_V01,-(0xdd5+1020-0x11d0))){g_zUfiSms_MsgRefer++;ptDbSaveData
 ->msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}
-}else{CHAR sendfailRetry[(0xc61+5789-0x22cc)]={(0x852+3255-0x1509)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x1e8+8172-0x21d4)==
-strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x1287+3702-0x20fa);}
+}else{CHAR sendfailRetry[(0x9e5+7064-0x254b)]={(0x12b6+1323-0x17e1)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x7fb+2841-0x1314)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x6c6+7716-0x24e7);}
 atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{
 zSms_RecvCmgsOk();}}return WMS_CMD_SUCCESS;}int zUfiSms_SendConcatSms(int cid){
-int atRes=(0x8c2+5820-0x1f7e);T_zUfiSms_ClientMsg tClientMsg;
+int atRes=(0x1c+5107-0x140f);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,(0x21+2331-0x93c),sizeof(T_zUfiSms_ClientMsg));memset((void*)&
-tDbSaveData,(0x217c+105-0x21e5),sizeof(tDbSaveData));zUfiSms_SetPduData(&
+&tClientMsg,(0x106f+1551-0x167e),sizeof(T_zUfiSms_ClientMsg));memset((void*)&
+tDbSaveData,(0xf36+4598-0x212c),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,-(0x2cc+6755-0x1d2e));g_zUfiSms_SendFailedCount++;}else{
-CHAR sendfailRetry[(0x22cb+283-0x23b4)]={(0x1+1217-0x4c2)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x717+653-0x9a4)==
-strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x1083+3506-0x1e32);}
+WMS_STORAGE_TYPE_NV_V01,-(0xead+1230-0x137a));g_zUfiSms_SendFailedCount++;}else{
+CHAR sendfailRetry[(0x1427+2453-0x1d8a)]={(0xc1a+4608-0x1e1a)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0xbb8+1746-0x128a)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0xf83+1596-0x15bc);}
 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+(0x49+352-0x1a8))){
+g_zUfiSms_UnitLen*(g_zUfiSms_ConcatSms.current_sending+(0x1e7d+1119-0x22db))){
 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,(0x7b+7886-0x1f49),sizeof(
+tSendStatus;memset((void*)&tSendStatus,(0x25d+236-0x349),sizeof(
 T_zUfiSms_StatusInfo));tSendStatus.err_code=ZTE_SMS_CMS_NONE;tSendStatus.
 send_failed_count=g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=
-(0x1140+2721-0x1be1);tSendStatus.cmd_status=WMS_CMD_FAILED;tSendStatus.cmd=
+(0x1159+3525-0x1f1e);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=(0x13c6+1008-0x17b6);int i=
-(0xe75+5769-0x24fe);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR 
-sendfailRetry[(0x109+4593-0x12c8)]={(0x1146+2358-0x1a7c)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x1e13+744-0x20fb)==
-strcmp("\x31",sendfailRetry)){for(i=(0xfa6+5373-0x24a3);i<SMS_RETRY_COUNT;i++){
+return result;}int zSvr_sendCmgs(VOID){int atRes=(0xe3f+502-0x1035);int i=
+(0x4c1+3424-0x1221);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR 
+sendfailRetry[(0x125b+614-0x148f)]={(0x105c+2225-0x190d)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x108b+80-0x10db)==
+strcmp("\x31",sendfailRetry)){for(i=(0x410+4613-0x1615);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=(0x1f65+1098-0x23af);if(-
-(0x339+8698-0x2532)==g_zUfiSms_UnitLen){printf(
+T_zUfiSms_DbStoreData tDbSaveData;int res=(0xce9+6611-0x26bc);if(-
+(0x19a5+2116-0x21e8)==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,(0x13e4+4372-0x24f8),
-sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x1722+2510-0x20f0),
+g_zUfiSms_ConcatSms.total_msg){memset((void*)&tClientMsg,(0x1068+5469-0x25c5),
+sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x867+3581-0x1664),
 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,-(0xec8+1974-0x167d));
+zUfiSms_WriteSmsToDb(&tDbSaveData,WMS_STORAGE_TYPE_NV_V01,-(0xcb+1337-0x603));
 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+(0x31d+5495-0x1893))){g_zUfiSms_UnitLen=g_zUfiSms_ConcatSms.
+current_sending+(0x674+1263-0xb62))){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,(0x64a+8070-0x25d0),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
+tSendStatus,(0x337+6752-0x1d97),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
 err_code=ZTE_SMS_CMS_NONE;tSendStatus.send_failed_count=
-g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0x76+5189-0x14bb);
+g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0x138d+2128-0x1bdd);
 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 (0x12f5+2461-0x1c92)	

-if(g_zUfiSms_ConcatSms.total_msg>(0x5ab+5040-0x195a)){printf(
+#if (0xa79+4613-0x1c7e)	

+if(g_zUfiSms_ConcatSms.total_msg>(0x9b2+5601-0x1f92)){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,(0x1075+495-0x1264)
-,sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x1dd4+761-0x20cd),
-sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&tDbSaveData);printf(
+);zUfiSms_SendConcatSms(cid);}else{memset((void*)&tClientMsg,
+(0x1379+3734-0x220f),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,
+(0x134a+1191-0x17f1),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[(0x113f+5420-0x2666)]={
-(0x5c3+4825-0x189c)};int tmp_i=(0x838+3197-0x14b5);memset(ptTimestamp,
-(0x119+3185-0xd8a),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
-(0xf4+6127-0x18e2)){ptTimestamp->year=zUfiSms_atohex(((char)(0x418+2931-0xf5b)))
-*(0x96d+4115-0x1970)+zUfiSms_atohex(tData.year[(0xbb5+4279-0x1c6c)]);}else if(
-strlen(tData.year)==(0xc73+5613-0x225e)){ptTimestamp->year=zUfiSms_atohex(tData.
-year[(0x1ac+3115-0xdd7)])*(0x695+7851-0x2530)+zUfiSms_atohex(tData.year[
-(0x1203+3263-0x1ec1)]);}else if(strlen(tData.year)==(0x1706+3493-0x24a7)){
-ptTimestamp->year=zUfiSms_atohex(tData.year[(0x81+4584-0x1267)])*
-(0x99a+6749-0x23e7)+zUfiSms_atohex(tData.year[(0xc79+6033-0x2407)]);}else{printf
-("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x79\x65\x61\x72\x2e");return ZUFI_FAIL;}if(
-strlen(tData.month)==(0x105+1495-0x6db)){ptTimestamp->month=zUfiSms_atohex(
-((char)(0x82d+789-0xb12)))*(0xe89+4301-0x1f46)+zUfiSms_atohex(tData.month[
-(0x796+4153-0x17cf)]);}else if(strlen(tData.month)==(0x2207+605-0x2462)){
-ptTimestamp->month=zUfiSms_atohex(tData.month[(0x214+8521-0x235d)])*
-(0x34c+1847-0xa73)+zUfiSms_atohex(tData.month[(0x18a6+800-0x1bc5)]);}else{printf
-("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.day)==
-(0x6e3+2073-0xefb)){ptTimestamp->day=zUfiSms_atohex(((char)(0x1460+843-0x177b)))
-*(0x1790+2942-0x22fe)+zUfiSms_atohex(tData.day[(0x2258+1066-0x2682)]);}else if(
-strlen(tData.day)==(0x99b+1211-0xe54)){ptTimestamp->day=zUfiSms_atohex(tData.day
-[(0x865+4589-0x1a52)])*(0x36d+132-0x3e1)+zUfiSms_atohex(tData.day[
-(0x6d4+7006-0x2231)]);}else{printf(
-"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.hour)==
-(0x6a2+5479-0x1c08)){ptTimestamp->hour=zUfiSms_atohex(
-((char)(0xa3c+5955-0x214f)))*(0x1a6f+1629-0x20bc)+zUfiSms_atohex(tData.hour[
-(0x1760+767-0x1a5f)]);}else if(strlen(tData.hour)==(0xb03+6508-0x246d)){
-ptTimestamp->hour=zUfiSms_atohex(tData.hour[(0x1cff+2279-0x25e6)])*
-(0x55f+4463-0x16be)+zUfiSms_atohex(tData.hour[(0x144d+21-0x1461)]);}else{printf(
+T_zUfiSms_TimeStamp*ptTimestamp){unsigned char tTimeZone[(0x52a+7371-0x21f0)]={
+(0x17d4+1967-0x1f83)};int tmp_i=(0xe56+4197-0x1ebb);memset(ptTimestamp,
+(0xb7d+2081-0x139e),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
+(0x14f8+309-0x162c)){ptTimestamp->year=zUfiSms_atohex(((char)(0x4ea+640-0x73a)))
+*(0x44d+1833-0xb66)+zUfiSms_atohex(tData.year[(0xc83+3888-0x1bb3)]);}else if(
+strlen(tData.year)==(0x44f+2172-0xcc9)){ptTimestamp->year=zUfiSms_atohex(tData.
+year[(0x669+1227-0xb34)])*(0x1532+3884-0x244e)+zUfiSms_atohex(tData.year[
+(0x1617+3303-0x22fd)]);}else if(strlen(tData.year)==(0x92a+3976-0x18ae)){
+ptTimestamp->year=zUfiSms_atohex(tData.year[(0x808+4634-0x1a20)])*
+(0x218+7376-0x1ed8)+zUfiSms_atohex(tData.year[(0x1559+2181-0x1ddb)]);}else{
+printf("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x79\x65\x61\x72\x2e");return ZUFI_FAIL;
+}if(strlen(tData.month)==(0x543+8193-0x2543)){ptTimestamp->month=zUfiSms_atohex(
+((char)(0x5a3+4926-0x18b1)))*(0x1d43+1475-0x22f6)+zUfiSms_atohex(tData.month[
+(0x3c7+1290-0x8d1)]);}else if(strlen(tData.month)==(0x107+7252-0x1d59)){
+ptTimestamp->month=zUfiSms_atohex(tData.month[(0x1a28+2412-0x2394)])*
+(0x1e7+2413-0xb44)+zUfiSms_atohex(tData.month[(0x14d4+4466-0x2645)]);}else{
+printf("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.day)
+==(0x7ea+6993-0x233a)){ptTimestamp->day=zUfiSms_atohex(
+((char)(0x619+7926-0x24df)))*(0xfb8+2551-0x199f)+zUfiSms_atohex(tData.day[
+(0x1166+3416-0x1ebe)]);}else if(strlen(tData.day)==(0x1803+2906-0x235b)){
+ptTimestamp->day=zUfiSms_atohex(tData.day[(0x5d2+5877-0x1cc7)])*
+(0x62f+4569-0x17f8)+zUfiSms_atohex(tData.day[(0x1714+1354-0x1c5d)]);}else{printf
+("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.hour)==
+(0x28a+7527-0x1ff0)){ptTimestamp->hour=zUfiSms_atohex(
+((char)(0x87b+4310-0x1921)))*(0x1c70+2419-0x25d3)+zUfiSms_atohex(tData.hour[
+(0x1755+3355-0x2470)]);}else if(strlen(tData.hour)==(0x1249+153-0x12e0)){
+ptTimestamp->hour=zUfiSms_atohex(tData.hour[(0x380+3702-0x11f6)])*
+(0x3c5+2914-0xf17)+zUfiSms_atohex(tData.hour[(0x157c+110-0x15e9)]);}else{printf(
 "\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x68\x6f\x75\x72\x2e");}if(strlen(tData.min)==
-(0x1976+3228-0x2611)){ptTimestamp->minute=zUfiSms_atohex(
-((char)(0x1c2a+907-0x1f85)))*(0x3b8+308-0x4dc)+zUfiSms_atohex(tData.min[
-(0x19eb+3223-0x2682)]);}else if(strlen(tData.min)==(0x961+6053-0x2104)){
-ptTimestamp->minute=zUfiSms_atohex(tData.min[(0xe26+5262-0x22b4)])*
-(0x76+475-0x241)+zUfiSms_atohex(tData.min[(0x1875+3576-0x266c)]);}else{printf(
-"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x6d\x69\x6e\x75\x74\x65\x2e");}if(strlen(tData
-.sec)==(0x542+905-0x8ca)){ptTimestamp->second=zUfiSms_atohex(
-((char)(0x59+4126-0x1047)))*(0x14f0+1178-0x197a)+zUfiSms_atohex(tData.sec[
-(0x1a5+6391-0x1a9c)]);}else if(strlen(tData.sec)==(0x461+1118-0x8bd)){
-ptTimestamp->second=zUfiSms_atohex(tData.sec[(0x769+6911-0x2268)])*
-(0x13fc+381-0x1569)+zUfiSms_atohex(tData.sec[(0x318+5581-0x18e4)]);}else{printf(
+(0x911+3148-0x155c)){ptTimestamp->minute=zUfiSms_atohex(
+((char)(0x2c3+1719-0x94a)))*(0x1027+2199-0x18ae)+zUfiSms_atohex(tData.min[
+(0x279+2108-0xab5)]);}else if(strlen(tData.min)==(0x14ba+2209-0x1d59)){
+ptTimestamp->minute=zUfiSms_atohex(tData.min[(0x3b+4002-0xfdd)])*
+(0x1b26+2759-0x25dd)+zUfiSms_atohex(tData.min[(0xc81+3229-0x191d)]);}else{printf
+("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x6d\x69\x6e\x75\x74\x65\x2e");}if(strlen(
+tData.sec)==(0x29f+3295-0xf7d)){ptTimestamp->second=zUfiSms_atohex(
+((char)(0xe0+7237-0x1cf5)))*(0x1570+2786-0x2042)+zUfiSms_atohex(tData.sec[
+(0x19f+1968-0x94f)]);}else if(strlen(tData.sec)==(0xf15+189-0xfd0)){ptTimestamp
+->second=zUfiSms_atohex(tData.sec[(0x817+6616-0x21ef)])*(0x5f2+3419-0x133d)+
+zUfiSms_atohex(tData.sec[(0x630+419-0x7d2)]);}else{printf(
 "\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x73\x65\x63\x6f\x6e\x64\x2e");}tmp_i=atoi(
-tData.timezone);if(tmp_i<INT_MIN+(0x2d2+7915-0x21bc)||tmp_i>INT_MAX-
-(0xc53+5183-0x2091)){printf(
+tData.timezone);if(tmp_i<INT_MIN+(0xef1+3529-0x1cb9)||tmp_i>INT_MAX-
+(0x3a3+214-0x478)){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,(0x5a3+629-0x818),sizeof(tTimeZone));
-snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0x903+6241-0x2160));if(
-tData.timezone[(0x3fa+7020-0x1f66)]==((char)(0x8f6+3822-0x17b7))){if(strlen(
-tTimeZone)==(0x1534+1167-0x19c1)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0xe49+2781-0x18f6)))*(0x412+6999-0x1f59)+zUfiSms_atohex(tTimeZone[
-(0x11c4+1426-0x1755)]);}else if(strlen(tTimeZone)==(0x8ca+3952-0x1837)){
-ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x79f+1690-0xe38)])*
-(0x9c3+5246-0x1e37)+zUfiSms_atohex(tTimeZone[(0xacb+577-0xd0a)]);}else{printf(
+,tmp_i);return ZUFI_FAIL;}memset(tTimeZone,(0x3c1+7800-0x2239),sizeof(tTimeZone)
+);snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0x305+1517-0x8ee));if(
+tData.timezone[(0x27+1131-0x492)]==((char)(0x1d72+1538-0x2347))){if(strlen(
+tTimeZone)==(0x137d+2779-0x1e56)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0x1485+4559-0x2624)))*(0x990+6137-0x2179)+zUfiSms_atohex(tTimeZone[
+(0x12f0+1063-0x1716)]);}else if(strlen(tTimeZone)==(0xc82+4209-0x1cf0)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x252+4596-0x1445)])*
+(0x80c+2723-0x12a5)+zUfiSms_atohex(tTimeZone[(0xba6+4588-0x1d90)]);}else{printf(
 "\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2d\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}
-ptTimestamp->timezone=(0xc64+4446-0x1dc2)-ptTimestamp->timezone;}else{if(strlen(
-tTimeZone)==(0xb68+5277-0x2004)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0x1dc1+967-0x2158)))*(0x4d2+148-0x556)+zUfiSms_atohex(tTimeZone[
-(0x2574+64-0x25b4)]);}else if(strlen(tTimeZone)==(0x271+3514-0x1029)){
-ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0xe9f+1549-0x14ac)])*
-(0x20a3+1519-0x2688)+zUfiSms_atohex(tTimeZone[(0x68f+342-0x7e4)]);}else{printf(
+ptTimestamp->timezone=(0x865+4557-0x1a32)-ptTimestamp->timezone;}else{if(strlen(
+tTimeZone)==(0x1728+1936-0x1eb7)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0x11cd+5102-0x258b)))*(0x1d94+198-0x1e4a)+zUfiSms_atohex(tTimeZone[
+(0xdca+1746-0x149c)]);}else if(strlen(tTimeZone)==(0x317+5341-0x17f2)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x762+4929-0x1aa3)])*
+(0x44+2917-0xb9f)+zUfiSms_atohex(tTimeZone[(0x6b6+2819-0x11b8)]);}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=(0x5d2+5530-0x1b6c);deliver->user_data_header_present=TRUE;if(
-(0x2465+666-0x26ff)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference++
-;(void)zUfiSms_SetConcatMaxRefer(g_zUfiSms_ConcatSmsReference);}deliver->
-user_data_header_present=TRUE;deliver->user_data.num_headers=(0x20f3+531-0x2305)
-;deliver->user_data.headers[(0xbe3+5716-0x2237)].header_id=WMS_UDH_CONCAT_8;
-deliver->user_data.headers[(0x14+5942-0x174a)].u.concat_8.msg_ref=msg_ref;
-deliver->user_data.headers[(0x950+2066-0x1162)].u.concat_8.total_sm=concat_sms->
-total_msg;deliver->user_data.headers[(0x1223+2014-0x1a01)].u.concat_8.seq_num=
-concat_sms->current_sending+(0x174+7391-0x1e52);ptDbSaveData->concat_sms=
-(0xe04+486-0xfe9);ptDbSaveData->concat_info[(0x7ad+638-0xa2b)]=msg_ref;}void 
+UINT16 msg_ref=(0x643+33-0x664);deliver->user_data_header_present=TRUE;if(
+(0x15d6+3599-0x23e5)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference
+++;(void)zUfiSms_SetConcatMaxRefer(g_zUfiSms_ConcatSmsReference);}deliver->
+user_data_header_present=TRUE;deliver->user_data.num_headers=(0x190d+457-0x1ad5)
+;deliver->user_data.headers[(0x8b4+5618-0x1ea6)].header_id=WMS_UDH_CONCAT_8;
+deliver->user_data.headers[(0x1b70+2687-0x25ef)].u.concat_8.msg_ref=msg_ref;
+deliver->user_data.headers[(0xb37+4696-0x1d8f)].u.concat_8.total_sm=concat_sms->
+total_msg;deliver->user_data.headers[(0xcd7+4840-0x1fbf)].u.concat_8.seq_num=
+concat_sms->current_sending+(0x733+2250-0xffc);ptDbSaveData->concat_sms=
+(0x33+5541-0x15d7);ptDbSaveData->concat_info[(0x283+5516-0x180f)]=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=
@@ -750,23 +751,22 @@
 dcs.msg_class=WMS_MESSAGE_CLASS_NONE;ptDeliver->dcs.is_compressed=FALSE;if(
 g_zUfiSms_Dcs==DCS_ASC){ptDeliver->dcs.alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}
 else{ptDeliver->dcs.alphabet=WMS_GW_ALPHABET_UCS2;}if(concat_sms->total_msg>
-(0x62b+538-0x844)){zUfiSms_FillDeliver(ptDeliver,concat_sms,ptDbSaveData);
-ptDbSaveData->concat_sms=(0x993+815-0xcc1);ptDbSaveData->concat_info[
-(0x183b+1427-0x1dcc)]=concat_sms->current_sending+(0xde4+6260-0x2657);
-ptDbSaveData->concat_info[(0x10d3+2094-0x1900)]=concat_sms->total_msg;
-ptDbSaveData->concat_info[(0xc2a+3183-0x1899)]=ptDeliver->user_data.headers[
-(0x11e8+2023-0x19cf)].u.concat_8.msg_ref;}else{ptDeliver->
-user_data_header_present=FALSE;ptDeliver->user_data.num_headers=
-(0x417+8137-0x23e0);}ptDeliver->user_data.sm_len=iSmsLen;memcpy(ptDeliver->
-user_data.sm_data,concat_sms->msg_contents[concat_sms->current_sending],iSmsLen)
-;if(group_sms->receivers[group_sms->current_receiver][(0x148+8934-0x242e)]==
-((char)(0x51a+7435-0x21fa))){(void)zUfiSms_CharToInt(group_sms->receivers[
-group_sms->current_receiver]+(0x78b+3145-0x13d3),strlen(group_sms->receivers[
-group_sms->current_receiver])-(0x17f2+820-0x1b25),ptDeliver->address.digits);
-ptDeliver->address.number_type=WMS_NUMBER_INTERNATIONAL;ptDeliver->address.
-number_of_digits=(UINT8)strlen(group_sms->receivers[group_sms->current_receiver]
-)-(0x2d4+8040-0x223b);}else{(void)zUfiSms_CharToInt(group_sms->receivers[
-group_sms->current_receiver],strlen(group_sms->receivers[group_sms->
+(0x153b+3932-0x2496)){zUfiSms_FillDeliver(ptDeliver,concat_sms,ptDbSaveData);
+ptDbSaveData->concat_sms=(0x17b9+2794-0x22a2);ptDbSaveData->concat_info[
+(0x1ef+632-0x465)]=concat_sms->current_sending+(0x109+4908-0x1434);ptDbSaveData
+->concat_info[(0x14ef+3943-0x2455)]=concat_sms->total_msg;ptDbSaveData->
+concat_info[(0x9f2+565-0xc27)]=ptDeliver->user_data.headers[(0x92a+3982-0x18b8)]
+.u.concat_8.msg_ref;}else{ptDeliver->user_data_header_present=FALSE;ptDeliver->
+user_data.num_headers=(0x9e6+5832-0x20ae);}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][
+(0x112a+1611-0x1775)]==((char)(0x364+3697-0x11aa))){(void)zUfiSms_CharToInt(
+group_sms->receivers[group_sms->current_receiver]+(0xb00+7050-0x2689),strlen(
+group_sms->receivers[group_sms->current_receiver])-(0xd59+3186-0x19ca),ptDeliver
+->address.digits);ptDeliver->address.number_type=WMS_NUMBER_INTERNATIONAL;
+ptDeliver->address.number_of_digits=(UINT8)strlen(group_sms->receivers[group_sms
+->current_receiver])-(0xe95+1529-0x148d);}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=
@@ -778,7 +778,7 @@
 "\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x61\x76\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x20\x6d\x65\x6d\x5f\x73\x74\x6f\x72\x65\x3d\x25\x64\x28\x4e\x56\x3d\x3d\x30\x31\x29" "\n"
 ,ptSaveSms->mem_store);if(ptSaveSms->mem_store==WMS_STORAGE_TYPE_NV_V01){if(
 ZUFI_FAIL==zUfiSms_WriteSmsToDb(ptDbSaveData,WMS_STORAGE_TYPE_NV_V01,-
-(0x1f59+1414-0x24de))){at_print(LOG_ERR,
+(0x339+5000-0x16c0))){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(
@@ -794,19 +794,19 @@
 ,T_zUfiSms_GroupInfo*ptGroupSms,int iSmsLength){T_zUfiSms_ClientTsData 
 tClientTsData;T_zUfiSms_ClientMsg tClientMsg;T_zUfiSms_DbStoreData tDbSaveData;
 T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;int current_sending=
-(0x3ed+8643-0x25b0);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
-(0x77d+5431-0x1cb3)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
-current_sending=(0xc12+1931-0x139d);ptConcatSms->current_sending<ptConcatSms->
+(0x152f+3721-0x23b8);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
+(0x11f+9179-0x24f9)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
+current_sending=(0x114d+3410-0x1e9f);ptConcatSms->current_sending<ptConcatSms->
 total_msg;ptConcatSms->current_sending++){memset((void*)&tClientMsg,
-(0x3a3+5558-0x1959),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
-(0x1f36+949-0x22eb),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
-(0x719+373-0x88e),sizeof(T_zUfiSms_DbStoreData));tClientMsg.msg_hdr.mem_store=(
-ptSaveSms->mem_store==WMS_STORAGE_TYPE_UIM_V01)?WMS_STORAGE_TYPE_UIM_V01:
+(0xb60+775-0xe67),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
+(0xe14+264-0xf1c),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
+(0x19b9+1952-0x2159),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
-(0xb3b+5750-0x21ad):{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)
+(0xce8+4999-0x206b):{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;(
@@ -818,42 +818,42 @@
 zUfiSms_FillSca(&tClientMsg);zUfiSms_FillDbSaveData(&tClientMsg,&tClientTsData,
 ptConcatSms,ptGroupSms,iSmsLength,&tDbSaveData);strncpy(tDbSaveData.
 draft_group_id,ptSaveSms->draft_group_id,sizeof(tDbSaveData.draft_group_id)-
-(0xa7c+5633-0x207c));if(TRUE==g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){result=
+(0xc50+1306-0x1169));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==(0x36f+408-0x506)){result=
+);}else{if(tDbSaveData.concat_sms==(0x2a5+5428-0x17d8)){result=
 zUfiSms_SaveConcatSms(ptSaveSms,ptConcatSms,ptGroupSms,&tDbSaveData,iSmsLength);
-current_sending=ptConcatSms->current_sending+(0x48a+7074-0x202b);if(ptConcatSms
-->sms_len<iSmsLength*(current_sending+(0x7ac+1920-0xf2b))){iSmsLength=
+current_sending=ptConcatSms->current_sending+(0x5f4+6198-0x1e29);if(ptConcatSms
+->sms_len<iSmsLength*(current_sending+(0xbdc+5238-0x2051))){iSmsLength=
 ptConcatSms->sms_len-iSmsLength*current_sending;}}else{result=
 zUfiSms_SaveNormalSms(ptSaveSms,&tDbSaveData);}}}return result;}int 
-zUfiSms_DeleteSmsInSim(){char str_index[(0x1b95+1169-0x1fa6)]={
-(0x1023+2536-0x1a0b)};int index=(0x2072+1011-0x2465);int is_cc=
-(0x1ee4+392-0x206c);int iSmsId=(0x6cb+2954-0x1255);T_zUfiSms_ModifyTag 
-tDeleteInfo={(0x250c+22-0x2522)};char StrValue[(0x3d5+2372-0xd0f)]={
-(0x17b8+2763-0x2283)};memset(&tDeleteInfo,(0xc74+1037-0x1081),sizeof(
+zUfiSms_DeleteSmsInSim(){char str_index[(0x2035+426-0x215f)]={
+(0x31c+5579-0x18e7)};int index=(0x1419+4821-0x26ee);int is_cc=
+(0x1a79+2203-0x2314);int iSmsId=(0x37a+709-0x63f);T_zUfiSms_ModifyTag 
+tDeleteInfo={(0x5eb+4919-0x1922)};char StrValue[(0xcd6+6678-0x26e2)]={
+(0x107+44-0x133)};memset(&tDeleteInfo,(0x13d8+677-0x167d),sizeof(
 T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_DelMsg.sim_id[g_zUfiSms_DelMsg.sim_index]
-;if(-(0xdd7+3833-0x1ccf)==(is_cc=zUfiSms_IsConcatSms(iSmsId))){printf(
+;if(-(0x207+5767-0x188d)==(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((0x532+882-0x8a3)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(
+,is_cc,iSmsId);if((0x266+9256-0x268d)==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>
-(0x1f7f+32-0x1f9f)){index=tDeleteInfo.indices[tDeleteInfo.id_index];
+(0x35c+4166-0x13a2)){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,
-(0xc4d+2418-0x15bf),sizeof(str_index));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
+(0x1d2a+272-0x1e3a),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=(0x11a8+1796-0x18ac);
-char StrValue[(0x12d+2325-0xa38)]={(0x17cc+1377-0x1d2d)};zUfiSms_SetSmsLocation(
-SMS_LOCATION_SIM);memset(&g_deleteIndex,(0x1a13+1127-0x1e7a),sizeof(
+T_zUfiSms_CmdStatus zUfiSms_DeleteSimSms(VOID){int atRes=(0x12e0+3404-0x202c);
+char StrValue[(0x1481+3306-0x2161)]={(0x23c1+523-0x25cc)};zUfiSms_SetSmsLocation
+(SMS_LOCATION_SIM);memset(&g_deleteIndex,(0x75f+763-0xa5a),sizeof(
 T_zUfiSms_DelIndexInfo));while(g_zUfiSms_DelMsg.sim_index_count>
-(0x34b+3594-0x1155)){if(ZUFI_FAIL==zUfiSms_DeleteSmsInSim()){printf(
+(0x12d5+4598-0x24cb)){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.
@@ -862,69 +862,69 @@
 "\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x69\x6d\x53\x6d\x73\x20\x73\x75\x63\x63\x65\x73\x73" "\n"
 );return WMS_CMD_SUCCESS;}void zUfiSms_GetReportStatus(char*pdu_tmp,int*stat){
 unsigned char tmp;unsigned char first_octet;if(pdu_tmp==NULL){return;}(void)
-String2Bytes(pdu_tmp,&tmp,(0xfac+3598-0x1db8));if(tmp==(0x839+3790-0x1707)){
-pdu_tmp+=(0x16d4+977-0x1aa3);}else{tmp=(tmp+(0xac0+1492-0x1093))*
-(0x195d+3419-0x26b6);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
-(0x219b+140-0x2225));first_octet=tmp;if(first_octet&(0x36d+8460-0x2477)){*stat=
-(0x161d+1397-0x1b8d);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
-T_zUfiSms_TpduType iTpduType;UINT8 mti=(0x84a+5848-0x1f22);mti=(
-T_zUfiSms_TpduType)(pData[(0x177f+3009-0x2340)]&(0x1e3+969-0x5a9));switch(mti){
-case(0x1646+1377-0x1ba7):iTpduType=WMS_TPDU_DELIVER;break;case(0x8d+6647-0x1a83)
-:iTpduType=WMS_TPDU_SUBMIT;break;case(0x1fd3+561-0x2202):iTpduType=
+String2Bytes(pdu_tmp,&tmp,(0x269+5940-0x199b));if(tmp==(0x1330+3629-0x215d)){
+pdu_tmp+=(0x30b+8806-0x256f);}else{tmp=(tmp+(0x1ac5+349-0x1c21))*
+(0x191b+26-0x1933);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
+(0x955+4770-0x1bf5));first_octet=tmp;if(first_octet&(0x178+2987-0xd21)){*stat=
+(0x348+5299-0x17f6);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
+T_zUfiSms_TpduType iTpduType;UINT8 mti=(0xae1+213-0xbb6);mti=(T_zUfiSms_TpduType
+)(pData[(0x1fc9+235-0x20b4)]&(0x2048+574-0x2283));switch(mti){case
+(0xadf+710-0xda5):iTpduType=WMS_TPDU_DELIVER;break;case(0x199+4560-0x1368):
+iTpduType=WMS_TPDU_SUBMIT;break;case(0x2022+1299-0x2533):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=(0x9c5+1875-0x1118);memset(pNumber,
-(0x837+1969-0xfe8),ZTE_WMS_ADDRESS_LEN_MAX+(0x761+1889-0xec1));if(tAddress.
-number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x6b+2045-0x868)]=
-((char)(0xb2+5001-0x1410));pNumber++;}if(tAddress.digit_mode!=
+unsigned char*pNumber){UINT8 number_type=(0xf07+2906-0x1a61);memset(pNumber,
+(0x24fa+217-0x25d3),ZTE_WMS_ADDRESS_LEN_MAX+(0x49+408-0x1e0));if(tAddress.
+number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x702+4605-0x18ff)]=
+((char)(0xce5+3472-0x1a4a));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[(0x4ec+7510-0x2242)]));}}byte*zUfiSms_UtilTimeStamp(
+sizeof(tAddress.digits[(0x1bdb+1316-0x20ff)]));}}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)(0xd12+1582-0x131e));tmp=zte_wms_time
-.year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x723+7453-0x2431))+((tmp>>
-(0xb8d+3017-0x1752))*(0x671+4051-0x163a)),res_ptr);zUfiSms_SprintfTime(date->
-year,sizeof(date->year),zte_wms_time.year);*res_ptr++=
-((char)(0x776+3020-0x1313));tmp=zte_wms_time.month;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0x1c5b+1616-0x229c))+((tmp>>(0xd0c+2597-0x172d))*
-(0xd91+3099-0x19a2)),res_ptr);zUfiSms_SprintfTime(date->month,sizeof(date->month
-),zte_wms_time.month);*res_ptr++=((char)(0xf18+4729-0x2162));tmp=zte_wms_time.
-day;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0xacd+4831-0x1d9d))+((tmp>>
-(0x4e0+3139-0x111f))*(0x24a+9195-0x262b)),res_ptr);zUfiSms_SprintfTime(date->day
-,sizeof(date->day),zte_wms_time.day);*res_ptr++=((char)(0x256+9041-0x257b));tmp=
-zte_wms_time.hour;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x2e0+7765-0x2126))+((
-tmp>>(0x356+1162-0x7dc))*(0x5d5+5950-0x1d09)),res_ptr);zUfiSms_SprintfTime(date
+NULL==date){return NULL;}*res_ptr++=((char)(0x1222+4362-0x230a));tmp=
+zte_wms_time.year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x1088+5490-0x25eb))+((
+tmp>>(0x58a+5300-0x1a3a))*(0xc63+5214-0x20b7)),res_ptr);zUfiSms_SprintfTime(date
+->year,sizeof(date->year),zte_wms_time.year);*res_ptr++=
+((char)(0x1a0d+215-0x1ab5));tmp=zte_wms_time.month;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0x13fb+1301-0x1901))+((tmp>>(0x80a+4702-0x1a64))*
+(0x252d+175-0x25d2)),res_ptr);zUfiSms_SprintfTime(date->month,sizeof(date->month
+),zte_wms_time.month);*res_ptr++=((char)(0x145b+2108-0x1c68));tmp=zte_wms_time.
+day;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x420+6778-0x1e8b))+((tmp>>
+(0x1cb+2991-0xd76))*(0x7c2+3918-0x1706)),res_ptr);zUfiSms_SprintfTime(date->day,
+sizeof(date->day),zte_wms_time.day);*res_ptr++=((char)(0x10ba+3786-0x1f58));tmp=
+zte_wms_time.hour;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x185d+3401-0x2597))+((
+tmp>>(0x3af+2056-0xbb3))*(0x6a4+4767-0x1939)),res_ptr);zUfiSms_SprintfTime(date
 ->hour,sizeof(date->hour),zte_wms_time.hour);*res_ptr++=
-((char)(0x16d9+969-0x1a68));tmp=zte_wms_time.minute;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0x1ea+2805-0xcd0))+((tmp>>(0x789+2534-0x116b))*
-(0x22a9+419-0x2442)),res_ptr);zUfiSms_SprintfTime(date->min,sizeof(date->min),
-zte_wms_time.minute);*res_ptr++=((char)(0x6fb+5082-0x1a9b));tmp=zte_wms_time.
-second;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x4c4+3690-0x131f))+((tmp>>
-(0xf2f+4139-0x1f56))*(0x1de1+2258-0x26a9)),res_ptr);zUfiSms_SprintfTime(date->
-sec,sizeof(date->sec),zte_wms_time.second);if(zte_wms_time.timezone<
-(0x26bb+64-0x26fb)){*res_ptr++=((char)(0x61b+8417-0x26cf));tmp=(UINT8)(
-zte_wms_time.timezone*(-(0x1091+2743-0x1b47)));snprintf(date->timezone,sizeof(
-date->timezone),"\x2d\x25\x64",-(0x1357+4637-0x2573)*zte_wms_time.timezone);}
-else{*res_ptr++=((char)(0x16a1+2925-0x21e3));tmp=(UINT8)zte_wms_time.timezone;
+((char)(0x1aa9+479-0x1c4e));tmp=zte_wms_time.minute;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0x1ab+4929-0x14dd))+((tmp>>(0xc2c+5074-0x1ffa))*
+(0x1abf+2686-0x2533)),res_ptr);zUfiSms_SprintfTime(date->min,sizeof(date->min),
+zte_wms_time.minute);*res_ptr++=((char)(0x6c1+1078-0xabd));tmp=zte_wms_time.
+second;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0xba3+2556-0x1590))+((tmp>>
+(0x99+3061-0xc8a))*(0x4f9+5092-0x18d3)),res_ptr);zUfiSms_SprintfTime(date->sec,
+sizeof(date->sec),zte_wms_time.second);if(zte_wms_time.timezone<
+(0x11f5+4233-0x227e)){*res_ptr++=((char)(0x16c4+932-0x1a3b));tmp=(UINT8)(
+zte_wms_time.timezone*(-(0x4ca+5653-0x1ade)));snprintf(date->timezone,sizeof(
+date->timezone),"\x2d\x25\x64",-(0x126f+3420-0x1fca)*zte_wms_time.timezone);}
+else{*res_ptr++=((char)(0x11cb+2385-0x1af1));tmp=(UINT8)zte_wms_time.timezone;
 snprintf(date->timezone,sizeof(date->timezone),"\x2b\x25\x64",zte_wms_time.
 timezone);}res_ptr=zUfiSms_SmsiUtilitoaFill(tmp,res_ptr);*res_ptr++=
-((char)(0x5d2+1495-0xb87));return res_ptr;}T_zUfiSms_CmdStatus 
+((char)(0xa3d+1073-0xe4c));return res_ptr;}T_zUfiSms_CmdStatus 
 zUfiSms_HandleReport(unsigned char*ptPduData){T_zUfiSms_RawTsData tRawTsData;
-T_zUfiSms_ClientTsData tClientTsData;int iReportStatus=(0x1482+1213-0x193f);
-unsigned char acDeliverNumber[ZTE_WMS_ADDRESS_LEN_MAX+(0x9fd+106-0xa66)];
-unsigned char tTpScts[ZTE_WMS_TP_SCTS_LEN_MAX+(0x3cb+7569-0x215b)];
-T_zUfiSms_Date tSmsDate;char acRecFlag[(0xa05+1692-0x109c)]={(0x375+165-0x41a)};
-int iRpCount=(0x16b6+1143-0x1b2d);char tmp[(0x4c6+5251-0x193f)];int tmp_i=
-(0x1c9+9172-0x259d);unsigned int pos=(0x9aa+6839-0x2461);if(NULL==ptPduData){
-return WMS_CMD_FAILED;}memset(acDeliverNumber,(0x1191+4549-0x2356),sizeof(
-acDeliverNumber));memset(&tSmsDate,(0x1822+1033-0x1c2b),sizeof(T_zUfiSms_Date));
-memset(tTpScts,(0x361+6210-0x1ba3),sizeof(tTpScts));memset(&tRawTsData,
-(0xe4+960-0x4a4),sizeof(T_zUfiSms_RawTsData));memset(&tClientTsData,
-(0x87+1754-0x761),sizeof(T_zUfiSms_ClientTsData));snprintf(tmp,sizeof(tmp),
-"\x25\x58",ptPduData[(0x16c0+3505-0x2471)]);tmp_i=atoi(tmp);if(tmp_i<
-(0x494+1800-0xb9c)||tmp_i>INT_MAX-(0x11d+8281-0x2175)){at_print(LOG_ERR,
+T_zUfiSms_ClientTsData tClientTsData;int iReportStatus=(0x16c1+321-0x1802);
+unsigned char acDeliverNumber[ZTE_WMS_ADDRESS_LEN_MAX+(0x526+7328-0x21c5)];
+unsigned char tTpScts[ZTE_WMS_TP_SCTS_LEN_MAX+(0xde2+2810-0x18db)];
+T_zUfiSms_Date tSmsDate;char acRecFlag[(0x65b+6909-0x2153)]={(0x502+5973-0x1c57)
+};int iRpCount=(0x1227+1012-0x161b);char tmp[(0x1ea4+1645-0x2507)];int tmp_i=
+(0x1bb+6575-0x1b6a);unsigned int pos=(0xf+7433-0x1d18);if(NULL==ptPduData){
+return WMS_CMD_FAILED;}memset(acDeliverNumber,(0xdd+9732-0x26e1),sizeof(
+acDeliverNumber));memset(&tSmsDate,(0x4b5+7476-0x21e9),sizeof(T_zUfiSms_Date));
+memset(tTpScts,(0x4fd+3793-0x13ce),sizeof(tTpScts));memset(&tRawTsData,
+(0xb81+75-0xbcc),sizeof(T_zUfiSms_RawTsData));memset(&tClientTsData,
+(0x1670+186-0x172a),sizeof(T_zUfiSms_ClientTsData));snprintf(tmp,sizeof(tmp),
+"\x25\x58",ptPduData[(0x18b+9367-0x2622)]);tmp_i=atoi(tmp);if(tmp_i<
+(0x985+1892-0x10e9)||tmp_i>INT_MAX-(0x10dc+915-0x146e)){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+(0x2d3+8771-0x2515);if(pos>=
+,tmp_i);return WMS_CMD_FAILED;}pos=tmp_i+(0xb07+3974-0x1a8c);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(&
@@ -933,59 +933,59 @@
 "\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x67\x77\x2f\x77\x63\x64\x6d\x61\x20\x73\x6d\x73\x20\x72\x65\x70\x6f\x72\x74\x20\x73\x74\x61\x74\x75\x73\x2e"
 );return WMS_CMD_FAILED;}switch(tClientTsData.u.gw_pp.u.status_report.tp_status)
 {case WMS_TP_STATUS_RECEIVED_OK:case WMS_TP_STATUS_UNABLE_TO_CONFIRM_DELIVERY:
-case WMS_TP_STATUS_REPLACED:{iReportStatus=(0x35a+744-0x641);break;}case 
+case WMS_TP_STATUS_REPLACED:{iReportStatus=(0x72a+3551-0x1508);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=(0x58+8117-0x200a);break;}default:{iReportStatus=
-(0x19+9965-0x2704);break;}}zUfiSms_FormatDeliverNumber(tClientTsData.u.gw_pp.u.
-status_report.address,acDeliverNumber);(void)zUfiSms_UtilTimeStamp(tClientTsData
-.u.gw_pp.u.status_report.timestamp,tTpScts,&tSmsDate);if(ZUFI_FAIL==
-zUfiSms_InsertReportStatusToDb(acDeliverNumber,&tSmsDate,iReportStatus)){
+iReportStatus=(0xefa+5615-0x24e6);break;}default:{iReportStatus=
+(0x1ab6+1558-0x20ca);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,(0x144+1770-0x82e),sizeof(acRecFlag));
-sc_cfg_get(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag,sizeof(acRecFlag));iRpCount=
-atoi(acRecFlag);if(iRpCount<(0x48d+8471-0x25a4)||iRpCount>INT_MAX-
-(0x9e6+6968-0x251d)){at_print(LOG_ERR,
+);return WMS_CMD_FAILED;}memset(acRecFlag,(0x273+8432-0x2363),sizeof(acRecFlag))
+;sc_cfg_get(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag,sizeof(acRecFlag));iRpCount=
+atoi(acRecFlag);if(iRpCount<(0x1055+362-0x11bf)||iRpCount>INT_MAX-
+(0x284+8652-0x244f)){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,(0x46+7225-0x1c7f),sizeof(
+,iRpCount);return WMS_CMD_FAILED;}memset(acRecFlag,(0xa96+3503-0x1845),sizeof(
 acRecFlag));snprintf(acRecFlag,sizeof(acRecFlag),"\x25\x64",iRpCount+
-(0x495+8374-0x254a));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return 
+(0xbe8+2774-0x16bd));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return 
 WMS_CMD_SUCCESS;}void zUfiSms_DelModemSms(int in_index){
-#if (0x15c5+2544-0x1fb5) 
-char StrValue[(0xa19+3036-0x15eb)]={(0x676+7209-0x229f)};printf(
+#if (0xe6f+3647-0x1cae) 
+char StrValue[(0x2db+3448-0x1049)]={(0x762+4851-0x1a55)};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=(0x138d+4469-0x2502);atRes=zSms_SendCmgdReq(in_index);if(atRes==
+int atRes=(0x10c2+3159-0x1d19);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=
-(0xa9+6753-0x1b0a);memset(&g_zUfiSms_modifyMsg,(0x2346+529-0x2557),sizeof(
-T_zUfiSms_ModifySms));for(i=(0x163+4972-0x14cf);i<ptModifyBuff->total_id;i++){
+(0x1691+1045-0x1aa6);memset(&g_zUfiSms_modifyMsg,(0x476+8539-0x25d1),sizeof(
+T_zUfiSms_ModifySms));for(i=(0x1e7a+1898-0x25e4);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[(0x113d+3215-0x1d4c)]={
-(0x41d+1109-0x872)};int index=(0x167c+1984-0x1e3c);int is_cc=(0x496+5946-0x1bd0)
-;int iSmsId=(0x513+5595-0x1aee);T_zUfiSms_ModifyTag tModifyInfo={
-(0x1d64+92-0x1dc0)};char StrValue[(0xa72+4993-0x1de9)]={(0x1f8f+1741-0x265c)};
-memset(&tModifyInfo,(0xfe7+3153-0x1c38),sizeof(T_zUfiSms_ModifyTag));iSmsId=
+zUfiSms_GetUnreadSmsIndexInSim(){char str_index[(0x8e7+1240-0xd3f)]={
+(0xbf6+76-0xc42)};int index=(0x18bf+171-0x196a);int is_cc=(0x1b8a+388-0x1d0e);
+int iSmsId=(0x111+2828-0xc1d);T_zUfiSms_ModifyTag tModifyInfo={
+(0xb9c+2209-0x143d)};char StrValue[(0x778+3689-0x15d7)]={(0x132+5724-0x178e)};
+memset(&tModifyInfo,(0xc94+1534-0x1292),sizeof(T_zUfiSms_ModifyTag));iSmsId=
 g_zUfiSms_modifyMsg.sim_id[g_zUfiSms_modifyMsg.sim_index];if(-
-(0xb89+6044-0x2324)==(is_cc=zUfiSms_IsConcatSms(iSmsId))){at_print(LOG_ERR,
+(0x2037+223-0x2115)==(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((0x18fa+3499-0x26a4)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(iSmsId
-,&tModifyInfo,is_cc)){return ZUFI_FAIL;}g_zUfiSms_modifyMsg.sim_index++;
+,is_cc);if((0x5ca+2918-0x112f)==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>
-(0x82f+7474-0x2561)){index=tModifyInfo.indices[tModifyInfo.id_index];
-g_modifyIndex.index[g_modifyIndex.total]=index;g_modifyIndex.total++;tModifyInfo
-.id_index++;tModifyInfo.num_of_indices--;printf(
+(0x3c6+400-0x556)){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,(0x86c+7071-0x240b),sizeof(
+,index,g_modifyIndex.total);}}else{memset(str_index,(0x85d+4334-0x194b),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"
@@ -994,14 +994,14 @@
 g_zUfiSms_modifyMsg.sim_index_count--;printf(
 "\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x55\x6e\x72\x65\x61\x64\x53\x6d\x73\x49\x6e\x64\x65\x78\x49\x6e\x53\x69\x6d\x20\x5b\x31\x20\x21\x3d\x20\x69\x73\x5f\x63\x63\x5d\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64\x2c\x20\x74\x6f\x74\x61\x6c\x3d\x25\x64" "\n"
 ,index,g_modifyIndex.total);}return ZUFI_SUCC;}void zUfiSms_ModifyModemSms(
-T_zUfiSms_ModifyFlag*ptModifyBuff){int atRes=(0x0+6149-0x1805);char StrValue[
-(0x465+1789-0xb58)]={(0x16b5+3699-0x2528)};printf(
+T_zUfiSms_ModifyFlag*ptModifyBuff){int atRes=(0x462+5968-0x1bb2);char StrValue[
+(0xebc+2211-0x1755)]={(0x37b+991-0x75a)};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,
-(0xe3a+3416-0x1b92),sizeof(T_zUfiSms_ModifyIndexInfo));printf(
+(0xcba+4081-0x1cab),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>
-(0x19ef+1594-0x2029)){if(ZUFI_FAIL==zUfiSms_GetUnreadSmsIndexInSim()){at_print(
+(0x96b+2530-0x134d)){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.
@@ -1020,22 +1020,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[(0x6f9+6204-0x1f2b)];int tmp_i=
-(0xc39+5299-0x20ec);unsigned int pos=(0x911+6381-0x21fe);int result=ZUFI_SUCC;if
-(NULL==pDb_Data){return ZUFI_FAIL;}pDb_Data->mem_store=(unsigned long)iStorePos;
+T_zUfiSms_ClientTsData ts_data_ptr;char tmp[(0x12ff+2514-0x1cc7)];int tmp_i=
+(0x300+2111-0xb3f);unsigned int pos=(0xc1b+4401-0x1d4c);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,
-(0x207+2954-0xd91),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
-(0xec4+2149-0x1729),sizeof(wms_client_ts_data_s_type));memset(tmp,
-(0x5d9+3804-0x14b5),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
-pPdu_Received[(0xa3d+7296-0x26bd)]);tmp_i=atoi(tmp);if(tmp_i<
-(0x10a1+3800-0x1f79)||tmp_i>INT_MAX-(0x6b4+358-0x819)){at_print(LOG_ERR,
+(0xcb4+1651-0x1327),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
+(0x1ad6+1239-0x1fad),sizeof(wms_client_ts_data_s_type));memset(tmp,
+(0x1979+269-0x1a86),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
+pPdu_Received[(0xc9a+5425-0x21cb)]);tmp_i=atoi(tmp);if(tmp_i<(0x3a9+1773-0xa96)
+||tmp_i>INT_MAX-(0x57+9379-0x24f9)){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+(0xf2c+1978-0x16e5);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+(0x10e8+3542-0x1ebd);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);
@@ -1044,62 +1044,62 @@
 pDb_Data);break;}case WMS_MESSAGE_FORMAT_GW_BC_V01:case 
 WMS_MESSAGE_FORMAT_MWI_V01:{result=ZUFI_FAIL;break;}default:{result=ZUFI_FAIL;
 break;}}return result;}T_zUfiSms_CmdStatus IsSmsLoadSuccess(void){char IsInit[
-(0x1d30+1295-0x221b)]={(0x630+565-0x865)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit,
-sizeof(IsInit));if((0xfc8+5083-0x23a3)==strcmp("\x6f\x6b",IsInit)){printf(
+(0x14d3+206-0x157d)]={(0x4e0+3661-0x132d)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit,
+sizeof(IsInit));if((0x16fb+3018-0x22c5)==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 (0xe09+6199-0x2640)

+#if (0x69a+254-0x798)

 int zUfiSms_FormatSms(CHAR*pSmsRawContent,int contentSize,T_zUfiSms_SmsItem*
-ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x1034+4817-0x22d9))
-);if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0x10f4+1840-0x1823))
-,((char)(0x3f9+931-0x770)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((char*
-)(P2+(0x604+2906-0x115d)),((char)(0x1743+3440-0x2487)));atBase_PreProcRes(
-pSmsRawContent,contentSize);if((0xa8+6583-0x1a5e)==iCmdId){if(P3==P2+
-(0x1588+4327-0x266e)){sscanf(pSmsRawContent,
+ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x9cb+5752-0x2017)))
+;if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0x64+5378-0x1565)),
+((char)(0x1345+2488-0x1cd1)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((
+char*)(P2+(0x255+1696-0x8f4)),((char)(0x1f6+9303-0x2621)));atBase_PreProcRes(
+pSmsRawContent,contentSize);if((0xcd2+3764-0x1b85)==iCmdId){if(P3==P2+
+(0x2eb+7481-0x2023)){sscanf(pSmsRawContent,
 "\x25\x64\x20\x25\x64\x20\x25\x64\x20",&ptSmsPara->index,&ptSmsPara->stat,&
 ptSmsPara->length);}else{sscanf(pSmsRawContent,
 "\x25\x64\x20\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&ptSmsPara->index,&
 ptSmsPara->stat,ptSmsPara->alpha,&ptSmsPara->length);}}else if(
-(0x708+7350-0x23bc)==iCmdId){if(P2==P1+(0xea+2048-0x8e9)){sscanf(pSmsRawContent,
-"\x25\x64\x20\x25\x64\x20",&ptSmsPara->stat,&ptSmsPara->length);}else{sscanf(
-pSmsRawContent,"\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&ptSmsPara->stat,
-ptSmsPara->alpha,&ptSmsPara->length);}}atBase_RestoreString(ptSmsPara->alpha);
-atBase_RestoreString(ptSmsPara->pdu);return ZUFI_SUCC;}
+(0xb29+6589-0x24e4)==iCmdId){if(P2==P1+(0xc3d+5642-0x2246)){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={(0xf5c+1584-0x158c)};
+WMS_CMD_PROCESSING;T_zUfiSms_DbStoreData db_data={(0x3fc+3047-0xfe3)};
 zUfiSms_StoreType mem_store=WMS_STORAGE_TYPE_UIM_V01;unsigned char pdu_tmp[
-ZSMS_PDU_SIZE]={(0x3c7+6854-0x1e8d)};int total_count=(0x7c9+3937-0x172a);int 
-sim_capability=(0xf3f+5102-0x232d);printf(
+ZSMS_PDU_SIZE]={(0xbf2+4430-0x1d40)};int total_count=(0x1411+2897-0x1f62);int 
+sim_capability=(0x5ed+7937-0x24ee);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,(0x2a7+1638-0x90d),sizeof(
-db_data));memset(pdu_tmp,(0x353+1223-0x81a),sizeof(pdu_tmp));(void)String2Bytes(
-pSmsItem->pdu,pdu_tmp,(int)strlen(pSmsItem->pdu));
-#if (0xb5c+5603-0x213e)
-zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0x6f3+302-0x81c)==
+,strlen(pSmsItem->pdu),pSmsItem->pdu);memset(&db_data,(0x3a1+8598-0x2537),sizeof
+(db_data));memset(pdu_tmp,(0x681+6211-0x1ec4),sizeof(pdu_tmp));(void)
+String2Bytes(pSmsItem->pdu,pdu_tmp,(int)strlen(pSmsItem->pdu));
+#if (0xbcb+3564-0x19b6)
+zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0x5e6+4278-0x1697)==
 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 (0x1a2c+758-0x1d21)
+#if (0xbeb+4770-0x1e8c)
 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 (0x5a1+3951-0x150f)
+#if (0x6cf+2478-0x107c)
 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,-(0x38c+7214-0x1fb9));{}
-#if (0x14bc+373-0x1630)
+(void)zUfiSms_WriteSmsToDb(&db_data,mem_store,-(0x1541+597-0x1795));{}
+#if (0x1cf+6224-0x1a1e)
 if(SMS_LOCATION_SIM==g_zUfiSms_CurLocation){CHAR simCapability[
-(0xa05+2576-0x13e3)]={(0x174+1883-0x8cf)};sc_cfg_get(
+(0x11ff+2334-0x1aeb)]={(0x1fca+1760-0x26aa)};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){
@@ -1109,18 +1109,18 @@
 "\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x68\x65\x63\x6b\x73\x74\x6f\x72\x65\x44\x69\x72\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
 );return;}
 #ifdef WEBS_SECURITY

-if(access(ZTE_WMS_DB_PATH,F_OK)!=(0x95f+4399-0x1a8e)){if((access(
-ZTE_WMS_TMP1_PATH,F_OK)==(0x1120+5088-0x2500))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
-(0x888+3013-0x144d))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
-(0x46b+2661-0xed0)){printf(
+if(access(ZTE_WMS_DB_PATH,F_OK)!=(0x12c4+2546-0x1cb6)){if((access(
+ZTE_WMS_TMP1_PATH,F_OK)==(0x752+73-0x79b))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
+(0x3cc+663-0x663))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
+(0xc3d+1785-0x1336)){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)==(0x34f+6174-0x1b6d))&&(access(
-ZTE_WMS_SEC_PATH,F_OK)!=(0x128f+4094-0x228d))){if(rename(ZTE_WMS_TMP0_PATH,
-ZTE_WMS_SEC_PATH)!=(0x17f2+765-0x1aef)){printf(
+);}}if((access(ZTE_WMS_TMP0_PATH,F_OK)==(0x15d6+2600-0x1ffe))&&(access(
+ZTE_WMS_SEC_PATH,F_OK)!=(0x1bb9+1817-0x22d2))){if(rename(ZTE_WMS_TMP0_PATH,
+ZTE_WMS_SEC_PATH)!=(0x239+1258-0x723)){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)==(0xcc+8280-0x2124)){char rnum_buf[
-(0x14e0+4332-0x25b4)]={(0xbc5+5916-0x22e1)};char cmd[(0x26a+7018-0x1d54)]={
-(0x1431+4647-0x2658)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZTE_WMS_SEC_PATH,F_OK)==(0x17e8+3681-0x2649)){char rnum_buf[
+(0x16f0+2391-0x202f)]={(0x1006+510-0x1204)};char cmd[(0x431+8361-0x245a)]={
+(0x3f8+990-0x7d6)};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);}}
@@ -1132,47 +1132,47 @@
 zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_SendSmsStatusInfo(
 MSG_SMS_DEFAULT);g_zUfiSms_MsgRefer=zUfiSms_GetSmsMaxReferInDb();
 g_zUfiSms_ConcatSmsReference=zUfiSms_GetConcatMaxReferInDb();}void 
-zUfiSms_CfgSmsNvInit(void){char tmp[(0x9f2+6355-0x22bb)]={(0x23c+7784-0x20a4)};
+zUfiSms_CfgSmsNvInit(void){char tmp[(0x432+4121-0x1441)]={(0x91d+5032-0x1cc5)};
 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,(0x13d7+4583-0x25be),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
+pStatusInfo,(0x9a9+3749-0x184e),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
 iCmdId;pStatusInfo->cmd_status=WMS_CMD_PROCESSING;pStatusInfo->err_code=
-ZTE_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0xd85+4069-0x1d6a);pStatusInfo
-->delete_failed_count=(0xb0+3854-0xfbe);(void)zUfiSms_SetCmdStatus(pStatusInfo);
-}void zUfiSms_CfgInit(void){char tmp[(0x42c+7959-0x2339)]={(0xfdd+1702-0x1683)};
-sc_cfg_set(NV_SMS_STATE,"");sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,"");sc_cfg_set(
-NV_SMS_LOAD_RESULT,"");sc_cfg_set(NV_SMS_RECV_RESULT,"");snprintf(tmp,sizeof(tmp
-),"\x25\x64",ZTE_WMS_DB_MSG_COUNT_MAX);sc_cfg_set(ZTE_WMS_NVCONFIG_NV_CAPABILITY
-,tmp);sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CAPABILITY,"");sc_cfg_set(
-ZTE_WMS_NVCONFIG_SMS_REPORT,"");sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");sc_cfg_set(
-NV_SMS_CENTER_NUM,"");}int zUfiSms_IsUnreadSms(T_zUfiSms_MemoryType mem_store){
-int total_count=(0x103f+501-0x1234);char buf[(0xc53+5167-0x206e)]={
-(0x103b+334-0x1189)};if(ZUFI_FAIL==zUfiSms_GetTagCountInDb(mem_store,
-WMS_TAG_TYPE_MT_NOT_READ_V01,&total_count)){return FALSE;}sprintf(buf,"\x25\x64"
-,total_count);sc_cfg_set(
+ZTE_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0xc31+2285-0x151e);pStatusInfo
+->delete_failed_count=(0x91a+1306-0xe34);(void)zUfiSms_SetCmdStatus(pStatusInfo)
+;}void zUfiSms_CfgInit(void){char tmp[(0x1401+2391-0x1d4e)]={(0x723+6394-0x201d)
+};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=(0x391+3671-0x11e8);char buf[
+(0x8ca+4894-0x1bd4)]={(0x1872+159-0x1911)};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(
-(0xfad+1810-0x16bf)==total_count){return FALSE;}else{return TRUE;}}VOID 
+(0x543+4755-0x17d6)==total_count){return FALSE;}else{return TRUE;}}VOID 
 zUfiSms_SendSmsStatusInfo(wms_message_status_info sms_op){
-T_zUfi_SmsStatusInfoInd ind={(0x53b+4075-0x1526)};CHAR temp[(0x1bd4+2242-0x2464)
-]={(0x3a0+2434-0xd22)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=
-(0x89f+4942-0x1bec);}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=
-(0x42a+5030-0x17cf);}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.
-sms_unread_ind=(0x10f5+3998-0x2092);}else{ind.sms_unread_ind=(0x42a+1034-0x834);
+T_zUfi_SmsStatusInfoInd ind={(0x922+5766-0x1fa8)};CHAR temp[(0x12d4+2443-0x1c2d)
+]={(0x4c8+3118-0x10f6)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=
+(0x1369+2825-0x1e71);}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=
+(0xb14+5546-0x20bd);}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.
+sms_unread_ind=(0x11f+4894-0x143c);}else{ind.sms_unread_ind=(0xa20+2822-0x1526);
 }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=(0x191f+1193-0x1dc7);}else{ind.
-sms_memory_full_ind=(0x1692+2184-0x1f1a);}printf(
+]==TRUE)){ind.sms_memory_full_ind=(0x1408+1015-0x17fe);}else{ind.
+sms_memory_full_ind=(0x351+1790-0xa4f);}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,(0x1c09+1285-0x210e));if(ind.sms_memory_full_ind==
-(0x19e2+889-0x1d5a)){sc_cfg_set(NV_SMS_INIT_STATUS,
+T_zUfi_SmsStatusInfoInd),&ind,(0x205d+940-0x2409));if(ind.sms_memory_full_ind==
+(0x7d0+3876-0x16f3)){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==(0x183f+1868-0x1f8a)){sc_cfg_set(NV_SMS_INIT_STATUS,
+sms_unread_ind==(0x836+3292-0x1511)){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(
@@ -1181,7 +1181,7 @@
 "\x5b\x53\x4d\x53\x5d\x20\x42\x61\x6b\x4e\x6f\x74\x69\x66\x69\x63\x61\x74\x69\x6f\x6e\x53\x6d\x73\x20\x66\x6f\x70\x65\x6e\x20\x65\x72\x72\x6f\x72" "\n"
 );at_print(LOG_ERR,
 "\x66\x6f\x70\x65\x6e\x28\x20\x2f\x75\x73\x72\x2f\x64\x6d\x2f\x66\x6f\x74\x61\x5f\x70\x75\x73\x68\x5f\x6d\x73\x67\x2e\x64\x61\x74\x61\x20\x2c\x20\x27\x77\x2b\x27\x29\x20\x65\x72\x72\x6f\x72\x21"
-);return;}len=fwrite(pushSms,(0x4bb+4694-0x1710),pushSmsLen,fp);if(len==
+);return;}len=fwrite(pushSms,(0x4d2+4637-0x16ee),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 a587b2c..cc3588e 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=(0x188f+2369-0x21d0);int g_zSms_MsqId=-
-(0x936+5880-0x202d);int g_zSms_LocalMsqId=-(0x1005+3999-0x1fa3);sem_t 
-g_sms_sem_id;T_zSms_optRsp g_smsOptRsp={(0x7fd+5899-0x1f08)};static const 
-T_zSmsHandleTable SmsHandleWebTab[]={{MSG_CMD_SEND_SMS,atWeb_SendSms,TRUE},{
+g_zUfiSms_IsConcatSendSuc;int iSmsIndex=(0x491+3896-0x13c9);int g_zSms_MsqId=-
+(0x24+7436-0x1d2f);int g_zSms_LocalMsqId=-(0x222+3114-0xe4b);sem_t g_sms_sem_id;
+T_zSms_optRsp g_smsOptRsp={(0xaf9+2542-0x14e7)};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},{(0xce0+5021-0x207d),NULL,FALSE}};VOID atWeb_SendSms
+atWeb_OutdateSmsCheck,TRUE},{(0xc1c+3312-0x190c),NULL,FALSE}};VOID atWeb_SendSms
 (UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;T_zUfiSms_StatusInfo tStatus={
-(0x2b+6924-0x1b37)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)pDatabuf
-;zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_SEND);(void)zUfiSms_SendRawSms((
-T_zUfiSms_SendReq*)ptMessage->msg_data);}VOID atWeb_DelSmsByIndex(UINT8*pDatabuf
-){T_zUfiSms_DelReq tDelReq={(0xc54+3822-0x1b42)};T_zUfiSms_CmdStatus result=
-WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x6b4+3987-0x1647)};assert(
-pDatabuf!=NULL);printf("[SMS] atWeb_DelSmsByIndex recv msg\n");memcpy(&tDelReq,
-pDatabuf,sizeof(T_zUfiSms_DelReq));zUfiSms_InitCmdStatus(&tStatus,
-WMS_SMS_CMD_MSG_DELETE);result=zUfiSms_DeleteSms(&tDelReq);tStatus.cmd_status=
-result;(void)zUfiSms_SetCmdStatus(&tStatus);zUfiMmi_SendSmsStatus();}VOID 
-atWeb_DelSmsByType(UINT8*pDatabuf){
-#if (0x1b4a+567-0x1d81)

+(0x38c+4353-0x148d)};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={
+(0x1467+3798-0x233d)};T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;
+T_zUfiSms_StatusInfo tStatus={(0x5d2+3619-0x13f5)};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 (0x344+368-0x4b4)

 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,(0xc85+3683-0x1ae8),req
+,req->eBoxName);SMS_DeleteRecordFromXML(SMS_LOCATION_SIM,(0x1a7+5576-0x176f),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={
-(0x2105+722-0x23d7)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)
+(0x20b+4601-0x1404)};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={(0x3bc+4851-0x16af)};assert(
+WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x98f+1762-0x1071)};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,249 +61,250 @@
 zUfiSms_ChangeMainState(SMS_STATE_SAVING);sc_cfg_set(NV_SMS_SAVE_RESULT,
 "\x6f\x6b");}VOID atWeb_SetSms(UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;
 T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={
-(0x645+7763-0x2498)};printf(
+(0x16eb+1028-0x1aef)};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={(0x205+1835-0x930)};
+pDatabuf){T_zUfiSms_DelReq tSmsDel={(0x7f0+7623-0x25b7)};
 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>(0x189+2031-0x978)){
-atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x171b+334-0x1869),sizeof(
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x12b+6943-0x1c4a)){
+atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x709+941-0xab6),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>(0x3b4+6965-0x1ee9)){
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x4c+4306-0x111e)){
 atWeb_DelSmsByIndex(&tSmsDel);}}VOID zSms_HandleWebMsg(MSG_BUF*ptMsgBuf){UINT32 
-i=(0x107+7063-0x1c9e);assert(ptMsgBuf!=NULL);printf(
+i=(0x162d+3387-0x2368);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((0x675+7420-0x2371)!=SmsHandleWebTab[i].msg_id){if(
+,ptMsgBuf->usMsgCmd);while((0x1f32+747-0x221d)!=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,(0x203f+605-0x229c));}else if(NULL!=SmsHandleWebTab[i].
+ptMsgBuf->aucDataBuf,(0x1a87+1294-0x1f95));}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,(0x68a+435-0x83d));return(0x3a9+5727-0x1a08);}SINT32 
-zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x7d4+3110-0x13fa)};
-memset(&sendSmsInfo,(0xc68+6156-0x2474),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
+unsigned char*)pData,(0x1303+5102-0x26f1));return(0x1d49+1315-0x226c);}SINT32 
+zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0xd73+3579-0x1b6e)};
+memset(&sendSmsInfo,(0x4e6+7181-0x20f3),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
 length=g_zUfiSms_FinalCmgsBuf.length;if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<
-ZSMS_PDU_SIZE-(0x9ef+841-0xd37)){memcpy(sendSmsInfo.pdu,g_zUfiSms_FinalCmgsBuf.
-pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));}else{printf(
+ZSMS_PDU_SIZE-(0x12cb+5109-0x26bf)){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-(0xe2b+463-0xff8));}*(sendSmsInfo.pdu+strlen(
+ZSMS_PDU_SIZE-(0x263+6187-0x1a8c));}*(sendSmsInfo.pdu+strlen(
 g_zUfiSms_FinalCmgsBuf.pdu))=ZSMS_CTRL_Z_CHAR;
-#if (0x38d+7357-0x2049)
+#if (0x13a4+3823-0x2292)
 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==(0x1b36+2517-0x250a)){return 
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x58f+8057-0x2507)){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-(0xe0a+3875-0x1d2c)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0x199d+794-0x1cb6)].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-(0xbdc+6822-0x2681)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0xc69+3235-0x190b)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0xb23+6995-0x2675)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0xda1+4409-0x1ed9)){
 g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc();}SINT32 zSms_SendCmgdReq
-(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0x149+1517-0x736)};delSmsReq.index=
+(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0x150d+548-0x1731)};delSmsReq.index=
 index;zSms_SendMsg(MSG_CMD_DELSMS_REQ,sizeof(T_zSms_DelSmsReq),&delSmsReq);
-sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x606+2058-0xe0f)){return 
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0xb8d+6650-0x2586)){return 
 ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmgdOk(VOID){CHAR 
-strUsed[(0x743+3996-0x16d5)]={(0x308+7749-0x214d)};int used=(0x54c+1328-0xa7c);
-int tmp_i=(0x400+5158-0x1826);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+strUsed[(0x1f6+4782-0x149a)]={(0x7c7+1653-0xe3c)};int used=(0x1d52+1382-0x22b8);
+int tmp_i=(0x41c+8940-0x2708);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<(0x668+4348-0x1764)||tmp_i>INT_MAX-(0xeb7+4658-0x20e8)){
-at_print(LOG_ERR,
+strUsed);if(tmp_i<(0xd2+2286-0x9c0)||tmp_i>INT_MAX-(0x58f+4477-0x170b)){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=(0x40+1880-0x798);}used=tmp_i-(0x1483+4628-0x2696);if(used<
-(0x5af+2616-0xfe7)){used=(0x10ad+37-0x10d2);}memset(&strUsed,
-(0x1bc0+1651-0x2233),(0x209+3251-0xeb2));snprintf(strUsed,sizeof(strUsed),
+,tmp_i);tmp_i=(0x1e87+2085-0x26ac);}used=tmp_i-(0x1509+833-0x1849);if(used<
+(0x815+3685-0x167a)){used=(0x76a+2959-0x12f9);}memset(&strUsed,
+(0x28c+9143-0x2643),(0x131c+4422-0x2458));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[(0x162a+1526-0x1c16)]={
-(0x14+2617-0xa4d)};CHAR strTotal[(0xcd7+2157-0x153a)]={(0x18+4792-0x12d0)};CHAR 
-strUsed[(0x40+9865-0x26bf)]={(0x6f5+774-0x9fb)};int total=(0x179b+3737-0x2634);
-int used=(0x8ba+1743-0xf89);int remain=(0x109a+3289-0x1d73);sc_cfg_get(
-ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(strUsed);if(
-used<(0x6eb+3559-0x14d2)||used>INT_MAX-(0x9a5+3977-0x192d)){at_print(LOG_ERR,
+);}VOID zSms_RecvCmgdFinish(VOID){char StrValue[(0x1645+741-0x1920)]={
+(0x120+8615-0x22c7)};CHAR strTotal[(0x362+1659-0x9d3)]={(0x6c6+2727-0x116d)};
+CHAR strUsed[(0x147a+1195-0x191b)]={(0xc7+4977-0x1438)};int total=
+(0x11c8+5139-0x25db);int used=(0x310+4312-0x13e8);int remain=(0x332+1387-0x89d);
+sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
+strUsed);if(used<(0xb24+881-0xe95)||used>INT_MAX-(0x7a8+958-0xb65)){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=(0xef5+1238-0x13cb);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
-strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0x40+2826-0xb4a)||
-total>INT_MAX-(0xc2c+811-0xf56)){at_print(LOG_ERR,
+,used);used=(0x18d4+2299-0x21cf);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
+strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0xd04+5453-0x2251)||
+total>INT_MAX-(0x41d+6249-0x1c85)){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=(0x10c1+1124-0x1525);}remain=total-used;if(remain<
-(0x220d+173-0x22ba)){remain=(0x320+7165-0x1f1d);}memset(&StrValue,
-(0xaea+3830-0x19e0),(0x165d+3719-0x24da));snprintf(StrValue,sizeof(StrValue),
+,total);total=(0x848+4425-0x1991);}remain=total-used;if(remain<
+(0x11cf+4952-0x2527)){remain=(0x765+669-0xa02);}memset(&StrValue,
+(0x2307+585-0x2550),(0x1bf7+666-0x1e87));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={(0x92a+6631-0x2311)};storageReq.type=avail;zSms_SendMsg(
+storageReq={(0xddb+1645-0x1448)};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==(0xda0+4326-0x1e85)){return ZSMS_RESULT_OK;
+g_sms_sem_id);if(g_smsOptRsp.result==(0xe8c+3887-0x1dba)){return ZSMS_RESULT_OK;
 }else{return ZSMS_RESULT_ERROR;}}int zSms_SendCmgrReq(UINT8 index){
-T_zSms_ModifyTagReq modTagReq={(0x427+4697-0x1680)};modTagReq.index=index;
+T_zSms_ModifyTagReq modTagReq={(0x1290+3141-0x1ed5)};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==(0x16db+2699-0x2165)){return 
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x6c5+6712-0x20fc)){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)-
-(0x751+4100-0x1754));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),&
-setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x912+7092-0x24c5)){
+(0x323+2292-0xc16));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),&
+setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0xd3d+5876-0x2430)){
 return ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCnmiReq(PSTR
- pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0x15da+4155-0x2615)};if(
-(0x16a8+3280-0x2378)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
-(0xcd4+3963-0x1c4e);}else{notifySetReq.mt=(0x14a1+3630-0x22cd);}zSms_SendMsg(
+ pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0x2145+404-0x22d9)};if(
+(0x13fd+1059-0x1820)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
+(0x23a2+328-0x24e9);}else{notifySetReq.mt=(0x17d6+3494-0x257a);}zSms_SendMsg(
 MSG_CMD_NOTIFY_SET_REQ,sizeof(T_zSms_NotifySetReq),&notifySetReq);sem_wait(&
-g_sms_sem_id);if(g_smsOptRsp.result==(0xd20+2697-0x17a8)){return ZSMS_RESULT_OK;
+g_sms_sem_id);if(g_smsOptRsp.result==(0x1b5+8977-0x24c5)){return ZSMS_RESULT_OK;
 }else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmtInd(UINT8*pDatabuf){CHAR 
-needSMS[(0xc04+557-0xdff)]={(0x911+4203-0x197c)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x95a+5931-0x2085)==strcmp(needSMS,"\x6e\x6f")){
-printf(
+needSMS[(0x908+1777-0xfc7)]={(0x10f0+4378-0x220a)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x8fb+3132-0x1537)==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={(0x22c2+1008-0x26b2)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0x358+8885-0x260d)};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[(0x5f3+8488-0x26fd)]={
-(0x2107+741-0x23ec)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
-CHAR needSMS[(0x12ff+4023-0x2284)]={(0xc67+3861-0x1b7c)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1d4+4849-0x14c5)==strcmp(
+zSms_RecvCmtiInd(UINT8*pDatabuf){char sms_Main_state[(0x2dc+7721-0x20e7)]={
+(0xe84+5410-0x23a6)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
+CHAR needSMS[(0xd7a+4550-0x1f0e)]={(0xa76+7146-0x2660)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x867+2088-0x108f)==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")==
-(0x23c5+76-0x2411)){printf(
+(0x18b7+1300-0x1dcb)){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((0x13bb+1121-0x181c)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0x1dab+1460-0x235d))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0xe4c+637-0x10c9)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0xe8b+2252-0x1755))){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[(0xb8+1141-0x4fb)]={(0x12d2+923-0x166d)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x571+1927-0xcf8)==strcmp(needSMS,"\x6e\x6f")){
-printf(
+needSMS[(0x9bf+2246-0x1253)]={(0x2285+389-0x240a)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x19f0+2873-0x2529)==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={(0x125+5210-0x157f)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0x80b+2814-0x1309)};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[(0x21b0+639-0x2411)]={
-(0x1510+376-0x1688)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
-CHAR needSMS[(0x551+6963-0x2052)]={(0xe8c+920-0x1224)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1385+4374-0x249b)==strcmp(
+zSms_RecvCdsiInd(UINT8*pDatabuf){char sms_Main_state[(0x1c9d+521-0x1e88)]={
+(0xbba+2772-0x168e)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
+CHAR needSMS[(0xab+3971-0xffc)]={(0x5ca+286-0x6e8)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xdf4+4121-0x1e0d)==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")==
-(0x15d1+3806-0x24af)){printf(
+(0x983+3381-0x16b8)){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((0x1555+3306-0x223f)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0x2b7+8431-0x23a4))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0x1d39+1720-0x23f1)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0x1cf+301-0x2fa))){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={(0xac6+5142-0x1edc)};CHAR ackPduStr[(0x549+2023-0xcfe)]
-={(0x3d1+1448-0x979)};ackReq.ackmode=ack_mode;if(ack_mode==(0x98b+7108-0x254d)){
-zUfiSms_EncodePdu_DeliverReport(ackPduStr,(0x2e6+2759-0xcda));memcpy(ackReq.pdu,
-ackPduStr,strlen(ackPduStr));
-#if (0x1605+1726-0x1cc3)

-if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0xb70+2712-0x1607)){memcpy(ackReq.pdu,
+T_zSms_SmsAckReq ackReq={(0x1094+1044-0x14a8)};CHAR ackPduStr[
+(0x1a11+1201-0x1e90)]={(0x162b+3850-0x2535)};ackReq.ackmode=ack_mode;if(ack_mode
+==(0x9fa+5551-0x1fa7)){zUfiSms_EncodePdu_DeliverReport(ackPduStr,
+(0x143f+3491-0x210f));memcpy(ackReq.pdu,ackPduStr,strlen(ackPduStr));
+#if (0x63f+934-0x9e5)

+if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0x8d4+2780-0x13af)){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-(0x4d+4922-0x1385));}
+,ackPduStr);memcpy(ackReq.pdu,ackPduStr,ZSMS_PDU_SIZE-(0x1102+4875-0x240b));}
 #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)/(0xa33+6144-0x2231);}zSms_SendMsg(
+,ackReq.pdu);ackReq.length=strlen(ackPduStr)/(0xae5+3505-0x1894);}zSms_SendMsg(
 MSG_CMD_SMSACK_REQ,sizeof(T_zSms_SmsAckReq),&ackReq);sem_wait(&g_sms_sem_id);if(
-g_smsOptRsp.result==(0x1929+2991-0x24d7)){return ZSMS_RESULT_OK;}else{return 
+g_smsOptRsp.result==(0x525+2491-0xedf)){return ZSMS_RESULT_OK;}else{return 
 ZSMS_RESULT_ERROR;}}int zSms_SendZmgrReq(int index){T_zSms_ReadSmsReq readSmsReq
-={(0xa1f+4725-0x1c94)};iSmsIndex=index;printf(
+={(0x142d+4208-0x249d)};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(0x77+7211-0x1ca2);}VOID zSms_RecvZmgrRsp(
-UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0x12ed+357-0x1452)};memcpy(&tCmgrRsp,(
-T_zSms_SmsInd*)pDatabuf,sizeof(T_zSms_SmsInd));tCmgrRsp.index=iSmsIndex;
+T_zSms_ReadSmsReq),&readSmsReq);return(0x13c+5559-0x16f3);}VOID zSms_RecvZmgrRsp
+(UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0x13af+2920-0x1f17)};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={(0x1b91+2374-0x24d7)};memcpy(&smsOptRsp
-,(T_zSms_optRsp*)pDatabuf,sizeof(T_zSms_optRsp));if(smsOptRsp.result==
-(0x2e8+2757-0xdac)){sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{printf(
+UINT8*pDatabuf){T_zSms_optRsp smsOptRsp={(0x1d65+454-0x1f2b)};memcpy(&smsOptRsp,
+(T_zSms_optRsp*)pDatabuf,sizeof(T_zSms_optRsp));if(smsOptRsp.result==
+(0xb9c+875-0xf06)){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((
-(0x197+4920-0x14ce)==ptPara->result)&&((0xa2f+1520-0x101f)==ptPara->opertype)){
-CHAR needSms[(0x102+9222-0x24d6)]={(0xa81+4907-0x1dac)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0xf2f+1904-0x169f)!=strcmp(
+(0x7c3+7342-0x2470)==ptPara->result)&&((0x96a+5767-0x1ff1)==ptPara->opertype)){
+CHAR needSms[(0x11a4+4522-0x231c)]={(0x1dd+7039-0x1d5c)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0x553+860-0x8af)!=strcmp(
 needSms,"\x6e\x6f")){zSvr_Zpbic_Sms_Init();}}}VOID zSms_RecvCpmsInd(UINT8*
 pDatabuf){T_zSms_CpmsInd*cpmsInd=(T_zSms_CpmsInd*)pDatabuf;CHAR strBuf[
-(0x208+5437-0x173b)]={(0x171f+2856-0x2247)};int remainSpace=(0x113+6132-0x1907);
+(0x34f+7123-0x1f18)]={(0xdba+6094-0x2588)};int remainSpace=(0x70f+6278-0x1f95);
 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,(0xb17+1178-0xfb1),
-(0x759+5465-0x1ca8));snprintf(strBuf,sizeof(strBuf),"\x25\x64",cpmsInd->used);
+ZTE_WMS_NVCONFIG_SIM_CAPABILITY,strBuf);memset(&strBuf,(0x1a1+1197-0x64e),
+(0x5cc+6259-0x1e35));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,(0xf93+1245-0x1470),(0x166+7100-0x1d18));snprintf(
+cpmsInd->used;memset(&strBuf,(0xaef+5647-0x20fe),(0x659+776-0x957));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 (0x195a+2978-0x24bc)

+#define AT_CMD_MAX (0xfab+1648-0x15db)

 #define ZAT_TAB_REPLACE                     ((unsigned char )(\
-(0x1694+2076-0x1db4)))    

-#define ZAT_NULL_FILL                       ((unsigned char )(\
-(0x94b+2840-0x1366)))    

+(0x1c9c+2460-0x253c)))    

+#define ZAT_NULL_FILL                       ((unsigned char )((0x122+2248-0x8ed)\
+))    

 #define ZAT_SPACE_REPLACE                   ((unsigned char )(\
-(0x1868+2450-0x20fc)))    

-#define ZAT_LF_REPLACE                      ((unsigned char )((0x558+284-0x579))\
-)    

-#define ZAT_CR_REPLACE                      ((unsigned char )((0xaac+99-0xa15)))\
-    

+(0x1731+2168-0x1eab)))    

+#define ZAT_LF_REPLACE                      ((unsigned char )(\
+(0x62a+4773-0x17d4)))    

+#define ZAT_CR_REPLACE                      ((unsigned char )(\
+(0x553+8614-0x25ff)))    

 static void atBase_PreProcRes(char*pParaLine,int paraSize){signed long flg=
-(0x477+7129-0x2050);unsigned long i=(0xac0+386-0xc42);unsigned long length=
-(0xba+1662-0x738);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=(
-char*)malloc(AT_CMD_MAX);if(NULL==pStrDestMalloc){return;}memset(pStrDestMalloc,
-(0x1012+1113-0x146b),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
-length=strlen(pParaLine);if((length==(0xca3+6140-0x249f))||(length>=AT_CMD_MAX))
-{free(pStrDestMalloc);return;}for(i=(0x1c5+4640-0x13e5);(i<length)&&(pDest-
-pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x2174+926-0x24f0))==*pSource){flg=(
-(0x19+2833-0xb2a)==flg)?(0x1800+3852-0x270b):(0x18b3+2730-0x235d);if(
-((char)(0x16af+1068-0x1ab9))==*(pSource+(0x22a9+403-0x243b))){*pDest++=(char)
-ZAT_NULL_FILL;}}else if((((char)(0x9b+1945-0x808))==*pSource)&&(
-(0x158b+3141-0x21d0)==flg)){*pDest++=((char)(0x60+4359-0x1147));if(
-((char)(0x953+6623-0x2306))==*(pSource+(0x515+8505-0x264d))){*pDest++=
-((char)(0x1c35+1434-0x2196));}else if('\0'==*(pSource+(0x141d+1246-0x18fa))){*
-pDest++=(char)ZAT_NULL_FILL;}}else{if((((char)(0xb60+6451-0x2473))==*pSource)&&(
-(0xa92+4307-0x1b64)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
-pSource)&&((0x1bd+7119-0x1d8b)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
-'\n'==*pSource)&&((0x4ff+5357-0x19eb)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}else
- if(('\r'==*pSource)&&((0x2302+327-0x2448)==flg)){*pDest++=(char)ZAT_CR_REPLACE;
-}else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,(0x5b+7557-0x1de0),
-paraSize);strncpy(pParaLine,pStrDestMalloc,paraSize-(0x1389+4612-0x258c));free(
+(0xe43+5379-0x2346);unsigned long i=(0x622+4342-0x1718);unsigned long length=
+(0x1157+3151-0x1da6);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=
+(char*)malloc(AT_CMD_MAX);if(NULL==pStrDestMalloc){return;}memset(pStrDestMalloc
+,(0x892+6111-0x2071),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
+length=strlen(pParaLine);if((length==(0xb37+871-0xe9e))||(length>=AT_CMD_MAX)){
+free(pStrDestMalloc);return;}for(i=(0x9d5+7250-0x2627);(i<length)&&(pDest-
+pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x110b+2214-0x198f))==*pSource){flg=(
+(0x16dd+1489-0x1cae)==flg)?(0x287+3229-0xf23):(0x1392+528-0x15a2);if(
+((char)(0xdd3+3510-0x1b67))==*(pSource+(0x1225+942-0x15d2))){*pDest++=(char)
+ZAT_NULL_FILL;}}else if((((char)(0x851+1619-0xe78))==*pSource)&&(
+(0x1758+1232-0x1c28)==flg)){*pDest++=((char)(0xe7b+379-0xfd6));if(
+((char)(0x12ad+5113-0x267a))==*(pSource+(0xdd1+2970-0x196a))){*pDest++=
+((char)(0x3e2+3098-0xfc3));}else if('\0'==*(pSource+(0x1a69+519-0x1c6f))){*pDest
+++=(char)ZAT_NULL_FILL;}}else{if((((char)(0x1b94+2916-0x26d8))==*pSource)&&(
+(0x5c6+1446-0xb6b)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
+pSource)&&((0x55a+8478-0x2677)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
+'\n'==*pSource)&&((0x245+4523-0x13ef)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}else
+ if(('\r'==*pSource)&&((0x75b+3123-0x138d)==flg)){*pDest++=(char)ZAT_CR_REPLACE;
+}else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,(0x383+404-0x517),paraSize
+);strncpy(pParaLine,pStrDestMalloc,paraSize-(0x4f1+6200-0x1d28));free(
 pStrDestMalloc);}VOID zSms_RecvCscaInd(UINT8*pDatabuf){T_zSms_CscaInd cscaInd={
-(0xc06+3253-0x18bb)};
-#if (0x154f+1152-0x19ce)
+(0x385+1585-0x9b6)};
+#if (0xb62+5910-0x2277)
 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 (0x275+4173-0x12c1)
+#if (0x121+6723-0x1b63)
 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);
@@ -310,22 +312,22 @@
 sc_cfg_set(NV_SMS_CENTER_NUM,cscaInd.sca);zUfiSms_SetScaPara(cscaInd.sca);}VOID 
 zSms_RecvZmglInd(UINT8*pDatabuf){zUfiSms_CmglRespProc((T_zSms_SmsInd*)pDatabuf);
 }int zSms_SendSmsInitReq(VOID){zSms_SendMsg(MSG_CMD_SMSINIT_REQ,
-(0x240d+193-0x24ce),NULL);return(0x35b+445-0x518);}VOID zSms_initAtOk(VOID){
-T_zUfiSms_StatusInfo tStatus={(0x369+6117-0x1b4e)};sc_cfg_set(NV_SMS_STORE,
+(0x1748+156-0x17e4),NULL);return(0x626+1706-0xcd0);}VOID zSms_initAtOk(VOID){
+T_zUfiSms_StatusInfo tStatus={(0x10b+411-0x2a6)};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={(0x20a+8207-0x2219)};sc_cfg_set(NV_SMS_LOAD_RESULT
+T_zUfiSms_StatusInfo tStatus={(0x584+6585-0x1f3d)};sc_cfg_set(NV_SMS_LOAD_RESULT
 ,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_LOADED);tStatus.
 cmd_status=WMS_CMD_FAILED;tStatus.cmd=WMS_SMS_CMD_INIT;(void)
 zUfiSms_SetCmdStatus(&tStatus);}VOID zSms_RecvSmsInitRst(UINT8*pDatabuf){memcpy(
 &g_smsOptRsp,pDatabuf,sizeof(T_zSms_optRsp));if(g_smsOptRsp.result==
-(0x9cf+2714-0x1468)){zSms_initAtOk();}else{zSms_initAtErr();}}UINT8 
+(0x1bc5+748-0x1eb0)){zSms_initAtOk();}else{zSms_initAtErr();}}UINT8 
 zSms_SmsMsgCreat(VOID){g_zSms_MsqId=msgget(MODULE_ID_SMS,IPC_CREAT|
-(0xe03+4300-0x1d4f));if(g_zSms_MsqId==-(0x17ac+588-0x19f7)){return ZUFI_FAIL;}
-g_zSms_LocalMsqId=msgget(MODULE_ID_SMS_LOCAL,IPC_CREAT|(0x720+5787-0x1c3b));if(
-g_zSms_LocalMsqId==-(0x2e1+549-0x505)){return ZUFI_FAIL;}sem_init(&g_sms_sem_id,
-(0x84d+3915-0x1798),(0x1368+846-0x16b6));return ZUFI_SUCC;}void 
+(0xc74+1274-0xfee));if(g_zSms_MsqId==-(0xc6b+3916-0x1bb6)){return ZUFI_FAIL;}
+g_zSms_LocalMsqId=msgget(MODULE_ID_SMS_LOCAL,IPC_CREAT|(0x7fc+5701-0x1cc1));if(
+g_zSms_LocalMsqId==-(0x1c9b+65-0x1cdb)){return ZUFI_FAIL;}sem_init(&g_sms_sem_id
+,(0x1922+1102-0x1d70),(0x1af6+2504-0x24be));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:
@@ -349,44 +351,44 @@
 case MSG_CMD_NEWSMS_IND:case MSG_CMD_ZPBIC_IND:case MSG_CMD_ZMGL_IND:case 
 MSG_CMD_NEWSMS_STATUS_IND:ipc_send_message(MODULE_ID_SMS,MODULE_ID_SMS_LOCAL,
 ptMsgBuf->usMsgCmd,ptMsgBuf->usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,
-(0x1fa+729-0x4d3));break;default:break;}}VOID zSms_HandleResetToFactory(){CHAR 
-clearSms[(0xa02+2993-0x1581)]={(0x2c4+8803-0x2527)};sc_cfg_get(
+(0x25a+7929-0x2153));break;default:break;}}VOID zSms_HandleResetToFactory(){CHAR
+ clearSms[(0x1871+2544-0x222f)]={(0x759+1666-0xddb)};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")==(0x3b8+7968-0x22d8)){printf(
+,clearSms);if(strcmp(clearSms,"\x79\x65\x73")==(0x327+5545-0x18d0)){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,(0x1061+1550-0x166f),NULL,
-(0xf33+1314-0x1455));}void zSms_HandleMainCtrlMsg(MSG_BUF*ptMsgBuf){assert(
+MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,(0x1461+3029-0x2036),NULL,
+(0x163+6829-0x1c10));}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=(0x201d+1760-0x26fd);MSG_BUF stMsg={
-(0x3bf+3831-0x12b6)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((int
+sms_msg_thread_proc(void*arg){int iRet=(0xb60+1700-0x1204);MSG_BUF stMsg={
+(0x3d4+8753-0x2605)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((int
 *)arg);prctl(PR_SET_NAME,"\x73\x6d\x73\x5f\x6c\x6f\x63\x61\x6c",
-(0x7a3+278-0x8b9),(0x18bc+1271-0x1db3),(0xe21+1790-0x151f));while(
-(0xd52+5934-0x247f)){iRet=(0x92f+1422-0xebd);memset(&stMsg,(0x556+8118-0x250c),
-sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x1139+633-0x13b2),
-(0x1b79+2675-0x25ec));if(iRet>=(0x15d8+2370-0x1f1a)){switch(stMsg.src_id){case 
+(0x12c9+582-0x150f),(0x91b+1988-0x10df),(0xf74+4524-0x2120));while(
+(0xb22+3411-0x1874)){iRet=(0x59b+2292-0xe8f);memset(&stMsg,(0x529+2870-0x105f),
+sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0xe87+2449-0x1818),
+(0x19f0+3295-0x26cf));if(iRet>=(0x22a1+326-0x23e7)){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=(0x1a26+1706-0x20d0);MSG_BUF msgBuf={(0x1383+1524-0x1977)};CHAR 
-needSMS[(0xfa7+3055-0x1b64)]={(0x2e6+7041-0x1e67)};prctl(PR_SET_NAME,
-"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x905+942-0xcb3),(0xb4b+1233-0x101c),
-(0x134b+4750-0x25d9));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
-sizeof(needSMS));if((0x10c4+852-0x1418)!=strcmp(needSMS,"\x6e\x6f")){
+recv_thread_tid=(0x546+178-0x5f8);MSG_BUF msgBuf={(0x85a+5342-0x1d38)};CHAR 
+needSMS[(0x16ea+2122-0x1f02)]={(0xea3+1178-0x133d)};prctl(PR_SET_NAME,
+"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x14fd+359-0x1664),(0xcb6+5473-0x2217),
+(0x322+7676-0x211e));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
+sizeof(needSMS));if((0x453+7708-0x226f)!=strcmp(needSMS,"\x6e\x6f")){
 zUfiSms_InitDb();zUfiSms_CfgSmsNvInit();zUfiMmi_SendSmsStatus();zSms_SmsMsgCreat
-();}else{return-(0x263+6225-0x1ab3);}printf(
+();}else{return-(0x189f+1040-0x1cae);}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))==-(0x950+742-0xc35)){assert((0x1a6d+2146-0x22cf));}
-sms_msg_thread_proc(&g_zSms_MsqId);return(0x34c+1379-0x8af);}
+*)(&g_zSms_LocalMsqId))==-(0x4f5+7384-0x21cc)){assert((0x270+7721-0x2099));}
+sms_msg_thread_proc(&g_zSms_MsqId);return(0x8bc+7114-0x2486);}
diff --git a/ap/app/zte_comm/sms/src/sms_proc.c b/ap/app/zte_comm/sms/src/sms_proc.c
index b1000c9..fe2cb6f 100755
--- a/ap/app/zte_comm/sms/src/sms_proc.c
+++ b/ap/app/zte_comm/sms/src/sms_proc.c
@@ -5,115 +5,115 @@
 T_zUfiSms_ConcatInfo g_zUfiSms_ConcatSms;T_zUfiSms_GroupInfo g_zUfiSms_GroupSms;
 T_zUfiSms_DbStoreData g_zUfiSms_DbStoreData[ZTE_WMS_CONCAT_SMS_COUNT_MAX];UINT8 
 g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_MAX]={FALSE,FALSE};T_zUfiSms_DelSms 
-g_zUfiSms_DelMsg;T_zUfiSms_DelIndexInfo g_deleteIndex={(0x1dc5+82-0x1e17)};
-T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0x11f9+3557-0x1fde)};
-T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0x1519+1475-0x1adc)};int 
-g_zUfiSms_UnitLen=(0xc8c+3277-0x1959);int g_zUfiSms_ConcatTotalNum=
-(0x17c6+3905-0x2707);int g_zUfiSms_CurConcatSegNo=(0x1193+1421-0x1720);UINT8 
-g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0x807+769-0xb08);
-int g_zUfiSms_MsgRefer=(0x145c+2763-0x1f27);int g_zUfiSms_SendFailedRetry=
-(0xb84+6462-0x24c2);char g_Zmena_value[(0xe0+7872-0x1f9e)]={(0x677+6655-0x2076)}
-;int g_displaymode=(0x766+1707-0xe11);extern SMS_LOCATION g_zUfiSms_CurLocation;
-extern T_zUfiSms_CmdStatus zUfiSms_HandleReport(unsigned char*ptPduData);extern 
-void zUfiSms_GetReportStatus(char*pdu_tmp,int*stat);extern VOID 
+g_zUfiSms_DelMsg;T_zUfiSms_DelIndexInfo g_deleteIndex={(0x11ab+5072-0x257b)};
+T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0x13a1+2914-0x1f03)};
+T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0xb83+6302-0x2421)};int 
+g_zUfiSms_UnitLen=(0x1755+2050-0x1f57);int g_zUfiSms_ConcatTotalNum=
+(0x114+3667-0xf67);int g_zUfiSms_CurConcatSegNo=(0x1494+4280-0x254c);UINT8 
+g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0xdb0+4655-0x1fdf)
+;int g_zUfiSms_MsgRefer=(0xbe1+1037-0xfee);int g_zUfiSms_SendFailedRetry=
+(0x2dc+5290-0x1786);char g_Zmena_value[(0xf5a+1876-0x16ac)]={(0xc87+4385-0x1da8)
+};int g_displaymode=(0xf63+981-0x1338);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[
-(0x13b4+1218-0x186a)];}FOTA_MSG_BUF;
-#define WEBUI_NOTIFY_PUSH_MSG_  (0xfcc+2192-0x1859)

+(0xc44+918-0xfce)];}FOTA_MSG_BUF;
+#define WEBUI_NOTIFY_PUSH_MSG_  (0x3e4+5049-0x179a)

 typedef struct{unsigned int isread_record;unsigned int inbox_full;}
 T_zUfiMmi_SmsRecord;void zUfiMmi_SendSmsStatus(void){int iSmsNum=
-(0x6e0+3609-0x14f9);T_zUfiMmi_SmsRecord tRecord={(0x923+4676-0x1b67)};CHAR 
-smsNum[(0x15ed+3788-0x2487)]={(0x15+6710-0x1a4b)};sc_cfg_get(NV_SMS_IN_NUM,
-smsNum,sizeof(smsNum));iSmsNum=atoi(smsNum);tRecord.isread_record=
-zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_MAX);if(iSmsNum>=ZSMS_NUM_MAX_CPE){tRecord.
-inbox_full=(0xc4c+2080-0x146b);}else{tRecord.inbox_full=(0x7b4+6022-0x1f3a);}}
-VOID zUfiSms_Init(VOID){zUfiSms_CfgInit();zUfiSms_ChangeMainState(
-SMS_STATE_INITING);}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=
-(0x1b14+3025-0x26e5);T_zUfiSms_StatusInfo tStatus={(0xe99+4269-0x1f46)};CHAR 
-outDate[(0x1fe6+1638-0x261a)]={(0x430+854-0x786)};zUfiSms_Init();
-zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_INIT);zSms_SendSmsInitReq();at_print(
-LOG_DEBUG,"corem zSvr_Zpbic_Sms_Init has send init req\n");zSms_SendZmenaReq(
-(0xbf6+769-0xef7));at_print(LOG_DEBUG,
+(0x43d+5275-0x18d8);T_zUfiMmi_SmsRecord tRecord={(0x1e7+8202-0x21f1)};CHAR 
+smsNum[(0xe6+3806-0xf92)]={(0x1de5+2272-0x26c5)};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=
+(0x101b+2079-0x1839);}else{tRecord.inbox_full=(0xb43+1124-0xfa7);}}VOID 
+zUfiSms_Init(VOID){zUfiSms_CfgInit();zUfiSms_ChangeMainState(SMS_STATE_INITING);
+}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=(0x1425+3977-0x23ae);
+T_zUfiSms_StatusInfo tStatus={(0xb58+2689-0x15d9)};CHAR outDate[
+(0xe37+6067-0x25b8)]={(0x638+2049-0xe39)};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(
+(0x8fc+7037-0x2479));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((0x9a1+3843-0x18a4)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck(
+,outDate);if((0x488+714-0x752)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck(
 ZUFI_NULL);}}VOID zUfiSms_DeleteAllSimSms(VOID){zUfiSms_DeleteAllSimSmsInDb();}
-#if (0x651+3798-0x1527)

-VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0x361+7056-0x1ebf)]={
-(0x12ea+2731-0x1d95)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
-g_Zmena_rsp&&((0xadb+6703-0x250a)!=strcmp(
-"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0x1d97+1801-0x24a0)!=
+#if (0xd69+3281-0x1a3a)

+VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0x14b4+2675-0x1ef5)]={
+(0x7b2+2096-0xfe2)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
+g_Zmena_rsp&&((0x1515+3-0x1518)!=strcmp(
+"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0x1019+5417-0x2542)!=
 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 (0x11db+157-0x1278)

-CHAR ackPduStr[(0xc96+6510-0x2474)]={(0x1a8b+3018-0x2655)};SMS_PARAM reportParam
-={(0x18d2+971-0x1c9d)};int total_length=(0x17a7+2032-0x1f97);UINT8 TP_FCS=
-(0xfe7+4537-0x21a0);CHAR strValue[(0xe0c+1702-0x14b0)]={(0xd6+966-0x49c)};if(
-needAck){TP_FCS=(0x1f2a+1972-0x26de);sprintf(strValue,"\x25\x64",
-(0xe00+84-0xe53));}else{TP_FCS=(0x291+127-0x23d);sprintf(strValue,"\x25\x64",
-(0x1372+1890-0x1ad2));}sprintf(reportParam.SCA,"\x25\x73",cfg_get(
+#if (0x13f7+3455-0x2176)

+CHAR ackPduStr[(0x15e0+691-0x1703)]={(0x1c4+8832-0x2444)};SMS_PARAM reportParam=
+{(0x1aac+1494-0x2082)};int total_length=(0x6dc+147-0x76f);UINT8 TP_FCS=
+(0x2f5+8132-0x22b9);CHAR strValue[(0x10af+3716-0x1f31)]={(0x12a5+782-0x15b3)};if
+(needAck){TP_FCS=(0x1021+3013-0x1be6);sprintf(strValue,"\x25\x64",
+(0xdda+1677-0x1466));}else{TP_FCS=(0x1a8+8976-0x23e5);sprintf(strValue,
+"\x25\x64",(0x1c31+584-0x1e77));}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,(0x860+2043-0x105b),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu.
+g_zUfiSms_ackPdu,(0xdaf+5972-0x2503),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu.
 length=String2Bytes(ackPduStr,g_zUfiSms_ackPdu.pdu,strlen(ackPduStr));memset(
-g_zUfiSms_ackPdu.pdu,(0x152a+2255-0x1df9),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
+g_zUfiSms_ackPdu.pdu,(0x90d+2911-0x146c),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
 g_zUfiSms_ackPdu.pdu,&ackPduStr,sizeof(ackPduStr));atBase_SendMsgToSelf(
 ZAT_CNMA_CMD,strValue,sizeof(strValue));
 #endif

-#if (0x7c2+3698-0x1634)
-CHAR strValue[(0x1df+2791-0xcc4)]={(0x16e2+1301-0x1bf7)};if(needAck){snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0x1c5+4286-0x1282));}else{snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0x141c+4096-0x241a));}zSvr_InnerSendMsg(
+#if (0x72a+5465-0x1c83)
+CHAR strValue[(0xe55+4258-0x1ef5)]={(0x1132+167-0x11d9)};if(needAck){snprintf(
+strValue,sizeof(strValue),"\x25\x64",(0x1276+2761-0x1d3e));}else{snprintf(
+strValue,sizeof(strValue),"\x25\x64",(0x15c8+1400-0x1b3e));}zSvr_InnerSendMsg(
 ZUFI_MODULE_ID_AT_LOCAL,ZUFI_MODULE_ID_AT_UNSOLI,MSG_CMD_AT_CNMA,strlen(strValue
 ),strValue);
 #endif

-if(needAck){zSms_SendCnmaReq((0x142b+166-0x14d0));}else{zSms_SendCnmaReq(
-(0x1a3c+1528-0x2032));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq
-*ptSendMsg){if(NULL==ptSendMsg||(0x1d1+6095-0x19a0)==ptSendMsg->receiver_count){
+if(needAck){zSms_SendCnmaReq((0x1136+5367-0x262c));}else{zSms_SendCnmaReq(
+(0xd58+317-0xe93));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq*
+ptSendMsg){if(NULL==ptSendMsg||(0x57a+6022-0x1d00)==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[(0x33a+2196-0xbce)],ptSendMsg->
+,ptSendMsg->receiver_count,ptSendMsg->dest_num[(0xe43+5767-0x24ca)],ptSendMsg->
 msg_len,ptSendMsg->id);
-#if (0x136d+2213-0x1c11)
+#if (0xe94+287-0xfb2)
 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=(0xfc4+2674-0x1a36);
-if(ptSendMsg->isDelete==TRUE||-(0x5f4+4909-0x1920)!=ptSendMsg->id){(void)
+sc_cfg_set(NV_SMS_SEND_RESULT,"");g_zUfiSms_SendFailedCount=(0x6ad+3566-0x149b);
+if(ptSendMsg->isDelete==TRUE||-(0x1379+2062-0x1b86)!=ptSendMsg->id){(void)
 zUfiSms_DeleteDraftSms(ptSendMsg->id);}zUfiSms_SetGlobalDcsLang(ptSendMsg->dcs);
-memset(&g_zUfiSms_GroupSms,(0x5e1+7662-0x23cf),sizeof(g_zUfiSms_GroupSms));if(
+memset(&g_zUfiSms_GroupSms,(0xa63+4849-0x1d54),sizeof(g_zUfiSms_GroupSms));if(
 ZUFI_FAIL==zUfiSms_FillGroupSms(ptSendMsg,&g_zUfiSms_GroupSms)){return 
-WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0x919+6956-0x2445),sizeof(
+WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0x50+3418-0xdaa),sizeof(
 g_zUfiSms_ConcatSms));g_zUfiSms_UnitLen=zUfiSms_FillConcatSms(ptSendMsg,&
 g_zUfiSms_ConcatSms);g_zUfiSms_IsConcatSendSuc=TRUE;g_zUfiSms_CurConcatSegNo=
-(0x108f+718-0x135d);memset(g_zUfiSms_DbStoreData,(0x301+912-0x691),sizeof(
-g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0x7fa+7069-0x238d)){
-g_displaymode=(0x137d+2232-0x1c34);at_print(LOG_DEBUG,
+(0x11ec+683-0x1497);memset(g_zUfiSms_DbStoreData,(0xff+6232-0x1957),sizeof(
+g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0x4fb+2182-0xd77)){
+g_displaymode=(0x852+6110-0x202f);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=(0x1196+2223-0x1a45);at_print(LOG_DEBUG,
+);}else{g_displaymode=(0x40d+1942-0xba3);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=(0xc30+5572-0x21f4);T_zUfiSms_CmdStatus result=
+ tGroupSms;int iSmsLen=(0x742+2786-0x1224);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,(0x21+3977-0xfaa),sizeof(T_zUfiSms_ConcatInfo));memset(&
-tGroupSms,(0xabd+6526-0x243b),sizeof(T_zUfiSms_GroupInfo));(void)
+memset(&tConcatSms,(0x1c6+351-0x325),sizeof(T_zUfiSms_ConcatInfo));memset(&
+tGroupSms,(0x764+922-0xafe),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=
-(0x1778+3487-0x2517);tGroupSms.current_receiver<tGroupSms.total_receiver;
-tGroupSms.current_receiver++){tConcatSms.current_sending=(0x4f1+5430-0x1a27);
+(0x1960+1255-0x1e47);tGroupSms.current_receiver<tGroupSms.total_receiver;
+tGroupSms.current_receiver++){tConcatSms.current_sending=(0xd41+1574-0x1367);
 result=zUfiSms_SaveSmsToDb(pSaveBuff,&tConcatSms,&tGroupSms,iSmsLen);at_print(
 LOG_DEBUG,
 "\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x52\x61\x77\x53\x6d\x73\x20\x63\x75\x72\x72\x65\x6e\x74\x5f\x72\x65\x63\x65\x69\x76\x65\x72\x3d\x25\x64\x2c\x72\x65\x73\x75\x6c\x74\x3d\x25\x64" "\n"
@@ -127,16 +127,16 @@
 memoryFullbeforeDelete=FALSE;BOOL unreadBeforeDelete=FALSE;if(NULL==ptDelBuff){
 return WMS_CMD_FAILED;}at_print(LOG_DEBUG,
 "\x5b\x53\x4d\x53\x5d\x20\x21\x21\x21\x21\x21\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x6d\x73\x21\x21\x63\x6f\x75\x6e\x74\x3a\x25\x64\x2f\x69\x64\x5b\x25\x64\x5d\x2e" "\n"
-,ptDelBuff->all_or_count,ptDelBuff->id[(0x1396+2945-0x1f17)]);(void)
+,ptDelBuff->all_or_count,ptDelBuff->id[(0x114b+3604-0x1f5f)]);(void)
 zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_ChangeMainState(
-SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0x305+2908-0xe61),sizeof(
+SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0x1c66+202-0x1d30),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((0x326+6650-0x1d20)<
+,g_zUfiSms_DelMsg.nv_count,g_zUfiSms_DelMsg.sim_count);if((0x980+2743-0x1437)<
 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((0x18bc+15-0x18cb));}if(memoryFullbeforeDelete&&!
+);zSms_SendZmenaReq((0xd95+2081-0x15b6));}if(memoryFullbeforeDelete&&!
 g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]||unreadBeforeDelete&&!
 zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_DEFAULT);}}if((0x16ab+408-0x1843)<g_zUfiSms_DelMsg.sim_count){result=
+MSG_SMS_DEFAULT);}}if((0x391+5270-0x1827)<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=(0xf7d+2877-0x1aba);
-T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0x324+3633-0x1123)]=
-{(0x998+2432-0x1318)};if(NULL==ptModifyBuff){at_print(LOG_ERR,
+T_zUfiSms_ModifyFlag*ptModifyBuff){unsigned long i=(0x67d+78-0x6cb);
+T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0xa4b+2857-0x1542)]=
+{(0x6ca+3788-0x1596)};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=(0x1ad0+1206-0x1f86);i<ptModifyBuff->total_id;i++){if(
-ptModifyBuff->id[i]<(0x2cf+6877-0x1dab)||ZUFI_FAIL==zUfiSms_UpdateSmsTagInDb(
+WMS_CMD_FAILED;}for(i=(0x2db+3157-0xf30);i<ptModifyBuff->total_id;i++){if(
+ptModifyBuff->id[i]<(0xcfa+5204-0x214d)||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[(0x2352+329-0x249b)])){return ZUFI_FAIL;}if(
-(0x1977+1774-0x2065)==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){
-zUfiSms_SendSmsStatusInfo(MSG_SMS_READING);}if((0x1d8+922-0x572)==strcmp(
-acStorePos,ZTE_WMS_DB_SIM_TABLE)&&ptModifyBuff->total_id>(0x78+727-0x34f)){
-zUfiSms_ModifyModemSms(ptModifyBuff);}return result;}T_zUfiSms_CmdStatus 
-zUfiSms_SetSmsPara(T_zUfiSms_ParaInfo*ptParaBuff){int atRes=(0x3a6+6503-0x1d0d);
-CHAR sca[ZTE_WMS_ADDRESS_DIGIT_MAX_V01+(0x1675+378-0x17ee)]={(0x5cb+6986-0x2115)
-};CHAR store[(0x35a+2249-0xc0f)]={(0xc0+9067-0x242b)};CHAR defaultStore[
-(0x29d+4480-0x13eb)]={(0x1077+3561-0x1e60)};if(ptParaBuff==ZUFI_NULL){return 
-WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=(0x173+5037-0x1520)){strncpy(sca,
-ptParaBuff->sca,sizeof(sca)-(0x882+918-0xc17));at_print(LOG_DEBUG,
+ptModifyBuff->id[(0x1b6+2999-0xd6d)])){return ZUFI_FAIL;}if((0x18ec+1375-0x1e4b)
+==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){zUfiSms_SendSmsStatusInfo(
+MSG_SMS_READING);}if((0xae9+3027-0x16bc)==strcmp(acStorePos,ZTE_WMS_DB_SIM_TABLE
+)&&ptModifyBuff->total_id>(0x594+4811-0x185f)){zUfiSms_ModifyModemSms(
+ptModifyBuff);}return result;}T_zUfiSms_CmdStatus zUfiSms_SetSmsPara(
+T_zUfiSms_ParaInfo*ptParaBuff){int atRes=(0xe21+2138-0x167b);CHAR sca[
+ZTE_WMS_ADDRESS_DIGIT_MAX_V01+(0x1283+3113-0x1eab)]={(0x93d+4710-0x1ba3)};CHAR 
+store[(0x9f2+2095-0x120d)]={(0x14a+1509-0x72f)};CHAR defaultStore[
+(0x217+4442-0x133f)]={(0xbb+7806-0x1f39)};if(ptParaBuff==ZUFI_NULL){return 
+WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=(0x1260+2650-0x1cba)){strncpy(sca,
+ptParaBuff->sca,sizeof(sca)-(0x6bc+1352-0xc03));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')&&((0x66b+1760-0xd4b)!=strcmp(
-defaultStore,ptParaBuff->default_store))){{strncpy(store,ptParaBuff->
-default_store,sizeof(store)-(0xe2c+4271-0x1eda));}atRes=zSms_SendCnmiReq(store);
-if(atRes!=ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0x22ca+721-0x259a)==
+if((*(ptParaBuff->default_store)!='\0')&&((0x3c+2694-0xac2)!=strcmp(defaultStore
+,ptParaBuff->default_store))){{strncpy(store,ptParaBuff->default_store,sizeof(
+store)-(0x884+5123-0x1c86));}atRes=zSms_SendCnmiReq(store);if(atRes!=
+ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0x846+6859-0x2310)==
 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[(0x1c39+2608-0x2664)]={(0x75f+1636-0xdc3)};char remind_flag[
-(0x1a7+3294-0xe80)];int sms_count=(0x10af+4030-0x206d);int remind_count=
-(0x493+4801-0x1754);memset(sms_rec_flag,(0x578+6367-0x1e57),sizeof(sms_rec_flag)
-);sc_cfg_get(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag,sizeof(sms_rec_flag));
-sms_count=atoi(sms_rec_flag);if(sms_count<(0x1812+544-0x1a32)||sms_count>INT_MAX
--(0x18b1+522-0x1aba)){at_print(LOG_ERR,
+char sms_rec_flag[(0x16d+1853-0x8a5)]={(0x897+3326-0x1595)};char remind_flag[
+(0xbe3+1705-0x1287)];int sms_count=(0x88b+3327-0x158a);int remind_count=
+(0xa91+674-0xd33);memset(sms_rec_flag,(0x1171+425-0x131a),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<(0x3d7+5576-0x199f)||sms_count>INT_MAX
+-(0xe8a+1188-0x132d)){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,(0x6b+3410-0xdbd),sizeof(sms_rec_flag));
-snprintf(sms_rec_flag,sizeof(sms_rec_flag),"\x25\x64",sms_count+
-(0x5c+3019-0xc26));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);sc_cfg_set
-(ZTE_WMS_NVCONFIG_RECEVIED_LED,sms_rec_flag);memset(remind_flag,
-(0x1036+2608-0x1a66),sizeof(remind_flag));snprintf(remind_flag,sizeof(
-remind_flag),"\x25\x64",remind_count+(0x847+1884-0xfa2));sc_cfg_set(
+,sms_count);return;}memset(sms_rec_flag,(0x987+2733-0x1434),sizeof(sms_rec_flag)
+);snprintf(sms_rec_flag,sizeof(sms_rec_flag),"\x25\x64",sms_count+
+(0x93d+5305-0x1df5));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);
+sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED_LED,sms_rec_flag);memset(remind_flag,
+(0x1003+3708-0x1e7f),sizeof(remind_flag));snprintf(remind_flag,sizeof(
+remind_flag),"\x25\x64",remind_count+(0x38+9457-0x2528));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]={
-(0xce0+6085-0x24a5)};T_zUfiSms_DbStoreData tDbStoreData={(0x1551+1185-0x19f2)};
-int isPushSms=(0x14e7+2732-0x1f93);if(strcmp(ptRespData->pdu,"")==
-(0x53f+941-0x8ec)){CHAR srState[(0x83c+6892-0x22f6)]={(0xf0b+4410-0x2045)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x562+1644-0xbce)!=strcmp(
+(0x9ea+4102-0x19f0)};T_zUfiSms_DbStoreData tDbStoreData={(0xe76+2412-0x17e2)};
+int isPushSms=(0x381+247-0x478);if(strcmp(ptRespData->pdu,"")==
+(0x1052+195-0x1115)){CHAR srState[(0xac9+1469-0x1054)]={(0x1c56+180-0x1d0a)};
+sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x82f+5473-0x1d90)!=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(
-(0x1e3b+550-0x205c)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
+(0xce3+2467-0x1681)==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!=
-(0x2c0+9227-0x26ca)){return(0x13bf+2999-0x1f76);}zUfiSms_GetCurrentRecvTotalSeq(
+(0x617+4819-0x18e9)){return(0x3ac+8367-0x245b);}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[(0x1707+2906-0x2261)],data->
-concat_info[(0x9b1+4929-0x1cf1)],data->concat_info[(0x9f4+2080-0x1212)]);if(data
-->concat_info[(0xb5a+2175-0x13d8)]==atoi(pmsg->total_seq)){return
-(0x46b+2175-0xcea);}return-(0x658+5557-0x1c0c);}void zUfiSms_TrafficChangeSmsTag
-(T_zUfiSms_DbStoreData*data){CHAR smsNumber[(0x388+266-0x460)]={
-(0x970+6739-0x23c3)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,smsNumber,sizeof(smsNumber
-));if((0x418+4667-0x1653)==strcmp(smsNumber,data->number)){data->tag=
-WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=(0xefb+2965-0x1a8f);}}void 
-zUfiSms_HandleTrafficSms(T_zUfiSms_DbStoreData*data){int iSmsId=
-(0x414+7647-0x21f3);SMS_MSG_INFO msg={(0x163+2238-0xa21)};CHAR smsNumber[
-(0x1422+3087-0x1fff)]={(0xb5c+4026-0x1b16)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
+,pmsg->id,atoi(pmsg->total_seq),data->concat_info[(0x147+7478-0x1e7d)],data->
+concat_info[(0xad8+5057-0x1e98)],data->concat_info[(0x7c6+2218-0x106e)]);if(data
+->concat_info[(0x5d5+1524-0xbc8)]==atoi(pmsg->total_seq)){return
+(0x685+4804-0x1949);}return-(0x5b3+8404-0x2686);}void 
+zUfiSms_TrafficChangeSmsTag(T_zUfiSms_DbStoreData*data){CHAR smsNumber[
+(0x672+7618-0x2402)]={(0x15f0+3582-0x23ee)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
+smsNumber,sizeof(smsNumber));if((0xaa4+35-0xac7)==strcmp(smsNumber,data->number)
+){data->tag=WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=(0x114f+5388-0x265a);
+}}void zUfiSms_HandleTrafficSms(T_zUfiSms_DbStoreData*data){int iSmsId=
+(0x1257+4896-0x2577);SMS_MSG_INFO msg={(0xa77+520-0xc7f)};CHAR smsNumber[
+(0x55f+4296-0x15f5)]={(0xb36+726-0xe0c)};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((0x7b3+7027-0x2326)==strcmp(smsNumber,data->number))
-{if((0x2226+971-0x25f1)!=zUfiSms_CheckIfWholeSms(data,&msg)){at_print(LOG_DEBUG,
+,data->number,smsNumber);if((0x4e3+3708-0x135f)==strcmp(smsNumber,data->number))
+{if((0xa9a+6219-0x22e5)!=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]={
-(0x14f4+1041-0x1905)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x2+3224-0xc9a);SMS_PARAM one_sms={(0xf06+410-0x10a0)};int 
-unread_sms_before_recv_new_sms=(0x1801+3440-0x2571);memset(&tDbStoreData,
-(0xe1d+1514-0x1407),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0xeef+2228-0x17a3)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x1781+1027-0x1b84);SMS_PARAM one_sms={(0x176b+2186-0x1ff5)};int 
+unread_sms_before_recv_new_sms=(0x8ab+123-0x926);memset(&tDbStoreData,
+(0x1497+3887-0x23c6),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,"")==(0x755+2906-0x12af)){CHAR srState[
-(0xbbd+4562-0x1d5d)]={(0x1db9+1997-0x2586)};sc_cfg_get(NV_SR_STATE,srState,
-sizeof(srState));if((0x1784+2028-0x1f70)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0x48a+576-0x6ca)){CHAR srState[(0x358+391-0x4ad)]={
+(0xa85+1245-0xf62)};sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if(
+(0x1667+1461-0x1c1c)!=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((0x2093+1197-0x2540));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x2413+502-0x2609));}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((0x1a99+2239-0x2353)==ptRespData->stat){(void)
+ptRespData->pdu));if((0xfd9+1406-0x1552)==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=(0x995+4975-0x1d03);}else{
-unread_sms_before_recv_new_sms=(0x2275+376-0x23ed);}zUfiSms_TrafficChangeSmsTag(
-&tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,
-iStorePos,-(0x474+6018-0x1bf5))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
-(0x1630+585-0x1878));return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){
+unread_sms_before_recv_new_sms=(0x131d+1448-0x18c4);}else{
+unread_sms_before_recv_new_sms=(0x39c+2825-0xea5);}zUfiSms_TrafficChangeSmsTag(&
+tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,
+iStorePos,-(0x1a58+1345-0x1f98))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
+(0x16f4+787-0x1a06));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]={
-(0x1a6b+454-0x1c31)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x6ec+1724-0xda8);SMS_PARAM one_sms={(0x1a1f+1638-0x2085)};CHAR defaultStore[
-(0x2169+644-0x23bb)]={(0xcaa+255-0xda9)};memset(&tDbStoreData,
-(0x1597+1835-0x1cc2),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x19b6+1348-0x1efa)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x2f9+4293-0x13be);SMS_PARAM one_sms={(0xb03+5728-0x2163)};CHAR defaultStore[
+(0x1154+5303-0x25d9)]={(0x1c2+572-0x3fe)};memset(&tDbStoreData,
+(0x3bd+4483-0x1540),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,"")==(0xd62+6273-0x25e3)){CHAR srState[(0x68+8491-0x2161)
-]={(0x690+5348-0x1b74)};sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if(
-(0x316+7852-0x21c2)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0xa8b+6603-0x2456)){CHAR srState[
+(0x16ac+918-0x1a10)]={(0x607+2098-0xe39)};sc_cfg_get(NV_SR_STATE,srState,sizeof(
+srState));if((0xdb4+4069-0x1d99)!=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((0xffc+1631-0x165b));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0xb0a+6584-0x24c2));}if(
 SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
 "\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
 ,one_sms.index);at_print(LOG_DEBUG,
@@ -311,29 +311,29 @@
 ,one_sms.TP_CurrentPieceNum);zUfiSms_ChangeMainState(SMS_STATE_RECVED);return;}
 zUfiSms_GetReportStatus(ptRespData->pdu,&ptRespData->stat);(void)String2Bytes(
 ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if(
-(0x1622+2313-0x1f26)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
+(0x1208+4515-0x23a6)==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(
-(0x129d+2329-0x1bb6)==strcmp(defaultStore,"\x73\x69\x6d")){iStorePos=
+(0x62+2104-0x89a)==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,-
-(0x2e4+8714-0x24ed))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
+(0x297+4578-0x1478))){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]={
-(0xfc6+3914-0x1f10)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x1b1b+2119-0x2362);SMS_PARAM one_sms={(0x1fe1+784-0x22f1)};int 
-unread_sms_before_recv_new_sms=(0x1e0c+1957-0x25b1);memset(&tDbStoreData,
-(0x741+7337-0x23ea),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x8b7+7273-0x2520)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x54a+8076-0x24d6);SMS_PARAM one_sms={(0x125b+1354-0x17a5)};int 
+unread_sms_before_recv_new_sms=(0x4aa+5375-0x19a9);memset(&tDbStoreData,
+(0xda9+3736-0x1c41),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,"")==
-(0xced+4979-0x2060)){CHAR srState[(0x10fb+3361-0x1dea)]={(0x131a+3173-0x1f7f)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0xb6+7725-0x1ee3)!=strcmp(
+(0x1001+3027-0x1bd4)){CHAR srState[(0x21cf+916-0x2531)]={(0x1840+2664-0x22a8)};
+sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x696+1415-0xc1d)!=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((0x73d+4627-0x1950));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x301+6959-0x1e30));}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,82 @@
 "\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((0x60f+8006-0x2550)
-==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);sc_cfg_set(
-NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");return;}(void)
-zUfiSms_DecodeSmsData(&tDbStoreData,ptRespData->index,iStorePos,(T_SmsStatus)
-ptRespData->stat,WMS_MESSAGE_FORMAT_GW_PP_V01,ptRespData->length,acFormatPdu);if
-(tDbStoreData.sms_class==WMS_MESSAGE_CLASS_2){iStorePos=WMS_STORAGE_TYPE_UIM_V01
-;}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){unread_sms_before_recv_new_sms=
-(0xc6f+1420-0x11fa);}else{unread_sms_before_recv_new_sms=(0xbf7+6716-0x2633);}if
-(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-
-(0xc60+1199-0x110e))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
-zUfiSms_CmgrNvSet();zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);
-zUfiSms_ChangeMainState(SMS_STATE_RECVED);return;}void zUfiSms_CmgsRespProc(VOID
-){T_zUfiSms_StatusInfo tStatusInfo={(0x5b0+3323-0x12ab)};g_zUfiSms_DbStoreData->
-msg_displaymode=g_displaymode;if(g_zUfiSms_DbStoreData->msg_displaymode!=
-(0x558+4070-0x153d)){if((0x16bb+156-0x1757)==zUfiSms_WriteSmsToDb(&
-g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x1172+4437-0x22c6)],
-WMS_STORAGE_TYPE_NV_V01,-(0xa52+7348-0x2705))){g_zUfiSms_MsgRefer++;(void)
-zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}}printf(
+ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if(
+(0x135f+3869-0x2277)==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=(0xf71+5803-0x261b);}else{
+unread_sms_before_recv_new_sms=(0xd67+1763-0x144a);}if(ZTE_WMS_NV_MEMORY_FULL==
+zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-(0xc16+328-0xd5d))){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={(0x700+2008-0xed8)};g_zUfiSms_DbStoreData->msg_displaymode=
+g_displaymode;if(g_zUfiSms_DbStoreData->msg_displaymode!=(0x1bbc+2507-0x2586)){
+if((0x1bd4+1105-0x2025)==zUfiSms_WriteSmsToDb(&g_zUfiSms_DbStoreData[
+g_zUfiSms_CurConcatSegNo-(0x35f+2529-0xd3f)],WMS_STORAGE_TYPE_NV_V01,-
+(0x183+1522-0x774))){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=
-(0x127b+3857-0x218c);memset((void*)&tStatusInfo,(0x1c6b+133-0x1cf0),sizeof(
+(0x362+8307-0x23d5);memset((void*)&tStatusInfo,(0x183+5112-0x157b),sizeof(
 T_zUfiSms_StatusInfo));tStatusInfo.err_code=ZTE_SMS_CMS_NONE;tStatusInfo.
 send_failed_count=g_zUfiSms_SendFailedCount;tStatusInfo.delete_failed_count=
-(0x129c+4901-0x25c1);if(g_zUfiSms_SendFailedCount==(0x693+3897-0x15cc)){
+(0x866+7294-0x24e4);if(g_zUfiSms_SendFailedCount==(0xa62+1848-0x119a)){
 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={(0x128+3724-0xfb4)};int 
-errs=(0x3c3+8361-0x246c);key_t req_id=ftok(
+int zte_fota_notifyPushMsg(int cmd){FOTA_MSG_BUF msg={(0x8f+7512-0x1de7)};int 
+errs=(0x5a0+6377-0x1e89);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"
-,(0xd43+2668-0x17ae));int msgid=msgget(req_id,(0x1129+3804-0x2005));if(msgid!=-
-(0xfb8+5206-0x240d)){msg.mtype=(0x13df+4479-0x255d);msg.mtext[
-(0x27c+9193-0x2665)]=WEBUI_NOTIFY_PUSH_MSG_;errs=msgsnd(msgid,&msg,sizeof(msg)-
-sizeof(long),(0x538+7326-0x21d6));}return(errs<(0x11e9+2200-0x1a81)?
-(0x595+1965-0xd42):(0x421+7397-0x2105));}
-#if (0x9f7+1257-0xee0)  
+,(0x138f+1262-0x187c));int msgid=msgget(req_id,(0x205+558-0x433));if(msgid!=-
+(0x334+1294-0x841)){msg.mtype=(0x6c3+245-0x7b7);msg.mtext[(0x1a46+1438-0x1fe4)]=
+WEBUI_NOTIFY_PUSH_MSG_;errs=msgsnd(msgid,&msg,sizeof(msg)-sizeof(long),
+(0x42a+6169-0x1c43));}return(errs<(0x505+8564-0x2679)?(0x13c8+4378-0x24e2):
+(0x556+5523-0x1ae8));}
+#if (0x979+7072-0x2519)  
 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 (0x2e9+1073-0x71a) 
+#if (0x1aa5+1940-0x2239) 
 int atSms_SendZmglReq(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){int res
-=(0x613+8210-0x2625);pthread_mutex_lock(&smsdb_mutex);res=zSvr_SendAtSyn(
+=(0x9cf+952-0xd87);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={(0x351+7055-0x1ee0)};sc_cfg_set(NV_SMS_LOAD_RESULT
+T_zUfiSms_StatusInfo tStatus={(0x374+3933-0x12d1)};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={
-(0x1453+4462-0x25c1)};sc_cfg_set(NV_SMS_LOAD_RESULT,"\x66\x61\x69\x6c");
+(0xec4+2318-0x17d2)};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={
-(0xd1a+3450-0x1a94)};printf(
+(0x157f+1247-0x1a5e)};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,
-(0x1b44+2323-0x2457),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
-->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x1ef+9017-0x2527));printf(
+(0x10e5+5423-0x2614),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
+->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x9a5+4514-0x1b46));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[(0xc7d+2197-0x14fe)
-]={(0x113+7823-0x1fa2)};iSmsIndex=atoi(pAtCmdPara);printf(
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x443+8871-0x26d6)
+]={(0xd5d+4902-0x2083)};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 (0x1396+272-0x14a6)

-static T_zUfiSms_SmsItem tSmsPara={(0x9b3+3204-0x1637)};T_zUfiSms_CmgrSetRsp 
-tCmgrRsp={(0x1a37+2008-0x220f)};printf(
+#if (0x917+2861-0x1444)

+static T_zUfiSms_SmsItem tSmsPara={(0x172b+1529-0x1d24)};T_zUfiSms_CmgrSetRsp 
+tCmgrRsp={(0x150c+400-0x169c)};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,15 +437,15 @@
 .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,(0x900+2761-0x13c9),sizeof(T_zUfiSms_SmsItem));(void)
-zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0x24+57-0x5b));tSmsPara.index=
-iSmsIndex;printf(
+{memset(&tSmsPara,(0x1307+4716-0x2573),sizeof(T_zUfiSms_SmsItem));(void)
+zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0x733+6534-0x20b7));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[(0x8d+4499-0x120c)]={(0xc1d+5105-0x200e)};iSmsIndex=atoi(pAtCmdPara);
-printf(
+pAtcmdStr[(0x12ec+4760-0x2570)]={(0x1e5a+1155-0x22dd)};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),
 "\x41\x54\x2b\x5a\x4d\x47\x52\x3d\x25\x73" "\r\n",pAtCmdPara);return 
@@ -456,8 +457,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={(0x15a8+2023-0x1d8f)};T_zUfiSms_CmgrSetRsp tCmgrRsp=
-{(0x1229+4034-0x21eb)};printf(
+T_zUfiSms_SmsItem tSmsPara={(0x753+3546-0x152d)};T_zUfiSms_CmgrSetRsp tCmgrRsp={
+(0x1ef3+1207-0x23aa)};printf(
 "\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x72\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
 ,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
 ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->result){printf(
@@ -465,56 +466,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,(0x2328+802-0x264a),sizeof
+NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,(0x164+6948-0x1c88),sizeof
 (T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine->resParas,sizeof(pResLine
-->resParas),&tSmsPara,(0xb7b+4551-0x1d40));tSmsPara.index=iSmsIndex;printf(
+->resParas),&tSmsPara,(0x1d1b+2531-0x26fc));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[(0x7ea+4751-0x1a65)
-]={(0x6bf+2809-0x11b8)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x27d+4796-0x1525)
+]={(0x97d+1670-0x1003)};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[(0x58+1849-0x787)]={(0x1e39+225-0x1f1a)};int
- used=(0x1482+1235-0x1955);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+atSms_RecvCmgdOk(VOID){CHAR strUsed[(0x1690+1574-0x1cac)]={(0x913+4519-0x1aba)};
+int used=(0x1bd3+2499-0x2596);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)-(0xeed+1228-0x13b8);if(used<(0x83c+553-0xa65)){used=(0x75+8077-0x2002);
-}memset(&strUsed,(0x260+8607-0x23ff),(0x11a0+5221-0x25fb));snprintf(strUsed,
-sizeof(strUsed),"\x25\x64",used);sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CARD_USED,
-strUsed);}VOID atSms_RecvCmgdErr(VOID){sc_cfg_set(NV_SMS_DEL_RESULT,
-"\x66\x61\x69\x6c");printf(
+strUsed)-(0x9c0+3095-0x15d6);if(used<(0x1763+1318-0x1c89)){used=
+(0x114c+1414-0x16d2);}memset(&strUsed,(0x7c+677-0x321),(0x152f+1998-0x1cf3));
+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[(0x16ca+2119-0x1f07)]={
-(0xd40+4758-0x1fd6)};CHAR strTotal[(0x1412+715-0x16d3)]={(0x241+275-0x354)};CHAR
- strUsed[(0x3eb+3243-0x108c)]={(0x538+3013-0x10fd)};int total=(0x649+1051-0xa64)
-;int used=(0xa71+3145-0x16ba);int remain=(0x21b+3585-0x101c);sc_cfg_get(
-ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(strUsed);
-sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,strTotal,sizeof(strTotal));total=atoi
-(strTotal);remain=total-used;if(remain<(0x1c1c+2201-0x24b5)){remain=
-(0x838+1583-0xe67);}memset(&StrValue,(0xf25+2693-0x19aa),(0x2b3+9301-0x26fe));
+);}VOID atSms_RecvCmgdFinish(VOID){char StrValue[(0x206f+386-0x21e7)]={
+(0xacb+3889-0x19fc)};CHAR strTotal[(0x156b+799-0x1880)]={(0x192c+1325-0x1e59)};
+CHAR strUsed[(0xa58+4353-0x1b4f)]={(0x34c+8283-0x23a7)};int total=
+(0x1064+5727-0x26c3);int used=(0xe0d+3097-0x1a26);int remain=(0x430+258-0x532);
+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<(0xa0+7377-0x1d71)){remain=
+(0xf35+1527-0x152c);}memset(&StrValue,(0x1482+3767-0x2339),(0x4c+8372-0x20f6));
 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=(0xe8f+1203-0x1342);CHAR pAtcmdStr[ZSMS_PDU_SIZE
-]={(0x586+5288-0x1a2e)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+pAtRst,int atRstSize){int atRes=(0xe4b+3483-0x1be6);CHAR pAtcmdStr[ZSMS_PDU_SIZE
+]={(0xba+3074-0xcbc)};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,(0x15f3+3568-0x23e3),
-ZSMS_PDU_SIZE);if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-
-(0x1729+1095-0x1b6f)){memcpy(pAtcmdStr,g_zUfiSms_FinalCmgsBuf.pdu,strlen(
-g_zUfiSms_FinalCmgsBuf.pdu));}else{printf(
+ZAT_RESULT_SMS){return atRes;}memset(pAtcmdStr,(0x190c+644-0x1b90),ZSMS_PDU_SIZE
+);if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-(0x12dc+1160-0x1763)){
+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-(0xfd4+5628-0x25ce));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.
-pdu))=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0x1569+820-0x189d),atRstSize);return 
+ZSMS_PDU_SIZE-(0x610+601-0x867));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.pdu)
+)=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0xb7+1731-0x77a),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-(0x55d+2837-0x1071)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0x17d+9261-0x25a9)].tag=WMS_TAG_TYPE_MO_SENT_V01;
 zUfiSms_CmgsRespProc(cid);}VOID atSms_RecvCmgsErr(UINT8*pResLine,int cid){
 at_print(LOG_DEBUG,
 "\x73\x6d\x73\x20\x73\x65\x6e\x64\x65\x64\x20\x66\x61\x69\x6c\x2e\x20" "\n");
@@ -522,16 +523,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-(0x16b1+744-0x1998)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x1425+3687-0x228b)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x5bc+3822-0x14a9)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x1198+3115-0x1dc2)){
 g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc(cid);}VOID 
 atSms_RecvCmgsRsp(T_zAt_AtRes*pResLine){return;}VOID atSms_RecvCmtRsp(
-T_zAt_AtRes*pResLine){CHAR needSMS[(0x217b+1410-0x26cb)]={(0x1365+3240-0x200d)};
-sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xd2d+1301-0x1242)==
+T_zAt_AtRes*pResLine){CHAR needSMS[(0x10b5+773-0x1388)]={(0x209+3612-0x1025)};
+sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xe41+3041-0x1a22)==
 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={(0x314+1980-0xad0)};
-T_zUfiSms_CmtSetRsp tCmtRsp={(0x10bf+1292-0x15cb)};if(NULL==pResLine){return;}
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0x19d9+2833-0x24ea)};
+T_zUfiSms_CmtSetRsp tCmtRsp={(0xab0+4246-0x1b46)};if(NULL==pResLine){return;}
 printf(
 "\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
 ,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
@@ -541,40 +542,40 @@
 "\x25\x35\x30\x30\x73",tCmtRsp.pdu);pthread_mutex_lock(&smsdb_mutex);
 zUfiSms_CmtRespProc(&tCmtRsp);zUfiMmi_SendSmsStatus();pthread_mutex_unlock(&
 smsdb_mutex);sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,
-(0x79b+510-0x999),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0xb79+3209-0x1802),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[
-(0x128c+1626-0x18b4)]={(0x2cc+5647-0x18db)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x468+7654-0x224e)==strcmp(needSMS,"\x6e\x6f")){
+(0x3a+4255-0x10a7)]={(0x1997+2178-0x2219)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0x1f9+9003-0x2524)==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[(0xeb8+4344-0x1f92)]={(0x1a4f+822-0x1d85)};char*
+);return;}char sms_Main_state[(0xe6f+3877-0x1d76)]={(0x12b9+2632-0x1d01)};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")==
-(0x4f7+140-0x583)){printf(
+(0x1246+1277-0x1743)){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(
-(0x151+8834-0x23d3)==strncmp("\x53\x4d",memory,(0x252+1953-0x9f1))){
+(0x7+3385-0xd40)==strncmp("\x53\x4d",memory,(0x14e2+4183-0x2537))){
 zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0xcfb+2292-0x15eb);printf(
+SMS_STATE_RECVING);memory+=(0x682+7316-0x2312);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[(0x7ad+2148-0xfdf)]={(0x143c+4227-0x24bf)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1bbf+275-0x1cd2)==strcmp(
+){CHAR needSMS[(0x1429+2746-0x1eb1)]={(0x519+4865-0x181a)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1537+3158-0x218d)==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={(0x1625+3949-0x2592)};
-T_zUfiSms_CmgrSetRsp tCmgrRsp={(0x16fc+427-0x18a7)};if(NULL==pResLine){return;}
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0x1867+1625-0x1ec0)};
+T_zUfiSms_CmgrSetRsp tCmgrRsp={(0x276+5695-0x18b5)};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"
@@ -582,79 +583,79 @@
 "\x25\x35\x30\x30\x73",tCmgrRsp.pdu);pthread_mutex_lock(&smsdb_mutex);
 zUfiSms_CdsRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();pthread_mutex_unlock(&
 smsdb_mutex);sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,
-(0xa2a+5551-0x1fd9),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0x1472+4760-0x270a),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[
-(0x1136+2959-0x1c93)]={(0x34f+8643-0x2512)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x155+9099-0x24e0)==strcmp(needSMS,"\x6e\x6f")){
+(0x1fdf+312-0x20e5)]={(0x14b8+3005-0x2075)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0x506+2099-0xd39)==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[(0x50d+971-0x8ba)]={(0xff3+3202-0x1c75)};char*
+);return;}char sms_Main_state[(0x1419+153-0x1494)]={(0x182b+2074-0x2045)};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")==
-(0x1aed+1995-0x22b8)){printf(
+(0xb88+3843-0x1a8b)){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((0x1362+2517-0x1d37)==strncmp("\x53\x4d",memory,(0xf6+9340-0x2570)))
+,memory);if((0x672+5749-0x1ce7)==strncmp("\x53\x4d",memory,(0x2400+403-0x2591)))
 {zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0x2170+1262-0x265a);printf(
+SMS_STATE_RECVING);memory+=(0x18d4+1384-0x1e38);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[(0x1d1a+2237-0x25c3)]={
-(0x1c7b+2334-0x2599)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+ cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x10fc+656-0x1378)]={
+(0xe0f+5854-0x24ed)};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=(0x2c6+4871-0x15cd);CHAR pAtcmdStr[ZSMS_PDU_SIZE
-]={(0x1f1+5658-0x180b)};CHAR ackPduStr[(0x1ad+331-0x2c6)]={(0xc13+4890-0x1f2d)};
-if(atoi(pAtCmdPara)==(0x58+8821-0x22cc)){snprintf(pAtcmdStr,sizeof(pAtcmdStr),
-"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73" "\r\n",pAtCmdPara);atRes=
+pAtRst,int atRstSize){int atRes=(0x68a+4025-0x1643);CHAR pAtcmdStr[ZSMS_PDU_SIZE
+]={(0x7f2+1008-0xbe2)};CHAR ackPduStr[(0x172c+1885-0x1e57)]={(0x3c3+4472-0x153b)
+};if(atoi(pAtCmdPara)==(0x6e9+7538-0x245a)){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(0xcf+9394-0x2581);}else{zUfiSms_EncodePdu_DeliverReport(
-ackPduStr,(0x546+6514-0x1de5));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+,pAtcmdStr);return(0xd2a+4658-0x1f5c);}else{zUfiSms_EncodePdu_DeliverReport(
+ackPduStr,(0xcef+5558-0x21d2));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
 "\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73\x2c\x25\x64" "\r\n",pAtCmdPara,strlen(
-ackPduStr)/(0x532+8296-0x2598));atRes=zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,
+ackPduStr)/(0xe50+3389-0x1b8b));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,(0x2c+4083-0x101f),ZSMS_PDU_SIZE);if(strlen(
-ackPduStr)<ZSMS_PDU_SIZE-(0xd18+5185-0x2158)){memcpy(pAtcmdStr,ackPduStr,strlen(
+,pAtcmdStr);memset(pAtcmdStr,(0x412+1275-0x90d),ZSMS_PDU_SIZE);if(strlen(
+ackPduStr)<ZSMS_PDU_SIZE-(0x353+5295-0x1801)){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-(0xd58+4912-0x2086));}*(
+,ackPduStr);memcpy(pAtcmdStr,ackPduStr,ZSMS_PDU_SIZE-(0xe0b+1562-0x1423));}*(
 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,(0x1104+3525-0x1ec9),atRstSize);return zSvr_SendAtSyn(
+,pAtcmdStr);memset(pAtRst,(0x6aa+8231-0x26d1),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]={(0x4f+1045-0x464)};int atRes=
-(0x128a+3107-0x1ead);if(pDatabuf==NULL){return;}atRes=atSms_SendCmgdReq(pDatabuf
-,cid,errCode,ZSVR_AT_RES_CODE_LEN);if(atRes==ZSMS_RESULT_OK){atSms_RecvCmgdOk();
-}else{atSms_RecvCmgdErr();}atSms_RecvCmgdFinish();}VOID atUnsoli_Report_Cnma(
-UINT8*pDatabuf,int cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x4a+3328-0xd4a)};
-if(pDatabuf==NULL){printf(
+cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x19a7+2215-0x224e)};int atRes=
+(0x196c+196-0x1a30);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]={(0x131c+1462-0x18d2)
+};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]
-={(0x18af+2272-0x218f)};int atRes=(0xbff+2621-0x163c);if(pDatabuf==NULL){printf(
+={(0x11f7+2543-0x1be6)};int atRes=(0xb9a+4471-0x1d11);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]=
-{(0x65a+2875-0x1195)};if(pDatabuf==NULL){printf(
+{(0x1b04+672-0x1da4)};if(pDatabuf==NULL){printf(
 "\x5b\x53\x4d\x53\x5d\x20\x61\x74\x55\x6e\x73\x6f\x6c\x69\x5f\x52\x65\x70\x6f\x72\x74\x5f\x5a\x6d\x67\x72\x20\x6e\x75\x6c\x6c"
 );return;}atSms_SendZmgrReq(pDatabuf,cid,errCode,ZSVR_AT_RES_CODE_LEN);}
 #endif

diff --git a/ap/app/zte_comm/wlan/src/wifi_ap_ctrl.c b/ap/app/zte_comm/wlan/src/wifi_ap_ctrl.c
index b773329..d408b10 100755
--- a/ap/app/zte_comm/wlan/src/wifi_ap_ctrl.c
+++ b/ap/app/zte_comm/wlan/src/wifi_ap_ctrl.c
@@ -544,11 +544,13 @@
 
 	if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) {
 		wf_log("Could not read interface %s flags: %s", if_name, strerror(errno));
+		close(sock);
 		return -1;
 	}
 
 	if (!(ifr.ifr_flags & IFF_UP)) {
 		wf_log("%s is not up!\n", if_name);
+		close(sock);
 		return -1;
 	}
 
@@ -564,9 +566,11 @@
 
     if ((ret = ioctl(sock, TXRX_PARA, &ifr)) < 0) {
         wf_log("%s:error ioctl[TX_PARA] ret= %d\n", ret);
+		close(sock);
         return -1;
     }
-
+	
+	close(sock);
     return 0;
 }
 
diff --git a/ap/app/zte_comm/wlan/src/wlan-station.c b/ap/app/zte_comm/wlan/src/wlan-station.c
index a12db51..72d384b 100755
--- a/ap/app/zte_comm/wlan/src/wlan-station.c
+++ b/ap/app/zte_comm/wlan/src/wlan-station.c
@@ -834,6 +834,7 @@
    ²¢½«ÐÂÈÈµã´æÈëÅäÖÃÎļþ£¬²¢½«»ñÈ¡µÄnetworkid ´æÈëÈ«¾Ö±äÁ¿

 

 */

+/* Started by AICoder, pid:x2258ted1f6ff9c14bfb0bd6811f020745e2a212 */

 static void  webui_update_spot_list (updateinfo_t *info)

 {

 	int i = 0;

@@ -860,6 +861,12 @@
 		if (spot == NULL) {//klocwork

 			return;

 		}

+	#ifdef USE_CAP_SUPPORT

+		memset (spot->ssid, 0, sizeof(spot->ssid));

+		strncpy(spot->ssid, info->ssid, sizeof(spot->ssid)-1);

+		memset (spot->password, 0, sizeof(spot->password));

+		strncpy (spot->password, info->pwd, sizeof(spot->password)-1);

+	#endif

 		spot->network_id = -1;

 		save_config (spot);

 		g_spot_list_p[spot_num - 1] = spot;

@@ -877,6 +884,12 @@
 		if (spot == NULL) {//klocwork

 			return;

 		}

+	#ifdef USE_CAP_SUPPORT

+		memset (spot->ssid, 0, sizeof(spot->ssid));

+		strncpy(spot->ssid, info->ssid, sizeof(spot->ssid)-1);

+		memset (spot->password, 0, sizeof(spot->password));

+		strncpy (spot->password, info->pwd, sizeof(spot->password)-1);

+	#endif

 		for (i = 0; i < WIFI_STATION_SPOT_LIST_NUM; i++) {

 			if (g_spot_list_p[i] != NULL &&  !strcmp (g_spot_list_p[i]->profile_name, spot->profile_name)) {

 				spot->network_id = g_spot_list_p[i]->network_id;

@@ -924,8 +937,7 @@
 	}

 	dump_spot();

 }

-

-

+/* Ended by AICoder, pid:x2258ted1f6ff9c14bfb0bd6811f020745e2a212 */

 

 /*

 	ÔÚɾ³ýÈȵã¹ý³ÌÖÐͻȻ¶Ïµç£¬ÎÞ·¨±£´æµ½conf Îļþ£¬ÐèÒªÖØÐÂͬ²½Ò»ÏÂ

@@ -1073,14 +1085,72 @@
 }

 

 //»ñÈ¡ÈȵãÁÐ±í£¬·µ»ØÒ»¸öÖ¸ÕëÊý×飬·ÅÈëÈ«¾Ö

+/* Started by AICoder, pid:625bf2aff1cb5e214e480abee037a84850c2b149 */

+static void remove_illegal_spot(int idx, int sp_num)

+{

+	int i = 0;

+	char wifi_profile_nv_name[WIFI_STATION_PROFILE_NV_NAME_LEN] = {0};

+	char spot_string[WIFI_STATION_SPOT_LEN] = {0};

+	char spot_ssid[33] = {0};

+	char spot_pwd[65] = {0};

+	

+	if (idx >= 0 && sp_num > 0 && sp_num <= WIFI_STATION_SPOT_LIST_NUM) {

+		for (i = idx; i < sp_num - 1; i++) {

+			snprintf(wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_profile%d", i + 1);

+			sc_cfg_get(wifi_profile_nv_name, spot_string, WIFI_STATION_SPOT_LEN);

+

+			snprintf(wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_prof_ssid%d", i + 1);

+			sc_cfg_get(wifi_profile_nv_name, spot_ssid, sizeof(spot_ssid));

+

+			snprintf(wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_prof_pw%d", i + 1);

+			sc_cfg_get(wifi_profile_nv_name, spot_pwd, sizeof(spot_pwd));

+

+			if (i == 0) {

+				sc_cfg_set("wifi_profile", spot_string);

+				sc_cfg_set("wifi_prof_ssid", spot_ssid);//nv need save when poweroff

+				sc_cfg_set("wifi_prof_pw", spot_pwd);

+			} else {

+				snprintf(wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_profile%d", i);

+				sc_cfg_set(wifi_profile_nv_name, spot_string);

+				

+				snprintf(wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_prof_ssid%d", i);

+				sc_cfg_set(wifi_profile_nv_name, spot_ssid);

+

+				snprintf(wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_prof_pw%d", i);

+				sc_cfg_set(wifi_profile_nv_name, spot_pwd);

+			}

+		}

+		

+		if (i == 0) {

+			sc_cfg_set("wifi_profile", "");

+			sc_cfg_set("wifi_prof_ssid", "");//nv need save when poweroff

+			sc_cfg_set("wifi_prof_pw", "");

+		} else {

+			snprintf(wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_profile%d", i);

+			sc_cfg_set(wifi_profile_nv_name, "");

+			

+			snprintf(wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_prof_ssid%d", i);

+			sc_cfg_set(wifi_profile_nv_name, "");

+

+			snprintf(wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_prof_pw%d", i);

+			sc_cfg_set(wifi_profile_nv_name, "");

+		}

+	}

+}

+/* Ended by AICoder, pid:625bf2aff1cb5e214e480abee037a84850c2b149 */

+

+/* Started by AICoder, pid:r1a87ye4edo6443144c20bf5400a1e5dcef77ecd */

 static void get_spot_list (void)

 {

 	int i = 0;

 	int j = 0;

 	char spot_string[WIFI_STATION_SPOT_LEN] = {0};

+	char spot_ssid[33] = {0};

+	char spot_pwd[65] = {0};

 	char wifi_profile_nv_name[WIFI_STATION_PROFILE_NV_NAME_LEN] = {0};

 	spot_t *spot = NULL;

 	int spot_num = 0;

+	char spot_num_str[20] = {0};

 	char wifi_profile_num[WIFI_STATION_PROFILE_NV_NAME_LEN] = {0};

 	sc_cfg_get ("wifi_profile_num", wifi_profile_num, sizeof (wifi_profile_num));

 	spot_num = atoi (wifi_profile_num);

@@ -1097,23 +1167,48 @@
 		for (i = 0; i < spot_num; i++) {

 			if (i == 0) {

 				sc_cfg_get ("wifi_profile", spot_string, WIFI_STATION_SPOT_LEN);

+				sc_cfg_get ("wifi_prof_ssid", spot_ssid, sizeof(spot_ssid));//nv need save when poweroff

+				sc_cfg_get ("wifi_prof_pw", spot_pwd, sizeof(spot_pwd));

 			} else {

-				memset (wifi_profile_nv_name, 0, WIFI_STATION_PROFILE_NV_NAME_LEN);

 				snprintf (wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_profile%d", i);

 				sc_cfg_get (wifi_profile_nv_name, spot_string, WIFI_STATION_SPOT_LEN);

+				

+				snprintf (wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_prof_ssid%d", i);

+				sc_cfg_get (wifi_profile_nv_name, spot_ssid, sizeof(spot_ssid));

+

+				snprintf (wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_prof_pw%d", i);

+				sc_cfg_get (wifi_profile_nv_name, spot_pwd, sizeof(spot_pwd));

 			}

 

 			wf_log ("get_spot_list spot_string[%d]= %s", i, spot_string);

 			spot = parse_spot_string (spot_string);

 			if (spot != NULL) {

+		#ifdef USE_CAP_SUPPORT

+				memset (spot->ssid, 0, sizeof(spot->ssid));

+				strncpy(spot->ssid, spot_ssid, sizeof(spot->ssid)-1);

+				memset (spot->password, 0, sizeof(spot->password));

+				strncpy (spot->password, spot_pwd, sizeof(spot->password)-1);

+		#endif

 				g_spot_list_p[j] = spot;

 				j++;

 			}

+			else {

+				wf_log("remove spot:[%d]", i);

+				remove_illegal_spot(i, spot_num);

+				spot_num--;

+				snprintf(spot_num_str, sizeof(spot_num_str), "%d", spot_num);

+				sc_cfg_set("wifi_profile_num", spot_num_str);

+				if (i != (spot_num - 1)) {

+					i--;

+				}

+			}

 		}

 	}

 

 }

+/* Ended by AICoder, pid:r1a87ye4edo6443144c20bf5400a1e5dcef77ecd */

 

+/* Started by AICoder, pid:bad44cc09br59de1479e09930055154969a0f20a */

 static void save_spot_list (void)

 {

 	int i = 0;

@@ -1122,6 +1217,27 @@
 

 	for (i = 0; i < WIFI_STATION_SPOT_LIST_NUM; i++) {

 		if (g_spot_list_p[i] != NULL) {

+		#ifdef USE_CAP_SUPPORT

+			snprintf (spot_string, WIFI_STATION_SPOT_LEN, "%s,%d,%d,%d,%s,%s,%s,%s,%d,%s", g_spot_list_p[i]->profile_name,

+			          g_spot_list_p[i]->from_provider, g_spot_list_p[i]->connect_status, g_spot_list_p[i]->signal,

+			          "padding", g_spot_list_p[i]->auth_mode, g_spot_list_p[i]->encrypt_type,

+			          "padding", g_spot_list_p[i]->keyID, g_spot_list_p[i]->mac);

+

+			wf_log (" g_spot_list_p[%d]=%s, [%d]", i, spot_string, g_spot_list_p[i]->network_id);

+

+			if (i == 0) {

+				sc_cfg_set ("wifi_profile", spot_string);

+				sc_cfg_set ("wifi_prof_ssid", g_spot_list_p[i]->ssid);

+				sc_cfg_set ("wifi_prof_pw", g_spot_list_p[i]->password);

+			} else {

+				snprintf (wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_profile%d", i);

+				sc_cfg_set (wifi_profile_nv_name, spot_string);

+				snprintf (wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_prof_ssid%d", i);

+				sc_cfg_set (wifi_profile_nv_name, g_spot_list_p[i]->ssid);

+				snprintf (wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_prof_pw%d", i);

+				sc_cfg_set (wifi_profile_nv_name, g_spot_list_p[i]->password);

+			}

+		#else

 			snprintf (spot_string, WIFI_STATION_SPOT_LEN, "%s,%d,%d,%d,%s,%s,%s,%s,%d,%s", g_spot_list_p[i]->profile_name,

 			          g_spot_list_p[i]->from_provider, g_spot_list_p[i]->connect_status, g_spot_list_p[i]->signal,

 			          g_spot_list_p[i]->ssid, g_spot_list_p[i]->auth_mode, g_spot_list_p[i]->encrypt_type,

@@ -1135,10 +1251,11 @@
 				snprintf (wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_profile%d", i);

 				sc_cfg_set (wifi_profile_nv_name, spot_string);

 			}

+		#endif

 		}

 	}

 }

-

+/* Ended by AICoder, pid:bad44cc09br59de1479e09930055154969a0f20a */

 

 /*

 ½«Á´½Ó³É¹¦µÄÈȵ㣬Åŵ½µÚһλ

@@ -1214,6 +1331,7 @@
 

 }

 

+/* Started by AICoder, pid:8ea60ub2ecdd01114ccd0be78012654deb791e04 */

 static void update_spot_connect_status_by_status_result (BOOL is_connected)

 {

 	int i = 0;

@@ -1235,7 +1353,26 @@
 			}

 			wf_log ("g_spot_list_p[%d]->mac=%s", i, g_spot_list_p[i]->mac);

 			wf_log ("profile[%d]=%d", i, g_spot_list_p[i]->connect_status);

+			

+		#ifdef USE_CAP_SUPPORT

+			snprintf (spot_string, WIFI_STATION_SPOT_LEN, "%s,%d,%d,%d,%s,%s,%s,%s,%d,%s", g_spot_list_p[i]->profile_name,

+			          g_spot_list_p[i]->from_provider, g_spot_list_p[i]->connect_status, g_spot_list_p[i]->signal,

+			          "padding", g_spot_list_p[i]->auth_mode, g_spot_list_p[i]->encrypt_type,

+			          "padding", g_spot_list_p[i]->keyID, g_spot_list_p[i]->mac);

 

+			if (i == 0) {

+				sc_cfg_set ("wifi_profile", spot_string);

+				sc_cfg_set ("wifi_prof_ssid", g_spot_list_p[i]->ssid);

+				sc_cfg_set ("wifi_prof_pw", g_spot_list_p[i]->password);

+			} else {

+				snprintf (wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_profile%d", i);

+				sc_cfg_set (wifi_profile_nv_name, spot_string);

+				snprintf (wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_prof_ssid%d", i);

+				sc_cfg_set (wifi_profile_nv_name, g_spot_list_p[i]->ssid);

+				snprintf (wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_prof_pw%d", i);

+				sc_cfg_set (wifi_profile_nv_name, g_spot_list_p[i]->password);

+			}

+		#else

 			snprintf (spot_string, WIFI_STATION_SPOT_LEN, "%s,%d,%d,%d,%s,%s,%s,%s,%d,%s", g_spot_list_p[i]->profile_name,

 			          g_spot_list_p[i]->from_provider, g_spot_list_p[i]->connect_status, g_spot_list_p[i]->signal,

 			          g_spot_list_p[i]->ssid, g_spot_list_p[i]->auth_mode, g_spot_list_p[i]->encrypt_type,

@@ -1247,11 +1384,12 @@
 				snprintf (wifi_profile_nv_name, WIFI_STATION_PROFILE_NV_NAME_LEN, "wifi_profile%d", i);

 				sc_cfg_set (wifi_profile_nv_name, spot_string);

 			}

-

+		#endif

 			break;

 		}

 	}

 }

+/* Ended by AICoder, pid:8ea60ub2ecdd01114ccd0be78012654deb791e04 */

 

 static void update_spot_signal_by_scan_result (scan_result_t *scan_result)

 {

@@ -1585,8 +1723,8 @@
 			int i = 0;

 			i = find_linked_ap_index();

 			if (i !=  -1) {

-				wf_log ("g_spot_list_p[i]->ssid=[%s],scan_result->ssid=[%s]",

-				        g_spot_list_p[i]->ssid, scan_result->ssid);

+				wf_log ("g_spot_list_p[%d]->ssid=[%s],scan_result->ssid=[%s]",

+				        i, g_spot_list_p[i]->ssid, scan_result->ssid);

 

 				if (strcmp (g_spot_list_p[i]->mac, scan_result->mac) == 0

 				    && strcmp (g_spot_list_p[i]->ssid, scan_result->ssid) == 0) {

@@ -1965,6 +2103,7 @@
 

 }

 

+/* Started by AICoder, pid:ka1992f369lf05114d760926a0f4dc54f0954199 */

 static void wifi_station_get_scan_results (void)

 {

 	vector_t *v = NULL;

@@ -1979,7 +2118,13 @@
 		wf_log ("wifi_sta_connection isn't 1,abormal!!!========");

 		return;

 	}

-#ifndef USE_CAP_SUPPORT

+#ifdef USE_CAP_SUPPORT

+	if (g_cap_scan == 0) {

+		wf_log ("g_cap_scan=0,set scan_finish=2========");

+		sc_cfg_set ("scan_finish", "2"); //Ä¿µÄÊǸæËßwebui£¬´Ëʱµ×²ãÔÚconnecting

+		return;

+	}

+#else

 	//ÕýÔÚÁ¬½Ó״̬ÔòÍ˳ö

 	sc_cfg_get ("sta_ip_status", sta_ip_status, sizeof (sta_ip_status));

 	if (strcmp (sta_ip_status, WIFI_STATION_IP_STATUS_CONNECTING) == 0 ||

@@ -2011,6 +2156,7 @@
 

 	vector_free (v);

 }

+/* Ended by AICoder, pid:ka1992f369lf05114d760926a0f4dc54f0954199 */

 

 static void wifi_station_open_apsta(void)

 {

@@ -2367,6 +2513,7 @@
 	}

 }

 

+/* Started by AICoder, pid:w2d20w0188pdf87149530b19f0218a44e4648137 */

 /*

   * just enable all networks let supplicant to connect automaticly

   */

@@ -2389,7 +2536,13 @@
 	sc_cfg_get ("manual_d_wifi", manual_d_wifi, sizeof (manual_d_wifi));

 	sc_cfg_get ("blc_wan_mode", blc_wan_mode, sizeof (blc_wan_mode));

 	sc_cfg_get ("wifi_cur_state", wifi_cur_state, sizeof (wifi_cur_state));

-

+#ifdef USE_CAP_SUPPORT

+	if (strcmp (wifi_profile_num, "0") == 0) {

+		wf_log ("connect failed wifi_cur_state=%s, wifi_profile_num=%s,manual_d_wifi=%s,blc_wan_mode=%s",

+		        wifi_cur_state, wifi_profile_num, manual_d_wifi, blc_wan_mode);

+		return -1;

+	}

+#else

 	//ÊÖ¶¯¶Ï¿ªwifi£¬¼´Ê¹Ö÷¿ØÔÙÈÃÁ¬½Ó£¬Ò²²»»áÔÙÁ¬½ÓÁË

 	if ( (strcmp (wifi_cur_state, WIFI_CLOSED) == 0) || (strcmp (wifi_profile_num, "0") == 0)

 	     || (strcmp (manual_d_wifi, "1") == 0) || (strcmp ("PPPOE", blc_wan_mode) == 0)) {

@@ -2397,11 +2550,12 @@
 		        wifi_cur_state, wifi_profile_num, manual_d_wifi, blc_wan_mode);

 		return -1;

 	}

-

+#endif

 	sta_enable_all_networks();

 //	Create_connect_timeout_timer(); //´´½¨Á¬½Ó³¬Ê±¶¨Ê±Æ÷

 	return 0;

 }

+/* Ended by AICoder, pid:w2d20w0188pdf87149530b19f0218a44e4648137 */

 

 static void wifi_station_nv_init (void)

 {

@@ -2677,6 +2831,7 @@
 }

 

 #ifdef USE_CAP_SUPPORT

+/* Started by AICoder, pid:cb44599d48ue3101402d0b6ac018114d8550e766 */

 static void cap_update_spot_param(wlan_sta_param_t *param)

 {

 	updateinfo_t info = {0};

@@ -2685,7 +2840,7 @@
 	char wifi_profile_num[WIFI_STATION_PROFILE_NV_NAME_LEN] = {0};

 

 	snprintf(spot_tmp, sizeof(spot_tmp), "123456789123456789,0,0,0,%s,%s,%s,%s,0,0F:00:00:00:00:00",

-		param->ssid, param->authmode, param->encrypt, param->pwd);

+		"padding", param->authmode, param->encrypt, "padding");

 	if (g_wpa_supplicant == 1) {

 		/*request disconnection from the currently connected

 		* network. This will stop any ongoing scans and initiate deauthentication.

@@ -2706,19 +2861,30 @@
 		

 		sc_cfg_set("wifi_profile_num", "1");

 		sc_cfg_set("wifi_profile", spot_tmp);

+		

+		sc_cfg_set("wifi_prof_ssid", param->ssid);//nv need save when poweroff

+		sc_cfg_set("wifi_prof_pw", param->pwd);

+				

 		memset(&info, 0, sizeof(info));

 		strncpy(info.action, "add", sizeof(info.action)-1);

 		strncpy(info.spot, spot_tmp, sizeof(info.spot)-1);

+		strncpy(info.ssid, param->ssid, sizeof(info.ssid)-1);

+		strncpy(info.pwd, param->pwd, sizeof(info.pwd)-1);

 		webui_update_spot_list(&info);	

 	}

 	else {

 		//ûÓгõʼ»¯µÄʱºò

 		sc_cfg_set("wifi_profile_num", "1");

 		sc_cfg_set("wifi_profile", spot_tmp);

+

+		sc_cfg_set("wifi_prof_ssid", param->ssid);//nv need save when poweroff

+		sc_cfg_set("wifi_prof_pw", param->pwd);

 	//wpa_suplicantµÄÅäÖÿ´ÊÇ·ñÐèÒª¸Ä£¬Èç¹ûÒѳõʼ»¯ÁË£¬Ó¦¸ÃÒª¸Ä

 	}

 

 }

+/* Ended by AICoder, pid:cb44599d48ue3101402d0b6ac018114d8550e766 */

+

 

 /* Started by AICoder, pid:17c05ab2631ba551484608a0f093f11de3c5165e */

 void cap_close_station(void)

@@ -2772,13 +2938,21 @@
 }

 /* Ended by AICoder, pid:ife7a60485s530a149930907308c8b1b9099759f */

 

-

+/* Started by AICoder, pid:vbe96c140cx3841146b3092260f1af3bd63242d9 */

 static int get_cur_ap_rssi(void)

 {

     char *reply = NULL;

 	int rssi = 0;

     char *start = NULL;

 	char *end = NULL;

+	char sta_ip_status[WIFI_STATION_IP_STATUS_LEN] = {0};

+

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

+	if (strcmp (sta_ip_status, WIFI_STATION_IP_STATUS_CONNECT) != 0 &&

+		strcmp (sta_ip_status, WIFI_STATION_IP_STATUS_DHCPING) != 0) {

+		wf_log("not connect to ap\n");

+        return 0;

+	}

 	

 	reply = sta_docmd("SIGNAL_POLL");

 	if (reply == NULL) {

@@ -2800,6 +2974,7 @@
     }

     return rssi;

 }

+/* Ended by AICoder, pid:vbe96c140cx3841146b3092260f1af3bd63242d9 */

 

 static int get_cur_ap_signal(char *mac)

 {

@@ -3061,6 +3236,56 @@
 	return sc_type;

 }

 

+

+/* Started by AICoder, pid:qc462h2f14sd8fc148fc0986d07ec35fc6134b6a */

+static void convert_utf8_to_hex(const char *src_str, unsigned char *dst_str) 

+{

+    int i = 0;

+	int j = 0;

+	int hex_value = 0;

+	int k = 0;

+	wf_log("entry\n");

+

+	int m = 0;

+	for (m = 0; m < 128 && src_str[m] != '\0'; m++)

+		wf_log("test:[%d][%c,%02x]\n",m,src_str[m],src_str[m]);

+    while (src_str[i] != '\0' && j < 32) { // Ìí¼Ój < 32Ìõ¼þÀ´ÏÞÖÆÊä³öÊý×éBµÄ³¤¶È

+        if (src_str[i] == '\\') {

+			wf_log("entry1\n");

+            // Ìø¹ýתÒå×Ö·û

+            i++;

+            //i = i + 1;

+			wf_log("entry1:[%d][%c,%02x]\n",i,src_str[i],src_str[i]);

+            if (src_str[i] == 'x') {

+				wf_log("entry2\n");

+                // ´¦ÀíÊ®Áù½øÖÆÊý

+                i++;

+                hex_value = 0;

+                for (k = 0; k < 2; k++) {

+                    if (src_str[i] >= '0' && src_str[i] <= '9') {

+                        hex_value = hex_value * 16 + (src_str[i] - '0');

+                    } else if (src_str[i] >= 'a' && src_str[i] <= 'f') {

+                        hex_value = hex_value * 16 + (src_str[i] - 'a' + 10);

+                    } else if (src_str[i] >= 'A' && src_str[i] <= 'F') {

+                        hex_value = hex_value * 16 + (src_str[i] - 'A' + 10);

+                    }

+                    i++;

+                }

+                dst_str[j++] = hex_value;

+            } else {

+                // Ö±½ÓÌí¼Ó×Ö·û

+                dst_str[j++] = src_str[i];

+				i++;

+            }

+        } else {

+            // Ö±½ÓÌí¼Ó×Ö·û

+            dst_str[j++] = src_str[i];

+			i++;

+        }

+        //i++;

+    }

+}

+/* Ended by AICoder, pid:qc462h2f14sd8fc148fc0986d07ec35fc6134b6a */

 //ÅÅÐòÁË È¡ÐźźõÄǰ30

 static int send_scan_result_to_cap(void)

 {

@@ -3079,7 +3304,8 @@
 		//scan_list.info[i].frequency = g_scan_result_list_p[i]->ch_freq;

 		scan_list.info[i].signal_level = g_scan_result_list_p[i]->signal;

 		scan_list.info[i].signal = g_scan_result_list_p[i]->signal_db;

-		strncpy(scan_list.info[i].essid, g_scan_result_list_p[i]->ssid, sizeof(scan_list.info[i].essid)-1);

+			//strncpy(scan_list.info[i].essid, g_scan_result_list_p[i]->ssid, sizeof(scan_list.info[i].essid)-1);

+			convert_utf8_to_hex(g_scan_result_list_p[i]->ssid, scan_list.info[i].essid);

 		strncpy(scan_list.info[i].bssid, g_scan_result_list_p[i]->mac, sizeof(scan_list.info[i].bssid)-1);

 		scan_list.cnt++;

 	}