WO2006116942A1 - A method for transferring text message - Google Patents

A method for transferring text message Download PDF

Info

Publication number
WO2006116942A1
WO2006116942A1 PCT/CN2006/000873 CN2006000873W WO2006116942A1 WO 2006116942 A1 WO2006116942 A1 WO 2006116942A1 CN 2006000873 W CN2006000873 W CN 2006000873W WO 2006116942 A1 WO2006116942 A1 WO 2006116942A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
text message
parameter
template
party
Prior art date
Application number
PCT/CN2006/000873
Other languages
French (fr)
Chinese (zh)
Inventor
Long Luo
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CNB2005101028166A external-priority patent/CN100455048C/en
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2006116942A1 publication Critical patent/WO2006116942A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements

Definitions

  • the present invention relates to mobile communication technologies, and in particular, to a method for delivering a text message. Background of the invention
  • a text message is a text-based message, that is, the string corresponding to each message in the message is no longer encoded in any way, so that people can develop and apply it.
  • Text messages that are frequently used when communicating between the terminal and the network side include Session Initiation Protocol (SIP) messages, Session Description Protocol (SDP) messages, and Extensible Markup Language (XML) protocol messages.
  • SIP Session Initiation Protocol
  • SDP Session Description Protocol
  • XML Extensible Markup Language
  • the main object of the present invention is to propose a method of delivering a text message in order to reduce the network bandwidth resources used when delivering a text message.
  • a method of delivering a text message comprising:
  • the first party of the network side and the terminal constructs the second party of the text according to the text message template
  • the second party obtains the message parameters carried in the text message and the value thereof according to the text message template.
  • the message parameter involved in the text message includes a first message parameter that has multiple attributes
  • step A the step of performing location sorting and setting the corresponding location number includes: performing location ordering on each message parameter including the first message parameter involved in the text message, and using the sorted position as the text message.
  • the location number corresponding to each message parameter setting including the first message parameter is involved;
  • the step A further includes: performing location ordering on each attribute of the first message parameter, and performing the first position according to the sorted position. Setting a slave location number for each attribute of the message parameter, and then setting a composite location number corresponding to each attribute of the first message parameter by using the location number corresponding to the first message parameter and the set slave location number, where the composite location number is The subordinate position numbers of the respective attributes are respectively used as suffixes or subscripts of the corresponding position numbers of the first message parameter;
  • the step of establishing a text message template includes: establishing a text message template by using each attribute of the first message parameter and its corresponding composite location number and other message parameters involved in the text message and their corresponding location numbers; Or, using the first message
  • Each attribute of the number and its corresponding composite location number establishes a text message sub-template corresponding to the first message parameter, and establishes a text message template by using the first message parameter and other message parameters involved in the text message and their corresponding location numbers.
  • the message parameter required in the current text message includes a first message parameter; in step B, the step of determining, by the first party, the location number and constructing the current text message includes: the first party Determining, according to the text message template, a composite location number corresponding to each attribute of the first message parameter in the message parameter required by the text message, and determining a location number corresponding to other message parameters required for the current text message, and then, the first The information of each attribute of the first message parameter and the determined information of the composite location number required by the text message, and the value of other message parameters required for the text message and the determined location number information. Construct this text message;
  • step C when the text message template is created by using the respective attributes of the first message parameter and the corresponding composite location number, the step of obtaining includes: the second party corresponding to the text message template and the current text message The composite location number information of each attribute of the first message parameter and the value obtain the attributes of the first message parameter and their values, and obtain the other message parameters according to the position number information and the value corresponding to other message parameters in the text message. And its value;
  • step C when the text message sub-template corresponding to the first message parameter is established by using each attribute of the first message parameter and its corresponding composite location number, the acquired step comprises: the second party Deleting a text message sub-template corresponding to the first message parameter according to the text message template and the composite location number information corresponding to each attribute of the first message parameter in the text message, and acquiring the corresponding first message parameter from the sub-template Attribute, and get its value and other message parameters and values.
  • the step A includes: sorting the message parameters involved in the text message by using a plurality of rules, and setting corresponding bits for the message parameters according to the sorted positions of the rules. Set the number, and then use different message parameters and their corresponding location numbers to create different versions of the text message template;
  • the method further includes: the terminal negotiating with the network side the text message template of the current version used;
  • step B the text message template is based on the current version of the text message template
  • step C the text message template is based on the current version of the text message template.
  • the step of the terminal negotiating the current version of the text message template used by the terminal with the network side includes: the first party sending the current version of the text message template to the second party, and the second party sending the text message sent by the first party Template as a text message template for the current version used;
  • step B further includes: the first party carrying the current version of the letter in the constructed text message in steps and steps
  • the method further includes: after the second party receives the current text message sent by the first party, determining, according to the current version information obtained from the current text message, whether it is saved in the The current version of the text message template, if yes, execute step C, otherwise the current process ends.
  • the step further includes: dividing the created text message template into different sub-templates corresponding to different network entities according to different network entities involved in each message parameter in the established text message template, and then saving each sub-template in the Corresponding network entity;
  • the first party is a terminal, and the second party is a network side;
  • the step C includes: on the network side, directly receiving the sub-template saved by the first network entity sent by the terminal to the current text message, and the location number corresponding to the message parameter involved in the text message.
  • the information and the value obtain the message parameters involved in the text message and the value thereof, and then the first network entity sends the text message to the subsequent a network entity, the subsequent network entity obtains the message parameters involved in the text message and the value thereof according to the sub-template saved by itself and the location number information and the value corresponding to each message parameter involved in the text message. .
  • the step A further includes: saving the created text message template in each network entity on the network side;
  • the first party is a terminal, and the second party is a network side;
  • the step C includes: on the network side, directly receiving the network entity of the current text message sent by the terminal, according to the text message template saved in the file, and the location number information and value of each message parameter in the text message. Get all the message parameters and their values in this text message.
  • the message parameters required for the current text message include a message parameter corresponding to the dynamic parameter information and a message parameter corresponding to the static parameter information;
  • step B the step of constructing the current text message by the first party includes the following steps: B1.
  • the first party sets a dynamic parameter mask row and a data row in the current text message;
  • One party sets a mask value of 1 for the message parameter corresponding to the required dynamic parameter information in the text message;
  • the first party determines, according to the location number corresponding to the message parameter corresponding to each dynamic parameter information required by the text message in the text message template, that the set mask value 1 is in the dynamic parameter mask row. Position, and determining a location of the value of the message parameter corresponding to each dynamic parameter information in the data line;
  • the step C includes the following steps:
  • the second party according to the position of the mask value 1 in the dynamic parameter mask line in the text message, the position of the value of the message parameter it in the text message in the data line, and The location number corresponding to each message in the text message template, and the message parameter corresponding to the dynamic parameter information in the text message and the value thereof are obtained; C2.
  • the second party obtains according to the type of the text message, the message parameter obtained by the self-interaction with the first party, the value thereof, and the location number corresponding to each message parameter in the text message template saved in the user.
  • the message parameters corresponding to the static parameter information in this text message and their values.
  • the step B2 further includes: the first party sets a mask value of 0 for the message parameter corresponding to the static parameter information in the text message;
  • the step B3 further includes: the first party determining the set mask value according to the location number corresponding to the message parameter corresponding to each static parameter information in the text message template in the text message template. The position in the dynamic parameter mask line;
  • the second party further obtains the message parameter corresponding to the static parameter information in the current text message according to the position of the mask value 0 in the dynamic parameter mask row in the current text message. Its value.
  • the present invention has the following advantages:
  • the UE or the network side when the UE or the network side constructs a text message, it only needs to carry the location corresponding to the message parameter required for the text message in the current text message according to the location number corresponding to each message parameter in the text message template.
  • the number information and the value can be used instead of the complete message parameters and their values, thus greatly reducing the length of the constructed text message and reducing the network bandwidth resources occupied when transmitting the text message, thereby greatly optimizing the network. performance.
  • the UE or the network side may carry the location number information of the message parameter corresponding to the dynamic parameter information that needs to be updated or the first interaction and the value thereof in the constructed text message, without carrying the already interacted Moreover, there is no static parameter information that changes, so, compared with the prior art, all the dynamic parameter information and the static parameter information required for the text message are carried in the text message, thereby further reducing the constructed text message. The length, and further reduces the network bandwidth resources used when passing text messages.
  • the UE implements a change of the text message according to the template.
  • the initial node that receives the text message sent by the UE may completely restore the text message according to the text message template, or may be completely initialized by the initial node and Subsequent other nodes restore the content of the text message that they need to process as needed, without a complete recovery, so that the invention has strong applicability and expandability.
  • 1 is a flow chart of an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for obtaining and negotiating a text message template of a currently used version by a UE through a SIP registration process initiated by a network side in the embodiment of the present invention.
  • the core idea of the present invention is to position the message parameters involved in the text message, and set the corresponding position number for the message parameters involved in the text message according to the sorted position, and then use the message parameters involved in the text message and
  • the corresponding location number establishes a text message template.
  • the first party of the network side and the terminal constructs a text message
  • the first party determines the location number corresponding to the message parameter required for the current text message according to the text message template.
  • constructing the current text message by using the determined location number information and the value of the message parameter required for the text message, and then the first party sends the constructed text message to the network side and the terminal.
  • the second party obtains the real message parameter carried in the text message according to the text message template and the location number information in the text message and the value of the message parameter required for the text message. And its value.
  • the static parameter information refers to parameter information that has been acquired by the second party in the network side or the UE before the first party interaction with the network side or the UE, and has not changed this time. , that is, the message parameters used by the second party in the previously obtained text message and the value thereof; and the dynamic parameter information refers to the second party in the network side or the HE before the second interaction with the first party.
  • the information that has not been exchanged and the information that has changed that is, the message parameters and their values that the second party has not yet obtained, which the first party needs to update and/or increase in this text message.
  • the information carried in the SIP text message that is configured and sent by the UE as the first party includes: Content-Type: application/SDP, Content-Length: 182, and the SIP text message that the UE constructs and sends this time.
  • the information carried includes: Content-Type: application/SDP, Content-Length: 180.
  • the message parameter and its value Content-Type: application/SDP are the information obtained by the network side of the second party from the last SIP text message, and This time, there is no change, that is, the static parameter information of the present invention; and the message parameter Content-Length: 180 is the text message parameter updated by the UE in the current SIP text message and its value, that is, the present invention Dynamic parameter information.
  • the UE or the network side only carries the dynamic parameter information in the constructed text message, that is, the information that the other party has not obtained, and does not carry the static parameter information, that is, the information that the other party has obtained, the length of the constructed text message can be further reduced. , thereby greatly reducing the network bandwidth resources used to deliver text messages.
  • the first party among the UE or the network side constructs a text message
  • the first party is in the constructed text message according to the location number corresponding to each message parameter in the text message template. Only the dynamic parameter information required for the text message, that is, the value of the message parameter updated and/or added by the text message that has not been interacted with in the previous text message interaction, is
  • the second party of the UE or the network side obtains the message parameter corresponding to the dynamic parameter information according to the text message template and the value thereof, and further needs according to the text message that has been obtained in the message interaction with the first party.
  • the static parameter information corresponds to the message parameter and its value, thereby recovering the actual text message.
  • the UE is used as the first party to construct a text message according to the established text message template, and the network side acts as the second party to recover the text message according to the established text message template.
  • the process of the actual content is taken as an example to explain the process of the present invention in detail.
  • FIG. 1 is a flow chart of an embodiment of the present invention.
  • the process of the UE transmitting a text message to the network side specifically includes the following steps:
  • Step 101 Pre-sort the message parameters involved in the text message, and set a corresponding location number for the message parameter according to the sorted position, and then use the message parameter and its corresponding location number to establish a text message template. And save the created text message template on the network side.
  • the present invention can perform position sorting on the message parameters that can be involved in the text message according to a rule, for example, sorting the message parameters according to the order of the first letters of all message parameters in the text message, or according to the text. All message parameters in the message are sorted by the frequency used, or sorted according to other order specified by the operator. That is to say, in this step, as long as each message parameter involved in the text message can be corresponding to a different location number, it can be distinguished, and the specific location ordering rule can be arbitrarily set. However, according to the sorted position, the present invention sets the corresponding position number for different message parameters, for example, the first and second message parameters of the sorted position. Corresponding to position number 1 and position number 2, respectively.
  • the message parameter involved in the text message may be all message parameters specified in the protocol used by the text message, for example, all message parameters specified in the SIP, SDP, and XML protocols, so that the location is performed.
  • the location parameters are sorted for all the message parameters; the message parameters involved in the text message may also be message parameters specified by the operator after filtering the message parameters of a protocol type according to actual business needs. For example, the message parameters in the SIP protocol are filtered, and the message parameters of the filtered SIP protocol are sorted.
  • the location number sub-table corresponding to the message parameter in the text message may be stored in a created text message template according to different protocol types, or message parameters of different protocol types and their corresponding locations may be utilized. Numbering creates multiple text message templates, that is, different text message templates exist for different protocol types.
  • SIP text messages after filtering the message parameters in the SIP protocol and the SDP protocol, and storing the message parameters involved in the filtered SIP and SDP protocols, the SIP protocol involves message parameters and their corresponding
  • the location numbers are stored in Table 1 as shown below, and the message parameters involved in the SDP protocol and their corresponding location numbers are stored in Table 2 as shown below.
  • each location number set by the present invention uniquely corresponds to a text message parameter.
  • the SIP message parameter corresponding to the position number 2 is Accept-Contact
  • a text message template 1 is created for the message parameters of the SIP protocol, and the message parameters corresponding to the SIP protocol are saved in the text message template 1.
  • the location number is created for the message parameters of the SDP protocol, and the location number corresponding to each message parameter of the SDP protocol is saved in the text message template 2.
  • a message parameter may have multiple attributes, in this step, it is also necessary to separately set the corresponding position number for each attribute of the message parameter.
  • the present invention can set a position number for a plurality of attributes of a message parameter.
  • the nesting mode that is, in the above process of setting the location number, if there are multiple attributes of a message parameter, the present invention first sets a corresponding location number for the message parameter, and then for each of the message parameters.
  • the attribute sets the position number, and combines the set position number of the message parameter and the position number of each attribute, that is, a composite position number corresponding to the attribute of the message parameter.
  • the joint corresponding manner may be that the location number of each attribute is used as a suffix or subscript of the message parameter position number.
  • a message parameter describes the requirements of each media attribute, such as the requirements for the attribute IP address and port number.
  • the present invention sets the position number 72 for the message parameter, sets the position number 1 for its attribute "IP address”, and sets the position number 2 for its attribute "port number”, so that the composite position number can be passed through "72.
  • Corresponding message parameter "IP address”, through the composite location number "70.2” corresponds to the message parameter "port number,,.
  • message parameter A describes the requirements of each media attribute, such as the requirement of the attribute IP address and port number, and the location number set for the message parameter A is 72, and the location number set for its attribute "IP address” is 1 , the location number set for its attribute "port number” is 2, so
  • the message parameter A and the location number 72 set for it may be saved in the text message template established by the present invention, and the respective attributes of the message parameter A and their composite location numbers are saved in a new one, corresponding to The message parameter A is in the text message subtemplate.
  • the text message sub-template corresponding to the message parameter A may be further invoked, and each attribute and its corresponding information are obtained from the sub-template.
  • the location number recovers the specific attribute of the message parameter A in the text message according to the location number in the sub-template.
  • the method for setting a location number for a message parameter and multiple attributes may also be that each attribute of the message parameter is regarded as a message parameter and other message parameters respectively.
  • Perform a uniform position sorting and set the corresponding position number for each attribute according to the sorted position. For example, after performing uniform position sorting, the position number corresponding to the message parameter "IP address" is 72, and the position number corresponding to the message parameter "port number” is 73.
  • Each attribute is then treated as a message parameter, along with other message parameters, in the created text message template.
  • the process of saving the created text message template on the network side may be: dividing the created text message template into different sub-templates corresponding to different network entities, and then saving each sub-template in In the corresponding network entity, the text message template saved in each network entity on the network side is a sub-template of the message parameters to be processed by the network entity, so that the purpose of the processing is to make the network entities available for unified use. That is, the same version of the text message template, so that in the subsequent process, each network entity recovers only the actual content of the message parameters that need to be processed in the text message according to the text message template, thereby reducing the traffic load of the single network entity.
  • the specific entity process of saving the created text message template on the network side may also be: saving the complete content of the established text message template in the network entity, so as to receive the network message directly sent by the UE in the subsequent process.
  • the entity recovers all the actual content of the text message according to the text message template.
  • Step 102 The UE acquires a text message template, and negotiates with the network side the text message template that should be used currently.
  • a message parameter may correspond to a different location number in a different version of a text message template.
  • the location number corresponding to the message parameter Proxy-Authorization is 37
  • the location number corresponding to the message parameter Proxy-Authorization is 20.
  • the UE may obtain one or more versions of the text. This message template, so there is a problem of how to ensure that the UE and the network side use the same version of the text message template, that is, the UE must negotiate with the network side that the version of the text message template should be used.
  • the UE can obtain each version of the text message template in multiple ways. For example, the UE triggers the registration process initiated by the network side to trigger one or more versions of the text message template information to be sent to the UE in the registration response message, so that the UE acquires; and/or, when the network side finds that the user roams to After the carrier network (triggered by the user when the location is updated or triggered when the network is registered), one or more versions of the text message template are sent to the UE by means of an over-the-air (OTA) method, such as a short message method, so that the UE obtains ; and / or, obtained by the UE downloading from a specified address (such as a Web site, etc.).
  • OTA over-the-air
  • the UE can negotiate with the network side of the text message template of the current version to be used in various manners. For example, the UE initiates a registration request to the network side, and the network side carries the text message template information of the current version to be used in the registration response message to be sent to the UE; or, the network side sends the text message template information of the currently used version to the OTA.
  • the method such as the short message mode, is actively sent to the UE to complete the negotiation process.
  • the UE may notify the network side of the text message template information of the current version to be actively updated, and complete the negotiation process.
  • the process of obtaining the text message template of each version and the text message template of the current version should be completed by using the registration process initiated by the UE to the network side as an example to describe the implementation process of the step 102.
  • 2 is a flowchart of a method for obtaining and negotiating a currently used version of a text message template by a UE by using a SIP registration process initiated by a network side in the embodiment of the present invention.
  • the UE initiates SIP registration in the IMS network.
  • the process of acquiring and negotiating a text message template for a SIP message parameter that should be used by the UE currently includes the following steps:
  • Step A1 The UE sends a registration request (REGISTER) message to the current generation.
  • Call Session Control Function (PCSCF) entity The UE sends a registration request (REGISTER) message to the current generation.
  • PCSCF Call Session Control Function
  • the REGISTER message is a standard registration request message specified in the SIP protocol, and the UE registers with the IMS network by sending the REGISTER message.
  • Step A2 After receiving the REGISTER message, the PCSCF entity sends the REGISTER message to the Serving Call Session Control Function (SCSCF) entity.
  • SCSCF Serving Call Session Control Function
  • Step A3 After receiving the REGISTER message, the SCSCF entity authenticates the UE, and after the authentication is passed, sends a 200 OK message to the PCSCF entity.
  • Step A4 After receiving the 200 OK message, the PCSCF entity presets and saves a version of the text message template in itself, such as version 1 as the text message template of the currently used version, and the text message template information ( Version 1) The parameter carried is sent to the UE in a 200 OK message.
  • the pre-templated in the PCSCF entity may be a sub-template corresponding to the text message template of the PCSCF entity, that is, the location number corresponding to the message parameter to be processed by the PCSCF entity, and does not include other network entities (such as SCSCF, AS). Etc.) Interact with the UE The location number corresponding to the message parameter in the text message template used by the SIP text message.
  • Step A5 After receiving the 200 OK message, the UE sends a Publish message to the application server (AS) through the PCSCF entity and the SCSCF entity.
  • AS application server
  • the UE when receiving the 200 OK message, the UE obtains a text message template from which the current version of the SIP text message should be used to exchange the PCSCF entity.
  • Step A6 The AS will pre-store a version of the text message template in itself, such as version 1 as the text message template of the currently used version, and carry the version 1 text message template in the 200 OK message and send it to the UE.
  • the pre-stored in the AS entity may be: a sub-template corresponding to the part of the text message template of the AS entity, that is, a bit corresponding to the message parameter to be processed by the AS entity.
  • the number is set, and does not include the location number corresponding to the message parameter in the text message template used by the other network entity to interact with the UE.
  • the UE completes the process of obtaining and negotiating the version of the text message template that should be used.
  • the following is a specific implementation process of the present invention by taking a text message that the UE interacts with the network side as a SIP session message.
  • Step 103 When the UE needs to interact with the network side with a text message, the UE constructs the current text message according to the obtained text message template of the current version.
  • the UE since a text message is composed of two parts: static parameter information and dynamic parameter information, and the static parameter information is information obtained and saved by the network side through the previous session message interaction, and only the dynamic parameter information is that the UE must be based on this time. The information on the network side is determined and notified by the actual needs of the interaction. Therefore, in this step 103, the UE may not carry the static parameter information in the text message of the required configuration, but only according to the acquired current version of the text message template and the dynamics required for the current text message.
  • the parameter information constructs the current text message, that is, the location number information and value of the message parameter corresponding to the dynamic parameter information required by the text message in the constructed text message according to the location number corresponding to each message parameter in the text message template. And, since both the UE and the network side may hold multiple versions of the text message template, the UE further carries the information of the current version used by the UE in the constructed text message template.
  • the process of carrying the location parameter information of the message parameter and the value of the message parameter corresponding to the dynamic parameter information required for the text message in the constructed text message described in this step may exist in multiple implementation manners. For example,
  • Manner 1 Set the dynamic parameter mask row and the data row in the text message, and use the specific mask value at the same position as the location number in the dynamic parameter mask row, such as the mask value 1, to represent the present
  • the dynamic parameter information required for the secondary text message corresponds to the location number of the message parameter. That is, the mask value 1 located at a specific location is used as the location number information of the message parameter corresponding to the dynamic parameter information required for the current text message; and sequentially carried in the data row according to the location number described in the text message template.
  • the dynamic parameter information required for this text message corresponds to the value of the message parameter.
  • Method 2 Set the location number line and the data line in the text message, and directly carry the position parameter number of the message parameter corresponding to the dynamic parameter information of the text message in the location number line; and then according to the position carried in the text message
  • the order of the numbers, in the data row sequentially carries the values of the dynamic parameter information corresponding to the text message in this order, for example, the UE carries 3, 75 in the position number row in the constructed text message, in the data row
  • the sequence carries cb0203isff3 ⁇ 4)k3, 234151D0FCE11 in order, so that the UE carries 3 in the location number row to indicate that the message parameter corresponding to the location number 3 in the text message template is used in the text message, and the message with the location number 3 is
  • the value of the parameter is cb0203isfff3 ⁇ 4)k3 in the data line, and the UE carrying 75 in the location number line indicates that the message parameter corresponding to the position number 75 in the text message template is used in the text message, and the
  • the dynamic parameter information required for the text message corresponds to the message parameter, first carrying the corresponding location number of the message parameter, and following the location number, followed by the message parameter The value is executed for each of the required dynamic parameter information corresponding to the message parameter.
  • the UE carries 3: cb0203isffffpk3, 75: 234151D0FCE11 in the constructed text message, so that in the text message, 3: cb0203isfffipk3 indicates that the message parameter corresponding to position number 3 in the text message template is used in the text message.
  • the value of the message parameter is cb0203isfff3 ⁇ 4)k3, 75: 234151D0FCE11 is the message parameter corresponding to the position number 75 in the text message template used in the text message, and the value of the message parameter is After 234151D0FCE1L
  • the foregoing only lists three implementation manners.
  • the present invention may also have other implementation manners to implement the location number of the message parameter corresponding to the dynamic parameter information required to carry the current text message in the constructed text message described in this step 103. The process of information and value.
  • a text message template when a text message template is created, different text message templates can be established for different protocol types. For example, the SIP and SDP protocol types respectively have their own text message templates. Therefore, when constructing a SIP session message, the UE The version of the text message template of the currently used SIP protocol is carried in the start position of the message header of the constructed SIP session message to notify the network side;
  • the UE sets a dynamic parameter mask line of all SIP message parameters in the text message template of the current version, that is, version 1 that has been negotiated with the network side, in this SIP session message, and is recorded as dynamic parameter mask line 1,
  • the mask value of the SIP message parameter corresponding to the dynamic parameter information required in the current SIP session message in version 1 is set to 1, and other SIP message parameters in the text message template of version 1 are required, that is, the current SIP session message is not needed.
  • the mask value of the SIP message parameter corresponding to the static parameter information in the SIP session message is set to 0, and then according to the location number corresponding to all SIP message parameters in the current version, that is, the text message template of version 1.
  • Determining the mask values 0 and 1 set for each SIP message parameter in the position number of the dynamic parameter mask line 1, that is, the mask value 0 or 1 set for a SIP message parameter in the dynamic parameter The position number of the position in the mask row 1 is the position number corresponding to the SIP information parameter in the text message template of version 1. Then, in the dynamic The data line corresponding to the SIP message parameter after the number 1 of the mask is recorded as the data line 1, according to the sequence of the position numbers corresponding to the SIP message parameters corresponding to the dynamic parameter information required in the current SIP session message in version 1. , determining corresponding to each dynamic parameter information carried
  • the UE carries the version information of the text message template of the currently used SDP protocol at the start position of the SDP message body of the configured SIP session message to notify the network side;
  • the UE sets a dynamic parameter mask line for all SDP message parameters in the text message template of the current version, which is negotiated with the network side, in the SDP message body of the current SIP session message, and records it as a dynamic parameter.
  • Masking line 2 and setting the mask value of the SDP message parameter corresponding to the dynamic parameter information required in the current SIP session message to 1, and using the SDP message parameter and the current SIP session message that are not required for the current SIP session message.
  • the mask of the SDP message parameter corresponding to the static parameter information is set to 0, and then the mask value set for each SDP message parameter is determined according to the position number corresponding to all SDP message parameters in the current version, that is, the text message template of version 1.
  • the position number of 1 in the dynamic parameter mask line 2 that is, the mask value 0 or 1 set for an SDP message parameter is in the position of the dynamic parameter mask line 2.
  • the order of the position numbers in 2 is.
  • a SIP session message constructed by the UE that is, an INVITE message is:
  • Header-mask 0110 ;
  • the version: operator A-SIP-version OO 1 is the identifier of the text message template for the current version of the SIP protocol message parameter, that is, version 1.
  • the dynamic parameter mask line 1 of all SIP message parameters in the version 1 text message template is header-mask: 0110; in the dynamic parameter mask line 1, the first position number is 0, indicating the version.
  • the SIP message parameter corresponding to the location number 1 is the static parameter information in the SIP session message or the SIP message parameter that is not used in the current SIP session message;
  • the second location number is 1, indicating that the SIP message parameter corresponding to the location number 2 in the text message template of the version 1 is the dynamic parameter information in the SIP session message, and the SIP message corresponding to the dynamic parameter information.
  • the value of the parameter is the first data cb0203isff 3 ⁇ 4)k3 in data row 1 after the dynamic parameter mask line 1; the third position number is 1, indicating the position in Table 1 in the version 1 text message template.
  • the SIP message parameter corresponding to the number 3 is the dynamic parameter information in the SIP session message, and the value of the SIP message parameter corresponding to the dynamic parameter information is Dynamic parameter mask next row i.e. the second row of data in a data 234151D0FCE11 after 1.
  • version: operatorA-SDP-version001 is the identifier of the text message template for the current version of the SIP protocol message parameter, that is, version 2.
  • the dynamic parameter mask line 2 of all SDP message parameters in the text message template of the current version, version 2, is sdp-mask: 1100 whils;
  • ⁇ a position number is 1 . Indicates that the SDP message parameter corresponding to the location number 1 in the text message template of the version 1 corresponds to the SDP message parameter.
  • the SDP message parameter corresponding to the location number 1 is the dynamic parameter information in the SIP session message, and the dynamic parameter information corresponds to
  • the value of the SDP message parameter is the first data in the data line 2 after the dynamic parameter mask line 2 is -2987933615; the second position number is 1, indicating that in the table 2 of the version 1 text message template, the location SDP message corresponding to number 2
  • the parameter is the dynamic parameter information in the SIP session message, and the value of the SDP message parameter corresponding to the dynamic parameter information is the next data in the data line 2 after the dynamic parameter mask line 2, that is, the second data 2987933615.
  • the present invention sets the corresponding location number of each attribute of the first message parameter in the text message template, for example, 70.1 and 70.2. Then, the location number corresponding to the first message parameter in the text message template is, for example, 70, and the dynamic parameter is masked by the UE. After the corresponding position number in the code line, that is, the position number 70 is filled in the mask value 1, the corresponding position in the subsequent data line is filled in 70.1: 29879336, 70.2: 33615, respectively, to respectively represent the first parameter of the first message. And the value of the second attribute. In this way, in the subsequent process, the network entity can obtain the values of the first and second attributes of the first message parameter according to 70.1: 29879336, 70.2: 33615 in the data line.
  • the UE only needs to set the first message parameter.
  • Each attribute is treated as a message parameter, that is, the mask value 1 set for each attribute of the first message parameter is carried in the corresponding position in the dynamic parameter mask line, and each of the data is carried at the corresponding position in the data line.
  • the value of the attribute can be.
  • the UE may also be configured to the SIP in the required constructed text message in order to ensure that the network side can recover the actual text message.
  • Each message parameter of the protocol sets a message parameter mask line 1 , and the message parameter corresponding to the position number in the SIP protocol text message template with the same position number is 1 in the message parameter mask row 1 is The message parameter of the SIP protocol used for this text message, and a message parameter mask line 2 is set in the required construction text message for each message parameter of the SDP protocol, and the message is used.
  • the sequence number of the specific location number indicates that the message parameter corresponding to the location number in the SDP protocol text message template with the same location number is the message parameter of the SDP protocol used for the text message, so that When the network side recovers the text message, it can learn all the message parameters used by the text message through the sequence number of the specific position in the message parameter mask row, that is, the network side can determine the required text message.
  • Static parameter information used For example, the information carried by a SIP session message constructed by the UE is: version: operatorA-SIP-versionOO 1;
  • Header-mask 0110 ;
  • the message parameter mask line 1 is message-maskl: 1110 alone, the first 3 bits are all 1, indicating that the dynamic parameter is masked.
  • the SIP message parameters corresponding to the first 3 bit mask values in the code line 1 are the SIP message parameters required for the current INVITE message, and the fourth bit is 0, indicating that the fourth bit mask value corresponds to the dynamic parameter mask line 1
  • the SIP message parameter is not the SIP message parameter required for this INVITE message, and the first 4 bits in line 1 of the dynamic parameter mask are 0110.
  • the network side analyzes the message parameter mask row 1 and the dynamic parameter mask row 1 to know that the first bit mask value 0 indicates that the message parameter with the location number 1 in the text message template of the SIP protocol is this time.
  • the message parameter corresponding to the static parameter information carried in the INVITE message, and the second and third digits of 1 indicate the message with the location number 2 and the location number 3 in the text message template of the SIP protocol.
  • the parameter is the message parameter corresponding to the dynamic parameter information carried in the INVITE message, and the fourth bit mask value 0 indicates that the message parameter with the location number 4 in the text message template of the SIP protocol is not the message required for the current INVITE message.
  • the network side analyzes the message parameter mask row 2 and the dynamic parameter mask row 2 to determine the message parameters of all the SDP protocols that need to be used in the current INVITE message.
  • the mask value 1 located at a specific location represents the SIP or SDP message parameter corresponding to the location number as the dynamic parameter information in the current SIP session message. And carrying the value of the dynamic parameter information in turn, and using the mask value 0 at a specific location to represent that the SIP or SDP message parameter corresponding to the location number is not used in the current SIP session message or as static parameter information.
  • the UE greatly reduces the length of the constructed text message, thereby reducing the bandwidth resources occupied by the transmitted text message.
  • Step 104 The UE delivers the constructed text message to the network side.
  • the UE may first compress the constructed text message, and then compress the compressed text.
  • the secondary text message is delivered to the network side.
  • Step 105 The network entity directly receives the text message sent by the UE, for example, is a PCSCF entity, and obtains version information used by the UE from the text message, for example, version 1 to determine whether the version 1 text message exists in the version 1
  • the template if present, performs step 106, otherwise, returns a failure notification message to the UE and ends the current flow.
  • the PCSCF entity when receiving the text message sent by the UE, the PCSCF entity first decompresses the text message, and then executes the text message. The step of determining whether the version 1 text message template exists in itself.
  • Step 106 The PCSCF entity according to the sub-template of the text message template of version 1 in itself The location number corresponding to each SIP and SDP message parameter, the type of the current SIP session message, and the information obtained in the previous message interaction with the UE are recovered by the current SIP session message that the PCSCF entity itself needs to process. Actual static parameter information; the location number corresponding to each SIP and SDP message parameter in the sub-template of the current version 1 text message template, and the mask value 1 carried in the current SIP session message in the dynamic parameter mask row.
  • the data of the location sequence and the corresponding location of the data part recovers the actual dynamic parameter information carried in the current SIP session message that the PCSCF entity needs to process, and recovers the actual message content that the PCSCF entity needs to process in the current SIP session message.
  • the PCSCF entity after receiving the INVITE message sent by the UE, the PCSCF entity obtains each 0 or 1 mask value in the dynamic parameter mask line at the beginning of the SIP message header in the message.
  • the PCSCF entity determines a specific location according to the type of the SIP session message, such as the mask value 0 of the first location sequence number, which represents the SIP message parameter that is not needed for the current SIP session message or the static parameter information in the current SIP session message. If the SIP message parameter is not used, the SIP message parameter corresponding to the location number 1 of the location is not used as the actual information in the current SIP session message.
  • the PCSCF entity is The SIP message parameter corresponding to the location number 1 corresponding to the location that has been previously acquired is used as the actual static parameter information in the current SIP session message.
  • the PCSCF entity learns that the SIP message parameter corresponding to the location location number 2 is the dynamic parameter information in the current SIP session message according to the specific location, such as the mask value 1 of the second location sequence number, and the dynamic parameter information takes the value of the data row.
  • the first data in .
  • the PCSCF entity recovers other static parameter information of the current SIP session message that the PCSCF entity needs to process according to each 0 or 1 mask value in the dynamic parameter mask row at the start position of the SDP message body in the SIP session message. And dynamic parameter information.
  • step 106 since the PCSCF entity can recover only the actual message content of the current SIP session message that the PCSCF entity itself needs to process, without restoring other subsequent network entities.
  • the actual message content of the current SIP session message is processed, and therefore, the processing procedure of the PCSCF entity is compressed, and the occupied network bandwidth resource is reduced when the SIP session message is delivered to other subsequent network entities.
  • Step 107 The PCSCF entity passes the SIP session message to the subsequent AS via the SCSCF entity.
  • Step 108 The subsequent AS and other network entities involved in the current SIP session message respectively according to the location number corresponding to each SIP and SDP message parameter in the sub-template of the version 1 text message template saved in the self, and the current SIP session
  • the type of the message, and the information obtained in the interaction with the previous message recovers the actual static parameter information carried in the current SIP session message that each network entity needs to process; according to the SIP and SDP message parameters in the current version.
  • the corresponding location number, the position order of the mask value 1 carried in the current SIP session message in the dynamic parameter mask line, and the data of the corresponding position of the data part are recovered from the current SIP session message that each network entity itself needs to process.
  • the actual dynamic parameter information carried is obtained, and the actual message content of the current SIP session message is obtained.
  • the PCSCF entity may save according to the saved
  • the complete text message template recovers all the contents of the received SIP session message, and then sends the SIP session message to the subsequent network entity, and the subsequent network entity does not need to perform the process of restoring the SIP session message.
  • step 105 to step 108 when an entity on the network side performs recovery of the received SIP session message, if a parameter in the SIP session message has a corresponding text message sub-template, the network The entity invokes the text message sub-template corresponding to the parameter, and obtains a specific attribute value of the parameter, that is, obtains a parameter attribute value actually carried in the SIP session message.
  • the UE carries the identifier of the text message template, such as the version information of the text message template, in the constructed SIP session message, thereby notifying the text message template that the network side should use.
  • the UE may also carry the complete text message template in the constructed SIP session message, thereby notifying the text message template that the network side should use.
  • the process of storing the static parameter information by the entities on the network side may be: in other previous message interactions, such as the message parameters obtained by the network side from the current message during the registration process of the UE to the network side and
  • the value, which is the dynamic parameter information of the current message is saved based on the text message template, that is, the value corresponding to the message parameter that has been used as the static parameter information is added to the text message template.
  • the network side receives a SIP registration request sent by the UE, obtains a message parameter and a value thereof in the SIP registration request, and then saves the established message parameter and its corresponding information in the text message template of the SIP protocol.
  • the value corresponding to the message parameter in the obtained SIP registration request included in the text message template of the SIP protocol is further saved.
  • the SIP registration request carries the message with the location number 1 in the text message template.
  • the parameter and its value, and when the network side receives the SIP registration request, the message parameter with the location number 1 and its value are obtained for the first time.
  • the message parameter with the position number 1 and its value are used as Static parameter information of the network side, then the network entity further saves the value corresponding to the message parameter of the location number 1 in the text message template, so that in the process of the above steps 105 to 108, the entities on the network side according to the text
  • the value of the message parameter saved in the message template, and the static parameter information of the text message is obtained. The value of the message parameter.
  • the UE constructs a text message whose message length is greatly compressed according to a version of the text message template supported by the network side, and the network side recovers the required text according to the text message template of the version.
  • the actual text message content thus greatly reducing the occupied network bandwidth resources in the case of ensuring accurate transmission of text messages.
  • the present invention completes the process of establishing a text message template on the network side in advance, and the UE obtains the text message template in various manners, thereby ensuring that the same text message template is saved in the network side and the UE.
  • a sorting rule may be pre-agreed by the UE and the network side, and the message parameters related to the text message are separately sorted by the UE and the network according to the agreed sorting rule, and are sorted according to the sorting.
  • the location sets the corresponding location number for each message parameter, and generates the same text message template to ensure that the same text message template is saved on the network side and the UE.
  • the process of establishing a text message template may be completed in the UE, and the network side obtains the text message template established by the UE from the UE, so that the network side and the UE have the same text message template, for example, the UE actively The created text message template is sent to the network side to be obtained by the network side.
  • the UE constructs a text message according to the established text message template
  • the network side takes the process of restoring the actual content of the text message according to the established text message template as an example to illustrate the process of the present invention.
  • the network side constructs a text message according to the established text message template, and the process of the UE recovering the actual content of the text message according to the established text message template is the same as the above process.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method for transferring text message, comprises: performing position sequencing to the message parameters related to text message, setting corresponding position number for the message parameters, establishing text message schema using the message parameters and the corresponding position number; the first party of the network side and terminal determines the position number corresponding to the message parameter required by current text message according to the message schema, and constructs the current text message according to the information of the determined position number and the value of the message parameter required by current text message; the second party of the network and terminal acquires the message parameter in current text message and the value of the message parameter according to the text message schema and the information of the position number in current text message and the value of the message parameter required by current text message.

