Summary of the invention
The technical problem to be solved in the present invention provides a kind of attendant console system and Short Message Service method thereof with Short Message Service function, has realized the Short Message Service function of attendant console system.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of attendant console system with Short Message Service function comprises local side and some seats, and described attendant console system also comprises short message pretreatment module that is positioned at each seat and the interface message processor (IMP) that is positioned at local side; Described short message pretreatment module is used for according to short message tectonic information structure short message, and sends it to described interface message processor (IMP); The short message that described interface message processor (IMP) is used for receiving sends to short message service center/gateway.
In the such scheme, each seat of described attendant console system also comprises some business modules and user's editor module, is used for transmitting described short message tectonic information to described short message pretreatment module.
In the such scheme, described interface message processor (IMP) will require according to the communications protocol of described short message service center/gateway described short message is encapsulated before described short message is sent to described short message service center/gateway.
A kind of Short Message Service method of attendant console system is characterized in that, may further comprise the steps:
A, short message pretreatment module are constructed short message according to the short message tectonic information, and are sent it to interface message processor (IMP);
B, described interface message processor (IMP) send to short message service center/gateway with the short message that receives.
In the such scheme, among the described step a, described short message pretreatment module is specifically by following steps structure short message:
A1, receive described short message tectonic information from business module or user's editor module of this seat;
A2, determine the type of described short message according to the short message types parameter of described short message tectonic information;
A3, from described short message tectonic information, extract corresponding content of short message parameter and destination number parameter according to the definition of described type short message;
A4, according to the content of the described short message of described content of short message parameter combinations, and determine the destination number of described short message according to described destination number parameter.
In the such scheme, among the described step a4, described short message pretreatment module is inquired about the fixed line long code of this seat maintenance and the corresponding relation of fixed line short codes and mobile number according to described destination number parameter, determines the destination number of described short message.
In the such scheme, when described short message pretreatment module received described short message tectonic information from described business module, described content of short message parameter was described service related information, the fixed line long code that described destination number parameter is described service-user.
In the such scheme, when described short message pretreatment module received described short message tectonic information from described user's editor module, described content of short message parameter was transmit leg editor's a text, and described destination number parameter is the fixed line short codes that desire sends the user.
In the such scheme, among the described step b, described interface message processor (IMP) sends it to described short message service center/gateway after requiring the short message that receives encapsulated according to the communications protocol of described short message service center/gateway again.
Beneficial effect of the present invention mainly shows: attendant console system provided by the invention has comprised the Short Message Service device, realized that its business of following produces automatically or the unsolicited Short Message Service of attending a banquet, thereby improved the flexibility of attendant console system business, improve service level, promoted user's business experience.
Embodiment
The invention will be further described below in conjunction with accompanying drawing.
With reference to Fig. 1, a kind of attendant console system with Short Message Service function, except that local side and some seats, comprise the short message pretreatment module that is positioned at each seat, some business modules (be business module 1 to business module n, n is a natural number), user's editor module and be positioned at the interface message processor (IMP) of local side.
The short message pretreatment module is used for the short message tectonic information structure short message according to business module or the transmission of user's editor module, and sends it to interface message processor (IMP);
Interface message processor (IMP) is used to receive this short message, requires this short message is encapsulated according to the communications protocol of short message service center/gateway, and sends it to short message service center/gateway and be distributed to the targeted customer with this short message the most at last.
With reference to Fig. 2, the Short Message Service method of above-mentioned attendant console system may further comprise the steps:
S201: the short message pretreatment module receives the short message tectonic information from business module or user's editor module of this seat;
S202: the short message pretreatment module is determined the type of short message according to the short message types parameter of short message tectonic information;
S203: the short message pretreatment module extracts corresponding content of short message parameter and destination number parameter according to the definition of the type short message from the short message tectonic information;
S204: the short message pretreatment module is according to the content of content of short message parameter combinations short message, and determines the destination number of short message according to the destination number parameter; Wherein, the short message pretreatment module is inquired about the fixed line long code of this seat maintenance and the corresponding relation of fixed line short codes and mobile number according to the destination number parameter, to determine the destination number of short message;
S205: the short message pretreatment module sends to the short message of structure the interface message processor (IMP) of local side;
S206: interface message processor (IMP) is according to the communications protocol requirement of short message service center/gateway, sends to short message service center/gateway after the short message that receives is encapsulated, by short message service center/gateway the most at last short message be distributed to the targeted customer.
Source difference according to the short message tectonic information, the Short Message Service of attendant console system can be divided into business and follow automatically and produce and transmit leg is initiatively initiated two kinds, the former short message tectonic information derives from business module, and the latter's short message tectonic information derives from user's editor module.Short Message Service is that business is followed when producing automatically, and the content of short message parameter is a service related information, and the destination number parameter is the fixed line long code of service-user; Short Message Service is a transmit leg when initiatively initiating, and the content of short message parameter is transmit leg editor's a text, and the destination number parameter is the fixed line short codes that desire sends the user.
Respectively both of these case is illustrated below by two embodiment.
Embodiment one: belong to professional follow production automatically wake the failure notification short message
The hotel guest-room user checks in and has registered phone number in the process, the fixed line short codes of in the attendant console system user's phone number and user being moved in the guest room, be that objective room number associates and opened short message service, wherein, fixed line long code and its phone number that the user moves in the guest room constitute the corresponding table of comparisons, and the fixed line long code in guest room is related with objective room number.
If user applies alarm clock service, the alarm clock service time of its appointment is when reaching, the just busy or ring unanswered of the fixed line in its guest room, and the attendant console system retry is still unsuccessful after several minutes, the waking the failure business module and will wake failure short message tectonic information and report to the short message pretreatment module of seat by internal interface, tectonic information comprises at least: be used for determining short message types the short message service code, wake failure user's guest room fixed line long code and wake Time To Failure;
After the short message pretreatment module receives this information, determine that according to the short message service code this short message is one and wakes the failure notification short message, definition extracts from the information that receives and wakes Time To Failure and wake failure user guest room fixed line long code according to short message; Then,, utilize and wake failure notification short message masterplate combination content of short message, as " xxxx tenant people thanks you to stay the xx hotel according to waking Time To Failure! You are registered in the service of waking of yyyy-mm-dd hh:mm, and the line is busy or the ring unanswered fails because of your guestroom telephone, would you please pay close attention to, and wish your happiness! ", wherein, the information such as objective room number that the relevance by guest room fixed line long code and objective room number obtains; Simultaneously, failure user guest room fixed line long code inquiring user is moved in the fixed line long code in guest room and the table of comparisons of its phone number obtains the information such as target mobile phones number that short message sends according to waking;
Then, the short message pretreatment module sends to interface message processor (IMP) with the short message of structure;
After interface message processor (IMP) receives short message,,, short message is passed to user mobile phone by short message service center/gateway with being sent to short message service center/gateway after the short message encapsulation according to the communications protocol requirement of short message service center/gateway.
Embodiment two: transmit leg is initiatively initiated Short Message Service
The hotel guest-room user checks in and has registered phone number in the process, the objective room number of in the attendant console system user's phone number and user being moved in the guest room associates has opened short message service, wherein, fixed line long code and its phone number that the user moves in the guest room constitute the corresponding table of comparisons, and the fixed line long code in guest room is related with objective room number.
After the user moves in, the hotel receptionist opens the short message editing interface of attendant console system as transmit leg, editor welcomes the short message text and sends by the objective room number of selecting this user to move in the guest room, user's editor module sends corresponding short message tectonic information to the short message pretreatment module, and tectonic information comprises at least: the short message text that is used for determining the short message service code of short message types, the objective room number that sends the user and transmit leg customization;
The short message pretreatment module receives the short message tectonic information by internal interface from user's editor module, determine that according to the short message code this short message is a self-defined short message, from the information that receives, extract the short message text of transmit leg customization and send user visitor room number; Then, be content of short message with the short message text-converted, and determine the guest room fixed line long code that it is related, and the table of comparisons of inquiry guest room fixed line long code and its phone number obtains the information such as target mobile phones number that short message sends according to sending user visitor room number;
Then, the short message pretreatment module sends to interface message processor (IMP) with the short message of structure;
After interface message processor (IMP) receives short message,,, short message is passed to user mobile phone by short message service center/gateway with being sent to short message service center/gateway after the short message encapsulation according to the communications protocol requirement of short message service center/gateway.
The above is embodiments of the invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within the claim scope of the present invention.