Disclosure of Invention
The invention aims to provide a method and a corresponding device for displaying a Chinese name of a sender on a mobile phone terminal, which are used for solving the problem of displaying the Chinese name of the sender on a mobile phone.
In order to solve the above problems, the present invention provides a method for displaying a sender name in a mobile phone terminal, comprising:
expanding the interface protocol between the network side equipment of the short message system and the mobile terminal, and adding a number type for indicating that the calling address is a Chinese character string;
after receiving the short message of the sender, the network side equipment acquires the name of the sender in the calling address, or inquires the corresponding relation between the number of the sender and the name of the sender through the number of the sender in the calling address to acquire the name of the sender;
the network side equipment encodes the name of the sender into the calling address according to an expanded interface protocol and sends the name of the sender to a mobile phone terminal;
and after receiving the short message, the mobile phone terminal acquires the name of the sender from the calling address and displays the name.
Correspondingly, the implementation method also has the following characteristics:
the network side equipment is a short message gateway or a short message center, and the corresponding relation between the sender number and the sender name comprises the following steps: the corresponding relation between the Service Provider (SP) access number and the SP name, or the corresponding relation between the SP access number plus the service information and the SP name;
if the network side equipment is a short message center, the corresponding relation between the sender number and the sender name also comprises the corresponding relation between a common user number and a user name.
Correspondingly, the implementation method also has the following characteristics:
for a GSM network, extending an interface protocol between the network side device and the mobile terminal refers to extending a field of an Address Type (Type-of-Address) in a source Address parameter (TP-organizing-Address) of a 3GPP TS 03.40 protocol SMS-DELIVER PDU, and adding a number Type value to indicate that a calling Address is a Chinese character string; or,
for the CDMA network, extending the interface protocol between the network side device and the mobile terminal means extending the coding field of the source address parameter (SMS _ originationaddress) of the IS-41D protocol, and adding a value to indicate that the calling address IS a chinese character string.
Correspondingly, the implementation method also has the following characteristics:
the network side equipment is a short message gateway, and the extended interface protocol further comprises:
and expanding a protocol between the short message center and the short message gateway, namely a short message point-to-point protocol (SMPP), and adding a type value in a source address number type (source _ addr _ ton) field to indicate that the calling address is a Chinese character string.
In order to solve the above problems, the present invention further provides a device for implementing a function of displaying a sender chinese name at a mobile phone terminal, which is used for a network side device of a short message system, and is characterized in that the device comprises a protocol conversion module and a name query module, wherein:
the protocol conversion module is used for supporting an expanded interface protocol and acquiring a calling address in a received short message, if the calling address is a sender number, the sender number is sent to the name inquiry module, the sender name returned by the name inquiry module is coded to the calling address according to the expanded interface protocol and sent to the mobile phone terminal, and if the calling address is the sender name, the sender name is coded to the calling address directly according to the expanded interface protocol and sent to the mobile terminal; wherein, the extended interface protocol adds a number type to express the calling address as Chinese character string;
and the name query module is used for querying the maintained corresponding relation between the sender number and the sender name according to the sender number, acquiring the sender name and returning the sender name to the protocol conversion module.
Correspondingly, the device also has the following characteristics:
the network side device is a short message gateway or a short message center, and the corresponding relation between the sender number and the sender name maintained by the name query module comprises: the corresponding relation between the Service Provider (SP) access number and the SP name, or the corresponding relation between the SP access number plus the service information and the SP name;
if the network side equipment is a short message center, the corresponding relation between the sender number and the sender name also comprises the corresponding relation between a common user number and a user name.
Correspondingly, the device also has the following characteristics:
for a GSM network, extending an interface protocol between the network side device and the mobile terminal refers to extending a field of an Address Type (Type-of-Address) in a source Address parameter (TP-organizing-Address) of a 3GPP TS 03.40 protocol SMS-DELIVER PDU, and adding a number Type value to indicate that a calling Address is a Chinese character string; or,
for the CDMA network, extending the interface protocol between the network side device and the mobile terminal refers to extending a coding field of a source address parameter (SMS _ originationaddresss), and adding a value to indicate that the calling address is a chinese character string.
Correspondingly, the device also has the following characteristics:
the network side equipment is a short message gateway, and the extended interface protocol further comprises:
and expanding a protocol between the short message center and the short message gateway, namely a short message point-to-point protocol (SMPP), and adding a type value in a source address number type (source _ addr _ ton) field to indicate that the calling address is a Chinese character string.
In order to solve the above problem, the present invention further provides a mobile phone terminal for displaying a sender chinese name, which is characterized in that the mobile phone terminal comprises a protocol conversion module and a display module, wherein:
the protocol conversion module is used for supporting an interface protocol between network side equipment of the extended short message system and the mobile phone terminal, acquiring a calling address of the received short message, decoding the calling address to obtain a sender name, and sending the sender name to the display module; the interface protocol of the network side equipment and the mobile phone terminal of the extended short message system is added with a number type for indicating that a calling address is a Chinese character string;
and the display module is used for displaying the name of the sender.
Correspondingly, the mobile phone terminal also has the following characteristics:
for a mobile phone terminal of a GSM network, after the protocol conversion module receives a short message, if the Address Type (Type-of-Address) in a source Address parameter (TP-addressing-Address) is an increased number Type, the protocol conversion module decodes a calling Address to obtain a name of a sender, and sends the name of the sender to a display module;
for a mobile phone terminal of a CDMA network, after a protocol conversion module receives a short message, if a coding field of an extended source address parameter (SMS _ OriginaloriginingAddress) is an increased value, the protocol conversion module decodes from a calling address to obtain a name of a sender and sends the name of the sender to a display module.
The method, the device and the mobile phone terminal enable an interface between the SP and a user to be more friendly and are convenient for the user to use. In one embodiment, the Chinese name is obtained by auditing of an operator, so that the authenticity and credibility of the information can be ensured, and embezzlement or fraud is avoided.
Detailed Description
The following detailed description of the embodiments of the invention refers to the accompanying drawings.
The embodiment is a method for realizing the display of the Chinese name of a sender on a mobile phone terminal, which comprises a network side device of a short message system and the mobile phone terminal, wherein the network side device can be a short message gateway or a short message center, and the embodiment takes the short message gateway as an example; the method comprises the following steps:
step 10: the network side equipment maintains the corresponding relation between all sender numbers accessed to the network side equipment and the sender names, wherein the senders are also called as calling parties;
in the short message gateway or the short message center, the correspondence between the sender number and the sender name may include a correspondence between an SP access number (i.e., the sender number when the sender is an SP) and an SP name; in the short message center, the corresponding relation between the sender number and the sender name can also comprise the corresponding relation between a common user number and a user name; the corresponding relation can be realized by maintaining a mapping table of the sender number and the sender name;
the maintenance can include operations such as adding, modifying, deleting and inquiring;
in addition, if the sender is an SP, the corresponding relation between information such as an SP access number and a service and the like and an SP name can be further determined by an operator, and in order to ensure the authenticity of the information and the uniqueness of the Chinese name, the corresponding relation between the SP access number and the SP name can be further verified by the operator.
Step 11: expanding the interface protocol inside the network side equipment and between the network side equipment and the mobile terminal, and adding a number type for indicating that the calling address is a Chinese character string;
wherein, the extended interface protocol comprises:
A. expanding a protocol between a short message center and a short message gateway, namely a short message Peer-to-Peer (SMPP), and adding a type value in a source address number type (source _ addr _ ton) field, wherein the type value is 7, which indicates that a calling address is a Chinese character string, and a character set of the calling address can be GB18030 (Chinese coding character set in information technology);
if the mapping relation table of the sender number and the sender name is maintained on the short message gateway, the SMPP protocol needs to be expanded according to the method; if the mapping relation table of the sender number and the sender name is maintained on the short message center, the SMPP protocol does not need to be expanded.
B. Expanding the protocol between the short message center and the mobile terminal;
for a GSM network: the field of the Address Type (Type-of-Address) in the source Address parameter (TP-aligning-Address) of the extended 3GPP TS 03.40 protocol SMS-DELIVER PDU message is added with a value of Type-of-number, as 7, indicating that the calling Address is a chinese character string, and the character set to which the calling Address belongs may be GB 18030.
For CDMA networks, the Encoding (Encoding) field of the extended source address parameter (SMS _ originationgdaddrss) is incremented by a value, e.g. 4, indicating that the calling address is a chinese string, and the associated character set may be GB 18030.
The specification of the Character Set of the Chinese Character string can be a Universal charcter Set (UNICODE) or other Chinese Character sets besides GB 18030; of course the extended value used to indicate the number type may take other values.
Step 12: when the network side equipment receives a short message of a sender, if a calling address is a name or a name obtained by inquiring the corresponding relation between the sender number and the sender name through the number of the calling address, the sender name is coded to the calling address and then sent to the mobile phone terminal according to an interface protocol expanded between the network side equipment and the mobile terminal;
taking the sending party as SP and the network side device as a short message gateway as an example, step 12 specifically includes the following operations, as shown in fig. 1:
step 120: the SP sends a short message to a short message gateway, the short message gateway determines a calling address, if the calling address carries an SP name, step 121 is executed, and if the calling address carries an SP number, step 122 is executed;
step 121: the short message gateway obtains the name of the SP from the short message sent by the SP, and executes step 124;
step 122: the short message gateway acquires an SP number from a short message sent by an SP;
step 123: the short message gateway inquires an SP access number and an SP name mapping table according to the SP number (namely the SP access number), acquires the SP name, and keeps the SP number unchanged if the inquiry is failed;
when inquiring the SP name corresponding to the SP access number, the SP name can be directly inquired by adopting a sender number, or the sender number and a service combination can be inquired;
step 124: the short message gateway codes the SP name to a calling address by using an expanded SMPP pair and then sends the SP name to a short message center, and the short message center codes the SP name to the calling address by using an interface protocol between the expanded short message center and the mobile phone terminal and then sends the SP name to the mobile phone terminal;
the method specifically comprises the following steps: when the short message gateway sends a message to the short message center, if the SP name is successfully acquired, the SP name is sent to the short message center, at the moment, the calling address is coded by adopting the expanded SMPP, for example, source _ addr _ ton is filled with 7, and a source address numbering scheme (source _ addr _ npi) is filled with 0, and the SP name is coded to the calling address in the message; if the short message gateway does not acquire the SP name, the type value corresponding to the number is adopted, and the SP number is coded to the calling address according to the expanded SMPP;
the short message center receives a short message of the short message gateway, and if the source _ addr _ ton is 7, the calling address is identified as the SP name and is in a character string format of a GB18030 character set; otherwise, identifying the calling address as an SP number;
the short message center sends a short message to the mobile phone terminal, if the calling address of the message is the SP name, the SP name is coded to the calling address according to an interface protocol between the expanded short message center and the mobile phone terminal by adopting the number type corresponding to the name; if the calling address of the message is SP number, the SP number is coded to the calling address by adopting the number type corresponding to the number according to the interface protocol between the expanded short message center and the mobile phone terminal, wherein,
for an extended 3GPP TS 03.40 protocol in a GSM network, setting the Type-of-number subfield of the Type-of-Address field of a TP-aligning-Address parameter as 7, setting the number-place-identification subfield as 0, and encoding the SP name to a calling Address;
for a CDMA network, the Numbering Plan (Numbering Plan) field of the SMS _ alignmentingaddress parameter of the IS-41D protocol IS set to 14, the Encoding field IS set to 4, and the SP name IS encoded to the calling address.
Step 13: after receiving the short message, the mobile phone terminal acquires the name of the sender from the calling address and displays the name; wherein,
after a mobile phone terminal of a GSM network receives a short message, if the Type-of-number subfield of the Type-of-Address field of the TP-aligning-Address parameter is 7, directly acquiring the name of a sender from an Address part and presenting the name to a user;
after the mobile phone terminal of the CDMA network receives the short message, if the number Plan of the SMS _ OriginaloriginingAddress parameter is 14 and the Encoding field is 4, the name of the sender is directly obtained from the address part and presented to the user.
If the mobile phone terminal acquires the number of the sender, according to the method in the prior art, the address book is inquired according to the number of the sender, the name of the sender is acquired and displayed, and if the name cannot be found in the address book, the number is directly displayed, as shown in fig. 2.
The embodiment is an apparatus for implementing the method in a network side device, and the apparatus includes: the device comprises a protocol conversion module and a name inquiry module, wherein:
the protocol conversion module is used for supporting an expanded interface protocol and acquiring a calling address in a received short message, if the calling address is a sender number, the sender number is sent to the name inquiry module, the sender name returned by the name inquiry module is coded to the calling address according to the expanded interface protocol and sent to the mobile phone terminal, and if the calling address is the sender name, the sender name is coded to the calling address directly according to the expanded interface protocol and sent to the mobile terminal; wherein, the expanded interface protocol adds a number type for representing the calling address as Chinese character string;
and the name query module is used for querying the maintained corresponding relation between the sender number and the sender name according to the sender number, acquiring the sender name and returning the sender name to the protocol conversion module.
The network side device is a short message gateway or a short message center, and the corresponding relation between the sender number and the sender name maintained by the name query module comprises: the corresponding relation between the Service Provider (SP) access number and the SP name, or the corresponding relation between the SP access number plus the service information and the SP name;
if the network side equipment is a short message center, the corresponding relation between the sender number and the sender name also comprises the corresponding relation between a common user number and a user name.
For a GSM network, extending an interface protocol between the network side device and the mobile terminal refers to extending a field of an Address Type (Type-of-Address) in a source Address parameter (TP-organizing-Address) of a 3GPP TS 03.40 protocol SMS-DELIVER PDU, and adding a number Type value to indicate that a calling Address is a Chinese character string; or,
for the CDMA network, extending the interface protocol between the network side device and the mobile terminal refers to extending a coding field of a source address parameter (SMS _ originationaddresss), and adding a value to indicate that the calling address is a chinese character string.
When the network side device is a short message gateway, the extended interface protocol further includes:
and expanding a protocol between the short message center and the short message gateway, namely a short message point-to-point protocol (SMPP), and adding a type value in a source address number type (source _ addr _ ton) field to indicate that the calling address is a Chinese character string.
The embodiment is a mobile phone terminal for implementing the method, and the mobile phone terminal includes:
the protocol conversion module is used for supporting an interface protocol between network side equipment of the extended short message system and the mobile phone terminal, acquiring a calling address of the received short message, decoding the calling address to obtain a sender name, and sending the sender name to the display module;
and the display module is used for displaying the name of the sender.
For a mobile phone terminal of a GSM network, after a protocol conversion module receives a short message, if the sub-field of Type-of-Address field of the TP-aligning-Address parameter is 7, decoding the calling Address to obtain the name of a sender, and sending the name of the sender to a display module;
for the mobile phone terminal of CDMA network, after the protocol conversion module receives the short message, if the number Plan of the SMS _ OriginaloriginingAddress parameter is 14 and the Encoding field is 4, the name of the sender is obtained by decoding the calling address and sent to the display module.
If the protocol conversion module decodes to obtain the sender number, the processing is carried out according to the method in the prior art.
It should be understood that the above-described specific steps are illustrative and should not be construed as limiting the scope of the invention, which is defined by the appended claims.