Description

一种传递文本消息的方法  A method of delivering text messages
技术领域 Technical field
本发明涉及移动通信技术, 具体涉及一种传递文本消息的方法。 发明背景  The present invention relates to mobile communication technologies, and in particular, to a method for delivering a text message. Background of the invention
文本消息是一种基于文本格式的消息, 也就是, 消息中每一个信息 所对应的字符串不再进行任何方式的编码, 以便于人们的开发和应用。 终端和网絡侧进行通信时经常使用的文本消息包括会话发起协议( SIP ) 消息、 会话描迷协议 ( SDP ) 消息、 以及可扩展标记语言 (XML )协议 消息等。  A text message is a text-based message, that is, the string corresponding to each message in the message is no longer encoded in any way, so that people can develop and apply it. Text messages that are frequently used when communicating between the terminal and the network side include Session Initiation Protocol (SIP) messages, Session Description Protocol (SDP) messages, and Extensible Markup Language (XML) protocol messages.
由于文本消息中每一个信息所对应的字符串没有进行任何方式的编 码,而其它编码消息比如二进制编码消息和 ASN.1编码格式消息中每一 个信息所对应的字符串进行了特定方式的编码, 因此导致了文本消息比 一般编码消息的消息长度大很多。 比如, 一个文本消息如 SIP会话消息 中的 INVITE消息的消息长度大约为 1.5K个字节,而一个二进制编码消 息的消息长度仅为几个字节。 这样, 终端(UE )或网络侧在传递文本消 息时, 就会占用大量的网络带宽资源, 从而极大地降低了网络的性能。  Since the character string corresponding to each piece of information in the text message is not encoded in any way, other coded messages, such as a binary coded message and a string corresponding to each piece of information in the ASN.1 encoded format message, are encoded in a specific manner. This results in a text message that is much larger than the message length of a generally encoded message. For example, a text message such as a INVITE message in a SIP session message has a message length of approximately 1.5K bytes, and a binary coded message has a message length of only a few bytes. In this way, when the terminal (UE) or the network side transmits text messages, it consumes a large amount of network bandwidth resources, thereby greatly reducing the performance of the network.
由此可见, 如何减少传递文本消息所占用的网络带宽资源, 已经成 为了一个亟待解决的问题。 发明内容  It can be seen that how to reduce the network bandwidth resources used to deliver text messages has become an urgent problem to be solved. Summary of the invention
本发明的主要目的是提出一种传递文本消息的方法, 以便减少传递 文本消息时所占用的网络带宽资源。  The main object of the present invention is to propose a method of delivering a text message in order to reduce the network bandwidth resources used when delivering a text message.
为达到上述目的, 本发明的技术方案是这样实现的: 一种传递文本消息的方法, 该方法包括: In order to achieve the above object, the technical solution of the present invention is achieved as follows: A method of delivering a text message, the method comprising:
A、 对文本消息所涉及的消息参数进行位置排序, 并按照排序后的 位置为该消息参数设置对应的位置编号, 利用该消息参数及其对应的位 置编号建立文本消息模板;  A. Sorting the message parameters involved in the text message, and setting a corresponding position number for the message parameter according to the sorted position, and establishing a text message template by using the message parameter and its corresponding position number;
B、 网络侧与终端两者之中的第一方根据文本消息模板构造本次文 第二方;  B. The first party of the network side and the terminal constructs the second party of the text according to the text message template;
C、 该第二方根据文本消息模板获取本次文本消息中携带的消息参 数及其取值。  C. The second party obtains the message parameters carried in the text message and the value thereof according to the text message template.
在步驟 A中, 所述文本消息涉及的消息参数中包括存在多个属性的 第一消息参数;  In step A, the message parameter involved in the text message includes a first message parameter that has multiple attributes;
在步骤 A中, 所述进行位置排序并设置对应位置编号的步驟包括: 为文本消息所涉及的包括第一消息参数在内的各消息参数进行位置排 序, 并按照排序后的位置为该文本消息所涉及的包括第一消息参数在内 的各消息参数设置对应的位置编号;  In step A, the step of performing location sorting and setting the corresponding location number includes: performing location ordering on each message parameter including the first message parameter involved in the text message, and using the sorted position as the text message. The location number corresponding to each message parameter setting including the first message parameter is involved;
在为第一消息参数设置对应的位置编号之后, 并在建立文本消息模 板之前, 所述步骤 A进一步包括: 为第一消息参数的各个属性进行位置 排序, 并按照该排序后的位置为第一消息参数的各属性设置从属位置编 号, 然后利用第一消息参数对应的位置编号和所设置的从属位置编号设 置与第一消息参数各属性对应的复合位置编号, 其中, 所述复合位置编 号为将各属性的从属位置编号分别作为第一消息参数对应位置编号的 后缀或下标;  After the corresponding location number is set for the first message parameter, and before the text message template is established, the step A further includes: performing location ordering on each attribute of the first message parameter, and performing the first position according to the sorted position. Setting a slave location number for each attribute of the message parameter, and then setting a composite location number corresponding to each attribute of the first message parameter by using the location number corresponding to the first message parameter and the set slave location number, where the composite location number is The subordinate position numbers of the respective attributes are respectively used as suffixes or subscripts of the corresponding position numbers of the first message parameter;
在步骤 A中, 所述建立文本消息模板的步驟包括: 利用第一消息参 数的各个属性及其对应的复合位置编号以及文本消息所涉及的其它消 息参数及其对应的位置编号建立文本消息模板; 或者, 利用第一消息参 数的各个属性及其对应的复合位置编号建立一个对应于第一消息参数 的文本消息子模板, 并利用第一消息参数以及文本消息所涉及的其它消 息参数及其对应的位置编号建立文本消息模板。 In step A, the step of establishing a text message template includes: establishing a text message template by using each attribute of the first message parameter and its corresponding composite location number and other message parameters involved in the text message and their corresponding location numbers; Or, using the first message Each attribute of the number and its corresponding composite location number establishes a text message sub-template corresponding to the first message parameter, and establishes a text message template by using the first message parameter and other message parameters involved in the text message and their corresponding location numbers. .
在步骤 B中,所述本次文本消息所需消息参数中包括第一消息参数; 在步骤 B中, 所述第一方确定位置编号并构造本次文本消息的步骤 包括: 所述第一方根据文本消息模板, 确定本次文本消息所需消息参数 中第一消息参数的各属性对应的复合位置编号 , 以及确定本次文本消息 所需其它消息参数对应的位置编号, 然后, 所述第一方才艮据本次文本消 息所需第一消息参数各属性的取值及所确定的复合位置编号的信息, 以 及本次文本消息所需其它消息参数的取值及所确定的位置编号的信息 构造本次文本消息;  In step B, the message parameter required in the current text message includes a first message parameter; in step B, the step of determining, by the first party, the location number and constructing the current text message includes: the first party Determining, according to the text message template, a composite location number corresponding to each attribute of the first message parameter in the message parameter required by the text message, and determining a location number corresponding to other message parameters required for the current text message, and then, the first The information of each attribute of the first message parameter and the determined information of the composite location number required by the text message, and the value of other message parameters required for the text message and the determined location number information. Construct this text message;
在步骤 C中, 当利用第一消息参数的各个属性及其对应的复合位置 编号建立文本消息模板时, 所述获取的步骤包括: 所述第二方根据文本 消息模板以及本次文本消息中对应第一消息参数各属性的复合位置编 号信息及取值获取第一消息参数的各属性及其取值, 并根据本次文本消 息中对应其它消息参数的位置编号信息及取值获取该其它消息参数及 其取值;  In step C, when the text message template is created by using the respective attributes of the first message parameter and the corresponding composite location number, the step of obtaining includes: the second party corresponding to the text message template and the current text message The composite location number information of each attribute of the first message parameter and the value obtain the attributes of the first message parameter and their values, and obtain the other message parameters according to the position number information and the value corresponding to other message parameters in the text message. And its value;
或者, 在步骤 C中, 当利用第一消息参数的各个属性及其对应的复 合位置编号建立对应于笫一消息参数的文本消息子模板时, 所述获取的 步棟包括: 所述第二方才艮据文本消息模板以及本次文本消息中对应第一 消息参数各属性的复合位置编号信息, 调用对应于第一消息参数的文本 消息子模板, 从该子模板中获取对应的第一消息参数的属性, 并获取其 取值以及其它消息参数及取值。  Or, in step C, when the text message sub-template corresponding to the first message parameter is established by using each attribute of the first message parameter and its corresponding composite location number, the acquired step comprises: the second party Deleting a text message sub-template corresponding to the first message parameter according to the text message template and the composite location number information corresponding to each attribute of the first message parameter in the text message, and acquiring the corresponding first message parameter from the sub-template Attribute, and get its value and other message parameters and values.
所述步驟 A包括: 以多种规则对文本消息所涉及的消息参数进行位 置排序, 并按照各规则排序后的位置为所迷消息参数分别设置对应的位 置编号, 然后利用各种规则下所述消息参数及其对应的位置编号建立不 同版本的文本消息模板; The step A includes: sorting the message parameters involved in the text message by using a plurality of rules, and setting corresponding bits for the message parameters according to the sorted positions of the rules. Set the number, and then use different message parameters and their corresponding location numbers to create different versions of the text message template;
在步骤 A与步骤 B之间进一步包括:终端与网络侧协商所使用的当 前版本的文本消息模板;  Between step A and step B, the method further includes: the terminal negotiating with the network side the text message template of the current version used;
在步骤 B中, 所根据的文本消息模板为当前版本的文本消息模板; 在步驟 C中, 所根据的文本消息模板为当前版本的文本消息模板。 所述终端与网络侧协商所使用的当前版本的文本消息模板的步骤包 括: 所述第一方将当前版本的文本消息模板发送至第二方, 第二方将第 一方发来的文本消息模板作为所使用的当前版本的文本消息模板;  In step B, the text message template is based on the current version of the text message template; in step C, the text message template is based on the current version of the text message template. The step of the terminal negotiating the current version of the text message template used by the terminal with the network side includes: the first party sending the current version of the text message template to the second party, and the second party sending the text message sent by the first party Template as a text message template for the current version used;
或者,  Or,
在所述第一方将所构造的文本消息发送至所述第二方之前, 所述步 骤 B进一步包括: 所迷第一方在所构造的文本消息中携带当前版本的信 在步骤 Β与步驟 C之间进一步包括: 所述第二方接收到所述第一方 发来的本次文本消息后, 根据从本次文本消息中获取的所述当前版本的 信息, 判断自身中是否保存有所述当前版本的文本消息模板, 如果是, 则执行步骤 C, 否则结束当前流程。  Before the first party sends the constructed text message to the second party, the step B further includes: the first party carrying the current version of the letter in the constructed text message in steps and steps The method further includes: after the second party receives the current text message sent by the first party, determining, according to the current version information obtained from the current text message, whether it is saved in the The current version of the text message template, if yes, execute step C, otherwise the current process ends.
所述步骤 Α进一步包括: 按照所建立的文本消息模板中各消息参数 涉及的不同网絡实体, 将所建立的文本消息模板划分为不同网络实体对 应的不同子模板, 然后将各个子模板保存在其对应的网络实体中; 所述第一方为终端, 所述第二方为网络侧;  The step further includes: dividing the created text message template into different sub-templates corresponding to different network entities according to different network entities involved in each message parameter in the established text message template, and then saving each sub-template in the Corresponding network entity; the first party is a terminal, and the second party is a network side;
所述步骤 C包括: 在网络侧, 直接接收到终端发来本次文本消息的 第一网络实体才艮据自身保存的所述子模板以及本次文本消息中自身涉 及的消息参数对应的位置编号信息及取值获取本次文本消息中自身涉 及的消息参数及其取值, 然后第一网络实体将本次文本消息发送至后续 网络实体, 后续网络实体根据自身保存的所述子模板以及本次文本消息 中自身涉及的各消息参数对应的位置编号信息及取值分别获取本次文 本消息中自身涉及的消息参数及其取值。 The step C includes: on the network side, directly receiving the sub-template saved by the first network entity sent by the terminal to the current text message, and the location number corresponding to the message parameter involved in the text message. The information and the value obtain the message parameters involved in the text message and the value thereof, and then the first network entity sends the text message to the subsequent a network entity, the subsequent network entity obtains the message parameters involved in the text message and the value thereof according to the sub-template saved by itself and the location number information and the value corresponding to each message parameter involved in the text message. .
所述步骤 A进一步包括: 将所建立的文本消息模板保存在网络侧的 每一个网络实体中;  The step A further includes: saving the created text message template in each network entity on the network side;
所述第一方为终端, 所述第二方为网络侧;  The first party is a terminal, and the second party is a network side;
所述步骤 C包括: 在网络侧, 直接接收到终端所发送的本次文本消 息的网络实体, 根据自身中保存的文本消息模板以及本次文本消息中各 消息参数的位置编号信息及取值, 获取本次文本消息中的所有消息参数 及其取值。  The step C includes: on the network side, directly receiving the network entity of the current text message sent by the terminal, according to the text message template saved in the file, and the location number information and value of each message parameter in the text message. Get all the message parameters and their values in this text message.
所述本次文本消息所需消息参数包括动态参数信息对应的消息参数 和静态参数信息对应的消息参数;  The message parameters required for the current text message include a message parameter corresponding to the dynamic parameter information and a message parameter corresponding to the static parameter information;
在步骤 B中, 所述第一方构造本次文本消息的步骤包括以下步骤: B 1、 所述第一方在本次文本消息中设置动态参数掩码行和数据行; B2、 所述第一方为本次文本消息中所需动态参数信息对应的消息参 数设置掩码值 1;  In step B, the step of constructing the current text message by the first party includes the following steps: B1. The first party sets a dynamic parameter mask row and a data row in the current text message; One party sets a mask value of 1 for the message parameter corresponding to the required dynamic parameter information in the text message;
B3、 所述第一方根据文本消息模板中本次文本消息所需各动态参数 信息对应的消息参数所对应的位置编号, 确定所设置的掩码值 1在动态 参数掩码行中所处的位置, 以及确定各动态参数信息对应的消息参数的 取值在数据行中所处的位置;  B3. The first party determines, according to the location number corresponding to the message parameter corresponding to each dynamic parameter information required by the text message in the text message template, that the set mask value 1 is in the dynamic parameter mask row. Position, and determining a location of the value of the message parameter corresponding to each dynamic parameter information in the data line;
所述步骤 C包括以下步驟: '  The step C includes the following steps:
Cl、 所述第二方根据本次文本消息中掩码值 1在动态参数掩码行中 所处的位置、 本次文本消息中消息参 it的取值在数据行中所处的位置、 以及文本消息模板中各消息参嶔对应的位置编号, 获取本次文本消息中 动态参数信息对应的消息参数及其取值; C2、 所述第二方根据本次文本消息的类型、 自身与第一方已交互而 获得的消息参数及其取值、 以及自身中保存的文本消息模板中各消息参 数对应的位置编号, 获取本次文本消息中静态参数信息对应的消息参数 及其取值。 Cl, the second party according to the position of the mask value 1 in the dynamic parameter mask line in the text message, the position of the value of the message parameter it in the text message in the data line, and The location number corresponding to each message in the text message template, and the message parameter corresponding to the dynamic parameter information in the text message and the value thereof are obtained; C2. The second party obtains according to the type of the text message, the message parameter obtained by the self-interaction with the first party, the value thereof, and the location number corresponding to each message parameter in the text message template saved in the user. The message parameters corresponding to the static parameter information in this text message and their values.
所述本次文本消息中静态参数信息对应的消息参数中不存在可选的 消息参数;  There is no optional message parameter in the message parameter corresponding to the static parameter information in the current text message;
所述步骤 B2进一步包括,. 所述第一方为本次文本消息中静态参数 信息对应的消息参数设置掩码值 0 ;  The step B2 further includes: the first party sets a mask value of 0 for the message parameter corresponding to the static parameter information in the text message;
所述步骤 B3 进一步包括: 所述第一方才艮据所述文本消息模板中, 本次文本消息中各静态参数信息对应的消息参数所对应的位置编号, 依 次确定所设置的掩码值 0在动态参数掩码行中所处的位置;  The step B3 further includes: the first party determining the set mask value according to the location number corresponding to the message parameter corresponding to each static parameter information in the text message template in the text message template. The position in the dynamic parameter mask line;
在步骤 C2中, 所述第二方进一步根据本次文本消息中掩码值 0在 动态参数掩码行中所处的位置, 获取所述的本次文本消息中静态参数信 息对应的消息参数及其取值。  In the step C2, the second party further obtains the message parameter corresponding to the static parameter information in the current text message according to the position of the mask value 0 in the dynamic parameter mask row in the current text message. Its value.
由此可见, 本发明具有以下优点:  Thus, the present invention has the following advantages:
1、 在本发明中, 当 UE或网络侧构造文本消息时, 只需根据文本消 息模板中各消息参数对应的位置编号, 在本次文本消息中携带本次文本 消息所需消息参数对应的位置编号信息及取值即可, 而不是完整的消息 参数及其取值, 因而极大地减少了所构造文本消息的长度, 减少了在传 递文本消息时所占用的网络带宽资源, 从而大大优化了网络性能。  In the present invention, when the UE or the network side constructs a text message, it only needs to carry the location corresponding to the message parameter required for the text message in the current text message according to the location number corresponding to each message parameter in the text message template. The number information and the value can be used instead of the complete message parameters and their values, thus greatly reducing the length of the constructed text message and reducing the network bandwidth resources occupied when transmitting the text message, thereby greatly optimizing the network. performance.
2、 在本发明中, UE或网络侧可以只在构造出的文本消息中携带需 要更新或者第一次交互的动态参数信息对应消息参数的位置编号信息 及其取值, 而无需携带已经交互过而且没有发生改变的静态参数信息, 因此, 相对于现有技术中将文本消息所需的所有动态参数信息和静态参 数信息均携带在文本消息中的做法来说, 进一步减少了所构造文本消息 的长度, 并进一步减少了在传递文本消息时所占用的网絡带宽资源。 2. In the present invention, the UE or the network side may carry the location number information of the message parameter corresponding to the dynamic parameter information that needs to be updated or the first interaction and the value thereof in the constructed text message, without carrying the already interacted Moreover, there is no static parameter information that changes, so, compared with the prior art, all the dynamic parameter information and the static parameter information required for the text message are carried in the text message, thereby further reducing the constructed text message. The length, and further reduces the network bandwidth resources used when passing text messages.
3、 本发明中, UE实现了文本消息根据模板的变化, 在网络侧, 可 以由接收到 UE发来文本消息的初始节点根据文本消息模板将文本消息 一次性完全还原, 也可以由初始节点和后续其它各个节点根据需要恢复 自己需要处理的文本消息内容, 而不需要一次完全复原, 从而使得本发 明具有很强的适用性以及拓展性。 附图简要说明  3. In the present invention, the UE implements a change of the text message according to the template. On the network side, the initial node that receives the text message sent by the UE may completely restore the text message according to the text message template, or may be completely initialized by the initial node and Subsequent other nodes restore the content of the text message that they need to process as needed, without a complete recovery, so that the invention has strong applicability and expandability. BRIEF DESCRIPTION OF THE DRAWINGS
图 1是本发明实施例的流程图。  1 is a flow chart of an embodiment of the present invention.
图 2是本发明实施例中 UE通过向网络侧发起的 SIP注册过程完成 获取及协商当前应使用版本的文本消息模板的流程图。 实施本发明的方式  2 is a flowchart of a method for obtaining and negotiating a text message template of a currently used version by a UE through a SIP registration process initiated by a network side in the embodiment of the present invention. Mode for carrying out the invention
本发明的核心思想是:对文本消息所涉及的消息参数进行位置排序, 并按照排序后的位置为该文本消息所涉及消息参数设置对应的位置编 号, 然后利用该文本消息所涉及的消息参数及其对应的位置编号建立文 本消息模板; 当网络侧与终端两者之中的第一方构造文本消息时, 该第 一方根据文本消息模板, 确定本次文本消息所需消息参数对应的位置编 号, 并利用所确定的位置编号的信息及本次文本消息所需消息参数的取 值构造本次文本消息, 然后, 该第一方将所构造出的本次文本消息发送 至网络侧与终端两者之中的第二方; 该第二方根据文本消息模板以及本 次文本消息中位置编号的信息及本次文本消息所需消息参数的取值, 获 取本次文本消息中携带的真实消息参数及其取值。  The core idea of the present invention is to position the message parameters involved in the text message, and set the corresponding position number for the message parameters involved in the text message according to the sorted position, and then use the message parameters involved in the text message and The corresponding location number establishes a text message template. When the first party of the network side and the terminal constructs a text message, the first party determines the location number corresponding to the message parameter required for the current text message according to the text message template. And constructing the current text message by using the determined location number information and the value of the message parameter required for the text message, and then the first party sends the constructed text message to the network side and the terminal. The second party; the second party obtains the real message parameter carried in the text message according to the text message template and the location number information in the text message and the value of the message parameter required for the text message. And its value.
另外, 在实际的业务实现中, UE或网络侧构造的文本消息中携带 的所有消息参数及其取值实际上可被划分为静态参数信息和动态参数 信息两部分。 其中, 所述的静态参数信息是指网络侧或 UE两者中的第 二方在本次与网络侧或 UE 两者中的第一方交互前已经获取的参数信 息, 并且本次没有发生改变, 也就是第二方在之前已经获得的文本消息 中使用的消息参数及其取值; 而所述的动态参数信息是指网络侧或 HE 中的第二方在与第一方在 次交互前还未交换过的信息以及发生了改 变的信息, 也就是第二方还未获得的、 第一方在本次文本消息中需要更 新和 /或增加的消息参数及其取值。 比如, 作为第一方的 UE上一次构造 并发送的 SIP 文本消息中携带的信息包括有: Content-Type: application/SDP、 Content-Length: 182, 而 UE本次构造并发送的 SIP文 本消息中携带的信息包括有: Content-Type: application/SDP、 Content-Length: 180。将该两次文本消息所携带信息进行对比可知, 消息 参数及其取值 Content-Type: application/SDP, 是作为第二方的网络侧巳 从所述上次 SIP文本消息中获得的信息, 并且本次没有发生改变, 即本 发明所述的静态参数信息; 而消息参数 Content-Length: 180是 UE在所 述本次 SIP文本消息中更新的文本消息参数及其取值, 即本发明所述的 动态参数信息。 In addition, in the actual service implementation, all message parameters and their values carried in the text message constructed by the UE or the network side can be actually divided into static parameter information and dynamic parameters. Two parts of information. The static parameter information refers to parameter information that has been acquired by the second party in the network side or the UE before the first party interaction with the network side or the UE, and has not changed this time. , that is, the message parameters used by the second party in the previously obtained text message and the value thereof; and the dynamic parameter information refers to the second party in the network side or the HE before the second interaction with the first party The information that has not been exchanged and the information that has changed, that is, the message parameters and their values that the second party has not yet obtained, which the first party needs to update and/or increase in this text message. For example, the information carried in the SIP text message that is configured and sent by the UE as the first party includes: Content-Type: application/SDP, Content-Length: 182, and the SIP text message that the UE constructs and sends this time. The information carried includes: Content-Type: application/SDP, Content-Length: 180. Comparing the information carried in the two text messages, the message parameter and its value Content-Type: application/SDP are the information obtained by the network side of the second party from the last SIP text message, and This time, there is no change, that is, the static parameter information of the present invention; and the message parameter Content-Length: 180 is the text message parameter updated by the UE in the current SIP text message and its value, that is, the present invention Dynamic parameter information.
而且, 根据实际的业务经验可知, 在 UE与网络侧的各次文本消息 交互中, 有一大部分文本消息参数及其取值是网络侧或 UE已经获得的 静态参数信息, 只有一小部分才是需要 UE或网络侧根据每次文本消息 的实际需求而更新和 /或增加的动态参数信息。 因此, 如果 UE或网络侧 只在构造的文本消息中携带动态参数信息即对方还未获得的信息, 而不 携带静态参数信息即对方已经获得的信息, 则可进一步缩减所构造的文 本消息的长度,从而大大减少传递文本消息占用的网络带宽资源。这样, 在本发明中, 当 UE或网络侧之中的第一方构造文本消息时, 该第一方 根据文本消息模板中各消息参数对应的位置编号, 在构造的文本消息中 只依次携带本次文本消息所需的动态参数信息, 即在之前的文本消息交 互中未交互过的、本次文本消息所更新和 /或增加的消息参数的取值, 而Moreover, according to the actual business experience, in the text message interaction between the UE and the network side, a large part of the text message parameters and their values are static parameter information obtained by the network side or the UE, and only a small part is Dynamic parameter information that is updated and/or added by the UE or network side according to the actual needs of each text message is required. Therefore, if the UE or the network side only carries the dynamic parameter information in the constructed text message, that is, the information that the other party has not obtained, and does not carry the static parameter information, that is, the information that the other party has obtained, the length of the constructed text message can be further reduced. , thereby greatly reducing the network bandwidth resources used to deliver text messages. In this way, in the present invention, when the first party among the UE or the network side constructs a text message, the first party is in the constructed text message according to the location number corresponding to each message parameter in the text message template. Only the dynamic parameter information required for the text message, that is, the value of the message parameter updated and/or added by the text message that has not been interacted with in the previous text message interaction, is
UE或网络侧之中的第二方根据文本消息模板获取动态参数信息对应的 消息参数及其取值后, 进一步根据自身在与第一方之前的消息交互中已 获得的本次文本消息所需的静态参数信息对应的消息参数及其取值, 从 而恢复出实际的文本消息。 The second party of the UE or the network side obtains the message parameter corresponding to the dynamic parameter information according to the text message template and the value thereof, and further needs according to the text message that has been obtained in the message interaction with the first party. The static parameter information corresponds to the message parameter and its value, thereby recovering the actual text message.
为使本发明的目的、 技术方案和优点更加清楚, 下面结合附图及具 体实施例对本发明作进一步地详细描述。  The present invention will be further described in detail below with reference to the drawings and specific embodiments.
在以下的实施例中, 以 UE作为所述的第一方, 才艮据所建立的文本 消息模板构造文本消息, 网络侧作为所述的第二方, 根据所建立的文本 消息模板恢复文本消息实际内容的过程为例, 详细说明本发明的过程。  In the following embodiments, the UE is used as the first party to construct a text message according to the established text message template, and the network side acts as the second party to recover the text message according to the established text message template. The process of the actual content is taken as an example to explain the process of the present invention in detail.
图 1是本发明实施例的流程图。 参见图 1 , 在本发明中, UE向网络 侧传递文本消息的过程具体包括以下步骤:  1 is a flow chart of an embodiment of the present invention. Referring to FIG. 1, in the present invention, the process of the UE transmitting a text message to the network side specifically includes the following steps:
步骤 101: 预先对文本消息所涉及的消息参数进行位置排序, 并按 照排序后的位置为所述消息参数设置对应的位置编号, 然后利用所述消 息参数及其对应的位置编号建立文本消息模板, 并将所建立的文本消息 模板保存在网络侧。  Step 101: Pre-sort the message parameters involved in the text message, and set a corresponding location number for the message parameter according to the sorted position, and then use the message parameter and its corresponding location number to establish a text message template. And save the created text message template on the network side.
在本步骤中, 本发明可以按照一个规则为文本消息中所能涉及到的 消息参数进行位置排序, 比如按照文本消息中所有消息参数首字母的排 列顺序来对消息参数进行位置排序, 或者按照文本消息中所有消息参数 被使用的频率来进行位置排序, 或者按照运营商指定的其它排列顺序来 进行位置排序等。 也就是说, 在本步骤中, 只要能使文本消息所涉及的 每一个消息参数对应不同的位置编号, 从而加以区分即可, 而具体的位 置排序规则可以任意设定。 而本发明按照排序后的位置, 为不同的消息 参数设置对应的位置编号可举例为, 排序后位置第一和第二的消息参数 分别对应位置编号 1和位置编号 2。 In this step, the present invention can perform position sorting on the message parameters that can be involved in the text message according to a rule, for example, sorting the message parameters according to the order of the first letters of all message parameters in the text message, or according to the text. All message parameters in the message are sorted by the frequency used, or sorted according to other order specified by the operator. That is to say, in this step, as long as each message parameter involved in the text message can be corresponding to a different location number, it can be distinguished, and the specific location ordering rule can be arbitrarily set. However, according to the sorted position, the present invention sets the corresponding position number for different message parameters, for example, the first and second message parameters of the sorted position. Corresponding to position number 1 and position number 2, respectively.
在本步骤中, 所述的文本消息所涉及的消息参数, 可以是文本消息 所使用协议中规定的所有消息参数, 比如, SIP、 SDP和 XML协议中规 定的所有消息参数, 这样, 在进行位置排序时是针对所有的消息参数进 行位置排序; 所述的文本消息所涉及的消息参数也可以是由运营商根据 实际业务需要, 对一种协议类型的消息参数进行筛选后而指定的消息参 数, 比如, 对 SIP协议中的消息参数进行筛选, 并将筛选出的 SIP协议 的消息参数进行位置排序等。  In this step, the message parameter involved in the text message may be all message parameters specified in the protocol used by the text message, for example, all message parameters specified in the SIP, SDP, and XML protocols, so that the location is performed. When sorting, the location parameters are sorted for all the message parameters; the message parameters involved in the text message may also be message parameters specified by the operator after filtering the message parameters of a protocol type according to actual business needs. For example, the message parameters in the SIP protocol are filtered, and the message parameters of the filtered SIP protocol are sorted.
另外, 在本步骤中, 可以按照不同的协议类型将文本消息中的消息 参数对应的位置编号分表存储在所建立的一个文本消息模板中, 或者利 用不同协议类型的消息参数及其对应的位置编号建立多个文本消息模 板, 也就是说, 不同的协议类型存在不同的文本消息模板。 以 SIP文本 消息为例, 在将 SIP协议和 SDP协议中的消息参数进行筛选后, 并将筛 选后的 SIP和 SDP协议中涉及的消息参数分表存储时, SIP协议涉及消 息参数及其对应的位置编号存储在如下所示的表 1中, SDP协议中涉及 的消息参数及其对应的位置编号存储在如下所示的表 2中。 In addition, in this step, the location number sub-table corresponding to the message parameter in the text message may be stored in a created text message template according to different protocol types, or message parameters of different protocol types and their corresponding locations may be utilized. Numbering creates multiple text message templates, that is, different text message templates exist for different protocol types. Taking SIP text messages as an example, after filtering the message parameters in the SIP protocol and the SDP protocol, and storing the message parameters involved in the filtered SIP and SDP protocols, the SIP protocol involves message parameters and their corresponding The location numbers are stored in Table 1 as shown below, and the message parameters involved in the SDP protocol and their corresponding location numbers are stored in Table 2 as shown below.
Figure imgf000012_0001
表 1
Figure imgf000013_0001
Figure imgf000012_0001
Table 1
Figure imgf000013_0001
由表 1和表 2可以看成, 本发明所设置的每一个位置编号都唯一对 应了一个文本消息参数。 比如, 在对应于 SIP协议消息参数部分的表 1 中, 位置编号 2对应的 SIP消息参数为 Accept-Contact, 在对应于 SDP 消息参数部分的表 2中 ,位置编号 20对应的 SDP消息参数为 a= (zero or more media attribute lines)。  It can be seen from Tables 1 and 2 that each location number set by the present invention uniquely corresponds to a text message parameter. For example, in Table 1 corresponding to the parameter part of the SIP protocol message, the SIP message parameter corresponding to the position number 2 is Accept-Contact, and in the table 2 corresponding to the parameter part of the SDP message, the SDP message parameter corresponding to the position number 20 is a. = (zero or more media attribute lines).
在本步骤中,还可以按照不同的协议类型建立不同的文本消息模板, 比如, 针对 SIP协议的消息参数建立文本消息模板 1 , 在该文本消息模 板 1中保存的是 SIP协议的各消息参数对应的位置编号。再如,针对 SDP 协议的消息参数建立文本消息模板 2, 在该文本消息模板 2中保存的是 SDP协议的各消息参数对应的位置编号。  In this step, different text message templates may be established according to different protocol types. For example, a text message template 1 is created for the message parameters of the SIP protocol, and the message parameters corresponding to the SIP protocol are saved in the text message template 1. The location number. For example, a text message template 2 is created for the message parameters of the SDP protocol, and the location number corresponding to each message parameter of the SDP protocol is saved in the text message template 2.
这里, 需要说明的是, 由于一个消息参数可能存在多个属性, 因此, 在本步骤中, 还需为消息参数的各个属性分别设置其对应的位置编号。  Here, it should be noted that, since a message parameter may have multiple attributes, in this step, it is also necessary to separately set the corresponding position number for each attribute of the message parameter.
其中, 本发明为一个消息参数的多个属性设置位置编号的方式可以 为嵌套方式, 也就是说, 在上述设置位置编号过程中, 如果一个消息参 数存在多个属性, 那么, 本发明首先针对该消息参数设置一个与其对应 的位置编号, 然后针对该消息参数的各属性设置位置编号, 将所设置的 该消息参数的位置编号及其各属性的位置编号联合起来, 即以一个复合 位置编号, 对应该消息参数的属性。 而所述联合对应的方式可以是, 将 各属性的位置编号作为该消息参数位置编号的后缀或下标。 比如, 一个 消息参数描述了各媒体属性的要求, 如对属性 IP地址和端口号的要求。 那么, 本发明为该消息参数设置位置编号 72, 为其属性 "IP地址"设置 位置编号 1 , 为其属性 "端口号" 设置位置编号 2, 这样, 可以通过复 合位置编号 "72. 对应消息参数 "IP地址",通过复合位置编号 "70.2" 对应消息参数 "端口号,,。 这样, 在建立文本消息模板时, 可以进一步 利用一个消息参数的不同属性及其对庄的不同编号, 建立一个对应于该 消息参数的文本消息子模板。 比如, 消息参数 A描述了各媒体属性的要 求, 如对属性 IP地址和端口号的要求, 且为该消息参数 A设置的位置 编号为 72, 为其属性 "IP地址"设置的位置编号为 1 , 为其属性 "端口 号" 设置的位置编号为 2, 这样, Wherein, the present invention can set a position number for a plurality of attributes of a message parameter. In the nesting mode, that is, in the above process of setting the location number, if there are multiple attributes of a message parameter, the present invention first sets a corresponding location number for the message parameter, and then for each of the message parameters. The attribute sets the position number, and combines the set position number of the message parameter and the position number of each attribute, that is, a composite position number corresponding to the attribute of the message parameter. The joint corresponding manner may be that the location number of each attribute is used as a suffix or subscript of the message parameter position number. For example, a message parameter describes the requirements of each media attribute, such as the requirements for the attribute IP address and port number. Then, the present invention sets the position number 72 for the message parameter, sets the position number 1 for its attribute "IP address", and sets the position number 2 for its attribute "port number", so that the composite position number can be passed through "72. Corresponding message parameter "IP address", through the composite location number "70.2" corresponds to the message parameter "port number,,. In this way, when the text message template is established, the text message sub-template corresponding to the message parameter can be further utilized by using different attributes of a message parameter and different numbers for the message. For example, message parameter A describes the requirements of each media attribute, such as the requirement of the attribute IP address and port number, and the location number set for the message parameter A is 72, and the location number set for its attribute "IP address" is 1 , the location number set for its attribute "port number" is 2, so
可以将该消息参数 A及为其设置的位置编号 72保存在本发明所建 立的文本消息模板中, 并且, 将该消息参数 A的各个属性及其复合位置 编号, 保存在一个新建的、 对应于该消息参数 A的文本消息子模板中。 当在后续过程中需要恢复的参数中包括该位置编号为 72的消息参数 A 时, 则可以进一步调用该消息参数 A对应的文本消息子模板, 并从该子 模板中获取各个属性及其对应的位置编号, 根据该子模板中的位置编号 恢复出文本消息中的该消息参数 A的特定属性。  The message parameter A and the location number 72 set for it may be saved in the text message template established by the present invention, and the respective attributes of the message parameter A and their composite location numbers are saved in a new one, corresponding to The message parameter A is in the text message subtemplate. When the parameter that needs to be restored in the subsequent process includes the message parameter A of the location number 72, the text message sub-template corresponding to the message parameter A may be further invoked, and each attribute and its corresponding information are obtained from the sub-template. The location number recovers the specific attribute of the message parameter A in the text message according to the location number in the sub-template.
其中, 本发明为一个消息参数^多个属性设置位置编号的方式还可 以是将该消息参数的各个属性分别视为一个消息参数与其它消息参数 进行统一的位置排序, 并按照排序后的位置为各属性设置对应的位置编 号。 比如, 进行统一的位置排序后, 消息参数 "IP地址" 对应的位置编 号为 72, 消息参数 "端口号" 对应的位置编号为 73。 然后, 将各个属 性分别视为一个消息参数与其它消息参数一起保存在所建立的文本消 息模板中。 The method for setting a location number for a message parameter and multiple attributes may also be that each attribute of the message parameter is regarded as a message parameter and other message parameters respectively. Perform a uniform position sorting, and set the corresponding position number for each attribute according to the sorted position. For example, after performing uniform position sorting, the position number corresponding to the message parameter "IP address" is 72, and the position number corresponding to the message parameter "port number" is 73. Each attribute is then treated as a message parameter, along with other message parameters, in the created text message template.
另外, 在本步驟中, 将所建立的文本消息模板保存在网络侧的具体 实体过程可以是: 将所建立的文本消息模板划分为不同网络实体对应的 不同子模板, 然后将各个子模板保存在其对应的网络实体中, 这样, 在 网络侧每个网络实体中保存的文本消息模板是该网络实体所需处理的 消息参数所在的子模板, 这样处理的目的是为了使各个网络实体可以使 用统一的即同一版本的文本消息模板, 以便在后续过程中, 各网络实体 只根据文本消息模板恢复出文本消息中自身所需处理的消息参数的实 际内容, 从而减少单个网络实体的业务负荷量。  In addition, in this step, the process of saving the created text message template on the network side may be: dividing the created text message template into different sub-templates corresponding to different network entities, and then saving each sub-template in In the corresponding network entity, the text message template saved in each network entity on the network side is a sub-template of the message parameters to be processed by the network entity, so that the purpose of the processing is to make the network entities available for unified use. That is, the same version of the text message template, so that in the subsequent process, each network entity recovers only the actual content of the message parameters that need to be processed in the text message according to the text message template, thereby reducing the traffic load of the single network entity.
将所建立的文本消息模板保存在网络侧的具体实体过程还可以是: 在网络实体中保存所建立的文本消息模板的完整内容, 以便在后续过程 中由直接接收到 UE发来文本消息的网络实体根据文本消息模板恢复文 本消息的所有实际内容。  The specific entity process of saving the created text message template on the network side may also be: saving the complete content of the established text message template in the network entity, so as to receive the network message directly sent by the UE in the subsequent process. The entity recovers all the actual content of the text message according to the text message template.
步骤 102: UE获取文本消息模板, 并与网络侧协商当前应使用的文 本消息模板。  Step 102: The UE acquires a text message template, and negotiates with the network side the text message template that should be used currently.
这里, 由于在步骤 101中,设置位置编号的规则可任意选择, 这样, 就会存在不同版本的文本消息模板。 比如, 一个消息参数在不同版本的 文本消息模板中可能对应不同的位置编号。 比如, 在版本 1的文本消息 模板中, 消息参数 Proxy-Authorization对应的位置编号为 37, 而在版本 2的文本消息模板中, 该消息参数 Proxy-Authorization对应的位置编号 为 20。 这样, 在本步骤 102中, UE获取的可以是一个或多个版本的文 本消息模板, 这样就存在一个如何保证 UE与网络侧使用相同版本文本 消息模板的问题, 也就是说, UE 必须与网络侧协商当前应使用版本的 文本消息模板。 Here, since the rule for setting the location number can be arbitrarily selected in step 101, there are different versions of the text message template. For example, a message parameter may correspond to a different location number in a different version of a text message template. For example, in the version 1 text message template, the location number corresponding to the message parameter Proxy-Authorization is 37, and in the version 2 text message template, the location number corresponding to the message parameter Proxy-Authorization is 20. Thus, in this step 102, the UE may obtain one or more versions of the text. This message template, so there is a problem of how to ensure that the UE and the network side use the same version of the text message template, that is, the UE must negotiate with the network side that the version of the text message template should be used.
在本步骤 102中, UE可通过多种方式获取各版本的文本消息模板。 比如, UE通过向网络侧发起的注册过程触发网络侧将一个或多个版本 的文本消息模板信息携带在注册响应消息中发送至 UE,使 UE获取; 和 /或, 当网络侧发现用户漫游到该运营商网络后(用户发生位置更新或者 在该网络注册时触发), 将一个或多个版本的文本消息模板通过空中传 递方式(OTA ), 比如短消息方式, 主动发送至 UE, 使 UE获取; 和 / 或, 由 UE从指定的地址(如 Web网站等) 下载而获取。  In this step 102, the UE can obtain each version of the text message template in multiple ways. For example, the UE triggers the registration process initiated by the network side to trigger one or more versions of the text message template information to be sent to the UE in the registration response message, so that the UE acquires; and/or, when the network side finds that the user roams to After the carrier network (triggered by the user when the location is updated or triggered when the network is registered), one or more versions of the text message template are sent to the UE by means of an over-the-air (OTA) method, such as a short message method, so that the UE obtains ; and / or, obtained by the UE downloading from a specified address (such as a Web site, etc.).
在本步骤 102中, UE可通过多种方式与网络侧协商当前应使用版 本的文本消息模板。 比如, UE 向网络侧发起注册请求, .网络侧将当前 应使用版本的文本消息模板信息携带在注册响应消息中发送至 UE; 或, 由网络侧将当前应使用版本的文本消息模板信息通过 OTA方式, 比如 短消息方式, 主动发送至 UE完成协商过程; 或, 由 UE以主动更新方 式, 即主动将当前应使用版本的文本消息模板信息通知网络侧, 完成协 商过程。  In this step 102, the UE can negotiate with the network side of the text message template of the current version to be used in various manners. For example, the UE initiates a registration request to the network side, and the network side carries the text message template information of the current version to be used in the registration response message to be sent to the UE; or, the network side sends the text message template information of the currently used version to the OTA. The method, such as the short message mode, is actively sent to the UE to complete the negotiation process. Alternatively, the UE may notify the network side of the text message template information of the current version to be actively updated, and complete the negotiation process.
下面则以 UE通过向网络侧发起的注册过程同时完成获取各版本文 本消息模板以及协商当前应使用版本的文本消息模板的过程为例, 说明 本步骤 102的实现过程。 图 2是本发明实施例中 UE通过向网络侧发起 的 SIP注册过程完成获取及协商当前应使用版本的文本消息模板的流程 图, 参见图 2, 这里, 以 UE通过在 IMS网络中发起 SIP注册为例, UE 获取及协商当前应使用版本的针对 SIP消息参数的文本消息模板的过程 具体包括以下步驟: '  In the following, the process of obtaining the text message template of each version and the text message template of the current version should be completed by using the registration process initiated by the UE to the network side as an example to describe the implementation process of the step 102. 2 is a flowchart of a method for obtaining and negotiating a currently used version of a text message template by a UE by using a SIP registration process initiated by a network side in the embodiment of the present invention. Referring to FIG. 2, the UE initiates SIP registration in the IMS network. For example, the process of acquiring and negotiating a text message template for a SIP message parameter that should be used by the UE currently includes the following steps:
步骤 Al: UE发送注册请求(REGISTER ) 消息至当前所在地的代 理呼叫会话控制功能(PCSCF ) 实体。 Step A1: The UE sends a registration request (REGISTER) message to the current generation. Call Session Control Function (PCSCF) entity.
这里, 所迷的 REGISTER消息是 SIP协议中规定的标准的注册请求 消息, UE通过发送该 REGISTER消息向 IMS网络进行注册。  Here, the REGISTER message is a standard registration request message specified in the SIP protocol, and the UE registers with the IMS network by sending the REGISTER message.
步驟 A2: PCSCF实体接收到 REGISTER消息后, 将该 REGISTER 消息发送至服务呼叫会话控制功能(SCSCF ) 实体。  Step A2: After receiving the REGISTER message, the PCSCF entity sends the REGISTER message to the Serving Call Session Control Function (SCSCF) entity.
步骤 A3: SCSCF实体接收到 REGISTER消息后, 对该 UE进行鉴 权, 在鉴权通过后, 将 200 OK消息发送给 PCSCF实体。  Step A3: After receiving the REGISTER message, the SCSCF entity authenticates the UE, and after the authentication is passed, sends a 200 OK message to the PCSCF entity.
步骤 A4: PCSCF实体接收到该 200 OK消息后,将预先设置并保存 在自身中的一个版本的文本消息模板, 比如为版本 1作为当前应使用版 本的文本消息模板,并将文本消息模板信息(版本 1 )参数携带在 200 OK 消息中发送至 UE。  Step A4: After receiving the 200 OK message, the PCSCF entity presets and saves a version of the text message template in itself, such as version 1 as the text message template of the currently used version, and the text message template information ( Version 1) The parameter carried is sent to the UE in a 200 OK message.
这里, 预先在 PCSCF实体中保存的可以是对应于 PCSCF实体的文 本消息模板的子模板, 也就是该 PCSCF 实体所需处理的消息参数对应 的位置编号, 而不包括其它网络实体(如 SCSCF、 AS等) 与 UE交互 SIP 文本消息所会使用到的文本消息模板中的消息参数对应的位置编 号。  Here, the pre-templated in the PCSCF entity may be a sub-template corresponding to the text message template of the PCSCF entity, that is, the location number corresponding to the message parameter to be processed by the PCSCF entity, and does not include other network entities (such as SCSCF, AS). Etc.) Interact with the UE The location number corresponding to the message parameter in the text message template used by the SIP text message.
步骤 A5: UE接收到 200 OK消息后, 通过 PCSCF实体和 SCSCF 实体将发布(Publish ) 消息发送至应用服务器(AS )。  Step A5: After receiving the 200 OK message, the UE sends a Publish message to the application server (AS) through the PCSCF entity and the SCSCF entity.
这里, UE在接收到 200 OK消息时, 从中获得与 PCSCF实体交互 SIP文本消息应使用的当前版本为版本 1的文本消息模板。  Here, when receiving the 200 OK message, the UE obtains a text message template from which the current version of the SIP text message should be used to exchange the PCSCF entity.
步骤 A6: AS将预先保存在自身中的一个版本的文本消息模板, 比 如为版本 1作为当前应使用版本的文本消息模板, 并将版本 1的文本消 息模板携带在 200 OK消息中发送至 UE。  Step A6: The AS will pre-store a version of the text message template in itself, such as version 1 as the text message template of the currently used version, and carry the version 1 text message template in the 200 OK message and send it to the UE.
这里,预先在 AS实体中保存的可以是:对应于 AS实体的那部分文 本消息模板的子模板, 也就是该 AS实体所需处理的消息参数对应的位 置编号, 而不包括其它网络实体与 UE交互 SIP文本消息所会使用到的 文本消息模板中的消息参数对应的位置编号。 Here, the pre-stored in the AS entity may be: a sub-template corresponding to the part of the text message template of the AS entity, that is, a bit corresponding to the message parameter to be processed by the AS entity. The number is set, and does not include the location number corresponding to the message parameter in the text message template used by the other network entity to interact with the UE.
至此, UE 则完成了获取并协商当前应使用版本的文本消息模板的 过程。  At this point, the UE completes the process of obtaining and negotiating the version of the text message template that should be used.
为便于描述, 下面以 UE与网络侧交互的文本消息为 SIP会话消息 为例说明本发明的后续具体实现过程。  For convenience of description, the following is a specific implementation process of the present invention by taking a text message that the UE interacts with the network side as a SIP session message.
步骤 103: 当 UE需要与网络侧交互一个文本消息时, UE根据所获 取当前版本的文本消息模板, 构造本次文本消息。  Step 103: When the UE needs to interact with the network side with a text message, the UE constructs the current text message according to the obtained text message template of the current version.
这里 , 由于一个文本消息由静态参数信息和动态参数信息两部分组 成, 而静态参数信息是网络侧已经通过之前的会话消息交互而获得并保 存的信息, 而只有动态参数信息是 UE必须根据本次交互的实际需求而 确定并通知网络侧的信息。 因此, 在本步骤 103 中, 较佳地, UE可以 在所需构造的文本消息中不再携带静态参数信息, 而只根据所获取的当 前版本的文本消息模板和本次文本消息所需的动态参数信息构造本次 文本消息, 即 UE根据文本消息模板中各消息参数对应的位置编号, 在 构造的文本消息中携带本次文本消息所需动态参数信息对应的消息参 数的位置编号信息及取值; 并且, 由于 UE与网络侧均可能保存有多个 版本的文本消息模板, 所以, UE在所构造的文本消息模板中进一步携 带其使用的当前版本的信息。  Here, since a text message is composed of two parts: static parameter information and dynamic parameter information, and the static parameter information is information obtained and saved by the network side through the previous session message interaction, and only the dynamic parameter information is that the UE must be based on this time. The information on the network side is determined and notified by the actual needs of the interaction. Therefore, in this step 103, the UE may not carry the static parameter information in the text message of the required configuration, but only according to the acquired current version of the text message template and the dynamics required for the current text message. The parameter information constructs the current text message, that is, the location number information and value of the message parameter corresponding to the dynamic parameter information required by the text message in the constructed text message according to the location number corresponding to each message parameter in the text message template. And, since both the UE and the network side may hold multiple versions of the text message template, the UE further carries the information of the current version used by the UE in the constructed text message template.
而本步骤中所述的在构造的文本消息中携带本次文本消息所需动态 参数信息对应的消息参数的位置编号信息及取值的过程可以存在多种 实现方式。 比如,  The process of carrying the location parameter information of the message parameter and the value of the message parameter corresponding to the dynamic parameter information required for the text message in the constructed text message described in this step may exist in multiple implementation manners. For example,
方式一: 在本次文本消息中设置动态参数掩码行和数据行, 在动态 参数掩码行中用位于与所述位置编号相同位置的特定掩码值, 比如掩码 值 1 ,来代表本次文本消息所需动态参数信息对应消息参数的位置编号, 也就是说, 用位于特定位置的掩码值 1作为本次文本消息所需动态参数 信息对应的消息参数的位置编号信息; 根据文本消息模板中所述的位置 编号, 在数据行中依次顺序携带本次文本消息所需动态参数信息对应消 息参数的取值。 Manner 1: Set the dynamic parameter mask row and the data row in the text message, and use the specific mask value at the same position as the location number in the dynamic parameter mask row, such as the mask value 1, to represent the present The dynamic parameter information required for the secondary text message corresponds to the location number of the message parameter. That is, the mask value 1 located at a specific location is used as the location number information of the message parameter corresponding to the dynamic parameter information required for the current text message; and sequentially carried in the data row according to the location number described in the text message template. The dynamic parameter information required for this text message corresponds to the value of the message parameter.
方式二: 在本次文本消息中设置位置编号行和数据行, 在位置编号 行中直接携带本次文本消息所需动态参数信息对应消息参数的位置编 号; 然后根据本次文本消息中携带的位置编号的顺序, 在数据行中依次 顺序携带本次文本消息所需动态参数信息对应消息参数的取值, 比如, UE在所构造的文本消息中的位置编号行中携带 3 , 75,在数据行中依次 顺序携带 cb0203isff¾)k3 , 234151D0FCE11 , 这样, UE在位置编号行中 携带 3是表示本次文本消息中使用了文本消息模板中位置编号 3所对应 的消息参数, 而该位置编号为 3 的消息参数的取值为数据行中的 cb0203isfff¾)k3, 而 UE在位置编号行中携带 75是表示本次文本消息中 使用了文本消息模板中位置编号 75 所对应的消息参数, 而该位置编号 为 75的消息参数的取值为数据行中的 234151D0FCE11。  Method 2: Set the location number line and the data line in the text message, and directly carry the position parameter number of the message parameter corresponding to the dynamic parameter information of the text message in the location number line; and then according to the position carried in the text message The order of the numbers, in the data row, sequentially carries the values of the dynamic parameter information corresponding to the text message in this order, for example, the UE carries 3, 75 in the position number row in the constructed text message, in the data row The sequence carries cb0203isff3⁄4)k3, 234151D0FCE11 in order, so that the UE carries 3 in the location number row to indicate that the message parameter corresponding to the location number 3 in the text message template is used in the text message, and the message with the location number 3 is The value of the parameter is cb0203isfff3⁄4)k3 in the data line, and the UE carrying 75 in the location number line indicates that the message parameter corresponding to the position number 75 in the text message template is used in the text message, and the position number is 75. The value of the message parameter is 234151D0FCE11 in the data line.
方式三: 在构造本次文本消息时, 针对本次文本消息所需的动态参 数信息对应消息参数, 首先携带该消息参数的对应的位置编号, 并在该 位置编号后紧跟该消息参数的取值, 对于每一个所需的动态参数信息对 应消息参数均如此执行。 比如, UE 在所构造的文本消息中携带 3 : cb0203isffffpk3 , 75 : 234151D0FCE11 , 这样, 该文本消息中, 3 : cb0203isfffipk3 是表示本次文本消息中使用了文本消息模板中位置编号 3所对应的消息参数,而该消息参数的取值为其后的 cb0203isfff¾)k3 , 75: 234151D0FCE11 是表示本次文本消息中使用了文本消息模板中位置编 号 75 所对应的消息参数, 而该消息参数的取值为其后的 234151D0FCE1L 以上只是列出了三种实现方式, 本发明也可存在其它的实现方式来 实现本步骤 103所述的在构造的文本消息中携带本次文本消息所需动态 参数信息对应的消息参数的位置编号信息及取值的过程。 Manner 3: When constructing the text message, the dynamic parameter information required for the text message corresponds to the message parameter, first carrying the corresponding location number of the message parameter, and following the location number, followed by the message parameter The value is executed for each of the required dynamic parameter information corresponding to the message parameter. For example, the UE carries 3: cb0203isffffpk3, 75: 234151D0FCE11 in the constructed text message, so that in the text message, 3: cb0203isfffipk3 indicates that the message parameter corresponding to position number 3 in the text message template is used in the text message. The value of the message parameter is cb0203isfff3⁄4)k3, 75: 234151D0FCE11 is the message parameter corresponding to the position number 75 in the text message template used in the text message, and the value of the message parameter is After 234151D0FCE1L The foregoing only lists three implementation manners. The present invention may also have other implementation manners to implement the location number of the message parameter corresponding to the dynamic parameter information required to carry the current text message in the constructed text message described in this step 103. The process of information and value.
下面以 UE使用上述方式一, 构造一个 SIP会话消息为例, 说明本 步驟 103的具体实现过程。  The specific implementation process of this step 103 is described in the following example.
首先, 由于在建立文本消息模板时, 可以针对各个不同的协议类型 建立不同的文本消息模板, 比如 SIP、 SDP协议类型分别有自己的文本 消息模板, 因此, UE在构造 SIP会话消息时, 在所构造的 SIP会话消 息的消息头起始位置处携带当前使用的 SIP协议的文本消息模板的版本 信息, 以通知网络侧;  First, when a text message template is created, different text message templates can be established for different protocol types. For example, the SIP and SDP protocol types respectively have their own text message templates. Therefore, when constructing a SIP session message, the UE The version of the text message template of the currently used SIP protocol is carried in the start position of the message header of the constructed SIP session message to notify the network side;
其次, UE在本次 SIP会话消息中设置一个已与网络侧协商过的针对 当前版本即版本 1的文本消息模板中所有 SIP消息参数的动态参数掩码 行, 记为动态参数掩码行 1, 并将版本 1中本次 SIP会话消息中所需的 动态参数信息对应的 SIP消息参数的掩码值设置为 1 , 将版本 1的文本 消息模板中其它 SIP消息参数, 即本次 SIP会话消息无需使用的 SIP消 息参数和本次 SIP会话消息中静态参数信息对应的 SIP消息参数的掩码 值设置为 0, 然后根据当前版本即版本 1的文本消息模板中所有 SIP消 息参数对应的位置编号, 来确定为各 SIP消息参数设置的掩码值 0和 1 在所述动态参数掩码行 1中所处的位置序号, 也就是说, 为一个 SIP消 息参数设置的掩码值 0或 1在动态参数掩码行 1中所处的位置顺序号为 版本 1的文本消息模板中该 SIP 息参数对应的位置编号; 然后, 在该 动态参数掩码行 1之后的对应于 SIP消息参数的数据行,记为数据行 1, 根据版本 1中本次 SIP会话消息中所需的动态参数信息对应的 SIP消息 参数对应的位置编号的先后顺序 , 确定所携带的各动态参数信息对应的 Second, the UE sets a dynamic parameter mask line of all SIP message parameters in the text message template of the current version, that is, version 1 that has been negotiated with the network side, in this SIP session message, and is recorded as dynamic parameter mask line 1, The mask value of the SIP message parameter corresponding to the dynamic parameter information required in the current SIP session message in version 1 is set to 1, and other SIP message parameters in the text message template of version 1 are required, that is, the current SIP session message is not needed. The mask value of the SIP message parameter corresponding to the static parameter information in the SIP session message is set to 0, and then according to the location number corresponding to all SIP message parameters in the current version, that is, the text message template of version 1. Determining the mask values 0 and 1 set for each SIP message parameter in the position number of the dynamic parameter mask line 1, that is, the mask value 0 or 1 set for a SIP message parameter in the dynamic parameter The position number of the position in the mask row 1 is the position number corresponding to the SIP information parameter in the text message template of version 1. Then, in the dynamic The data line corresponding to the SIP message parameter after the number 1 of the mask is recorded as the data line 1, according to the sequence of the position numbers corresponding to the SIP message parameters corresponding to the dynamic parameter information required in the current SIP session message in version 1. , determining corresponding to each dynamic parameter information carried
SIP消息参数取值在数据行 1中所处的位置序号的先后顺序; 再次, UE在所构造的 SIP会话消息的 SDP消息体起始位置处携带 当前使用的 SDP协议的文本消息模板的版本信息, 以通知网络侧; The sequence of the serial number of the SIP message parameter in the data row 1; The UE carries the version information of the text message template of the currently used SDP protocol at the start position of the SDP message body of the configured SIP session message to notify the network side;
接下来, UE在本次 SIP会话消息的 SDP消息体中设置一个针对已 与网络侧协商过的当前版本即版本 1的文本消息模板中所有 SDP消息参 数的动态参数掩码行, 记为动态参数掩码行 2, 并将本次 SIP会话消息 中所需的动态参数信息对应的 SDP消息参数的掩码值设置为 1, 将本次 SIP会话消息无需使用的 SDP消息参数和本次 SIP会话消息中静态参数 信息对应的 SDP消息参数的掩码设置为 0, 然后根据当前版本即版本 1 的文本消息模板中所有 SDP消息参数对应的位置编号,来确定为各 SDP 消息参数设置的掩码值 0和 1在该动态参数掩码行 2中所处的位置序号, 也就是说,为一个 SDP消息参数设置的掩码值 0或 1在动态参数掩码行 2中所处的位置顺序号为版本 1的文本消息模板中该 SDP消息参数对应 的位置编号; 然后,在该动态参数掩码行 2之后的对应于 SDP消息参数 的数据行 2中, 根据版本 1中本次 SIP会话消息中所需的动态参数信息 对应的 SDP消息参数对应的位置编号的先后顺序,确定所携带的各动态 参数信息对应的 SDP消息参数取值在数据行 2中所处的位置序号的先后 顺序。  Next, the UE sets a dynamic parameter mask line for all SDP message parameters in the text message template of the current version, which is negotiated with the network side, in the SDP message body of the current SIP session message, and records it as a dynamic parameter. Masking line 2, and setting the mask value of the SDP message parameter corresponding to the dynamic parameter information required in the current SIP session message to 1, and using the SDP message parameter and the current SIP session message that are not required for the current SIP session message. The mask of the SDP message parameter corresponding to the static parameter information is set to 0, and then the mask value set for each SDP message parameter is determined according to the position number corresponding to all SDP message parameters in the current version, that is, the text message template of version 1. And the position number of 1 in the dynamic parameter mask line 2, that is, the mask value 0 or 1 set for an SDP message parameter is in the position of the dynamic parameter mask line 2. The position number corresponding to the SDP message parameter in the text message template of 1; then, the data corresponding to the SDP message parameter after the dynamic parameter mask line 2 2, determining, according to the sequence of the location numbers corresponding to the SDP message parameters corresponding to the dynamic parameter information required in the current SIP session message in the version 1, determining the value of the SDP message parameter corresponding to each dynamic parameter information carried in the data row The order of the position numbers in 2 is.
比如, 在本发明中, UE所构造的一个 SIP会话消息即 INVITE消息 为:  For example, in the present invention, a SIP session message constructed by the UE, that is, an INVITE message is:
version: operatorA-SIP-versionOO 1;  Version: operatorA-SIP-versionOO 1;
header-mask: 0110 ;  Header-mask: 0110 ;
INVITE, cb0203isfff¾)k3; 234151D0FGE11...... (这里修改的意思是 INVITE, cb0203isfff3⁄4)k3; 234151D0FGE11...... (Modified here means
INVITE本身就是一个参数 ) INVITE itself is a parameter)
version:operatorA-SDP-version001;  Version:operatorA-SDP-version001;
sdp-mask: 1100 ; - 2987933615; 2987933615; Sdp-mask: 1100; - 2987933615; 2987933615;
由该 SIP会话消息即 INVITE消息的消息体构成可以看出, 消息中, version: operator A-SIP-versionOO 1为针对 SIP协议消息参数的当前版本 即版本 1的文本消息模板的标识。 针对当前版本即版本 1的文本消息模 板中所有 SIP消息参数的动态参数掩码行 1为 header-mask: 0110 ; 在该动态参数掩码行 1中, 第一个位置序号为 0, 表示在版本 1的文本 消息模板中对应于 SIP消息参数部分如上述表 1中, 位置编号 1对应的 SIP消息参数为本次 SIP会话消息中的静态参数信息或本次 SIP会话消 息无需使用的 SIP消息参数; 第二个位置序号为 1, 表示在版本 1的文 本消息模板中的表 1中位置编号 2对应的 SIP消息参数为本次 SIP会话 消息中的动态参数信息, 而该动态参数信息对应的 SIP消息参数的取值 为该动态参数掩码行 1之后数据行 1中的第一个数据 cb0203isff ¾)k3; 第三个位置序号为 1, 表示在版本 1的文本消息模板中的表 1中, 位置 编号 3对应的 SIP消息参数为本次 SIP会话消息中的动态参数信息, 而 该动态参数信息对应的 SIP消息参数的取值为该动态参数掩码行 1之后 数据行 1中的下一个即第二个数据 234151D0FCE11。  It can be seen from the message body of the SIP session message, that is, the message body of the INVITE message, that the version: operator A-SIP-version OO 1 is the identifier of the text message template for the current version of the SIP protocol message parameter, that is, version 1. For the current version, that is, the dynamic parameter mask line 1 of all SIP message parameters in the version 1 text message template is header-mask: 0110; in the dynamic parameter mask line 1, the first position number is 0, indicating the version. In the text message template of 1 corresponding to the SIP message parameter part, as in the above table 1, the SIP message parameter corresponding to the location number 1 is the static parameter information in the SIP session message or the SIP message parameter that is not used in the current SIP session message; The second location number is 1, indicating that the SIP message parameter corresponding to the location number 2 in the text message template of the version 1 is the dynamic parameter information in the SIP session message, and the SIP message corresponding to the dynamic parameter information. The value of the parameter is the first data cb0203isff 3⁄4)k3 in data row 1 after the dynamic parameter mask line 1; the third position number is 1, indicating the position in Table 1 in the version 1 text message template. The SIP message parameter corresponding to the number 3 is the dynamic parameter information in the SIP session message, and the value of the SIP message parameter corresponding to the dynamic parameter information is Dynamic parameter mask next row i.e. the second row of data in a data 234151D0FCE11 after 1.
同理, 消息中, version: operatorA-SDP-version001为针对 SIP协议 消息参数的当前版本即版本 2的文本消息模板的标识。 针对当前版本即 版本 2 的文本消息模板中所有 SDP 消息参数的动态参数掩码行 2 为 sdp-mask: 1100......; 在该动态参数掩码行 2中, 笫一个位置序号为 1 , 表示在版本 1 的文本消息模板中对应于 SDP消息参数部分如上述表 2 中,位置编号 1对应的 SDP消息参数为本次 SIP会话消息中的动态参数 信息,而该动态参数信息对应的 SDP消息参数的取值为该动态参数掩码 行 2之后数据行 2中的第一个数据 -2987933615; 第二个位置序号为 1 , 表示在版本 1的文本消息模板中的表 2中,位置编号 2对应的 SDP消息 参数为本次 SIP会话消息中的动态参数信息, 而该动态参数信息对应的 SDP消息参数的取值为该动态参数掩码行 2之后数据行 2中的下一个即 第二个数据 2987933615。 Similarly, in the message, version: operatorA-SDP-version001 is the identifier of the text message template for the current version of the SIP protocol message parameter, that is, version 2. The dynamic parameter mask line 2 of all SDP message parameters in the text message template of the current version, version 2, is sdp-mask: 1100......; In the dynamic parameter mask line 2, 笫 a position number is 1 . Indicates that the SDP message parameter corresponding to the location number 1 in the text message template of the version 1 corresponds to the SDP message parameter. In the above table 2, the SDP message parameter corresponding to the location number 1 is the dynamic parameter information in the SIP session message, and the dynamic parameter information corresponds to The value of the SDP message parameter is the first data in the data line 2 after the dynamic parameter mask line 2 is -2987933615; the second position number is 1, indicating that in the table 2 of the version 1 text message template, the location SDP message corresponding to number 2 The parameter is the dynamic parameter information in the SIP session message, and the value of the SDP message parameter corresponding to the dynamic parameter information is the next data in the data line 2 after the dynamic parameter mask line 2, that is, the second data 2987933615.
另外, 还需说明的是, 在本步骤 103的过程中, 如果 UE构造的本 次文本消息中所需的动态参数信息对应的一个消息参数, 记为第一消息 参数, 存在多个属性, 且本发明在文本消息模板中设置第一消息参数的 各属性对应复合位置编号, 比如为 70.1和 70.2, 那么, UE根据文本消 息模板中第一消息参数对应的位置编号比如为 70,在动态参数掩码行中 的相应的位置序号即位置序号 70处填写掩码值 1后, 在之后的数据行 中的相应位置处依次填写 70.1: 29879336, 70.2: 33615, 以分别表示第 一消息参数的第一个和第二个属性的取值。 这样, 在后续的过程中, 网 络实体便可根据数据行中的 70.1 : 29879336, 70.2: 33615, 获取第一消 息参数的第一个和第二个属性的取值。  In addition, it should be noted that, in the process of the step 103, if a message parameter corresponding to the dynamic parameter information required in the current text message constructed by the UE is recorded as the first message parameter, there are multiple attributes, and The present invention sets the corresponding location number of each attribute of the first message parameter in the text message template, for example, 70.1 and 70.2. Then, the location number corresponding to the first message parameter in the text message template is, for example, 70, and the dynamic parameter is masked by the UE. After the corresponding position number in the code line, that is, the position number 70 is filled in the mask value 1, the corresponding position in the subsequent data line is filled in 70.1: 29879336, 70.2: 33615, respectively, to respectively represent the first parameter of the first message. And the value of the second attribute. In this way, in the subsequent process, the network entity can obtain the values of the first and second attributes of the first message parameter according to 70.1: 29879336, 70.2: 33615 in the data line.
或者 , 如果本发明在文本消息模板中将第一消息参数的各属性与其 它所有消息参数进行统一排序后设置了对应的位置编号, 那么, 在本步 骤 103 中, UE只需将第一消息参数的各属性分别视为一个消息参数进 行处理, 即在动态参数掩码行中的相应位置处携带为第一消息参数的各 属性设置的掩码值 1,在数据行中的相应位置处携带各属性的取值即可。  Alternatively, if the present invention sets the corresponding location number after the attributes of the first message parameter are uniformly sorted with all other message parameters in the text message template, then in this step 103, the UE only needs to set the first message parameter. Each attribute is treated as a message parameter, that is, the mask value 1 set for each attribute of the first message parameter is carried in the corresponding position in the dynamic parameter mask line, and each of the data is carried at the corresponding position in the data line. The value of the attribute can be.
在以方式一的具体实现过程中, 由于许多静态参数信息对应的消息 参数是可选的, 因此, 为了确保网络侧能够恢复出实际的文本消息, UE 还可以在所需构造文本消息中针对 SIP协议的各消息参数设置一个消息 参数掩码行 1 , 用该消息参数掩码行 1中位于特定位置序号的 1代表与 该位置序号相同的 SIP协议文本消息模板中的位置编号对应的消息参数 为本次文本消息所需使用的 SIP协议的消息参数, 并在所需构造文本消 息中针对 SDP协议的各消息参数设置一个消息参数掩码行 2, 用该消息 参数掩码行 2中位于特定位置序号的 1代表与该位置序号相同的 SDP协 议文本消息模板中的位置编号所对应的消息参数为本次文本消息所需 使用的 SDP协议的消息参数, 这样, 网络侧在恢复文本消息时, 就能够 通过消息参数掩码行中位于特定位置序号的 1获知本次文本消息所需使 用的所有消息参数, 也就是说, 网络侧可以确定本次文本消息所需使用 的静态参数信息。 比如, UE所构造的一个 SIP会话消息携带的信息为: version: operatorA-SIP-versionOO 1; In the specific implementation of the mode 1, because the message parameters corresponding to the plurality of static parameter information are optional, the UE may also be configured to the SIP in the required constructed text message in order to ensure that the network side can recover the actual text message. Each message parameter of the protocol sets a message parameter mask line 1 , and the message parameter corresponding to the position number in the SIP protocol text message template with the same position number is 1 in the message parameter mask row 1 is The message parameter of the SIP protocol used for this text message, and a message parameter mask line 2 is set in the required construction text message for each message parameter of the SDP protocol, and the message is used. In the parameter mask row 2, the sequence number of the specific location number indicates that the message parameter corresponding to the location number in the SDP protocol text message template with the same location number is the message parameter of the SDP protocol used for the text message, so that When the network side recovers the text message, it can learn all the message parameters used by the text message through the sequence number of the specific position in the message parameter mask row, that is, the network side can determine the required text message. Static parameter information used. For example, the information carried by a SIP session message constructed by the UE is: version: operatorA-SIP-versionOO 1;
message-maskl :1110 ;  Message-maskl :1110 ;
header-mask: 0110 ;  Header-mask: 0110 ;
INVITE, cb0203isfff¾)k3; 234151D0FCE11 (这里修改的意思是 INVITE, cb0203isfff3⁄4)k3; 234151D0FCE11 (modified here means
INVITE本身就是一个参数 ) INVITE itself is a parameter)
version:operatorA-SDP-versionOO 1;  Version:operatorA-SDP-versionOO 1;
message-mask2 :1101 ;  Message-mask2 :1101 ;
sdp-mask: 1100 ;  Sdp-mask: 1100;
- 2987933615; 2987933615;  - 2987933615; 2987933615;
由该 SIP会话消息即 INVITE消息的消息体构成可以看出, 消息中, 消息参数掩码行 1即 message-maskl :1110.....中, 前 3位均为 1, 表示在 动态参数掩码行 1中前 3位掩码值对应的 SIP消息参数均为本次 INVITE 消息所需的 SIP消息参数, 第四位为 0, 表示在动态参数掩码行 1中第 四位掩码值对应的 SIP消息参数不是本次 INVITE消息所需的 SIP消息 参数, 而由于动态参数掩码行 1中前 4位为 0110。 这样, 网络侧通过对 消息参数掩码行 1以及动态参数掩码行 1进行分析, 就可获知第一位掩 码值 0表示 SIP协议的文本消息模板中位置编号为 1的消息参数是本次 INVITE消息中携带的静态参数信息对应的消息参数,笫二和第三位的 1 表示 SIP协议的文本消息模板中位置编号为 2以及位置编号为 3的消息 参数为本次 INVITE消息中携带的动态参数信息对应的消息参数, 而第 四位掩码值 0表示 SIP协议的文本消息模板中位置编号为 4的消息参数 不是本次 INVITE消息所需使用的消息参数, 之后, 网络侧通过对消息 参数掩码行 2以及动态参数掩码行 2进行分析就可确定本次 INVITE消 息中所需使用的所有 SDP协议的消息参数。 It can be seen from the message body of the SIP session message, that is, the message body of the INVITE message. In the message, the message parameter mask line 1 is message-maskl: 1110....., the first 3 bits are all 1, indicating that the dynamic parameter is masked. The SIP message parameters corresponding to the first 3 bit mask values in the code line 1 are the SIP message parameters required for the current INVITE message, and the fourth bit is 0, indicating that the fourth bit mask value corresponds to the dynamic parameter mask line 1 The SIP message parameter is not the SIP message parameter required for this INVITE message, and the first 4 bits in line 1 of the dynamic parameter mask are 0110. In this way, the network side analyzes the message parameter mask row 1 and the dynamic parameter mask row 1 to know that the first bit mask value 0 indicates that the message parameter with the location number 1 in the text message template of the SIP protocol is this time. The message parameter corresponding to the static parameter information carried in the INVITE message, and the second and third digits of 1 indicate the message with the location number 2 and the location number 3 in the text message template of the SIP protocol. The parameter is the message parameter corresponding to the dynamic parameter information carried in the INVITE message, and the fourth bit mask value 0 indicates that the message parameter with the location number 4 in the text message template of the SIP protocol is not the message required for the current INVITE message. After the parameter, the network side analyzes the message parameter mask row 2 and the dynamic parameter mask row 2 to determine the message parameters of all the SDP protocols that need to be used in the current INVITE message.
由上述描迷可以看出, 在 UE所构造的 SIP会话消息中, 用位于特 定位置的掩码值 1代表对应于该位置编号的 SIP或 SDP消息参数在本次 SIP会话消息中作为动态参数信息,并依次携带该动态参数信息的取值, 而用位于特定位置的掩码值 0代表对应于该位置编号的 SIP或 SDP消息 参数在本次 SIP会话消息中没有被使用或作为静态参数信息。由此可见, 在本发明中, UE 大大减少了所构造的文本消息的长度, 从而可减少传 递文本消息所占用的带宽资源。  It can be seen from the above description that in the SIP session message constructed by the UE, the mask value 1 located at a specific location represents the SIP or SDP message parameter corresponding to the location number as the dynamic parameter information in the current SIP session message. And carrying the value of the dynamic parameter information in turn, and using the mask value 0 at a specific location to represent that the SIP or SDP message parameter corresponding to the location number is not used in the current SIP session message or as static parameter information. Thus, in the present invention, the UE greatly reduces the length of the constructed text message, thereby reducing the bandwidth resources occupied by the transmitted text message.
步骤 104: UE将所构造出的文本消息传递至网络侧。  Step 104: The UE delivers the constructed text message to the network side.
这里, 为了更好的达到减少所构造文本消息长度, 减少所占用带宽 的目的, 较佳地, 在本步驟中, UE可以首先对所构造出的文本消息进 行压缩, 然后再将压缩后的本次文本消息传递至网络侧。  Here, in order to better reduce the length of the constructed text message and reduce the occupied bandwidth, preferably, in this step, the UE may first compress the constructed text message, and then compress the compressed text. The secondary text message is delivered to the network side.
步驟 105: 网络侧直接接收到 UE发来文本消息的网络实体, 比如 为 PCSCF实体,从该文本消息中获取 UE使用的版本信息, 比如为版本 1 , 判断自身中是否存在该版本 1 的文本消息模板, 如果存在, 则执行 步 106, 否则, 向 UE返回失败通知消息, 并结束当前流程。  Step 105: The network entity directly receives the text message sent by the UE, for example, is a PCSCF entity, and obtains version information used by the UE from the text message, for example, version 1 to determine whether the version 1 text message exists in the version 1 The template, if present, performs step 106, otherwise, returns a failure notification message to the UE and ends the current flow.
这里, 如果在步骤 104中, UE对所构造的文本消息进行了压缩, 那么, 在本步骤中, PCSCF实体在接收到 UE发来的文本消息时, 首先 对该文本消息进行解压, 然后再执行判断自身中是否存在该版本 1的文 本消息模板的步骤。  Here, if the UE compresses the constructed text message in step 104, then in this step, when receiving the text message sent by the UE, the PCSCF entity first decompresses the text message, and then executes the text message. The step of determining whether the version 1 text message template exists in itself.
步驟 106: PCSCF实体根据自身中版本 1的文本消息模板的子模板 中各 SIP及 SDP消息参数对应的位置编号、 本次 SIP会话消息的类型、 以及与该 UE在之前的消息交互中已获得的信息恢复出 PCSCF实体自身 需处理的本次 SIP会话消息所携带的实际静态参数信息; 根据自身中当 前版本 1的文本消息模板的子模板中各 SIP及 SDP消息参数对应的位置 编号、 本次 SIP会话消息中携带的掩码值 1在动态参数掩码行中的位置 顺序、 以及数据部分相应位置的数据恢复出 PCSCF 实体自身需处理的 本次 SIP会话消息所携带的实际动态参数信息, 恢复出本次 SIP会话消 息中 PCSCF实体自身需处理的的实际消息内容。 Step 106: The PCSCF entity according to the sub-template of the text message template of version 1 in itself The location number corresponding to each SIP and SDP message parameter, the type of the current SIP session message, and the information obtained in the previous message interaction with the UE are recovered by the current SIP session message that the PCSCF entity itself needs to process. Actual static parameter information; the location number corresponding to each SIP and SDP message parameter in the sub-template of the current version 1 text message template, and the mask value 1 carried in the current SIP session message in the dynamic parameter mask row. The data of the location sequence and the corresponding location of the data part recovers the actual dynamic parameter information carried in the current SIP session message that the PCSCF entity needs to process, and recovers the actual message content that the PCSCF entity needs to process in the current SIP session message.
这里, 比如 PCSCF实体接收到 UE发来的 INVITE消息后, 获取该 消息中 SIP消息头起始位置处动态参数掩码行中的各 0或 1掩码值。 PCSCF实体根据本次 SIP会话消息的类型确定特定位置如第一位置序号 的掩码值 0代表的是本次 SIP会话消息无需使用的 SIP消息参数还是本 次 SIP会话消息中的静态参数信息, 如果是无需使用的 SIP消息参数, 则不将该位置的位置编号 1对应的 SIP消息参数作为本次 SIP会话消息 中的实际信息, 如果是本次 SIP会话消息中的静态参数信息, 则 PCSCF 实体才艮据在先前已获取的对应于该位置的位置编号 1对应的 SIP消息参 数作为本次 SIP会话消息中的实际静态参数信息。 同时, PCSCF实体根 据特定位置如第二位置序号的掩码值 1 获知该位置位置编号 2对应的 SIP消息参数是本次 SIP会话消息中的动态参数信息, 而该动态参数信 息取值为数据行中的第一个数据。 同理, PCSCF实体根据该 SIP会话消 息中 SDP消息体起始位置处动态参数掩码行中的各 0或 1掩码值,恢复 PCSCF实体自身需处理的本次 SIP会话消息的其它静态参数信息和动态 参数信息。  Here, for example, after receiving the INVITE message sent by the UE, the PCSCF entity obtains each 0 or 1 mask value in the dynamic parameter mask line at the beginning of the SIP message header in the message. The PCSCF entity determines a specific location according to the type of the SIP session message, such as the mask value 0 of the first location sequence number, which represents the SIP message parameter that is not needed for the current SIP session message or the static parameter information in the current SIP session message. If the SIP message parameter is not used, the SIP message parameter corresponding to the location number 1 of the location is not used as the actual information in the current SIP session message. If it is the static parameter information in the current SIP session message, the PCSCF entity is The SIP message parameter corresponding to the location number 1 corresponding to the location that has been previously acquired is used as the actual static parameter information in the current SIP session message. At the same time, the PCSCF entity learns that the SIP message parameter corresponding to the location location number 2 is the dynamic parameter information in the current SIP session message according to the specific location, such as the mask value 1 of the second location sequence number, and the dynamic parameter information takes the value of the data row. The first data in . Similarly, the PCSCF entity recovers other static parameter information of the current SIP session message that the PCSCF entity needs to process according to each 0 or 1 mask value in the dynamic parameter mask row at the start position of the SDP message body in the SIP session message. And dynamic parameter information.
在步骤 106中, 由于 PCSCF实体可以只恢复 PCSCF实体自身需处 理的本次 SIP会话消息的实际消息内容, 而不恢复其它后续网络实体需 处理的本次 SIP会话消息的实际消息内容, 因此, 筒化了 PCSCF实体的 处理过程, 并可实现在向其它后续网络实体传递该 SIP会话消息时减少 所占用的网络带宽资源。 In step 106, since the PCSCF entity can recover only the actual message content of the current SIP session message that the PCSCF entity itself needs to process, without restoring other subsequent network entities. The actual message content of the current SIP session message is processed, and therefore, the processing procedure of the PCSCF entity is compressed, and the occupied network bandwidth resource is reduced when the SIP session message is delivered to other subsequent network entities.
步驟 107: PCSCF实体将该 SIP会话消息经 SCSCF实体传递至后续 的 AS。  Step 107: The PCSCF entity passes the SIP session message to the subsequent AS via the SCSCF entity.
步驟 108: 后续的 AS及本次 SIP会话消息所涉及的其它网络实体, 分别根据自身中保存的版本 1的文本消息模板的子模板中各 SIP及 SDP 消息参数对应的位置编号、 本次 SIP会话消息的类型、 以及与该 ΌΈ在 之前的消息交互中已获得的信息恢复出各网络实体自身需处理的本次 SIP会话消息所携带的实际静态参数信息;根据当前版本中各 SIP及 SDP 消息参数对应的位置编号、 本次 SIP会话消息中携带的掩码值 1在动态 参数掩码行中的位置顺序、 以及数据部分相应位置的数据恢复出各网络 实体自身需处理的本次 SIP会话消息所携带的实际动态参数信息, 得到 本次 SIP会话消息的实际消息内容。  Step 108: The subsequent AS and other network entities involved in the current SIP session message respectively according to the location number corresponding to each SIP and SDP message parameter in the sub-template of the version 1 text message template saved in the self, and the current SIP session The type of the message, and the information obtained in the interaction with the previous message, recovers the actual static parameter information carried in the current SIP session message that each network entity needs to process; according to the SIP and SDP message parameters in the current version. The corresponding location number, the position order of the mask value 1 carried in the current SIP session message in the dynamic parameter mask line, and the data of the corresponding position of the data part are recovered from the current SIP session message that each network entity itself needs to process. The actual dynamic parameter information carried is obtained, and the actual message content of the current SIP session message is obtained.
在上述步骤 105至步骤 108的过程中, 如果网络侧直接接收到 UE 发来的 SIP会话消息的网络实体中, 比如为 PCSCF实体,保存有完整的 文本消息模板, 则可由该 PCSCF 实体根据所保存的完整的文本消息模 板恢复出所接收到的 SIP会话消息的所有内容, 然后将该 SIP会话消息 发送至后续的网络实体, 该后续的网络实体则无需再执行恢复 SIP会话 消息的过程。  In the process of the foregoing steps 105 to 108, if the network side directly receives the SIP session message sent by the UE, for example, the PCSCF entity, and saves the complete text message template, the PCSCF entity may save according to the saved The complete text message template recovers all the contents of the received SIP session message, and then sends the SIP session message to the subsequent network entity, and the subsequent network entity does not need to perform the process of restoring the SIP session message.
另外, 在上述步骤 105至步骤 108的过程中, 在网络侧的一个实体 执行恢复所接收到的 SIP会话消息时, 如果该 SIP会话消息中的一个参 数存在对应的文本消息子模板, 则该网络实体调用该参数对应的文本消 息子模板, 从中得到该参数的一个特定属性值, 即得到 SIP会话消息中 实际携带的一个参数属性值。 在本发明的上述过程中, UE是将文本消息模板的标识, 比如上迷 的文本消息模板的版本信息, 携带在所构造的 SIP会话消息中, 从而通 知网络侧应使用的文本消息模板。 在本发明的其它实施例中, UE也可 以将完整的文本消息模板携带在所构造的 SIP会话消息中, 从而通知网 络侧应使用的文本消息模板。 In addition, in the process of step 105 to step 108, when an entity on the network side performs recovery of the received SIP session message, if a parameter in the SIP session message has a corresponding text message sub-template, the network The entity invokes the text message sub-template corresponding to the parameter, and obtains a specific attribute value of the parameter, that is, obtains a parameter attribute value actually carried in the SIP session message. In the above process of the present invention, the UE carries the identifier of the text message template, such as the version information of the text message template, in the constructed SIP session message, thereby notifying the text message template that the network side should use. In other embodiments of the present invention, the UE may also carry the complete text message template in the constructed SIP session message, thereby notifying the text message template that the network side should use.
在本发明的上述过程中, 网络侧各实体保存静态参数信息的过程可 以是: 在之前的其它消息交互中, 比如 UE向网络侧注册过程中, 网络 侧将从当前消息中获得的消息参数及其取值, 即作为当前消息的动态参 数信息, 基于文本消息模板进行保存, 即在文本消息模板中增加当前已 作为静态参数信息的消息参数对应的取值。 比如网络侧接收到 UE发来 的一个 SIP注册请求, 获取该 SIP注册请求中的消息参数及其取值, 然 后在 SIP协议的文本消息模板中, 除保存有已建立的消息参数及其对应 的位置编号时, 进一步保存 SIP协议的文本消息模板中包括的对于所获 取 SIP注册请求中消息参数对应的取值, 比如, 本次 SIP注册请求中携 带了在文本消息模板中位置编号为 1的消息参数及其取值, 而网络侧接 收到该 SIP注册请求时,首次获取该位置编号为 1的消息参数及其取值, 此时, 该位置编号为 1的消息参数及其取值则已作为网络侧的静态参数 信息, 那么, 该网络实体进一步在文本消息模板中保存位置编号 1的消 息参数对应的取值, 这样, 在上述步骤 105至步骤 108的过程中, 网络 侧的各实体根据文本消息模板中保存的消息参数的取值, 得到本次文本 消息的静态参数信息对应的消息参数的取值。  In the above process of the present invention, the process of storing the static parameter information by the entities on the network side may be: in other previous message interactions, such as the message parameters obtained by the network side from the current message during the registration process of the UE to the network side and The value, which is the dynamic parameter information of the current message, is saved based on the text message template, that is, the value corresponding to the message parameter that has been used as the static parameter information is added to the text message template. For example, the network side receives a SIP registration request sent by the UE, obtains a message parameter and a value thereof in the SIP registration request, and then saves the established message parameter and its corresponding information in the text message template of the SIP protocol. When the location number is used, the value corresponding to the message parameter in the obtained SIP registration request included in the text message template of the SIP protocol is further saved. For example, the SIP registration request carries the message with the location number 1 in the text message template. The parameter and its value, and when the network side receives the SIP registration request, the message parameter with the location number 1 and its value are obtained for the first time. At this time, the message parameter with the position number 1 and its value are used as Static parameter information of the network side, then the network entity further saves the value corresponding to the message parameter of the location number 1 in the text message template, so that in the process of the above steps 105 to 108, the entities on the network side according to the text The value of the message parameter saved in the message template, and the static parameter information of the text message is obtained. The value of the message parameter.
至此, 在本发明中, UE按照与网络侧共同支持的一个版本的文本 消息模板构造出一个消息长度经过极大压缩的文本消息, 而网络侧根据 该版本的文本消息模板恢复出其所需的实际文本消息内容, 从而在保证 文本消息准确传输的情况下, 大大减少了所占用的网络带宽资源。 在上述实施例中, 本发明是预先在网絡侧完成建立文本消息模板的 过程, 由 UE通过各种方式来获取文本消息模板,从而保证网络侧与 UE 中保存有相同的文本消息模板。 在本发明实际的应用中, 也可由 UE与 网络侧预先约定一个排序规则, 并且, 由 UE与网络侧按照该约定的排 序规则分别对文本消息涉及的消息参数进行位置排序, 并按照排序后的 位置为各消息参数设置对应的位置编号, 分别生成相同的文本消息模 板, 以保证网络侧与 UE中保存有相同的文本消息模板。 或者, 也可以 在 UE中完成整个建立文本消息模板的过程, 网络侧从 UE处获取 UE 所建立的文本消息模板, 从而保证网絡侧与 UE中保存有相同的文本消 息模板, 比如, UE主动将所建立的文本消息模板发送至网络侧, 使网 络侧获取。 So far, in the present invention, the UE constructs a text message whose message length is greatly compressed according to a version of the text message template supported by the network side, and the network side recovers the required text according to the text message template of the version. The actual text message content, thus greatly reducing the occupied network bandwidth resources in the case of ensuring accurate transmission of text messages. In the above embodiment, the present invention completes the process of establishing a text message template on the network side in advance, and the UE obtains the text message template in various manners, thereby ensuring that the same text message template is saved in the network side and the UE. In the actual application of the present invention, a sorting rule may be pre-agreed by the UE and the network side, and the message parameters related to the text message are separately sorted by the UE and the network according to the agreed sorting rule, and are sorted according to the sorting. The location sets the corresponding location number for each message parameter, and generates the same text message template to ensure that the same text message template is saved on the network side and the UE. Alternatively, the process of establishing a text message template may be completed in the UE, and the network side obtains the text message template established by the UE from the UE, so that the network side and the UE have the same text message template, for example, the UE actively The created text message template is sent to the network side to be obtained by the network side.
在以上的描述过程中, 以 UE根据所建立的文本消息模板构造文本 消息, 网络侧才艮据所建立的文本消息模板恢复文本消息实际内容的过程 为例, 说明本发明的过程。 在本发明中, 网络侧根据所建立的文本消息 模板构造文本消息, UE根据所建立的文本消息模板恢复文本消息实际 内容的过程与上述过程的原理相同。  In the above description process, the UE constructs a text message according to the established text message template, and the network side takes the process of restoring the actual content of the text message according to the established text message template as an example to illustrate the process of the present invention. In the present invention, the network side constructs a text message according to the established text message template, and the process of the UE recovering the actual content of the text message according to the established text message template is the same as the above process.
总之, 以上所述仅为本发明的过程及方法实施例, 并不用以限制本 发明, 凡在本发明的精神和原则之内所做的任何修改、 等同替换、 改进 等, 均应包含在本发明的保护范围之内。  In the above, the above description is only the embodiment of the process and method of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the present invention. Within the scope of protection of the invention.

