WO2015131478A1 - Information processing method and apparatus, im server, convergence gateway, and storage medium - Google Patents

Information processing method and apparatus, im server, convergence gateway, and storage medium Download PDF

Info

Publication number
WO2015131478A1
WO2015131478A1 PCT/CN2014/083328 CN2014083328W WO2015131478A1 WO 2015131478 A1 WO2015131478 A1 WO 2015131478A1 CN 2014083328 W CN2014083328 W CN 2014083328W WO 2015131478 A1 WO2015131478 A1 WO 2015131478A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
identifier
user
protocol
destination end
Prior art date
Application number
PCT/CN2014/083328
Other languages
French (fr)
Chinese (zh)
Inventor
王荣
赵勇
Original Assignee
中兴通讯股份有限公司
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
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015131478A1 publication Critical patent/WO2015131478A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression

Definitions

  • the present invention relates to communication information processing technologies, and in particular, to an information processing method and apparatus, an instant messaging (IM) server, a converged gateway, and a storage medium.
  • IM instant messaging
  • IM refers to a service that can send and receive Internet messages instantly, which allows two or more people to instantly transmit text messages, files, voices, etc. using the network.
  • the Internet IM system page represented by QQ and WeChat has been booming.
  • the number of WeChat users reached 300 million in early 2013, and the number of QQ users in the same period was more than WeChat. amount of users. It can be seen that IM has become one of the major social platforms in China.
  • SMS Short Message Service
  • a mobile terminal such as a mobile phone or other telecommunication terminal.
  • the number of characters that a user can receive and send a text message each time is 160 English or numeric characters. Or 70 Chinese characters.
  • SMS remains one of its most important value-added services. According to statistics, text messaging is still the mobile service with the highest penetration rate of mobile phone users in the Asia- Pacific region. Even in the development of SMS, the usage rate of SMS services in Western Europe has reached 90%.
  • More and more electronic device users communicate via the mobile Internet.
  • the proportion of IM users in China's 1.1 billion mobile phone users is large.
  • the number of WeChat users exceeds 300 million, and the penetration rate is 27.3%.
  • the main users are users under the age of 40, of which, 20 to 30 years old accounted for 74%, 30 to 40 years old 8%, 40 years old and above only 2%.
  • About 72% of mobile phone users do not use WeChat.
  • the current method is to copy the information content in the IM application, and then find the user to share in the mobile phone address book.
  • the mobile phone number is then sent to the user by text message through the mobile terminal.
  • the existing method requires the user to copy the information content in the IM application first, and some electronic devices do not support direct copying. Then, the user needs to input the information content to be shared again; even if some electronic devices support direct copying, Since the interface of electronic devices such as mobile phones is very small, it is difficult to accurately copy information content when a mobile phone with a touch screen is being copied; and some non-touch screen mobile phones are more complicated in realizing copying information content; How to make instant and fast information content sharing between IM users and SM users becomes an urgent problem to be solved.
  • the embodiments of the present invention provide an information processing method, an information processing method and device, an IM server, a converged gateway, and a storage medium, which enable instant and rapid information content sharing between an IM user and an SM user.
  • an embodiment of the present invention provides an information processing method, where the method includes:
  • the first message carries a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier;
  • Parsing the first message according to the first protocol to obtain a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier;
  • the first data content and the first identifier are encapsulated according to the protocol corresponding to the second category identifier, to obtain a second message;
  • the second message is sent according to the second identifier.
  • an embodiment of the present invention provides an information processing apparatus, where the apparatus includes a first a receiving unit, a first parsing unit, a first encapsulating unit, and a first transmitting unit, wherein:
  • the first receiving unit is configured to receive a first message encapsulated according to the first protocol, where the first message carries a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier. ;
  • the first parsing unit is configured to parse the first message according to the first protocol, to obtain a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier;
  • the first encapsulating unit is configured to: when the first category identifier is different from the second category identifier, encapsulate the first data content and the first identifier according to a protocol corresponding to the second category identifier, Get the second message;
  • the first sending unit is configured to send the second message according to the second identifier.
  • an embodiment of the present invention provides an information processing method, where the method includes:
  • the IM server receives the first IM message that the IM user encapsulates and sends to the destination end according to the IM protocol, and the first IM message carries the first data content, and the IM user uses the source end.
  • the category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
  • the IM server parses the first IM message according to the IM protocol, and obtains the category identifier of the destination end;
  • the IM server sends the first IM message when the user who holds the destination is an SM user according to the category identifier of the destination.
  • an embodiment of the present invention provides an information processing method, where the method includes:
  • the convergence gateway receives the first IM message sent by the IM server, where the first IM message carries the first data content, the IM account used by the IM user on the source end, the destination end identifier, and the category identifier of the destination end;
  • the category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
  • the converged gateway parses the first IM message according to the IM protocol, and obtains the identifier of the first data content, the IM account, and the destination end;
  • the converged gateway encapsulates the IM account and the first data content according to the SM protocol to obtain a first SM message.
  • the converged gateway sends the first SM message according to the identifier of the target end.
  • an embodiment of the present invention provides an instant messaging server, where the server includes a fourth receiving unit, a fourth parsing unit, and a fourth sending unit, where:
  • the fourth sending unit is configured to receive a first IM message that is encapsulated by the IM user and is sent to the destination end according to the IM protocol, where the first IM message carries the first data content and the IM user.
  • the category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
  • the fourth parsing unit is configured to parse the first IM message according to an IM protocol, and obtain a category identifier of the destination end;
  • the fourth sending unit is configured to: when the user holding the destination end is an SM user, according to the category identifier of the destination end, send the first IM message.
  • the embodiment of the present invention provides a convergence gateway, where the convergence gateway includes a sixth receiving unit, a sixth parsing unit, a sixth encapsulating unit, and a sixth sending unit, where:
  • the sixth receiving unit is configured to receive a first IM message sent by the IM server, where the first IM message carries the first data content, and the IM used by the IM user on the source end Account number, destination identifier, and category identifier of the destination;
  • the category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
  • the sixth parsing unit is configured to parse the first IM message according to the IM protocol, and obtain the identifier of the first data content, the IM account, and the destination end;
  • the sixth encapsulating unit is configured to encapsulate the IM account and the first data content according to an SM protocol to obtain a first SM message.
  • the sixth sending unit is configured to send the first SM message according to the identifier of the target end.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, where the computer executable instructions are used to execute the foregoing first embodiment, the third aspect, and The information processing method provided by the embodiment of the fourth aspect.
  • An information processing method and device, an instant messaging server, a converged gateway, and a storage medium provided by an embodiment of the present invention first receive a first message encapsulated according to a first protocol, where the first message carries a first data content, An identifier, a second identifier, a first category identifier, and a second category identifier; and then parsing the first message according to the first protocol to obtain a first data content, a first identifier, a second identifier, a first category identifier, and And determining, according to the protocol corresponding to the second category identifier, the first data content and the first identifier, and obtaining the second And finally sending the second message according to the second identifier; thus, enabling instant and fast information content sharing between the IM user and the SM user.
  • 1-1 is a schematic flowchart 1 of an implementation process of an information processing method according to an embodiment of the present invention
  • 1-2 is a schematic flowchart 2 of an implementation process of an information processing method according to an embodiment of the present invention.
  • FIG. 2-1 is a schematic structural diagram 1 of a component of an information processing apparatus according to Embodiment 2 of the present invention.
  • FIG. 2-2 is a second schematic diagram of an implementation flow of an information processing apparatus according to Embodiment 2 of the present invention.
  • 3-1 is a schematic flowchart 1 of an implementation process of an information processing method according to Embodiment 3 of the present invention.
  • 3-2 is a schematic flowchart 2 of an implementation process of an information processing method according to Embodiment 3 of the present invention.
  • 3-3 is a schematic flowchart of an implementation process of step 303 in Embodiment 3 of the present invention.
  • 3-4 is a schematic flowchart 3 of an implementation process of an information processing method according to Embodiment 3 of the present invention.
  • 4-1 is a schematic structural diagram 1 of a component of an information processing apparatus according to Embodiment 4 of the present invention.
  • FIG. 4-2 is a second schematic structural diagram of an information processing apparatus according to Embodiment 4 of the present invention.
  • FIG. 4-3 is a schematic structural diagram of a first encapsulating unit 403 in an information processing apparatus according to Embodiment 4 of the present invention.
  • FIG. 4-4 is a schematic flowchart 3 of an implementation flow of an information processing apparatus according to Embodiment 4 of the present invention.
  • 5-1 is a schematic flowchart 1 of an implementation process of an information processing method according to Embodiment 5 of the present invention.
  • 5-2 is a schematic flowchart 2 of an implementation process of an information processing method according to Embodiment 5 of the present invention.
  • 5-3 is a schematic flowchart 3 of an implementation process of an information processing method according to Embodiment 5 of the present invention.
  • 6-1 is a schematic flowchart 1 of an implementation process of an information processing method according to Embodiment 6 of the present invention.
  • FIG. 6-2 is a schematic flowchart of an implementation process of step 603 in an information processing method according to Embodiment 6 of the present invention.
  • 6-3 is a schematic flowchart 2 of an implementation process of an information processing method according to Embodiment 6 of the present invention.
  • FIG. 7-1 is a schematic structural diagram 1 of a composition of an instant messaging server according to Embodiment 7 of the present invention.
  • FIG. 7-2 is a second schematic structural diagram of an instant messaging server according to Embodiment 7 of the present invention.
  • FIG. 7-3 is a schematic structural diagram 3 of a composition of an instant messaging server according to Embodiment 7 of the present invention.
  • 8-1 is a first schematic structural diagram 1 of a converged gateway according to an embodiment of the present invention.
  • FIG. 8-2 is a schematic structural diagram of a sixth encapsulating unit 803 in a converged gateway according to an eighth embodiment of the present invention.
  • FIG. 8-3 is a second schematic structural diagram of a converged gateway according to Embodiment 8 of the present invention.
  • FIG. 9 is a schematic diagram of the connection between the converged gateway and the IM server and the SM gateway according to the embodiment of the present invention. Schematic diagram
  • FIG. 10 is a schematic diagram of a connection relationship between ten converged gateways and SM gateways of different operators according to an embodiment of the present invention.
  • FIG. 1-1 is a schematic flowchart of an implementation process of an information processing method according to an embodiment of the present invention. As shown in FIG. 1-1, the method includes:
  • Step 101 Receive a first message encapsulated according to the first protocol, where the first message carries a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier.
  • the first data content is data content sent by the first user to the second user;
  • the first identifier is an identity (ID) number of the first client used by the user or the first user is in the office
  • An IM account used on the first client where the second identifier is an ID number of the second client used by the second user or an IM account used by the second user on the second client;
  • the first category identifier is used to indicate whether the first user is the first protocol user or the second protocol user, and the second category identifier is used to indicate whether the second user is the first protocol user or The second protocol user;
  • the ID number is a phone number or an International Device ID of an electronic device (IMEI).
  • the client refers to a type of electronic device having a short message function, and/or capable of installing an IM application
  • the electronic device having the short message function may be a certain ordinary mobile phone, and the ordinary mobile phone is a non-smart mobile phone
  • the electronic device capable of installing the IM application may be a tablet, which does not have the function of making a call or sending an SM, and the electronic device having the short message function and capable of installing the IM application may be a smart phone.
  • step 101 user A passes the data content to be shared by the first client,
  • the first identifier, the second identifier, the first category identifier, and the second category identifier are encapsulated into a first message and sent.
  • Step 102 Parse the first message according to the first protocol, and obtain a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier.
  • Step 103 When the first category identifier is different from the second category identifier, the first data content and the first identifier are encapsulated according to the protocol corresponding to the second category identifier, to obtain a second message.
  • Step 104 Send the second message according to the second identifier.
  • Figure 1-2 is a schematic flowchart of the implementation of the information processing method according to the embodiment of the present invention. As shown in Figure 1-2, on the basis of the embodiment shown in Figure 1-1, the method further includes:
  • Step 105 When it is determined that the first category identifier is the same as the second category identifier, forward the first request message to the second client according to the second identifier.
  • the first protocol may be an SM protocol or an IM protocol; correspondingly, the second protocol is an IM protocol or an SM protocol.
  • the SM protocol includes China Mobile Peer to Peer (CMPP), China Telecom's Short Message Gateway Protocol (SMGP), and China United Communications Corporation Short Message Gateway System Interface Protocol (SGIP).
  • CMPP China Mobile Peer to Peer
  • SMGP China Telecom's Short Message Gateway Protocol
  • SGIP China United Communications Corporation Short Message Gateway System Interface Protocol
  • the IM protocol includes a transmission control protocol (TCP) and a User Datagram Protocol (UDP).
  • the sending according to the second identifier, the second message, including:
  • the sending the second message to the message bearer corresponding to the second identifier specifically: sending the second message to the SM gateway when the second identifier is an ID number;
  • the second message is sent to the IM server; it can be seen that the message bearer can be an SM gateway or an IM server.
  • the technical solution provided by the embodiment of the present invention enables instant sharing of information content between an IM user and an SM user.
  • the technical solution provided by the embodiment of the present invention can be combined with an existing SM gateway and an IM server to obtain an information processing device.
  • the SM gateway is mainly used to solve each network and each operator.
  • SP SMS interworking and service provider
  • the second message encapsulated by the second protocol so that the first message sent by the first user is forwarded to the second user. It can be seen that the device can directly receive the SM message on the one hand, and can directly receive the IM message on the other hand, both of which directly interact with the IM user or the SM.
  • the information processing device may also modify the SM gateway to obtain a device, and the device determines the SM user to share.
  • the other party is an IM user
  • the first message encapsulated by the SM protocol is converted into a second message encapsulated by the IM protocol, and then the second message is sent to the IM server, and the second message is sent by the IM server according to the second identifier.
  • the device and the IM server are linked by using the TCP/UDP protocol. For example, the device needs to send a registration message to the IM server to register on the IM server, and the registration message carries the device.
  • the IM server needs to return a verification message to authenticate the device; it can be seen that the device is linked to the IM server as a client, and The device interacts with the SM user on the one hand, and interacts with the IM server on the other hand, and sends the second message through the IM server. To the IM user.
  • IP Internet Protocol
  • the information processing device may also modify the IM server to obtain a device.
  • the device determines that the other party shared by the IM user is the SM user
  • the first message encapsulated by the IM protocol is converted into the second message encapsulated by the SM protocol, and then the second message is sent to the SM gateway, and the second gateway is configured by the SM gateway.
  • the identifier sends the second message to the second user; it should be noted that the device is linked with the SM gateway by using the SM protocol.
  • the device is similar to a service provider (SP). At this time, the SM gateway only needs to add an authentication account, and allocates an SP access number to the device, and adds a corresponding routing rule, and does not need to modify the function of the original SM gateway.
  • SP service provider
  • FIG. 2-1 is a schematic structural diagram of the information processing apparatus according to the second embodiment of the present invention.
  • the first receiving unit 201, the first parsing unit 202, the first encapsulating unit 203, and the first sending unit 204 are included, where:
  • the first receiving unit 201 is configured to receive a first message encapsulated according to the first protocol, where the first message carries a first data content, a first identifier, a second identifier, a first category identifier, and a second category. Identification
  • the first data content is data content sent by the first user to the second user;
  • the first identifier is an identity ID number of the first client used by the user, or the first user is in the first An IM account used by the client,
  • the second identifier is an ID number of the second client used by the second user, or an IM account used by the second user on the second client;
  • a category identifier is used to indicate whether the first user is the first protocol user or the second protocol user, and the second category identifier is used to indicate whether the second user is the first protocol user or the Second agreement user;
  • the first parsing unit 202 is configured to parse the first message according to the first protocol, to obtain a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier;
  • the first encapsulating unit 203 is configured to determine the first category identifier and the second category When the identifiers are different, the first data content and the first identifier are encapsulated according to the protocol corresponding to the second category identifier, to obtain a second message;
  • the first sending unit 204 is configured to send the second message according to the second identifier.
  • the first protocol may be an SM protocol or an IM protocol; correspondingly, the second protocol is an IM protocol or an SM protocol.
  • the apparatus further includes a first forwarding unit 205, based on the embodiment shown in FIG. 2-1. And determining, when the first category identifier is the same as the second category identifier, forwarding the first request message to the second client according to the second identifier.
  • the first sending unit 204 is specifically configured to send the second message to the second client according to the second identifier; or send the second message to the The message bearer corresponding to the second identifier.
  • the first receiving unit, the first parsing unit, the first encapsulating unit, and the first sending unit, and the first forwarding unit and the first sending unit in the information processing apparatus provided by the embodiment of the present invention may all be processed by the apparatus.
  • the device may be implemented by a specific logic circuit; the information processing device may be a device that combines the SM gateway and the IM server, or may be a device that is only modified by the IM server, in a specific embodiment.
  • the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA).
  • Embodiment 3 of the present invention provides an information processing method
  • FIG. 3-1 is a schematic flowchart 1 of an implementation process of an information processing method according to Embodiment 3 of the present invention. As shown in FIG. 3-1, the method includes:
  • Step 301 The receiving IM user is encapsulated and sent to the destination according to the IM protocol by using the source end.
  • the first IM message carries the first data content, the IM account used by the IM user on the source end, the destination end identifier, and the category identifier of the destination end;
  • the category identifier of the destination end is used to indicate whether the user holding the destination end is an SM user or an IM user; the destination end identifier is an ID number of the destination end or an IM account used by the user holding the destination end on the destination end;
  • the source end refers to the client that sends the message, which can be understood as the first client in the foregoing embodiment
  • the destination end refers to the destination client that receives the message, which can be understood as the second client in the above embodiment.
  • the source end identifier is a first identifier
  • the destination end identifier is a second identifier
  • the category identifier of the destination end is a second category identifier.
  • Step 302 Parse the first IM message according to the IM protocol, and obtain the first data content, the IM account, the identifier of the destination end, and the category identifier of the destination end.
  • Step 303 Determine, according to the category identifier of the destination end, that the user who holds the destination end is an SM user, and encapsulate the IM account and the first data content according to an SM protocol to obtain a first SM message.
  • Step 304 Send the first SM message according to the identifier of the target end.
  • the step 304 may be: sending the SM message to the destination end according to the identifier of the target end; or
  • the SM gateway After the sending the SM message to the SM gateway of the operator, the SM gateway sends the first SM message to the destination end according to the destination end identifier.
  • FIG. 3-2 is a schematic flowchart 2 of an implementation process of an information processing method according to Embodiment 3 of the present invention. As shown in FIG. 3-2, on the basis of the embodiment shown in FIG. 3-2, the method further includes:
  • Step 310 Determine, according to the category identifier of the destination end, that the user holding the destination end is an IM user, and forward the first IM message to the destination end according to the identifier of the target end.
  • an existing SM gateway and an IM server may be combined to obtain an information processing device; when the device determines that the other party communicating with the IM user is an SM user, That is, when it is determined that the category identifier of the destination end is not an IM user, the first IM message encapsulated by the IM protocol can be converted into the first SM message encapsulated by the SM protocol, so that the first IM message sent by the IM user is forwarded to the SM. user. It can be seen that the device can directly receive the SM message sent by the IM user, and can directly send the SM message to the SM user, thereby directly interacting with the IM user or the SM.
  • the device may be modified only by the IM server to obtain the foregoing device.
  • the device converts the first IM message encapsulated by the IM protocol into The SM message encapsulates the first SM message, and then sends the first SM message to the SM gateway, and the SM gateway sends the first SM message to the destination end according to the identifier of the destination end;
  • the device is linked with the SM gateway by using the SM protocol.
  • the device is similar to an SP.
  • the SM gateway only needs to add an authentication account, and allocates an SP access number to the device, and adds a corresponding routing rule, and does not need to modify the function of the original SM gateway.
  • the SM information includes an identifier information field of the source end, and correspondingly, as shown in FIG. 3-3, the step 303 includes:
  • Step 331 Determine, according to the category identifier of the destination end, the user who holds the destination end as the SM user, assign the corresponding sub-identity to the IM account, and write the sub-identity into the identifier of the source end of the SM message.
  • Information field
  • Step 332 Determine, according to the identifier of the target end, an operator to which the identifier of the target end belongs;
  • Step 333 Encapsulate, according to the short message protocol used by the operator, the IM account and the first data content, to obtain a first SM message.
  • the short message protocol used by the operator is at least one of the following short message protocols: CMPP, SMGP, and SGIP.
  • FIG. 3-4 is a schematic flowchart of the implementation process of the information processing method according to Embodiment 3 of the present invention. As shown in FIG. 3-4, the method further includes:
  • Step 305 Receive a second SM message that is encapsulated according to the SM protocol and is used to reply to the first SM message, where the second SM message carries the second data content and the sub-identity.
  • Step 306 Parse the second SM message according to the SM protocol, to obtain a second data content and the sub-identity.
  • Step 307 Search for a preset mapping relationship table between the IM account and the sub-identification according to the sub-identification, and obtain an IM account corresponding to the sub-ID.
  • Step 308 the destination end identifier and the second data content are encapsulated according to the IM protocol, to obtain a second IM message.
  • Step 309 Send the second IM message to the source end according to the IM account.
  • the receiving, by the SM protocol, as the second SM message that is replied to the first SM message includes:
  • the SM user when the SM user receives the first SM message, presents a normal short message on the client of the SM user, and the SM user reads the first SM. After the message, the first SM may be replied, and the replied message is the second SM message, and the second SM message is sent to the SM gateway through the SMS center of the operator, and is sent to the SM gateway by the SM network.
  • the gateway sends the message to the information processing device, or the second SM message is sent to the device directly after passing through the SMS center of the operator.
  • the foregoing apparatus After receiving the second SM message, the foregoing apparatus unpacks the second SM message according to the SM protocol, and then encapsulates the second IM message according to the requirements of the IM protocol, and then obtains the second IM message according to the mapping relationship table, and then finds the current IM account according to the mapping relationship table. IP address mapping, and then send the second IM message to the source.
  • the label is set to indicate that the second IM message originates from the SM user and is a reply of the first IM message.
  • the source client After receiving the second IM message, the source client directly unpacks the second IM message according to the IM protocol, so as to be displayed on the source end for the IM user to view.
  • the technical solution provided by the embodiment of the present invention enables the IM user to forward the information content of interest to the traditional SM user group in the form of IM information directly through the IM client, and the traditional SM user performs the SM in the form of SM.
  • Receiving; and the SM user can also reply to the IM user directly on the received SM information, and the SM user still replies in the form of SM; and the IM user still receives in the form of IM;
  • the technical solution provided by the embodiment of the present invention is The server end of the service is modified by the server, and then the IM user can directly forward the information content of interest to the ordinary SM. Therefore, the embodiment of the present invention can truly realize the instant sharing of information without delay and without borders. .
  • FIG. 4-1 is a schematic structural diagram 1 of the information processing apparatus according to the fourth embodiment of the present invention, as shown in FIG. 4-1.
  • the device includes a first receiving unit 401, a first parsing unit 402, a first encapsulating unit 403, and a first transmitting unit 404, where:
  • the first receiving unit 401 is configured to receive a first IM message that is encapsulated by the IM user and is sent to the destination end according to the IM protocol, where the first IM message carries the first data content, the IM The IM account number, the destination end identifier, and the category identifier of the destination end used by the user on the source end;
  • the category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
  • the first parsing unit 402 is configured to parse the first IM message according to the IM protocol, and obtain the first data content, the IM account, the identifier of the destination end, and the category identifier of the destination end;
  • the first encapsulating unit 403 is configured to, according to the category identifier of the destination end, determine that the user who holds the destination end is an SM user, and encapsulate the IM account and the first data content according to an SM protocol to obtain a first An SM message;
  • the first sending unit 404 is configured to send the first SM message according to the identifier of the target end.
  • the first sending unit 404 is configured to send the SM message to the destination end according to the identifier of the target end;
  • the first sending unit 404 is configured to send the SM message to the SM gateway of the operator.
  • FIG. 4-2 is a schematic structural diagram of a fourth embodiment of the information processing apparatus according to Embodiment 4 of the present invention.
  • the apparatus further includes a first forwarding unit 410. And determining, according to the category identifier of the destination end, that the user holding the destination end is an IM user, and forwarding the first IM message to the destination end according to the identifier of the target end.
  • the SM information includes an identifier information field of the source end.
  • the first encapsulating unit 403 includes a first allocating module 431, a first writing module 432, and a first A determining module 433 and a first encapsulating module 434, wherein:
  • the first allocation module 431 is configured to allocate a corresponding sub-ID to the IM account.
  • the first writing module 432 is configured to write the sub-identifier into an identifier information field of a source end of the SM message;
  • the first determining module 433 is configured to determine, according to the identifier of the target end, an operator to which the identifier of the target end belongs;
  • the first encapsulating module 434 is configured to encapsulate, according to the short message protocol used by the operator, the IM account and the first data content, to obtain a first SM message.
  • the short message protocol used by the operator is at least one of the following short message protocols: CMPP, SMGP, and SGIP.
  • FIG. 4-4 is a schematic flowchart 3 of an implementation process of an information processing apparatus according to Embodiment 4 of the present invention.
  • the apparatus further includes The third receiving unit 405, the third parsing unit 406, the first searching unit 407, the third encapsulating unit 408, and the third transmitting unit 409, wherein:
  • the third receiving unit 405 is configured to receive a second SM message encapsulated according to the SM protocol and replied to the first SM message, where the second SM message carries the second data content and the sub-identity;
  • the third parsing unit 406 is configured to parse the second SM message according to the SM protocol, to obtain the second data content and the sub-identifier;
  • the first searching unit 407 is configured to: according to the sub-identification, search for a preset mapping relationship table between the IM account and the sub-identity, and obtain an IM account corresponding to the sub-ID;
  • the third encapsulating unit 408 is configured to encapsulate the destination end identifier and the second data content according to an IM protocol to obtain a second IM message.
  • the third sending unit 409 is configured to send the second IM message to the source end according to the IM account.
  • the third receiving unit 409 is configured to receive, from the destination end, a second SM message encapsulated according to the SM protocol and replied to the first SM message; or
  • the third receiving unit is configured to receive, from the SM gateway of the operator, a second SM message encapsulated according to the SM protocol and replied to the first SM message.
  • the first receiving unit, the first analyzing unit, the first encapsulating unit, the first sending unit, and the like, and the modules included in each unit in the information processing apparatus provided in Embodiment 4 of the present invention may pass the
  • the processor in the device is implemented; of course, it can also be implemented by a specific logic circuit; the information processing device may be a device that combines the SM gateway and the IM server, or may be a device obtained by modifying only the IM server.
  • the processor may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA).
  • FIG. 5-1 is a schematic flowchart of the implementation of the information processing method according to the fifth embodiment of the present invention. As shown in FIG. 5-1, the method includes:
  • Step 501 The IM server receives, by the source end, the first IM message that is encapsulated by the source end and sent to the destination end according to the IM protocol.
  • the first IM message carries the first data content, the IM account used by the IM user on the source end, the destination end identifier, and the category identifier of the destination end;
  • the category identifier of the destination end is used to indicate whether the user holding the destination end is an SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end;
  • Step 502 The IM server parses the first IM message according to the IM protocol, and obtains a category identifier of the destination end.
  • Step 503 The IM server sends the first IM message when the user who holds the destination end is an SM user according to the category identifier of the destination end.
  • the step 503 may specifically be: sending the SM message to the destination end; or
  • Figure 5-2 is a schematic flowchart 2 of the implementation of the information processing method in the fifth embodiment of the present invention. As shown in Figure 5-2, the method further includes:
  • Step 504 The IM server determines, according to the category identifier of the destination end, that the user holding the destination end is an IM user, and forwards the first IM message to the destination end according to the identifier of the target end.
  • Figure 5-3 is a schematic flowchart 3 of the implementation of the information processing method in the fifth embodiment of the present invention. As shown in Figure 5-3, the method further includes:
  • Step 505 The IM server receives, according to the SM protocol, a second IM message that is replied to the first IM message, where the second IM message carries the destination end identifier, the IM account, and the second data content.
  • Step 506 Send the second IM message to the IM account.
  • the IM server may perform a slight modification on the existing IM server.
  • the IM server determines that the other party shared by the IM user is the SM user, the IM message is sent. And receiving the second IM message as the reply to the first IM message, and sending the second IM message to the source end.
  • the technical solution provided by the embodiment of the present invention enables the IM user to instantly share the information content with the SM user, and enables the IM user to receive the message that the SM user replies in the SM form.
  • the sixth embodiment of the present invention provides an information processing method, which is applied to a converged gateway, where the converged gateway is capable of merging the IM server and the SM gateway, so that the IM user can quickly and automatically send the SM user.
  • Figure 6-1 is a schematic flowchart 1 of an implementation process of an information processing method according to Embodiment 6 of the present invention. As shown in Figure 6-1, the method includes:
  • Step 601 The convergence gateway receives the first IM message sent by the IM server.
  • the first IM message carries the first data content, the IM account used by the IM user on the source end, the destination end identifier, and the category identifier of the destination end;
  • the category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
  • Step 602 The converged gateway parses the first IM message according to the IM protocol, and obtains the identifiers of the first data content, the IM account, and the destination end.
  • Step 603 The convergence gateway encapsulates the IM account and the first data content according to the SM protocol to obtain a first SM message.
  • Step 604 The converged gateway sends the first SM message according to the identifier of the target end.
  • the step 604 includes: the converged gateway sends the first SM message to the destination end according to the identifier of the target end; or
  • the step 604 includes: the converged gateway sends the first SM message to the SM gateway of the operator.
  • the method further includes: the converged gateway registers and authenticates to the IM server by using an IM protocol as a client.
  • the SM information includes an identifier information field of the source end.
  • the step 603 includes:
  • Step 631 The converged gateway allocates a corresponding sub-identity to the IM account, and writes the sub-identity into an identifier information field of the source end of the SM message.
  • Step 632 The convergence gateway determines, according to the identifier of the target end, an operator to which the identifier of the target end belongs.
  • Step 633 The converged gateway encapsulates the IM account and the first data content according to the short message protocol used by the operator, to obtain a first SM message.
  • FIG. 6 is a schematic flowchart of the implementation process of the information processing method according to Embodiment 6 of the present invention. As shown in FIG. 6-3, the method includes:
  • Step 605 The converged gateway receives the encapsulation according to the SM protocol and responds to the first SM cancellation. a second SM message, where the second SM message carries the second data content and the sub-identity;
  • Step 606 The converged gateway parses the second SM message according to the SM protocol, to obtain the second data content and the sub-identity.
  • Step 607 The converged gateway searches for a preset mapping relationship table between the IM account and the sub-identity according to the sub-identification, and obtains an IM account corresponding to the sub-ID.
  • Step 608 The converged gateway encapsulates the destination end identifier, the IM account, and the second data content according to an IM protocol to obtain a second IM message.
  • Step 609 The converged gateway sends the second IM message to the IM server, where the second IM message is used as a reply to the first IM message.
  • the converged gateway can receive the IM message sent by the IM server, convert the first IM message encapsulated by the IM protocol into the first SM message encapsulated by the SM protocol, and then send the first SM message to the The SM gateway sends the first SM message to the destination end according to the identifier of the destination end by the SM gateway.
  • the fusion gateway and the SM gateway use the SM protocol for linking.
  • the device is similar to the one. SP. At this time, the SM gateway only needs to add an authentication account, and allocates an SP access number to the device, and adds a corresponding routing rule, and does not need to modify the function of the original SM gateway.
  • the converged gateway and the IM server are linked by using the TCP/UDP protocol.
  • the converged gateway needs to send a registration message to the IM server to register on the IM server, where the registration message carries the IP address, IP port, etc. of the device. Information; the IM server needs to return a verification message to authenticate the converged gateway; it can be seen that the converged gateway is linked with the IM server as the client.
  • FIG. 7-1 is a schematic structural diagram of a composition of an instant messaging server according to Embodiment 7 of the present invention.
  • the instant messaging server is provided.
  • the fourth receiving unit 701, the fourth parsing unit 702, and the fourth sending list are included.
  • the fourth sending unit 701 is configured to receive a first IM message that is encapsulated by the IM user and is sent to the destination end according to the IM protocol, where the first IM message carries the first data content, the IM The IM account number, the destination end identifier, and the category identifier of the destination end used by the user on the source end;
  • the category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
  • the fourth parsing unit 702 is configured to parse the first IM message according to the IM protocol, and obtain a category identifier of the destination end;
  • the fourth sending unit 703 is configured to: when the user holding the destination end is an SM user, according to the category identifier of the destination end, send the first IM message.
  • the fourth sending unit 703 may be specifically configured to send the SM message to the destination end; or
  • the fourth sending unit 703 may be specifically configured to send the SM message to the SM gateway of the SM operator.
  • FIG. 7-2 is a schematic structural diagram of a composition structure of an instant messaging server according to Embodiment 7 of the present invention.
  • the instant messaging server further includes a third forwarding.
  • the unit 704 is configured to: according to the category identifier of the destination end, determine that the user holding the destination end is an IM user, and forward the first IM message to the destination end according to the identifier of the target end.
  • FIG. 7-3 is a schematic structural diagram 3 of a composition of an instant messaging server according to Embodiment 7 of the present invention.
  • the instant messaging server 700 further includes a fifth.
  • the fifth receiving unit 705 is configured to receive the encapsulation according to the SM protocol and as a reply a second IM message of the first IM message, where the second IM message carries the destination identifier, the IM account, and the second data content;
  • the fifth sending unit 706 is configured to send the second IM message to the IM account.
  • the fourth receiving unit, the fourth analyzing unit, the fourth sending unit, and the like in the instant messaging server provided in the seventh embodiment of the present invention, and the modules included in each unit can pass the processor in the instant messaging server.
  • the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or field programmable Gate array (FPGA), etc.
  • FIG. 8-1 is a schematic structural diagram 1 of a converged gateway according to Embodiment 8 of the present invention.
  • the converged gateway 800 includes a receiving unit 801, a sixth parsing unit 802, a sixth encapsulating unit 803, and a sixth transmitting unit 804, wherein:
  • the sixth receiving unit 801 is configured to receive a first IM message sent by the IM server, where the first IM message carries the first data content, and the IM account used by the IM user on the source end , the destination end identifier and the category identifier of the destination end;
  • the category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
  • the sixth parsing unit 802 is configured to parse the first IM message according to the IM protocol, and obtain the identifiers of the first data content, the IM account, and the destination end;
  • the sixth encapsulating unit 803 is configured to encapsulate the IM account and the first data content according to an SM protocol to obtain a first SM message.
  • the sixth sending unit 804 is configured to: the first SM according to the identifier of the target end The message was sent.
  • the sixth sending unit 804 is configured to send, by the fused gateway, the first SM message to the destination end according to the identifier of the target end; or
  • the sixth sending unit 804 is configured to send, by the convergence gateway, the first SM message to the SM gateway of the operator.
  • the converged gateway further includes a registration unit configured to register and authenticate to the IM server as an identity of the client by using an IM protocol.
  • the SM information includes an identifier information field of the source end.
  • the sixth encapsulating unit 803 includes a second allocation module 831. a second write module 832, a second determination module 833, and a second encapsulation module 834, wherein:
  • the second allocation module 831 is configured to allocate a corresponding sub-ID to the IM account.
  • the second writing module 832 is configured to write the sub-identifier into an identifier information field of a source end of the SM message
  • the second determining module 833 is configured to determine, according to the identifier of the target end, an operator to which the identifier of the target end belongs;
  • the second encapsulating module 834 is configured to encapsulate, according to the short message protocol used by the operator, the IM account and the first data content, to obtain a first SM message.
  • FIG. 8-3 is a schematic structural diagram 2 of a converged gateway according to Embodiment 8 of the present invention.
  • the converged gateway 800 further includes a seventh receiving.
  • the seventh receiving unit 805 is configured to receive a second SM message that is encapsulated according to the SM protocol and is used to reply to the first SM message, where the second SM message carries the second data content and the sub-identifier;
  • the seventh parsing unit 806 is configured to parse the second SM message according to the SM protocol. Obtaining a second data content and the sub-identification;
  • the second searching unit 807 is configured to: according to the sub-identification, search for a preset mapping relationship table between the IM account and the sub-identity, and obtain an IM account corresponding to the sub-ID;
  • the seventh encapsulating unit 808 is configured to encapsulate the destination end identifier, the IM account, and the second data content according to an IM protocol to obtain a second IM message.
  • the seventh sending unit 809 is configured to send the second IM message to the IM server, where the second IM message is used as a reply to the first IM message.
  • the processor is implemented; of course, it can also be implemented by a specific logic circuit; in the process of a specific embodiment, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or Field programmable gate array (FPGA), etc.
  • An embodiment of the present invention provides an information processing method.
  • an interworking between a traditional telecommunication network and a mobile Internet application is implemented by adding a converged gateway 903 between the IM server 901 and the SM gateway 902 of the operator.
  • the converged gateway 903 is connected to the IM server 901 by using the TCP/UDP protocol.
  • the converged gateway 903 is similar to a client, but the function is more powerful.
  • the converged gateway 903 is connected to the short message gateway 902 by using a short message protocol. For the short message gateway, the converged gateway is similar to an SP.
  • the IM server 901 determines whether the destination user of the IM message has opened the IM service; if the destination user activates the IM service, directly forwards the IM message to the corresponding IM account of the destination user; If the destination user does not open the IM service, the IM message is sent to the converged gateway 903, and the IM message is sent to the destination user by the converged SMS gateway 902.
  • Step 911 The converged gateway is linked by using a TCP/UPD protocol and a WeChat server, and the converged gateway is similar to a WeChat client, and establishes a link with the WeChat server through registration and authentication;
  • Step 912 The convergence gateway establishes a link between the SP identity and the SMS gateway through the short message protocol. At this time, the short message gateway only needs to add an authentication account, allocate an SP access number, and add a corresponding routing rule, and does not need to perform the function of the short message gateway. Carry out transformation;
  • Step 913 Modify the WeChat application of the WeChat client: when sending the message, the user can select the address book in the WeChat application, or select the user in the mobile phone address book.
  • the client sends the WeChat message to the WeChat server
  • the WeChat The message needs to carry a category identifier, which is used to indicate whether the destination user is a WeChat user, that is, whether the source user is the destination user selected from the address book in the WeChat application or the destination user selected from the mobile phone address book;
  • Step 914 When the WeChat server receives the WeChat message sent by the WeChat client, according to the category identifier reported by the WeChat client, if the category identifier indicates that the destination user is a WeChat user, the forwarding mechanism remains unchanged and is directly forwarded to the WeChat domain.
  • Step 915 After receiving the WeChat message sent by the WeChat server, the converged gateway parses the WeChat message according to the WeChat protocol, and the converged gateway determines the operator used by the destination user according to the destination ID number, and then according to the SM protocol of the used carrier. Encapsulating the parsed WeChat message to obtain an SM message;
  • the destination ID number it is judged whether the operator used by the destination user is China Mobile Communications Corporation, China Telecom Group Corporation or China United Communications Group Corporation. It is assumed that after the judgment, the operator used is China Mobile Communications Corporation, and then Encapsulated according to the CMPP used by China Mobile Communications Corporation, and then forwarded to the SMS gateway of China Mobile Communications Corporation according to the route;
  • Step 916 After receiving the message of the converged gateway, the SMS gateway performs the storage and forwarding to the SMS center to which the destination user belongs, and then sends the message center to the destination user.
  • Step 917 When the destination user receives the SM message, the destination user displays an ordinary short message; the target user can reply to the SM message after reading. The replies to the SM message pass through the SMS center, then go up to the SMS gateway and then route to the converged gateway;
  • Step 918 After receiving the SM message replied by the SM domain, the converged gateway unpacks the replied SM message, and then according to the TCP/UDP protocol request packet, obtains a WeChat message, and then sends the WeChat message to the WeChat server, and simultaneously sets a category identifier, which is used to indicate that the WeChat message is originated from the SM user, and indicates that the message is a reply to the previously sent WeChat message;
  • Step 919 After receiving the WeChat message sent by the converged gateway, the WeChat server searches for the IP address mapping of the current WeChat sender according to the locally saved mobile phone number, or the IMEI or the WeChat account, and then sends the IP address mapping to the WeChat client. .
  • Step 920 When the WeChat client receives the WeChat message, the WeChat message is directly unpacked by TCP/UDP, and is displayed on the source end.
  • the embodiment of the invention provides an information processing method, which can implement the text content forwarding on the IM system to the traditional SM user, and the method includes:
  • Step 1001 The converged gateway starts, and logs in to the IM server by using a login in message. At this time, the IM server learns the IP address and port information of the converged gateway, and establishes a TCP/UPD link.
  • Step 1002 The converged gateway establishes a link with the SMS gateway of each operator by using the SP through the short message protocol;
  • the client will pass the CMPP connect message and the login response (connect resp, connect response).
  • the message establishes a link with the SM gateway;
  • a login (SMGP login) message and a login resp message are used to establish a link with the SM gateway;
  • the client establishes a link with the SM gateway through a login (SGIP bind) message and a login resp message;
  • the mobile SM gateway and the telecom SM gateway belong to the server for the converged gateway; and the mutual communication between the SM gateway and the converged gateway is a client, so the Unicom SM gateway and the converged gateway mutually send login messages and logins. Response message; the relationship between the Unicom SM Gateway, the Telecom SM Gateway, and the Mobile SM Gateway and the Converged Gateway is due to the different protocols used.
  • the type of the login message to be sent is determined according to the type of the protocol used by the carrier to complete the login on the SM gateway of the operator. The same is true for the converged gateway to register with the SM gateway. The type of protocol used to determine the registration message sent.
  • Step 1003 The IM client starts, logs in to the IM server through a login in message, and establishes a TCP/UDP link between the IM client and the IM server.
  • the IM server saves information such as the IM account number, the mobile phone number, and the IP address of all successfully registered clients, that is, the phone number (or IMEI) and the IP address mapping list corresponding to the IM account.
  • Step 1004 When the IM user sees interesting information and wants to share with a friend, the user in the IM address book is selected for sending, and the destination user is marked with the category identifier of the IM user at the destination address; when the IM address book does not have a search When you are a friend, you can select it through the phone address book, and then click Send. At this time, the SM user's category ID is marked on the destination address;
  • the message sent by the source to the IM server must include at least the following: the destination identifier, the category identifier of the destination, the data content to be shared, and the source identifier.
  • Step 1005 When receiving the IM message sent by the source, the IM server first parses the destination class identifier, determines the attribute of the destination user, and determines the destination user according to the category identifier of the destination end. If the IM user is an IM user, the IP address mapped by the destination user IM account is directly sent through the TCP/UDP link, and the IM message is sent; if the destination user is determined to be the SM user according to the category identifier of the destination end, the IP address is directly forwarded to the converged gateway;
  • the IM message sent by the IM server to the destination end needs to include the following information: the destination identifier, the data content, and the source identifier;
  • Step 1006 When receiving the IM message sent by the IM server, the converged gateway parses the IM message according to the IM protocol, and extracts the destination end identifier.
  • the converged gateway needs to save a whole network segment table containing all operators. For example, in order to distinguish the three major operators in China, it is necessary to save the entire network number segment table of the three major operators in the converged gateway; according to the extracted destination end The longest matching operation is performed in the identifier to the number segment table. If it is a telecommunication number, the message is encapsulated according to the SMGP submit message; if it is a Unicom number, the message is encapsulated according to the SGIP submit message; if it is a mobile number, the message is sent. Encapsulation according to the CMPP submit message.
  • the converged gateway expands on the basic access number assigned by the SM gateway, and then assigns a unique sub-access number to the IM account, when the SM message is encapsulated, and The sub-access number corresponding to the IM account of the source is filled in the source number field.
  • the converged gateway needs to save a mapping table of the sub-access number and the IM account.
  • the mapping table includes at least the following content: the only one allocated by the converged gateway. Sub-access number, IM account number;
  • the destination user can choose to reply to the received message, and can also choose not to reply to the received message. Therefore, the sub-access number mapping relationship saved in the converged gateway can be set to an expiration date, which can be, for example, 72 hours. For mapped records that have been saved for more than 72 hours, delete them directly.
  • a signature may be added after the content of the short message, and the IM account at the source end is added to the SM message by signature.
  • Step 1007 since the converged gateway establishes a chain with the SM gateway by the SP identity, the SM gateway is The account needs to be opened to the converged gateway, and routes are configured.
  • the SM gateway After receiving the SM message sent by the converged gateway, the SM gateway obtains the route through the destination end identifier, and after processing, the SM message is sent to the SMS center to which the destination user belongs by using the submit message.
  • Step 1008 After receiving the SM message, the SMS center of the operator sends the SM message to the destination end through the wireless side interface.
  • Step 1009 After the target user views the SM message, if the reply is selected, the content edited by the destination user is returned to the associated short message center by the wireless side in the manner of SM;
  • Step 1010 After receiving the SM message sent by the SM user, the short message center forwards the message to the SM gateway by using a deliver message.
  • Step 1011 After receiving the SM message, the SM gateway searches for a route according to the longest matching manner of the source end identifier carried in the SM message, and the route refers to the converged gateway.
  • the SMGP deliver message is sent to the converged gateway
  • the SGIP submit message is sent to the converged gateway
  • the CMPP deliver message is sent to the converged gateway.
  • Step 1012 After receiving the SM message of the SM gateway, the converged gateway searches the sub-access number table according to the source identifier, and finds the IM account corresponding to the sub-access number, and then sends the IM message to the IM message according to the IM encapsulation.
  • IM server After receiving the SM message of the SM gateway, the converged gateway searches the sub-access number table according to the source identifier, and finds the IM account corresponding to the sub-access number, and then sends the IM message to the IM message according to the IM encapsulation.
  • IM server After receiving the SM message of the SM gateway, the converged gateway searches the sub-access number table according to the source identifier, and finds the IM account corresponding to the sub-access number, and then sends the IM message to the IM message according to the IM encapsulation.
  • Step 1013 After receiving the IM message, the IM server directly searches for the corresponding IP address according to the source identifier (in this case, an IM account), and directly forwards the IM message to the corresponding client.
  • the source identifier in this case, an IM account
  • Step 1014 at this time, the client user can see the message content replied by the SMS user on the interface.
  • the technical solution provided by the embodiment of the present invention is a method for an IM user to directly forward text content to an ordinary SM user when using an IM tool or an IM application.
  • the technical solutions provided by the foregoing Embodiments 5 to 10 of the present invention only need to slightly modify the IM application and the IM server; and add a converged gateway with protocol conversion and routing functions between the IM server and the SM gateway, where
  • the modification of the IM application means that the user can add the destination user from the address book through the IM application; the modification of the IM server means that when the IM server determines that the destination user is not an IM user, directly forwards the received IM message to the fusion.
  • the technical solutions provided in the foregoing embodiments 5 to 10 have minimal changes to the existing IM domain and the devices in the SM domain, and thus have the characteristics of low cost and easy implementation.
  • the above information processing method is implemented in the form of a software function module and sold or used as a stand-alone product, it may also be stored in a computer readable storage medium.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the information processing method provided in the embodiments of the present invention.
  • the first message encapsulated according to the first protocol is received;
  • the protocol parses the first message, and obtains a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier; and when determining that the first category identifier is different from the second category identifier,
  • the protocol corresponding to the second category identifier encapsulates the first data content and the first identifier to obtain a second message; the second message is sent according to the second identifier; and the technical solution of the embodiment of the present invention is adopted. It enables instant and fast information content sharing between IM users and SM users.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed are an information processing method and apparatus, an IM server, a convergence gateway, and a storage medium. The method comprises: receiving a first message encapsulated according to a first protocol, the first message carrying first data content, a first identifier, a second identifier, a first class identifier and a second class identifier; parsing the first message according to the first protocol, so as to obtain the first data content, the first identifier, the second identifier, the first class identifier and the second class identifier; when it is determined that the first class identifier is different from the second class identifier, encapsulating the first data content and the first identifier according to a protocol corresponding to the second class identifier, so as to obtain a second message; and sending the second message according to the second identifier.

