Professional Documents
Culture Documents
0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
Department: R&D
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
Document Approval
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
Table of Contents
1 INTRODUCTION ....................................................................... 10
1.1 FRAMEWORK ................................................................................................. 10
1.2 API FUNCTIONS ............................................................................................. 11
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.20 SENDSPECUSSD............................................................................................. 51
4.20.1 request ............................................................................................... 51
4.20.2 response ............................................................................................. 52
4.20.3 ErrorCode............................................................................................ 53
4.21 GETSPECUSSD .............................................................................................. 53
4.21.1 request ............................................................................................... 53
4.21.2 response ............................................................................................. 54
4.21.3 ErrorCode............................................................................................ 55
4.22 CANCELSPECUSSD .......................................................................................... 55
4.22.1 request ............................................................................................... 55
4.22.2 response ............................................................................................. 56
4.22.3 ErrorCode............................................................................................ 56
4.23 SENDSPECCALL ............................................................................................. 57
4.23.1 request ............................................................................................... 57
4.23.2 response ............................................................................................. 58
4.23.3 ErrorCode............................................................................................ 59
4.24 GETSPECCALL ............................................................................................... 59
4.24.1 request ............................................................................................... 59
4.24.2 response ............................................................................................. 60
4.24.3 ErrorCode............................................................................................ 61
4.25 CANCELSPECCALL ........................................................................................... 61
4.25.1 request ............................................................................................... 61
4.25.2 response ............................................................................................. 62
4.25.3 ErrorCode............................................................................................ 63
4.26 GETALLSMS .................................................................................................. 63
4.26.1 request ............................................................................................... 63
4.26.2 response ............................................................................................. 63
4.26.3 ErrorCode............................................................................................ 64
4.27 GETALLUSSD ................................................................................................ 64
4.27.1 request ............................................................................................... 65
4.27.2 response ............................................................................................. 65
4.27.3 ErrorCode............................................................................................ 66
4.28 GETALLCALL ................................................................................................. 66
4.28.1 request ............................................................................................... 66
4.28.2 response ............................................................................................. 67
4.28.3 ErrorCode............................................................................................ 67
4.29 TRAPSMSINFO ............................................................................................... 67
4.29.1 trap .................................................................................................... 68
4.30 TRAPUSSDINFO ............................................................................................. 68
4.30.1 trap .................................................................................................... 68
4.31 TRAPCALLINFO .............................................................................................. 69
4.31.1 trap .................................................................................................... 69
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
List of Figures
Figure 1 SIM Cloud 3rd Service API ............................................................................. 10
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
List of Tables
Table 1 SIM Cloud 3rd Service API List......................................................................... 11
Table 2 SIM Cloud Common ErrorCodes ...................................................................... 18
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
1 Introduction
SIM Cloud provides 3rd Service API to cooperate with client:
1) XML-Service API: based on udp socket, request/response/trap is xml text.
This document describes the XML-Service API of SIM Cloud, the API covers below functions.
Manage all devices inside one domain via API;
Manage all ports inside one device via API;
Manage all SIM cards inside one SIMBANK via API;
Manage all SIM cards inside one DWG with local mode via API;
Bind/Unbind one SIMBANK port and one DWG port with remote mode via API;
Send/Recv SMS thru one DWG port via API;
Send/Recv USSD thru one DWG port via API;
Send CALL thru one DWG port via API;
Send/Recv Bulk SMS thru one domain via API.
1.1 Framework
Figure 1 shows the logic framework of SIM Cloud system and the position of 3rd Service API.
SIM Cloud manages all DWG and SIMBANK devices, and provides a unique 3rd Service API
to client, so it is easy to control all devices via 3 rd Service API.
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
2 Common header
2.1 request
XML-Service API uses XML text in request packet, each request packet includes two parts:
header: including common fields, and msg_type is “request”, only one node;
content: be named as request Cmd, supports multiple nodes in one request packet.
Notes:
1) SN: increased request serial no, be used in authentication and session control, suggest
to specially use SN = 0 in Heartbeat packet which would be sent periodically for NAT
traversal;
2) Domain: unique domain name in SIM Cloud;
3) User: user name in one domain, API function shall be enabled for this user;
4) Cmd: API function name;
5) Retries: first request packet, set Retris as 0, if the packet was lost, client cloud send it
again but with Retries +1;
6) Timeout(ms): max processing time in SIM Cloud, e.g. 5000ms;
7) Timestamp: timeval string of client, SIM Cloud always send it back in response packet;
8) AuthInfo: authentification info, refer to below authentification algorithm.
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
2.2 response
XML-Service API uses XML text in response packet, each response packet includes two
parts:
header: including common fields, and msg_type is “response”, return ErrorCode and
ProcessTime;
content: be named as request Cmd, supports multiple nodes in one response packet.
Notes:
1) header.ErrorCode: return common ErrorCode of this request;
2) header.ErrorInfo: return common ErrorInfo of this request;
3) header.ProcessTime: return processing time(ms) in SIM Cloud;
4) content.ErrorCode: return detail ErrorCode of one item in this request;
5) content.ErrorInfo: return detail ErrorInfo of one item in this request.
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
2.3 trap
XML-Service API uses XML text in trap packet, each trap packet includes two parts:
header: including common fields, and msg_type is “trap”;
content: be named as trap Cmd, only one node in one trap packet.
Notes:
1) header.SN: return trap SN;
2) header.Timestamp: return NA;
Notes:
Trap packet can be sent to different destination in client, but there is a special way to send
trap packet back as same as response packet, it is used for the client with private IP
address, for this purpose, please configure destination Trap IP/Port as below:
Trap IP address : 0.0.0.0
Trap udp port :0
2.4 Authentication
SIM Cloud support MD5 authentication algorithm and ACL limitation for one domain user:
MD5 authentication;
ACL limitation.
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
For example:
-----------------------------------------------------------------------------
msg_type: "request"
SN: "1"
Domain: "demo"
User: "admin"
Cmd: "Heartbeat"
Timestamp: "3144135.343"
auth_pwd: "123456"
-----------------------------------------------------------------------------
MD5 Input: "request1demoadminHeartbeat3144135.343123456"
MD5 Result: "66ba9141c02a451392310d17b8a7dc05"
-----------------------------------------------------------------------------
Only valid source IP is allowed to access SIM Cloud via XML-Service API.
2.5 ErrorCode
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
3 Common parameter
3.1 DeviceId
DeviceId is a unique id of one device, it is automatically assigned while adding new device in
SIM Cloud.
0 - invalid
n - valid
3.2 DeviceSn
DeviceSn is a unique sn of one device, looks like xxxx-xxxx-xxxx-xxxx, it is statically
assigned in factory.
3.3 GroupId
GroupId is a unique id of one SIM Group, it is automatically assigned while adding new SIM
Group in SIM Cloud.
0 - invalid
n - valid
3.4 GroupName
GroupName is a unique name of one SIM Group, it is statically named while adding new SIM
Group in SIM Cloud.
0 - invalid
n - valid
3.5 TaskId
TaskId is a unique id of one sms/ussd/call request, it is assigned by client, SIM Cloud send
it back in response/trap packet.
TaskId: 0 ~ n
Warning: max value is 0x0FFFFFFF( 268435455 )
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
3.6 MaxGetCount
SIM Cloud support getting multiple records in request message, so "MaxGetCount" be used,
but max value is 128.
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4 Function API
4.1 Heartbeat
Heartbeat between client and SIM Cloud, be used for:
Detect SIM Cloud alive for client;
Detect round-trip delay between client and SIM Cloud;
Keep NAT traversal for client;
4.1.1 request
<?xml version="1.0" encoding="utf-8"?>
<simsrv version="1.0" msg_type="request">
<header>
<param name=“SN” value=“0” />
<param name=“Domain” value=“domain01” />
<param name=“User” value=“user001” />
<param name=“Cmd” value=“Heartbeat” />
<param name=“Retries” value=“0” />
<param name=“Timeout” value=“5000” />
<param name=“Timestamp” value=“3144135.343” />
<param name=“AuthInfo” value=“40e5f14fbb358b674e3ff51c35e200ca” />
</header>
<Heartbeat>
</Heartbeat>
</simsrv>
Notes:
No extra parameter in Heartbeat request.
4.1.2 response
Heartbeat between client and SIM Cloud.
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
Notes:
No extra parameter in Heartbeat response, and no detail ErrorCode of Heartbeat.
4.1.3 ErrorCode
Refer to common ErrorCodes.
4.2 GetTrapInfo
Trap setting includes 3rd IP address and port, based on udp socket, SIM Cloud will send
notification packets after something changes.
4.2.1 request
Notes:
No extra parameter in GetTrapInfo request.
4.2.2 response
Return Trap setting in SIM Cloud.
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
...
<param name=“ErrorCode” value=“SUCCESS” />
<param name=“ErrorInfo” value=““/>
<param name=“ProcessTime” value=“1” />
</header>
<GetTrapInfo>
<param name=“IpAddr” value=“0.0.0.0” />
<param name=“PortNo” value=“0” />
<param name=“AdminStatus” value=“ENABLED” />
<param name=“RunStatus” value=“ACTIVE” />
</GetTrapInfo>
</simsrv>
4.2.3 ErrorCode
Refer to common ErrorCodes.
4.3 SetTrapInfo
Set configurable Trap setting in SIM Cloud.
4.3.1 request
Notes:
Trap packet can be sent to different destination in client, but there is a special way to send
trap packet back as same as response packet, it is used for the client with private IP
address, for this purpose, please configure destination Trap IP/Port as below:
Trap IP address : 0.0.0.0
Trap udp port :0
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.3.2 response
Return Trap setting in SIM Cloud.
4.3.3 ErrorCode
Refer to common ErrorCodes.
4.4 GetDeviceInfo
Get all device info in one domain, response message size shall be less than 16K bytes.
MaxGetCount, 1~128.
4.4.1 request
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.4.2 response
4.4.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.5 SetDeviceInfo
Set configuration of device, SIM Cloud support below configurable fields of one device:
AdminStatus: ENABLED, DISABLED;
Support multiple devices setting in one request.
4.5.1 request
4.5.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.5.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Set” operations, means no
record found
NOT_AVAILABLE For “Set” operations, means object
is not available
* *
4.6 SetDeviceAction
Set action of device, SIM Cloud support below actions of one device:
REBOOT: reboot one device;
ELEGANT_STOP: stop one device by elegant mode, e.g. if one port finished one calling, stop
it immediately, and after all ports were finished, the device becomes “STOPPED” status,
means service was stopped.
4.6.1 request
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.6.2 response
4.6.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Set” operations, means no
record found
NOT_AVAILABLE For “Set” operations, means object
is not available
* *
4.7 GetPortInfo
Get all ports info of one device, response message size shall be less than 16K bytes.
MaxGetCount, 1~128.
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.7.1 request
4.7.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.7.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
4.8 SetPortInfo
Set configuration of port, SIM Cloud support below configurable fields of one port:
AdminStatus: ENABLED, DISABLED, LOCKED, NO_BALANCE;
Support multiple ports setting in one request.
4.8.1 request
4.8.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
...
<param name=“ErrorCode” value=“SUCCESS” />
<param name=“ErrorInfo” value=““/>
<param name=“ProcessTime” value=“1” />
</header>
<SetPortInfo>
<param name=“DeviceId” value=“1” />
<param name=“PortType” value=“GWP” />
<param name=“PortNo” value=“0” />
<param name=“AdminStatus” value=“ENABLED” />
<param name=“ErrorCode” value=“SUCCESS” />
<param name=“ErrorInfo” value=““/>
</SetPortInfo>
<SetPortInfo>
<param name=“DeviceId” value=“1” />
<param name=“PortType” value=“GWP” />
<param name=“PortNo” value=“1” />
<param name=“AdminStatus” value=“ENABLED” />
<param name=“ErrorCode” value=“SUCCESS” />
<param name=“ErrorInfo” value=““/>
</SetPortInfo>
...
</simsrv>
4.8.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Set” operations, means no
record found
NOT_AVAILABLE For “Set” operations, means object
is not available
* *
4.9 SetPortAction
Set action of port, SIM Cloud support below actions of one port:
RESET: reset one port;
ELEGANT_STOP: stop one port by elegant mode, e.g. if one port finished one calling, stop it
immediately, the port becomes “STOPPED” status, means service was stopped.
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.9.1 request
4.9.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.9.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Set” operations, means no
record found
NOT_AVAILABLE For “Set” operations, means object
is not available
* *
4.10 GetGwpInfo
Get all GWP ports info in one DWG, response message size shall be less than 16K bytes.
MaxGetCount, 1~128.
4.10.1 request
4.10.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
<header>
…
<param name=“ErrorCode” value=“SUCCESS” />
<param name=“ErrorInfo” value=“NA” />
<param name=“ProcessTime” value=“10” />
</header>
<GetGwpInfo>
<param name=“DeviceId” value=“1” />
<param name=“PortType” value=“GWP” />
<param name=“MaxPortCount” value=“32” />
<param name=“PortNo” value=“0” />
<param name=“AdminStatus” value=“ENABLED” />
<param name=“RunStatus” value=“ACTIVE” />
<param name=“SmsStatus” value=“NULL” />
<param name=“UssdStatus” value=“NULL” />
<param name=“CallStatus” value=“NULL” />
<param name=“ModuleType” value=“GSM” />
<param name=“WorkMode” value=“REMOTE_SIMBANK” />
<param name=“WorkStatus” value=“NO_SIM” />
<param name=“CurrentImei” value=“863070011368353” />
<param name=“SignalLevel” value=“5” />
<param name=“BindDeviceId” value=“0” />
<param name=“BindPortType” value=“BKP” />
<param name=“BindPortNo” value=“0” />
<param name=“BindSimImsi” value=“NA” />
<param name=“LastBindTime” value=“NA” />
<param name=“LastUsedTime” value=“NA” />
</GetGwpInfo>
...
</simsrv>
4.10.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
4.11 SetGwpInfo
Set configuration of GWP port, SIM Cloud support below configurable fields of one GWP
port:
AdminStatus: ENABLED, DISABLED, LOCKED, NO_BALANCE;
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.11.1 request
4.11.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.11.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
4.12 GetBkpInfo
Get all BKP ports info in one SIMBANK, response message size shall be less than 16K bytes.
MaxGetCount, 1~128.
4.12.1 request
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
<GetBkpInfo>
<param name=“DeviceId” value=“1” />
<param name=“PortType” value=“BKP” />
<param name=“BeginPortNo” value=“0” />
<param name=“MaxGetCount” value=“63” />
</GetBkpInfo>
</simsrv>
4.12.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.12.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
4.13 SetBkpInfo
Set configuration of BKP port, SIM Cloud support below configurable fields of one BKP port:
AdminStatus: ENABLED, DISABLED, LOCKED, NO_BALANCE;
SimNumber: user defined number of sim card;
DynamicImei: user defined imei of sim card.
4.13.1 request
4.13.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.13.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
4.14 GetSimInfo
Get Sim card info in DWG or SIMBANK device, response message size shall be less than 16K
bytes.
MaxGetCount, 1~128.
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.14.1 request
4.14.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.14.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
4.15 SetSimInfo
Set configuration of SIM port, SIM Cloud support below configurable fields of one SIM port:
AdminStatus: ENABLED, DISABLED, LOCKED, NO_BALANCE;
SimNumber: user defined number of sim card;
DynamicImei: user defined imei of sim card.
4.15.1 request
4.15.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.15.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
4.16 GetGroupInfo
Get Sim Group info in one domain, response message size shall be less than 16K bytes.
MaxGetCount, 1~128.
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.16.1 request
4.16.2 response
Notes:
One SIM Group manages one type SIM cards:
TotalCount : total sim cards;
ActivatedCount : working sim cards;
DeactivateCount : not working but present sim cards;
AbnormalCount : not available sim cards;
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.16.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
4.17 SendSpecSms
There are 2 ways to send sms via GWP port:
(1) send sms via specific GWP port
by { DeviceId, PortType, PortNo } or { DeviceSn, PortType, PortNo }
(2) send sms via specific SIM Group
by { GroupId } or { GroupName }, SIM Cloud will dynamically allocate one available
GWP port which belongs to this SIM Group
TaskId is a unique id of one sms/ussd/call request, it is assigned by client, SIM Cloud will
send it back in response/trap packet.
TaskId: 0 ~ n
Warning: max value is 0x0FFFFFFF( 268435455 )
4.17.1 request
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.17.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.17.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
INVALID For “Set” operations, means object
not exists
DISABLED For “Set” operations, means object
is disabled
NOT_AVAILABLE For “Set” operations, means object
is not available
NO_BALANCE For “Set” operations, means object
is no balance
SYS_BUSY For “Get/Set” operations, means
SIM Cloud is busy now
SERVICE_BUSY For “Set” operations, means one
object is busy now
* *
4.18 GetSpecSms
Get specific SMS info by GWP port.
4.18.1 request
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
...
</simsrv>
4.18.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.18.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
4.19 CancelSpecSms
Cancel one sending SMS via GWP port.
4.19.1 request
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.19.2 response
4.19.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Set” operations, means no
record found
NOT_AVAILABLE For “Set” operations, means object
is not available
* *
4.20 SendSpecUssd
There are 2 ways to send ussd via GWP port:
(1) send ussd via specific GWP port
by { DeviceId, PortType, PortNo } or { DeviceSn, PortType, PortNo }
(2) send ussd via specific SIM Group
by { GroupId } or { GroupName }, SIM Cloud will dynamically allocate one available
GWP port which belongs to this SIM Group
TaskId is a unique id of one sms/ussd/call request, it is assigned by client, SIM Cloud will
send it back in response/trap packet.
TaskId: 0 ~ n
Warning: max value is 0x0FFFFFFF( 268435455 )
4.20.1 request
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.20.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
</simsrv>
4.20.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
INVALID For “Set” operations, means object
not exists
DISABLED For “Set” operations, means object
is disabled
NOT_AVAILABLE For “Set” operations, means object
is not available
NO_BALANCE For “Set” operations, means object
is no balance
SYS_BUSY For “Get/Set” operations, means
SIM Cloud is busy now
SERVICE_BUSY For “Set” operations, means one
object is busy now
* *
4.21 GetSpecUssd
Get specific USSD info by GWP port.
4.21.1 request
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.21.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.21.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
4.22 CancelSpecUssd
Cancel one sending USSD via GWP port.
4.22.1 request
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.22.2 response
4.22.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Set” operations, means no
record found
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.23 SendSpecCall
There are 2 ways to send call via GWP port:
(1) send call via specific GWP port
by { DeviceId, PortType, PortNo } or { DeviceSn, PortType, PortNo }
(2) send call via specific SIM Group
by { GroupId } or { GroupName }, SIM Cloud will dynamically allocate one available
GWP port which belongs to this SIM Group
TaskId is a unique id of one sms/ussd/call request, it is assigned by client, SIM Cloud will
send it back in response/trap packet.
TaskId: 0 ~ n
Warning: max value is 0x0FFFFFFF( 268435455 )
4.23.1 request
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
Notes:
Dtmf: "p1,111,p1,222,p1,333" - means waiting 1 sec, send 111, then waiting 1 sec, send
222, then waiting 1 sec, send 333.
4.23.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
</SendSpecCall>
...
</simsrv>
4.23.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
INVALID For “Set” operations, means object
not exists
DISABLED For “Set” operations, means object
is disabled
NOT_AVAILABLE For “Set” operations, means object
is not available
NO_BALANCE For “Set” operations, means object
is no balance
SYS_BUSY For “Get/Set” operations, means
SIM Cloud is busy now
SERVICE_BUSY For “Set” operations, means one
object is busy now
* *
4.24 GetSpecCall
Get specific CALL info by GWP port.
4.24.1 request
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.24.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.24.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
4.25 CancelSpecCall
Cancel one sending CALL via GWP port.
4.25.1 request
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
<header>
…
</header>
<CancelSpecCall>
<param name=“DeviceId” value=“1” />
<param name=“PortType” value=“GWP” />
<param name=“PortNo” value=“0” />
<param name=“ActionStatus” value=“CANCEL” />
</CancelSpecCall>
<CancelSpecCall>
<param name=“DeviceId” value=“1” />
<param name=“PortType” value=“GWP” />
<param name=“PortNo” value=“1” />
<param name=“ActionStatus” value=“CANCEL” />
</CancelSpecCall>
...
</simsrv>
4.25.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.25.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Set” operations, means no
record found
NOT_AVAILABLE For “Set” operations, means object
is not available
* *
4.26 GetAllSms
Get all SMS records by SMS serial_no, support below filters:
filter by SmsSn, unique SMS SerialNo;
filter by SmsSn Order, ASC or DESC;
filter by GWP port, NA means no filter;
filter by SIMBANK port, actually by SIM card, NA means no filter.
4.26.1 request
4.26.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.26.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
4.27 GetAllUssd
Get all USSD records by USSD serial_no, support below filters:
filter by UssdSn, unique USSD SerialNo;
filter by UssdSn Order, ASC or DESC;
filter by GWP port, NA means no filter;
filter by SIMBANK port, actually by SIM card, NA means no filter.
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.27.1 request
4.27.2 response
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
</GetAllUssd>
...
</simsrv>
4.27.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
4.28 GetAllCall
Get all CDR records by CALL serial_no, support below filters:
filter by CallSn, unique CALL SerialNo;
filter by CallSn Order, ASC or DESC;
filter by GWP port, NA means no filter;
filter by SIMBANK port, actually by SIM card, NA means no filter.
4.28.1 request
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.28.2 response
4.28.3 ErrorCode
request ErrorCodes are shown as below:
ErrorCode ErrorInfo Description
SUCCESS NA NA
ERR_FAILURE NO_RECORD For “Get” operations, means no
record found
* *
4.29 TrapSmsInfo
Trap SMS info from GWP port.
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.29.1 trap
4.30 TrapUssdInfo
Trap USSD info from GWP port.
4.30.1 trap
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
4.31 TrapCallInfo
Trap CALL info from GWP port.
4.31.1 trap
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
5 Data Definitons
5.1 General
Configurable AdminStatus of device, port, GWP and BKP objects.
5.2 AdminStatus
Configurable AdminStatus of device, port, GWP and BKP objects.
5.3 RunStatus
Read-only RunStatus of device, port, GWP and BKP objects.
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
5.4 DeviceType
Read-only DeviceType of one device.
DeviceType Description
DWG including DWG-8, DWG-16 and DWG-32
SIMBANK including SIMBANK-32, SIMBANK-64
DAG AG series products
MTG TG series products
5.5 PortType
Read-only PortType of one port.
PortType Description
GWP DWG port type
BKP SIMBANK port type
AGP DAG port type
TGP MTG port type
5.6 PortNo
Read-only PortNo of of one port, valid PortNo is 0 ~ (N-1).
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
5.7 ModuleType
Read-only ModuleType of one port.
PortType Description
GSM
CDMA
5.8 WorkMode(GWP)
Read-only WorkMode of one GWP port.
PortType Description
LOCAL DWG uses local sim card
REMOTE_SIMBANK DWG uses remote sim card of SIMBANK
5.9 WorkStatus(GWP)
Read-only WorkStatus of one GWP port.
PortType Description
NO_SIM no sim card
NOT_REG sim card is not registered
SEARCHING searching network
REG_OK sim card is registered
5.10 WorkStatus(BKP)
Read-only WorkStatus of one BKP port.
PortType Description
NO_SIM no sim card
READY sim card is present, but not used
WORKING sim card is used by GWP
DISABLED BKP is disabled
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
5.11 RoleType
Role Type of one SIM Group.
RoleType Description
NORMAL Working SIM Group
PROMOTION Promotion SIM Group for applying SIM promotion
TESTING Hold special testing SIM cards
MASTER Hold special master SIM cards
5.12 TaskType
Task Type of sms/ussd/call in SIM Cloud.
RoleType Description
WEB By web operation
HBM By HBM features
ALM By alarm notification
API By Service API
5.13 TaskId
Task Id of sms/ussd/call in SIM Cloud.
TaskId: 0 ~ n
Warning: max value is 0x0FFFFFFF( 268435455 )
5.14 TimeInfo
Read-only time info, SIM Cloud returns UTC time, format: yyyy-mm-dd HH:MM:SS
LastLoadTime;
LastBindTime;
LastUsedTime;
5.15 SmsDirection
SMS direction.
CallDirection Description
SMS_RECV
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
SMS_SEND
5.16 SmsEncode
SMS encode of one SMS content.
PortType Description
UNICODE UCS2
ASCII GSM
5.17 SmsStatus
Read-only SMS status.
SmsStatus Description
NULL No SMS in sending queue
SEND_WAIT In SMS sending queue, only one at one time
SENDING In SMS sending queue, only one at one time
SENT_OK Last SMS sent ok
SENT_FAIL Last SMS sent fail
SENT_RECEIPT Optional, received SMS receipt
RECV_OK SMS received ok
RECV_FAIL SMS received fail, unused
5.18 SmsResult
Read-only SMS result.
SmsStatus Description
NULL
INVALID_PORT GWP is invalid, can’t send SMS
BUSY_PORT GWP is busy, can’t send SMS
NOT_AVAILABLE GWP is not available, can’t send SMS
...
SUCCESS send/recv ok
FAILURE send/recv failure
TIMEOUT sending timeout
ACK_ERROR can’t send SMS at device side
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
5.19 UssdDirection
SMS direction.
CallDirection Description
USSD_RECV
USSD_SEND
5.20 UssdStatus
Read-only USSD status.
UssdStatus Description
NULL No USSD in sending queue
SEND_WAIT In USSD sending queue, only one at one time
SENDING In USSD sending queue, only one at one time
SENT_OK Last USSD sent ok
SENT_FAIL Last USSD sent fail
RECV_OK USSD received ok
RECV_FAIL USSD received fail, unused
5.21 UssdResult
Read-only USSD result.
UssdStatus Description
NULL
INVALID_PORT GWP is invalid, can’t send SMS
BUSY_PORT GWP is busy, can’t send SMS
NOT_AVAILABLE GWP is not available, can’t send SMS
...
SUCCESS send/recv ok
FAILURE send/recv failure
TIMEOUT sending timeout
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
5.22 CallDirection
CALL direction.
CallDirection Description
CALL_IN call in from network
CALL_OUT call out to network
5.23 CallStatus
Read-only CALL status.
CallStatus Description
NULL No CALL in processing queue
CALL_WAIT In CALL processing queue, only one at one time
CALL_ONGOING In CALL processing queue, only one at one time
CALL_OK Last CALL processed ok
CALL_FAIL Last CALL processed fail
CALL_OUT_START In CALL processing queue, call out started
CALL_OUT_ALERT In CALL processing queue, call out alerted
CALL_OUT_ACTIVE In CALL processing queue, call out activated
CALL_OUT_END In CALL processing queue, call out finished
CALL_IN_RING In CALL processing queue, call in ring
CALL_IN_ACTIVE In CALL processing queue, call in activated
CALL_IN_END In CALL processing queue, call in finished
5.24 CallResult
Read-only CALL result.
CallStatus Description
NULL
INVALID_PORT GWP is invalid, can’t do call
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
5.25 CdrFlag
Read-only CDR result.
CdrFlag Description
NULL
NORMAL normal cdr
FAILURE fail cdr
SHORT short cdr
FORCE_CUT force cut cdr
LONG_CUT long cut cdr
This document contains information which is confidential and proprietary to DINSTAR. © 2012
TMPRev 1.0
Document Number Document Name Revision Number
800000xxxxx SIM Cloud XML-Service API 2.6
Author/Editor Approval Status Approval Date
Sam Shen Draft
[Appendix 1] Glossary
Term Definition
DWG DINSTAR Wireless VoIP Gateway
SIMBANK DINSTAR SIMBANK Device
GWP DWG Port
BKP SIMBANK Port
This document contains information which is confidential and proprietary to DINSTAR. © 2012