# <i class="fa fa-file fa-fw"></i> Flow การสมัครบริการผ่านช่องทาง SMS ของ OPERATOR TRUEMOVE-H
## TRUEMOVE-H
### 1. MO เข้าที่ API อะไร
#### 1.1 URL API ที่ใช้รับ MO คืออะไร
> สามารถไปดูที่ ISS ที่เครื่อง 192.168.100.111 หรือ 112
<table id="test">
<tr>
<th >Server </th>
<td>192.168.100.111 or 112</td>
</tr>
<tr>
<th>URL API</th>
<td>http://203.146.102.205:8030/f2u_turemoveh_mo.php</td>
</tr>
</table>
#### 1.2 Path ของ API ที่เป็นตัวรับอยู่ที่ไหน
<table id="test">
<tr>
<th >Server </th>
<td>192.168.100.111 or 112</td>
</tr>
<tr>
<th >PATH API</th> <td>D:\inetpub\wwwroot\mcp_dev\web\truemove\htdocs\f2u_turemoveh_mo.php</td>
</tr>
<tr>
<th >FileName </th>
<td>f2u_turemoveh_mo.php</td>
</tr>
</table>
#### ตัวอย่างการสมัคร รูปแบบ SMS
<table id="test">
<tr>
<th>Operator</th>
<td>TRUEMOVE-H</td>
</tr>
<tr>
<th>MSISDN</th>
<td>66909507733</td>
</tr>
<tr>
<th>Service</th>
<td>4761167</td>
</tr>
<tr>
<th>Service Name</th>
<td>Horo4U 22</td>
</tr>
<tr>
<th>Media Code</th>
<td>T1</td>
</tr>
<tr>
<th>Server IP</th>
<td>192.168.100.111</td>
</tr>
</table>
### 2 สร้างไฟล์ MO ที่ Path ใด
> สร้าง file MO มาสร้างที่เครื่อง 192.168.100.80
<table id="test">
<tr>
<th >Server </th>
<td>192.168.100.80</td>
</tr>
<tr>
<th>Path</th>
<td>E:\Transaction_files\M1\TRUEMOVE_DR\inbox\{service}</td>
</tr>
</table>
### 3. MO นั้นมีชื่อไฟล์ว่าอะไร + ดู log ที่ชื่อว่าอะไร
<table>
<tr>
<th>Path</th>
<td>E:\inetpub\wwwroot\mcp_dev\web\truemove\logs</td>
</tr>
<tr>
<th>File Name</th>
<td>F2U_TRUEMOVE-H_SMS_MO_2019-08-13_10_(API01)</td>
</tr>
</table>

