Summary of the invention
The technical problem to be solved in the present invention is to provide 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:
An attendant console system with Short Message Service function, comprises local side and some seats, and described attendant console system also comprises the 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); Describedly according to short message tectonic information structure short message, comprise: from business module or user's editor module of this seat, receive short message tectonic information;
According to the short message types parameter of short message tectonic information, determine the type of short message;
According to the definition of the type short message, from short message tectonic information, extract corresponding content of short message parameter and destination number parameter;
According to the content of content of short message parameter combinations short message, and according to destination number parameter, determine the destination number of short message; Wherein, short message pretreatment module is according to destination number parameter, and the fixed line long code that this seat is safeguarded and the corresponding relation of fixed line short codes and mobile number are inquired about, to determine the destination number of short message;
Described interface message processor (IMP) is for sending to short message service center/gateway by the short message receiving.
In such scheme, described interface message processor (IMP) will require described short message to encapsulate according to the communications protocol of described short message service center/gateway before described short message is sent to described short message service center/gateway.
A Short Message Service method for attendant console system, is characterized in that, comprises the following steps:
A, short message pretreatment module are constructed short message according to short message tectonic information, and are sent it to interface message processor (IMP); Describedly according to short message tectonic information structure short message, comprise: from business module or user's editor module of this seat, receive described short message tectonic information;
According to the short message types parameter of described short message tectonic information, determine the type of described short message;
According to the definition of described type short message, from described short message tectonic information, extract corresponding content of short message parameter and destination number parameter;
According to the content of short message described in described content of short message parameter combinations, and according to described destination number parameter, determine the destination number of described short message
B, described interface message processor (IMP) send to short message service center/gateway by the short message receiving.
In such scheme, in described step a, described short message pretreatment module is according to described destination number parameter, and the fixed line long code that this seat is safeguarded and the corresponding relation of fixed line short codes and mobile number are inquired about, and determine the destination number of described short message.
In such scheme, when described short message pretreatment module receives described short message tectonic information from described business module, described content of short message parameter is described service related information, the fixed line long code that described destination number parameter is described service-user.
In such scheme, when described short message pretreatment module receives described short message tectonic information from described user's editor module, described content of short message parameter is transmit leg editor's text, and described destination number parameter is the fixed line short codes that wish sends user.
In such scheme, in described step b, after described interface message processor (IMP) requires the short message receiving to encapsulate according to the communications protocol of described short message service center/gateway, then send it to described short message service center/gateway.
Beneficial effect of the present invention is mainly manifested in: attendant console system provided by the invention has comprised Short Message Service device, realize it and followed business 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
Below in conjunction with accompanying drawing, the invention will be further described.
With reference to Fig. 1, a kind of attendant console system with Short Message Service function, except local side and some seats, comprise the interface message processor (IMP) that is positioned at the short message pretreatment module of each seat, some business modules (be business module 1 to business module n, n is natural number), user's editor module and is positioned at local side.
Short message pretreatment module, for constructing short message according to the short message tectonic information of business module or the transmission of user's editor module, and sends it to interface message processor (IMP);
Interface message processor (IMP), for receiving this short message, requires this short message to encapsulate according to the communications protocol of short message service center/gateway, and sends it to short message service center/gateway and be distributed to 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, comprises the following steps:
S201: short message pretreatment module receives short message tectonic information from business module or user's editor module of this seat;
S202: short message pretreatment module is determined the type of short message according to the short message types parameter of short message tectonic information;
S203: short message pretreatment module extracts corresponding content of short message parameter and destination number parameter from short message tectonic information according to the definition of the type short message;
S204: short message pretreatment module is according to the content of content of short message parameter combinations short message, and according to destination number parameter, determine the destination number of short message; Wherein, short message pretreatment module is according to destination number parameter, and the fixed line long code that this seat is safeguarded and the corresponding relation of fixed line short codes and mobile number are inquired about, to determine the destination number of short message;
S205: short message pretreatment module sends to the short message of structure the interface message processor (IMP) of local side;
S206: interface message processor (IMP), according to the communications protocol requirement of short message service center/gateway, sends to short message service center/gateway after the short message receiving is encapsulated, by short message service center/gateway the most at last short message be distributed to targeted customer.
Different according to the source of short message tectonic information, the Short Message Service of attendant console system can be divided into business and automatically follow 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 while producing automatically, and content of short message parameter is service related information, the fixed line long code that destination number parameter is service-user; Short Message Service is transmit leg while initiatively initiating, and content of short message parameter is transmit leg editor's text, and destination number parameter is the fixed line short codes that wish sends user.
Below by two embodiment, respectively both of these case is illustrated.
Embodiment mono-: what belong to that business follows production automatically wakes failure notification short message
Hotel guest-room user checks in process and has registered phone number, the fixed line short codes of in attendant console system, user's phone number and user being moved in to guest room, be that objective room number associates and opened short message service, wherein, fixed line long code and its phone number that user moves in guest room form the corresponding table of comparisons, and the fixed line long code in guest room is associated with objective room number.
If user has applied for alarm clock service, the alarm clock service time of its appointment is when reach, the fixed line in its guest room is just hurrying or ring unanswered, and after several minutes, attendant console system retry is still unsuccessful, the waking unsuccessfully business module and will wake unsuccessfully short message tectonic information and report to short message pretreatment module by internal interface of seat, tectonic information at least comprises: for determine short message types short message service code, wake unsuccessfully user guest room fixed line long code and wake Time To Failure;
Short message pretreatment module receives after this information, according to short message service code, determine that this short message is one and wakes failure notification short message, according to short message, definition extracts and wakes Time To Failure and wake unsuccessfully user guest room fixed line long code from the information receiving; Then, according to waking Time To Failure, utilize and wake failure notification short message masterplate combination content of short message, as " xxxx tenant people thanks you to stay xx hotel! You are registered in the service of waking of yyyy-mm-dd hh:mm, and because of your guestroom telephone, the line is busy or ring unanswered fails, and would you please pay close attention to, and wish your happy! ", wherein, the information such as objective room number that the relevance by guest room fixed line long code and objective room number obtains; Meanwhile, according to waking unsuccessfully, 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;
Then, short message pretreatment module sends to interface message processor (IMP) by the short message of structure;
Interface message processor (IMP) receives after short message, according to the communications protocol requirement of short message service center/gateway, by being sent to short message service center/gateway after short message encapsulation, by short message service center/gateway, short message is passed to user mobile phone.
Embodiment bis-: transmit leg is initiatively initiated Short Message Service
Hotel guest-room user checks in process and has registered phone number, the objective room number of in attendant console system, user's phone number and user being moved in to guest room associates has opened short message service, wherein, fixed line long code and its phone number that user moves in guest room form the corresponding table of comparisons, and the fixed line long code in guest room is associated with objective room number.
After user moves in, hotel receptionist opens the short message editing interface of attendant console system as transmit leg, editor welcomes short message text and sends by the objective room number of selecting this user to move in guest room, user's editor module sends corresponding short message tectonic information to short message pretreatment module, and tectonic information at least comprises: for determining the short message text of the short message service code of short message types, the objective room number that sends user and transmit leg customization;
Short message pretreatment module receives short message tectonic information by internal interface from user's editor module, according to short message code, determine that this short message is a self-defined short message, from the information receiving, extract the short message text of transmit leg customization and send user visitor room number; Then, by short message text-converted, be content of short message, and determine according to sending user visitor room number the guest room fixed line long code that it is associated, and the table of comparisons of inquiring about guest room fixed line long code and its phone number obtains the information such as target mobile phones number of short message transmission;
Then, short message pretreatment module sends to interface message processor (IMP) by the short message of structure;
Interface message processor (IMP) receives after short message, according to the communications protocol requirement of short message service center/gateway, by being sent to short message service center/gateway after short message encapsulation, by short message service center/gateway, short message is passed to user mobile phone.
The foregoing is only embodiments of the invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in claim scope of the present invention.