Background technology
(Short Message Service SMS) because of advantages such as its economy, convenience, promptnesses, obtaining application more and more widely in life, but the short message technology is applied to also in the liaison of some unlawful activities in short message service.Along with needs, the especially needs of anti-terrorism development of the situation of international political situation development, each countries and regions begin from the law angle monitoring of communication network to be become and legalize, be also referred to as Lawful Interception.Lawful Interception adopts specific monitoring technique interface that the communication network related communication content of being monitored is intercepted and analyzes by audiomonitor.And short message is monitored, and then is one of most important parts in the Lawful Interception.The monitoring of short message relates to the network type of being monitored, the technology contents such as use language of monitoring interface protocol, coded format, controlled terminal (for example mobile phone of specific user's use, PDA etc.).
As shown in Figure 1, listening center (Listen In Center, LIC) 11 may with GSM network 12 (GlobalSystem Mobile, global system for mobile communications), CDMA2000 network 13 (Code DivisionMultiple Access, code division multiple access), WCDMA network 14 (Wideband CDMA, Wideband Code Division Multiple Access (WCDMA)), the equipment of multiple network types such as TD-SCDMA network 15 (Time-Division Synchronization CDMA, TD SDMA) andother networks 16 docks.In different network types, the coded format of short message true form is also different.Present most widely used GSM network short message and two kinds of technical implementation way of cdma network short message of mainly containing of short message service.
Simultaneously, country variant, distinct device producer may use different monitoring interface protocols.Interface protocol is monitored in use more widely at present has: ETSI (European Telecommunications StandardsInstitution, ETSI) monitoring standard, CALEA (Communications Assistancefor Law Enforcement ACT, communications assistance enforcement bill) monitoring standard, Chinese GSM monitor standard, Chinese CDMA monitors standard, Chinese WCDMA/TD-SCDMA monitoring standard, Chinese CDMA2000 monitoring standard etc.These standards are used different interface mode and coded format.Therefore,listening center 11 need be monitored the interface butt joint with different short messages, as shown in Figure 2,listening center 11 is monitoredinterface 24 withETSI monitoring interface 21, CALEAmonitoring interface 22, ChineseGSM monitoring interface 23, Chinese CDMA respectively, Chinese WCDMA/TD-SCDMA monitors interface 25, and ChineseCDMA2000 monitors interface 26 and achieves a butt joint withother monitoring interfaces 27.
In addition, different controlled terminals may use different language.As shown in Figure 3,listening center 11 uses various controlled terminals without language to monitor by 31 pairs on network, comprisesChinese terminal 32, Frenchportable terminal 33,Arabic terminal 34 and other multibyte language terminals 35.This shows having higher requirement of content of short message tolistening center 11.
In fact, because the diversity of network type, monitoring interface protocol, coded format, language form in the short message service, monitor enforcement to short message and bring very big difficulty, cause still can not realizing in the prior art different network types, different monitoring protocols standards, the short message of different language type are comprehensively monitored.
Summary of the invention
At above-mentioned defective, the object of the present invention is to provide a kind of monitor method of short message, this method can comprehensively be monitored various types of short messages, and then has greatly promoted short message monitoring ability.
In order to realize goal of the invention, the invention provides a kind of monitor method of short message, may further comprise the steps:
The monitoring parameter of A, listening center configuration short message;
B, listening center receive the short message event report that controlled network element is sent, and according to described monitoring parameter this short message event report are decoded, to obtain the short message true form;
C, listening center are resolved this short message true form according to described monitoring parameter, with user data content and the coded format thereof of obtaining short message;
D, listening center are decoded to described user data content according to described monitoring parameter and/or coded format, to obtain content of short message.
The method according to this invention, the monitoring parameter in the described steps A comprise the monitoring interface protocol type of the network type of controlled network element, controlled network element and/or the language codes page or leaf of controlled terminal.
The method according to this invention, listening center is configured to the language codes page or leaf of controlled terminal in the described steps A: the default language code page or leaf in described controlled terminal belonging country/area, the language-specific code page that perhaps described controlled terminal is provided with.
The method according to this invention also comprises between described steps A and the step B:
Listening center is monitored controlled network element and is established control;
Triggering short message is monitored when controlled network element monitors controlled terminal transmitting-receiving short message;
Controlled network element sends to listening center with this short message by the short message event report.
The method according to this invention, described step B further comprises:
After B1, listening center are received the short message event report of controlled network element, search the network element office direction of described controlled network element;
B2, listening center are judged the monitoring interface protocol type of controlled network element according to described network element office direction;
B3, listening center be according to described monitoring interface protocol type, and described short message event report is decoded draws the short message true form.
The method according to this invention, described step C further comprises:
C1, listening center judge the network type of this controlled network element according to the network element office direction of controlled network element;
C2, listening center are resolved user data content and the coded format thereof that draws short message according to described network type to described short message true form.
The method according to this invention, described step D further comprises:
The coded format of the user data content of D1, the described short message of judgement;
D2, if described coded format be the byte coded format, described user data content direct decoding is drawn content of short message;
D3, if described coded format be double byte or multibyte coded format, according to the language codes page or leaf of described controlled terminal described user data content being decoded draws content of short message.
The method according to this invention, the byte coded format among the described step D2 are 7-bit coding or 8-bit coding; Double byte among the described step D3 or multibyte coded format are the UCS2 coding.
The method according to this invention, described step D3 further comprises:
D31, listening center judge whether described controlled terminal is provided with the language-specific code page, if execution in step D32 then, otherwise execution in step D33;
D32, listening center are defined as this language codes page or leaf that decoding is used to user data content with described language-specific code page;
D33, listening center are defined as this language codes page or leaf that decoding is used to user data content with the default language code page or leaf in described controlled terminal belonging country/area;
D34, listening center adopt described definite language codes page or leaf that described user data content is decoded, to draw content of short message.
The method according to this invention further comprises after the described step D34:
D35, listening center show described decoded content of short message;
D36, judge that whether described content of short message correctly shows, if execution in step D38 then, otherwise execution in step D37;
D37, craft are selected the language codes page or leaf of described controlled terminal and described user data content are decoded again, until correctly demonstrating content of short message;
D38, listening center are preserved the content of short message of described correct demonstration.
The present invention is by the monitoring parameter of listening center configuration short message, and described monitoring parameter can comprise network type, monitor interface protocol type and language codes page or leaf etc.; Listening center is handled various types of short messages according to this monitoring parameter and is drawn content of short message, specifically can realize the comprehensive monitoring to the short message of different network types, different monitoring interface protocol standard, different language type.For Lawful Interception mechanism, can use the present invention to grasp various types of content of short message of specific user at any time, and then safeguard the country and the public's safety.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Basic thought of the present invention is: the monitoring parameter that disposes various short messages at listening center, after receiving that controlled network element is sent the short message event report, listening center obtains the short message true form according to described monitoring parameter from the short message event report, and this short message true form resolved to obtain user data content and coded format thereof, at last, according to described monitoring parameter and/or coded format user data content is decoded, to obtain content of short message.
Fig. 4 shows the present invention to carry out short message and monitors and to establish the method flow of control, and literary composition specific as follows is described.
Among the step S1, listening center is monitored controlled network element and is established control, sends target to controlled network element and establishes the control request, requires that the controlled terminal that the specific user uses is carried out short message and monitors.Wherein, controlled network element can be equipment such as mobile switch or short message service center, and controlled terminal can be mobile phone or PDA etc.
Among the step S2, when listening center the monitoring of controlled network element is established and to control successfully, controlled network element returns target to listening center and establishes control success response message.
Among the step S3, when controlled network element monitors controlled terminal when having short message movable, i.e. during controlled terminal transmitting-receiving short message, triggering short message is monitored.
Among the step S4, after controlled network element triggering short message is monitored, the short message event report is sent to listening center by interfaces such as HI2.
Fig. 5 shows the method flow of realizing that short message of the present invention is monitored, and is as mentioned below.
Among the step S501, the monitoring parameter of listening center configuration short message, described monitoring parameter comprises the monitoring interface protocol type of the network type of controlled network element, controlled network element and/or the language codes page or leaf of controlled terminal.
Listening center is to each controlled network element configuration network type, and the network type of configuration comprises GSM, CDMA etc., and in different network types, the coded format of short message true form is also different.Each controlled network element configuration is monitored the interface protocol type, and protocol type comprises that ETSI monitors standard, Chinese GSM monitors standard, Chinese CDMA monitoring standard etc., and these standards are used different interface mode and coded format.Listening center comprises the language codes page or leaf configuration step of controlled terminal: for country variant/area, the language codes page or leaf of listening center controlled terminal is set to the default language code page or leaf in this controlled terminal belonging country/area, with the language form of adaptive most Short Message Terminals; And the language-specific code page of the known language type that is provided with for controlled terminal, if the language that uses is double byte or multibyte language, and different with listening center the country one belongs to language, then this language-specific code page of listening center is set to the language codes page or leaf of controlled terminal.
Among the step S502, listening center receives the short message event report that controlled network element is sent, and according to described monitoring parameter this short message event report is decoded, to obtain the short message true form.
When controlled network element monitors controlled terminal when having the short message incident to take place, triggering short message is monitored, and short message is sent to listening center by the short message event report.Listening center is searched the network element office direction of described controlled network element, and judges the monitoring interface protocol type of butt joint according to the network element office direction.
Listening center calls different monitoring interface decoding storehouses the short message event report is decoded according to monitoring the interface protocol type, obtains the short message true form.The short message true form refers to the message code stream that sends up from controlled terminal, and it defers to the requirement of short message service center to the true form code stream.
Among the step S503, listening center is resolved this short message true form according to described monitoring parameter, with user data content and the coded format thereof of obtaining short message.
Listening center is judged the network type of controlled network element according to the network element office direction of the controlled network element of find, thereby knows that this short message belongs to the G net short message, the C net short message still is the short message of other networks.According to network type, call corresponding short message decoding interface and carry out the parsing of short message true form, to obtain the user data content and the coded format thereof of short message.
For G net short message true form, comprise following protocol Data Unit (Protocol Data Unit, PDU) type: short message service transmit (Short Message Service-Deliver, SMS-DELIVER); Short message service transmission report (Short Message Service-Deliver-Report, SMS-DELIVER-REPORT); The short message service submission (Short MessageService-Submit, SMS-SUBMIT); Short message service turn in a report (Short Message Service-Submit-Report, SMS-SUBMIT-REPORT); The short message service status report (Short MessageService-Status-Report, SMS-STATUS-REPORT); The short message service order (ShortMessage Service-Command, SMS-COMMAND).Generally speaking, Lawful Interception mechanism need discern the user's content of short message that carries in SMS-DELIVER, the SMS-SUBMIT protocol Data Unit.The PDU of other types resolves as option.
For C net short message true form, comprise following protocol Data Unit (PDU) type: short message service transmits (Short Message Service Deliver, SMS Deliver); (ShortMessage Service Submit, SMS Submit) submitted in short message service to; Short message service deletion (Short Message ServiceCancellation, SMS Cancellation); The short message service user responds (Short Message ServiceUser Acknowledgment, SMS User Acknowledgment); The short message service user sends response (Short Message Service Delivery Acknowledgment, SMS DeliveryAcknowledgment).Generally speaking, Lawful Interception mechanism need discern the user's content of short message that carries in SMS Deliver, the SMSSubmit protocol Data Unit.The PDU of other types resolves as option.
Through resolving, can obtain user data content (userdata), (Data CodingScheme DCS) waits relevant parameter to data coding scheme, and can know the coded format of user data content according to DCS.
Among the step S504, listening center is decoded to described user data content according to described monitoring parameter and/or coded format, to obtain content of short message.
User data content (userdata) is the short message character string through the result behind the coding, and DCS coded system commonly used at present has byte coded format, double byte or multibyte coded format, and the byte coded format comprises 7-bit coding, 8-bit coding etc.; Double byte or multibyte coded format comprise UCS2 coding etc.
According to the coded format of the user data content of short message, listening center is decoded to user data content, and for coded formats such as 7-bit, 8-bit, decoding back content of short message can directly show according to character string.And for the short message of UCS2 coding, be generally the multibyte spoken and written languages, such as Chinese and Arabic, the language codes page or leaf of corresponding language need be set, the multibyte literal is changed into Unicode Unicode after, could correctly show content of short message.
Fig. 6 shows the flow process of the preferred embodiment of the present invention, as described below:
Among the step S601, controlled network element is reported to listening center by the X2 interface connection with the short message event report.The listening port that the network element office direction of each controlled network element configuration X2 is connected at listening center number.When setting up X2 and connect, according to X2 listening port number, listening center is safeguarded the incidence relation that controlled office direction number is connected with X2.Connect the short message event report of receiving from certain X2, listening center finds out the network element office direction of controlled network element according to the incidence relation that the network element office direction of controlled network element is connected with X2.
Among the step S602, listening center is judged the monitoring interface protocol type of controlled network element according to the network element office direction of described controlled network element.
Among the step S603, according to monitoring the interface protocol type, listening center calls different monitoring interface decoding storehouses the short message event report is decoded.Through decoding, obtain the short message true form.
Among the step S604, listening center is judged the network type of this controlled network element according to the network element office direction of controlled network element, for example judges that it still is the C net short message that this short message belongs to the G net short message.
Among the step S605, listening center calls corresponding short message decoding interface and carries out the parsing of short message true form according to network type.Through resolving, can obtain relevant parameters such as the user data content of short message and coded format thereof.
Among the step S606, judge whether the coded format of the user data content of described short message is the byte coded format, if, execution in step S607 then, otherwise execution in step S608.
Among the step S607, if described coded format is the byte coded format, coded format such as 7-bit, 8-bit for example, listening center is directly decoded to user data content according to this coded format, and the content of short message that draws after the decoding can directly show according to character string.
Among the step S608, if described coded format is double byte or multibyte coded format, according to the language codes page or leaf of described controlled terminal described user data content being decoded draws content of short message.
Fig. 7 shows the flow process that realizes that the present invention decodes to the short message of double byte or multibyte coded format, is described below:
Among the step S701, after the user data content of judging short message in step S608 is double byte or multibyte coded format (for example UCS2 coding), this short message is offered double byte or multibyte coded format decoding processing flow process as going into ginseng.
Among the step S702, listening center extracts the controlled terminal in the short message reporting event, judges whether listening center is provided with the language-specific code page to this controlled terminal; If execution in step S703 then; Otherwise execution in step S704.
Among the step S703, listening center is defined as this language codes page or leaf that decoding is used to user data content with the language-specific code page of described controlled terminal.
Among the step S704, listening center is defined as this language codes page or leaf that decoding is used to user data content with the default language code page or leaf in described controlled terminal belonging country/area.
Among the step S705, according to step S703 or the definite current language code page of step S704, the user data content of short message is decoded drawing content of short message, and double byte or multibyte language are changed into the character string that can show, for example the Unicode character string.
Among the step S706, listening center shows described decoded content of short message, content of short message can be presented at monitor attend a banquet on, and check by the operator whether content of short message correctly shows.If execution in step S708 then; Otherwise be shown as mess code, then execution in step S707.
Among the step S707, show mess code at listening center, then the descriptive language code page is selected incorrect.At this moment the operator is can be voluntarily manual selects the language codes page or leaf, and changes step S705 over to and user data content is decoded again execution in step S708 after correctly demonstrating content of short message.
Among the step S708, listening center is preserved the content of short message of described correct demonstration in database, for inquiry in the future.
In sum, the present invention can realize the comprehensive monitoring to the short message of different network types, different monitoring protocols standard, different language type, and it has greatly promoted short message and has monitored ability, has very high practical value.For Lawful Interception mechanism, can use the present invention to grasp various types of content of short message of specific user at any time, and then safeguard the country and the public's safety.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.