Claims

权利要求书 Claim
1、 一种传递文本消息的方法, 其特征在于, 该方法包括:  A method for delivering a text message, the method comprising:
A、 对文本消息所涉及的消息参数进行位置排序, 并按照排序后的 位置为该消息参数设置对应的位置编号, 利用该消息参数及其对应的位 置编号建立文本消息模板;  A. Sorting the message parameters involved in the text message, and setting a corresponding position number for the message parameter according to the sorted position, and establishing a text message template by using the message parameter and its corresponding position number;
B、 网络侧与终端两者之中的第一方才艮据文本消息模板构造本次文 第二方;  B. The first party of the network side and the terminal constructs the second party of the text according to the text message template;
C、 该第二方根据文本消息模板获取本次文本消息中携带的消息参 数及其取值。  C. The second party obtains the message parameters carried in the text message and the value thereof according to the text message template.
2、 根据权利要求 1所述的方法, 其特征在于, 在步骤 A中, 由终 端执行所述的位置排序、 设置和建立的步骤;  2. The method according to claim 1, wherein in step A, said step of sorting, setting and establishing said position is performed by a terminal;
在步驟 A与步骤 B之间进一步包括:网络侧从终端获取所述的文本 消息模板。  Between step A and step B, the network side further acquires the text message template from the terminal.
3、根据权利要求 2所述的方法, 其特征在于, 所迷网络侧从终端获 取文本消息模板的步驟包括: UE主动将所建立的文本消息模板发送至 网络侧。  The method according to claim 2, wherein the step of obtaining, by the network side, the text message template from the terminal comprises: the UE actively sending the established text message template to the network side.
4、 根据权利要求 1所述的方法, 其特征在于, 该方法进一步包括: 设置排序规则;  4. The method according to claim 1, wherein the method further comprises: setting a sorting rule;
在步骤 A中, 所述对文本消息所涉及的消息参数进行位置排序的步 骤包括: 由网络侧和终端分别根据所设置的排序规则对文本消息所涉及 的消息参数进行位置排序;  In step A, the step of performing location ordering on the message parameters involved in the text message includes: performing, by the network side and the terminal, the location parameters of the message parameters involved in the text message according to the set collation rules respectively;
在步驟 A中, 由网络侧和终端分别执行所述的设置和建立的步骤。 In step A, the steps of setting and establishing are performed by the network side and the terminal, respectively.
5、 根据权利要求 1所述的方法, 其特征在于, 在步骤 A中, 由网 络侧执行所述的位置排序、 设置和建立的步骤; 5. The method according to claim 1, wherein in step A, the network The network side performs the steps of sorting, setting, and establishing the location;
在步骤 A与步骤 B之间进一步包括:终端从网络侧获取所述的文本 消息模板。  Further, the step A and the step B further comprise: the terminal acquiring the text message template from the network side.
6、根据权利要求 5所述的方法, 其特征在于, 所述终端从网络侧获 取文本消息模板的步骤包括: 终端向网络侧发起注册请求, 网络侧将所 述文本消息模板携带在注册响应消息中发送至终端; 或, 网络侧通过空 中传递 OTA方式, 将所述文本消息模板发送至终端; 或, 终端从指定 的网站下载获得所述文本消息模板。  The method according to claim 5, wherein the step of the terminal acquiring the text message template from the network side comprises: the terminal initiating a registration request to the network side, and the network side carrying the text message template in the registration response message Sending to the terminal; or, the network side transmits the text message template to the terminal by transmitting the OTA method over the air; or, the terminal downloads the text message template from the specified website.
7、 根据权利要求 1所述的方法, 其特征在于, 在步驟 B中, 所述 第一方根据文本消息模板构造本次文本消息的步骤包括: 所述第一方根 据文本消息模板确定本次文本消息所需消息参数对应的位置编号, 然后 利用所确定的位置编号的信息及本次文本消息所需消息参数的取值构 造本次文本消息;  The method according to claim 1, wherein in step B, the step of constructing the current text message by the first party according to the text message template comprises: determining, by the first party, the current message according to the text message template The position number corresponding to the message parameter required by the text message, and then constructing the text message by using the information of the determined position number and the value of the message parameter required for the text message;
所述步驟 C包括: 所述第二方根据文本消息模板、 本次文本消息中 的位置编号的信息、 以及本次文本消息中的所需消息参数的取值, 获取 本次文本消息中携带的消息参数及其取值。  The step C includes: the second party acquiring, according to the text message template, the location number information in the current text message, and the value of the required message parameter in the text message, Message parameters and their values.
8、 根据权利要求 7所述的方法, 其特征在于, 在步驟 A中, 所述 文本消息涉及的消息参数中包括存在多个属性的第一消息参数;  The method according to claim 7, wherein in the step A, the message parameter involved in the text message includes a first message parameter in which a plurality of attributes exist;
在步骤 A中, 所述进行位置排序并设置对应位置编号的步骤包括: 为文本消息所涉及的包括第一消息参数在内的各消息参数进行位置排 序, 并按照排序后的位置为该文本消息所涉及的包括第一消息参数在内 的各消息参数设置对应的位置编号;  In step A, the step of performing location sorting and setting the corresponding location number includes: performing location ordering on each message parameter including the first message parameter involved in the text message, and using the sorted position as the text message. The location number corresponding to each message parameter setting including the first message parameter is involved;
在为第一消息参数设置对应的位置编号之后, 并在建立文本消息模 板之前, 所述步骤 A进一步包括: 为第一消息参数的各个属性进行位置 排序, 并按照该排序 的位置为第一消息参数的各属性设置从属位置编 号, 然后利用第一消息参数对应的位置编号和所设置的从属位置编号设 置与第一消息参数各属性对应的复合位置编号, 其中, 所述复合位置编 号为将各属性的从属位置编号分别作为第一消息参数对应位置编号的 后缀或下标; After the corresponding location number is set for the first message parameter, and before the text message template is established, the step A further includes: performing location ordering on each attribute of the first message parameter, and using the sorted position as the first message. Set the dependent position of each attribute of the parameter And then, using the position number corresponding to the first message parameter and the set slave position number, setting a composite position number corresponding to each attribute of the first message parameter, wherein the composite position number is a subordinate position number of each attribute as The first message parameter corresponds to a suffix or subscript of the location number;
在步骤 A中, 所述建立文本消息模板的步骤包括: 利用第一消息参 数的各个属性及其对应的复合位置编号以及文本消息所涉及的其它消 息参数及其对应的位置编号建立文本消息模板; 或者, 利用第一消息参 数的各个属性及其对应的复合位置编号建立一个对应于第一消息参数 的文本消息子模板, 并利用第一消息参数以及文本消息所涉及的其它消 息参数及其对应的位置编号建立文本消息模板。  In step A, the step of establishing a text message template includes: establishing a text message template by using each attribute of the first message parameter and its corresponding composite location number and other message parameters involved in the text message and their corresponding location numbers; Or establishing a text message sub-template corresponding to the first message parameter by using each attribute of the first message parameter and its corresponding composite location number, and using the first message parameter and other message parameters involved in the text message and their corresponding The location number establishes a text message template.
9、 根据权利要求 8所述的方法, 其特征在于, 在步骤 B中, 所述 本次文本消息所需消息参数中包括第一消息参数;  The method according to claim 8, wherein in step B, the message parameter required by the text message includes a first message parameter;
在步骤 B中, 所述第一方确定位置编号并构造本次文本消息的步驟 包括: 所述第一方根据文本消息模板, 确定本次文本消息所需消息参数 中第一消息参数的各属性对应的复合位置编号, 以及确定本次文本消息 所需其它消息参数对应的位置编号, 然后, 所述第一方根据本次文本消 息所需第一消息参数各属性的取值及所确定的复合位置编号的信息, 以 及本次文本消息所需其它消息参数的取值及所确定的位置编号的信息 构造本次文本消息;  In step B, the step of determining, by the first party, the location number and constructing the current text message includes: the first party determining, according to the text message template, each attribute of the first message parameter in the message parameter required for the current text message. Corresponding composite location number, and a location number corresponding to other message parameters required to determine the current text message, and then the first party needs the value of each attribute of the first message parameter required by the first text message and the determined composite The information of the location number, and the value of other message parameters required for the text message and the information of the determined location number construct the current text message;
在步骤 C中, 当利用第一消息参数的各个属性及其对应的复合位置 编号建立文本消息模板时, 所述获取的步驟包括: 所述第二方根据文本 消息模板以及本次文本消息中对应第一消息参数各属性的复合位置编 号信息及取值获取第一消息参数的各属性及其取值, 并根据本次文本消 息中对应其它消息参数的位置编号信息及取值获取该其它消息参数及 其取值; 或者, 在步骤 C中, 当利用第一消息参数的各个属性及其对应的复 合位置编号建立对应于第一消息参数的文本消息子模板时, 所述获取的 步骤包括: 所述第二方根据文本消息模板以及本次文本消息中对应第― 消息参数各属性的复合位置编号信息, 调用对应于第一消息参数的文本 消息子模板, 从该子模板中获取对应的第一消息参数的属性, 并获取其 取值以及其它消息参数及取值。 In step C, when the text message template is created by using the respective attributes of the first message parameter and the corresponding composite location number, the step of obtaining includes: the second party corresponding to the text message template and the current text message The composite location number information of each attribute of the first message parameter and the value obtain the attributes of the first message parameter and their values, and obtain the other message parameters according to the position number information and the value corresponding to other message parameters in the text message. And its value; Or, in step C, when the text message sub-template corresponding to the first message parameter is established by using each attribute of the first message parameter and its corresponding composite location number, the step of obtaining includes: the second party according to a text message template and a composite location number information corresponding to each attribute of the first message parameter in the text message, calling a text message sub-template corresponding to the first message parameter, and obtaining an attribute of the corresponding first message parameter from the sub-template, And get its value and other message parameters and values.
10、 根据权利要求 7所述的方法, 其特征在于, 在步骤 A中, 所述 文本消息涉及的消息参数中包括存在多个属性的第一消息参数;  The method according to claim 7, wherein in the step A, the message parameter involved in the text message includes a first message parameter in which a plurality of attributes exist;
所述步驟 A包括: 将第一消息参数的各个属性分别作为一个消息参 数, 与所述文本消息所涉及的其它消息参数统一进行位置排序, 并按照 该统一排序后的位置为该其它消息参数以及第一消息参数的各属性设 置对应的位置编号, 然后利用其它消息参数及其对应的位置编号以及第 一消息参数的各属性及其对应的位置编号建立文本消息模板。  The step A includes: separately performing, as a message parameter, each attribute of the first message parameter, and performing location sorting with other message parameters involved in the text message, and using the uniformly sorted position as the other message parameter and Each attribute of the first message parameter sets a corresponding position number, and then uses the other message parameters and their corresponding position numbers and the attributes of the first message parameter and their corresponding position numbers to establish a text message template.
11、 根据权利要求 10所述的方法, 其特征在于, 在步骤 B中, 所 述本次文本消息所需消息参数中包括第一消息参数;  The method according to claim 10, wherein in step B, the message parameter required by the current text message includes a first message parameter;
在步骤 B中, 所述第一方确定位置编号并构造本次文本消息的步骤 包括: 所述第一方根据文本消息模板, 确定本次文本消息所需第一消息 参数的各属性和其它消息参数所对应的位置编号, 并根据所确定的位置 编号的信息及第一消息参数的各属性和其它消息参数的取值构造本次 文本消息;  In step B, the step of determining, by the first party, the location number and constructing the current text message includes: the first party determining, according to the text message template, attributes and other messages of the first message parameter required for the current text message. a position number corresponding to the parameter, and constructing the current text message according to the determined information of the position number and the values of the first message parameter and other message parameters;
在步骤 C中, 所述获取的步骤包括: 所述第二方根据文本消息模板 以及本次文本消息中对应第一消息参数各属性的位置编号信息及取值 获取第一消息参数的各属性及其取值, 并根据本次文本消息中对应其它 消息参数的位置编号信息及取值获取该其它消息参数及其取值。  In step C, the step of obtaining includes: the second party acquiring the attributes of the first message parameter according to the text message template and the position number information and the value corresponding to each attribute of the first message parameter in the current text message and The value is obtained, and the other message parameters and their values are obtained according to the location number information and the value corresponding to other message parameters in the text message.
12、 根据权利要求 1所述的方法, 其特征在于, 在步骤 A中, 所述 对文本消息所涉及的消息参数进行位置排序的步骤具体包括: 按照预先 设置的规则对文本消息所涉及的消息参数进行位置排序, 其中, 所述规 则为, 根据所述各消息参数首字母的排列顺序, 或根据所述各消息参数 被使用的频率。 12. The method according to claim 1, wherein in step A, the The step of performing the positional ordering of the message parameters involved in the text message includes: sorting the message parameters involved in the text message according to a preset rule, wherein the rule is: according to the arrangement of the first letter of each message parameter The order, or the frequency at which the various message parameters are used.
13、 根据权利要求 1所述的方法, 其特征在于, 所述步骤 A包括: 以多种规则对文本消息所涉及的消息参数进行位置排序, 并按照各规则 排序后的位置为所述消息参数分别设置对应的位置编号, 然后利用各种 规则下所述消息参数及其对应的位置编号建立不同版本的文本消息模 板;  The method according to claim 1, wherein the step A comprises: performing location ordering on message parameters involved in the text message by using multiple rules, and sorting the positions according to the rules as the message parameters. Setting corresponding location numbers respectively, and then establishing different versions of text message templates by using the message parameters and their corresponding location numbers under various rules;
在步骤 A与步骤 B之间进一步包括:终端与网络侧协商所使用的当 前版本的文本消息模板;  Between step A and step B, the method further includes: the terminal negotiating with the network side the text message template of the current version used;
在步驟 B中, 所根据的文本消息模板为当前版本的文本消息模板; 在步骤 C中, 所 居的文本消息模板为当前版本的文本消息模板。 In step B, the text message template is based on the current version of the text message template; in step C, the resident text message template is the current version of the text message template.
14、根据权利要求 13所述的方法, 其特征在于, 所述终端与网络侧 协商所使用的当前版本的文本消息模板的步骤包括: 终端向网络侧发起 注册请求, 网络侧将使用的当前版本的文本消息模板携带在注册响应消 息中发送至终端; 或网络侧通过 QTA方式将使用的当前版本的文本消 息模板信息通知终端; 或终端将使用的当前版本的文本消息模板信息通 知网络侧。 The method according to claim 13, wherein the step of the terminal negotiating the current version of the text message template used by the terminal with the network side comprises: the terminal initiating a registration request to the network side, and the current version to be used by the network side The text message template is sent to the terminal in the registration response message; or the network side notifies the terminal of the current version of the text message template information used by the QTA mode; or the terminal informs the network side of the current version of the text message template information used by the terminal.
15、才艮据权利要求 13所述的方法, 其特征在于, 所述终端与网络侧 协商所使用的当前版本的文本消息模板的步骤包括: 所述第一方将当前 版本的文本消息模板发送至第二方, 笫二方将第一方发来的文本消息模 板作为所使用的当前版本的文本消息模板;  The method according to claim 13, wherein the step of the terminal negotiating the current version of the text message template used by the terminal with the network side comprises: the first party sending the current version of the text message template To the second party, the second party sends the text message template sent by the first party as the text message template of the current version used;
或者,  Or,
在所述第一方将所构造的文本消息发送至所述第二方之前, 所述步 骤 B进一步包括: 所述第一方在所构造的文本消息中携带当前版本的信 在步驟 B与步骤 C之间进一步包括:所述第二方接收到所述第一方 发来的本次文本消息后, 根据从本次文本消息中获取的所迷当前版本的 信息, 判断自身中是否保存有所述当前版本的文本消息模板, 如果是, 则执行步骤 C, 否则结束当前流程。 The step before the first party sends the constructed text message to the second party The step B further includes: the first party carrying the current version of the letter in the constructed text message between step B and step C further comprising: the second party receiving the current one sent by the first party After the text message, according to the information of the current version obtained from the current text message, it is determined whether the text message template of the current version is saved in itself, and if yes, step C is performed, otherwise the current flow is ended.
16、 根据权利要求 1所述的方法, 其特征在于, 所述步骤 A进一步 包括: 按照所建立的文本消息模板中各消息参数涉及的不同网络实体, 将所建立的文本消息模板划分为不同网络实体对应的不同子模板, 然后 将各个子模板保存在其对应的网络实体中;  The method according to claim 1, wherein the step A further comprises: dividing the established text message template into different networks according to different network entities involved in each message parameter in the established text message template. Different sub-templates corresponding to the entity, and then saving each sub-template in its corresponding network entity;
所述第一方为终端, 所述第二方为网络侧;  The first party is a terminal, and the second party is a network side;
所述步骤 C包括: 在网络侧, 直接接收到终端发来本次文本消息的 第一网络实体根据自身保存的所述子模板以及本次文本消息中自身涉 及的消息参数对应的位置编号信息及取值获取本次文本消息中自身涉 及的消息参数及其取值 , 然后第一网絡实体将本次文本消息发送至后续 网络实体, 后续网络实体根据自身保存的所述子模板以及本次文本消息 中自身涉及的各消息参数对应的位置编号信息及取值分别获取本次文 本消息中自身涉及的消息参数及其取值。  The step C includes: directly receiving, by the network side, the first network entity sent by the terminal to the current text message according to the sub-template saved by itself and the location number information corresponding to the message parameter involved in the text message and The value of the message parameter and its value are obtained in the text message, and then the first network entity sends the current text message to the subsequent network entity, and the subsequent network entity saves the sub-template and the current text message according to the self-save template. The location number information and the value corresponding to each message parameter involved in the self-acquisition are respectively obtained by the message parameters involved in the text message and their values.
17、 根据权利要求 1所述的方法, 其特征在于, 所述步骤 A进一步 包括: 将所建立的文本消息模板保存在网络侧的每一个网络实体中; 所述第一方为终端, 所述第二方为网絡侧;  The method according to claim 1, wherein the step A further comprises: saving the created text message template in each network entity on the network side; the first party is a terminal, The second party is the network side;
所述步骤 C包括: 在网络侧, 直接接收到终端所发送的本次文本消 息的网络实体, 根据自身中保存的文本消息模板以及本次文本消息中各 消息参数的位置编号信息及取值, 获取本次文本消息中的所有消息参数 及其取值。 The step C includes: on the network side, directly receiving the network entity of the current text message sent by the terminal, according to the text message template saved in the file, and the location number information and value of each message parameter in the text message. Get all the message parameters and their values in this text message.
18、根据权利要求 1至 17中任意一项所述的方法, 其特征在于, 所 述本次文本消息所需消息参数包括动态参数信息对应的消息参数和静 态参数信息对应的消息参数; The method according to any one of claims 1 to 17, wherein the message parameters required for the current text message include a message parameter corresponding to the dynamic parameter information and a message parameter corresponding to the static parameter information;
在步骤 B中, 所述第一方构造本次文本消息的步骤包括以下步驟: B 1、 所述第一方在本次文本消息中设置动态参数掩码行和数据行; B2、 所述第一方为本次文本消息中所需动态参数信息对应的消息参 数设置掩码值 1;  In step B, the step of constructing the current text message by the first party includes the following steps: B1. The first party sets a dynamic parameter mask row and a data row in the current text message; One party sets a mask value of 1 for the message parameter corresponding to the required dynamic parameter information in the text message;
B3、 所述第一方根据文本消息模板中本次文本消息所需各动态参数 信息对应的消息参数所对应的位置编号, 确定所设置的掩码值 1在动态 参数掩码行中所处的位置, 以及确定各动态参数信息对应的消息参数的 取值在数据行中所处的位置;  B3. The first party determines, according to the location number corresponding to the message parameter corresponding to each dynamic parameter information required by the text message in the text message template, that the set mask value 1 is in the dynamic parameter mask row. Position, and determining a location of the value of the message parameter corresponding to each dynamic parameter information in the data line;
所述步骤 C包括以下步骤:  The step C includes the following steps:
. Cl、 所述第二方根据本次文本消息中掩码值 1在动态参数掩码行中 所处的位置、 本次文本消息中消息参数的取值在数据行中所处的位置、 以及文本消息模板中各消息参数对应的位置编号, 获取本次文本消息中 动态参数信息对应的消息参数及其取值;  Cl, the second party according to the position of the mask value 1 in the dynamic parameter mask row in the text message, the position of the message parameter in the text message in the data row, and The location number corresponding to each message parameter in the text message template, and the message parameter corresponding to the dynamic parameter information in the text message and the value thereof are obtained;
C2、 所述第二方根据本次文本消息的类型、 自身与第一方已交互而 获得的消息参数及其取值、 以及自身中保存的文本消息模板中各消息参 数对应的位置编号, 获取本次文本消息中静态参数信息对应的消息参数 及其取值。  C2. The second party obtains according to the type of the text message, the message parameter obtained by the self-interaction with the first party, the value thereof, and the location number corresponding to each message parameter in the text message template saved in the user. The message parameters corresponding to the static parameter information in this text message and their values.
19、根据权利要求 18所述的方法, 其特征在于, 所述本次文本消息 中静态参数信息对应的消息参数中不存在可选的消息参数;  The method according to claim 18, wherein the message parameter corresponding to the static parameter information in the current text message does not have an optional message parameter;
所述步骤 B2进一步包括: 所述第一方为本次文本消息中静态参数 信息对应的消息参数设置掩码值 0 ;  The step B2 further includes: the first party sets a mask value of 0 for the message parameter corresponding to the static parameter information in the text message;
所述步骤 B3进一步包括: 所述第一方根据所述文本消息模板中, 本次文本消息中各静态参数信息对应的消息参数所对应的位置编号, 依 次确定所设置的掩码值 0在动态参数掩码行中所处的位置; The step B3 further includes: the first party according to the text message template, The position number corresponding to the message parameter corresponding to each static parameter information in the text message, and sequentially determines the position of the set mask value 0 in the dynamic parameter mask line;
在步骤 C2中, 所述第二方进一步根据本次文本消息中掩码值 0在 动态参数掩码行中所处的位置, 获取所述的本次文本消息中静态参数信 息对应的消息参数及其取值。  In the step C2, the second party further obtains the message parameter corresponding to the static parameter information in the current text message according to the position of the mask value 0 in the dynamic parameter mask row in the current text message. Its value.
20、根据权利要求 18或 19所述的方法, 其特征在于, 所述步骤 B1 进一步包括: 所述笫一方在所构造的本次文本消息中所述动态参数掩码 行和数据行之前设置消息参数掩码行, 并根据文本消息模板中本次文本 消息所需动态参数信息和静态参数信息对应消息参数所分别对应的位 置编号, 依次确定掩码值 1在消息参数掩码行中所处的位置;  The method according to claim 18 or 19, wherein the step B1 further comprises: the first party setting a message before the dynamic parameter mask line and the data line in the constructed text message. The parameter mask row, and according to the dynamic parameter information required by the text message in the text message template and the position number corresponding to the message parameter corresponding to the static parameter information, sequentially determine the mask value 1 in the message parameter mask row. Location
在步骤 C2中, 所述第二方进一步根据掩码值 1在消息参数掩码行 中所处的位置, 获取所述的本次文本消息中静态参数信息对应的消息参 数及其取值》  In step C2, the second party further obtains the message parameter corresponding to the static parameter information in the current text message and the value thereof according to the position of the mask value 1 in the message parameter mask row.
21、根据权利要求 1至 17中任意一项所述的方法, 其特征在于, 所 述本次文本消息所需消息参数包括动态参数信息对应的消息参数和静 态参数信息对应的消息参数;  The method according to any one of claims 1 to 17, wherein the message parameters required for the current text message include a message parameter corresponding to the dynamic parameter information and a message parameter corresponding to the static parameter information;
在步骤 B中, 所述第一方构造本次文本消息的步骤包括: 所述第一 方在本次文本消息中设置位置编号行和数据行, 在位置编号行中携带本 次文本消息所需动态参数信息对应消息参数的位置编号; 然后根据本次 文本消息中携带的位置编号的顺序, 在数据行中依次顺序携带本次文本 消息所需动态参数信息对应消息参数的取值;  In step B, the step of constructing the current text message by the first party includes: the first party sets a location number row and a data row in the current text message, and carries the current text message in the location number row. The dynamic parameter information corresponds to the location number of the message parameter. Then, according to the order of the location number carried in the text message, the value of the dynamic parameter information corresponding to the current text message is sequentially carried in the data row.
所述步骤 C包括: 所述第二方根据文本消息模板, 以及本次文本消 息的位置编号行中的位置编号获取本次文本消息中携带的动态参数信 息对应的消息参数, 并根据数据行获取本次文本消息中携带的动态参数 信息对应的消息参数的取值, 以及根据本次文本消息的类型、 自身与所 述第一方已交互而获得的消息参数及其取值获取本次文本消息的静态 参数信息对应的消息参数及其取值。 The step C includes: the second party obtains the message parameter corresponding to the dynamic parameter information carried in the text message according to the text message template and the location number in the location number row of the current text message, and obtains the message parameter according to the data line. The value of the message parameter corresponding to the dynamic parameter information carried in the text message, and the type and content of the text message according to the current text message. The message parameters obtained by the first party have been interactively obtained and the values thereof are used to obtain the message parameters corresponding to the static parameter information of the current text message and their values.
22、根据权利要求 1至 17中任意一项所述的方法, 其特征在于, 所 述本次文本消息所需消息参数包括动态参数信息对应的消息参数和静 态参数信息对应的消息参数;  The method according to any one of claims 1 to 17, wherein the message parameters required for the current text message include a message parameter corresponding to the dynamic parameter information and a message parameter corresponding to the static parameter information;
在步骤 B中, 所述第一方构造本次文本消息的步骤包括: 所述第一 方针对本次文本消息所需的每一个动态参数信息对应的消息参数, 首先 携带该消息参数对应的位置编号, 并在该位置编号后紧跟该消息参数的 取值;  In step B, the step of constructing the current text message by the first party includes: the message parameter corresponding to each dynamic parameter information required by the first party for the current text message, first carrying the location corresponding to the message parameter Number, and after the number is numbered, the value of the message parameter is followed;
所述步驟 C包括: 所述第二方根据所述文本消息模板, 以及本次文 本消息中携带的位置编号及其后的取值获取本次文本消息中携带的动 态参数信息对应的消息参数及其取值, 并根据本次文本消息的类型、 自 身与所述第一方已交互而获得的消息参数及其取值获取本次文本消息 中静态参数信息对应的消息参数及其取值。  The step C includes: the second party acquiring the message parameter corresponding to the dynamic parameter information carried in the text message according to the text message template, the location number carried in the text message, and the subsequent value. The value is obtained, and the message parameter corresponding to the static parameter information in the text message and the value thereof are obtained according to the type of the text message, the message parameter obtained by the self-interaction with the first party, and the value thereof.
23、根据权利要求 1至 17中任意一项所述的方法, 其特征在于, 在 所述第一方构造出本次文本消息之后, 并在发送本次文本消息之前, 所 述步骤 B进一步包括: 所述第一方将所构造的本次文本消息进行压缩; 在所述第一方将本次文本消息发送至第二方之后, 所述步骤 B进一 步包括: 所述第二方对接收到的本次文本消息进行解压。  The method according to any one of claims 1 to 17, wherein after the first party constructs the current text message, and before transmitting the current text message, the step B further includes The first party compresses the constructed text message; after the first party sends the current text message to the second party, the step B further includes: the second party receives the This text message is decompressed.
24、根据权利要求 1至 17中任意一项所迷的方法, 其特征在于, 在 步骤 A中, 所述文本消息所涉及的消息参数包括: 文本消息所使用协议 中规定的所有消息参数; 或, 根据实际业务需要对文本消息所使用协议 中规定的所有消息参数进行筛选后的消息参数。  The method according to any one of claims 1 to 17, wherein in step A, the message parameters involved in the text message comprise: all message parameters specified in a protocol used by the text message; or , according to the actual business needs, the message parameters after filtering all the message parameters specified in the protocol used by the text message.
PCT/CN2006/000873 2005-04-30 2006-04-29 A method for transferring text message WO2006116942A1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN200510070501 2005-04-30
CN200510070501.8 2005-04-30
CN200510070809 2005-05-17
CN200510070809.2 2005-05-17
CN200510102816.6 2005-09-12
CNB2005101028166A CN100455048C (en) 2005-04-30 2005-09-12 Method for transferring text message