== เอาเบอร์ไปหา เช่น 66909507733 == จะได้ตามด้านล่าง
```xml
(2019-08-13 10:47:50) - ############################## NEW REQUEST FROM TRUEMOVE GW ##############################
REMOTE_ADDR: 192.168.100.100, USER_AGENT: , SCRIPT_FILENAME: D:\inetpub\wwwroot\mcp_dev\web\truemove\htdocs\f2u_turemoveh_mo.php, PORT: 8030
HTTP_RAW_POST_DATA: <?xml version="1.0" encoding="ISO-8859-1"?>
<message id="routerSMSNoneNode11@TYNMAVSMSP-NONE01:2950813801"><sms type="mo"><retry count="0" max="0"/><destination messageid="8916D55A"><address><number type="abbreviated">4761167</number></address></destination><source><address>
<number type="international">66909507733</number></address></source><ud type="text">T1</ud><scts>2019-08-13T10:47:50Z</scts><service-id>7107322304</service-id></sms><from>RMV_NONE_RMV1</from><to>HttpAdapter::R_Future2y_7107322304</to></message>
Msg_Parsed: T1
FilePath (Success): \\f2u-file01\transaction_files\M1\TRUEMOVE_MO\inbox\4761167/20190813104750_1565668070.8095.411_QUEUE_MO_F2U_TRUEMOVE-H_SMS_4761167_7107322304_routerSMSNoneNode11-TYNMAVSMSP-NONE01-2950813801_MNID1_4.log
Response:
<?xml version="1.0" ?><message id="routerSMSNoneNode11@TYNMAVSMSP-NONE01:2950813801"><rsr type="reply"><service-id>7107322304</service-id><destination messageid="8916D55A"><address><number type="abbreviated">4761167</number></address></destination><source><address><number type="international">66909507733</number></address></source><rsr_detail status="success"><code>0</code><description>Success receive request</description></rsr_detail></rsr></message>
Process time: 0.0112
```
### 4. MO ถูกขียนไฟล์ที่ Folder อะไร
> file MO จะถูกเขียนที่ Folder Inbox ก่อนหลังจากทำงานเสร็จ จะถูกย้ายมาเก็บที่ history
<table>
<tr>
<th>Server</th>
<td>192.168.100.80</td>
</tr>
</table>
== Step 1 ==
<table>
<tr>
</tr>
<tr>
<th>Path</th>
<td>E:\Transaction_files\M1\TRUEMOVE_MO\Inbox\20190813\4761167</td>
</tr>
<tr>
<th>File Name</th>
<td>20190813104750_1565668070.8095.411_QUEUE_MO_F2U_TRUEMOVE-H_SMS_4761167_7107322304_ROUTERSMSNONENODE11-TYNMAVSMSP-NONE01-2950813801_MNID1_4_(API01)</td>
</tr>
<table>
== Step 2 ==
<table>
<tr>
<th>Path</th>
<td>E:\Transaction_files\M1\TRUEMOVE_MO\history\20190813\4761167</td>
</tr>
<tr>
<th>File Name</th>
<td>20190813104750_1565668070.8095.411_QUEUE_MO_F2U_TRUEMOVE-H_SMS_4761167_7107322304_ROUTERSMSNONENODE11-TYNMAVSMSP-NONE01-2950813801_MNID1_4_(API01)</td>
</tr>
</table>


#### ตัวอย่างข้อมูลไฟล์ที่ได้ ####
``` Json
CMD|MSISDN|OPERATORCUSTOMERID|IDOPERATOR|OPERATORSUBSCRIBERTYPE|MOMSG|MOUNICODE|MOSNO|OPERATORSERVICEID|OPERATORPRODUCTID|MOREFID1|MOREFID2|IDMOMESSAGECHANNEL|IDMOGATEWAY|ISVIRTUAL|MTREFID|IDEMPLOYEE|DROPERATORTYPE|DROPERATORCODE|DROPERATORSTATUS|DROPERATORDESCRIPTION|RECEIVEDDATETIME|PARTNERREFID|IDMOPARTNERRESPONSESTATUS|
MO|66909507733||6|0|T1|0|4761167|7107322304||routerSMSNoneNode11@TYNMAVSMSP-NONE01:2950813801||2|6|0||0|||||2019-08-13 10:47:50|||
```
### 5. App ชื่อว่าอะไรมาดูดไฟล์ MO ไปทำงาน
:::info
เมื่อมี App ชื่อ **BROKER_MO_TRUEMOVE** มาดึงไฟล์ MO ไปทำงานต่อ ดังนั้นข้อมูล MO จะถูก Insert เข้าที่ตาราง **MCP_DEV.dbo.TempImportMoTransactionBuffer** และ **idUpdateMoHandleStatus = 0**
:::
<table>
<tr>
<th>Server</th>
<td>192.168.100.151 (dotNet)</td>
</tr>
<tr>
<th>App Name</th>
<td>BROKER_MO_TRUEMOVE</td>
</tr>
</table>