Description

信息处理方法及装置、IM服务器、融合网关、存储介质Information processing method and device, IM server, converged gateway, storage medium 技术领域Technical field
本发明涉及通信信息处理技术,尤其涉及一种信息处理方法及装置、即时通讯(IM,Instant Messaging)服务器、融合网关、存储介质。The present invention relates to communication information processing technologies, and in particular, to an information processing method and apparatus, an instant messaging (IM) server, a converged gateway, and a storage medium.
背景技术Background technique
IM是指一种能够即时发送和接收互联网消息的业务,该业务允许两人或多人使用网络即时地传递文字讯息、文件、语音等。近几年随着电子设备如手机、平板电脑等的发展,以QQ、微信为代表的互联网IM系统页得到蓬勃发展,例如,2013年初微信用户数量达到3亿,同期QQ用户数量更多于微信用户数量。可见,IM已经成为国内主要的社交平台之一。IM refers to a service that can send and receive Internet messages instantly, which allows two or more people to instantly transmit text messages, files, voices, etc. using the network. In recent years, with the development of electronic devices such as mobile phones and tablet computers, the Internet IM system page represented by QQ and WeChat has been booming. For example, the number of WeChat users reached 300 million in early 2013, and the number of QQ users in the same period was more than WeChat. amount of users. It can be seen that IM has become one of the major social platforms in China.
短信服务(SMS,Short Message Service)是用户通过移动终端如手机或其他电信终端直接发送或接收的文字或数字信息,用户每次能接收和发送短信的字符数,是160个英文或数字字符,或者70个中文字符。尽管移动通信市场发展飞速,不过SMS仍然是其最重要的一项附加价值服务。据统计,文字短信仍是亚太地区手机用户普及率最高的一项移动服务,即使在短信的发展中市场,例如西欧短信服务的使用率也达到了90%。根据数据显示,2012年中国移动电话用户达到11亿户,其中短信业务用户达到7.6亿户,渗透率为68.8%,全国移动短信发送量达到8973.1亿条。可见,短信(SM,Short Message)用户群之庞大。SMS (Short Message Service) is a text or digital message that a user directly sends or receives through a mobile terminal such as a mobile phone or other telecommunication terminal. The number of characters that a user can receive and send a text message each time is 160 English or numeric characters. Or 70 Chinese characters. Despite the rapid growth of the mobile communications market, SMS remains one of its most important value-added services. According to statistics, text messaging is still the mobile service with the highest penetration rate of mobile phone users in the Asia-Pacific region. Even in the development of SMS, the usage rate of SMS services in Western Europe has reached 90%. According to the data, in 2012, China's mobile phone users reached 1.1 billion, of which SMS users reached 760 million, with a penetration rate of 68.8%, and the number of mobile SMS messages sent nationwide reached 897.31 billion. It can be seen that the SMS (Short Message) user group is huge.
越来越多的电子设备用户如手机用户通过移动互联网进行沟通,例如,在中国11亿手机用户中IM用户的比例很大。以微信为例,微信用户超过3亿户,渗透率为27.3%。虽然微信用户数量如此之庞大,但主要用户为40岁以下用户,其中,20到30岁占比74%,30到40岁8%,40岁以上仅2%。 由于手机用户中约72%人不使用微信。如果要将IM中的信息分享给未使用同类互联网IM应用的用户,以分享该条IM信息的内容;当前方法是复制IM应用中的信息内容,再在手机通讯录中查找要分享的用户的手机号,然后通过手机终端以短信的方式进行发送给该用户。More and more electronic device users, such as mobile phone users, communicate via the mobile Internet. For example, the proportion of IM users in China's 1.1 billion mobile phone users is large. Take WeChat as an example, the number of WeChat users exceeds 300 million, and the penetration rate is 27.3%. Although the number of WeChat users is so large, the main users are users under the age of 40, of which, 20 to 30 years old accounted for 74%, 30 to 40 years old 8%, 40 years old and above only 2%. About 72% of mobile phone users do not use WeChat. If you want to share the information in the IM to users who do not use the same kind of Internet IM application, to share the content of the IM information; the current method is to copy the information content in the IM application, and then find the user to share in the mobile phone address book. The mobile phone number is then sent to the user by text message through the mobile terminal.
现有的方法,需要用户先复制IM应用中的信息内容,而有些电子设备是不支持直接复制的,那么,需要用户自己再输入一遍要分享的信息内容;即使有些电子设备支持直接复制,但是由于手机等电子设备的界面非常小,而现在带有触摸屏的手机在进行复制时,难以实现精确的复制信息内容;而一些非触摸屏的手机,在实现复制信息内容,操作更为繁复;可见,如何使IM用户与SM用户之间进行即时快速地信息内容分享,成为亟需解决的问题。The existing method requires the user to copy the information content in the IM application first, and some electronic devices do not support direct copying. Then, the user needs to input the information content to be shared again; even if some electronic devices support direct copying, Since the interface of electronic devices such as mobile phones is very small, it is difficult to accurately copy information content when a mobile phone with a touch screen is being copied; and some non-touch screen mobile phones are more complicated in realizing copying information content; How to make instant and fast information content sharing between IM users and SM users becomes an urgent problem to be solved.
发明内容Summary of the invention
有鉴于此,本发明实施例提供一种信息处理方法及信息处理方法及装置、IM服务器、融合网关、存储介质,能够使IM用户与SM用户之间进行即时快速地信息内容分享。In view of this, the embodiments of the present invention provide an information processing method, an information processing method and device, an IM server, a converged gateway, and a storage medium, which enable instant and rapid information content sharing between an IM user and an SM user.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
第一方面,本发明实施例提供一种信息处理方法,所述方法包括:In a first aspect, an embodiment of the present invention provides an information processing method, where the method includes:
接收按照第一协议封装的第一消息,所述第一消息中携带有第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;Receiving a first message encapsulated according to the first protocol, where the first message carries a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier;
按照所述第一协议解析所述第一消息,得到第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;Parsing the first message according to the first protocol, to obtain a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier;
确定所述第一类别标识与所述第二类别标识不同时,按照所述第二类别标识所对应的协议将所述第一数据内容、第一标识封装,得到第二消息;When the first category identifier is different from the second category identifier, the first data content and the first identifier are encapsulated according to the protocol corresponding to the second category identifier, to obtain a second message;
按照所述第二标识将所述第二消息发出。The second message is sent according to the second identifier.
第二方面,本发明实施例提供一种信息处理装置,所述装置包括第一 接收单元、第一解析单元、第一封装单元和第一发送单元,其中:In a second aspect, an embodiment of the present invention provides an information processing apparatus, where the apparatus includes a first a receiving unit, a first parsing unit, a first encapsulating unit, and a first transmitting unit, wherein:
所述第一接收单元,配置为接收按照第一协议封装的第一消息,所述第一消息中携带有第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;The first receiving unit is configured to receive a first message encapsulated according to the first protocol, where the first message carries a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier. ;
所述第一解析单元,配置为按照所述第一协议解析所述第一消息,得到第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;The first parsing unit is configured to parse the first message according to the first protocol, to obtain a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier;
所述第一封装单元,配置为确定所述第一类别标识与所述第二类别标识不同时,按照所述第二类别标识所对应的协议将所述第一数据内容、第一标识封装,得到第二消息;The first encapsulating unit is configured to: when the first category identifier is different from the second category identifier, encapsulate the first data content and the first identifier according to a protocol corresponding to the second category identifier, Get the second message;
所述第一发送单元,配置为按照所述第二标识将所述第二消息发出。The first sending unit is configured to send the second message according to the second identifier.
第三方面,本发明实施例提供一种信息处理方法,所述方法包括:In a third aspect, an embodiment of the present invention provides an information processing method, where the method includes:
IM服务器接收IM用户通过源端、按照所述IM协议封装并发送给目的端的第一IM消息,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识;The IM server receives the first IM message that the IM user encapsulates and sends to the destination end according to the IM protocol, and the first IM message carries the first data content, and the IM user uses the source end. IM account number, destination end identifier, and category identifier of the destination end;
其中,所述目的端的类别标识用于表明持有目的端的用户为短信SM用户还是IM用户;目的端标识为目的端的身份识别ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
IM服务器按照IM协议解析所述第一IM消息,得到所述目的端的类别标识;The IM server parses the first IM message according to the IM protocol, and obtains the category identifier of the destination end;
IM服务器根据所述目的端的类别标识确定持有所述目的端的用户为SM用户时,将所述第一IM消息发出。The IM server sends the first IM message when the user who holds the destination is an SM user according to the category identifier of the destination.
第四方面,本发明实施例提供一种信息处理方法,所述方法包括:In a fourth aspect, an embodiment of the present invention provides an information processing method, where the method includes:
融合网关接收IM服务器发送的第一IM消息,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识; The convergence gateway receives the first IM message sent by the IM server, where the first IM message carries the first data content, the IM account used by the IM user on the source end, the destination end identifier, and the category identifier of the destination end;
其中,所述目的端的类别标识用于表明持有目的端的用户为短信SM用户还是IM用户;目的端标识为目的端的身份识别ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
融合网关按照IM协议解析所述第一IM消息,得到所述第一数据内容、所述IM账号和目的端的标识;The converged gateway parses the first IM message according to the IM protocol, and obtains the identifier of the first data content, the IM account, and the destination end;
融合网关将所述IM账号和所述第一数据内容按照SM协议进行封装,得到第一SM消息;The converged gateway encapsulates the IM account and the first data content according to the SM protocol to obtain a first SM message.
融合网关按照所述目标端的标识将所述第一SM消息发出。The converged gateway sends the first SM message according to the identifier of the target end.
第五方面,本发明实施例提供一种即时通讯服务器,所述服务器包括第四接收单元、第四解析单元和第四发送单元,其中:In a fifth aspect, an embodiment of the present invention provides an instant messaging server, where the server includes a fourth receiving unit, a fourth parsing unit, and a fourth sending unit, where:
所述第四发送单元,配置为接收IM用户通过源端、按照所述IM协议封装并发送给目的端的第一IM消息,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识;The fourth sending unit is configured to receive a first IM message that is encapsulated by the IM user and is sent to the destination end according to the IM protocol, where the first IM message carries the first data content and the IM user. The IM account number, the destination end identifier, and the category identifier of the destination end used on the source end;
其中,所述目的端的类别标识用于表明持有目的端的用户为短信SM用户还是IM用户;目的端标识为目的端的身份识别ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
所述第四解析单元,配置为按照IM协议解析所述第一IM消息,得到所述目的端的类别标识;The fourth parsing unit is configured to parse the first IM message according to an IM protocol, and obtain a category identifier of the destination end;
所述第四发送单元,配置为根据所述目的端的类别标识确定持有所述目的端的用户为SM用户时,将所述第一IM消息发出。The fourth sending unit is configured to: when the user holding the destination end is an SM user, according to the category identifier of the destination end, send the first IM message.
第六方面,本发明实施例提供一种融合网关,所述融合网关包括第六接收单元、第六解析单元、第六封装单元和第六发送单元,其中:In a sixth aspect, the embodiment of the present invention provides a convergence gateway, where the convergence gateway includes a sixth receiving unit, a sixth parsing unit, a sixth encapsulating unit, and a sixth sending unit, where:
所述第六接收单元,配置为接收IM服务器发送的第一IM消息,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM 账号、目的端标识和目的端的类别标识;The sixth receiving unit is configured to receive a first IM message sent by the IM server, where the first IM message carries the first data content, and the IM used by the IM user on the source end Account number, destination identifier, and category identifier of the destination;
其中,所述目的端的类别标识用于表明持有目的端的用户为短信SM用户还是IM用户;目的端标识为目的端的身份识别ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
所述第六解析单元,配置为按照IM协议解析所述第一IM消息,得到所述第一数据内容、所述IM账号和目的端的标识;The sixth parsing unit is configured to parse the first IM message according to the IM protocol, and obtain the identifier of the first data content, the IM account, and the destination end;
所述第六封装单元,配置为将所述IM账号和所述第一数据内容按照SM协议进行封装,得到第一SM消息;The sixth encapsulating unit is configured to encapsulate the IM account and the first data content according to an SM protocol to obtain a first SM message.
所述第六发送单元,配置为按照所述目标端的标识将所述第一SM消息发出。The sixth sending unit is configured to send the first SM message according to the identifier of the target end.
第七方面,本发明实施例再提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行上述第一方面实施例、第三方面实施例和第四方面实施例提供的信息处理方法。In a seventh aspect, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, where the computer executable instructions are used to execute the foregoing first embodiment, the third aspect, and The information processing method provided by the embodiment of the fourth aspect.
本发明实施例提供的一种信息处理方法及装置、即时通讯服务器、融合网关、存储介质,先接收按照第一协议封装的第一消息,所述第一消息中携带有第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;然后按照所述第一协议解析所述第一消息,得到第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;其次确定所述第一类别标识与所述第二类别标识不同时,按照所述第二类别标识所对应的协议将所述第一数据内容、第一标识封装,得到第二消息;最后按照所述第二标识将所述第二消息发出;如此,能够使IM用户与SM用户之间进行即时快速地信息内容分享。An information processing method and device, an instant messaging server, a converged gateway, and a storage medium provided by an embodiment of the present invention first receive a first message encapsulated according to a first protocol, where the first message carries a first data content, An identifier, a second identifier, a first category identifier, and a second category identifier; and then parsing the first message according to the first protocol to obtain a first data content, a first identifier, a second identifier, a first category identifier, and And determining, according to the protocol corresponding to the second category identifier, the first data content and the first identifier, and obtaining the second And finally sending the second message according to the second identifier; thus, enabling instant and fast information content sharing between the IM user and the SM user.
附图说明DRAWINGS
图1-1为本发明实施例一信息处理方法的实现流程示意图一;1-1 is a schematic flowchart 1 of an implementation process of an information processing method according to an embodiment of the present invention;
图1-2为本发明实施例一信息处理方法的实现流程示意图二; 1-2 is a schematic flowchart 2 of an implementation process of an information processing method according to an embodiment of the present invention;
图2-1为本发明实施例二信息处理装置的组成结构示意图一;2-1 is a schematic structural diagram 1 of a component of an information processing apparatus according to Embodiment 2 of the present invention;
图2-2为本发明实施例二信息处理装置的实现流程示意图二;2-2 is a second schematic diagram of an implementation flow of an information processing apparatus according to Embodiment 2 of the present invention;
图3-1为本发明实施例三信息处理方法的实现流程示意图一;3-1 is a schematic flowchart 1 of an implementation process of an information processing method according to Embodiment 3 of the present invention;
图3-2为本发明实施例三信息处理方法的实现流程示意图二;3-2 is a schematic flowchart 2 of an implementation process of an information processing method according to Embodiment 3 of the present invention;
图3-3为本发明实施例三中步骤303的实现流程示意图;3-3 is a schematic flowchart of an implementation process of step 303 in Embodiment 3 of the present invention;
图3-4为本发明实施例三信息处理方法的实现流程示意图三;3-4 is a schematic flowchart 3 of an implementation process of an information processing method according to Embodiment 3 of the present invention;
图4-1为本发明实施例四信息处理装置的组成结构示意图一;4-1 is a schematic structural diagram 1 of a component of an information processing apparatus according to Embodiment 4 of the present invention;
图4-2为本发明实施例四信息处理装置的组成结构示意图二;4-2 is a second schematic structural diagram of an information processing apparatus according to Embodiment 4 of the present invention;
图4-3为本发明实施例四信息处理装置中第一封装单元403的组成结构示意图;4-3 is a schematic structural diagram of a first encapsulating unit 403 in an information processing apparatus according to Embodiment 4 of the present invention;
图4-4为本发明实施例四信息处理装置的实现流程示意图三;4-4 is a schematic flowchart 3 of an implementation flow of an information processing apparatus according to Embodiment 4 of the present invention;
图5-1为本发明实施例五信息处理方法的实现流程示意图一;5-1 is a schematic flowchart 1 of an implementation process of an information processing method according to Embodiment 5 of the present invention;
图5-2为本发明实施例五信息处理方法的实现流程示意图二;5-2 is a schematic flowchart 2 of an implementation process of an information processing method according to Embodiment 5 of the present invention;
图5-3为本发明实施例五信息处理方法的实现流程示意图三;5-3 is a schematic flowchart 3 of an implementation process of an information processing method according to Embodiment 5 of the present invention;
图6-1为本发明实施例六信息处理方法的实现流程示意图一;6-1 is a schematic flowchart 1 of an implementation process of an information processing method according to Embodiment 6 of the present invention;
图6-2为本发明实施例六信息处理方法中步骤603的实现流程示意图;FIG. 6-2 is a schematic flowchart of an implementation process of step 603 in an information processing method according to Embodiment 6 of the present invention;
图6-3为本发明实施例六信息处理方法的实现流程示意图二;6-3 is a schematic flowchart 2 of an implementation process of an information processing method according to Embodiment 6 of the present invention;
图7-1为本发明实施例七即时通讯服务器的组成结构示意图一;7-1 is a schematic structural diagram 1 of a composition of an instant messaging server according to Embodiment 7 of the present invention;
图7-2为本发明实施例七即时通讯服务器的组成结构示意图二;7-2 is a second schematic structural diagram of an instant messaging server according to Embodiment 7 of the present invention;
图7-3为本发明实施例七即时通讯服务器的组成结构示意图三;7-3 is a schematic structural diagram 3 of a composition of an instant messaging server according to Embodiment 7 of the present invention;
图8-1为本发明实施例八融合网关的组成结构示意图一;8-1 is a first schematic structural diagram 1 of a converged gateway according to an embodiment of the present invention;
图8-2为本发明实施例八融合网关中第六封装单元803的组成结构示意图;8-2 is a schematic structural diagram of a sixth encapsulating unit 803 in a converged gateway according to an eighth embodiment of the present invention;
图8-3为本发明实施例八融合网关的组成结构示意图二;8-3 is a second schematic structural diagram of a converged gateway according to Embodiment 8 of the present invention;
图9为本发明实施例九融合网关分别与IM服务器和SM网关的连接关 系示意图;FIG. 9 is a schematic diagram of the connection between the converged gateway and the IM server and the SM gateway according to the embodiment of the present invention; Schematic diagram
图10为本发明实施例十融合网关分别向不同运营商的SM网关之间连接关系示意图。FIG. 10 is a schematic diagram of a connection relationship between ten converged gateways and SM gateways of different operators according to an embodiment of the present invention.
具体实施方式detailed description
下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。The technical solutions of the present invention are further elaborated below in conjunction with the accompanying drawings and specific embodiments.
实施例一Embodiment 1
本发明实施例提供一种信息处理方法,图1-1为本发明实施例一信息处理方法的实现流程示意图一,如图1-1所示,该方法包括:An embodiment of the present invention provides an information processing method. FIG. 1-1 is a schematic flowchart of an implementation process of an information processing method according to an embodiment of the present invention. As shown in FIG. 1-1, the method includes:
步骤101,接收按照第一协议封装的第一消息,所述第一消息中携带有第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;Step 101: Receive a first message encapsulated according to the first protocol, where the first message carries a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier.
其中,所述第一数据内容为第一用户发送给第二用户的数据内容;所述第一标识为所述用户使用的第一客户端的身份识别(ID)号码或所述第一用户在所述第一客户端上使用的IM账号,所述第二标识为所述第二用户使用的第二客户端的ID号码或所述第二用户在所述第二客户端上使用的IM账号;所述第一类别标识用于表明所述第一用户为所述第一协议用户还是所述第二协议用户,所述第二类别标识用于表明所述第二用户为所述第一协议用户还是所述第二协议用户;The first data content is data content sent by the first user to the second user; the first identifier is an identity (ID) number of the first client used by the user or the first user is in the office An IM account used on the first client, where the second identifier is an ID number of the second client used by the second user or an IM account used by the second user on the second client; The first category identifier is used to indicate whether the first user is the first protocol user or the second protocol user, and the second category identifier is used to indicate whether the second user is the first protocol user or The second protocol user;
这里,所述ID号码为电话号码或者电子设备的移动设备国际身份码(IMEI,International Mobile Equipment Identity)。Here, the ID number is a phone number or an International Device ID of an electronic device (IMEI).
这里,所述客户端是指一类电子设备,该电子设备具有短信功能,和/或能够安装IM应用;例如具有短信功能的电子设备可以是某一普通手机,该普通手机是非智能的手机;能够安装IM应用的电子设备可以是平板电脑,该平板不具有打电话或者发SM的功能,具有短信功能以及能够安装IM应用的电子设备可以为智能手机。Here, the client refers to a type of electronic device having a short message function, and/or capable of installing an IM application; for example, the electronic device having the short message function may be a certain ordinary mobile phone, and the ordinary mobile phone is a non-smart mobile phone; The electronic device capable of installing the IM application may be a tablet, which does not have the function of making a call or sending an SM, and the electronic device having the short message function and capable of installing the IM application may be a smart phone.
这里,在步骤101之前,用户A通过第一客户端将要分享的数据内容、 第一标识、第二标识、第一类别标识和第二类别标识封装成第一消息后发出。Here, before step 101, user A passes the data content to be shared by the first client, The first identifier, the second identifier, the first category identifier, and the second category identifier are encapsulated into a first message and sent.
步骤102,按照所述第一协议解析所述第一消息,得到第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;Step 102: Parse the first message according to the first protocol, and obtain a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier.
步骤103,确定所述第一类别标识与所述第二类别标识不同时,按照所述第二类别标识所对应的协议将所述第一数据内容、第一标识封装,得到第二消息;Step 103: When the first category identifier is different from the second category identifier, the first data content and the first identifier are encapsulated according to the protocol corresponding to the second category identifier, to obtain a second message.
步骤104,按照所述第二标识将所述第二消息发出。Step 104: Send the second message according to the second identifier.
图1-2为本发明实施例一信息处理方法的实现流程示意图二,如图1-2所示,在图1-1所示的实施例的基础上,该方法还包括:Figure 1-2 is a schematic flowchart of the implementation of the information processing method according to the embodiment of the present invention. As shown in Figure 1-2, on the basis of the embodiment shown in Figure 1-1, the method further includes:
步骤105,确定所述第一类别标识与所述第二类别标识相同时,则按照所述第二标识转发所述第一请求消息至所述第二客户端。Step 105: When it is determined that the first category identifier is the same as the second category identifier, forward the first request message to the second client according to the second identifier.
这里,所述第一协议可以为SM协议或IM协议;对应地,所述第二协议为IM协议或SM协议。其中,SM协议包括中国移动通信互联网短信网关接口协议(CMPP,China Mobile Peer to Peer)、中国电信短信网关协议(SMGP,Short Message Gateway Protocol)、中国联合通信公司短消息网关系统接口协议(SGIP)。IM协议包括传输控制协议(TCP,transmission control protocol)、用户数据电报协定(UDP,User Datagram Protocol)。Here, the first protocol may be an SM protocol or an IM protocol; correspondingly, the second protocol is an IM protocol or an SM protocol. Among them, the SM protocol includes China Mobile Peer to Peer (CMPP), China Telecom's Short Message Gateway Protocol (SMGP), and China United Communications Corporation Short Message Gateway System Interface Protocol (SGIP). . The IM protocol includes a transmission control protocol (TCP) and a User Datagram Protocol (UDP).
本发明实施例中,所述按照所述第二标识将所述第二消息发出,包括:In the embodiment of the present invention, the sending, according to the second identifier, the second message, including:
按照所述第二标识将所述第二消息发送给所述第二客户端;Sending the second message to the second client according to the second identifier;
或者,将所述第二消息发送给所述第二标识对应的消息承载方。Or sending the second message to the message bearer corresponding to the second identifier.
这里,所述将所述第二消息发送给所述第二标识对应的消息承载方,具体为:当所述第二标识为ID号码时,将所述第二消息发送给SM网关;当所述第二标识位IM账号时,将所述第二消息发送给IM服务器;可见所述消息承载方可以为SM网关或IM服务器。 Here, the sending the second message to the message bearer corresponding to the second identifier, specifically: sending the second message to the SM gateway when the second identifier is an ID number; When the second identifier IM account is described, the second message is sent to the IM server; it can be seen that the message bearer can be an SM gateway or an IM server.
本发明实施例提供的技术方案,能够使IM用户与SM用户之间进行即时快速地分享信息内容。本发明实施例提供的技术方案,在具体实施的过程中,可以将现有的SM网关和IM服务器进行结合,得到一种信息处理装置;其中,SM网关主要是为了解决各网络、各运营商之间的短信互通和业务提供商(SP,Service Provider)的接入问题;它为应用单位收发短信而提供的一个动态数据交换平台系统。该装置在判断通信的双方所使用的通信协议不同时,即:通过判断第一类别标识与第二类别标识是否一致,在不一致时,能够将以第一协议封装的第一消息转换为以第二协议封装的第二消息,从而实现将第一用户发送的第一消息转发给第二用户。可见,该装置一方面能够直接接收SM消息,另一方面能够直接接收IM消息,这两面都是直接与IM用户或SM进行交互的。The technical solution provided by the embodiment of the present invention enables instant sharing of information content between an IM user and an SM user. The technical solution provided by the embodiment of the present invention can be combined with an existing SM gateway and an IM server to obtain an information processing device. The SM gateway is mainly used to solve each network and each operator. The problem of SMS interworking and service provider (SP) access; it provides a dynamic data exchange platform system for application units to send and receive text messages. When the device determines that the communication protocols used by the two parties are different, that is, by determining whether the first category identifier and the second category identifier are consistent, when the device is inconsistent, the first message encapsulated by the first protocol can be converted into the first message. The second message encapsulated by the second protocol, so that the first message sent by the first user is forwarded to the second user. It can be seen that the device can directly receive the SM message on the one hand, and can directly receive the IM message on the other hand, both of which directly interact with the IM user or the SM.
本实施例在具体实施的过程中,当第一用户为SM用户,而第二用户为IM用户,上述信息处理装置也可以只对SM网关进行改造而得到装置,该装置在判断SM用户分享的对方为IM用户时,将以SM协议封装的第一消息转换为以IM协议封装的第二消息,然后将第二消息发送给IM服务器,由IM服务器根据第二标识将第二消息发送给第二用户;需要说明的是,该装置与IM服务器之间使用TCP/UDP协议进行链接,如,该装置需要向IM服务器发送注册消息以在IM服务器上进行注册,该注册消息中携带有该装置的网络之间互连协议(IP,Internet Protocol)地址、IP端口等信息;IM服务器需要返回验证消息,以对该装置进行认证;可见该装置是以客户端的身份与IM服务器进行链接的,而且该装置一方面是与SM用户进行交互的,而另一方面是与IM服务器进行交互的,通过IM服务器将第二消息发送给IM用户。In the specific implementation process, when the first user is an SM user and the second user is an IM user, the information processing device may also modify the SM gateway to obtain a device, and the device determines the SM user to share. When the other party is an IM user, the first message encapsulated by the SM protocol is converted into a second message encapsulated by the IM protocol, and then the second message is sent to the IM server, and the second message is sent by the IM server according to the second identifier. Two users; it should be noted that the device and the IM server are linked by using the TCP/UDP protocol. For example, the device needs to send a registration message to the IM server to register on the IM server, and the registration message carries the device. Information such as an IP (Internet Protocol) address, an IP port, etc.; the IM server needs to return a verification message to authenticate the device; it can be seen that the device is linked to the IM server as a client, and The device interacts with the SM user on the one hand, and interacts with the IM server on the other hand, and sends the second message through the IM server. To the IM user.
本实施例在具体实施的过程中,当第一用户为IM用户,而第二用户为SM用户,上述信息处理装置也可以只对IM服务器进行改造而得到装置, 该装置在判断IM用户分享的对方为SM用户时,将以IM协议封装的第一消息转换为以SM协议封装的第二消息,然后将第二消息发送给SM网关,由SM网关根据第二标识将第二消息发送给第二用户;需要说明的是,该装置与SM网关之间使用SM协议进行链接,对于SM网关而言,该装置类似于一个服务提供商(SP,Service Provider)。此时,SM网关只需要添加认证账号,并分配一个SP接入号给该装置,并增加相应的路由规则即可,而不需要对原有的SM网关进行功能方面的改造。In the specific implementation process, when the first user is an IM user and the second user is an SM user, the information processing device may also modify the IM server to obtain a device. When the device determines that the other party shared by the IM user is the SM user, the first message encapsulated by the IM protocol is converted into the second message encapsulated by the SM protocol, and then the second message is sent to the SM gateway, and the second gateway is configured by the SM gateway. The identifier sends the second message to the second user; it should be noted that the device is linked with the SM gateway by using the SM protocol. For the SM gateway, the device is similar to a service provider (SP). At this time, the SM gateway only needs to add an authentication account, and allocates an SP access number to the device, and adds a corresponding routing rule, and does not need to modify the function of the original SM gateway.
实施例二Embodiment 2
基于上述实施例一提供的技术方案,本发明实施例提供一种信息处理装置,图2-1为本发明实施例二信息处理装置的组成结构示意图一,如图2-1所示,该装置包括第一接收单元201、第一解析单元202、第一封装单元203和第一发送单元204,其中:The present invention provides an information processing apparatus according to the technical solution provided in the first embodiment, and FIG. 2-1 is a schematic structural diagram of the information processing apparatus according to the second embodiment of the present invention. The first receiving unit 201, the first parsing unit 202, the first encapsulating unit 203, and the first sending unit 204 are included, where:
所述第一接收单元201,配置为接收按照第一协议封装的第一消息,所述第一消息中携带有第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;The first receiving unit 201 is configured to receive a first message encapsulated according to the first protocol, where the first message carries a first data content, a first identifier, a second identifier, a first category identifier, and a second category. Identification
其中,所述第一数据内容为第一用户发送给第二用户的数据内容;所述第一标识为所述用户使用的第一客户端的身份识别ID号码或所述第一用户在所述第一客户端上使用的IM账号,所述第二标识为所述第二用户使用的第二客户端的ID号码或所述第二用户在所述第二客户端上使用的IM账号;所述第一类别标识用于表明所述第一用户为所述第一协议用户还是所述第二协议用户,所述第二类别标识用于表明所述第二用户为所述第一协议用户还是所述第二协议用户;The first data content is data content sent by the first user to the second user; the first identifier is an identity ID number of the first client used by the user, or the first user is in the first An IM account used by the client, the second identifier is an ID number of the second client used by the second user, or an IM account used by the second user on the second client; a category identifier is used to indicate whether the first user is the first protocol user or the second protocol user, and the second category identifier is used to indicate whether the second user is the first protocol user or the Second agreement user;
所述第一解析单元202,配置为按照所述第一协议解析所述第一消息,得到第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;The first parsing unit 202 is configured to parse the first message according to the first protocol, to obtain a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier;
所述第一封装单元203,配置为确定所述第一类别标识与所述第二类别 标识不同时,按照所述第二类别标识所对应的协议将所述第一数据内容、第一标识封装,得到第二消息;The first encapsulating unit 203 is configured to determine the first category identifier and the second category When the identifiers are different, the first data content and the first identifier are encapsulated according to the protocol corresponding to the second category identifier, to obtain a second message;
所述第一发送单元204,配置为按照所述第二标识将所述第二消息发出。The first sending unit 204 is configured to send the second message according to the second identifier.
这里,所述第一协议可以为SM协议或IM协议;对应地,所述第二协议为IM协议或SM协议。Here, the first protocol may be an SM protocol or an IM protocol; correspondingly, the second protocol is an IM protocol or an SM protocol.
图2-2为本发明实施例二信息处理装置的实现流程示意图二,如图2-2所示,在图2-1所示的实施例的基础上,该装置还包括第一转发单元205,配置为确定所述第一类别标识与所述第二类别标识相同时,则按照所述第二标识转发所述第一请求消息至所述第二客户端。2-2 is a second schematic diagram of an implementation flow of an information processing apparatus according to Embodiment 2 of the present invention. As shown in FIG. 2-2, the apparatus further includes a first forwarding unit 205, based on the embodiment shown in FIG. 2-1. And determining, when the first category identifier is the same as the second category identifier, forwarding the first request message to the second client according to the second identifier.
本发明实施例中,所述第一发送单元204,具体配置为按照所述第二标识将所述第二消息发送给所述第二客户端;或者,将所述第二消息发送给所述第二标识对应的消息承载方。In the embodiment of the present invention, the first sending unit 204 is specifically configured to send the second message to the second client according to the second identifier; or send the second message to the The message bearer corresponding to the second identifier.
本发明实施例提供的信息处理装置中的第一接收单元、第一解析单元、第一封装单元和第一发送单元,以及第一转发单元和第一发送单元,都可以通过该装置中的处理器来实现;当然也可通过具体的逻辑电路实现;所述信息处理装置可以是将SM网关和IM服务器进行结合的装置,也可以是只对IM服务器进行改造而得到的装置,在具体实施例的过程中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。The first receiving unit, the first parsing unit, the first encapsulating unit, and the first sending unit, and the first forwarding unit and the first sending unit in the information processing apparatus provided by the embodiment of the present invention may all be processed by the apparatus. The device may be implemented by a specific logic circuit; the information processing device may be a device that combines the SM gateway and the IM server, or may be a device that is only modified by the IM server, in a specific embodiment. In the process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA).
实施例三Embodiment 3
本发明实施例三提供一种信息处理方法,图3-1为本发明实施例三信息处理方法的实现流程示意图一,如图3-1所示,该方法包括:Embodiment 3 of the present invention provides an information processing method, and FIG. 3-1 is a schematic flowchart 1 of an implementation process of an information processing method according to Embodiment 3 of the present invention. As shown in FIG. 3-1, the method includes:
步骤301,接收IM用户通过源端、按照所述IM协议封装并发送给目 的端的第一IM消息;Step 301: The receiving IM user is encapsulated and sent to the destination according to the IM protocol by using the source end. The first IM message of the end;
这里,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识;Here, the first IM message carries the first data content, the IM account used by the IM user on the source end, the destination end identifier, and the category identifier of the destination end;
其中,所述目的端的类别标识用于表明持有目的端的用户为SM用户还是IM用户;目的端标识为目的端的ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is an SM user or an IM user; the destination end identifier is an ID number of the destination end or an IM account used by the user holding the destination end on the destination end;
这里,所述源端是指发出消息的客户端,可理解为上述实施例中的第一客户端,目的端是指接收消息的目的客户端,可以理解为上述实施例中的第二客户端;对应地,所述源端标识为第一标识,而目的端标识为第二标识,目的端的类别标识为第二类别标识。Here, the source end refers to the client that sends the message, which can be understood as the first client in the foregoing embodiment, and the destination end refers to the destination client that receives the message, which can be understood as the second client in the above embodiment. Correspondingly, the source end identifier is a first identifier, and the destination end identifier is a second identifier, and the category identifier of the destination end is a second category identifier.
步骤302,按照IM协议解析所述第一IM消息,得到所述第一数据内容、所述IM账号、所述目的端的标识和所述目的端的类别标识;Step 302: Parse the first IM message according to the IM protocol, and obtain the first data content, the IM account, the identifier of the destination end, and the category identifier of the destination end.
步骤303,根据所述目的端的类别标识确定持有所述目的端的用户为SM用户时,将所述IM账号和所述第一数据内容按照SM协议进行封装,得到第一SM消息;Step 303: Determine, according to the category identifier of the destination end, that the user who holds the destination end is an SM user, and encapsulate the IM account and the first data content according to an SM protocol to obtain a first SM message.
步骤304,按照所述目标端的标识将所述第一SM消息发出。Step 304: Send the first SM message according to the identifier of the target end.
本发明实施例中,所述步骤304具体可以为:按照所述目标端的标识将所述SM消息发送给所述目的端;或者,In the embodiment of the present invention, the step 304 may be: sending the SM message to the destination end according to the identifier of the target end; or
将所述SM消息发送给所述运营商的SM网关。Sending the SM message to the SM gateway of the operator.
这里,所述将所述SM消息发送给所述运营商的SM网关后,由SM网关根据目的端标识将第一SM消息发送给目的端。Here, after the sending the SM message to the SM gateway of the operator, the SM gateway sends the first SM message to the destination end according to the destination end identifier.
图3-2为本发明实施例三信息处理方法的实现流程示意图二,如图3-2所示,在图3-2所示的实施例的基础上,该方法还包括:3-2 is a schematic flowchart 2 of an implementation process of an information processing method according to Embodiment 3 of the present invention. As shown in FIG. 3-2, on the basis of the embodiment shown in FIG. 3-2, the method further includes:
步骤310,根据所述目的端的类别标识确定持有所述目的端的用户为IM用户时,按照所述目标端的标识转发所述第一IM消息给所述目的端。 Step 310: Determine, according to the category identifier of the destination end, that the user holding the destination end is an IM user, and forward the first IM message to the destination end according to the identifier of the target end.
本发明实施例提供的技术方案,能够使IM用户即时快速地向SM用户分享信息内容。本发明实施例提供的技术方案,在具体实施的过程中,可以将现有的SM网关和IM服务器进行结合,得到一种信息处理装置;该装置在判断IM用户通信的对方为SM用户时,即:通过判断目的端的类别标识不是IM用户时,能够将以IM协议封装的第一IM消息转换为以SM协议封装的第一SM消息,从而实现将IM用户发送的第一IM消息转发给SM用户。可见,该装置一方面能够直接接收IM用户发送的SM消息,另一方面能够直接将SM消息发送给SM用户,从而直接与IM用户或SM进行交互。The technical solution provided by the embodiment of the invention enables the IM user to share the information content to the SM user in an instant. In the technical solution provided by the embodiment of the present invention, an existing SM gateway and an IM server may be combined to obtain an information processing device; when the device determines that the other party communicating with the IM user is an SM user, That is, when it is determined that the category identifier of the destination end is not an IM user, the first IM message encapsulated by the IM protocol can be converted into the first SM message encapsulated by the SM protocol, so that the first IM message sent by the IM user is forwarded to the SM. user. It can be seen that the device can directly receive the SM message sent by the IM user, and can directly send the SM message to the SM user, thereby directly interacting with the IM user or the SM.
本实施例在具体实施的过程中,也可以只对IM服务器进行改造而得到上述装置,该装置在判断IM用户分享的对方为SM用户时,将以IM协议封装的第一IM消息转换为以SM协议封装的第一SM消息,然后将第一SM消息发送给SM网关,由SM网关根据目的端的标识将第一SM消息发送给目的端;In the specific implementation process, the device may be modified only by the IM server to obtain the foregoing device. When determining that the other party shared by the IM user is the SM user, the device converts the first IM message encapsulated by the IM protocol into The SM message encapsulates the first SM message, and then sends the first SM message to the SM gateway, and the SM gateway sends the first SM message to the destination end according to the identifier of the destination end;
需要说明的是,该装置与SM网关之间使用SM协议进行链接,对于SM网关而言,该装置类似于一个SP。此时,SM网关只需要添加认证账号,并分配一个SP接入号给该装置,并增加相应的路由规则即可,而不需要对原有的SM网关进行功能方面的改造。It should be noted that the device is linked with the SM gateway by using the SM protocol. For the SM gateway, the device is similar to an SP. At this time, the SM gateway only needs to add an authentication account, and allocates an SP access number to the device, and adds a corresponding routing rule, and does not need to modify the function of the original SM gateway.
本发明实施例中,所述SM信息中包括源端的标识信息字段,对应地,如图3-3所示,所述步骤303包括:In the embodiment of the present invention, the SM information includes an identifier information field of the source end, and correspondingly, as shown in FIG. 3-3, the step 303 includes:
步骤331,根据所述目的端的类别标识确定持有所述目的端的用户为SM用户时,对所述IM账号分配对应的子标识,并将所述子标识写入所述SM消息的源端的标识信息字段;Step 331: Determine, according to the category identifier of the destination end, the user who holds the destination end as the SM user, assign the corresponding sub-identity to the IM account, and write the sub-identity into the identifier of the source end of the SM message. Information field
步骤332,根据所述目标端的标识确定所述目标端的标识所属的运营商; Step 332: Determine, according to the identifier of the target end, an operator to which the identifier of the target end belongs;
步骤333,根据所述运营商所使用的短信协议封装,所述IM账号和所述第一数据内容,得到第一SM消息。Step 333: Encapsulate, according to the short message protocol used by the operator, the IM account and the first data content, to obtain a first SM message.
这里,所述运营商所使用的短信协议至少以下短信协议之一:CMPP、SMGP和SGIP。Here, the short message protocol used by the operator is at least one of the following short message protocols: CMPP, SMGP, and SGIP.
在图3-1至3-3所示的实施例的基础上,图3-4为本发明实施例三信息处理方法的实现流程示意图三,如图3-4所示,该方法还包括:On the basis of the embodiments shown in FIG. 3-1 to FIG. 3-3, FIG. 3-4 is a schematic flowchart of the implementation process of the information processing method according to Embodiment 3 of the present invention. As shown in FIG. 3-4, the method further includes:
步骤305,接收按照SM协议封装并作为回复所述第一SM消息的第二SM消息,所述第二SM消息中携带有第二数据内容和所述子标识;Step 305: Receive a second SM message that is encapsulated according to the SM protocol and is used to reply to the first SM message, where the second SM message carries the second data content and the sub-identity.
步骤306,按照SM协议解析所述第二SM消息,得到第二数据内容和所述子标识;Step 306: Parse the second SM message according to the SM protocol, to obtain a second data content and the sub-identity.
步骤307,根据所述子标识,查找预设的关于IM账号与子标识的映射关系表,得到与所述子标识对应的IM账号;Step 307: Search for a preset mapping relationship table between the IM account and the sub-identification according to the sub-identification, and obtain an IM account corresponding to the sub-ID.
步骤308,将所述目的端标识和第二数据内容按照IM协议封装,得到第二IM消息; Step 308, the destination end identifier and the second data content are encapsulated according to the IM protocol, to obtain a second IM message.
步骤309,按照所述IM账号将所述第二IM消息发送给所述源端。Step 309: Send the second IM message to the source end according to the IM account.
这里,所述接收按照SM协议封装并作为回复所述第一SM消息的第二SM消息,包括:Here, the receiving, by the SM protocol, as the second SM message that is replied to the first SM message, includes:
从所述目的端接收按照SM协议封装并作为回复所述第一SM消息的第二SM消息;或者,Receiving, from the destination end, a second SM message encapsulated according to the SM protocol and replied to the first SM message; or
从运营商的SM网关接收按照SM协议封装并作为回复所述第一SM消息的第二SM消息。Receiving, from the SM gateway of the operator, a second SM message encapsulated according to the SM protocol and replied to the first SM message.
图3-4所示的实施例提供的技术方案,当SM用户收到第一SM消息时,在该SM用户的客户端上展现的就是一条普通短信,该SM用户阅读过所述第一SM消息后,可以对该第一SM进行回复,所回复的消息即为第二SM消息,该第二SM消息经过运营商的短信中心而上行到SM网关,由SM网 关发送至上述信息处理装置,或者第二SM消息经过运营商的短信中心后直接发送给上述装置。The technical solution provided by the embodiment shown in FIG. 3-4, when the SM user receives the first SM message, presents a normal short message on the client of the SM user, and the SM user reads the first SM. After the message, the first SM may be replied, and the replied message is the second SM message, and the second SM message is sent to the SM gateway through the SMS center of the operator, and is sent to the SM gateway by the SM network. The gateway sends the message to the information processing device, or the second SM message is sent to the device directly after passing through the SMS center of the operator.
上述装置收到第二SM消息后,将第二SM消息按照SM协议进行解包,再按照IM协议的要求进行封装,得到第二IM消息;然后根据映射关系表,查找到当前IM账号所在的IP地址映射,再将第二IM消息发送到源端上。同时设置标签,表示第二IM消息来源于SM用户,是作为第一IM消息的回复。源端客户端在收到第二IM消息后,直接按照IM协议对所述第二IM消息进行解包,从而展现在源端上供IM用户查看。After receiving the second SM message, the foregoing apparatus unpacks the second SM message according to the SM protocol, and then encapsulates the second IM message according to the requirements of the IM protocol, and then obtains the second IM message according to the mapping relationship table, and then finds the current IM account according to the mapping relationship table. IP address mapping, and then send the second IM message to the source. At the same time, the label is set to indicate that the second IM message originates from the SM user and is a reply of the first IM message. After receiving the second IM message, the source client directly unpacks the second IM message according to the IM protocol, so as to be displayed on the source end for the IM user to view.
本发明实施例提供的技术方案,能够使IM用户把感兴趣的信息内容,直接通过IM客户端就可以以IM信息的形式转发给传统的SM用户群体,而传统的SM用户以SM的形式进行接收;而SM用户也可以直接在接收到的SM信息上面给IM用户进行回复,SM用户仍然以SM形式回复;而IM用户仍然以IM形式进行接收;可见,本发明实施例提供的技术方案,通过对客户端进行服务的服务器端进行改造,然后实现IM用户能够直接向普通的SM转发自己感兴趣的信息内容,因此,本发明实施例能够真正实现信息的无时延、无疆界的即时分享。The technical solution provided by the embodiment of the present invention enables the IM user to forward the information content of interest to the traditional SM user group in the form of IM information directly through the IM client, and the traditional SM user performs the SM in the form of SM. Receiving; and the SM user can also reply to the IM user directly on the received SM information, and the SM user still replies in the form of SM; and the IM user still receives in the form of IM; it can be seen that the technical solution provided by the embodiment of the present invention is The server end of the service is modified by the server, and then the IM user can directly forward the information content of interest to the ordinary SM. Therefore, the embodiment of the present invention can truly realize the instant sharing of information without delay and without borders. .
实施例四Embodiment 4
基于上述的实施例三,本发明实施例提供一种对应于上述实施例三的信息处理装置,图4-1为本发明实施例四信息处理装置的组成结构示意图一,如图4-1所示,该装置包括第一接收单元401、第一解析单元402、第一封装单元403和第一发送单元404,其中:Based on the third embodiment, the embodiment of the present invention provides an information processing apparatus corresponding to the third embodiment, and FIG. 4-1 is a schematic structural diagram 1 of the information processing apparatus according to the fourth embodiment of the present invention, as shown in FIG. 4-1. The device includes a first receiving unit 401, a first parsing unit 402, a first encapsulating unit 403, and a first transmitting unit 404, where:
所述第一接收单元401,配置为接收IM用户通过源端、按照所述IM协议封装并发送给目的端的第一IM消息,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识; The first receiving unit 401 is configured to receive a first IM message that is encapsulated by the IM user and is sent to the destination end according to the IM protocol, where the first IM message carries the first data content, the IM The IM account number, the destination end identifier, and the category identifier of the destination end used by the user on the source end;
其中,所述目的端的类别标识用于表明持有目的端的用户为短信SM用户还是IM用户;目的端标识为目的端的身份识别ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
所述第一解析单元402,配置为按照IM协议解析所述第一IM消息,得到所述第一数据内容、所述IM账号、所述目的端的标识和所述目的端的类别标识;The first parsing unit 402 is configured to parse the first IM message according to the IM protocol, and obtain the first data content, the IM account, the identifier of the destination end, and the category identifier of the destination end;
所述第一封装单元403,配置为根据所述目的端的类别标识确定持有所述目的端的用户为SM用户时,将所述IM账号和所述第一数据内容按照SM协议进行封装,得到第一SM消息;The first encapsulating unit 403 is configured to, according to the category identifier of the destination end, determine that the user who holds the destination end is an SM user, and encapsulate the IM account and the first data content according to an SM protocol to obtain a first An SM message;
所述第一发送单元404,配置为按照所述目标端的标识将所述第一SM消息发出。The first sending unit 404 is configured to send the first SM message according to the identifier of the target end.
这里,所述第一发送单元404,配置为按照所述目标端的标识将所述SM消息发送给所述目的端;或者,Here, the first sending unit 404 is configured to send the SM message to the destination end according to the identifier of the target end; or
所述第一发送单元404,配置为将所述SM消息发送给所述运营商的SM网关。The first sending unit 404 is configured to send the SM message to the SM gateway of the operator.
图4-2为本发明实施例四信息处理装置的组成结构示意图二,如图4-2所示,在图4-1所示的实施例的基础上,该装置还包括第一转发单元410,配置为根据所述目的端的类别标识确定持有所述目的端的用户为IM用户时,按照所述目标端的标识转发所述第一IM消息给所述目的端。4-2 is a schematic structural diagram of a fourth embodiment of the information processing apparatus according to Embodiment 4 of the present invention. As shown in FIG. 4-2, the apparatus further includes a first forwarding unit 410. And determining, according to the category identifier of the destination end, that the user holding the destination end is an IM user, and forwarding the first IM message to the destination end according to the identifier of the target end.
本实施例中,所述SM信息中包括源端的标识信息字段,对应地,如图4-3所示,所述第一封装单元403包括第一分配模块431、第一写入模块432、第一确定模块433和第一封装模块434,其中:In this embodiment, the SM information includes an identifier information field of the source end. Correspondingly, as shown in FIG. 4-3, the first encapsulating unit 403 includes a first allocating module 431, a first writing module 432, and a first A determining module 433 and a first encapsulating module 434, wherein:
所述第一分配模块431,配置为对所述IM账号分配对应的子标识;The first allocation module 431 is configured to allocate a corresponding sub-ID to the IM account.
所述第一写入模块432,配置为将所述子标识写入所述SM消息的源端的标识信息字段; The first writing module 432 is configured to write the sub-identifier into an identifier information field of a source end of the SM message;
所述第一确定模块433,配置为根据所述目标端的标识确定所述目标端的标识所属的运营商;The first determining module 433 is configured to determine, according to the identifier of the target end, an operator to which the identifier of the target end belongs;
所述第一封装模块434,配置为根据所述运营商所使用的短信协议封装,所述IM账号和所述第一数据内容,得到第一SM消息。The first encapsulating module 434 is configured to encapsulate, according to the short message protocol used by the operator, the IM account and the first data content, to obtain a first SM message.
这里,所述运营商所使用的短信协议至少以下短信协议之一:CMPP、SMGP和SGIP。Here, the short message protocol used by the operator is at least one of the following short message protocols: CMPP, SMGP, and SGIP.
在图4-1至4-3所示的实施例的基础上,图4-4为本发明实施例四信息处理装置的实现流程示意图三,如图4-4所示,该装置还包括第三接收单元405、第三解析单元406、第一查找单元407、第三封装单元408和第三发送单元409,其中:Based on the embodiments shown in FIG. 4-1 to FIG. 4-3, FIG. 4-4 is a schematic flowchart 3 of an implementation process of an information processing apparatus according to Embodiment 4 of the present invention. As shown in FIG. 4-4, the apparatus further includes The third receiving unit 405, the third parsing unit 406, the first searching unit 407, the third encapsulating unit 408, and the third transmitting unit 409, wherein:
所述第三接收单元405,配置为接收按照SM协议封装并作为回复所述第一SM消息的第二SM消息,所述第二SM消息中携带有第二数据内容和所述子标识;The third receiving unit 405 is configured to receive a second SM message encapsulated according to the SM protocol and replied to the first SM message, where the second SM message carries the second data content and the sub-identity;
所述第三解析单元406,配置为按照SM协议解析所述第二SM消息,得到第二数据内容和所述子标识;The third parsing unit 406 is configured to parse the second SM message according to the SM protocol, to obtain the second data content and the sub-identifier;
所述第一查找单元407,配置为根据所述子标识,查找预设的关于IM账号与子标识的映射关系表,得到与所述子标识对应的IM账号;The first searching unit 407 is configured to: according to the sub-identification, search for a preset mapping relationship table between the IM account and the sub-identity, and obtain an IM account corresponding to the sub-ID;
所述第三封装单元408,配置为将所述目的端标识和第二数据内容按照IM协议封装,得到第二IM消息;The third encapsulating unit 408 is configured to encapsulate the destination end identifier and the second data content according to an IM protocol to obtain a second IM message.
所述第三发送单元409,配置为按照所述IM账号将所述第二IM消息发送给所述源端。The third sending unit 409 is configured to send the second IM message to the source end according to the IM account.
这里,所述第三接收单元409,配置为从所述目的端接收按照SM协议封装并作为回复所述第一SM消息的第二SM消息;或者,Here, the third receiving unit 409 is configured to receive, from the destination end, a second SM message encapsulated according to the SM protocol and replied to the first SM message; or
所述第三接收单元,配置为从运营商的SM网关接收按照SM协议封装并作为回复所述第一SM消息的第二SM消息。 The third receiving unit is configured to receive, from the SM gateway of the operator, a second SM message encapsulated according to the SM protocol and replied to the first SM message.
本发明实施例四提供的信息处理装置中的第一接收单元、第一解析单元、第一封装单元和第一发送单元等各单元,以及各单元中各自所包括的模块,都可以通过所述装置中的处理器来实现;当然也可通过具体的逻辑电路实现;所述信息处理装置可以是将SM网关和IM服务器进行结合的装置,也可以是只对IM服务器进行改造而得到的装置,在具体实施例的过程中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。The first receiving unit, the first analyzing unit, the first encapsulating unit, the first sending unit, and the like, and the modules included in each unit in the information processing apparatus provided in Embodiment 4 of the present invention may pass the The processor in the device is implemented; of course, it can also be implemented by a specific logic circuit; the information processing device may be a device that combines the SM gateway and the IM server, or may be a device obtained by modifying only the IM server. In a particular embodiment, the processor may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA).
实施例五Embodiment 5
本发明实施例五提供一种信息处理方法,应用于IM服务器侧,图5-1为本发明实施例五信息处理方法的实现流程示意图一,如图5-1所示,该方法包括:The fifth embodiment of the present invention provides an information processing method, which is applied to the IM server side. FIG. 5-1 is a schematic flowchart of the implementation of the information processing method according to the fifth embodiment of the present invention. As shown in FIG. 5-1, the method includes:
步骤501,IM服务器接收IM用户通过源端、按照所述IM协议封装并发送给目的端的第一IM消息;Step 501: The IM server receives, by the source end, the first IM message that is encapsulated by the source end and sent to the destination end according to the IM protocol.
这里,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识;Here, the first IM message carries the first data content, the IM account used by the IM user on the source end, the destination end identifier, and the category identifier of the destination end;
其中,所述目的端的类别标识用于表明持有目的端的用户为SM用户还是IM用户;目的端标识为目的端的身份识别ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is an SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end;
步骤502,IM服务器按照IM协议解析所述第一IM消息,得到所述目的端的类别标识;Step 502: The IM server parses the first IM message according to the IM protocol, and obtains a category identifier of the destination end.
步骤503,IM服务器根据所述目的端的类别标识确定持有所述目的端的用户为SM用户时,将所述第一IM消息发出。Step 503: The IM server sends the first IM message when the user who holds the destination end is an SM user according to the category identifier of the destination end.
这里,所述步骤503具体可以为:将所述SM消息发送给所述目的端;或者,Here, the step 503 may specifically be: sending the SM message to the destination end; or
将所述SM消息发送给SM运营商的SM网关。 Send the SM message to the SM gateway of the SM operator.
图5-2为本发明实施例五信息处理方法的实现流程示意图二,如图5-2所示,在图5-1所示的实施例的基础上,该方法还包括:Figure 5-2 is a schematic flowchart 2 of the implementation of the information processing method in the fifth embodiment of the present invention. As shown in Figure 5-2, the method further includes:
步骤504,IM服务器根据所述目的端的类别标识确定持有所述目的端的用户为IM用户时,按照所述目标端的标识转发所述第一IM消息给所述目的端。Step 504: The IM server determines, according to the category identifier of the destination end, that the user holding the destination end is an IM user, and forwards the first IM message to the destination end according to the identifier of the target end.
图5-3为本发明实施例五信息处理方法的实现流程示意图三,如图5-3所示,在图5-1所示的实施例的基础上,该方法还包括:Figure 5-3 is a schematic flowchart 3 of the implementation of the information processing method in the fifth embodiment of the present invention. As shown in Figure 5-3, the method further includes:
步骤505,IM服务器接收按照SM协议封装并作为回复所述第一IM消息的第二IM消息,所述第二IM消息中携带有所述目的端标识、所述IM账号和第二数据内容;Step 505: The IM server receives, according to the SM protocol, a second IM message that is replied to the first IM message, where the second IM message carries the destination end identifier, the IM account, and the second data content.
步骤506,将所述第二IM消息发送给所述IM账号。Step 506: Send the second IM message to the IM account.
本实施例在具体实施的过程中,可以只对现有的IM服务器进行稍微的改造,该IM服务器在判断IM用户分享的对方为SM用户时,将所述第一IM消息发出。并在接收到作为回复所述第一IM消息的第二IM消息,将所述第二IM消息发送给源端。如此,本发明实施例提供的技术方案能够使IM用户即时快速地向SM用户分享信息内容,而且能够使IM用户接收到SM用户以SM形式所回复的消息。In the specific implementation process, the IM server may perform a slight modification on the existing IM server. When the IM server determines that the other party shared by the IM user is the SM user, the IM message is sent. And receiving the second IM message as the reply to the first IM message, and sending the second IM message to the source end. As such, the technical solution provided by the embodiment of the present invention enables the IM user to instantly share the information content with the SM user, and enables the IM user to receive the message that the SM user replies in the SM form.
实施例六Embodiment 6
对应于上述实施例五,本发明实施例六提供一种信息处理方法,应用于融合网关,所述融合网关为能够将IM服务器与SM网关进行融合,从而能够使IM用户即时快速地向SM用户分享信息内容;图6-1为本发明实施例六信息处理方法的实现流程示意图一,如图6-1所示,该方法包括:Corresponding to the fifth embodiment, the sixth embodiment of the present invention provides an information processing method, which is applied to a converged gateway, where the converged gateway is capable of merging the IM server and the SM gateway, so that the IM user can quickly and automatically send the SM user. Figure 6-1 is a schematic flowchart 1 of an implementation process of an information processing method according to Embodiment 6 of the present invention. As shown in Figure 6-1, the method includes:
步骤601,融合网关接收IM服务器发送的第一IM消息;Step 601: The convergence gateway receives the first IM message sent by the IM server.
这里,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识; Here, the first IM message carries the first data content, the IM account used by the IM user on the source end, the destination end identifier, and the category identifier of the destination end;
其中,所述目的端的类别标识用于表明持有目的端的用户为短信SM用户还是IM用户;目的端标识为目的端的身份识别ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
步骤602,融合网关按照IM协议解析所述第一IM消息,得到所述第一数据内容、所述IM账号和目的端的标识;Step 602: The converged gateway parses the first IM message according to the IM protocol, and obtains the identifiers of the first data content, the IM account, and the destination end.
步骤603,融合网关将所述IM账号和所述第一数据内容按照SM协议进行封装,得到第一SM消息;Step 603: The convergence gateway encapsulates the IM account and the first data content according to the SM protocol to obtain a first SM message.
步骤604,融合网关按照所述目标端的标识将所述第一SM消息发出。Step 604: The converged gateway sends the first SM message according to the identifier of the target end.
这里,所述步骤604包括:融合网关按照所述目标端的标识将所述第一SM消息发送给所述目的端;或者,Here, the step 604 includes: the converged gateway sends the first SM message to the destination end according to the identifier of the target end; or
所述步骤604包括:融合网关将所述第一SM消息发送给所述运营商的SM网关。The step 604 includes: the converged gateway sends the first SM message to the SM gateway of the operator.
本实施例中,该方法还包括:融合网关通过IM协议以客户端的身份向所述IM服务器进行注册和认证。In this embodiment, the method further includes: the converged gateway registers and authenticates to the IM server by using an IM protocol as a client.
如图6-2所示,在图6-1所示的实施例的基础上,所述SM信息中包括源端的标识信息字段,对应地,所述步骤603包括:As shown in FIG. 6-2, on the basis of the embodiment shown in FIG. 6-1, the SM information includes an identifier information field of the source end. Correspondingly, the step 603 includes:
步骤631,融合网关对所述IM账号分配对应的子标识,并将所述子标识写入所述SM消息的源端的标识信息字段;Step 631: The converged gateway allocates a corresponding sub-identity to the IM account, and writes the sub-identity into an identifier information field of the source end of the SM message.
步骤632,融合网关根据所述目标端的标识确定所述目标端的标识所属的运营商;Step 632: The convergence gateway determines, according to the identifier of the target end, an operator to which the identifier of the target end belongs.
步骤633,融合网关根据所述运营商所使用的短信协议封装,所述IM账号和所述第一数据内容,得到第一SM消息。Step 633: The converged gateway encapsulates the IM account and the first data content according to the short message protocol used by the operator, to obtain a first SM message.
在图6-1至6-2所示的实施例的基础上,图6-3为本发明实施例六信息处理方法的实现流程示意图二,如图6-3所示,所述方法包括:On the basis of the embodiments shown in FIG. 6-1 to FIG. 6-2, FIG. 6 is a schematic flowchart of the implementation process of the information processing method according to Embodiment 6 of the present invention. As shown in FIG. 6-3, the method includes:
步骤605,融合网关接收按照SM协议封装并作为回复所述第一SM消 息的第二SM消息,所述第二SM消息中携带有第二数据内容和所述子标识;Step 605: The converged gateway receives the encapsulation according to the SM protocol and responds to the first SM cancellation. a second SM message, where the second SM message carries the second data content and the sub-identity;
步骤606,融合网关按照SM协议解析所述第二SM消息,得到第二数据内容和所述子标识;Step 606: The converged gateway parses the second SM message according to the SM protocol, to obtain the second data content and the sub-identity.
步骤607,融合网关根据所述子标识,查找预设的关于IM账号与子标识的映射关系表,得到与所述子标识对应的IM账号;Step 607: The converged gateway searches for a preset mapping relationship table between the IM account and the sub-identity according to the sub-identification, and obtains an IM account corresponding to the sub-ID.
步骤608,融合网关将所述目的端标识、所述IM账号和第二数据内容按照IM协议封装,得到第二IM消息;Step 608: The converged gateway encapsulates the destination end identifier, the IM account, and the second data content according to an IM protocol to obtain a second IM message.
步骤609,融合网关将所述第二IM消息发送给IM服务器,所述第二IM消息作为对所述第一IM消息的回复。Step 609: The converged gateway sends the second IM message to the IM server, where the second IM message is used as a reply to the first IM message.
本发明实施例提供的技术方案,融合网关能够接收IM服务器发送的IM消息,将以IM协议封装的第一IM消息转换为以SM协议封装的第一SM消息,然后将第一SM消息发送给SM网关,由SM网关根据目的端的标识将第一SM消息发送给目的端;需要说明的是,该融合网关与SM网关之间使用SM协议进行链接,对于SM网关而言,该装置类似于一个SP。此时,SM网关只需要添加认证账号,并分配一个SP接入号给该装置,并增加相应的路由规则即可,而不需要对原有的SM网关进行功能方面的改造。According to the technical solution provided by the embodiment of the present invention, the converged gateway can receive the IM message sent by the IM server, convert the first IM message encapsulated by the IM protocol into the first SM message encapsulated by the SM protocol, and then send the first SM message to the The SM gateway sends the first SM message to the destination end according to the identifier of the destination end by the SM gateway. It should be noted that the fusion gateway and the SM gateway use the SM protocol for linking. For the SM gateway, the device is similar to the one. SP. At this time, the SM gateway only needs to add an authentication account, and allocates an SP access number to the device, and adds a corresponding routing rule, and does not need to modify the function of the original SM gateway.
该融合网关与IM服务器之间使用TCP/UDP协议进行链接,如,融合网关需要向IM服务器发送注册消息以在IM服务器上进行注册,该注册消息中携带有该装置的IP地址、IP端口等信息;IM服务器需要返回验证消息,以对该融合网关进行认证;可见融合网关是以客户端的身份与IM服务器进行链接的。The converged gateway and the IM server are linked by using the TCP/UDP protocol. For example, the converged gateway needs to send a registration message to the IM server to register on the IM server, where the registration message carries the IP address, IP port, etc. of the device. Information; the IM server needs to return a verification message to authenticate the converged gateway; it can be seen that the converged gateway is linked with the IM server as the client.
实施例七Example 7
对应于上述的实施例五,本发明实施例提供一种即时通讯服务器,图7-1为本发明实施例七即时通讯服务器的组成结构示意图一,如图7-1所示,该即时通讯服务器包括第四接收单元701、第四解析单元702和第四发送单 元703,其中:Corresponding to the fifth embodiment, the embodiment of the present invention provides an instant messaging server, and FIG. 7-1 is a schematic structural diagram of a composition of an instant messaging server according to Embodiment 7 of the present invention. As shown in FIG. 7-1, the instant messaging server is provided. The fourth receiving unit 701, the fourth parsing unit 702, and the fourth sending list are included. Element 703, where:
所述第四发送单元701,配置为接收IM用户通过源端、按照所述IM协议封装并发送给目的端的第一IM消息,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识;The fourth sending unit 701 is configured to receive a first IM message that is encapsulated by the IM user and is sent to the destination end according to the IM protocol, where the first IM message carries the first data content, the IM The IM account number, the destination end identifier, and the category identifier of the destination end used by the user on the source end;
其中,所述目的端的类别标识用于表明持有目的端的用户为短信SM用户还是IM用户;目的端标识为目的端的身份识别ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
所述第四解析单元702,配置为按照IM协议解析所述第一IM消息,得到所述目的端的类别标识;The fourth parsing unit 702 is configured to parse the first IM message according to the IM protocol, and obtain a category identifier of the destination end;
所述第四发送单元703,配置为根据所述目的端的类别标识确定持有所述目的端的用户为SM用户时,将所述第一IM消息发出。The fourth sending unit 703 is configured to: when the user holding the destination end is an SM user, according to the category identifier of the destination end, send the first IM message.
这里,所述第四发送单元703,具体可以配置为将所述SM消息发送给所述目的端;或者,Here, the fourth sending unit 703 may be specifically configured to send the SM message to the destination end; or
这里,所述第四发送单元703,具体可以配置为将所述SM消息发送给SM运营商的SM网关。Here, the fourth sending unit 703 may be specifically configured to send the SM message to the SM gateway of the SM operator.
图7-2为本发明实施例七即时通讯服务器的组成结构示意图二,如图7-2所示,在图7-1所示的实施例的基础上,该即时通讯服务器还包括第三转发单元704,配置为根据所述目的端的类别标识确定持有所述目的端的用户为IM用户时,按照所述目标端的标识转发所述第一IM消息给所述目的端。7-2 is a schematic structural diagram of a composition structure of an instant messaging server according to Embodiment 7 of the present invention. As shown in FIG. 7-2, on the basis of the embodiment shown in FIG. 7-1, the instant messaging server further includes a third forwarding. The unit 704 is configured to: according to the category identifier of the destination end, determine that the user holding the destination end is an IM user, and forward the first IM message to the destination end according to the identifier of the target end.
图7-3为本发明实施例七即时通讯服务器的组成结构示意图三,如图7-3所示,在图7-1所示的实施例的基础上,该即时通讯服务器700还包括第五接收单元705和第五发送单元706,其中:7-3 is a schematic structural diagram 3 of a composition of an instant messaging server according to Embodiment 7 of the present invention. As shown in FIG. 7-3, on the basis of the embodiment shown in FIG. 7-1, the instant messaging server 700 further includes a fifth. The receiving unit 705 and the fifth transmitting unit 706, wherein:
所述第五接收单元705,配置为接收按照SM协议封装并作为回复所述 第一IM消息的第二IM消息,所述第二IM消息中携带有所述目的端标识、所述IM账号和第二数据内容;The fifth receiving unit 705 is configured to receive the encapsulation according to the SM protocol and as a reply a second IM message of the first IM message, where the second IM message carries the destination identifier, the IM account, and the second data content;
所述第五发送单元706,配置为将所述第二IM消息发送给所述IM账号。The fifth sending unit 706 is configured to send the second IM message to the IM account.
本发明实施例七提供的即时通讯服务器中的第四接收单元、第四解析单元和第四发送单元等各单元,以及各单元中各自所包括的模块,都可以通过即时通讯服务器中的处理器来实现;当然也可通过具体的逻辑电路实现;在具体实施例的过程中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。The fourth receiving unit, the fourth analyzing unit, the fourth sending unit, and the like in the instant messaging server provided in the seventh embodiment of the present invention, and the modules included in each unit can pass the processor in the instant messaging server. To be implemented; of course, it can also be implemented by a specific logic circuit; in the process of a specific embodiment, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or field programmable Gate array (FPGA), etc.
实施例八Example eight
对应与上述的实施例六,本发明实施例提供一种融合网关,图8-1为本发明实施例八融合网关的组成结构示意图一,如图8-1所示,该融合网关800包括第六接收单元801、第六解析单元802、第六封装单元803和第六发送单元804,其中:Corresponding to Embodiment 6 above, the embodiment of the present invention provides a converged gateway, and FIG. 8-1 is a schematic structural diagram 1 of a converged gateway according to Embodiment 8 of the present invention. As shown in FIG. 8-1, the converged gateway 800 includes a receiving unit 801, a sixth parsing unit 802, a sixth encapsulating unit 803, and a sixth transmitting unit 804, wherein:
所述第六接收单元801,配置为接收即时通讯IM服务器发送的第一IM消息,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识;The sixth receiving unit 801 is configured to receive a first IM message sent by the IM server, where the first IM message carries the first data content, and the IM account used by the IM user on the source end , the destination end identifier and the category identifier of the destination end;
其中,所述目的端的类别标识用于表明持有目的端的用户为短信SM用户还是IM用户;目的端标识为目的端的身份识别ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
所述第六解析单元802,配置为按照IM协议解析所述第一IM消息,得到所述第一数据内容、所述IM账号和目的端的标识;The sixth parsing unit 802 is configured to parse the first IM message according to the IM protocol, and obtain the identifiers of the first data content, the IM account, and the destination end;
所述第六封装单元803,配置为将所述IM账号和所述第一数据内容按照SM协议进行封装,得到第一SM消息;The sixth encapsulating unit 803 is configured to encapsulate the IM account and the first data content according to an SM protocol to obtain a first SM message.
所述第六发送单元804,配置为按照所述目标端的标识将所述第一SM 消息发出。The sixth sending unit 804 is configured to: the first SM according to the identifier of the target end The message was sent.
这里,所述第六发送单元804,配置为融合网关按照所述目标端的标识将所述第一SM消息发送给所述目的端;或者,Here, the sixth sending unit 804 is configured to send, by the fused gateway, the first SM message to the destination end according to the identifier of the target end; or
所述第六发送单元804,配置为融合网关将所述第一SM消息发送给所述运营商的SM网关。The sixth sending unit 804 is configured to send, by the convergence gateway, the first SM message to the SM gateway of the operator.
本实施例中,该融合网关还包括注册单元,配置为通过IM协议以客户端的身份向所述IM服务器进行注册和认证。In this embodiment, the converged gateway further includes a registration unit configured to register and authenticate to the IM server as an identity of the client by using an IM protocol.
在图8-1所示的实施例的基础上,所述SM信息中包括源端的标识信息字段,对应地,如图8-2所示,所述第六封装单元803包括第二分配模块831、第二写入模块832、第二确定模块833和第二封装模块834,其中:On the basis of the embodiment shown in FIG. 8-1, the SM information includes an identifier information field of the source end. Correspondingly, as shown in FIG. 8-2, the sixth encapsulating unit 803 includes a second allocation module 831. a second write module 832, a second determination module 833, and a second encapsulation module 834, wherein:
所述第二分配模块831,配置为对所述IM账号分配对应的子标识;The second allocation module 831 is configured to allocate a corresponding sub-ID to the IM account.
所述第二写入模块832,配置为将所述子标识写入所述SM消息的源端的标识信息字段;The second writing module 832 is configured to write the sub-identifier into an identifier information field of a source end of the SM message;
所述第二确定模块833,配置为根据所述目标端的标识确定所述目标端的标识所属的运营商;The second determining module 833 is configured to determine, according to the identifier of the target end, an operator to which the identifier of the target end belongs;
所述第二封装模块834,配置为根据所述运营商所使用的短信协议封装,所述IM账号和所述第一数据内容,得到第一SM消息。The second encapsulating module 834 is configured to encapsulate, according to the short message protocol used by the operator, the IM account and the first data content, to obtain a first SM message.
在图8-1所示的实施例的基础上,图8-3为本发明实施例八融合网关的组成结构示意图二,如图8-3所示,所述融合网关800还包括第七接收单元805、第七解析单元806、第二查找单元807、第七封装单元808和第七发送单元809,其中:On the basis of the embodiment shown in FIG. 8-1, FIG. 8-3 is a schematic structural diagram 2 of a converged gateway according to Embodiment 8 of the present invention. As shown in FIG. 8-3, the converged gateway 800 further includes a seventh receiving. The unit 805, the seventh parsing unit 806, the second searching unit 807, the seventh encapsulating unit 808, and the seventh transmitting unit 809, wherein:
所述第七接收单元805,配置为接收按照SM协议封装并作为回复所述第一SM消息的第二SM消息,所述第二SM消息中携带有第二数据内容和所述子标识;The seventh receiving unit 805 is configured to receive a second SM message that is encapsulated according to the SM protocol and is used to reply to the first SM message, where the second SM message carries the second data content and the sub-identifier;
所述第七解析单元806,配置为按照SM协议解析所述第二SM消息, 得到第二数据内容和所述子标识;The seventh parsing unit 806 is configured to parse the second SM message according to the SM protocol. Obtaining a second data content and the sub-identification;
所述第二查找单元807,配置为根据所述子标识,查找预设的关于IM账号与子标识的映射关系表,得到与所述子标识对应的IM账号;The second searching unit 807 is configured to: according to the sub-identification, search for a preset mapping relationship table between the IM account and the sub-identity, and obtain an IM account corresponding to the sub-ID;
所述第七封装单元808,配置为将所述目的端标识、所述IM账号和第二数据内容按照IM协议封装,得到第二IM消息;The seventh encapsulating unit 808 is configured to encapsulate the destination end identifier, the IM account, and the second data content according to an IM protocol to obtain a second IM message.
所述第七发送单元809,配置为将所述第二IM消息发送给IM服务器,所述第二IM消息作为对所述第一IM消息的回复。The seventh sending unit 809 is configured to send the second IM message to the IM server, where the second IM message is used as a reply to the first IM message.
本发明实施例八提供的融合网关中的第六接收单元、第六解析单元、第六封装单元和第六发送单元等各单元,以及各单元中各自所包括的模块,都可以通过融合网关中的处理器来实现;当然也可通过具体的逻辑电路实现;在具体实施例的过程中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。Each of the sixth receiving unit, the sixth parsing unit, the sixth encapsulating unit, and the sixth transmitting unit in the converged gateway provided by the embodiment of the present invention, and the modules included in each unit may pass through the converged gateway. The processor is implemented; of course, it can also be implemented by a specific logic circuit; in the process of a specific embodiment, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or Field programmable gate array (FPGA), etc.
实施例九Example nine
本发明实施例提供一种信息处理方法,如图9所示,通过在IM服务器901和运营商的SM网关902之间增加一个融合网关903,实现传统电信网络和移动互联网应用的互通。融合网关903以TCP/UDP协议与IM服务器901进行连接,对于IM服务器901来说,融合网关903就类似于一个客户端,只是功能更强大而已。而融合网关903又以短信协议与短信网关902进行连接;对于短信网关而言,此融合网关类似于一个SP。An embodiment of the present invention provides an information processing method. As shown in FIG. 9, an interworking between a traditional telecommunication network and a mobile Internet application is implemented by adding a converged gateway 903 between the IM server 901 and the SM gateway 902 of the operator. The converged gateway 903 is connected to the IM server 901 by using the TCP/UDP protocol. For the IM server 901, the converged gateway 903 is similar to a client, but the function is more powerful. The converged gateway 903 is connected to the short message gateway 902 by using a short message protocol. For the short message gateway, the converged gateway is similar to an SP.
IM服务器901收到IM客户端发送的IM消息时,判断该IM消息的目的用户是否开通了IM服务;如果目的用户开通了IM服务,则直接转发该IM消息到目的用户相应的IM账号;如果目的用户未开通IM服务,则将该IM消息发送到融合网关903,由融合网关903再将该IM消息通过对接的短信网关902下发到目的用户。When receiving the IM message sent by the IM client, the IM server 901 determines whether the destination user of the IM message has opened the IM service; if the destination user activates the IM service, directly forwards the IM message to the corresponding IM account of the destination user; If the destination user does not open the IM service, the IM message is sent to the converged gateway 903, and the IM message is sent to the destination user by the converged SMS gateway 902.
下面以微信为例,来说明本发明实施例提供的信息处理方法。 The following takes WeChat as an example to describe the information processing method provided by the embodiment of the present invention.
步骤911、融合网关通过TCP/UPD协议和微信服务器进行链接,融合网关类似于一个微信客户端,通过注册和认证与微信服务器建立链接;Step 911: The converged gateway is linked by using a TCP/UPD protocol and a WeChat server, and the converged gateway is similar to a WeChat client, and establishes a link with the WeChat server through registration and authentication;
步骤912、融合网关通过短信协议以SP身份和短信网关建立链接,此时短信网关只需要添加认证账号,分配一个SP接入号并增加相应的路由规则即可,不需要进行对短信网关的功能进行改造;Step 912: The convergence gateway establishes a link between the SP identity and the SMS gateway through the short message protocol. At this time, the short message gateway only needs to add an authentication account, allocate an SP access number, and add a corresponding routing rule, and does not need to perform the function of the short message gateway. Carry out transformation;
步骤913、对微信客户端的微信应用进行改造:在发送消息时,用户可以选择微信应用里的通信录,也可以选择手机通信录里面的用户,客户端在发送微信消息到微信服务器时,该微信消息中需要携带一个类别标识,该类别标识用于表明目的用户是否是微信用户,即源端用户是从微信应用里的通信录选择的目的用户,还是从手机通信录里选择的目的用户;Step 913: Modify the WeChat application of the WeChat client: when sending the message, the user can select the address book in the WeChat application, or select the user in the mobile phone address book. When the client sends the WeChat message to the WeChat server, the WeChat The message needs to carry a category identifier, which is used to indicate whether the destination user is a WeChat user, that is, whether the source user is the destination user selected from the address book in the WeChat application or the destination user selected from the mobile phone address book;
步骤914、微信服务器收到微信客户端发送的微信消息时,根据微信源客户端上报的类别标识;如果类别标识表明目的用户是微信用户,则转发机制保持不变,在微信域上直接转发到目的用户对应的微信账号;如果类比标识表明目的用户是未开通微信的SM用户,则直接转发到融合网关;Step 914: When the WeChat server receives the WeChat message sent by the WeChat client, according to the category identifier reported by the WeChat client, if the category identifier indicates that the destination user is a WeChat user, the forwarding mechanism remains unchanged and is directly forwarded to the WeChat domain. The WeChat account corresponding to the destination user; if the analog ID indicates that the destination user is an SM user who has not enabled WeChat, it is directly forwarded to the converged gateway;
步骤915、融合网关收到微信服务器发送的微信消息后,按照微信协议解析该微信消息,融合网关根据目的端ID号码判断该目的用户所使用的运营商,然后按照所使用的运营商的SM协议对解析后的微信消息进行封装,得到SM消息;Step 915: After receiving the WeChat message sent by the WeChat server, the converged gateway parses the WeChat message according to the WeChat protocol, and the converged gateway determines the operator used by the destination user according to the destination ID number, and then according to the SM protocol of the used carrier. Encapsulating the parsed WeChat message to obtain an SM message;
例如根据目的端ID号码判断目的用户所使用的运营商是中国移动通信集团公司、中国电信集团公司还是中国联合通信集团公司,假设经过判断后发现所使用的运营商是中国移动通信集团公司,然后按照中国移动通信集团公司所使用的CMPP进行封装,然后按照路由转发至中国移动通信集团公司的短信网关;For example, according to the destination ID number, it is judged whether the operator used by the destination user is China Mobile Communications Corporation, China Telecom Group Corporation or China United Communications Group Corporation. It is assumed that after the judgment, the operator used is China Mobile Communications Corporation, and then Encapsulated according to the CMPP used by China Mobile Communications Corporation, and then forwarded to the SMS gateway of China Mobile Communications Corporation according to the route;
步骤916、短信网关收到融合网关的消息后,通过网关内部的处理机制,进行存储、转发到目的用户所属的短信中心,短信中心再下发到目的用户 所使用的目的客户端上面;Step 916: After receiving the message of the converged gateway, the SMS gateway performs the storage and forwarding to the SMS center to which the destination user belongs, and then sends the message center to the destination user. The destination client used above;
步骤917、目的用户收到该SM消息时,在目的端上展现的就是一条普通短信;目的用户阅读过后可以对该SM消息进行回复。回复的SM消息经过短信中心,再上行到短信网关,再路由到融合网关;Step 917: When the destination user receives the SM message, the destination user displays an ordinary short message; the target user can reply to the SM message after reading. The replies to the SM message pass through the SMS center, then go up to the SMS gateway and then route to the converged gateway;
步骤918、融合网关收到SM域的回复的SM消息后,把回复的SM消息进行解包,再按照TCP/UDP协议要求封包,得到微信消息,然后将该微信消息发送给微信服务器,同时设置类别标识,用于表明该微信消息来源于SM用户,且表明是对之前所发送微信消息的回复;Step 918: After receiving the SM message replied by the SM domain, the converged gateway unpacks the replied SM message, and then according to the TCP/UDP protocol request packet, obtains a WeChat message, and then sends the WeChat message to the WeChat server, and simultaneously sets a category identifier, which is used to indicate that the WeChat message is originated from the SM user, and indicates that the message is a reply to the previously sent WeChat message;
步骤919、微信服务器收到融合网关发送的微信消息后,根据本地所保存的手机号码、或者IMEI、或者微信账号,查找到当前微信发送方所在的IP地址映射,再下发到微信客户端上。Step 919: After receiving the WeChat message sent by the converged gateway, the WeChat server searches for the IP address mapping of the current WeChat sender according to the locally saved mobile phone number, or the IMEI or the WeChat account, and then sends the IP address mapping to the WeChat client. .
步骤920、微信客户端收到该微信消息时,直接对该微信消息进行TCP/UDP解包,展现在源端上。Step 920: When the WeChat client receives the WeChat message, the WeChat message is directly unpacked by TCP/UDP, and is displayed on the source end.
实施例十Example ten
本发明实施例提供一种信息处理方法,能够实现IM系统上的文字内容转发到传统SM用户,该方法包括:The embodiment of the invention provides an information processing method, which can implement the text content forwarding on the IM system to the traditional SM user, and the method includes:
步骤1001,融合网关启动,通过登录(login in)消息,登录到IM服务器,此时IM服务器获知融合网关所在的IP地址、端口等信息,建立TCP/UPD链接;Step 1001: The converged gateway starts, and logs in to the IM server by using a login in message. At this time, the IM server learns the IP address and port information of the converged gateway, and establishes a TCP/UPD link.
步骤1002,融合网关通过短信协议以SP与各运营商的短信网关建立链接;Step 1002: The converged gateway establishes a link with the SMS gateway of each operator by using the SP through the short message protocol;
具体以中国的三大运营商来说,参见图10,如果运营商是中国移动集团公司(以下简称移动),则以客户端方式通过登录(CMPP connect)消息和登录响应(connect resp,connect response)消息与SM网关建立链接;Specifically, for the three major operators in China, see Figure 10. If the operator is China Mobile Group Corporation (hereinafter referred to as mobile), the client will pass the CMPP connect message and the login response (connect resp, connect response). The message establishes a link with the SM gateway;
如果运营商是中国电信集团公司(以下简称电信),则以客户端方式通 过登录(SMGP login)消息和登录响应(login resp)消息与SM网关建立链接;If the operator is China Telecom Group Corporation (hereinafter referred to as telecommunications), it will be connected by client. A login (SMGP login) message and a login resp message are used to establish a link with the SM gateway;
如果运营商是中国联合通信集团公司(以下简称联通),则以客户端方式通过登录(SGIP bind)消息和登录响应(bind resp)消息与SM网关建立链接;If the operator is China United Communications Corporation (hereinafter referred to as China Unicom), the client establishes a link with the SM gateway through a login (SGIP bind) message and a login resp message;
这里,移动SM网关和电信SM网关对于融合网关来说,是属于服务端;而联通SM网关与融合网关之间的互为客户端,因此,联通SM网关与融合网关双方互发登录消息和登录响应消息;联通SM网关、电信SM网关和移动SM网关与融合网关之间的关系是由于所使用的协议不同而引起的。Here, the mobile SM gateway and the telecom SM gateway belong to the server for the converged gateway; and the mutual communication between the SM gateway and the converged gateway is a client, so the Unicom SM gateway and the converged gateway mutually send login messages and logins. Response message; the relationship between the Unicom SM Gateway, the Telecom SM Gateway, and the Mobile SM Gateway and the Converged Gateway is due to the different protocols used.
本步骤需要根据运营商具体所使用的协议类型来确定所发送的登录消息的类型,以完成在运营商的SM网关上的登录;对于融合网关向SM网关进行注册也是一样的,需要根据运营商所使用的协议类型来确定所发送的注册消息。In this step, the type of the login message to be sent is determined according to the type of the protocol used by the carrier to complete the login on the SM gateway of the operator. The same is true for the converged gateway to register with the SM gateway. The type of protocol used to determine the registration message sent.
步骤1003,:IM客户端启动,通过login in消息登录到IM服务器,IM客户端与IM服务器之间建立TCP/UDP链接;Step 1003: The IM client starts, logs in to the IM server through a login in message, and establishes a TCP/UDP link between the IM client and the IM server.
此时IM服务器保存所有注册成功的客户端的IM账号、手机号、IP地址等信息,即电话号码(或者IMEI)、IM账号所对应的IP地址映射列表。At this time, the IM server saves information such as the IM account number, the mobile phone number, and the IP address of all successfully registered clients, that is, the phone number (or IMEI) and the IP address mapping list corresponding to the IM account.
步骤1004,IM用户看到有趣的信息想给朋友分享时,选择IM通讯录里的用户进行发送,并在发送目的地址上打上目的用户为IM用户的类别标识;当IM通讯录里面没有所要查找的好友时,可以通过手机通讯录进行选择,然后点击发送,此时在目的地址上打上SM用户的类别标识;Step 1004: When the IM user sees interesting information and wants to share with a friend, the user in the IM address book is selected for sending, and the destination user is marked with the category identifier of the IM user at the destination address; when the IM address book does not have a search When you are a friend, you can select it through the phone address book, and then click Send. At this time, the SM user's category ID is marked on the destination address;
源端发送到IM服务器的消息,起码需要包含以下内容:目的端标识、目的端的类别标识、要分享的数据内容、源端标识;The message sent by the source to the IM server must include at least the following: the destination identifier, the category identifier of the destination, the data content to be shared, and the source identifier.
步骤1005,IM服务器收到源端发送的IM消息时,首先解析目的端类别标识,判断目的用户的属性,如果根据目的端的类别标识判断目的用户 是IM用户,则通过目的用户IM账号所映射的IP地址直接通过TCP/UDP链接,发送该IM消息;如果根据目的端的类别标识判断目的用户是SM用户,则直接转发到融合网关;Step 1005: When receiving the IM message sent by the source, the IM server first parses the destination class identifier, determines the attribute of the destination user, and determines the destination user according to the category identifier of the destination end. If the IM user is an IM user, the IP address mapped by the destination user IM account is directly sent through the TCP/UDP link, and the IM message is sent; if the destination user is determined to be the SM user according to the category identifier of the destination end, the IP address is directly forwarded to the converged gateway;
这里,IM服务器发送到目的端的IM消息,需要包含以下信息:目的标识、数据内容、源端标识;Here, the IM message sent by the IM server to the destination end needs to include the following information: the destination identifier, the data content, and the source identifier;
步骤1006,融合网关收到IM服务器发送的IM消息时,按照IM协议解析该IM消息,提取目的端标识;Step 1006: When receiving the IM message sent by the IM server, the converged gateway parses the IM message according to the IM protocol, and extracts the destination end identifier.
融合网关本地需要保存一张包含所有运营商的全网号段表,例如,为了以区分中国三大运营商,需要在融合网关保存三大运营商的全网号段表;根据提取的目的端的标识到号段表里面进行最长匹配运算,如果是电信号码,则把消息按照SMGP submit消息进行封装;如果是联通号码,则把消息按照SGIP submit消息进行封装;如果是移动号码,则把消息按照CMPP submit消息进行封装。The converged gateway needs to save a whole network segment table containing all operators. For example, in order to distinguish the three major operators in China, it is necessary to save the entire network number segment table of the three major operators in the converged gateway; according to the extracted destination end The longest matching operation is performed in the identifier to the number segment table. If it is a telecommunication number, the message is encapsulated according to the SMGP submit message; if it is a Unicom number, the message is encapsulated according to the SGIP submit message; if it is a mobile number, the message is sent. Encapsulation according to the CMPP submit message.
对于提取的源端标识,此时是一个IM账号,融合网关在SM网关分配的基本接入号上面进行扩展,给此IM账号再分配一个唯一的子接入号,在封装SM消息时,并把该源端的IM账号对应的子接入号填写到源号码字段,同时,融合网关需要保存一张子接入号和IM账号的映射表,该映射表至少包括以下内容:融合网关唯一分配的子接入号、IM账号;For the extracted source identifier, this is an IM account, and the converged gateway expands on the basic access number assigned by the SM gateway, and then assigns a unique sub-access number to the IM account, when the SM message is encapsulated, and The sub-access number corresponding to the IM account of the source is filled in the source number field. At the same time, the converged gateway needs to save a mapping table of the sub-access number and the IM account. The mapping table includes at least the following content: the only one allocated by the converged gateway. Sub-access number, IM account number;
由于目的用户可以选择回复接收到的消息,也可以选择不回复所接收到的消息,因此,融合网关内部保存的子接入号映射关系,可以设置一个有效期,此有效期例如可以为72小时。对于保存时间超过72小时的映射记录,直接删除。The destination user can choose to reply to the received message, and can also choose not to reply to the received message. Therefore, the sub-access number mapping relationship saved in the converged gateway can be set to an expiration date, which can be, for example, 72 hours. For mapped records that have been saved for more than 72 hours, delete them directly.
本步骤中,如果需要还可以在短信内容后面加签名,把源端的IM账号以签名的方式添加到SM消息中。In this step, if necessary, a signature may be added after the content of the short message, and the IM account at the source end is added to the SM message by signature.
步骤1007,由于融合网关以SP身份与SM网关建链,因此在SM网关 上需要给融合网关开通账号、配置路由等;Step 1007, since the converged gateway establishes a chain with the SM gateway by the SP identity, the SM gateway is The account needs to be opened to the converged gateway, and routes are configured.
SM网关收到融合网关发送的SM消息过后,通过目的端标识获取路由,经过鉴权等一些列网关内部处理,该SM消息最终以submit消息下发到目的用户所属的短信中心;After receiving the SM message sent by the converged gateway, the SM gateway obtains the route through the destination end identifier, and after processing, the SM message is sent to the SMS center to which the destination user belongs by using the submit message.
步骤1008,运营商的短信中心收到此SM消息过后,再通过无线侧接口,SM消息下发到目的端;Step 1008: After receiving the SM message, the SMS center of the operator sends the SM message to the destination end through the wireless side interface.
步骤1009,目的用户查看此SM消息过后,如果选择回复,则目的用户编辑的内容以SM的方式通过无线侧原路返回到所属的短信中心;Step 1009: After the target user views the SM message, if the reply is selected, the content edited by the destination user is returned to the associated short message center by the wireless side in the manner of SM;
步骤1010,短信中心收到SM用户发送的SM消息过后,以deliver消息转发给SM网关;Step 1010: After receiving the SM message sent by the SM user, the short message center forwards the message to the SM gateway by using a deliver message.
步骤1011,SM网关收到SM消息过后,根据该SM消息中所携带的源端标识最长匹配方式查找路由,此时路由指到融合网关;Step 1011: After receiving the SM message, the SM gateway searches for a route according to the longest matching manner of the source end identifier carried in the SM message, and the route refers to the converged gateway.
如果该SM网关是电信网关,则以SMGP deliver消息下发给融合网关;If the SM gateway is a telecommunication gateway, the SMGP deliver message is sent to the converged gateway;
如果该SM网关是联通网关,则以SGIP submit消息下发给融合网关;If the SM gateway is a Unicom gateway, the SGIP submit message is sent to the converged gateway;
如果该SM网关是移动网关,则以CMPP deliver消息下发给融合网关。If the SM gateway is a mobile gateway, the CMPP deliver message is sent to the converged gateway.
步骤1012,融合网关收到SM网关的SM消息过后,根据源端标识在子接入号表里面查找,找到此子接入号所对应的IM账号,则按照IM封装过后,以IM消息发送给IM服务器;Step 1012: After receiving the SM message of the SM gateway, the converged gateway searches the sub-access number table according to the source identifier, and finds the IM account corresponding to the sub-access number, and then sends the IM message to the IM message according to the IM encapsulation. IM server;
步骤1013,IM服务器收到IM消息过后直接根据所携带的源端标识(此时为一个IM账号),查找所对应的I IP地址,直接转发IM消息到对应的客户端上;Step 1013: After receiving the IM message, the IM server directly searches for the corresponding IP address according to the source identifier (in this case, an IM account), and directly forwards the IM message to the corresponding client.
步骤1014,此时客户端用户在界面上,能看到短信用户回复的消息内容。Step 1014, at this time, the client user can see the message content replied by the SMS user on the interface.
以上本发明实施例提供的技术方案,IM用户在使用IM工具或IM应用时,能直接将文字内容转发给普通SM用户的方法。 The technical solution provided by the embodiment of the present invention is a method for an IM user to directly forward text content to an ordinary SM user when using an IM tool or an IM application.
进一步地,本发明上述实施例五至十提供的技术方案,只需要对IM应用、IM服务器进行稍微改造;并在IM服务器与SM网关之间增加一个具有协议转换和路由功能的融合网关,其中,对IM应用的改造是指能够使用户通过IM应用从通讯录添加目的用户;对IM服务器的改造是指,当IM服务器判断目的用户不是IM用户时,直接将接收到的IM消息转发给融合网关;上述实施例五至十提供的技术方案对现有的IM域和SM域中的设备的改动极小,因此具有成本低、易于实现的特点。Further, the technical solutions provided by the foregoing Embodiments 5 to 10 of the present invention only need to slightly modify the IM application and the IM server; and add a converged gateway with protocol conversion and routing functions between the IM server and the SM gateway, where The modification of the IM application means that the user can add the destination user from the address book through the IM application; the modification of the IM server means that when the IM server determines that the destination user is not an IM user, directly forwards the received IM message to the fusion. The technical solutions provided in the foregoing embodiments 5 to 10 have minimal changes to the existing IM domain and the devices in the SM domain, and thus have the characteristics of low cost and easy implementation.
本发明实施例中,如果以软件功能模块的形式实现上述的信息处理方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。In the embodiment of the present invention, if the above information processing method is implemented in the form of a software function module and sold or used as a stand-alone product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明实施例再提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行本发明各实施例中提供的信息处理方法。Correspondingly, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the information processing method provided in the embodiments of the present invention.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.
工业实用性Industrial applicability
本发明实施例中,接收按照第一协议封装的第一消息;按照所述第一 协议解析所述第一消息,得到第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;确定所述第一类别标识与所述第二类别标识不同时,按照所述第二类别标识所对应的协议将所述第一数据内容、第一标识封装,得到第二消息;按照所述第二标识将所述第二消息发出;采用本发明实施例的技术方案,能够使IM用户与SM用户之间进行即时快速地信息内容分享。 In the embodiment of the present invention, the first message encapsulated according to the first protocol is received; The protocol parses the first message, and obtains a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier; and when determining that the first category identifier is different from the second category identifier, The protocol corresponding to the second category identifier encapsulates the first data content and the first identifier to obtain a second message; the second message is sent according to the second identifier; and the technical solution of the embodiment of the present invention is adopted. It enables instant and fast information content sharing between IM users and SM users.