Publications (1)

Publication Number Publication Date
WO2006116942A1 true WO2006116942A1 (en) 2006-11-09

Family

ID=37307591

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/000873 WO2006116942A1 (en) 2005-04-30 2006-04-29 A method for transferring text message

Country Status (1)

Country Link
WO (1) WO2006116942A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1332527A (en) * 2000-07-10 2002-01-23 刘明 WAP-based transmitted data compressing process
WO2002095604A1 (en) * 2001-05-18 2002-11-28 Phdx Systems, Inc. High-level xml structure and communication process
EP1262931A1 (en) * 2001-06-01 2002-12-04 Siemens Aktiengesellschaft Improvements in text messaging
US20040122979A1 (en) * 2002-12-19 2004-06-24 International Business Machines Corporation Compression and abbreviation for fixed length messaging

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1332527A (en) * 2000-07-10 2002-01-23 刘明 WAP-based transmitted data compressing process
WO2002095604A1 (en) * 2001-05-18 2002-11-28 Phdx Systems, Inc. High-level xml structure and communication process
EP1262931A1 (en) * 2001-06-01 2002-12-04 Siemens Aktiengesellschaft Improvements in text messaging
US20040122979A1 (en) * 2002-12-19 2004-06-24 International Business Machines Corporation Compression and abbreviation for fixed length messaging