:::info
Step2 หลังจากนั้น JOB ที่ชื่อว่า **JOB_BROKERMO_MOVE_MOTRANSACTION_FROM_BUFFER_TO_QUEUE** ย้ายข้อมูลจาก ตาราง **MCP_DEV.dbo.TempImportMoTransactionBuffer** ที่มี **idUpdateMoHandleStatus = 0** ไปที่ ตาราง **MCP_DEV.dbo.TempImportMoTransactionQueue** เพื่อทำ process ต่อไป
:::
<table>
<tr>
<th>DB Server</th>
<td>192.168.100.40\MCP </td>
</tr>
<tr>
<th>Job Name</th>
<td>JOB_BROKERMO_MOVE_MOTRANSACTION_FROM_BUFFER_TO_QUEUE</td>
</tr>
</table>

:::success
วิธีดู log file BROKER_MO_TRUEMOVE ว่ามีการทำงานได้หรือป่าว
:::
<table>
<tr>
<th>Server</th>
<td>192.168.100.151 (dotNet)</td>
</tr>
<tr>
<th>Path</th>
<td>E:\f2u\logs\broker_mo_truemove\archives</td>
</tr>
<tr>
<th>File Name</th>
<td>BROKER_MO_TRUEMOVE_EVENT_2019-08-13_10_(APPNET01)</td>
</tr>
</table>

### 6.มี JOB ใดที่ดึงข้อมูล MO จากตาราง MCP_DEV.dbo.TempImportMoTransactionQueue เพื่อไป insert เข้าที่ตาราง TBMESSAGERECEIVE
:::info
App dotNet(เครื่อง 192.168.100.151) ชื่อ **RUN_BROKER_MO_TRUEMOVE** ทำการ execute Stored ที่ชื่อว่า **SP_BROKERMO_CREATE_MO_FOR_MOTRANSACTION_BY_MANAGEMENT** เพื่อทำการดึงข้อมูล MO จากตาราง MCP_DEV.dbo.TempImportMoTransactionQueue เพื่อไป insert เข้าที่ตาราง **MCP_DEV.dbo.TBMESSAGERECEIVE** สำเร็จแล้ว จะกลับมา update ตาราง **MCP_DEV.dbo.TempImportMoTransactionQueue** ให้ **idUpdateMoHandleStatus = 2** (done)
:::
> App Task Scheduler
<table>
<tr>
<th>Server</th>
<td>192.168.100.151 (dotNet)</td>
</tr>
<tr>
<th>App Name</th>
<td>RUN_BROKER_MO_TRUEMOVE</td>
</tr>
</table>

>File Stored Procedures
<table>
<tr>
<th>Server</th>
<td>192.168.100.42 (server db)</td>
</tr>
<tr>
<th>Name Stored Procedures</th>
<td>SP_BROKERMO_CREATE_MO_FOR_MOTRANSACTION_BY_MANAGEMENT</td>
</tr>
</table>

>ดู log การนำข้อมูลเข้า จากตาราง MCP_DEV.dbo.TempImportMoTransactionQueue เพื่อไป insert เข้าที่ตาราง MCP_DEV.dbo.TBMESSAGERECEIVE
<table>
<tr>
<th>Server</th>
<td>192.168.100.151 (dotNet)</td>
</tr>
<tr>
<th>Path</th>
<td>E:\f2u\logs\broker_mo_truemove\archives</td>
</tr>
<tr>
<th>FileName</th>
<td>BROKER_MO_TRUEMOVE_DATABASE_2019-08-13_(APPNET01)</td>
</tr>
</table>