Claims (24)

  1. 一种信息处理方法,所述方法包括:An information processing method, the method comprising:
    接收按照第一协议封装的第一消息,所述第一消息中携带有第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;Receiving a first message encapsulated according to the first protocol, where the first message carries a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier;
    按照所述第一协议解析所述第一消息,得到第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;Parsing the first message according to the first protocol, to obtain a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier;
    确定所述第一类别标识与所述第二类别标识不同时,按照所述第二类别标识所对应的协议将所述第一数据内容、第一标识封装,得到第二消息;When the first category identifier is different from the second category identifier, the first data content and the first identifier are encapsulated according to the protocol corresponding to the second category identifier, to obtain a second message;
    按照所述第二标识将所述第二消息发出。The second message is sent according to the second identifier.
  2. 根据权利要求1所述的方法,其中,所述第一数据内容为第一用户发送给第二用户的数据内容;所述第一标识为所述用户使用的第一客户端的身份识别ID号码或所述第一用户在所述第一客户端上使用的即时通讯IM账号,所述第二标识为所述第二用户使用的第二客户端的ID号码或所述第二用户在所述第二客户端上使用的IM账号;所述第一类别标识用于表明所述第一用户为所述第一协议用户还是所述第二协议用户,所述第二类别标识用于表明所述第二用户为所述第一协议用户还是所述第二协议用户。The method according to claim 1, wherein the first data content is data content sent by the first user to the second user; the first identifier is an identification ID number of the first client used by the user or The instant messaging IM account used by the first user on the first client, the second identifier is an ID number of the second client used by the second user, or the second user is in the second An IM account used on the client; the first category identifier is used to indicate whether the first user is the first protocol user or the second protocol user, and the second category identifier is used to indicate the second The user is the first protocol user or the second protocol user.
  3. 根据权利要求1所述的方法,其中,所述第一协议为短信SM协议或IM协议;对应地,所述第二协议为IM协议或SM协议。The method according to claim 1, wherein the first protocol is a short message SM protocol or an IM protocol; correspondingly, the second protocol is an IM protocol or an SM protocol.
  4. 根据权利要求3所述的方法,其中,当所述第一协议为IM协议、所述第二协议为SM协议,且所述第一客户端为源端、所述第二客户端为目的端时,对应地,The method according to claim 3, wherein when the first protocol is an IM protocol, the second protocol is an SM protocol, and the first client is a source end and the second client is a destination end Time, correspondingly,
    所述第一用户为IM用户,所述第二用户为SM用户;The first user is an IM user, and the second user is an SM user;
    所述第一数据内容为IM用户发送给SM用户的数据内容; The first data content is data content sent by the IM user to the SM user;
    所述第一消息为第一IM消息,所述第二消息为第一SM消息;The first message is a first IM message, and the second message is a first SM message;
    所述第一标识为所述IM用户在所述源端上使用的IM账号,所述第二标识为目的端的ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The first identifier is an IM account used by the IM user on the source end, and the second identifier is an ID number of the destination end or an IM account used by the user holding the destination end on the destination end;
    所述第一类别标识为IM用户的标识,所述第二类别标识为IM用户或SM用户的标识;The first category identifier is an identifier of an IM user, and the second category identifier is an identifier of an IM user or an SM user.
    对应地,所述接收按照第一协议封装的第一消息,为:Correspondingly, the receiving the first message encapsulated according to the first protocol is:
    接收IM用户通过源端按照所述IM协议封装的第一IM消息,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识;Receiving, by the source end, the first IM message encapsulated by the source end according to the IM protocol, where the first IM message carries the first data content, the IM account used by the IM user on the source end, and the destination end identifier And the category identifier of the destination;
    其中,所述目的端的类别标识用于表明持有目的端的用户为SM用户还是IM用户;目的端标识为目的端的ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is an SM user or an IM user; the destination end identifier is an ID number of the destination end or an IM account used by the user holding the destination end on the destination end;
    所述按照所述第一协议解析所述第一消息,得到第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识,为:按照IM协议解析所述第一IM消息,得到所述第一数据内容、所述IM账号、所述目的端的标识和所述目的端的类别标识;Parsing the first message according to the first protocol, and obtaining the first data content, the first identifier, the second identifier, the first category identifier, and the second category identifier, where the first IM is parsed according to the IM protocol. a message, where the first data content, the IM account number, the identifier of the destination end, and the category identifier of the destination end are obtained;
    所述确定所述第一类别标识与所述第二类别标识不同时,按照所述第二类别标识所对应的协议将所述第一数据内容、第一标识封装,得到第二消息,为:根据所述目的端的类别标识确定持有所述目的端的用户为SM用户时,将所述IM账号和所述第一数据内容按照SM协议进行封装,得到第一SM消息;When the determining that the first category identifier is different from the second category identifier, the first data content and the first identifier are encapsulated according to the protocol corresponding to the second category identifier, and the second message is obtained, where: Determining, according to the category identifier of the destination end, that the user holding the destination end is an SM user, encapsulating the IM account and the first data content according to an SM protocol, to obtain a first SM message;
    所述按照所述第二标识将所述第二消息发出,为:按照所述目标端的标识将所述第一SM消息发出。Sending, by the second identifier, the second message, according to the identifier of the target end, sending the first SM message.
  5. 根据权利要求4所述的方法,其中,所述方法包括: The method of claim 4 wherein said method comprises:
    接收按照SM协议封装并作为回复所述第一SM消息的第二SM消息,所述第二SM消息中携带有第二数据内容和所述子标识;Receiving, by the SM protocol, a second SM message that is replied to the first SM message, where the second SM message carries the second data content and the sub-identity;
    按照SM协议解析所述第二SM消息,得到第二数据内容和所述子标识;Parsing the second SM message according to the SM protocol, to obtain the second data content and the sub-identity;
    根据所述子标识,查找预设的关于IM账号与子标识的映射关系表,得到与所述子标识对应的IM账号;And searching, according to the sub-identification, a preset mapping relationship table between the IM account and the sub-identity, and obtaining an IM account corresponding to the sub-ID;
    将所述目的端标识和第二数据内容按照IM协议封装,得到第二IM消息;Encapsulating the destination end identifier and the second data content according to an IM protocol to obtain a second IM message;
    按照所述IM账号将所述第二IM消息发送给所述源端。Sending the second IM message to the source according to the IM account.
  6. 根据权利要求4或5所述的方法,其中,所述SM信息中包括源端的标识信息字段,对应地,所述将所述IM账号和所述第一数据内容以SM协议进行封装,得到第一SM消息,包括:The method according to claim 4 or 5, wherein the SM information includes an identification information field of the source end, and correspondingly, the IM account and the first data content are encapsulated by an SM protocol to obtain a first An SM message, including:
    对所述IM账号分配对应的子标识,并将所述子标识写入所述SM消息的源端的标识信息字段;Allocating a corresponding sub-ID to the IM account, and writing the sub-ID to an identifier information field of the source end of the SM message;
    根据所述目标端的标识确定所述目标端的标识所属的运营商;Determining, according to the identifier of the target end, an operator to which the identifier of the target end belongs;
    根据所述运营商所使用的短信协议封装,所述IM账号和所述第一数据内容,得到第一SM消息。The first SM message is obtained according to the short message protocol encapsulation used by the operator, the IM account number and the first data content.
  7. 一种信息处理装置,所述装置包括第一接收单元、第一解析单元、第一封装单元和第一发送单元,其中:An information processing apparatus, the apparatus comprising a first receiving unit, a first parsing unit, a first encapsulating unit and a first transmitting unit, wherein:
    所述第一接收单元,配置为接收按照第一协议封装的第一消息,所述第一消息中携带有第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;The first receiving unit is configured to receive a first message encapsulated according to the first protocol, where the first message carries a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier. ;
    所述第一解析单元,配置为按照所述第一协议解析所述第一消息,得到第一数据内容、第一标识、第二标识、第一类别标识和第二类别标识;The first parsing unit is configured to parse the first message according to the first protocol, to obtain a first data content, a first identifier, a second identifier, a first category identifier, and a second category identifier;
    所述第一封装单元,配置为确定所述第一类别标识与所述第二类别标识不同时,按照所述第二类别标识所对应的协议将所述第一数据内容、第 一标识封装,得到第二消息;The first encapsulating unit is configured to: when the first category identifier is different from the second category identifier, the first data content, the first data content according to a protocol corresponding to the second category identifier An identity encapsulation to obtain a second message;
    所述第一发送单元,配置为按照所述第二标识将所述第二消息发出。The first sending unit is configured to send the second message according to the second identifier.
  8. 根据权利要求7所述的装置,其中,所述第一数据内容为第一用户发送给第二用户的数据内容;所述第一标识为所述用户使用的第一客户端的ID号码或所述第一用户在所述第一客户端上使用的IM账号,所述第二标识为所述第二用户使用的第二客户端的ID号码或所述第二用户在所述第二客户端上使用的IM账号;所述第一类别标识用于表明所述第一用户为所述第一协议用户还是所述第二协议用户,所述第二类别标识用于表明所述第二用户为所述第一协议用户还是所述第二协议用户。The apparatus according to claim 7, wherein the first data content is data content sent by the first user to the second user; the first identifier is an ID number of the first client used by the user or the An IM account used by the first user on the first client, the second identifier is an ID number of the second client used by the second user, or the second user is used on the second client The first category identifier is used to indicate whether the first user is the first protocol user or the second protocol user, and the second category identifier is used to indicate that the second user is the The first protocol user is also the second protocol user.
  9. 根据权利要求7所述的装置,其中,当所述第一协议为IM协议、所述第二协议为SM协议,且所述第一客户端为源端、所述第二客户端为目的端时,对应地,The device according to claim 7, wherein when the first protocol is an IM protocol, the second protocol is an SM protocol, and the first client is a source end and the second client is a destination end Time, correspondingly,
    所述第一用户为IM用户,所述第二用户为SM用户;The first user is an IM user, and the second user is an SM user;
    所述第一数据内容为IM用户发送给SM用户的数据内容;The first data content is data content sent by the IM user to the SM user;
    所述第一消息为第一IM消息,所述第二消息为第一SM消息;The first message is a first IM message, and the second message is a first SM message;
    所述第一标识为所述IM用户在所述源端上使用的IM账号,所述第二标识为目的端的ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The first identifier is an IM account used by the IM user on the source end, and the second identifier is an ID number of the destination end or an IM account used by the user holding the destination end on the destination end;
    所述第一类别标识为IM用户的标识,所述第二类别标识为IM用户或SM用户的标识;The first category identifier is an identifier of an IM user, and the second category identifier is an identifier of an IM user or an SM user.
    对应地,所述第一接收单元,配置为接收IM用户通过源端、按照所述IM协议封装并发送给目的端的第一IM消息,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识;Correspondingly, the first receiving unit is configured to receive a first IM message that is encapsulated by the IM user and is sent to the destination end according to the IM protocol, where the first IM message carries the first data content and the An IM account, a destination end identifier, and a category identifier of the destination end used by the IM user on the source end;
    其中,所述目的端的类别标识用于表明持有目的端的用户为短信SM用 户还是IM用户;目的端标识为目的端的身份识别ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate that the user holding the destination end is used for the SMS SM. The user is still an IM user; the destination end is identified as the identity ID number of the destination end or the IM account used by the user holding the destination end on the destination end;
    对应地,所述第一解析单元,配置为按照IM协议解析所述第一IM消息,得到所述第一数据内容、所述IM账号、所述目的端的标识和所述目的端的类别标识;Correspondingly, the first parsing unit is configured to parse the first IM message according to the IM protocol, and obtain the first data content, the IM account, the identifier of the destination end, and the category identifier of the destination end;
    对应地,所述第一封装单元,配置为根据所述目的端的类别标识确定持有所述目的端的用户为SM用户时,将所述IM账号和所述第一数据内容按照SM协议进行封装,得到第一SM消息;Correspondingly, the first encapsulating unit is configured to, according to the category identifier of the destination end, determine that the user who holds the destination end is an SM user, and encapsulate the IM account and the first data content according to an SM protocol. Obtaining a first SM message;
    对应地,所述第一发送单元,配置为按照所述目标端的标识将所述第一SM消息发出。Correspondingly, the first sending unit is configured to send the first SM message according to the identifier of the target end.
  10. 根据权利要求9所述的装置,其中,所述装置还包括第三接收单元、第三解析单元、第一查找单元、第三封装单元和第三发送单元,其中:The apparatus of claim 9, wherein the apparatus further comprises a third receiving unit, a third parsing unit, a first searching unit, a third encapsulating unit, and a third transmitting unit, wherein:
    所述第三接收单元,配置为接收按照SM协议封装并作为回复所述第一SM消息的第二SM消息,所述第二SM消息中携带有第二数据内容和所述子标识;The third receiving unit is configured to receive a second SM message encapsulated according to the SM protocol and replied to the first SM message, where the second SM message carries the second data content and the sub-identifier;
    所述第三解析单元,配置为按照SM协议解析所述第二SM消息,得到第二数据内容和所述子标识;The third parsing unit is configured to parse the second SM message according to the SM protocol to obtain a second data content and the sub-identity;
    所述第一查找单元,配置为根据所述子标识,查找预设的关于IM账号与子标识的映射关系表,得到与所述子标识对应的IM账号;The first searching unit is configured to search, according to the sub-identification, a preset mapping relationship table between the IM account and the sub-identity, and obtain an IM account corresponding to the sub-ID;
    所述第三封装单元,配置为将所述目的端标识和第二数据内容按照IM协议封装,得到第二IM消息;The third encapsulating unit is configured to encapsulate the destination end identifier and the second data content according to an IM protocol to obtain a second IM message.
    所述第三发送单元,配置为按照所述IM账号将所述第二IM消息发送给所述源端。The third sending unit is configured to send the second IM message to the source end according to the IM account.
  11. 根据权利要求10所述的装置,其中,所述SM信息中包括源端的标识信息字段,对应地,所述第一封装单元包括第一分配模块、第一写入 模块、第一确定模块和第一封装模块,其中:The device according to claim 10, wherein the SM information includes an identification information field of the source end, and correspondingly, the first encapsulation unit includes a first allocation module, and the first write a module, a first determining module, and a first encapsulating module, wherein:
    所述第一分配模块,配置为对所述IM账号分配对应的子标识;The first allocation module is configured to allocate a corresponding sub-ID to the IM account;
    所述第一写入模块,配置为将所述子标识写入所述SM消息的源端的标识信息字段;The first writing module is configured to write the sub-identity into an identification information field of a source end of the SM message;
    所述第一确定模块,配置为根据所述目标端的标识确定所述目标端的标识所属的运营商;The first determining module is configured to determine, according to the identifier of the target end, an operator to which the identifier of the target end belongs;
    所述第一封装模块,配置为根据所述运营商所使用的短信协议封装,所述IM账号和所述第一数据内容,得到第一SM消息。The first encapsulating module is configured to encapsulate, according to the short message protocol used by the operator, the IM account and the first data content, to obtain a first SM message.
  12. 一种信息处理方法,所述方法包括:An information processing method, the method comprising:
    IM服务器接收IM用户通过源端、按照所述IM协议封装并发送给目的端的第一IM消息,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识;The IM server receives the first IM message that the IM user encapsulates and sends to the destination end according to the IM protocol, and the first IM message carries the first data content, and the IM user uses the source end. IM account number, destination end identifier, and category identifier of the destination end;
    其中,所述目的端的类别标识用于表明持有目的端的用户为短信SM用户还是IM用户;目的端标识为目的端的身份识别ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
    IM服务器按照IM协议解析所述第一IM消息,得到所述目的端的类别标识;The IM server parses the first IM message according to the IM protocol, and obtains the category identifier of the destination end;
    IM服务器根据所述目的端的类别标识确定持有所述目的端的用户为SM用户时,将所述第一IM消息发出。The IM server sends the first IM message when the user who holds the destination is an SM user according to the category identifier of the destination.
  13. 根据权利要求12所述的方法,其中,所述方法还包括:IM服务器根据所述目的端的类别标识确定持有所述目的端的用户为IM用户时,按照所述目标端的标识转发所述第一IM消息给所述目的端。The method according to claim 12, wherein the method further comprises: when the IM server determines, according to the category identifier of the destination end, that the user holding the destination end is an IM user, forwarding the first according to the identifier of the target end An IM message is sent to the destination.
  14. 根据权利要求12或13所述的方法,其中,所述方法还包括:The method of claim 12 or 13, wherein the method further comprises:
    IM服务器接收按照SM协议封装并作为回复所述第一IM消息的第二IM消息,所述第二IM消息中携带有所述目的端标识、所述IM账号和第 二数据内容;The IM server receives the second IM message that is encapsulated in the SM protocol and is used to reply to the first IM message, where the second IM message carries the destination identifier, the IM account, and the Second data content;
    将所述第二IM消息发送给所述IM账号。Sending the second IM message to the IM account.
  15. 一种信息处理方法,所述方法包括:An information processing method, the method comprising:
    融合网关接收IM服务器发送的第一IM消息,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识;The convergence gateway receives the first IM message sent by the IM server, where the first IM message carries the first data content, the IM account used by the IM user on the source end, the destination end identifier, and the category identifier of the destination end;
    其中,所述目的端的类别标识用于表明持有目的端的用户为短信SM用户还是IM用户;目的端标识为目的端的身份识别ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
    融合网关按照IM协议解析所述第一IM消息,得到所述第一数据内容、所述IM账号和目的端的标识;The converged gateway parses the first IM message according to the IM protocol, and obtains the identifier of the first data content, the IM account, and the destination end;
    融合网关将所述IM账号和所述第一数据内容按照SM协议进行封装,得到第一SM消息;The converged gateway encapsulates the IM account and the first data content according to the SM protocol to obtain a first SM message.
    融合网关按照所述目标端的标识将所述第一SM消息发出。The converged gateway sends the first SM message according to the identifier of the target end.
  16. 根据权利要求15所述的方法,其中,所述SM信息中包括源端的标识信息字段,对应地,所述融合网关将所述IM账号和所述第一数据内容以SM协议进行封装,得到第一SM消息,包括:The method according to claim 15, wherein the SM information includes an identification information field of the source end, and correspondingly, the converged gateway encapsulates the IM account and the first data content by using an SM protocol to obtain a An SM message, including:
    融合网关对所述IM账号分配对应的子标识,并将所述子标识写入所述SM消息的源端的标识信息字段;The converged gateway allocates a corresponding sub-identity to the IM account, and writes the sub-identity into an identifier information field of the source end of the SM message;
    融合网关根据所述目标端的标识确定所述目标端的标识所属的运营商;The convergence gateway determines, according to the identifier of the target end, an operator to which the identifier of the target end belongs;
    融合网关根据所述运营商所使用的短信协议封装,所述IM账号和所述第一数据内容,得到第一SM消息。The converged gateway encapsulates the IM account and the first data content according to the short message protocol used by the operator to obtain a first SM message.
  17. 根据权利要求15所述的方法,其中,所述融合网关按照所述目标端的标识将所述第一SM消息发出,包括: The method of claim 15, wherein the converged gateway sends the first SM message according to the identifier of the target end, including:
    融合网关按照所述目标端的标识将所述SM消息发送给所述目的端;或者,The converged gateway sends the SM message to the destination end according to the identifier of the target end; or
    融合网关将所述SM消息发送给所述运营商的SM网关。The converged gateway sends the SM message to the SM gateway of the operator.
  18. 根据权利要求15至17任一项所述的方法,其中,所述方法包括:The method of any one of claims 15 to 17, wherein the method comprises:
    融合网关接收按照SM协议封装并作为回复所述第一SM消息的第二SM消息,所述第二SM消息中携带有第二数据内容和所述子标识;The converged gateway receives the second SM message encapsulated in the SM protocol and is used to reply to the first SM message, where the second SM message carries the second data content and the sub-identity;
    融合网关按照SM协议解析所述第二SM消息,得到第二数据内容和所述子标识;The converged gateway parses the second SM message according to the SM protocol, to obtain the second data content and the sub-identity;
    融合网关根据所述子标识,查找预设的关于IM账号与子标识的映射关系表,得到与所述子标识对应的IM账号;The converged gateway searches for a preset mapping relationship table between the IM account and the sub-identity according to the sub-identification, and obtains an IM account corresponding to the sub-identity;
    融合网关将所述目的端标识、所述IM账号和第二数据内容按照IM协议封装,得到第二IM消息;The convergence gateway encapsulates the destination end identifier, the IM account, and the second data content according to an IM protocol to obtain a second IM message.
    融合网关将所述第二IM消息发送给IM服务器,所述第二IM消息作为对所述第一IM消息的回复。The converged gateway sends the second IM message to the IM server, and the second IM message acts as a reply to the first IM message.
  19. 一种即时通讯服务器,所述服务器包括第四接收单元、第四解析单元和第四发送单元,其中:An instant messaging server, the server comprising a fourth receiving unit, a fourth parsing unit and a fourth sending unit, wherein:
    所述第四发送单元,配置为接收IM用户通过源端、按照所述IM协议封装并发送给目的端的第一IM消息,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识;The fourth sending unit is configured to receive a first IM message that is encapsulated by the IM user and is sent to the destination end according to the IM protocol, where the first IM message carries the first data content and the IM user. The IM account number, the destination end identifier, and the category identifier of the destination end used on the source end;
    其中,所述目的端的类别标识用于表明持有目的端的用户为短信SM用户还是IM用户;目的端标识为目的端的身份识别ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
    所述第四解析单元,配置为按照IM协议解析所述第一IM消息,得到所述目的端的类别标识; The fourth parsing unit is configured to parse the first IM message according to an IM protocol, and obtain a category identifier of the destination end;
    所述第四发送单元,配置为根据所述目的端的类别标识确定持有所述目的端的用户为SM用户时,将所述第一IM消息发出。The fourth sending unit is configured to: when the user holding the destination end is an SM user, according to the category identifier of the destination end, send the first IM message.
  20. 根据权利要求19所述的即时通讯服务器,其中,所述即时通讯服务器还包括第五接收单元和第五发送单元,其中:The instant messaging server according to claim 19, wherein said instant messaging server further comprises a fifth receiving unit and a fifth transmitting unit, wherein:
    所述第五接收单元,配置为接收按照SM协议封装并作为回复所述第一IM消息的第二IM消息,所述第二IM消息中携带有所述目的端标识、所述IM账号和第二数据内容;The fifth receiving unit is configured to receive a second IM message that is encapsulated according to the SM protocol and is used to reply to the first IM message, where the second IM message carries the destination identifier, the IM account, and the first Second data content;
    所述第五发送单元,配置为将所述第二IM消息发送给所述IM账号。The fifth sending unit is configured to send the second IM message to the IM account.
  21. 一种融合网关,所述融合网关包括第六接收单元、第六解析单元、第六封装单元和第六发送单元,其中:A converged gateway, where the converged gateway includes a sixth receiving unit, a sixth parsing unit, a sixth encapsulating unit, and a sixth sending unit, where:
    所述第六接收单元,配置为接收IM服务器发送的第一IM消息,所述第一IM消息中携带有第一数据内容、所述IM用户在所述源端上使用的IM账号、目的端标识和目的端的类别标识;The sixth receiving unit is configured to receive the first IM message sent by the IM server, where the first IM message carries the first data content, the IM account used by the IM user on the source end, and the destination end Identification and category identification of the destination;
    其中,所述目的端的类别标识用于表明持有目的端的用户为短信SM用户还是IM用户;目的端标识为目的端的身份识别ID号码或者持有目的端的用户在所述目的端上使用的IM账号;The category identifier of the destination end is used to indicate whether the user holding the destination end is a short message SM user or an IM user; the destination end identifier is an identity identification ID number of the destination end or an IM account used by the user holding the destination end on the destination end. ;
    所述第六解析单元,配置为按照IM协议解析所述第一IM消息,得到所述第一数据内容、所述IM账号和目的端的标识;The sixth parsing unit is configured to parse the first IM message according to the IM protocol, and obtain the identifier of the first data content, the IM account, and the destination end;
    所述第六封装单元,配置为将所述IM账号和所述第一数据内容按照SM协议进行封装,得到第一SM消息;The sixth encapsulating unit is configured to encapsulate the IM account and the first data content according to an SM protocol to obtain a first SM message.
    所述第六发送单元,配置为按照所述目标端的标识将所述第一SM消息发出。The sixth sending unit is configured to send the first SM message according to the identifier of the target end.
  22. 根据权利要求21所述的融合网关,其中,所述SM信息中包括源端的标识信息字段,对应地,所述第六封装单元包括第二分配模块、第二写入模块、第二确定模块和第二封装模块,其中: The convergence gateway according to claim 21, wherein the SM information includes an identification information field of the source end, and correspondingly, the sixth encapsulation unit includes a second allocation module, a second writing module, a second determining module, and a second package module, wherein:
    所述第二分配模块,配置为对所述IM账号分配对应的子标识;The second allocation module is configured to allocate a corresponding sub-ID to the IM account;
    所述第二写入模块,配置为将所述子标识写入所述SM消息的源端的标识信息字段;The second writing module is configured to write the sub-identity into an identification information field of a source end of the SM message;
    所述第二确定模块,配置为根据所述目标端的标识确定所述目标端的标识所属的运营商;The second determining module is configured to determine, according to the identifier of the target end, an operator to which the identifier of the target end belongs;
    所述第二封装模块,配置为根据所述运营商所使用的短信协议封装,所述IM账号和所述第一数据内容,得到第一SM消息。The second encapsulating module is configured to encapsulate, according to the short message protocol used by the operator, the IM account and the first data content, to obtain a first SM message.
  23. 根据权利要求21或22所述的融合网关,其中,所述融合网关包括第七接收单元、第七解析单元、第二查找单元、第七封装单元和第七发送单元,其中:The converged gateway according to claim 21 or 22, wherein the converged gateway comprises a seventh receiving unit, a seventh parsing unit, a second searching unit, a seventh encapsulating unit and a seventh transmitting unit, wherein:
    所述第七接收单元,配置为接收按照SM协议封装并作为回复所述第一SM消息的第二SM消息,所述第二SM消息中携带有第二数据内容和所述子标识;The seventh receiving unit is configured to receive a second SM message that is encapsulated according to the SM protocol and is used to reply to the first SM message, where the second SM message carries the second data content and the sub-identity;
    所述第七解析单元,配置为按照SM协议解析所述第二SM消息,得到第二数据内容和所述子标识;The seventh parsing unit is configured to parse the second SM message according to the SM protocol, to obtain the second data content and the sub-identifier;
    所述第二查找单元,配置为根据所述子标识,查找预设的关于IM账号与子标识的映射关系表,得到与所述子标识对应的IM账号;The second searching unit is configured to search, according to the sub-identification, a preset mapping relationship table between the IM account and the sub-identity, and obtain an IM account corresponding to the sub-ID;
    所述第七封装单元,配置为将所述目的端标识、所述IM账号和第二数据内容按照IM协议封装,得到第二IM消息;The seventh encapsulating unit is configured to encapsulate the destination end identifier, the IM account, and the second data content according to an IM protocol to obtain a second IM message.
    所述第七发送单元,配置为将所述第二IM消息发送给IM服务器,所述第二IM消息作为对所述第一IM消息的回复。The seventh sending unit is configured to send the second IM message to the IM server, where the second IM message is used as a reply to the first IM message.
  24. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1至6任一项所述的信息处理方法,和/或,A computer storage medium having stored therein computer executable instructions for performing the information processing method of any one of claims 1 to 6, and/or
    该计算机可执行指令用于执行权利要求12至14任一项所述的信息处 理方法,The computer executable instructions for performing the information at any one of claims 12 to 14 Method,
    和/或,and / or,
    该计算机可执行指令用于执行权利要求15至18任一项所述的信息处理方法。 The computer executable instructions are for performing the information processing method according to any one of claims 15 to 18.
