BTT SMS Channel Handler use HTTP or HTTPS interface to receive
SMS messages from gateway and send SMS messages to gateway. SMS Handler
configuration file is an XML file based on BTT element factory to
support different SMS gateways customization. When customer sends
a request to the system using an SMS text message from the mobile
phone, for example:
FT payer payee $100
Then the message is processed by BTT SMS Channel Handler as following
steps:
- Inbound Message Handler handles the incoming message from gateway,
decodes, and transforms the message information into BTT Channel Context
which is shared within channel handler.
- Request Handler checks the channel policy to determine whether
the request is permitted or not.
- If the request is permitted, the request handler parses the channel
context data and determines the BTT operation to be called in Operation
Execution Task according to the SMS Commands abstraction in SMS handler
configuration file; if the request is not permitted, the operation
will not be called, and a predefined message is sent to notified the
user.
- If the request is rejected by channel policy, the presentation
handler processes the Channel Policy Exception.
- If the request is permitted, the presentation handler returns
HTTP response for inbound request.
- The Operation Execution Task invokes a Java thread from thread
pool to run the BTT Operation. (The operation implementation should
set the reply message in an operation context data filed named SMSConstant.REPLYMSG)
- After operation is executed over or catch exception, the Response
Handler will be called.
- The Response Handler processes the normal reply and exception,
determines the destination phone number from channel context, and
call Outbound Handler to send reply SMS message.