### 7. แล้วมี JOB ใดดึงข้อมูล MO ไปประมวลผลเพื่อสร้างเป็น MT และมีการสร้างสมาชิกใหม่หรือไม่ หากมีการสร้างสมาชิกใหม่จะถูกสร้างที่ตารางใด
:::info
jobName ที่ชื่อว่า **JOB_INMEM_MOVE_MSGRECEIVE_TO_MSGQUEUE_REDUCE_BY_GATEWAY (Truemove - SMS/MMS)**
ดึงจากตาราง **MCP_DEV.dbo.TBMESSAGERECEIVE** เพื่อเช็คข้อมูลว่าเป็นสมาชิกอยู่ หรือไม่ (เคสนี้เป็นการสมัครด้วยสำเร็จ)สมาชิกจะถูก insert เข้าตาราง **MCP_DEV.dbo.TBSUBSCRIBER** และ gen ข้อความตอบกลับ
ไปยัง Oprator ที่ตาราง **MCP_DEV.dbo.TBMESSAGEREDUCEQUEUE** โดยเปลี่ยน IDOPERATORHANDLESTATUS = 0 และ Update Mo ที่ตาราง **MCP_DEV.dbo.TBMESSAGERECEIVE** โดยมี IDHANDLESTATUS = 2
:::
<table>
<tr>
<th>Server</th>
<td>192.168.100.42 (Server db)</td>
</tr>
<tr>
<th>Job Name</th>
<td>JOB_INMEM_MOVE_MSGRECEIVE_TO_MSGQUEUE_REDUCE_BY_GATEWAY (Truemove - SMS/MMS)</td>
</tr>
</table>

### 8.มี App ใดที่ดึงข้อมูล MT ส่งออกไปให้กับ Operator
> App Task Scheduler
<table>
<tr>
<th>Server</th>
<td>192.168.100.142 (MT Sender php)</td>
</tr>
<tr>
<th>App Name</th>
<td>Run Service MT Sender TRUEMOVE Transaction</td>
</tr>
</table>

> วิธีดู log path file ว่าอยู่ที่ไหน
<table>
<tr>
<th>Server</th>
<td>192.168.100.142 (MT Sender php)</td>
</tr>
<tr>
<th>Path</th>
<td>E:\inetpub\wwwroot\mcp_dev_2018\php_cli\logs</td>
</tr>
<tr>
<th>File Name</th>
<td>SMSSENDER_MT_TRUE_WITH_HTTP_KEEP_ALIVE_TRANSACTION_SERVICE_ALC_2019-08-13_(APPS01)</td>
</tr>
</table>