PCT/CN2014/083328 2014-06-10 2014-07-30 Information processing method and apparatus, im server, convergence gateway, and storage medium WO2015131478A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410256410.2A CN105227427A (en) 2014-06-10 2014-06-10 A kind of information processing method and device, instant communication server, Convergence gateway
CN201410256410.2 2014-06-10

Publications (1)

Publication Number Publication Date
WO2015131478A1 true WO2015131478A1 (en) 2015-09-11

Family

ID=54054415

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/083328 WO2015131478A1 (en) 2014-06-10 2014-07-30 Information processing method and apparatus, im server, convergence gateway, and storage medium

Country Status (2)

Country Link
CN (1) CN105227427A (en)
WO (1) WO2015131478A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242549B (en) * 2022-09-21 2023-04-07 佛山市元亨利贞信息科技有限公司 Data security sharing method, device, equipment and medium based on open protocol

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2107741A1 (en) * 2008-03-31 2009-10-07 Nokia Siemens Networks Oy Interworking between messaging services
CN101971584A (en) * 2008-02-06 2011-02-09 高通股份有限公司 Method and apparatus for delivery confirmation of a message
CN102150443A (en) * 2008-09-15 2011-08-10 微软公司 System and methods for communication between instant message users and short message service users
CN102238495A (en) * 2010-04-20 2011-11-09 上海博路信息技术有限公司 System for intercommunicating short messages and instant messages (IM)
US20130040670A1 (en) * 2001-05-03 2013-02-14 Kyocera Corporation Instant messaging to a mobile device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130040670A1 (en) * 2001-05-03 2013-02-14 Kyocera Corporation Instant messaging to a mobile device
CN101971584A (en) * 2008-02-06 2011-02-09 高通股份有限公司 Method and apparatus for delivery confirmation of a message
EP2107741A1 (en) * 2008-03-31 2009-10-07 Nokia Siemens Networks Oy Interworking between messaging services
CN102150443A (en) * 2008-09-15 2011-08-10 微软公司 System and methods for communication between instant message users and short message service users
CN102238495A (en) * 2010-04-20 2011-11-09 上海博路信息技术有限公司 System for intercommunicating short messages and instant messages (IM)

