[Feature][ZXW-292]merge P56U06 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: I922cf7b03b256d7dd5b0a6b73c3eac813f9512eb
diff --git a/ap/app/hostapd-2.10/hostapd/libwpa_client.a b/ap/app/hostapd-2.10/hostapd/libwpa_client.a
index c7e590f..f13d606 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 a445b23..ab6aac6 100755
--- a/ap/app/include/wifi_msg.h
+++ b/ap/app/include/wifi_msg.h
@@ -657,6 +657,26 @@
IN_WIFI_REASON_CODE_DHCP_FAILED
} in_wifi_reason_code_e;
+typedef struct
+{
+ char addr[16]; //255.255.255.255 16 IPV4ADDLEN_MAX
+ char netmask[16];
+ unsigned char subnet_bits; //255.255.255.0 is 24
+ char gateway[16];
+ char dnsp[16]; //primary DNS
+ char dnss[16]; //secondary DNS
+} in_wifi_net_addr_t;
+
+typedef struct
+{
+ char addr[48]; //0001:0002:0003:0004:0001:0002:0003:0004 40 (+8:, 48)
+ char prefix[48];
+ unsigned char prefix_bits;
+ char gateway[48];
+ char dnsp[48]; //primary DNS
+ char dnss[48]; //secondary DNS
+} in_wifi_net_addr6_t;
+
//same as sc_wifi_sta_status_t
typedef struct {
int pre_status; //proxy record
@@ -664,12 +684,12 @@
int status; //in_wifi_sta_status_e
char ifname[32];
char ap_bssid[18]; //cur ap mac
- //int rssi;
+ int rssi;
unsigned char signal_level;
unsigned char has_addr;
- char str_addr[16]; //255.255.255.255 16
+ in_wifi_net_addr_t addr;
unsigned char has_addr6;
- char str_addr6[48]; //0001:0002:0003:0004:0001:0002:0003:0004 40 (+8:, 48)
+ in_wifi_net_addr6_t addr6;
int reason_code; //in_wifi_reason_code_e
} wlan_sta_status_t;
diff --git a/ap/app/wpa_supplicant-2.10/wpa_supplicant/libwpa_client.a b/ap/app/wpa_supplicant-2.10/wpa_supplicant/libwpa_client.a
index 13a378d..a8cddda 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_amt/amt.c b/ap/app/zte_amt/amt.c
index 8cd888c..438c6c1 100755
--- a/ap/app/zte_amt/amt.c
+++ b/ap/app/zte_amt/amt.c
@@ -92,8 +92,11 @@
#ifdef USE_CAP_SUPPORT
static int g_amt_fd_cap = -1;
#endif
-
-
+static unsigned int rat = 0;
+static unsigned int ant_num = 0;
+static void send_ok(int fd);
+static void send_error(int fd);
+static void send_query_result(int fd,char* cmd, char* param);
/**
@@ -308,6 +311,160 @@
}
#endif
+/**
+ * @brief ½âÎöAMTÏûϢת»¯ÎªAT×Ö·û´®·¢Ë͸øPC
+ * @param[in] fd ÎļþÃèÊö·û
+ * @param[in] buf ½ÓÊÕÊý¾Ýbuffer
+ * @param[in] buf_len ½ÓÊÕÊý¾Ýbuffer³¤¶È
+ * @return ·µ»Ø·¢Ë͵ÄÊý¾Ý³¤¶È
+ * @note
+ * @see
+ */
+static int At_SendData(int fd, unsigned char* buf, unsigned int buf_len)
+{
+ unsigned char *pSTX = NULL;
+ unsigned char *pETX = NULL;
+ unsigned char *pTID = NULL;
+ unsigned char *pFID = NULL;
+ unsigned char *pCheck = NULL;
+ unsigned char *pData = NULL;
+ unsigned char CheckSum = 0;
+ unsigned int msg_id;
+ unsigned int i = 0;
+ unsigned int phy_msg_id;
+ unsigned int phy_ret;
+ pTID = pTID;
+ pCheck = pCheck;
+ pData = pData;
+
+ pSTX = &buf[0];
+ pETX = &buf[buf_len - 1];
+ pTID = &buf[1];
+ pFID = &buf[1 + 1];
+ pCheck = &buf[buf_len - 2];
+ pData = &buf[1 + 1 + 1];
+
+ if (!((0x02 == *pSTX) && (0x02 == *pETX)))
+ {
+ return -1;
+ }
+
+ CheckSum = 0;
+
+ for (i = 0; i < (buf_len - 2); i++)
+ CheckSum ^= buf[1 + i];
+
+ if (CheckSum != 0)
+ {
+ return -1;
+ }
+
+ // TIDÓëFID×éºÏʹÓÃÒÑÀ©Õ¹¹¦ÄܺÅ
+ msg_id = (*pTID << 8) | *pFID;
+
+ AmtPrintf(AMT_INFO "%s: msg_id = %#04x, buf_len = %d.\n", __FUNCTION__, msg_id, buf_len);
+
+ switch(msg_id)
+ {
+ //LTEÎïÀí²ãAMTÏûÏ¢
+ case FID_LTEA_PHY_MSG:
+ {
+ memcpy(&phy_msg_id, pData, 4);
+ memcpy(&phy_ret, pData + 4, 4);
+ AmtPrintf(AMT_INFO "%s: lte_phy_msg_id = %#04x, lte_phy_ret = %d.\n", __FUNCTION__, phy_msg_id,phy_ret);
+ switch(phy_msg_id)
+ {
+ case 0x505://ZAMT_LTEA_GET_NST_RSRP
+ {
+ typedef struct
+ {
+ UINT32 dwMsgId; //x0505
+ UINT32 dwRet; //=0,±êʶ³É¹¦; ÆäËûÖµ±êʶʧ°Ü
+ UINT16 wAntRsrp[4]; // ×î¶à4¸öÌìÏß½ÓÊÕRSRPÖµ
+ UINT16 wAntRssi[2]; // Ö÷¸¨ÌìÏß½ÓÊÕRSSIÖµµÄÕûÊý²¿·Ö
+ UINT16 wAntRssiDec[2]; // Ö÷¸¨ÌìÏß½ÓÊÕRSSIÖµµÄСÊý²¿·Ö
+ }T_zAMT_LTEA_GetRsrp_Rsp;
+
+ T_zAMT_LTEA_GetRsrp_Rsp stGetRsrp_Rsp = {0};
+
+ if(phy_ret == 0)
+ {
+ memcpy(&stGetRsrp_Rsp, pData,sizeof(stGetRsrp_Rsp));
+ AmtPrintf(AMT_INFO "%s: RSRP[0] = %d, RSRP[1] = %d,RSSI[0] = %d, RSSI[1] = %d,RSSIDec[0] = %d, RSSIDec[1] = %d\n", \
+ __FUNCTION__, stGetRsrp_Rsp.wAntRsrp[0],stGetRsrp_Rsp.wAntRsrp[1],\
+ stGetRsrp_Rsp.wAntRssi[0],stGetRsrp_Rsp.wAntRssi[1],\
+ stGetRsrp_Rsp.wAntRssiDec[0],stGetRsrp_Rsp.wAntRssiDec[1]);\
+ char strRSSI[100] = {0};
+ UINT16 wAnt0RSSI = stGetRsrp_Rsp.wAntRssi[0];
+ UINT16 wAnt0RSSIDec = stGetRsrp_Rsp.wAntRssiDec[0];
+ double dAnt0RSSI = (double)(wAnt0RSSI + (wAnt0RSSIDec/128.0) - 65535);
+ UINT16 wAnt1RSSI = stGetRsrp_Rsp.wAntRssi[1];
+ UINT16 wAnt1RSSIDec = stGetRsrp_Rsp.wAntRssiDec[1];
+ double dAnt1RSSI = (double)(wAnt1RSSI + (wAnt1RSSIDec/128.0) - 65535);
+
+ switch(ant_num)
+ {
+ //»ñÈ¡Ö÷·rssi
+ case 10:
+ {
+ sprintf(strRSSI,"%.2f",dAnt0RSSI);
+ send_query_result(fd, "RSSI",strRSSI);
+ break;
+ }
+ //»ñÈ¡¸¨Â·rssi
+ case 11:
+ {
+ sprintf(strRSSI,"%.2f",dAnt1RSSI);
+ send_query_result(fd, "RSSI",strRSSI);
+ break;
+ }
+ //»ñÈ¡Ö÷¸¨Â·rssi
+ default:
+ {
+ sprintf(strRSSI,"%.2f,%.2f",dAnt0RSSI,dAnt1RSSI);
+ send_query_result(fd, "RSSI",strRSSI);
+ break;
+ }
+ }
+ }
+ else
+ {
+ send_error(fd);
+ }
+
+ break;
+ }
+ case 0x500://ZAMT_LTEA_SET_NST_INIT
+ {
+ if(phy_ret == 0)
+ {
+ send_ok(fd);
+ }
+ else
+ {
+ send_error(fd);
+ }
+ break;
+ }
+ default:
+ {
+ AmtPrintf(AMT_INFO "%s: lte_phy_msg_id = %#04x\n", __FUNCTION__, phy_msg_id);
+ break;
+ }
+ }
+
+ break;
+ }
+ default:
+ {
+ AmtPrintf(AMT_INFO "%s: unknown msg_id = %#04x\n", __FUNCTION__, msg_id);
+ break;
+ }
+ }
+
+ return 1;
+
+}
/**
* @brief ¶ÁÈ¡cp²àµÄ·´À¡ÏûÏ¢Ï̺߳¯Êý
@@ -345,17 +502,23 @@
{
Amt_SendData(*g_amt_fd_current, (unsigned char *)receive_buffer, read_len);
}
+ else
+ {
+
+ At_SendData(*g_amt_fd_current, (unsigned char *)receive_buffer, read_len);
+ }
}
else
{
AmtPrintf(AMT_ERROR "%s: Current fd is wrong.\n", __FUNCTION__);
}
-
+#if 0
unsigned int status = cpnv_FsGcWait(FS_NVROFS);
if(status != CPNV_OK)
AmtPrintf(AMT_INFO "%s: cpnv_FsGcWait fail, err = %d.\n", __FUNCTION__, status);
- }
+#endif
+ }
}
free(receive_buffer);
@@ -1696,6 +1859,166 @@
}
+static double lte_channel_to_freq(unsigned int band,unsigned int channel,unsigned int link)
+{
+ double freq = 0;
+ typedef struct
+ {
+ int band;
+ double dl_f_low;
+ int dl_n_offset;
+ double ul_f_low;
+ int ul_n_offset;
+ }stLteChannelArrangement;
+
+ stLteChannelArrangement info[64] = {
+
+ { 1, 2110, 0, 1920, 18000 },
+ { 2, 1930, 600, 1850, 18600 },
+ { 3, 1805, 1200, 1710, 19200 },
+ { 4, 2110, 1950, 1710, 19950 },
+ { 5, 869, 2400, 824, 20400 },
+ { 6, 875, 2650, 830, 20650 },
+ { 7, 2620, 2750, 2500, 20750 },
+ { 8, 925, 3450, 880, 21450 },
+ { 9, 1844.9, 3800, 1749.9, 21800 },
+ { 10, 2110, 4150, 1710, 22150 },
+ { 11, 1475.9, 4750, 1427.9, 22750 },
+ { 12, 729, 5010, 699, 23010 },
+ { 13, 746, 5180, 777, 23180 },
+ { 14, 758, 5280, 788, 23280 },
+ { 15, 0, 0, 0, 0 },
+ { 16, 0, 0, 0, 0 },
+ { 17, 734, 5730, 704, 23730 },
+ { 18, 860, 5850, 815, 23850 },
+ { 19, 875, 6000, 830, 24000 },
+ { 20, 791, 6150, 832, 24150 },
+ { 21, 1495.9, 6450, 1447.9, 24450 },
+ { 22, 3510, 6600, 3410, 24600 },
+ { 23, 2180, 7500, 2000, 25500 },
+ { 24, 1525, 7700, 1626.5, 25700 },
+ { 25, 1930, 8040, 1850, 26040 },
+ { 26, 859, 8690, 814, 26690 },
+ { 27, 852, 9040, 807, 27040 },
+ { 28, 758, 9210, 703, 27210 },
+ { 29, 0, 0, 0, 0 },
+ { 30, 2350, 9770, 2305, 27660 },
+ { 31, 462.5, 9870, 452.5, 27760 },
+ { 32, 0, 0, 0, 0 },
+ { 33, 1900, 36000, 1900, 36000 },
+ { 34, 2010, 36200, 2010, 36200 },
+ { 35, 1850, 36350, 1850, 36350 },
+ { 36, 1930, 36950, 1930, 36950 },
+ { 37, 1910, 37550, 1910, 37550 },
+ { 38, 2570, 37750, 2570, 37750 },
+ { 39, 1880, 38250, 1880, 38250 },
+ { 40, 2300, 38650, 2300, 38650 },
+ { 41, 2496, 39650, 2496, 39650 },
+ { 42, 3400, 41590, 3400, 41590 },
+ { 43, 3600, 43590, 3600, 43590 },
+ { 44, 703, 45590, 703, 45590 },
+ { 45, 0, 0, 0, 0 },
+ { 46, 0, 0, 0, 0 },
+ { 47, 0, 0, 0, 0 },
+ { 48, 0, 0, 0, 0 },
+ { 49, 0, 0, 0, 0 },
+ { 50, 0, 0, 0, 0 },
+ { 51, 0, 0, 0, 0 },
+ { 52, 0, 0, 0, 0 },
+ { 53, 0, 0, 0, 0 },
+ { 54, 0, 0, 0, 0 },
+ { 55, 0, 0, 0, 0 },
+ { 56, 0, 0, 0, 0 },
+ { 57, 0, 0, 0, 0 },
+ { 58, 0, 0, 0, 0 },
+ { 59, 0, 0, 0, 0 },
+ { 60, 0, 0, 0, 0 },
+ { 61, 0, 0, 0, 0 },
+ { 62, 0, 0, 0, 0 },
+ { 63, 0, 0, 0, 0 },
+ { 64, 0, 0, 0, 0 },
+
+ };
+
+ AmtPrintf(AMT_INFO "%s: beore transform band=%d,channel=%d,link=%d,freq=%f\n", __FUNCTION__, band,channel,link,freq);
+
+ if (band > 0 && band <= 64)
+ {
+ freq = info[band - 1].ul_f_low + 0.1 * (channel - info[band - 1].ul_n_offset);
+ if(link)
+ {
+ freq = info[band -1].dl_f_low + 0.1 * (channel - info[band - 1].dl_n_offset);
+ }
+ }
+ AmtPrintf(AMT_INFO "%s: after transform freq=%f\n", __FUNCTION__, freq);
+ return freq;
+}
+
+static void send_lte_nst_init_packet(unsigned int band,unsigned int channel,unsigned int band_width)
+{
+ typedef struct
+ {
+ u32 MsgId;
+ unsigned short wBandNum[2]; // Ƶ¶Î
+ unsigned short wFreq[2]; // ÖÐÐÄÆµµã£¬100kHzΪµ¥Î»
+ unsigned short wBandWidth[2]; // ´ø¿í
+ unsigned short wAntennaPort[2]; // ÌìÏß¶Ë¿Ú
+ unsigned short wModulation[2]; // µ÷ÖÆ·½Ê½£¬0£ºQPSK£¬1£º16QAM£¬2£º64QAM
+ unsigned short wRbNum[2]; // rb num
+ unsigned short wRbStartPostion[2]; // rb start
+ unsigned short wSingleCarrier[2]; //0:·¢µ÷ÖÆÐźŠ1:·¢µ¥Ôز¨
+ }T_zAMT_LTEA_NST_INIT;
+
+ unsigned short freq = 0;
+ freq = (unsigned short)(lte_channel_to_freq(band,channel,1)*10);
+
+
+ T_zAMT_LTEA_NST_INIT stNSTInitReq = {0};
+ stNSTInitReq.MsgId = 0x0500;
+ stNSTInitReq.wBandNum[0] = band;
+ stNSTInitReq.wFreq[0] = freq;
+ stNSTInitReq.wBandWidth[0] = band_width;
+ stNSTInitReq.wAntennaPort[0] = 1;
+ stNSTInitReq.wModulation[0] = 0;
+ stNSTInitReq.wRbNum[0] = 50;
+ stNSTInitReq.wRbStartPostion[0] = 0;
+ stNSTInitReq.wSingleCarrier[0] = 0;
+
+ AmtPrintf(AMT_INFO "%s: stNSTInitReq:MsgId=%d,wBandNum[0]=%d,wFreq[0]=%d,wBandWidth[0]=%d\n",\
+ __FUNCTION__, stNSTInitReq.MsgId,stNSTInitReq.wBandNum[0],stNSTInitReq.wFreq[0],stNSTInitReq.wBandWidth[0]);
+
+ AmtPrintf(AMT_INFO "%s: stNSTInitReq:wAntennaPort[0]=%d,wModulation[0]=%d,wRbNum[0]=%d\n",\
+ __FUNCTION__, stNSTInitReq.wAntennaPort[0],stNSTInitReq.wModulation[0],stNSTInitReq.wRbNum[0]);
+
+ AmtPrintf(AMT_INFO "%s: wRbStartPostion[0]=%d,wSingleCarrier[0]=%d\n",\
+ __FUNCTION__, stNSTInitReq.wRbStartPostion[0],stNSTInitReq.wSingleCarrier[0]);
+
+ unsigned char lte_nst_init_packet[sizeof(stNSTInitReq)+5] = {0};
+ unsigned short fid = 0x005f;
+ CreateSendPacket(fid,(unsigned char*)&stNSTInitReq,sizeof(stNSTInitReq),lte_nst_init_packet);
+ Amt_ComposeAndProcess(lte_nst_init_packet, sizeof(lte_nst_init_packet));
+
+}
+
+static void send_lte_get_rssi_packet()
+{
+ u32 lte_get_rssi_req[1] = {0};
+ lte_get_rssi_req[0] = 0x0505;
+ unsigned char lte_get_rssi_packet[1*4+5] = {0};
+ unsigned short fid = 0x005f;
+ CreateSendPacket(fid,(unsigned char*)lte_get_rssi_req,sizeof(lte_get_rssi_req),lte_get_rssi_packet);
+ Amt_ComposeAndProcess(lte_get_rssi_packet, sizeof(lte_get_rssi_packet));
+}
+
+static void send_lte_rx_close_packet()
+{
+ u32 lte_rx_close_req[1] = {0};
+ lte_rx_close_req[0] = 0x0301;
+ unsigned char lte_rx_close_packet[1*4+5] = {0};
+ unsigned short fid = 0x005f;
+ CreateSendPacket(fid,(unsigned char*)lte_rx_close_req,sizeof(lte_rx_close_req),lte_rx_close_packet);
+ Amt_ComposeAndProcess(lte_rx_close_packet, sizeof(lte_rx_close_packet));
+}
static void send_switch_to_user_mode_packet()
{
unsigned char bootmode[] = {0x54, 0x00};
@@ -1711,6 +2034,37 @@
PortSend(fd, (unsigned char*)rep_ok, strlen(rep_ok), WAIT_ALL);
}
+static void send_error(int fd)
+{
+ char rep_ok[] = "ERROR\r\n";
+ PortSend(fd, (unsigned char*)rep_ok, strlen(rep_ok), WAIT_ALL);
+}
+
+static void send_query_result(int fd,char* cmd, char* param)
+{
+ char * at_str = NULL;
+ int len = 0;
+
+ if(param)
+ {
+ len = 32 + strlen(cmd) + strlen(param);
+ at_str = malloc(len);
+ }
+ else
+ {
+ len = 32 + strlen(cmd);
+ at_str = malloc(len);
+ }
+ assert(at_str);
+ memset(at_str, 0, len);
+ if(!param)
+ sprintf(at_str,"\r\n+%s\r\n\r\nOK\r\n",cmd);
+ else
+ sprintf(at_str,"\r\n+%s: %s\r\n\r\nOK\r\n",cmd,param);
+
+ PortSend(fd, (unsigned char*)at_str, strlen(at_str), WAIT_ALL);
+ free(at_str);
+}
/**
* @brief ATÃüÁî½ÓÊÕ
* @param[in] fd ÎļþÃèÊö·û
@@ -1790,6 +2144,149 @@
send_switch_to_user_mode_packet();
send_ok(fd);
}
+ else if(strstr(buf,"at+rxstart") != NULL)
+ {
+ //½âÎöATÃüÁîat+rxstart=rat,band,channel,bandwidth,antnum,expect_level
+ AmtPrintf(AMT_INFO "%s: receive at+rxstart\n", __FUNCTION__);
+ int data[6] = {0};
+ //unsigned int rat = 0;
+ unsigned int band = 0;
+ unsigned int channel = 0;
+ unsigned int band_width = 0;
+ //unsigned int ant_num = 0;
+ int expect_level = 0;
+ int ret = 0;
+
+ //»ñÈ¡²ÎÊý
+ buf = buf + strlen("at+rxstart=");
+ if(buf != NULL)
+ {
+ ret = sscanf(buf, "%d,%d,%d,%d,%d,%d", &data[0], &data[1], &data[2], &data[3],&data[4],&data[5]);
+ if(ret == 6)
+ {
+ rat = data[0];
+ band = data[1];
+ channel = data[2];
+ band_width = data[3];
+ ant_num = data[4];
+ expect_level = data[5];
+ AmtPrintf(AMT_INFO "%s: rat=%d,band=%d,channel=%d,band_width=%d,ant_num=%d,expect_level=%d\n", __FUNCTION__, rat,band,channel,band_width,ant_num,expect_level);
+ //rat(ÖÆÊ½)ȡֵ·¶Î§[0,2] 0:GSM 1:WCDMA 2:LTE
+ if((rat < 0) || (rat > 2))
+ {
+ AmtPrintf(AMT_ERROR "%s: invalid rat=%d[0,2]!\n", __FUNCTION__,rat);
+ return read_len;
+ }
+ if(band == 0)
+ {
+ AmtPrintf(AMT_ERROR "%s: invalid band!\n", __FUNCTION__);
+ return read_len;
+
+ }
+ if(channel == 0 )
+ {
+ AmtPrintf(AMT_ERROR "%s: invalid channel!\n", __FUNCTION__);
+ return read_len;
+ }
+ //ant_num·¶Î§[0,1000]
+ if((ant_num < 0) || (ant_num > 1000))
+ {
+ AmtPrintf(AMT_ERROR "%s: invalid ant_num=%d[0,1000]!\n", __FUNCTION__,ant_num);
+ return read_len;
+ }
+
+ switch(rat)
+ {
+ //LTE
+ case 2:
+ {
+ //LTE´ø¿í·¶Î§
+ /*
+ typedef enum TDDLTE_bandW
+ {
+ RX1point75M = 0,
+ RX2point25M,
+ RX3point5M,
+ RX5M,
+ RX5point5M,
+ RX6M,
+ RX7M,
+ RX8M,
+ RX9M,
+ RX10M,
+ RX12M,
+ RX14M,
+ RX15M,
+ RX20M,
+ RX24M,
+ RX28M
+ RX1point4M
+ } TDDLTE_BandWidth;*/
+ if((band_width < 0) || (band_width > 16))
+ {
+ AmtPrintf(AMT_ERROR "%s: invalid LTE band_width=%d[0,16]!\n", __FUNCTION__,band_width);
+ return read_len;
+ }
+ //ת»¯Îª½øÈëamtģʽºÍnstinitÁ½ÌõAMTÖ¸Áî
+ send_enter_amt_mode_packet();
+ sleep(1);
+ send_lte_nst_init_packet(band,channel,band_width);
+ break;
+ }
+ case 0:
+ case 1:
+ default:
+ {
+ AmtPrintf(AMT_ERROR "%s: rat=%d not support\n", __FUNCTION__,rat);
+ send_error(fd);
+ break;
+ }
+ }
+
+ }
+ else
+ {
+ AmtPrintf(AMT_INFO "%s: at+rxstart param parse error!\n", __FUNCTION__);
+ return read_len;
+ }
+ }
+ else
+ {
+ AmtPrintf(AMT_INFO "%s: at+rxstart param str is empty!\n", __FUNCTION__);
+ return read_len;
+ }
+ }
+ else if(strstr(buf,"at+rssi") != NULL)
+ {
+ //½âÎöATÃüÁîat+rssi
+ AmtPrintf(AMT_INFO "%s: receive at+rssi\n", __FUNCTION__);
+ switch(rat)
+ {
+ //LTE
+ case 2:
+ {
+ //ת»¯Îª»ñÈ¡RSSIµÄAMTÖ¸Áî
+ send_lte_get_rssi_packet();
+ break;
+ }
+ case 0:
+ case 1:
+ default:
+ {
+ AmtPrintf(AMT_ERROR "%s: rat=%d not support\n", __FUNCTION__,rat);
+ send_error(fd);
+ break;
+ }
+ }
+ }
+ else if(strstr(buf,"at+rxstop") != NULL)
+ {
+ //ת»¯Îª¹Ø±Õ½ÓÊÕ»úºÍÍ˳öamtģʽÁ½ÌõAMTÖ¸Áî
+ send_lte_rx_close_packet();
+ sleep(1);
+ send_exit_amt_mode_packet();
+ send_ok(fd);
+ }
else
{
AmtPrintf(AMT_ERROR "%s: unknown at %s.\n", __FUNCTION__, buf);
diff --git a/ap/app/zte_amt/amt.h b/ap/app/zte_amt/amt.h
index 10e7c23..8e4414f 100755
--- a/ap/app/zte_amt/amt.h
+++ b/ap/app/zte_amt/amt.h
@@ -94,7 +94,7 @@
#define FID_CAP_TEST_END 0x2400
#endif
-
+#define FID_LTEA_PHY_MSG (0x5F)
#define min(X, Y) \
({ typeof (X) __x = (X); \
diff --git a/ap/app/zte_comm/nvserver/nvserver.c b/ap/app/zte_comm/nvserver/nvserver.c
index e059121..9787706 100755
--- a/ap/app/zte_comm/nvserver/nvserver.c
+++ b/ap/app/zte_comm/nvserver/nvserver.c
@@ -31,73 +31,73 @@
file,char*key,char*value);static int nvunset(char*file,char*key);static int
nvclear(char*file);static int nvreset(char*file);static int nvcommit(char*file);
T_NV_NODE*nv_list;int nvserver_main(int argc,char*argv[]){int msgId=
-(0xd58+4544-0x1f18);T_NV_MSG_INFO rcvBuf;T_NV_MSG_RESULT sndBuf;struct msqid_ds
-msgInfo;prctl(PR_SET_NAME,"\x6e\x76\x73\x65\x72\x76\x65\x72",(0x4b1+4172-0x14fd)
-,(0x1111+2535-0x1af8),(0xf7a+5057-0x233b));memset(&rcvBuf,(0x1a60+353-0x1bc1),
-sizeof(rcvBuf));memset(&sndBuf,(0xdfb+1453-0x13a8),sizeof(sndBuf));memset(&
-msgInfo,(0x951+5943-0x2088),sizeof(msgInfo));msgId=msgget(MODULE_ID_NV,IPC_CREAT
-|(0x1ad+2938-0xba7));if(-(0x15d3+1067-0x19fd)==msgId){printf(
+(0x15cd+48-0x15fd);T_NV_MSG_INFO rcvBuf;T_NV_MSG_RESULT sndBuf;struct msqid_ds
+msgInfo;prctl(PR_SET_NAME,"\x6e\x76\x73\x65\x72\x76\x65\x72",(0xb65+2390-0x14bb)
+,(0x1268+5196-0x26b4),(0x1892+1004-0x1c7e));memset(&rcvBuf,(0x8b3+6103-0x208a),
+sizeof(rcvBuf));memset(&sndBuf,(0x6ed+6339-0x1fb0),sizeof(sndBuf));memset(&
+msgInfo,(0x4e6+2797-0xfd3),sizeof(msgInfo));msgId=msgget(MODULE_ID_NV,IPC_CREAT|
+(0xc79+1358-0x1047));if(-(0x1369+4232-0x23f0)==msgId){printf(
"\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-(0x1c83+2548-0x2676);}if(-(0xa2b+5325-0x1ef7)!=msgctl(msgId,
-IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0x133d+3883-0x2267)==msgctl(
+,errno);return-(0x849+5528-0x1de0);}if(-(0x1f3b+1533-0x2537)!=msgctl(msgId,
+IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0x80+5832-0x1747)==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()!=(0xc28+128-0xca8)){printf(
+,errno);}if(nvDirInit()!=(0xb9f+2462-0x153d)){printf(
"\x6e\x76\x44\x69\x72\x49\x6e\x69\x74\x20\x66\x61\x69\x6c\x65\x21" "\n");return-
-(0xa28+2379-0x1372);}nvConfig();nvInit();while((0x1de8+1167-0x2276)){if(-
-(0x6a+7229-0x1ca6)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
-MSG_TYPE_NV,(0x22c+7228-0x1e68))){printf(
+(0xefa+129-0xf7a);}nvConfig();nvInit();while((0x406+7286-0x207b)){if(-
+(0x458+5767-0x1ade)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
+MSG_TYPE_NV,(0x161+4916-0x1495))){printf(
"\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(-(0x1f8+8763-0x2432)==msgsnd(
-msgId,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0x229+7220-0x1e5d))){printf(
+,errno);continue;}analyMsg(&rcvBuf,&sndBuf);if(-(0xebf+2501-0x1883)==msgsnd(
+msgId,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0xb17+5242-0x1f91))){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((0x401+950-0x7b7));}static void configdir(char*dir){
+,errno);continue;}}return((0x234+4198-0x129a));}static void configdir(char*dir){
DIR*dp;int ret;struct dirent*entry;struct stat statbuf;if((dp=opendir(dir))==
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<(0x32d+5899-0x1a38)){fprintf(stderr,
+d_name,&statbuf);if(ret<(0x6a1+704-0x961)){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)==(0x297+5022-0x1635)||strcmp("\x2e\x2e",entry->
-d_name)==(0x15a3+4365-0x26b0))continue;if(!isNvConfiged(entry->d_name)){if(
+strcmp("\x2e",entry->d_name)==(0xfe2+3489-0x1d83)||strcmp("\x2e\x2e",entry->
+d_name)==(0x6f1+4219-0x176c))continue;if(!isNvConfiged(entry->d_name)){if(
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]={(0x2424+266-0x252e)};fp=fopen
+val=NULL;FILE*fp=NULL;char buf[NV_MAX_CONFIG_LEN]={(0x230+4857-0x1529)};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[
-(0x163b+2526-0x2019)]=='\n'||buf[(0x1769+2727-0x2210)]==
-((char)(0x17c6+3876-0x26c7)))continue;val=strchr(buf,((char)(0x730+5296-0x1ba3))
-);if(!val){printf(
+(0xaf1+693-0xda6)]=='\n'||buf[(0xeff+1152-0x137f)]==((char)(0xdf+3679-0xf1b)))
+continue;val=strchr(buf,((char)(0xf7f+5610-0x252c)));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)-(0x1027+4827-0x2301)]='\0';*val++
-='\0';if(!isCfgConfiged(buf)){if(addConfigFile(val,buf)!=RESULT_SUCCESS)printf(
+,NV_CONFIG_FILE,buf);continue;}buf[strlen(buf)-(0x149+2404-0xaac)]='\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)!=(0xa1b+1768-0x1103)){if(mkdir(NV_FS_PATH,(0x1065+4612-0x207c))
-!=(0x17fb+350-0x1959)){printf(
+NV_FS_PATH,F_OK)!=(0xaed+1482-0x10b7)){if(mkdir(NV_FS_PATH,(0x1d53+2464-0x2506))
+!=(0x1ae2+1512-0x20ca)){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-(0x148b+3120-0x20ba);}if(mkdir(NV_FS_MAIN_PATH,
-(0x505+8532-0x246c))!=(0xee5+1175-0x137c)){printf(
+,NV_FS_PATH,errno);return-(0x254+20-0x267);}if(mkdir(NV_FS_MAIN_PATH,
+(0x15b5+4595-0x25bb))!=(0x12f2+1618-0x1944)){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-(0x1a61+1686-0x20f6);}if(mkdir(NV_FS_BACKUP_PATH,
-(0xb05+1560-0xf30))!=(0x3fd+6673-0x1e0e)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0x6e9+3085-0x12f5);}if(mkdir(NV_FS_BACKUP_PATH,
+(0x1ba9+223-0x1a9b))!=(0x340+5637-0x1945)){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-(0x34+5944-0x176b);}}else{if(access(
-NV_FS_MAIN_PATH,F_OK)!=(0x2f1+8054-0x2267)){if(mkdir(NV_FS_MAIN_PATH,
-(0x29b+682-0x358))!=(0x281+3279-0xf50)){printf(
+,NV_FS_BACKUP_PATH,errno);return-(0x1257+1860-0x199a);}}else{if(access(
+NV_FS_MAIN_PATH,F_OK)!=(0x8ba+1000-0xca2)){if(mkdir(NV_FS_MAIN_PATH,
+(0xd8b+6018-0x2320))!=(0x3e6+8854-0x267c)){printf(
"\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-(0x54d+2844-0x1068);}}if(access(NV_FS_BACKUP_PATH
-,F_OK)!=(0x9dd+2366-0x131b)){if(mkdir(NV_FS_BACKUP_PATH,(0x8a7+3264-0x137a))!=
-(0x176+1547-0x781)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0xccf+6635-0x26b9);}}if(access(NV_FS_BACKUP_PATH
+,F_OK)!=(0x15c9+2109-0x1e06)){if(mkdir(NV_FS_BACKUP_PATH,(0x151d+3948-0x229c))!=
+(0x1718+3056-0x2308)){printf(
"\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-(0xed1+3677-0x1d2d);}}}return(0xc4f+615-0xeb6);
-}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[NV_PATH_LEN]={
-(0x170+3682-0xfd2)};char nvBackupFile[NV_PATH_LEN]={(0x2da+5726-0x1938)};
+,NV_FS_BACKUP_PATH,errno);return-(0x1dc5+266-0x1ece);}}}return
+(0x84d+4533-0x1a02);}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[
+NV_PATH_LEN]={(0xcb0+2803-0x17a3)};char nvBackupFile[NV_PATH_LEN]={
+(0x3ba+4577-0x159b)};
#ifdef FOTA_AB
-T_FLAGS_INFO flags_info={(0x66f+7608-0x2427)};int ret=(0xec8+4771-0x216b);
+T_FLAGS_INFO flags_info={(0x1dd0+1819-0x24eb)};int ret=(0x1e9+8986-0x2503);
#endif
for(list=nv_list;list;list=list->next){snprintf(nvMainFile,NV_PATH_LEN,
"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,list->nvFile);snprintf(nvBackupFile,
@@ -105,73 +105,73 @@
nvMainFile)){if(!checkNvFs(nvBackupFile))restoreNvFs(nvBackupFile,nvMainFile);}
else if(checkNvFs(nvBackupFile)){restoreNvFs(nvMainFile,nvBackupFile);}else{
loadFactroyParam(list);nvcommit(list->nvFile);continue;}loadNvFs(list->nvFile);
-if(!strcmp(list->nvFile,NV_CFG)&&get_update_status()==(0x153+6736-0x1ba1)){
+if(!strcmp(list->nvFile,NV_CFG)&&get_update_status()==(0xe09+2214-0x16ad)){
reloadFactroyParam(list);delete_not_needed(list);nvcommit(list->nvFile);
#ifdef FOTA_AB
ret=flags_get(&flags_info);flags_info.boot_fota_flag.fota_status=
-(0xd12+2242-0x15d4);ret=flags_set(&flags_info);
+(0x10b9+5466-0x2613);ret=flags_set(&flags_info);
#endif
-}}}uint hash(const char*s){uint hash=(0x714+4028-0x16d0);while(*s){hash=
+}}}uint hash(const char*s){uint hash=(0x1d27+2230-0x25dd);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]={
-(0x219+9004-0x2545)};for(config=list->fileList;config;config=config->next){fp=
+(0x20d5+793-0x23ee)};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[(0x86a+6224-0x20ba)]=='\n'||buf[(0x7cd+4687-0x1a1c)]
-==((char)(0x1d5+666-0x44c)))continue;val=strchr(buf,((char)(0x234+7091-0x1daa)))
-;if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0xe47+839-0x118e)]=='\n'||buf[(0x57c+5470-0x1ada)]
+==((char)(0x16d6+2217-0x1f5c)))continue;val=strchr(buf,
+((char)(0xa67+3601-0x183b)));if(!val){printf(
"\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)-(0x14c0+4063-0x249e)]==
-'\n')buf[strlen(buf)-(0x18a7+1583-0x1ed5)]='\0';*val++='\0';nvset(list->nvFile,
-buf,val,(0x14bc+476-0x1697));}printf(
+,config->configFile,buf);continue;}if(buf[strlen(buf)-(0x26b+4750-0x14f8)]=='\n'
+)buf[strlen(buf)-(0x1325+4694-0x257a)]='\0';*val++='\0';nvset(list->nvFile,buf,
+val,(0x89+13-0x95));}printf(
"\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=(0x1c51+2081-0x2472);int cnt=(0x1434+3906-0x2376);FILE*fp=
-NULL;char*buf=NULL;struct stat statbuff={(0x9fa+3639-0x1831)};if(stat(file,&
-statbuff)<(0x114d+3978-0x20d7))return false;len=statbuff.st_size;if(len<
-NV_CHECK_SIZE)return false;fp=fopen(file,"\x72\x6f");if(!fp)return false;buf=(
-char*)malloc(len);if(!buf){fclose(fp);return false;}cnt=(0xb5b+1427-0x10ee);
-while(cnt<len){cnt=cnt+fread(buf+cnt,(0x37c+7472-0x20ab),len-cnt,fp);if(ferror(
-fp)){clearerr(fp);free(buf);fclose(fp);return false;}}if(len!=cnt){free(buf);
-fclose(fp);return false;}if(getSum(buf,len-NV_CHECK_SIZE)+NV_FILE_FLAG!=*(uint*)
-(buf+len-NV_CHECK_SIZE)){free(buf);fclose(fp);return false;}free(buf);fclose(fp)
-;return true;}static int copyfile(const char*from,const char*to){int fd_to;int
-fd_from;char buf[(0x25a9+2954-0x2133)];ssize_t nread;int ret=-
-(0x12cc+5161-0x26f4);fd_from=open(from,O_RDONLY);if(fd_from<(0x1dc7+2241-0x2688)
-)return-(0x1caa+2593-0x26c9);fd_to=open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,
-(0x1099+4681-0x2142));if(fd_to<(0xc45+3137-0x1886)){ret=-(0xda7+6342-0x266a);
-goto out_error;}while((0x12eb+373-0x145f)){char*out_ptr;ssize_t nwritten;nread=
-read(fd_from,buf,sizeof(buf));if(nread==(0x141+7769-0x1f9a)){break;}else{if(
-nread<(0x2229+59-0x2264)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
-(0x6af+1126-0xb11);goto out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,out_ptr
-,nread);if(nwritten>(0x1f0b+1089-0x234c)){nread-=nwritten;out_ptr+=nwritten;}
-else{if(nwritten<(0xbba+4451-0x1d1d)){if(errno==EINTR||errno==EAGAIN){continue;}
-else{ret=-(0x5d1+4293-0x1691);goto out_error;}}}}while(nread>(0xb0a+1408-0x108a)
-);}ret=fsync(fd_to);if(ret<(0xa4f+5612-0x203b)){printf(
+char*file){int len=(0x57d+4288-0x163d);int cnt=(0x12c8+958-0x1686);FILE*fp=NULL;
+char*buf=NULL;struct stat statbuff={(0x198+4813-0x1465)};if(stat(file,&statbuff)
+<(0x2f1+479-0x4d0))return false;len=statbuff.st_size;if(len<NV_CHECK_SIZE)return
+ false;fp=fopen(file,"\x72\x6f");if(!fp)return false;buf=(char*)malloc(len);if(!
+buf){fclose(fp);return false;}cnt=(0x6c5+5213-0x1b22);while(cnt<len){cnt=cnt+
+fread(buf+cnt,(0x20f+2715-0xca9),len-cnt,fp);if(ferror(fp)){clearerr(fp);free(
+buf);fclose(fp);return false;}}if(len!=cnt){free(buf);fclose(fp);return false;}
+if(getSum(buf,len-NV_CHECK_SIZE)+NV_FILE_FLAG!=*(uint*)(buf+len-NV_CHECK_SIZE)){
+free(buf);fclose(fp);return false;}free(buf);fclose(fp);return true;}static int
+copyfile(const char*from,const char*to){int fd_to;int fd_from;char buf[
+(0x1336+1687-0x9cd)];ssize_t nread;int ret=-(0x361+6069-0x1b15);fd_from=open(
+from,O_RDONLY);if(fd_from<(0x162d+34-0x164f))return-(0x893+6456-0x21c9);fd_to=
+open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,(0xad4+2400-0x1294));if(fd_to<
+(0x458+622-0x6c6)){ret=-(0x100b+4749-0x2295);goto out_error;}while(
+(0xc46+4307-0x1d18)){char*out_ptr;ssize_t nwritten;nread=read(fd_from,buf,sizeof
+(buf));if(nread==(0x303+4220-0x137f)){break;}else{if(nread<(0x94c+3405-0x1699)){
+if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-(0xc6a+1868-0x13b2);goto
+out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,out_ptr,nread);if(nwritten>
+(0xcd6+3953-0x1c47)){nread-=nwritten;out_ptr+=nwritten;}else{if(nwritten<
+(0x1dbf+753-0x20b0)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
+(0xbcd+6812-0x2664);goto out_error;}}}}while(nread>(0x10e8+5513-0x2671));}ret=
+fsync(fd_to);if(ret<(0x7a4+7319-0x243b)){printf(
"\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)<(0x68c+5647-0x1c9b)){fd_to=
--(0x1331+2183-0x1bb7);ret=-(0xe7f+3474-0x1c0b);goto out_error;}close(fd_from);
-return(0x17b+2218-0xa25);out_error:printf(
+,strerror(errno),to);goto out_error;}if(close(fd_to)<(0x685+3210-0x130f)){fd_to=
+-(0x1499+4606-0x2696);ret=-(0x1370+3670-0x21c0);goto out_error;}close(fd_from);
+return(0x107a+2026-0x1864);out_error:printf(
"\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>=(0x156c+3240-0x2214))close(fd_to);return
+,from,to,ret);close(fd_from);if(fd_to>=(0x131c+1698-0x19be))close(fd_to);return
ret;}static int restoreNvFs(char*dstFile,char*srcFile){if(copyfile(srcFile,
-dstFile)!=(0xb8a+2569-0x1593))return RESULT_FAIL;return RESULT_SUCCESS;}static
-int loadNvFs(char*file){int len=(0x1f27+1055-0x2346);int cnt=(0x9bf+5664-0x1fdf)
+dstFile)!=(0x155f+660-0x17f3))return RESULT_FAIL;return RESULT_SUCCESS;}static
+int loadNvFs(char*file){int len=(0x104a+2804-0x1b3e);int cnt=(0xeb9+5370-0x23b3)
;FILE*fp=NULL;char*buf=NULL;char*name=NULL;char*value=NULL;char*eq=NULL;struct
-stat statbuff={(0x1a0a+2810-0x2504)};char nvFile[NV_PATH_LEN]={
-(0x383+6530-0x1d05)};sprintf(nvFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file)
-;if(stat(nvFile,&statbuff)<(0x20a0+155-0x213b))return RESULT_FAIL;len=statbuff.
+stat statbuff={(0xb22+1985-0x12e3)};char nvFile[NV_PATH_LEN]={
+(0x150c+3912-0x2454)};sprintf(nvFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file
+);if(stat(nvFile,&statbuff)<(0xbf1+1644-0x125d))return RESULT_FAIL;len=statbuff.
st_size;if(NV_CHECK_SIZE>len)return RESULT_FAIL;fp=fopen(nvFile,"\x72\x6f");if(!
fp)return RESULT_FILE_OPEN_FAIL;len=len-NV_CHECK_SIZE;buf=(char*)malloc(len+
-(0x1e59+2170-0x26d2));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
-(0x2277+682-0x2521),len+(0x1541+2966-0x20d6));cnt=(0xeb1+3045-0x1a96);while(cnt<
-len){cnt=cnt+fread(buf+cnt,(0x6b9+4144-0x16e8),len-cnt,fp);if(ferror(fp)){
+(0x15c0+1956-0x1d63));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
+(0x18f4+1530-0x1eee),len+(0xe17+2864-0x1946));cnt=(0xc8a+6442-0x25b4);while(cnt<
+len){cnt=cnt+fread(buf+cnt,(0x80c+1995-0xfd6),len-cnt,fp);if(ferror(fp)){
clearerr(fp);fclose(fp);free(buf);return RESULT_FILE_READ_FAIL;}}if(cnt!=len){
fclose(fp);free(buf);return RESULT_FILE_READ_FAIL;}buf[len]='\0';name=buf;while(
-*name){if(!(eq=strchr(name,((char)(0x14a4+187-0x1522))))){break;}*eq='\0';value=
-eq+(0x74f+3569-0x153f);nvset(file,name,value,(0xb6+6092-0x1881));*eq=
-((char)(0x10f+9279-0x2511));name=value+strlen(value)+(0x187+8269-0x21d3);}free(
+*name){if(!(eq=strchr(name,((char)(0x4a9+1762-0xb4e))))){break;}*eq='\0';value=
+eq+(0x116f+2420-0x1ae2);nvset(file,name,value,(0x2605+153-0x269d));*eq=
+((char)(0x134c+2559-0x1d0e));name=value+strlen(value)+(0x459+1748-0xb2c);}free(
buf);fclose(fp);return RESULT_SUCCESS;}static void analyMsg(T_NV_MSG_INFO*
msgrecv,T_NV_MSG_RESULT*msgsnd){switch(msgrecv->nvType){case MSG_GET:msgsnd->
result=nvget(msgrecv->file,msgrecv->key,msgsnd->value);break;case MSG_SET:msgsnd
@@ -187,101 +187,101 @@
"\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-(0xccc+5621-0x22c0));newConfig->configFile[
-NV_PATH_LEN-(0x5c4+3783-0x148a)]='\0';newConfig->next=NULL;}for(list=nv_list;
-list;list=list->next){if(strcmp(list->nvFile,nvFile)==(0x1e9+5890-0x18eb))break;
-}if(!list){newList=(T_NV_NODE*)malloc(sizeof(T_NV_NODE));if(!newList){if(
+configFile,configFile,NV_PATH_LEN-(0x9a+8039-0x2000));newConfig->configFile[
+NV_PATH_LEN-(0x282+5892-0x1985)]='\0';newConfig->next=NULL;}for(list=nv_list;
+list;list=list->next){if(strcmp(list->nvFile,nvFile)==(0x472+937-0x81b))break;}
+if(!list){newList=(T_NV_NODE*)malloc(sizeof(T_NV_NODE));if(!newList){if(
newConfig)free(newConfig);return RESULT_MALLOC_FAIL;}newList->next=NULL;strncpy(
-newList->nvFile,nvFile,NV_PATH_LEN-(0x446+5992-0x1bad));newList->nvFile[
-NV_PATH_LEN-(0xec+1395-0x65e)]='\0';memset(newList->nvTable,(0x6a9+6666-0x20b3),
-NV_HASH_LEN*(0xc42+3112-0x1866));newList->fileList=newConfig;if(!nv_list)nv_list
-=newList;else{newList->next=nv_list->next;nv_list->next=newList;}}else if(!list
-->fileList)list->fileList=newConfig;else{if(newConfig==NULL)return RESULT_FAIL;
-newConfig->next=list->fileList->next;list->fileList->next=newConfig;}return
-RESULT_SUCCESS;}static bool isCfgConfiged(char*configFile){T_NV_NODE*list=NULL;
-T_NV_CONFIG*config=NULL;for(list=nv_list;list;list=list->next){for(config=list->
-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=
-(0x110a+1420-0x1696);char*data=(char*)s;while(len-- >(0x407+6724-0x1e4b)){sum+=(
-*data++);}return sum;}static int saveNvFs(char*nvName,char*nvFile){int i=
-(0x1332+1560-0x194a);int sum=(0x65b+852-0x9af);int bufSize=(0xfc0+339-0x1113);
-int itemSize=(0x190b+1954-0x20ad);int ret=(0xa98+6423-0x23af);int fp=
-(0x1b87+2442-0x2511);char*buf=NULL;T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;for(
-list=nv_list;list;list=list->next){if(strcmp(list->nvFile,nvName))continue;fp=
-open(nvFile,O_SYNC|O_RDWR|O_CREAT|O_TRUNC,(0x1312+798-0x1490));if(fp==-
-(0x1059+3153-0x1ca9)){printf(
+newList->nvFile,nvFile,NV_PATH_LEN-(0x19dd+2814-0x24da));newList->nvFile[
+NV_PATH_LEN-(0x15fa+787-0x190c)]='\0';memset(newList->nvTable,(0x3a4+1780-0xa98)
+,NV_HASH_LEN*(0x69b+7648-0x2477));newList->fileList=newConfig;if(!nv_list)
+nv_list=newList;else{newList->next=nv_list->next;nv_list->next=newList;}}else if
+(!list->fileList)list->fileList=newConfig;else{if(newConfig==NULL)return
+RESULT_FAIL;newConfig->next=list->fileList->next;list->fileList->next=newConfig;
+}return RESULT_SUCCESS;}static bool isCfgConfiged(char*configFile){T_NV_NODE*
+list=NULL;T_NV_CONFIG*config=NULL;for(list=nv_list;list;list=list->next){for(
+config=list->fileList;config;config=config->next){if(!strcmp(config->configFile,
+configFile))return true;}}return false;}static bool isNvConfiged(char*nvFile){
+T_NV_NODE*list=NULL;for(list=nv_list;list;list=list->next){if(!strcmp(list->
+nvFile,nvFile))return true;}return false;}static uint getSum(const char*s,int
+len){uint sum=(0xf5a+5130-0x2364);char*data=(char*)s;while(len-- >
+(0xbc5+3820-0x1ab1)){sum+=(*data++);}return sum;}static int saveNvFs(char*nvName
+,char*nvFile){int i=(0x5b2+3256-0x126a);int sum=(0x8ca+928-0xc6a);int bufSize=
+(0x17ef+1694-0x1e8d);int itemSize=(0x73a+5468-0x1c96);int ret=
+(0x206+9172-0x25da);int fp=(0x1da7+1116-0x2203);char*buf=NULL;T_NV_NODE*list=
+NULL;T_NV_ITEM*item=NULL;for(list=nv_list;list;list=list->next){if(strcmp(list->
+nvFile,nvName))continue;fp=open(nvFile,O_SYNC|O_RDWR|O_CREAT|O_TRUNC,
+(0x19a4+1256-0x1cec));if(fp==-(0x13a5+252-0x14a0)){printf(
"\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=(0xa22+6029-0x21af);i<
+(!buf){close(fp);return RESULT_MALLOC_FAIL;}for(i=(0x1c3+3723-0x104e);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)+(0xbf7+690-0xea7);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp,
-buf,bufSize)<(0x1387+3972-0x230b)){printf(
+item->value)+(0x11e3+2346-0x1b0b);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp
+,buf,bufSize)<(0x17d4+504-0x19cc)){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=(0x1d58+653-0x1fe5);}sprintf(buf+bufSize,
++=getSum(buf,bufSize);bufSize=(0x36b+7537-0x20dc);}sprintf(buf+bufSize,
"\x25\x73\x3d\x25\x73",item->key,item->value);bufSize+=itemSize;}}if(bufSize!=
-(0x159b+2780-0x2077)){if(write(fp,buf,bufSize)<(0xa1f+6096-0x21ef)){printf(
+(0x536+5659-0x1b51)){if(write(fp,buf,bufSize)<(0x182a+2748-0x22e6)){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)<(0x1a42+3106-0x2664)
+bufSize);}sum+=NV_FILE_FLAG;if(write(fp,&sum,NV_CHECK_SIZE)<(0x1c67+1975-0x241e)
){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<(0xbb2+1544-0x11ba)){printf(
+buf);close(fp);if(ret<(0x35b+2705-0xdec)){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=
-(0x1ed4+279-0x1feb);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;for(list=nv_list;
-list;list=list->next){if(strcmp(list->nvFile,file))continue;index=hash(key)%
+(0x42+9521-0x2573);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;for(list=nv_list;list
+;list=list->next){if(strcmp(list->nvFile,file))continue;index=hash(key)%
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-(0xf7c+5663-0x259a));
-value[NV_MAX_VAL_LEN-(0xe9f+3428-0x1c02)]='\0';return RESULT_SUCCESS;}}return
+key,key))continue;strncpy(value,item->value,NV_MAX_VAL_LEN-(0x102d+3648-0x1e6c))
+;value[NV_MAX_VAL_LEN-(0x972+3298-0x1653)]='\0';return RESULT_SUCCESS;}}return
RESULT_NO_ITEM;}static int nvset(char*file,const char*key,const char*value,int
-saveFlag){int index=(0x46c+5559-0x1a23);int ret=(0x1a1d+2597-0x2442);int
-key_buf_len=(0xed+3112-0xd15);int value_buf_len=(0x2148+230-0x222e);T_NV_NODE*
-list=NULL;T_NV_ITEM*item=NULL;T_NV_ITEM*newItem=NULL;if(NULL==key||NULL==value)
-return RESULT_FAIL;key_buf_len=strlen(key)+(0x1a1a+1696-0x20b9);value_buf_len=
-strlen(value)+(0x1ce7+1640-0x234e);for(list=nv_list;list;list=list->next){if(
+saveFlag){int index=(0xfe8+4900-0x230c);int ret=(0x482+2156-0xcee);int
+key_buf_len=(0x18a0+1134-0x1d0e);int value_buf_len=(0x812+5445-0x1d57);T_NV_NODE
+*list=NULL;T_NV_ITEM*item=NULL;T_NV_ITEM*newItem=NULL;if(NULL==key||NULL==value)
+return RESULT_FAIL;key_buf_len=strlen(key)+(0xb34+1635-0x1196);value_buf_len=
+strlen(value)+(0x1c65+1764-0x2348);for(list=nv_list;list;list=list->next){if(
strcmp(list->nvFile,file))continue;index=hash(key)%NV_HASH_LEN;for(item=list->
nvTable[index];item;item=item->next){if(strcmp(item->key,key))continue;if(
saveFlag)item->saveFlag=saveFlag;if(!strcmp(item->value,value))return
RESULT_SUCCESS;free(item->value);item->value=(char*)malloc(value_buf_len);if(!
item->value)return RESULT_MALLOC_FAIL;strncpy(item->value,value,value_buf_len-
-(0x906+3734-0x179b));item->value[value_buf_len-(0x1001+1775-0x16ef)]='\0';return
- RESULT_SUCCESS;}newItem=(T_NV_ITEM*)malloc(sizeof(T_NV_ITEM));if(!newItem)
-return RESULT_MALLOC_FAIL;newItem->key=(char*)malloc(key_buf_len);if(!newItem->
-key){free(newItem);return RESULT_MALLOC_FAIL;}newItem->value=(char*)malloc(
+(0xa02+2718-0x149f));item->value[value_buf_len-(0x18fa+276-0x1a0d)]='\0';return
+RESULT_SUCCESS;}newItem=(T_NV_ITEM*)malloc(sizeof(T_NV_ITEM));if(!newItem)return
+ RESULT_MALLOC_FAIL;newItem->key=(char*)malloc(key_buf_len);if(!newItem->key){
+free(newItem);return RESULT_MALLOC_FAIL;}newItem->value=(char*)malloc(
value_buf_len);if(!newItem->value){free(newItem->key);free(newItem);return
-RESULT_MALLOC_FAIL;}strncpy(newItem->key,key,key_buf_len-(0x17d2+3083-0x23dc));
-newItem->key[key_buf_len-(0x1117+671-0x13b5)]='\0';strncpy(newItem->value,value,
-value_buf_len-(0x2244+367-0x23b2));newItem->value[value_buf_len-
-(0xd1a+1947-0x14b4)]='\0';newItem->next=NULL;newItem->saveFlag=saveFlag;newItem
-->update_flag=(0xbfa+1519-0x11e9);if(!list->nvTable[index])list->nvTable[index]=
+RESULT_MALLOC_FAIL;}strncpy(newItem->key,key,key_buf_len-(0xcf5+6118-0x24da));
+newItem->key[key_buf_len-(0x108+3907-0x104a)]='\0';strncpy(newItem->value,value,
+value_buf_len-(0x6ad+341-0x801));newItem->value[value_buf_len-
+(0x18f3+1930-0x207c)]='\0';newItem->next=NULL;newItem->saveFlag=saveFlag;newItem
+->update_flag=(0x1575+20-0x1589);if(!list->nvTable[index])list->nvTable[index]=
newItem;else{newItem->next=list->nvTable[index]->next;list->nvTable[index]->next
=newItem;}return RESULT_SUCCESS;}ret=addConfigFile(file,NULL);if(ret==
RESULT_SUCCESS)return nvset(file,key,value,saveFlag);else return ret;}static int
- nvunset(char*file,char*key){int index=(0x1af+2269-0xa8c);T_NV_NODE*list=NULL;
+ nvunset(char*file,char*key){int index=(0x7e9+5098-0x1bd3);T_NV_NODE*list=NULL;
T_NV_ITEM*item=NULL;T_NV_ITEM*prev=NULL;for(list=nv_list;list;list=list->next){
if(strcmp(list->nvFile,file))continue;index=hash(key)%NV_HASH_LEN;for(item=list
->nvTable[index];item;prev=item,item=item->next){if(strcmp(item->key,key))
continue;if(!prev)list->nvTable[index]=item->next;else prev->next=item->next;
free(item->key);free(item->value);free(item);return RESULT_SUCCESS;}}return
-RESULT_NO_ITEM;}static int nvreset(char*file){int ret=(0x2060+1279-0x255f);
+RESULT_NO_ITEM;}static int nvreset(char*file){int ret=(0x631+3161-0x128a);
T_NV_NODE*list=NULL;for(list=nv_list;list;list=list->next){if(strcmp(list->
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=(0x1201+3447-0x1f78)
+}return RESULT_NO_FILE;}static int nvclear(char*file){int i=(0x123f+1425-0x17d0)
;T_NV_NODE*list=NULL;T_NV_ITEM*cur=NULL;T_NV_ITEM*item=NULL;for(list=nv_list;
list;list=list->next){if(strcmp(list->nvFile,file))continue;for(i=
-(0x72f+893-0xaac);i<NV_HASH_LEN;i++){for(item=list->nvTable[i];item;){cur=item;
-item=item->next;free(cur->key);free(cur->value);free(cur);}list->nvTable[i]=NULL
-;}return RESULT_SUCCESS;}return RESULT_NO_FILE;}static int nvcommit(char*file){
-int ret=(0x176a+1080-0x1ba2);char nvMainFile[NV_PATH_LEN]={(0x256+8035-0x21b9)};
-char nvBackupFile[NV_PATH_LEN]={(0x36f+3074-0xf71)};sprintf(nvMainFile,
-"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file);sprintf(nvBackupFile,
+(0x149a+1387-0x1a05);i<NV_HASH_LEN;i++){for(item=list->nvTable[i];item;){cur=
+item;item=item->next;free(cur->key);free(cur->value);free(cur);}list->nvTable[i]
+=NULL;}return RESULT_SUCCESS;}return RESULT_NO_FILE;}static int nvcommit(char*
+file){int ret=(0xc53+5517-0x21e0);char nvMainFile[NV_PATH_LEN]={
+(0xc4c+617-0xeb5)};char nvBackupFile[NV_PATH_LEN]={(0x7bb+6200-0x1ff3)};sprintf(
+nvMainFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file);sprintf(nvBackupFile,
"\x25\x73\x2f\x25\x73",NV_FS_BACKUP_PATH,file);ret=saveNvFs(file,nvMainFile);if(
ret!=RESULT_SUCCESS)return ret;return restoreNvFs(nvBackupFile,nvMainFile);}
#ifdef __cplusplus
diff --git a/ap/app/zte_comm/nvserver/nvupdate.c b/ap/app/zte_comm/nvserver/nvupdate.c
index 1a0399d..9c17d00 100755
--- a/ap/app/zte_comm/nvserver/nvupdate.c
+++ b/ap/app/zte_comm/nvserver/nvupdate.c
@@ -23,83 +23,83 @@
#endif
extern T_NV_NODE*nv_list;
#ifdef FOTA_AB
-int get_update_status(void){T_FLAGS_INFO flags_info={(0x1cca+2585-0x26e3)};
-unsigned int status=(0x1c24+2541-0x2611);int ret=(0xe98+3151-0x1ae7);ret=
-flags_get(&flags_info);status=flags_info.boot_fota_flag.fota_status;if(status==
-(0x48c+2936-0x1003))return(0x1168+3705-0x1fdf);else return(0xb69+401-0xcfa);}
+int get_update_status(void){T_FLAGS_INFO flags_info={(0x150c+218-0x15e6)};
+unsigned int status=(0x631+1931-0xdbc);int ret=(0xb62+4294-0x1c28);ret=flags_get
+(&flags_info);status=flags_info.boot_fota_flag.fota_status;if(status==
+(0x1d6a+33-0x1d8a))return(0x120a+130-0x128a);else return(0x7fb+2992-0x13ab);}
#else
-int get_update_status(void){int update_status;FILE*fd=(0x13cf+4189-0x242c);int
+int get_update_status(void){int update_status;FILE*fd=(0x12e3+3046-0x1ec9);int
ret;char*filename=NULL;if(access(FOTA_UPDATE_STATUS_FILE_OLD,R_OK)==
-(0x112c+1492-0x1700)){filename=FOTA_UPDATE_STATUS_FILE_OLD;}else{filename=
+(0xa4b+4136-0x1a73)){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<(0x1d1+7241-0x1e1a)){printf(
+(ret<(0x3b2+6806-0x1e48)){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-
-(0x1bc0+1709-0x226c);}
+update_status);fclose(fd);return update_status;error0:return-(0x1eb9+903-0x223f)
+;}
#endif
int nvupdate(char*nv_file,char*config_file,const char*key,const char*value,int
-saveFlag){int index=(0x98+2303-0x997);int key_buf_len=(0x174a+2664-0x21b2);int
-value_buf_len=(0x28a+3592-0x1092);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;
+saveFlag){int index=(0x16d5+2064-0x1ee5);int key_buf_len=(0x1015+4688-0x2265);
+int value_buf_len=(0x1a02+2063-0x2211);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;
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)+(0xed9+2226-0x178a);value_buf_len=
-strlen(value)+(0x84+3837-0xf80);for(list=nv_list;list;list=list->next){if(strcmp
-(list->nvFile,nv_file))continue;index=hash(key)%NV_HASH_LEN;for(item=list->
-nvTable[index];item;item=item->next){if(strcmp(item->key,key))continue;if(
+,nv_file,key,value);key_buf_len=strlen(key)+(0xf88+2353-0x18b8);value_buf_len=
+strlen(value)+(0x1b06+966-0x1ecb);for(list=nv_list;list;list=list->next){if(
+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=(0x677+1197-0xb23);printf(
+update_flag=(0xf45+629-0x11b9);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((0x4ed+3709-0x1369)==item->update_flag){
-printf(
+config_file,"\x75\x73\x65\x72")){if((0xc55+661-0xee9)==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=
-(0x1fa1+1702-0x2646);printf(
+(0xf8c+4865-0x228c);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-(0xbf0+2421-0x1564));item->value[value_buf_len-
-(0x16f4+1898-0x1e5d)]='\0';item->update_flag=(0x1128+4897-0x2448);return
+value,value_buf_len-(0x197+2678-0xc0c));item->value[value_buf_len-
+(0x11b9+183-0x126f)]='\0';item->update_flag=(0x39+8225-0x2059);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)+
-(0x1689+2517-0x205d));if(!newItem->key){free(newItem);printf(
+(0xe7d+4259-0x1f1f));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-
-(0x13d6+3760-0x2285));newItem->key[key_buf_len-(0xe03+4148-0x1e36)]='\0';strncpy
-(newItem->value,value,value_buf_len-(0x966+4530-0x1b17));newItem->value[
-value_buf_len-(0x2284+310-0x23b9)]='\0';newItem->next=NULL;newItem->saveFlag=
-saveFlag;newItem->update_flag=(0xf48+423-0x10ee);printf(
+(0xbc1+2804-0x16b4));newItem->key[key_buf_len-(0x30b+7106-0x1ecc)]='\0';strncpy(
+newItem->value,value,value_buf_len-(0x1fe9+1707-0x2693));newItem->value[
+value_buf_len-(0x642+5243-0x1abc)]='\0';newItem->next=NULL;newItem->saveFlag=
+saveFlag;newItem->update_flag=(0x822+2099-0x1054);printf(
"\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]={(0x71c+701-0x9d9)};printf(
+NV_MAX_ITEM_LEN]={(0x10c7+3180-0x1d33)};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[(0x14b+5434-0x1685)]=='\n'||buf[(0x1b22+1496-0x20fa)
-]==((char)(0x2e9+6018-0x1a48)))continue;val=strchr(buf,
-((char)(0x18c7+930-0x1c2c)));if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0xb27+5945-0x2260)]=='\n'||buf[(0x7d7+3148-0x1423)]
+==((char)(0xa37+3124-0x1648)))continue;val=strchr(buf,
+((char)(0xb03+2794-0x15b0)));if(!val){printf(
"\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)-(0x145b+4445-0x25b7)]='\0';*
-val++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0x534+5683-0x1b66))
+,config->configFile,buf);continue;}buf[strlen(buf)-(0x360+4370-0x1471)]='\0';*
+val++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0xd3b+6418-0x264c))
;}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
@@ -108,12 +108,12 @@
list->next;while(p!=NULL){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x75\x6d\x70\x20\x6b\x65\x79\x3d\x25\x73\x2c\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x2c\x20\x70\x3d\x30\x78\x25\x78" "\n"
,p->key,p->value,((unsigned int)p));p=p->next;}}int delete_not_needed(T_NV_NODE*
-list){int index=(0x1b40+391-0x1cc7);T_NV_ITEM*item=NULL;T_NV_ITEM head={
-(0x10ca+3240-0x1d72)};T_NV_ITEM*prev=&head;printf(
+list){int index=(0xb62+4548-0x1d26);T_NV_ITEM*item=NULL;T_NV_ITEM head={
+(0xeac+36-0xed0)};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=(0x1de9+1126-0x224f);index<NV_HASH_LEN;index++){head.next=list->
-nvTable[index];prev=&head;for(item=prev->next;item;){if((0xe14+6253-0x2680)==
-item->update_flag){prev=item;item=item->next;}else{printf(
+);for(index=(0x1431+306-0x1563);index<NV_HASH_LEN;index++){head.next=list->
+nvTable[index];prev=&head;for(item=prev->next;item;){if((0x1da4+94-0x1e01)==item
+->update_flag){prev=item;item=item->next;}else{printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x65\x6c\x65\x74\x65\x20\x6b\x65\x79\x3d\x25\x73\x2c\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x20" "\n"
,item->key,item->value);prev->next=item->next;free(item->key);free(item->value);
free(item);item=prev->next;}}list->nvTable[index]=head.next;}printf(
diff --git a/ap/app/zte_comm/phonebook/src/pb_db.c b/ap/app/zte_comm/phonebook/src/pb_db.c
index 2440a95..7efd068 100755
--- a/ap/app/zte_comm/phonebook/src/pb_db.c
+++ b/ap/app/zte_comm/phonebook/src/pb_db.c
@@ -1,7 +1,7 @@
#include "pb_com.h"
T_zPb_DbResult atPb_CreatDb(){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[
-ZPB_MAX_BYTES_DB]={(0x188+3822-0x1076)};UINT32 count=(0x2290+817-0x25c1);result=
+ZPB_MAX_BYTES_DB]={(0x119b+4137-0x21c4)};UINT32 count=(0x92d+114-0x99f);result=
atPb_ExecDbSql(ZPB_CREATE_PBM_TABLE,NULL,NULL);if(ZPB_DB_OK!=result){slog(
PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x70\x62\x6d\x3a\x63\x72\x65\x61\x74\x65\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
@@ -18,18 +18,18 @@
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_USIM);result=atPb_ExecDbSql(sql,NULL,NULL);if(
ZPB_DB_OK!=result){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x70\x62\x6d\x3a\x63\x72\x65\x61\x74\x65\x20\x70\x62\x6d\x5f\x64\x65\x76\x69\x63\x65\x5f\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x79\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
-,result);return result;}memset(sql,(0x840+6967-0x2377),sizeof(sql));snprintf(sql
-,sizeof(sql)-(0x784+3754-0x162d),
+,result);return result;}memset(sql,(0x1779+2616-0x21b1),sizeof(sql));snprintf(
+sql,sizeof(sql)-(0x79d+5391-0x1cab),
"\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((0x653+4072-0x163b)<count){memset(sql,(0x2a2+792-0x5ba),sizeof(sql));
-snprintf(sql,sizeof(sql)-(0xb86+6046-0x2323),
+count);if((0x10f8+4617-0x2301)<count){memset(sql,(0x933+7568-0x26c3),sizeof(sql)
+);snprintf(sql,sizeof(sql)-(0x131a+632-0x1591),
"\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]={(0x1c09+1858-0x234b)};result=
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x823+7671-0x261a)};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 (0xcc0+830-0xffe)
+#if (0x1878+3459-0x25fb)
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)==(0x1adc+1791-0x21db)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZPB_TMP_PATH,F_OK)==(0xcd3+1866-0x141d)){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)!=(0x80a+7402-0x24f4)){slog(PB_PRINT,SLOG_ERR,
+remove(ZPB_TMP_PATH)!=(0x1472+1223-0x1939)){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)!=(0x4e6+7791-0x2355)){slog(PB_PRINT,
+);}}if(rename(ZPB_SEC_PATH,ZPB_TMP_PATH)!=(0x375+6005-0x1aea)){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[(0x57a+7607-0x2319)]={(0x1390+1024-0x1790)};char cmd[
-(0x7f8+3055-0x1367)]={(0xe3a+4293-0x1eff)};sc_cfg_get(
+);}{char rnum_buf[(0x2167+394-0x22d9)]={(0x417+1186-0x8b9)};char cmd[
+(0x2168+1225-0x25b1)]={(0x1bc9+1388-0x2135)};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
-)==(0xfb6+3635-0x1de9)){if(remove(ZPB_TMP_PATH)!=(0xf45+87-0xf9c)){slog(PB_PRINT
-,SLOG_ERR,
+)==(0x183b+2896-0x238b)){if(remove(ZPB_TMP_PATH)!=(0x359+3061-0xf4e)){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(0x34f+527-0x55e);}return
-(0x611+6138-0x1e0a);}return(0x269+2985-0xe12);}T_zPb_DbResult atPb_ExecDbSql(
+(pSql,"\x3b")||strstr(pSql,"\x2d\x2d")){return(0x36a+7793-0x21db);}return
+(0xc1a+5784-0x22b1);}return(0x20+3433-0xd89);}T_zPb_DbResult atPb_ExecDbSql(
const char*pSql,sqlite3_callback callback,VOID*pFvarg){sqlite3*pDb=NULL;CHAR
-dbErrMsg[(0x17d+4724-0x1371)]={(0xe6+9397-0x259b)};if(NULL==pSql){return
+dbErrMsg[(0x1560+1478-0x1aa6)]={(0x147b+1521-0x1a6c)};if(NULL==pSql){return
ZPB_DB_ERROR_INVALIDPTR;}
#ifdef WEBS_SECURITY
-if(check_sql_cmd(pSql)==(0x17bd+2862-0x22eb)){slog(PB_PRINT,SLOG_ERR,
+if(check_sql_cmd(pSql)==(0x955+5469-0x1eb2)){slog(PB_PRINT,SLOG_ERR,
"\x21\x21\x61\x74\x50\x62\x5f\x45\x78\x65\x63\x44\x62\x53\x71\x6c\x3a\x78\x73\x73\x20\x25\x73" "\n"
,pSql);return ZPB_DB_ERROR_INVALIDPTR;}
#endif
@@ -102,33 +102,34 @@
);return ZPB_DB_ERROR_NOTOPENDB;}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x45\x78\x65\x63\x44\x62\x53\x71\x6c\x3a\x25\x73" "\n"
,pSql);if(sqlite3_exec(pDb,pSql,callback,pFvarg,NULL)){strncpy(dbErrMsg,
-sqlite3_errmsg(pDb),sizeof(dbErrMsg)-(0x60f+3489-0x13af));slog(PB_PRINT,SLOG_ERR
-,
+sqlite3_errmsg(pDb),sizeof(dbErrMsg)-(0x1ce7+1297-0x21f7));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=(0x241c+517-0x2621);if((0x5a7+1484-0xb72)>line){slog(
-PB_PRINT,SLOG_ERR,
+char**lname){SINT32 index=(0x1a55+739-0x1d38);if((0x16a0+3220-0x2333)>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-(0x3a8+1242-0x881);}index=atoi(zresult[(0x3bc+5646-0x19ca)]);if(index>
+);return-(0x11c5+2282-0x1aae);}index=atoi(zresult[(0x4df+2243-0xda2)]);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-(0x462+4437-0x15b6);}slog(PB_PRINT,SLOG_DEBUG,
+);return-(0xeba+6056-0x2661);}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(0x30a+5197-0x1757);}
-T_zPb_DbResult atPb_InitApIndex(){CHAR sql[ZPB_MAX_BYTES_DB]={(0x103+62-0x141)};
-SINT32 i=(0xe5+6077-0x18a1);g_zPb_ApIndex[(0x147b+245-0x1570)]=ZPB_AP_MAX_RECORD
-;for(i=(0xae7+2143-0x1345);i<=g_zPb_ApIndex[(0x8b8+93-0x915)];i++){g_zPb_ApIndex
-[i]=PBM_ERROR_NOT_FOUND;}snprintf(sql,sizeof(sql),
+,index);g_zPb_ApIndex[index]=PBM_SUCCESS;return(0x134a+3776-0x220a);}
+T_zPb_DbResult atPb_InitApIndex(){CHAR sql[ZPB_MAX_BYTES_DB]={
+(0x169f+2400-0x1fff)};SINT32 i=(0x24c+2305-0xb4c);g_zPb_ApIndex[
+(0x802+4390-0x1928)]=ZPB_AP_MAX_RECORD;for(i=(0xaca+3013-0x168e);i<=
+g_zPb_ApIndex[(0x1acc+2351-0x23fb)];i++){g_zPb_ApIndex[i]=PBM_ERROR_NOT_FOUND;}
+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(-(0x20d6+985-0x24ae)==
-access(path,(0xaf5+6423-0x240c))){slog(PB_PRINT,SLOG_DEBUG,
+ZUFI_NULL);}INT zte_pbm_check_and_creat_dir(char*path){if(-(0x58a+5098-0x1973)==
+access(path,(0xa7+3377-0xdd8))){slog(PB_PRINT,SLOG_DEBUG,
"\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(-(0x9e9+7176-0x25f0)==mkdir(path,(0x349+606-0x3a8))){slog(
+,ZPB_DB_DIR);if(-(0xf95+2858-0x1abe)==mkdir(path,(0x93a+456-0x903))){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-(0x47b+45-0x4a7);}}return(0x1dec+1924-0x2570);}UINT8
+);return-(0xe4f+4760-0x20e6);}}return(0x1da9+1886-0x2507);}UINT8
zte_pbm_check_web_pbm_dir(VOID){
#ifdef _MBB_OS_UCLINUX
(VOID)zte_pbm_check_and_creat_dir(
@@ -142,24 +143,24 @@
"\x2f\x65\x74\x63\x5f\x72\x77\x2f\x63\x6f\x6e\x66\x69\x67");
#endif
return ZUFI_SUCC;}T_zPb_DbResult atPb_DelSimRecFromPbTable(SINT32 index){
-T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1305+4862-0x2603)
-};snprintf(sql,sizeof(sql),
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0xde3+2197-0x1678)}
+;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]={(0xf0c+5205-0x2361)};if(NULL==
+result=ZPB_DB_ERROR;CHAR sql[ZPB_MAX_BYTES_DB]={(0xe32+4128-0x1e52)};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[(0x8a9+6397-0x2174)]={(0x673+1980-0xe2f)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,
-pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0x168b+3811-0x256d))&&(pbPara->
-pbIndex<=atoi(pbMax))){g_zPb_SimIndex[pbPara->pbIndex]=PBM_SUCCESS;}(VOID)
-sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}else{(VOID)sc_cfg_set(
-ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);}slog(PB_PRINT,SLOG_DEBUG,
+pbMax[(0x107+4923-0x1410)]={(0x4c1+5067-0x188c)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,
+pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0xd6d+2702-0x17fa))&&(pbPara->pbIndex
+<=atoi(pbMax))){g_zPb_SimIndex[pbPara->pbIndex]=PBM_SUCCESS;}(VOID)sc_cfg_set(
+ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
+ZPB_NEW_ERROR);}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x70\x62\x6d\x3a\x65\x78\x65\x63\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x72\x65\x73\x75\x6c\x74\x20\x25\x64" "\n"
,ZPB_DB_PBM_TABLE,result);return result;}VOID atPb_SqlModifyOneRec(
T_zPb_WebContact*pbmPara,char*sql,int len){printf(
@@ -173,17 +174,17 @@
pbmPara->pbType,pbmPara->name,pbmPara->homeNumber,pbmPara->officeNumber,pbmPara
->email,pbmPara->sne,pbmPara->group,pbmPara->pbId);}}T_zPb_DbResult
atPb_DbGetParamCb(VOID*fvarg,int line,char**zresult,char**lname){T_zPb_Header
-para={(0x3d+9636-0x25e1)};if((0x1a47+1656-0x20be)>line){slog(PB_PRINT,SLOG_ERR,
+para={(0x15c3+704-0x1883)};if((0x156c+3143-0x21b2)>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[(0x316+8823-0x258d)]);para.
-pbLocation=atoi(zresult[(0xa2a+542-0xc47)]);slog(PB_PRINT,SLOG_DEBUG,
+);return ZPB_DB_ERROR;}para.pbIndex=atoi(zresult[(0xe21+3484-0x1bbd)]);para.
+pbLocation=atoi(zresult[(0x864+2081-0x1084)]);slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x44\x62\x47\x65\x74\x50\x61\x72\x61\x6d\x43\x62\x3a\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,para.pbIndex,para.pbLocation);memcpy(fvarg,¶,sizeof(para));return ZPB_DB_OK
;}T_zPb_DbResult atPb_GetIndexLocationById(T_zPb_Header*pbPara){CHAR sql[
-ZPB_MAX_BYTES_DB]={(0xab5+5438-0x1ff3)};snprintf(sql,sizeof(sql)-
-(0xe45+2005-0x1619),
+ZPB_MAX_BYTES_DB]={(0xf7b+1916-0x16f7)};snprintf(sql,sizeof(sql)-
+(0x1d52+11-0x1d5c),
"\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,(0xea7+3933-0x1e04),sizeof(
+,ZPB_DB_PBM_TABLE,pbPara->pbId);memset(pbPara,(0x596+3480-0x132e),sizeof(
T_zPb_Header));return atPb_ExecDbSql(sql,atPb_DbGetParamCb,pbPara);}VOID
atPb_SqlNewOneRec(T_zPb_WebContact*pbmPara,CHAR*sql,int len){if(
ZPB_LOCATION_USIM==pbmPara->pbLocation){snprintf(sql,len,"insert into %s (Pbm_index,Location,Number,Type,Name,Anr,Anr1,Email,Sne)\
@@ -195,7 +196,7 @@
pbmPara->pbType,pbmPara->name,pbmPara->homeNumber,pbmPara->officeNumber,pbmPara
->email,pbmPara->sne,pbmPara->group);}}T_zPb_DbResult
atPb_WriteContactToPbmTable(T_zPb_WebContact*pPbRecord,BOOL pbNewFlag){
-T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x7eb+1392-0xd5b)};
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0xad+4022-0x1063)};
if(NULL==pPbRecord){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x57\x72\x69\x74\x65\x43\x6f\x6e\x74\x61\x63\x74\x54\x6f\x50\x62\x6d\x54\x61\x62\x6c\x65\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74"
);return ZPB_DB_ERROR_INVALIDPTR;}slog(PB_PRINT,SLOG_DEBUG,
@@ -206,75 +207,75 @@
ZPB_LOCATION_USIM==pPbRecord->pbLocation){g_zPb_SimIndex[(pPbRecord->pbIndex)]=
PBM_SUCCESS;}else if(ZPB_LOCATION_AP==pPbRecord->pbLocation){g_zPb_ApIndex[(
pPbRecord->pbIndex)]=PBM_SUCCESS;}}return result;}SINT32 atPb_DbCountTableLineCb
-(VOID*fvarg,int line,char**zresult,char**lname){if((0x435+4469-0x15a9)>line){
+(VOID*fvarg,int line,char**zresult,char**lname){if((0x1713+485-0x18f7)>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-(0x282+9188-0x2665);}*(int*)fvarg=atoi(zresult[(0x779+4431-0x18c8)]);
-return(0xc4d+2269-0x152a);}T_zPb_DbResult atPb_SetSimCapacityTable(
+);return-(0x3c0+341-0x514);}*(int*)fvarg=atoi(zresult[(0x1776+2880-0x22b6)]);
+return(0xeea+3905-0x1e2b);}T_zPb_DbResult atPb_SetSimCapacityTable(
T_zPb_UsimCapacity pbPara){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[
-ZPB_MAX_BYTES_DB]={(0x1017+627-0x128a)};UINT32 count=(0x173a+2473-0x20e3);
-snprintf(sql,sizeof(sql)-(0x7fc+5373-0x1cf8),
+ZPB_MAX_BYTES_DB]={(0x100+6902-0x1bf6)};UINT32 count=(0xb3c+1914-0x12b6);
+snprintf(sql,sizeof(sql)-(0x1cd2+188-0x1d8d),
"\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((0x1d+7288-0x1c95)<count){memset(sql,(0xcd9+4759-0x1f70),sizeof(sql));
-snprintf(sql,sizeof(sql)-(0xbd4+2599-0x15fa),
+count);if((0xfc6+1461-0x157b)<count){memset(sql,(0x1822+3517-0x25df),sizeof(sql)
+);snprintf(sql,sizeof(sql)-(0xf1a+3684-0x1d7d),
"\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,(0xc6c+5368-0x2164),sizeof(sql));snprintf(sql,
-sizeof(sql)-(0x169+8016-0x20b8),"insert into %s (Sim_type,Max_record_number,Used_record_number,Max_number_len,Max_name_len,Max_anr_len,Max_anr1_len, \
+);return result;}}memset(sql,(0xe02+1805-0x150f),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0x43d+5100-0x1828),"insert into %s (Sim_type,Max_record_number,Used_record_number,Max_number_len,Max_name_len,Max_anr_len,Max_anr1_len, \
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]={(0x9ef+2690-0x1471)
-};SINT32 count=(0x1e32+1088-0x2272);T_zPb_ApCapacity pbPara={
-(0x142c+3676-0x2288)};snprintf(sql,sizeof(sql)-(0x1cf3+1473-0x22b3),
+{T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x2df+8507-0x241a)
+};SINT32 count=(0x13f8+1083-0x1833);T_zPb_ApCapacity pbPara={(0xa01+6961-0x2532)
+};snprintf(sql,sizeof(sql)-(0xa4c+2933-0x15c0),
"\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((0x434+7655-0x221b)<count){memset(sql,
-(0x83a+2624-0x127a),sizeof(sql));snprintf(sql,sizeof(sql)-(0xbb2+3882-0x1adb),
+atPb_DbCountTableLineCb,&count);if((0xd5+2102-0x90b)<count){memset(sql,
+(0xe8f+3816-0x1d77),sizeof(sql));snprintf(sql,sizeof(sql)-(0x1128+904-0x14af),
"\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,(0x106a+4161-0x20ab),sizeof(sql));snprintf(sql,
-sizeof(sql)-(0x8e9+766-0xbe6),
+);return result;}}memset(sql,(0x1e46+1992-0x260e),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0x1180+1494-0x1755),
"\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,(0xf9a+5845-0x266f),sizeof
-(sql));snprintf(sql,sizeof(sql)-(0x66b+7034-0x21e4),
+,pbPara.maxRecordNum,pbPara.usedRecordNum);memset(sql,(0x376+2073-0xb8f),sizeof(
+sql));snprintf(sql,sizeof(sql)-(0xf64+1871-0x16b2),
"\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=
-(0x1414+21-0x1429);if((0x180d+3653-0x2651)>line){return ZPB_DB_ERROR;}pbIndex=(
+(0x16b+2125-0x9b8);if((0x2b1+6792-0x1d38)>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+(0x188b+740-0x1b6e)]=atoi(zresult[(0x102c+5828-0x26f0)]);
+,i);pbIndex->apIndex[i+(0xb6+7282-0x1d27)]=atoi(zresult[(0xffc+2650-0x1a56)]);
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+(0x74b+4196-0x17ae)]);pbIndex->count=i+(0xfb8+2041-0x17b0);
+,pbIndex->apIndex[i+(0xa9+2354-0x9da)]);pbIndex->count=i+(0x12ab+3144-0x1ef2);
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]
-={(0x47f+6379-0x1d6a)};SINT32 countByGroup=(0xfeb+3071-0x1bea);CHAR pbGroup[
-ZPB_PARAM_SIZE20]={(0x2c0+6238-0x1b1e)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
-pbGroup));snprintf(sql,sizeof(sql)-(0x139b+2995-0x1f4d),
+={(0xa81+3415-0x17d8)};SINT32 countByGroup=(0x3e1+8294-0x2447);CHAR pbGroup[
+ZPB_PARAM_SIZE20]={(0x183+5518-0x1711)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
+pbGroup));snprintf(sql,sizeof(sql)-(0x393+3379-0x10c5),
"\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,(0xd69+1812-0x147d),sizeof(sql
-));snprintf(sql,sizeof(sql)-(0x25f+1882-0x9b8),
+atPb_DbCountTableLineCb,&countByGroup);memset(sql,(0x167+4883-0x147a),sizeof(sql
+));snprintf(sql,sizeof(sql)-(0x2ed+1494-0x8c2),
"\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,
-(0x13c4+573-0x1601),sizeof(sql));snprintf(sql,sizeof(sql)-(0x1532+3436-0x229d),
+(0x13+4402-0x1145),sizeof(sql));snprintf(sql,sizeof(sql)-(0x1a6f+2607-0x249d),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x20\x61\x6e\x64\x20\x28\x50\x62\x6d\x5f\x67\x72\x6f\x75\x70\x3d" "\"" "\x25\x73" "\"" "\x29"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_AP,pbGroup);if(ZPB_DB_OK==atPb_ExecDbSql(sql,NULL
,NULL)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}slog(PB_PRINT,
@@ -282,7 +283,7 @@
"\x70\x62\x3a\x70\x62\x6d\x3a\x65\x78\x65\x63\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x72\x65\x73\x75\x6c\x74\x20\x25\x64" "\n"
,ZPB_DB_PBM_TABLE,result);}else{return ZPB_DB_ERROR;}(VOID)sc_cfg_set(
ZPB_NV_GROUP,"");return result;}VOID atPb_GetLocationIndexForDel(T_zPb_DelInfo*
-recData,SINT32 delTime){T_zPb_Header pbHeader={(0x2015+164-0x20b9)};if(NULL==
+recData,SINT32 delTime){T_zPb_Header pbHeader={(0x2070+1682-0x2702)};if(NULL==
recData){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x47\x65\x74\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x49\x6e\x64\x65\x78\x46\x6f\x72\x44\x65\x6c\x2d\x2d\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74" "\n"
);return;}pbHeader.pbId=recData->delId[delTime];if(ZPB_DB_OK!=
@@ -293,30 +294,30 @@
"\x70\x62\x3a\x70\x62\x6d\x3a\x64\x65\x6c\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x2c\x64\x65\x6c\x5f\x70\x62\x6d\x5f\x74\x69\x6d\x65\x3d\x25\x64"
,recData->delIndex[delTime],recData->delLocation,delTime);}T_zPb_DbResult
atPb_DelARecFromPbmTable(T_zPb_DelInfo*pbPara,SINT32 delTime){T_zPb_DbResult
-result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x19b1+2413-0x231e)};if(NULL==
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x12cd+3605-0x20e2)};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)-(0xe5c+136-0xee3),
+,delTime,pbPara->delId[delTime]);snprintf(sql,sizeof(sql)-(0x25bd+51-0x25ef),
"\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=(0x1710+1481-0x1cd8);for(i=(0x10a2+3317-0x1d96);(i<=g_zPb_SimIndex[
-(0x171+7142-0x1d57)])&&(i<(ZPB_SIM_MAX_RECORD+(0x1aa4+1208-0x1f5b)));i++){
+SINT32 i=(0x321+8268-0x236c);for(i=(0x1d5+8226-0x21f6);(i<=g_zPb_SimIndex[
+(0x904+248-0x9fc)])&&(i<(ZPB_SIM_MAX_RECORD+(0x12f4+1947-0x1a8e)));i++){
g_zPb_SimIndex[i]=PBM_ERROR_NOT_FOUND;}}VOID atPb_ClearApPbmIndexArray(VOID){
-SINT32 i=(0x735+836-0xa78);for(i=(0x1309+2127-0x1b57);(i<=g_zPb_ApIndex[
-(0xfc+6947-0x1c1f)])&&(i<(ZPB_AP_MAX_RECORD+(0x38b+5527-0x1921)));i++){
+SINT32 i=(0x170d+114-0x177e);for(i=(0xcc8+6443-0x25f2);(i<=g_zPb_ApIndex[
+(0x104b+2037-0x1840)])&&(i<(ZPB_AP_MAX_RECORD+(0x12b4+499-0x14a6)));i++){
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]={(0x2119+523-0x2324)};if(NULL==pbPara){slog
-(PB_PRINT,SLOG_ERR,
+ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x468+2204-0xd04)};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)-(0x6b9+2693-0x113d),
+);return ZPB_DB_ERROR_INVALIDPTR;}snprintf(sql,sizeof(sql)-(0xdcd+6027-0x2557),
"\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 7f03930..1d54a91 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={(0x184d+3191-0x24c4)};sem_t g_Pb_sem_id={
-(0x7c8+2917-0x132d)};int g_zPb_MsqId=-(0x37+5239-0x14ad);int g_zPb_LocalMsqId=-
-(0x54a+5738-0x1bb3);VOID atWeb_AddOneContact(UINT8*pDatabuf){T_zPb_WebContact*
+pDatabuf);T_zPb_optRsp g_PbOptRsp={(0x373+4944-0x16c3)};sem_t g_Pb_sem_id={
+(0x8b0+913-0xc41)};int g_zPb_MsqId=-(0xfd7+4710-0x223c);int g_zPb_LocalMsqId=-
+(0x546+2011-0xd20);VOID atWeb_AddOneContact(UINT8*pDatabuf){T_zPb_WebContact*
webPbContact=NULL;if(pDatabuf==NULL){printf(
"\x5b\x70\x62\x5d\x2c\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x43\x6f\x6e\x74\x61\x63\x74\x20\x70\x61\x72\x61\x20\x69\x73\x20\x6e\x75\x6c\x6c" "\n"
);return;}webPbContact=(T_zPb_WebContact*)pDatabuf;atWeb_AddOnePb(webPbContact,
@@ -35,21 +35,22 @@
zPb_RecvZpbicInd(UINT8*pDatabuf){T_zAt_ZpbicRes*ptPara=ZUFI_NULL;if(pDatabuf==
NULL){return;}ptPara=(T_zAt_ZpbicRes*)(pDatabuf);printf(
"\x7a\x50\x62\x5f\x52\x65\x63\x76\x5a\x70\x62\x69\x63\x49\x6e\x64\x20\x70\x61\x72\x61\x2c\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2c\x20\x74\x79\x70\x65\x3a\x25\x64" "\n"
-,ptPara->result,ptPara->opertype);if(((0xd6b+113-0xddb)==ptPara->result)&&(
-(0x747+2530-0x1128)==ptPara->opertype)){CHAR needPb[(0xef2+3313-0x1bb1)]={
-(0x711+3160-0x1369)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
-(0x10b3+1517-0x16a0)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
-MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0x754+7748-0x2598),NULL,(0x6aa+8072-0x2632)
+,ptPara->result,ptPara->opertype);if(((0xc6c+4414-0x1da9)==ptPara->result)&&(
+(0x1353+3246-0x2000)==ptPara->opertype)){CHAR needPb[(0x19eb+2052-0x21bd)]={
+(0x2b+3551-0xe0a)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
+(0xbf8+3104-0x1818)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
+MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0x387+8052-0x22fb),NULL,(0x233+7090-0x1de5)
);}}}VOID zPb_RecvZuslotInd(UINT8*pDatabuf){T_zAt_ZuslotRes*ptPara=ZUFI_NULL;if(
pDatabuf==NULL){return;}ptPara=(T_zAt_ZuslotRes*)(pDatabuf);printf(
"\x7a\x50\x62\x5f\x52\x65\x63\x76\x5a\x70\x62\x69\x63\x49\x6e\x64\x20\x70\x61\x72\x61\x2c\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2c\x20\x74\x79\x70\x65\x3a\x25\x64" "\n"
-,ptPara->slot,ptPara->slot_state);if(ptPara->slot_state==(0x1137+4483-0x22ba)){
-CHAR needPb[(0x1d5c+689-0x1fdb)]={(0xdc9+3921-0x1d1a)};sc_cfg_get(
-NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x65a+5408-0x1b7a)!=strcmp(needPb,
+,ptPara->slot,ptPara->slot_state);if(ptPara->slot_state==(0x216+4807-0x14dd)){
+CHAR needPb[(0xa9c+5185-0x1eab)]={(0xce2+4217-0x1d5b)};sc_cfg_get(
+NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x2d8+4314-0x13b2)!=strcmp(needPb,
"\x6e\x6f")){atPb_CfgPbNvInit();atPb_DelAllRecsSimDb();}}}VOID zPb_RecvPbInitRst
-(UINT8*pDatabuf){int pbReadRet=-(0x1e6+6070-0x199b);memcpy(&g_PbOptRsp,pDatabuf,
-sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-(0xf32+2015-0x1710)){atPb_IintPbErr
-(NULL);return;}pbReadRet=atPb_SendScpbrSet_repeat(g_Pb_sem_id);printf(
+(UINT8*pDatabuf){int pbReadRet=-(0x8fa+6351-0x21c8);memcpy(&g_PbOptRsp,pDatabuf,
+sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-(0x1255+2089-0x1a7d)){
+atPb_IintPbErr(NULL);return;}pbReadRet=atPb_SendScpbrSet_repeat(g_Pb_sem_id);
+printf(
"\x7a\x50\x62\x5f\x52\x65\x63\x76\x50\x62\x49\x6e\x69\x74\x52\x73\x74\x20\x72\x65\x73\x75\x6c\x74\x3a\x25\x64" "\n"
,pbReadRet);sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);}void zPbLocalHandleWebMsg(
MSG_BUF*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
@@ -64,18 +65,18 @@
,ptMsgBuf->usMsgCmd);switch(ptMsgBuf->usMsgCmd){case MSG_CMD_WRITE_PB:case
MSG_CMD_DEL_A_PB:case MSG_CMD_DEL_MUTI_PB:case MSG_CMD_DEL_ALL_PB:
ipc_send_message(MODULE_ID_PB,MODULE_ID_PB_LOCAL,ptMsgBuf->usMsgCmd,ptMsgBuf->
-usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,(0x617+8398-0x26e5));break;
+usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,(0xd37+2813-0x1834));break;
default:break;}}UINT8 zPbMsgCreat(VOID){g_zPb_MsqId=msgget(MODULE_ID_PB,
-IPC_CREAT|(0x471+729-0x5ca));if(g_zPb_MsqId==-(0x1bf8+16-0x1c07)){return
+IPC_CREAT|(0x113d+5656-0x25d5));if(g_zPb_MsqId==-(0x17b3+2544-0x21a2)){return
ZUFI_FAIL;}g_zPb_LocalMsqId=msgget(MODULE_ID_PB_LOCAL,IPC_CREAT|
-(0xafb+4928-0x1cbb));if(g_zPb_LocalMsqId==-(0x1165+3884-0x2090)){return
-ZUFI_FAIL;}sem_init(&g_Pb_sem_id,(0x8f8+5709-0x1f45),(0x691+2740-0x1145));return
- ZUFI_SUCC;}void detect_modem_state(void){CHAR state[(0x1470+1196-0x18ea)]={
-(0x9b5+5480-0x1f1d)};sc_cfg_get(
+(0x1626+858-0x1800));if(g_zPb_LocalMsqId==-(0xf0a+615-0x1170)){return ZUFI_FAIL;
+}sem_init(&g_Pb_sem_id,(0x14bd+2412-0x1e29),(0x5ed+4404-0x1721));return
+ZUFI_SUCC;}void detect_modem_state(void){CHAR state[(0x7aa+4544-0x1938)]={
+(0xb31+1091-0xf74)};sc_cfg_get(
"\x6d\x6f\x64\x65\x6d\x5f\x6d\x61\x69\x6e\x5f\x73\x74\x61\x74\x65",state,sizeof(
-state));if((0x7bd+4597-0x19b2)==strcmp(state,
+state));if((0xc61+6311-0x2508)==strcmp(state,
"\x6d\x6f\x64\x65\x6d\x5f\x73\x69\x6d\x5f\x75\x6e\x64\x65\x74\x65\x63\x74\x65\x64"
-)||(0x361+1872-0xab1)==strcmp(state,
+)||(0x1503+68-0x1547)==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,
-(0x1321+418-0x14c3));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR
-clearPb[(0x1b37+1446-0x20ab)]={(0x1017+622-0x1285)};sc_cfg_get(
+(0x1eac+1981-0x2669));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR
+clearPb[(0x1fbf+1487-0x255c)]={(0x892+7043-0x2415)};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")==(0x1fc6+1458-0x2578)){atPb_DropDb()
-;}ipc_send_message(MODULE_ID_PB,MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,
-(0x153d+93-0x159a),NULL,(0xaf6+3619-0x1919));}void zPbHandleMainCtrlMsg(MSG_BUF*
-ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
+,clearPb);if(strcmp(clearPb,"\x79\x65\x73")==(0x6dc+4389-0x1801)){atPb_DropDb();
+}ipc_send_message(MODULE_ID_PB,MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,
+(0xc79+5292-0x2125),NULL,(0x3ba+6121-0x1ba3));}void zPbHandleMainCtrlMsg(MSG_BUF
+*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
"\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=(0x792+6246-0x1ff8);MSG_BUF stMsg={
-(0x1187+5028-0x252b)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
+pb_msg_thread_proc(void*arg){int iRet=(0x3ec+515-0x5ef);MSG_BUF stMsg={
+(0x55a+6372-0x1e3e)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
int*)arg);prctl(PR_SET_NAME,"\x70\x62\x5f\x6c\x6f\x63\x61\x6c",
-(0x1466+3002-0x2020),(0x6f8+1213-0xbb5),(0x14df+4512-0x267f));while(
-(0x1a30+1019-0x1e2a)){iRet=(0x1023+4684-0x226f);memset(&stMsg,
-(0x890+7066-0x242a),sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,
-(0x14c+7464-0x1e74),(0xfdd+2653-0x1a3a));printf(
+(0x246+1049-0x65f),(0x11d+4679-0x1364),(0x286+2365-0xbc3));while(
+(0x7eb+1034-0xbf4)){iRet=(0x107c+2023-0x1863);memset(&stMsg,(0x598+6163-0x1dab),
+sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x1099+5695-0x26d8),
+(0x9c9+3212-0x1655));printf(
"\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>=(0x4eb+8637-0x26a8)){
+,stMsg.src_id,stMsg.usMsgCmd,MODULE_ID_AT_CTL);if(iRet>=(0x596+2807-0x108d)){
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=(0x1dad+345-0x1f06);MSG_BUF msgBuf={(0x11f6+1501-0x17d3)};CHAR
-needPb[(0x1ca8+1762-0x2358)]={(0x31+4044-0xffd)};prctl(PR_SET_NAME,
-"\x70\x62\x5f\x6d\x61\x69\x6e",(0x18eb+2588-0x2307),(0x1025+2224-0x18d5),
-(0x966+4338-0x1a58));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof
-(needPb));if((0x1421+1998-0x1bef)!=strcmp(needPb,"\x6e\x6f")){
+recv_thread_tid=(0x41b+1737-0xae4);MSG_BUF msgBuf={(0x54b+5085-0x1928)};CHAR
+needPb[(0xec8+2552-0x188e)]={(0x621+4858-0x191b)};prctl(PR_SET_NAME,
+"\x70\x62\x5f\x6d\x61\x69\x6e",(0xaf2+3360-0x1812),(0x979+2998-0x152f),
+(0x2381+488-0x2569));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof
+(needPb));if((0x22d9+893-0x2656)!=strcmp(needPb,"\x6e\x6f")){
#ifdef WEBS_SECURITY
-if(access(ZPB_DB_PATH,F_OK)!=(0x719+6338-0x1fdb)){if(access(ZPB_TMP_PATH,F_OK)==
-(0x1ead+732-0x2189)){if(remove(ZPB_SEC_PATH)!=(0x146a+1759-0x1b49)){slog(
+if(access(ZPB_DB_PATH,F_OK)!=(0xae2+4741-0x1d67)){if(access(ZPB_TMP_PATH,F_OK)==
+(0x11e6+4446-0x2344)){if(remove(ZPB_SEC_PATH)!=(0x3ba+7025-0x1f2b)){slog(
PB_PRINT,SLOG_ERR,
"\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)!=(0xdd1+1630-0x142f)){slog(PB_PRINT,
+);}if(rename(ZPB_TMP_PATH,ZPB_SEC_PATH)!=(0xe59+3315-0x1b4c)){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)==(0x112a+4885-0x243f)){char rnum_buf[
-(0x12ba+4695-0x24f9)]={(0x12c1+1914-0x1a3b)};char cmd[(0x16fd+3382-0x23b3)]={
-(0x381+5758-0x19ff)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZPB_SEC_PATH,F_OK)==(0x31b+8949-0x2610)){char rnum_buf[
+(0xf5b+346-0x109d)]={(0x562+8198-0x2568)};char cmd[(0xda+2380-0x9a6)]={
+(0x1169+1345-0x16aa)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
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-(0x10cb+3754-0x1f74);}printf(
+zPbMsgCreat();atPb_Init();}else{return-(0xfb0+488-0x1197);}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))==-(0x22f0+293-0x2414)){assert((0x339+2359-0xc70));}
-detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x14b7+2758-0x1f7d)
-;}
+(&g_zPb_LocalMsqId))==-(0x656+86-0x6ab)){assert((0x4d2+2376-0xe1a));}
+detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x11b6+749-0x14a3);
+}
diff --git a/ap/app/zte_comm/phonebook/src/pb_proc.c b/ap/app/zte_comm/phonebook/src/pb_proc.c
index 4961da4..3fe60eb 100755
--- a/ap/app/zte_comm/phonebook/src/pb_proc.c
+++ b/ap/app/zte_comm/phonebook/src/pb_proc.c
@@ -3,184 +3,185 @@
#include <semaphore.h>
#include <limits.h>
#include "pb_com.h"
-#define ZPB_UCS2 (0x1508+3734-0x239d)
-#define ZPB_UCS2_PREFIX (0x43b+3290-0x1095)
-#define ZPB_UCS2_PREFIX_LEN (0x10a6+243-0x1197)
-#define ZPB_NON_GSM (0x2220+424-0x23a8)
-#define ZPB_GSM_CHARACTER_SET_SIZE (0xa2a+20-0x9be)
-#define ZPB_INIT_LOAD_RECORD_NUM (0x265+558-0x461)
+#define ZPB_UCS2 (0x18cf+909-0x1c5b)
+#define ZPB_UCS2_PREFIX (0x11c8+3744-0x1fe8)
+#define ZPB_UCS2_PREFIX_LEN (0x982+5973-0x20d5)
+#define ZPB_NON_GSM (0x1c7+5970-0x18f9)
+#define ZPB_GSM_CHARACTER_SET_SIZE (0x6f8+1095-0xabf)
+#define ZPB_INIT_LOAD_RECORD_NUM (0xae1+1755-0x118a)
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=
-(0xa87+4823-0x1d5e);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+(0x156+5427-0x1688)
-]={(0x1fd2+665-0x226b)};SINT32 g_zPb_ApIndex[ZPB_AP_MAX_RECORD+
-(0x10a6+4808-0x236d)]={(0x1467+4374-0x257d)};T_zPb_DelStatusMultiOrAll
-g_zPb_DelStatusUsim={(0xb27+4122-0x1b41)};const unsigned char G_ZPB_NEWUCS2TOGSM
-[ZPB_GSM_CHARACTER_SET_SIZE*(0x9c4+7057-0x2553)]={ZPB_NON_GSM,ZPB_NON_GSM,
+(0x15f8+392-0x1780);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+
+(0x1b96+2626-0x25d7)]={(0x1fbf+553-0x21e8)};SINT32 g_zPb_ApIndex[
+ZPB_AP_MAX_RECORD+(0xa9d+3478-0x1832)]={(0xda0+1106-0x11f2)};
+T_zPb_DelStatusMultiOrAll g_zPb_DelStatusUsim={(0x2f7+3923-0x124a)};const
+unsigned char G_ZPB_NEWUCS2TOGSM[ZPB_GSM_CHARACTER_SET_SIZE*(0x1b33+672-0x1dd1)]
+={ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0xf2d+1985-0x16e4),ZPB_NON_GSM,
+ZPB_NON_GSM,(0x343+8036-0x229a),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,(0x88f+7310-0x2513),ZPB_NON_GSM,ZPB_NON_GSM,
-(0x1421+2410-0x1d7e),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM
-,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,(0x1ccd+2259-0x2580),(0x1e23+104-0x1e6a),(0x20fa+990-0x24b6),
-(0x2f0+6397-0x1bca),(0x60c+250-0x704),(0x3bf+3565-0x1187),(0x6e8+2190-0xf50),
-(0x986+1474-0xf21),(0xbec+3165-0x1821),(0x2e0+5660-0x18d3),(0x15f0+3993-0x255f),
-(0xd3a+6488-0x2667),(0x1e36+107-0x1e75),(0xea5+3854-0x1d86),(0x210+8931-0x24c5),
-(0x1487+3999-0x23f7),(0x185+9354-0x25df),(0x1ec+3963-0x1136),(0x484+2057-0xc5b),
-(0xb76+2786-0x1625),(0x14aa+2688-0x1ef6),(0x6b1+6746-0x20d6),(0xd9+1350-0x5e9),
-(0xf9a+840-0x12ab),(0x690+8155-0x2633),(0x14b2+3094-0x208f),(0xb34+2112-0x133a),
-(0x16b2+250-0x1771),(0xd3a+6482-0x2650),(0xc8c+4015-0x1bfe),(0x104f+2067-0x1824)
-,(0x1f9+5007-0x1549),(0x1648+2416-0x1fb8),(0xb17+648-0xd5e),(0x919+762-0xbd1),
-(0xd4a+882-0x1079),(0x1074+5714-0x2682),(0x1d28+286-0x1e01),(0x84b+2051-0x1008),
-(0xd8+7747-0x1ed4),(0x885+5645-0x1e4a),(0xb4f+6540-0x2492),(0xc5b+8-0xc19),
-(0x28c+9197-0x262e),(0x126+336-0x22a),(0x114f+1269-0x15f7),(0xca1+5045-0x2008),
-(0x14b6+4322-0x2549),(0xf88+2288-0x1828),(0x1485+1633-0x1a95),(0x62+1798-0x716),
-(0x7f0+3306-0x1487),(0x4ad+7363-0x211c),(0x5e5+3490-0x1332),(0xedb+5199-0x22d4),
-(0x790+2932-0x12ad),(0x78b+180-0x7e7),(0x327+2718-0xd6c),(0xf97+532-0x1151),
-(0x65+6951-0x1b31),ZPB_NON_GSM,(0x416+6402-0x1cbb),ZPB_NON_GSM,
-(0x786+3705-0x15ee),ZPB_NON_GSM,(0xfaf+4859-0x2249),(0x86b+737-0xaea),
-(0x1c63+143-0x1c8f),(0x124b+169-0x1290),(0xcb7+5973-0x23a7),(0x1aa+6809-0x1bdd),
-(0x879+3504-0x15c2),(0x388+8983-0x2637),(0x89+2888-0xb68),(0x1a17+1396-0x1f21),
-(0x14c+4350-0x11df),(0xbdb+5780-0x2203),(0xa42+4833-0x1cb6),(0x17a9+3291-0x2416)
-,(0x1e4b+1555-0x23ef),(0xcc9+5175-0x2090),(0x1841+3201-0x2451),
-(0x287+2378-0xb5f),(0x186+4690-0x1365),(0x484+1458-0x9c2),(0x567+2174-0xd70),
-(0x1de1+2335-0x268a),(0xe34+5983-0x251c),(0x1eac+1931-0x25bf),
-(0x1f97+447-0x20dd),(0x3d5+1609-0x9a4),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,(0x1ad6+9-0x1abf),(0x8cc+1369-0xe04),(0xd8d+6382-0x2659)
+,(0x99c+7223-0x25b0),(0xb33+2952-0x16b9),(0x1032+3438-0x1d7b),
+(0xacf+6758-0x250f),(0xb0+4003-0x102c),(0xe3f+2485-0x17cc),(0xae8+6219-0x230a),
+(0x2f1+1613-0x914),(0x1242+4986-0x2591),(0x70d+3243-0x138c),(0x33f+5713-0x1963),
+(0x682+6454-0x1f8a),(0x191+7130-0x1d3c),(0x1ddd+308-0x1ee1),(0x1173+4957-0x249f)
+,(0xacf+1261-0xf8a),(0xacb+5520-0x2028),(0x14e9+3618-0x22d7),(0xc1+9338-0x2506),
+(0x1b1+4249-0x1214),(0x11da+1284-0x16a7),(0x68c+2860-0x1180),(0xd35+2327-0x1613)
+,(0xc79+257-0xd40),(0x1100+1176-0x155d),(0x10e2+2236-0x1962),(0x1ada+204-0x1b69)
+,(0x81a+3251-0x148f),(0x7fd+2928-0x132e),(0x47c+6013-0x1bf9),(0xa73+6864-0x2502)
+,(0x8f4+7707-0x26cd),(0x1d7f+170-0x1de6),(0xe42+11-0xe09),(0xc4a+2121-0x144e),
+(0xb65+2068-0x1333),(0x195d+837-0x1c5b),(0x468+5477-0x1985),(0x8e2+6406-0x219f),
+(0x140c+549-0x15e7),(0x1468+4750-0x26ab),(0x520+4022-0x148a),
+(0x1afa+2206-0x234b),(0x1951+1673-0x1f8c),(0xff9+4178-0x1ffc),
+(0x1ba+9398-0x2620),(0x6b9+3311-0x1357),(0x207f+529-0x223e),(0x15b8+781-0x1872),
+(0xc65+2766-0x16df),(0xf2b+5355-0x23c1),(0x1beb+314-0x1ccf),(0x8b0+628-0xacd),
+(0xf14+364-0x1028),(0xbfd+1522-0x1196),(0x184a+314-0x192a),(0x6cf+7835-0x250f),
+ZPB_NON_GSM,(0x568+5475-0x1a6e),ZPB_NON_GSM,(0x9bd+2282-0x1296),ZPB_NON_GSM,
+(0x87b+1058-0xc3c),(0xc47+3658-0x1a2f),(0x1227+3682-0x2026),(0x8d7+1973-0x1028),
+(0x697+3288-0x130a),(0x1d53+1500-0x22c9),(0xda1+4857-0x2033),(0xf68+4347-0x1ffb)
+,(0x277+3855-0x111d),(0x4ff+2316-0xda1),(0xa3c+882-0xd43),(0x1527+3575-0x22b2),
+(0x1c2+9001-0x247e),(0x48c+7743-0x225d),(0x1e47+1152-0x2258),(0x5bc+5968-0x1c9c)
+,(0x84+5226-0x147d),(0x134a+2604-0x1d04),(0x6a7+2700-0x10c0),
+(0x1b10+1080-0x1ed4),(0x169b+4308-0x26fa),(0x24c+5114-0x15d0),
+(0x1e36+1722-0x2479),(0x5d8+4943-0x18af),(0x34f+1740-0x9a2),(0x1e33+975-0x2188),
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0x2da+9010-0x25cc),
-ZPB_NON_GSM,(0x1890+2489-0x2248),(0x191d+1724-0x1fb5),(0x4b1+8495-0x25dd),
-ZPB_NON_GSM,(0x301+2772-0xd76),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
+ZPB_NON_GSM,ZPB_NON_GSM,(0x513+1887-0xc32),ZPB_NON_GSM,(0x937+5837-0x2003),
+(0xdeb+2916-0x192b),(0x14f0+2861-0x201a),ZPB_NON_GSM,(0x2448+484-0x25cd),
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,(0xd31+3459-0x1a54),(0x80a+2186-0x1053),(0x19aa+2499-0x232c),
-(0x197+2375-0xa9d),(0x875+7696-0x2644),(0x2223+14-0x21d6),(0x548+8313-0x25b3),
-(0xa98+6854-0x2542),(0x704+6815-0x219a),(0x8d4+7113-0x2458),(0x27a+8316-0x22d7),
-(0x1173+693-0x13e3),(0x18d7+1173-0x1d27),(0xb3a+5925-0x2216),
-(0x1511+4516-0x266c),(0xe78+4762-0x20c9),(0xb5f+4680-0x1d5e),ZPB_NON_GSM,
-(0x23cf+483-0x2555),(0x663+1712-0xcc4),(0xc9f+2166-0x14c6),(0xc1c+6485-0x2522),
-(0x1285+3032-0x1e0e),(0x22c8+1044-0x2680),ZPB_NON_GSM,(0x8f6+5000-0x1c73),
-(0x10b9+4223-0x20e3),(0x1396+2029-0x1b2e),(0x779+903-0xaab),(0x1e71+392-0x1f9b),
-(0x1e20+227-0x1eaa),ZPB_NON_GSM,(0x4e8+8061-0x2447),(0x1e3c+1555-0x23d0),
-(0x23f4+414-0x2531),(0x10b7+12-0x1062),(0x1de2+1189-0x2226),(0x1c8c+40-0x1c39),
-(0x13f8+471-0x15c0),(0x121c+1460-0x17b3),(0x836+7399-0x2514),(0x850+5194-0x1c96)
-,(0x690+4270-0x1739),(0x592+4747-0x17b8),(0x1ac7+373-0x1bd7),(0x6a2+3276-0x1367)
-,(0xb43+1713-0x118b),(0x1272+2512-0x1bd9),(0x1090+251-0x1122),ZPB_NON_GSM,
-(0xf09+328-0xfd4),(0xcf4+1284-0x11f0),(0x17ca+2466-0x20fd),(0xf1+1433-0x61b),
-(0xb85+1786-0x1210),(0x8e2+1274-0xd60),ZPB_NON_GSM,(0x1dff+509-0x1ff0),
-(0x12ec+4030-0x22a4),(0x1301+4063-0x226b),(0x18d3+1228-0x1d2a),
-(0x1993+1807-0x2024),(0xcd4+5625-0x2254),ZPB_NON_GSM,(0x1ce4+1838-0x2399)};VOID
-atPb_Init(VOID){UINT32 pbCount=(0x397+6706-0x1dc9);g_zPb_SimIndex[
-(0x25c1+140-0x264d)]=(0x1046+4418-0x2188);sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);(
-VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(pbCount=
-(0x10ad+2621-0x1ae9);pbCount<=ZPB_SIM_MAX_RECORD;pbCount++){g_zPb_SimIndex[
-pbCount]=PBM_ERROR_NOT_FOUND;}if(ZPB_DB_OK!=atPb_CreatDb()){slog(PB_PRINT,
-SLOG_ERR,"pb:atPb_Init:create pbm table failed\n");return;}if(ZPB_DB_OK!=
-atPb_InitApIndex()){slog(PB_PRINT,SLOG_ERR,
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0x1e7c+1382-0x2382)
+,(0x490+7136-0x202f),(0xf0c+5943-0x2602),(0x1145+2453-0x1a99),
+(0x794+5803-0x1dfe),(0x1575+2210-0x1dbc),(0x19a8+3167-0x25f9),
+(0x2136+782-0x2428),(0x707+2227-0xfb1),(0x1a65+2688-0x24a0),(0x11bb+1737-0x1865)
+,(0x2dd+429-0x445),(0x2065+1500-0x25fc),(0x1b2+195-0x22c),(0xaf0+5517-0x2034),
+(0x14ed+3148-0x20f0),(0x1759+2169-0x1f89),ZPB_NON_GSM,(0x187+9695-0x2709),
+(0x763+6887-0x21fb),(0x1d4+3360-0xea5),(0x39a+2566-0xd51),(0x466+8486-0x253d),
+(0x187+7145-0x1d14),ZPB_NON_GSM,(0x1913+3261-0x25c5),(0x122b+3545-0x1faf),
+(0x1ea2+1998-0x261b),(0x13e2+1149-0x180a),(0x1d4c+2459-0x2689),
+(0xf6a+2752-0x19d1),ZPB_NON_GSM,(0x4f8+1160-0x962),(0x356+3418-0x1031),
+(0xcb3+1917-0x13cf),(0x713+360-0x81a),(0xc2b+1723-0x1285),(0x1260+2162-0x1a57),
+(0xf38+2665-0x1992),(0x15c0+4023-0x255a),(0x1818+605-0x1a6c),(0x69c+2572-0x10a4)
+,(0x12d5+3511-0x2087),(0xd48+4909-0x2010),(0x879+2695-0x129b),
+(0x946+6605-0x230c),(0x1b23+245-0x1baf),(0x5c5+4409-0x1695),(0x1a90+179-0x1ada),
+ZPB_NON_GSM,(0x195+8409-0x21f1),(0x898+1892-0xff4),(0x31d+130-0x330),
+(0xefa+4524-0x2037),(0x1d45+306-0x1e08),(0x8fc+1752-0xf58),ZPB_NON_GSM,
+(0x4a4+7053-0x2025),(0x8b7+3535-0x1680),(0x742+6379-0x1fb8),(0x531+4290-0x157e),
+(0x32a+1207-0x763),(0x1e81+349-0x1f65),ZPB_NON_GSM,(0xbc3+1257-0x1033)};VOID
+atPb_Init(VOID){UINT32 pbCount=(0x20+8460-0x212c);g_zPb_SimIndex[
+(0x712+7847-0x25b9)]=(0x22a+493-0x417);sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);(VOID
+)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(pbCount=(0x1a6f+1551-0x207d);
+pbCount<=ZPB_SIM_MAX_RECORD;pbCount++){g_zPb_SimIndex[pbCount]=
+PBM_ERROR_NOT_FOUND;}if(ZPB_DB_OK!=atPb_CreatDb()){slog(PB_PRINT,SLOG_ERR,
+"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=
-(0x7c4+3847-0x16cb);int min=32767;int max=(0x1f01+437-0x20b6);int temp=
-(0x411+7111-0x1fd8);int outOff=(0x4f2+2635-0xf3d);printf(
+(0x11db+1048-0x15f3);int min=32767;int max=(0x139a+580-0x15de);int temp=
+(0x166f+478-0x184d);int outOff=(0x1cc+6169-0x19e5);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<=(0xa20+5087-0x1dff)||src==NULL||dest==NULL){return-
-(0x640+600-0x897);}if(srcLen<=(0x76a+4584-0x1950)){dest[(0xa14+6083-0x21d7)]=
-(0xc7d+3853-0x1b0a);memcpy(dest+(0x302+812-0x62d),src,srcLen);printf(
+,srcLen);if(srcLen<=(0x1a7+1360-0x6f7)||src==NULL||dest==NULL){return-
+(0xdfc+3302-0x1ae1);}if(srcLen<=(0x2c1+4409-0x13f8)){dest[(0x479+1938-0xc0b)]=
+(0x17e3+1848-0x1e9b);memcpy(dest+(0x1e87+324-0x1fca),src,srcLen);printf(
"\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+(0x1b1+3957-0x1125));return srcLen+(0x12d0+3196-0x1f4b);}for(i=
-(0xd25+976-0x10f5);i<srcLen;i+=(0x1333+2733-0x1dde)){if(src[i]!=
-(0xd4+5934-0x1802)){temp=(int)(((src[i]<<(0xfa3+5037-0x2348))&65280)|(src[i+
-(0x1527+2571-0x1f31)]&(0x18bd+1542-0x1dc4)));
-#if (0x6f4+6366-0x1fd2)
-if(temp<(0x1175+2092-0x19a1)){max=min+(0xbdc+6203-0x2395);break;}
+,srcLen+(0x331+8832-0x25b0));return srcLen+(0xa7+3472-0xe36);}for(i=
+(0xe93+1483-0x145e);i<srcLen;i+=(0x19c+851-0x4ed)){if(src[i]!=
+(0x1cf0+1800-0x23f8)){temp=(int)(((src[i]<<(0x1ae0+1932-0x2264))&65280)|(src[i+
+(0x6d4+5291-0x1b7e)]&(0x8c8+7173-0x23ce)));
+#if (0xec3+100-0xf27)
+if(temp<(0x1857+2818-0x2359)){max=min+(0x10d0+4744-0x22d6);break;}
#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)<(0xb9a+1755-0x11f4)){if((unsigned char)(min&
-(0x399+5087-0x16f8))==(unsigned char)(max&(0x1268+3562-0x1fd2))){dest[
-(0x6cf+6602-0x2098)]=(unsigned char)(srcLen/(0xddc+1092-0x121e));dest[
-(0x176c+1855-0x1eab)]=(unsigned char)(0x35a+1448-0x881);min=(int)(min&32640);
-dest[(0x12e0+3410-0x2030)]=(unsigned char)((min>>(0x7d9+428-0x97e))&
-(0x10f+9471-0x250f));outOff=(0x226d+1167-0x26f9);printf(
+,min,max);if((max-min)<(0x1df3+136-0x1dfa)){if((unsigned char)(min&
+(0x393+2404-0xc77))==(unsigned char)(max&(0xb4f+4539-0x1c8a))){dest[
+(0x2a+5996-0x1795)]=(unsigned char)(srcLen/(0x1664+2005-0x1e37));dest[
+(0x2ef+4077-0x12dc)]=(unsigned char)(0x1c13+2888-0x26da);min=(int)(min&32640);
+dest[(0xa46+753-0xd35)]=(unsigned char)((min>>(0x493+2543-0xe7b))&
+(0x433+458-0x4fe));outOff=(0x91f+5459-0x1e6f);printf(
"\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[(0x165c+3329-0x235c)]=(unsigned char)(srcLen/(0x18f8+477-0x1ad3));
-dest[(0x1369+2091-0x1b94)]=(unsigned char)(0x1c1+8776-0x2387);dest[
-(0x5a7+6082-0x1d67)]=(unsigned char)((min>>(0x771+2292-0x105d))&
-(0xd30+1115-0x108c));dest[(0x1d50+2247-0x2614)]=(unsigned char)(min&
-(0x105f+4809-0x2229));outOff=(0xb6c+2879-0x16a7);printf(
+);}else{dest[(0x1469+1118-0x18c6)]=(unsigned char)(srcLen/(0xa79+136-0xaff));
+dest[(0x11b7+4715-0x2422)]=(unsigned char)(0xf61+2280-0x17c7);dest[
+(0x1093+4536-0x2249)]=(unsigned char)((min>>(0x1398+2516-0x1d64))&
+(0xf3f+1784-0x1538));dest[(0x1c98+341-0x1dea)]=(unsigned char)(min&
+(0x52f+2427-0xdab));outOff=(0x1cb0+1207-0x2163);printf(
"\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=(0x41+2994-0xbf3);i<srcLen;i+=(0xe38+5386-0x2340)){if(src[i]==
-(0x225+8445-0x2322)){dest[outOff]=(unsigned char)(src[i+(0xf46+5819-0x2600)]&
-(0x970+4444-0x1a4d));}else{temp=(int)((((src[i]<<(0x1075+4197-0x20d2))&65280)|(
-src[i+(0x25d+9382-0x2702)]&(0x51c+5551-0x19cc)))-min);dest[outOff]=(unsigned
-char)(temp|(0x239+2430-0xb37));}outOff++;}printf(
+);}for(i=(0x181+7483-0x1ebc);i<srcLen;i+=(0x1730+2428-0x20aa)){if(src[i]==
+(0x1661+2048-0x1e61)){dest[outOff]=(unsigned char)(src[i+(0x1d46+281-0x1e5e)]&
+(0xaf8+4301-0x1b46));}else{temp=(int)((((src[i]<<(0x8fd+7488-0x2635))&65280)|(
+src[i+(0x11c8+4890-0x24e1)]&(0x3d2+7750-0x2119)))-min);dest[outOff]=(unsigned
+char)(temp|(0x1b75+2426-0x246f));}outOff++;}printf(
"\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[(0x368+6963-0x1e9b)]=
-(0x498+2663-0xe7f);memcpy(dest+(0xd7a+5129-0x2182),src,srcLen);printf(
+,outOff,outOff,dest[outOff]);return outOff;}dest[(0x1031+2649-0x1a8a)]=
+(0x8d2+447-0xa11);memcpy(dest+(0x901+1996-0x10cc),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+(0xafc+5176-0x1f33));return srcLen+(0xf5d+371-0x10cf);}int
+,srcLen+(0x428+495-0x616));return srcLen+(0x53a+7503-0x2288);}int
atPb_GetU80Code(const UINT8*srcCode,UINT32 srcCodeLen,UINT8*destCode,UINT32
destCodeLen){assert(destCode!=NULL&&srcCode!=NULL);if(srcCodeLen==
-(0x11ea+4477-0x2367)||destCodeLen==(0x384+628-0x5f8)||destCodeLen<srcCodeLen){
-return-(0x2510+299-0x263a);}memset(destCode,(0x253+998-0x639),destCodeLen);
-destCode[(0x81+520-0x289)]=(0x14b4+879-0x17a3);printf(
+(0x1cec+1497-0x22c5)||destCodeLen==(0x34c+144-0x3dc)||destCodeLen<srcCodeLen){
+return-(0x196f+3185-0x25df);}memset(destCode,(0xa6c+6314-0x2316),destCodeLen);
+destCode[(0x1ac5+879-0x1e34)]=(0x128f+3456-0x1f8f);printf(
"\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[(0x4d1+4124-0x14ed)]);switch(srcCode[(0x44f+7262-0x20ad)]){case
-(0x7c9+4191-0x17a8):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}case
-(0x223b+1239-0x2691):{atPb_CvtU81ToU80(srcCode+(0x591+5072-0x1960),srcCodeLen-
-(0x1025+92-0x1080),destCode+(0x1396+2377-0x1cde),destCodeLen-
-(0x1368+1139-0x17da));return srcCode[(0xab7+4876-0x1dc2)]*(0x275+3021-0xe40)+
-(0x2f5+7631-0x20c3);}case(0xce1+326-0xda5):{atPb_CvtU82ToU80(srcCode+
-(0x5f5+4876-0x1900),srcCodeLen-(0x946+690-0xbf7),destCode+(0xbda+1798-0x12df),
-destCodeLen-(0xb23+1850-0x125c));return srcCode[(0x24f3+285-0x260f)]*
-(0x8e6+510-0xae2)+(0x1bec+76-0x1c37);}default:{return-(0x35f+5005-0x16eb);}}}
+,srcCode[(0x3d2+6521-0x1d4b)]);switch(srcCode[(0xa51+562-0xc83)]){case
+(0x1c7a+1565-0x2217):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}
+case(0x126+6616-0x1a7d):{atPb_CvtU81ToU80(srcCode+(0xc8c+4395-0x1db6),srcCodeLen
+-(0x386+2179-0xc08),destCode+(0x12c8+2041-0x1ac0),destCodeLen-
+(0x75c+6237-0x1fb8));return srcCode[(0x18d4+2737-0x2384)]*(0x14c8+2396-0x1e22)+
+(0x401+273-0x511);}case(0x1d71+673-0x1f90):{atPb_CvtU82ToU80(srcCode+
+(0xf57+1824-0x1676),srcCodeLen-(0x987+6574-0x2334),destCode+(0x71b+3743-0x15b9),
+destCodeLen-(0x68b+1545-0xc93));return srcCode[(0x607+3681-0x1467)]*
+(0x5c5+2244-0xe87)+(0x160+1452-0x70b);}default:{return-(0x67+9386-0x2510);}}}
BOOL atPb_CvtU82ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32
-destLen){UINT8 chNum=(0x3f5+6548-0x1d89);UINT16 basePointer=(0x1ec+2540-0xbd8);
-UINT8 iCurChar=(0x1709+3455-0x2488);UINT32 iCurSrc=(0x1d3f+1334-0x2275);chNum=(
-UINT32)srcData[(0x201+3288-0xed9)];basePointer=(UINT16)srcData[
-(0x17c2+72-0x1809)];basePointer=basePointer<<(0x12e5+1917-0x1a5a);basePointer=
-basePointer+srcData[(0x49b+8125-0x2456)];if(chNum*(0x6a0+7641-0x2477)>destLen){
-return FALSE;}for(iCurSrc=(0xc1f+271-0xd2b);iCurSrc<srcLen&&iCurChar<chNum;
-iCurSrc++,iCurChar++){UINT8*curDest=destData+(0x704+6113-0x1ee3)*iCurChar;
-atPb_CvtChCode(basePointer,srcData[iCurSrc],curDest,curDest+(0x1bc+771-0x4be));}
-return TRUE;}BOOL atPb_CvtU81ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*
-destData,UINT32 destLen){UINT8 chNum=(0x704+4185-0x175d);UINT16 basePointer=
-(0x1514+1821-0x1c31);UINT8 iCurChar=(0xf5c+4091-0x1f57);UINT32 iCurSrc=
-(0x37d+3486-0x111b);chNum=srcData[(0xc10+2543-0x15ff)];basePointer=((UINT16)
-srcData[(0x2e2+3756-0x118d)])<<(0x17ad+939-0x1b51);if(chNum*(0xf5+8140-0x20bf)>
-destLen){return FALSE;}for(iCurSrc=(0x2f1+2439-0xc76);iCurSrc<srcLen&&iCurChar<
-chNum;iCurSrc++,iCurChar++){UINT8*curDest=destData+(0x243b+88-0x2491)*iCurChar;
-atPb_CvtChCode(basePointer,srcData[iCurSrc],curDest,curDest+(0x2+1988-0x7c5));}
-return TRUE;}VOID atPb_CvtChCode(UINT16 basePointer,UINT8 srcData,UINT8*chMsb,
-UINT8*chLsb){UINT16 curChar=(0x5b6+1860-0xcfa);assert(chMsb!=NULL&&chLsb!=NULL);
-if((srcData&(0x20ba+1526-0x2630))==(0x52f+7223-0x2166)){curChar=srcData;}else{
-curChar=basePointer+(srcData&(0x16e4+2267-0x1f40));}*chMsb=(UINT8)(curChar>>
-(0x10cf+1617-0x1718));*chLsb=(UINT8)((curChar<<(0x1593+878-0x18f9))>>
-(0x594+1333-0xac1));return;}int atPb_String2Bytes(const char*pSrc,unsigned char*
-pDst,int nSrcLength){int i=(0x1d3+2203-0xa6e);if(pSrc==NULL||pDst==NULL||
-nSrcLength<(0x947+1119-0xda6)){return-(0x1170+2466-0x1b11);}for(i=
-(0x1135+3786-0x1fff);i<nSrcLength;i+=(0x9a4+6196-0x21d6)){if(*pSrc>=
-((char)(0x719+5128-0x1af1))&&*pSrc<=((char)(0x23fd+738-0x26a6))){*pDst=(*pSrc-
-((char)(0x400+6471-0x1d17)))<<(0x1336+4587-0x251d);}else{*pDst=((toupper(*pSrc)-
-((char)(0x8df+1463-0xe55)))+(0xf01+2826-0x1a01))<<(0x128a+183-0x133d);}pSrc++;if
-(*pSrc>=((char)(0xdeb+1175-0x1252))&&*pSrc<=((char)(0x16b9+2689-0x2101))){*pDst
-|=*pSrc-((char)(0x13c2+895-0x1711));}else{*pDst|=(toupper(*pSrc)-
-((char)(0x8ba+5776-0x1f09)))+(0xddb+2709-0x1866);}pSrc++;pDst++;}return
-nSrcLength/(0x84d+6489-0x21a4);}int atPb_Bytes2String(const unsigned char*pSrc,
+destLen){UINT8 chNum=(0xb17+7083-0x26c2);UINT16 basePointer=(0x160+7659-0x1f4b);
+UINT8 iCurChar=(0x1740+3155-0x2393);UINT32 iCurSrc=(0x467+5684-0x1a9b);chNum=(
+UINT32)srcData[(0x22a+5338-0x1704)];basePointer=(UINT16)srcData[
+(0x8d5+3110-0x14fa)];basePointer=basePointer<<(0x974+109-0x9d9);basePointer=
+basePointer+srcData[(0x4c1+4458-0x1629)];if(chNum*(0x15f7+1513-0x1bde)>destLen){
+return FALSE;}for(iCurSrc=(0xdf2+6089-0x25b8);iCurSrc<srcLen&&iCurChar<chNum;
+iCurSrc++,iCurChar++){UINT8*curDest=destData+(0xa21+4331-0x1b0a)*iCurChar;
+atPb_CvtChCode(basePointer,srcData[iCurSrc],curDest,curDest+(0x19ca+883-0x1d3c))
+;}return TRUE;}BOOL atPb_CvtU81ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*
+destData,UINT32 destLen){UINT8 chNum=(0x14f0+987-0x18cb);UINT16 basePointer=
+(0x1427+3758-0x22d5);UINT8 iCurChar=(0xd28+1467-0x12e3);UINT32 iCurSrc=
+(0x16df+1763-0x1dc2);chNum=srcData[(0x498+514-0x69a)];basePointer=((UINT16)
+srcData[(0xca1+308-0xdd4)])<<(0x1407+1202-0x18b2);if(chNum*(0x18c5+1514-0x1ead)>
+destLen){return FALSE;}for(iCurSrc=(0x1832+3539-0x2603);iCurSrc<srcLen&&iCurChar
+<chNum;iCurSrc++,iCurChar++){UINT8*curDest=destData+(0xfc8+5386-0x24d0)*iCurChar
+;atPb_CvtChCode(basePointer,srcData[iCurSrc],curDest,curDest+(0xb0d+4115-0x1b1f)
+);}return TRUE;}VOID atPb_CvtChCode(UINT16 basePointer,UINT8 srcData,UINT8*chMsb
+,UINT8*chLsb){UINT16 curChar=(0x1052+1682-0x16e4);assert(chMsb!=NULL&&chLsb!=
+NULL);if((srcData&(0x487+2143-0xc66))==(0x1260+3977-0x21e9)){curChar=srcData;}
+else{curChar=basePointer+(srcData&(0x1e7+4094-0x1166));}*chMsb=(UINT8)(curChar>>
+(0x8e5+3857-0x17ee));*chLsb=(UINT8)((curChar<<(0x17d7+1298-0x1ce1))>>
+(0x175f+1417-0x1ce0));return;}int atPb_String2Bytes(const char*pSrc,unsigned
+char*pDst,int nSrcLength){int i=(0xf84+2818-0x1a86);if(pSrc==NULL||pDst==NULL||
+nSrcLength<(0x25a+8250-0x2294)){return-(0xda+3794-0xfab);}for(i=
+(0x708+3372-0x1434);i<nSrcLength;i+=(0x24e6+505-0x26dd)){if(*pSrc>=
+((char)(0x4a4+6199-0x1cab))&&*pSrc<=((char)(0x392+6398-0x1c57))){*pDst=(*pSrc-
+((char)(0xbfa+3822-0x1ab8)))<<(0x29+8027-0x1f80);}else{*pDst=((toupper(*pSrc)-
+((char)(0x3f8+789-0x6cc)))+(0x1dc+4035-0x1195))<<(0x19bf+450-0x1b7d);}pSrc++;if(
+*pSrc>=((char)(0x6dd+5370-0x1ba7))&&*pSrc<=((char)(0x24f+8905-0x24df))){*pDst|=*
+pSrc-((char)(0xd18+6053-0x248d));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x1737+296-0x181e)))+(0x1b89+1591-0x21b6);}pSrc++;pDst++;}return
+nSrcLength/(0xe7f+1833-0x15a6);}int atPb_Bytes2String(const unsigned char*pSrc,
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=
-(0x1cb4+50-0x1ce6);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x127+408-0x2bf)){
-return-(0xa8c+20-0xa9f);}for(i=(0x9ef+4488-0x1b77);i<nSrcLength;i++){*pDst++=tab
-[*pSrc>>(0xce7+1468-0x129f)];*pDst++=tab[*pSrc&(0x106+9292-0x2543)];pSrc++;}*
-pDst='\0';return nSrcLength*(0x15b8+3451-0x2331);}static VOID atPb_WebRecodeShow
+(0x1056+3023-0x1c25);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1103+3473-0x1e94))
+{return-(0x111a+3349-0x1e2e);}for(i=(0xdc+1302-0x5f2);i<nSrcLength;i++){*pDst++=
+tab[*pSrc>>(0x1569+3265-0x2226)];*pDst++=tab[*pSrc&(0x52c+5347-0x1a00)];pSrc++;}
+*pDst='\0';return nSrcLength*(0x899+6187-0x20c2);}static VOID atPb_WebRecodeShow
(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,
@@ -200,21 +201,20 @@
){sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x61\x74\x42\x61\x73\x65\x5f\x49\x69\x6e\x74\x50\x62\x4f\x6b\x20" "\n"
);}VOID atPb_RecvCpbsReadRsp(T_zPb_AtCpbsReadRes*cpbsInd){CHAR resInfo[
-(0xb10+778-0xe06)]={(0x17db+2580-0x21ef)};if(strncmp(cpbsInd->locType,"\x53\x4d"
-,(0x78b+1000-0xb71))==(0x766+6920-0x226e)){(VOID)snprintf(resInfo,
-(0x667+7199-0x2272),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
-NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x1016+5247-0x2495),
-(0x175d+1527-0x1d40));(VOID)snprintf(resInfo,(0xe42+340-0xf82),"\x25\x64",
-cpbsInd->totalEntries);(VOID)sc_cfg_set(NV_PB_TOTALENTRIES,resInfo);
-g_zPb_SimIndex[(0xab5+5514-0x203f)]=(UINT32)(cpbsInd->totalEntries);}else{printf
-(
+(0x101d+420-0x11ad)]={(0x37c+6417-0x1c8d)};if(strncmp(cpbsInd->locType,
+"\x53\x4d",(0x1af4+2737-0x25a3))==(0x94f+1059-0xd72)){(VOID)snprintf(resInfo,
+(0x19b0+802-0x1cbe),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
+NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x51f+1957-0xcc4),(0x876+1971-0x1015)
+);(VOID)snprintf(resInfo,(0xa70+3266-0x171e),"\x25\x64",cpbsInd->totalEntries);(
+VOID)sc_cfg_set(NV_PB_TOTALENTRIES,resInfo);g_zPb_SimIndex[(0x26+1103-0x475)]=(
+UINT32)(cpbsInd->totalEntries);}else{printf(
"\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[(0x1461+1265-0x1948)]={(0x322+8240-0x2352)};assert(
-pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0x47+9080-0x23b5),"\x25\x64",
+UINT32 len){char converted[(0x118c+3887-0x20b1)]={(0xbb5+5725-0x2212)};assert(
+pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0x5dd+4446-0x1731),"\x25\x64",
len);(VOID)sc_cfg_set(pbNvKeyWord,converted);}VOID atPb_ScpbrTestRsp(
-T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0x626+2098-0xe58)};
-CHAR pbUsed[(0x2281+738-0x2531)]={(0x139+7916-0x2025)};sc_cfg_get(
+T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0xc19+3836-0x1b15)};
+CHAR pbUsed[(0x1507+748-0x17c1)]={(0x44b+1340-0x987)};sc_cfg_get(
NV_PB_USEDENTRIES,pbUsed,sizeof(pbUsed));g_zPb_DelIndex=(UINT32)scpbsInd->
minIndex;pbPara.simType=ZPB_USIM;pbPara.maxRecordNum=scpbsInd->maxIndex;pbPara.
usedRecordNum=atoi(pbUsed);pbPara.maxNumberLen=scpbsInd->maxNumberLen;pbPara.
@@ -223,22 +223,22 @@
atPb_SetScpbrResToNv(ZPB_NV_USIMINDEXMIN,(UINT32)scpbsInd->minIndex);
atPb_SetScpbrResToNv(ZPB_NV_USIMINDEXMAX,(UINT32)scpbsInd->maxIndex);(VOID)
atPb_SetSimCapacityTable(pbPara);}int atPb_SendScpbrSet_repeat(sem_t tSemId){int
- min=(0x7d1+5589-0x1da6);int max=(0x10c8+5566-0x2686);int res=(0x4f9+1797-0xbfe)
-;int index=(0x3ec+1973-0xba1);CHAR pbMin[(0x1151+2354-0x1a51)]={
-(0x160+9345-0x25e1)};CHAR pbMax[(0x65b+7450-0x2343)]={(0xa37+390-0xbbd)};int
-indexmin=(0x15c8+1206-0x1a7e);int indexmax=(0x126a+239-0x1359);
-T_zPb_ScpbrReadRes scpbrReadInfo={(0xd06+1966-0x14b4)};sc_cfg_get(
-ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,
-sizeof(pbMax));(VOID)sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);if(strcmp(pbMin,"\x30")
-==(0x1919+581-0x1b5e)||strcmp(pbMax,"\x30")==(0x6bb+4846-0x19a9)){sc_cfg_set(
-ZPB_NV_INIT,ZPB_OPERATE_SUC);printf(
+ min=(0xca4+928-0x1044);int max=(0x1668+257-0x1769);int res=(0xe61+70-0xea7);int
+ index=(0x64c+7781-0x24b1);CHAR pbMin[(0x64c+4043-0x15e5)]={(0x3e0+2239-0xc9f)};
+CHAR pbMax[(0x118c+1485-0x1727)]={(0x10+1653-0x685)};int indexmin=
+(0xc7d+6023-0x2404);int indexmax=(0x158+3647-0xf97);T_zPb_ScpbrReadRes
+scpbrReadInfo={(0xce7+647-0xf6e)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(
+pbMin));sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));(VOID)sc_cfg_set(
+ZPB_NV_INIT,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0x19d3+2778-0x24ad)||strcmp(
+pbMax,"\x30")==(0xdb9+2526-0x1797)){sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);
+printf(
"\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-(0xd85+5060-0x2148);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
-"\x25\x64",&max);if((min<(0xe1d+6372-0x2701)||min>INT_MAX-(0x165+7861-0x2019))||
-(max<(0xd14+1761-0x13f5)||max>INT_MAX-(0x1448+4771-0x26ea))){printf(
+);return-(0x64f+6124-0x1e3a);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
+"\x25\x64",&max);if((min<(0xb5+2922-0xc1f)||min>INT_MAX-(0x1732+3147-0x237c))||(
+max<(0x3dd+1121-0x83e)||max>INT_MAX-(0xcea+4869-0x1fee))){printf(
"\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-(0x943+3612-0x175e);}while((0x1049+1595-0x1683)){if(indexmin<
-min){indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0x1794+1312-0x1cb3);if(
+,min,max);return-(0x4b2+6388-0x1da5);}while((0x990+2026-0x1179)){if(indexmin<min
+){indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0xdb2+3987-0x1d44);if(
indexmax>max){indexmax=max;break;}printf(
"\x5b\x50\x42\x5d\x20\x31\x31\x31\x20\x69\x6e\x64\x65\x78\x6d\x69\x6e\x3d\x25\x64\x2c\x20\x69\x6e\x64\x65\x78\x6d\x61\x78\x3d\x25\x64\x2c\x28\x25\x64\x2d\x25\x64\x29" "\n"
,indexmin,indexmax,min,max);}else{indexmin=indexmin+ZPB_INIT_LOAD_RECORD_NUM;if(
@@ -249,18 +249,18 @@
"\x5b\x50\x42\x5d\x20\x32\x32\x32\x20\x69\x6e\x64\x65\x78\x6d\x69\x6e\x3d\x25\x64\x2c\x20\x69\x6e\x64\x65\x78\x6d\x61\x78\x3d\x25\x64\x2c\x28\x25\x64\x2d\x25\x64\x29" "\n"
,indexmin,indexmax,min,max);}scpbrReadInfo.minIndex=indexmin;scpbrReadInfo.
maxIndex=indexmax;res=ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,
-MSG_CMD_READ_PB_REQ,sizeof(T_zPb_ScpbrReadRes),&scpbrReadInfo,
-(0x10b2+4708-0x2316));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-
-(0xee2+5437-0x241e)){break;}}return g_PbOptRsp.result;}
-#if (0x18a2+1825-0x1fc3)
+MSG_CMD_READ_PB_REQ,sizeof(T_zPb_ScpbrReadRes),&scpbrReadInfo,(0x20cf+96-0x212f)
+);sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-(0x1775+804-0x1a98)){break;}}
+return g_PbOptRsp.result;}
+#if (0x1247+2389-0x1b9c)
int atPb_SendScpbrSet(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){UINT32
-indexmin=(0xb3c+2381-0x1489);UINT32 indexmax=(0x1200+1326-0x172e);CHAR atcmdMsg[
-(0x1a6+2158-0x9ce)]={(0x459+4357-0x155e)};int res=(0x80+746-0x36a);CHAR pbMin[
-(0x15bb+1224-0x1a51)]={(0xcb3+2447-0x1642)};CHAR pbMax[(0x4c5+1795-0xb96)]={
-(0x6f2+2213-0xf97)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
+indexmin=(0x46+4502-0x11dc);UINT32 indexmax=(0x7dd+2106-0x1017);CHAR atcmdMsg[
+(0x2aa+3547-0x103f)]={(0x1d50+121-0x1dc9)};int res=(0x17cd+2926-0x233b);CHAR
+pbMin[(0x14bc+3977-0x2413)]={(0xf80+713-0x1249)};CHAR pbMax[(0x2507+489-0x26be)]
+={(0x589+752-0x879)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));(VOID)sc_cfg_set(ZPB_NV_INIT
-,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0x3e9+6925-0x1ef6)||strcmp(pbMax,"\x30")
-==(0x76+7342-0x1d24)){printf(
+,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0xe08+2807-0x18ff)||strcmp(pbMax,"\x30")
+==(0xbdf+3026-0x17b1)){printf(
"\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x63\x61\x72\x64\x20\x75\x6e\x73\x75\x70\x70\x6f\x72\x74\x20\x70\x62" "\n"
);return ZAT_RESULT_OK;}sscanf(pbMin,"\x25\x64",&indexmin);sscanf(pbMax,
"\x25\x64",&indexmax);(VOID)snprintf(atcmdMsg,sizeof(atcmdMsg),
@@ -269,45 +269,45 @@
atcmdMsg,cid,pAtRst,atRstSize);pthread_mutex_unlock(&smsdb_mutex);return res;}
#endif
UINT8 atPb_EncodeText(CHAR*pbDst,CHAR const*pbTextSrc,UINT32 dstLen){UINT8 i=
-(0x158c+97-0x15ed);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x60b+3857-0x151c)};if(
-pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0xd6b+1336-0x129f)+
-ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0x12f9+4666-0x2533)],
-sizeof(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0xa81+6553-0x241a);
-(i<strlen(pbTextSrc))&&(i*(0x1850+1868-0x1f98)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
-snprintf(strTarget+i*(0x1f60+145-0x1fed)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i
-*(0x6ca+1544-0xcce)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i])
-;}strncpy(pbDst,strTarget,dstLen-(0x375+1154-0x7f6));return ZUFI_SUCC;}}return
-ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){T_zPb_WebContact
-pbRecord={(0x9d5+5060-0x1d99)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
-(0x627+7513-0x2380)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0x41b+2667-0xe86)};int
-text_len=(0x1911+1828-0x2035);int tmp_len=(0x85+9529-0x25be);CHAR tmp[
-ZPB_TEXT_SIZE_BYTES]={(0xaf7+4558-0x1cc5)};if(atRes->coding!=ZPB_UCS2){if(
+(0x1f9+4063-0x11d8);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x127a+2670-0x1ce8)};
+if(pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0xc88+5581-0x2251)+
+ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0x308+4049-0x12d9)],
+sizeof(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0x611+5451-0x1b5c);
+(i<strlen(pbTextSrc))&&(i*(0x1200+2216-0x1aa4)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
+snprintf(strTarget+i*(0xdb8+2392-0x170c)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i
+*(0xd25+950-0x10d7)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i])
+;}strncpy(pbDst,strTarget,dstLen-(0x1547+3059-0x2139));return ZUFI_SUCC;}}return
+ ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){T_zPb_WebContact
+pbRecord={(0x126b+2399-0x1bca)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
+(0x1a0+7920-0x2090)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0x1979+2444-0x2305)};int
+text_len=(0x63b+2014-0xe19);int tmp_len=(0x7a3+6585-0x215c);CHAR tmp[
+ZPB_TEXT_SIZE_BYTES]={(0x7f6+5789-0x1e93)};if(atRes->coding!=ZPB_UCS2){if(
atPb_EncodeText(pbDst,atRes->text,ZPB_TEXT_SIZE_BYTES)==ZUFI_SUCC){strncpy(atRes
-->text,pbDst+(0xec4+3338-0x1bcc),sizeof(atRes->text)-(0x114a+2800-0x1c39));}else
-{slog(PB_PRINT,SLOG_ERR,
+->text,pbDst+(0x9b+2038-0x88f),sizeof(atRes->text)-(0x6cb+7825-0x255b));}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<
-(0xc87+4352-0x1d87))return;memset(&text,(0xbed+5938-0x231f),ZPB_TEXT_SIZE_BYTES)
-;text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>(0xaa5+1922-0x1225))
-{memset(&atRes->text,(0x13c3+4435-0x2516),ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->
-text,text+(0x1a02+1555-0x2013),strlen(text)-(0x37a+6113-0x1b59));}}pbRecord.pbId
-=-(0xc72+220-0xd4d);pbRecord.pbIndex=(SINT32)atRes->index;strncpy(pbRecord.name,
-atRes->text,sizeof(pbRecord.name)-(0x200+4659-0x1432));strncpy(pbRecord.
-mobilNumber,atRes->number1,sizeof(pbRecord.mobilNumber)-(0x1511+3881-0x2439));
+(0x248+3508-0xffc))return;memset(&text,(0x1e31+482-0x2013),ZPB_TEXT_SIZE_BYTES);
+text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>(0x1e55+1017-0x224c))
+{memset(&atRes->text,(0x10a3+577-0x12e4),ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->
+text,text+(0xe4a+5-0xe4d),strlen(text)-(0xd5c+5293-0x2207));}}pbRecord.pbId=-
+(0x21+9636-0x25c4);pbRecord.pbIndex=(SINT32)atRes->index;strncpy(pbRecord.name,
+atRes->text,sizeof(pbRecord.name)-(0x13d1+4318-0x24ae));strncpy(pbRecord.
+mobilNumber,atRes->number1,sizeof(pbRecord.mobilNumber)-(0x1de5+808-0x210c));
strncpy(pbRecord.officeNumber,atRes->number2,sizeof(pbRecord.officeNumber)-
-(0x803+80-0x852));strncpy(pbRecord.homeNumber,atRes->number3,sizeof(pbRecord.
-homeNumber)-(0x152c+2341-0x1e50));strncpy(pbRecord.email,atRes->email,sizeof(
-pbRecord.email)-(0x1d0+2468-0xb73));pbRecord.pbLocation=ZPB_LOCATION_USIM;(VOID)
-atPb_LoadARecToPbmTable(&pbRecord);}VOID atPb_SetDelStatusMultOrAll(){if(
-g_zPb_DelStatusUsim.dealFailNum>(0x118a+1142-0x1600)){if(g_zPb_DelStatusUsim.
-dealSuccNum>(0x6a0+2010-0xe7a)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
+(0x1836+394-0x19bf));strncpy(pbRecord.homeNumber,atRes->number3,sizeof(pbRecord.
+homeNumber)-(0x49a+3361-0x11ba));strncpy(pbRecord.email,atRes->email,sizeof(
+pbRecord.email)-(0x17ba+3775-0x2678));pbRecord.pbLocation=ZPB_LOCATION_USIM;(
+VOID)atPb_LoadARecToPbmTable(&pbRecord);}VOID atPb_SetDelStatusMultOrAll(){if(
+g_zPb_DelStatusUsim.dealFailNum>(0xb4f+1521-0x1140)){if(g_zPb_DelStatusUsim.
+dealSuccNum>(0x42c+4904-0x1754)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
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 (0x1bf5+760-0x1eed)
+#if (0x892+7701-0x26a7)
VOID atPb_RecvScpbwAddErr(UINT8*pErrCode){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
-ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x55+7247-0x1ca2))
-==(0xa1+7468-0x1dcd))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73");
+ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x6df+573-0x91a))==
+(0x95c+479-0xb3b))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73");
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,84 @@
ZPB_NEW_ERROR);printf(
"\x70\x62\x3a\x52\x65\x63\x76\x20\x41\x74\x20\x53\x63\x70\x62\x77\x20\x6d\x6f\x64\x69\x66\x79\x20\x65\x72\x72\x2e" "\n"
);}VOID pb_AsctoHex(UINT16*pcHex,SINT32 iDstLen,UINT8 const*pcASC,SINT32 iSrcLen
-){UINT32 iOddOrEven=(0x37d+7257-0x1fd6);UINT8 iTemp=(0x705+4796-0x19c1);SINT32 i
-=(0x622+2407-0xf89);if((NULL==pcHex)||(NULL==pcASC)||((0x437+8416-0x2517)==
-iDstLen)||(iDstLen<(iSrcLen/(0x207+885-0x57a)+(0x20f+3878-0x1134)))){return;}for
-(i=(0xd09+1202-0x11bb);i<iSrcLen;i++){if(iOddOrEven%(0x1674+2360-0x1faa)==
-(0xe11+2316-0x171d)){iTemp=*(pcASC+i);if((iTemp>=((char)(0x194+8798-0x23c2)))&&(
-iTemp<=((char)(0x1c79+1890-0x23a2)))){*(pcHex+i/(0x74f+766-0xa4b))|=(UINT8)(
-iTemp-(0x6ef+5808-0x1d6f))<<(0x1453+2723-0x1ef2);}else{*(pcHex+i/
-(0xcd0+3718-0x1b54))|=(UINT8)(iTemp-(0x5cb+1290-0xa9e))<<(0x16d9+2928-0x2245);}}
-else{iTemp=*(pcASC+i);if((iTemp>=((char)(0x5e2+7150-0x21a0)))&&(iTemp<=
-((char)(0x875+4688-0x1a8c)))){*(pcHex+i/(0xe7b+1689-0x1512))|=iTemp-
-(0x19c1+1484-0x1f5d);}else{*(pcHex+i/(0x2224+1218-0x26e4))|=iTemp-
-(0x13a+3878-0x1029);}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,
-SINT32 iLength){int iRetVal=(0xa33+576-0xc72);char cTemp;int i=
-(0x1666+127-0x16e5);if(NULL==psUcs2){return-(0xd31+3159-0x1987);}for(i=
-(0x1d0+8737-0x23f1);i<iLength;i++){if((0x1308+1522-0x17fa)>psUcs2[i]){switch(
-psUcs2[i]){case(0x1edb+1892-0x2633):case(0xfd6+1306-0x1495):case
-(0xae6+784-0xd9a):case(0x5ec+3940-0x14f3):case(0x1adf+3067-0x267c):case
-(0xcc+6530-0x19d3):case(0x49b+6543-0x1dae):case(0x1c5c+2290-0x24d1):case
-(0x12a8+2347-0x1b55):case(0x6d2+1084-0xa6a):case(0x896+3310-0x1564):{break;}
+){UINT32 iOddOrEven=(0x1425+208-0x14f5);UINT8 iTemp=(0xd54+2042-0x154e);SINT32 i
+=(0xfe8+4479-0x2167);if((NULL==pcHex)||(NULL==pcASC)||((0xff6+3323-0x1cf1)==
+iDstLen)||(iDstLen<(iSrcLen/(0x1802+2564-0x2204)+(0x155f+3105-0x217f)))){return;
+}for(i=(0x1061+5172-0x2495);i<iSrcLen;i++){if(iOddOrEven%(0x91+977-0x460)==
+(0xdf+1365-0x634)){iTemp=*(pcASC+i);if((iTemp>=((char)(0x1806+2428-0x2152)))&&(
+iTemp<=((char)(0x22a7+1014-0x2664)))){*(pcHex+i/(0x2082+677-0x2325))|=(UINT8)(
+iTemp-(0x2079+212-0x211d))<<(0x1cc+8497-0x22f9);}else{*(pcHex+i/
+(0x20a2+1557-0x26b5))|=(UINT8)(iTemp-(0x8bb+495-0xa73))<<(0x912+1898-0x1078);}}
+else{iTemp=*(pcASC+i);if((iTemp>=((char)(0x6c2+7861-0x2547)))&&(iTemp<=
+((char)(0x1bc9+207-0x1c5f)))){*(pcHex+i/(0x15a6+4223-0x2623))|=iTemp-
+(0xd78+3008-0x1908);}else{*(pcHex+i/(0x6a0+7854-0x254c))|=iTemp-
+(0x6a4+1825-0xd8e);}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,
+SINT32 iLength){int iRetVal=(0xe0f+3784-0x1cd6);char cTemp;int i=
+(0xe3+5451-0x162e);if(NULL==psUcs2){return-(0x1a11+3265-0x26d1);}for(i=
+(0x1762+921-0x1afb);i<iLength;i++){if((0x1d96+2140-0x24f2)>psUcs2[i]){switch(
+psUcs2[i]){case(0x17ca+1695-0x1e5d):case(0x855+3593-0x1603):case
+(0x8f3+5910-0x1fad):case(0x1243+1103-0x1635):case(0xf14+3554-0x1c98):case
+(0x14c3+4057-0x2421):case(0x1587+1967-0x1cba):case(0x143f+1964-0x1b6e):case
+(0x26f4+93-0x26d3):case(0x102a+232-0x106e):case(0x12ef+561-0x1500):{break;}
default:{cTemp=(char)G_ZPB_NEWUCS2TOGSM[psUcs2[i]];if(ZPB_NON_GSM==cTemp){
-iRetVal=(0x126f+1487-0x183e);}break;}}}else{switch(psUcs2[i]){case
-(0x25da+1223-0x270d):case(0x131c+4652-0x21a2):case(0xaf7+3060-0x1358):case
-(0x101b+6209-0x24c1):case(0x1977+1208-0x1a86):case(0x744+6398-0x1ca2):case
-(0x1584+567-0x13f3):case(0x6c7+4345-0x141d):case(0x602+2516-0xc1e):case
-(0x2646+780-0x25b4):{break;}default:{iRetVal=(0x2fc+7520-0x205c);break;}}}if(
-(0xd77+3359-0x1a96)==iRetVal){break;}}return iRetVal;}static UINT8
+iRetVal=(0xb47+967-0xf0e);}break;}}}else{switch(psUcs2[i]){case
+(0x148f+2239-0x19ba):case(0xb8b+2309-0x10ea):case(0x1870+3342-0x21eb):case
+(0x5b9+748-0x50a):case(0x855+4837-0x1791):case(0xa90+4787-0x19a3):case
+(0x18a9+4411-0x261c):case(0xc7d+649-0xb63):case(0x12b4+2419-0x186f):case
+(0x1a1a+3007-0x223b):{break;}default:{iRetVal=(0xa6b+6591-0x242a);break;}}}if(
+(0x1bb7+2176-0x2437)==iRetVal){break;}}return iRetVal;}static UINT8
atPb_EncodeNameToUcs2(char*pbDst,UINT32 iDstLen,char const*pbSrc){UINT16 acHex[
-(0x212+1794-0x814)]={(0x198+2311-0xa9f)};SINT32 srclen=(0x72b+4490-0x18b5);
-SINT32 rest=(0xf50+2406-0x18b6);assert(pbDst!=NULL&&pbSrc!=NULL);srclen=(SINT32)
+(0x145c+3130-0x1f96)]={(0xdc8+3054-0x19b6)};SINT32 srclen=(0x762+6438-0x2088);
+SINT32 rest=(0x125+5260-0x15b1);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,(0x1ac+8395-0x2177),(UINT8*)pbSrc,srclen);rest=
-atPb_IfUcs2IsSMS7(acHex,srclen/(0x7a4+5338-0x1c7a));if(rest==(0x403+2160-0xc72))
-{return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest==(0x920+7201-0x2541))
-{if(strlen(pbSrc)+(0x1f2b+1431-0x24c0)<iDstLen){memcpy(pbDst,"\x38\x30",
-(0x25b+8290-0x22bb));memcpy(pbDst+(0x8c2+1823-0xfdf),pbSrc,srclen);return
+,pbSrc,srclen);pb_AsctoHex(acHex,(0x32f+6583-0x1be6),(UINT8*)pbSrc,srclen);rest=
+atPb_IfUcs2IsSMS7(acHex,srclen/(0x14a0+1098-0x18e6));if(rest==(0xe21+855-0x1177)
+){return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest==(0x397+8147-0x236a)
+){if(strlen(pbSrc)+(0x46c+1294-0x978)<iDstLen){memcpy(pbDst,"\x38\x30",
+(0x613+4601-0x180a));memcpy(pbDst+(0x13df+40-0x1405),pbSrc,srclen);return
ZUFI_SUCC;}}return ZUFI_FAIL;}SINT32 atPb_FindIdleIndex(T_zPb_WebContact const*
-pbRecv,BOOL pbNewFlag){SINT32 count=(0x20d3+287-0x21f1);SINT32 total=
-(0x1b6b+363-0x1cd6);SINT32*IndexType=NULL;if((NULL==pbRecv)){slog(PB_PRINT,
+pbRecv,BOOL pbNewFlag){SINT32 count=(0x1094+3499-0x1e3e);SINT32 total=
+(0x1a2b+126-0x1aa9);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-(0xd58+3256-0x1a0f);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv->
-pbLocation){total=g_zPb_SimIndex[(0x1f85+505-0x217e)];IndexType=g_zPb_SimIndex;}
-else if(ZPB_LOCATION_AP==pbRecv->pbLocation){total=g_zPb_ApIndex[
-(0x9c8+2159-0x1237)];IndexType=g_zPb_ApIndex;}for(;count<=total;count++){if((
-NULL!=IndexType)&&(IndexType[count]==PBM_ERROR_NOT_FOUND)){break;}}if(count>
-total){slog(PB_PRINT,SLOG_ERR,
+);return-(0x2f3+5060-0x16b6);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv->
+pbLocation){total=g_zPb_SimIndex[(0x1d55+2242-0x2617)];IndexType=g_zPb_SimIndex;
+}else if(ZPB_LOCATION_AP==pbRecv->pbLocation){total=g_zPb_ApIndex[
+(0xe7c+285-0xf99)];IndexType=g_zPb_ApIndex;}for(;count<=total;count++){if((NULL
+!=IndexType)&&(IndexType[count]==PBM_ERROR_NOT_FOUND)){break;}}if(count>total){
+slog(PB_PRINT,SLOG_ERR,
"\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-(0x1950+1204-0x1e03);}slog(PB_PRINT,SLOG_DEBUG,
+,count);return-(0x133a+4329-0x2422);}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=(0x2d4+1204-0x788);SINT32 i=
-(0x811+3085-0x141e);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0x1df3+2187-0x267e)};CHAR
-str[(0x76d+360-0x8d2)]={(0x136+56-0x16e)};SINT32 length=(0x86b+3312-0x155b);
-length=atPb_String2Bytes(pSrc,buf,len);for(i=(0x1394+1582-0x19c2);i<length;i+=
-(0x340+2645-0xd93)){if(buf[i]!=(0x331+8176-0x2321)||buf[i+(0x1867+1759-0x1f45)]>
-(0xaa+7156-0x1c1f)){return FALSE;}pDst[j++]=buf[i+(0x1119+3832-0x2010)];}return
-TRUE;}VOID atWeb_AddOrModOnePbUsim(T_zPb_WebContact*pWebPbContact,BOOL pbNewFlag
-,sem_t semId){int atRes=(0x344+49-0x375);CHAR pbName[ZPB_TEXT_SIZE_BYTES+
-(0x451+2463-0xded)]={(0x44+5014-0x13da)};CHAR buf_src[ZPB_TEXT_SIZE_BYTES+
-(0x100a+2182-0x188d)]={(0xf8+7162-0x1cf2)};CHAR buf_dest[ZPB_TEXT_SIZE_BYTES+
-(0x1c0c+2626-0x264b)]={(0x5c2+2769-0x1093)};T_zPb_ScpbwParam scpbwParam={
-(0xc3d+2471-0x15e4)};int len=(0x1238+4794-0x24f2);atPb_WebRecodeShow(
+CHAR*pSrc,CHAR*pDst,SINT32 len){SINT32 j=(0x1b31+765-0x1e2e);SINT32 i=
+(0x1777+293-0x189c);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0x275+1527-0x86c)};CHAR str[
+(0x50f+5889-0x1c0d)]={(0x2e3+6739-0x1d36)};SINT32 length=(0x1d99+954-0x2153);
+length=atPb_String2Bytes(pSrc,buf,len);for(i=(0xeb7+2091-0x16e2);i<length;i+=
+(0x10e2+4173-0x212d)){if(buf[i]!=(0x177+5717-0x17cc)||buf[i+(0x43b+8485-0x255f)]
+>(0x14d3+2310-0x1d5a)){return FALSE;}pDst[j++]=buf[i+(0x512+7243-0x215c)];}
+return TRUE;}VOID atWeb_AddOrModOnePbUsim(T_zPb_WebContact*pWebPbContact,BOOL
+pbNewFlag,sem_t semId){int atRes=(0x7fa+5174-0x1c30);CHAR pbName[
+ZPB_TEXT_SIZE_BYTES+(0x423+914-0x7b2)]={(0x1422+4649-0x264b)};CHAR buf_src[
+ZPB_TEXT_SIZE_BYTES+(0x16c1+896-0x1a3e)]={(0x2031+1643-0x269c)};CHAR buf_dest[
+ZPB_TEXT_SIZE_BYTES+(0xaad+5241-0x1f23)]={(0xf3a+5625-0x2533)};T_zPb_ScpbwParam
+scpbwParam={(0x208+4189-0x1265)};int len=(0xb60+6529-0x24e1);atPb_WebRecodeShow(
pWebPbContact);if(atPb_GetASCII(pWebPbContact->name,pbName,strlen(pWebPbContact
-->name))){scpbwParam.coding=(0x8cd+4335-0x19bc);}else{len=atPb_String2Bytes(
+->name))){scpbwParam.coding=(0xf6+746-0x3e0);}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=(0xbe3+1023-0xfe1);}scpbwParam.pbIndex=pWebPbContact->
+,len);scpbwParam.coding=(0x2c+3103-0xc4a);}scpbwParam.pbIndex=pWebPbContact->
pbIndex;strncpy(scpbwParam.name,pbName,sizeof(scpbwParam.name)-
-(0x15a1+1030-0x19a6));strncpy(scpbwParam.mobilNumber,pWebPbContact->mobilNumber,
-sizeof(scpbwParam.mobilNumber)-(0xc04+1530-0x11fd));strncpy(scpbwParam.
+(0x15fb+3012-0x21be));strncpy(scpbwParam.mobilNumber,pWebPbContact->mobilNumber,
+sizeof(scpbwParam.mobilNumber)-(0x1bb+9014-0x24f0));strncpy(scpbwParam.
officeNumber,pWebPbContact->officeNumber,sizeof(scpbwParam.officeNumber)-
-(0x162a+982-0x19ff));strncpy(scpbwParam.homeNumber,pWebPbContact->homeNumber,
-sizeof(scpbwParam.homeNumber)-(0x1eb8+902-0x223d));strncpy(scpbwParam.email,
-pWebPbContact->email,sizeof(scpbwParam.email)-(0x1dd4+182-0x1e89));
+(0x1793+570-0x19cc));strncpy(scpbwParam.homeNumber,pWebPbContact->homeNumber,
+sizeof(scpbwParam.homeNumber)-(0x14a6+2484-0x1e59));strncpy(scpbwParam.email,
+pWebPbContact->email,sizeof(scpbwParam.email)-(0x4ac+450-0x66d));
ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,MSG_CMD_ADD_MODIFY_PB_REQ,sizeof(
-T_zPb_ScpbwParam),(unsigned char*)&scpbwParam,(0x475+2239-0xd34));sem_wait(&
-g_Pb_sem_id);if(g_PbOptRsp.result!=(0x532+7211-0x215c)){(VOID)sc_cfg_set(
+T_zPb_ScpbwParam),(unsigned char*)&scpbwParam,(0x9c0+3888-0x18f0));sem_wait(&
+g_Pb_sem_id);if(g_PbOptRsp.result!=(0x879+6348-0x2144)){(VOID)sc_cfg_set(
ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);if(TRUE==pbNewFlag){printf(
"\x70\x62\x3a\x61\x64\x64\x20\x53\x63\x70\x62\x77\x20\x65\x72\x72\x6f\x72\x2e" "\n"
);}else{printf(
@@ -408,16 +408,16 @@
);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);printf(
"\x70\x62\x3a\x57\x72\x69\x74\x65\x43\x6f\x6e\x74\x61\x63\x74\x54\x6f\x50\x62\x6d\x54\x61\x62\x6c\x65\x20\x65\x72\x72\x6f\x72\x2e" "\n"
);}}VOID atWeb_AddOnePb(T_zPb_WebContact*webPbContact,sem_t semId){SINT32
-idleIndex=(0x1540+298-0x1669);T_zPb_Header pbHeader={(0x8bb+385-0xa3c)};BOOL
-pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0xca6+3738-0x1b40)};CHAR ptFlag[
-(0x3a3+438-0x545)]={(0x90b+1663-0xf8a)};printf(
+idleIndex=(0x91b+2908-0x1476);T_zPb_Header pbHeader={(0x69b+1158-0xb21)};BOOL
+pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0xceb+1031-0x10f2)};CHAR ptFlag[
+(0x1c7d+1083-0x20a4)]={(0x9f4+1789-0x10f1)};printf(
"\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(-(0xe13+5243-0x228d)==webPbContact->pbId){slog(PB_PRINT,
+,webPbContact->pbId);if(-(0x38c+392-0x513)==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!=-(0xa9d+7041-0x261d)){webPbContact->pbIndex=idleIndex;
+,idleIndex);if(idleIndex!=-(0x1851+402-0x19e2)){webPbContact->pbIndex=idleIndex;
}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);printf(
"\x5b\x50\x42\x5d\x20\x6d\x65\x6d\x6f\x72\x79\x20\x69\x73\x20\x66\x75\x6c\x6c\x2c\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x61\x64\x64\x20\x72\x65\x63\x6f\x64\x65\x20\x61\x6e\x79\x20\x6d\x6f\x72\x65\x2e" "\n"
);return;}}else{printf(
@@ -436,28 +436,28 @@
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_LOCATION_IS_NULL);}printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x50\x62\x20\x64\x65\x6c\x5f\x69\x64\x3d\x25\x64\x2e" "\n"
,webPbContact->del_id);sc_cfg_get(ZPB_NV_WRITE_FLAG,ptFlag,sizeof(ptFlag));if(
-(0xc5c+4189-0x1cb9)==strcmp("\x30",ptFlag)&&-(0xb8a+1665-0x120a)!=webPbContact->
-del_id){delRecord.delId[(0x1144+783-0x1453)]=webPbContact->del_id;atWeb_DelOnepb
-(&delRecord,semId);}}VOID atWeb_DelOnepb(T_zPb_DelInfo*delRecord,sem_t semId){
-CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x892+7263-0x24f1)};int atRes=
-(0x98+6542-0x1a26);SINT32 delTime=(0x50d+8564-0x2681);
+(0x1b9c+2733-0x2649)==strcmp("\x30",ptFlag)&&-(0x6e0+3562-0x14c9)!=webPbContact
+->del_id){delRecord.delId[(0x18f+3231-0xe2e)]=webPbContact->del_id;
+atWeb_DelOnepb(&delRecord,semId);}}VOID atWeb_DelOnepb(T_zPb_DelInfo*delRecord,
+sem_t semId){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0xdb6+1526-0x13ac)};int atRes=
+(0x142a+1883-0x1b85);SINT32 delTime=(0x1eff+83-0x1f52);
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[(0x1dbc+509-0x1fb9)],delRecord->delLocation);if(
+,delRecord->delIndex[(0x3bd+2941-0xf3a)],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[(0xad3+5001-0x1e2a)]={(0x996+2401-0x12f7)};
+delRecord->delLocation){CHAR pbMax[(0x15f+8205-0x213a)]={(0x91c+529-0xb2d)};
sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));if((delRecord->delIndex[
-(0x6ab+6601-0x2074)]>=(0x15dc+3485-0x2378))&&(delRecord->delIndex[
-(0x1784+3609-0x259d)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
+(0x5e3+4361-0x16ec)]>=(0x101c+5269-0x24b0))&&(delRecord->delIndex[
+(0x2017+1518-0x2605)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
MODULE_ID_AT_CTL,MSG_CMD_DELETE_PB_REQ,sizeof(int),(unsigned char*)&delRecord->
-delIndex[(0xda1+5573-0x2366)],(0x533+1868-0xc7f));sem_wait(&g_Pb_sem_id);if(
-g_PbOptRsp.result!=(0x1dc+554-0x405)){sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR
-);}sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}if(ZPB_DB_OK==
+delIndex[(0x103+7432-0x1e0b)],(0x91b+2475-0x12c6));sem_wait(&g_Pb_sem_id);if(
+g_PbOptRsp.result!=(0x717+3133-0x1353)){sc_cfg_set(ZPB_NV_WRITE_FLAG,
+ZPB_DEL_ERROR);}sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}if(ZPB_DB_OK==
atPb_DelARecFromPbmTable(delRecord,delTime)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
ZPB_OPERATE_SUC);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x44\x65\x6c\x4f\x6e\x65\x70\x62\x2d\x2d\x64\x65\x6c\x20\x53\x49\x4d\x20\x73\x75\x63\x63\x65\x73\x73" "\n"
@@ -466,9 +466,9 @@
"\x70\x62\x3a\x64\x65\x6c\x5f\x61\x5f\x70\x62\x6d\x5f\x72\x65\x63\x6f\x72\x64\x3a\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x69\x73\x20\x4e\x55\x4c\x4c" "\n"
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_LOCATION_IS_NULL);}}VOID
atWeb_DelMultPb(T_zPb_DelInfo*delRecord,sem_t semId){CHAR errCode[
-ZSVR_AT_RES_CODE_LEN]={(0x14e2+2471-0x1e89)};int atRes=(0x165c+1296-0x1b6c);
-SINT32 delCount=(0x166a+1347-0x1bad);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
-g_zPb_DelStatusUsim,(0x49d+7045-0x2022),sizeof(T_zPb_DelStatusMultiOrAll));
+ZSVR_AT_RES_CODE_LEN]={(0x18c0+2998-0x2476)};int atRes=(0x1cda+284-0x1df6);
+SINT32 delCount=(0xc43+716-0xf0f);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
+g_zPb_DelStatusUsim,(0x657+6498-0x1fb9),sizeof(T_zPb_DelStatusMultiOrAll));
g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_MULTI_RECORD_USIM;for(;delCount<delRecord->
delTotal;delCount++){slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x33\x3a\x64\x65\x6c\x49\x64\x5b\x25\x64\x5d\x3d\x25\x64\x2c\x64\x65\x6c\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x5b\x25\x64\x5d\x3d\x25\x64" "\n"
@@ -479,14 +479,14 @@
"\x70\x62\x3a\x70\x62\x6d\x3a\x72\x65\x6d\x6f\x76\x65\x20\x74\x68\x65\x20\x69\x28\x25\x64\x29\x20\x72\x65\x63\x20\x66\x72\x6f\x6d\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65\x20\x66\x61\x69\x6c\x65\x64" "\n"
,delCount);g_zPb_DelStatusUsim.dealFailNum++;continue;}g_zPb_DelStatusUsim.
dealSuccNum++;}else if(ZPB_LOCATION_USIM==delRecord->delLocation){CHAR pbMax[
-(0xe57+5566-0x23e3)]={(0xae5+822-0xe1b)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,
-sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0x59+6303-0x18f7))&&(
+(0x7db+7791-0x2618)]={(0x1a4a+1025-0x1e4b)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax
+,sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0x1cc7+1143-0x213d))&&(
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]
-,(0x13d+5998-0x18ab));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0x17c4+1509-0x1da8)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+,(0x830+5695-0x1e6f));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0x49c+1374-0x9f9)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);}else{g_zPb_DelStatusUsim.dealSuccNum++;
sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}}else{continue;}(VOID)
atPb_DelSimRecFromPbTable(delRecord->delIndex[delCount]);}else{slog(PB_PRINT,
@@ -494,14 +494,14 @@
"\x70\x62\x3a\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x69\x73\x20\x4e\x55\x4c\x4c" "\n"
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_LOCATION_IS_NULL);}}
atPb_SetDelStatusMultOrAll();}T_zPb_DbResult atPb_DelRecByGroup(VOID){
-T_zPb_DbResult result=ZPB_DB_OK;T_zPb_ApIndex index={(0x99f+529-0xbb0)};SINT32 i
-=(0x1149+4860-0x2444);result=atPb_DelRecFromPbmTableByGroup(&index);if(ZPB_DB_OK
-!=result){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);return result;}(VOID
-)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(i=(0x75c+4075-0x1746);i<=
-ZPB_AP_MAX_RECORD;i++){if((0x158f+615-0x17f6)!=index.apIndex[i]){g_zPb_ApIndex[(
-index.apIndex[i])]=PBM_ERROR_NOT_FOUND;}}return result;}VOID
-atPb_DelAllRecsSimDb(VOID){CHAR sql[ZPB_MAX_BYTES_DB]={(0xded+2955-0x1978)};
-snprintf(sql,sizeof(sql)-(0x41b+4705-0x167b),
+T_zPb_DbResult result=ZPB_DB_OK;T_zPb_ApIndex index={(0x1718+3313-0x2409)};
+SINT32 i=(0x3da+1438-0x977);result=atPb_DelRecFromPbmTableByGroup(&index);if(
+ZPB_DB_OK!=result){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);return
+result;}(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(i=
+(0x4b9+6538-0x1e42);i<=ZPB_AP_MAX_RECORD;i++){if((0x1591+1065-0x19ba)!=index.
+apIndex[i]){g_zPb_ApIndex[(index.apIndex[i])]=PBM_ERROR_NOT_FOUND;}}return
+result;}VOID atPb_DelAllRecsSimDb(VOID){CHAR sql[ZPB_MAX_BYTES_DB]={
+(0x18b0+3672-0x2708)};snprintf(sql,sizeof(sql)-(0x15a2+2589-0x1fbe),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_USIM);if(ZPB_DB_OK==atPb_ExecDbSql(sql,NULL,NULL)
){atPb_ClearSimPbmIndexArray();if(ZPB_DB_OK!=atPb_ExecDbSql(
@@ -510,28 +510,28 @@
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);return;}(VOID)sc_cfg_set(
ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
ZPB_DEL_ERROR);}}VOID atPb_DelAllRecsSim(T_zPb_DelInfo*pdelRecord,sem_t semId){
-CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x9da+1430-0xf70)};int atRes=
-(0x532+1319-0xa59);UINT32 i=(0x193c+1577-0x1f65);CHAR sql[ZPB_MAX_BYTES_DB]={
-(0xb7c+1222-0x1042)};UINT32 count=(0x1185+4400-0x22b5);if(pdelRecord!=NULL){
-memset(&g_zPb_DelStatusUsim,(0xb8b+4545-0x1d4c),sizeof(T_zPb_DelStatusMultiOrAll
+CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0xdc0+5028-0x2164)};int atRes=
+(0x189+2922-0xcf3);UINT32 i=(0x1d2+759-0x4c9);CHAR sql[ZPB_MAX_BYTES_DB]={
+(0x1727+402-0x18b9)};UINT32 count=(0x9c9+7457-0x26ea);if(pdelRecord!=NULL){
+memset(&g_zPb_DelStatusUsim,(0x1506+264-0x160e),sizeof(T_zPb_DelStatusMultiOrAll
));g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_ALL_RECORD_USIM;snprintf(sql,sizeof(sql)
--(0xee6+2170-0x175f),
+-(0xc37+6276-0x24ba),
"\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((0x6d+8820-0x22e1)<count){CHAR pbMin[
-(0x15cc+1636-0x1bfe)]={(0x1629+189-0x16e6)};CHAR pbMax[(0x1c30+781-0x1f0b)]={
-(0x10a4+151-0x113b)};UINT32 i_pbMin=(0x106+1745-0x7d7);UINT32 i_pbMax=
-(0x4da+5670-0x1b00);sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
+atPb_DbCountTableLineCb,&count);if((0xf28+5805-0x25d5)<count){CHAR pbMin[
+(0xd05+2535-0x16ba)]={(0x22f+5429-0x1764)};CHAR pbMax[(0x230c+127-0x2359)]={
+(0xaba+4070-0x1aa0)};UINT32 i_pbMin=(0xae4+6434-0x2406);UINT32 i_pbMax=
+(0x86c+5491-0x1ddf);sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
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,
-(0x16c0+3993-0x2659));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0x195d+3142-0x25a2)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+(0x4b5+296-0x5dd));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0x18c9+3168-0x2528)){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)-
-(0x859+1822-0xf76),
+(0x6b+6785-0x1aeb),
"\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 ade0ec0..ab5d7ac 100755
--- a/ap/app/zte_comm/sms/src/sms_code.c
+++ b/ap/app/zte_comm/sms/src/sms_code.c
@@ -6,665 +6,663 @@
#ifdef WIN32
#include <wchar.h>
#endif
-#define NON_GSM (0x493+2173-0xcf0)
+#define NON_GSM (0x1054+1424-0x15c4)
#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[(0x114+9341-0x2581)]={
-((char)(0xc6f+4393-0x1d68)),((char)(0x51f+7422-0x21ec)),
-((char)(0x110+8980-0x23f2)),((char)(0x45a+806-0x74d)),
-((char)(0xa59+2918-0x158b)),((char)(0x2a6+6845-0x1d2e)),
-((char)(0x7c0+3400-0x14d2)),((char)(0x150f+3932-0x2434)),
-((char)(0x3df+8116-0x235b)),((char)(0x17c+8634-0x22fd)),
-((char)(0x1732+548-0x1915)),((char)(0x5d+574-0x259)),
-((char)(0x13b8+4979-0x26e8)),((char)(0x147+5362-0x15f5)),
-((char)(0x3bb+1749-0xa4b)),((char)(0x185c+858-0x1b70))};extern SMS_PARAM
+const_header;char g_zUfiSms_DigAscMap[(0x198+8701-0x2385)]={
+((char)(0xef9+455-0x1090)),((char)(0x6f0+4557-0x188c)),
+((char)(0x1206+3922-0x2126)),((char)(0xa5d+7110-0x25f0)),
+((char)(0x16cb+2368-0x1fd7)),((char)(0xae6+2539-0x149c)),
+((char)(0x2052+1043-0x242f)),((char)(0x5b6+6013-0x1cfc)),
+((char)(0xa72+1313-0xf5b)),((char)(0xcc+7578-0x1e2d)),
+((char)(0x1e8+7797-0x201c)),((char)(0xb41+5572-0x20c3)),
+((char)(0xe8a+6122-0x2631)),((char)(0x15e3+2567-0x1fa6)),
+((char)(0x1dc8+1927-0x250a)),((char)(0x18b0+2238-0x2128))};extern SMS_PARAM
g_zUfiSms_SendingSms;extern UINT16 g_zUfiSms_IsLanguageShift;extern int
g_zUfiSms_Language;static int SerializeNumbers_sms(const char*pSrc,char*pDst,int
nSrcLength);const unsigned short g_zUfiSms_AsciiToGsmdefaultTable[]={
-((char)(0x14d8+2281-0x1da1)),((char)(0x65a+3162-0x1294)),
-((char)(0x14d0+4426-0x25fa)),((char)(0x18eb+2562-0x22cd)),
-((char)(0x359+4561-0x150a)),((char)(0x2105+1099-0x2530)),
-((char)(0x22dd+925-0x265a)),((char)(0x761+7701-0x2556)),
-((char)(0x185+2450-0xaf7)),((char)(0x336+4077-0x1303)),
-((char)(0x9f8+2377-0x1321)),((char)(0x1765+3868-0x2661)),
-((char)(0xec8+910-0x1236)),((char)(0x3af+2045-0xb8c)),
-((char)(0x19e7+2807-0x24be)),((char)(0x228+7595-0x1fb3)),
-((char)(0xceb+2592-0x16eb)),((char)(0x1391+1410-0x18f3)),
-((char)(0x1a20+1072-0x1e30)),((char)(0xa99+1693-0x1116)),
-((char)(0x21f+4459-0x136a)),((char)(0x509+335-0x638)),((char)(0xa27+1233-0xed8))
-,((char)(0xe9a+5332-0x234e)),((char)(0x1622+1452-0x1bae)),
-((char)(0x2275+850-0x25a7)),((char)(0x1f13+964-0x22b7)),
-((char)(0x3d2+8296-0x241a)),((char)(0x1603+1804-0x1cef)),
-((char)(0x919+1130-0xd63)),((char)(0x2016+169-0x209f)),
-((char)(0x1b9a+864-0x1eda)),((char)(0x13a7+3812-0x226b)),
-((char)(0x22f0+531-0x24e2)),(0x100a+2630-0x1a2e),((char)(0xe5b+2516-0x180c)),
-(0x1b12+1451-0x20bb),((char)(0x7b7+5499-0x1d0d)),((char)(0x93+5029-0x1412)),
-(0x1474+2092-0x1c79),((char)(0x669+2507-0x100c)),((char)(0xec2+2334-0x17b7)),
-((char)(0x145f+3786-0x22ff)),((char)(0x123a+1446-0x17b5)),
-((char)(0x789+2581-0x1172)),((char)(0x10c0+1644-0x16ff)),
-((char)(0x19da+1578-0x1fd6)),((char)(0x152b+3608-0x2314)),
-((char)(0xdbb+3564-0x1b77)),((char)(0x1d6c+2378-0x2685)),
-((char)(0x2e5+4599-0x14aa)),((char)(0xb8+1954-0x827)),
-((char)(0x212f+847-0x244a)),((char)(0xb49+4914-0x1e46)),
-((char)(0x11c+4337-0x11d7)),((char)(0x1960+2383-0x2278)),
-((char)(0x2529+174-0x259f)),((char)(0x1a55+2478-0x23ca)),
-((char)(0x84c+7501-0x255f)),((char)(0x53d+387-0x685)),((char)(0xc62+69-0xc6b)),
-((char)(0x857+5273-0x1cb3)),((char)(0x442+8417-0x24e5)),
-((char)(0x150+5670-0x1737)),(0xa29+2292-0x131d),((char)(0xaf2+756-0xda5)),
-((char)(0xa5+3851-0xf6e)),((char)(0x183a+924-0x1b93)),
-((char)(0x1a09+2339-0x22e8)),((char)(0x630+4996-0x196f)),
-((char)(0xccd+5293-0x2134)),((char)(0x2446+293-0x2524)),
-((char)(0xc9c+6677-0x2669)),((char)(0x188c+1563-0x1e5e)),
-((char)(0x12a+4748-0x136c)),((char)(0xccb+6522-0x25fa)),
-((char)(0xe72+474-0x1000)),((char)(0x1c62+2481-0x25c6)),
-((char)(0xc33+4757-0x1e7a)),((char)(0x128a+2354-0x1b6d)),
-((char)(0x1dd8+1018-0x2182)),((char)(0x179+4209-0x1199)),
-((char)(0x563+7944-0x2419)),((char)(0x1c36+2334-0x2501)),
-((char)(0x1edd+556-0x20b5)),((char)(0xe72+2071-0x1634)),
-((char)(0x32d+6186-0x1b01)),((char)(0x241+6843-0x1ca5)),
-((char)(0x1258+2991-0x1daf)),((char)(0x5e2+3277-0x1256)),
-((char)(0x1929+1726-0x1f8d)),(0x1f25+984-0x7c1),(0x1dd8+8978-0x25bb),6974,6932,
-(0x1445+4628-0x2648),((char)(0x159c+175-0x162b)),((char)(0x909+4896-0x1bc8)),
-((char)(0x169f+2121-0x1e86)),((char)(0x808+6190-0x1fd3)),
-((char)(0x780+6011-0x1e97)),((char)(0x728+7165-0x22c0)),
-((char)(0x10f3+3879-0x1fb4)),((char)(0x10bf+2093-0x1885)),
-((char)(0x2c7+3954-0x11d1)),((char)(0x1a9b+918-0x1dc8)),
-((char)(0x187b+3719-0x2698)),((char)(0x1d4f+1800-0x23ec)),
-((char)(0xae3+7218-0x26a9)),((char)(0x718+2901-0x1200)),
-((char)(0x31b+2996-0xe61)),((char)(0x18d7+725-0x1b3d)),((char)(0xb41+480-0xcb1))
-,((char)(0x4fc+6752-0x1eeb)),((char)(0x4e0+1174-0x904)),
-((char)(0x1557+385-0x1665)),((char)(0xa18+4054-0x197a)),
-((char)(0x181c+3083-0x23b2)),((char)(0xa39+5521-0x1f54)),
-((char)(0x1acf+1238-0x1f2e)),((char)(0x957+4720-0x1b4f)),
-((char)(0x2d0+7276-0x1ec3)),((char)(0x3df+4897-0x1686)),6952,6976,
-(0x22d9+4385-0x18d1),6973,((char)(0x87f+3501-0x160c)),
-((char)(0x1d3d+480-0x1efd)),((char)(0x12f6+471-0x14ad)),
-((char)(0xb81+2984-0x1709)),((char)(0x74a+8010-0x2674)),
-((char)(0x3e1+8805-0x2626)),((char)(0x57f+1238-0xa35)),((char)(0x575+799-0x874))
-,((char)(0x17ca+415-0x1949)),((char)(0xd5+399-0x244)),
-((char)(0xbb1+4804-0x1e55)),((char)(0xaab+7018-0x25f5)),
-((char)(0x30d+8750-0x251b)),((char)(0x182b+1771-0x1ef6)),
-((char)(0x15b8+4185-0x25f1)),((char)(0xc5c+2413-0x15a9)),
-((char)(0x5dd+5549-0x1b6a)),((char)(0x26c+6858-0x1d16)),
-((char)(0x1146+4976-0x2496)),((char)(0x47d+636-0x6d9)),
-((char)(0x252+7094-0x1de8)),((char)(0x1444+915-0x17b7)),
-((char)(0x7c4+7238-0x23ea)),((char)(0x1825+2438-0x218b)),
-((char)(0x264+8988-0x2560)),((char)(0x4cf+3707-0x132a)),
-((char)(0xfe4+4591-0x21b3)),((char)(0xd1d+5931-0x2428)),
-((char)(0x43c+6682-0x1e36)),((char)(0x22f0+721-0x25a1)),
-((char)(0xb12+4489-0x1c7b)),((char)(0x1ab+6015-0x190a)),
-((char)(0xd6d+3873-0x1c6e)),((char)(0x59b+4124-0x1597)),(0x97a+3097-0x1553),
-((char)(0xc25+2845-0x1722)),(0x855+2272-0x1134),(0xbca+1561-0x11bf),
-(0x705+2084-0xf26),((char)(0x28d+4408-0x13a5)),(0x1bba+1073-0x1f8c),
-((char)(0x134b+516-0x152f)),((char)(0x1c84+1715-0x2317)),
-((char)(0x5da+7808-0x243a)),((char)(0x10ba+5170-0x24cc)),
-((char)(0x15ff+3157-0x2234)),((char)(0x4f5+1542-0xadb)),
-((char)(0x8c2+238-0x990)),((char)(0x503+8173-0x24d0)),
-((char)(0x1316+569-0x152f)),((char)(0xa9b+1310-0xf99)),
-((char)(0x60c+5549-0x1b99)),((char)(0x145f+3594-0x2249)),
-((char)(0xb72+5213-0x1faf)),((char)(0x1ca5+121-0x1cfe)),
-((char)(0x1b06+1864-0x222e)),((char)(0x2233+161-0x22b4)),(0xf11+4461-0x2073),
-((char)(0x1e2+3640-0xffa)),((char)(0x130c+1509-0x18d1)),
-((char)(0xfc8+2942-0x1b26)),((char)(0x1c83+695-0x1f1a)),
-((char)(0x8b+8612-0x220f)),((char)(0x103a+5720-0x2672)),(0x911+7754-0x26fb),
-((char)(0xaf8+6236-0x2334)),((char)(0x1061+5359-0x2530)),
-((char)(0xc0b+590-0xe39)),((char)(0xfcf+45-0xfdc)),(0x1d44+168-0x1d91),
-(0x47c+2450-0xe00),(0x2002+1253-0x24cb),(0x724+253-0x818),
-((char)(0xb9f+3123-0x17b2)),(0x3d5+1362-0x908),((char)(0x1b2f+2006-0x22e5)),
-((char)(0x5b6+4627-0x17a9)),((char)(0x19eb+1509-0x1fb0)),
-((char)(0x136+9543-0x265d)),((char)(0x178c+123-0x17e7)),
-((char)(0x323+4723-0x1576)),((char)(0x973+2610-0x1385)),(0x199a+2241-0x21fe),
-((char)(0x13a8+2051-0x1b8b)),((char)(0x125c+4239-0x22cb)),
-((char)(0x172c+351-0x186b)),((char)(0xb60+2163-0x13b3)),(0x788+3358-0x144a),
-((char)(0x5cf+4137-0x15d8)),((char)(0xcb9+3864-0x1bb1)),
-((char)(0x11fb+479-0x13ba)),((char)(0xd00+3172-0x1944)),
-((char)(0x76c+7364-0x2410)),(0x127c+94-0x127c),((char)(0xe2+3497-0xe6b)),
-((char)(0x270+2823-0xd57)),(0x16d2+2162-0x1f26),(0x1c78+868-0x1f5d),
-((char)(0x12f0+1690-0x196a)),((char)(0x344+8771-0x2567)),
-((char)(0x113+955-0x4ae)),(0x14e5+3742-0x2308),(0x672+5798-0x1d09),
-(0xb63+6344-0x240e),((char)(0xa0d+496-0xbdd)),(0x77f+5167-0x1baa),
-(0xc40+6587-0x25f6),((char)(0xcda+1650-0x132c)),((char)(0xbd3+4988-0x1f2f)),
-(0xbef+1080-0x1020),((char)(0xe5+6577-0x1a76)),((char)(0x24a2+616-0x26ea)),
-((char)(0x134f+1790-0x1a2d)),((char)(0x3ef+8662-0x25a5)),(0xcd0+6036-0x23e7),
-(0x20a4+1195-0x2547),((char)(0xf17+2916-0x1a5b)),((char)(0x1ee3+548-0x20e7)),
-((char)(0x1024+204-0x10d0)),(0x1cf8+788-0x1f90),((char)(0x1729+3350-0x241f)),
-(0xd9d+462-0xf5f),(0x680+469-0x84f),((char)(0xa41+1165-0xeae)),
-((char)(0x1133+2540-0x1aff)),(0x9db+4291-0x1a20),((char)(0x353+2679-0xdaa)),
-((char)(0x1246+2799-0x1d15)),((char)(0x20b7+230-0x217d)),};const unsigned short
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0xf50+757-0x1243)]={{(0x408+2830-0xf0d)
-,(0x1ed6+102-0x1e55)},{(0x1f27+547-0x2140),(0xa3b+2556-0x142b)},{
-(0xf9+798-0x40a),(0x82a+3744-0x16bd)},{(0x16c9+1698-0x1d57),(0x6a8+563-0x87d)},{
-(0x10eb+1399-0x163a),(0x26b1+175-0x26e5)},{(0x15c6+1141-0x1a12),
-(0x339+1113-0x715)},{(0xe5a+561-0x105c),(0xbd8+2435-0x14ff)},{
-(0xb33+6198-0x232d),(0x188c+2018-0x2013)},{(0xf00+3288-0x1b9b),
-(0x4eb+1248-0x94d)},{(0xd3+2251-0x960),(0x13c+7954-0x1ff1)},{(0x637+7866-0x24b1)
-,(0x1ee7+675-0x210e)},{(0x541+5451-0x1a4b),(0x589+6214-0x1d0e)},{
-(0xa5b+6370-0x22f4),(0x380+221-0x390)},{(0x1a2+1269-0x648),(0x12df+4323-0x22ef)}
-,{(0x5ac+7792-0x23c7),(0x5bc+4610-0x16e4)},{(0x2074+1239-0x24ea),
-(0x8c6+6214-0x202b)},{(0x16af+1736-0x1d12),8364},{(0x1596+4546-0x26ef),
-(0x1078+2096-0x17bb)},{(0x335+4884-0x15da),(0x4f8+5545-0x19ae)},{
-(0x5c8+5768-0x1bdb),(0xf70+4794-0x2130)},};const unsigned short
-Ucs2_To_Gsm7_SPANISH_Table_UCS[][(0xed0+2133-0x1723)]={{(0x2b4+4051-0x1277),
-(0x190d+3537-0x234a)},{(0xc6c+1943-0x13f1),(0xeaa+3272-0x17cc)},{
-(0x222+5346-0x16f1),(0x408+2332-0x991)},{(0xfdc+430-0x1176),(0x242f+851-0x23e7)}
-,{(0x2034+38-0x2045),(0x86f+5553-0x1a77)},{(0xbc+6472-0x19ee),
-(0x1d49+960-0x1d69)},{(0x81d+4864-0x1b06),(0xaec+7799-0x25bb)},{
-(0x14c0+1444-0x1a4c),(0x142c+4972-0x23f5)},{(0x889+3846-0x1776),
-(0xa05+2644-0x10c1)},{(0xa54+6396-0x2336),(0x10da+5751-0x23b3)},};const unsigned
- char Ucs2_To_Gsm7_SPANISH_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x345+1676-0x9c7),NON_GSM,NON_GSM,
-(0xbb+6361-0x1987),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+((char)(0x944+1896-0x108c)),((char)(0x13bf+2303-0x1c9e)),
+((char)(0x842+7666-0x2614)),((char)(0x15a6+4313-0x265f)),
+((char)(0x1011+2218-0x189b)),((char)(0xa7b+7145-0x2644)),
+((char)(0x1bc5+2520-0x257d)),((char)(0x2f3+4301-0x13a0)),
+((char)(0xdf8+2047-0x15d7)),((char)(0x3f6+695-0x68d)),
+((char)(0x63c+5061-0x19e1)),((char)(0xf72+19-0xf65)),
+((char)(0x1710+1949-0x1e8d)),((char)(0x1884+1915-0x1fdf)),
+((char)(0xa49+6666-0x2433)),((char)(0xda2+3597-0x1b8f)),
+((char)(0xe1d+2769-0x18ce)),((char)(0xa0b+5569-0x1fac)),
+((char)(0x1b3+7927-0x208a)),((char)(0x1b2d+2793-0x25f6)),
+((char)(0x879+3001-0x1412)),((char)(0x3db+27-0x3d6)),((char)(0x776+6087-0x1f1d))
+,((char)(0x12c2+1913-0x1a1b)),((char)(0x117a+5161-0x2583)),
+((char)(0xb1+8162-0x2073)),((char)(0xc96+489-0xe5f)),
+((char)(0x1018+1862-0x173e)),((char)(0x4c9+4215-0x1520)),
+((char)(0x325+2681-0xd7e)),((char)(0x1070+2374-0x1996)),
+((char)(0x9fc+4358-0x1ae2)),((char)(0x1c59+173-0x1ce6)),
+((char)(0x1995+1949-0x2111)),(0x1d6+8162-0x2196),((char)(0xb90+3266-0x182f)),
+(0x939+5554-0x1ee9),((char)(0x28b+3505-0x1017)),((char)(0x1279+4018-0x2205)),
+(0x5bb+3380-0x12c8),((char)(0x248+3603-0x1033)),((char)(0x12d3+265-0x13b3)),
+((char)(0x1160+3674-0x1f90)),((char)(0x14ba+495-0x167e)),
+((char)(0x33c+5195-0x175b)),((char)(0xf5f+3910-0x1e78)),
+((char)(0xbc1+5380-0x2097)),((char)(0x15d+4123-0x1149)),
+((char)(0x7f5+6899-0x22b8)),((char)(0x1f26+458-0x20bf)),
+((char)(0xa2+9622-0x2606)),((char)(0xa69+2260-0x130a)),
+((char)(0xbe8+4068-0x1b98)),((char)(0x9f2+5335-0x1e94)),
+((char)(0x801+7967-0x26ea)),((char)(0xc4f+3725-0x1aa5)),
+((char)(0x1504+933-0x1871)),((char)(0x175a+3646-0x255f)),
+((char)(0x49d+883-0x7d6)),((char)(0x14d6+255-0x159a)),((char)(0xfb6+86-0xfd0)),
+((char)(0xf4d+393-0x1099)),((char)(0x1f6+7840-0x2058)),
+((char)(0xfbc+1697-0x161e)),(0x2391+509-0x258e),((char)(0x6d+1751-0x703)),
+((char)(0xaca+486-0xc6e)),((char)(0x1b2+3349-0xe84)),((char)(0x4d5+7025-0x2002))
+,((char)(0xdc1+3086-0x198a)),((char)(0x9e1+7106-0x255d)),
+((char)(0x994+1979-0x1108)),((char)(0x1b92+2544-0x253a)),
+((char)(0x11a4+3141-0x1da0)),((char)(0x227+377-0x356)),
+((char)(0x208a+1474-0x2601)),((char)(0x14df+4187-0x24ee)),
+((char)(0x6ec+1521-0xc90)),((char)(0x217+36-0x1ed)),((char)(0xc60+4496-0x1da1)),
+((char)(0x782+4375-0x1849)),((char)(0x1375+851-0x1677)),
+((char)(0x133b+2566-0x1cef)),((char)(0xe8a+2676-0x18ab)),
+((char)(0x2002+144-0x203e)),((char)(0xd37+1408-0x1262)),
+((char)(0x19a+2882-0xc86)),((char)(0x646+1015-0x9e6)),
+((char)(0xe60+2009-0x15e1)),((char)(0x9c3+6509-0x22d7)),
+((char)(0x178f+92-0x1791)),6972,6959,6974,(0x2473+708-0xc23),(0x877+5353-0x1d4f)
+,((char)(0x1665+92-0x16a1)),((char)(0x18af+511-0x1a4d)),
+((char)(0xf53+2521-0x18ca)),((char)(0xf90+5744-0x259d)),
+((char)(0x1689+3050-0x220f)),((char)(0x414+3386-0x10e9)),
+((char)(0xa74+331-0xb59)),((char)(0x1cda+2198-0x2509)),
+((char)(0x190d+3465-0x262e)),((char)(0xb59+3083-0x16fb)),
+((char)(0x18a5+1390-0x1da9)),((char)(0x2cb+9115-0x25fb)),
+((char)(0xe82+2429-0x1793)),((char)(0xcbc+1888-0x13af)),
+((char)(0xd76+246-0xdfe)),((char)(0x1105+2783-0x1b75)),
+((char)(0xaf2+4813-0x1d4f)),((char)(0x77f+1092-0xb52)),
+((char)(0x121b+228-0x128d)),((char)(0x7e6+6169-0x1f8c)),
+((char)(0x1df4+1212-0x223c)),((char)(0x17f7+506-0x197c)),
+((char)(0x207c+1158-0x248c)),((char)(0x1ea+1596-0x7af)),
+((char)(0x90b+3083-0x149e)),((char)(0x1804+195-0x184e)),
+((char)(0xa11+4312-0x1a6f)),(0x1fd1+4096-0x14a9),(0x2255+1946-0xeaf),6953,
+(0x21e6+6972-0x21e5),((char)(0x1005+2073-0x17fe)),((char)(0x963+1156-0xdc7)),
+((char)(0x1640+2878-0x215e)),((char)(0x46+4701-0x1283)),
+((char)(0x1c14+1208-0x20ac)),((char)(0x1711+2352-0x2021)),
+((char)(0x13b+5534-0x16b9)),((char)(0x156a+1368-0x1aa2)),
+((char)(0xee2+5902-0x25d0)),((char)(0x205d+503-0x2234)),
+((char)(0xa94+3850-0x197e)),((char)(0xa4f+704-0xcef)),
+((char)(0x1728+1848-0x1e40)),((char)(0xa7f+5311-0x1f1e)),
+((char)(0x11e6+4173-0x2213)),((char)(0x50+5557-0x15e5)),
+((char)(0x108f+5744-0x26df)),((char)(0x5a0+3021-0x114d)),
+((char)(0x494+3055-0x1063)),((char)(0x2167+331-0x2292)),
+((char)(0x1d15+909-0x2082)),((char)(0x38+2020-0x7fc)),
+((char)(0x1ab2+980-0x1e66)),((char)(0x49f+6738-0x1ed1)),
+((char)(0x10dd+525-0x12ca)),((char)(0x306+8225-0x2307)),
+((char)(0xefa+2844-0x19f6)),((char)(0xb5f+4219-0x1bba)),
+((char)(0x624+3327-0x1303)),((char)(0x1e59+246-0x1f2f)),
+((char)(0x1d1+5011-0x1544)),((char)(0x1038+3071-0x1c17)),
+((char)(0x74c+7473-0x245d)),((char)(0x689+7309-0x22f6)),(0xd74+2441-0x16bd),
+((char)(0xd2a+923-0x10a5)),(0x1787+3643-0x25c1),(0xa0b+747-0xcd2),
+(0x689+3401-0x13cf),((char)(0x1604+2491-0x1f9f)),(0x576+69-0x55c),
+((char)(0xc29+5787-0x22a4)),((char)(0x4a7+7255-0x20de)),
+((char)(0x3c5+424-0x54d)),((char)(0xe80+705-0x1121)),((char)(0xa65+2086-0x126b))
+,((char)(0xdf3+3208-0x1a5b)),((char)(0x4c6+7637-0x227b)),
+((char)(0x4c1+4417-0x15e2)),((char)(0xba5+3141-0x17ca)),
+((char)(0x1537+1653-0x1b8c)),((char)(0x6df+1035-0xaca)),
+((char)(0x100a+342-0x1140)),((char)(0x462+3560-0x122a)),
+((char)(0x1460+958-0x17fe)),((char)(0x47+5572-0x15eb)),
+((char)(0x193+8931-0x2456)),(0x1598+2381-0x1eda),((char)(0x50d+7730-0x231f)),
+((char)(0x749+3785-0x15f2)),((char)(0x585+5584-0x1b35)),
+((char)(0x8c6+949-0xc5b)),((char)(0x5d4+7480-0x22ec)),
+((char)(0x1ad8+1868-0x2204)),(0xe02+111-0xe11),((char)(0xec7+4469-0x201c)),
+((char)(0x1112+3529-0x1ebb)),((char)(0x21d+7598-0x1fab)),
+((char)(0x1ee6+1288-0x23ce)),(0x12b2+946-0x1609),(0x1887+1852-0x1fb5),
+(0x1456+4097-0x243b),(0x345+7141-0x1f21),((char)(0x20c+657-0x47d)),
+(0x78d+7048-0x22f6),((char)(0x17a+6931-0x1c6d)),((char)(0xb8c+734-0xe4a)),
+((char)(0xfaa+4358-0x2090)),((char)(0x1e42+1781-0x2517)),
+((char)(0x51f+204-0x5cb)),((char)(0x8b4+4992-0x1c14)),
+((char)(0x1be0+2299-0x24bb)),(0x9fb+1651-0x1011),((char)(0x893+2631-0x12ba)),
+((char)(0x991+1857-0x10b2)),((char)(0x1266+459-0x1411)),
+((char)(0xc22+3529-0x19cb)),(0x532+3290-0x11b0),((char)(0x21a+6631-0x1be1)),
+((char)(0xf25+1142-0x137b)),((char)(0x350+4385-0x1451)),
+((char)(0x41a+8145-0x23cb)),((char)(0x1e12+2282-0x26dc)),(0x2f2+378-0x40e),
+((char)(0xd62+2208-0x15e2)),((char)(0x1417+1324-0x1923)),(0x4e0+8005-0x2407),
+(0x1844+3084-0x23d1),((char)(0xfc+9514-0x2606)),((char)(0x81+2910-0xbbf)),
+((char)(0xdb+95-0x11a)),(0x5fd+2525-0xf5f),(0x87a+3103-0x148a),
+(0x85c+6754-0x22a1),((char)(0xb50+279-0xc47)),(0x10b8+5018-0x244e),
+(0x5bd+2239-0xe77),((char)(0x821+5216-0x1c61)),((char)(0x18f+9330-0x25e1)),
+(0x15c2+954-0x1975),((char)(0x596+8364-0x2622)),((char)(0x179f+3266-0x2441)),
+((char)(0x3ab+2852-0xeaf)),((char)(0x22ac+1015-0x2683)),(0x409+5445-0x18d1),
+(0xb8a+3294-0x1860),((char)(0x3b2+664-0x62a)),((char)(0x165f+4259-0x26e2)),
+((char)(0x21cd+640-0x242d)),(0xdba+4697-0x1f97),((char)(0x3bb+7581-0x2138)),
+(0x12af+1603-0x18e6),(0x3d9+4353-0x14d4),((char)(0x1475+1683-0x1ae8)),
+((char)(0x218+906-0x582)),(0x117+4410-0x11d3),((char)(0x664+2002-0xe16)),
+((char)(0x1e39+891-0x2194)),((char)(0x5d4+3906-0x14f6)),};const unsigned short
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0x189f+1449-0x1e46)]={{
+(0x187b+2562-0x2274),(0x265+9533-0x26bb)},{(0x1226+3007-0x1ddb),
+(0x136+8562-0x229c)},{(0x244+5365-0x172c),(0x2bf+3653-0x10f7)},{
+(0x1457+2430-0x1dc1),(0xb36+655-0xd67)},{(0x901+5143-0x1cf0),(0xab+2143-0x88f)},
+{(0x486+7772-0x22b9),(0x843+896-0xb46)},{(0x1fa5+1242-0x2450),
+(0x993+6628-0x231b)},{(0x515+5727-0x1b38),(0xc15+1583-0x11e9)},{
+(0x1603+1491-0x1b99),(0x963+385-0xa66)},{(0x4c0+7815-0x2309),(0x500+5208-0x18fb)
+},{(0x687+2869-0x117c),(0x18c2+2165-0x20bb)},{(0x714+27-0x6ee),
+(0x754+6468-0x1fd7)},{(0x470+6439-0x1d4e),(0x1952+1938-0x2017)},{
+(0xcdd+1507-0x1271),(0x1b7b+453-0x1c6d)},{(0x1034+43-0x100a),
+(0x13cb+1201-0x17a2)},{(0x1236+5306-0x268f),(0x1d7+2055-0x8fd)},{
+(0x1cfb+2569-0x269f),(0x2332+940-0x632)},{(0x9d0+5085-0x1d44),
+(0x123d+5386-0x265a)},{(0x1aab+970-0x1e06),(0xc82+4906-0x1eb9)},{
+(0x2342+954-0x2687),(0x30d+2716-0xcaf)},};const unsigned short
+Ucs2_To_Gsm7_SPANISH_Table_UCS[][(0x4f+4418-0x118f)]={{(0x1fdb+1802-0x26d5),
+(0x15c1+4018-0x21df)},{(0x36d+1648-0x9cb),(0x11f9+1700-0x14f7)},{
+(0x561+4728-0x17c6),(0x7c7+2445-0xdc1)},{(0x2600+198-0x26b2),(0x7dc+5437-0x197e)
+},{(0x650+7355-0x22f6),(0x1580+2323-0x1aea)},{(0x1313+1515-0x18e8),
+(0xc5a+7567-0x2649)},{(0xe5+4649-0x12f7),(0x160b+923-0x15fe)},{
+(0xcb6+5349-0x2183),(0x54c+8926-0x2487)},{(0x992+3708-0x17f5),
+(0xdf3+2372-0x139f)},{(0x7d1+4454-0x191d),(0x1d98+766-0x1cf8)},};const unsigned
+char Ucs2_To_Gsm7_SPANISH_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x4c7+4885-0x17d2),NON_GSM,NON_GSM,
+(0x5b5+7720-0x23d0),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0xdd4+2197-0x1649),(0x769+4251-0x17e3),(0xb1a+2925-0x1665),
-(0x718+4624-0x1905),(0x1286+2186-0x1b0e),(0x4c8+1294-0x9b1),(0x13d6+4239-0x243f)
-,(0x4cb+6253-0x1d11),(0x1e16+1515-0x23d9),(0x4ac+4916-0x17b7),
-(0x12bd+4271-0x2342),(0x571+5355-0x1a31),(0xf04+2139-0x1733),
-(0x1398+4521-0x2514),(0x2a2+7282-0x1ee6),(0x1993+665-0x1bfd),(0x12d0+560-0x14d0)
-,(0xa90+3672-0x18b7),(0x1dea+1576-0x23e0),(0x1382+1917-0x1acc),
-(0x10fa+4738-0x2348),(0xb43+6138-0x2308),(0x1584+3505-0x22ff),
-(0xdb8+3056-0x1971),(0x69a+2590-0x1080),(0xf08+3084-0x1adb),(0x7d7+7310-0x242b),
-(0x6a0+1022-0xa63),(0x1650+2666-0x207e),(0x1d4+6419-0x1aaa),(0x252+7907-0x20f7),
-(0x1d66+2501-0x26ec),(0x319+983-0x6f0),(0x134f+2495-0x1ccd),(0x47a+2536-0xe20),
-(0x68c+517-0x84e),(0x1714+3104-0x22f0),(0xcd4+5116-0x208b),(0x17ba+2973-0x2311),
-(0x2062+730-0x22f5),(0x2027+1786-0x26d9),(0x203b+92-0x204e),(0x1828+934-0x1b84),
-(0xbd3+4676-0x1dcc),(0x138+6362-0x19c6),(0x38f+4440-0x149a),(0x19fb+409-0x1b46),
-(0xbc3+359-0xcdb),(0x1bb5+1333-0x209a),(0xc67+3860-0x1b2a),(0x2f1+8135-0x2266),
-(0x23f+5021-0x1589),(0x1247+2686-0x1c71),(0xe77+6271-0x26a1),
-(0x1b3a+1697-0x2185),(0x7bf+4668-0x19a4),(0x10ec+5258-0x251e),
-(0x1be2+1329-0x20ba),(0x1196+1432-0x16d4),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0xc75+4556-0x1e30),NON_GSM,(0x1667+3843-0x2509),(0x161b+1126-0x1a1f),
-(0x11d1+3815-0x2055),(0x183c+2986-0x2382),(0x185+6980-0x1c64),
-(0xc61+5434-0x2135),(0x19fa+227-0x1a76),(0xa9c+3274-0x16fe),(0x12e3+361-0x13e3),
-(0x1b9b+2531-0x2514),(0x118a+1843-0x1852),(0x2246+553-0x2403),
-(0x1068+4267-0x20a6),(0xd5c+1788-0x13ea),(0x1da+9557-0x26c0),(0x38f+5688-0x1957)
-,(0x80d+3061-0x1391),(0x1799+2970-0x22c1),(0x9c1+6171-0x2169),
-(0x140f+3358-0x20b9),(0xb47+149-0xb67),(0x5f4+5819-0x1c39),(0x149f+1585-0x1a59),
-(0x14c+6571-0x1a7f),(0x3fc+1047-0x79a),(0x639+6042-0x1d59),NON_GSM,NON_GSM,
+NON_GSM,(0xe37+6135-0x260e),(0x1052+2708-0x1ac5),(0x7b4+7205-0x23b7),
+(0x671+60-0x68a),(0xec0+4875-0x21c9),(0x1e4+7204-0x1de3),(0x1faa+966-0x234a),
+(0x13e8+4292-0x2485),(0x9f4+3944-0x1934),(0xbc9+6372-0x2484),(0xfea+871-0x1327),
+(0x10f9+2149-0x1933),(0x145+8527-0x2268),(0x73d+4815-0x19df),
+(0x112a+1641-0x1765),(0xd69+5208-0x2192),(0x131+8472-0x2219),(0x3d9+1790-0xaa6),
+(0x9c3+3514-0x174b),(0x43a+5201-0x1858),(0x1df+1551-0x7ba),(0x8f8+2813-0x13c0),
+(0x1da3+820-0x20a1),(0x1f63+160-0x1fcc),(0x427+7542-0x2165),(0x805+621-0xa39),
+(0x12c9+1806-0x199d),(0x942+5655-0x1f1e),(0x7f4+5351-0x1c9f),(0x7ca+3114-0x13b7)
+,(0x1148+4839-0x23f1),(0x4c9+6800-0x1f1a),(0x5b7+2635-0x1002),
+(0x1034+245-0x10e8),(0x69c+6235-0x1eb5),(0x144+575-0x340),(0xd70+5444-0x2270),
+(0x78b+4748-0x19d2),(0xfd7+1278-0x148f),(0x118b+4052-0x2118),(0xb12+952-0xe82),
+(0x1e76+2256-0x26fd),(0x63f+1151-0xa74),(0x12c+4420-0x1225),(0x2024+1016-0x23d0)
+,(0x194+587-0x392),(0x2ea+7561-0x2025),(0x165+7964-0x2032),(0x20da+353-0x21eb),
+(0x662+4605-0x180e),(0x131b+3085-0x1ed6),(0x11ef+3368-0x1ec4),
+(0x1b31+1600-0x211d),(0x1a25+809-0x1cf9),(0x2054+791-0x2315),(0x1b8c+180-0x1be9)
+,(0x11db+2453-0x1b18),(0x136b+3112-0x1f3a),(0x34b+8714-0x24fb),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,(0x1651+387-0x17c3),NON_GSM,(0xca0+938-0xfe9),(0x56d+1287-0xa12)
+,(0x124a+1449-0x1790),(0x374+2799-0xdff),(0xbf7+3245-0x183f),(0x11ec+204-0x1252)
+,(0x1810+173-0x1856),(0x437+2473-0xd78),(0xf37+5638-0x24d4),(0xc4a+2927-0x174f),
+(0x287+4847-0x150b),(0x239+2148-0xa31),(0x163b+452-0x1792),(0x99c+3620-0x1752),
+(0xe72+3150-0x1a51),(0xfeb+2150-0x17e1),(0x546+3993-0x146e),(0x2cb+1227-0x724),
+(0x1898+105-0x188e),(0x1281+971-0x15d8),(0x260+2258-0xabd),(0x6c0+4804-0x190e),
+(0x21a+5282-0x1645),(0x532+4967-0x1821),(0x1036+1229-0x148a),(0x8b3+4282-0x18f3)
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xddf+5276-0x2260),
+(0xf54+4527-0x20c3),NON_GSM,(0x4bc+4751-0x174a),(0x1370+3330-0x204e),
+(0x202d+1637-0x268f),NON_GSM,(0x68a+2214-0xed1),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x17d1+1698-0x1e13),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x9f6+3445-0x1710),
+(0x1629+1867-0x1d66),(0x7e2+6758-0x222c),(0xcff+4157-0x1d33),NON_GSM,
+(0xd4c+4036-0x1cf1),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x1875+1480-0x1de0),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x43a+5204-0x1832),NON_GSM
+,(0xcf9+5544-0x2296),NON_GSM,NON_GSM,NON_GSM,(0x245+1031-0x5ee),NON_GSM,NON_GSM,
+(0xbab+979-0xf60),(0x1e09+2349-0x26b7),NON_GSM,NON_GSM,NON_GSM,
+(0x9ad+3444-0x16a6),(0x29f+6188-0x1abc),(0xf0d+2583-0x1907),NON_GSM,
+(0x8e9+4286-0x19a3),(0x83c+499-0xa2a),NON_GSM,NON_GSM,(0xa80+3434-0x17e3),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x8fc+5831-0x1f46),(0xe52+5161-0x2273),NON_GSM,
+NON_GSM,NON_GSM,(0xe08+447-0xf4b),NON_GSM,(0xbaa+2063-0x13ad),(0xcc+5799-0x176d)
+,NON_GSM,NON_GSM,(0x8d6+6652-0x2254),NON_GSM,NON_GSM,NON_GSM};const unsigned
+short zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][(0x459+271-0x566)]={{
+(0x1ec7+368-0x2032),(0x23c5+776-0x25e3)},{(0xcc0+946-0x1069),
+(0x16e9+3696-0x2472)},{(0x196+9059-0x24ef),(0xedd+1893-0x1636)},{
+(0x836+4570-0x1a05),(0x127+6917-0x1b58)},{(0x1faa+1610-0x25e8),
+(0x1df0+1460-0x22b0)},{(0xd64+4176-0x1da7),(0x161b+2144-0x1e6e)},{
+(0x4cd+1061-0x8e4),(0x1ed2+1091-0x2254)},{(0x1478+86-0x14bf),
+(0x1a27+2735-0x23f5)},{(0x1505+2846-0x2011),(0x1501+3737-0x1ff4)},{
+(0x1060+4902-0x2373),(0x926+5126-0x1999)},{(0xb4f+1209-0xff4),
+(0x847+4596-0x19dd)},{(0x142d+2249-0x1ce1),(0x9d0+1308-0xb43)},{
+(0x3ca+7328-0x2054),(0x1404+3430-0x1dca)},{(0xa6a+2649-0x14ac),
+(0x597+7639-0x1fc6)},{(0x340+355-0x48b),(0x19d9+3462-0x23bc)},{
+(0xcad+2229-0x1549),(0x4d0+5530-0x16d2)},{(0xeb0+179-0xf44),(0x17ed+1058-0x1b45)
+},{(0x218+2790-0xcd6),(0xb53+2345-0x1401)},{(0x10d9+2641-0x1b01),
+(0x11fb+3553-0x1f5f)},{(0x7d+9862-0x26d4),(0x236+6416-0x1aea)},{
+(0x1467+1787-0x1b26),(0xa41+1501-0xfc3)},{(0x237+8854-0x2490),
+(0x1573+1242-0x19cf)},{(0x540+5352-0x19ea),(0x38d+4005-0x12d5)},{
+(0x1993+1880-0x20ab),(0x183d+355-0x1924)},{(0xf42+3354-0x1c1b),(0xb5b+420-0xc3f)
+},{(0x13f1+624-0x1618),(0xd72+2528-0x1685)},{(0x1583+3594-0x233e),
+(0x204f+1818-0x2696)},{(0x1269+1654-0x188a),(0x9a0+6691-0x22e9)},{
+(0x1f4+9437-0x2676),(0x1bc8+2240-0x23c5)},{(0xde1+4499-0x1f18),
+(0x143b+1704-0x1a0e)},{(0x7e0+2798-0x126d),(0x2a3+1691-0x87c)},{
+(0x1254+3395-0x1f32),8364},{(0x17d2+3473-0x24fa),(0x12b+7041-0x1bbf)},{
+(0xd1b+1599-0x12eb),(0xcd3+3283-0x18b3)},{(0xc71+6119-0x23e3),
+(0x19e0+2662-0x234c)},{(0x600+2693-0x100a),(0x111+8250-0x2068)},{
+(0x2a3+4808-0x14ef),(0x1d4c+2736-0x2707)},{(0x941+2505-0x128b),(0x6ab+266-0x6d3)
+},};const unsigned short Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][
+(0x1560+4025-0x2517)]={{(0x930+5186-0x1d62),(0x15d8+5170-0x2676)},{
+(0x1512+2260-0x1dd1),8929},{(0x22ac+697-0x254d),8364},{(0x79c+4899-0x1a5a),8364}
+,};const unsigned char Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[]={NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x1717+1320-0x1c35),NON_GSM,NON_GSM,(0xe3a+205-0xefa),NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1a7b+1963-0x2206),
+(0x15bd+1920-0x1d1c),(0xd9f+5514-0x2307),(0xfac+586-0x11d3),(0x196d+2257-0x223c)
+,(0x14ed+1819-0x1be3),(0xd2+4299-0x1177),(0x4d1+2234-0xd64),(0xeeb+1638-0x1529),
+(0x48b+6659-0x1e65),(0xdda+1784-0x14a8),(0x16f0+929-0x1a66),(0x585+632-0x7d1),
+(0x45f+738-0x714),(0xd85+641-0xfd8),(0x12b9+256-0x138a),(0x1400+4605-0x25cd),
+(0x30f+7440-0x1fee),(0xa5a+1390-0xf96),(0x980+3096-0x1565),(0xc1b+2440-0x156f),
+(0x1db+2753-0xc67),(0x1e7b+1154-0x22c7),(0x255c+219-0x2600),(0x12ea+2786-0x1d94)
+,(0x143f+1264-0x18f6),(0x17b3+1504-0x1d59),(0x235+6402-0x1afc),
+(0x1307+707-0x158e),(0xab8+6091-0x2246),(0x10ea+4424-0x21f4),(0x38b+5447-0x1893)
+,(0x8ad+620-0xb19),(0xcd3+2630-0x16d8),(0xe1c+3678-0x1c38),(0x1678+4008-0x25dd),
+(0x1f27+46-0x1f11),(0x122d+2617-0x1c21),(0x504+3470-0x124c),(0xc4+5114-0x1477),
+(0xa89+4839-0x1d28),(0x1425+3192-0x2054),(0x10ed+2726-0x1b49),(0x2dd+1495-0x869)
+,(0x936+1098-0xd34),(0x10c0+4939-0x23be),(0x7c4+2420-0x10ea),(0x150+7288-0x1d79)
+,(0x192+4619-0x134d),(0x1b89+2405-0x249d),(0xa78+1425-0xfb7),(0xcba+1189-0x110c)
+,(0x1a14+1025-0x1dc1),(0x352+6164-0x1b11),(0x1885+3419-0x258a),
+(0x4ad+4692-0x16aa),(0x83f+5641-0x1df0),(0xdbb+3205-0x19e7),(0x3e5+246-0x481),
+NON_GSM,(0x637+247-0x717),NON_GSM,(0x671+4645-0x1880),(0xc5f+3473-0x19df),
+(0xfb7+5497-0x24b3),(0x4f2+6038-0x1c27),(0x362+2421-0xc75),(0x163+638-0x37e),
+(0x465+2552-0xdf9),(0x163a+2845-0x20f2),(0x1b08+2795-0x258d),(0xf54+4857-0x21e6)
+,(0x3a6+5464-0x1896),(0x1368+4950-0x2655),(0x2fb+4985-0x160a),
+(0x105c+4455-0x2158),(0x525+749-0x7a6),(0x202+5516-0x1721),(0xdb2+2037-0x1539),
+(0x310+1155-0x724),(0x367+6230-0x1b4d),(0x72f+2662-0x1124),(0x11a+7521-0x1e09),
+(0xf61+507-0x10e9),(0x1754+1110-0x1b36),(0x242+321-0x30e),(0x761+3080-0x12f3),
+(0x407+5585-0x1961),(0x163a+2490-0x1f7c),(0x962+3072-0x14e9),(0xe1a+4917-0x20d5)
+,NON_GSM,(0x15ad+1219-0x1a56),NON_GSM,(0xd0b+5142-0x20c1),NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1760+522-0x194f),(0x4a1+2062-0xc6f),
-NON_GSM,(0xa28+4657-0x1c58),(0x296+7597-0x201f),(0x7c3+2178-0x1042),NON_GSM,
-(0xe16+3675-0x1c12),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x1ae8+2404-0x2431),NON_GSM_P,NON_GSM,(0x30+5435-0x156a),NON_GSM_P,
+(0x67c+1881-0xdd2),NON_GSM,(0x1a13+2961-0x2545),NON_GSM,NON_GSM,
+(0x1d96+924-0x2120),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x7b9+1749-0xe6a),
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x403+2871-0xeda),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0x1343+2919-0x1e4f),(0x186+2151-0x9df),
-(0x1b91+2313-0x247e),(0x11c1+5208-0x2610),NON_GSM,(0x18d3+3086-0x24c2),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x2d6+8160-0x2259),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0xb55+4606-0x1cf7),NON_GSM,(0x10d9+4744-0x2356),NON_GSM
-,NON_GSM,NON_GSM,(0xc44+267-0xcf1),NON_GSM,NON_GSM,(0x650+386-0x7b4),
-(0x14f5+1242-0x1950),NON_GSM,NON_GSM,NON_GSM,(0xa6a+7241-0x2638),
-(0x1846+109-0x18a4),(0x404+671-0x686),NON_GSM,(0xe7b+3431-0x1bde),
-(0x1c+3067-0xc12),NON_GSM,NON_GSM,(0x1428+3804-0x22fd),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x2b5+2376-0xb80),(0x629+1413-0xba6),NON_GSM,NON_GSM,NON_GSM,
-(0x1035+1160-0x1441),NON_GSM,(0x1151+5155-0x2568),(0x7b0+7208-0x23d2),NON_GSM,
-NON_GSM,(0x1c0+4370-0x1254),NON_GSM,NON_GSM,NON_GSM};const unsigned short
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][(0x241a+185-0x24d1)]={{
-(0x6a6+3311-0x1390),(0x1a9d+114-0x1a25)},{(0x11c6+5291-0x2668),
-(0x1765+503-0x1875)},{(0xbf7+1722-0x12a7),(0x2e4+2517-0xcad)},{
-(0x789+3233-0x141f),(0x5d0+2699-0xf87)},{(0x13d9+1745-0x1a9e),
-(0x1b0a+1680-0x20a6)},{(0xecc+1371-0x141a),(0xdd7+4641-0x1feb)},{
-(0xdf5+2766-0x18b5),(0x817+2412-0x10c2)},{(0x548+7707-0x2354),
-(0x1b5f+3118-0x26ac)},{(0x151+3724-0xfcb),(0x434+2151-0x8f5)},{
-(0x6ef+4682-0x1926),(0xc3b+3976-0x1830)},{(0x16e4+166-0x1776),
-(0xbd2+3616-0x1994)},{(0x126f+4110-0x2268),(0xa63+2066-0xecc)},{
-(0x1cda+894-0x2042),(0x18d7+917-0x18cc)},{(0x15cc+1827-0x1cd8),
-(0x1264+2464-0x185c)},{(0x33a+9135-0x26d1),(0x47a+6437-0x19fc)},{
-(0x92d+4613-0x1b19),(0x923+7928-0x2483)},{(0xfe3+1143-0x143b),
-(0x903+3917-0x1786)},{(0x156d+4242-0x25d7),(0xaed+5148-0x1e8e)},{
-(0x69b+2980-0x1216),(0xd38+3646-0x1af9)},{(0x20f2+565-0x22f8),
-(0x437+7295-0x205a)},{(0x402+6282-0x1c50),(0x286+2999-0xde2)},{
-(0x346+7916-0x21f5),(0x679+6207-0x1e3a)},{(0x783+5260-0x1bd1),
-(0x1a3b+2208-0x227e)},{(0xbfb+2657-0x161c),(0x595+6581-0x1ece)},{
-(0x182+5719-0x1798),(0x10fd+5761-0x26be)},{(0x1f63+503-0x2111),
-(0xcdf+6000-0x2382)},{(0x6d6+1755-0xd62),(0x1637+3899-0x249f)},{
-(0x2495+95-0x249f),(0x1010+2201-0x17cf)},{(0xab5+4733-0x1cd7),(0xedd+503-0x1011)
-},{(0x54b+2074-0xd09),(0x1f71+1916-0x2618)},{(0x7f5+6564-0x2138),
-(0xf77+3602-0x1cc7)},{(0x115+6718-0x1aee),8364},{(0xe6a+3684-0x1c65),
-(0x137b+528-0x149e)},{(0xa4f+6656-0x23e0),(0x4a1+7138-0x1f90)},{
-(0x1408+4150-0x23c9),(0x1c14+2208-0x23ba)},{(0xea7+4692-0x2080),
-(0x1487+1186-0x1846)},{(0x1fe9+1729-0x262e),(0x517+4181-0x1477)},{
-(0x15cb+2935-0x20c3),(0x494+4357-0x14b7)},};const unsigned short
-Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][(0x1d59+1538-0x2359)]={{(0x239f+738-0x2671),
-(0x1598+2725-0x1ca9)},{(0x538+8584-0x26ab),8929},{(0xb7a+957-0xf1f),8364},{
-(0x77a+7517-0x2472),(0x2307+6642-0x1c4d)},};const unsigned char
-Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xaf8+2769-0x15bf),NON_GSM,NON_GSM,
-(0x7b4+3799-0x167e),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1935+2218-0x21cb),(0x1ac+5372-0x169a)
+,(0x84+2390-0x9be),(0x894+7226-0x2473),NON_GSM_P,NON_GSM_P,NON_GSM_P,
+(0xd57+876-0x10b0),NON_GSM,(0xdb5+4406-0x1ecc),(0x648+3234-0x12cc),NON_GSM,
+NON_GSM,(0xbe1+4357-0x1ca6),NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM,
+(0x90d+1533-0xef1),(0x125a+1018-0x1649),(0x47f+7802-0x229d),NON_GSM_P,NON_GSM,
+NON_GSM_P,NON_GSM,(0x1cf6+897-0x201a),NON_GSM,(0x425+7971-0x22ea),NON_GSM,
+NON_GSM,NON_GSM_P,(0x1325+476-0x1482),(0x10d9+5336-0x25a2),(0x2cd+2222-0xb5e),
+(0x700+833-0x9c6),NON_GSM_P,NON_GSM_P,NON_GSM_P,(0x27+4401-0x114f),NON_GSM_P,
+(0x118b+2788-0x1c6a),(0x855+6869-0x2326),NON_GSM,NON_GSM_P,(0x100c+1226-0x14cf),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM_P,(0x78f+4256-0x1827),
+(0x1347+3835-0x2236),(0x480+5065-0x17cd),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM_P,
+(0x676+6930-0x2182),NON_GSM,(0x4d8+4455-0x15c1),NON_GSM,NON_GSM,NON_GSM};const
+unsigned short zte_sms_GSMDefault_To_UCS2_Table_Ex[][(0x577+423-0x71c)]={{
+(0x24c8+272-0x25ce),(0x1797+141-0x1818)},{(0x3d3+2593-0xde0),(0x4dd+2002-0xc51)}
+,{(0xc1b+6095-0x23c2),(0xc8b+2990-0x17be)},{(0xeca+4290-0x1f63),
+(0x1dc+7922-0x2051)},{(0x31d+6410-0x1bf8),(0x2149+1339-0x2628)},{
+(0x1da6+534-0x1f80),(0x1570+1397-0x1a8a)},{(0x6a0+1952-0xe03),(0x465+212-0x4bb)}
+,{(0x75f+3610-0x153b),(0x1a9a+1942-0x21d3)},{(0x1449+1100-0x1855),
+(0x11b0+5113-0x252d)},{(0x2b2+1039-0x65c),8364},};const unsigned short
+UCS2_To_GSMDefault_Table_UCS2[][(0xc77+4855-0x1f6c)]={{(0x6bc+526-0x8ba),
+(0x476+5793-0x1783)},{(0x7dd+3121-0x13fc),(0x14f8+1134-0x15c0)},{
+(0x143+8469-0x2245),(0x90a+5362-0x1a69)},{(0xca+7332-0x1d5a),(0xb74+5618-0x1dcb)
+},{(0x150+5967-0x188a),(0xd7b+33-0x9f3)},{(0x443+7066-0x1fc7),
+(0x478+4043-0x10a3)},{(0x16b2+681-0x1944),(0x1864+3703-0x2333)},{
+(0xa72+7088-0x260a),(0xae5+6027-0x1ecd)},{(0x17b7+1903-0x1f0d),
+(0x119b+6031-0x2592)},{(0xf5+7359-0x1d9a),(0xca1+4642-0x1b25)},};const unsigned
+char UCS2_To_GSMDefault_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xda+2129-0x921),NON_GSM,NON_GSM,
+(0x849+2907-0x1397),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0xa1d+4524-0x1ba9),(0xc37+6581-0x25cb),(0x1ae5+2077-0x22e0),
-(0x2af+9194-0x2676),(0xf05+4557-0x20d0),(0x203+575-0x41d),(0x11f+3930-0x1053),
-(0xc9b+832-0xfb4),(0xddb+5440-0x22f3),(0x246+3229-0xeba),(0xb3c+1302-0x1028),
-(0x127f+1346-0x1796),(0x16a9+440-0x1835),(0x33a+9106-0x269f),
-(0x1eba+1178-0x2326),(0xfac+3501-0x1d2a),(0x1416+4473-0x255f),
-(0x64c+5788-0x1cb7),(0x14db+996-0x188d),(0x249+2116-0xa5a),(0x147c+3817-0x2331),
-(0x2ff+4331-0x13b5),(0x147c+825-0x177f),(0x6c5+5641-0x1c97),(0x29b+3511-0x101a),
-(0x587+8314-0x25c8),(0x1ae0+1822-0x21c4),(0x1497+2368-0x1d9c),
-(0x17c8+790-0x1aa2),(0x1642+4000-0x25a5),(0x9d4+5828-0x205a),(0xfa6+3484-0x1d03)
-,(0x2517+491-0x2702),(0x3dc+2064-0xbab),(0x4e8+5047-0x185d),(0x255+4867-0x1515),
-(0x983+2987-0x14ea),(0x690+6442-0x1f75),(0x1857+454-0x19d7),(0x1754+2263-0x1fe4)
-,(0x1831+3029-0x23be),(0x85f+4149-0x184b),(0x1109+4391-0x21e6),
-(0x294+7683-0x204c),(0xe9b+1042-0x1261),(0xc66+5801-0x22c2),(0x54+213-0xdb),
-(0xbf4+76-0xbf1),(0x1174+545-0x1345),(0x1b18+890-0x1e41),(0xb80+4097-0x1b2f),
-(0x2240+113-0x225e),(0x745+62-0x72f),(0xa27+2433-0x1353),(0x10c5+997-0x1454),
-(0x1e0+6347-0x1a54),(0x1078+3532-0x1dec),(0xab9+2351-0x138f),(0x655+2374-0xf41),
-NON_GSM,(0x166a+158-0x16f1),NON_GSM,(0x16c3+2883-0x21f0),(0x827+94-0x874),
-(0x13d3+526-0x1564),(0xab1+3952-0x19c0),(0x1128+5683-0x26f9),
-(0x1273+1790-0x190e),(0x11c+8724-0x22cc),(0x482+2064-0xc2d),(0xd02+2471-0x1643),
-(0x2610+237-0x2696),(0x880+801-0xb39),(0x212a+1448-0x2669),(0x2484+603-0x2675),
-(0x2d1+6711-0x1c9d),(0x39d+5697-0x1972),(0x1724+716-0x1983),(0x1a39+2810-0x24c5)
-,(0xcc9+1823-0x1379),(0x1360+4727-0x2567),(0x1cd9+2014-0x2446),
-(0x1076+1671-0x168b),(0x8e7+2686-0x12f2),(0x8b8+617-0xaad),(0xcd7+4411-0x1d9d),
-(0x159f+2499-0x1eec),(0x1110+2095-0x18c8),(0xf26+4073-0x1e97),
-(0x1316+3773-0x215a),(0x636+1674-0xc46),NON_GSM,(0x13f2+2721-0x1e79),NON_GSM,
-(0x17d+8124-0x20d9),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x723+2629-0x114d),NON_GSM_P,
-NON_GSM,(0x80c+7585-0x25ac),NON_GSM_P,(0x60+6539-0x19e8),NON_GSM,
-(0x766+2886-0x124d),NON_GSM,NON_GSM,(0x1576+931-0x1907),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0x1b63+412-0x1cdb),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0xaeb+2425-0x1450),(0x97d+2667-0x13da),(0x1483+259-0x156a),(0x9f3+3649-0x17d9),
-NON_GSM_P,NON_GSM_P,NON_GSM_P,(0x25f+8738-0x246e),NON_GSM,(0x1d4f+2487-0x26e7),
-(0x147f+4571-0x263c),NON_GSM,NON_GSM,(0x374+1145-0x7ad),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM_P,NON_GSM,(0x27+9344-0x248e),(0x13af+3124-0x1fd8),(0x9f8+6197-0x21d1),
-NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM,(0x182d+3701-0x2645),NON_GSM,
-(0xe2+1370-0x5de),NON_GSM,NON_GSM,NON_GSM_P,(0xe25+184-0xe5e),
-(0x88a+4033-0x183c),(0x8f5+7261-0x2535),(0x114a+3901-0x200c),NON_GSM_P,NON_GSM_P
-,NON_GSM_P,(0x1903+1511-0x1ee1),NON_GSM_P,(0x601+5851-0x1cd7),
-(0xbad+5484-0x2115),NON_GSM,NON_GSM_P,(0x136+4716-0x139b),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM_P,NON_GSM_P,(0xddb+3936-0x1d33),(0xd1c+3622-0x1b36),
-(0x179+3094-0xd13),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM_P,(0xc2c+3411-0x1979),
-NON_GSM,(0x1cdc+1903-0x23cd),NON_GSM,NON_GSM,NON_GSM};const unsigned short
-zte_sms_GSMDefault_To_UCS2_Table_Ex[][(0x80c+3376-0x153a)]={{(0xd72+4827-0x2043)
-,(0x231+7940-0x2129)},{(0x10d1+1393-0x162e),(0x158+4677-0x133f)},{
-(0xe60+825-0x1171),(0xaff+2069-0x1299)},{(0xcf6+4173-0x1d1a),
-(0x1081+5880-0x26fc)},{(0x2433+357-0x2569),(0x8d6+2154-0x10e4)},{
-(0x1662+3070-0x2224),(0x1d66+1091-0x214e)},{(0x7e9+4582-0x1992),
-(0x15fc+879-0x18ed)},{(0x1101+2561-0x1ac4),(0x87c+2042-0x1019)},{
-(0xeac+2608-0x189c),(0x126d+4678-0x2437)},{(0x117f+3358-0x1e38),8364},};const
-unsigned short UCS2_To_GSMDefault_Table_UCS2[][(0x7b+888-0x3f1)]={{
-(0x434+3432-0x118c),(0x1485+5425-0x2622)},{(0xc94+4468-0x1df6),
-(0x1147+4117-0x1db6)},{(0x14e0+3366-0x21f3),(0x526+8412-0x226f)},{
-(0x4e0+8762-0x2706),(0xd12+5918-0x2095)},{(0x1124+2880-0x1c4f),
-(0x46a+1909-0x836)},{(0x1224+2984-0x1db6),(0x1c57+967-0x1c7e)},{
-(0xd01+3018-0x18b4),(0xab1+6546-0x209b)},{(0x1504+2324-0x1e00),
-(0x1703+1367-0x18b7)},{(0x4a3+496-0x67a),(0xdb6+745-0xd07)},{(0xc12+4080-0x1be8)
-,(0x127c+4888-0x21f6)},};const unsigned char UCS2_To_GSMDefault_Table_ASC[]={
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x942+6993-0x2489),NON_GSM,NON_GSM,(0x1ff1+944-0x2394),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x20d3+565-0x22e8),(0x2eb+4607-0x14c9),
-(0x1175+961-0x1514),(0xf01+2125-0x172b),(0x71c+4470-0x1890),(0x7ab+2685-0x1203),
-(0x7d3+2233-0x1066),(0x8ab+5027-0x1c27),(0x7f2+3617-0x15eb),(0xd3b+1093-0x1157),
-(0xeb5+1773-0x1578),(0xd66+4921-0x2074),(0x225+7707-0x2014),(0x1dd+5699-0x17f3),
-(0x78f+3546-0x153b),(0x409+8684-0x25c6),(0x746+1442-0xcb8),(0x129+3835-0xff3),
-(0xa95+2340-0x1387),(0xb42+2817-0x1610),(0x9bc+4752-0x1c18),(0x1c48+2317-0x2520)
-,(0x1655+3282-0x22f1),(0x115f+4522-0x22d2),(0x11f0+5041-0x2569),
-(0x1aef+389-0x1c3b),(0xe54+5811-0x24cd),(0xfc0+290-0x10a7),(0x12e1+1148-0x1721),
-(0x1064+1215-0x14e6),(0x5a5+6120-0x1d4f),(0x14fd+1901-0x1c2b),
-(0x842+6306-0x20e4),(0x10f6+2079-0x18d4),(0x110f+1268-0x15c1),(0x7a6+1245-0xc40)
-,(0xb3+6695-0x1a96),(0xa18+3891-0x1906),(0x8f4+6052-0x2052),(0xe9b+4149-0x1e89),
-(0xcac+1895-0x13cb),(0xaa9+617-0xcc9),(0x720+268-0x7e2),(0x791+3449-0x14bf),
-(0x391+8591-0x24d4),(0x1865+3142-0x245e),(0x716+3456-0x1448),(0xbe9+3523-0x195d)
-,(0x562+2838-0x1028),(0xdfd+405-0xf41),(0x220+925-0x56b),(0x1cb5+233-0x1d4b),
-(0x347+4197-0x1358),(0x6aa+6502-0x1fbb),(0x82+8575-0x21ab),(0xfbc+4539-0x2120),
-(0x56d+5930-0x1c3f),(0x120d+3543-0x1f8b),(0x81c+564-0x9f6),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0x5c0+6285-0x1e3c),NON_GSM,(0x1f02+1348-0x23e5),
-(0xe96+671-0x10d3),(0x3d2+2487-0xd26),(0xbec+6170-0x23a2),(0xe8f+1792-0x152a),
-(0x157b+3166-0x2173),(0x19a0+1164-0x1dc5),(0xe59+3407-0x1b40),
-(0xacc+5225-0x1ecc),(0x167d+4200-0x267b),(0x662+7479-0x232e),(0x4a5+1203-0x8ec),
-(0xbf1+1612-0x11d0),(0x193c+1606-0x1f14),(0x1a81+3215-0x26a1),
-(0x5ff+6460-0x1ecb),(0x99d+6368-0x220c),(0x967+4205-0x1962),(0x111b+98-0x110a),
-(0x4ff+7429-0x2190),(0x5b5+802-0x862),(0x2c7+7876-0x2115),(0x8fc+7479-0x25bc),
-(0x374+4148-0x1330),(0x85b+4291-0x18a5),(0xcc+8031-0x1fb1),NON_GSM,NON_GSM,
+NON_GSM,(0xa68+4331-0x1b33),(0x7e4+2489-0x117c),(0x1b5+9091-0x2516),
+(0x2518+22-0x250b),(0x92f+3298-0x160f),(0x36+4979-0x1384),(0xc6b+5961-0x238e),
+(0x5cc+7134-0x2183),(0x1aa2+1237-0x1f4f),(0x131a+173-0x139e),(0x85d+3042-0x1415)
+,(0xfba+1220-0x1453),(0x11bc+4167-0x21d7),(0xc68+1378-0x119d),
+(0xa16+2914-0x154a),(0x509+2081-0xcfb),(0x1b29+27-0x1b14),(0x1c41+997-0x1ff5),
+(0x48c+4573-0x1637),(0x1b0+5696-0x17bd),(0xaf3+689-0xd70),(0xb7b+1776-0x1236),
+(0x5e7+5197-0x19fe),(0xa4b+6035-0x21a7),(0x243f+197-0x24cc),(0x16e0+756-0x199b),
+(0x19d3+3366-0x26bf),(0x985+281-0xa63),(0x409+7431-0x20d4),(0x1b54+2611-0x254a),
+(0x1ee9+207-0x1f7a),(0x14c8+986-0x1863),(0x5cc+3297-0x12ad),(0x2c2+3748-0x1125),
+(0xd5+1905-0x804),(0x535+8418-0x25d4),(0x1ec4+580-0x20c4),(0x1d06+899-0x2044),
+(0x63c+2285-0xee3),(0x17c8+3426-0x24e3),(0x1227+1363-0x1732),(0x5fc+2983-0x115a)
+,(0x1ced+1643-0x230e),(0x443+2970-0xf92),(0x21f1+213-0x227a),
+(0x1707+3024-0x228a),(0x89a+6112-0x202c),(0x1ccd+86-0x1cd4),(0x142a+1206-0x1890)
+,(0x38f+157-0x3db),(0x570+2805-0x1013),(0x21fb+883-0x251b),(0xd3a+876-0x1052),
+(0x1acc+133-0x1afc),(0x21d8+417-0x2323),(0xa03+7202-0x25ce),(0x39c+2092-0xb70),
+(0x6c4+3512-0x1423),(0x400+4976-0x1716),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0xbd2+1029-0xfc6),NON_GSM,(0x1c56+2350-0x2523),(0x75c+2662-0x1160),
+(0xf31+4114-0x1ee0),(0x1ec+7016-0x1cf0),(0xbea+1558-0x119b),(0x9c5+4119-0x1976),
+(0x72+2360-0x943),(0x1b94+1208-0x1fe4),(0x1bd0+405-0x1cfc),(0xd1a+2465-0x1651),
+(0xe82+5075-0x21ea),(0x101+9095-0x241c),(0x9fb+5840-0x205e),(0x7a8+6627-0x211d),
+(0xadd+6628-0x2452),(0x48d+5823-0x1adc),(0x5d0+6359-0x1e36),(0x20c+1572-0x7be),
+(0x16a+2695-0xb7e),(0x168d+2999-0x21d0),(0x1729+2082-0x1ed6),(0x477+3975-0x1388)
+,(0x176+9214-0x24fd),(0x13fa+3985-0x2313),(0xac2+6546-0x23db),
+(0x27f+6904-0x1cfd),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x536+6652-0x1f17),(0x1c8b+1958-0x23f1)
-,NON_GSM,(0xe2a+2698-0x18b3),(0x9a8+590-0xbd2),(0xaed+5975-0x2241),NON_GSM,
-(0x1ed7+829-0x21b5),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x739+1061-0xb43),(0x87f+4120-0x1857),NON_GSM,(0x157a+2379-0x1ec4),
+(0x83a+3252-0x14ca),(0x1a16+920-0x1dab),NON_GSM,(0xe50+5116-0x21ed),NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x229c+1142-0x26b2),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0xd74+646-0xf9f),(0x489+2074-0xc95),
-(0x100b+4667-0x222a),(0x991+5093-0x1d6d),NON_GSM,(0xa6a+4134-0x1a71),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x18e2+2451-0x2218),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0x199a+1000-0x1d26),NON_GSM,(0x4b1+3184-0x1116),NON_GSM
-,NON_GSM,NON_GSM,(0x1c3c+1672-0x2266),NON_GSM,NON_GSM,(0x17c2+838-0x1aea),
-(0x1001+4148-0x1fb6),NON_GSM,NON_GSM,NON_GSM,(0x722+1862-0xded),
-(0x1709+4077-0x26e7),(0xd3f+6215-0x2569),NON_GSM,(0x10a8+3157-0x1cf9),
-(0xe24+3091-0x1a32),NON_GSM,NON_GSM,(0x1d63+1291-0x2267),NON_GSM,NON_GSM,NON_GSM
-,NON_GSM,(0xeb4+1173-0x12cc),(0x3db+2485-0xd88),NON_GSM,NON_GSM,NON_GSM,
-(0x180a+1383-0x1cf5),NON_GSM,(0x572+1411-0xae9),(0x327+4953-0x167a),NON_GSM,
-NON_GSM,(0x208+7048-0x1d12),NON_GSM,NON_GSM,NON_GSM};const unsigned short
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={(0x201c+1421-0x2569),
-(0x5f0+3672-0x13a5),(0x1ad9+271-0x1bc4),(0x1aa+3385-0xe3e),(0x971+1363-0xdda),
-(0x12f+2565-0xa4b),(0x25d+619-0x3ce),(0x1642+3105-0x2176),(0x307+2603-0xc3f),
-(0x4ed+3696-0x1276),(0x6df+4619-0x18e0),(0x1af3+700-0x1cdb),(0x162b+1112-0x198f)
-,(0xaa7+681-0xd43),(0x11c+2560-0xa5b),(0x1f2d+1480-0x2414),(0x58b+2990-0xda5),
-(0x9f4+4084-0x1989),(0xdc5+1930-0x14a5),(0x2024+808-0x2285),(0x5d1+5135-0x1920),
-8734,(0x1243+3343-0x1ef4),(0x10ba+356-0x11c2),(0x26ef+5474-0x1ba5),
-(0x15b+9371-0x2523),(0x17e5+3363-0x248c),(0x5c7+3287-0x11fe),
-(0x1ba7+2660-0x2549),(0x1282+4335-0x228f),(0x18c0+3175-0x245d),
-(0x301+4613-0x143d),(0x11d0+2928-0x1d20),(0xa1+5811-0x1733),(0x925+4618-0x1b0d),
-(0x527+4646-0x172a),(0x121a+3603-0x1f7d),(0x272+3767-0x1104),(0x69+7484-0x1d7f),
-(0x1ca1+2369-0x25bb),(0xbd1+5360-0x2099),(0xc8f+2347-0x1591),(0x245+7123-0x1dee)
-,(0x777+718-0xa1a),(0x6a6+5871-0x1d69),(0x182d+2787-0x22e3),(0x1038+1548-0x1616)
-,(0x11b2+1336-0x16bb),(0x1b4d+2553-0x2516),(0xeab+1558-0x1490),
-(0x3b+8013-0x1f56),(0x149d+4303-0x2539),(0xf35+295-0x1028),(0x814+2338-0x1101),
-(0x91a+5136-0x1cf4),(0x44+589-0x25a),(0x16c3+492-0x1877),(0x156+4013-0x10ca),
-(0x1d4+5391-0x16a9),(0x1125+3870-0x2008),(0x888+5116-0x1c48),(0x1ed9+103-0x1f03)
-,(0x128c+1542-0x1854),(0x613+2230-0xe8a),(0x16c9+781-0x1909),(0xa57+4364-0x1b22)
-,(0x14c7+420-0x1629),(0x1799+3085-0x2363),(0xf41+2780-0x19d9),
-(0x5b1+7940-0x2470),(0xc23+5209-0x2036),(0x186f+1122-0x1c8a),
-(0x12b7+4034-0x2231),(0x7ed+7450-0x24be),(0x316+9086-0x264a),(0x792+3168-0x13a7)
-,(0x86a+5613-0x1e0b),(0x2543+463-0x26c5),(0xa5f+1127-0xe78),(0x1395+4398-0x2474)
-,(0x1e9+2574-0xba7),(0x18b9+3021-0x2435),(0x6d1+1769-0xd68),(0x49d+2789-0xf2f),
-(0x6b9+3301-0x134a),(0x8d0+5678-0x1ea9),(0x812+4486-0x1942),(0x550+7837-0x2396),
-(0x581+8265-0x2572),(0x8d4+151-0x912),(0x1135+4161-0x211c),(0x1923+1984-0x2020),
-(0x859+8055-0x26fb),(0x1adc+3081-0x260b),(0x1cc5+2739-0x269c),
-(0x781+6749-0x2137),(0x354+7165-0x1ed3),(0x47a+7012-0x1f7d),(0xc2+4375-0x1177),
-(0x350+3282-0xfbf),(0x49d+5537-0x19da),(0x1dd6+2192-0x2601),(0x6aa+5796-0x1ce8),
-(0xd30+4828-0x1fa5),(0xa92+875-0xd95),(0x5f8+23-0x5a6),(0x914+336-0x9fa),
-(0xd83+4742-0x1f9e),(0x1aa2+2839-0x254d),(0x17bf+2681-0x21cb),
-(0x44c+6639-0x1dcd),(0x249+2833-0xceb),(0x8cc+1052-0xc78),(0xf9b+3943-0x1e91),
-(0x1d65+131-0x1d76),(0x73b+652-0x954),(0x1020+2737-0x1a5d),(0x12e4+4002-0x2211),
-(0x1f1+5426-0x16ad),(0x2122+1264-0x259b),(0x998+5709-0x1f6d),
-(0x1ef4+1844-0x25af),(0xd07+6564-0x2631),(0x982+3327-0x159e),(0x76f+2872-0x11b2)
-,(0x1827+2491-0x2182),(0x1e2a+2434-0x26b0),(0x5b3+8362-0x257d)};const unsigned
-short zte_sms_GSMDefault_To_UCS2_Table[]={(0x1830+2700-0x227c),
-(0xf2b+1859-0x15cb),(0xa0c+4876-0x1cf4),(0x16e1+3180-0x22a8),
-(0x1032+1506-0x152c),(0xc81+2520-0x1570),(0x32b+1738-0x8fc),(0x201d+737-0x2212),
-(0xa43+3384-0x1689),(0x1f42+974-0x2249),(0x3c4+3093-0xfcf),(0xd00+1962-0x13d2),
-(0x2285+486-0x2373),(0x13b5+1747-0x1a7b),(0x5e5+7385-0x21f9),(0xca3+777-0xec7),
-(0xafc+5753-0x1de1),(0x1373+2954-0x1e9e),(0x1c64+1377-0x1e1f),
-(0x8ed+8054-0x24d0),(0x1da4+2510-0x23d7),(0xb73+7958-0x26e0),
-(0x200b+2243-0x252e),(0x1ed9+1036-0x1f3d),(0xdf6+109-0xac0),(0x20c9+1648-0x23a1)
-,(0x1219+818-0x11ad),(0x1587+3700-0x235b),(0x1751+410-0x1825),
-(0x15d0+4411-0x2625),(0x3a3+5181-0x1701),(0x2315+973-0x2619),(0x1ed+4307-0x12a0)
-,(0x1262+1348-0x1785),(0xfca+1512-0x1590),(0x5a7+5106-0x1976),
-(0xe59+5406-0x22d3),(0x263+3093-0xe53),(0xe98+6005-0x25e7),(0x637+2170-0xe8a),
-(0x2548+127-0x259f),(0x257a+176-0x2601),(0x144+9320-0x2582),(0x18f+1208-0x61c),
-(0x1524+1030-0x18fe),(0x1d4f+1998-0x24f0),(0x30c+2124-0xb2a),(0x516+8012-0x2433)
-,(0xfe9+3090-0x1bcb),(0x3c9+6200-0x1bd0),(0xbb1+4544-0x1d3f),(0x2c4+976-0x661),
-(0x1008+2174-0x1852),(0x9f+2530-0xa4c),(0x15ad+3996-0x2513),(0x8f3+308-0x9f0),
-(0x41c+1891-0xb47),(0x13fb+753-0x16b3),(0x1eac+1656-0x24ea),(0x1c65+2313-0x2533)
-,(0x2226+563-0x241d),(0x5b2+6545-0x1f06),(0x8b+2515-0xa20),(0x1280+1125-0x16a6),
-(0x1a3a+2774-0x246f),(0x8ba+5716-0x1ecd),(0xe82+727-0x1117),(0x780+4381-0x185a),
-(0x6cd+4589-0x1876),(0x667+1167-0xab1),(0x1feb+1408-0x2525),(0x475+3020-0xffa),
-(0x49+8255-0x2040),(0x55b+2011-0xced),(0x168a+2075-0x1e5b),(0x1561+1197-0x19c3),
-(0x19ff+2403-0x2316),(0x129f+2812-0x1d4e),(0x8e9+1227-0xd66),(0x57d+5893-0x1c33)
-,(0x2fa+4363-0x13b5),(0x596+8070-0x24cb),(0x15d8+244-0x167a),(0x464+4174-0x145f)
-,(0x392+3963-0x12b9),(0x600+743-0x892),(0x3ef+5104-0x1789),(0xa19+2515-0x1395),
-(0x3d9+2333-0xc9e),(0x6a+8758-0x2247),(0x8e8+2060-0x109a),(0xe5b+2471-0x173e),
-(0x600+3085-0x1137),(0x4af+2804-0xed2),(0x87d+1531-0xd9c),(0x1650+1809-0x1cba),
-(0x1a10+1894-0x20b7),(0xc5+5396-0x1578),(0x788+2305-0x1027),(0x7f5+4792-0x1a4a),
-(0x1a4b+398-0x1b75),(0x1b38+2457-0x246c),(0x1311+713-0x1574),(0xa7c+7232-0x2655)
-,(0x190a+1373-0x1dff),(0x938+1721-0xf88),(0x212a+1470-0x267e),
-(0x24c+9001-0x250a),(0xa98+6259-0x229f),(0x642+4366-0x16e3),(0x934+7222-0x24fc),
-(0xe5c+1805-0x14fa),(0xd90+3901-0x1c5d),(0x3bb+358-0x4b0),(0xbf6+2758-0x164a),
-(0x9c0+7021-0x24ba),(0x10d5+3190-0x1cd7),(0x381+6774-0x1d82),(0x603+6043-0x1d28)
-,(0x834+312-0x8f5),(0x1283+654-0x1499),(0x524+146-0x53d),(0x61d+6407-0x1eaa),
-(0x1cb+6832-0x1b97),(0x418+6404-0x1c26),(0x18ec+3603-0x260e),(0x468+6396-0x1c68)
-,(0x6e8+42-0x632)};int Bytes2String(const unsigned char*pSrc,char*pDst,int
-nSrcLength){const char tab[]="0123456789ABCDEF";int i=(0x75c+7147-0x2347);if(
-pSrc==NULL||pDst==NULL||nSrcLength<(0x193+3795-0x1066)){return-(0x634+104-0x69b)
-;}for(i=(0x1995+1934-0x2123);i<nSrcLength;i++){*pDst++=tab[*pSrc>>
-(0x9a6+3105-0x15c3)];*pDst++=tab[*pSrc&(0x521+7604-0x22c6)];pSrc++;}*pDst='\0';
-return nSrcLength*(0x10ca+3408-0x1e18);}int String2Bytes(const char*pSrc,
-unsigned char*pDst,int nSrcLength){int i=(0x6ed+3989-0x1682);if(pSrc==NULL||pDst
-==NULL||nSrcLength<(0x1004+3806-0x1ee2)){return-(0xb04+3417-0x185c);}for(i=
-(0x6f5+5463-0x1c4c);i<nSrcLength;i+=(0x695+3918-0x15e1)){if(*pSrc>=
-((char)(0x12af+2304-0x1b7f))&&*pSrc<=((char)(0x14d+7616-0x1ed4))){*pDst=(*pSrc-
-((char)(0x3d7+2234-0xc61)))<<(0x2534+104-0x2598);}else{*pDst=((toupper(*pSrc)-
-((char)(0xd62+2615-0x1758)))+(0x21ba+175-0x225f))<<(0x374+6515-0x1ce3);}pSrc++;
-if(*pSrc>=((char)(0x1a73+162-0x1ae5))&&*pSrc<=((char)(0x14a3+1143-0x18e1))){*
-pDst|=*pSrc-((char)(0xeed+2198-0x1753));}else{*pDst|=(toupper(*pSrc)-
-((char)(0x57d+8328-0x25c4)))+(0x1de8+281-0x1ef7);}pSrc++;pDst++;}return
-nSrcLength/(0x89d+342-0x9f1);}int EncodeUcs2(const char*pSrc,unsigned char*pDst,
-int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x19d+7081-0x1d46)){
-return-(0xd25+4331-0x1e0f);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);return
- nSrcLength/(0x19a5+1111-0x1dfa);}int Encode7bit(const char*pSrc,unsigned char*
-pDst,int nSrcLength){int nSrc;int nDst;int nChar;unsigned char nLeft=
-(0x412+478-0x5f0);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x885+1401-0xdfe)){
-return-(0x1b8c+93-0x1be8);}nSrc=(0x2a7+7847-0x214e);nDst=(0xda3+4644-0x1fc7);
-while(nSrc<nSrcLength){nChar=nSrc&(0x1472+3786-0x2335);if(nChar==
-(0x245+5875-0x1938)){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>
-(0xe47+276-0xf5a))&&(nSrc==(nSrcLength-(0x6e1+1435-0xc7b)))){nDst++;}}else{*pDst
-=(*pSrc<<((0x182+5017-0x1513)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst++;}
-pSrc++;nSrc++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst,
-UINT8 TP_FCS){SINT32 nLength=(0x524+2979-0x10c7);SINT32 nDstLength=
-(0x7d6+2931-0x1349);UINT8 buf[(0xd76+2649-0x16cf)]={(0x58f+1368-0xae7)};if(NULL
-==pDst){return-(0x5e1+1761-0xcc1);}if(TP_FCS!=(0x849+2794-0x1333)){buf[
-(0x16b7+2108-0x1ef3)]=(0x5b4+2814-0x10b2);buf[(0x8f9+2173-0x1175)]=TP_FCS;buf[
-(0x168d+1128-0x1af3)]=(0x18f5+2478-0x22a3);nDstLength+=Bytes2String(buf,&pDst[
-nDstLength],(0x1455+1253-0x1937));}else{buf[(0x113a+2362-0x1a74)]=
-(0x1e00+1023-0x21ff);buf[(0x84c+2-0x84d)]=(0x1e98+669-0x2135);nDstLength+=
-Bytes2String(buf,&pDst[nDstLength],(0x1ae0+558-0x1d0c));}return nDstLength;}
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,(0x3e0+2042-0xb7a),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x311+5920-0x19d6),(0x1a9a+1595-0x20c7),(0xf1+2444-0xa61),(0x208a+597-0x22d6),
+NON_GSM,(0x236+3629-0x1044),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x3d5+4767-0x1617),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x10b4+230-0x113e),
+NON_GSM,(0x1c43+1905-0x23a9),NON_GSM,NON_GSM,NON_GSM,(0xbd8+2901-0x16cf),NON_GSM
+,NON_GSM,(0xbf0+2837-0x16e7),(0x255f+189-0x259d),NON_GSM,NON_GSM,NON_GSM,
+(0x20b9+1681-0x26cf),(0x1185+3097-0x1d8f),(0xe93+3027-0x1a49),NON_GSM,
+(0x17dc+3747-0x267b),(0x432+8099-0x23d0),NON_GSM,NON_GSM,(0x407+7224-0x2038),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x7c8+6106-0x1f25),(0x31f+6763-0x1d82),NON_GSM,
+NON_GSM,NON_GSM,(0x13e1+3313-0x2056),NON_GSM,(0x1045+4187-0x2094),
+(0x113f+4948-0x248d),NON_GSM,NON_GSM,(0x2c0+5829-0x1907),NON_GSM,NON_GSM,NON_GSM
+};const unsigned short zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={
+(0x126c+3778-0x20ee),(0xdb7+4979-0x2087),(0x1e4+7829-0x2055),(0x1db+3341-0xe43),
+(0x1090+1468-0x1562),(0xb43+3092-0x166e),(0x162f+836-0x1879),(0xdb8+5522-0x225d)
+,(0x1253+1664-0x17e0),(0xb74+5099-0x1e78),(0x61d+5318-0x1ad9),
+(0x649+7310-0x2203),(0x9b2+668-0xb5a),(0x2fb+2322-0xc00),(0x17c7+3095-0x231d),
+(0xfdb+1297-0x140b),(0x457+9312-0x2523),(0x156+1065-0x520),(0x1d15+1017-0x2064),
+(0xbe3+3723-0x19a7),(0x684+625-0x835),(0x25a3+2022-0xb6b),(0x1cd+2016-0x94f),
+(0x10c+4198-0x1116),(0x26b5+1699-0xcac),(0x2254+930-0x2523),(0xe1d+5679-0x23d0),
+(0x10a3+1647-0x1672),(0x267+8399-0x2274),(0x4e3+4719-0x1670),(0x236c+931-0x2645)
+,(0x1cb+9036-0x244e),(0x183+7848-0x200b),(0x72d+6885-0x21f1),(0xc61+1094-0x1085)
+,(0xd71+4991-0x20cd),(0x1ecd+635-0x2098),(0x1bfd+235-0x1cc3),
+(0x133a+1365-0x1869),(0x54f+1872-0xc78),(0x1b21+2674-0x256b),
+(0x1345+2039-0x1b13),(0x579+8579-0x26d2),(0xe23+6131-0x25eb),(0x47b+7617-0x2210)
+,(0x9f8+4924-0x1d07),(0x2c3+9056-0x25f5),(0x995+2029-0x1153),
+(0x1c59+1573-0x224e),(0xc7a+1914-0x13c3),(0x11c6+1070-0x15c2),
+(0x593+6467-0x1ea3),(0x331+4589-0x14ea),(0x145a+890-0x179f),(0x1bc9+174-0x1c41),
+(0x1459+691-0x16d5),(0xbc7+6986-0x26d9),(0x23f9+201-0x2489),(0xc2c+1758-0x12d0),
+(0x886+4138-0x1875),(0x90d+5891-0x1fd4),(0x75b+5013-0x1ab3),(0x4a4+7510-0x21bc),
+(0x7a8+344-0x8c1),(0x4dd+2262-0xce6),(0x3c4+413-0x520),(0x7ad+5140-0x1b7f),
+(0xd8a+3823-0x1c36),(0x1ec1+1648-0x24ed),(0xc69+1316-0x1148),(0x586+1595-0xb7b),
+(0x26f+270-0x336),(0x333+5869-0x19d8),(0x38b+6420-0x1c56),(0x1b08+2529-0x249f),
+(0xb07+3506-0x186e),(0xef9+4023-0x1e64),(0x1f6d+1695-0x25bf),(0x5a7+6853-0x201e)
+,(0xde9+994-0x117c),(0x662+6708-0x2046),(0x42f+8825-0x2657),(0x585+2805-0x1028),
+(0x93+8216-0x2058),(0x161b+2027-0x1db2),(0x17c6+418-0x1913),(0x1674+1776-0x1d0e)
+,(0x783+1813-0xe41),(0xda2+5457-0x229b),(0x11b5+2480-0x1b0c),(0xa59+4491-0x1b8a)
+,(0x653+5659-0x1bab),(0xaff+5343-0x1f09),(0xe61+4095-0x1d86),
+(0x10a5+3606-0x1ddf),(0x6a8+4422-0x1747),(0x10fd+5338-0x2559),(0x1f1b+41-0x1ee3)
+,(0x34f+1056-0x70d),(0x480+1398-0x993),(0x26a+1380-0x76a),(0x50f+2405-0xe0f),
+(0x15d+2620-0xb33),(0x316+3816-0x1197),(0x2119+390-0x2237),(0x21f0+853-0x24dc),
+(0x1092+4549-0x21ed),(0x1485+3567-0x2209),(0x2b2+8394-0x2310),
+(0x1ddd+1197-0x221d),(0x89a+2278-0x1112),(0x1ddd+1856-0x24ae),
+(0x2511+387-0x2624),(0x8bd+3292-0x1528),(0x293+2632-0xc69),(0x648+106-0x63f),
+(0x20d2+1449-0x2607),(0x19a2+1110-0x1d83),(0x1108+3305-0x1d7b),
+(0xb08+5135-0x1ea0),(0x3dc+806-0x68a),(0x59f+232-0x60e),(0x980+2073-0x111f),
+(0x1d48+2341-0x258a),(0xa3b+5070-0x1d14),(0x12cb+3787-0x2136),
+(0x1a8f+2885-0x24d8),(0x2237+1296-0x2667)};const unsigned short
+zte_sms_GSMDefault_To_UCS2_Table[]={(0x144f+1481-0x19d8),(0x91b+4128-0x1898),
+(0x8ef+1557-0xee0),(0x3aa+2500-0xcc9),(0xee2+4125-0x1e17),(0xf7c+3528-0x1c5b),
+(0x1392+5149-0x26b6),(0x9a5+1595-0xef4),(0x7b1+5056-0x1a7f),(0x14f6+1299-0x1942)
+,(0x50+588-0x292),(0x1ad2+1066-0x1e24),(0x19b4+3463-0x2643),(0x476+3732-0x12fd),
+(0xa31+2439-0x12f3),(0x2437+751-0x2641),(0x547+6165-0x19c8),(0x338+6000-0x1a49),
+(0x64d+7876-0x216b),(0x1cf2+2323-0x2272),(0x173a+4121-0x23b8),
+(0x1b85+118-0x1852),(0x674+1620-0x928),(0xb44+2555-0x1197),(0x1f86+365-0x1d50),
+(0x11a2+126-0xe88),(0x1669+1088-0x170b),(0x702+8131-0x2625),(0x153+4307-0x1160),
+(0x2532+249-0x2545),(0xe17+1889-0x1499),(0x1017+585-0x1197),(0xce7+652-0xf53),
+(0x64+9603-0x25c6),(0x9d9+7044-0x253b),(0xb7d+5665-0x217b),(0x1394+4858-0x25ea),
+(0xa65+6328-0x22f8),(0x434+3071-0x100d),(0xb22+3-0xafe),(0x191f+957-0x1cb4),
+(0xeb2+3176-0x1af1),(0xc6+3383-0xdd3),(0x1b42+2864-0x2647),(0x686+6103-0x1e31),
+(0x10f3+3679-0x1f25),(0x10fc+40-0x10f6),(0xde9+1438-0x1358),(0x1658+729-0x1901),
+(0x995+1394-0xed6),(0x475+3042-0x1025),(0xc21+3204-0x1872),(0x2dd+548-0x4cd),
+(0x77c+5821-0x1e04),(0xda+5881-0x179d),(0x829+3034-0x13cc),(0x16a9+1484-0x1c3d),
+(0xfc1+5849-0x2661),(0x746+96-0x76c),(0x18ed+1819-0x1fcd),(0x898+275-0x96f),
+(0x969+7400-0x2614),(0x884+60-0x882),(0xeb8+4730-0x20f3),(0x1139+3240-0x1d40),
+(0x20b6+300-0x21a1),(0x6a9+6796-0x20f3),(0x1afc+181-0x1b6e),(0x987+3702-0x17b9),
+(0x1ae5+987-0x1e7b),(0x145+73-0x148),(0x61c+5089-0x19b6),(0x2056+681-0x22b7),
+(0x11f+2055-0x8dd),(0x131f+4716-0x2541),(0x10e9+3236-0x1d42),(0x6ad+2169-0xeda),
+(0x4e3+5283-0x1939),(0x158d+3998-0x24dd),(0x1652+1182-0x1aa1),
+(0x1149+1534-0x16f7),(0xbb2+982-0xf37),(0xfc3+3188-0x1be5),(0x8aa+6048-0x1ff7),
+(0x1a56+135-0x1a89),(0x4dd+3271-0x114f),(0x334+4776-0x1586),(0x1ec5+587-0x20b9),
+(0x5cb+3941-0x14d8),(0x743+7340-0x2396),(0x638+2589-0xffb),(0x17c6+1658-0x1d7c),
+(0x908+6744-0x228a),(0x228+4820-0x142b),(0x12a8+2577-0x1bdd),(0xff3+5989-0x26b1)
+,(0x1652+3848-0x249b),(0x45b+5551-0x19a9),(0x1c0f+1473-0x216e),
+(0x19e1+2181-0x2203),(0xa05+6965-0x24d6),(0x1b59+858-0x1e4e),
+(0x107a+1464-0x15cc),(0x908+7596-0x264d),(0xa7b+222-0xaf1),(0x11ca+3193-0x1dda),
+(0xd0b+2607-0x16d0),(0x1f2f+1631-0x2523),(0x107a+4837-0x22f3),
+(0xd38+5174-0x2101),(0x1386+968-0x16e0),(0x4bd+6006-0x1bc4),(0xbb7+639-0xdc6),
+(0xa1+6138-0x182a),(0xc83+1766-0x12f7),(0x16f3+3685-0x24e5),(0x1462+146-0x1480),
+(0x3ca+1964-0xb01),(0x925+7178-0x24b9),(0xc29+4398-0x1ce0),(0xa26+937-0xd57),
+(0x921+839-0xbef),(0x11a9+3904-0x206f),(0x685+1775-0xc90),(0x1f8+8853-0x2397),
+(0x1e5f+716-0x203a),(0x1e7+5696-0x172b),(0xcd4+2036-0x13e8)};int Bytes2String(
+const unsigned char*pSrc,char*pDst,int nSrcLength){const char tab[]=
+"0123456789ABCDEF";int i=(0x1e26+1124-0x228a);if(pSrc==NULL||pDst==NULL||
+nSrcLength<(0x61b+1231-0xaea)){return-(0x13a3+3998-0x2340);}for(i=
+(0xcab+556-0xed7);i<nSrcLength;i++){*pDst++=tab[*pSrc>>(0x139d+1073-0x17ca)];*
+pDst++=tab[*pSrc&(0x125a+1474-0x180d)];pSrc++;}*pDst='\0';return nSrcLength*
+(0x118+7392-0x1df6);}int String2Bytes(const char*pSrc,unsigned char*pDst,int
+nSrcLength){int i=(0x443+2577-0xe54);if(pSrc==NULL||pDst==NULL||nSrcLength<
+(0x4aa+1087-0x8e9)){return-(0xc1a+1924-0x139d);}for(i=(0x142+7831-0x1fd9);i<
+nSrcLength;i+=(0x103f+1507-0x1620)){if(*pSrc>=((char)(0x1117+4424-0x222f))&&*
+pSrc<=((char)(0x194d+1581-0x1f41))){*pDst=(*pSrc-((char)(0x4d4+1527-0xa9b)))<<
+(0xb78+3852-0x1a80);}else{*pDst=((toupper(*pSrc)-((char)(0xbf8+3455-0x1936)))+
+(0x2a4+7579-0x2035))<<(0x304+7777-0x2161);}pSrc++;if(*pSrc>=
+((char)(0xec4+806-0x11ba))&&*pSrc<=((char)(0x1d7+7613-0x1f5b))){*pDst|=*pSrc-
+((char)(0x1237+664-0x149f));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x131a+3934-0x2237)))+(0x187f+921-0x1c0e);}pSrc++;pDst++;}return
+nSrcLength/(0x631+3160-0x1287);}int EncodeUcs2(const char*pSrc,unsigned char*
+pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x306+1599-0x945)){
+return-(0x1344+4544-0x2503);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);
+return nSrcLength/(0x13b+3290-0xe13);}int Encode7bit(const char*pSrc,unsigned
+char*pDst,int nSrcLength){int nSrc;int nDst;int nChar;unsigned char nLeft=
+(0x37a+6820-0x1e1e);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x2ff+6120-0x1ae7)){
+return-(0x1605+38-0x162a);}nSrc=(0x1e3c+745-0x2125);nDst=(0xacb+5266-0x1f5d);
+while(nSrc<nSrcLength){nChar=nSrc&(0x447+5713-0x1a91);if(nChar==
+(0x1415+2950-0x1f9b)){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>
+(0x2514+437-0x26c8))&&(nSrc==(nSrcLength-(0x1c60+1765-0x2344)))){nDst++;}}else{*
+pDst=(*pSrc<<((0x65b+2163-0xec6)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst++;
+}pSrc++;nSrc++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst,
+UINT8 TP_FCS){SINT32 nLength=(0xcaa+4230-0x1d30);SINT32 nDstLength=
+(0xe6f+3851-0x1d7a);UINT8 buf[(0x8b7+6625-0x2198)]={(0xe28+742-0x110e)};if(NULL
+==pDst){return-(0x18f1+393-0x1a79);}if(TP_FCS!=(0x23e9+495-0x25d8)){buf[
+(0xf25+4772-0x21c9)]=(0x1085+3724-0x1f11);buf[(0xd10+2150-0x1575)]=TP_FCS;buf[
+(0xdf6+995-0x11d7)]=(0x86d+7423-0x256c);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0x16a4+2382-0x1fef));}else{buf[(0x3b+9296-0x248b)]=
+(0x2ad+6177-0x1ace);buf[(0x1be6+1452-0x2191)]=(0xf7b+5999-0x26ea);nDstLength+=
+Bytes2String(buf,&pDst[nDstLength],(0x305+320-0x443));}return nDstLength;}
unsigned long zUfiSms_ConvertAsciiToGsmDefault(const unsigned char*inputs,
-unsigned char*outputs,unsigned long len){unsigned long i=(0xf04+5086-0x22e2);
-unsigned long j=(0x9cd+7342-0x267b);unsigned long k=(0x1441+3388-0x217d);if(NULL
+unsigned char*outputs,unsigned long len){unsigned long i=(0x553+5905-0x1c64);
+unsigned long j=(0xd01+6345-0x25ca);unsigned long k=(0x54c+3175-0x11b3);if(NULL
==inputs||NULL==outputs){printf(
"\x73\x6d\x73\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73");
-return(0x6a6+3006-0x1264);}for(i=(0x12f+5453-0x167c);i<len;i++){j=inputs[i];if(
-g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x1f1+917-0x487)){outputs[k]=
+return(0x514+5751-0x1b8b);}for(i=(0x855+5644-0x1e61);i<len;i++){j=inputs[i];if(
+g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x2050+457-0x211a)){outputs[k]=
g_zUfiSms_AsciiToGsmdefaultTable[j];}else{outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0x1a5+1311-0x6bc);k++;outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&(0xadd+4986-0x1d58));}k++;}return k;}
-unsigned long zUfiSms_ConvertUcs2ToSpanish(const unsigned char*def,unsigned char
-*gsm_default,unsigned long len){unsigned long i=(0x159+1054-0x577);unsigned long
- k=(0xb4c+1266-0x103e);unsigned long p=(0x12f6+770-0x15f8);unsigned long tmp=
-(0xcf4+5399-0x220b);unsigned long s1=(0x192+2693-0xc17),s2=(0x994+1740-0x1060);
-unsigned long q=(0x6fc+7844-0x25a0);s1=sizeof(
+g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0x2606+150-0x2694);k++;outputs[k]=(
+g_zUfiSms_AsciiToGsmdefaultTable[j]&(0x13b+481-0x21d));}k++;}return k;}unsigned
+long zUfiSms_ConvertUcs2ToSpanish(const unsigned char*def,unsigned char*
+gsm_default,unsigned long len){unsigned long i=(0xd9+3013-0xc9e);unsigned long k
+=(0xd15+1992-0x14dd);unsigned long p=(0x1f8+9188-0x25dc);unsigned long tmp=
+(0x4fa+3618-0x131c);unsigned long s1=(0x115c+2099-0x198f),s2=
+(0x10eb+2200-0x1983);unsigned long q=(0x1c5+1294-0x6d3);s1=sizeof(
zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0x8f0+5957-0x2035)]);s2=sizeof(
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0x930+2843-0x144b)]);s2=sizeof(
Ucs2_To_Gsm7_SPANISH_Table_UCS)/sizeof(Ucs2_To_Gsm7_SPANISH_Table_UCS[
-(0x23ac+641-0x262d)]);for(i=(0xa4a+2235-0x1305);i<len;i++){if(def[i]==
-(0x30f+8684-0x24fb)){i++;if(Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]!=NON_GSM){
+(0x1281+795-0x159c)]);for(i=(0x135a+4294-0x2420);i<len;i++){if(def[i]==
+(0x151b+2249-0x1de4)){i++;if(Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]!=NON_GSM){
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]==(0xc01+2738-0x1693)))
-{gsm_default[k]=(0x19a6+2980-0x252a);k++;continue;}for(q=(0xc60+5208-0x20b8);q<
-s1;q++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x62c+7654-0x2411)]
-){gsm_default[k]=(0x599+3846-0x1484);k++;gsm_default[k]=
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x3f+5489-0x15b0)];break;}}}else{tmp=(
-def[i]<<(0x1a0a+2310-0x2308))+def[i+(0x1e6+647-0x46c)];i++;if(tmp==8364){
-gsm_default[k]=(0x7cd+7413-0x24a7);k++;gsm_default[k]=(0x1a27+2989-0x256f);k++;}
-for(p=(0x12d8+1564-0x18f4);p<s2;p++){if(tmp==Ucs2_To_Gsm7_SPANISH_Table_UCS[p][
-(0x1cf+1204-0x682)]){gsm_default[k]=Ucs2_To_Gsm7_SPANISH_Table_UCS[p][
-(0x7e0+972-0xbac)];break;}}}k++;}gsm_default[k]='\0';return k;}unsigned long
-zUfiSms_ConvertUcs2ToPortuguese(const unsigned char*def,unsigned char*
-gsm_default,unsigned long len){unsigned long i=(0x47d+8499-0x25b0);unsigned long
- k=(0x5f+8291-0x20c2);unsigned long p=(0x10a4+734-0x1382);unsigned long tmp=
-(0xe6f+737-0x1150);unsigned long s1=(0x1680+2887-0x21c7),s2=(0xc25+1367-0x117c);
-unsigned long q=(0xd42+803-0x1065);s1=sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x1525+2182-0x1dab)]);s2=sizeof(
+Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x2071+204-0x211d)))
+{gsm_default[k]=(0x1613+1191-0x1a9a);k++;continue;}for(q=(0xcad+1451-0x1258);q<
+s1;q++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0xf91+5568-0x2550)]
+){gsm_default[k]=(0x9a1+87-0x9dd);k++;gsm_default[k]=
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x4f2+3949-0x145f)];break;}}}else{tmp=
+(def[i]<<(0x2e4+1514-0x8c6))+def[i+(0xca6+2415-0x1614)];i++;if(tmp==
+(0x22aa+3076-0xe02)){gsm_default[k]=(0x94b+4979-0x1ca3);k++;gsm_default[k]=
+(0x229+5830-0x188a);k++;}for(p=(0xd12+4692-0x1f66);p<s2;p++){if(tmp==
+Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0x1185+385-0x1305)]){gsm_default[k]=
+Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0x14ba+1250-0x199c)];break;}}}k++;}
+gsm_default[k]='\0';return k;}unsigned long zUfiSms_ConvertUcs2ToPortuguese(
+const unsigned char*def,unsigned char*gsm_default,unsigned long len){unsigned
+long i=(0x1a73+2162-0x22e5);unsigned long k=(0x20b+4991-0x158a);unsigned long p=
+(0x14e9+4019-0x249c);unsigned long tmp=(0xda1+3110-0x19c7);unsigned long s1=
+(0x472+751-0x761),s2=(0x112c+4991-0x24ab);unsigned long q=(0x496+2920-0xffe);s1=
+sizeof(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x9c1+6719-0x2400)]);s2=sizeof(
Ucs2_To_Gsm7_PORTUGUESE_Table_UCS)/sizeof(Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[
-(0x17f2+1032-0x1bfa)]);for(i=(0x74d+1124-0xbb1);i<len;i++){if(def[i]==
-(0xe2+3783-0xfa9)){i++;if(Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]!=NON_GSM){
+(0x1c52+897-0x1fd3)]);for(i=(0x207+890-0x581);i<len;i++){if(def[i]==
+(0x5a4+1861-0xce9)){i++;if(Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]!=NON_GSM){
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]==
-(0x1062+426-0x11ec))){gsm_default[k]=(0xa9+5789-0x1726);k++;continue;}for(q=
-(0xd9c+1630-0x13fa);q<s1;q++){if(def[i]==
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0xc1c+4070-0x1c01)]){gsm_default[k]
-=(0x71b+2758-0x11c6);k++;gsm_default[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex
-[q][(0x33b+5557-0x18f0)];break;}}}else{tmp=(def[i]<<(0xb11+5397-0x201e))+def[i+
-(0x671+5056-0x1a30)];i++;if(tmp==8364){gsm_default[k]=(0x852+7192-0x244f);k++;
-gsm_default[k]=(0xf8f+2868-0x1a5e);k++;continue;}for(p=(0xf3b+3043-0x1b1e);p<s2;
-p++){if(tmp==Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x462+4163-0x14a4)]){
-gsm_default[k]=Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x101+6032-0x1891)];break;}
-}}k++;}gsm_default[k]='\0';return k;}unsigned long
-zUfiSms_ConvertUcs2ToGsmDefault(const unsigned char*def,unsigned char*
-gsm_default,unsigned long len){unsigned long i=(0x177a+3534-0x2548);unsigned
-long k=(0xe1f+4859-0x211a);unsigned long p=(0x1ec6+450-0x2088);unsigned long tmp
-=(0x20dd+478-0x22bb);unsigned long s1=(0x573+7822-0x2401),s2=(0xeb+4464-0x125b);
-unsigned long q=(0x6b3+7521-0x2414);s1=sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[
-(0x93b+5617-0x1f2c)]);s2=sizeof(UCS2_To_GSMDefault_Table_UCS2)/sizeof(
-UCS2_To_GSMDefault_Table_UCS2[(0x98+5111-0x148f)]);for(i=(0x225f+232-0x2347);i<
-len;i++){if(def[i]==(0x5cc+4474-0x1746)){i++;if(UCS2_To_GSMDefault_Table_ASC[def
-[i]]!=NON_GSM){gsm_default[k]=UCS2_To_GSMDefault_Table_ASC[def[i]];k++;continue;
-}else if((UCS2_To_GSMDefault_Table_ASC[def[i]]==NON_GSM)&&(def[i]==
-(0x91c+468-0xad0))){gsm_default[k]=(0x911+4081-0x18e2);k++;continue;}for(q=
-(0x371+5723-0x19cc);q<s1;q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][
-(0xdca+241-0xeba)]){gsm_default[k]=(0x335+19-0x32d);k++;gsm_default[k]=
-zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x6b1+3649-0x14f2)];break;}}}else{tmp=(
-def[i]<<(0xb3b+495-0xd22))+def[i+(0xee8+5548-0x2493)];i++;if(tmp==8364){
-gsm_default[k]=(0x183f+509-0x1a21);k++;gsm_default[k]=(0x14d6+543-0x1690);k++;
-continue;}for(p=(0x553+3506-0x1305);p<s2;p++){if(tmp==
-UCS2_To_GSMDefault_Table_UCS2[p][(0x1a07+777-0x1d0f)]){gsm_default[k]=
-UCS2_To_GSMDefault_Table_UCS2[p][(0xf1d+2849-0x1a3e)];break;}}}k++;}gsm_default[
-k]='\0';return k;}UINT8 zUfiSms_TsIntToBcd(const UINT8 i){return(UINT8)(((i%
-(0x9ec+169-0xa8b))+((i/(0xf44+2179-0x17bd))<<(0x1075+4861-0x236e))));}void
+(0x1366+2227-0x1bf9))){gsm_default[k]=(0x1f4+6445-0x1b01);k++;continue;}for(q=
+(0xc23+2654-0x1681);q<s1;q++){if(def[i]==
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x952+5527-0x1ee8)]){gsm_default[k]
+=(0x1c86+2580-0x267f);k++;gsm_default[k]=
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0xf95+5661-0x25b2)];break;}}}else{
+tmp=(def[i]<<(0x2502+129-0x257b))+def[i+(0x24f+7866-0x2108)];i++;if(tmp==
+(0x22e1+5162-0x165f)){gsm_default[k]=(0x17f4+1462-0x1d8f);k++;gsm_default[k]=
+(0x121d+1395-0x172b);k++;continue;}for(p=(0x499+6359-0x1d70);p<s2;p++){if(tmp==
+Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x1183+4325-0x2267)]){gsm_default[k]=
+Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x65d+7140-0x2241)];break;}}}k++;}
+gsm_default[k]='\0';return k;}unsigned long zUfiSms_ConvertUcs2ToGsmDefault(
+const unsigned char*def,unsigned char*gsm_default,unsigned long len){unsigned
+long i=(0x686+938-0xa30);unsigned long k=(0x1cd7+1637-0x233c);unsigned long p=
+(0x144+1550-0x752);unsigned long tmp=(0xfcf+3520-0x1d8f);unsigned long s1=
+(0x246+378-0x3c0),s2=(0x214+8160-0x21f4);unsigned long q=(0x96d+482-0xb4f);s1=
+sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[(0xaa4+5394-0x1fb6)]);s2=sizeof(
+UCS2_To_GSMDefault_Table_UCS2)/sizeof(UCS2_To_GSMDefault_Table_UCS2[
+(0x7f2+6602-0x21bc)]);for(i=(0xbcc+4123-0x1be7);i<len;i++){if(def[i]==
+(0x1897+855-0x1bee)){i++;if(UCS2_To_GSMDefault_Table_ASC[def[i]]!=NON_GSM){
+gsm_default[k]=UCS2_To_GSMDefault_Table_ASC[def[i]];k++;continue;}else if((
+UCS2_To_GSMDefault_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x96b+3474-0x16dd))){
+gsm_default[k]=(0x399+8970-0x2683);k++;continue;}for(q=(0x100f+4922-0x2349);q<s1
+;q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x188f+2603-0x22b9)]){
+gsm_default[k]=(0x69b+1670-0xd06);k++;gsm_default[k]=
+zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x19e5+1130-0x1e4f)];break;}}}else{tmp=(
+def[i]<<(0x915+785-0xc1e))+def[i+(0xd4d+208-0xe1c)];i++;if(tmp==8364){
+gsm_default[k]=(0x354+1796-0xa3d);k++;gsm_default[k]=(0x689+1077-0xa59);k++;
+continue;}for(p=(0x102d+766-0x132b);p<s2;p++){if(tmp==
+UCS2_To_GSMDefault_Table_UCS2[p][(0x94b+2310-0x1250)]){gsm_default[k]=
+UCS2_To_GSMDefault_Table_UCS2[p][(0xc5c+871-0xfc3)];break;}}}k++;}gsm_default[k]
+='\0';return k;}UINT8 zUfiSms_TsIntToBcd(const UINT8 i){return(UINT8)(((i%
+(0x148c+2090-0x1cac))+((i/(0xbaa+6576-0x2550))<<(0x1e9+5088-0x15c5))));}void
zUfiSms_DecodeRelativeTime(UINT8 iValidTime,T_zUfiSms_TimeStamp*ptTimeStamp){
-uint32 i=(0x8b+5750-0x1701);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
-(0xead+5610-0x2497),sizeof(wms_timestamp_s_type));if(iValidTime<
-(0x96b+6350-0x21a9)){i=(iValidTime+(0x2421+204-0x24ec))*(0x5e0+4756-0x186f);
-ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0x436+1225-0x8c3)));
-ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0xa39+5545-0x1fa6)));}
-else if(iValidTime<(0xfac+1282-0x1407)){i=(iValidTime-(0x9af+2789-0x1405))*
-(0x15b1+3270-0x2259);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
-(0x548+5542-0x1ae2)+i/(0xcd3+5293-0x2144)));ptTimeStamp->minute=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0xbe9+4173-0x1bfa)));}else if(iValidTime<
-(0x28f+3002-0xd84)){i=iValidTime-(0x6df+7659-0x2424);ptTimeStamp->month=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i/(0x543+4697-0x177e)));ptTimeStamp->day=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0x5a8+7520-0x22ea)));}else{i=(iValidTime-
-(0xcc5+5330-0x20d7))*(0x1692+467-0x185e);ptTimeStamp->year=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i/(0x2d8+1545-0x774)));ptTimeStamp->month=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)((i%(0x1461+5145-0x270d))/(0xb55+2300-0x1433)));
-ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0xfbf+2100-0x1686))%
-(0x120c+4089-0x21e7)));}}else{printf(
+uint32 i=(0x1685+1100-0x1ad1);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
+(0x1a16+200-0x1ade),sizeof(wms_timestamp_s_type));if(iValidTime<
+(0x59c+670-0x7aa)){i=(iValidTime+(0x70a+3385-0x1442))*(0xc2a+4878-0x1f33);
+ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0x1bbc+678-0x1e26)));
+ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0x4f9+3574-0x12b3)));}
+else if(iValidTime<(0x134f+1709-0x1955)){i=(iValidTime-(0x9aa+944-0xccb))*
+(0x39f+3561-0x116a);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
+(0xf68+755-0x124f)+i/(0x3bf+6240-0x1be3)));ptTimeStamp->minute=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0x1490+4295-0x251b)));}else if(iValidTime<
+(0x295+2682-0xc4a)){i=iValidTime-(0xf0c+2262-0x173c);ptTimeStamp->month=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i/(0x21c+8581-0x2383)));ptTimeStamp->day=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0xbad+6668-0x259b)));}else{i=(iValidTime-
+(0x792+3671-0x1529))*(0x1203+1063-0x1623);ptTimeStamp->year=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i/(0x1cfb+514-0x1d90)));ptTimeStamp->month=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)((i%(0x136b+1406-0x177c))/(0x1e0+7341-0x1e6f)));
+ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0xdf8+4348-0x1d87))%
+(0x1126+3120-0x1d38)));}}else{printf(
"\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=(0x1462+1263-0x1951);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}
-for(i=(0xce8+2208-0x1588);i<iLen;i++){pIntArray[i]=pCharArray[i]-
-((char)(0x6ca+4913-0x19cb));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
+i=(0x179d+745-0x1a86);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}
+for(i=(0x1660+1941-0x1df5);i<iLen;i++){pIntArray[i]=pCharArray[i]-
+((char)(0xf41+4032-0x1ed1));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
T_zUfiSms_SubmitTpdu*ptSubmit,T_zUfiSms_ConcatInfo*ptConcatSms,
-T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0x891+629-0xb06);if(ptConcatSms->
-total_msg>(0xe09+5568-0x23c8)){g_zUfiSms_SendingSms.TP_UDHI=(0x190b+2424-0x2282)
-;g_zUfiSms_SendingSms.TP_UD[(0x57d+7714-0x239f)]=(0x1595+1673-0x1c19);
-g_zUfiSms_SendingSms.TP_UD[(0x389+4159-0x13c7)]=(0x426+6516-0x1d95);
-g_zUfiSms_SendingSms.TP_UD[(0xdf0+2592-0x180e)]=(0x23a+4191-0x1296);
-g_zUfiSms_SendingSms.TP_UD[(0x859+1710-0xf04)]=(char)ptDbSaveData->concat_info[
-(0x37c+7844-0x2220)]%(0xc9a+1038-0xfa9);g_zUfiSms_SendingSms.TP_UD[
-(0x1018+5700-0x2658)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
-(0xa63+6152-0x2266)]=(char)ptConcatSms->current_sending+(0x20c+4789-0x14c0);
-g_zUfiSms_SendingSms.TP_UD[(0x244+8018-0x2190)]=(0xd52+211-0xe1f);for(i=
-(0x8b3+2744-0x136b);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD
-[i+(0x105f+4368-0x2168)]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.
-TP_UDLength=ptSubmit->user_data.sm_len+(0x480+5227-0x18e4);}else{for(i=
-(0x150c+4087-0x2503);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.
-TP_UD[i]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.TP_UDLength=
-ptSubmit->user_data.sm_len;}}void zUfiSms_FillGlobalTpudUcs2(
-T_zUfiSms_SubmitTpdu*ptSubmit,T_zUfiSms_ConcatInfo*ptConcatSms,
-T_zUfiSms_DbStoreData*ptDbSaveData){if(ptConcatSms->total_msg>(0x680+632-0x8f7))
-{g_zUfiSms_SendingSms.TP_UDHI=(0x520+5951-0x1c5e);g_zUfiSms_SendingSms.TP_UD[
-(0x63f+1662-0xcbd)]=(0xf09+5044-0x22b8);g_zUfiSms_SendingSms.TP_UD[
-(0xb85+5298-0x2036)]=(0x1bc2+323-0x1d00);g_zUfiSms_SendingSms.TP_UD[
-(0xa62+7329-0x2701)]=(0x952+2638-0x139d);g_zUfiSms_SendingSms.TP_UD[
-(0x11f2+1318-0x1715)]=(char)ptDbSaveData->concat_info[(0xad7+4769-0x1d78)]%
-(0x665+3423-0x12c5);g_zUfiSms_SendingSms.TP_UD[(0x758+4231-0x17db)]=(char)
-ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[(0x889+7315-0x2517)]=(char)
-ptConcatSms->current_sending+(0x16c0+3356-0x23db);(void)Bytes2String(ptSubmit->
-user_data.sm_data,&g_zUfiSms_SendingSms.TP_UD[(0x320+6931-0x1e2d)],ptSubmit->
-user_data.sm_len);}else{(void)Bytes2String(ptSubmit->user_data.sm_data,
+T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0x7f3+877-0xb60);if(ptConcatSms->
+total_msg>(0x1ea1+1576-0x24c8)){g_zUfiSms_SendingSms.TP_UDHI=(0x924+6763-0x238e)
+;g_zUfiSms_SendingSms.TP_UD[(0x398+2162-0xc0a)]=(0x72a+820-0xa59);
+g_zUfiSms_SendingSms.TP_UD[(0x1d0a+1170-0x219b)]=(0x2ef+2767-0xdb9);
+g_zUfiSms_SendingSms.TP_UD[(0x13bb+4751-0x2648)]=(0x1314+4711-0x2578);
+g_zUfiSms_SendingSms.TP_UD[(0x3a2+8593-0x2530)]=(char)ptDbSaveData->concat_info[
+(0x1759+1072-0x1b89)]%(0x87b+1592-0xdb4);g_zUfiSms_SendingSms.TP_UD[
+(0xb49+4687-0x1d94)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
+(0x892+7278-0x24fb)]=(char)ptConcatSms->current_sending+(0x1ee8+1338-0x2421);
+g_zUfiSms_SendingSms.TP_UD[(0xa46+6554-0x23da)]=(0x6ad+7582-0x2445);for(i=
+(0x8e4+435-0xa97);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD[i
++(0x14e2+4193-0x253c)]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.
+TP_UDLength=ptSubmit->user_data.sm_len+(0xc6f+6673-0x2679);}else{for(i=
+(0xbe4+1480-0x11ac);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD
+[i]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.TP_UDLength=ptSubmit->
+user_data.sm_len;}}void zUfiSms_FillGlobalTpudUcs2(T_zUfiSms_SubmitTpdu*ptSubmit
+,T_zUfiSms_ConcatInfo*ptConcatSms,T_zUfiSms_DbStoreData*ptDbSaveData){if(
+ptConcatSms->total_msg>(0x366+1024-0x765)){g_zUfiSms_SendingSms.TP_UDHI=
+(0xfb3+3073-0x1bb3);g_zUfiSms_SendingSms.TP_UD[(0x7c+6919-0x1b83)]=
+(0xf35+3643-0x1d6b);g_zUfiSms_SendingSms.TP_UD[(0xb7c+1353-0x10c4)]=
+(0x1368+2251-0x1c2e);g_zUfiSms_SendingSms.TP_UD[(0x583+5061-0x1946)]=
+(0x1d92+687-0x203e);g_zUfiSms_SendingSms.TP_UD[(0x4b5+321-0x5f3)]=(char)
+ptDbSaveData->concat_info[(0x1669+2191-0x1ef8)]%(0x12f3+2277-0x1ad9);
+g_zUfiSms_SendingSms.TP_UD[(0x671+4958-0x19cb)]=(char)ptConcatSms->total_msg;
+g_zUfiSms_SendingSms.TP_UD[(0xe09+3785-0x1ccd)]=(char)ptConcatSms->
+current_sending+(0xf1c+2487-0x18d2);(void)Bytes2String(ptSubmit->user_data.
+sm_data,&g_zUfiSms_SendingSms.TP_UD[(0x1c4+5677-0x17eb)],ptSubmit->user_data.
+sm_len);}else{(void)Bytes2String(ptSubmit->user_data.sm_data,
g_zUfiSms_SendingSms.TP_UD,ptSubmit->user_data.sm_len);}}unsigned char
-zUfiSms_Low2High(unsigned char x){if(x>=((char)(0x930+1881-0x1028))&&x<
-((char)(0xa06+955-0xd5a))){x=(x-((char)(0x167f+71-0x1665)))+
-((char)(0x16d6+958-0x1a53));}return x;}unsigned char zUfiSms_Char2Dec(unsigned
-char x){unsigned char d=(0x207+1746-0x8d9);if(x>=((char)(0x1b52+838-0x1e57))&&x<
-((char)(0xb49+5180-0x1f3e))){d=(x-((char)(0x113d+3883-0x2027)))+
-(0x131+7629-0x1ef4);}else{d=x-((char)(0xd0b+6212-0x251f));}return d;}unsigned
+zUfiSms_Low2High(unsigned char x){if(x>=((char)(0x248+6899-0x1cda))&&x<
+((char)(0xc8d+5084-0x2002))){x=(x-((char)(0x1074+2352-0x1943)))+
+((char)(0x1c0+2484-0xb33));}return x;}unsigned char zUfiSms_Char2Dec(unsigned
+char x){unsigned char d=(0x7e3+787-0xaf6);if(x>=((char)(0x1a6a+1864-0x2171))&&x<
+((char)(0x993+4374-0x1a62))){d=(x-((char)(0xe7d+6230-0x2692)))+
+(0x2258+128-0x22ce);}else{d=x-((char)(0x714+4360-0x17ec));}return d;}unsigned
char zUfiSms_Char2Byte(unsigned char a,unsigned char b){unsigned char data=
-(0x6a4+2535-0x108b);unsigned char l=(0x1690+127-0x170f),h=(0x710+4816-0x19e0);a=
+(0x985+4315-0x1a60);unsigned char l=(0xc5a+6592-0x261a),h=(0x76a+1361-0xcbb);a=
zUfiSms_Low2High(a);b=zUfiSms_Low2High(b);h=zUfiSms_Char2Dec(a);l=
-zUfiSms_Char2Dec(b);data=h*(0xea5+2528-0x1875)+l;return data;}void
+zUfiSms_Char2Dec(b);data=h*(0x1985+2476-0x2321)+l;return data;}void
zUfiSms_Str2Bytes(unsigned char*text,int text_len,unsigned char*data,int
-data_len){int i=(0x1e23+1206-0x22d9);while((0x9a3+5255-0x1e28)*i+
-(0x580+7628-0x234b)<text_len){data[i]=zUfiSms_Char2Byte(text[
-(0x12f2+1678-0x197e)*i],text[(0x1b97+2379-0x24e0)*i+(0x4a9+1586-0xada)]);i++;}}
-int zUfiSms_SplitString(char*input,char***output,char cMatchChar){int src=
-(0x7c5+6981-0x230a);int dst=(0x12db+445-0x1498);int count=(0x38+1776-0x728);int
-size=(0x113a+2449-0x1ac3);char quoted=(0x218+1804-0x924);char**tmpout=NULL;*
-output=(char**)malloc(sizeof(char*)*size);if(NULL==*output){return-
-(0x384+5617-0x1974);}(*output)[count++]=input;for(src=dst=(0x763+6020-0x1ee7);
+data_len){int i=(0x338+8623-0x24e7);while((0x986+1148-0xe00)*i+
+(0x1b9b+688-0x1e4a)<text_len){data[i]=zUfiSms_Char2Byte(text[
+(0x130d+2813-0x1e08)*i],text[(0x534+6083-0x1cf5)*i+(0x5d7+40-0x5fe)]);i++;}}int
+zUfiSms_SplitString(char*input,char***output,char cMatchChar){int src=
+(0x20bd+1095-0x2504);int dst=(0x6dd+2444-0x1069);int count=(0x1ae8+1700-0x218c);
+int size=(0x1092+3406-0x1dd8);char quoted=(0xf2a+4518-0x20d0);char**tmpout=NULL;
+*output=(char**)malloc(sizeof(char*)*size);if(NULL==*output){return-
+(0xc7d+4759-0x1f13);}(*output)[count++]=input;for(src=dst=(0x346+802-0x668);
input[src];){char cInputChar=input[src];if(!quoted&&cInputChar==cMatchChar){
-input[dst++]=(0x17e1+2530-0x21c3);while(input[++src]&&(int)isspace(input[src])){
-};if(count>=size){size+=(0x26f+6419-0x1b72);tmpout=(char**)realloc(*output,
-sizeof(char*)*size);if(NULL==tmpout){return-(0x6d2+190-0x78f);}*output=tmpout;}(
-*output)[count++]=input+dst;}else if(!quoted&&(cInputChar=='\''||cInputChar==
-((char)(0x3a6+5949-0x1ac1)))){quoted=cInputChar;src++;}else if(cInputChar==
-quoted){quoted=(0x45+7811-0x1ec8);src++;}else{if(cInputChar=='\\'&"ed!='\'')
-{src++;cInputChar=input[src];if(!cInputChar){free(*output);*output=NULL;return-
-(0x2d5+4405-0x1409);}}input[dst++]=cInputChar;src++;}}input[dst]=
-(0x168b+3450-0x2405);if(quoted){free(*output);*output=NULL;return-
-(0x22ef+370-0x2460);}return count;}int zUfiSms_atohex(char c){int result=
-(0xa57+2571-0x1462);if(c>=((char)(0x170c+660-0x1970))&&c<=
-((char)(0x1c2b+1795-0x22f5))){result=c-((char)(0x72+3568-0xe32));}else if(c>=
-((char)(0x7b6+5279-0x1bf4))&&c<=((char)(0x179+1431-0x6aa))){result=(c-
-((char)(0xc34+4183-0x1c2a)))+(0x89a+35-0x8b3);}else if(c>=
-((char)(0x10df+4378-0x21b8))&&c<=((char)(0x77f+2650-0x1193))){result=(c-
-((char)(0x9a+9132-0x2405)))+(0x708+6450-0x2030);}else{at_print(LOG_DEBUG,
+input[dst++]=(0x371+4480-0x14f1);while(input[++src]&&(int)isspace(input[src])){}
+;if(count>=size){size+=(0x75a+7470-0x2478);tmpout=(char**)realloc(*output,sizeof
+(char*)*size);if(NULL==tmpout){return-(0x412+7745-0x2252);}*output=tmpout;}(*
+output)[count++]=input+dst;}else if(!quoted&&(cInputChar=='\''||cInputChar==
+((char)(0x1bbc+232-0x1c82)))){quoted=cInputChar;src++;}else if(cInputChar==
+quoted){quoted=(0x1e71+555-0x209c);src++;}else{if(cInputChar=='\\'&"ed!='\''
+){src++;cInputChar=input[src];if(!cInputChar){free(*output);*output=NULL;return-
+(0x24a+9217-0x264a);}}input[dst++]=cInputChar;src++;}}input[dst]=
+(0x1de5+2141-0x2642);if(quoted){free(*output);*output=NULL;return-
+(0xc36+1790-0x1333);}return count;}int zUfiSms_atohex(char c){int result=
+(0x23b+5603-0x181e);if(c>=((char)(0x485+2738-0xf07))&&c<=
+((char)(0x4cb+3985-0x1423))){result=c-((char)(0x584+7524-0x22b8));}else if(c>=
+((char)(0x1773+1789-0x1e0f))&&c<=((char)(0xd7b+1664-0x1395))){result=(c-
+((char)(0xf34+2287-0x17c2)))+(0x827+4579-0x1a00);}else if(c>=
+((char)(0xf55+2541-0x1901))&&c<=((char)(0xab3+238-0xb5b))){result=(c-
+((char)(0x183+5108-0x1536)))+(0xa8+3830-0xf94);}else{at_print(LOG_DEBUG,
"\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=(0x245b+581-0x26a0);int high=
-(0x14bb+1506-0x1a9d);if(in_ptr==NULL||out_ptr==NULL){printf(
+int iLength,unsigned char*out_ptr){int low=(0x785+6760-0x21ed);int high=
+(0x1364+2502-0x1d2a);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>(0x28a+3508-0x103e)){low=in_ptr[iLength-
-(0x1950+2005-0x2124)]&(0xe70+5647-0x2470);high=(in_ptr[iLength-
-(0xba0+1634-0x1201)]&(0x1183+432-0x1243))>>(0x1283+4068-0x2263);out_ptr[
-(0xf90+5679-0x25bd)*iLength-(0xbaa+2906-0x1703)]=g_zUfiSms_DigAscMap[low];
-out_ptr[(0x82d+7499-0x2576)*iLength-(0xe8a+2534-0x186e)]=g_zUfiSms_DigAscMap[
+);return ZUFI_FAIL;}while(iLength>(0x1000+1198-0x14ae)){low=in_ptr[iLength-
+(0x351+633-0x5c9)]&(0x1a9d+1695-0x212d);high=(in_ptr[iLength-
+(0x14e0+4415-0x261e)]&(0x14d0+4665-0x2619))>>(0x3eb+7154-0x1fd9);out_ptr[
+(0x689+4186-0x16e1)*iLength-(0x167c+3559-0x2462)]=g_zUfiSms_DigAscMap[low];
+out_ptr[(0x1dd0+2067-0x25e1)*iLength-(0x152f+2596-0x1f51)]=g_zUfiSms_DigAscMap[
high];iLength--;}return ZUFI_SUCC;}unsigned int
zte_wms_convert_PORTUGUESE_To_UCS2(const unsigned char*gsmdef,unsigned char*ucs2
-,unsigned int len){unsigned int i=(0x1633+1127-0x1a9a);unsigned int j=
-(0x41+1774-0x72f);unsigned int k=(0x1e06+1894-0x256c);unsigned int p=
-(0xbf7+4499-0x1d8a);unsigned int s=(0xf99+5321-0x2462);s=sizeof(
+,unsigned int len){unsigned int i=(0x1b43+1267-0x2036);unsigned int j=
+(0xb15+796-0xe31);unsigned int k=(0x5f0+2252-0xebc);unsigned int p=
+(0x11f7+2965-0x1d8c);unsigned int s=(0x185f+100-0x18c3);s=sizeof(
zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x5c0+52-0x5f4)]);for(i=
-(0x1746+1872-0x1e96);i<len;i++){j=gsmdef[i];if(j==(0xe90+332-0xfc1)){i++;for(p=
-(0x12b6+4849-0x25a7);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
-(0x1b0b+1795-0x220e)]==gsmdef[i]){ucs2[k]=
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0xbcf+3102-0x17ec)]>>
-(0xa00+4705-0x1c59);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x1cca+2190-0x2557)]);break;}}}else
-{ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x2272+1167-0x26f9);k++;ucs2
-[k]=(unsigned char)(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]);}k++;}ucs2[k]='\0'
-;return k;}unsigned int zte_wms_convert_PORTUGUESE_To_UCS2_USE_GSM7_SS_PORTU_LS(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x66+8045-0x1fd3)]);for(i=
+(0xe2d+2743-0x18e4);i<len;i++){j=gsmdef[i];if(j==(0x12fc+480-0x14c1)){i++;for(p=
+(0x142f+76-0x147b);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
+(0xa79+7296-0x26f9)]==gsmdef[i]){ucs2[k]=
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x16fb+3813-0x25df)]>>
+(0x202+6071-0x19b1);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x8d6+717-0xba2)]);break;}}}else{
+ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0xe9d+3829-0x1d8a);k++;ucs2[k
+]=(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=
-(0xa8d+3528-0x1855);unsigned int j=(0x349+2331-0xc64);unsigned int k=
-(0xfba+1895-0x1721);unsigned int p=(0xb29+3180-0x1795);unsigned int s=
-(0x9e9+5007-0x1d78);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x24e6+106-0x2550)]);for(i=
-(0x119b+5364-0x268f);i<len;i++){j=gsmdef[i];if(j==(0xe49+1913-0x15a7)){i++;for(p
-=(0x930+3679-0x178f);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x177a+2712-0x2212)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p]
-[(0x747+6575-0x20f5)]>>(0xf20+4255-0x1fb7);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x4d4+8114-0x2485)]);break;}}}else{ucs2[
-k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x1be6+662-0x1e74);k++;ucs2[k]=(
+(0xa1c+1608-0x1064);unsigned int j=(0x2bb+4383-0x13da);unsigned int k=
+(0x653+5017-0x19ec);unsigned int p=(0x144f+2082-0x1c71);unsigned int s=
+(0x747+1336-0xc7f);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x113+3699-0xf86)]);for(i=
+(0xef7+4503-0x208e);i<len;i++){j=gsmdef[i];if(j==(0xba7+4404-0x1cc0)){i++;for(p=
+(0x1+2052-0x805);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x1461+2271-0x1d40)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p]
+[(0x3db+198-0x4a0)]>>(0x571+8400-0x2639);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0xb0f+338-0xc60)]);break;}}}else{ucs2[k]
+=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0xb90+5359-0x2077);k++;ucs2[k]=(
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=
-(0x22a7+1112-0x26ff);unsigned long j=(0xb42+94-0xba0);unsigned long k=
-(0x895+706-0xb57);unsigned long p=(0xaa8+3098-0x16c2);unsigned long s=
-(0xcf1+5148-0x210d);unsigned long is_find=(0xd72+2972-0x190e);s=sizeof(
+gsmdef,unsigned char*ucs2,unsigned long len){unsigned long i=(0x11c2+931-0x1565)
+;unsigned long j=(0x940+5305-0x1df9);unsigned long k=(0x957+5489-0x1ec8);
+unsigned long p=(0x12dd+5022-0x267b);unsigned long s=(0xad1+1877-0x1226);
+unsigned long is_find=(0xafb+2101-0x1330);s=sizeof(
zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[
-(0xfbd+2838-0x1ad3)]);for(i=(0x175d+1617-0x1dae);i<len;i++){j=gsmdef[i];if(j==
-(0x50+478-0x213)){i++;for(p=(0x781+6167-0x1f98);p<s;p++){if(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x755+1425-0xce6)]==gsmdef[i]){ucs2[k]=
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x77d+2763-0x1247)]>>(0xfc2+4435-0x210d)
-;k++;ucs2[k]=(unsigned char)(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x1a12+2921-0x257a)]);is_find=(0x1036+3277-0x1d02);break;}}if(!is_find){
-at_print(LOG_DEBUG,
+(0x1fd3+282-0x20ed)]);for(i=(0x77c+7962-0x2696);i<len;i++){j=gsmdef[i];if(j==
+(0xf27+748-0x11f8)){i++;for(p=(0x742+6418-0x2054);p<s;p++){if(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0xb70+1067-0xf9b)]==gsmdef[i]){ucs2[k]=
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x10fa+1403-0x1674)]>>
+(0x31c+3649-0x1155);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x1913+1218-0x1dd4)]);is_find=
+(0x19a2+1974-0x2157);break;}}if(!is_find){at_print(LOG_DEBUG,
"\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]>>(0x9b5+3285-0x1682)
-;k++;ucs2[k]=(unsigned char)(zte_sms_GSMDefault_To_UCS2_Table[j]);}}else{ucs2[k]
-=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0xd57+1779-0x1442);k++;ucs2[k]=(unsigned
+,gsmdef[i]);i--;ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table[j]>>
+(0x15cc+1836-0x1cf0);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table[j]);}}else{ucs2[k]=
+zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x1163+4209-0x21cc);k++;ucs2[k]=(unsigned
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[(0x775+2420-0x10e7)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
-(0xba8+4806-0x1e6d)]={(0x149c+2446-0x1e2a)};UINT16 len=(0xb41+1531-0x113c);
+ascii_content[(0x1d9b+1887-0x24f8)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
+(0x1cfc+1682-0x238d)]={(0x360+2368-0xca0)};UINT16 len=(0x14b9+2220-0x1d65);
switch(g_zUfiSms_Language){case DCS_PORTUGUESE:if(g_zUfiSms_IsLanguageShift==
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==
@@ -674,47 +672,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[(0xbaa+3251-0x185c)+(0x1c2d+2840-0x26a5)+(0x558+858-0x8b1)]={
-(0xdda+498-0xfcc)};int len=(0x545+7789-0x23b2);if(msg_content==NULL||out_content
-==NULL||sms_len>(0x45d+6497-0x1c7e)||sms_len<(0xba1+1310-0x10bd)){return endEsc;
-}len=sms_len;memset(data,(0xb28+625-0xd99),(0x19c0+2205-0x21bb));p=data;if(isEsc
-){*p=(0x700+3293-0x13c2);p++;}zUfiSms_Str2Bytes((unsigned char*)msg_content,len,
-(unsigned char*)p,(0x1cfa+1776-0x234a));if(p[len/(0x3b+7195-0x1c54)-
-(0x593+3141-0x11d7)]==(0x304+1706-0x993)){endEsc=TRUE;}zUfiSms_ConvertUcs2(data,
-len/(0x281+8806-0x24e5)+(isEsc?(0xee2+356-0x1045):(0x210b+1034-0x2515))-(endEsc?
-(0x108f+5034-0x2438):(0xf89+3657-0x1dd2)),out_content);return endEsc;}byte*
-zUfiSms_SmsiUtilitoa(uint32 v,byte*s,UINT16 r){byte buf[(0x36+4504-0x11ad)],c;
-int n;n=sizeof(buf)-(0x50d+6771-0x1f7f);buf[n]='\0';do{c=(byte)(v%r);if(n<=
-(0xd47+667-0xfe2)){printf("\x4f\x56\x45\x52\x46\x4c\x4f\x57\x20");break;}buf[--n
-]=(byte)((c>(0x9da+3737-0x186a))?c+((char)(0x615+4641-0x17f5))-
-(0x116b+3495-0x1f08):c+((char)(0x495+1616-0xab5)));}while((v/=r)>
-(0xd5+6076-0x1891));while((*s++=buf[n++])!=(0xe24+1458-0x13d6));return(s-
-(0x1452+1200-0x1901));}byte*zUfiSms_SmsiAddrToStr(wms_address_s_type addr,byte*
-res_ptr,UINT8*type_of_addr){byte bcd_idx=(0xa2a+4909-0x1d57);UINT8 temp=
-(0x12b+7366-0x1df1);*type_of_addr=(0xef5+5152-0x2315);temp=(UINT8)((uint32)addr.
-number_type&(0x158c+2031-0x1d74));*type_of_addr=(UINT8)((*type_of_addr|temp)<<
-(0x7c5+1147-0xc3c));temp=(UINT8)((uint32)addr.number_plan&(0xd99+937-0x113b));*
-type_of_addr=*type_of_addr|temp;*type_of_addr=*type_of_addr|(0x7d0+7492-0x2494);
-while(bcd_idx<addr.number_of_digits){if(addr.digits[bcd_idx]==
-(0xb5a+3738-0x19ea)){addr.digits[bcd_idx]=(0x1183+2711-0x1c1a);}res_ptr=
-zUfiSms_SmsiUtilitoa((uint32)addr.digits[bcd_idx],res_ptr,(0x142d+2440-0x1da5));
-bcd_idx++;}return res_ptr;}byte*zUfiSms_SmsiUtilitoaFill(word v,byte*rb_ptr){int
- n;byte c,*ptr;ptr=rb_ptr+(0x27a+8380-0x2334);*ptr='\0';for(n=(0x4ed+172-0x599);
-n<(0x701+6909-0x21fc);++n){c=(byte)(v%(0x16e2+432-0x1888));v/=
-(0x2373+629-0x25de);*--ptr=(c+((char)(0x85f+7666-0x2621)));}return rb_ptr+
-(0x52f+438-0x6e3);}void zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<
-(0xa+6007-0x1777)){snprintf(str_time,len,"\x30\x25\x78",t);}else{snprintf(
-str_time,len,"\x25\x78",t);}}static void zUfiSms_ParseDeliverConcat8(
-T_zUfiSms_UdhConcat8*concat_8,T_zUfiSms_DbStoreData*db_data){int mux=
-(0xb3f+2383-0x148e);concat_8->seq_num--;if(concat_8->total_sm>
-ZTE_WMS_CONCAT_SMS_COUNT_MAX){mux=(concat_8->seq_num-concat_8->seq_num%
-ZTE_WMS_CONCAT_SMS_COUNT_MAX)/ZTE_WMS_CONCAT_SMS_COUNT_MAX;}db_data->concat_sms=
-(0x833+1163-0xcbd);db_data->concat_info[(0xd09+5698-0x234b)]=
-(0x10f8+2082-0x181b)*mux+concat_8->msg_ref;db_data->concat_info[
-(0xd19+3233-0x19b8)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX+
-(0x3d9+1925-0xb5d);db_data->concat_info[(0x1fb+7990-0x2130)]=concat_8->total_sm-
-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
-(0x15a7+4107-0x25b1)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(concat_8->total_sm%
+data[(0x1457+296-0x157e)+(0x1ec+6524-0x1ac8)+(0x5c5+761-0x8bd)]={
+(0x34c+5812-0x1a00)};int len=(0xc0+7095-0x1c77);if(msg_content==NULL||
+out_content==NULL||sms_len>(0x95a+4206-0x1888)||sms_len<(0x1099+1758-0x1775)){
+return endEsc;}len=sms_len;memset(data,(0x189a+421-0x1a3f),(0x17fd+556-0x1987));
+p=data;if(isEsc){*p=(0x13bb+994-0x1782);p++;}zUfiSms_Str2Bytes((unsigned char*)
+msg_content,len,(unsigned char*)p,(0x1888+2605-0x2215));if(p[len/
+(0xcda+3509-0x1a8d)-(0x51d+5101-0x1909)]==(0x616+8211-0x260e)){endEsc=TRUE;}
+zUfiSms_ConvertUcs2(data,len/(0xa4d+7142-0x2631)+(isEsc?(0x1cc+5486-0x1739):
+(0x24a+2438-0xbd0))-(endEsc?(0xb3b+5120-0x1f3a):(0x132c+4902-0x2652)),
+out_content);return endEsc;}byte*zUfiSms_SmsiUtilitoa(uint32 v,byte*s,UINT16 r){
+byte buf[(0x905+7502-0x2632)],c;int n;n=sizeof(buf)-(0xbe5+246-0xcda);buf[n]=
+'\0';do{c=(byte)(v%r);if(n<=(0x4cd+3060-0x10c1)){printf(
+"\x4f\x56\x45\x52\x46\x4c\x4f\x57\x20");break;}buf[--n]=(byte)((c>
+(0xcd5+1825-0x13ed))?c+((char)(0xc82+4081-0x1c32))-(0x764+3127-0x1391):c+
+((char)(0xcf3+5331-0x2196)));}while((v/=r)>(0x1337+3007-0x1ef6));while((*s++=buf
+[n++])!=(0xf05+3878-0x1e2b));return(s-(0x13a1+2024-0x1b88));}byte*
+zUfiSms_SmsiAddrToStr(wms_address_s_type addr,byte*res_ptr,UINT8*type_of_addr){
+byte bcd_idx=(0x1f78+1868-0x26c4);UINT8 temp=(0x18e1+867-0x1c44);*type_of_addr=
+(0x894+3943-0x17fb);temp=(UINT8)((uint32)addr.number_type&(0x3f6+240-0x4df));*
+type_of_addr=(UINT8)((*type_of_addr|temp)<<(0x7cd+2285-0x10b6));temp=(UINT8)((
+uint32)addr.number_plan&(0x672+6895-0x215a));*type_of_addr=*type_of_addr|temp;*
+type_of_addr=*type_of_addr|(0xe02+5252-0x2206);while(bcd_idx<addr.
+number_of_digits){if(addr.digits[bcd_idx]==(0x3e3+4272-0x1489)){addr.digits[
+bcd_idx]=(0x16fc+3418-0x2456);}res_ptr=zUfiSms_SmsiUtilitoa((uint32)addr.digits[
+bcd_idx],res_ptr,(0x1c9a+1139-0x20fd));bcd_idx++;}return res_ptr;}byte*
+zUfiSms_SmsiUtilitoaFill(word v,byte*rb_ptr){int n;byte c,*ptr;ptr=rb_ptr+
+(0x622+4291-0x16e3);*ptr='\0';for(n=(0x1623+3211-0x22ae);n<(0x635+3438-0x13a1);
+++n){c=(byte)(v%(0x41+7859-0x1eea));v/=(0x1761+639-0x19d6);*--ptr=(c+
+((char)(0xb64+6312-0x23dc)));}return rb_ptr+(0x75b+6075-0x1f14);}void
+zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<(0x659+7754-0x2499)){
+snprintf(str_time,len,"\x30\x25\x78",t);}else{snprintf(str_time,len,"\x25\x78",t
+);}}static void zUfiSms_ParseDeliverConcat8(T_zUfiSms_UdhConcat8*concat_8,
+T_zUfiSms_DbStoreData*db_data){int mux=(0xd0a+4531-0x1ebd);concat_8->seq_num--;
+if(concat_8->total_sm>ZTE_WMS_CONCAT_SMS_COUNT_MAX){mux=(concat_8->seq_num-
+concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX)/ZTE_WMS_CONCAT_SMS_COUNT_MAX;}
+db_data->concat_sms=(0x1246+4705-0x24a6);db_data->concat_info[(0xf66+534-0x117c)
+]=(0x5e5+4075-0x14d1)*mux+concat_8->msg_ref;db_data->concat_info[
+(0x16a+8468-0x227c)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX+
+(0x1b87+2317-0x2493);db_data->concat_info[(0x5fd+7685-0x2401)]=concat_8->
+total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
+(0x565+7671-0x235b)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(concat_8->total_sm%
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=
@@ -723,27 +721,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=(0x275+1570-0x897);concat_16->seq_num--;
-db_data->concat_sms=(0x67+5341-0x1543);
-#if (0x16b+5049-0x1524)
-db_data->concat_info[(0x69+6565-0x1a0e)]=concat_16->msg_ref;db_data->concat_info
-[(0x22c+4839-0x1512)]=concat_16->total_sm;db_data->concat_info[
-(0x1691+4158-0x26cd)]=concat_16->seq_num;
+T_zUfiSms_DbStoreData*db_data){int mux=(0x1e03+2231-0x26ba);concat_16->seq_num--
+;db_data->concat_sms=(0x7c8+7116-0x2393);
+#if (0xe47+538-0x1061)
+db_data->concat_info[(0x2b+2525-0xa08)]=concat_16->msg_ref;db_data->concat_info[
+(0x134a+3156-0x1f9d)]=concat_16->total_sm;db_data->concat_info[
+(0x448+5040-0x17f6)]=concat_16->seq_num;
#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[(0xebc+1897-0x1625)]=(0x581+1217-0x943)*mux+concat_16->
-msg_ref;db_data->concat_info[(0xe13+5252-0x2295)]=concat_16->seq_num%
-ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x2d9+8459-0x23e3);db_data->concat_info[
-(0x72+1506-0x653)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
-ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0x5a3+6358-0x1e78)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(
+db_data->concat_info[(0xb9f+5617-0x2190)]=(0x4a9+4369-0x14bb)*mux+concat_16->
+msg_ref;db_data->concat_info[(0x14fc+3954-0x246c)]=concat_16->seq_num%
+ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x3dc+2454-0xd71);db_data->concat_info[
+(0xca3+1411-0x1225)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
+ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0x493+557-0x6bf)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(
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=
-(0xe4a+1328-0x1379);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8),
-db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0xc33+2275-0x1515);
+(0x1504+1145-0x197c);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8)
+,db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0x18df+703-0x1b9d);
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:
@@ -753,155 +751,154 @@
);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=(0x285+8500-0x23b9);int ind=(0xa5+3450-0xe1f);if((
+WMS_GW_ALPHABET_MAX32;int i=(0x7a4+5369-0x1c9d);int ind=(0xd1+5344-0x15b1);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,
-(0x19a3+1651-0x2016),ZTE_WMS_ADDRESS_LEN_MAX+(0xacc+6573-0x2478));db_data->
-number[(0x235+4262-0x12db)]=((char)(0x1cb5+1513-0x2273));for(i=
-(0x10b1+2408-0x1a19);i<address_ptr->number_of_digits;i++){if((0x40+1946-0x7d0)==
-address_ptr->digits[i]){db_data->number[i+(0x1536+1720-0x1bed)]=
-((char)(0xc09+1488-0x11a9));}else{db_data->number[i+(0x44f+503-0x645)]=
-((char)(0x988+1394-0xeca))+address_ptr->digits[i];}}}else if(
-WMS_NUMBER_ALPHANUMERIC==address_ptr->number_type){memcpy(db_data->number,
-address_ptr->digits,address_ptr->number_of_digits);}else{if(address_ptr->
-digit_mode==WMS_DIGIT_MODE_8_BIT){memcpy(&(db_data->number[(0x1b96+2932-0x2709)]
-),address_ptr->digits,address_ptr->number_of_digits);}else{for(i=
-(0x213+1704-0x8bb);i<address_ptr->number_of_digits;i++){if((0x1195+4784-0x243b)
-==address_ptr->digits[i]){db_data->number[i]=((char)(0xcb+220-0x177));}else{
-db_data->number[i]=((char)(0x1000+4546-0x2192))+address_ptr->digits[i];}}}}(void
-)zUfiSms_UtilTimeStamp(ts_data_ptr->u.gw_pp.u.deliver.timestamp,db_data->tp_scts
-,&db_data->julian_date);if(ts_data_ptr->u.gw_pp.u.deliver.
-user_data_header_present){db_data->tp_udhi=(0xa09+2292-0x12fc);}else{db_data->
-tp_udhi=(0x137+9576-0x269f);}if(db_data->tp_udhi==(0xc38+5358-0x2125)){for(ind=
-(0x4c5+1485-0xa92);ind<ts_data_ptr->u.gw_pp.u.deliver.user_data.num_headers;ind
-++){result=zUfiSms_ParseUdhiData(&(ts_data_ptr->u.gw_pp.u.deliver.user_data.
-headers[ind]),db_data);if(ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[
-(0x36c+4870-0x1671)]){printf(
+(0xeb2+1089-0x12f3),ZTE_WMS_ADDRESS_LEN_MAX+(0x76c+4322-0x184d));db_data->number
+[(0x10e0+2833-0x1bf1)]=((char)(0x141a+1094-0x1835));for(i=(0x15ad+3499-0x2358);i
+<address_ptr->number_of_digits;i++){if((0x16f7+3904-0x262d)==address_ptr->digits
+[i]){db_data->number[i+(0x560+6604-0x1f2b)]=((char)(0x1a6c+1075-0x1e6f));}else{
+db_data->number[i+(0x8cc+4593-0x1abc)]=((char)(0xa6d+6585-0x23f6))+address_ptr->
+digits[i];}}}else if(WMS_NUMBER_ALPHANUMERIC==address_ptr->number_type){memcpy(
+db_data->number,address_ptr->digits,address_ptr->number_of_digits);}else{if(
+address_ptr->digit_mode==WMS_DIGIT_MODE_8_BIT){memcpy(&(db_data->number[
+(0x1162+814-0x148f)]),address_ptr->digits,address_ptr->number_of_digits);}else{
+for(i=(0x224+6112-0x1a04);i<address_ptr->number_of_digits;i++){if(
+(0x10d7+1337-0x1606)==address_ptr->digits[i]){db_data->number[i]=
+((char)(0x469+119-0x4b0));}else{db_data->number[i]=((char)(0x1505+3368-0x21fd))+
+address_ptr->digits[i];}}}}(void)zUfiSms_UtilTimeStamp(ts_data_ptr->u.gw_pp.u.
+deliver.timestamp,db_data->tp_scts,&db_data->julian_date);if(ts_data_ptr->u.
+gw_pp.u.deliver.user_data_header_present){db_data->tp_udhi=(0x1977+2014-0x2154);
+}else{db_data->tp_udhi=(0xde6+5751-0x245d);}if(db_data->tp_udhi==
+(0x279+3064-0xe70)){for(ind=(0x512+7739-0x234d);ind<ts_data_ptr->u.gw_pp.u.
+deliver.user_data.num_headers;ind++){result=zUfiSms_ParseUdhiData(&(ts_data_ptr
+->u.gw_pp.u.deliver.user_data.headers[ind]),db_data);if(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0x745+5558-0x1cfa)]){printf(
"\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[(0x11a1+1150-0x161e)],ZTE_WMS_CONCAT_SMS_COUNT_MAX);if(
+,db_data->concat_info[(0x737+917-0xacb)],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)
-(0x7a5+3842-0x16a6);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
-unsigned char)(0xfe2+5333-0x24b5);}else{printf(
+(0x605+2971-0x119f);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
+unsigned char)(0xc7f+3931-0x1bd8);}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=(0x12a9+3775-0x2168);ind<ts_data_ptr->u
-.gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[(0x142+2202-0x9d8)
-*ind]=((char)(0x276+3906-0x1188));db_data->sms_content[(0x984+368-0xaf0)*ind+
-(0x11db+1277-0x16d7)]=((char)(0x16d+203-0x208));db_data->sms_content[
-(0x108a+2306-0x1988)*ind+(0x1300+3992-0x2296)]=g_zUfiSms_DigAscMap[((ts_data_ptr
-->u.gw_pp.u.deliver.user_data.sm_data[ind]&(0x101b+5368-0x2423))>>
-(0x14a4+2690-0x1f22))];db_data->sms_content[(0xfe4+814-0x130e)*ind+
-(0x1452+1092-0x1893)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.
-user_data.sm_data[ind]&(0x1099+5347-0x256d))];db_data->alphabet=
+alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0x1aaa+2907-0x2605);ind<ts_data_ptr->u
+.gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[
+(0x1395+4230-0x2417)*ind]=((char)(0x4bc+4626-0x169e));db_data->sms_content[
+(0x3cc+5586-0x199a)*ind+(0x59f+1462-0xb54)]=((char)(0x3c6+8223-0x23b5));db_data
+->sms_content[(0x1238+502-0x142a)*ind+(0x13b7+2959-0x1f44)]=g_zUfiSms_DigAscMap[
+((ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_data[ind]&(0xf4f+2735-0x190e))>>
+(0x195a+590-0x1ba4))];db_data->sms_content[(0xa45+28-0xa5d)*ind+
+(0x245+7750-0x2088)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.
+user_data.sm_data[ind]&(0x9b3+5905-0x20b5))];db_data->alphabet=
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)(0xcdb+2374-0x161f);}return result;}int
+tp_dcs=(unsigned char)(0x4b9+6663-0x1ebe);}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=
-(0x1414+721-0x16e5);int ind=(0x700+5139-0x1b13);if((NULL==ts_data_ptr)||(NULL==
+(0x184+8556-0x22f0);int ind=(0xd54+6559-0x26f3);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[
-(0xc83+4829-0x1f60)]=((char)(0x15c5+2849-0x20bb));for(i=(0x227+9120-0x25c7);i<
-address_ptr->number_of_digits;i++){if((0x33a+3641-0x1169)==address_ptr->digits[i
-]){db_data->number[i+(0x1f4d+16-0x1f5c)]=((char)(0x7fc+4952-0x1b24));}else{
-db_data->number[i+(0xe36+4034-0x1df7)]=((char)(0x215+3360-0xf05))+address_ptr->
-digits[i];}}}else{for(i=(0x15f8+4169-0x2641);i<address_ptr->number_of_digits;i++
-){if((0x6ac+7695-0x24b1)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0x12f4+1314-0x17e6));}else{db_data->number[i]=
-((char)(0x1abf+244-0x1b83))+address_ptr->digits[i];}}}tp_dcs=ts_data_ptr->u.
-gw_pp.u.submit.dcs.alphabet;db_data->sms_class=ts_data_ptr->u.gw_pp.u.submit.dcs
-.msg_class;if(WMS_GW_ALPHABET_8_BIT>=tp_dcs){db_data->tp_dcs=(unsigned char)
-(0xb3+4811-0x137d);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
-unsigned char)(0x1296+2809-0x1d8d);}else{printf(
+(0x1300+4157-0x233d)]=((char)(0x4c0+2991-0x1044));for(i=(0x12db+281-0x13f4);i<
+address_ptr->number_of_digits;i++){if((0x2b9+8699-0x24aa)==address_ptr->digits[i
+]){db_data->number[i+(0x99b+6596-0x235e)]=((char)(0x6cb+2587-0x10b6));}else{
+db_data->number[i+(0x83f+6857-0x2307)]=((char)(0xac8+5189-0x1edd))+address_ptr->
+digits[i];}}}else{for(i=(0x19+704-0x2d9);i<address_ptr->number_of_digits;i++){if
+((0x1f57+1705-0x25f6)==address_ptr->digits[i]){db_data->number[i]=
+((char)(0x492+173-0x50f));}else{db_data->number[i]=((char)(0x1087+3390-0x1d95))+
+address_ptr->digits[i];}}}tp_dcs=ts_data_ptr->u.gw_pp.u.submit.dcs.alphabet;
+db_data->sms_class=ts_data_ptr->u.gw_pp.u.submit.dcs.msg_class;if(
+WMS_GW_ALPHABET_8_BIT>=tp_dcs){db_data->tp_dcs=(unsigned char)
+(0x1936+1880-0x208d);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
+unsigned char)(0xb57+3556-0x1939);}else{printf(
"\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=
-(0xdad+1647-0x141b);}else{db_data->tp_udhi=(0x169f+663-0x1936);}if(db_data->
-tp_udhi==(0x1569+1606-0x1bae)){for(ind=(0x1b67+2130-0x23b9);ind<ts_data_ptr->u.
+(0xc42+2465-0x15e2);}else{db_data->tp_udhi=(0x99+9538-0x25db);}if(db_data->
+tp_udhi==(0x277+3459-0xff9)){for(ind=(0xdd0+2626-0x1812);ind<ts_data_ptr->u.
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[(0xe60+2350-0x178d)]){printf(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0x4eb+4201-0x1553)]){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=(0xa8+5028-0x144c);
+gw_pp.u.submit.dcs.alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0x638+6799-0x20c7);
ind<ts_data_ptr->u.gw_pp.u.submit.user_data.sm_len;ind++){db_data->sms_content[
-(0x10d+986-0x4e3)*ind]=((char)(0x6e2+6948-0x21d6));db_data->sms_content[
-(0xebb+3119-0x1ae6)*ind+(0x700+2739-0x11b2)]=((char)(0x2049+718-0x22e7));db_data
-->sms_content[(0x392+2958-0xf1c)*ind+(0x6bb+3928-0x1611)]=g_zUfiSms_DigAscMap[((
-ts_data_ptr->u.gw_pp.u.submit.user_data.sm_data[ind]&(0x1ff+8058-0x2089))>>
-(0x445+8630-0x25f7))];db_data->sms_content[(0xd5b+3740-0x1bf3)*ind+
-(0x1aab+305-0x1bd9)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.submit.
-user_data.sm_data[ind]&(0x10ec+22-0x10f3))];db_data->alphabet=
+(0x998+4750-0x1c22)*ind]=((char)(0xc71+236-0xd2d));db_data->sms_content[
+(0xdf0+6259-0x265f)*ind+(0x2ad+7598-0x205a)]=((char)(0x531+4793-0x17ba));db_data
+->sms_content[(0x2d6+1236-0x7a6)*ind+(0x13e2+4223-0x245f)]=g_zUfiSms_DigAscMap[(
+(ts_data_ptr->u.gw_pp.u.submit.user_data.sm_data[ind]&(0x116f+5054-0x243d))>>
+(0x6e3+133-0x764))];db_data->sms_content[(0x109b+4184-0x20ef)*ind+
+(0x1a9+7729-0x1fd7)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.submit.
+user_data.sm_data[ind]&(0x3f3+255-0x4e3))];db_data->alphabet=
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)(0x406+3643-0x123f);}return result;}int InvertNumbers(
+tp_dcs=(unsigned char)(0x19b2+2900-0x2504);}return result;}int InvertNumbers(
const char*pSrc,char*pDst,int nSrcLength){int nDstLength;char ch;int i=
-(0xc1a+5277-0x20b7);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x6b0+5871-0x1d9f)){
-return-(0x1c1+6350-0x1a8e);}nDstLength=nSrcLength;for(i=(0x10e5+2387-0x1a38);i<
-nSrcLength;i+=(0x1f+1419-0x5a8)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
-nSrcLength&(0x467+2156-0xcd2)){*(pDst-(0x35b+6424-0x1c71))=
-((char)(0x1382+4599-0x2533));nDstLength++;}*pDst='\0';return nDstLength;}int
+(0x92b+7213-0x2558);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x291+3687-0x10f8)){
+return-(0x3f8+5563-0x19b2);}nDstLength=nSrcLength;for(i=(0x33a+8161-0x231b);i<
+nSrcLength;i+=(0x2d+1739-0x6f6)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
+nSrcLength&(0x2e2+8240-0x2311)){*(pDst-(0x630+2653-0x108b))=
+((char)(0x5e1+6760-0x2003));nDstLength++;}*pDst='\0';return nDstLength;}int
code_is_gsm7(const SMS_PARAM*pSrc,unsigned char buf[],int nLength){if(pSrc->
-TP_UDHI==(0xde6+2681-0x185e)){buf[(0x27c+347-0x3d4)]=(unsigned char)nLength;buf[
-(0x4d9+8149-0x24aa)]=(unsigned char)pSrc->TP_UD[(0xd5+2525-0xab2)];buf[
-(0x16b+1616-0x7b6)]=(0x1ad8+1429-0x206d);buf[(0x10+6185-0x1833)]=(unsigned char)
-pSrc->TP_UD[(0x2159+448-0x2317)];buf[(0x340+4327-0x1420)]=(unsigned char)pSrc->
-TP_UD[(0x1ec7+1629-0x2521)];buf[(0xd15+3063-0x1904)]=(unsigned char)pSrc->TP_UD[
-(0xecf+5990-0x2631)];buf[(0x7a0+1765-0xe7c)]=(unsigned char)pSrc->TP_UD[
-(0x1f6b+52-0x1f9a)];buf[(0x80+6194-0x18a8)]=(unsigned char)pSrc->TP_UD[
-(0x1284+1259-0x1768)];buf[(0x13eb+2011-0x1bbc)]=(unsigned char)(buf[
-(0xfab+1915-0x171c)]<<(0x108a+1433-0x1622));nLength=nLength-(0xba6+3165-0x17fc);
-nLength=Encode7bit(&(pSrc->TP_UD[(0x778+174-0x81e)]),&buf[(0x1846+794-0x1b55)],
-nLength+(0x1158+4141-0x2184))+(0x46d+6109-0x1c46)+(0xb8+1253-0x597);
-#if (0x8ab+2431-0x122a)
-nLength+=(0x5c5+5810-0x1c75);
+TP_UDHI==(0xd54+5268-0x21e7)){buf[(0x1456+2104-0x1c8b)]=(unsigned char)nLength;
+buf[(0x69a+6402-0x1f98)]=(unsigned char)pSrc->TP_UD[(0xd8+185-0x191)];buf[
+(0x1c36+2527-0x2610)]=(0x159+7370-0x1e23);buf[(0x139b+593-0x15e6)]=(unsigned
+char)pSrc->TP_UD[(0xd8c+5713-0x23db)];buf[(0x582+6200-0x1db3)]=(unsigned char)
+pSrc->TP_UD[(0x2c5+7122-0x1e94)];buf[(0x1298+4719-0x24ff)]=(unsigned char)pSrc->
+TP_UD[(0x7ef+5728-0x1e4b)];buf[(0x22d5+1037-0x26d9)]=(unsigned char)pSrc->TP_UD[
+(0x101b+3626-0x1e40)];buf[(0x1022+5092-0x23fc)]=(unsigned char)pSrc->TP_UD[
+(0x295+8182-0x2284)];buf[(0x1591+343-0x16de)]=(unsigned char)(buf[
+(0x1599+4064-0x256f)]<<(0x911+6084-0x20d4));nLength=nLength-(0x599+4934-0x18d8);
+nLength=Encode7bit(&(pSrc->TP_UD[(0x896+6453-0x21c3)]),&buf[(0x255c+2-0x2553)],
+nLength+(0x993+4376-0x1aaa))+(0xa1a+3051-0x1601)+(0x1127+3320-0x1e19);
+#if (0x12c3+3957-0x2238)
+nLength+=(0x2a7+3809-0x1186);
#endif
-}else{nLength=pSrc->TP_UDLength;buf[(0xc58+2390-0x15ab)]=nLength;nLength=
-Encode7bit(pSrc->TP_UD,&buf[(0x19b+9576-0x26ff)],nLength+(0x1355+636-0x15d0))+
-(0x1da3+66-0x1de1);}at_print(LOG_DEBUG,
+}else{nLength=pSrc->TP_UDLength;buf[(0x412+4580-0x15f3)]=nLength;nLength=
+Encode7bit(pSrc->TP_UD,&buf[(0x7f6+5563-0x1dad)],nLength+(0x1193+1951-0x1931))+
+(0x110+6770-0x1b7e);}at_print(LOG_DEBUG,
"\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==(0x2281+837-0x25c5)){buf[
-(0x226+2210-0xac5)]=(unsigned char)nLength;buf[(0xc55+505-0xe4a)]=(unsigned char
-)pSrc->TP_UD[(0x3c2+549-0x5e7)];buf[(0x787+6039-0x1f19)]=(0xd1b+4436-0x1e6f);buf
-[(0x23b4+600-0x2606)]=(unsigned char)pSrc->TP_UD[(0xd3+2436-0xa55)];buf[
-(0x8fa+3586-0x16f5)]=(unsigned char)pSrc->TP_UD[(0x1c7+5730-0x1826)];buf[
-(0x280+1214-0x736)]=(unsigned char)pSrc->TP_UD[(0xcc0+2810-0x17b6)];buf[
-(0x435+7391-0x210b)]=(unsigned char)pSrc->TP_UD[(0xb68+1516-0x114f)];buf[
-(0x1e68+893-0x21e2)]=(unsigned char)(EncodeUcs2(&(pSrc->TP_UD[(0x2a+1058-0x446)]
-),&buf[(0x11dd+2922-0x1d3d)],nLength-(0x32f+3834-0x1223))+(0xa1a+3821-0x1901));
-nLength=buf[(0x137c+589-0x15c6)]+(0xeeb+3991-0x1e7e);}else{buf[
-(0xa17+1954-0x11b6)]=EncodeUcs2(pSrc->TP_UD,&buf[(0x8cb+1281-0xdc8)],nLength);
-nLength=buf[(0x14d+8081-0x20db)]+(0x112f+664-0x13c3);}return nLength;}int
-Encode8bit(const char*pSrc,unsigned char*pDst,int nSrcLength){if(pSrc==NULL||
-pDst==NULL||nSrcLength<(0xe08+533-0x101d)){return-(0x2246+633-0x24be);}memcpy(
-pDst,pSrc,nSrcLength);return nSrcLength;}int EncodePdu_Submit(const SMS_PARAM*
-pSrc,char*pDst){int nLength=(0x96+4830-0x1374);int nDstLength=
-(0x1742+3116-0x236e);unsigned char buf[(0xfd0+828-0x120c)]={(0x2d+1227-0x4f8)};
-char tmpSCA[(0x1317+2181-0x1b78)]={(0x727+2525-0x1104)};int check_udl=
-(0x195b+345-0x1ab4);memset(tmpSCA,(0x1519+4546-0x26db),sizeof(tmpSCA));if(pSrc==
-NULL||pDst==NULL){return-(0x997+1346-0xed8);}
-#if (0x16f7+3164-0x2352)
+strlen(pSrc->TP_UD);if(pSrc->TP_UDHI==(0x461+157-0x4fd)){buf[
+(0x1694+1740-0x1d5d)]=(unsigned char)nLength;buf[(0x8df+1445-0xe80)]=(unsigned
+char)pSrc->TP_UD[(0x129f+3795-0x2172)];buf[(0x2d9+458-0x49e)]=
+(0xb20+4531-0x1cd3);buf[(0x655+4438-0x17a5)]=(unsigned char)pSrc->TP_UD[
+(0x1ca1+768-0x1f9f)];buf[(0x563+3391-0x129b)]=(unsigned char)pSrc->TP_UD[
+(0x394+145-0x422)];buf[(0x113c+23-0x114b)]=(unsigned char)pSrc->TP_UD[
+(0x492+7255-0x20e5)];buf[(0x7e6+4145-0x180e)]=(unsigned char)pSrc->TP_UD[
+(0x151b+694-0x17cc)];buf[(0x1e05+2125-0x264f)]=(unsigned char)(EncodeUcs2(&(pSrc
+->TP_UD[(0x237+7554-0x1fb3)]),&buf[(0x1e66+691-0x210f)],nLength-
+(0x766+4087-0x1757))+(0x10a7+4932-0x23e5));nLength=buf[(0x1c3b+2386-0x258a)]+
+(0x1cf4+1232-0x21c0);}else{buf[(0x463+4268-0x150c)]=EncodeUcs2(pSrc->TP_UD,&buf[
+(0x32b+3067-0xf22)],nLength);nLength=buf[(0xb7+5489-0x1625)]+(0x3f+3495-0xde2);}
+return nLength;}int Encode8bit(const char*pSrc,unsigned char*pDst,int nSrcLength
+){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x915+6995-0x2468)){return-
+(0x2047+1052-0x2462);}memcpy(pDst,pSrc,nSrcLength);return nSrcLength;}int
+EncodePdu_Submit(const SMS_PARAM*pSrc,char*pDst){int nLength=(0x3c5+2574-0xdd3);
+int nDstLength=(0x503+2831-0x1012);unsigned char buf[(0x1e88+1488-0x2358)]={
+(0x356+711-0x61d)};char tmpSCA[(0x42f+2161-0xc7c)]={(0x2a0+7731-0x20d3)};int
+check_udl=(0x129f+1632-0x18ff);memset(tmpSCA,(0x442+445-0x5ff),sizeof(tmpSCA));
+if(pSrc==NULL||pDst==NULL){return-(0x10b4+738-0x1395);}
+#if (0x5df+4647-0x1805)
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(
@@ -912,394 +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[(0xb6b+2430-0x14e9)]=(char)(((nLength)&
-(0x356+7287-0x1fcc))==(0x14e5+3568-0x22d5)?(nLength):nLength+(0x215d+334-0x22aa)
-)/(0x622+7757-0x246d)+(0x6ed+5982-0x1e4a);buf[(0x4d1+5302-0x1986)]=
-(0xd6f+5868-0x23da);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)-(0xc2c+6308-0x24cf))
-;if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",(0xac5+1996-0x128d)))){memset(tmpSCA,
-(0x209+6538-0x1b93),sizeof(tmpSCA));nLength=nLength-(0xc43+5223-0x20a9);
-#if (0x77c+3649-0x15bc)
-nLength=nLength-(0x105c+2047-0x185a);strncpy(tmpSCA,&(pSrc->SCA[
-(0x1eb+4187-0x1244)]),sizeof(tmpSCA)-(0x1970+1371-0x1eca));
+nLength=strlen(pSrc->SCA);buf[(0x1650+2636-0x209c)]=(char)(((nLength)&
+(0x97b+6022-0x2100))==(0x2e8+5406-0x1806)?(nLength):nLength+(0x1c26+2493-0x25e2)
+)/(0x447+6899-0x1f38)+(0xa6b+5410-0x1f8c);buf[(0xe3d+4939-0x2187)]=
+(0x1073+2552-0x19ea);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)-
+(0x1762+2879-0x22a0));if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",
+(0xc49+3193-0x18be)))){memset(tmpSCA,(0x723+7637-0x24f8),sizeof(tmpSCA));nLength
+=nLength-(0x1bef+555-0x1e19);
+#if (0x6ad+5003-0x1a37)
+nLength=nLength-(0x142d+1037-0x1839);strncpy(tmpSCA,&(pSrc->SCA[
+(0x5f9+5352-0x1adf)]),sizeof(tmpSCA)-(0x1364+4836-0x2647));
#else
-tmpSCA[(0xa96+4730-0x1d10)]=((char)(0x80d+7034-0x235c));strcpy(&(tmpSCA[
-(0x8eb+6725-0x232f)]),&(pSrc->SCA[(0x1641+2070-0x1e55)]));
+tmpSCA[(0x23db+477-0x25b8)]=((char)(0x13bd+3908-0x22d6));strcpy(&(tmpSCA[
+(0x323+2140-0xb7e)]),&(pSrc->SCA[(0x8d+8344-0x2123)]));
#endif
-buf[(0x326+4164-0x136a)]=(char)((nLength&(0x140d+2006-0x1be2))==
-(0x11e2+4243-0x2275)?nLength:nLength+(0x2a0+4876-0x15ab))/(0xdb0+2052-0x15b2)+
-(0x1a34+43-0x1a5e);buf[(0xc15+5000-0x1f9c)]=(0xe22+3366-0x1ab7);}else if(
-((char)(0xe9+814-0x3ec))==pSrc->SCA[(0xe19+2282-0x1703)]){memset(tmpSCA,
-(0x2ab+8275-0x22fe),sizeof(tmpSCA));
-#if (0x67b+1018-0xa74)
-nLength=nLength-(0xed0+5242-0x2349);strncpy(tmpSCA,&(pSrc->SCA[
-(0x11f7+1827-0x1919)]),sizeof(tmpSCA)-(0xbc3+5852-0x229e));
+buf[(0x219+7152-0x1e09)]=(char)((nLength&(0x6a5+3332-0x13a8))==
+(0x165+6101-0x193a)?nLength:nLength+(0x1d57+2259-0x2629))/(0x475+5142-0x1889)+
+(0x15b7+4250-0x2650);buf[(0x7e7+6843-0x22a1)]=(0x781+4069-0x16d5);}else if(
+((char)(0x42b+6443-0x1d2b))==pSrc->SCA[(0x259+6570-0x1c03)]){memset(tmpSCA,
+(0x10aa+607-0x1309),sizeof(tmpSCA));
+#if (0x85a+5073-0x1c2a)
+nLength=nLength-(0x114b+2822-0x1c50);strncpy(tmpSCA,&(pSrc->SCA[
+(0x107+4011-0x10b1)]),sizeof(tmpSCA)-(0x1d5+5836-0x18a0));
#else
strcpy(tmpSCA,pSrc->SCA);
#endif
-buf[(0xf5d+4806-0x2223)]=(char)((nLength&(0x98+112-0x107))==(0x15ed+330-0x1737)?
-(nLength):nLength+(0xeb8+1522-0x14a9))/(0x1a6+3541-0xf79)+(0x970+510-0xb6d);buf[
-(0x25f+8784-0x24ae)]=(0x80b+2977-0x131b);}
-#if (0xbbf+2652-0x161a)
+buf[(0xd4f+1423-0x12de)]=(char)((nLength&(0x97d+6666-0x2386))==
+(0x471+2433-0xdf2)?(nLength):nLength+(0x88f+3564-0x167a))/(0x78f+1835-0xeb8)+
+(0xe98+2205-0x1734);buf[(0x1be8+2270-0x24c5)]=(0xce1+6577-0x2601);}
+#if (0xfba+4465-0x212a)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x70\x64\x73\x74\x32\x3a\x25\x73" "\n",
pDst);
#endif
-if(nLength<(0x4db+5829-0x1b9f)||nLength>=sizeof(tmpSCA))return-
-(0xb9d+2179-0x141f);nDstLength=Bytes2String(buf,pDst,(0xbfa+785-0xf09));
+if(nLength<(0x215+828-0x550)||nLength>=sizeof(tmpSCA))return-
+(0x1502+3023-0x20d0);nDstLength=Bytes2String(buf,pDst,(0x1a5c+3011-0x261d));
nDstLength+=InvertNumbers(tmpSCA,&pDst[nDstLength],nLength);
-#if (0x379+2522-0xd52)
+#if (0x10d1+2213-0x1975)
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[(0xfa+714-0x3c4)]==((char)(0x2274+595-0x249c))){nLength=strlen(&(
-pSrc->TPA[(0x1e1d+395-0x1fa7)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
-TP_UDHI==(0x10bf+1286-0x15c5)){if(pSrc->TP_SRR==(0x120+3534-0xeee)){buf[
-(0x891+4439-0x19e8)]=(0xcfd+4877-0x1ff9);}if(pSrc->TP_SRR==(0x12d0+3248-0x1f7f))
-{buf[(0xd73+3766-0x1c29)]=(0x62+7460-0x1d55);}}if(pSrc->TP_UDHI==
-(0xdad+1787-0x14a7)){if(pSrc->TP_SRR==(0x155c+3629-0x2389)){buf[
-(0x964+6358-0x223a)]=(0x323+2288-0xbc2);}if(pSrc->TP_SRR==(0x3c9+1292-0x8d4)){
-buf[(0x1489+3117-0x20b6)]=(0x2dd+3209-0xef5);}}buf[(0x2fb+1238-0x7d0)]=
-(0x8d4+2471-0x127b);buf[(0xa3d+1533-0x1038)]=(char)nLength;if(pSrc->TPA[
-(0x51f+3582-0x131d)]==((char)(0x1486+4231-0x24e2))){buf[(0xf3f+2567-0x1943)]=
-(0xa20+6779-0x240a);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
-(0xbbd+263-0xcc0));nDstLength+=InvertNumbers(&(pSrc->TPA[(0xa3b+6036-0x21ce)]),&
-pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
-(0x4c5+8637-0x267e)))){buf[(0x2c9+5047-0x167e)]=(char)nLength-
-(0x1648+287-0x1765);buf[(0x1048+4971-0x23b0)]=(0x531+5094-0x1886);nDstLength+=
-Bytes2String(buf,&pDst[nDstLength],(0x439+4951-0x178c));nDstLength+=
-InvertNumbers(&(pSrc->TPA[(0x417+2978-0xfb7)]),&pDst[nDstLength],nLength-
-(0x2ab+4905-0x15d2));}else{buf[(0x1bba+886-0x1f2d)]=(0xe8d+2039-0x1603);
-nDstLength+=Bytes2String(buf,&pDst[nDstLength],(0xbac+5408-0x20c8));nDstLength+=
-InvertNumbers(pSrc->TPA,&pDst[nDstLength],nLength);}
-#if (0x1264+4718-0x24d1)
+if(pSrc->TPA[(0xd5b+1804-0x1467)]==((char)(0xde0+162-0xe57))){nLength=strlen(&(
+pSrc->TPA[(0xa47+3086-0x1654)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
+TP_UDHI==(0x1fcf+451-0x2192)){if(pSrc->TP_SRR==(0xeb0+827-0x11eb)){buf[
+(0x10cc+2838-0x1be2)]=(0x408+103-0x45e);}if(pSrc->TP_SRR==(0x1fd7+45-0x2003)){
+buf[(0xa83+3382-0x17b9)]=(0x16eb+2055-0x1ec1);}}if(pSrc->TP_UDHI==
+(0xb82+203-0xc4c)){if(pSrc->TP_SRR==(0x51d+1998-0xceb)){buf[(0x1868+3203-0x24eb)
+]=(0x3c6+6898-0x1e67);}if(pSrc->TP_SRR==(0x16fa+3754-0x25a3)){buf[
+(0xb34+908-0xec0)]=(0x2147+135-0x215d);}}buf[(0x93f+609-0xb9f)]=
+(0x1a3+2417-0xb14);buf[(0xd01+770-0x1001)]=(char)nLength;if(pSrc->TPA[
+(0x991+3364-0x16b5)]==((char)(0x1b72+667-0x1de2))){buf[(0x28d+6887-0x1d71)]=
+(0x1a8+5567-0x16d6);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
+(0x251+7808-0x20cd));nDstLength+=InvertNumbers(&(pSrc->TPA[(0x1f9b+340-0x20ee)])
+,&pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
+(0x877+2590-0x1291)))){buf[(0x59+6656-0x1a57)]=(char)nLength-(0x690+702-0x94c);
+buf[(0xa14+6769-0x2482)]=(0x51b+7815-0x2311);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0xfcf+5896-0x26d3));nDstLength+=InvertNumbers(&(pSrc->TPA[
+(0x1e03+293-0x1f26)]),&pDst[nDstLength],nLength-(0x43d+5456-0x198b));}else{buf[
+(0x244c+530-0x265b)]=(0x14cc+2102-0x1c81);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0x18a0+1690-0x1f36));nDstLength+=InvertNumbers(pSrc->TPA,&pDst[
+nDstLength],nLength);}
+#if (0xcf7+1838-0x1424)
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[(0x72b+568-0x963)]=pSrc->TP_PID;buf[
-(0xfc4+5053-0x2380)]=pSrc->TP_DCS;buf[(0xdd7+5324-0x22a1)]=pSrc->TP_VP;if(pSrc->
+nLength=(int)pSrc->TP_UDLength;buf[(0x216+9009-0x2547)]=pSrc->TP_PID;buf[
+(0x20c+6886-0x1cf1)]=pSrc->TP_DCS;buf[(0xfd9+5915-0x26f2)]=pSrc->TP_VP;if(pSrc->
TP_DCS==CODE_GSM7){nLength=code_is_gsm7(pSrc,buf,nLength);}else if(pSrc->TP_DCS
==CODE_UCS2){nLength=code_is_ucs2(pSrc,buf,nLength);}else{nLength=strlen(pSrc->
-TP_UD);if(pSrc->TP_UDHI==(0xd6a+2665-0x17d2)){buf[(0x85+7742-0x1ec0)]=(unsigned
-char)nLength;buf[(0x459+5063-0x181c)]=(unsigned char)pSrc->TP_UD[
-(0xab7+5801-0x2160)];buf[(0xc6a+6725-0x26aa)]=(0x5+6371-0x18e8);buf[
-(0x15c4+1200-0x1a6e)]=(unsigned char)pSrc->TP_UD[(0x19eb+1659-0x2064)];buf[
-(0x345+8948-0x2632)]=(unsigned char)pSrc->TP_UD[(0x16a2+574-0x18dd)];buf[
-(0x2cb+360-0x42b)]=(unsigned char)pSrc->TP_UD[(0xf89+1044-0x1399)];buf[
-(0x1b7+9535-0x26ed)]=(unsigned char)pSrc->TP_UD[(0x14bf+1327-0x19e9)];if(nLength
--(0xd60+1057-0x117b)<=(0x917+6746-0x2371)||nLength-(0xcf3+3348-0x1a01)>=sizeof(
-buf)-(0x1e7f+1293-0x2382))return-(0x1bf+5659-0x17d9);buf[(0x116a+1711-0x1816)]=(
-unsigned char)(Encode8bit(&(pSrc->TP_UD[(0x4ab+6665-0x1eae)]),&buf[
-(0xc1c+3438-0x1980)],(unsigned short)(nLength-(0x120c+3452-0x1f82)))+
-(0xb5c+4039-0x1b1d));nLength=buf[(0xeb0+6086-0x2673)]+(0xb1+6147-0x18b0);}else{
-if(nLength<=(0xff+6143-0x18fe)||nLength>=sizeof(buf)-(0x5c3+2928-0x112f))return-
-(0x84b+1739-0xf15);buf[(0x206f+42-0x2096)]=Encode8bit(pSrc->TP_UD,&buf[
-(0x1757+3813-0x2638)],nLength);nLength=buf[(0x476+3531-0x123e)]+
-(0xefd+4272-0x1fa9);}}check_udl=nLength-(0x1e5+6190-0x1a0f);nDstLength+=
+TP_UD);if(pSrc->TP_UDHI==(0x9c7+1106-0xe18)){buf[(0xbf8+930-0xf97)]=(unsigned
+char)nLength;buf[(0x1267+920-0x15fb)]=(unsigned char)pSrc->TP_UD[
+(0xf93+3434-0x1cfd)];buf[(0x1b1c+1340-0x2053)]=(0x966+213-0xa3b);buf[
+(0x3fd+665-0x690)]=(unsigned char)pSrc->TP_UD[(0x844+6561-0x21e3)];buf[
+(0x228+2012-0x9fd)]=(unsigned char)pSrc->TP_UD[(0x143c+1366-0x198f)];buf[
+(0x103a+5514-0x25bc)]=(unsigned char)pSrc->TP_UD[(0x17b+6230-0x19cd)];buf[
+(0x1210+1422-0x1795)]=(unsigned char)pSrc->TP_UD[(0x183+717-0x44b)];if(nLength-
+(0x1c88+143-0x1d11)<=(0x19c7+223-0x1aa6)||nLength-(0x7f9+2598-0x1219)>=sizeof(
+buf)-(0xa52+2982-0x15ee))return-(0x1123+1314-0x1644);buf[(0xbba+272-0xcc7)]=(
+unsigned char)(Encode8bit(&(pSrc->TP_UD[(0x1e97+330-0x1fdb)]),&buf[
+(0x19fb+1919-0x2170)],(unsigned short)(nLength-(0xeef+6122-0x26d3)))+
+(0x8dc+7227-0x2511));nLength=buf[(0x1272+1680-0x18ff)]+(0x1d5a+1418-0x22e0);}
+else{if(nLength<=(0x78b+1194-0xc35)||nLength>=sizeof(buf)-(0x6b5+4004-0x1655))
+return-(0x12e6+3076-0x1ee9);buf[(0x382+4036-0x1343)]=Encode8bit(pSrc->TP_UD,&buf
+[(0x939+6939-0x2450)],nLength);nLength=buf[(0x9d8+5016-0x1d6d)]+
+(0x1137+4989-0x24b0);}}check_udl=nLength-(0x1460+1441-0x19fd);nDstLength+=
Bytes2String(buf,&pDst[nDstLength],nLength);sc_cfg_set(NV_CHECK_UDL,"");if(
-check_udl>(0x1b08+1576-0x20a4)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");
-}
-#if (0x266+3744-0x1105)
+check_udl>(0x96f+2067-0x10f6)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");}
+#if (0x1436+3593-0x223e)
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 (0xec+1274-0x5e5)
+#if (0x55+6834-0x1b06)
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<(0x10d6+535-0x12ed)){return-(0x66a+6175-0x1e88);}nSrc=
-(0x18cd+1728-0x1f8d);nDst=(0xc95+5431-0x21cc);nByte=(0x17d7+2483-0x218a);nLeft=
-(0x32+927-0x3d1);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
-(0xed+7386-0x1d48);nLeft=*pSrc>>((0x7b+8106-0x201e)-nByte);pDst++;nDst++;nByte++
-;if(nByte==(0xa68+2454-0x13f7)){*pDst=nLeft;pDst++;nDst++;nByte=
-(0x1c0+413-0x35d);nLeft=(0x5e9+2514-0xfbb);}pSrc++;nSrc++;}*pDst='\0';return
+==NULL||nSrcLength<(0x17c1+1747-0x1e94)){return-(0x1fb+7676-0x1ff6);}nSrc=
+(0x19d0+3195-0x264b);nDst=(0x1df6+922-0x2190);nByte=(0x97+5672-0x16bf);nLeft=
+(0xb4+4726-0x132a);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
+(0x4f1+6984-0x1fba);nLeft=*pSrc>>((0x43a+1424-0x9c3)-nByte);pDst++;nDst++;nByte
+++;if(nByte==(0x281+2934-0xdf0)){*pDst=nLeft;pDst++;nDst++;nByte=
+(0x1a42+179-0x1af5);nLeft=(0x129+3621-0xf4e);}pSrc++;nSrc++;}*pDst='\0';return
nDst;}int DecodePushPdu(const char*pSrcPdu,SMS_PARAM*pDst){int nDstLength=
-(0x1614+2981-0x21b9);unsigned char tmp=(0xd21+1159-0x11a8);int ud_length=
-(0x717+7818-0x25a1);unsigned char buf[(0x19b1+2690-0x2333)]={
-(0x1703+2800-0x21f3)};char temp_num[(0x618+5756-0x1c30)]={(0xd1d+4894-0x203b)};
-unsigned char first_octet=(0xc8b+1230-0x1159);unsigned char udhl=
-(0x1668+284-0x1784);unsigned int halftmp=(0x99d+4092-0x1999);char tp_ra[
-(0x38b+5991-0x1aef)]={(0x6d3+5756-0x1d4f)};int tmplen=(0x1158+4650-0x2382);
-unsigned char IEIDL;int pushType=(0x1bc3+2761-0x268c);const char*pSrc=pSrcPdu;if
-(pSrcPdu==NULL||pDst==NULL){printf(
+(0x9a7+4255-0x1a46);unsigned char tmp=(0xcd+2464-0xa6d);int ud_length=
+(0x1e14+1984-0x25d4);unsigned char buf[(0xb41+2256-0x1311)]={(0x10a0+113-0x1111)
+};char temp_num[(0xf02+5733-0x2503)]={(0x1414+4776-0x26bc)};unsigned char
+first_octet=(0x1ca9+714-0x1f73);unsigned char udhl=(0xa29+4803-0x1cec);unsigned
+int halftmp=(0xe08+2234-0x16c2);char tp_ra[(0xb1+3506-0xe60)]={
+(0x3d7+7521-0x2138)};int tmplen=(0xb20+5148-0x1f3c);unsigned char IEIDL;int
+pushType=(0x12b+4247-0x11c2);const char*pSrc=pSrcPdu;if(pSrcPdu==NULL||pDst==
+NULL){printf(
"\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-(0x1183+4134-0x21a8);}String2Bytes(pSrc,&tmp,(0x17ea+1982-0x1fa6));
+);return-(0x112b+253-0x1227);}String2Bytes(pSrc,&tmp,(0xe53+600-0x10a9));
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==(0x813+1491-0xde6)){pSrc+=(0x8bc+5834-0x1f84);}else{tmp=(tmp-
-(0xcc2+5197-0x210e))*(0x1272+975-0x163f);pSrc+=(0x1073+3415-0x1dc6);if(tmp>
-(0x148f+3450-0x21e9)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x1084+5617-0x2655));
-tmp=(0x17fa+1033-0x1be3);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=
-tmp;}String2Bytes(pSrc,&tmp,(0x1536+738-0x1816));first_octet=tmp;pSrc+=
-(0x16c6+870-0x1a2a);String2Bytes(pSrc,&tmp,(0xca+7054-0x1c56));halftmp=tmp;if(
-tmp&(0x99b+5756-0x2016))tmp+=(0x4d9+3345-0x11e9);pSrc+=(0x11c+9437-0x25f7);
-memset(tp_ra,(0x71+7604-0x1e25),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
-(0x273+7759-0x20c0));pSrc+=(0x1b9f+2397-0x24fa);if((tp_ra[(0x1e91+886-0x2207)]&
-(0x170f+3310-0x23ad))==(0x17f6+3816-0x268e)){char tempra[(0x556+431-0x685)];char
- acAsc[(0xe66+2533-0x17cb)];if(halftmp>=(0x258+3937-0x11ab)){halftmp=(tmp/
-(0x65b+1744-0xd29))/(0x49d+3128-0x10ce)+(tmp/(0x7d1+6092-0x1f9b));}else{halftmp=
-tmp/(0x18e2+168-0x1988);}memset(tempra,(0x1e4b+536-0x2063),sizeof(tempra));
-memcpy(tempra,pSrc,tmp);memset(acAsc,(0x2472+162-0x2514),sizeof(acAsc));
-nDstLength=String2Bytes(tempra,buf,halftmp&(0xf74+1070-0x139b)?(int)halftmp*
-(0x4ef+6595-0x1eab)/(0xa8b+1931-0x1212)+(0x233d+768-0x263b):(int)halftmp*
-(0xd7f+412-0xf14)/(0x193+7373-0x1e5c));halftmp=Decode7bit(buf,acAsc,nDstLength);
-memset(pDst->TPA,(0xcd9+1603-0x131c),sizeof(pDst->TPA));if(halftmp>
-(0x3c6+162-0x448)){memcpy(pDst->TPA,acAsc,(0x1899+262-0x197f));tmp=
-(0x33c+7339-0x1fc7);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
-(0x1737+3051-0x2302)){SerializeNumbers_sms(pSrc,pDst->TPA,(0x1d6c+455-0x1f13));}
-else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0x1698+3204-0x231c)]&
-(0x533+6939-0x1fbd))==(0x14e4+2443-0x1dde)){memset(temp_num,(0x56a+6481-0x1ebb),
-sizeof(temp_num));if(pDst->TPA[(0x1ea+2057-0x9f3)]!=((char)(0xe2+3835-0xfb2))){
-snprintf(temp_num,sizeof(temp_num),"\x25\x73\x25\x73","\x2b",pDst->TPA);if(
-strlen(temp_num)>(0x356+8929-0x2617)){snprintf(pDst->TPA,sizeof(pDst->TPA),
-"\x25\x33\x32\x73",temp_num);}else{snprintf(pDst->TPA,sizeof(pDst->TPA),
-"\x25\x73",temp_num);}}}}pSrc+=tmp;String2Bytes(pSrc,(unsigned char*)&pDst->
-TP_PID,(0x849+462-0xa15));pSrc+=(0x18aa+2391-0x21ff);String2Bytes(pSrc,(unsigned
- char*)&pDst->TP_DCS,(0xad1+2985-0x1678));pSrc+=(0x70d+2935-0x1282);
-SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0x2f9+1835-0xa16));pSrc+=
-(0x272+8582-0x23ea);String2Bytes(pSrc,&tmp,(0x706+3116-0x1330));pSrc+=
-(0x7d1+3988-0x1763);memset(pDst->TP_UD,(0x4cc+5034-0x1876),sizeof(pDst->TP_UD));
+,tmp);if(tmp==(0xbd7+5985-0x2338)){pSrc+=(0xed2+6028-0x265c);}else{tmp=(tmp-
+(0x17df+1228-0x1caa))*(0x161+7870-0x201d);pSrc+=(0x1406+3864-0x231a);if(tmp>
+(0xcdb+6684-0x26d7)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x17c+1649-0x7cd));tmp
+=(0x1073+3525-0x1e18);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=tmp;
+}String2Bytes(pSrc,&tmp,(0x1565+1196-0x1a0f));first_octet=tmp;pSrc+=
+(0x226+7121-0x1df5);String2Bytes(pSrc,&tmp,(0x2c7+5504-0x1845));halftmp=tmp;if(
+tmp&(0x416+519-0x61c))tmp+=(0xb7b+5303-0x2031);pSrc+=(0x14ec+452-0x16ae);memset(
+tp_ra,(0x1fc4+521-0x21cd),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
+(0x6a0+161-0x73f));pSrc+=(0xba4+5135-0x1fb1);if((tp_ra[(0x1406+3069-0x2003)]&
+(0x72c+4590-0x18ca))==(0xbbb+4140-0x1b97)){char tempra[(0xa3+7409-0x1d14)];char
+acAsc[(0x8f8+5260-0x1d04)];if(halftmp>=(0x818+3781-0x16cf)){halftmp=(tmp/
+(0xf00+1804-0x160a))/(0x6ad+4788-0x195a)+(tmp/(0xa7d+126-0xaf9));}else{halftmp=
+tmp/(0x461+4196-0x14c3);}memset(tempra,(0x2d3+5700-0x1917),sizeof(tempra));
+memcpy(tempra,pSrc,tmp);memset(acAsc,(0x1aef+1626-0x2149),sizeof(acAsc));
+nDstLength=String2Bytes(tempra,buf,halftmp&(0xe80+236-0xf65)?(int)halftmp*
+(0xe12+2960-0x199b)/(0x99c+2209-0x1239)+(0x1595+1561-0x1bac):(int)halftmp*
+(0x1c09+724-0x1ed6)/(0xaa2+5426-0x1fd0));halftmp=Decode7bit(buf,acAsc,nDstLength
+);memset(pDst->TPA,(0x19a9+2190-0x2237),sizeof(pDst->TPA));if(halftmp>
+(0x1835+2375-0x215c)){memcpy(pDst->TPA,acAsc,(0x71d+2307-0x1000));tmp=
+(0xcba+4650-0x1ec4);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
+(0x7fc+5876-0x1ed0)){SerializeNumbers_sms(pSrc,pDst->TPA,(0xc77+3866-0x1b71));}
+else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0x2b9+2271-0xb98)]&
+(0x76f+5216-0x1b3e))==(0x587+8018-0x2448)){memset(temp_num,(0x4a8+4283-0x1563),
+sizeof(temp_num));if(pDst->TPA[(0x146c+3544-0x2244)]!=
+((char)(0x212a+460-0x22cb))){snprintf(temp_num,sizeof(temp_num),
+"\x25\x73\x25\x73","\x2b",pDst->TPA);if(strlen(temp_num)>(0xb6+3140-0xcda)){
+snprintf(pDst->TPA,sizeof(pDst->TPA),"\x25\x33\x32\x73",temp_num);}else{snprintf
+(pDst->TPA,sizeof(pDst->TPA),"\x25\x73",temp_num);}}}}pSrc+=tmp;String2Bytes(
+pSrc,(unsigned char*)&pDst->TP_PID,(0xa9+1022-0x4a5));pSrc+=(0x670+436-0x822);
+String2Bytes(pSrc,(unsigned char*)&pDst->TP_DCS,(0x857+3131-0x1490));pSrc+=
+(0x903+1561-0xf1a);SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0x8c1+2289-0x11a4));
+pSrc+=(0x12+7901-0x1ee1);String2Bytes(pSrc,&tmp,(0xdec+5729-0x244b));pSrc+=
+(0x5b6+2674-0x1026);memset(pDst->TP_UD,(0x4c7+2625-0xf08),sizeof(pDst->TP_UD));
at_print(LOG_DEBUG,
"\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&(0x947+858-0xc61)){const char*temp=pSrc;unsigned
+,first_octet);if(first_octet&(0x88d+2415-0x11bc)){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,(0xa73+5450-0x1fbb));temp+=
-(0x1055+5002-0x23dd);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0x607+7163-0x2200))
+SMS_NO_PUSH;String2Bytes(temp,&udhl,(0xc58+1820-0x1372));temp+=
+(0xa5b+4425-0x1ba2);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0x182a+1587-0x1e5b))
;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==(0xc12+6141-0x240a)){temp+=(0xa50+1500-0x102a)*
-tmplen+(0x1462+1775-0x1b4f);tmplen=String2Bytes(temp,&DestPort1,
-(0xfbc+239-0x10a9));at_print(LOG_DEBUG,
+,pDst->TP_IEI);if(pDst->TP_IEI==(0xa12+3589-0x1812)){temp+=(0x9ef+3590-0x17f3)*
+tmplen+(0xc6b+569-0xea2);tmplen=String2Bytes(temp,&DestPort1,(0x1b9f+614-0x1e03)
+);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+=(0x1893+3319-0x2588)*tmplen;tmplen=String2Bytes(temp,&
-DestPort2,(0x807+7566-0x2593));at_print(LOG_DEBUG,
+,DestPort1);temp+=(0x202+5577-0x17c9)*tmplen;tmplen=String2Bytes(temp,&DestPort2
+,(0x289+5709-0x18d4));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==(0x158+8242-0x217f))&&((DestPort2==
-(0x1a68+1712-0x2094))||(DestPort2==(0x18e8+1225-0x1d2c)))){pushType=SMS_PUSH;}}
-if(SMS_PUSH!=pushType){return pushType;}temp=pSrc+udhl*(0xa2a+5427-0x1f5b)+
-(0x5b+1910-0x7cd);tmplen=String2Bytes(temp,&pduType,(0x1195+3176-0x1dfb));if(
-pduType==(0x3d1+3742-0x1269)){pushType=SMS_PUSH;temp+=(0xfe1+5841-0x26ae);tmplen
-=String2Bytes(temp,&pduType,(0xc06+4992-0x1f84));if(pduType==(0xa65+933-0xd46)){
-pushType=SMS_NOTIFICATION;}else{temp+=(0x2266+748-0x254e);tmplen=String2Bytes(
-temp,&pduType,(0x1e29+2025-0x2610));if((pduType==(0x1b2+991-0x4cf))||(pduType==
-(0x52f+757-0x76e))){pushType=SMS_BOOTSTRAP;}}}if((pDst->TP_IEI==
-(0x38d+4876-0x1695))||(pDst->TP_IEI==(0x29d+4013-0x1245))||(pDst->TP_IEI==
-(0x1553+3745-0x23ec))){temp=pSrc+(0x4d+7986-0x1f7b);tmplen=String2Bytes(temp,&
-IEIDL,(0x1e13+590-0x205f));if(IEIDL==(udhl-(0x4f9+6310-0x1d9d))){}else{temp+=
-(0x12f4+2305-0x1bf3)*(0x12b4+2264-0x1b86);tmplen=String2Bytes(temp,&udhLen,
-(0x1093+2335-0x19b0));if(udhLen==(0x12d7+2682-0x1d4e)){temp+=(0x2c9+8778-0x2511)
-*tmplen;tmplen=String2Bytes(temp,&RefNum1,(0xd71+1393-0x12e0));pDst->TP_ReferNum
-=RefNum1;temp+=(0x181c+949-0x1bcf)*tmplen;tmplen=String2Bytes(temp,&pDst->
-TP_AllPieceNum,(0xdd4+5957-0x2517));temp+=(0x4f1+4822-0x17c5)*tmplen;tmplen=
-String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0xc67+4120-0x1c7d));temp+=
-(0x1e3f+1160-0x22c5)*tmplen;}else if(udhLen==(0x83+939-0x42a)){temp+=
-(0x1203+3470-0x1f8f)*tmplen;tmplen=String2Bytes(temp,&RefNum1,
-(0x229a+955-0x2653));temp+=(0x16c7+1173-0x1b5a)*tmplen;tmplen=String2Bytes(temp,
-&RefNum2,(0x141c+2351-0x1d49));int ReferNum=RefNum2+RefNum1*(0x19dd+1031-0x1ce4)
-;pDst->TP_ReferNum=ReferNum;temp+=(0x1437+396-0x15c1)*tmplen;tmplen=String2Bytes
-(temp,&pDst->TP_AllPieceNum,(0x1b70+690-0x1e20));temp+=(0x16c+3882-0x1094)*
-tmplen;tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x15f0+534-0x1804));
-temp+=(0xada+6392-0x23d0)*tmplen;}}}at_print(LOG_DEBUG,
+,DestPort2);if((DestPort1==(0x7c5+753-0xaab))&&((DestPort2==(0x45d+6289-0x1c6a))
+||(DestPort2==(0x175+2322-0xa02)))){pushType=SMS_PUSH;}}if(SMS_PUSH!=pushType){
+return pushType;}temp=pSrc+udhl*(0x1296+4161-0x22d5)+(0x1799+1349-0x1cda);tmplen
+=String2Bytes(temp,&pduType,(0x19d3+767-0x1cd0));if(pduType==(0x1563+494-0x174b)
+){pushType=SMS_PUSH;temp+=(0xcd1+2034-0x14bf);tmplen=String2Bytes(temp,&pduType,
+(0x155+3700-0xfc7));if(pduType==(0xf36+5088-0x2252)){pushType=SMS_NOTIFICATION;}
+else{temp+=(0x8b0+2347-0x11d7);tmplen=String2Bytes(temp,&pduType,
+(0x81c+5604-0x1dfe));if((pduType==(0x1e1+835-0x462))||(pduType==
+(0x6e7+2616-0x1069))){pushType=SMS_BOOTSTRAP;}}}if((pDst->TP_IEI==
+(0x3c0+7346-0x206e))||(pDst->TP_IEI==(0x935+4189-0x198d))||(pDst->TP_IEI==
+(0x5b3+900-0x92f))){temp=pSrc+(0x40+8370-0x20ee);tmplen=String2Bytes(temp,&IEIDL
+,(0xc0b+4102-0x1c0f));if(IEIDL==(udhl-(0x312+7502-0x205e))){}else{temp+=
+(0x599+4575-0x1776)*(0xd88+2247-0x1649);tmplen=String2Bytes(temp,&udhLen,
+(0xb59+3165-0x17b4));if(udhLen==(0xc+8713-0x2212)){temp+=(0x39d+1786-0xa95)*
+tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x136+7851-0x1fdf));pDst->TP_ReferNum=
+RefNum1;temp+=(0xfc9+452-0x118b)*tmplen;tmplen=String2Bytes(temp,&pDst->
+TP_AllPieceNum,(0xcf0+5393-0x21ff));temp+=(0x860+3149-0x14ab)*tmplen;tmplen=
+String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0xdf0+2823-0x18f5));temp+=
+(0x2df+1577-0x906)*tmplen;}else if(udhLen==(0xc68+4419-0x1da7)){temp+=
+(0x1e25+1608-0x246b)*tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x494+1027-0x895)
+);temp+=(0x720+7718-0x2544)*tmplen;tmplen=String2Bytes(temp,&RefNum2,
+(0xca3+2250-0x156b));int ReferNum=RefNum2+RefNum1*(0x347+4758-0x14dd);pDst->
+TP_ReferNum=ReferNum;temp+=(0x1693+3951-0x2600)*tmplen;tmplen=String2Bytes(temp,
+&pDst->TP_AllPieceNum,(0xfa6+2396-0x1900));temp+=(0x125+8720-0x2333)*tmplen;
+tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x660+7213-0x228b));temp+=
+(0x1d9d+1918-0x2519)*tmplen;}}}at_print(LOG_DEBUG,
"\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*(0x11e7+1252-0x16c9)+
-(0xe8d+2949-0x1a0c);tmplen=String2Bytes(temp,&wspLen,(0x4f4+1221-0x9b7));temp=
-temp+wspLen*(0x57+1400-0x5cd)+(0x272+434-0x422);}else{temp=pSrc+udhl*
-(0x1b99+2694-0x261d)+(0x5c+8100-0x1ffe);}nDstLength=((strlen(temp)<sizeof(pDst->
-TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0xee7+1834-0x1610)));memcpy(pDst->
+SMS_NOTIFICATION==pushType){temp=pSrc+udhl*(0xdd2+1977-0x1589)+
+(0xda0+1404-0x1316);tmplen=String2Bytes(temp,&wspLen,(0xffc+280-0x1112));temp=
+temp+wspLen*(0xe5c+2145-0x16bb)+(0x55+3825-0xf44);}else{temp=pSrc+udhl*
+(0xde7+4905-0x210e)+(0x287+5306-0x173f);}nDstLength=((strlen(temp)<sizeof(pDst->
+TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0x17ab+3521-0x256b)));memcpy(pDst->
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=(0x103d+1260-0x1529);if(pSrc
-==NULL||pDst==NULL||nSrcLength<(0xbd9+1022-0xfd7)){return-(0x40b+245-0x4ff);}
-nDstLength=nSrcLength;for(i=(0xcc8+6208-0x2508);i<nSrcLength;i+=
-(0x1c79+2075-0x2492)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-
-(0x157d+1508-0x1b60))==((char)(0x35f+3948-0x1285))){pDst--;nDstLength--;}*pDst=
+*pDst,int nSrcLength){int nDstLength;char ch;int i=(0x11cd+216-0x12a5);if(pSrc==
+NULL||pDst==NULL||nSrcLength<(0x46+5155-0x1469)){return-(0x6a8+6276-0x1f2b);}
+nDstLength=nSrcLength;for(i=(0x13bf+1302-0x18d5);i<nSrcLength;i+=
+(0x297+4349-0x1392)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-
+(0xc9f+5270-0x2134))==((char)(0x69f+3394-0x139b))){pDst--;nDstLength--;}*pDst=
'\0';return nDstLength;}UINT16 wms_ts_pack_gw_7_bit_chars(const UINT8*in,UINT16
-in_len,UINT16 shift,UINT16 out_len_max,UINT8*out){UINT16 i=(0xa90+7082-0x263a);
-UINT16 pos=(0x833+5847-0x1f0a);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+in_len,UINT16 shift,UINT16 out_len_max,UINT8*out){UINT16 i=(0x683+3554-0x1465);
+UINT16 pos=(0x210c+1152-0x258c);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
"\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(0x477+7224-0x20af);}shift%=(0x171a+1355-0x1c5e);if(shift!=
-(0xc34+4740-0x1eb8)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0x203+9302-0x2652)-
-shift)+(0xbf0+6537-0x2578);if(shift==(0x13dd+202-0x14a0)){shift=
-(0x3db+1741-0xaa8);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[pos
-]=in[i]>>shift;if(i+(0x3a8+7056-0x1f37)<in_len){out[pos]|=(UINT8)(in[i+
-(0x774+7141-0x2358)]<<((0x52c+7351-0x21dc)-shift));shift++;if(shift==
-(0x363+2746-0xe16)){shift=(0x820+7769-0x2679);i++;}}}return pos;}UINT8
+);return(0x15b1+3026-0x2183);}shift%=(0xeb2+2435-0x182e);if(shift!=
+(0xfe8+600-0x1240)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0xa06+3909-0x1944)-
+shift)+(0x1192+4127-0x21b0);if(shift==(0xc73+4949-0x1fc1)){shift=
+(0x346+4238-0x13d4);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[
+pos]=in[i]>>shift;if(i+(0x1aac+2325-0x23c0)<in_len){out[pos]|=(UINT8)(in[i+
+(0xcd1+2610-0x1702)]<<((0x91a+449-0xad4)-shift));shift++;if(shift==
+(0x8ed+767-0xbe5)){shift=(0xe50+1783-0x1547);i++;}}}return pos;}UINT8
wms_ts_encode_address(const wms_address_s_type*addr,UINT8*data){UINT8 i,pos=
-(0x1120+4537-0x22d9);if(addr->number_of_digits>WMS_GW_ADDRESS_MAX){at_print(
+(0x671+4873-0x197a);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(0x93b+6773-0x23b0);}if(addr->number_type==
+,addr->number_of_digits);return(0x1f11+1055-0x2330);}if(addr->number_type==
WMS_NUMBER_ALPHANUMERIC){data[pos]=(UINT8)((addr->number_of_digits*
-(0x252+8188-0x2247)+(0x897+4771-0x1b37))/(0x7e1+4580-0x19c1));}else{data[pos]=
-addr->number_of_digits;}pos++;data[pos]=(0x8fc+6504-0x21e4);data[pos]|=(UINT8)((
-UINT8)addr->number_type<<(0x1941+888-0x1cb5));data[pos]|=(UINT8)addr->
+(0x91d+7206-0x253c)+(0x197+4338-0x1286))/(0x23e9+44-0x2411));}else{data[pos]=
+addr->number_of_digits;}pos++;data[pos]=(0xd01+4608-0x1e81);data[pos]|=(UINT8)((
+UINT8)addr->number_type<<(0x1c9+6680-0x1bdd));data[pos]|=(UINT8)addr->
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,
-(0x2a7+5230-0x1715),WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=
-(0x286+7510-0x1fdc);i<addr->number_of_digits;i++){data[pos]=(UINT8)(addr->digits
-[i++]&(0xfc5+3036-0x1b92));{data[pos]|=(UINT8)(addr->digits[i]<<
-(0x20a5+447-0x2260));}pos++;}}return pos;}UINT8 wms_ts_encode_dcs(const
-wms_gw_dcs_s_type*dcs,UINT8*data){UINT8 pos=(0x245+3767-0x10fc);if(dcs->
+(0x955+2570-0x135f),WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=
+(0xa24+3175-0x168b);i<addr->number_of_digits;i++){data[pos]=(UINT8)(addr->digits
+[i++]&(0x207f+1332-0x25a4));{data[pos]|=(UINT8)(addr->digits[i]<<
+(0x677+1773-0xd60));}pos++;}}return pos;}UINT8 wms_ts_encode_dcs(const
+wms_gw_dcs_s_type*dcs,UINT8*data){UINT8 pos=(0x219f+754-0x2491);if(dcs->
msg_waiting==WMS_GW_MSG_WAITING_NONE){data[pos]=dcs->is_compressed?
-(0x152+5997-0x189f):(0x103a+1135-0x14a9);data[pos]|=(dcs->msg_class!=
-WMS_MESSAGE_CLASS_NONE)?(0xd0c+5456-0x224c):(0x39c+8057-0x2315);data[pos]|=dcs->
-alphabet<<(0x655+2464-0xff3);data[pos]|=dcs->msg_class&(0xd7d+3156-0x19ce);}else
- if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE_1111){data[pos]=
-(0xba4+4847-0x1da3);if(dcs->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]|=
-(0xbb4+2887-0x16f7);data[pos]|=dcs->msg_class&(0x7b6+7290-0x242d);}else{if(dcs->
-msg_waiting==WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x14b+1445-0x630);}else if(
-dcs->msg_waiting==WMS_GW_MSG_WAITING_STORE&&dcs->alphabet==
-WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0xb02+6876-0x250e);}else{data[pos]=
-(0x96a+4792-0x1b42);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
-(0x1095+5001-0x2416):(0x1066+4559-0x2235);data[pos]|=dcs->msg_waiting_kind&
-(0xc28+2379-0x1570);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
-UINT8*result){unsigned char low_bit=(bcd&(0x1474+131-0x14e8));unsigned char
-high_bit=((bcd&(0x626+5358-0x1a24))>>(0x5c9+7744-0x2405));if(low_bit>
-(0x46+8526-0x218b)||high_bit>(0xc6a+1772-0x134d)){at_print(LOG_DEBUG,
+(0xa1+1322-0x5ab):(0x12fb+4249-0x2394);data[pos]|=(dcs->msg_class!=
+WMS_MESSAGE_CLASS_NONE)?(0x830+7438-0x252e):(0xdcb+4278-0x1e81);data[pos]|=dcs->
+alphabet<<(0x611+6277-0x1e94);data[pos]|=dcs->msg_class&(0x1fab+320-0x20e8);}
+else if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE_1111){data[pos]=
+(0x1f04+364-0x1f80);if(dcs->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]|=
+(0x1b6+8938-0x249c);data[pos]|=dcs->msg_class&(0x17c+2024-0x961);}else{if(dcs->
+msg_waiting==WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x22a2+1314-0x2704);}else if
+(dcs->msg_waiting==WMS_GW_MSG_WAITING_STORE&&dcs->alphabet==
+WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0x9ec+6944-0x243c);}else{data[pos]=
+(0x3a4+1753-0x99d);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
+(0x1a71+1838-0x2197):(0x8f2+6081-0x20b3);data[pos]|=dcs->msg_waiting_kind&
+(0x1361+2325-0x1c73);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
+UINT8*result){unsigned char low_bit=(bcd&(0xd85+3850-0x1c80));unsigned char
+high_bit=((bcd&(0x888+3902-0x16d6))>>(0x7c4+71-0x807));if(low_bit>
+(0x58b+5184-0x19c2)||high_bit>(0xdd0+865-0x1128)){at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x64\x69\x67\x69\x74\x21");*
-result=(0x1c25+2027-0x2410);return FALSE;}else{*result=((bcd&(0x971+2011-0x113d)
-)+(((bcd&(0x118f+5093-0x2484))>>(0x176+1623-0x7c9))*(0xc55+3006-0x1809)));return
- TRUE;}}UINT8 wms_ts_encode_timestamp(const wms_timestamp_s_type*timestamp,UINT8
-*data){sint7 i;UINT8 pos=(0x1f10+484-0x20f4),j;if(!wms_ts_bcd_to_int(timestamp->
-year,&j)){return(0x68d+6307-0x1f30);}data[pos]=((timestamp->year&
-(0x460+8481-0x2572))<<(0xb4f+823-0xe82))+((timestamp->year&(0x1957+2515-0x223a))
->>(0xd45+4525-0x1eee));pos++;if(wms_ts_bcd_to_int(timestamp->month,&j)){if(j>
-(0x1ec6+485-0x209f)||j<(0xf6a+1243-0x1444)){at_print(LOG_DEBUG,
+result=(0x16e8+3408-0x2438);return FALSE;}else{*result=((bcd&(0xa5d+404-0xbe2))+
+(((bcd&(0x14f7+1564-0x1a23))>>(0x2c7+8164-0x22a7))*(0xb22+4890-0x1e32)));return
+TRUE;}}UINT8 wms_ts_encode_timestamp(const wms_timestamp_s_type*timestamp,UINT8*
+data){sint7 i;UINT8 pos=(0x18c1+1614-0x1f0f),j;if(!wms_ts_bcd_to_int(timestamp->
+year,&j)){return(0x1e85+1562-0x249f);}data[pos]=((timestamp->year&
+(0xa1+8099-0x2035))<<(0x609+6451-0x1f38))+((timestamp->year&(0x26b7+178-0x2679))
+>>(0x1ff5+17-0x2002));pos++;if(wms_ts_bcd_to_int(timestamp->month,&j)){if(j>
+(0xda6+901-0x111f)||j<(0x601+5835-0x1ccb)){at_print(LOG_DEBUG,
"\x4d\x6f\x6e\x74\x68\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);return(0x1892+2395-0x21ed);}}else{return(0xcc4+17-0xcd5);}data[pos]=((
-timestamp->month&(0x18cc+1436-0x1e59))<<(0x13b9+2526-0x1d93))+((timestamp->month
-&(0xfd7+118-0xf5d))>>(0x1fda+682-0x2280));pos++;if(wms_ts_bcd_to_int(timestamp->
-day,&j)){if(j>(0x2124+1500-0x26e1)||j<(0x17d6+1474-0x1d97)){at_print(LOG_DEBUG,
+,j);return(0x1fb3+1645-0x2620);}}else{return(0xbb+4540-0x1277);}data[pos]=((
+timestamp->month&(0x21b+6524-0x1b88))<<(0xeea+374-0x105c))+((timestamp->month&
+(0x31b+2715-0xcc6))>>(0x8b7+3400-0x15fb));pos++;if(wms_ts_bcd_to_int(timestamp->
+day,&j)){if(j>(0x1618+2438-0x1f7f)||j<(0xdda+2002-0x15ab)){at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);
-return(0xa15+2212-0x12b9);}}else{return(0xc45+3274-0x190f);}data[pos]=((
-timestamp->day&(0x1d88+844-0x20c5))<<(0xd4+8120-0x2088))+((timestamp->day&
-(0xdb8+5313-0x2189))>>(0x4b9+8652-0x2681));pos++;if(wms_ts_bcd_to_int(timestamp
-->hour,&j)){if(j>(0x8fa+5139-0x1cf6)){at_print(LOG_DEBUG,
+return(0x13bc+2452-0x1d50);}}else{return(0x1c7f+1599-0x22be);}data[pos]=((
+timestamp->day&(0x110d+3461-0x1e83))<<(0x8c9+5904-0x1fd5))+((timestamp->day&
+(0x445+4652-0x1581))>>(0x1b19+2462-0x24b3));pos++;if(wms_ts_bcd_to_int(timestamp
+->hour,&j)){if(j>(0xd40+4467-0x1e9c)){at_print(LOG_DEBUG,
"\x48\x6f\x75\x72\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j
-);return(0xfff+3968-0x1f7f);}}else{return(0xcf5+476-0xed1);}data[pos]=((
-timestamp->hour&(0x17c3+3813-0x2699))<<(0xb38+3026-0x1706))+((timestamp->hour&
-(0x548+6353-0x1d29))>>(0x1227+5300-0x26d7));pos++;if(wms_ts_bcd_to_int(timestamp
-->minute,&j)){if(j>(0x8f1+4288-0x1976)){at_print(LOG_DEBUG,
+);return(0x76+9427-0x2549);}}else{return(0x965+4007-0x190c);}data[pos]=((
+timestamp->hour&(0x1326+2403-0x1c7a))<<(0x637+1747-0xd06))+((timestamp->hour&
+(0xd81+3198-0x190f))>>(0x805+422-0x9a7));pos++;if(wms_ts_bcd_to_int(timestamp->
+minute,&j)){if(j>(0x132+651-0x382)){at_print(LOG_DEBUG,
"\x4d\x69\x6e\x75\x74\x65\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);return(0x7a+1540-0x67e);}}else{return(0xec8+2708-0x195c);}data[pos]=((
-timestamp->minute&(0x1671+3715-0x24e5))<<(0x1768+3689-0x25cd))+((timestamp->
-minute&(0x708+7928-0x2510))>>(0x6f0+1612-0xd38));pos++;if(wms_ts_bcd_to_int(
-timestamp->second,&j)){if(j>(0x20b+746-0x4ba)){at_print(LOG_DEBUG,
+,j);return(0x21ba+752-0x24aa);}}else{return(0x9ff+2614-0x1435);}data[pos]=((
+timestamp->minute&(0x615+5580-0x1bd2))<<(0x433+8790-0x2685))+((timestamp->minute
+&(0x15a7+1780-0x1bab))>>(0x3d1+23-0x3e4));pos++;if(wms_ts_bcd_to_int(timestamp->
+second,&j)){if(j>(0x120+1244-0x5c1)){at_print(LOG_DEBUG,
"\x53\x65\x63\x6f\x6e\x64\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);return(0x8b2+3607-0x16c9);}}else{return(0x922+3598-0x1730);}data[pos]=((
-timestamp->second&(0x8e1+6979-0x2415))<<(0x299+3556-0x1079))+((timestamp->second
-&(0xe38+903-0x10cf))>>(0xd18+3427-0x1a77));pos++;i=(sint7)timestamp->timezone;if
-(i>(0xd0d+770-0xfdf)||i<-(0xdb8+5079-0x215f)){at_print(LOG_DEBUG,
+,j);return(0x16cd+265-0x17d6);}}else{return(0x2ad+6173-0x1aca);}data[pos]=((
+timestamp->second&(0xc38+1662-0x12a7))<<(0x355+6468-0x1c95))+((timestamp->second
+&(0x175c+695-0x1923))>>(0x7b9+3555-0x1598));pos++;i=(sint7)timestamp->timezone;
+if(i>(0x204+1310-0x6f2)||i<-(0xb31+5991-0x2268)){at_print(LOG_DEBUG,
"\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(0x176+3334-0xe7c);}if(i>=(0x243+2103-0xa7a)){data[pos]=(UINT8)(((
-UINT8)(i%(0x10b2+2723-0x1b4b)))<<(0x214+88-0x268));data[pos]|=(i/
-(0x5e3+7639-0x23b0));}else{i*=(-(0x17e3+2571-0x21ed));data[pos]=(UINT8)(((UINT8)
-(i%(0x145f+2364-0x1d91)))<<(0xfec+2178-0x186a));data[pos]|=(i/
-(0x19c8+2341-0x22e3));data[pos]|=(0x1d35+2246-0x25f3);}pos++;return pos;}UINT8
-wms_ts_get_udh_length(const wms_udh_s_type*udh){UINT8 length=(0x1df9+751-0x20e8)
-;if(udh!=NULL){switch(udh->header_id){case WMS_UDH_CONCAT_8:length=
-(0x1032+2336-0x1951)+(0x78f+4179-0x17e1)+WMS_UDH_OCTETS_CONCAT8;break;case
-WMS_UDH_CONCAT_16:length=(0xafb+1369-0x1053)+(0x1e23+485-0x2007)+
-WMS_UDH_OCTETS_CONCAT16;break;case WMS_UDH_SPECIAL_SM:length=(0xfc+2338-0xa1d)+
-(0x34+5549-0x15e0)+WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=
-(0xfa9+4012-0x1f54)+(0x110f+5407-0x262d)+WMS_UDH_OCTETS_PORT8;break;case
-WMS_UDH_PORT_16:length=(0x12bb+2618-0x1cf4)+(0xd57+2661-0x17bb)+
-WMS_UDH_OCTETS_PORT16;break;case WMS_UDH_SMSC_CONTROL:length=
-(0x14fc+1968-0x1cab)+(0x239b+788-0x26ae)+udh->u.other.header_length;break;case
-WMS_UDH_SOURCE:length=(0x226b+1010-0x265c)+(0x761+2670-0x11ce)+udh->u.other.
-header_length;break;case WMS_UDH_WCMP:length=(0xe0d+2264-0x16e4)+
-(0x4da+4586-0x16c3)+udh->u.other.header_length;break;case WMS_UDH_TEXT_FORMATING
-:if(!udh->u.text_formating.is_color_present){length=(0x1105+4310-0x21da)+
-(0x1bda+1388-0x2145)+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{length=
-(0xc4b+2003-0x141d)+(0x13d7+2485-0x1d8b)+WMS_UDH_OCTETS_TEXT_FORMATTING+
-(0x938+5019-0x1cd2);}break;case WMS_UDH_PRE_DEF_SOUND:length=(0x7a4+5815-0x1e5a)
-+(0x22d0+747-0x25ba)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_USER_DEF_SOUND:
-length=(0x11aa+4272-0x2259)+(0x14a0+4512-0x263f)+udh->u.user_def_sound.
-data_length+(0x63a+3490-0x13db);break;case WMS_UDH_PRE_DEF_ANIM:length=
-(0x6df+1409-0xc5f)+(0x27+6690-0x1a48)+WMS_UDH_OCTETS_PRE_DEF;break;case
-WMS_UDH_LARGE_ANIM:length=(0x1262+1828-0x1985)+(0x446+2634-0xe8f)+
-WMS_UDH_LARGE_BITMAP_SIZE*WMS_UDH_ANIM_NUM_BITMAPS+(0x190b+186-0x19c4);break;
-case WMS_UDH_SMALL_ANIM:length=(0xf2c+3757-0x1dd8)+(0x1e95+1334-0x23ca)+
-WMS_UDH_SMALL_BITMAP_SIZE*WMS_UDH_ANIM_NUM_BITMAPS+(0x1a1d+248-0x1b14);break;
-case WMS_UDH_LARGE_PICTURE:length=(0xa6f+5519-0x1ffd)+(0xc78+6235-0x24d2)+
-WMS_UDH_LARGE_PIC_SIZE+(0x17f5+2165-0x2069);break;case WMS_UDH_SMALL_PICTURE:
-length=(0x19b1+2009-0x2189)+(0x892+3075-0x1494)+WMS_UDH_SMALL_PIC_SIZE+
-(0x4d7+1250-0x9b8);break;case WMS_UDH_VAR_PICTURE:length=(0x963+2201-0x11fb)+
-(0x179f+3035-0x2379)+(UINT8)(udh->u.var_picture.height*udh->u.var_picture.width/
-(0x9dc+4753-0x1c65))+(0x18bc+3243-0x2564);break;case WMS_UDH_RFC822:length=
-(0x1a6+6983-0x1cec)+(0x6cf+17-0x6df)+WMS_UDH_OCTETS_RFC822;break;case
-WMS_UDH_NAT_LANG_SS:length=(0x1c8+7411-0x1eba)+(0xc11+4978-0x1f82)+
-WMS_UDH_OCTETS_NAT_LANG_SS;break;case WMS_UDH_NAT_LANG_LS:length=
-(0x8a+7413-0x1d7e)+(0x367+4045-0x1333)+WMS_UDH_OCTETS_NAT_LANG_LS;break;case
-WMS_UDH_USER_PROMPT:length=(0x1485+3390-0x21c2)+(0xa31+4604-0x1c2c)+
-WMS_UDH_OCTETS_USER_PROMPT;break;case WMS_UDH_EXTENDED_OBJECT:length=
-(0x1076+717-0x1342)+(0x257+7757-0x20a3)+udh->u.eo.content.length;if(udh->u.eo.
-first_segment==TRUE){length+=WMS_UDH_OCTETS_EO_HEADER;}break;default:length=
-(0x6fd+4544-0x18bc)+(0xa0a+1274-0xf03)+udh->u.other.header_length;break;}}return
- length;}uint32 wms_ts_compute_user_data_header_length(const UINT8 num_headers,
-const wms_udh_s_type*headers){uint32 length=(0xb60+2433-0x14e1);uint32 i;if(
-headers==NULL){at_print(LOG_DEBUG,
+,i);return(0x1863+193-0x1924);}if(i>=(0x2d1+8328-0x2359)){data[pos]=(UINT8)(((
+UINT8)(i%(0x8ed+6600-0x22ab)))<<(0x11f1+1235-0x16c0));data[pos]|=(i/
+(0x873+7760-0x26b9));}else{i*=(-(0xc03+3006-0x17c0));data[pos]=(UINT8)(((UINT8)(
+i%(0x2ca+8739-0x24e3)))<<(0x8f+987-0x466));data[pos]|=(i/(0x875+6216-0x20b3));
+data[pos]|=(0x366+9015-0x2695);}pos++;return pos;}UINT8 wms_ts_get_udh_length(
+const wms_udh_s_type*udh){UINT8 length=(0x694+7987-0x25c7);if(udh!=NULL){switch(
+udh->header_id){case WMS_UDH_CONCAT_8:length=(0xf5b+5705-0x25a3)+
+(0x1042+3738-0x1edb)+WMS_UDH_OCTETS_CONCAT8;break;case WMS_UDH_CONCAT_16:length=
+(0x3df+8817-0x264f)+(0x1e5+5529-0x177d)+WMS_UDH_OCTETS_CONCAT16;break;case
+WMS_UDH_SPECIAL_SM:length=(0x264+6708-0x1c97)+(0x141+9277-0x257d)+
+WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=(0x1125+4084-0x2118)+
+(0x91c+184-0x9d3)+WMS_UDH_OCTETS_PORT8;break;case WMS_UDH_PORT_16:length=
+(0x329+1682-0x9ba)+(0xd37+3413-0x1a8b)+WMS_UDH_OCTETS_PORT16;break;case
+WMS_UDH_SMSC_CONTROL:length=(0x352+3039-0xf30)+(0x1bf8+652-0x1e83)+udh->u.other.
+header_length;break;case WMS_UDH_SOURCE:length=(0xfc+6122-0x18e5)+
+(0x1467+1350-0x19ac)+udh->u.other.header_length;break;case WMS_UDH_WCMP:length=
+(0x188d+381-0x1a09)+(0xc45+4675-0x1e87)+udh->u.other.header_length;break;case
+WMS_UDH_TEXT_FORMATING:if(!udh->u.text_formating.is_color_present){length=
+(0x98c+884-0xcff)+(0x45c+4382-0x1579)+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{
+length=(0xdba+1561-0x13d2)+(0x9+7411-0x1cfb)+WMS_UDH_OCTETS_TEXT_FORMATTING+
+(0xe24+2472-0x17cb);}break;case WMS_UDH_PRE_DEF_SOUND:length=(0x347+8288-0x23a6)
++(0x17e0+826-0x1b19)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_USER_DEF_SOUND:
+length=(0x1972+219-0x1a4c)+(0x1464+138-0x14ed)+udh->u.user_def_sound.data_length
++(0x1261+2015-0x1a3f);break;case WMS_UDH_PRE_DEF_ANIM:length=(0x688+7770-0x24e1)
++(0xac1+619-0xd2b)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_LARGE_ANIM:length=
+(0x1987+2445-0x2313)+(0xe86+2196-0x1719)+WMS_UDH_LARGE_BITMAP_SIZE*
+WMS_UDH_ANIM_NUM_BITMAPS+(0x598+7649-0x2378);break;case WMS_UDH_SMALL_ANIM:
+length=(0xcf5+3131-0x192f)+(0x2c0+5919-0x19de)+WMS_UDH_SMALL_BITMAP_SIZE*
+WMS_UDH_ANIM_NUM_BITMAPS+(0x1b27+1603-0x2169);break;case WMS_UDH_LARGE_PICTURE:
+length=(0x1157+5326-0x2624)+(0x1781+3003-0x233b)+WMS_UDH_LARGE_PIC_SIZE+
+(0x620+5127-0x1a26);break;case WMS_UDH_SMALL_PICTURE:length=(0x6ed+3060-0x12e0)+
+(0x85a+3527-0x1620)+WMS_UDH_SMALL_PIC_SIZE+(0x11e5+4466-0x2356);break;case
+WMS_UDH_VAR_PICTURE:length=(0x2131+483-0x2313)+(0x1019+990-0x13f6)+(UINT8)(udh->
+u.var_picture.height*udh->u.var_picture.width/(0x13f+5723-0x1792))+
+(0x880+6646-0x2273);break;case WMS_UDH_RFC822:length=(0x2184+679-0x242a)+
+(0xbba+5383-0x20c0)+WMS_UDH_OCTETS_RFC822;break;case WMS_UDH_NAT_LANG_SS:length=
+(0x1787+2048-0x1f86)+(0x654+6262-0x1ec9)+WMS_UDH_OCTETS_NAT_LANG_SS;break;case
+WMS_UDH_NAT_LANG_LS:length=(0x78d+6828-0x2238)+(0x7f1+3802-0x16ca)+
+WMS_UDH_OCTETS_NAT_LANG_LS;break;case WMS_UDH_USER_PROMPT:length=
+(0x1a33+1092-0x1e76)+(0x7cb+883-0xb3d)+WMS_UDH_OCTETS_USER_PROMPT;break;case
+WMS_UDH_EXTENDED_OBJECT:length=(0x14bc+2448-0x1e4b)+(0x6bc+3626-0x14e5)+udh->u.
+eo.content.length;if(udh->u.eo.first_segment==TRUE){length+=
+WMS_UDH_OCTETS_EO_HEADER;}break;default:length=(0x1d70+2435-0x26f2)+
+(0x5a5+3609-0x13bd)+udh->u.other.header_length;break;}}return length;}uint32
+wms_ts_compute_user_data_header_length(const UINT8 num_headers,const
+wms_udh_s_type*headers){uint32 length=(0x17bc+1152-0x1c3c);uint32 i;if(headers==
+NULL){at_print(LOG_DEBUG,
"\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(0x1bfd+1499-0x21d8);}if(num_headers>(0x1a+7514-0x1d74)){length+=
-(0x1386+538-0x159f);for(i=(0xe27+5652-0x243b);i<num_headers&&i<
+);return(0x241+9310-0x269f);}if(num_headers>(0x16a3+827-0x19de)){length+=
+(0xc35+3509-0x19e9);for(i=(0xc22+2253-0x14ef);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=(0x1496+1197-0x1943)
-;if(dcs==NULL||user_data==NULL){at_print(LOG_DEBUG,
+*dcs,const wms_gw_user_data_s_type*user_data){uint32 length=(0x284+9076-0x25f8);
+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(0x1525+2840-0x203d);}length+=wms_ts_compute_user_data_header_length(
+);return(0x1455+1429-0x19ea);}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*(0xbd+2932-0xc2a))+
-(0x126a+3959-0x21da))/(0xb9c+2979-0x1737);}else{length+=user_data->sm_len;}
+WMS_GW_ALPHABET_7_BIT_DEFAULT){length+=((user_data->sm_len*(0x16c8+13-0x16ce))+
+(0x1acb+2798-0x25b2))/(0x207c+1253-0x2559);}else{length+=user_data->sm_len;}
return length;}static int wms_ts_encode_udh_concat_8(UINT8*udh){int pos=
-(0x1ddf+2288-0x26cf);if(const_header->u.concat_8.total_sm==(0x17a5+471-0x197c)||
-const_header->u.concat_8.seq_num==(0x10ba+5425-0x25eb)||const_header->u.concat_8
-.seq_num>const_header->u.concat_8.total_sm){at_print(LOG_DEBUG,
+(0x3ba+1651-0xa2d);if(const_header->u.concat_8.total_sm==(0x112c+3114-0x1d56)||
+const_header->u.concat_8.seq_num==(0x590+3761-0x1441)||const_header->u.concat_8.
+seq_num>const_header->u.concat_8.total_sm){at_print(LOG_DEBUG,
"\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(0x64d+3863-0x1564);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0x186d+2541-0x225a);}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=(0x2119+635-0x2394);if(
-const_header->u.concat_16.total_sm==(0x1649+2988-0x21f5)||const_header->u.
-concat_16.seq_num==(0x841+571-0xa7c)||const_header->u.concat_16.seq_num>
-const_header->u.concat_16.total_sm){at_print(LOG_DEBUG,
+wms_ts_encode_udh_concat16(UINT8*udh){int pos=(0xe0c+472-0xfe4);if(const_header
+->u.concat_16.total_sm==(0x7f1+6942-0x230f)||const_header->u.concat_16.seq_num==
+(0x329+8196-0x232d)||const_header->u.concat_16.seq_num>const_header->u.concat_16
+.total_sm){at_print(LOG_DEBUG,
"\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(0x51a+7670-0x2310);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0x1ec0+1660-0x253c);}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)>>(0x2ff+5824-0x19b7));udh[pos++]=(UINT8
-)(const_header->u.concat_16.msg_ref&(0xd7d+298-0xda8));udh[pos++]=const_header->
+const_header->u.concat_16.msg_ref&65280)>>(0x1e9+191-0x2a0));udh[pos++]=(UINT8)(
+const_header->u.concat_16.msg_ref&(0x2ad+6065-0x195f));udh[pos++]=const_header->
u.concat_16.total_sm;udh[pos++]=const_header->u.concat_16.seq_num;return pos;}
-int wms_ts_encode_udh_nat_lang_ss(UINT8*udh){int pos=(0x1bba+1543-0x21c1);udh[
-pos++]=(UINT8)WMS_UDH_NAT_LANG_SS;udh[pos++]=(UINT8)WMS_UDH_OCTETS_NAT_LANG_SS;
-udh[pos++]=(UINT8)const_header->u.nat_lang_ss.nat_lang_id;return pos;}int
-wms_ts_encode_udh_nat_lang_ls(UINT8*udh){int pos=(0xb6c+1982-0x132a);udh[pos++]=
-(UINT8)WMS_UDH_NAT_LANG_LS;udh[pos++]=(UINT8)WMS_UDH_OCTETS_NAT_LANG_LS;udh[pos
+int wms_ts_encode_udh_nat_lang_ss(UINT8*udh){int pos=(0xb9b+633-0xe14);udh[pos++
+]=(UINT8)WMS_UDH_NAT_LANG_SS;udh[pos++]=(UINT8)WMS_UDH_OCTETS_NAT_LANG_SS;udh[
+pos++]=(UINT8)const_header->u.nat_lang_ss.nat_lang_id;return pos;}int
+wms_ts_encode_udh_nat_lang_ls(UINT8*udh){int pos=(0x1859+1668-0x1edd);udh[pos++]
+=(UINT8)WMS_UDH_NAT_LANG_LS;udh[pos++]=(UINT8)WMS_UDH_OCTETS_NAT_LANG_LS;udh[pos
++]=(UINT8)const_header->u.nat_lang_ls.nat_lang_id;return pos;}int
wms_ts_encode_udh_other(UINT8*udh,wms_udh_id_e_type header_id){int i=
-(0x1396+472-0x156e);int pos=(0x1563+2140-0x1dbf);udh[pos++]=(UINT8)const_header
+(0x1501+2883-0x2044);int pos=(0x17d9+3185-0x244a);udh[pos++]=(UINT8)const_header
->u.other.header_id;udh[pos++]=const_header->u.other.header_length;for(i=
-(0x777+84-0x7cb);i<const_header->u.other.header_length;i++){udh[pos++]=
+(0x46d+507-0x668);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=
-(0x4eb+8400-0x25bb);if(num_headers==(0x184a+2784-0x232a))return
-(0x82b+3387-0x1566);++pos;for(i=(0x458+1462-0xa0e);i<WMS_MAX_UD_HEADERS&&i<
-num_headers;i++){const_header=&headers[i];switch(const_header->header_id){case
-WMS_UDH_CONCAT_8:pos+=wms_ts_encode_udh_concat_8(data+pos);break;case
-WMS_UDH_CONCAT_16:pos+=wms_ts_encode_udh_concat16(data+pos);break;
-#if (0x4b2+2453-0xe47)
+(0x645+4566-0x181b);if(num_headers==(0xcf1+5748-0x2365))return(0xc85+67-0xcc8);
+++pos;for(i=(0x1f1c+1885-0x2679);i<WMS_MAX_UD_HEADERS&&i<num_headers;i++){
+const_header=&headers[i];switch(const_header->header_id){case WMS_UDH_CONCAT_8:
+pos+=wms_ts_encode_udh_concat_8(data+pos);break;case WMS_UDH_CONCAT_16:pos+=
+wms_ts_encode_udh_concat16(data+pos);break;
+#if (0xde6+4277-0x1e9b)
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
@@ -1319,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[
-(0x304+370-0x476)]=(UINT8)(pos-(0x1192+162-0x1233));return((UINT8)(pos-
-(0x645+1447-0xbeb)));}UINT8 wms_ts_encode_gw_user_data(const wms_gw_dcs_s_type*
-dcs,const wms_gw_user_data_s_type*user_data,UINT8*data){UINT16 i,pos=
-(0x1771+1016-0x1b69);UINT8 fill_bits=(0x5eb+5364-0x1adf);UINT16
+(0x21d+3925-0x1172)]=(UINT8)(pos-(0x9ac+1657-0x1024));return((UINT8)(pos-
+(0x115b+3014-0x1d20)));}UINT8 wms_ts_encode_gw_user_data(const wms_gw_dcs_s_type
+*dcs,const wms_gw_user_data_s_type*user_data,UINT8*data){UINT16 i,pos=
+(0x359+8112-0x2309);UINT8 fill_bits=(0x23e1+421-0x2586);UINT16
total_bits_occupied;UINT8 user_data_header_length;UINT16 user_data_length;data[
pos]=(UINT8)user_data->sm_len;pos++;if(dcs->alphabet==
-WMS_GW_ALPHABET_7_BIT_DEFAULT){if(user_data->num_headers>(0xe7b+6051-0x261e)){if
-(wms_ts_compute_user_data_header_length(user_data->num_headers,user_data->
+WMS_GW_ALPHABET_7_BIT_DEFAULT){if(user_data->num_headers>(0x1710+2353-0x2041)){
+if(wms_ts_compute_user_data_header_length(user_data->num_headers,user_data->
headers)<=WMS_SMS_UDL_MAX_8_BIT){user_data_header_length=
wms_ts_encode_user_data_header(user_data->num_headers,user_data->headers,data+
-pos);pos+=user_data_header_length+(0x964+4017-0x1914);total_bits_occupied=(
-user_data_header_length+(0x819+7321-0x24b1))*(0xcaa+5334-0x2178);fill_bits=(
-total_bits_occupied%(0x6cd+2008-0xe9e));if(fill_bits!=(0x492+7253-0x20e7)){
-fill_bits=(0xe41+4715-0x20a5)-fill_bits;}user_data_length=(total_bits_occupied+
-fill_bits+(user_data->sm_len*(0x64+9530-0x2597)))/(0x2219+54-0x2248);data[
-(0x18c6+2222-0x2174)]=(UINT8)user_data_length;data[(0x985+4143-0x19b3)]=
+pos);pos+=user_data_header_length+(0x24fd+406-0x2692);total_bits_occupied=(
+user_data_header_length+(0x1cf7+1473-0x22b7))*(0x169d+3647-0x24d4);fill_bits=(
+total_bits_occupied%(0x11fb+2023-0x19db));if(fill_bits!=(0x73d+7845-0x25e2)){
+fill_bits=(0x924+741-0xc02)-fill_bits;}user_data_length=(total_bits_occupied+
+fill_bits+(user_data->sm_len*(0x1033+3479-0x1dc3)))/(0xfcd+310-0x10fc);data[
+(0x1cd+6708-0x1c01)]=(UINT8)user_data_length;data[(0x619+5592-0x1bf0)]=
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>
-(0x1414+4663-0x264b)){if(wms_ts_compute_user_data_header_length(user_data->
+(0x9f3+1239-0xeca)){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[(0xa39+4621-0x1c46)]=(UINT8)(user_data->sm_len+user_data_header_length
-+(0x137d+1004-0x1768));pos+=user_data_header_length+(0x11db+4779-0x2485);}else{
+pos);data[(0x241f+53-0x2454)]=(UINT8)(user_data->sm_len+user_data_header_length+
+(0x1b37+776-0x1e3e));pos+=user_data_header_length+(0x583+1435-0xb1d);}else{
at_print(LOG_DEBUG,
"\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=(0x2f4+3438-0x1062),i;if(
+wms_status_e_type st=WMS_OK_S;UINT8*data;UINT8 pos=(0x2c9+658-0x55b),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,
-(0x41f+8689-0x2610),WMS_MAX_LEN);data[pos]=(0x549+3301-0x122e);data[pos]|=
-deliver->more?(0x2327+190-0x23e5):(0x1aed+1917-0x2266);data[pos]|=deliver->
-status_report_enabled?(0x169a+2540-0x2066):(0x41c+7256-0x2074);data[pos]|=
-deliver->user_data_header_present?(0x1746+334-0x1854):(0x761+6100-0x1f35);data[
-pos]|=deliver->reply_path_present?(0x1601+1432-0x1b19):(0x23a6+783-0x26b5);pos++
-;i=wms_ts_encode_address(&deliver->address,&data[pos]);if(i==(0xead+5085-0x228a)
-){return WMS_INVALID_PARM_SIZE_S;}pos+=i;data[pos]=deliver->pid;pos++;pos+=
-wms_ts_encode_dcs(&deliver->dcs,data+pos);i=wms_ts_encode_timestamp(&deliver->
-timestamp,data+pos);if(i==(0x921+1706-0xfcb)){return WMS_INVALID_PARM_VALUE_S;}
-pos+=i;if(wms_ts_compute_gw_user_data_length(&deliver->dcs,&deliver->user_data)>
-WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
+(0x1906+1145-0x1d7f),WMS_MAX_LEN);data[pos]=(0xb18+2785-0x15f9);data[pos]|=
+deliver->more?(0x1801+838-0x1b47):(0x1295+649-0x151a);data[pos]|=deliver->
+status_report_enabled?(0x1135+3002-0x1ccf):(0x67b+6476-0x1fc7);data[pos]|=
+deliver->user_data_header_present?(0x1f8+3050-0xda2):(0x1a5c+2257-0x232d);data[
+pos]|=deliver->reply_path_present?(0x1691+2209-0x1eb2):(0x1542+774-0x1848);pos++
+;i=wms_ts_encode_address(&deliver->address,&data[pos]);if(i==
+(0x1350+2868-0x1e84)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;data[pos]=deliver->
+pid;pos++;pos+=wms_ts_encode_dcs(&deliver->dcs,data+pos);i=
+wms_ts_encode_timestamp(&deliver->timestamp,data+pos);if(i==(0x795+4767-0x1a34))
+{return WMS_INVALID_PARM_VALUE_S;}pos+=i;if(wms_ts_compute_gw_user_data_length(&
+deliver->dcs,&deliver->user_data)>WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
"\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=(0x1e35+163-0x1ed8),j;if(timestamp!=NULL){if(!wms_ts_bcd_to_int(timestamp->
+ v=(0x1194+5379-0x2697),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*(0xd06+2299-0x1494);if(!wms_ts_bcd_to_int(timestamp->month,&j)){at_print(
+);}i=j*(0xfec+4329-0x1f68);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*(0x166+5097-0x1531);if(!wms_ts_bcd_to_int(timestamp->day,&j)){
+,j);}i=i+j*(0xd71+3576-0x1b4b);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>(0x802+4037-0x17a9)){v=(UINT8)((i+(0x595+6509-0x1efc))/
-(0xb99+5216-0x1ff2)+(0x186f+2271-0x208e));}else if(i>=(0xad9+5442-0x201a)){v=(
-UINT8)(i+(0x527+3640-0x12b9));}else{if(!wms_ts_bcd_to_int(timestamp->day,&j)){
++=j;if(i>(0x1d04+1212-0x21a2)){v=(UINT8)((i+(0xe5+2526-0xabd))/
+(0x499+1855-0xbd1)+(0xcd+6696-0x1a35));}else if(i>=(0x1c2+4277-0x1276)){v=(UINT8
+)(i+(0xf58+4468-0x2026));}else{if(!wms_ts_bcd_to_int(timestamp->day,&j)){
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*(0x11d1+514-0x13bb)*(0x1323+1973-0x1a9c);if(!wms_ts_bcd_to_int(timestamp->
-hour,&j)){at_print(LOG_DEBUG,
+=j*(0x58d+3565-0x1362)*(0xba9+363-0xcd8);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*(0x15b7+3058-0x216d);if(!wms_ts_bcd_to_int(timestamp->minute,&j)){
+);}i=i+j*(0x971+3927-0x188c);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>(0x129a+2332-0x1baa)*(0x1e8+580-0x3f0)){v=(UINT8)((i-((
-(0x748+973-0xb09)*(0x16c+4217-0x11a9))+(0x3a3+8738-0x25a8)))/
-(0x1528+3628-0x2336)+(0x2e7+7036-0x1dd4));}else{v=(UINT8)((i+(0x543+1995-0xd0a))
-/(0x1ad+5337-0x1681)-(0x16f6+2435-0x2078));}}}else{at_print(LOG_DEBUG,
+,j);}i+=j;if(i>(0x21a5+1227-0x2664)*(0xaba+3125-0x16b3)){v=(UINT8)((i-((
+(0x96c+1910-0x10d6)*(0xe25+5616-0x23d9))+(0x272+492-0x441)))/
+(0x19da+2846-0x24da)+(0x113+1989-0x849));}else{v=(UINT8)((i+(0x76+7832-0x1f0a))/
+(0xa79+3677-0x18d1)-(0x830+2889-0x1378));}}}else{at_print(LOG_DEBUG,
"\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=(0xe12+1826-0x1534);switch(validity->format){
+validity,UINT8*data){UINT8 i,pos=(0x183+6048-0x1923);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==(0xd53+5243-0x21ce)){at_print(LOG_DEBUG,
+if(i==(0x9a4+1713-0x1055)){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=(0x206c+1412-0x25f0),i;if(submit==NULL||raw_ts_data_ptr==NULL){
+UINT8 pos=(0x16b2+2343-0x1fd9),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,
-(0x1442+3593-0x224b),WMS_MAX_LEN);data[pos]=(0x779+5152-0x1b98);data[pos]|=
-submit->reject_duplicates?(0x1059+5405-0x2572):(0x162b+21-0x1640);if(submit->
-validity.format>(0x8ba+5184-0x1cf7)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}
-data[pos]|=submit->validity.format<<(0xefd+5901-0x2607);data[pos]|=submit->
-status_report_enabled?(0x765+312-0x87d):(0x9ad+5323-0x1e78);data[pos]|=submit->
-user_data_header_present?(0x198+9142-0x250e):(0x519+4124-0x1535);data[pos]|=
-submit->reply_path_present?(0x1024+2746-0x1a5e):(0xbcc+1280-0x10cc);pos++;data[
-pos]=(UINT8)submit->message_reference;pos++;i=wms_ts_encode_address(&submit->
-address,&data[pos]);if(i==(0x98f+6520-0x2307)){return WMS_INVALID_PARM_SIZE_S;}
-pos+=i;data[pos]=submit->pid;pos++;pos+=wms_ts_encode_dcs(&submit->dcs,data+pos)
-;pos+=wms_ts_encode_gw_validity(&submit->validity,data+pos);if(
+(0x994+7077-0x2539),WMS_MAX_LEN);data[pos]=(0x5bc+7430-0x22c1);data[pos]|=submit
+->reject_duplicates?(0x174+5205-0x15c5):(0x1741+2936-0x22b9);if(submit->validity
+.format>(0x18c2+558-0x1aed)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}data[pos]
+|=submit->validity.format<<(0x6d+3345-0xd7b);data[pos]|=submit->
+status_report_enabled?(0x5c1+686-0x84f):(0x149f+593-0x16f0);data[pos]|=submit->
+user_data_header_present?(0x959+2667-0x1384):(0x13b7+4253-0x2454);data[pos]|=
+submit->reply_path_present?(0xc04+774-0xe8a):(0xeda+4349-0x1fd7);pos++;data[pos]
+=(UINT8)submit->message_reference;pos++;i=wms_ts_encode_address(&submit->address
+,&data[pos]);if(i==(0x1ba4+909-0x1f31)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;
+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"
@@ -1427,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=(0x460+4539-0x161b),i;if(status_report==NULL||raw_ts_data_ptr==NULL){
+UINT8 pos=(0xa3d+2098-0x126f),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,
-(0x112b+235-0x1216),WMS_MAX_LEN);data[pos]=(0x1d6d+44-0x1d89);data[pos]|=
-status_report->more?(0x1a9c+2086-0x22c2):(0x16f9+1928-0x1e7d);data[pos]|=
-status_report->status_report_qualifier?(0x8d9+3149-0x1506):(0x10f3+219-0x11ce);
-data[pos]|=status_report->user_data_header_present?(0x42b+1790-0xae9):
-(0x7a6+1895-0xf0d);pos++;data[pos]=(UINT8)status_report->message_reference;pos++
-;i=wms_ts_encode_address(&status_report->address,&data[pos]);if(i==
-(0x11+4096-0x1011)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0xa2c+6118-0x2212),WMS_MAX_LEN);data[pos]=(0xb62+3199-0x17d1);data[pos]|=
+status_report->more?(0x1286+2084-0x1aaa):(0x4ba+2989-0x1063);data[pos]|=
+status_report->status_report_qualifier?(0x683+143-0x6f2):(0x14e9+3021-0x20b6);
+data[pos]|=status_report->user_data_header_present?(0xea1+1780-0x1555):
+(0x1920+259-0x1a23);pos++;data[pos]=(UINT8)status_report->message_reference;pos
+++;i=wms_ts_encode_address(&status_report->address,&data[pos]);if(i==
+(0x1bbf+541-0x1ddc)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
wms_ts_encode_timestamp(&status_report->timestamp,data+pos);if(i==
-(0x9a+8359-0x2141)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0x19dc+2954-0x2566)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
wms_ts_encode_timestamp(&status_report->discharge_time,data+pos);if(i==
-(0xc36+5727-0x2295)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;data[pos]=
+(0x12a0+4777-0x2549)){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->
@@ -1456,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 (0xa8c+1222-0xf52)
+#if (0x280+6555-0x1c1b)
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;
@@ -1466,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 (0x5d8+5325-0x1aa5)
+#if (0x147b+3710-0x22f9)
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
@@ -1483,358 +1479,359 @@
"\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=(0xcb4+2795-0x179f);UINT16 pos=
-(0x239+4009-0x11e2);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+out_len_max,UINT16 shift,UINT8*out){int i=(0x176c+3996-0x2708);UINT16 pos=
+(0xa66+450-0xc28);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
"\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(0xbe9+4065-0x1bca);}if(shift!=(0x160a+81-0x165b))pos=pos+
-(0x158c+4201-0x25f4);if(shift==(0xf5d+3487-0x1cf5)){out[(0x1dbc+2342-0x26e2)]=in
-[(0xf62+969-0x132b)]>>(0x5af+388-0x732);shift=(0xc9d+2059-0x14a8);i=
-(0xa48+2693-0x14cc);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]
-<<shift)&(0x784+3894-0x163b);if(pos!=(0x1759+1922-0x1edb)){
-#if (0x1df4+534-0x2009)
-if(shift==(0x11ea+4773-0x248f)){out[i]|=(0x10dd+3949-0x204a);}else{out[i]|=in[
-pos-(0xbd9+5376-0x20d8)]>>((0xb70+5463-0x20bf)-shift);}
+);return(0xc2d+2559-0x162c);}if(shift!=(0xe69+6234-0x26c3))pos=pos+
+(0x11d9+4626-0x23ea);if(shift==(0xdf4+1969-0x159e)){out[(0xf47+3459-0x1cca)]=in[
+(0x9b+4696-0x12f3)]>>(0x57b+1810-0xc8c);shift=(0x17d7+471-0x19ae);i=
+(0x14e5+3548-0x22c0);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]
+<<shift)&(0x2119+1081-0x24d3);if(pos!=(0xe16+4968-0x217e)){
+#if (0x47f+7449-0x2197)
+if(shift==(0x19aa+152-0x1a42)){out[i]|=(0xbc3+5152-0x1fe3);}else{out[i]|=in[pos-
+(0xdb+5264-0x156a)]>>((0x1865+77-0x18aa)-shift);}
#else
-out[i]|=in[pos-(0xc2b+5457-0x217b)]>>((0x496+4097-0x148f)-shift);
+out[i]|=in[pos-(0x24c4+443-0x267e)]>>((0x74b+7710-0x2561)-shift);
#endif
-}shift++;if(shift==(0xcc3+4235-0x1d47)){shift=(0x3eb+3115-0x1016);i++;if(i>=
+}shift++;if(shift==(0x5f9+2388-0xf46)){shift=(0x29+9519-0x2558);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]>>(0x11a8+1278-0x16a5);}}return(UINT8)(pos);}UINT8
+);break;}out[i]=in[pos]>>(0x7d3+4299-0x189d);}}return(UINT8)(pos);}UINT8
wms_ts_decode_address(const UINT8*data,wms_address_s_type*addr){UINT8 i,pos=
-(0x493+6334-0x1d51);i=data[pos];if(i>WMS_GW_ADDRESS_MAX){at_print(LOG_DEBUG,
+(0x5dc+2882-0x111e);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(0x10cc+2150-0x1932);}addr->number_of_digits=i;pos++;addr->digit_mode=
+,i);return(0x95b+3225-0x15f4);}addr->number_of_digits=i;pos++;addr->digit_mode=
WMS_DIGIT_MODE_4_BIT;addr->number_type=(wms_number_type_e_type)((data[pos]&
-(0x48d+7023-0x1f8c))>>(0x2057+1605-0x2698));addr->number_plan=(
-wms_number_plan_e_type)(data[pos]&(0x226+5142-0x162d));pos++;if(addr->
-number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0x1845+2716-0x22e1)
-;addr->digit_mode=WMS_DIGIT_MODE_8_BIT;bytes_increment=(addr->number_of_digits+
-(0x7d8+4656-0x1a07))/(0x39c+5908-0x1aae);addr->number_of_digits=(UINT8)(addr->
-number_of_digits*(0x1c34+2531-0x2613)/(0x94d+6332-0x2202));(void)
+(0x8bc+196-0x910))>>(0x199b+2101-0x21cc));addr->number_plan=(
+wms_number_plan_e_type)(data[pos]&(0x6d3+5418-0x1bee));pos++;if(addr->
+number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0x45f+6450-0x1d91);
+addr->digit_mode=WMS_DIGIT_MODE_8_BIT;bytes_increment=(addr->number_of_digits+
+(0xb24+6083-0x22e6))/(0xbf9+261-0xcfc);addr->number_of_digits=(UINT8)(addr->
+number_of_digits*(0x10e6+881-0x1453)/(0x9f7+2605-0x141d));(void)
wms_ts_unpack_gw_7_bit_chars(&data[pos],addr->number_of_digits,
-WMS_GW_ADDRESS_MAX,(0x15f8+2404-0x1f5c),addr->digits);pos+=bytes_increment;}else
-{for(i=(0x66b+6271-0x1eea);i<addr->number_of_digits;i++){addr->digits[i++]=data[
-pos]&(0x441+8865-0x26d3);addr->digits[i]=(data[pos]&(0x801+1707-0xdbc))>>
-(0x7c8+1727-0xe83);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data,
-wms_gw_dcs_s_type*dcs){UINT8 pos=(0x7ed+6055-0x1f94);UINT8 i;if(data==NULL||dcs
+WMS_GW_ADDRESS_MAX,(0x187+5125-0x158c),addr->digits);pos+=bytes_increment;}else{
+for(i=(0xe90+2538-0x187a);i<addr->number_of_digits;i++){addr->digits[i++]=data[
+pos]&(0x1fd+7857-0x209f);addr->digits[i]=(data[pos]&(0x4c4+3461-0x1159))>>
+(0x5f2+4027-0x15a9);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data
+,wms_gw_dcs_s_type*dcs){UINT8 pos=(0xf8c+953-0x1345);UINT8 i;if(data==NULL||dcs
==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(0x919+4589-0x1b06);}dcs->msg_class=WMS_MESSAGE_CLASS_NONE;dcs->
+);return(0x444+1112-0x89c);}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]&(0x1f24+527-0x2073))>>(0x1cc+4067-0x11a9);
-switch(i){case(0x125b+780-0x1567):dcs->is_compressed=data[pos]&
-(0x127d+3130-0x1e97);if(data[pos]&(0xbe2+2089-0x13fb)){dcs->msg_class=(
-wms_message_class_e_type)(data[pos]&(0x3dc+5954-0x1b1b));}else{dcs->msg_class=
-WMS_MESSAGE_CLASS_NONE;}dcs->alphabet=(wms_gw_alphabet_e_type)((data[pos]&
-(0x1031+3803-0x1f00))>>(0x638+6878-0x2114));break;case(0x150b+4304-0x25d8):if((
-data[pos]&(0xfa3+2328-0x188b))==(0x2169+20-0x214d)){dcs->alphabet=(data[pos]&
-(0xfc4+5443-0x2503))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
-msg_class=(wms_message_class_e_type)(data[pos]&(0x2ba+6709-0x1cec));dcs->
+dcs->is_compressed=FALSE;i=(data[pos]&(0x512+2756-0xf16))>>(0x1386+4346-0x247a);
+switch(i){case(0xe7c+111-0xeeb):dcs->is_compressed=data[pos]&(0x41b+490-0x5e5);
+if(data[pos]&(0x194+1016-0x57c)){dcs->msg_class=(wms_message_class_e_type)(data[
+pos]&(0x434+2811-0xf2c));}else{dcs->msg_class=WMS_MESSAGE_CLASS_NONE;}dcs->
+alphabet=(wms_gw_alphabet_e_type)((data[pos]&(0x10ac+3966-0x201e))>>
+(0x953+3223-0x15e8));break;case(0xdf0+3286-0x1ac3):if((data[pos]&
+(0xb4b+646-0xda1))==(0x6bb+6367-0x1f6a)){dcs->alphabet=(data[pos]&
+(0x35a+1835-0xa81))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
+msg_class=(wms_message_class_e_type)(data[pos]&(0x1993+1808-0x20a0));dcs->
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]&
-(0x540+7071-0x20af))==(0x1219+1191-0x16c0)){dcs->msg_waiting=
+(0x114f+585-0x1368))==(0x3f7+7707-0x2212)){dcs->msg_waiting=
WMS_GW_MSG_WAITING_DISCARD;dcs->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}else if(
-(data[pos]&(0x2ea+7615-0x2079))==(0x740+6228-0x1f84)){dcs->msg_waiting=
+(data[pos]&(0x66d+5140-0x1a51))==(0x8fc+3209-0x1575)){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]&(0x22f+1085-0x664))?TRUE:FALSE;dcs->
-msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x9db+4193-0x1a39))
+msg_waiting_active=(data[pos]&(0x1c16+1574-0x2234))?TRUE:FALSE;dcs->
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x299+9249-0x26b7))
;}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=(0x1a1+2256-0xa71),i,j;if(
+UINT8*data,wms_timestamp_s_type*timestamp){UINT8 pos=(0x41b+5400-0x1933),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(0x18f7+1905-0x2068);}i=((data[pos]&(0x2cd+7676-0x20ba))<<
-(0xca0+3797-0x1b71))+((data[pos]&(0x16d9+241-0x16da))>>(0x804+2974-0x139e));if(!
+);return(0x375+4962-0x16d7);}i=((data[pos]&(0x594+5380-0x1a89))<<
+(0x16+3570-0xe04))+((data[pos]&(0x202d+1655-0x25b4))>>(0x1b6c+256-0x1c68));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=(0x27c+7392-0x1f5c);}timestamp->year=i;pos++;i=((data[pos]&
-(0xd60+2660-0x17b5))<<(0x8d1+302-0x9fb))+((data[pos]&(0x411+5124-0x1725))>>
-(0xe6+5285-0x1587));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xfcc+1288-0x14c8)||j<
-(0x5c2+2941-0x113e)){at_print(LOG_DEBUG,
+,data[pos]);i=(0x467+3618-0x1289);}timestamp->year=i;pos++;i=((data[pos]&
+(0x8da+306-0x9fd))<<(0x4f0+8118-0x24a2))+((data[pos]&(0x1858+796-0x1a84))>>
+(0xd91+5480-0x22f5));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1099+2459-0x1a28)||j<
+(0xdbf+5667-0x23e1)){at_print(LOG_DEBUG,
"\x4d\x6f\x6e\x74\x68\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);i=(0xce7+5692-0x2322);}}else{at_print(LOG_DEBUG,
+,j);i=(0x864+238-0x951);}}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=(0x13b1+1178-0x184a);}timestamp->month=i;pos++;i=((data[pos]&
-(0x75c+3563-0x1538))<<(0xcb4+4040-0x1c78))+((data[pos]&(0xff8+4142-0x1f36))>>
-(0xac6+6988-0x260e));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x553+5750-0x1baa)||j<
-(0x1200+5051-0x25ba)){at_print(LOG_DEBUG,
+,data[pos]);i=(0x1e3+2473-0xb8b);}timestamp->month=i;pos++;i=((data[pos]&
+(0xa3f+2756-0x14f4))<<(0x1609+3090-0x2217))+((data[pos]&(0x559+5302-0x191f))>>
+(0xfa8+913-0x1335));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x151+3008-0xcf2)||j<
+(0x1052+570-0x128b)){at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);i=
-(0x892+4751-0x1b20);}}else{at_print(LOG_DEBUG,
+(0x1b85+493-0x1d71);}}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=(0x1e56+1225-0x231e);}timestamp->day=i;pos++;i=((data[pos]&
-(0x2550+162-0x25e3))<<(0x1cfd+983-0x20d0))+((data[pos]&(0x2331+1104-0x2691))>>
-(0xce4+3270-0x19a6));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xb0b+4101-0x1af9)){
+,data[pos]);i=(0x1102+4781-0x23ae);}timestamp->day=i;pos++;i=((data[pos]&
+(0xce5+2306-0x15d8))<<(0x9e3+1367-0xf36))+((data[pos]&(0x10e5+5212-0x2451))>>
+(0x5a8+2911-0x1103));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xb35+5311-0x1fdd)){
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=(0x889+5346-0x1d6b);}}else{at_print(LOG_DEBUG,
+,j);i=(0xef+9090-0x2471);}}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=(0x8b+8014-0x1fd9);}timestamp->hour=i;pos++;i=((data[pos]&
-(0x14ff+1155-0x1973))<<(0x4ba+141-0x543))+((data[pos]&(0x576+5972-0x1bda))>>
-(0x3dc+1248-0x8b8));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xc86+6462-0x2589)){
-at_print(LOG_DEBUG,
+,data[pos]);i=(0xe84+367-0xff3);}timestamp->hour=i;pos++;i=((data[pos]&
+(0x65+476-0x232))<<(0x1137+1025-0x1534))+((data[pos]&(0xab2+1003-0xdad))>>
+(0x153b+645-0x17bc));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xe85+21-0xe5f)){at_print
+(LOG_DEBUG,
"\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=(0x1992+3179-0x25fd);}}else{at_print(LOG_DEBUG,
+,j);i=(0x6bb+6718-0x20f9);}}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=(0x644+5563-0x1bff);}timestamp->minute=i;pos++;i=((data[pos]&
-(0x1f8+8641-0x23aa))<<(0x186+3766-0x1038))+((data[pos]&(0x3f5+2350-0xc33))>>
-(0xc4c+5320-0x2110));if(wms_ts_bcd_to_int(i,&j)){if(j>(0xb98+4279-0x1c14)){
+,data[pos]);i=(0xe2f+881-0x11a0);}timestamp->minute=i;pos++;i=((data[pos]&
+(0x18b1+2718-0x2340))<<(0x19e7+1513-0x1fcc))+((data[pos]&(0x1239+197-0x120e))>>
+(0x443+7267-0x20a2));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x2fd+6069-0x1a77)){
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=(0x19bc+1689-0x2055);}}else{at_print(LOG_DEBUG,
+,i);i=(0x241c+53-0x2451);}}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=(0x5f6+5728-0x1c56);}timestamp->second=i;pos++;if(data[pos]&
-(0x801+1803-0xf04)){timestamp->timezone=(data[pos]&(0x45+3952-0xfae))*
-(0x738+6639-0x211d)+((data[pos]&(0x2166+446-0x2234))>>(0xa40+3469-0x17c9));
-timestamp->timezone*=(-(0x1d07+2452-0x269a));}else{timestamp->timezone=(sint7)((
-data[pos]&(0xd72+3260-0x1a1f))*(0x60+7729-0x1e87)+((data[pos]&
-(0x3da+5021-0x1687))>>(0x1140+982-0x1512)));}if(timestamp->timezone>
-(0x2a1+7047-0x1df8)||timestamp->timezone<-(0xbe6+729-0xe8f)){at_print(LOG_DEBUG,
+,data[pos]);i=(0xd2d+1408-0x12ad);}timestamp->second=i;pos++;if(data[pos]&
+(0x3db+307-0x506)){timestamp->timezone=(data[pos]&(0xb28+7040-0x26a1))*
+(0x10e4+3380-0x1e0e)+((data[pos]&(0x71d+6329-0x1ee6))>>(0xa7+3337-0xdac));
+timestamp->timezone*=(-(0x84f+4634-0x1a68));}else{timestamp->timezone=(sint7)((
+data[pos]&(0x178f+1110-0x1bd6))*(0x809+4760-0x1a97)+((data[pos]&
+(0x195+436-0x259))>>(0xbd8+3626-0x19fe)));}if(timestamp->timezone>
+(0x16dc+3803-0x2587)||timestamp->timezone<-(0xb2d+1837-0x122a)){at_print(
+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=(0xc4a+2076-0x1466);}pos++;return pos;
-}static UINT8 wms_ts_decode_udh_concat_8(const UINT8*udh,wms_udh_s_type*
-header_ptr){UINT8 pos=(0xd37+457-0xf00);if(udh==NULL||header_ptr==NULL){at_print
-(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x121c+3565-0x2009);}if(udh[pos]<(0x2477+183-0x252b)){at_print(LOG_DEBUG,
+,timestamp->timezone);timestamp->timezone=(0xa0a+309-0xb3f);}pos++;return pos;}
+static UINT8 wms_ts_decode_udh_concat_8(const UINT8*udh,wms_udh_s_type*
+header_ptr){UINT8 pos=(0x4ad+1391-0xa1c);if(udh==NULL||header_ptr==NULL){
+at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
+(0x55a+8415-0x2639);}if(udh[pos]<(0x2135+1190-0x25d8)){at_print(LOG_DEBUG,
"\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(0x1f5+2166-0xa6b);}if(udh[pos+(0x5f2+5703-0x1c37)]==
-(0x546+5195-0x1991)||udh[pos+(0x1413+2737-0x1ec1)]>udh[pos+(0x1792+479-0x196f)])
-{at_print(LOG_DEBUG,
+,udh[pos]);return(0xcfb+2060-0x1507);}if(udh[pos+(0x91+9107-0x2422)]==
+(0x1b0a+1077-0x1f3f)||udh[pos+(0xe3a+5994-0x25a1)]>udh[pos+(0x14fd+2735-0x1faa)]
+){at_print(LOG_DEBUG,
"\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(0x16ca+523-0x18d5);}pos++;header_ptr->header_id=WMS_UDH_CONCAT_8;
+);return(0x1019+1913-0x1792);}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[(0xeaf+4788-0x2163)]
-+(0x3bb+3110-0xfe0));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x87d+447-0xa3c);if(udh==NULL||header_ptr
-==NULL){at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");
-return(0x921+3829-0x1816);}if(udh[pos]<(0x665+4418-0x17a3)){at_print(LOG_DEBUG,
+pos++];header_ptr->u.concat_8.seq_num=udh[pos++];return(udh[(0xe0d+2407-0x1774)]
++(0x169b+1580-0x1cc6));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
+wms_udh_s_type*header_ptr){UINT8 pos=(0x31b+9150-0x26d9);if(udh==NULL||
+header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xb71+4901-0x1e96);}if(
+udh[pos]<(0x1442+4468-0x25b2)){at_print(LOG_DEBUG,
"\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(0x31c+5862-0x1a02);}if(udh[pos+(0xa2a+1042-0xe39)]==
-(0x79c+1800-0xea4)||udh[pos+(0x926+108-0x98e)]==(0x2f9+4221-0x1376)||udh[pos+
-(0x178+7190-0x1d8a)]>udh[pos+(0x628+1086-0xa63)])return(0x1548+3675-0x23a3);
+,udh[pos]);return(0x69a+6471-0x1fe1);}if(udh[pos+(0x302+4597-0x14f4)]==
+(0x96b+3702-0x17e1)||udh[pos+(0x106+3179-0xd6d)]==(0x868+667-0xb03)||udh[pos+
+(0x21c5+323-0x2304)]>udh[pos+(0x4f1+8181-0x24e3)])return(0xc1+2984-0xc69);
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<<(0x96d+6634-0x234f))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[
-pos++];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[(0x4ed+7050-0x2077)
-]+(0x119d+3249-0x1e4d));}static UINT8 wms_ts_udh_decode_first_seg_check(const
-UINT8 len,const UINT8*data,UINT8*is_first_segment_ptr){UINT8 pos=
-(0xa3+4794-0x135d);UINT8 num_headers=(0x5e9+6237-0x1e46);UINT8 udhl=
-(0x1464+596-0x16b8);UINT8 iedl=(0xab1+270-0xbbf);UINT8 iei=(0x798+5053-0x1b55);*
-is_first_segment_ptr=TRUE;if(data==NULL||data[pos]==(0x82a+1496-0xe02)||len==
-(0x11bd+1889-0x191e)){at_print(LOG_DEBUG,
+msg_ref<<(0x86+8489-0x21a7))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[pos
+++];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[(0x105+3267-0xdc8)]+
+(0x99c+3926-0x18f1));}static UINT8 wms_ts_udh_decode_first_seg_check(const UINT8
+ len,const UINT8*data,UINT8*is_first_segment_ptr){UINT8 pos=(0x90c+2225-0x11bd);
+UINT8 num_headers=(0x150f+261-0x1614);UINT8 udhl=(0x1040+4958-0x239e);UINT8 iedl
+=(0x5e8+2077-0xe05);UINT8 iei=(0x194+3226-0xe2e);*is_first_segment_ptr=TRUE;if(
+data==NULL||data[pos]==(0x33b+4288-0x13fb)||len==(0x1cd0+1473-0x2291)){at_print(
+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+(0xd6f+2811-0x1869)];if(iei==
-WMS_UDH_CONCAT_16){if(data[pos+(0x10fb+5532-0x2692)]!=(0x3ac+137-0x434)){
+WMS_MAX_UD_HEADERS)){iei=data[pos];iedl=data[pos+(0x3e4+3834-0x12dd)];if(iei==
+WMS_UDH_CONCAT_16){if(data[pos+(0x1e0+5048-0x1593)]!=(0x896+5469-0x1df2)){
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+=((0xab4+1089-0xef3)+iedl);}}return TRUE;}static UINT8
+;pos+=((0x1e29+747-0x2112)+iedl);}}return TRUE;}static UINT8
wms_ts_decode_udh_special_sm(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x1845+2980-0x23e9);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x81b+4853-0x1b10);}if(
-udh[pos]<(0xc11+5361-0x2100)){at_print(LOG_DEBUG,
+pos=(0x413+2305-0xd14);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1860+3218-0x24f2);}if(
+udh[pos]<(0x5f5+5400-0x1b0b)){at_print(LOG_DEBUG,
"\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(0x1375+374-0x14eb);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x4b1+4128-0x14d1);}pos++;header_ptr->header_id=
WMS_UDH_SPECIAL_SM;header_ptr->u.special_sm.msg_waiting=(
-wms_gw_msg_waiting_e_type)((udh[pos]>>(0x551+5842-0x1c1c)==(0xe57+2799-0x1946))?
+wms_gw_msg_waiting_e_type)((udh[pos]>>(0x842+5063-0x1c02)==(0x1c80+254-0x1d7e))?
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++]&(0x82b+4832-0x1a8c)
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(udh[pos++]&(0xac0+7161-0x263a)
);header_ptr->u.special_sm.message_count=udh[pos++];return(udh[
-(0x10a+7655-0x1ef1)]+(0x7d+4757-0x1311));}static UINT8 wms_ts_decode_udh_port_8(
-const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x235+6802-0x1cc7);if(udh
-==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1056+1445-0x15fb);}if(
-udh[pos]<(0x3ad+6516-0x1d1f)){at_print(LOG_DEBUG,
+(0x436+5327-0x1905)]+(0x9df+6357-0x22b3));}static UINT8 wms_ts_decode_udh_port_8
+(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0xb4+3777-0xf75);if(udh==
+NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xffa+5209-0x2453);}if(
+udh[pos]<(0x305+8230-0x2329)){at_print(LOG_DEBUG,
"\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(0x16f1+3872-0x2611);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x2167+1238-0x263d);}pos++;header_ptr->header_id=
WMS_UDH_PORT_8;header_ptr->u.wap_8.dest_port=udh[pos++];header_ptr->u.wap_8.
-orig_port=udh[pos++];return(udh[(0x1a70+1386-0x1fda)]+(0x4b9+1023-0x8b7));}
+orig_port=udh[pos++];return(udh[(0x1747+2690-0x21c9)]+(0x4c1+3486-0x125e));}
static UINT8 wms_ts_decode_udh_port16(const UINT8*udh,wms_udh_s_type*header_ptr)
-{UINT8 pos=(0x932+1885-0x108f);if(udh==NULL||header_ptr==NULL){at_print(
+{UINT8 pos=(0x10ea+3467-0x1e75);if(udh==NULL||header_ptr==NULL){at_print(
LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x12c0+3515-0x207b);}if(udh[pos]<(0x679+5278-0x1b13)){at_print(LOG_DEBUG,
+(0x14bc+605-0x1719);}if(udh[pos]<(0x9cc+3483-0x1763)){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(0x16c8+4025-0x2681);}header_ptr->header_id=WMS_UDH_PORT_16;pos
+,udh[pos]);return(0x986+7157-0x257b);}header_ptr->header_id=WMS_UDH_PORT_16;pos
++;header_ptr->u.wap_16.dest_port=udh[pos++];header_ptr->u.wap_16.dest_port=(
-UINT16)(header_ptr->u.wap_16.dest_port<<(0x397+8210-0x23a1))|udh[pos++];
+UINT16)(header_ptr->u.wap_16.dest_port<<(0xfbf+5829-0x267c))|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<<(0x878+4540-0x1a2c))|udh[pos++];return(udh[
-(0x17f8+1692-0x1e94)]+(0xf32+1038-0x133f));}static UINT8
+)(header_ptr->u.wap_16.orig_port<<(0x313+2630-0xd51))|udh[pos++];return(udh[
+(0x39+9924-0x26fd)]+(0x2f8+5560-0x18af));}static UINT8
wms_ts_decode_udh_text_formatting(const UINT8*udh,wms_udh_s_type*header_ptr){
-UINT8 pos=(0x13d4+3196-0x2050);if(udh==NULL||header_ptr==NULL){at_print(
-LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x1786+3524-0x254a);}if(udh[pos]<(0x14f9+122-0x1570)){at_print(LOG_DEBUG,
+UINT8 pos=(0x2ba+2284-0xba6);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1c79+191-0x1d38);}if(
+udh[pos]<(0xdb8+4453-0x1f1a)){at_print(LOG_DEBUG,
"\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(0x1310+1592-0x1948);}if(udh[pos]>=(0x77a+2485-0x112b)){
+,udh[pos]);return(0x150d+4444-0x2669);}if(udh[pos]>=(0x1f28+1702-0x25ca)){
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]&
-(0xce7+198-0xdaa));header_ptr->u.text_formating.font_size=(
-wms_udh_font_size_e_type)((udh[pos]&(0x869+6170-0x2077))>>(0x1fd+4147-0x122e));
-header_ptr->u.text_formating.style_bold=(udh[pos]&(0x82a+684-0xac6))>>
-(0x904+475-0xadb);header_ptr->u.text_formating.style_italic=(udh[pos]&
-(0x388+993-0x749))>>(0x42+3289-0xd16);header_ptr->u.text_formating.
-style_underlined=(udh[pos]&(0x58c+1896-0xcb4))>>(0x2278+543-0x2491);header_ptr->
-u.text_formating.style_strikethrough=(udh[pos]&(0x37f+2834-0xe11))>>
-(0x549+2965-0x10d7);pos++;if(header_ptr->u.text_formating.is_color_present){
+(0x192+5170-0x15c1));header_ptr->u.text_formating.font_size=(
+wms_udh_font_size_e_type)((udh[pos]&(0xefd+2818-0x19f3))>>(0x1cd8+1959-0x247d));
+header_ptr->u.text_formating.style_bold=(udh[pos]&(0xde2+4270-0x1e80))>>
+(0x79c+4119-0x17af);header_ptr->u.text_formating.style_italic=(udh[pos]&
+(0x1062+566-0x1278))>>(0x570+7313-0x21fc);header_ptr->u.text_formating.
+style_underlined=(udh[pos]&(0x20d3+261-0x2198))>>(0x913+6375-0x21f4);header_ptr
+->u.text_formating.style_strikethrough=(udh[pos]&(0x389+179-0x3bc))>>
+(0x7f9+4913-0x1b23);pos++;if(header_ptr->u.text_formating.is_color_present){
header_ptr->u.text_formating.text_color_foreground=(wms_udh_text_color_e_type)(
-udh[pos]&(0x157c+890-0x18e7));header_ptr->u.text_formating.text_color_background
-=(wms_udh_text_color_e_type)((udh[pos]&(0x186c+2918-0x22e2))>>(0x8fa+1427-0xe89)
-);pos++;}return(udh[(0x28b+1665-0x90c)]+(0x9ad+4805-0x1c71));}static UINT8
+udh[pos]&(0xcf2+4650-0x1f0d));header_ptr->u.text_formating.text_color_background
+=(wms_udh_text_color_e_type)((udh[pos]&(0x686+7793-0x2407))>>(0xdc9+5023-0x2164)
+);pos++;}return(udh[(0x183+376-0x2fb)]+(0x41f+8927-0x26fd));}static UINT8
wms_ts_decode_udh_pre_def_sound(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
- pos=(0x1c5+2690-0xc47);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x8a6+4051-0x1879);}if(
-udh[pos]<(0x318+1448-0x8be)){at_print(LOG_DEBUG,
+ pos=(0x1028+2487-0x19df);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xf6f+1-0xf70);}if(udh[
+pos]<(0x950+3140-0x1592)){at_print(LOG_DEBUG,
"\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(0x372+1712-0xa22);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x125+5178-0x155f);}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[(0x5a2+2016-0xd82)]+
-(0xdab+144-0xe3a));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8*
-udh,wms_udh_s_type*header_ptr){UINT8 pos=(0xca4+427-0xe4f),j;if(udh==NULL||
+->u.pre_def_sound.snd_number=udh[pos++];return(udh[(0xe41+1919-0x15c0)]+
+(0x58b+2522-0xf64));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8*
+udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x842+4324-0x1926),j;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1af7+300-0x1c23);}if(
-udh[pos]==(0x179d+872-0x1b05)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x14a6+1860-0x1bea);}if(
+udh[pos]==(0x17ed+775-0x1af4)){at_print(LOG_DEBUG,
"\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(0x2287+1140-0x26fb);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
-header_ptr->u.user_def_sound.data_length=udh[pos++]-(0xd50+5079-0x2126);
+);return(0x7a0+7836-0x263c);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
+header_ptr->u.user_def_sound.data_length=udh[pos++]-(0x990+4110-0x199d);
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(0x173+3795-0x1046);}memset(header_ptr->u.
-user_def_sound.user_def_sound,(0x4cf+6661-0x1dd5),WMS_UDH_MAX_SND_SIZE);for(j=
-(0x965+3762-0x1817);j<header_ptr->u.user_def_sound.data_length;j++)header_ptr->u
-.user_def_sound.user_def_sound[j]=udh[pos++];return pos;}static UINT8
+,header_ptr->header_id);return(0xf0b+5626-0x2505);}memset(header_ptr->u.
+user_def_sound.user_def_sound,(0x17ac+3032-0x2285),WMS_UDH_MAX_SND_SIZE);for(j=
+(0x1691+3363-0x23b4);j<header_ptr->u.user_def_sound.data_length;j++)header_ptr->
+u.user_def_sound.user_def_sound[j]=udh[pos++];return pos;}static UINT8
wms_ts_decode_udh_pre_def_anim(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0xaa9+7183-0x26b8);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xe3+4296-0x11ab);}if(udh
-[pos]!=(0x2f8+8969-0x25ff)){at_print(LOG_DEBUG,
+pos=(0xdc4+5963-0x250f);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x902+1295-0xe11);}if(udh
+[pos]!=(0xa85+2615-0x14ba)){at_print(LOG_DEBUG,
"\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(0x826+7299-0x24a9);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x755+7373-0x2422);}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=(0x17c1+122-0x183b),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x184b+2276-0x212f);}if(
+pos=(0xe27+1896-0x158f),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xe6b+3152-0x1abb);}if(
udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_LARGE_BITMAP_SIZE+
-(0xf2a+4824-0x2201))){at_print(LOG_DEBUG,
+(0x254b+122-0x25c4))){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(0x59+5729-0x16ba);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
-pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0x1faf+1053-0x23cc);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x15cc+3580-0x23c8);k<
+,udh[pos]);return(0x1465+3148-0x20b1);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
+pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0x3e6+5072-0x17b6);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x1928+1484-0x1ef4);k<
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=(0x15f+2224-0xa0f),j,k;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0xabb+254-0xbb9),j,k;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x216+4429-0x1363);}if(
-udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+(0x34b+2787-0xe2d)
-)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x2bc+4838-0x15a2);}if(
+udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+
+(0x1c57+1505-0x2237))){at_print(LOG_DEBUG,
"\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(0x1489+2286-0x1d77);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
-pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0x629+4771-0x18cc);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0xd53+1905-0x14c4);k<
+,udh[pos]);return(0x7f4+2452-0x1188);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
+pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0xec+9515-0x2617);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x4a+6219-0x1895);k<
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=(0x983+2980-0x1527),j;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0x387+2798-0xe75),j;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xa32+6536-0x23ba);}if(
-udh[pos]!=WMS_UDH_LARGE_PIC_SIZE+(0x6c7+2130-0xf18)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1c1c+1898-0x2386);}if(
+udh[pos]!=WMS_UDH_LARGE_PIC_SIZE+(0x18a3+2307-0x21a5)){at_print(LOG_DEBUG,
"\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(0x0+9368-0x2498);}header_ptr->header_id=WMS_UDH_LARGE_PICTURE;
-pos++;header_ptr->u.large_picture.position=udh[pos++];for(j=(0xf59+4433-0x20aa);
-j<WMS_UDH_LARGE_PIC_SIZE;j++)header_ptr->u.large_picture.data[j]=udh[pos++];
-return pos;}static UINT8 wms_ts_decode_udh_small_picture(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x1442+1050-0x185c),j;if(udh==NULL||
-header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1ba5+2663-0x260c);}if(
-udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0x1ed+7274-0x1e56)){at_print(LOG_DEBUG,
+,udh[pos]);return(0x1a6a+1947-0x2205);}header_ptr->header_id=
+WMS_UDH_LARGE_PICTURE;pos++;header_ptr->u.large_picture.position=udh[pos++];for(
+j=(0x78b+1061-0xbb0);j<WMS_UDH_LARGE_PIC_SIZE;j++)header_ptr->u.large_picture.
+data[j]=udh[pos++];return pos;}static UINT8 wms_ts_decode_udh_small_picture(
+const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x207+4795-0x14c2),j;if(
+udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1321+3947-0x228c);}if(
+udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0xdcc+5825-0x248c)){at_print(LOG_DEBUG,
"\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(0x1923+938-0x1ccd);}header_ptr->header_id=
+,udh[pos]);return(0x179c+2192-0x202c);}header_ptr->header_id=
WMS_UDH_SMALL_PICTURE;pos++;header_ptr->u.small_picture.position=udh[pos++];for(
-j=(0x21f+3836-0x111b);j<WMS_UDH_SMALL_PIC_SIZE;j++)header_ptr->u.small_picture.
+j=(0x357+525-0x564);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=(0x1cb9+2212-0x255d),j,pic_size;
+UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x18f3+1452-0x1e9f),j,pic_size;
if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1221+255-0x1320);}if(
-udh[pos]>WMS_UDH_VAR_PIC_SIZE+(0x1867+323-0x19a7)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x8bc+1984-0x107c);}if(
+udh[pos]>WMS_UDH_VAR_PIC_SIZE+(0xa3f+4305-0x1b0d)){at_print(LOG_DEBUG,
"\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(0xdf3+3054-0x19e1);}if((udh[pos]-(0xb9c+6390-0x248f))!=(udh[
-pos+(0x1b4+4679-0x13f9)]*udh[pos+(0x870+1456-0xe1d)])){at_print(LOG_DEBUG,
+,udh[pos]);return(0x671+5284-0x1b15);}if((udh[pos]-(0x3ba+1057-0x7d8))!=(udh[pos
++(0x6bf+3236-0x1361)]*udh[pos+(0x1446+4410-0x257d)])){at_print(LOG_DEBUG,
"\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(0x32f+4278-0x13e5);}pic_size=udh[pos++]-(0xb49+3192-0x17be);header_ptr
+);return(0x1c2c+287-0x1d4b);}pic_size=udh[pos++]-(0x1db2+1620-0x2403);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++]*(0x811+1224-0xcd1));
-header_ptr->u.var_picture.height=udh[pos++];for(j=(0x4d5+8191-0x24d4);j<pic_size
+header_ptr->u.var_picture.width=(UINT8)(udh[pos++]*(0xeca+4756-0x2156));
+header_ptr->u.var_picture.height=udh[pos++];for(j=(0x993+5981-0x20f0);j<pic_size
&&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=(0x286+1551-0x895);if(udh==NULL||header_ptr==NULL){
+header_ptr){UINT8 pos=(0x28f+4191-0x12ee);if(udh==NULL||header_ptr==NULL){
at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x472+6344-0x1d3a);}if(udh[pos]<(0x4f2+7695-0x2300)){at_print(LOG_DEBUG,
+(0xdb5+5710-0x2403);}if(udh[pos]<(0x71d+3459-0x149f)){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(0xa5+727-0x37c);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x6fd+5532-0x1c99);}pos++;header_ptr->header_id=
WMS_UDH_USER_PROMPT;header_ptr->u.user_prompt.number_of_objects=udh[pos++];
-return(udh[(0x50f+7166-0x210d)]+(0x15ac+1095-0x19f2));}static UINT8
+return(udh[(0xe98+2165-0x170d)]+(0x74d+900-0xad0));}static UINT8
wms_ts_decode_udh_eo(const UINT8*udh,UINT8 first_segment,wms_udh_s_type*
-header_ptr){UINT8 pos=(0xb89+3660-0x19d5),udh_length;if(udh==NULL||header_ptr==
+header_ptr){UINT8 pos=(0x121b+715-0x14e6),udh_length;if(udh==NULL||header_ptr==
NULL){at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x266+6181-0x1a8b);}if(udh[pos]==(0x9a+7627-0x1e65)){at_print(LOG_DEBUG,
+(0x225+3915-0x1170);}if(udh[pos]==(0x12bf+1728-0x197f)){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(0x1469+2902-0x1fbf);}udh_length=udh[pos++];header_ptr->header_id=
+);return(0x73b+723-0xa0e);}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
-(0x2d5+2334-0xbf3);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
-length=udh[pos++]<<(0x1021+2071-0x1830);header_ptr->u.eo.length|=udh[pos++];
+(0x641+5698-0x1c83);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
+length=udh[pos++]<<(0x522+2630-0xf60);header_ptr->u.eo.length|=udh[pos++];
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++]<<(0x21+7477-0x1d4e);header_ptr->
-u.eo.position|=udh[pos++];}header_ptr->u.eo.content.length=(udh_length-pos)+
-(0x268a+113-0x26fa);memcpy(header_ptr->u.eo.content.data,udh+pos,header_ptr->u.
+udh[pos++];header_ptr->u.eo.position=udh[pos++]<<(0xd1a+225-0xdf3);header_ptr->u
+.eo.position|=udh[pos++];}header_ptr->u.eo.content.length=(udh_length-pos)+
+(0x17a2+2805-0x2296);memcpy(header_ptr->u.eo.content.data,udh+pos,header_ptr->u.
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=
-(0x785+3847-0x168c);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x13c4+397-0x1551);}if(
-udh[pos]<(0x5c2+6757-0x2026)){at_print(LOG_DEBUG,
+(0x4e1+4303-0x15b0);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xc0d+1668-0x1291);}if(
+udh[pos]<(0x1ca+3101-0xde6)){at_print(LOG_DEBUG,
"\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(0x1447+4335-0x2536);}pos++;header_ptr->header_id=
-WMS_UDH_RFC822;header_ptr->u.rfc822.header_length=udh[pos++];return(udh[
-(0x54a+2867-0x107d)]+(0x18d+4021-0x1141));}static UINT8
-wms_ts_decode_udh_nat_lang_ss(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0xe38+3043-0x1a1b);if(udh==NULL||header_ptr==NULL){return(0x60+5391-0x156f)
-;}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_SS){return(0xc68+6006-0x23de);}pos++;
-header_ptr->header_id=WMS_UDH_NAT_LANG_SS;if((WMS_UDH_NAT_LANG_TURKISH>udh[pos])
-||(WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){return(0x9c9+3614-0x17e7);}header_ptr
-->u.nat_lang_ss.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
-(0x574+7148-0x2160)]+(0x354+8388-0x2417));}static UINT8
+,udh[pos]);return(0x909+3739-0x17a4);}pos++;header_ptr->header_id=WMS_UDH_RFC822
+;header_ptr->u.rfc822.header_length=udh[pos++];return(udh[(0x4c6+8196-0x24ca)]+
+(0x1d7c+551-0x1fa2));}static UINT8 wms_ts_decode_udh_nat_lang_ss(const UINT8*udh
+,wms_udh_s_type*header_ptr){UINT8 pos=(0x117d+4158-0x21bb);if(udh==NULL||
+header_ptr==NULL){return(0x1479+4165-0x24be);}if(udh[pos]!=
+WMS_UDH_OCTETS_NAT_LANG_SS){return(0xdf4+4344-0x1eec);}pos++;header_ptr->
+header_id=WMS_UDH_NAT_LANG_SS;if((WMS_UDH_NAT_LANG_TURKISH>udh[pos])||(
+WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){return(0x362+1321-0x88b);}header_ptr->u.
+nat_lang_ss.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
+(0x1216+728-0x14ee)]+(0x1359+4003-0x22fb));}static UINT8
wms_ts_decode_udh_nat_lang_ls(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x1db2+1537-0x23b3);if(udh==NULL||header_ptr==NULL){return
-(0x12db+2890-0x1e25);}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_LS){return
-(0x390+2522-0xd6a);}pos++;header_ptr->header_id=WMS_UDH_NAT_LANG_LS;if((
-WMS_UDH_NAT_LANG_TURKISH>udh[pos])||(WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){
-return(0x124d+2923-0x1db8);}header_ptr->u.nat_lang_ls.nat_lang_id=(
-wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[(0xb71+5942-0x22a7)]+
-(0x4ed+8273-0x253d));}static UINT8 wms_ts_decode_udh_other(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x5cc+6684-0x1fe8),i=(0x868+5702-0x1eae);
-if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x148f+2307-0x1d92);}if(
-udh[pos+(0x194c+2497-0x230c)]>WMS_UDH_OTHER_SIZE){at_print(LOG_DEBUG,
+pos=(0x364+2861-0xe91);if(udh==NULL||header_ptr==NULL){return(0x126a+398-0x13f8)
+;}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_LS){return(0x70b+3699-0x157e);}pos++;
+header_ptr->header_id=WMS_UDH_NAT_LANG_LS;if((WMS_UDH_NAT_LANG_TURKISH>udh[pos])
+||(WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){return(0x6fc+6873-0x21d5);}header_ptr
+->u.nat_lang_ls.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
+(0x19bb+131-0x1a3e)]+(0x6c7+6156-0x1ed2));}static UINT8 wms_ts_decode_udh_other(
+const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x60d+978-0x9df),i=
+(0xd3b+4056-0x1d13);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x789+4499-0x191c);}if(
+udh[pos+(0x11c8+2351-0x1af6)]>WMS_UDH_OTHER_SIZE){at_print(LOG_DEBUG,
"\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(0x83c+876-0xba8);}header_ptr->header_id=(wms_udh_id_e_type)udh[pos];
+);return(0xaa0+4043-0x1a6b);}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=(0x5ec+5248-0x1a6c);i<header_ptr->u.other.
+header_length=udh[pos++];for(i=(0x20c8+558-0x22f6);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=(0x59f+2691-0x1022);UINT8
-header_length=(0x62+2940-0xbde),num_headers=(0x11c6+4504-0x235e);UINT8 udhl;
-UINT8 first_segment=TRUE;if(data==NULL||len==(0x2fb+893-0x678)||data[pos]==
-(0x962+695-0xc19)||num_headers_ptr==NULL||udh_ptr==NULL){at_print(LOG_DEBUG,
+num_headers_ptr,wms_udh_s_type*udh_ptr){UINT8 pos=(0x1c7a+1125-0x20df);UINT8
+header_length=(0x222d+260-0x2331),num_headers=(0x49d+8707-0x26a0);UINT8 udhl;
+UINT8 first_segment=TRUE;if(data==NULL||len==(0xa34+4720-0x1ca4)||data[pos]==
+(0x1346+3622-0x216c)||num_headers_ptr==NULL||udh_ptr==NULL){at_print(LOG_DEBUG,
"\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(0x6a4+6585-0x205d);}udhl=data[pos];pos++;while((pos<udhl)&&(num_headers
+);return(0x9f2+1935-0x1181);}udhl=data[pos];pos++;while((pos<udhl)&&(num_headers
<WMS_MAX_UD_HEADERS)){switch(data[pos++]){case WMS_UDH_CONCAT_8:header_length=
wms_ts_decode_udh_concat_8(data+pos,&udh_ptr[num_headers]);break;case
WMS_UDH_CONCAT_16:header_length=wms_ts_decode_udh_concat16(data+pos,&udh_ptr[
@@ -1868,66 +1865,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(0x80a+4314-0x18e4);}else if(header_length!=(0xb2b+3626-0x1955)){
+,udhl);return(0xcdc+6478-0x262a);}else if(header_length!=(0x1443+1961-0x1bec)){
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=(0x42b+5555-0x19de);return(0x116+9597-0x2693);}
-}if(num_headers>=WMS_MAX_UD_HEADERS){at_print(LOG_DEBUG,
+,pos,data[pos]);*num_headers_ptr=(0x5+3092-0xc19);return(0x104b+5156-0x246f);}}
+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+(0x691+7040-0x2210);}if(pos!=(udhl+(0x456+6712-0x1e8d))){at_print(
+);pos=udhl+(0x22d6+217-0x23ae);}if(pos!=(udhl+(0x3d1+2280-0xcb8))){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=(0x2bf+3494-0x1065);udhl=(0xa9b+2881-0x15dc);}if(num_headers>
-(0xeca+3092-0x1ade)){*num_headers_ptr=num_headers;}return udhl;}UINT8
+);num_headers=(0x12c6+4594-0x24b8);udhl=(0x3d7+3187-0x104a);}if(num_headers>
+(0x7b0+723-0xa83)){*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=(0x2a3+4836-0x1587);UINT8 fill_bits=(0x670+6265-0x1ee9);
-UINT8 user_data_length;UINT8 user_data_header_length=(0xd09+5924-0x242d);if(dcs
-==NULL||data==NULL||user_data==NULL){at_print(LOG_DEBUG,
+user_data){UINT8 i,pos=(0x1128+220-0x1204);UINT8 fill_bits=(0x6d9+917-0xa6e);
+UINT8 user_data_length;UINT8 user_data_header_length=(0x3f3+1137-0x864);if(dcs==
+NULL||data==NULL||user_data==NULL){at_print(LOG_DEBUG,
"\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(0x1a4b+245-0x1b40);}(void)memset(user_data,(0x7e2+5860-0x1ec6),sizeof(
-wms_gw_user_data_s_type));if(len==(0x15d2+1224-0x1a9a)){return
-(0x122+8503-0x2259);}if(dcs->alphabet==WMS_GW_ALPHABET_7_BIT_DEFAULT){if(len>
-WMS_SMS_UDL_MAX_7_BIT){at_print(LOG_DEBUG,
+);return(0x1d+8523-0x2168);}(void)memset(user_data,(0x80c+1293-0xd19),sizeof(
+wms_gw_user_data_s_type));if(len==(0x226+5469-0x1783)){return(0x3dd+1713-0xa8e);
+}if(dcs->alphabet==WMS_GW_ALPHABET_7_BIT_DEFAULT){if(len>WMS_SMS_UDL_MAX_7_BIT){
+at_print(LOG_DEBUG,
"\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(0x6f5+3637-0x152a);}user_data_length=len;if(user_data_header_present){
+);return(0x42c+5010-0x17be);}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(0x153c+1088-0x197c);}if(user_data_header_length>(0x6f0+1112-0xb48)){
-fill_bits=((len*(0x7d5+5476-0x1d32))-((user_data_header_length+(0x1c1+159-0x25f)
-)*(0x1a61+124-0x1ad5)))%(0x529+58-0x55c);user_data_length=(UINT8)(((len*
-(0x1f5+7662-0x1fdc))-((user_data_header_length+(0x11eb+2655-0x1c49))*
-(0x162+4340-0x124e)))/(0x649+3656-0x148a));pos=user_data_header_length+
-(0x1591+2873-0x20c9);if(fill_bits!=(0x1b08+2510-0x24d6)){fill_bits=
-(0xa02+4089-0x19f3)-fill_bits;}}i=wms_ts_unpack_gw_7_bit_chars(&data[pos],
-user_data_length,WMS_MAX_LEN,fill_bits,user_data->sm_data);user_data->sm_len=
-user_data_length;}else{if(len>WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
+);return(0x2bc+6194-0x1aee);}if(user_data_header_length>(0x2175+311-0x22ac)){
+fill_bits=((len*(0x32a+4152-0x135b))-((user_data_header_length+
+(0x4a4+7152-0x2093))*(0x154d+4205-0x25b2)))%(0x6b0+6556-0x2045);user_data_length
+=(UINT8)(((len*(0x828+4048-0x17f1))-((user_data_header_length+
+(0x68f+3139-0x12d1))*(0x9f1+3205-0x166e)))/(0x1896+3321-0x2588));pos=
+user_data_header_length+(0x1711+3304-0x23f8);if(fill_bits!=(0x15c1+3102-0x21df))
+{fill_bits=(0x2308+514-0x2502)-fill_bits;}}i=wms_ts_unpack_gw_7_bit_chars(&data[
+pos],user_data_length,WMS_MAX_LEN,fill_bits,user_data->sm_data);user_data->
+sm_len=user_data_length;}else{if(len>WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
"\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(0x1490+4300-0x255c);}user_data_length=len;if(user_data_header_present){
+);return(0xa36+1093-0xe7b);}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(0x21b+341-0x370);}pos+=user_data_header_length+(0x576+6603-0x1f40);
-user_data_length=(len-user_data_header_length)-(0xe57+1037-0x1263);}memcpy(
+);return(0x1d56+69-0x1d9b);}pos+=user_data_header_length+(0xf4+7479-0x1e2a);
+user_data_length=(len-user_data_header_length)-(0x4d1+1977-0xc89);}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=
-(0x10a6+1075-0x14d9),i;const UINT8*data=ptRawTsData->data;if(ptRawTsData==NULL||
+(0x13ec+1417-0x1975),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]&(0x237+4097-0x1235))!=
-(0x732+2740-0x11e6)){printf(
+);return WMS_NULL_PTR_S;}else if((data[pos]&(0xaf7+7123-0x26c7))!=
+(0x1556+302-0x1684)){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]&
-(0x871+1064-0xc95))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
-(0xd24+4101-0x1d09))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
-(0x4bb+3781-0x1340))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
-(0x72f+2665-0x1118))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&
-deliver->address);if(i==(0x15+3635-0xe48)){printf(
+(0x1780+1288-0x1c84))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
+(0x71+2670-0xabf))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
+(0x85b+4985-0x1b94))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
+(0x1036+243-0x10a9))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&
+deliver->address);if(i==(0x493+7068-0x202f)){printf(
"\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.
@@ -1935,74 +1932,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==(0x1d17+2427-0x2692)){printf(
+timestamp);if(i==(0x3b4+1848-0xaec)){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-(0x1904+2270-0x21e1)],data+pos,deliver->
+deliver->dcs,data[pos-(0xd66+2645-0x17ba)],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=(0x148b+3854-0x2399);if(data==NULL||validity==NULL){at_print(
+UINT8 i,pos=(0x1799+2835-0x22ac);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(0x325+6092-0x1af1);}else{switch(validity->format){case
-WMS_GW_VALIDITY_NONE:memset(validity,(0x2613+216-0x26eb),sizeof(
+);return(0x2df+4855-0x15d6);}else{switch(validity->format){case
+WMS_GW_VALIDITY_NONE:memset(validity,(0x9cc+1969-0x117d),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=
-(0xb56+3000-0x170e),i;const UINT8*data;if(ptRawTsData==NULL||submit==NULL){
+(0x663+5141-0x1a78),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]&(0xb9b+2881-0x16d8))?TRUE:FALSE;submit->validity.format=(
-wms_gw_validity_format_e_type)((data[pos]&(0x186+1022-0x56c))>>
-(0x226+2425-0xb9c));submit->status_report_enabled=(data[pos]&(0x3d6+1566-0x9d4))
-?TRUE:FALSE;submit->user_data_header_present=(data[pos]&(0xb42+2143-0x1361))?
-TRUE:FALSE;submit->reply_path_present=(data[pos]&(0x7c7+2725-0x11ec))?TRUE:FALSE
-;pos++;submit->message_reference=data[pos];pos++;i=wms_ts_decode_address(&data[
-pos],&submit->address);if(i==(0x2fc+1117-0x759)){return WMS_INVALID_PARM_SIZE_S;
-}pos+=i;submit->pid=(wms_pid_e_type)data[pos];pos++;pos+=wms_ts_decode_dcs(data+
-pos,&submit->dcs);i=wms_ts_decode_gw_validity(data+pos,&submit->validity);if((
-submit->validity.format!=WMS_GW_VALIDITY_NONE)&&(i==(0xdf5+2578-0x1807))){return
- WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=wms_ts_decode_gw_user_data(&submit->
-dcs,data[pos-(0x9ba+3385-0x16f2)],data+pos,submit->user_data_header_present,&
-submit->user_data);if(i>WMS_SMS_UDL_MAX_8_BIT){printf(
+pos]&(0x20e8+1305-0x25fd))?TRUE:FALSE;submit->validity.format=(
+wms_gw_validity_format_e_type)((data[pos]&(0x89d+2296-0x117d))>>
+(0x6a0+5175-0x1ad4));submit->status_report_enabled=(data[pos]&
+(0x129+7448-0x1e21))?TRUE:FALSE;submit->user_data_header_present=(data[pos]&
+(0x49a+5182-0x1898))?TRUE:FALSE;submit->reply_path_present=(data[pos]&
+(0xf36+337-0x1007))?TRUE:FALSE;pos++;submit->message_reference=data[pos];pos++;i
+=wms_ts_decode_address(&data[pos],&submit->address);if(i==(0x163b+1636-0x1c9f)){
+return WMS_INVALID_PARM_SIZE_S;}pos+=i;submit->pid=(wms_pid_e_type)data[pos];pos
+++;pos+=wms_ts_decode_dcs(data+pos,&submit->dcs);i=wms_ts_decode_gw_validity(
+data+pos,&submit->validity);if((submit->validity.format!=WMS_GW_VALIDITY_NONE)&&
+(i==(0x934+5889-0x2035))){return WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=
+wms_ts_decode_gw_user_data(&submit->dcs,data[pos-(0x22dd+503-0x24d3)],data+pos,
+submit->user_data_header_present,&submit->user_data);if(i>WMS_SMS_UDL_MAX_8_BIT)
+{printf(
"\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=(0x568+6554-0x1f02),i;const UINT8*data;if(ptRawTsData==NULL||status_report==
+pos=(0x58d+4507-0x1728),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]&
-(0x211f+559-0x234a)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]&
-(0x1fb1+29-0x1fae)?TRUE:FALSE;status_report->user_data_header_present=(data[pos]
-&(0x1a6a+2464-0x23ca))?TRUE:FALSE;pos++;status_report->message_reference=data[
-pos];pos++;i=wms_ts_decode_address(&data[pos],&status_report->address);if(i==
-(0xfef+1327-0x151e)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0x5d0+3266-0x128e)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]&
+(0x51+6080-0x17f1)?TRUE:FALSE;status_report->user_data_header_present=(data[pos]
+&(0x1a7+5869-0x1854))?TRUE:FALSE;pos++;status_report->message_reference=data[pos
+];pos++;i=wms_ts_decode_address(&data[pos],&status_report->address);if(i==
+(0x141f+4130-0x2441)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
wms_ts_decode_timestamp(data+pos,&status_report->timestamp);if(i==
-(0xf94+5707-0x25df)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0x817+3937-0x1778)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
wms_ts_decode_timestamp(data+pos,&status_report->discharge_time);if(i==
-(0xad+2605-0xada)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;status_report->
+(0x9e5+1448-0xf8d)){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)(0x13f+2323-0xa52);status_report->user_data.
-sm_len=(0x4e0+1173-0x975);status_report->mask&=(0x789+1109-0xadf);if((
-status_report->mask!=(0x3b8+7109-0x1e7e))&&(status_report->mask!=
-(0x4dc+7743-0x231b))){pos++;if(status_report->mask&WMS_TPDU_MASK_PID){
+status_report->pid=(wms_pid_e_type)(0x167+2932-0xcdb);status_report->user_data.
+sm_len=(0xab4+2918-0x161a);status_report->mask&=(0xe2b+5437-0x2269);if((
+status_report->mask!=(0x227+7578-0x1ec2))&&(status_report->mask!=
+(0x2343+443-0x24fe))){pos++;if(status_report->mask&WMS_TPDU_MASK_PID){
status_report->pid=(wms_pid_e_type)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-(0x805+5798-0x1eaa)],data+pos,status_report->
+&status_report->dcs,data[pos-(0x37b+4095-0x1379)],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=
-(0x1cf4+1112-0x214c);}return st;}wms_status_e_type wms_ts_decode(const
+(0x1816+2441-0x219f);}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 79cc3dc..ed4800c 100755
--- a/ap/app/zte_comm/sms/src/sms_db.c
+++ b/ap/app/zte_comm/sms/src/sms_db.c
@@ -101,84 +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=
-(0x15d+4487-0x12e4);extern T_zUfiSms_ParaInfo g_zUfiSms_CurSmsPara;extern
+(0x80f+2266-0x10e9);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={(0x1cf+5398-0x16e5)};int
-tmp_i=(0x1818+1972-0x1fcc);
-#if (0xd57+2851-0x187a)
-if(atoi(date.year)>(0x1320+389-0x1442)||atoi(date.year)<(0x29b+5558-0x1851)){
+T_zUfiSms_Date date){time_t timet;struct tm tmtime={(0x1574+368-0x16e4)};int
+tmp_i=(0x503+7472-0x2233);
+#if (0x1212+2057-0x1a1b)
+if(atoi(date.year)>(0x1cfd+1378-0x21fc)||atoi(date.year)<(0x1367+4423-0x24ae)){
printf("[SMS] getsecond error, year out of range: %d!!!",atoi(date.year));return
-(0x11fa+1644-0x1866);}
+(0x16cb+4002-0x266d);}
#endif
-tmp_i=atoi(date.year);if(tmp_i<(0xc35+6064-0x23e5)||tmp_i>INT_MAX-
-(0xc41+1590-0x1276)){at_print(LOG_ERR,
+tmp_i=atoi(date.year);if(tmp_i<(0x1baa+633-0x1e23)||tmp_i>INT_MAX-
+(0x1149+2620-0x1b84)){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(0xa34+7332-0x26d8);}tmtime.tm_year=tmp_i+(0x189c+5661-0x26e9)-
-(0x145b+6348-0x25bb);tmp_i=atoi(date.month);if(tmp_i<(0x7d9+685-0xa86)||tmp_i>
-INT_MAX-(0xe14+6256-0x2683)){at_print(LOG_ERR,
+,tmp_i);return(0x2d0+1702-0x976);}tmtime.tm_year=tmp_i+(0x156d+982-0x1173)-
+(0x9c4+4559-0x1427);tmp_i=atoi(date.month);if(tmp_i<(0x74+3742-0xf12)||tmp_i>
+INT_MAX-(0x1d15+77-0x1d61)){at_print(LOG_ERR,
"\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(0x491+5222-0x18f7);}tmtime.tm_mon=tmp_i-(0x91c+712-0xbe3);tmp_i=
-atoi(date.day);if(tmp_i<(0x1268+3318-0x1f5e)||tmp_i>INT_MAX-(0x2f7+1206-0x7ac)){
+,tmp_i);return(0x13ca+1128-0x1832);}tmtime.tm_mon=tmp_i-(0xac+2152-0x913);tmp_i=
+atoi(date.day);if(tmp_i<(0xcf8+5578-0x22c2)||tmp_i>INT_MAX-(0x64b+1521-0xc3b)){
at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x64\x61\x79\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0x694+5832-0x1d5c);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);if
-(tmp_i<(0xce3+2482-0x1695)||tmp_i>INT_MAX-(0xaf7+6570-0x24a0)){at_print(LOG_ERR,
+,tmp_i);return(0x728+5683-0x1d5b);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);if
+(tmp_i<(0xeed+4097-0x1eee)||tmp_i>INT_MAX-(0x13e1+2746-0x1e9a)){at_print(LOG_ERR
+,
"\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(0xd8d+5930-0x24b7);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if(
-tmp_i<(0x1da2+992-0x2182)||tmp_i>INT_MAX-(0x8a9+2624-0x12e8)){at_print(LOG_ERR,
+,tmp_i);return(0x89+856-0x3e1);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if(
+tmp_i<(0x22e0+1013-0x26d5)||tmp_i>INT_MAX-(0x3fb+605-0x657)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x6d\x69\x6e\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0x85b+2793-0x1344);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
-tmp_i<(0x103+4952-0x145b)||tmp_i>INT_MAX-(0x1799+2556-0x2194)){at_print(LOG_ERR,
+,tmp_i);return(0xf03+2551-0x18fa);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
+tmp_i<(0x12df+2502-0x1ca5)||tmp_i>INT_MAX-(0xe27+4156-0x1e62)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x73\x65\x63\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0x216+3425-0xf77);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
+,tmp_i);return(0x1979+290-0x1a9b);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
return timet;}T_zUfiSms_DbResult zUfiSms_OpenDb(void){int retry_times=
-(0x56a+2888-0x10b2);int open_rst=SQLITE_ERROR;if(g_zUfiSms_DbPointer!=NULL){
+(0xe45+3823-0x1d34);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++<(0x232+8683-0x2413));printf(
+SQLITE_CANTOPEN&&retry_times++<(0x57c+7243-0x21bd));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=(0xb6+1840-0x7e6);int sqlRst=SQLITE_ERROR;while(try_times++<
-(0x102d+2122-0x186d)){sqlRst=sqlite3_exec(g_zUfiSms_DbPointer,exec_sql,callback,
+ try_times=(0x2374+805-0x2699);int sqlRst=SQLITE_ERROR;while(try_times++<
+(0x21c8+402-0x2350)){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(
-(0x82f+5120-0x1c2e));}if(sqlRst!=SQLITE_OK){printf(
+(0x21b6+989-0x2592));}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)==(0x1422+2218-0x1ccc)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZTE_WMS_TMP1_PATH,F_OK)==(0x918+612-0xb7c)){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)!=(0x172a+2630-0x2170)){slog(SMS_PRINT,SLOG_ERR,
+);if(remove(ZTE_WMS_TMP1_PATH)!=(0xe46+1220-0x130a)){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[(0x1a13+2223-0x22aa)]={(0x8a+1199-0x539)};char cmd[
-(0xdc5+1812-0x1459)]={(0x2c3+6087-0x1a8a)};sc_cfg_get(
+);}}{char rnum_buf[(0x109+2217-0x99a)]={(0x927+83-0x97a)};char cmd[
+(0x1150+5238-0x2546)]={(0x122f+409-0x13c8)};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)==(0x445+5385-0x194e)){if(remove(ZTE_WMS_SEC_PATH)!=
-(0x162f+2948-0x21b3)){slog(SMS_PRINT,SLOG_ERR,
+ZTE_WMS_TMP1_PATH,F_OK)==(0xe52+5146-0x226c)){if(remove(ZTE_WMS_SEC_PATH)!=
+(0x1a62+1407-0x1fe1)){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)!=(0x97a+2038-0x1170)){slog(
+);}if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=(0xff1+36-0x1015)){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>=(0xe48+2518-0x181d)){if(zresult[
-(0x17b4+1158-0x1c3a)]==NULL){*(int*)fvarg=(0xe21+4368-0x1f31);}else{*(int*)fvarg
-=atoi(zresult[(0x139d+4783-0x264c)]);}return SQLITE_OK;}else{return SQLITE_ERROR
-;}}int zUfiSms_SetCmdStatus(T_zUfiSms_StatusInfo*ptSetStatus){T_zUfiSms_DbResult
- result=ZTE_WMS_DB_OK;char*strSQL=NULL;printf(
+**zresult,char**lname){if(columns>=(0x673+6484-0x1fc6)){if(zresult[
+(0x204+6511-0x1b73)]==NULL){*(int*)fvarg=(0x1bb4+1632-0x2214);}else{*(int*)fvarg
+=atoi(zresult[(0x1aad+284-0x1bc9)]);}return SQLITE_OK;}else{return SQLITE_ERROR;
+}}int zUfiSms_SetCmdStatus(T_zUfiSms_StatusInfo*ptSetStatus){T_zUfiSms_DbResult
+result=ZTE_WMS_DB_OK;char*strSQL=NULL;printf(
"\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"
@@ -187,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((0xe4+963-0x4a7)==(int)para->status_report_on){sc_cfg_set(
+para){if((0x139+707-0x3fc)==(int)para->status_report_on){sc_cfg_set(
NV_REPORT_ENABLE,"\x30");}else{sc_cfg_set(NV_REPORT_ENABLE,"\x31");}if(
-(0x35d+1630-0x9bb)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY,
-"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0x1c2+2606-0xbf0)==(int)
-para->outdate_delete_on){sc_cfg_set(NV_OUTDATE_DELETE,"\x30");}else{sc_cfg_set(
-NV_OUTDATE_DELETE,"\x31");}if(*(para->default_store)!='\0'){sc_cfg_set(
-NV_DEFAULT_STORE,(char*)para->default_store);}if((0x487+3711-0x1306)==(int)para
-->mem_store){sc_cfg_set(NV_PRA_MEMSTORE,"\x30");}else{sc_cfg_set(NV_PRA_MEMSTORE
-,"\x31");}if((0x10c+6638-0x19fb)==(int)para->tp_validity_period){sc_cfg_set(
-NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0xc10+3669-0x19b8)==(int)
-para->tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x6f\x6e\x65\x77\x65\x65\x6b");}
-else if((0x10b+9080-0x23dc)==(int)para->tp_validity_period){sc_cfg_set(NV_SMS_VP
-,"\x6f\x6e\x65\x5f\x64\x61\x79");}else if((0xd39+4634-0x1ec4)==(int)para->
-tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x74\x77\x65\x6c\x76\x65\x68");}printf
-(
+(0x1a09+1566-0x2027)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY
+,"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0x1631+2853-0x2156)==(
+int)para->outdate_delete_on){sc_cfg_set(NV_OUTDATE_DELETE,"\x30");}else{
+sc_cfg_set(NV_OUTDATE_DELETE,"\x31");}if(*(para->default_store)!='\0'){
+sc_cfg_set(NV_DEFAULT_STORE,(char*)para->default_store);}if((0x7b0+4398-0x18de)
+==(int)para->mem_store){sc_cfg_set(NV_PRA_MEMSTORE,"\x30");}else{sc_cfg_set(
+NV_PRA_MEMSTORE,"\x31");}if((0x4c6+5096-0x17af)==(int)para->tp_validity_period){
+sc_cfg_set(NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0x2ad+1389-0x76d)
+==(int)para->tp_validity_period){sc_cfg_set(NV_SMS_VP,
+"\x6f\x6e\x65\x77\x65\x65\x6b");}else if((0x1147+1325-0x15cd)==(int)para->
+tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x6f\x6e\x65\x5f\x64\x61\x79");}else
+if((0x1b69+1140-0x1f4e)==(int)para->tp_validity_period){sc_cfg_set(NV_SMS_VP,
+"\x74\x77\x65\x6c\x76\x65\x68");}printf(
"\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=
-(0xda8+1535-0x13a7);if(NULL==para){return-(0x2692+58-0x26cb);}zUfiSms_ExecSql(
+(0x1909+345-0x1a62);if(NULL==para){return-(0xe10+1611-0x145a);}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>(0x9c9+4603-0x1bc4)){strSQL=
+zUfiSms_GetFirstColumnInt,&count);if(count>(0x44d+4213-0x14c2)){strSQL=
sqlite3_mprintf(
"\x55\x50\x44\x41\x54\x45\x20\x25\x73\x20\x53\x45\x54\x20\x53\x6d\x73\x5f\x52\x65\x70\x6f\x72\x74\x3d\x27\x25\x64\x27\x2c\x53\x6d\x73\x5f\x53\x63\x61\x3d\x27\x25\x71\x27\x2c\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x64\x27\x2c\x54\x70\x5f\x56\x61\x6c\x69\x64\x69\x74\x79\x3d\x27\x25\x64\x27\x2c\x53\x65\x6e\x64\x5f\x52\x65\x74\x72\x79\x3d\x27\x25\x64\x27\x2c\x4f\x75\x74\x64\x61\x74\x65\x5f\x44\x65\x6c\x65\x74\x65\x3d\x27\x25\x64\x27\x2c\x44\x65\x66\x61\x75\x6c\x74\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x71\x27\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x31\x3b"
,ZTE_WMS_DB_PARAMETER_TABLE,(int)para->status_report_on,para->sca,(int)para->
@@ -221,13 +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(0x7a7+2466-0x1149);}return-(0x1060+3231-0x1cfe);}int
+return(0xa06+3349-0x171b);}return-(0x1b02+1098-0x1f4b);}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=-(0xef0+4233-0x1f78);zUfiSms_ExecSql(
+void){int max_sms_ref=-(0x1bbd+430-0x1d6a);zUfiSms_ExecSql(
"\x53\x45\x4c\x45\x43\x54\x20\x4d\x61\x78\x5f\x53\x6d\x73\x5f\x52\x65\x66\x20\x46\x52\x4f\x4d\x20"
ZTE_WMS_DB_PARAMETER_TABLE
"\x20\x57\x48\x45\x52\x45\x20\x69\x64\x20\x3d\x20\x31\x3b",
@@ -236,20 +237,20 @@
content,int len){sqlite3_stmt*stmt=NULL;char*strSQL=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x69\x6e\x64\x2c\x43\x63\x5f\x53\x65\x71\x2c\x43\x63\x5f\x43\x6f\x6e\x74\x65\x6e\x74\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x71\x27\x3b"
,id,mem_store);(void)sqlite3_prepare(g_zUfiSms_DbPointer,strSQL,-
-(0x1016+1839-0x1744),&stmt,(0x982+1663-0x1001));while(SQLITE_ROW==sqlite3_step(
-stmt)){char*column_text=NULL;memset(pac->IndStr,(0xe6d+1431-0x1404),sizeof(pac->
-IndStr));memset(pac->Seg_Seq,(0xb08+6995-0x265b),sizeof(pac->Seg_Seq));if((
-column_text=sqlite3_column_text(stmt,(0x16d5+1556-0x1ce9)))!=NULL)strncpy(pac->
-IndStr,column_text,sizeof(pac->FormatInd)-(0x996+7245-0x25e2));if((column_text=
-sqlite3_column_text(stmt,(0xb16+6486-0x246b)))!=NULL)strncpy(pac->Seg_Seq,
-column_text,sizeof(pac->FormatSeq)-(0x13da+2000-0x1ba9));if((column_text=
-sqlite3_column_text(stmt,(0x127+5110-0x151b)))!=NULL)strncpy(content,column_text
-,len-(0x482+4634-0x169b));printf(
+(0x6e3+7268-0x2346),&stmt,(0xaa9+6835-0x255c));while(SQLITE_ROW==sqlite3_step(
+stmt)){char*column_text=NULL;memset(pac->IndStr,(0x1b4c+230-0x1c32),sizeof(pac->
+IndStr));memset(pac->Seg_Seq,(0xde7+629-0x105c),sizeof(pac->Seg_Seq));if((
+column_text=sqlite3_column_text(stmt,(0x166b+730-0x1945)))!=NULL)strncpy(pac->
+IndStr,column_text,sizeof(pac->FormatInd)-(0x3b4+7532-0x211f));if((column_text=
+sqlite3_column_text(stmt,(0xf9b+5128-0x23a2)))!=NULL)strncpy(pac->Seg_Seq,
+column_text,sizeof(pac->FormatSeq)-(0xc88+1378-0x11e9));if((column_text=
+sqlite3_column_text(stmt,(0x1858+1109-0x1cab)))!=NULL)strncpy(content,
+column_text,len-(0x7f2+2559-0x11f0));printf(
"\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(0xca3+6155-0x24ae);}int zUfiSms_UpdateConcatSmsToDb(T_zUfiSms_DbStoreData
-*db_data,const char*mem_store,char*format_concat,char*content,
-T_zUfiSms_DbStoreStr*pac,int concat_num,long id){char*sql=NULL;
+return(0x1001+4465-0x2172);}int zUfiSms_UpdateConcatSmsToDb(
+T_zUfiSms_DbStoreData*db_data,const char*mem_store,char*format_concat,char*
+content,T_zUfiSms_DbStoreStr*pac,int concat_num,long id){char*sql=NULL;
T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;sql=sqlite3_mprintf(
"\x55\x50\x44\x41\x54\x45\x20\x73\x6d\x73\x20\x53\x45\x54\x20\x69\x6e\x64\x3d\x27\x25\x73\x27\x2c\x54\x61\x67\x3d\x27\x25\x64\x27\x2c\x43\x63\x5f\x53\x65\x71\x3d\x27\x25\x73\x27\x2c\x43\x63\x5f\x4e\x75\x6d\x3d\x27\x25\x64\x27\x2c\x20"
"\x43\x63\x5f\x43\x6f\x6e\x74\x65\x6e\x74\x3d\x27\x25\x71\x27\x2c\x43\x6f\x6e\x74\x65\x6e\x74\x3d\x27\x25\x71\x27\x2c\x59\x65\x61\x72\x3d\x27\x25\x71\x27\x2c\x4d\x6f\x6e\x74\x68\x3d\x27\x25\x71\x27\x2c\x20"
@@ -269,8 +270,8 @@
"\x43\x6f\x6e\x74\x65\x6e\x74\x2c\x53\x6d\x73\x5f\x52\x65\x70\x6f\x72\x74\x5f\x52\x65\x63\x69\x76\x65\x64\x2c\x44\x72\x61\x66\x74\x5f\x47\x72\x6f\x75\x70\x5f\x49\x64\x2c\x59\x65\x61\x72\x2c\x4d\x6f\x6e\x74\x68\x2c\x44\x61\x79\x2c\x48\x6f\x75\x72\x2c\x4d\x69\x6e\x75\x74\x65\x2c\x53\x65\x63\x6f\x6e\x64\x2c\x54\x69\x6d\x65\x5a\x6f\x6e\x65\x2c\x4d\x6b\x74\x69\x6d\x65\x2c\x44\x69\x73\x70\x6c\x61\x79\x4d\x6f\x64\x65\x29\x20"
"\x56\x41\x4c\x55\x45\x53\x28" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c\x20\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c\x20\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c\x20" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c\x20\x27\x25\x64\x27\x29\x3b"
,pac->FormatInd,mem_store,db_data->tag,db_data->number,db_data->concat_sms,
-db_data->concat_info[(0x1c34+2503-0x25fb)],db_data->concat_info[
-(0x1347+3822-0x2234)],pac->FormatSeq,concat_num,format_concat,db_data->tp_dcs,
+db_data->concat_info[(0x1443+2502-0x1e09)],db_data->concat_info[
+(0x1d4a+49-0x1d7a)],pac->FormatSeq,concat_num,format_concat,db_data->tp_dcs,
db_data->msg_ref,content,"\x30",db_data->draft_group_id,db_data->julian_date.
year,db_data->julian_date.month,db_data->julian_date.day,db_data->julian_date.
hour,db_data->julian_date.min,db_data->julian_date.sec,db_data->julian_date.
@@ -279,21 +280,21 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x49\x6e\x73\x65\x72\x74\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x54\x6f\x44\x62\x20\x73\x71\x6c\x3d\x25\x73\x2e" "\n"
,sql);result=zUfiSms_ExecSql(sql,NULL,NULL);sqlite3_free(sql);return isSucess(
result);}int zUfiSms_GetConcatMaxReferInDb(void){int ConcatMaxRefer=
-(0x669+6377-0x1f52);int result=(0x10df+1323-0x160a);result=zUfiSms_ExecSql(
+(0x130c+276-0x1420);int result=(0x526+5290-0x19d0);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-
-(0x56b+1318-0xa90);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap=
-(0x686+7847-0x252d);const T_zUfiSms_SQLMap SQL_MAP[]={{(0xecf+5261-0x235b),
-ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0xecd+2989-0x1a79),ZTE_WMS_DEL_SIM_SQL},{
-(0x15c5+3884-0x24f0),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0x386+2194-0xc17),
-ZTE_WMS_CREATE_SMS_REP_SQL},{(0xed+1139-0x55f),ZTE_WMS_CREATE_PAR_SQL},{
-(0x1bfc+1330-0x212d),ZTE_WMS_CREATE_INFO_SQL},{(0x4e6+3293-0x11c2),
-ZTE_WMS_CREATE_CELL_BRO_SQL},{(0xe05+4953-0x215d),
-ZTE_WMS_CREATE_SEND_CONTENT_SQL},};for(iMap=(0xedd+1297-0x13ee);iMap<sizeof(
+(0x2380+511-0x257e);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap=
+(0xab0+1503-0x108f);const T_zUfiSms_SQLMap SQL_MAP[]={{(0x649+4810-0x1912),
+ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0x863+6102-0x2038),ZTE_WMS_DEL_SIM_SQL},{
+(0xdfb+326-0xf40),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0x7c0+2025-0xfa8),
+ZTE_WMS_CREATE_SMS_REP_SQL},{(0x1aac+2352-0x23db),ZTE_WMS_CREATE_PAR_SQL},{
+(0x491+6808-0x1f28),ZTE_WMS_CREATE_INFO_SQL},{(0x1647+2500-0x200a),
+ZTE_WMS_CREATE_CELL_BRO_SQL},{(0x2303+504-0x24fa),
+ZTE_WMS_CREATE_SEND_CONTENT_SQL},};for(iMap=(0x9ef+6777-0x2468);iMap<sizeof(
SQL_MAP)/sizeof(T_zUfiSms_SQLMap);iMap++){if(SQL_MAP[iMap].valid==
-(0x42d+4731-0x16a7)){if(zUfiSms_ExecSql(SQL_MAP[iMap].strSQL,NULL,NULL)!=
+(0x3d+444-0x1f8)){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[(0x846+5021-0x1be3)],
-ptDbSaveData->concat_info[(0x142f+7-0x1435)],ptDbSaveData->concat_info[
-(0xb92+6713-0x25c9)],ptDbSaveData->tp_dcs,ptDbSaveData->msg_ref,pContent,"\x30",
+ptDbSaveData->concat_sms,ptDbSaveData->concat_info[(0x1a40+1319-0x1f67)],
+ptDbSaveData->concat_info[(0x1324+2037-0x1b18)],ptDbSaveData->concat_info[
+(0xd86+4440-0x1edc)],ptDbSaveData->tp_dcs,ptDbSaveData->msg_ref,pContent,"\x30",
ptDbSaveData->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>=(0x5dd+6589-0x1f99)&&fvarg!=NULL){if(zresult[
-(0xf54+4070-0x1f3a)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
-strncpy(para->buf_addr,zresult[(0x898+4179-0x18eb)],para->buf_len-
-(0x671+2471-0x1017));return SQLITE_OK;}}return SQLITE_ERROR;}int
+zresult,char**lname){if(columns>=(0xfcc+1367-0x1522)&&fvarg!=NULL){if(zresult[
+(0x8cd+4478-0x1a4b)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
+strncpy(para->buf_addr,zresult[(0xed+528-0x2fd)],para->buf_len-
+(0x939+3308-0x1624));return SQLITE_OK;}}return SQLITE_ERROR;}int
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={
-(0x1958+2199-0x21ef)};char*strSQL=NULL;if(NULL==item||NULL==item_data){return
+(0x15f9+518-0x17ff)};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)||((0x160+4720-0x13d0)==strcmp(
+sqlite3_free(strSQL);if((ZTE_WMS_DB_OK!=result)||((0x8bf+6953-0x23e8)==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[
-(0x294+3444-0xf88)]={(0xb9b+2124-0x13e7)};snprintf(sql,sizeof(sql),
+(0x3ef+6232-0x1bc7)]={(0x1551+1600-0x1b91)};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-
-(0x231a+612-0x257d)]);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}int
+(0x1570+819-0x18a2)]);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}int
zUfiSms_DeleteAllSimSmsInDb(void){return isSucess(zUfiSms_ExecSql(
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27"
ZTE_WMS_DB_SIM_TABLE"\x27\x3b",NULL,NULL));}int zUfiSms_DeleteNvSms(void){if(
@@ -375,11 +376,11 @@
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27"
ZTE_WMS_DB_NV_TABLE"\x27\x3b",NULL,NULL)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x64\x65\x6c\x65\x74\x65\x20\x66\x61\x69\x6c" "\n"
-);return WMS_CMD_FAILED;}}else{int i=(0x204+6898-0x1cf6);printf(
+);return WMS_CMD_FAILED;}}else{int i=(0xbd7+626-0xe49);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=(0xa95+5687-0x20cc);i<g_zUfiSms_DelMsg.
-nv_count;i++){char sql[(0x412+810-0x6bc)]={(0x1029+679-0x12d0)};snprintf(sql,
-sizeof(sql),
+,g_zUfiSms_DelMsg.nv_count);for(i=(0x345+2635-0xd90);i<g_zUfiSms_DelMsg.nv_count
+;i++){char sql[(0xf83+4365-0x2010)]={(0x1849+558-0x1a77)};snprintf(sql,sizeof(
+sql),
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x61\x6e\x64\x20\x69\x64\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_NV_TABLE,g_zUfiSms_DelMsg.nv_id[i]);if(ZTE_WMS_DB_OK!=
zUfiSms_ExecSql(sql,NULL,NULL)){printf(
@@ -387,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[(0xd06+3373-0x19b3)]={(0x118b+3051-0x1d76)};
-T_zUfiSms_BufInfo buf_info={(0xea6+1963-0x1651)};char str_index[
-(0x31b+2364-0xc55)*WMS_MESSAGE_LIST_MAX]={(0xb6+8661-0x228b)};buf_info.buf_addr=
-str_index;buf_info.buf_len=sizeof(str_index);snprintf(sql,sizeof(sql),
+ptModifyTag,int is_cc){char sql[(0xca8+6297-0x24c1)]={(0xc51+5131-0x205c)};
+T_zUfiSms_BufInfo buf_info={(0x936+1419-0xec1)};char str_index[
+(0xb92+1104-0xfe0)*WMS_MESSAGE_LIST_MAX]={(0x781+2835-0x1294)};buf_info.buf_addr
+=str_index;buf_info.buf_len=sizeof(str_index);snprintf(sql,sizeof(sql),
"\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((0x19f7+970-0x1dc0)==is_cc){int i=(0x116+9558-0x266c);int
- j=(0xdad+4057-0x1d86);int count=(0x189+1186-0x62b);char**out_result=NULL;count=
-zUfiSms_SplitString(str_index,&out_result,((char)(0xfdc+320-0x10e1)));for(i=
-(0x2bd+5599-0x189c);i<count;i++){if((0x751+6784-0x21d1)!=strcmp(out_result[i],""
-)){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->num_of_indices=j
-;free(out_result);}else{ptModifyTag->indices[(0xb84+6537-0x250d)]=atoi(str_index
-);ptModifyTag->num_of_indices=(0x74f+7130-0x2328);}ptModifyTag->total_indices=
-ptModifyTag->num_of_indices;printf(
+);return ZUFI_FAIL;}if((0x17f1+1134-0x1c5e)==is_cc){int i=(0x1a85+2026-0x226f);
+int j=(0x181+7955-0x2094);int count=(0x105c+558-0x128a);char**out_result=NULL;
+count=zUfiSms_SplitString(str_index,&out_result,((char)(0xc4d+1402-0x118c)));for
+(i=(0x7db+2609-0x120c);i<count;i++){if((0xd47+2426-0x16c1)!=strcmp(out_result[i]
+,"")){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->
+num_of_indices=j;free(out_result);}else{ptModifyTag->indices[(0x1ebf+227-0x1fa2)
+]=atoi(str_index);ptModifyTag->num_of_indices=(0x666+2385-0xfb6);}ptModifyTag->
+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[(0x6ba+3296-0x131a)]={(0x2d1+5299-0x1784)};int is_cc=
-(0x1857+3683-0x26ba);T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;snprintf(sql,sizeof
-(sql),
+char sql[(0xa4b+6404-0x22cf)]={(0xcc2+2431-0x1641)};int is_cc=
+(0x789+6983-0x22d0);T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;snprintf(sql,sizeof(
+sql),
"\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-(0x12fd+3674-0x2156);}return is_cc;}int
+,ZTE_WMS_DB_SMS_TABLE);return-(0x9ec+2291-0x12de);}return is_cc;}int
zUfiSms_UpdateSmsTagInDb(unsigned long id,unsigned int tags){char sql[
-(0x8f8+3101-0x1495)]={(0x712+7731-0x2545)};snprintf(sql,sizeof(sql),
+(0x1d8+2650-0xbb2)]={(0x1061+3392-0x1da1)};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[
-(0x1841+382-0x193f)]={(0x10b3+4601-0x22ac)};if(pTotalCount==NULL){return
+(0x302+6087-0x1a49)]={(0xbf2+4228-0x1c76)};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[(0xa7c+5797-0x20a1)]={
-(0x928+6633-0x2311)};snprintf(sql,sizeof(sql),
+result);}int zUfiSms_DeleteDraftSms(long iSmsId){char sql[(0xb0f+4773-0x1d34)]={
+(0x1c1+1103-0x610)};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[(0x96b+5203-0x1d3e)]={
-(0x20b+8021-0x2160)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0xdd4+6100-0x25a8);}
+int zUfiSms_SetConcatMaxRefer(int ref){char sql[(0x1736+2794-0x21a0)]={
+(0x142d+4546-0x25ef)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0x1024+1516-0x1610);}
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[(0x122d+2339-0x1ad0)]={
-(0x2189+189-0x2246)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x1dac+1323-0x22d7);}
+;}int zUfiSms_SetMaxReference(int ref){char sql[(0x369+620-0x555)]={
+(0x767+2836-0x127b)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x1d84+196-0x1e48);}
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,76 +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>=(0x635+7605-0x23e9)&&fvarg!=NULL){if(zresult[(0x2082+1652-0x26f6)]
+{if(columns>=(0x181d+1786-0x1f16)&&fvarg!=NULL){if(zresult[(0x58f+7759-0x23de)]
!=NULL){T_zUfiSms_ParaInfo*para=(T_zUfiSms_ParaInfo*)fvarg;strncpy(para->sca,
-zresult[(0x5+7750-0x1e4b)],sizeof(para->sca)-(0x399+3892-0x12cc));para->
-mem_store=atoi(zresult[(0x83+2739-0xb35)]);para->tp_validity_period=atoi(zresult
-[(0x983+6379-0x226c)]);para->status_report_on=atoi(zresult[(0x6b7+3142-0x12fa)])
-;para->sendfail_retry_on=atoi(zresult[(0x1f0+1818-0x906)]);para->
-outdate_delete_on=atoi(zresult[(0x2610+238-0x26f9)]);(void)strncpy(para->
-default_store,zresult[(0x14f5+2699-0x1f7a)],sizeof(para->default_store)-
-(0x196c+170-0x1a15));return SQLITE_OK;}}return SQLITE_ERROR;}int
+zresult[(0x913+6198-0x2149)],sizeof(para->sca)-(0x5dc+1654-0xc51));para->
+mem_store=atoi(zresult[(0xecf+1067-0x12f9)]);para->tp_validity_period=atoi(
+zresult[(0x1734+2892-0x227e)]);para->status_report_on=atoi(zresult[
+(0x5d9+4927-0x1915)]);para->sendfail_retry_on=atoi(zresult[(0x463+6423-0x1d76)])
+;para->outdate_delete_on=atoi(zresult[(0xdad+6212-0x25ec)]);(void)strncpy(para->
+default_store,zresult[(0xa7f+6645-0x246e)],sizeof(para->default_store)-
+(0xe91+3192-0x1b08));return SQLITE_OK;}}return SQLITE_ERROR;}int
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,
-(0x450+2988-0xffc),sizeof(T_zUfiSms_ParaInfo));return isSucess(zUfiSms_ExecSql(
-strSQL,zUfiSms_GetFirstColumnParaInfo,&g_zUfiSms_CurSmsPara));}int
+ ZTE_WMS_DB_PARAMETER_TABLE"\x3b";memset(&g_zUfiSms_CurSmsPara,(0xd52+343-0xea9)
+,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>=(0xcb+4138-0x10f4)&&
-para!=NULL)(void)strncpy(para->buf_addr,zresult[(0x150+1667-0x7d3)],para->
-buf_len-(0x2ac+5385-0x17b4));return(0xf47+3049-0x1b30);}int
-zUfiSms_GetSmsContent(char*pSmsBuf,int len){T_zUfiSms_BufInfo buf_info={
-(0x2179+467-0x234c)};char*strSQL=
+T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;if(column>=(0x5a4+6103-0x1d7a)
+&¶!=NULL)(void)strncpy(para->buf_addr,zresult[(0x10c+8667-0x22e7)],para->
+buf_len-(0xe2+4340-0x11d5));return(0x702+6533-0x2087);}int zUfiSms_GetSmsContent
+(char*pSmsBuf,int len){T_zUfiSms_BufInfo buf_info={(0x1bb2+405-0x1d47)};char*
+strSQL=
"\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,(0x98b+7474-0x26bd),len);return isSucess(
+len;memset(buf_info.buf_addr,(0x18bd+3543-0x2694),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=-(0x12b3+3495-0x2059);switch(
+char*sql=NULL;sqlite3_stmt*stmt=NULL;int id=-(0xcdd+614-0xf42);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[(0x726+5316-0x1bea)],
-ptDbSaveData->concat_info[(0x1905+937-0x1cad)],pMemStore,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x102f+1532-0x162b)],
+ptDbSaveData->concat_info[(0x164f+1239-0x1b25)],pMemStore,
WMS_TAG_TYPE_MO_SENT_V01,WMS_TAG_TYPE_MO_NOT_SENT_V01);break;}case
-(0x95b+5186-0x1d99):{sql=sqlite3_mprintf(
+(0x1087+5283-0x2526):{sql=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x65\x71\x2c\x69\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x41\x4e\x44\x20\x54\x61\x67\x20\x3d\x20\x27\x25\x64\x27\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0x1731+3065-0x232a)],
-ptDbSaveData->concat_info[(0x1c9+64-0x208)],pMemStore,(0xbc+9583-0x2627));break;
-}case WMS_TAG_TYPE_MT_READ_V01:case WMS_TAG_TYPE_MT_NOT_READ_V01:{sql=
-sqlite3_mprintf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x2f4+2312-0xbfc)],ptDbSaveData
+->concat_info[(0x44+9911-0x26fa)],pMemStore,(0x1e86+1122-0x22e4));break;}case
+WMS_TAG_TYPE_MT_READ_V01:case WMS_TAG_TYPE_MT_NOT_READ_V01:{sql=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x65\x71\x2c\x69\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x41\x4e\x44\x20\x28\x54\x61\x67\x20\x3d\x20\x27\x25\x64\x27\x20\x4f\x52\x20\x54\x61\x67\x3d\x20\x27\x25\x64\x27\x29\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0xdf4+4747-0x207f)],
-ptDbSaveData->concat_info[(0x103a+4576-0x2219)],pMemStore,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x9fa+6270-0x2278)],
+ptDbSaveData->concat_info[(0x1a3+7771-0x1ffd)],pMemStore,
WMS_TAG_TYPE_MT_READ_V01,WMS_TAG_TYPE_MT_NOT_READ_V01);break;}default:{sql=
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[(0x125f+4390-0x2385)],
-ptDbSaveData->concat_info[(0x606+7927-0x24fc)],pMemStore);at_print(LOG_ERR,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x1084+5372-0x2580)],
+ptDbSaveData->concat_info[(0xf11+5756-0x258c)],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,-(0x44f+4919-0x1785),&stmt,
-(0x18cd+1253-0x1db2))!=SQLITE_OK){at_print(LOG_ERR,
+sqlite3_prepare(g_zUfiSms_DbPointer,sql,-(0xa6a+4562-0x1c3b),&stmt,
+(0xa0d+5028-0x1db1))!=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-
-(0x774+7307-0x23fe);}while(SQLITE_ROW==sqlite3_step(stmt)){int j=
-(0x1b62+213-0x1c37);char**out_result=NULL;char*column_text=sqlite3_column_text(
-stmt,(0x1f40+1023-0x233f));int count=-(0x269+3138-0xeaa);if(column_text!=NULL)
-count=zUfiSms_SplitString(column_text,&out_result,((char)(0x17ed+3329-0x24b3)));
-for(j=(0x16b6+1325-0x1be3);j<count;j++){if((0x14ba+1928-0x1c42)==strcmp(
-out_result[j],"")){if(j+(0x1b5+5498-0x172e)==ptDbSaveData->concat_info[
-(0xb5a+6156-0x2364)]){id=sqlite3_column_int(stmt,(0x14f+3472-0xede));break;}}}if
-(out_result!=NULL){free(out_result);out_result=NULL;}if(-(0x11b7+5328-0x2686)!=
-id){break;}}(void)sqlite3_finalize(stmt);sqlite3_free(sql);return id;}int
+(0x9e4+1403-0xf5e);}while(SQLITE_ROW==sqlite3_step(stmt)){int j=
+(0x150+1126-0x5b6);char**out_result=NULL;char*column_text=sqlite3_column_text(
+stmt,(0x1dcd+1441-0x236e));int count=-(0x864+3170-0x14c5);if(column_text!=NULL)
+count=zUfiSms_SplitString(column_text,&out_result,((char)(0x11f3+2635-0x1c03)));
+for(j=(0x328+3795-0x11fb);j<count;j++){if((0x44a+3260-0x1106)==strcmp(out_result
+[j],"")){if(j+(0x6cb+4936-0x1a12)==ptDbSaveData->concat_info[(0x1fe1+407-0x2176)
+]){id=sqlite3_column_int(stmt,(0x4c8+8430-0x25b5));break;}}}if(out_result!=NULL)
+{free(out_result);out_result=NULL;}if(-(0x22a+8273-0x227a)!=id){break;}}(void)
+sqlite3_finalize(stmt);sqlite3_free(sql);return id;}int
zUfiSms_CheckDbOutdateSms_Callback(void*fvarg,int columns,char**zresult,char**
-lname){if(fvarg!=NULL&&columns>=(0x50c+8707-0x270e)){if(zresult[
-(0x183c+2720-0x22dc)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
-result->id[result->all_or_count]=atoi(zresult[(0xc86+1681-0x1317)]);result->
+lname){if(fvarg!=NULL&&columns>=(0x967+5964-0x20b2)){if(zresult[
+(0x8d7+1769-0xfc0)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
+result->id[result->all_or_count]=atoi(zresult[(0x1827+182-0x18dd)]);result->
all_or_count++;return SQLITE_OK;}}return SQLITE_ERROR;}VOID
zUfiSms_CheckDbOutdateSms(const char*pDbTable,T_zUfiSms_DelReq*pSmsDel){char
-acSql[(0x70c+7365-0x2351)]={(0x1b6+8569-0x232f)};struct timeval tp;if(
-(0x384+5736-0x19ec)!=gettimeofday(&tp,NULL)){printf(
+acSql[(0x12b6+4401-0x2367)]={(0x12+873-0x37b)};struct timeval tp;if(
+(0xa08+3100-0x1624)!=gettimeofday(&tp,NULL)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x67\x65\x74\x74\x69\x6d\x65\x6f\x66\x64\x61\x79\x20\x65\x72\x72\x6f\x72\x21\x21\x21"
);return;}if(tp.tv_sec<=OUTDATEINTERVAL){return;}snprintf(acSql,sizeof(acSql),
"\x53\x45\x4c\x45\x43\x54\x20\x69\x64\x20\x46\x52\x4f\x4d\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x6b\x74\x69\x6d\x65\x3c\x27\x25\x75\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x3b"
@@ -531,21 +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>=(0x1833+327-0x1978)){if(zresult[
-(0xb48+1143-0xfbf)]!=NULL&&zresult[(0x1094+1328-0x15c3)]!=NULL){SMS_MSG_INFO*msg
-=(SMS_MSG_INFO*)fvarg;memset(msg->id,(0x993+1728-0x1053),sizeof(msg->id));memset
-(msg->total_seq,(0x2070+1332-0x25a4),sizeof(msg->total_seq));strncpy(msg->id,
-zresult[(0x1efd+1504-0x24dd)],sizeof(msg->id)-(0xa86+3638-0x18bb));strncpy(msg->
-total_seq,zresult[(0xc77+4887-0x1f8d)],sizeof(msg->total_seq)-
-(0xdec+1348-0x132f));printf(
+**lname){if(fvarg!=NULL&&column>=(0x471+3109-0x1094)){if(zresult[
+(0x422+3197-0x109f)]!=NULL&&zresult[(0x174c+3055-0x233a)]!=NULL){SMS_MSG_INFO*
+msg=(SMS_MSG_INFO*)fvarg;memset(msg->id,(0x5a5+7747-0x23e8),sizeof(msg->id));
+memset(msg->total_seq,(0x22ef+1009-0x26e0),sizeof(msg->total_seq));strncpy(msg->
+id,zresult[(0x688+3127-0x12bf)],sizeof(msg->id)-(0xe21+435-0xfd3));strncpy(msg->
+total_seq,zresult[(0x1d44+1787-0x243e)],sizeof(msg->total_seq)-
+(0x3c6+7662-0x21b3));printf(
"\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[(0x121b+1628-0x1877)],
-ptDbSaveData->concat_info[(0x1789+2942-0x2306)]);printf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0xbb4+1076-0xfe8)],ptDbSaveData
+->concat_info[(0x1d66+622-0x1fd3)]);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 146a01d..11eb4b5 100755
--- a/ap/app/zte_comm/sms/src/sms_fnc.c
+++ b/ap/app/zte_comm/sms/src/sms_fnc.c
@@ -8,18 +8,18 @@
#include "sms_fnc.h"
#include "sms_db.h"
#include "sms_code.h"
-#define SMS_RETRY_COUNT (0x1155+4465-0x22c3)
-#define SHORT_INT_LEN (0x1007+5144-0x2419)
+#define SMS_RETRY_COUNT (0x37b+9019-0x26b3)
+#define SHORT_INT_LEN (0x719+3345-0x1424)
SMS_LOCATION g_zUfiSms_CurLocation=SMS_LOCATION_SIM;int
-g_zUfiSms_ConcatSmsReference=(0x3d9+4358-0x14df);T_zUfiSms_ParaInfo
+g_zUfiSms_ConcatSmsReference=(0x259+3087-0xe68);T_zUfiSms_ParaInfo
g_zUfiSms_CurSmsPara={"",WMS_STORAGE_TYPE_UIM_V01,
-ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0x1704+595-0x1957),
-(0x1770+704-0x1a30),(0xca1+1677-0x132e),"\x6e\x76"};int g_zUfiSms_Language=
-NOT_DEFINE_LANGUAGE;int g_zUfiSms_Dcs=(0x2b0+2933-0xe25);unsigned long
-g_zUfiSms_StoreCapablity[ZTE_WMS_MEMORY_MAX]={(0x1348+2657-0x1d45),
+ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0x1d7+6736-0x1c27),
+(0x226+5770-0x18b0),(0x1acb+3134-0x2709),"\x6e\x76"};int g_zUfiSms_Language=
+NOT_DEFINE_LANGUAGE;int g_zUfiSms_Dcs=(0x150b+1259-0x19f6);unsigned long
+g_zUfiSms_StoreCapablity[ZTE_WMS_MEMORY_MAX]={(0x1dec+189-0x1e45),
ZTE_WMS_DB_MSG_COUNT_MAX};T_zSms_SendSmsReq g_zUfiSms_FinalCmgsBuf;SMS_PARAM
-g_zUfiSms_SendingSms;UINT16 g_zUfiSms_IsLanguageShift=(0x67f+1181-0xb1c);extern
-int g_zUfiSms_MsgRefer;extern T_zUfiSms_DelSms g_zUfiSms_DelMsg;extern
+g_zUfiSms_SendingSms;UINT16 g_zUfiSms_IsLanguageShift=(0xa09+4174-0x1a57);extern
+ int g_zUfiSms_MsgRefer;extern T_zUfiSms_DelSms g_zUfiSms_DelMsg;extern
T_zUfiSms_DelIndexInfo g_deleteIndex;extern T_zUfiSms_ModifyIndexInfo
g_modifyIndex;extern T_zUfiSms_ModifySms g_zUfiSms_modifyMsg;extern UINT8
g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_MAX];extern int g_zUfiSms_ConcatTotalNum;
@@ -31,16 +31,16 @@
eLocation){switch(eLocation){case SMS_LOCATION_SIM:{g_zUfiSms_CurLocation=
SMS_LOCATION_SIM;break;}case SMS_LOCATION_ME:{g_zUfiSms_CurLocation=
SMS_LOCATION_ME;break;}default:{return;}}}int zUfiSms_SetDeleteInfo(
-T_zUfiSms_DelReq*ptDelMsg){char acStorePos[(0xa25+4560-0x1bc3)];int i=
-(0x596+2491-0xf51);g_zUfiSms_DelMsg.nv_count=(0x1b85+1872-0x22d5);
-g_zUfiSms_DelMsg.nv_index=(0x2f4+6434-0x1c16);g_zUfiSms_DelMsg.sim_count=
-(0xae6+4737-0x1d67);g_zUfiSms_DelMsg.sim_index=(0xc27+5924-0x234b);for(i=
-(0x885+4230-0x190b);i<ptDelMsg->all_or_count;i++){memset(acStorePos,
-(0xe55+3719-0x1cdc),sizeof(acStorePos));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
+T_zUfiSms_DelReq*ptDelMsg){char acStorePos[(0x492+4147-0x1493)];int i=
+(0x5d7+5118-0x19d5);g_zUfiSms_DelMsg.nv_count=(0x16fc+885-0x1a71);
+g_zUfiSms_DelMsg.nv_index=(0x2bc+116-0x330);g_zUfiSms_DelMsg.sim_count=
+(0x8b4+5823-0x1f73);g_zUfiSms_DelMsg.sim_index=(0x3c1+6295-0x1c58);for(i=
+(0x202+5193-0x164b);i<ptDelMsg->all_or_count;i++){memset(acStorePos,
+(0x10d2+5001-0x245b),sizeof(acStorePos));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
"Mem_Store",acStorePos,sizeof(acStorePos),ptDelMsg->id[i])){return ZUFI_FAIL;}if
-((0x738+229-0x81d)==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){g_zUfiSms_DelMsg.
+((0x784+7598-0x2532)==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){g_zUfiSms_DelMsg.
nv_id[g_zUfiSms_DelMsg.nv_count]=ptDelMsg->id[i];g_zUfiSms_DelMsg.nv_count++;
-g_zUfiSms_DelMsg.nv_index_count++;}else if((0x5d2+5989-0x1d37)==strcmp(
+g_zUfiSms_DelMsg.nv_index_count++;}else if((0x10b0+5640-0x26b8)==strcmp(
acStorePos,ZTE_WMS_DB_SIM_TABLE)){g_zUfiSms_DelMsg.sim_id[g_zUfiSms_DelMsg.
sim_count]=ptDelMsg->id[i];g_zUfiSms_DelMsg.sim_count++;g_zUfiSms_DelMsg.
sim_index_count++;}}return ZUFI_SUCC;}void zUfiSms_ChangeMainState(
@@ -69,65 +69,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(-
-(0x15c+2204-0x9f7)==access(ZTE_WMS_DB_DIR,F_OK)){printf(
+(0x22e5+630-0x255a)==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(-(0x237d+873-0x26e5)==mkdir(ZTE_WMS_DB_DIR,
-(0x16b3+42-0x14de))){printf(
+,ZTE_WMS_DB_DIR);if(-(0x81f+6344-0x20e6)==mkdir(ZTE_WMS_DB_DIR,
+(0x496+5029-0x163c))){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(-
-(0x5c6+4875-0x18d0)==access(ZTE_WMS_DB_PATH,F_OK)){printf(
+(0x84c+936-0xbf3)==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=(0x1119+2449-0x1aaa);unsigned char mem_store_flag=
-(0x359+7716-0x217d);unsigned int tp_validity_period=(0x1016+3526-0x1ddc);char
-Temp_sms_vp[(0x100+1928-0x880)]={(0xcc+707-0x38f)};CHAR reportEnable[
-(0x10ca+2242-0x195a)]={(0x25f+7235-0x1ea2)};CHAR smsLocation[(0x182b+778-0x1b03)
-]={(0xd59+2927-0x18c8)};CHAR sendfailRetry[(0x8a0+6914-0x2370)]={
-(0xfa3+5836-0x266f)};CHAR outdateDelete[(0x7ef+2741-0x1272)]={
-(0x6e6+3302-0x13cc)};CHAR defaultStore[(0x1183+2207-0x19f0)]={(0x5bb+1076-0x9ef)
-};sc_cfg_get(NV_REPORT_ENABLE,reportEnable,sizeof(reportEnable));sc_cfg_get(
-NV_SMS_LOCATION_SET,smsLocation,sizeof(smsLocation));sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));sc_cfg_get(
+unsigned char sts_flag=(0x641+4951-0x1998);unsigned char mem_store_flag=
+(0xcfd+6450-0x262f);unsigned int tp_validity_period=(0x618+464-0x7e8);char
+Temp_sms_vp[(0xb7f+535-0xd8e)]={(0x1728+3677-0x2585)};CHAR reportEnable[
+(0x684+7365-0x2317)]={(0x45d+5915-0x1b78)};CHAR smsLocation[(0x599+5458-0x1ab9)]
+={(0xde4+4057-0x1dbd)};CHAR sendfailRetry[(0x121+6714-0x1b29)]={
+(0x19f0+2136-0x2248)};CHAR outdateDelete[(0x13b6+4025-0x233d)]={
+(0x1c9a+2317-0x25a7)};CHAR defaultStore[(0x1435+1618-0x1a55)]={
+(0x2469+450-0x262b)};sc_cfg_get(NV_REPORT_ENABLE,reportEnable,sizeof(
+reportEnable));sc_cfg_get(NV_SMS_LOCATION_SET,smsLocation,sizeof(smsLocation));
+sc_cfg_get(NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));sc_cfg_get(
NV_OUTDATE_DELETE,outdateDelete,sizeof(outdateDelete));sc_cfg_get(
-NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if((0x2498+83-0x24eb)==
-strcmp(reportEnable,"\x31")){sts_flag=(0xb4a+525-0xd56);}g_zUfiSms_CurSmsPara.
-status_report_on=sts_flag;if((0x1741+869-0x1aa6)==strcmp(smsLocation,"\x4d\x45")
-){mem_store_flag=(0xe92+2745-0x194b);}else{mem_store_flag=(0x7d+1959-0x823);}
-g_zUfiSms_CurSmsPara.mem_store=(unsigned int)((0x85+7779-0x1ee8)==mem_store_flag
-?WMS_STORAGE_TYPE_NV_V01:WMS_STORAGE_TYPE_UIM_V01);sc_cfg_get(NV_SMS_VP,
-Temp_sms_vp,sizeof(Temp_sms_vp));tp_validity_period=(0xc70+3571-0x1964);if(
-(0x43d+6785-0x1ebe)==strncmp(Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",
-(0x1cc+1319-0x6ec))){tp_validity_period=(0x47b+8995-0x269f);}if(
-(0x42a+1794-0xb2c)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x5f\x64\x61\x79",
-(0x470+1120-0x8c9))){tp_validity_period=(0x1304+729-0x1536);}if(
-(0xeb7+2126-0x1705)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x77\x65\x65\x6b",
-(0x1c5f+591-0x1ea7))){tp_validity_period=(0x4bc+8646-0x25d5);}if(
-(0xfd0+3735-0x1e67)==strncmp(Temp_sms_vp,"\x74\x77\x65\x6c\x76\x65\x68",
-(0x223b+101-0x2299))){tp_validity_period=(0x108a+5377-0x24fc);}
+NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if((0x16ec+408-0x1884)==
+strcmp(reportEnable,"\x31")){sts_flag=(0x187a+1472-0x1e39);}g_zUfiSms_CurSmsPara
+.status_report_on=sts_flag;if((0x865+7754-0x26af)==strcmp(smsLocation,"\x4d\x45"
+)){mem_store_flag=(0x46c+1027-0x86f);}else{mem_store_flag=(0x1416+2872-0x1f4d);}
+g_zUfiSms_CurSmsPara.mem_store=(unsigned int)((0x1bb8+2881-0x26f9)==
+mem_store_flag?WMS_STORAGE_TYPE_NV_V01:WMS_STORAGE_TYPE_UIM_V01);sc_cfg_get(
+NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));tp_validity_period=(0x855+2007-0xf2d)
+;if((0x3cd+3735-0x1264)==strncmp(Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",
+(0x2f2+4993-0x166c))){tp_validity_period=(0x363+525-0x471);}if(
+(0xcea+4882-0x1ffc)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x5f\x64\x61\x79",
+(0xd66+3935-0x1cbe))){tp_validity_period=(0x1bb+3371-0xe3f);}if(
+(0x1f97+1707-0x2642)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x77\x65\x65\x6b",
+(0xc8a+5289-0x212c))){tp_validity_period=(0xf88+3553-0x1cbc);}if(
+(0xe52+4668-0x208e)==strncmp(Temp_sms_vp,"\x74\x77\x65\x6c\x76\x65\x68",
+(0x4ed+5539-0x1a89))){tp_validity_period=(0x1b2c+199-0x1b64);}
g_zUfiSms_CurSmsPara.tp_validity_period=tp_validity_period;if(
-(0x677+5206-0x1acd)==strcmp(sendfailRetry,"\x31")){g_zUfiSms_CurSmsPara.
-sendfail_retry_on=(0x1566+2904-0x20bd);}else{g_zUfiSms_CurSmsPara.
-sendfail_retry_on=(0x1+6992-0x1b51);}if((0x101a+2929-0x1b8b)==strcmp(
-outdateDelete,"\x31")){g_zUfiSms_CurSmsPara.outdate_delete_on=
-(0x7e0+3107-0x1402);}else{g_zUfiSms_CurSmsPara.outdate_delete_on=
-(0x1f56+1612-0x25a2);}if((0x1db3+1592-0x23eb)==strcmp(defaultStore,
-"\x73\x69\x6d")){strncpy(g_zUfiSms_CurSmsPara.default_store,"\x73\x69\x6d",
-sizeof(g_zUfiSms_CurSmsPara.default_store)-(0x6f3+4273-0x17a3));}else{strncpy(
-g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(g_zUfiSms_CurSmsPara.
-default_store)-(0x186f+1846-0x1fa4));}}void zUfiSms_GetDefaultPara(void){memset(
-&g_zUfiSms_CurSmsPara,(0x2175+458-0x233f),sizeof(T_zUfiSms_ParaInfo));
-g_zUfiSms_CurSmsPara.status_report_on=(0x23d7+696-0x268f);g_zUfiSms_CurSmsPara.
+(0x3ba+8147-0x238d)==strcmp(sendfailRetry,"\x31")){g_zUfiSms_CurSmsPara.
+sendfail_retry_on=(0x1bf+1422-0x74c);}else{g_zUfiSms_CurSmsPara.
+sendfail_retry_on=(0x19f2+54-0x1a28);}if((0x21+1407-0x5a0)==strcmp(outdateDelete
+,"\x31")){g_zUfiSms_CurSmsPara.outdate_delete_on=(0x742+3609-0x155a);}else{
+g_zUfiSms_CurSmsPara.outdate_delete_on=(0x957+4499-0x1aea);}if(
+(0x28f+3651-0x10d2)==strcmp(defaultStore,"\x73\x69\x6d")){strncpy(
+g_zUfiSms_CurSmsPara.default_store,"\x73\x69\x6d",sizeof(g_zUfiSms_CurSmsPara.
+default_store)-(0x486+908-0x811));}else{strncpy(g_zUfiSms_CurSmsPara.
+default_store,"\x6e\x76",sizeof(g_zUfiSms_CurSmsPara.default_store)-
+(0x11ef+648-0x1476));}}void zUfiSms_GetDefaultPara(void){memset(&
+g_zUfiSms_CurSmsPara,(0x367+1940-0xafb),sizeof(T_zUfiSms_ParaInfo));
+g_zUfiSms_CurSmsPara.status_report_on=(0x1181+3663-0x1fd0);g_zUfiSms_CurSmsPara.
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
-=(0xb71+4540-0x1d2d);g_zUfiSms_CurSmsPara.outdate_delete_on=(0x9a+940-0x446);
-strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
-g_zUfiSms_CurSmsPara.default_store)-(0xddc+1530-0x13d5));}
-#if (0x1620+3427-0x2383)
+=(0x13cb+4589-0x25b8);g_zUfiSms_CurSmsPara.outdate_delete_on=(0x3f0+4587-0x15db)
+;strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
+g_zUfiSms_CurSmsPara.default_store)-(0x564+244-0x657));}
+#if (0x6b2+828-0x9ee)
T_zUfiSms_CmdStatus zUfiSms_SetParameters(T_zUfiSms_CmdMsgBuff*ptSmsBuffer){
T_zUfiSms_ParaInfo*ptSmsParameter=NULL;T_zUfiSms_ParaInfo tNewSmsParameter={
-(0x184a+2842-0x2364)};if(NULL==ptSmsBuffer){return WMS_CMD_FAILED;}
+(0x1269+5092-0x264d)};if(NULL==ptSmsBuffer){return WMS_CMD_FAILED;}
ptSmsParameter=(T_zUfiSms_ParaInfo*)(&(ptSmsBuffer->cmd_info.set_sms_para));
memcpy((void*)&tNewSmsParameter,(void*)ptSmsParameter,sizeof(T_zUfiSms_ParaInfo)
);
@@ -137,28 +137,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)!=(0x2e4+5739-0x194f)){if(ZUFI_SMS_FAILURE==
+if(strlen(ptSmsParameter->sca)!=(0xe19+5132-0x2225)){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=(0x3c0+2196-0xc54);if(ZUFI_SUCC!=
+int zUfiSms_LoadSmsPara(){int count=(0x16ef+3561-0x24d8);if(ZUFI_SUCC!=
zUfiSms_IsDbEmpty(ZTE_WMS_DB_PARAMETER_TABLE,&count)){return ZUFI_FAIL;}if(count
-==(0xf06+5899-0x2611)){zUfiSms_GetDefaultCfgPara();if((0x265+9110-0x25fb)!=
+==(0x2e0+1086-0x71e)){zUfiSms_GetDefaultCfgPara();if((0x1937+2901-0x248c)!=
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((0x11bb+549-0x13e0)!=zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){
+();if((0xfe9+4531-0x219c)!=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=(0x342+5426-0x1874);if((ZTE_WMS_MEMORY_SIM==mem_store)||(
+int total_count=(0x154c+3640-0x2384);if((ZTE_WMS_MEMORY_SIM==mem_store)||(
ZTE_WMS_MEMORY_MAX==mem_store)){if(ZUFI_FAIL==zUfiSms_GetTotalCount(
ZTE_WMS_DB_SIM_TABLE,&total_count)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x3a\x67\x65\x74\x20\x74\x61\x62\x6c\x65\x20\x74\x6f\x74\x61\x6c\x20\x63\x6f\x75\x6e\x74\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
@@ -175,13 +175,13 @@
,total_count);if(total_count>=(int)g_zUfiSms_StoreCapablity[
WMS_STORAGE_TYPE_NV_V01]){g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]=TRUE;}
else{g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]=FALSE;}}return ZUFI_SUCC;}
-int zUfiSms_SetStorePara(char*mem_store){if((0x1b3f+89-0x1b98)==strcmp(mem_store
-,"\x53\x4d")){g_zUfiSms_CurSmsPara.mem_store=(unsigned int)
+int zUfiSms_SetStorePara(char*mem_store){if((0x1077+778-0x1381)==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(
-(0xe36+529-0x1047)==strcmp(mem_store,"\x4d\x45")){g_zUfiSms_CurSmsPara.mem_store
+(0x355+2666-0xdbf)==strcmp(mem_store,"\x4d\x45")){g_zUfiSms_CurSmsPara.mem_store
=(unsigned int)WMS_STORAGE_TYPE_NV_V01;(void)sc_cfg_set(NV_SMS_LOCATION_SET,
-"\x31");}else if((0xcc4+4229-0x1d49)==strcmp(mem_store,"\x53\x52")){
-g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0xbab+1310-0x10c7);(void)
+"\x31");}else if((0x9c4+355-0xb27)==strcmp(mem_store,"\x53\x52")){
+g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0x2ff+5555-0x18b0);(void)
sc_cfg_set(NV_SMS_LOCATION_SET,"\x32");}else{g_zUfiSms_CurSmsPara.mem_store=(
unsigned int)WMS_STORAGE_TYPE_NONE_V01;(void)sc_cfg_set(NV_SMS_LOCATION_SET,
"\x2d\x31");}if(ZUFI_FAIL==zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){
@@ -189,41 +189,41 @@
"\x63\x61\x6e\x20\x6e\x6f\x74\x20\x73\x65\x74\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x2e" "\n"
);return ZUFI_FAIL;}return ZUFI_SUCC;}int zUfiSms_SetScaPara(char*sca){strncpy(
g_zUfiSms_CurSmsPara.sca,sca,sizeof(g_zUfiSms_CurSmsPara.sca)-
-(0x30b+3783-0x11d1));if(ZUFI_FAIL==zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara
-)){at_print(LOG_ERR,
+(0x1a84+3208-0x270b));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==(0x77f+6849-0x223f)){g_zUfiSms_Dcs=DCS_ASC;
-g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x56d+1082-0x9a5)){
+char cDcs){if(cDcs==(0x7d9+6467-0x211b)){g_zUfiSms_Dcs=DCS_ASC;
+g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x1e63+341-0x1fb6)){
g_zUfiSms_Dcs=DCS_USC;g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==
-(0x15f2+2540-0x1fdb)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;
-}else if(cDcs==(0x4c+1705-0x6f0)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
+(0x1434+2550-0x1e27)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;
+}else if(cDcs==(0x3b5+8142-0x237e)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
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=(0x305+2913-0xe66);i<ptGroupSms->
-total_receiver;i++){strncpy(ptGroupSms->receivers[i],ptSendMsg->dest_num[i],
+total_receiver=ptSendMsg->receiver_count;for(i=(0x1f59+123-0x1fd4);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=(0x15a0+2866-0x20d2);
+,i,ptGroupSms->receivers[i]);}ptGroupSms->current_receiver=(0x9df+2380-0x132b);
return ZUFI_SUCC;}int zUfiSms_FillConcatSms(T_zUfiSms_SendReq*pSendSrcMsg,
-T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0xad3+2162-0x1345);int
-iUnitlen=(0x1bf1+2572-0x25fd);int iSegNo=(0x3c8+7240-0x2010);unsigned char*
+T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0x15a5+3267-0x2268);int
+iUnitlen=(0x5e5+6603-0x1fb0);int iSegNo=(0x38c+780-0x698);unsigned char*
pSmsConverted=NULL;unsigned char acConvertContent[
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*
-(0x1664+3881-0x2589)+(0xf39+3993-0x1ece)]={(0x54a+1762-0xc2c)};unsigned char
-acTmpContent[ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*
-(0x1f0f+1628-0x2567)+(0x874+7504-0x25c0)]={(0xd19+4559-0x1ee8)};int iTimeZone=
-(0x241b+629-0x2690);int tmp_i=(0x1d90+1421-0x231d);if(NULL==pSendSrcMsg||NULL==
-pDestConcatMsg){return-(0x10ff+4708-0x2362);}iTotalLen=pSendSrcMsg->msg_len;if(
-ZUFI_FAIL==zUfiSms_GetSmsContent(acTmpContent,sizeof(acTmpContent))){printf(
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*(0x5eb+5080-0x19bf)
++(0x199d+387-0x1b1c)]={(0x55f+4333-0x164c)};unsigned char acTmpContent[
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*(0x19bf+434-0x1b6d)
++(0x1c54+2286-0x253e)]={(0xe90+955-0x124b)};int iTimeZone=(0x10d6+2313-0x19df);
+int tmp_i=(0xaf3+3740-0x198f);if(NULL==pSendSrcMsg||NULL==pDestConcatMsg){return
+-(0x6ad+5597-0x1c89);}iTotalLen=pSendSrcMsg->msg_len;if(ZUFI_FAIL==
+zUfiSms_GetSmsContent(acTmpContent,sizeof(acTmpContent))){printf(
"\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-(0xa5b+1688-0x10f2);}printf(
+);return-(0x24a1+551-0x26c7);}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,(0x1921+1044-0x1d35),sizeof(acTmpContent));if
-(DCS_USC==g_zUfiSms_Dcs){pSmsConverted=acConvertContent;}else{if(
+acTmpContent));memset(acTmpContent,(0x7f5+7906-0x26d7),sizeof(acTmpContent));if(
+DCS_USC==g_zUfiSms_Dcs){pSmsConverted=acConvertContent;}else{if(
NOT_DEFINE_LANGUAGE==g_zUfiSms_Language){iTotalLen=
zUfiSms_ConvertAsciiToGsmDefault(acConvertContent,acTmpContent,pSendSrcMsg->
msg_len);}else if(DCS_GSM7_SPANISH==g_zUfiSms_Language){iTotalLen=
@@ -232,97 +232,96 @@
zUfiSms_ConvertUcs2ToPortuguese(acConvertContent,acTmpContent,pSendSrcMsg->
msg_len);}else{iTotalLen=zUfiSms_ConvertUcs2ToGsmDefault(acConvertContent,
acTmpContent,pSendSrcMsg->msg_len);}pSendSrcMsg->msg_len=iTotalLen;pSmsConverted
-=acTmpContent;}if(iTotalLen>(sizeof(acConvertContent)-(0x1cab+2356-0x25de))){
-iTotalLen=sizeof(acConvertContent)-(0x1923+2377-0x226b);}pDestConcatMsg->sms_len
-=iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
-DCS_PORTUGUESE&&iTotalLen>(0x505+4620-0x1676))||((g_zUfiSms_Dcs==DCS_USC)&&
+=acTmpContent;}if(iTotalLen>(sizeof(acConvertContent)-(0x832+2096-0x1061))){
+iTotalLen=sizeof(acConvertContent)-(0x106c+476-0x1247);}pDestConcatMsg->sms_len=
+iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
+DCS_PORTUGUESE&&iTotalLen>(0x17c+6851-0x1ba4))||((g_zUfiSms_Dcs==DCS_USC)&&
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*
-(0x24dc+537-0x26f3);}else{if(g_zUfiSms_Language==NOT_DEFINE_LANGUAGE||
+(0x50c+8191-0x2509);}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>
-(0xe4a+19-0xe5d)&&iSegNo<ZTE_WMS_CONCAT_SMS_COUNT_MAX){memcpy(pDestConcatMsg->
-msg_contents[iSegNo],pSmsConverted,iUnitlen);iTotalLen-=iUnitlen;pSmsConverted+=
-iUnitlen;iSegNo++;}pDestConcatMsg->total_msg=iSegNo;}else{iUnitlen=iTotalLen;
-pDestConcatMsg->total_msg=(0x815+3014-0x13da);memcpy(pDestConcatMsg->
-msg_contents[(0x119f+2423-0x1b16)],pSmsConverted,iTotalLen);printf(
+(0x117c+2601-0x1ba5)&&iSegNo<ZTE_WMS_CONCAT_SMS_COUNT_MAX){memcpy(pDestConcatMsg
+->msg_contents[iSegNo],pSmsConverted,iUnitlen);iTotalLen-=iUnitlen;pSmsConverted
++=iUnitlen;iSegNo++;}pDestConcatMsg->total_msg=iSegNo;}else{iUnitlen=iTotalLen;
+pDestConcatMsg->total_msg=(0x591+939-0x93b);memcpy(pDestConcatMsg->msg_contents[
+(0x165f+2281-0x1f48)],pSmsConverted,iTotalLen);printf(
"\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[(0xce8+1396-0x125c)]);}
+,iUnitlen,pDestConcatMsg->msg_contents[(0x1384+2154-0x1bee)]);}
g_zUfiSms_ConcatTotalNum=pDestConcatMsg->total_msg;pDestConcatMsg->
-current_sending=(0x199a+2177-0x221b);memcpy(&(pDestConcatMsg->date),&(
-pSendSrcMsg->date),sizeof(T_zUfiSms_Date));tmp_i=atoi(pDestConcatMsg->date.
-timezone);if(tmp_i<INT_MIN+(0x16d9+2084-0x1efc)||tmp_i>INT_MAX-
-(0x749+6028-0x1ed4)){printf(
+current_sending=(0xe85+4652-0x20b1);memcpy(&(pDestConcatMsg->date),&(pSendSrcMsg
+->date),sizeof(T_zUfiSms_Date));tmp_i=atoi(pDestConcatMsg->date.timezone);if(
+tmp_i<INT_MIN+(0x1d2b+1863-0x2471)||tmp_i>INT_MAX-(0x4da+1598-0xb17)){printf(
"\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*(0x212+4259-0x12b1);memset(
-pDestConcatMsg->date.timezone,(0xd3d+6212-0x2581),sizeof(pDestConcatMsg->date.
-timezone));if(iTimeZone>(0x1e22+6-0x1e28)){snprintf(pDestConcatMsg->date.
+,tmp_i);return ZUFI_FAIL;}iTimeZone=tmp_i*(0x11dc+1498-0x17b2);memset(
+pDestConcatMsg->date.timezone,(0x1326+4605-0x2523),sizeof(pDestConcatMsg->date.
+timezone));if(iTimeZone>(0x1db5+867-0x2118)){snprintf(pDestConcatMsg->date.
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=
-(0x31f+931-0x6c2);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
-user_data_header_present=TRUE;if((0x1604+858-0x195e)==ptConcatSms->
+(0x2449+475-0x2624);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
+user_data_header_present=TRUE;if((0x1838+3719-0x26bf)==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+(0x37a+2288-0xc69);ptSubmit->user_data.
+seq_num=ptConcatSms->current_sending+(0x1d8a+2154-0x25f3);ptSubmit->user_data.
headers[iHeaderNum].u.concat_8.msg_ref=g_zUfiSms_ConcatSmsReference%
-(0x170b+366-0x177a);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
-(0x14ac+1889-0x1c0c);ptDbSaveData->concat_info[(0x3e4+4152-0x141c)]=
+(0x118b+4041-0x2055);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
+(0x1aba+1963-0x2264);ptDbSaveData->concat_info[(0x12c8+2164-0x1b3c)]=
g_zUfiSms_ConcatSmsReference;}int zUfiSms_MakeFinalCmgsBuf(){SMS_PARAM tSmsData;
-int iPduLength=(0xe6a+3225-0x1b03);int nSmscLength=(0x1663+777-0x196c);char
-Tempstrr[(0xc38+3184-0x18a6)]={(0x1354+2070-0x1b6a)};char Temp_sms_vp[
-(0x10e7+2102-0x1915)]={(0xae6+6287-0x2375)};char tmpBuf1[(0x499+1345-0x9d7)]={
-(0x259+1262-0x747)};char tmpBuf2[(0x17c7+3496-0x2569)]={(0x514+4337-0x1605)};
-CHAR smsCenter[(0x82f+2159-0x106c)]={(0x565+7475-0x2298)};memset(&tSmsData,
-(0x1515+3544-0x22ed),sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,
-(0x284+9172-0x2658),sizeof(T_zSms_SendSmsReq));if(CODE_GSM7==
-g_zUfiSms_SendingSms.TP_DCS){int i=(0x30a+6460-0x1c46);for(;i<
-g_zUfiSms_SendingSms.TP_UDLength;i++){tSmsData.TP_UD[i]=g_zUfiSms_SendingSms.
-TP_UD[i];}tSmsData.TP_UDLength=g_zUfiSms_SendingSms.TP_UDLength;}else{snprintf(
-tSmsData.TP_UD,sizeof(tSmsData.TP_UD),"\x25\x73",g_zUfiSms_SendingSms.TP_UD);
-tSmsData.TP_UDLength=strlen(tSmsData.TP_UD);}sc_cfg_get(NV_SMS_CENTER_NUM,
-smsCenter,sizeof(smsCenter));snprintf(tSmsData.SCA,sizeof(tSmsData.SCA),
-"\x25\x73",smsCenter);snprintf(tSmsData.TPA,sizeof(tSmsData.TPA),"\x25\x73",
-g_zUfiSms_SendingSms.TPA);tSmsData.TP_DCS=g_zUfiSms_SendingSms.TP_DCS;sc_cfg_get
-(NV_REPORT_ENABLE,Tempstrr,sizeof(Tempstrr));if(((0x1328+134-0x13ae)==strncmp(
-Tempstrr,"\x31",(0x37f+7147-0x1f69)))&&(g_zUfiSms_ConcatSms.current_sending==
-g_zUfiSms_ConcatSms.total_msg-(0xe68+5346-0x2349))){tSmsData.TP_SRR=
-(0x3b9+6283-0x1c43);}else{tSmsData.TP_SRR=(0x167+3464-0xeef);}tSmsData.TP_UDHI=
-g_zUfiSms_SendingSms.TP_UDHI;tSmsData.TP_VP=(0xad3+232-0xabc);sc_cfg_get(
-NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));if((0x1a6+4329-0x128f)==strncmp(
-Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",(0x3e3+985-0x7b5))){tSmsData.TP_VP=
-(0x218+7296-0x1d99);}else if((0xac+5183-0x14eb)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x5f\x64\x61\x79",(0x135d+1761-0x1a37))){tSmsData.TP_VP=
-(0x9f1+6809-0x23e3);}else if((0x115c+3976-0x20e4)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x77\x65\x65\x6b",(0x1cdb+1036-0x20e0))){tSmsData.TP_VP=
-(0x94d+1267-0xd93);}else if((0xa72+3857-0x1983)==strncmp(Temp_sms_vp,
-"\x74\x77\x65\x6c\x76\x65\x68",(0x110d+1755-0x17e1))){tSmsData.TP_VP=
-(0x504+1826-0xb97);}tSmsData.TP_PID=(0x1449+4380-0x2565);
-#if (0x151c+126-0x1599)
+int iPduLength=(0xbf+7945-0x1fc8);int nSmscLength=(0x9c1+84-0xa15);char Tempstrr
+[(0x1789+820-0x1abb)]={(0x1dbb+486-0x1fa1)};char Temp_sms_vp[(0x14b+5624-0x173b)
+]={(0x23fc+538-0x2616)};char tmpBuf1[(0xe30+3775-0x1cec)]={(0x1619+2631-0x2060)}
+;char tmpBuf2[(0x146+1974-0x8f6)]={(0x125f+4250-0x22f9)};CHAR smsCenter[
+(0x1216+55-0x121b)]={(0x1ce4+1069-0x2111)};memset(&tSmsData,(0xc4+771-0x3c7),
+sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,(0x4dc+4820-0x17b0),sizeof(
+T_zSms_SendSmsReq));if(CODE_GSM7==g_zUfiSms_SendingSms.TP_DCS){int i=
+(0x1831+789-0x1b46);for(;i<g_zUfiSms_SendingSms.TP_UDLength;i++){tSmsData.TP_UD[
+i]=g_zUfiSms_SendingSms.TP_UD[i];}tSmsData.TP_UDLength=g_zUfiSms_SendingSms.
+TP_UDLength;}else{snprintf(tSmsData.TP_UD,sizeof(tSmsData.TP_UD),"\x25\x73",
+g_zUfiSms_SendingSms.TP_UD);tSmsData.TP_UDLength=strlen(tSmsData.TP_UD);}
+sc_cfg_get(NV_SMS_CENTER_NUM,smsCenter,sizeof(smsCenter));snprintf(tSmsData.SCA,
+sizeof(tSmsData.SCA),"\x25\x73",smsCenter);snprintf(tSmsData.TPA,sizeof(tSmsData
+.TPA),"\x25\x73",g_zUfiSms_SendingSms.TPA);tSmsData.TP_DCS=g_zUfiSms_SendingSms.
+TP_DCS;sc_cfg_get(NV_REPORT_ENABLE,Tempstrr,sizeof(Tempstrr));if((
+(0x1209+3600-0x2019)==strncmp(Tempstrr,"\x31",(0x721+6058-0x1eca)))&&(
+g_zUfiSms_ConcatSms.current_sending==g_zUfiSms_ConcatSms.total_msg-
+(0x963+4906-0x1c8c))){tSmsData.TP_SRR=(0x57f+2950-0x1104);}else{tSmsData.TP_SRR=
+(0x67f+4807-0x1946);}tSmsData.TP_UDHI=g_zUfiSms_SendingSms.TP_UDHI;tSmsData.
+TP_VP=(0x4a3+4469-0x1519);sc_cfg_get(NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));
+if((0x36f+7359-0x202e)==strncmp(Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",
+(0x2ca+1715-0x976))){tSmsData.TP_VP=(0x10d+9726-0x260c);}else if(
+(0x14d5+2027-0x1cc0)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x5f\x64\x61\x79",
+(0xd07+1160-0x1188))){tSmsData.TP_VP=(0x1b17+7-0x1a77);}else if(
+(0x146+7684-0x1f4a)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x77\x65\x65\x6b",
+(0x61b+4937-0x195d))){tSmsData.TP_VP=(0x9d6+6038-0x20bf);}else if(
+(0x1691+182-0x1747)==strncmp(Temp_sms_vp,"\x74\x77\x65\x6c\x76\x65\x68",
+(0x1b2+3025-0xd7c))){tSmsData.TP_VP=(0x53f+931-0x853);}tSmsData.TP_PID=
+(0xfc9+2700-0x1a55);
+#if (0x34d+4185-0x13a5)
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 (0x14ab+1977-0x1c63)
+#if (0x1a84+2731-0x252e)
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,(0x6af+6924-0x21b9));
+(void)String2Bytes(g_zUfiSms_FinalCmgsBuf.pdu,tmpBuf1,(0xbf0+4511-0x1d8d));
Bytes2String(tmpBuf1,tmpBuf2,strlen(tmpBuf1));nSmscLength=atoi(tmpBuf2);if(
-nSmscLength<(0x647+3276-0x1313)||nSmscLength>INT_MAX-(0x6a7+7417-0x239f)){
+nSmscLength<(0x1044+2355-0x1977)||nSmscLength>INT_MAX-(0x2cc+4066-0x12ad)){
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=(0x2e9+8276-0x233d);;}nSmscLength++;
-g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0x1fa5+899-0x2326)-nSmscLength;
-#if (0x3b8+2939-0xf32)
+,nSmscLength);nSmscLength=(0x1d16+2201-0x25af);;}nSmscLength++;
+g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0x149+6588-0x1b03)-nSmscLength;
+#if (0xe4b+3485-0x1be7)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x4d\x61\x6b\x65\x46\x69\x6e\x61\x6c\x43\x6d\x67\x73\x42\x75\x66\x20\x6d\x61\x6b\x65\x20\x65\x6e\x64\x20\x70\x64\x75\x20\x64\x61\x74\x61" "\n"
);printf(
@@ -332,51 +331,51 @@
return ZUFI_SUCC;}int zUfiSms_FillSubmitTpdu(T_zUfiSms_ConcatInfo*ptConcatSms,
T_zUfiSms_GroupInfo*ptGroupSms,int iSmsLen,T_zUfiSms_SubmitTpdu*ptSubmit,
T_zUfiSms_DbStoreData*ptDbSaveData){if(NULL==ptSubmit||NULL==ptConcatSms||NULL==
-ptGroupSms||NULL==ptDbSaveData){return-(0x677+3885-0x15a3);}ptSubmit->
+ptGroupSms||NULL==ptDbSaveData){return-(0x3fd+1087-0x83b);}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(((0x16a9+3479-0x243f)<ptConcatSms->
-total_msg)&&(ptConcatSms->current_sending+(0x70d+7364-0x23d0)<ptConcatSms->
-total_msg)){ptSubmit->status_report_enabled=(0xb8f+279-0xca6);}ptSubmit->
+g_zUfiSms_CurSmsPara.status_report_on;if(((0x8cf+6196-0x2102)<ptConcatSms->
+total_msg)&&(ptConcatSms->current_sending+(0xe8a+612-0x10ed)<ptConcatSms->
+total_msg)){ptSubmit->status_report_enabled=(0x1768+1640-0x1dd0);}ptSubmit->
message_reference=g_zUfiSms_MsgRefer;ptSubmit->pid=WMS_PID_DEFAULT;ptSubmit->dcs
-.msg_class=(wms_message_class_e_type)(0x7a3+6016-0x1f1f);ptSubmit->dcs.
-is_compressed=(0x1254+3358-0x1f72);ptSubmit->dcs.alphabet=(g_zUfiSms_Dcs==
-DCS_ASC)?WMS_GW_ALPHABET_7_BIT_DEFAULT:WMS_GW_ALPHABET_UCS2;ptSubmit->validity.
-format=WMS_GW_VALIDITY_RELATIVE;zUfiSms_DecodeRelativeTime(g_zUfiSms_CurSmsPara.
+.msg_class=(wms_message_class_e_type)(0x111b+2778-0x1bf1);ptSubmit->dcs.
+is_compressed=(0x3+596-0x257);ptSubmit->dcs.alphabet=(g_zUfiSms_Dcs==DCS_ASC)?
+WMS_GW_ALPHABET_7_BIT_DEFAULT:WMS_GW_ALPHABET_UCS2;ptSubmit->validity.format=
+WMS_GW_VALIDITY_RELATIVE;zUfiSms_DecodeRelativeTime(g_zUfiSms_CurSmsPara.
tp_validity_period,&ptSubmit->validity.u.time);ptSubmit->user_data.num_headers=
-(0x13b+614-0x3a1);if(ptConcatSms->total_msg>(0xfe2+5498-0x255b)){
+(0xfe4+4336-0x20d4);if(ptConcatSms->total_msg>(0x11c0+3495-0x1f66)){
zUfiSms_FillDateheader(ptSubmit,ptConcatSms,ptDbSaveData);ptDbSaveData->
-concat_info[(0x1bc6+1911-0x233b)]=ptConcatSms->current_sending+
-(0xbff+2190-0x148c);ptDbSaveData->concat_info[(0x19e0+1336-0x1f17)]=ptConcatSms
-->total_msg;}if(g_zUfiSms_Language==DCS_PORTUGUESE){UINT8 i=ptSubmit->user_data.
-num_headers;ptSubmit->user_data_header_present=TRUE;ptSubmit->user_data.headers[
-i].header_id=WMS_UDH_NAT_LANG_SS;ptSubmit->user_data.headers[ptSubmit->user_data
-.num_headers].u.nat_lang_ss.nat_lang_id=WMS_UDH_NAT_LANG_PORTUGUESE;ptSubmit->
-user_data.num_headers++;g_zUfiSms_IsLanguageShift=WMS_UDH_NAT_LANG_SS;}ptSubmit
-->user_data.sm_len=iSmsLen;memcpy(ptSubmit->user_data.sm_data,ptConcatSms->
-msg_contents[ptConcatSms->current_sending],iSmsLen);if(ptGroupSms->receivers[
-ptGroupSms->current_receiver][(0x1cac+1730-0x236e)]==((char)(0xdd0+6140-0x25a1))
-){(void)zUfiSms_CharToInt(ptGroupSms->receivers[ptGroupSms->current_receiver]+
-(0xc2b+2947-0x17ad),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])-
-(0x19a+3356-0xeb5),ptSubmit->address.digits);ptSubmit->address.number_type=
+concat_info[(0x3a+7238-0x1c7e)]=ptConcatSms->current_sending+(0xbcc+6107-0x23a6)
+;ptDbSaveData->concat_info[(0x1e2a+894-0x21a7)]=ptConcatSms->total_msg;}if(
+g_zUfiSms_Language==DCS_PORTUGUESE){UINT8 i=ptSubmit->user_data.num_headers;
+ptSubmit->user_data_header_present=TRUE;ptSubmit->user_data.headers[i].header_id
+=WMS_UDH_NAT_LANG_SS;ptSubmit->user_data.headers[ptSubmit->user_data.num_headers
+].u.nat_lang_ss.nat_lang_id=WMS_UDH_NAT_LANG_PORTUGUESE;ptSubmit->user_data.
+num_headers++;g_zUfiSms_IsLanguageShift=WMS_UDH_NAT_LANG_SS;}ptSubmit->user_data
+.sm_len=iSmsLen;memcpy(ptSubmit->user_data.sm_data,ptConcatSms->msg_contents[
+ptConcatSms->current_sending],iSmsLen);if(ptGroupSms->receivers[ptGroupSms->
+current_receiver][(0xf01+2082-0x1723)]==((char)(0x12cd+1802-0x19ac))){(void)
+zUfiSms_CharToInt(ptGroupSms->receivers[ptGroupSms->current_receiver]+
+(0x6+2614-0xa3b),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])-
+(0xdf7+5592-0x23ce),ptSubmit->address.digits);ptSubmit->address.number_type=
WMS_NUMBER_INTERNATIONAL;ptSubmit->address.number_of_digits=strlen(ptGroupSms->
-receivers[ptGroupSms->current_receiver])-(0xdf+8504-0x2216);}else if(ptGroupSms
-->receivers[ptGroupSms->current_receiver][(0x620+2685-0x109d)]==
-((char)(0x44b+422-0x5c1))&&ptGroupSms->receivers[ptGroupSms->current_receiver][
-(0x4b8+3773-0x1374)]==((char)(0x80a+3755-0x1685))){(void)zUfiSms_CharToInt(
-ptGroupSms->receivers[ptGroupSms->current_receiver]+(0x121+2736-0xbcf),strlen(
-ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x179f+1086-0x1bdb),
+receivers[ptGroupSms->current_receiver])-(0x91f+5863-0x2005);}else if(ptGroupSms
+->receivers[ptGroupSms->current_receiver][(0x34d+1080-0x785)]==
+((char)(0x1f5f+1185-0x23d0))&&ptGroupSms->receivers[ptGroupSms->current_receiver
+][(0x2c2+6398-0x1bbf)]==((char)(0x1d8+3535-0xf77))){(void)zUfiSms_CharToInt(
+ptGroupSms->receivers[ptGroupSms->current_receiver]+(0xfa+7136-0x1cd8),strlen(
+ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x145f+3145-0x20a6),
ptSubmit->address.digits);ptSubmit->address.number_type=WMS_NUMBER_INTERNATIONAL
;ptSubmit->address.number_of_digits=strlen(ptGroupSms->receivers[ptGroupSms->
-current_receiver])-(0x533+2928-0x10a1);}else{(void)zUfiSms_CharToInt(ptGroupSms
+current_receiver])-(0xcc7+4249-0x1d5e);}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)(0xd0a+4794-0x1fc4);ptSubmit->address.
-number_mode=(wms_number_mode_e_type)(0xf42+4171-0x1f8d);ptSubmit->address.
+digit_mode=(wms_digit_mode_e_type)(0x165f+2985-0x2208);ptSubmit->address.
+number_mode=(wms_number_mode_e_type)(0x225f+262-0x2365);ptSubmit->address.
number_plan=WMS_NUMBER_PLAN_TELEPHONY;memset(&g_zUfiSms_SendingSms,
-(0x1044+3341-0x1d51),sizeof(SMS_PARAM));snprintf(g_zUfiSms_SendingSms.TPA,sizeof
+(0x19a3+2738-0x2455),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){
@@ -386,36 +385,36 @@
zUfiSms_FillGlobalTpudUcs2(ptSubmit,ptConcatSms,ptDbSaveData);}(void)
zUfiSms_MakeFinalCmgsBuf();return ZUFI_SUCC;}void zUfiSms_FillSca(
T_zUfiSms_ClientMsg*ptClientMsg){char sca[ZTE_WMS_SCA_LEN_MAX]={
-(0x211+894-0x58f)};int i=(0x549+3831-0x1440);if(NULL==ptClientMsg){return;}
+(0xc83+3390-0x19c1)};int i=(0xebb+1493-0x1490);if(NULL==ptClientMsg){return;}
memcpy((void*)sca,(void*)(g_zUfiSms_CurSmsPara.sca),sizeof(g_zUfiSms_CurSmsPara.
-sca));if(sca[(0x818+5517-0x1da5)]==((char)(0x1560+2051-0x1d38))){ptClientMsg->u.
+sca));if(sca[(0x495+4338-0x1587)]==((char)(0x10b9+2310-0x1994))){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[(0xc3d+4824-0x1f15)]==
-((char)(0x16af+3046-0x226a))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits--;for(i=(0x1785+1836-0x1eb1);i<ptClientMsg->u.gw_message.
-sc_address.number_of_digits;i++){sca[i]=sca[i+(0xfd4+1637-0x1638)];}}else if(sca
-[(0x1e31+927-0x21d0)]==((char)(0x601+568-0x809))&&sca[(0xab6+7038-0x2633)]==
-((char)(0x40b+825-0x714))){ptClientMsg->u.gw_message.sc_address.number_of_digits
--=(0x1098+1566-0x16b4);for(i=(0x9cc+6512-0x233c);i<ptClientMsg->u.gw_message.
-sc_address.number_of_digits;i++){sca[i]=sca[i+(0x1db+7394-0x1ebb)];}}(void)
-zUfiSms_CharToInt(sca,ptClientMsg->u.gw_message.sc_address.number_of_digits,
-ptClientMsg->u.gw_message.sc_address.digits);}void zUfiSms_FillDbSaveData(
-T_zUfiSms_ClientMsg*ptClientMsg,T_zUfiSms_ClientTsData*ptClientData,
-T_zUfiSms_ConcatInfo*ptConcatSms,T_zUfiSms_GroupInfo*ptGroupSms,int iSmsLen,
-T_zUfiSms_DbStoreData*ptDbSaveData){if(NULL==ptClientMsg||NULL==ptClientData||
-NULL==ptConcatSms||NULL==ptGroupSms||NULL==ptDbSaveData){at_print(LOG_ERR,
-"\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73" "\n");return;}
-ptDbSaveData->mem_store=ptClientMsg->msg_hdr.mem_store;ptDbSaveData->index=
+sc_address.number_of_digits=strlen(sca);if(sca[(0x2c2+8149-0x2297)]==
+((char)(0x30b+1460-0x894))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits--;for(i=(0x93f+2429-0x12bc);i<ptClientMsg->u.gw_message.
+sc_address.number_of_digits;i++){sca[i]=sca[i+(0x50+4999-0x13d6)];}}else if(sca[
+(0x1c49+1071-0x2078)]==((char)(0x73+3939-0xfa6))&&sca[(0x1d8d+759-0x2083)]==
+((char)(0x82b+6919-0x2302))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits-=(0x395+4905-0x16bc);for(i=(0x1eb0+238-0x1f9e);i<ptClientMsg->u
+.gw_message.sc_address.number_of_digits;i++){sca[i]=sca[i+(0x7a5+4343-0x189a)];}
+}(void)zUfiSms_CharToInt(sca,ptClientMsg->u.gw_message.sc_address.
+number_of_digits,ptClientMsg->u.gw_message.sc_address.digits);}void
+zUfiSms_FillDbSaveData(T_zUfiSms_ClientMsg*ptClientMsg,T_zUfiSms_ClientTsData*
+ptClientData,T_zUfiSms_ConcatInfo*ptConcatSms,T_zUfiSms_GroupInfo*ptGroupSms,int
+ iSmsLen,T_zUfiSms_DbStoreData*ptDbSaveData){if(NULL==ptClientMsg||NULL==
+ptClientData||NULL==ptConcatSms||NULL==ptGroupSms||NULL==ptDbSaveData){at_print(
+LOG_ERR,"\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73" "\n");return;
+}ptDbSaveData->mem_store=ptClientMsg->msg_hdr.mem_store;ptDbSaveData->index=
ptClientMsg->msg_hdr.index;ptDbSaveData->mode=ptClientMsg->msg_hdr.message_mode;
ptDbSaveData->tag=ptClientMsg->msg_hdr.tag;memset(ptDbSaveData->number,
-(0x154+1048-0x56c),ZTE_WMS_ADDRESS_LEN_MAX+(0x1180+2916-0x1ce3));memcpy(
+(0xd44+4138-0x1d6e),ZTE_WMS_ADDRESS_LEN_MAX+(0x500+3319-0x11f6));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,(0x5e0+2769-0x10b1),sizeof(ptDbSaveData->sms_content));if(
+sms_content,(0x2032+1028-0x2436),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
@@ -426,7 +425,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,(0x1749+475-0x1924),sizeof(
+is_broadcast=FALSE;memset((void*)&tClientTsData,(0x1574+1-0x1575),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
@@ -435,95 +434,94 @@
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=(0x22+1741-0x6ef);pContent=(char*)
-malloc((0x1e92+1762-0x2570)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent==
-NULL){return ZUFI_FAIL;}memset(pContent,(0x708+3780-0x15cc),(0x1094+1494-0x1666)
-*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(WMS_GW_ALPHABET_7_BIT_DEFAULT==
-ptDbSaveData->alphabet){static char data[(0x8ad+1742-0xf77)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x1059+660-0x12ec)]={(0x669+4379-0x1784)};
-memset(data,(0x392+5804-0x1a3e),(0x929+1971-0x10d8)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x1ad+4417-0x12ed));(void)zUfiSms_DecodeContent
-((char*)ptDbSaveData->sms_content,strlen(ptDbSaveData->sms_content),FALSE,data);
-strncpy(pContent,data,(0x9fa+5223-0x1e5d)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-
-(0x1dc7+830-0x2104));}else{strncpy(pContent,ptDbSaveData->sms_content,
-(0x31a+6839-0x1dcd)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x1225+5303-0x26db));
-}ptDbSaveData->tp_dcs=(unsigned char)(0x8+4070-0xfec);if(-(0x32f+2066-0xb40)==
-iSmsId){if(ZUFI_FAIL==zUfiSms_GetTotalCount(pMemStore,&iTotalCount)){free(
-pContent);pContent=NULL;return ZUFI_FAIL;}printf(
+ZUFI_SUCC;char*pContent=NULL;int iTotalCount=(0xaa2+1355-0xfed);pContent=(char*)
+malloc((0xd40+249-0xe35)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent==
+NULL){return ZUFI_FAIL;}memset(pContent,(0x855+3529-0x161e),(0xfba+5806-0x2664)*
+ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(WMS_GW_ALPHABET_7_BIT_DEFAULT==
+ptDbSaveData->alphabet){static char data[(0x20a8+277-0x21b9)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0xaa5+415-0xc43)]={(0x1c46+2074-0x2460)};memset
+(data,(0x2b6+8785-0x2507),(0x7ef+7309-0x2478)*ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+
+(0x874+664-0xb0b));(void)zUfiSms_DecodeContent((char*)ptDbSaveData->sms_content,
+strlen(ptDbSaveData->sms_content),FALSE,data);strncpy(pContent,data,
+(0x16ec+175-0x1797)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x1fbf+665-0x2257));}
+else{strncpy(pContent,ptDbSaveData->sms_content,(0x1385+1142-0x17f7)*
+ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x7d3+685-0xa7f));}ptDbSaveData->tp_dcs=(
+unsigned char)(0x1075+634-0x12ed);if(-(0xf1+7034-0x1c6a)==iSmsId){if(ZUFI_FAIL==
+zUfiSms_GetTotalCount(pMemStore,&iTotalCount)){free(pContent);pContent=NULL;
+return ZUFI_FAIL;}printf(
"\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-(0x178+8869-0x241c);}if(ZUFI_FAIL==zUfiSms_InsertNormalSmsToDb(
+;return-(0xb73+6109-0x234f);}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=(0x14d9+3264-0x2199);for(i=(0x158+6090-0x1922);i<count;i++){if
-(ptDbSaveData->concat_info[(0x2d+1260-0x517)]==i+(0x16ba+1652-0x1d2d)){free(
-out_result[i]);out_result[i]=NULL;break;}}return(0x99+8899-0x235c);}int
+out_result){int i=(0x953+3620-0x1777);for(i=(0xcd9+4833-0x1fba);i<count;i++){if(
+ptDbSaveData->concat_info[(0x875+1066-0xc9d)]==i+(0xc7f+1779-0x1371)){free(
+out_result[i]);out_result[i]=NULL;break;}}return(0x104+9454-0x25f2);}int
zUfiSms_AddNewSmsToConcatData(T_zUfiSms_DbStoreData*ptDbSaveData,char*
pOldContent,char*pFormatNewContent,char*pRealNewContent,T_zUfiSms_DbStoreStr*pac
-,int*pConcatTotalNum,int len){int count=(0x12c1+98-0x1323);char**out_result=NULL
-;char cSegChar=((char)(0x1746+2295-0x2002));int i=(0x273+5188-0x16b7);int
-iTotalSegNum=(0x1959+2522-0x2333);char acContentSeg[(0x2410+532-0x2622)*
-ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX*ZTE_WMS_SMS_COUNT_MAX]={
-(0x1479+1703-0x1b20)};char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==
-pOldContent){return-(0xf55+589-0x11a1);}count=zUfiSms_SplitString(pOldContent,&
-out_result,cSegChar);for(i=(0xd6b+5525-0x2300);i<count;i++){if(ptDbSaveData->
-concat_info[(0x1328+2893-0x1e73)]==i+(0x565+61-0x5a1)){out_result[i]=(char*)
-malloc(sizeof(ptDbSaveData->sms_content));memset(out_result[i],
-(0x574+1407-0xaf3),sizeof(ptDbSaveData->sms_content));if(
-WMS_GW_ALPHABET_7_BIT_DEFAULT==ptDbSaveData->alphabet){isEsc=
-zUfiSms_DecodeContent(ptDbSaveData->sms_content,strlen(ptDbSaveData->sms_content
-),isEsc,out_result[i]);}else{strncpy(out_result[i],ptDbSaveData->sms_content,
-sizeof(ptDbSaveData->sms_content)-(0x11d+1970-0x8ce));}break;}}for(i=
-(0x141b+424-0x15c3);i<count;i++){snprintf(acContentSeg+strlen(acContentSeg),
-sizeof(acContentSeg)-strlen(acContentSeg),"\x25\x73",out_result[i]);strcat(
-pFormatNewContent,out_result[i]);if(i!=count-(0x118f+1468-0x174a)){strcat(
-pFormatNewContent,"\x3b");}}strncpy(pRealNewContent,acContentSeg,len);
+,int*pConcatTotalNum,int len){int count=(0x1243+458-0x140d);char**out_result=
+NULL;char cSegChar=((char)(0x807+6709-0x2201));int i=(0x391+922-0x72b);int
+iTotalSegNum=(0x80d+6431-0x212c);char acContentSeg[(0xa51+3219-0x16e2)*
+ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX*ZTE_WMS_SMS_COUNT_MAX]={(0x227+70-0x26d)};
+char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==pOldContent){return-
+(0xccf+429-0xe7b);}count=zUfiSms_SplitString(pOldContent,&out_result,cSegChar);
+for(i=(0xc6+5612-0x16b2);i<count;i++){if(ptDbSaveData->concat_info[
+(0x1777+857-0x1ace)]==i+(0x940+355-0xaa2)){out_result[i]=(char*)malloc(sizeof(
+ptDbSaveData->sms_content));memset(out_result[i],(0xa65+5416-0x1f8d),sizeof(
+ptDbSaveData->sms_content));if(WMS_GW_ALPHABET_7_BIT_DEFAULT==ptDbSaveData->
+alphabet){isEsc=zUfiSms_DecodeContent(ptDbSaveData->sms_content,strlen(
+ptDbSaveData->sms_content),isEsc,out_result[i]);}else{strncpy(out_result[i],
+ptDbSaveData->sms_content,sizeof(ptDbSaveData->sms_content)-(0x1166+5317-0x262a)
+);}break;}}for(i=(0x28a+7178-0x1e94);i<count;i++){snprintf(acContentSeg+strlen(
+acContentSeg),sizeof(acContentSeg)-strlen(acContentSeg),"\x25\x73",out_result[i]
+);strcat(pFormatNewContent,out_result[i]);if(i!=count-(0x1967+561-0x1b97)){
+strcat(pFormatNewContent,"\x3b");}}strncpy(pRealNewContent,acContentSeg,len);
zUfiSms_ConcatDataFree(ptDbSaveData,count,out_result);free(out_result);
out_result=NULL;count=zUfiSms_SplitString(pac->IndStr,&out_result,cSegChar);for(
-i=(0xb00+5646-0x210e);i<count;i++){if(ptDbSaveData->concat_info[
-(0x4c9+2107-0xd02)]==i+(0x774+5684-0x1da7)){out_result[i]=(char*)malloc(
-SHORT_INT_LEN);memset(out_result[i],(0xf7b+4923-0x22b6),SHORT_INT_LEN);snprintf(
-out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->index);break;}}for(i=
-(0x4c+3887-0xf7b);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd),
+i=(0x6b2+1822-0xdd0);i<count;i++){if(ptDbSaveData->concat_info[
+(0x13dd+3136-0x201b)]==i+(0x767+1170-0xbf8)){out_result[i]=(char*)malloc(
+SHORT_INT_LEN);memset(out_result[i],(0x112a+1271-0x1621),SHORT_INT_LEN);snprintf
+(out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->index);break;}}for(i=
+(0xbb1+5737-0x221a);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd),
sizeof(pac->FormatInd)-strlen(pac->FormatInd),"\x25\x73",out_result[i]);if(i!=
-count-(0x24f+6113-0x1a2f)){snprintf(pac->FormatInd+strlen(pac->FormatInd),sizeof
+count-(0x174d+571-0x1987)){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=(0x7d7+7553-0x2558)
-;i<count;i++){if(ptDbSaveData->concat_info[(0x788+1135-0xbf5)]==i+
-(0xf90+3669-0x1de4)){out_result[i]=(char*)malloc(SHORT_INT_LEN);memset(
-out_result[i],(0x21ad+165-0x2252),SHORT_INT_LEN);snprintf(out_result[i],
-SHORT_INT_LEN,"\x25\x64",ptDbSaveData->concat_info[(0x1c6+4141-0x11f1)]);break;}
-}for(i=(0x198+2959-0xd27);i<count;i++){snprintf(pac->FormatSeq+strlen(pac->
-FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x25\x73",out_result[i
-]);if(i!=count-(0x11c3+3748-0x2066)){snprintf(pac->FormatSeq+strlen(pac->
-FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x3b");}if(
-(0x972+5407-0x1e91)!=strcmp(out_result[i],"")){iTotalSegNum++;}}*pConcatTotalNum
-=iTotalSegNum;zUfiSms_ConcatDataFree(ptDbSaveData,count,out_result);free(
-out_result);out_result=NULL;return(0x1f8d+798-0x22ab);}int
+zUfiSms_SplitString(pac->Seg_Seq,&out_result,cSegChar);for(i=
+(0x1081+2622-0x1abf);i<count;i++){if(ptDbSaveData->concat_info[
+(0x2b2+1634-0x912)]==i+(0x6e1+4927-0x1a1f)){out_result[i]=(char*)malloc(
+SHORT_INT_LEN);memset(out_result[i],(0x60f+5154-0x1a31),SHORT_INT_LEN);snprintf(
+out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->concat_info[
+(0xd4+7463-0x1df9)]);break;}}for(i=(0xfd2+1856-0x1712);i<count;i++){snprintf(pac
+->FormatSeq+strlen(pac->FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq)
+,"\x25\x73",out_result[i]);if(i!=count-(0x54a+6822-0x1fef)){snprintf(pac->
+FormatSeq+strlen(pac->FormatSeq),sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),
+"\x3b");}if((0x44+9599-0x25c3)!=strcmp(out_result[i],"")){iTotalSegNum++;}}*
+pConcatTotalNum=iTotalSegNum;zUfiSms_ConcatDataFree(ptDbSaveData,count,
+out_result);free(out_result);out_result=NULL;return(0x2064+273-0x2175);}int
zUfiSms_UpdateConcatSms(T_zUfiSms_DbStoreData*ptDbSaveData,const char*pStorePos,
-long iSmsId){T_zUfiSms_DbStoreStr ac={(0x1fac+1644-0x2618)};char*pOldContent=
+long iSmsId){T_zUfiSms_DbStoreStr ac={(0x1693+2994-0x2245)};char*pOldContent=
NULL;char*pFormatNewContent=NULL;char*pRealNewContent=NULL;int iTotalNum=
-(0x2319+851-0x266c);int result=ZUFI_SUCC;int spaceLen=(0x8b4+7547-0x262b)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x8fa+4334-0x19e4)
+(0x2378+337-0x24c9);int result=ZUFI_SUCC;int spaceLen=(0x289+2029-0xa72)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x301+4630-0x1513)
;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,(0x1279+2370-0x1bbb),
-spaceLen);memset(pOldContent,(0x2f+5655-0x1646),spaceLen);memset(
-pFormatNewContent,(0x44b+1831-0xb72),spaceLen);(void)zUfiSms_GetConcatInfo(
+pRealNewContent);return ZUFI_FAIL;}memset(pRealNewContent,(0xe0d+1210-0x12c7),
+spaceLen);memset(pOldContent,(0xa35+3204-0x16b9),spaceLen);memset(
+pFormatNewContent,(0xc58+1607-0x129f),spaceLen);(void)zUfiSms_GetConcatInfo(
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(-(0xc83+3313-0x1973)==
+,ac.IndStr,ac.Seg_Seq,ac.FormatInd,ac.FormatSeq);if(-(0x30b+629-0x57f)==
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=
-(0xfdf+2563-0x19e0);if(ZUFI_FAIL==zUfiSms_UpdateConcatSmsToDb(ptDbSaveData,
+(0x10c9+4624-0x22d7);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"
@@ -532,33 +530,33 @@
pFormatNewContent=NULL;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x55\x70\x64\x61\x74\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x20\x73\x75\x63\x63\x65\x73\x73\x2e" "\n"
);return result;}int zUfiSms_InsertConcatSms(T_zUfiSms_DbStoreData*ptDbSaveData,
-const char*pStorePos){T_zUfiSms_DbStoreStr ac={(0xa33+2669-0x14a0)};int
-iSms_TotalCount=(0x6a7+6455-0x1fde);int i=(0xb0b+2755-0x15ce);char acTmpContent[
-(0x1596+4165-0x24db)];int iConcatNum=(0x6c3+6038-0x1e59);char*pFormatConcat=NULL
-;char*pContent=NULL;int spaceLen=(0x722+3102-0x133c)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x3e6+6509-0x1d4f)
+const char*pStorePos){T_zUfiSms_DbStoreStr ac={(0x7f3+5206-0x1c49)};int
+iSms_TotalCount=(0xaf3+229-0xbd8);int i=(0xd02+3267-0x19c5);char acTmpContent[
+(0xbf8+6844-0x25b4)];int iConcatNum=(0x1184+3246-0x1e32);char*pFormatConcat=NULL
+;char*pContent=NULL;int spaceLen=(0x423+2204-0xcbb)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xff7+3065-0x1bec)
;if(NULL==ptDbSaveData||NULL==pStorePos){return ZUFI_FAIL;}printf(
"\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,(0x354+8052-0x22c8),sizeof(acTmpContent));iSms_TotalCount=
-ptDbSaveData->concat_info[(0x101b+2478-0x19c8)];for(i=(0xf03+1626-0x155c);i<
+);memset(acTmpContent,(0x1c95+1837-0x23c2),sizeof(acTmpContent));iSms_TotalCount
+=ptDbSaveData->concat_info[(0x83d+622-0xaaa)];for(i=(0x17fa+2130-0x204b);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,(0x1232+208-0x1302),
+pFormatConcat){return ZUFI_FAIL;}memset(pFormatConcat,(0x2170+287-0x228f),
spaceLen);pContent=(char*)malloc(spaceLen);if(pContent==NULL){free(pFormatConcat
-);return ZUFI_FAIL;}memset(pContent,(0x12ff+997-0x16e4),spaceLen);if(-
-(0x179a+614-0x19ff)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
+);return ZUFI_FAIL;}memset(pContent,(0xc07+517-0xe0c),spaceLen);if(-
+(0x371+356-0x4d4)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
pFormatConcat,pContent,&ac,&iConcatNum,spaceLen)){free(pFormatConcat);free(
pContent);pFormatConcat=NULL;pContent=NULL;return ZUFI_FAIL;}ptDbSaveData->
-tp_dcs=(0x535+4505-0x16cc);if(ZUFI_FAIL==zUfiSms_InsertConcatSmsToDb(
-ptDbSaveData,pStorePos,pFormatConcat,pContent,&ac,iConcatNum)){free(
-pFormatConcat);free(pContent);pFormatConcat=NULL;pContent=NULL;return ZUFI_FAIL;
-}free(pFormatConcat);free(pContent);pFormatConcat=NULL;pContent=NULL;printf(
+tp_dcs=(0x183+3328-0xe81);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=(0x7f3+6846-0x22b1);int total_count=
-(0x248+7557-0x1fcd);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
-iSmsId=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,pMemStore);if(-(0xafc+109-0xb68)
-!=iSmsId){printf(
+ptDbSaveData,char*pMemStore){long iSmsId=(0x1f2+7033-0x1d6b);int total_count=
+(0xcef+1420-0x127b);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
+iSmsId=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,pMemStore);if(-
+(0x163a+2587-0x2054)!=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(
@@ -570,184 +568,183 @@
"\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[(0xe87+191-0xf3c)];int iTotalCount=
-(0xe34+3021-0x1a01);int id=(0x1a2+5589-0x1777);UINT8 needCheckMemory=
-(0x6c9+2005-0xe9d);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(acDbMemStore,
-(0x17fb+1353-0x1d44),sizeof(acDbMemStore));if(WMS_STORAGE_TYPE_UIM_V01==
+iMemStore,long iSmsId){char acDbMemStore[(0x166b+4087-0x2658)];int iTotalCount=
+(0xa11+1923-0x1194);int id=(0x3b1+3904-0x12f1);UINT8 needCheckMemory=
+(0x99c+5913-0x20b4);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(acDbMemStore
+,(0x334+8354-0x23d6),sizeof(acDbMemStore));if(WMS_STORAGE_TYPE_UIM_V01==
iMemStore){strncpy(acDbMemStore,ZTE_WMS_DB_SIM_TABLE,sizeof(acDbMemStore)-
-(0x1cc4+777-0x1fcc));}else{strncpy(acDbMemStore,ZTE_WMS_DB_NV_TABLE,sizeof(
-acDbMemStore)-(0x496+6488-0x1ded));}if((0x13cd+2378-0x1d16)==ptDbSaveData->
+(0x592+8362-0x263b));}else{strncpy(acDbMemStore,ZTE_WMS_DB_NV_TABLE,sizeof(
+acDbMemStore)-(0x745+2212-0xfe8));}if((0x12a5+1507-0x1887)==ptDbSaveData->
concat_sms){id=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,&acDbMemStore);if(-
-(0x487+7041-0x2007)!=id){needCheckMemory=(0x17cd+23-0x17e4);}}if(needCheckMemory
-==(0xe8d+2900-0x19e0)){if(ZUFI_FAIL==zUfiSms_GetTotalCount(acDbMemStore,&
-iTotalCount)){return ZUFI_FAIL;}printf(
+(0xbdd+2001-0x13ad)!=id){needCheckMemory=(0xc8c+5004-0x2018);}}if(
+needCheckMemory==(0x1057+2083-0x1879)){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[
-(0xc27+5125-0x202a)]==(0x3af+993-0x790)||ptDbSaveData->concat_info[
-(0x9+5442-0x1549)]>ptDbSaveData->concat_info[(0x467+944-0x816)]){ptDbSaveData->
-concat_sms=(0xdcd+2073-0x15e6);}printf(
+(0x1055+2282-0x193d)]==(0x1214+1684-0x18a8)||ptDbSaveData->concat_info[
+(0x157d+1475-0x1b3e)]>ptDbSaveData->concat_info[(0xfb7+2670-0x1a24)]){
+ptDbSaveData->concat_sms=(0xc1+1661-0x73e);}printf(
"\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[
-(0x8c9+5591-0x1e9f)]);if((0x1ac4+747-0x1dae)==ptDbSaveData->concat_sms){if(
-ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0x978+2122-0x11c1)]){
+(0x6b3+7682-0x24b4)]);if((0x14ac+2238-0x1d69)==ptDbSaveData->concat_sms){if(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0x757+5725-0x1db3)]){
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=(0xaf1+7138-0x26d3);if(NULL==ptDbSaveData){
+ptDbSaveData,int cid){int atRes=(0x9a2+1881-0x10fb);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,-(0x99f+316-0xada))){g_zUfiSms_MsgRefer++;ptDbSaveData->
-msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}}
-else{CHAR sendfailRetry[(0x101a+1231-0x14b7)]={(0x78d+2049-0xf8e)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x268+2016-0xa48)==
-strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0xf64+4723-0x21d4);}
+WMS_STORAGE_TYPE_NV_V01,-(0xf76+2743-0x1a2c))){g_zUfiSms_MsgRefer++;ptDbSaveData
+->msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}
+}else{CHAR sendfailRetry[(0x1628+993-0x19d7)]={(0x113c+2203-0x19d7)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x1120+893-0x149d)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x315+3401-0x105b);}
atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{
zSms_RecvCmgsOk();}}return WMS_CMD_SUCCESS;}int zUfiSms_SendConcatSms(int cid){
-int atRes=(0x33a+2996-0xeee);T_zUfiSms_ClientMsg tClientMsg;
+int atRes=(0x650+3732-0x14e4);T_zUfiSms_ClientMsg tClientMsg;
T_zUfiSms_DbStoreData tDbSaveData;int result=ZUFI_FAIL;if(g_zUfiSms_ConcatSms.
current_sending>=g_zUfiSms_ConcatSms.total_msg){return ZUFI_FAIL;}memset((void*)
-&tClientMsg,(0xbad+2229-0x1462),sizeof(T_zUfiSms_ClientMsg));memset((void*)&
-tDbSaveData,(0x7b5+7357-0x2472),sizeof(tDbSaveData));zUfiSms_SetPduData(&
+&tClientMsg,(0xf95+4758-0x222b),sizeof(T_zUfiSms_ClientMsg));memset((void*)&
+tDbSaveData,(0xa0a+5505-0x1f8b),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,-(0x14da+362-0x1643));g_zUfiSms_SendFailedCount++;}else{
-CHAR sendfailRetry[(0x72d+8008-0x2643)]={(0xaec+2390-0x1442)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x4f0+2057-0xcf9)==
-strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x35c+6750-0x1db7);}
+WMS_STORAGE_TYPE_NV_V01,-(0x13bf+1560-0x19d6));g_zUfiSms_SendFailedCount++;}else
+{CHAR sendfailRetry[(0xabf+6921-0x2596)]={(0x56a+6018-0x1cec)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0xacf+6633-0x24b8)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x28c+2011-0xa64);}
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+(0x23f+2013-0xa1b))){
+g_zUfiSms_UnitLen*(g_zUfiSms_ConcatSms.current_sending+(0x21c3+1049-0x25db))){
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,(0x914+2005-0x10e9),sizeof(
+tSendStatus;memset((void*)&tSendStatus,(0x8c1+4544-0x1a81),sizeof(
T_zUfiSms_StatusInfo));tSendStatus.err_code=ZTE_SMS_CMS_NONE;tSendStatus.
send_failed_count=g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=
-(0x324+341-0x479);tSendStatus.cmd_status=WMS_CMD_FAILED;tSendStatus.cmd=
+(0x531+7582-0x22cf);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=(0x1dd4+888-0x214c);int i=
-(0x398+8592-0x2528);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR
-sendfailRetry[(0x759+2027-0xf12)]={(0xf48+2070-0x175e)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x4cc+3412-0x1220)==
-strcmp("\x31",sendfailRetry)){for(i=(0x9b8+515-0xbbb);i<SMS_RETRY_COUNT;i++){
+return result;}int zSvr_sendCmgs(VOID){int atRes=(0x33b+3270-0x1001);int i=
+(0x8ed+739-0xbd0);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR
+sendfailRetry[(0x4b2+2832-0xf90)]={(0x1618+2986-0x21c2)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x699+3728-0x1529)==
+strcmp("\x31",sendfailRetry)){for(i=(0x164a+1580-0x1c76);i<SMS_RETRY_COUNT;i++){
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=(0x1d55+458-0x1f1f);if(-
-(0x2e1+5742-0x194e)==g_zUfiSms_UnitLen){printf(
+T_zUfiSms_DbStoreData tDbSaveData;int res=(0x1d9c+568-0x1fd4);if(-
+(0x29a+2370-0xbdb)==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,(0x16a4+80-0x16f4),
-sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x662+491-0x84d),sizeof
-(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&tDbSaveData);if(!
+g_zUfiSms_ConcatSms.total_msg){memset((void*)&tClientMsg,(0xb70+5690-0x21aa),
+sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x9aa+1512-0xf92),
+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,-(0x1133+2811-0x1c2d))
-;g_zUfiSms_SendFailedCount++;}else{res=zSvr_sendCmgs();if(res!=ZSMS_RESULT_OK){
+zUfiSms_WriteSmsToDb(&tDbSaveData,WMS_STORAGE_TYPE_NV_V01,-(0xb5+4587-0x129f));
+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+(0xdb3+4611-0x1fb5))){g_zUfiSms_UnitLen=g_zUfiSms_ConcatSms.
+current_sending+(0x5bf+2703-0x104d))){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,(0x5a6+5027-0x1949),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
+tSendStatus,(0x68c+1170-0xb1e),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
err_code=ZTE_SMS_CMS_NONE;tSendStatus.send_failed_count=
-g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0x725+3742-0x15c3);
+g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0x4ac+2589-0xec9);
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 (0x869+2126-0x10b7)
-if(g_zUfiSms_ConcatSms.total_msg>(0xcf2+3028-0x18c5)){printf(
+#if (0x1a98+1823-0x21b7)
+if(g_zUfiSms_ConcatSms.total_msg>(0x117b+4484-0x22fe)){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,
-(0x1771+3264-0x2431),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,
-(0xa72+5127-0x1e79),sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&
-tDbSaveData);printf(
+);zUfiSms_SendConcatSms(cid);}else{memset((void*)&tClientMsg,(0xb93+2654-0x15f1)
+,sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x6b0+6165-0x1ec5),
+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[(0x1714+2919-0x2276)]={
-(0x453+2765-0xf20)};int tmp_i=(0x328+4056-0x1300);memset(ptTimestamp,
-(0x110b+1163-0x1596),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
-(0x114d+5403-0x2667)){ptTimestamp->year=zUfiSms_atohex(
-((char)(0x1e1f+107-0x1e5a)))*(0x989+187-0xa34)+zUfiSms_atohex(tData.year[
-(0xb0c+4403-0x1c3f)]);}else if(strlen(tData.year)==(0x22fd+892-0x2677)){
-ptTimestamp->year=zUfiSms_atohex(tData.year[(0xf6+8755-0x2329)])*
-(0x934+2899-0x1477)+zUfiSms_atohex(tData.year[(0x1217+950-0x15cc)]);}else if(
-strlen(tData.year)==(0x100c+2873-0x1b41)){ptTimestamp->year=zUfiSms_atohex(tData
-.year[(0x171f+903-0x1aa4)])*(0xb13+6015-0x2282)+zUfiSms_atohex(tData.year[
-(0xf11+4131-0x1f31)]);}else{printf(
+T_zUfiSms_TimeStamp*ptTimestamp){unsigned char tTimeZone[(0xa94+3831-0x1986)]={
+(0x7e6+2051-0xfe9)};int tmp_i=(0x11a4+4495-0x2333);memset(ptTimestamp,
+(0x532+5542-0x1ad8),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
+(0x36c+7865-0x2224)){ptTimestamp->year=zUfiSms_atohex(
+((char)(0x8ff+2521-0x12a8)))*(0x27c+1196-0x718)+zUfiSms_atohex(tData.year[
+(0x3c+708-0x300)]);}else if(strlen(tData.year)==(0x649+8042-0x25b1)){ptTimestamp
+->year=zUfiSms_atohex(tData.year[(0x2a1+2019-0xa84)])*(0x1ad4+2053-0x22c9)+
+zUfiSms_atohex(tData.year[(0x1aa5+411-0x1c3f)]);}else if(strlen(tData.year)==
+(0x1607+142-0x1691)){ptTimestamp->year=zUfiSms_atohex(tData.year[
+(0xb3d+6513-0x24ac)])*(0x19d+6489-0x1ae6)+zUfiSms_atohex(tData.year[
+(0x9c8+7358-0x2683)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x79\x65\x61\x72\x2e");return ZUFI_FAIL;}if(
-strlen(tData.month)==(0x237f+662-0x2614)){ptTimestamp->month=zUfiSms_atohex(
-((char)(0x1e19+2296-0x26e1)))*(0x3c1+6198-0x1be7)+zUfiSms_atohex(tData.month[
-(0x1605+1300-0x1b19)]);}else if(strlen(tData.month)==(0xbe9+2533-0x15cc)){
-ptTimestamp->month=zUfiSms_atohex(tData.month[(0x5cd+3199-0x124c)])*
-(0x215a+70-0x2190)+zUfiSms_atohex(tData.month[(0x7a+2293-0x96e)]);}else{printf(
+strlen(tData.month)==(0x206b+1020-0x2466)){ptTimestamp->month=zUfiSms_atohex(
+((char)(0xfa8+3203-0x1bfb)))*(0x366+2345-0xc7f)+zUfiSms_atohex(tData.month[
+(0xf96+2080-0x17b6)]);}else if(strlen(tData.month)==(0x18c3+297-0x19ea)){
+ptTimestamp->month=zUfiSms_atohex(tData.month[(0x2633+11-0x263e)])*
+(0x778+6511-0x20d7)+zUfiSms_atohex(tData.month[(0x6cd+324-0x810)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.day)==
-(0xd7b+5250-0x21fc)){ptTimestamp->day=zUfiSms_atohex(((char)(0xefa+4982-0x2240))
-)*(0x130d+251-0x13f8)+zUfiSms_atohex(tData.day[(0x64+8672-0x2244)]);}else if(
-strlen(tData.day)==(0xa5a+1371-0xfb3)){ptTimestamp->day=zUfiSms_atohex(tData.day
-[(0x192b+3358-0x2649)])*(0x1433+3823-0x2312)+zUfiSms_atohex(tData.day[
-(0x55d+2318-0xe6a)]);}else{printf(
+(0x1f41+464-0x2110)){ptTimestamp->day=zUfiSms_atohex(
+((char)(0x18da+3071-0x24a9)))*(0x6eb+5513-0x1c64)+zUfiSms_atohex(tData.day[
+(0x20cb+1517-0x26b8)]);}else if(strlen(tData.day)==(0x1277+4042-0x223f)){
+ptTimestamp->day=zUfiSms_atohex(tData.day[(0x1d1+70-0x217)])*(0x16c4+152-0x174c)
++zUfiSms_atohex(tData.day[(0x12b0+3526-0x2075)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.hour)==
-(0xf+3843-0xf11)){ptTimestamp->hour=zUfiSms_atohex(((char)(0x69+751-0x328)))*
-(0xdc6+2474-0x1760)+zUfiSms_atohex(tData.hour[(0x116f+2723-0x1c12)]);}else if(
-strlen(tData.hour)==(0x4ca+4762-0x1762)){ptTimestamp->hour=zUfiSms_atohex(tData.
-hour[(0x10a6+1895-0x180d)])*(0xcc8+388-0xe3c)+zUfiSms_atohex(tData.hour[
-(0x8ed+2893-0x1439)]);}else{printf(
+(0x3+3534-0xdd0)){ptTimestamp->hour=zUfiSms_atohex(((char)(0x839+7356-0x24c5)))*
+(0x410+5747-0x1a73)+zUfiSms_atohex(tData.hour[(0x2253+1001-0x263c)]);}else if(
+strlen(tData.hour)==(0x9a4+6353-0x2273)){ptTimestamp->hour=zUfiSms_atohex(tData.
+hour[(0x1d77+1200-0x2227)])*(0xdd5+2147-0x1628)+zUfiSms_atohex(tData.hour[
+(0x15cf+1491-0x1ba1)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x68\x6f\x75\x72\x2e");}if(strlen(tData.min)==
-(0xaf+8549-0x2213)){ptTimestamp->minute=zUfiSms_atohex(
-((char)(0x1490+3270-0x2126)))*(0x1aca+2002-0x228c)+zUfiSms_atohex(tData.min[
-(0x3e1+1136-0x851)]);}else if(strlen(tData.min)==(0xe79+5465-0x23d0)){
-ptTimestamp->minute=zUfiSms_atohex(tData.min[(0xeb6+2043-0x16b1)])*
-(0x13fb+2476-0x1d97)+zUfiSms_atohex(tData.min[(0xb92+2875-0x16cc)]);}else{printf
-("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x6d\x69\x6e\x75\x74\x65\x2e");}if(strlen(
-tData.sec)==(0x250+2833-0xd60)){ptTimestamp->second=zUfiSms_atohex(
-((char)(0x1a35+909-0x1d92)))*(0x358+8287-0x23a7)+zUfiSms_atohex(tData.sec[
-(0xd66+1968-0x1516)]);}else if(strlen(tData.sec)==(0x444+8522-0x258c)){
-ptTimestamp->second=zUfiSms_atohex(tData.sec[(0xf0d+5513-0x2496)])*
-(0x8c6+803-0xbd9)+zUfiSms_atohex(tData.sec[(0xed+3272-0xdb4)]);}else{printf(
-"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x73\x65\x63\x6f\x6e\x64\x2e");}tmp_i=atoi(
-tData.timezone);if(tmp_i<INT_MIN+(0x17a5+3042-0x2386)||tmp_i>INT_MAX-
-(0x829+3455-0x15a7)){printf(
+(0x11b2+1795-0x18b4)){ptTimestamp->minute=zUfiSms_atohex(
+((char)(0xb7f+4523-0x1cfa)))*(0x1182+4681-0x23bb)+zUfiSms_atohex(tData.min[
+(0x2ec+4702-0x154a)]);}else if(strlen(tData.min)==(0x1416+1212-0x18d0)){
+ptTimestamp->minute=zUfiSms_atohex(tData.min[(0x1d70+571-0x1fab)])*
+(0x493+1372-0x9df)+zUfiSms_atohex(tData.min[(0xc70+6461-0x25ac)]);}else{printf(
+"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x6d\x69\x6e\x75\x74\x65\x2e");}if(strlen(tData
+.sec)==(0x53b+636-0x7b6)){ptTimestamp->second=zUfiSms_atohex(
+((char)(0x569+8342-0x25cf)))*(0xc4f+3631-0x1a6e)+zUfiSms_atohex(tData.sec[
+(0x133d+206-0x140b)]);}else if(strlen(tData.sec)==(0x15b6+1591-0x1beb)){
+ptTimestamp->second=zUfiSms_atohex(tData.sec[(0x446+1729-0xb07)])*
+(0x16f3+3233-0x2384)+zUfiSms_atohex(tData.sec[(0xce3+3133-0x191f)]);}else{printf
+("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x73\x65\x63\x6f\x6e\x64\x2e");}tmp_i=atoi(
+tData.timezone);if(tmp_i<INT_MIN+(0x943+5647-0x1f51)||tmp_i>INT_MAX-
+(0x12b2+2868-0x1de5)){printf(
"\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,(0xb0c+393-0xc95),sizeof(tTimeZone));
-snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0x1359+4400-0x2485));if(
-tData.timezone[(0xc70+3052-0x185c)]==((char)(0x160a+2712-0x2075))){if(strlen(
-tTimeZone)==(0x10ec+5414-0x2610)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0xf3c+3235-0x1baf)))*(0xedd+2408-0x1835)+zUfiSms_atohex(tTimeZone[
-(0xfe0+3274-0x1ca9)]);}else if(strlen(tTimeZone)==(0x776+976-0xb43)){ptTimestamp
-->timezone=zUfiSms_atohex(tTimeZone[(0xa96+2419-0x1408)])*(0x1303+3791-0x21c8)+
-zUfiSms_atohex(tTimeZone[(0x1dbb+1480-0x2381)]);}else{printf(
+,tmp_i);return ZUFI_FAIL;}memset(tTimeZone,(0x2460+22-0x2476),sizeof(tTimeZone))
+;snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0x1aa+8714-0x23b0));if(
+tData.timezone[(0x122d+2208-0x1acd)]==((char)(0xe04+4239-0x1e66))){if(strlen(
+tTimeZone)==(0x520+5710-0x1b6c)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0x86a+1238-0xd10)))*(0x8df+1421-0xe5c)+zUfiSms_atohex(tTimeZone[
+(0x1f6+5793-0x1896)]);}else if(strlen(tTimeZone)==(0x1024+1856-0x1761)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x1f1b+2027-0x2705)])*
+(0xaa8+3526-0x1864)+zUfiSms_atohex(tTimeZone[(0x317+3055-0xf04)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2d\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}
-ptTimestamp->timezone=(0x39b+1321-0x8c4)-ptTimestamp->timezone;}else{if(strlen(
-tTimeZone)==(0x618+6579-0x1fca)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0x1d2d+1775-0x23ec)))*(0x2276+8-0x226e)+zUfiSms_atohex(tTimeZone[
-(0x62c+3562-0x1416)]);}else if(strlen(tTimeZone)==(0x11a+6863-0x1be7)){
-ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x297+5278-0x1735)])*
-(0x351+7161-0x1f40)+zUfiSms_atohex(tTimeZone[(0x1516+1517-0x1b02)]);}else{printf
-("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2b\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}}
+ptTimestamp->timezone=(0x2061+794-0x237b)-ptTimestamp->timezone;}else{if(strlen(
+tTimeZone)==(0x12d8+712-0x159f)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0x2052+1463-0x25d9)))*(0x5dd+1221-0xa92)+zUfiSms_atohex(tTimeZone[
+(0x697+5956-0x1ddb)]);}else if(strlen(tTimeZone)==(0x1011+988-0x13eb)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x2bd+4612-0x14c1)])*
+(0x9c8+6560-0x235e)+zUfiSms_atohex(tTimeZone[(0x6d9+1944-0xe70)]);}else{printf(
+"\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=(0x2d+2718-0xacb);deliver->user_data_header_present=TRUE;if(
-(0x22d+3542-0x1003)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference++
-;(void)zUfiSms_SetConcatMaxRefer(g_zUfiSms_ConcatSmsReference);}deliver->
-user_data_header_present=TRUE;deliver->user_data.num_headers=(0x285+2683-0xcff);
-deliver->user_data.headers[(0xc10+1006-0xffe)].header_id=WMS_UDH_CONCAT_8;
-deliver->user_data.headers[(0x1316+3802-0x21f0)].u.concat_8.msg_ref=msg_ref;
-deliver->user_data.headers[(0x11f+6500-0x1a83)].u.concat_8.total_sm=concat_sms->
-total_msg;deliver->user_data.headers[(0x7f2+3407-0x1541)].u.concat_8.seq_num=
-concat_sms->current_sending+(0x2ea+7554-0x206b);ptDbSaveData->concat_sms=
-(0x62b+8333-0x26b7);ptDbSaveData->concat_info[(0x15c0+2993-0x2171)]=msg_ref;}
-void zUfiSms_FillDeliverPdu(T_zUfiSms_DeliverPdu*ptDeliver,T_zUfiSms_ConcatInfo*
+UINT16 msg_ref=(0xb55+400-0xce5);deliver->user_data_header_present=TRUE;if(
+(0x99+6636-0x1a85)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference++;
+(void)zUfiSms_SetConcatMaxRefer(g_zUfiSms_ConcatSmsReference);}deliver->
+user_data_header_present=TRUE;deliver->user_data.num_headers=(0x443+888-0x7ba);
+deliver->user_data.headers[(0x1881+2287-0x2170)].header_id=WMS_UDH_CONCAT_8;
+deliver->user_data.headers[(0x849+2227-0x10fc)].u.concat_8.msg_ref=msg_ref;
+deliver->user_data.headers[(0x1c2f+1963-0x23da)].u.concat_8.total_sm=concat_sms
+->total_msg;deliver->user_data.headers[(0x32c+2182-0xbb2)].u.concat_8.seq_num=
+concat_sms->current_sending+(0x57b+7930-0x2474);ptDbSaveData->concat_sms=
+(0x1d53+230-0x1e38);ptDbSaveData->concat_info[(0x50b+3246-0x11b9)]=msg_ref;}void
+ zUfiSms_FillDeliverPdu(T_zUfiSms_DeliverPdu*ptDeliver,T_zUfiSms_ConcatInfo*
concat_sms,T_zUfiSms_GroupInfo*group_sms,int iSmsLen,T_zUfiSms_DbStoreData*
ptDbSaveData){if(NULL==concat_sms||NULL==group_sms){return;}ptDeliver->more=
FALSE;ptDeliver->reply_path_present=FALSE;ptDeliver->status_report_enabled=
@@ -755,22 +752,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>
-(0xc26+5903-0x2334)){zUfiSms_FillDeliver(ptDeliver,concat_sms,ptDbSaveData);
-ptDbSaveData->concat_sms=(0x1062+4515-0x2204);ptDbSaveData->concat_info[
-(0x2ec+1976-0xaa2)]=concat_sms->current_sending+(0x116+6141-0x1912);ptDbSaveData
-->concat_info[(0x110f+5351-0x25f5)]=concat_sms->total_msg;ptDbSaveData->
-concat_info[(0x1957+859-0x1cb2)]=ptDeliver->user_data.headers[
-(0xaa2+4068-0x1a86)].u.concat_8.msg_ref;}else{ptDeliver->
+(0x13e2+203-0x14ac)){zUfiSms_FillDeliver(ptDeliver,concat_sms,ptDbSaveData);
+ptDbSaveData->concat_sms=(0x1cd6+1905-0x2446);ptDbSaveData->concat_info[
+(0x3dc+6035-0x1b6d)]=concat_sms->current_sending+(0x1021+1330-0x1552);
+ptDbSaveData->concat_info[(0xd19+3301-0x19fd)]=concat_sms->total_msg;
+ptDbSaveData->concat_info[(0x6f2+5661-0x1d0f)]=ptDeliver->user_data.headers[
+(0x396+8773-0x25db)].u.concat_8.msg_ref;}else{ptDeliver->
user_data_header_present=FALSE;ptDeliver->user_data.num_headers=
-(0x8b2+2917-0x1417);}ptDeliver->user_data.sm_len=iSmsLen;memcpy(ptDeliver->
+(0x124c+4999-0x25d3);}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][(0x834+1781-0xf29)]==
-((char)(0x65d+7730-0x2464))){(void)zUfiSms_CharToInt(group_sms->receivers[
-group_sms->current_receiver]+(0x105+8719-0x2313),strlen(group_sms->receivers[
-group_sms->current_receiver])-(0x1856+1305-0x1d6e),ptDeliver->address.digits);
+;if(group_sms->receivers[group_sms->current_receiver][(0x1082+2825-0x1b8b)]==
+((char)(0x16d6+373-0x1820))){(void)zUfiSms_CharToInt(group_sms->receivers[
+group_sms->current_receiver]+(0x526+8200-0x252d),strlen(group_sms->receivers[
+group_sms->current_receiver])-(0x17ac+3481-0x2544),ptDeliver->address.digits);
ptDeliver->address.number_type=WMS_NUMBER_INTERNATIONAL;ptDeliver->address.
number_of_digits=(UINT8)strlen(group_sms->receivers[group_sms->current_receiver]
-)-(0x1c3+4223-0x1241);}else{(void)zUfiSms_CharToInt(group_sms->receivers[
+)-(0xc49+1851-0x1383);}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->
@@ -783,7 +780,7 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x61\x76\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x20\x6d\x65\x6d\x5f\x73\x74\x6f\x72\x65\x3d\x25\x64\x28\x4e\x56\x3d\x3d\x30\x31\x29" "\n"
,ptSaveSms->mem_store);if(ptSaveSms->mem_store==WMS_STORAGE_TYPE_NV_V01){if(
ZUFI_FAIL==zUfiSms_WriteSmsToDb(ptDbSaveData,WMS_STORAGE_TYPE_NV_V01,-
-(0x1196+792-0x14ad))){at_print(LOG_ERR,
+(0x205a+1306-0x2573))){at_print(LOG_ERR,
"\x77\x72\x69\x74\x65\x20\x73\x6d\x73\x20\x74\x6f\x20\x6e\x76\x20\x66\x61\x69\x6c\x65\x64\x2e"
);return WMS_CMD_FAILED;}}else{return WMS_CMD_FAILED;}g_zUfiSms_MsgRefer++;
ptDbSaveData->msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(
@@ -799,19 +796,19 @@
,T_zUfiSms_GroupInfo*ptGroupSms,int iSmsLength){T_zUfiSms_ClientTsData
tClientTsData;T_zUfiSms_ClientMsg tClientMsg;T_zUfiSms_DbStoreData tDbSaveData;
T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;int current_sending=
-(0x165c+2293-0x1f51);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
-(0x1378+3723-0x2202)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
-current_sending=(0x1187+3718-0x200d);ptConcatSms->current_sending<ptConcatSms->
+(0xa9+5805-0x1756);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
+(0x1fac+113-0x201c)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
+current_sending=(0x154c+2164-0x1dc0);ptConcatSms->current_sending<ptConcatSms->
total_msg;ptConcatSms->current_sending++){memset((void*)&tClientMsg,
-(0x1542+2993-0x20f3),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
-(0x91c+2531-0x12ff),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
-(0x7e7+1171-0xc7a),sizeof(T_zUfiSms_DbStoreData));tClientMsg.msg_hdr.mem_store=(
-ptSaveSms->mem_store==WMS_STORAGE_TYPE_UIM_V01)?WMS_STORAGE_TYPE_UIM_V01:
+(0x4d+9032-0x2395),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
+(0x1f52+921-0x22eb),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
+(0x1c35+1934-0x23c3),sizeof(T_zUfiSms_DbStoreData));tClientMsg.msg_hdr.mem_store
+=(ptSaveSms->mem_store==WMS_STORAGE_TYPE_UIM_V01)?WMS_STORAGE_TYPE_UIM_V01:
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
-(0x1314+5100-0x26fc):{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)
+(0x710+5444-0x1c50):{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)
zUfiSms_FillSubmitTpdu(ptConcatSms,ptGroupSms,iSmsLength,&tClientTsData.u.gw_pp.
u.submit,&tDbSaveData);break;}case WMS_TAG_TYPE_MT_READ_V01:case
WMS_TAG_TYPE_MT_NOT_READ_V01:{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_DELIVER;(
@@ -823,42 +820,42 @@
zUfiSms_FillSca(&tClientMsg);zUfiSms_FillDbSaveData(&tClientMsg,&tClientTsData,
ptConcatSms,ptGroupSms,iSmsLength,&tDbSaveData);strncpy(tDbSaveData.
draft_group_id,ptSaveSms->draft_group_id,sizeof(tDbSaveData.draft_group_id)-
-(0x1b2b+1243-0x2005));if(TRUE==g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){result=
+(0x46d+3878-0x1392));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==(0x849+6291-0x20db)){result=
+);}else{if(tDbSaveData.concat_sms==(0x1a77+2443-0x2401)){result=
zUfiSms_SaveConcatSms(ptSaveSms,ptConcatSms,ptGroupSms,&tDbSaveData,iSmsLength);
-current_sending=ptConcatSms->current_sending+(0xa66+4237-0x1af2);if(ptConcatSms
-->sms_len<iSmsLength*(current_sending+(0x1747+2157-0x1fb3))){iSmsLength=
-ptConcatSms->sms_len-iSmsLength*current_sending;}}else{result=
-zUfiSms_SaveNormalSms(ptSaveSms,&tDbSaveData);}}}return result;}int
-zUfiSms_DeleteSmsInSim(){char str_index[(0x6bb+272-0x74b)]={(0xf5c+4317-0x2039)}
-;int index=(0xb53+6205-0x2390);int is_cc=(0x133+2844-0xc4f);int iSmsId=
-(0x493+1113-0x8ec);T_zUfiSms_ModifyTag tDeleteInfo={(0x44f+6118-0x1c35)};char
-StrValue[(0x3d2+1735-0xa8f)]={(0x458+5932-0x1b84)};memset(&tDeleteInfo,
-(0x88b+245-0x980),sizeof(T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_DelMsg.sim_id[
-g_zUfiSms_DelMsg.sim_index];if(-(0x639+4355-0x173b)==(is_cc=zUfiSms_IsConcatSms(
+current_sending=ptConcatSms->current_sending+(0x223+989-0x5ff);if(ptConcatSms->
+sms_len<iSmsLength*(current_sending+(0x705+8164-0x26e8))){iSmsLength=ptConcatSms
+->sms_len-iSmsLength*current_sending;}}else{result=zUfiSms_SaveNormalSms(
+ptSaveSms,&tDbSaveData);}}}return result;}int zUfiSms_DeleteSmsInSim(){char
+str_index[(0x17bf+1333-0x1c74)]={(0x3f4+3011-0xfb7)};int index=
+(0x598+8020-0x24ec);int is_cc=(0x1461+2127-0x1cb0);int iSmsId=
+(0x152b+701-0x17e8);T_zUfiSms_ModifyTag tDeleteInfo={(0x1901+1880-0x2059)};char
+StrValue[(0xf14+3571-0x1cfd)]={(0x132d+2277-0x1c12)};memset(&tDeleteInfo,
+(0x1959+1155-0x1ddc),sizeof(T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_DelMsg.sim_id
+[g_zUfiSms_DelMsg.sim_index];if(-(0x38a+2948-0xf0d)==(is_cc=zUfiSms_IsConcatSms(
iSmsId))){printf(
"\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((0x1729+2842-0x2242)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex
+,is_cc,iSmsId);if((0x1086+4749-0x2312)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex
(iSmsId,&tDeleteInfo,is_cc)){return ZUFI_FAIL;}g_zUfiSms_DelMsg.sim_index++;
g_zUfiSms_DelMsg.sim_index_count--;while(tDeleteInfo.num_of_indices>
-(0x968+2998-0x151e)){index=tDeleteInfo.indices[tDeleteInfo.id_index];
+(0x97d+5895-0x2084)){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,
-(0x13c8+3085-0x1fd5),sizeof(str_index));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
+(0x758+7926-0x264e),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=(0x829+3594-0x1633);
-char StrValue[(0xd7d+422-0xf19)]={(0x15c6+3291-0x22a1)};zUfiSms_SetSmsLocation(
-SMS_LOCATION_SIM);memset(&g_deleteIndex,(0x173a+3132-0x2376),sizeof(
+T_zUfiSms_CmdStatus zUfiSms_DeleteSimSms(VOID){int atRes=(0x1509+1063-0x1930);
+char StrValue[(0x1156+805-0x1471)]={(0x4f7+7388-0x21d3)};zUfiSms_SetSmsLocation(
+SMS_LOCATION_SIM);memset(&g_deleteIndex,(0x604+2256-0xed4),sizeof(
T_zUfiSms_DelIndexInfo));while(g_zUfiSms_DelMsg.sim_index_count>
-(0x327+8523-0x2472)){if(ZUFI_FAIL==zUfiSms_DeleteSmsInSim()){printf(
+(0x9df+3002-0x1599)){if(ZUFI_FAIL==zUfiSms_DeleteSmsInSim()){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x69\x6d\x53\x6d\x73\x20\x64\x65\x6c\x65\x74\x65\x20\x61\x6c\x6c\x3a\x25\x64\x20\x73\x6d\x73\x20\x66\x61\x69\x6c\x65\x64" "\n"
,WMS_STORAGE_TYPE_UIM_V01);return WMS_CMD_FAILED;}}while(g_deleteIndex.cur_index
<g_deleteIndex.total){atRes=zSms_SendCmgdReq(g_deleteIndex.index[g_deleteIndex.
@@ -867,70 +864,69 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x69\x6d\x53\x6d\x73\x20\x73\x75\x63\x63\x65\x73\x73" "\n"
);return WMS_CMD_SUCCESS;}void zUfiSms_GetReportStatus(char*pdu_tmp,int*stat){
unsigned char tmp;unsigned char first_octet;if(pdu_tmp==NULL){return;}(void)
-String2Bytes(pdu_tmp,&tmp,(0x603+4240-0x1691));if(tmp==(0x1c6+6016-0x1946)){
-pdu_tmp+=(0xcf+4770-0x136f);}else{tmp=(tmp+(0x1b3a+1293-0x2046))*
-(0x2df+5607-0x18c4);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
-(0x890+2765-0x135b));first_octet=tmp;if(first_octet&(0x1430+2918-0x1f94)){*stat=
-(0xb48+1706-0x11ed);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
-T_zUfiSms_TpduType iTpduType;UINT8 mti=(0x166+5697-0x17a7);mti=(
-T_zUfiSms_TpduType)(pData[(0x1d82+1430-0x2318)]&(0x1d4a+619-0x1fb2));switch(mti)
-{case(0xd9f+3453-0x1b1c):iTpduType=WMS_TPDU_DELIVER;break;case(0x24+8074-0x1fad)
-:iTpduType=WMS_TPDU_SUBMIT;break;case(0x4ec+463-0x6b9):iTpduType=
+String2Bytes(pdu_tmp,&tmp,(0x86d+5673-0x1e94));if(tmp==(0x1d3f+658-0x1fd1)){
+pdu_tmp+=(0x4af+1255-0x994);}else{tmp=(tmp+(0x8d6+6282-0x215f))*
+(0x25+4043-0xfee);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
+(0x1fb+4590-0x13e7));first_octet=tmp;if(first_octet&(0xd1a+56-0xd50)){*stat=
+(0xcc4+2968-0x1857);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
+T_zUfiSms_TpduType iTpduType;UINT8 mti=(0x1f40+1084-0x237c);mti=(
+T_zUfiSms_TpduType)(pData[(0x7fa+2990-0x13a8)]&(0xa23+5006-0x1dae));switch(mti){
+case(0x1e51+919-0x21e8):iTpduType=WMS_TPDU_DELIVER;break;case(0x5c3+4483-0x1745)
+:iTpduType=WMS_TPDU_SUBMIT;break;case(0xc57+2659-0x16b8):iTpduType=
WMS_TPDU_STATUS_REPORT;break;default:iTpduType=WMS_TPDU_MAX;break;}return
iTpduType;}static void zUfiSms_FormatDeliverNumber(wms_address_s_type tAddress,
-unsigned char*pNumber){UINT8 number_type=(0x17df+3478-0x2575);memset(pNumber,
-(0x213+524-0x41f),ZTE_WMS_ADDRESS_LEN_MAX+(0x1dc4+1965-0x2570));if(tAddress.
-number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x589+1175-0xa20)]=
-((char)(0x8d0+4958-0x1c03));pNumber++;}if(tAddress.digit_mode!=
+unsigned char*pNumber){UINT8 number_type=(0xd0+2816-0xbd0);memset(pNumber,
+(0x43c+22-0x452),ZTE_WMS_ADDRESS_LEN_MAX+(0x287+8714-0x2490));if(tAddress.
+number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x17f8+556-0x1a24)]=
+((char)(0x49d+947-0x825));pNumber++;}if(tAddress.digit_mode!=
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[(0x1182+2833-0x1c93)]));}}byte*zUfiSms_UtilTimeStamp(
+sizeof(tAddress.digits[(0x1a0c+2818-0x250e)]));}}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)(0xe71+5940-0x2583));tmp=zte_wms_time
-.year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x15b1+4391-0x26c9))+((tmp>>
-(0x4c8+1037-0x8d1))*(0x145c+1538-0x1a54)),res_ptr);zUfiSms_SprintfTime(date->
-year,sizeof(date->year),zte_wms_time.year);*res_ptr++=
-((char)(0x2340+583-0x2558));tmp=zte_wms_time.month;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0xb7f+364-0xcdc))+((tmp>>(0x12f1+5102-0x26db))*
-(0x1531+4119-0x253e)),res_ptr);zUfiSms_SprintfTime(date->month,sizeof(date->
-month),zte_wms_time.month);*res_ptr++=((char)(0x14bd+345-0x15e7));tmp=
-zte_wms_time.day;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x1dff+362-0x1f5a))+((
-tmp>>(0xcd2+4542-0x1e8c))*(0x1412+3915-0x2353)),res_ptr);zUfiSms_SprintfTime(
-date->day,sizeof(date->day),zte_wms_time.day);*res_ptr++=
-((char)(0x4b+5230-0x148d));tmp=zte_wms_time.hour;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0xf53+5231-0x23b3))+((tmp>>(0x1848+2006-0x201a))*
-(0x2f6+3936-0x124c)),res_ptr);zUfiSms_SprintfTime(date->hour,sizeof(date->hour),
-zte_wms_time.hour);*res_ptr++=((char)(0x22d+8255-0x2232));tmp=zte_wms_time.
-minute;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0xe30+4206-0x1e8f))+((tmp>>
-(0xce0+6409-0x25e5))*(0x4f7+2878-0x102b)),res_ptr);zUfiSms_SprintfTime(date->min
-,sizeof(date->min),zte_wms_time.minute);*res_ptr++=((char)(0x236+1841-0x92d));
-tmp=zte_wms_time.second;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&
-(0xb05+6342-0x23bc))+((tmp>>(0x998+97-0x9f5))*(0x1919+1059-0x1d32)),res_ptr);
-zUfiSms_SprintfTime(date->sec,sizeof(date->sec),zte_wms_time.second);if(
-zte_wms_time.timezone<(0xfd5+4113-0x1fe6)){*res_ptr++=
-((char)(0x1738+2365-0x2048));tmp=(UINT8)(zte_wms_time.timezone*(-
-(0x88f+5505-0x1e0f)));snprintf(date->timezone,sizeof(date->timezone),
-"\x2d\x25\x64",-(0x2bd+3889-0x11ed)*zte_wms_time.timezone);}else{*res_ptr++=
-((char)(0x1b7+7269-0x1df1));tmp=(UINT8)zte_wms_time.timezone;snprintf(date->
+NULL==date){return NULL;}*res_ptr++=((char)(0x3cd+8818-0x261d));tmp=zte_wms_time
+.year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x636+842-0x971))+((tmp>>
+(0x77+8875-0x231e))*(0x188d+224-0x1963)),res_ptr);zUfiSms_SprintfTime(date->year
+,sizeof(date->year),zte_wms_time.year);*res_ptr++=((char)(0x5f0+6258-0x1e33));
+tmp=zte_wms_time.month;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x1cf+1471-0x77f))
++((tmp>>(0x13b2+4526-0x255c))*(0xbca+847-0xf0f)),res_ptr);zUfiSms_SprintfTime(
+date->month,sizeof(date->month),zte_wms_time.month);*res_ptr++=
+((char)(0x10d0+2399-0x1a00));tmp=zte_wms_time.day;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0x111+8220-0x211e))+((tmp>>(0x558+2203-0xdef))*
+(0x133d+4154-0x236d)),res_ptr);zUfiSms_SprintfTime(date->day,sizeof(date->day),
+zte_wms_time.day);*res_ptr++=((char)(0x18b+5407-0x167e));tmp=zte_wms_time.hour;
+res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x15f1+2068-0x1df6))+((tmp>>
+(0xfca+2690-0x1a48))*(0x1eb5+1959-0x2652)),res_ptr);zUfiSms_SprintfTime(date->
+hour,sizeof(date->hour),zte_wms_time.hour);*res_ptr++=((char)(0x73a+1714-0xdb2))
+;tmp=zte_wms_time.minute;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&
+(0x1989+1184-0x1e1a))+((tmp>>(0x2c4+6314-0x1b6a))*(0xf1f+5054-0x22d3)),res_ptr);
+zUfiSms_SprintfTime(date->min,sizeof(date->min),zte_wms_time.minute);*res_ptr++=
+((char)(0x12ad+1872-0x19c3));tmp=zte_wms_time.second;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0x189b+1719-0x1f43))+((tmp>>(0x54d+6097-0x1d1a))*
+(0x158b+3714-0x2403)),res_ptr);zUfiSms_SprintfTime(date->sec,sizeof(date->sec),
+zte_wms_time.second);if(zte_wms_time.timezone<(0x100f+4048-0x1fdf)){*res_ptr++=
+((char)(0x3d9+2790-0xe92));tmp=(UINT8)(zte_wms_time.timezone*(-
+(0x432+7971-0x2354)));snprintf(date->timezone,sizeof(date->timezone),
+"\x2d\x25\x64",-(0xb3d+1991-0x1303)*zte_wms_time.timezone);}else{*res_ptr++=
+((char)(0x25d+2880-0xd72));tmp=(UINT8)zte_wms_time.timezone;snprintf(date->
timezone,sizeof(date->timezone),"\x2b\x25\x64",zte_wms_time.timezone);}res_ptr=
-zUfiSms_SmsiUtilitoaFill(tmp,res_ptr);*res_ptr++=((char)(0x1b07+296-0x1c0d));
+zUfiSms_SmsiUtilitoaFill(tmp,res_ptr);*res_ptr++=((char)(0x71b+2365-0x1036));
return res_ptr;}T_zUfiSms_CmdStatus zUfiSms_HandleReport(unsigned char*ptPduData
){T_zUfiSms_RawTsData tRawTsData;T_zUfiSms_ClientTsData tClientTsData;int
-iReportStatus=(0x537+4787-0x17ea);unsigned char acDeliverNumber[
-ZTE_WMS_ADDRESS_LEN_MAX+(0x424+8809-0x268c)];unsigned char tTpScts[
-ZTE_WMS_TP_SCTS_LEN_MAX+(0x25f9+244-0x26ec)];T_zUfiSms_Date tSmsDate;char
-acRecFlag[(0x32+836-0x371)]={(0x34a+963-0x70d)};int iRpCount=(0x329+4762-0x15c3)
-;char tmp[(0xaa1+2214-0x133d)];int tmp_i=(0x761+7825-0x25f2);unsigned int pos=
-(0x8f6+2074-0x1110);if(NULL==ptPduData){return WMS_CMD_FAILED;}memset(
-acDeliverNumber,(0x129f+4392-0x23c7),sizeof(acDeliverNumber));memset(&tSmsDate,
-(0x13d5+4235-0x2460),sizeof(T_zUfiSms_Date));memset(tTpScts,(0xfea+3756-0x1e96),
-sizeof(tTpScts));memset(&tRawTsData,(0x561+3437-0x12ce),sizeof(
-T_zUfiSms_RawTsData));memset(&tClientTsData,(0x451+8029-0x23ae),sizeof(
+iReportStatus=(0x8f9+5491-0x1e6c);unsigned char acDeliverNumber[
+ZTE_WMS_ADDRESS_LEN_MAX+(0x1175+559-0x13a3)];unsigned char tTpScts[
+ZTE_WMS_TP_SCTS_LEN_MAX+(0xb6d+1150-0xfea)];T_zUfiSms_Date tSmsDate;char
+acRecFlag[(0x15cd+1359-0x1b17)]={(0x9fb+3866-0x1915)};int iRpCount=
+(0x14a+6247-0x19b1);char tmp[(0x444+3691-0x12a5)];int tmp_i=(0x544+5415-0x1a6b);
+unsigned int pos=(0x3db+4785-0x168c);if(NULL==ptPduData){return WMS_CMD_FAILED;}
+memset(acDeliverNumber,(0x4a6+7125-0x207b),sizeof(acDeliverNumber));memset(&
+tSmsDate,(0x66d+7412-0x2361),sizeof(T_zUfiSms_Date));memset(tTpScts,
+(0x268+2923-0xdd3),sizeof(tTpScts));memset(&tRawTsData,(0x11c3+4110-0x21d1),
+sizeof(T_zUfiSms_RawTsData));memset(&tClientTsData,(0x133d+1686-0x19d3),sizeof(
T_zUfiSms_ClientTsData));snprintf(tmp,sizeof(tmp),"\x25\x58",ptPduData[
-(0x2f2+7105-0x1eb3)]);tmp_i=atoi(tmp);if(tmp_i<(0x1026+4065-0x2007)||tmp_i>
-INT_MAX-(0x138+2509-0xb04)){at_print(LOG_ERR,
+(0x4cb+1666-0xb4d)]);tmp_i=atoi(tmp);if(tmp_i<(0x1542+3809-0x2423)||tmp_i>
+INT_MAX-(0xb73+4357-0x1c77)){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+(0x10b3+5025-0x2453);if(pos>=
+,tmp_i);return WMS_CMD_FAILED;}pos=tmp_i+(0x404+4189-0x1460);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(&
@@ -939,59 +935,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=(0xa95+189-0xb51);break;}case
+case WMS_TP_STATUS_REPLACED:{iReportStatus=(0x1a8+726-0x47d);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=(0x188f+95-0x18eb);break;}default:{iReportStatus=
-(0x35c+5456-0x18aa);break;}}zUfiSms_FormatDeliverNumber(tClientTsData.u.gw_pp.u.
+iReportStatus=(0xdb1+366-0xf1c);break;}default:{iReportStatus=
+(0x704+3814-0x15e8);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,(0x12b7+2897-0x1e08),sizeof(acRecFlag)
+);return WMS_CMD_FAILED;}memset(acRecFlag,(0x180d+3706-0x2687),sizeof(acRecFlag)
);sc_cfg_get(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag,sizeof(acRecFlag));iRpCount=
-atoi(acRecFlag);if(iRpCount<(0xc33+4026-0x1bed)||iRpCount>INT_MAX-
-(0x1cc4+1587-0x22f6)){at_print(LOG_ERR,
+atoi(acRecFlag);if(iRpCount<(0xe47+4307-0x1f1a)||iRpCount>INT_MAX-
+(0xf96+5203-0x23e8)){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,(0x12a2+4056-0x227a),sizeof(
+,iRpCount);return WMS_CMD_FAILED;}memset(acRecFlag,(0x5aa+3606-0x13c0),sizeof(
acRecFlag));snprintf(acRecFlag,sizeof(acRecFlag),"\x25\x64",iRpCount+
-(0x5fb+1914-0xd74));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return
+(0x8c5+5472-0x1e24));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return
WMS_CMD_SUCCESS;}void zUfiSms_DelModemSms(int in_index){
-#if (0x5c1+3353-0x12da)
-char StrValue[(0x1b6+6113-0x198d)]={(0x48b+3548-0x1267)};printf(
+#if (0x15b6+2650-0x2010)
+char StrValue[(0x35+4285-0x10e8)]={(0x1435+2452-0x1dc9)};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=(0x114b+3727-0x1fda);atRes=zSms_SendCmgdReq(in_index);if(atRes==
+int atRes=(0x123d+3232-0x1edd);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=
-(0x16d3+663-0x196a);memset(&g_zUfiSms_modifyMsg,(0x1ac+7176-0x1db4),sizeof(
-T_zUfiSms_ModifySms));for(i=(0x598+6869-0x206d);i<ptModifyBuff->total_id;i++){
+(0xb94+1731-0x1257);memset(&g_zUfiSms_modifyMsg,(0x1803+589-0x1a50),sizeof(
+T_zUfiSms_ModifySms));for(i=(0x472+3390-0x11b0);i<ptModifyBuff->total_id;i++){
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[(0x1282+4044-0x21ce)]={
-(0x977+6128-0x2167)};int index=(0x13e8+4146-0x241a);int is_cc=
-(0x21f+6869-0x1cf4);int iSmsId=(0x770+722-0xa42);T_zUfiSms_ModifyTag tModifyInfo
-={(0x4e8+8596-0x267c)};char StrValue[(0xb6f+5370-0x205f)]={(0x2e3+5322-0x17ad)};
-memset(&tModifyInfo,(0x10c1+1722-0x177b),sizeof(T_zUfiSms_ModifyTag));iSmsId=
-g_zUfiSms_modifyMsg.sim_id[g_zUfiSms_modifyMsg.sim_index];if(-(0x1613+92-0x166e)
-==(is_cc=zUfiSms_IsConcatSms(iSmsId))){at_print(LOG_ERR,
+zUfiSms_GetUnreadSmsIndexInSim(){char str_index[(0x5a3+3955-0x1496)]={
+(0x2b2+578-0x4f4)};int index=(0xa22+1740-0x10ee);int is_cc=(0x347+7028-0x1ebb);
+int iSmsId=(0x1be3+919-0x1f7a);T_zUfiSms_ModifyTag tModifyInfo={
+(0x13b1+216-0x1489)};char StrValue[(0x444+7947-0x2345)]={(0xcea+661-0xf7f)};
+memset(&tModifyInfo,(0x1110+3391-0x1e4f),sizeof(T_zUfiSms_ModifyTag));iSmsId=
+g_zUfiSms_modifyMsg.sim_id[g_zUfiSms_modifyMsg.sim_index];if(-
+(0x2c3+8304-0x2332)==(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((0x13d2+204-0x149d)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(iSmsId,
+,is_cc);if((0xdfb+6025-0x2583)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(iSmsId,
&tModifyInfo,is_cc)){return ZUFI_FAIL;}g_zUfiSms_modifyMsg.sim_index++;
g_zUfiSms_modifyMsg.sim_index_count--;while(tModifyInfo.num_of_indices>
-(0x19a9+3225-0x2642)){index=tModifyInfo.indices[tModifyInfo.id_index];
+(0x1dff+1696-0x249f)){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,(0x918+433-0xac9),sizeof(
+,index,g_modifyIndex.total);}}else{memset(str_index,(0xf48+4779-0x21f3),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"
@@ -1000,14 +996,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=(0x1bef+1468-0x21ab);char StrValue[
-(0x605+6819-0x209e)]={(0x123f+3987-0x21d2)};printf(
+T_zUfiSms_ModifyFlag*ptModifyBuff){int atRes=(0x211d+272-0x222d);char StrValue[
+(0x941+6592-0x22f7)]={(0x0+3731-0xe93)};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,
-(0x609+2793-0x10f2),sizeof(T_zUfiSms_ModifyIndexInfo));printf(
+(0xaea+3489-0x188b),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>
-(0x1e1+6694-0x1c07)){if(ZUFI_FAIL==zUfiSms_GetUnreadSmsIndexInSim()){at_print(
+(0xaab+811-0xdd6)){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.
@@ -1026,22 +1022,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[(0x184b+2685-0x22be)];int tmp_i=
-(0x23c+2980-0xde0);unsigned int pos=(0x2211+379-0x238c);int result=ZUFI_SUCC;if(
-NULL==pDb_Data){return ZUFI_FAIL;}pDb_Data->mem_store=(unsigned long)iStorePos;
-pDb_Data->index=(unsigned short)msg_index;if(RECEIVED_UNREAD==bSms_Status){
-pDb_Data->tag=WMS_TAG_TYPE_MT_NOT_READ_V01;}else if(RECEIVED_READ==bSms_Status){
-pDb_Data->tag=WMS_TAG_TYPE_MT_READ_V01;}else if(STORED_UNSEND==bSms_Status){
-pDb_Data->tag=WMS_TAG_TYPE_MO_NOT_SENT_V01;}else{pDb_Data->tag=
+T_zUfiSms_ClientTsData ts_data_ptr;char tmp[(0xdcd+1510-0x13a9)];int tmp_i=
+(0x135c+1509-0x1941);unsigned int pos=(0x1a20+1601-0x2061);int result=ZUFI_SUCC;
+if(NULL==pDb_Data){return ZUFI_FAIL;}pDb_Data->mem_store=(unsigned long)
+iStorePos;pDb_Data->index=(unsigned short)msg_index;if(RECEIVED_UNREAD==
+bSms_Status){pDb_Data->tag=WMS_TAG_TYPE_MT_NOT_READ_V01;}else if(RECEIVED_READ==
+bSms_Status){pDb_Data->tag=WMS_TAG_TYPE_MT_READ_V01;}else if(STORED_UNSEND==
+bSms_Status){pDb_Data->tag=WMS_TAG_TYPE_MO_NOT_SENT_V01;}else{pDb_Data->tag=
WMS_TAG_TYPE_MO_SENT_V01;}pDb_Data->mode=(unsigned short)format;memset(&raw_ts,
-(0x589+6137-0x1d82),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
-(0x1b28+1700-0x21cc),sizeof(wms_client_ts_data_s_type));memset(tmp,
-(0xd2b+2135-0x1582),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
-pPdu_Received[(0x613+3876-0x1537)]);tmp_i=atoi(tmp);if(tmp_i<
-(0x15b6+4154-0x25f0)||tmp_i>INT_MAX-(0x1296+4757-0x252a)){at_print(LOG_ERR,
+(0x243+416-0x3e3),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
+(0x100a+3102-0x1c28),sizeof(wms_client_ts_data_s_type));memset(tmp,
+(0x174b+2998-0x2301),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
+pPdu_Received[(0x1eb3+1865-0x25fc)]);tmp_i=atoi(tmp);if(tmp_i<(0xf72+298-0x109c)
+||tmp_i>INT_MAX-(0x494+1647-0xb02)){at_print(LOG_ERR,
"\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+(0x16da+2539-0x20c4);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+(0x19f+7475-0x1ed1);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);
@@ -1050,62 +1046,61 @@
pDb_Data);break;}case WMS_MESSAGE_FORMAT_GW_BC_V01:case
WMS_MESSAGE_FORMAT_MWI_V01:{result=ZUFI_FAIL;break;}default:{result=ZUFI_FAIL;
break;}}return result;}T_zUfiSms_CmdStatus IsSmsLoadSuccess(void){char IsInit[
-(0xf0a+3845-0x1deb)]={(0x1520+1420-0x1aac)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit
-,sizeof(IsInit));if((0x3c3+4715-0x162e)==strcmp("\x6f\x6b",IsInit)){printf(
+(0x1798+3524-0x2538)]={(0xb41+6401-0x2442)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit
+,sizeof(IsInit));if((0x440+4168-0x1488)==strcmp("\x6f\x6b",IsInit)){printf(
"\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 (0x2679+52-0x26ad)
+#if (0x19eb+1360-0x1f3b)
int zUfiSms_FormatSms(CHAR*pSmsRawContent,int contentSize,T_zUfiSms_SmsItem*
-ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x9af+3069-0x1580)))
-;if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0x54d+7305-0x21d5)),
-((char)(0xe96+3862-0x1d80)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((char
-*)(P2+(0x10b9+616-0x1320)),((char)(0x117d+2673-0x1bc2)));atBase_PreProcRes(
-pSmsRawContent,contentSize);if((0x637+3146-0x1280)==iCmdId){if(P3==P2+
-(0x100+8800-0x235f)){sscanf(pSmsRawContent,
-"\x25\x64\x20\x25\x64\x20\x25\x64\x20",&ptSmsPara->index,&ptSmsPara->stat,&
-ptSmsPara->length);}else{sscanf(pSmsRawContent,
-"\x25\x64\x20\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&ptSmsPara->index,&
-ptSmsPara->stat,ptSmsPara->alpha,&ptSmsPara->length);}}else if(
-(0x2f3+8849-0x2582)==iCmdId){if(P2==P1+(0x6f9+3919-0x1647)){sscanf(
+ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x13ca+4424-0x24e6))
+);if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0x887+6660-0x228a)),
+((char)(0x6bd+4563-0x1864)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((char
+*)(P2+(0x276+8624-0x2425)),((char)(0xe5f+4436-0x1f87)));atBase_PreProcRes(
+pSmsRawContent,contentSize);if((0x28d+3443-0xfff)==iCmdId){if(P3==P2+
+(0x593+487-0x779)){sscanf(pSmsRawContent,"\x25\x64\x20\x25\x64\x20\x25\x64\x20",
+&ptSmsPara->index,&ptSmsPara->stat,&ptSmsPara->length);}else{sscanf(
+pSmsRawContent,"\x25\x64\x20\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&
+ptSmsPara->index,&ptSmsPara->stat,ptSmsPara->alpha,&ptSmsPara->length);}}else if
+((0x11db+3117-0x1e06)==iCmdId){if(P2==P1+(0x183+3782-0x1048)){sscanf(
pSmsRawContent,"\x25\x64\x20\x25\x64\x20",&ptSmsPara->stat,&ptSmsPara->length);}
else{sscanf(pSmsRawContent,"\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&
ptSmsPara->stat,ptSmsPara->alpha,&ptSmsPara->length);}}atBase_RestoreString(
ptSmsPara->alpha);atBase_RestoreString(ptSmsPara->pdu);return ZUFI_SUCC;}
#endif
void zUfiSms_CmglRespProc(T_zSms_SmsInd*pSmsItem){T_zUfiSms_CmdStatus result=
-WMS_CMD_PROCESSING;T_zUfiSms_DbStoreData db_data={(0x4e3+2235-0xd9e)};
+WMS_CMD_PROCESSING;T_zUfiSms_DbStoreData db_data={(0x76c+3797-0x1641)};
zUfiSms_StoreType mem_store=WMS_STORAGE_TYPE_UIM_V01;unsigned char pdu_tmp[
-ZSMS_PDU_SIZE]={(0x528+5596-0x1b04)};int total_count=(0x1b21+82-0x1b73);int
-sim_capability=(0x416+3855-0x1325);printf(
+ZSMS_PDU_SIZE]={(0x10f5+1997-0x18c2)};int total_count=(0x16c+3547-0xf47);int
+sim_capability=(0x10bd+3964-0x2039);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,(0x132c+439-0x14e3),sizeof
-(db_data));memset(pdu_tmp,(0x1b2c+2536-0x2514),sizeof(pdu_tmp));(void)
+,strlen(pSmsItem->pdu),pSmsItem->pdu);memset(&db_data,(0x84f+6444-0x217b),sizeof
+(db_data));memset(pdu_tmp,(0xa0f+6528-0x238f),sizeof(pdu_tmp));(void)
String2Bytes(pSmsItem->pdu,pdu_tmp,(int)strlen(pSmsItem->pdu));
-#if (0x265+5984-0x19c4)
-zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0xd99+3707-0x1c0f)==
+#if (0x293+3477-0x1027)
+zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0x15a9+3054-0x2192)==
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 (0x1798+455-0x195e)
+#if (0xe80+5217-0x22e0)
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 (0xf96+2975-0x1b34)
+#if (0x2e9+1834-0xa12)
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,-(0x1147+1844-0x187a));{}
-#if (0x2c+5799-0x16d2)
+(void)zUfiSms_WriteSmsToDb(&db_data,mem_store,-(0x1b3d+2241-0x23fd));{}
+#if (0x1605+2540-0x1ff0)
if(SMS_LOCATION_SIM==g_zUfiSms_CurLocation){CHAR simCapability[
-(0x15da+3898-0x24e2)]={(0x6a2+1226-0xb6c)};sc_cfg_get(
+(0x1e9c+2053-0x266f)]={(0x988+6563-0x232b)};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){
@@ -1115,18 +1110,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)!=(0xeca+3309-0x1bb7)){if((access(
-ZTE_WMS_TMP1_PATH,F_OK)==(0x15b+6656-0x1b5b))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
-(0x1bcb+946-0x1f7d))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
-(0x1497+922-0x1831)){printf(
+if(access(ZTE_WMS_DB_PATH,F_OK)!=(0x1bf+1711-0x86e)){if((access(
+ZTE_WMS_TMP1_PATH,F_OK)==(0x13f8+1324-0x1924))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
+(0x18c6+2430-0x2244))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
+(0xfb5+3291-0x1c90)){printf(
"\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)==(0x1e9+8566-0x235f))&&(access(
-ZTE_WMS_SEC_PATH,F_OK)!=(0x269+5779-0x18fc))){if(rename(ZTE_WMS_TMP0_PATH,
-ZTE_WMS_SEC_PATH)!=(0x1d15+1440-0x22b5)){printf(
+);}}if((access(ZTE_WMS_TMP0_PATH,F_OK)==(0x1be1+2505-0x25aa))&&(access(
+ZTE_WMS_SEC_PATH,F_OK)!=(0x899+7521-0x25fa))){if(rename(ZTE_WMS_TMP0_PATH,
+ZTE_WMS_SEC_PATH)!=(0x40a+5629-0x1a07)){printf(
"\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)==(0xbcd+2031-0x13bc)){char rnum_buf[
-(0x141b+2306-0x1d05)]={(0x242+1611-0x88d)};char cmd[(0x65c+3736-0x1474)]={
-(0x424+8083-0x23b7)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZTE_WMS_SEC_PATH,F_OK)==(0x960+5108-0x1d54)){char rnum_buf[
+(0x1c6f+880-0x1fc7)]={(0x351+6898-0x1e43)};char cmd[(0x9a3+1739-0xfee)]={
+(0x1c59+1472-0x2219)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
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);}}
@@ -1138,48 +1133,48 @@
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_SendSmsStatusInfo(
MSG_SMS_DEFAULT);g_zUfiSms_MsgRefer=zUfiSms_GetSmsMaxReferInDb();
g_zUfiSms_ConcatSmsReference=zUfiSms_GetConcatMaxReferInDb();}void
-zUfiSms_CfgSmsNvInit(void){char tmp[(0x1ba+4106-0x11ba)]={(0x410+281-0x529)};
+zUfiSms_CfgSmsNvInit(void){char tmp[(0x5e6+1798-0xce2)]={(0x1d21+762-0x201b)};
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,(0x6e4+3683-0x1547),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
+pStatusInfo,(0x760+945-0xb11),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
iCmdId;pStatusInfo->cmd_status=WMS_CMD_PROCESSING;pStatusInfo->err_code=
-ZTE_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0x195+6766-0x1c03);pStatusInfo
-->delete_failed_count=(0x2517+489-0x2700);(void)zUfiSms_SetCmdStatus(pStatusInfo
-);}void zUfiSms_CfgInit(void){char tmp[(0x132c+4891-0x263d)]={
-(0x13f+6329-0x19f8)};sc_cfg_set(NV_SMS_STATE,"");sc_cfg_set(
+ZTE_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0x16ab+3635-0x24de);pStatusInfo
+->delete_failed_count=(0x1a82+1659-0x20fd);(void)zUfiSms_SetCmdStatus(
+pStatusInfo);}void zUfiSms_CfgInit(void){char tmp[(0xdcc+2515-0x1795)]={
+(0x4a7+5384-0x19af)};sc_cfg_set(NV_SMS_STATE,"");sc_cfg_set(
ZTE_WMS_NVCONFIG_RECEVIED,"");sc_cfg_set(NV_SMS_LOAD_RESULT,"");sc_cfg_set(
NV_SMS_RECV_RESULT,"");snprintf(tmp,sizeof(tmp),"\x25\x64",
ZTE_WMS_DB_MSG_COUNT_MAX);sc_cfg_set(ZTE_WMS_NVCONFIG_NV_CAPABILITY,tmp);
sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CAPABILITY,"");sc_cfg_set(
ZTE_WMS_NVCONFIG_SMS_REPORT,"");sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");sc_cfg_set(
NV_SMS_CENTER_NUM,"");}int zUfiSms_IsUnreadSms(T_zUfiSms_MemoryType mem_store){
-int total_count=(0x62+9364-0x24f6);char buf[(0x120a+1651-0x1869)]={
-(0x148+230-0x22e)};if(ZUFI_FAIL==zUfiSms_GetTagCountInDb(mem_store,
+int total_count=(0x18a2+2062-0x20b0);char buf[(0xa2+1996-0x85a)]={
+(0x5c8+3236-0x126c)};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(
-(0xaf7+6341-0x23bc)==total_count){return FALSE;}else{return TRUE;}}VOID
+(0x363+7827-0x21f6)==total_count){return FALSE;}else{return TRUE;}}VOID
zUfiSms_SendSmsStatusInfo(wms_message_status_info sms_op){
-T_zUfi_SmsStatusInfoInd ind={(0x72c+4212-0x17a0)};CHAR temp[(0x16e9+468-0x188b)]
-={(0x68f+7622-0x2455)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=(0x4cb+683-0x775)
-;}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=(0x111a+238-0x1207);}if(
-zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.sms_unread_ind=(0x1b5+7008-0x1d14);}
-else{ind.sms_unread_ind=(0xb54+4453-0x1cb9);}sc_cfg_get(
-"\x73\x6d\x73\x5f\x75\x6e\x72\x65\x61\x64\x5f\x63\x6f\x75\x6e\x74",temp,sizeof(
-temp));ind.sms_unread_count=atoi(temp);if((g_zUfiSms_MemFullFlag[
+T_zUfi_SmsStatusInfoInd ind={(0x484+7011-0x1fe7)};CHAR temp[(0x1829+1770-0x1ee1)
+]={(0x145f+3034-0x2039)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=
+(0x59a+1719-0xc50);}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=
+(0x12ca+3173-0x1f2e);}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.
+sms_unread_ind=(0xf43+266-0x104c);}else{ind.sms_unread_ind=(0x11dd+514-0x13df);}
+sc_cfg_get("\x73\x6d\x73\x5f\x75\x6e\x72\x65\x61\x64\x5f\x63\x6f\x75\x6e\x74",
+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=(0x1391+3131-0x1fcb);}else{ind.
-sms_memory_full_ind=(0x167+6998-0x1cbd);}printf(
+]==TRUE)){ind.sms_memory_full_ind=(0x17c1+1563-0x1ddb);}else{ind.
+sms_memory_full_ind=(0x5a2+2555-0xf9d);}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,(0x6c1+7421-0x23be));if(ind.sms_memory_full_ind==
-(0x1391+3890-0x22c2)){sc_cfg_set(NV_SMS_INIT_STATUS,
+T_zUfi_SmsStatusInfoInd),&ind,(0x28+8378-0x20e2));if(ind.sms_memory_full_ind==
+(0xd0+2953-0xc58)){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==(0x186+2221-0xa32)){sc_cfg_set(NV_SMS_INIT_STATUS,
+sms_unread_ind==(0x5f+9572-0x25c2)){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(
@@ -1188,7 +1183,7 @@
"\x5b\x53\x4d\x53\x5d\x20\x42\x61\x6b\x4e\x6f\x74\x69\x66\x69\x63\x61\x74\x69\x6f\x6e\x53\x6d\x73\x20\x66\x6f\x70\x65\x6e\x20\x65\x72\x72\x6f\x72" "\n"
);at_print(LOG_ERR,
"\x66\x6f\x70\x65\x6e\x28\x20\x2f\x75\x73\x72\x2f\x64\x6d\x2f\x66\x6f\x74\x61\x5f\x70\x75\x73\x68\x5f\x6d\x73\x67\x2e\x64\x61\x74\x61\x20\x2c\x20\x27\x77\x2b\x27\x29\x20\x65\x72\x72\x6f\x72\x21"
-);return;}len=fwrite(pushSms,(0x33d+3992-0x12d4),pushSmsLen,fp);if(len==
+);return;}len=fwrite(pushSms,(0x6a2+6864-0x2171),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 ec18b6f..d2b3ca7 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=(0x1a15+2051-0x2218);int g_zSms_MsqId=-
-(0x18f4+2181-0x2178);int g_zSms_LocalMsqId=-(0x218c+14-0x2199);sem_t
-g_sms_sem_id;T_zSms_optRsp g_smsOptRsp={(0x44d+708-0x711)};static const
+g_zUfiSms_IsConcatSendSuc;int iSmsIndex=(0x2387+62-0x23c5);int g_zSms_MsqId=-
+(0x13f3+4722-0x2664);int g_zSms_LocalMsqId=-(0x13c8+1876-0x1b1b);sem_t
+g_sms_sem_id;T_zSms_optRsp g_smsOptRsp={(0x185+3962-0x10ff)};static const
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},{(0x95c+3781-0x1821),NULL,FALSE}};VOID atWeb_SendSms
+atWeb_OutdateSmsCheck,TRUE},{(0xa13+5073-0x1de4),NULL,FALSE}};VOID atWeb_SendSms
(UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;T_zUfiSms_StatusInfo tStatus={
-(0x3c+7753-0x1e85)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)pDatabuf
-;zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_SEND);(void)zUfiSms_SendRawSms((
-T_zUfiSms_SendReq*)ptMessage->msg_data);}VOID atWeb_DelSmsByIndex(UINT8*pDatabuf
-){T_zUfiSms_DelReq tDelReq={(0xcbc+6177-0x24dd)};T_zUfiSms_CmdStatus result=
-WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x1027+5759-0x26a6)};assert(
-pDatabuf!=NULL);printf("[SMS] atWeb_DelSmsByIndex recv msg\n");memcpy(&tDelReq,
-pDatabuf,sizeof(T_zUfiSms_DelReq));zUfiSms_InitCmdStatus(&tStatus,
-WMS_SMS_CMD_MSG_DELETE);result=zUfiSms_DeleteSms(&tDelReq);tStatus.cmd_status=
-result;(void)zUfiSms_SetCmdStatus(&tStatus);zUfiMmi_SendSmsStatus();}VOID
-atWeb_DelSmsByType(UINT8*pDatabuf){
-#if (0x1cc6+1544-0x22ce)
+(0x16e8+3186-0x235a)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)
+pDatabuf;zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_SEND);(void)
+zUfiSms_SendRawSms((T_zUfiSms_SendReq*)ptMessage->msg_data);}VOID
+atWeb_DelSmsByIndex(UINT8*pDatabuf){T_zUfiSms_DelReq tDelReq={
+(0x17f2+2900-0x2346)};T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;
+T_zUfiSms_StatusInfo tStatus={(0x1a3+8774-0x23e9)};assert(pDatabuf!=NULL);printf
+("[SMS] atWeb_DelSmsByIndex recv msg\n");memcpy(&tDelReq,pDatabuf,sizeof(
+T_zUfiSms_DelReq));zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_DELETE);result
+=zUfiSms_DeleteSms(&tDelReq);tStatus.cmd_status=result;(void)
+zUfiSms_SetCmdStatus(&tStatus);zUfiMmi_SendSmsStatus();}VOID atWeb_DelSmsByType(
+UINT8*pDatabuf){
+#if (0xabd+427-0xc68)
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,(0x176c+2730-0x2216),
-req->eBoxName);if(req->eBoxName==SMS_INBOX){sms_LoadSmsFromSim();}
+,req->eBoxName);SMS_DeleteRecordFromXML(SMS_LOCATION_SIM,(0x177+6622-0x1b55),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={
-(0x14f4+1273-0x19ed)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)
+(0x504+5726-0x1b62)};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={(0x17ad+1067-0x1bd8)};assert(
+WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x1638+2540-0x2024)};assert(
pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)pDatabuf;zUfiSms_InitCmdStatus(&
tStatus,WMS_SMS_CMD_MSG_WRITE);result=zUfiSms_WriteRawSms((T_zUfiSms_SaveReq*)
ptMessage->msg_data);if(g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){tStatus.
@@ -60,250 +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={
-(0xae2+1147-0xf5d)};printf(
+(0x13c6+1082-0x1800)};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={(0xad6+2435-0x1459)};
+pDatabuf){T_zUfiSms_DelReq tSmsDel={(0x1d59+1239-0x2230)};
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>(0xd57+5951-0x2496)){
-atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x18a+8481-0x22ab),sizeof(
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x271+2475-0xc1c)){
+atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x1361+3264-0x2021),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>(0xd76+3693-0x1be3)){
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x89+5102-0x1477)){
atWeb_DelSmsByIndex(&tSmsDel);}}VOID zSms_HandleWebMsg(MSG_BUF*ptMsgBuf){UINT32
-i=(0x15cd+4061-0x25aa);assert(ptMsgBuf!=NULL);printf(
+i=(0x8ba+396-0xa46);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((0xff8+219-0x10d3)!=SmsHandleWebTab[i].msg_id){if(
+,ptMsgBuf->usMsgCmd);while((0xa93+2878-0x15d1)!=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,(0x1459+162-0x14fb));}else if(NULL!=SmsHandleWebTab[i].
+ptMsgBuf->aucDataBuf,(0x1847+1769-0x1f30));}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,(0x968+4681-0x1bb1));return(0x1231+533-0x1446);}SINT32
-zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x9d5+7294-0x2653)};
-memset(&sendSmsInfo,(0x9f6+2670-0x1464),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
+unsigned char*)pData,(0x13bf+2928-0x1f2f));return(0x5ab+3454-0x1329);}SINT32
+zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x850+5215-0x1caf)};
+memset(&sendSmsInfo,(0x2363+397-0x24f0),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
length=g_zUfiSms_FinalCmgsBuf.length;if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<
-ZSMS_PDU_SIZE-(0x18f6+293-0x1a1a)){memcpy(sendSmsInfo.pdu,g_zUfiSms_FinalCmgsBuf
+ZSMS_PDU_SIZE-(0x21c0+806-0x24e5)){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-(0x9d8+4797-0x1c93));}*(sendSmsInfo.pdu+strlen(
+ZSMS_PDU_SIZE-(0x168a+1691-0x1d23));}*(sendSmsInfo.pdu+strlen(
g_zUfiSms_FinalCmgsBuf.pdu))=ZSMS_CTRL_Z_CHAR;
-#if (0x93b+6838-0x23f0)
+#if (0x1447+4102-0x244c)
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==(0xdc1+2193-0x1651)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x1208+1045-0x161c)){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-(0xd5+8984-0x23ec)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0x15b9+1542-0x1bbe)].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-(0x233+6411-0x1b3d)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x1093+34-0x10b4)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x757+3796-0x162a)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x4dd+30-0x4fa)){
g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc();}SINT32 zSms_SendCmgdReq
-(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0xa11+5981-0x216e)};delSmsReq.index=
+(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0x68b+5482-0x1bf5)};delSmsReq.index=
index;zSms_SendMsg(MSG_CMD_DELSMS_REQ,sizeof(T_zSms_DelSmsReq),&delSmsReq);
-sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x1f2d+660-0x21c0)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x1200+2937-0x1d78)){return
ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmgdOk(VOID){CHAR
-strUsed[(0x284+7099-0x1e35)]={(0x11d+1573-0x742)};int used=(0x87c+7071-0x241b);
-int tmp_i=(0x3f6+3609-0x120f);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+strUsed[(0xbc4+1640-0x1222)]={(0x1f8+366-0x366)};int used=(0x38+8923-0x2313);int
+ tmp_i=(0x925+326-0xa6b);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
"\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<(0x408+7812-0x228c)||tmp_i>INT_MAX-(0x10d3+1548-0x16de)){
+strUsed);if(tmp_i<(0x523+1960-0xccb)||tmp_i>INT_MAX-(0x12bd+4240-0x234c)){
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=(0x72d+6142-0x1f2b);}used=tmp_i-(0x1d9+6169-0x19f1);if(used<
-(0x1526+2395-0x1e81)){used=(0x1647+1739-0x1d12);}memset(&strUsed,
-(0x12+3091-0xc25),(0xf71+394-0x10f1));snprintf(strUsed,sizeof(strUsed),
-"\x25\x64",used);sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed);}VOID
-zSms_RecvCmgdErr(VOID){sc_cfg_set(NV_SMS_DEL_RESULT,"\x66\x61\x69\x6c");printf(
+,tmp_i);tmp_i=(0x625+492-0x811);}used=tmp_i-(0xdf1+2229-0x16a5);if(used<
+(0xd68+813-0x1095)){used=(0x7f2+1208-0xcaa);}memset(&strUsed,(0x1e7+3116-0xe13),
+(0x1a38+806-0x1d54));snprintf(strUsed,sizeof(strUsed),"\x25\x64",used);
+sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed);}VOID zSms_RecvCmgdErr(VOID){
+sc_cfg_set(NV_SMS_DEL_RESULT,"\x66\x61\x69\x6c");printf(
"\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[(0x1dd5+190-0x1e89)]={
-(0x8f+3080-0xc97)};CHAR strTotal[(0x20cc+1413-0x2647)]={(0x1f2d+864-0x228d)};
-CHAR strUsed[(0x69a+4321-0x1771)]={(0xbed+5581-0x21ba)};int total=
-(0xd31+4810-0x1ffb);int used=(0x150a+230-0x15f0);int remain=(0x23fc+131-0x247f);
-sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
-strUsed);if(used<(0x1ad0+2896-0x2620)||used>INT_MAX-(0x2196+380-0x2311)){
+);}VOID zSms_RecvCmgdFinish(VOID){char StrValue[(0xe7+6170-0x18f7)]={
+(0x23e1+775-0x26e8)};CHAR strTotal[(0x894+5980-0x1fe6)]={(0x1777+3224-0x240f)};
+CHAR strUsed[(0x1bff+1333-0x212a)]={(0x59f+3938-0x1501)};int total=
+(0x1302+5010-0x2694);int used=(0x125d+2671-0x1ccc);int remain=(0xf23+293-0x1048)
+;sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
+strUsed);if(used<(0x370+6153-0x1b79)||used>INT_MAX-(0x107f+3952-0x1fee)){
at_print(LOG_ERR,
"\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=(0x13a8+4095-0x23a7);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
-strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0x1af0+946-0x1ea2)||
-total>INT_MAX-(0xba9+147-0xc3b)){at_print(LOG_ERR,
+,used);used=(0x123f+3281-0x1f10);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
+strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0x4c4+789-0x7d9)||
+total>INT_MAX-(0x8c4+1912-0x103b)){at_print(LOG_ERR,
"\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=(0x715+4605-0x1912);}remain=total-used;if(remain<
-(0x11a2+5463-0x26f9)){remain=(0x458+1712-0xb08);}memset(&StrValue,
-(0x665+1310-0xb83),(0x13b+1779-0x824));snprintf(StrValue,sizeof(StrValue),
+,total);total=(0x11ec+2650-0x1c46);}remain=total-used;if(remain<
+(0x715+2793-0x11fe)){remain=(0x1ee8+1347-0x242b);}memset(&StrValue,
+(0x107+3728-0xf97),(0xc8f+2339-0x15a8));snprintf(StrValue,sizeof(StrValue),
"\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={(0x40c+3230-0x10aa)};storageReq.type=avail;zSms_SendMsg(
+storageReq={(0xb2a+481-0xd0b)};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==(0xc18+5406-0x2135)){return ZSMS_RESULT_OK;
+g_sms_sem_id);if(g_smsOptRsp.result==(0x14ea+604-0x1745)){return ZSMS_RESULT_OK;
}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCmgrReq(UINT8 index){
-T_zSms_ModifyTagReq modTagReq={(0x156+2387-0xaa9)};modTagReq.index=index;
+T_zSms_ModifyTagReq modTagReq={(0x14b+5047-0x1502)};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==(0x144b+2002-0x1c1c)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0xa35+4516-0x1bd8)){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)-
-(0x14b+2281-0xa33));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),&
-setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x2a+9675-0x25f4)){
+(0x882+7481-0x25ba));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),&
+setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0xfcc+2406-0x1931)){
return ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCnmiReq(PSTR
- pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0x7f0+6939-0x230b)};if(
-(0xef4+2680-0x196c)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
-(0x557+7981-0x2483);}else{notifySetReq.mt=(0x9df+7017-0x2546);}zSms_SendMsg(
+ pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0x501+5656-0x1b19)};if(
+(0x11f2+2364-0x1b2e)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
+(0x34b+3751-0x11f1);}else{notifySetReq.mt=(0x4b5+3027-0x1086);}zSms_SendMsg(
MSG_CMD_NOTIFY_SET_REQ,sizeof(T_zSms_NotifySetReq),¬ifySetReq);sem_wait(&
-g_sms_sem_id);if(g_smsOptRsp.result==(0x1be3+2624-0x2622)){return ZSMS_RESULT_OK
-;}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmtInd(UINT8*pDatabuf){CHAR
-needSMS[(0x10a0+5107-0x2461)]={(0x25c+8996-0x2580)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xc33+3893-0x1b68)==strcmp(
+g_sms_sem_id);if(g_smsOptRsp.result==(0xe69+3257-0x1b21)){return ZSMS_RESULT_OK;
+}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmtInd(UINT8*pDatabuf){CHAR
+needSMS[(0x165b+1968-0x1dd9)]={(0x890+4900-0x1bb4)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1390+4124-0x23ac)==strcmp(
needSMS,"\x6e\x6f")){printf(
"\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={(0x51d+3393-0x125e)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0x12fa+4995-0x267d)};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[(0x1125+5172-0x253b)]={
-(0x373+5982-0x1ad1)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
-CHAR needSMS[(0xc6a+1273-0x1131)]={(0xf0+9394-0x25a2)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x13b6+1149-0x1833)==strcmp(
+zSms_RecvCmtiInd(UINT8*pDatabuf){char sms_Main_state[(0x2a1+9114-0x261d)]={
+(0x40+4862-0x133e)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
+CHAR needSMS[(0x1730+4094-0x26fc)]={(0x65f+817-0x990)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x231+9313-0x2692)==strcmp(
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")==
-(0x27f+8020-0x21d3)){printf(
+(0x1864+3042-0x2446)){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((0xeb3+4684-0x20ff)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0x1454+3197-0x20cf))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0xb81+6742-0x25d7)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0x5ff+336-0x74d))){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[(0x36c+796-0x656)]={(0x634+3986-0x15c6)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x33f+7140-0x1f23)==strcmp(needSMS,"\x6e\x6f")){
-printf(
+needSMS[(0x9e7+6457-0x22ee)]={(0x1eb9+1955-0x265c)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x28b+6165-0x1aa0)==strcmp(
+needSMS,"\x6e\x6f")){printf(
"\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={(0xc4a+5900-0x2356)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0xc55+1260-0x1141)};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[(0xead+6252-0x26fb)]={
-(0x92+9318-0x24f8)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
-CHAR needSMS[(0x17ab+2671-0x21e8)]={(0x10e6+5566-0x26a4)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1135+4398-0x2263)==strcmp(
+zSms_RecvCdsiInd(UINT8*pDatabuf){char sms_Main_state[(0xe5a+1293-0x1349)]={
+(0x6c9+202-0x793)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
+CHAR needSMS[(0x1005+5702-0x2619)]={(0xc18+6012-0x2394)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x2f5+2246-0xbbb)==strcmp(
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")==
-(0x1519+3737-0x23b2)){printf(
+(0x800+6429-0x211d)){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((0xb8f+2441-0x1518)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0x125a+1684-0x18ec))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0x56f+5505-0x1af0)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0x9af+3366-0x16d3))){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={(0x223+4035-0x11e6)};CHAR ackPduStr[(0x886+676-0xaf8)]=
-{(0x2ea+4003-0x128d)};ackReq.ackmode=ack_mode;if(ack_mode==(0x459+1086-0x895)){
-zUfiSms_EncodePdu_DeliverReport(ackPduStr,(0x180+1632-0x70d));memcpy(ackReq.pdu,
-ackPduStr,strlen(ackPduStr));
-#if (0x14c1+4431-0x2610)
-if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0x112c+185-0x11e4)){memcpy(ackReq.pdu,
+T_zSms_SmsAckReq ackReq={(0xe44+3857-0x1d55)};CHAR ackPduStr[
+(0x1a5c+1006-0x1e18)]={(0x1ac+7822-0x203a)};ackReq.ackmode=ack_mode;if(ack_mode
+==(0x13a+1083-0x573)){zUfiSms_EncodePdu_DeliverReport(ackPduStr,
+(0x439+5393-0x1877));memcpy(ackReq.pdu,ackPduStr,strlen(ackPduStr));
+#if (0xf7+5992-0x185f)
+if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0x114b+3957-0x20bf)){memcpy(ackReq.pdu,
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-(0x54f+5367-0x1a44));}
+,ackPduStr);memcpy(ackReq.pdu,ackPduStr,ZSMS_PDU_SIZE-(0x99c+5080-0x1d72));}
#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)/(0x1199+3824-0x2087);}zSms_SendMsg(
+,ackReq.pdu);ackReq.length=strlen(ackPduStr)/(0x81a+3026-0x13ea);}zSms_SendMsg(
MSG_CMD_SMSACK_REQ,sizeof(T_zSms_SmsAckReq),&ackReq);sem_wait(&g_sms_sem_id);if(
-g_smsOptRsp.result==(0x58d+7300-0x2210)){return ZSMS_RESULT_OK;}else{return
+g_smsOptRsp.result==(0x20f5+1152-0x2574)){return ZSMS_RESULT_OK;}else{return
ZSMS_RESULT_ERROR;}}int zSms_SendZmgrReq(int index){T_zSms_ReadSmsReq readSmsReq
-={(0x1430+958-0x17ee)};iSmsIndex=index;printf(
+={(0x1bf9+1034-0x2003)};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(0x246+2841-0xd5f);}VOID zSms_RecvZmgrRsp(
-UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0xb6b+1341-0x10a8)};memcpy(&tCmgrRsp,(
+T_zSms_ReadSmsReq),&readSmsReq);return(0xb6+4869-0x13bb);}VOID zSms_RecvZmgrRsp(
+UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0x1892+2403-0x21f5)};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={(0xbd4+2989-0x1781)};memcpy(&smsOptRsp,
+UINT8*pDatabuf){T_zSms_optRsp smsOptRsp={(0x1d2f+379-0x1eaa)};memcpy(&smsOptRsp,
(T_zSms_optRsp*)pDatabuf,sizeof(T_zSms_optRsp));if(smsOptRsp.result==
-(0x62+5080-0x1439)){sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{printf(
+(0x748+3514-0x1501)){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((
-(0x18d9+727-0x1baf)==ptPara->result)&&((0xa0b+5199-0x1e5a)==ptPara->opertype)){
-CHAR needSms[(0xf2+2400-0xa20)]={(0x60b+2994-0x11bd)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0x951+5568-0x1f11)!=strcmp(
+(0x69d+2698-0x1126)==ptPara->result)&&((0xe40+144-0xed0)==ptPara->opertype)){
+CHAR needSms[(0xb72+4490-0x1cca)]={(0x266+5852-0x1942)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0xd1a+5515-0x22a5)!=strcmp(
needSms,"\x6e\x6f")){zSvr_Zpbic_Sms_Init();}}}VOID zSms_RecvCpmsInd(UINT8*
pDatabuf){T_zSms_CpmsInd*cpmsInd=(T_zSms_CpmsInd*)pDatabuf;CHAR strBuf[
-(0x1447+2465-0x1dde)]={(0x8d+6505-0x19f6)};int remainSpace=(0x1f08+1451-0x24b3);
+(0x1c8+3861-0x10d3)]={(0xdb1+1694-0x144f)};int remainSpace=(0x13e6+3467-0x2171);
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,(0xacf+6769-0x2540),
-(0x7df+1497-0xdae));snprintf(strBuf,sizeof(strBuf),"\x25\x64",cpmsInd->used);
+ZTE_WMS_NVCONFIG_SIM_CAPABILITY,strBuf);memset(&strBuf,(0x171+7215-0x1da0),
+(0x491+5703-0x1ace));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,(0x3a1+1716-0xa55),(0x1bb8+2808-0x26a6));snprintf(
+cpmsInd->used;memset(&strBuf,(0x12c1+4664-0x24f9),(0x1b0+8881-0x2457));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 (0x63f+7374-0x22cd)
+#define AT_CMD_MAX (0x1c45+693-0x1eba)
#define ZAT_TAB_REPLACE ((unsigned char )(\
-(0xae7+6848-0x24ab)))
+(0x14c9+4818-0x269f)))
#define ZAT_NULL_FILL ((unsigned char )(\
-(0xc66+5973-0x22be)))
-#define ZAT_SPACE_REPLACE ((unsigned char )((0x4ad+1109-0x804)\
-))
+(0x23d7+137-0x2363)))
+#define ZAT_SPACE_REPLACE ((unsigned char )(\
+(0x22f+6089-0x18fa)))
#define ZAT_LF_REPLACE ((unsigned char )(\
-(0x1af1+361-0x1b5f)))
-#define ZAT_CR_REPLACE ((unsigned char )((0x330+1958-0x9dc)\
-))
+(0x10f2+5380-0x24fb)))
+#define ZAT_CR_REPLACE ((unsigned char )(\
+(0x29c+7355-0x1e5d)))
static void atBase_PreProcRes(char*pParaLine,int paraSize){signed long flg=
-(0x2c1+214-0x397);unsigned long i=(0x193b+653-0x1bc8);unsigned long length=
-(0xcca+714-0xf94);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=(
-char*)malloc(AT_CMD_MAX);if(NULL==pStrDestMalloc){return;}memset(pStrDestMalloc,
-(0x1d70+2391-0x26c7),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
-length=strlen(pParaLine);if((length==(0x95a+1799-0x1061))||(length>=AT_CMD_MAX))
-{free(pStrDestMalloc);return;}for(i=(0x13a5+1559-0x19bc);(i<length)&&(pDest-
-pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x33f+604-0x579))==*pSource){flg=(
-(0x74c+11-0x757)==flg)?(0x13a+5308-0x15f5):(0xd35+690-0xfe7);if(
-((char)(0xe0f+6146-0x25ef))==*(pSource+(0x761+126-0x7de))){*pDest++=(char)
-ZAT_NULL_FILL;}}else if((((char)(0x89c+5193-0x1cb9))==*pSource)&&(
-(0x1e1+3336-0xee9)==flg)){*pDest++=((char)(0xc51+3374-0x195f));if(
-((char)(0x1102+2095-0x1905))==*(pSource+(0x18ab+2065-0x20bb))){*pDest++=
-((char)(0xcb6+4967-0x1fe4));}else if('\0'==*(pSource+(0x99f+4395-0x1ac9))){*
-pDest++=(char)ZAT_NULL_FILL;}}else{if((((char)(0x7c8+5973-0x1efd))==*pSource)&&(
-(0x2356+460-0x2521)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
-pSource)&&((0x1868+3258-0x2521)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
-'\n'==*pSource)&&((0x1163+632-0x13da)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}else
- if(('\r'==*pSource)&&((0x5cb+2760-0x1092)==flg)){*pDest++=(char)ZAT_CR_REPLACE;
-}else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,(0xe73+2338-0x1795),
-paraSize);strncpy(pParaLine,pStrDestMalloc,paraSize-(0x1c71+1975-0x2427));free(
+(0xdd8+568-0x1010);unsigned long i=(0x25c+7277-0x1ec9);unsigned long length=
+(0x1276+1028-0x167a);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=
+(char*)malloc(AT_CMD_MAX);if(NULL==pStrDestMalloc){return;}memset(pStrDestMalloc
+,(0x128+3012-0xcec),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
+length=strlen(pParaLine);if((length==(0x467+8117-0x241c))||(length>=AT_CMD_MAX))
+{free(pStrDestMalloc);return;}for(i=(0x17db+645-0x1a60);(i<length)&&(pDest-
+pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x27f+9247-0x267c))==*pSource){flg=(
+(0xc71+385-0xdf2)==flg)?(0x85f+366-0x9cc):(0xf5+4646-0x131b);if(
+((char)(0xc5c+3941-0x1b9f))==*(pSource+(0x32c+3346-0x103d))){*pDest++=(char)
+ZAT_NULL_FILL;}}else if((((char)(0x1a57+890-0x1da5))==*pSource)&&(
+(0x3f3+649-0x67c)==flg)){*pDest++=((char)(0x70a+7323-0x2385));if(
+((char)(0x18b+678-0x405))==*(pSource+(0x405+3920-0x1354))){*pDest++=
+((char)(0x1f69+982-0x2306));}else if('\0'==*(pSource+(0x1071+2291-0x1963))){*
+pDest++=(char)ZAT_NULL_FILL;}}else{if((((char)(0x1922+2255-0x21d1))==*pSource)&&
+((0x1d6+1296-0x6e5)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
+pSource)&&((0x19b7+2051-0x21b9)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
+'\n'==*pSource)&&((0xc71+1717-0x1325)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}else
+ if(('\r'==*pSource)&&((0x138f+4946-0x26e0)==flg)){*pDest++=(char)ZAT_CR_REPLACE
+;}else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,(0x17cb+2594-0x21ed),
+paraSize);strncpy(pParaLine,pStrDestMalloc,paraSize-(0x1076+2230-0x192b));free(
pStrDestMalloc);}VOID zSms_RecvCscaInd(UINT8*pDatabuf){T_zSms_CscaInd cscaInd={
-(0x1e88+1737-0x2551)};
-#if (0x4+8332-0x208f)
+(0x8f3+4494-0x1a81)};
+#if (0xf68+3106-0x1b89)
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 (0x19e4+2465-0x2384)
+#if (0x4b5+1301-0x9c9)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x7a\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x73\x63\x61\x49\x6e\x64\x20\x73\x63\x61\x3a\x25\x73\x2c\x20\x74\x6f\x73\x63\x61\x25\x73" "\n"
,cscaInd.sca,cscaInd.tosca);
@@ -311,22 +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,
-(0x1ba+719-0x489),NULL);return(0x3f1+2326-0xd07);}VOID zSms_initAtOk(VOID){
-T_zUfiSms_StatusInfo tStatus={(0xe24+4173-0x1e71)};sc_cfg_set(NV_SMS_STORE,
+(0x115b+323-0x129e),NULL);return(0x1a9a+1897-0x2203);}VOID zSms_initAtOk(VOID){
+T_zUfiSms_StatusInfo tStatus={(0xc3d+6671-0x264c)};sc_cfg_set(NV_SMS_STORE,
"\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={(0xafb+3673-0x1954)};sc_cfg_set(NV_SMS_LOAD_RESULT
-,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_LOADED);tStatus.
-cmd_status=WMS_CMD_FAILED;tStatus.cmd=WMS_SMS_CMD_INIT;(void)
-zUfiSms_SetCmdStatus(&tStatus);}VOID zSms_RecvSmsInitRst(UINT8*pDatabuf){memcpy(
-&g_smsOptRsp,pDatabuf,sizeof(T_zSms_optRsp));if(g_smsOptRsp.result==
-(0x1386+1873-0x1ad6)){zSms_initAtOk();}else{zSms_initAtErr();}}UINT8
-zSms_SmsMsgCreat(VOID){g_zSms_MsqId=msgget(MODULE_ID_SMS,IPC_CREAT|
-(0x13cb+3924-0x219f));if(g_zSms_MsqId==-(0xc39+5937-0x2369)){return ZUFI_FAIL;}
-g_zSms_LocalMsqId=msgget(MODULE_ID_SMS_LOCAL,IPC_CREAT|(0xc23+5037-0x1e50));if(
-g_zSms_LocalMsqId==-(0x1f53+1684-0x25e6)){return ZUFI_FAIL;}sem_init(&
-g_sms_sem_id,(0x4d7+1879-0xc2e),(0xf20+645-0x11a5));return ZUFI_SUCC;}void
+T_zUfiSms_StatusInfo tStatus={(0x74b+1501-0xd28)};sc_cfg_set(NV_SMS_LOAD_RESULT,
+"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_LOADED);tStatus.cmd_status
+=WMS_CMD_FAILED;tStatus.cmd=WMS_SMS_CMD_INIT;(void)zUfiSms_SetCmdStatus(&tStatus
+);}VOID zSms_RecvSmsInitRst(UINT8*pDatabuf){memcpy(&g_smsOptRsp,pDatabuf,sizeof(
+T_zSms_optRsp));if(g_smsOptRsp.result==(0xddc+4688-0x202b)){zSms_initAtOk();}
+else{zSms_initAtErr();}}UINT8 zSms_SmsMsgCreat(VOID){g_zSms_MsqId=msgget(
+MODULE_ID_SMS,IPC_CREAT|(0x6e1+4540-0x171d));if(g_zSms_MsqId==-
+(0x11d+6569-0x1ac5)){return ZUFI_FAIL;}g_zSms_LocalMsqId=msgget(
+MODULE_ID_SMS_LOCAL,IPC_CREAT|(0x13c0+4145-0x2271));if(g_zSms_LocalMsqId==-
+(0xc5f+1488-0x122e)){return ZUFI_FAIL;}sem_init(&g_sms_sem_id,
+(0xfc5+4046-0x1f93),(0xac+2486-0xa62));return ZUFI_SUCC;}void
zSms_HandleAtctlLocalMsg(MSG_BUF*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
"\x73\x6d\x73\x20\x6c\x6f\x63\x61\x6c\x20\x72\x65\x63\x76\x20\x6d\x73\x67\x20\x63\x6d\x64\x3a\x25\x64" "\n"
,ptMsgBuf->usMsgCmd);switch(ptMsgBuf->usMsgCmd){case MSG_CMD_ZPBIC_IND:
@@ -350,44 +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,
-(0x1842+1453-0x1def));break;default:break;}}VOID zSms_HandleResetToFactory(){
-CHAR clearSms[(0x8c2+2347-0x11bb)]={(0x1d77+441-0x1f30)};sc_cfg_get(
+(0x1e6a+467-0x203d));break;default:break;}}VOID zSms_HandleResetToFactory(){CHAR
+ clearSms[(0x5c+3537-0xdfb)]={(0x21aa+51-0x21dd)};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")==(0x147f+157-0x151c)){printf(
+,clearSms);if(strcmp(clearSms,"\x79\x65\x73")==(0x298+9233-0x26a9)){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,(0x1572+1465-0x1b2b),NULL,
-(0x1d29+1829-0x244e));}void zSms_HandleMainCtrlMsg(MSG_BUF*ptMsgBuf){assert(
+MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,(0x1c0+5008-0x1550),NULL,
+(0x62+7465-0x1d8b));}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=(0x211+1842-0x943);MSG_BUF stMsg={
-(0x507+5418-0x1a31)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((int
-*)arg);prctl(PR_SET_NAME,"\x73\x6d\x73\x5f\x6c\x6f\x63\x61\x6c",
-(0x17fb+1864-0x1f43),(0xa4d+3782-0x1913),(0x1b0f+526-0x1d1d));while(
-(0x1078+4458-0x21e1)){iRet=(0x86+7396-0x1d6a);memset(&stMsg,(0x3fc+5663-0x1a1b),
-sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x26+7781-0x1e8b),
-(0x1390+2915-0x1ef3));if(iRet>=(0x10d+8553-0x2276)){switch(stMsg.src_id){case
+sms_msg_thread_proc(void*arg){int iRet=(0x467+1481-0xa30);MSG_BUF stMsg={
+(0x164a+1957-0x1def)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((
+int*)arg);prctl(PR_SET_NAME,"\x73\x6d\x73\x5f\x6c\x6f\x63\x61\x6c",
+(0x1075+785-0x1386),(0x129f+2285-0x1b8c),(0xc8f+6600-0x2657));while(
+(0xc1f+430-0xdcc)){iRet=(0x7b2+629-0xa27);memset(&stMsg,(0x1ec8+649-0x2151),
+sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0xa29+3236-0x16cd),
+(0xbba+1026-0xfbc));if(iRet>=(0x1892+1550-0x1ea0)){switch(stMsg.src_id){case
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=(0xc20+6263-0x2497);MSG_BUF msgBuf={(0xb49+6667-0x2554)};CHAR
-needSMS[(0xe43+5131-0x221c)]={(0xb76+3505-0x1927)};prctl(PR_SET_NAME,
-"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x283+6855-0x1d4a),(0x961+4883-0x1c74),
-(0x61f+1882-0xd79));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
-sizeof(needSMS));if((0x710+6295-0x1fa7)!=strcmp(needSMS,"\x6e\x6f")){
+recv_thread_tid=(0x16a1+2004-0x1e75);MSG_BUF msgBuf={(0x8db+2134-0x1131)};CHAR
+needSMS[(0x837+6385-0x20f6)]={(0xc41+5824-0x2301)};prctl(PR_SET_NAME,
+"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x8ac+1599-0xeeb),(0x1759+3463-0x24e0),
+(0x82b+7353-0x24e4));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
+sizeof(needSMS));if((0xafd+3201-0x177e)!=strcmp(needSMS,"\x6e\x6f")){
zUfiSms_InitDb();zUfiSms_CfgSmsNvInit();zUfiMmi_SendSmsStatus();zSms_SmsMsgCreat
-();}else{return-(0x32+977-0x402);}printf(
+();}else{return-(0x896+2964-0x1429);}printf(
"\x73\x6d\x73\x20\x61\x70\x70\x20\x69\x6e\x69\x74\x20\x66\x69\x6e\x69\x73\x68\x65\x64\x2c\x20\x77\x69\x6c\x6c\x20\x74\x6f\x20\x72\x65\x63\x65\x69\x76\x65\x20\x6d\x73\x67\x2c\x20\x6d\x73\x67\x69\x64\x3a\x25\x64" "\n"
,g_zSms_MsqId);if(pthread_create(&recv_thread_tid,NULL,sms_msg_thread_proc,(void
-*)(&g_zSms_LocalMsqId))==-(0xc9+1188-0x56c)){assert((0x1147+698-0x1401));}
-sms_msg_thread_proc(&g_zSms_MsqId);return(0x1410+3138-0x2052);}
+*)(&g_zSms_LocalMsqId))==-(0x16f6+3786-0x25bf)){assert((0x10ab+4512-0x224b));}
+sms_msg_thread_proc(&g_zSms_MsqId);return(0x5d8+4660-0x180c);}
diff --git a/ap/app/zte_comm/sms/src/sms_proc.c b/ap/app/zte_comm/sms/src/sms_proc.c
index 69c3cb6..a6bbc09 100755
--- a/ap/app/zte_comm/sms/src/sms_proc.c
+++ b/ap/app/zte_comm/sms/src/sms_proc.c
@@ -5,117 +5,117 @@
T_zUfiSms_ConcatInfo g_zUfiSms_ConcatSms;T_zUfiSms_GroupInfo g_zUfiSms_GroupSms;
T_zUfiSms_DbStoreData g_zUfiSms_DbStoreData[ZTE_WMS_CONCAT_SMS_COUNT_MAX];UINT8
g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_MAX]={FALSE,FALSE};T_zUfiSms_DelSms
-g_zUfiSms_DelMsg;T_zUfiSms_DelIndexInfo g_deleteIndex={(0x1a3+9026-0x24e5)};
-T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0x1133+1151-0x15b2)};
-T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0x3d8+4323-0x14bb)};int
-g_zUfiSms_UnitLen=(0x66f+1081-0xaa8);int g_zUfiSms_ConcatTotalNum=
-(0x1831+2572-0x223d);int g_zUfiSms_CurConcatSegNo=(0xac8+5408-0x1fe8);UINT8
-g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0x9b2+1734-0x1078)
-;int g_zUfiSms_MsgRefer=(0xdf9+84-0xe4d);int g_zUfiSms_SendFailedRetry=
-(0x320+5666-0x1942);char g_Zmena_value[(0x67a+3150-0x12c6)]={(0x680+7542-0x23f6)
-};int g_displaymode=(0x4cf+8494-0x25fd);extern SMS_LOCATION
+g_zUfiSms_DelMsg;T_zUfiSms_DelIndexInfo g_deleteIndex={(0x19b+8375-0x2252)};
+T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0x1ee4+841-0x222d)};
+T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0x1f45+1781-0x263a)};int
+g_zUfiSms_UnitLen=(0x19c5+2724-0x2469);int g_zUfiSms_ConcatTotalNum=
+(0x121+5361-0x1612);int g_zUfiSms_CurConcatSegNo=(0x4f4+5980-0x1c50);UINT8
+g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0x29c+8532-0x23f0)
+;int g_zUfiSms_MsgRefer=(0xafa+5135-0x1f09);int g_zUfiSms_SendFailedRetry=
+(0xd8+3577-0xed1);char g_Zmena_value[(0x11d6+2231-0x1a8b)]={(0x132b+4680-0x2573)
+};int g_displaymode=(0x5e0+6098-0x1db2);extern SMS_LOCATION
g_zUfiSms_CurLocation;extern T_zUfiSms_CmdStatus zUfiSms_HandleReport(unsigned
char*ptPduData);extern void zUfiSms_GetReportStatus(char*pdu_tmp,int*stat);
extern VOID zUfiSms_ResendAtCmdZmena(int cid);extern int zUfiSms_DecodeSmsData(
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[
-(0xfa+9460-0x25e2)];}FOTA_MSG_BUF;
-#define WEBUI_NOTIFY_PUSH_MSG_ (0x510+7251-0x2160)
+(0x1020+3051-0x1bff)];}FOTA_MSG_BUF;
+#define WEBUI_NOTIFY_PUSH_MSG_ (0xb51+4663-0x1d85)
typedef struct{unsigned int isread_record;unsigned int inbox_full;}
T_zUfiMmi_SmsRecord;void zUfiMmi_SendSmsStatus(void){int iSmsNum=
-(0x2d0+4584-0x14b8);T_zUfiMmi_SmsRecord tRecord={(0x68d+3343-0x139c)};CHAR
-smsNum[(0x5e5+3152-0x1203)]={(0x1029+3347-0x1d3c)};sc_cfg_get(NV_SMS_IN_NUM,
-smsNum,sizeof(smsNum));iSmsNum=atoi(smsNum);tRecord.isread_record=
-zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_MAX);if(iSmsNum>=ZSMS_NUM_MAX_CPE){tRecord.
-inbox_full=(0x141b+3336-0x2122);}else{tRecord.inbox_full=(0x1e9+195-0x2ac);}}
-VOID zUfiSms_Init(VOID){zUfiSms_CfgInit();zUfiSms_ChangeMainState(
-SMS_STATE_INITING);}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=(0x8f5+3677-0x1752)
-;T_zUfiSms_StatusInfo tStatus={(0x146+3526-0xf0c)};CHAR outDate[
-(0x6bd+2320-0xf9b)]={(0x896+2189-0x1123)};zUfiSms_Init();zUfiSms_InitCmdStatus(&
-tStatus,WMS_SMS_CMD_INIT);zSms_SendSmsInitReq();at_print(LOG_DEBUG,
-"corem zSvr_Zpbic_Sms_Init has send init req\n");zSms_SendZmenaReq(
-(0x1844+2812-0x2340));at_print(LOG_DEBUG,
+(0x6ec+7686-0x24f2);T_zUfiMmi_SmsRecord tRecord={(0x601+7840-0x24a1)};CHAR
+smsNum[(0xff+3456-0xe4d)]={(0x11af+2792-0x1c97)};sc_cfg_get(NV_SMS_IN_NUM,smsNum
+,sizeof(smsNum));iSmsNum=atoi(smsNum);tRecord.isread_record=zUfiSms_IsUnreadSms(
+ZTE_WMS_MEMORY_MAX);if(iSmsNum>=ZSMS_NUM_MAX_CPE){tRecord.inbox_full=
+(0x4b7+4585-0x169f);}else{tRecord.inbox_full=(0x10ef+5093-0x24d4);}}VOID
+zUfiSms_Init(VOID){zUfiSms_CfgInit();zUfiSms_ChangeMainState(SMS_STATE_INITING);
+}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=(0x16e0+1099-0x1b2b);
+T_zUfiSms_StatusInfo tStatus={(0xb2b+5869-0x2218)};CHAR outDate[
+(0x18c5+1961-0x203c)]={(0x1368+2584-0x1d80)};zUfiSms_Init();
+zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_INIT);zSms_SendSmsInitReq();at_print(
+LOG_DEBUG,"corem zSvr_Zpbic_Sms_Init has send init req\n");zSms_SendZmenaReq(
+(0xa34+2721-0x14d5));at_print(LOG_DEBUG,
"\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((0x13b+4793-0x13f4)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck(
+,outDate);if((0xbcf+2641-0x1620)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck(
ZUFI_NULL);}}VOID zUfiSms_DeleteAllSimSms(VOID){zUfiSms_DeleteAllSimSmsInDb();}
-#if (0x37a+2263-0xc51)
-VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0xb31+443-0xcba)]={
-(0xf4c+2961-0x1add)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
-g_Zmena_rsp&&((0x17dc+173-0x1889)!=strcmp(
-"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0x15f9+4245-0x268e)!=
-strcmp("\x4c\x69\x6d\x69\x74\x65\x64\x20\x53\x65\x72\x76\x69\x63\x65",netType)))
-{atUnsoli_Report_Zmena(NULL,cid);}}
+#if (0x2ef+3890-0x1221)
+VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0x278+8126-0x2204)]={
+(0x137+8492-0x2263)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
+g_Zmena_rsp&&((0xc41+699-0xefc)!=strcmp(
+"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0xd3f+3945-0x1ca8)!=strcmp
+("\x4c\x69\x6d\x69\x74\x65\x64\x20\x53\x65\x72\x76\x69\x63\x65",netType))){
+atUnsoli_Report_Zmena(NULL,cid);}}
#endif
void zUfiSms_Ack_new_msg(BOOL needAck){
-#if (0x5fa+7104-0x21ba)
-CHAR ackPduStr[(0x26b5+96-0x2585)]={(0x199d+1524-0x1f91)};SMS_PARAM reportParam=
-{(0xa8d+999-0xe74)};int total_length=(0x5d4+2376-0xf1c);UINT8 TP_FCS=
-(0x4e3+4952-0x183b);CHAR strValue[(0xf37+4271-0x1fe4)]={(0x111+9669-0x26d6)};if(
-needAck){TP_FCS=(0x2018+1727-0x26d7);sprintf(strValue,"\x25\x64",
-(0x12e1+447-0x149f));}else{TP_FCS=(0x1018+3559-0x1d2c);sprintf(strValue,
-"\x25\x64",(0xc29+492-0xe13));}sprintf(reportParam.SCA,"\x25\x73",cfg_get(
+#if (0x398+2361-0xcd1)
+CHAR ackPduStr[(0xe2d+5221-0x2102)]={(0xa41+1894-0x11a7)};SMS_PARAM reportParam=
+{(0x732+5346-0x1c14)};int total_length=(0x115c+3805-0x2039);UINT8 TP_FCS=
+(0xb64+6413-0x2471);CHAR strValue[(0x8cf+5134-0x1cdb)]={(0x9e7+2406-0x134d)};if(
+needAck){TP_FCS=(0x1bc0+629-0x1e35);sprintf(strValue,"\x25\x64",
+(0x396+8242-0x23c7));}else{TP_FCS=(0x92d+7001-0x23b3);sprintf(strValue,
+"\x25\x64",(0x1020+4495-0x21ad));}sprintf(reportParam.SCA,"\x25\x73",cfg_get(
"\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,(0xf1b+220-0xff7),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu.
+g_zUfiSms_ackPdu,(0x43c+5-0x441),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu.
length=String2Bytes(ackPduStr,g_zUfiSms_ackPdu.pdu,strlen(ackPduStr));memset(
-g_zUfiSms_ackPdu.pdu,(0x12e5+380-0x1461),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
+g_zUfiSms_ackPdu.pdu,(0xce1+2820-0x17e5),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
g_zUfiSms_ackPdu.pdu,&ackPduStr,sizeof(ackPduStr));atBase_SendMsgToSelf(
ZAT_CNMA_CMD,strValue,sizeof(strValue));
#endif
-#if (0x1ef4+2002-0x26c6)
-CHAR strValue[(0x5b4+5900-0x1cbe)]={(0x957+7591-0x26fe)};if(needAck){snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0x64b+2079-0xe69));}else{snprintf(strValue
-,sizeof(strValue),"\x25\x64",(0xe5b+2196-0x16ed));}zSvr_InnerSendMsg(
+#if (0x94d+1059-0xd70)
+CHAR strValue[(0x830+397-0x9bb)]={(0x1208+1019-0x1603)};if(needAck){snprintf(
+strValue,sizeof(strValue),"\x25\x64",(0x69b+7183-0x22a9));}else{snprintf(
+strValue,sizeof(strValue),"\x25\x64",(0x12d9+816-0x1607));}zSvr_InnerSendMsg(
ZUFI_MODULE_ID_AT_LOCAL,ZUFI_MODULE_ID_AT_UNSOLI,MSG_CMD_AT_CNMA,strlen(strValue
),strValue);
#endif
-if(needAck){zSms_SendCnmaReq((0xb13+1520-0x1102));}else{zSms_SendCnmaReq(
-(0xb1a+7079-0x26bf));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq*
-ptSendMsg){if(NULL==ptSendMsg||(0x1142+3221-0x1dd7)==ptSendMsg->receiver_count){
+if(needAck){zSms_SendCnmaReq((0x1019+1836-0x1744));}else{zSms_SendCnmaReq(
+(0x5af+8391-0x2674));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq*
+ptSendMsg){if(NULL==ptSendMsg||(0x166+6997-0x1cbb)==ptSendMsg->receiver_count){
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[(0xd2d+1262-0x121b)],ptSendMsg->
+,ptSendMsg->receiver_count,ptSendMsg->dest_num[(0x8e7+4133-0x190c)],ptSendMsg->
msg_len,ptSendMsg->id);
-#if (0x946+3643-0x1780)
+#if (0x15ba+365-0x1726)
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=(0x43a+5392-0x194a);
-if(ptSendMsg->isDelete==TRUE||-(0x43c+4666-0x1675)!=ptSendMsg->id){(void)
+sc_cfg_set(NV_SMS_SEND_RESULT,"");g_zUfiSms_SendFailedCount=(0x1322+4984-0x269a)
+;if(ptSendMsg->isDelete==TRUE||-(0x10b+5193-0x1553)!=ptSendMsg->id){(void)
zUfiSms_DeleteDraftSms(ptSendMsg->id);}zUfiSms_SetGlobalDcsLang(ptSendMsg->dcs);
-memset(&g_zUfiSms_GroupSms,(0x648+704-0x908),sizeof(g_zUfiSms_GroupSms));if(
+memset(&g_zUfiSms_GroupSms,(0xea1+609-0x1102),sizeof(g_zUfiSms_GroupSms));if(
ZUFI_FAIL==zUfiSms_FillGroupSms(ptSendMsg,&g_zUfiSms_GroupSms)){return
-WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0x799+6731-0x21e4),sizeof(
+WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0xb8d+5790-0x222b),sizeof(
g_zUfiSms_ConcatSms));g_zUfiSms_UnitLen=zUfiSms_FillConcatSms(ptSendMsg,&
g_zUfiSms_ConcatSms);g_zUfiSms_IsConcatSendSuc=TRUE;g_zUfiSms_CurConcatSegNo=
-(0xd45+324-0xe89);memset(g_zUfiSms_DbStoreData,(0x1bbd+2204-0x2459),sizeof(
-g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0x685+4460-0x17e7)){
-g_displaymode=(0x8a5+6975-0x23e3);at_print(LOG_DEBUG,
+(0x9ef+4333-0x1adc);memset(g_zUfiSms_DbStoreData,(0x1ce2+19-0x1cf5),sizeof(
+g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0x80a+7486-0x253e)){
+g_displaymode=(0xf60+4770-0x2201);at_print(LOG_DEBUG,
"\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=(0x1b56+1997-0x2323);at_print(LOG_DEBUG,
+);}else{g_displaymode=(0x147+1866-0x891);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=(0x1177+4403-0x22aa);T_zUfiSms_CmdStatus result=
+ tGroupSms;int iSmsLen=(0x17bb+3460-0x253f);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,(0x869+86-0x8bf),sizeof(T_zUfiSms_ConcatInfo));memset(&
-tGroupSms,(0x151+2841-0xc6a),sizeof(T_zUfiSms_GroupInfo));(void)
+memset(&tConcatSms,(0x18fc+222-0x19da),sizeof(T_zUfiSms_ConcatInfo));memset(&
+tGroupSms,(0x23bc+268-0x24c8),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=
-(0x22e2+294-0x2408);tGroupSms.current_receiver<tGroupSms.total_receiver;
-tGroupSms.current_receiver++){tConcatSms.current_sending=(0x5f9+2091-0xe24);
-result=zUfiSms_SaveSmsToDb(pSaveBuff,&tConcatSms,&tGroupSms,iSmsLen);at_print(
-LOG_DEBUG,
+(0x415+120-0x48d);tGroupSms.current_receiver<tGroupSms.total_receiver;tGroupSms.
+current_receiver++){tConcatSms.current_sending=(0x40c+4141-0x1439);result=
+zUfiSms_SaveSmsToDb(pSaveBuff,&tConcatSms,&tGroupSms,iSmsLen);at_print(LOG_DEBUG
+,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x52\x61\x77\x53\x6d\x73\x20\x63\x75\x72\x72\x65\x6e\x74\x5f\x72\x65\x63\x65\x69\x76\x65\x72\x3d\x25\x64\x2c\x72\x65\x73\x75\x6c\x74\x3d\x25\x64" "\n"
,tGroupSms.current_receiver,result);}sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);if(g_zUfiSms_MemFullFlag[
@@ -127,16 +127,16 @@
memoryFullbeforeDelete=FALSE;BOOL unreadBeforeDelete=FALSE;if(NULL==ptDelBuff){
return WMS_CMD_FAILED;}at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x21\x21\x21\x21\x21\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x6d\x73\x21\x21\x63\x6f\x75\x6e\x74\x3a\x25\x64\x2f\x69\x64\x5b\x25\x64\x5d\x2e" "\n"
-,ptDelBuff->all_or_count,ptDelBuff->id[(0x1968+2138-0x21c2)]);(void)
+,ptDelBuff->all_or_count,ptDelBuff->id[(0x209+6363-0x1ae4)]);(void)
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_ChangeMainState(
-SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0x82f+5468-0x1d8b),sizeof(
+SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0x504+8316-0x2580),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((0x20a9+260-0x21ad)<
+,g_zUfiSms_DelMsg.nv_count,g_zUfiSms_DelMsg.sim_count);if((0x1b6c+1368-0x20c4)<
g_zUfiSms_DelMsg.nv_count){if(g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]){
memoryFullbeforeDelete=TRUE;}unreadBeforeDelete=zUfiSms_IsUnreadSms(
ZTE_WMS_MEMORY_NV);result=(T_zUfiSms_CmdStatus)zUfiSms_DeleteNvSms();(void)
@@ -147,114 +147,114 @@
memoryFullbeforeDelete&&!g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]){
at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x20\x73\x65\x6e\x64\x20\x41\x54\x2b\x5a\x4d\x45\x4e\x41\x3d\x30" "\n"
-);zSms_SendZmenaReq((0x807+3468-0x1593));}if(memoryFullbeforeDelete&&!
+);zSms_SendZmenaReq((0xf9c+4914-0x22ce));}if(memoryFullbeforeDelete&&!
g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]||unreadBeforeDelete&&!
zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_DEFAULT);}}if((0x70b+736-0x9eb)<g_zUfiSms_DelMsg.sim_count){result=
+MSG_SMS_DEFAULT);}}if((0x5af+4970-0x1919)<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=(0xf6a+4004-0x1f0e);
-T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0x1d02+217-0x1da9)]=
-{(0x949+2246-0x120f)};if(NULL==ptModifyBuff){at_print(LOG_ERR,
+T_zUfiSms_ModifyFlag*ptModifyBuff){unsigned long i=(0x1791+2546-0x2183);
+T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0x23b+8762-0x2443)]=
+{(0x239+9083-0x25b4)};if(NULL==ptModifyBuff){at_print(LOG_ERR,
"\x69\x6e\x70\x75\x74\x73\x20\x69\x73\x20\x6e\x75\x6c\x6c\x2e");return
-WMS_CMD_FAILED;}for(i=(0x5dc+1979-0xd97);i<ptModifyBuff->total_id;i++){if(
-ptModifyBuff->id[i]<(0xf6+9399-0x25ac)||ZUFI_FAIL==zUfiSms_UpdateSmsTagInDb(
+WMS_CMD_FAILED;}for(i=(0xd4d+6554-0x26e7);i<ptModifyBuff->total_id;i++){if(
+ptModifyBuff->id[i]<(0xe8a+662-0x111f)||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[(0x3e0+6212-0x1c24)])){return ZUFI_FAIL;}if((0xc9a+6235-0x24f5)
+ptModifyBuff->id[(0xabd+1062-0xee3)])){return ZUFI_FAIL;}if((0x8fa+3269-0x15bf)
==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_READING);}if((0x1740+3518-0x24fe)==strcmp(acStorePos,
-ZTE_WMS_DB_SIM_TABLE)&&ptModifyBuff->total_id>(0x839+7165-0x2436)){
-zUfiSms_ModifyModemSms(ptModifyBuff);}return result;}T_zUfiSms_CmdStatus
-zUfiSms_SetSmsPara(T_zUfiSms_ParaInfo*ptParaBuff){int atRes=(0x1f79+1412-0x24fd)
-;CHAR sca[ZTE_WMS_ADDRESS_DIGIT_MAX_V01+(0xac9+2574-0x14d6)]={
-(0xd5f+4319-0x1e3e)};CHAR store[(0x9d2+4882-0x1cd0)]={(0x15ec+1098-0x1a36)};CHAR
- defaultStore[(0x6d6+2344-0xfcc)]={(0x489+5555-0x1a3c)};if(ptParaBuff==ZUFI_NULL
-){return WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=(0x1641+1725-0x1cfe)){
-strncpy(sca,ptParaBuff->sca,sizeof(sca)-(0x1f46+119-0x1fbc));at_print(LOG_DEBUG,
+MSG_SMS_READING);}if((0xcda+1444-0x127e)==strcmp(acStorePos,ZTE_WMS_DB_SIM_TABLE
+)&&ptModifyBuff->total_id>(0x1448+3889-0x2379)){zUfiSms_ModifyModemSms(
+ptModifyBuff);}return result;}T_zUfiSms_CmdStatus zUfiSms_SetSmsPara(
+T_zUfiSms_ParaInfo*ptParaBuff){int atRes=(0xdea+981-0x11bf);CHAR sca[
+ZTE_WMS_ADDRESS_DIGIT_MAX_V01+(0x1425+1856-0x1b64)]={(0xe72+1091-0x12b5)};CHAR
+store[(0x881+7756-0x26b9)]={(0x960+3874-0x1882)};CHAR defaultStore[
+(0x1197+3212-0x1df1)]={(0x288+1495-0x85f)};if(ptParaBuff==ZUFI_NULL){return
+WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=(0x122+1882-0x87c)){strncpy(sca,
+ptParaBuff->sca,sizeof(sca)-(0x53+4551-0x1219));at_print(LOG_DEBUG,
"\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')&&((0xb39+3399-0x1880)!=strcmp(
+if((*(ptParaBuff->default_store)!='\0')&&((0x121f+3787-0x20ea)!=strcmp(
defaultStore,ptParaBuff->default_store))){{strncpy(store,ptParaBuff->
-default_store,sizeof(store)-(0xb95+1376-0x10f4));}atRes=zSms_SendCnmiReq(store);
-if(atRes!=ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0x494+3483-0x122e)==
+default_store,sizeof(store)-(0xc40+3009-0x1800));}atRes=zSms_SendCnmiReq(store);
+if(atRes!=ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0xaed+2494-0x14aa)==
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[(0x2fd+2104-0xb30)]={(0xf49+2738-0x19fb)};char remind_flag[
-(0x1b31+2320-0x243c)];int sms_count=(0x584+357-0x6e9);int remind_count=
-(0x1836+1751-0x1f0d);memset(sms_rec_flag,(0x18da+557-0x1b07),sizeof(sms_rec_flag
-));sc_cfg_get(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag,sizeof(sms_rec_flag));
-sms_count=atoi(sms_rec_flag);if(sms_count<(0x4ac+1170-0x93e)||sms_count>INT_MAX-
-(0x1383+3998-0x2320)){at_print(LOG_ERR,
+char sms_rec_flag[(0xd43+3577-0x1b37)]={(0x3c8+1447-0x96f)};char remind_flag[
+(0x1569+3034-0x213e)];int sms_count=(0x1f1a+926-0x22b8);int remind_count=
+(0x22+9456-0x2512);memset(sms_rec_flag,(0x3ef+8115-0x23a2),sizeof(sms_rec_flag))
+;sc_cfg_get(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag,sizeof(sms_rec_flag));
+sms_count=atoi(sms_rec_flag);if(sms_count<(0xa92+2222-0x1340)||sms_count>INT_MAX
+-(0x379+5430-0x18ae)){at_print(LOG_ERR,
"\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,(0xdb2+6422-0x26c8),sizeof(sms_rec_flag)
-);snprintf(sms_rec_flag,sizeof(sms_rec_flag),"\x25\x64",sms_count+
-(0xb9c+6777-0x2614));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);
+,sms_count);return;}memset(sms_rec_flag,(0x9b0+1400-0xf28),sizeof(sms_rec_flag))
+;snprintf(sms_rec_flag,sizeof(sms_rec_flag),"\x25\x64",sms_count+
+(0x18f5+958-0x1cb2));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);
sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED_LED,sms_rec_flag);memset(remind_flag,
-(0x1d34+2421-0x26a9),sizeof(remind_flag));snprintf(remind_flag,sizeof(
-remind_flag),"\x25\x64",remind_count+(0x191c+2805-0x2410));sc_cfg_set(
+(0x73f+6378-0x2029),sizeof(remind_flag));snprintf(remind_flag,sizeof(remind_flag
+),"\x25\x64",remind_count+(0xe94+1946-0x162d));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]={
-(0x1f68+476-0x2144)};T_zUfiSms_DbStoreData tDbStoreData={(0x1dc4+749-0x20b1)};
-int isPushSms=(0x1016+1313-0x1537);if(strcmp(ptRespData->pdu,"")==
-(0x16a+3360-0xe8a)){CHAR srState[(0x2431+255-0x24fe)]={(0x18a7+1997-0x2074)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0xaac+319-0xbeb)!=strcmp(
+(0xaa3+2965-0x1638)};T_zUfiSms_DbStoreData tDbStoreData={(0x1901+2011-0x20dc)};
+int isPushSms=(0xe70+1622-0x14c6);if(strcmp(ptRespData->pdu,"")==
+(0x247+8498-0x2379)){CHAR srState[(0xba2+4433-0x1cc1)]={(0x974+3258-0x162e)};
+sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x5d4+471-0x7ab)!=strcmp(
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(
-(0x996+3145-0x15da)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
+(0x2e9+381-0x461)==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!=
-(0xbf6+1919-0x1374)){return(0x17d+3103-0xd9c);}zUfiSms_GetCurrentRecvTotalSeq(
+(0x384+173-0x430)){return(0x202b+736-0x230b);}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[(0x5fb+3854-0x1509)],data->
-concat_info[(0x1310+3026-0x1ee1)],data->concat_info[(0x24e8+202-0x25b0)]);if(
-data->concat_info[(0x13fa+4465-0x256a)]==atoi(pmsg->total_seq)){return
-(0x947+3339-0x1652);}return-(0x4e6+1865-0xc2e);}void zUfiSms_TrafficChangeSmsTag
-(T_zUfiSms_DbStoreData*data){CHAR smsNumber[(0x1e6c+204-0x1f06)]={
-(0xde6+1255-0x12cd)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,smsNumber,sizeof(smsNumber
-));if((0x122d+667-0x14c8)==strcmp(smsNumber,data->number)){data->tag=
-WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=(0x1513+3608-0x232a);}}void
+,pmsg->id,atoi(pmsg->total_seq),data->concat_info[(0x1ee6+551-0x210d)],data->
+concat_info[(0x14d0+3634-0x2301)],data->concat_info[(0x37+9586-0x25a7)]);if(data
+->concat_info[(0x2568+386-0x26e9)]==atoi(pmsg->total_seq)){return
+(0xc87+637-0xf04);}return-(0x19b0+1172-0x1e43);}void zUfiSms_TrafficChangeSmsTag
+(T_zUfiSms_DbStoreData*data){CHAR smsNumber[(0x83a+233-0x8f1)]={
+(0x8b2+4397-0x19df)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,smsNumber,sizeof(smsNumber
+));if((0x129+5381-0x162e)==strcmp(smsNumber,data->number)){data->tag=
+WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=(0x407+3471-0x1195);}}void
zUfiSms_HandleTrafficSms(T_zUfiSms_DbStoreData*data){int iSmsId=
-(0x109+1776-0x7f9);SMS_MSG_INFO msg={(0x206+4316-0x12e2)};CHAR smsNumber[
-(0x275+9081-0x25bc)]={(0x8c0+1078-0xcf6)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
+(0xa30+6978-0x2572);SMS_MSG_INFO msg={(0xa41+1357-0xf8e)};CHAR smsNumber[
+(0xa7c+5685-0x207f)]={(0xa72+6062-0x2220)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
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((0x3bb+8614-0x2561)==strcmp(smsNumber,data->number))
-{if((0x2076+865-0x23d7)!=zUfiSms_CheckIfWholeSms(data,&msg)){at_print(LOG_DEBUG,
+,data->number,smsNumber);if((0x23b2+646-0x2638)==strcmp(smsNumber,data->number))
+{if((0xcfb+3105-0x191c)!=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]={
-(0x19bd+123-0x1a38)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x543+2078-0xd61);SMS_PARAM one_sms={(0x906+272-0xa16)};int
-unread_sms_before_recv_new_sms=(0x917+6407-0x221e);memset(&tDbStoreData,
-(0x262+4824-0x153a),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x17a+2220-0xa26)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x21bd+36-0x21e1);SMS_PARAM one_sms={(0xd4+9190-0x24ba)};int
+unread_sms_before_recv_new_sms=(0x858+1039-0xc67);memset(&tDbStoreData,
+(0xc06+3801-0x1adf),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
"\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,"")==(0x420+3038-0xffe)){CHAR srState[(0x45c+4923-0x1765)
-]={(0x3df+962-0x7a1)};sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if(
-(0x96a+4055-0x1941)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0x13c3+2644-0x1e17)){CHAR srState[
+(0x1c81+2307-0x2552)]={(0xb67+636-0xde3)};sc_cfg_get(NV_SR_STATE,srState,sizeof(
+srState));if((0xd17+2390-0x166d)!=strcmp(srState,
"\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((0x2e5+2439-0xc6c));}if(
-SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0xc1f+25-0xc38));}if(SMS_NO_PUSH
+!=isPushSms){at_print(LOG_DEBUG,
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
,one_sms.index);at_print(LOG_DEBUG,
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x52\x65\x66\x65\x72\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
@@ -265,32 +265,32 @@
,one_sms.TP_CurrentPieceNum);zUfiSms_ChangeMainState(SMS_STATE_RECVED);
zUfiSms_Ack_new_msg(TRUE);return;}zUfiSms_GetReportStatus(ptRespData->pdu,&
ptRespData->stat);(void)String2Bytes(ptRespData->pdu,acFormatPdu,(int)strlen(
-ptRespData->pdu));if((0x183+2086-0x9a4)==ptRespData->stat){(void)
+ptRespData->pdu));if((0x309+8202-0x230e)==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=(0x16a+4034-0x112b);}else{
-unread_sms_before_recv_new_sms=(0x4a1+3732-0x1335);}zUfiSms_TrafficChangeSmsTag(
-&tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,
-iStorePos,-(0x6a2+7911-0x2588))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
-(0x1173+3512-0x1f2a));return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){
+unread_sms_before_recv_new_sms=(0x35a+1552-0x969);}else{
+unread_sms_before_recv_new_sms=(0x239+1913-0x9b2);}zUfiSms_TrafficChangeSmsTag(&
+tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,
+iStorePos,-(0x619+2601-0x1041))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
+(0x79c+2732-0x1247));return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){
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]={
-(0xef7+199-0xfbe)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0xf10+5303-0x23c7);SMS_PARAM one_sms={(0x10d6+455-0x129d)};CHAR defaultStore[
-(0x61f+4085-0x15e2)]={(0x844+6121-0x202d)};memset(&tDbStoreData,
-(0x13d4+1634-0x1a36),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x6c7+6721-0x2108)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x95+4618-0x129f);SMS_PARAM one_sms={(0x14e6+1256-0x19ce)};CHAR defaultStore[
+(0x17ca+2869-0x22cd)]={(0x10ca+4898-0x23ec)};memset(&tDbStoreData,
+(0xb3a+346-0xc94),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
"\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,"")==(0x1810+3195-0x248b)){CHAR srState[
-(0x1156+2083-0x1947)]={(0x11eb+3577-0x1fe4)};sc_cfg_get(NV_SR_STATE,srState,
-sizeof(srState));if((0x331+3136-0xf71)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0x262+8731-0x247d)){CHAR srState[(0x978+1225-0xe0f)
+]={(0x1085+5540-0x2629)};sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if(
+(0xd26+4292-0x1dea)!=strcmp(srState,
"\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((0xfb4+646-0x123a));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x19da+2678-0x2450));}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(
-(0x19d1+1050-0x1de6)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
+(0x1096+3626-0x1ebb)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");return;}
sc_cfg_get(NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if(
-(0x121a+730-0x14f4)==strcmp(defaultStore,"\x73\x69\x6d")){iStorePos=
+(0x16e0+2534-0x20c6)==strcmp(defaultStore,"\x73\x69\x6d")){iStorePos=
WMS_STORAGE_TYPE_UIM_V01;}(void)zUfiSms_DecodeSmsData(&tDbStoreData,ptRespData->
index,iStorePos,(T_SmsStatus)ptRespData->stat,WMS_MESSAGE_FORMAT_GW_PP_V01,
ptRespData->length,acFormatPdu);if(tDbStoreData.sms_class==WMS_MESSAGE_CLASS_2){
iStorePos=WMS_STORAGE_TYPE_UIM_V01;}zUfiSms_TrafficChangeSmsTag(&tDbStoreData);
if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-
-(0xc80+5686-0x22b5))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
+(0x93f+477-0xb1b))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
zUfiSms_CmgrNvSet();zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);
zUfiSms_ChangeMainState(SMS_STATE_RECVED);zUfiSms_HandleTrafficSms(&tDbStoreData
);return;}void zUfiSms_CmgrRespProc(T_zSms_SmsInd*ptRespData){zUfiSms_StoreType
iStorePos=WMS_STORAGE_TYPE_NV_V01;unsigned char acFormatPdu[ZSMS_PDU_SIZE]={
-(0xc35+2090-0x145f)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0xffc+1871-0x174b);SMS_PARAM one_sms={(0x1f04+1801-0x260d)};int
-unread_sms_before_recv_new_sms=(0x8b2+4498-0x1a44);memset(&tDbStoreData,
-(0x1ce7+812-0x2013),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x95b+320-0xa9b)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0xbec+5097-0x1fd5);SMS_PARAM one_sms={(0x2695+84-0x26e9)};int
+unread_sms_before_recv_new_sms=(0x1900+2127-0x214f);memset(&tDbStoreData,
+(0x5ef+6178-0x1e11),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x45\x6e\x74\x65\x72\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2f\x70\x64\x75\x3a\x25\x73\x21" "\n"
,ptRespData->index,ptRespData->stat,ptRespData->length,ptRespData->pdu);
zUfiSms_SendSmsStatusInfo(MSG_SMS_READING);if(strcmp(ptRespData->pdu,"")==
-(0x9e8+7224-0x2620)){CHAR srState[(0x6d4+4445-0x17ff)]={(0x1786+513-0x1987)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x1211+291-0x1334)!=strcmp(
+(0x306+9040-0x2656)){CHAR srState[(0x12e2+4323-0x2393)]={(0xb52+3134-0x1790)};
+sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x51f+1708-0xbcb)!=strcmp(
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((0x8dd+5490-0x1e4f));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x2014+1432-0x25ac));}if(
SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
,one_sms.index);at_print(LOG_DEBUG,
@@ -353,81 +353,81 @@
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x43\x75\x72\x72\x65\x6e\x74\x50\x69\x65\x63\x65\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
,one_sms.TP_CurrentPieceNum);zUfiSms_ChangeMainState(SMS_STATE_RECVED);return;}
zUfiSms_GetReportStatus(ptRespData->pdu,&ptRespData->stat);(void)String2Bytes(
-ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if((0xd6b+2541-0x1753)
+ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if((0x4cd+5509-0x1a4d)
==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=
-(0x194+3275-0xe5e);}else{unread_sms_before_recv_new_sms=(0x65b+5119-0x1a5a);}if(
-ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-
-(0x10c+5126-0x1511))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
+(0xbc2+3161-0x181a);}else{unread_sms_before_recv_new_sms=(0xac0+2059-0x12cb);}if
+(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-
+(0x10f5+779-0x13ff))){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={(0x7d0+2450-0x1162)};g_zUfiSms_DbStoreData->
-msg_displaymode=g_displaymode;if(g_zUfiSms_DbStoreData->msg_displaymode!=
-(0x1666+1153-0x1ae6)){if((0x110b+448-0x12cb)==zUfiSms_WriteSmsToDb(&
-g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x13f2+3331-0x20f4)],
-WMS_STORAGE_TYPE_NV_V01,-(0xd0f+3001-0x18c7))){g_zUfiSms_MsgRefer++;(void)
+){T_zUfiSms_StatusInfo tStatusInfo={(0x12ef+2609-0x1d20)};g_zUfiSms_DbStoreData
+->msg_displaymode=g_displaymode;if(g_zUfiSms_DbStoreData->msg_displaymode!=
+(0x20d8+36-0x20fb)){if((0x1a93+1815-0x21aa)==zUfiSms_WriteSmsToDb(&
+g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0xee9+1218-0x13aa)],
+WMS_STORAGE_TYPE_NV_V01,-(0x10c6+5603-0x26a8))){g_zUfiSms_MsgRefer++;(void)
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=
-(0x3a6+6870-0x1e7c);memset((void*)&tStatusInfo,(0x9b+1370-0x5f5),sizeof(
+(0x317+8022-0x226d);memset((void*)&tStatusInfo,(0xd4d+6156-0x2559),sizeof(
T_zUfiSms_StatusInfo));tStatusInfo.err_code=ZTE_SMS_CMS_NONE;tStatusInfo.
send_failed_count=g_zUfiSms_SendFailedCount;tStatusInfo.delete_failed_count=
-(0x199a+2650-0x23f4);if(g_zUfiSms_SendFailedCount==(0x1422+2317-0x1d2f)){
+(0x17df+3167-0x243e);if(g_zUfiSms_SendFailedCount==(0x940+2502-0x1306)){
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={(0x761+830-0xa9f)};int
-errs=(0x1857+1139-0x1cca);key_t req_id=ftok(
+int zte_fota_notifyPushMsg(int cmd){FOTA_MSG_BUF msg={(0x1b5a+2390-0x24b0)};int
+errs=(0xd5d+1522-0x134f);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"
-,(0x155b+668-0x17f6));int msgid=msgget(req_id,(0x2380+671-0x261f));if(msgid!=-
-(0x6aa+1372-0xc05)){msg.mtype=(0x123f+998-0x1624);msg.mtext[(0xea5+3451-0x1c20)]
+,(0x36b+7667-0x215d));int msgid=msgget(req_id,(0xa8c+4825-0x1d65));if(msgid!=-
+(0x1ca1+95-0x1cff)){msg.mtype=(0x378+8386-0x2439);msg.mtext[(0xd6f+3846-0x1c75)]
=WEBUI_NOTIFY_PUSH_MSG_;errs=msgsnd(msgid,&msg,sizeof(msg)-sizeof(long),
-(0x1434+354-0x1596));}return(errs<(0xcc6+4992-0x2046)?(0x7bf+3725-0x164c):
-(0x40f+2625-0xe4f));}
-#if (0x1b9+1470-0x777)
+(0x110c+228-0x11f0));}return(errs<(0x9d4+2875-0x150f)?(0x6d0+1890-0xe32):
+(0x17a9+1404-0x1d24));}
+#if (0xe78+679-0x111f)
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 (0x505+5841-0x1bd6)
+#if (0x16c2+1854-0x1e00)
int atSms_SendZmglReq(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){int res
-=(0x15b3+3389-0x22f0);pthread_mutex_lock(&smsdb_mutex);res=zSvr_SendAtSyn(
+=(0x940+996-0xd24);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={(0x78d+4682-0x19d7)};sc_cfg_set(NV_SMS_LOAD_RESULT
-,"\x6f\x6b");tStatus.cmd_status=WMS_CMD_SUCCESS;tStatus.cmd=WMS_SMS_CMD_INIT;(
+T_zUfiSms_StatusInfo tStatus={(0x9+8571-0x2184)};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={
-(0x13e1+1951-0x1b80)};sc_cfg_set(NV_SMS_LOAD_RESULT,"\x66\x61\x69\x6c");
+(0xa0b+4653-0x1c38)};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={
-(0x1d35+2250-0x25ff)};printf(
+(0xa4a+6439-0x2371)};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,
-(0x171b+3694-0x2589),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
-->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x13b9+4504-0x2550));printf(
+(0x1920+2371-0x2263),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
+->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x1450+2772-0x1f23));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[(0x4eb+6167-0x1cee)
-]={(0x2e9+4163-0x132c)};iSmsIndex=atoi(pAtCmdPara);printf(
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x23c+2041-0xa21)]
+={(0x22fd+640-0x257d)};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 (0x36c+340-0x4c0)
-static T_zUfiSms_SmsItem tSmsPara={(0x117f+3627-0x1faa)};T_zUfiSms_CmgrSetRsp
-tCmgrRsp={(0x746+2942-0x12c4)};printf(
+#if (0x124a+826-0x1584)
+static T_zUfiSms_SmsItem tSmsPara={(0x2c+3299-0xd0f)};T_zUfiSms_CmgrSetRsp
+tCmgrRsp={(0x1474+1747-0x1b47)};printf(
"\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x67\x72\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->result){printf(
@@ -436,14 +436,14 @@
.stat=tSmsPara.stat;sscanf(pResLine->resParas,"\x25\x35\x30\x30\x73",tCmgrRsp.
pdu);zUfiSms_CmgrRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();sc_cfg_set(
"\x73\x6d\x73\x5f\x72\x65\x63\x76\x5f\x72\x65\x73\x75\x6c\x74","\x6f\x6b");}else
-{memset(&tSmsPara,(0x100a+4376-0x2122),sizeof(T_zUfiSms_SmsItem));(void)
-zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0x1c9d+1662-0x2319));tSmsPara.
+{memset(&tSmsPara,(0x215c+1356-0x26a8),sizeof(T_zUfiSms_SmsItem));(void)
+zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0xb3f+1243-0x1018));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[(0x4e8+7875-0x2397)]={(0x2321+506-0x251b)};iSmsIndex=atoi(pAtCmdPara);
+pAtcmdStr[(0x9b3+2293-0x1294)]={(0xf77+2502-0x193d)};iSmsIndex=atoi(pAtCmdPara);
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x5a\x6d\x67\x72\x52\x65\x71\x20\x47\x65\x74\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2e" "\n"
,iSmsIndex);snprintf(pAtcmdStr,sizeof(pAtcmdStr),
@@ -456,8 +456,8 @@
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x72\x45\x72\x72\x20\x20\x53\x4d\x53\x20\x7a\x6d\x67\x72\x20\x69\x73\x20\x66\x61\x69\x6c" "\n"
);{sc_cfg_set(NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(
SMS_STATE_RECVED);}}VOID atSms_RecvZmgrRsp(T_zAt_AtRes*pResLine){static
-T_zUfiSms_SmsItem tSmsPara={(0x10a+2603-0xb35)};T_zUfiSms_CmgrSetRsp tCmgrRsp={
-(0x1a3+4113-0x11b4)};printf(
+T_zUfiSms_SmsItem tSmsPara={(0xcca+5167-0x20f9)};T_zUfiSms_CmgrSetRsp tCmgrRsp={
+(0x514+1578-0xb3e)};printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x72\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->result){printf(
@@ -465,56 +465,56 @@
);return;}tCmgrRsp.index=tSmsPara.index;tCmgrRsp.length=tSmsPara.length;tCmgrRsp
.stat=tSmsPara.stat;sscanf(pResLine->resParas,"\x25\x35\x30\x30\x73",tCmgrRsp.
pdu);zUfiSms_ZmgrRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();sc_cfg_set(
-NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,(0x3fc+7616-0x21bc),sizeof
+NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,(0xe2b+4134-0x1e51),sizeof
(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine->resParas,sizeof(pResLine
-->resParas),&tSmsPara,(0x2c6+3931-0x121f));tSmsPara.index=iSmsIndex;printf(
+->resParas),&tSmsPara,(0xbad+52-0xbdf));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[(0x16f+8488-0x2283)
-]={(0x675+3449-0x13ee)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
-"\x41\x54\x2b\x43\x4d\x47\x44\x3d\x25\x73" "\r\n",pAtCmdPara);return
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[
+(0x186f+3709-0x26d8)]={(0x1766+1387-0x1cd1)};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[(0xc+6781-0x1a7f)]={(0x13fa+3192-0x2072)};
-int used=(0x884+1316-0xda8);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+atSms_RecvCmgdOk(VOID){CHAR strUsed[(0x13af+1837-0x1ad2)]={(0x3+768-0x303)};int
+used=(0x1adb+2950-0x2661);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
"\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)-(0x245d+135-0x24e3);if(used<(0xa65+6454-0x239b)){used=
-(0x1456+4563-0x2629);}memset(&strUsed,(0x6d5+5702-0x1d1b),(0xc2d+1637-0x1288));
+strUsed)-(0x288+237-0x374);if(used<(0x14b1+2150-0x1d17)){used=
+(0x17f1+1334-0x1d27);}memset(&strUsed,(0x74a+3554-0x152c),(0x186+4523-0x1327));
snprintf(strUsed,sizeof(strUsed),"\x25\x64",used);sc_cfg_set(
ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed);}VOID atSms_RecvCmgdErr(VOID){sc_cfg_set
(NV_SMS_DEL_RESULT,"\x66\x61\x69\x6c");printf(
"\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[(0x7b4+6909-0x22a7)]={
-(0x199a+109-0x1a07)};CHAR strTotal[(0x32f+6975-0x1e64)]={(0x17d7+2138-0x2031)};
-CHAR strUsed[(0xd59+4800-0x200f)]={(0x1534+692-0x17e8)};int total=
-(0x198+8675-0x237b);int used=(0x199b+21-0x19b0);int remain=(0x12b5+3117-0x1ee2);
+);}VOID atSms_RecvCmgdFinish(VOID){char StrValue[(0x3f9+1526-0x9e5)]={
+(0x8e5+4586-0x1acf)};CHAR strTotal[(0x370+1896-0xace)]={(0x1f95+1092-0x23d9)};
+CHAR strUsed[(0x1420+3293-0x20f3)]={(0x1af1+995-0x1ed4)};int total=
+(0x4a6+4572-0x1682);int used=(0x18a0+953-0x1c59);int remain=(0x8ea+1695-0xf89);
sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
strUsed);sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,strTotal,sizeof(strTotal));
-total=atoi(strTotal);remain=total-used;if(remain<(0x83f+7677-0x263c)){remain=
-(0x6a4+3260-0x1360);}memset(&StrValue,(0x620+7514-0x237a),(0x2cf+2693-0xd4a));
+total=atoi(strTotal);remain=total-used;if(remain<(0x587+1059-0x9aa)){remain=
+(0x6b3+1204-0xb67);}memset(&StrValue,(0x1419+756-0x170d),(0x4a1+8345-0x2530));
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=(0x207+6743-0x1c5e);CHAR pAtcmdStr[ZSMS_PDU_SIZE
-]={(0x18b2+2857-0x23db)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+pAtRst,int atRstSize){int atRes=(0x10ac+3479-0x1e43);CHAR pAtcmdStr[
+ZSMS_PDU_SIZE]={(0x703+7201-0x2324)};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,(0x1b52+2136-0x23aa),
-ZSMS_PDU_SIZE);if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-
-(0x738+5212-0x1b93)){memcpy(pAtcmdStr,g_zUfiSms_FinalCmgsBuf.pdu,strlen(
-g_zUfiSms_FinalCmgsBuf.pdu));}else{printf(
+ZAT_RESULT_SMS){return atRes;}memset(pAtcmdStr,(0x24ec+515-0x26ef),ZSMS_PDU_SIZE
+);if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-(0xee4+2818-0x19e5)){
+memcpy(pAtcmdStr,g_zUfiSms_FinalCmgsBuf.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));
+}else{printf(
"\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-(0xfbd+5309-0x2478));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.
-pdu))=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0xd24+3746-0x1bc6),atRstSize);return
+ZSMS_PDU_SIZE-(0x1d65+1279-0x2262));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.
+pdu))=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0x18b1+3182-0x251f),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-(0xbba+2028-0x13a5)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0x1183+5250-0x2604)].tag=WMS_TAG_TYPE_MO_SENT_V01;
zUfiSms_CmgsRespProc(cid);}VOID atSms_RecvCmgsErr(UINT8*pResLine,int cid){
at_print(LOG_DEBUG,
"\x73\x6d\x73\x20\x73\x65\x6e\x64\x65\x64\x20\x66\x61\x69\x6c\x2e\x20" "\n");
@@ -522,16 +522,16 @@
ZTE_WMS_CONCAT_SMS_COUNT_MAX){return;}g_zUfiSms_SendFailedCount++;at_print(
LOG_DEBUG,
"\x73\x65\x6e\x64\x20\x73\x6d\x73\x20\x66\x61\x69\x6c\x65\x64\x2c\x73\x6f\x20\x77\x72\x69\x74\x65\x20\x73\x6d\x73\x20\x74\x6f\x20\x64\x72\x61\x66\x74\x62\x6f\x78\x2e" "\n"
-);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x1407+2082-0x1c28)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x1a88+2413-0x23f4)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x14a1+3423-0x21ff)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x7a6+7442-0x24b7)){
g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc(cid);}VOID
atSms_RecvCmgsRsp(T_zAt_AtRes*pResLine){return;}VOID atSms_RecvCmtRsp(
-T_zAt_AtRes*pResLine){CHAR needSMS[(0xb39+5252-0x1f8b)]={(0x1163+1638-0x17c9)};
-sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xae1+177-0xb92)==
+T_zAt_AtRes*pResLine){CHAR needSMS[(0x9b2+7500-0x26cc)]={(0xe39+3240-0x1ae1)};
+sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x323+1901-0xa90)==
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={(0x4df+275-0x5f2)};
-T_zUfiSms_CmtSetRsp tCmtRsp={(0x560+992-0x940)};if(NULL==pResLine){return;}
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0x20a+3535-0xfd9)};
+T_zUfiSms_CmtSetRsp tCmtRsp={(0x1fa6+224-0x2086)};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 +541,39 @@
"\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,
-(0x9e9+6932-0x24fd),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0x10cb+4880-0x23db),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[
-(0x437+5631-0x1a04)]={(0xe1b+2056-0x1623)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x849+5167-0x1c78)==strcmp(needSMS,"\x6e\x6f")){
-printf(
+(0x1891+954-0x1c19)]={(0x8a3+97-0x904)};sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
+sizeof(needSMS));if((0x27a+7637-0x204f)==strcmp(needSMS,"\x6e\x6f")){printf(
"\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[(0xa19+1971-0x11ae)]={(0x24dd+167-0x2584)};char*
+);return;}char sms_Main_state[(0x12ab+4164-0x22d1)]={(0x768+4173-0x17b5)};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")==
-(0x1137+3237-0x1ddc)){printf(
+(0x11d7+5121-0x25d8)){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(
-(0x332+2436-0xcb6)==strncmp("\x53\x4d",memory,(0x1e8+1951-0x985))){
+(0x2234+1154-0x26b6)==strncmp("\x53\x4d",memory,(0x14b6+1070-0x18e2))){
zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0x831+4783-0x1adc);printf(
+SMS_STATE_RECVING);memory+=(0x7d0+2449-0x115d);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[(0x1e5+6981-0x1cf8)]={(0x1ef7+1052-0x2313)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x55c+7929-0x2455)==strcmp(
+){CHAR needSMS[(0x980+1857-0x108f)]={(0x2459+278-0x256f)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1e84+1151-0x2303)==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={(0xaac+1993-0x1275)};
-T_zUfiSms_CmgrSetRsp tCmgrRsp={(0x115f+2318-0x1a6d)};if(NULL==pResLine){return;}
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0x2476+404-0x260a)};
+T_zUfiSms_CmgrSetRsp tCmgrRsp={(0xdda+2782-0x18b8)};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 +581,80 @@
"\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,
-(0x732+614-0x998),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0x1624+3-0x1627),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[
-(0x1663+2441-0x1fba)]={(0x338+5635-0x193b)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0xbbd+4618-0x1dc7)==strcmp(needSMS,"\x6e\x6f")){
+(0x8f9+6105-0x20a0)]={(0x503+6796-0x1f8f)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0x166+6341-0x1a2b)==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[(0xbe0+4206-0x1c30)]={(0x4cd+8761-0x2706)};char*
+);return;}char sms_Main_state[(0x340+8385-0x23e3)]={(0xa3b+3686-0x18a1)};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")==
-(0xc82+1287-0x1189)){printf(
+(0x1742+3819-0x262d)){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((0xd16+1010-0x1108)==strncmp("\x53\x4d",memory,(0x1122+1380-0x1684))
+,memory);if((0x209+8350-0x22a7)==strncmp("\x53\x4d",memory,(0x1940+1596-0x1f7a))
){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0xdd9+5267-0x2268);printf(
+SMS_STATE_RECVING);memory+=(0x6c9+811-0x9f0);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[(0xbc9+2761-0x167e)]={
-(0x16bf+242-0x17b1)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+ cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x217f+712-0x2433)]={
+(0x13dd+3976-0x2365)};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=(0x444+5157-0x1869);CHAR pAtcmdStr[ZSMS_PDU_SIZE
-]={(0x3fd+5056-0x17bd)};CHAR ackPduStr[(0x1dd1+853-0x20f4)]={(0xb91+5654-0x21a7)
-};if(atoi(pAtCmdPara)==(0x128a+2036-0x1a7d)){snprintf(pAtcmdStr,sizeof(pAtcmdStr
-),"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73" "\r\n",pAtCmdPara);atRes=
-zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,pAtRst,atRstSize);printf(
+pAtRst,int atRstSize){int atRes=(0x1b71+2299-0x246c);CHAR pAtcmdStr[
+ZSMS_PDU_SIZE]={(0x1669+1513-0x1c52)};CHAR ackPduStr[(0x5b9+2966-0x111d)]={
+(0x1197+2501-0x1b5c)};if(atoi(pAtCmdPara)==(0xd12+4238-0x1d9f)){snprintf(
+pAtcmdStr,sizeof(pAtcmdStr),"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73" "\r\n",
+pAtCmdPara);atRes=zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,pAtRst,atRstSize);
+printf(
"\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(0xb92+2259-0x1465);}else{zUfiSms_EncodePdu_DeliverReport(
-ackPduStr,(0x7b2+1723-0xd9a));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+,pAtcmdStr);return(0x1f4b+1159-0x23d2);}else{zUfiSms_EncodePdu_DeliverReport(
+ackPduStr,(0x66d+4075-0x1585));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73\x2c\x25\x64" "\r\n",pAtCmdPara,strlen(
-ackPduStr)/(0x1636+384-0x17b4));atRes=zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,
+ackPduStr)/(0x144+1859-0x885));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,(0x7f8+2253-0x10c5),ZSMS_PDU_SIZE);if(strlen(
-ackPduStr)<ZSMS_PDU_SIZE-(0x7ac+7424-0x24ab)){memcpy(pAtcmdStr,ackPduStr,strlen(
+,pAtcmdStr);memset(pAtcmdStr,(0xd2c+3995-0x1cc7),ZSMS_PDU_SIZE);if(strlen(
+ackPduStr)<ZSMS_PDU_SIZE-(0xd16+5941-0x244a)){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-(0x438+2969-0xfcf));}*(
+,ackPduStr);memcpy(pAtcmdStr,ackPduStr,ZSMS_PDU_SIZE-(0xab1+2202-0x1349));}*(
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,(0xcd4+1947-0x146f),atRstSize);return zSvr_SendAtSyn(
+,pAtcmdStr);memset(pAtRst,(0x8f+9717-0x2684),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]={(0x1439+836-0x177d)};int atRes=
-(0x1d27+781-0x2034);if(pDatabuf==NULL){return;}atRes=atSms_SendCmgdReq(pDatabuf,
+cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x15c9+3247-0x2278)};int atRes=
+(0x1ba6+969-0x1f6f);if(pDatabuf==NULL){return;}atRes=atSms_SendCmgdReq(pDatabuf,
cid,errCode,ZSVR_AT_RES_CODE_LEN);if(atRes==ZSMS_RESULT_OK){atSms_RecvCmgdOk();}
else{atSms_RecvCmgdErr();}atSms_RecvCmgdFinish();}VOID atUnsoli_Report_Cnma(
-UINT8*pDatabuf,int cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0xdfd+2290-0x16ef)}
-;if(pDatabuf==NULL){printf(
+UINT8*pDatabuf,int cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0xb+3481-0xda4)};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]
-={(0x15d9+843-0x1924)};int atRes=(0xc8c+3324-0x1988);if(pDatabuf==NULL){printf(
+={(0x116+6320-0x19c6)};int atRes=(0xd08+581-0xf4d);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]=
-{(0xf29+856-0x1281)};if(pDatabuf==NULL){printf(
+{(0xeb4+2020-0x1698)};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 3af0113..e3e4aad 100755
--- a/ap/app/zte_comm/wlan/src/wifi_ap_ctrl.c
+++ b/ap/app/zte_comm/wlan/src/wifi_ap_ctrl.c
@@ -1516,7 +1516,7 @@
get_mac_config_ssid_key_nv();
#ifndef USE_CAP_SUPPORT
- wlan_ap_get_para(ap_svr);//D80 update when ap start
+ wlan_ap_get_para(ap_svr);//D80 update when ap start api
wlan_ap_save_config(ap_svr);
#endif
}
diff --git a/ap/app/zte_comm/wlan/src/wlan-station.c b/ap/app/zte_comm/wlan/src/wlan-station.c
index ea2efcd..371635b 100755
--- a/ap/app/zte_comm/wlan/src/wlan-station.c
+++ b/ap/app/zte_comm/wlan/src/wlan-station.c
@@ -14,6 +14,10 @@
#include "rtk_arch.h"
#include <semaphore.h>
#include <limits.h>
+//#include <sys/socket.h>
+//#include <netinet/in.h>
+#include <arpa/inet.h>
+
#define SUCCESS "1"
#define FAILED "0"
#define REPLY_BUF_SIZE 4096 // wpa_supplicant's maximum size.
@@ -1267,7 +1271,11 @@
//EAP-SIM/AKA, ÓëÔ±¾Ð´µÄ802.1xÒ²²»Æ¥Å䣬µ¼ÖÂÎÞ·¨¸üÐÂÈȵãÐźÅ
//ÐÞ¸ÄΪɨÃèÈȵãµÄ¼ÓÃÜÀàÐÍΪTKIP CCMP,Ö»ÒªÄÜÔÚ±£´æÈȵãÖÐÕÒµ½´Ë×Ö·û£¬ÔòÈÏΪÊÇͬһ¸öÈȵ㣬µ«ÊÇÎÞ·¨½â¾öÕæµÄÓÐÁ½¸öÏàͬµÄÈȵ㣬Õâ¸öÎÞ·¨Ê¶±ð
{
+#ifdef USE_CAP_SUPPORT
+ g_spot_list_p[i]->signal = scan_result->signal_db;
+#else
g_spot_list_p[i]->signal = scan_result->signal;
+#endif
break;
}
}
@@ -2743,6 +2751,90 @@
}
+static int get_cur_ap_rssi(void)
+{
+ char *reply = NULL;
+ int rssi = 0;
+ char *start = NULL;
+ char *end = NULL;
+
+ reply = sta_docmd("SIGNAL_POLL");
+ if (reply == NULL) {
+ wf_log("SIGNAL_POLL failed\n");
+ return 0;
+ }
+
+ start = strstr(reply, "RSSI=");
+ if (start != NULL) {
+ start += strlen("RSSI="); // skip "RSSI="
+ rssi = strtol(start, &end, 10);
+ if (start == end) {
+ wf_log("Failed to convert RSSI\n");
+ return 0;
+ }
+ } else {
+ wf_log("Could not find RSSI\n");
+ return 0;
+ }
+ return rssi;
+}
+
+static int get_cur_ap_signal(char *mac)
+{
+ int rssi = 0;
+
+ int spot_num = 0;
+ int i = 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);
+
+ for (i = 0; i < spot_num; i++) {
+ if (strcmp(g_spot_list_p[i]->mac, mac) == 0) {
+ rssi = (int)g_spot_list_p[i]->signal;
+ break;
+ }
+ }
+
+ return rssi;
+}
+
+static unsigned char single_db_to_level(int rssi)
+{
+ unsigned char level = 0;
+
+ if (rssi > WIFI_STATION_SIGNAL_LEVEL4) {
+ level = 4;
+ } else if (rssi > WIFI_STATION_SIGNAL_LEVEL3) {//kw 3
+ level = 3;
+ } else if (rssi > WIFI_STATION_SIGNAL_LEVEL2) {
+ level = 2;
+ } else if (rssi > WIFI_STATION_SIGNAL_LEVEL1) {
+ level = 1;
+ } else {
+ level = 0;
+ }
+
+ return level;
+}
+
+static int netmask_length(const char *netmask)
+{
+ struct in_addr addr;
+ int count = 0;
+ int i = 0;
+
+ inet_pton(AF_INET, netmask, &addr);
+ for (i = 0; i < 32; i++) {
+ if ((addr.s_addr >> i) & 1) {
+ count++;
+ }
+ }
+ return count;
+}
+
int send_sta_status_to_cap(int status, int reason)
{
int ret = 0;
@@ -2758,10 +2850,12 @@
char wifi_mac[20] = {0};
char wifi_signal[20] = {0};
sc_cfg_get("EX_mac", wifi_mac, sizeof(wifi_mac));
- sc_cfg_get("EX_signal", wifi_signal, sizeof(wifi_signal));
+ //sc_cfg_get("EX_signal", wifi_signal, sizeof(wifi_signal));
strncpy(sta_stat.ap_bssid, wifi_mac, sizeof(sta_stat.ap_bssid) - 1);
- sta_stat.signal_level = atoi(wifi_signal);
+ //sta_stat.rssi = get_cur_ap_signal(wifi_mac);
+ sta_stat.rssi = get_cur_ap_rssi();
+ sta_stat.signal_level = single_db_to_level(sta_stat.rssi);
}
if (sta_stat.status == IN_WIFI_STA_STATUS_ERROR) {
@@ -2779,18 +2873,74 @@
//wlan
sc_cfg_get("wifiwan", nv_wifiwan, sizeof(nv_wifiwan));
//ipv4
+ sta_stat.has_addr = 1;
+ //ip
snprintf(nv_wifiwan_ip, sizeof(nv_wifiwan_ip), "%s_ip", nv_wifiwan);
sc_cfg_get(nv_wifiwan_ip, wifiwan_ip, sizeof(wifiwan_ip));
- sta_stat.has_addr = 1;
- strncpy(sta_stat.str_addr, wifiwan_ip, sizeof(sta_stat.str_addr) - 1);
-
+ strncpy(sta_stat.addr.addr, wifiwan_ip, sizeof(sta_stat.addr.addr) - 1);
+ //netmask
+ memset(nv_wifiwan_ip, 0, sizeof(nv_wifiwan_ip));
+ memset(wifiwan_ip, 0, sizeof(wifiwan_ip));
+ snprintf(nv_wifiwan_ip, sizeof(nv_wifiwan_ip), "%s_nm", nv_wifiwan);
+ sc_cfg_get(nv_wifiwan_ip, wifiwan_ip, sizeof(wifiwan_ip));
+ strncpy(sta_stat.addr.netmask, wifiwan_ip, sizeof(sta_stat.addr.netmask) - 1);
+ sta_stat.addr.subnet_bits = netmask_length(sta_stat.addr.netmask);
+ //gateway
+ memset(nv_wifiwan_ip, 0, sizeof(nv_wifiwan_ip));
+ memset(wifiwan_ip, 0, sizeof(wifiwan_ip));
+ snprintf(nv_wifiwan_ip, sizeof(nv_wifiwan_ip), "%s_gw", nv_wifiwan);
+ sc_cfg_get(nv_wifiwan_ip, wifiwan_ip, sizeof(wifiwan_ip));
+ strncpy(sta_stat.addr.gateway, wifiwan_ip, sizeof(sta_stat.addr.gateway) - 1);
+ //pdns
+ memset(nv_wifiwan_ip, 0, sizeof(nv_wifiwan_ip));
+ memset(wifiwan_ip, 0, sizeof(wifiwan_ip));
+ snprintf(nv_wifiwan_ip, sizeof(nv_wifiwan_ip), "%s_pridns", nv_wifiwan);
+ sc_cfg_get(nv_wifiwan_ip, wifiwan_ip, sizeof(wifiwan_ip));
+ strncpy(sta_stat.addr.dnsp, wifiwan_ip, sizeof(sta_stat.addr.dnsp) - 1);
+ //sdns
+ memset(nv_wifiwan_ip, 0, sizeof(nv_wifiwan_ip));
+ memset(wifiwan_ip, 0, sizeof(wifiwan_ip));
+ snprintf(nv_wifiwan_ip, sizeof(nv_wifiwan_ip), "%s_secdns", nv_wifiwan);
+ sc_cfg_get(nv_wifiwan_ip, wifiwan_ip, sizeof(wifiwan_ip));
+ strncpy(sta_stat.addr.dnss, wifiwan_ip, sizeof(sta_stat.addr.dnss) - 1);
+
//ipv6
- snprintf(nv_wifiwan_ipv6, sizeof(nv_wifiwan_ipv6), "%s_ipv6_ip", nv_wifiwan);
- sc_cfg_get(nv_wifiwan_ipv6, wifiwan_ipv6, sizeof(wifiwan_ipv6));
sc_cfg_get("wbwanv6_enable", wbwanv6_enable, sizeof(wbwanv6_enable));
if (atoi(wbwanv6_enable) == 1) {
sta_stat.has_addr6 = 1;
- strncpy(sta_stat.str_addr6, wifiwan_ipv6, sizeof(sta_stat.str_addr6) - 1);
+ snprintf(nv_wifiwan_ipv6, sizeof(nv_wifiwan_ipv6), "%s_ipv6_ip", nv_wifiwan);
+ sc_cfg_get(nv_wifiwan_ipv6, wifiwan_ipv6, sizeof(wifiwan_ipv6));
+ strncpy(sta_stat.addr6.addr, wifiwan_ipv6, sizeof(sta_stat.addr6.addr) - 1);
+ //prefix
+ memset(nv_wifiwan_ipv6, 0, sizeof(nv_wifiwan_ipv6));
+ memset(wifiwan_ipv6, 0, sizeof(wifiwan_ipv6));
+ snprintf(nv_wifiwan_ipv6, sizeof(nv_wifiwan_ipv6), "%s_ipv6_prefix_info", nv_wifiwan);
+ sc_cfg_get(nv_wifiwan_ipv6, wifiwan_ipv6, sizeof(wifiwan_ipv6));
+ strncpy(sta_stat.addr6.prefix, wifiwan_ipv6, sizeof(sta_stat.addr6.prefix) - 1);
+ //len
+ memset(nv_wifiwan_ipv6, 0, sizeof(nv_wifiwan_ipv6));
+ memset(wifiwan_ipv6, 0, sizeof(wifiwan_ipv6));
+ snprintf(nv_wifiwan_ipv6, sizeof(nv_wifiwan_ipv6), "%s_ipv6_prefix_len", nv_wifiwan);
+ sc_cfg_get(nv_wifiwan_ipv6, wifiwan_ipv6, sizeof(wifiwan_ipv6));
+ sta_stat.addr6.prefix_bits = atoi(wifiwan_ipv6);
+ //gateway
+ memset(nv_wifiwan_ipv6, 0, sizeof(nv_wifiwan_ipv6));
+ memset(wifiwan_ipv6, 0, sizeof(wifiwan_ipv6));
+ snprintf(nv_wifiwan_ipv6, sizeof(nv_wifiwan_ipv6), "%s_ipv6_gw", nv_wifiwan);
+ sc_cfg_get(nv_wifiwan_ipv6, wifiwan_ipv6, sizeof(wifiwan_ipv6));
+ strncpy(sta_stat.addr6.gateway, wifiwan_ipv6, sizeof(sta_stat.addr6.gateway) - 1);
+ //pdns
+ memset(nv_wifiwan_ipv6, 0, sizeof(nv_wifiwan_ipv6));
+ memset(wifiwan_ipv6, 0, sizeof(wifiwan_ipv6));
+ snprintf(nv_wifiwan_ipv6, sizeof(nv_wifiwan_ipv6), "%s_ipv6_pridns_auto", nv_wifiwan);
+ sc_cfg_get(nv_wifiwan_ipv6, wifiwan_ipv6, sizeof(wifiwan_ipv6));
+ strncpy(sta_stat.addr6.dnsp, wifiwan_ipv6, sizeof(sta_stat.addr6.dnsp) - 1);
+ //sdns
+ memset(nv_wifiwan_ipv6, 0, sizeof(nv_wifiwan_ipv6));
+ memset(wifiwan_ipv6, 0, sizeof(wifiwan_ipv6));
+ snprintf(nv_wifiwan_ipv6, sizeof(nv_wifiwan_ipv6), "%s_ipv6_secdns_auto", nv_wifiwan);
+ sc_cfg_get(nv_wifiwan_ipv6, wifiwan_ipv6, sizeof(wifiwan_ipv6));
+ strncpy(sta_stat.addr6.dnss, wifiwan_ipv6, sizeof(sta_stat.addr6.dnss) - 1);
}
}
@@ -2931,7 +3081,7 @@
g_cap_scan = 0;
}
}
-
+
}
#endif
diff --git a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
index cf64621..991c689 100755
--- a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
+++ b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
@@ -1055,6 +1055,7 @@
}
snprintf(buffer, sizeof(buffer),"dnsmasq -i %s -r %s -x /tmp/dnsmasq.pid &", lan_if, dns_path);
system_cmd_ex(buffer);
+#if 0
#ifdef USE_CAP_SUPPORT
while((access("/tmp/dnsmasq.pid", F_OK))){
sleep(1);
@@ -1062,6 +1063,7 @@
system_cmd_ex(buffer);
};
#endif
+#endif
slog(NET_PRINT, SLOG_NORMAL, "pdp_wan_config_quick defwan_change v4:%d v6:%d \n", defwan4_change, defwan6_change);
//ȱʡÍâÍø¿Ú·¢Éú±ä»¯ÔòÖØÉènatºÍfilter
@@ -1082,6 +1084,15 @@
system_cmd_ex(buffer);
}
net_sendmsg_2_atctl(actinfo->c_id, actinfo->act_info.ip46flag, MSG_CMD_LINKUP_END);
+#ifdef USE_CAP_SUPPORT
+ memset(buffer, 0, sizeof(buffer));
+ snprintf(buffer, sizeof(buffer),"dnsmasq -i %s -r %s -x /tmp/dnsmasq.pid &", lan_if, dns_path);
+ while((access("/tmp/dnsmasq.pid", F_OK))){
+ sleep(1);
+ slog(NET_PRINT, SLOG_NORMAL, "pdp_wan_config_quick dnsmasq fail \n");
+ system_cmd_ex(buffer);
+ };
+#endif
}
}
diff --git a/ap/app/zte_mdl/zte_mdl.c b/ap/app/zte_mdl/zte_mdl.c
index d93283c..38bb203 100755
--- a/ap/app/zte_mdl/zte_mdl.c
+++ b/ap/app/zte_mdl/zte_mdl.c
@@ -28,6 +28,11 @@
#include <pthread.h>
#include <zte_mdl.h>
+#define PROC_CMDLINE_NO_CONSOLE (0)
+#define PROC_CMDLINE_CONSOLE (1)
+#define STDOUT_BUFFER_SIZE (256)
+#define STDOUT_PATH_DEVNULL "/dev/null"
+
void nvserver_entry(void)
{
nvserver_main(0,NULL);
@@ -99,12 +104,48 @@
//return; //kw 3
}
+void rediect_stdout(void)
+{
+ int fd = 0;
+ FILE *file = NULL;
+ int console = PROC_CMDLINE_NO_CONSOLE;
+ char buffer[STDOUT_BUFFER_SIZE] = {0};
+
+ file = fopen("/proc/cmdline", "r");
+ if (file == NULL) {
+ printf("rediect_stdout: cmdline file read error\n");
+ return;
+ }
+
+ while (fgets(buffer, sizeof(buffer), file) != NULL)
+ {
+ if(strstr(buffer, "console"))
+ {
+ console = PROC_CMDLINE_CONSOLE;
+ break;
+ }
+ }
+
+ if((console == PROC_CMDLINE_NO_CONSOLE)
+ && ((fd = open(STDOUT_PATH_DEVNULL, O_RDWR, 0)) > 0))
+ {
+ (void)dup2(fd, STDIN_FILENO);
+ (void)dup2(fd, STDOUT_FILENO);
+ (void)dup2(fd, STDERR_FILENO);
+
+ setvbuf(stdout, NULL, _IOLBF, 0);
+ if (fd > STDERR_FILENO)
+ (void)close(fd);
+ }
+ fclose(file);
+}
+
int main(int argc, char *argv[])
{
/* nvserver */
pthread_t nvserver_thread_tid;
- //daemon(0, 0);
+ rediect_stdout();
pthread_create(&nvserver_thread_tid, NULL, (void *)nvserver_entry, NULL);
/* zte_drv_serial_ctrl */