LinQ2 application has a database monitor component to pull messages from database other then linQ2 database. LinQ2 database monitor can pull message information from the database table and send it to appropriate recipients.
Authorized user can configure database parameters from configuration >LinQ2 resources > database- add> page. Form this page authorized user can make settings for database host, driver, URL, user and password etc.
Ref: - Screen 6 – LinQ2 add database Resources Configuration.
Screen 7 – LinQ2 database Resources Configuration.
Screen 6 – LinQ2 add database Resources Configuration.
Screen 7 – LinQ2 database Resources Configuration
Backend Object Name Name of the backend object.
Host - IP address of database server
Driver - Name of the driver.
Url - Connection Url to database with database name
User name - Name of the database user
Password - Password for this user
Table name - Name of the table to monitor by linq2 db monitor.
Record count - Number of Record can processed in one time.
Pooling interval -Time duration between two monitoring iterations.
Typical remote database fields will look like this: -
Field | Description |
UNIQUE_ID |
Message index.
|
APPLN_ID |
Application id (application name should be configured in Enumeration interface).
|
SMS_RECIPIENT |
Recipient’s mobile number.
|
SMS_LANGUAGE | Indicates language of the message. The possible values for SMS_LANGUAGE are: (0) for English Message and (1) for Arabic Message Based on type, appropriate field should be looked for to receive the message.
|
SMS_TYPE | This field will be used to identify, if the message coming from Database is a template message or normal message. 0 – Normal Message 1 - Template message |
SMS_STATUS |
This field indicates the status of a message. During the process a message goes through following statuses: (0) Message is newly put in the database and should be picked up for sending (New). (1) Message is picked up by LinQ2 and the SMS_PICKUPDATE field has been updated (Processed). (2) Message is expired (SMS_TIMEANDDATE + VALIDITY_TIME < current time) (3) Message is invalid current time |
SMS_MESSAGE |
Message text
|
PRIORITY_LEVEL |
Every message is sent with a priority indicator. The messages with high priority are sent with higher number in the PRIORITY_LEVEL field. LinQ2 picks up messages based on their priority and also maintains priority internally between database messages and bulk messages.
|
SCHEDULED_DATE |
The system shall schedule the delivery of message by the time specified by this field of the message table. The message shall be delivered to customer on this time only. LinQ2 will pick up the messages directly, and then the scheduling will be handled by LinQ2 internally.
|
CONFIRM_REQD |
The delivery confirmation is indicated by the CONFIRM_REQD field of the message table. If delivery confirmation is requested, system will capture the details of message delivery to the customer. This functionality will be supported only if the delivery confirmation is send by the STC for SMPP messages.
Values: 0: No SMSC Delivery Receipt requested (default) 1: SMSC Delivery Receipt requested for delivery success or failure 2: SMSC Delivery Receipt requested for delivery failure
|
VALIDITY_TIME |
This field indicates till how much time messages are valid. It is specified in seconds. Only messages for which (SMS_TIMEANDDATE +VALIDITY_TIME > current time) will be processed, other messages will be marked as expired. (86400) valid for one day 24 hours
|
SMS_TIMEANDDATE |
This field indicates originating time of messages.
|
SMS_PICKUPDATE |
This field indicates the time of picking up a message by LinQ2 from the table. |
PROVIDER_ID | Provider id |
SMS_AUTHOR | Sender ID |
Default Database Handler service is available in services list. Authorized user can login in to LinQ2 system and can monitor the current status of Default Database Handler service and recent errors and warning from status monitor section. User can also start and stop the Default Database Handler service from this section.
Ref: - Screen 8 – LinQ2 database handler
Ref: - Screen 9 – LinQ2 database Handler Error monitoring
Screen 8 – LinQ2 database handler
Screen 9 – LinQ2 database Handler Error monitoring
For samples and full structure details of LinQ2 XML format please take a look at “LINQ2 XML STRUCTURE” document.
Test-1 | Content of message is entered |
Interface |
|
Pre-conditions |
|
query | The fields in table which default database monitoring for should be fill as the following value:- UNIQUE_ID: 1 SMS_STATUS: 0 APPLN_ID: 1 SMS_RECIPIENT: 9988776655 SMS_TYPE: 0 SMS_MESSAGE: Dear customer your account is 12223177832772 PRIORITY_LEVEL: 0 SCHEDULED_DATE: CONFIRM_REQD: 0 SMS_AUTHOR: 1 VALIDITY_TIME: 99999999 SMS_TIMEANDDATE: 8/6/2008 12:00:00 AM SMS_PICKUPDATE: ORG_ID: 1 SMS_LANGUAGE: 0 PROVIDER_ID: 1 |
Expected Result |
Will updated which SMS_STATUS will be set 1 And SMS_PICKUPDATE will fill with current date
|
Actual Result |
|
Test-2 | Extract template name and his parameter from xml content |
Interface |
|
Pre-conditions |
One Arabic and onother English
Another should be named (accountNumber) |
Request | 1-The fields in table which default database monitoring for should be fill as the following value:- UNIQUE_ID: 1 SMS_STATUS: 0 APPLN_ID: 1 SMS_RECIPIENT: 9988776655 SMS_TYPE: 1 SMS_MESSAGE: Check doc LinQ2 XML Structure Description for samples.
PRIORITY_LEVEL: 0 SCHEDULED_DATE: CONFIRM_REQD: 0 SMS_AUTHOR: 1 VALIDITY_TIME: 99999999 SMS_TIMEANDDATE: 8/6/2008 12:00:00 AM SMS_PICKUPDATE: ORG_ID: 1 SMS_LANGUAGE: 1 PROVIDER_ID: 1 |
Expected Result |
The actual message is the specific template which take his parameter from xml format
Will updated which SMS_STATUS will be set 1 And SMS_PICKUPDATE will fill with current date |
Actual Result |
|
Test-3 | Extract message and his parameter from xml content |
Interface |
|
Pre-conditions |
|
Request | 1-The fields in table which default database monitoring for should be fill as the following value:- UNIQUE_ID: 1 SMS_STATUS: 0 APPLN_ID: null SMS_RECIPIENT: null SMS_TYPE: 4 SMS_MESSAGE: Check doc LinQ2 XML Structure Description for samples.
PRIORITY_LEVEL: 1 SCHEDULED_DATE: CONFIRM_REQD: 0 SMS_AUTHOR: 1 VALIDITY_TIME: 99999999 SMS_TIMEANDDATE: 8/6/2008 12:00:00 AM SMS_PICKUPDATE: ORG_ID: null SMS_LANGUAGE: default PROVIDER_ID: null
|
Expected Result |
Will updated which SMS_STATUS will be set 1 And SMS_PICKUPDATE will fill with current date |
Actual Result |
|
Test-4 | Extract message and his parameter from xml content |
Interface |
|
Pre-conditions |
|
Request | 1-The fields in table which default database monitoring for should be fill as the following value:- UNIQUE_ID: 1 SMS_STATUS: 0 APPLN_ID: null SMS_RECIPIENT: null SMS_TYPE: 3 SMS_MESSAGE: Check doc LinQ2 XML Structure Description for samples.
PRIORITY_LEVEL: 0 SCHEDULED_DATE: CONFIRM_REQD: 0 SMS_AUTHOR: 1 VALIDITY_TIME: 99999999 SMS_TIMEANDDATE: 8/6/2008 12:00:00 AM SMS_PICKUPDATE: ORG_ID: null SMS_LANGUAGE: default PROVIDER_ID: null
|
Expected Result |
Will updated which SMS_STATUS will be set 1 And SMS_PICKUPDATE will fill with current date |
Actual Result |
|