Also Published As

Publication number Publication date
CN105227427A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
JP6054484B2 (en) System and method using a client local proxy server to access a device having an assigned network address
CN108616490B (en) Network access control method, device and system
US9401962B2 (en) Traffic steering system
US10063547B2 (en) Authorization authentication method and apparatus
US9307039B2 (en) Method, system, push client, and user equipment for service communication
JP5739023B2 (en) System and method using a web proxy server to access a device having an assigned network address
WO2020073919A1 (en) Packet transmission method and apparatus
EP3150022B1 (en) Client applications communicating via a user tunnel
US10673680B2 (en) Electronic device providing dialog contents, server and method thereof
WO2015158114A1 (en) Intelligent communication method, terminal and system
US9083693B2 (en) Managing private information in instant messaging
JP2021012710A (en) Managing multiple profiles for single account in asynchronous messaging system
EP2408174A1 (en) Messaging activity feed
EP2518972A1 (en) System and method for device addressing
US10924530B2 (en) Inter-provider file transfer system and method
CN102355509A (en) Method and device for transmitting and receiving message according to mobile number in contact list
EP2974159B1 (en) Method, device and system for voice communication
US8861503B2 (en) Method and system for synchronizing data between mobile terminal and internet phone
JP2024511907A (en) Network function registration method, discovery method, equipment, device and medium
US8892139B2 (en) Systems and methods enabling a short message service gateway via cloud computing services
WO2015131478A1 (en) Information processing method and apparatus, im server, convergence gateway, and storage medium
WO2012155652A1 (en) Communication method, net element and system of cross-social network
US8731532B2 (en) Method for delivering electronic documents using mobile telephony identifiers in a secure manner in conjunction with internet protocols and address systems
JP2013126219A (en) Transfer server and transfer program
KR102258170B1 (en) Method for providing two phone service function using software usim and apparatus therefor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14884482

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14884482

Country of ref document: EP

Kind code of ref document: A1