8.1 Log การส่ง MT เป็นแบบไหน
``` xml
************************ NEW POST MT ManagementID: 1 (ALC - POST Loop: 1) ************************
IDMessage: 3112110558679
IDServiceProcess: 20
MSISDN: 66909507733
MTMESSAGE(Orig): ขอบคุณที่สมัครบริการ Horo4U 22 (3บ./ข้อความ) สอบถาม 021067474 9:00-18:00ทุกวัน ยกเลิกกด *137 โทรออก
MTURL(Orig):
MTUNICODE(Orig): 1
URL (POST): http://119.46.177.98:55000/
Username: 2102579200, Password: XLsa58PC
HTTP-Package: POST / HTTP/1.1
Host: 119.46.177.98:55000
Authorization: Basic MjEwMjU3OTIwMDpYTHNhNThQQw==
Content-type: text/xml
Charset: TIS-620
Content-length: 537
Connection: Close
<?xml version="1.0" encoding="TIS-620"?><message><sms type="mt"><service-id>2102579200</service-id><destination><address><number type="international">66909507733</number></address></destination><source><address><number type="abbreviated">4761167</number><originate type="international">66909507733</originate></address></source><ud type="text" encoding="TIS-620">Íڤسؕ鋁ѤúĔàHoro4U 22 (3ڮ/éͤȒi ˍڶӁ 021067474 9:00-18:00ؘѹ ¡ᆔaԠ*137 ⸃|/ud><stcs>2019-08-13T10:48:10+07:00</stcs><dro>false</dro></sms></message>
************************ MT Response ManagementID: 1 (Res Loop: 1) ************************
POST Time: 0.112
_myfp: Resource id #8465
Response: HTTP/1.1 202 Accepted
Content-Length: 439
Content-Type: text/xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<message id="15656680903954519"><rsr type="ack"><service-id>2102579200</service-id><destination messageid="15656680903954519"><address><number type="international">66909507733</number></address></destination><source><address><number type="abbreviated">4761167</number></address></source><rsr_detail status="success"><code>000</code><description>success</description></rsr_detail></rsr></message>
-------------------------- ALC - Response[1][0] --------------------------
POST IDMESSAGE[1][0]: 3112110558679
POST MSISDN[1][0]: 66909507733
RES MSISDN[1][0]: 66909507733
sno[1][0]: 4761167
service_id[1][0]: 2102579200
message_id[1][0]: 15656680903954519
rsr_status[1][0]: success
rsr_code[1][0]: 000
rsr_description[1][0]: success
Sqlsrv: MsgUpdate - Query success.
Sqlsrv: MsgUpdate - Rowcount = 0
Sqlsrv: MsgUpdate - Time: 0.0014
Sub Process Time: 0.1136
All Process Time: 0.1176
(2019-08-13 10:48:10.608730) - Database connected: 2019-08-13 10:48:10
db_errorcode: 00000
db_errorinfo:
```
> ถ้าต้องการส่ง Mail หา Operator ส่งข้อมูลตัวอย่าง ด่านล่าง
``` xml
************************ NEW POST MT ManagementID: 1 (ALC - POST Loop: 1) ************************
URL (POST): http://119.46.177.98:55000/
Username: 2102579200, Password: XLsa58PC
HTTP-Package: POST / HTTP/1.1
Host: 119.46.177.98:55000
Authorization: Basic MjEwMjU3OTIwMDpYTHNhNThQQw==
Content-type: text/xml
Charset: TIS-620
Content-length: 537
Connection: Close
<?xml version="1.0" encoding="TIS-620"?><message><sms type="mt"><service-id>2102579200</service-id><destination><address><number type="international">66909507733</number></address></destination><source><address><number type="abbreviated">4761167</number><originate type="international">66909507733</originate></address></source><ud type="text" encoding="TIS-620">Íڤسؕ鋁ѤúĔàHoro4U 22 (3ڮ/éͤȒi ˍڶӁ 021067474 9:00-18:00ؘѹ ¡ᆔaԠ*137 ⸃|/ud><stcs>2019-08-13T10:48:10+07:00</stcs><dro>false</dro></sms></message>
************************ MT Response ManagementID: 1 (Res Loop: 1) ************************
POST Time: 0.112
_myfp: Resource id #8465
Response: HTTP/1.1 202 Accepted
Content-Length: 439
Content-Type: text/xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<message id="15656680903954519"><rsr type="ack"><service-id>2102579200</service-id><destination messageid="15656680903954519"><address><number type="international">66909507733</number></address></destination><source><address><number type="abbreviated">4761167</number></address></source><rsr_detail status="success"><code>000</code><description>success</description></rsr_detail></rsr></message>
-------------------------- ALC - Response[1][0] --------------------------
Sqlsrv: MsgUpdate - Query success.
Sqlsrv: MsgUpdate - Rowcount = 0
Sqlsrv: MsgUpdate - Time: 0.0014
Sub Process Time: 0.1136
All Process Time: 0.1176
```
### 9. Operator มีการส่ง DR มาให้ Future2you หรือไม่ หากมีการส่งมา API ใดเป็นตัวรับ DR นั้น / URL API ตัวรับ DR คืออะไร / Path API อยู่ที่ใด / Log อยู่ที่ใด / Log มีข้อมูลอย่างไร/ DR ถูกสร้างไปไว้ที่ใด
> Operator มีการส่ง DR มาให้ Future2you หรือไม่ ?
> ตอบ มีครับใช้ api http://203.146.102.205:6504/truemoveh.php ในการรับ dr จาก Operator
#### 9.1 URL API ตัวรับ DR
> ใช้ IIS
<table>
<tr>
<th>Server</th>
<td>192.168.100.111 or 112 </td>
</tr>
<tr>
<th>URL API</th>
<td>http://203.146.102.205:6504/truemoveh.php </td>
</tr>
</table>
#### 9.2 Path API DR อยู่ที่ใด
<table>
<tr>
<th>Server</th>
<td>192.168.100.111 or 112 </td>
</tr>
<tr>
<th>Path</th>
<td>D:\inetpub\wwwroot\mcp_dev\web\truemove\htdocs\truemoveh.php</td>
</tr>
<tr>
<th>File Name</th>
<td>truemoveh.php</td>
</tr>
</table>
#### 9.3 Log อยู่ที่ใด
<table>
<tr>
<th>Server</th>
<td>192.168.100.111 or 112</td>
</tr>
<tr>
<th>Path</th>
<td>E:\inetpub\wwwroot\mcp_dev\web\truemove\logs</td>
</tr>
</table>
#### 9.4 Log มีข้อมูลอย่างไร
<table>
<tr>
<th>Server</th>
<td>192.168.100.111 or 112 </td>
</tr>
<tr>
<th>Path </th>
<td>E:\inetpub\wwwroot\mcp_dev\web\truemove\logs </td>
</tr>
<tr>
<th>File Name</th>
<td>F2U_TRUEMOVE-H_SMS_DR_2019-08-13_10_(API01) </td>
</tr>
</table>