Similar Documents

Publication Publication Date Title
CN102833698B (en) Use the data service technology that network is initiated to push the system and method for content to terminal
RU2288545C2 (en) Method and system for multimedia message delivery
JP4649328B2 (en) Method, apparatus and system for realizing multi-party conferencing service using broadcast / multicast service of wireless communication system
US20060133335A1 (en) Establishing a push session in a communication system
US20060179115A1 (en) Controlling push operation in a communication system
WO2009092263A1 (en) A terminal, a server, a method for managing the terminal and a method for reporting the terminal ability information
JP5091569B2 (en) Communication control apparatus, system and method for each service
WO2009012730A1 (en) Message handling method, system, server and terminal
US20060133407A1 (en) Content sharing in a communication system
WO2006116939A1 (en) A method of realizing message service based on ip network multimedia subsystem
JP2010524382A (en) Terminal apparatus for performing SIP-based session processing and session negotiation request transmission / reception method using the same
TW200840269A (en) System and method for implementing MBMS handover during download delivery
JP2008172794A (en) Device for providing instance identifier to network database node of mobile network, and method related thereto
WO2010133035A1 (en) Method, system and server for processing point to multipoint push message
WO2008022596A1 (en) A method, system and apparatus for delivering sms in forking mode
WO2008089693A1 (en) Method and system for identifying communication service
WO2007033549A1 (en) An offline message transmission method
WO2007068209A1 (en) A method, system and device for transmitting ims instant messages
WO2007003103A1 (en) A method for sharing data and a method for recovering the backup data
US7830910B2 (en) System for providing interactive broadcast service and method thereof
WO2014101661A1 (en) Service flow mirroring method and mirroring device
WO2010017749A1 (en) Method and apparatus for negotiating data compression algorithm through cx or sh interface
WO2008019559A1 (en) A method, system, client end and server for locating operation node in a communication system
JP4988039B2 (en) Apparatus and associated method for configuring an IMS service for use in a circuit switched device
WO2024088233A1 (en) Abnormal network service recovery method and apparatus, electronic device, and server

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

NENP Non-entry into the national phase

Ref country code: RU

WWW Wipo information: withdrawn in national office

Country of ref document: RU

122 Ep: pct application non-entry in european phase

Ref document number: 06722431

Country of ref document: EP

Kind code of ref document: A1

WWW Wipo information: withdrawn in national office

Ref document number: 6722431

Country of ref document: EP