```json
(2019-08-13 10:48:10) - ############################## NEW REQUEST FROM TRUEMOVE GW ##############################
REMOTE_ADDR: 192.168.100.100, USER_AGENT: , SCRIPT_FILENAME: D:\inetpub\wwwroot\mcp_dev\web\truemove\htdocs\truemoveh.php, PORT: 6504
HTTP_RAW_POST_DATA: <?xml version="1.0" encoding="ISO-8859-1"?>
<message id="15656680903954519"><rsr type="sent">
<service-id>2102579200</service-id><destination><address><number type="international">66909507733</number></address></destination><source><address><number type="abbreviated">4761167</number></address></source><rsr_detail status="success"><description>Message acknowledged by SMSC</description><code>000</code></rsr_detail></rsr></message>
FilePath (Success): \\f2u-file01\transaction_files_ssd\M1\TRUEMOVE_DR\inbox\4761167/20190813104810_1565668090.544.558_F2U_DR_TRANSACTION_TRUEMOVE-H_SMS_4761167_15656680903954519_MNID1_15.log
Response:
Process time: 0.0072
> วิธีเช็คว่าได้ DR กลับมาหรือป่าว ดู id <message id="15656680903954519"><rsr type="sent"> เช่น 15656680903954519
```sql
select * from MCP_DEV.dbo.TBMESSAGEREDUCESENT td
INNER JOIN MCP_DEV.dbo.TBMESSAGEREDUCEINFOSENT tsd ON td.IDMESSAGEINFO = tsd.IDMESSAGEINFO
WHERE td.MTREFID ='15656680903954519' ORDER BY td.CREATEDDATETIME desc
```

#### 9.5 DR ถูกสร้างไปไว้ที่ใด
<table>
<tr>
<th>Server</th>
<td>192.168.100.80</td>
</tr>
<tr>
<th>Path </th>
<td>F:\Transaction_files_ssd\M1\TRUEMOVE_DR\inbox\{service_number}</td>
</tr>
<tr>
<th>FileName</th>
<td>20190813104810_1565668090.544.558_F2U_DR_TRANSACTION_TRUEMOVE-H_SMS_4761167_15656680903954519_MNID1_15.log </td>
</tr>
</table>

> ข้อมูลใน file
``` json
CMD|MSISDN|OPERATORCUSTOMERID|IDOPERATOR|OPERATORSUBSCRIBERTYPE|MOMSG|MOUNICODE|MOSNO|OPERATORSERVICEID|OPERATORPRODUCTID|MOREFID1|MOREFID2|IDMOMESSAGECHANNEL|IDMOGATEWAY|ISVIRTUAL|MTREFID|IDEMPLOYEE|DROPERATORTYPE|DROPERATORCODE|DROPERATORSTATUS|DROPERATORDESCRIPTION|RECEIVEDDATETIME|PARTNERREFID|IDMOPARTNERRESPONSESTATUS|
MO|66909507733||6|0|T1|0|4761167|7107322304||routerSMSNoneNode11@TYNMAVSMSP-NONE01:2950813801||2|6|0||0|||||2019-08-13 10:47:50|||
```
### 10.App ใดทำหน้าที่ดึงข้อมูลจากไฟล์ DR เข้า Database /ข้อมูล DR ถูกสร้างเข้าที่ตารางใด
:::info
1. AppName **F2U.App.MessageBroker** run โดย Task ที่ชื่อว่า **RUN_BROKER_DR_TRUEMOVE** จะไปดึงข้อมูลไฟล์ DR มา insert เข้าที่ตาราง **MCP_DEV.dbo.TempImportDrTransactionTruemoveBuffer** และ **idUpdateDrHandleStatus = 0**
:::
<table>
<tr>
<th>Server</th>
<td>192.168.100.151 or 152 (dotNet) </td>
</tr>
<tr>
<th>Task Name </th>
<td>RUN_BROKER_DR_TRUEMOVE</td>
</tr>
<tr>
<th>App Name </th>
<td>F2U.App.MessageBroker</td>
</tr>
</table>

:::info
2. JobName **JOB_BROKERDR_MOVE_DRTRANSACTION_TRUEMOVE_FROM_BUFFER_TO_QUEUE** ทำการ execute sp ที่ชื่อ **SP_BROKERDR_MOVE_DRTRANSACTION_TRUEMOVE_FROM_BUFFER_TO_QUEUE**
เพื่อย้ายข้อมูล จากตาราง **TempImportDrTransactionTruemoveBuffer** มาที่ตาราง **TempImportDrTransactionTruemoveQueue**
:::
<table>
<tr>
<th>DB Server</th>
<td>192.168.100.40\MCP</td>
</tr>
<tr>
<th>JobName </th>
<td>JOB_BROKERDR_MOVE_DRTRANSACTION_TRUEMOVE_FROM_BUFFER_TO_QUEUE</td>
</tr>
<tr>
<th> Stored Name</th>
<td>SP_BROKERDR_MOVE_DRTRANSACTION_TRUEMOVE_FROM_BUFFER_TO_QUEUE</td>
</tr>
</table>
>Job

>Stored

### 11. DR ในตารางถูกนำไป Update MT ด้วย App หรือ Job ชื่อว่าอะไร / ใช้เงื่อนไขใดในการนำ DR ไปอัพเดท MT / ข้อมูล MT หลังจากถูกอัพเดท DR เป็นอย่างไร
#### 11.1 DR ในตารางถูกนำไป Update MT ด้วย App หรือ Job
<table>
<tr>
<th>DB Server</th>
<td>192.168.100.40\MCP </td>
</tr>
<tr>
<th>App Name </th>
<td>
F2U.App.MessageBroker
</td>
</tr>
<tr>
<th>Task Name </th>
<td>RUN_BROKER_DR_TRUEMOVE</td>
</tr>
<tr>
<th> Stored Name</th>
<td>SP_BROKERDR_UPDATE_MT_FOR_DRTRANSACTION_TRUEMOVE_BY_MANAGEMENT</td>
</tr>
</table>

#### 11.2 ใช้เงื่อนไขใดในการนำ DR ไปอัพเดท MT
::: info
การหาข้อมูลจาก **MSISDN** และ **MTREFID** ไป Update ที่ ตาราง **TBMESSAGEREDUCESENT**
:::
##### 11.3 ข้อมูล MT หลังจากถูกอัพเดท DR เป็นอย่างไร
::: info
จะ Update column **{DROPERATORRESPONSETEXT,IDDROPERATORRESPONSESTATUS,DRRECEIVEDATETIME,UPDATEDDATETIME}** ในตาราง **TBMESSAGEREDUCESENT**
:::
