Information transmission method and device, storage medium and electronic equipment
By parsing communication information and generating regular expressions in the gateway device, the belonging group and service cluster are determined, which solves the problems of high resource consumption and untimely information feedback caused by multiple gateways and realizes efficient transmission of ringback tone information.
Patent Information
- Application Number
- CN202211707390.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-27
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2042-12-27
AI Technical Summary
Existing technologies require setting up multiple gateways to handle ringback tone information from different platforms, resulting in high resource consumption and untimely information feedback.
The gateway device parses communication information, generates an initial regular expression, determines the belonging group, searches for the service cluster in the routing table, generates a sound effect acquisition command and sends it to the service cluster, and directly obtains and feeds back communication sound effect information from the service cluster.
This allows for the use of a single gateway to provide corresponding communication audio feedback to users, avoiding the need to traverse every IP address and improving the accuracy and efficiency of information feedback.
Smart Images

Figure CN116112604B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of information processing, in particular to an information transmission method and device, a storage medium and an electronic device. BACKGROUND
[0002] With the continuous expansion of the color ring service, the color ring type gradually becomes rich, and currently the color ring platform also gradually increases, for example, classified according to the sound playing ability as C network audio color ring sound playing platform, fixed network audio color ring sound playing platform, VoLTE audio color ring sound playing platform, fixed network and VoLTE video color ring sound playing platform, etc. When the color ring is routed and delivered, due to the large number of platform types, it is necessary to set a corresponding signaling gateway for each platform.
[0003] And because when the color ring is sent at present, after receiving the color ring acquisition information sent by the user through the network, since one domain name matches multiple IPs, it is not known which IP is the IP corresponding to the user. At this time, when the color ring is sent to the user, it needs to be sent to each IP under the domain name in turn, resulting in multiple addressing, causing call delay or automatic hang-up phenomenon.
[0004] For the problem that multiple gateways need to be set in the related technology, and the user address cannot be determined when the color ring information is fed back to the user, resulting in high resource occupancy rate and untimely information feedback, currently no effective solution has been proposed. SUMMARY
[0005] The present application provides an information transmission method and device, a storage medium and an electronic device to solve the problem that multiple gateways need to be set in the related technology, and the user address cannot be determined when the color ring information is fed back to the user, resulting in high resource occupancy rate and untimely information feedback.
[0006] According to one aspect of the present application, an information transmission method is provided. The method comprises: a gateway device obtaining communication information sent by a user through a terminal device, and parsing the communication information to obtain source information and an initial instruction, and generating an initial regular expression of the source information, wherein the initial instruction is used to indicate that the communication sound effect is obtained; determining the home group to which the initial regular expression belongs to obtain the source home group, and determining the service cluster associated with the source home group in the routing table, wherein the routing table includes multiple source home groups and the service cluster associated with each source home group; the gateway device generates a sound effect acquisition instruction according to the source information and the initial instruction, and sends the sound effect acquisition instruction to the service cluster, wherein the service cluster includes at least one server, and the server stores the communication sound effect information; the gateway device receives the communication sound effect information returned by the service cluster, and sends the communication sound effect information to the terminal device according to the sound effect acquisition instruction.
[0007] Optionally, generating the sound effect acquisition instruction according to the source information and the initial instruction comprises: extracting the source IP, the source port and the network element information of the terminal device from the source information; combining the source IP, the source port and the network element information to obtain an initial header field; and combining the initial header field with the initial instruction to obtain the sound effect acquisition instruction.
[0008] Optionally, after receiving the sound effect acquisition instruction, the service cluster determines the network information of the terminal device by identifying the network element information, and acquires the communication sound effect information from a server corresponding to the network information, wherein the service cluster comprises a plurality of servers, and each server corresponds to one kind of network information.
[0009] Optionally, sending the communication sound effect information to the terminal device according to the sound effect acquisition instruction comprises: identifying the initial header field in the sound effect acquisition instruction; parsing the initial header field to obtain the source IP and the source port; and sending the communication sound effect information to the mobile terminal indicated by the source IP and the source port.
[0010] Optionally, after sending the communication sound effect information to the terminal device according to the sound effect acquisition instruction, the method further comprises: obtaining server information of a server of a service cluster to which the communication sound effect information belongs; storing the server information in association with the initial regular expression in a database of the gateway device; obtaining a next communication information by the terminal device, and obtaining an initial regular expression of the next communication information to obtain a candidate regular expression; in a case where the same target regular expression as the candidate regular expression exists in the database of the gateway device, sending the sound effect acquisition instruction to the server of the service cluster according to the server information associated with the target regular expression.
[0011] Optionally, after sending the sound effect acquisition instruction to the server of the service cluster according to the server information associated with the target regular expression, the method further comprises: determining whether the communication sound effect information returned by the server of the service cluster is received; in a case where the communication sound effect information returned by the server is not received, setting the server state as abnormal, issuing an alarm information, and performing the steps of determining a home group to which the initial regular expression belongs, obtaining a source home group, and determining the service cluster associated with the source home group in the routing table.
[0012] Optionally, generating the initial regular expression of the source information comprises: obtaining a user number in the communication information, and obtaining a preset rule corresponding to the user number, wherein the preset rule is used to generate the initial regular expression; and changing the user number according to the preset rule to obtain the initial regular expression.
[0013] According to another aspect of the present application, a device for transmitting information is provided. The device comprises: an analyzing unit configured to acquire, by a gateway device, communication information sent by a user through a terminal device, and analyze the communication information to obtain source information and an initial instruction, and generate an initial regular expression of the source information, wherein the initial instruction is used to indicate acquisition of a communication sound effect; a determining unit configured to determine a home group to which the initial regular expression belongs, to obtain a source home group, and determine, in a routing table, a service cluster associated with the source home group, wherein the routing table comprises a plurality of source home groups and service clusters associated with each source home group; a first sending unit configured to generate, by the gateway device, a sound effect acquisition instruction according to the source information and the initial instruction, and send the sound effect acquisition instruction to the service cluster, wherein the service cluster comprises at least one server, and the server stores communication sound effect information; and a receiving unit configured to receive, by the gateway device, the communication sound effect information returned by the service cluster, and send the communication sound effect information to the terminal device according to the sound effect acquisition instruction.
[0014] According to another aspect of the present application, a computer storage medium for storing a program is also provided, wherein the program controls a device in which the computer storage medium is located to perform a method for transmitting information when the program is executed.
[0015] According to another aspect of the present application, an electronic device is also provided, which comprises one or more processors and a memory; the memory stores computer readable instructions, and the processor is configured to execute the computer readable instructions, wherein the computer readable instructions perform a method for transmitting information when executed.
[0016] According to the application, the following steps are adopted: the gateway device acquires communication information sent by a user through a terminal device, and parses the communication information to obtain source information and an initial instruction, and generates an initial regular expression of the source information, wherein the initial instruction is used to indicate acquisition of a communication sound effect; a home group to which the initial regular expression belongs is determined to obtain a source home group, and a service cluster associated with the source home group is determined in a routing table, wherein the routing table includes a plurality of source home groups and service clusters associated with each source home group; the gateway device generates a sound effect acquisition instruction according to the source information and the initial instruction, and sends the sound effect acquisition instruction to the service cluster, wherein the service cluster includes at least one server, and the server stores communication sound effect information; the gateway device receives the communication sound effect information returned by the service cluster, and sends the communication sound effect information to the terminal device according to the sound effect acquisition instruction. The problems that a plurality of gateways need to be set in the related art, and a user address cannot be determined when feedback of color ring information is performed on the user, resulting in high resource occupation rate and untimely information feedback are solved. By identifying the source information, determining the communication sound effect corresponding to the user according to the initial regular expression, and determining the service cluster where the communication sound effect is located according to the routing table, the communication sound effect can be directly acquired from the service cluster, and the IP of the user can be identified according to the source information, so that the communication sound effect can be directly fed back to the user according to the IP address, and the effect that one gateway can be used to feed back the corresponding communication sound effect to the user without traversing each IP address is achieved. BRIEF DESCRIPTION OF DRAWINGS
[0017] The accompanying drawings, which form a part of the present application, are intended to provide further understanding of the present application, and are used to interpret the application and its specification, and do not constitute improper limitations to the application. In the drawings:
[0018] Figure 1 is a schematic diagram of an information transmission system according to an embodiment of the application;
[0019] Figure 2 is a flowchart of an information transmission method according to an embodiment of the application;
[0020] Figure 3 is a flowchart of generation of a sound effect acquisition instruction of information according to an embodiment of the application;
[0021] Figure 4 is a schematic diagram of an information transmission device according to an embodiment of the application;
[0022] Figure 5 is a schematic diagram of an electronic device according to an embodiment of the application. DETAILED DESCRIPTION
[0023] It should be noted that the embodiments and features of the embodiments in the present application can be combined with each other in the case of no conflict. The technical solutions in the embodiments of the present application will be described in detail below with reference to the drawings and in combination with the embodiments.
[0024] In order for those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should belong to the scope of protection of the present application.
[0025] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily limit to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0026] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, analyzed data, etc.) involved in the present disclosure are all information and data authorized by the user or authorized by all parties. For example, an interface is provided between the system and the related user or institution. Before obtaining the relevant information, the interface needs to send a request to the aforementioned user or institution, and after receiving the consent information feedback from the aforementioned user or institution, the relevant information is obtained.
[0027] The information transmission method provided by the embodiments of the present application can be used in the information transmission system as shown in Figure 1 As shown in Figure 1 The information transmission system includes a plurality of service clusters and a signaling gateway. After receiving the color ring acquisition instruction from different platforms, the signaling gateway can identify the platform information corresponding to the color ring acquisition instruction, and obtain the corresponding color ring from the service cluster corresponding to the platform, so that the effect of completing the color ring acquisition of different platforms through only one signaling gateway can be achieved.
[0028] According to the embodiments of the present application, an information transmission method is provided.
[0029] Figure 2is a flowchart of a method for transmitting information according to an embodiment of the present application. As shown in Figure 2 the method comprises the following steps:
[0030] In step S201, the gateway device acquires communication information sent by a terminal device of a user, and parses the communication information to obtain source information and an initial instruction, and generates an initial regular expression of the source information, wherein the initial instruction is used to indicate acquisition of communication sound effects.
[0031] Specifically, the terminal device can be a mobile phone of the user, and the communication information can be information generated when the user makes a call, which can include a phone number of the user's mobile phone, a phone number dialed by the user, identity information of the user, etc. After the gateway device receives the communication information generated when the user makes a call, the communication information needs to be parsed to obtain the above-mentioned user information. For example, after parsing the communication information, the user's mobile phone number can be obtained, which can be included in the source information. Meanwhile, the source information can also include the user's source IP address and source port, and an initial regular expression of the user can be generated according to the mobile phone number. For example, in the case where the mobile phone number is 11 digits, the first 8 digits of the user's mobile phone number can be determined as the initial regular expression of the user.
[0032] In step S202, a home group to which the initial regular expression belongs is determined to obtain a source home group, and a service cluster associated with the source home group is determined in a routing table, wherein the routing table includes a plurality of source home groups and service clusters associated with each source home group.
[0033] It should be noted that the routing table can include information of a plurality of users, wherein the information of each user includes a user number, an initial regular expression, a source home group, a service cluster name, and a service cluster address, which constitute routing information of a user.
[0034] Specifically, after the initial regular expression is obtained, the source home group to which the initial regular expression belongs can be determined, that is, the type of the initial regular expression is determined. For example, if the initial regular expression represents that the communication information is a C-network audio ringback tone playing platform, the initial regular expression can be used to determine that the communication information corresponds to a source home group corresponding to the C-network audio ringback tone playing platform, and a service cluster in which the C-network audio ringback tone is stored is determined according to the corresponding relationship in the routing table, so that the communication sound effect information corresponding to the user is acquired from the service cluster.
[0035] In step S203, the gateway device generates a sound effect acquisition instruction according to the source information and the initial instruction, and sends the sound effect acquisition instruction to a service cluster, wherein the service cluster includes at least one server, and the server stores communication sound effect information.
[0036] Specifically, after the service cluster is determined, a sound effect obtaining instruction is generated through source information and an initial instruction, wherein the source information is a private header field of the sound effect obtaining instruction, for example, similar to X-FFCS-ROUTE, the source address and the source port of the message are saved, for example, X-FFCS-ROUTE: 192.168.21.150:15038, and the initial instruction is used to indicate that the sound effect information needs to be obtained from the service cluster.
[0037] It should be noted that there are multiple servers in the service cluster, and after the service cluster information is determined, the server storing the communication sound effect information corresponding to the user also needs to be determined, so as to complete the acquisition of the communication sound effect.
[0038] In step S204, the gateway device receives the communication sound effect information returned by the service cluster, and sends the communication sound effect information to the terminal device according to the sound effect obtaining instruction.
[0039] Specifically, the communication sound effect information can be color ring information. Since there are a large amount of user information and communication information in the gateway device, after the gateway device receives the communication sound effect information returned by the service cluster, the private header field needs to be obtained from the sound effect obtaining instruction, and the source address and the source port corresponding to the communication sound effect information are obtained from the private header field, and the communication sound effect information is sent to the source address and the source port, so as to achieve the effect of feeding back the communication sound effect information to the terminal device of the user.
[0040] The information transmission method provided by the embodiment of the present application comprises the following steps: a gateway device acquires communication information sent by a terminal device of a user, and parses the communication information to obtain source information and an initial instruction, and generates an initial regular expression of the source information, wherein the initial instruction is used to indicate acquisition of communication sound effects; a home group to which the initial regular expression belongs is determined, and a source home group is obtained, and a service cluster associated with the source home group is determined in a routing table, wherein the routing table comprises a plurality of source home groups and service clusters associated with each source home group; the gateway device generates a sound effect acquisition instruction according to the source information and the initial instruction, and sends the sound effect acquisition instruction to the service cluster, wherein the service cluster comprises at least one server, and the server stores communication sound effect information; the gateway device receives the communication sound effect information returned by the service cluster, and sends the communication sound effect information to the terminal device according to the sound effect acquisition instruction. The method solves the problem that a plurality of gateways need to be set in the related art, and a user address cannot be determined when feedback of color ring information is performed on the user, resulting in high resource occupation rate and untimely information feedback. By identifying the source information, determining the communication sound effect corresponding to the user according to the initial regular expression, and determining the service cluster where the communication sound effect is located according to the routing table, the communication sound effect can be directly acquired from the service cluster, and the IP of the user can be identified according to the source information, so that the communication sound effect can be directly fed back to the user according to the IP address, thereby achieving the effect that one gateway can be used to feed back the corresponding communication sound effect to the user, and each IP address does not need to be traversed.
[0041] Optionally, Figure 3 The flowchart of the information generation sound effect acquisition instruction is shown in FIG. 3. Figure 3 In the information transmission method provided by the embodiment of the present application, step S203 comprises the following steps: S301, extracting a source IP, a source port and network element information of the terminal device from the source information; S302, combining the source IP, the source port and the network element information to obtain an initial header field; and S303, combining the initial header field and the initial instruction to obtain the sound effect acquisition instruction.
[0042] Specifically, the source information can comprise a source IP and a source port of a device, and network element information of the device, wherein, since a plurality of sound playing platforms are included in part of the service clusters, the color ring sound playing platform to which the user belongs needs to be determined through the network element information in part of the cases after the service cluster is determined, so that the server corresponding to the communication sound effect required by the user can be determined according to the network element information, and the communication sound effect can be acquired from the server.
[0043] Optionally, in the information transmission method provided in the embodiments of the present application, after receiving the sound effect acquisition instruction, the service cluster determines the network information of the terminal device by identifying the network element information, and acquires the communication sound effect information from the server corresponding to the network information, wherein the service cluster comprises a plurality of servers, and each server corresponds to one kind of network information.
[0044] Specifically, after receiving the sound effect acquisition instruction, the service cluster needs to determine the corresponding color ring playing platform of the user according to the network element information in the sound effect acquisition instruction, and acquire the required communication sound effect of the user from the server corresponding to the color ring playing platform.
[0045] For example, the A service cluster comprises color ring information in the C network audio color ring playing platform and the fixed network audio color ring playing platform. After receiving the communication information of the user, it is determined that the user corresponds to the A service cluster, but it is unknown which kind of platform in the A service cluster corresponds to. At this time, the C network audio color ring playing platform corresponding to the user can be determined through the network element information, and the required color ring of the user is acquired from the server corresponding to the C network audio color ring playing platform, and the color ring information is returned to the gateway.
[0046] Optionally, in the information transmission method provided in the embodiments of the present application, the communication sound effect information is sent to the terminal device according to the sound effect acquisition instruction, comprising: identifying the initial header field in the sound effect acquisition instruction; parsing the initial header field to obtain the source IP and the source port; and sending the communication sound effect information to the mobile terminal indicated by the source port and the source IP.
[0047] Specifically, after the gateway receives the communication sound effect information fed back by the service cluster, the communication sound effect information comprises the sound effect acquisition instruction sent to the service cluster and the color ring information fed back. Since there are a large amount of communication information and sound effect acquisition instructions in the gateway, the method and process of searching the sound effect acquisition instruction through the sound effect information is very complex. In the present application, the color ring information is combined with the sent sound effect acquisition instruction to obtain the communication sound effect information, so as to avoid searching the corresponding sound effect acquisition instruction in the gateway device, and further improve the accuracy and efficiency of the color ring information feedback.
[0048] Further, when the color ring information is fed back, the initial header field in the sound effect acquisition instruction in the communication sound effect information is parsed, so as to parse the routing information from the private header field, so as to obtain the source address and the source port, and then the communication sound effect information can be directly sent to the mobile terminal indicated by the source port and the source IP.
[0049] Optionally, in the information transmission method provided by the embodiment of the present application, after the communication sound effect information is sent to the terminal device according to the sound effect acquisition instruction, the method further comprises: obtaining server information of a service cluster to which the communication sound effect information belongs; storing the server information and the initial regular expression in the database of the gateway device in association; obtaining the next communication information through the terminal device, and obtaining an initial regular expression of the next communication information to obtain a candidate regular expression; and in the case that the gateway device database contains a target regular expression identical to the candidate regular expression, sending the sound effect acquisition instruction to the server of the service cluster according to the server information associated with the target regular expression.
[0050] Specifically, after obtaining the communication sound effect information corresponding to the initial regular expression, the source server of the communication sound effect can be determined, and the server is associated with the initial regular expression, so that when the communication information containing the initial regular expression is received again, the sound effect acquisition instruction can be directly sent to the server according to the association relationship, thereby reducing the process of finding the corresponding server, and further improving the feedback efficiency of the ringback tone.
[0051] Optionally, in the information transmission method provided by the embodiment of the present application, after the sound effect acquisition instruction is sent to the server of the service cluster according to the server information associated with the target regular expression, the method further comprises: determining whether the communication sound effect information returned by the server of the service cluster is received; in the case that the communication sound effect information returned by the server is not received, setting the server state as abnormal, issuing an alarm information, and performing the steps of determining the home group to which the initial regular expression belongs, obtaining the source home group, and determining the service cluster associated with the source home group in the routing table.
[0052] Specifically, when the communication information containing the initial regular expression is received again, the sound effect acquisition instruction can be directly sent to the server, but since there are many servers in the service cluster, the server may be abnormal, at this time, the ringback tone information cannot be obtained from the abnormal server, and the same ringback tone information needs to be obtained from other servers in the service cluster, at this time, the steps of determining the home group to which the initial regular expression belongs, obtaining the source home group, and determining the service cluster associated with the source home group in the routing table need to be re-executed, so as to re-search the server containing the ringback tone information in the service cluster, and add an identifier to the abnormal server, so that the staff can timely process the server.
[0053] Optionally, in the information transmission method provided in the embodiments of the present application, the generating of the initial regular expression of the source information comprises: obtaining a user number in the communication information, and obtaining a preset rule corresponding to the user number, wherein the preset rule is used to generate the initial regular expression; and changing the user number according to the preset rule to obtain the initial regular expression.
[0054] Specifically, when the initial regular expression is determined, the initial regular expression can be determined by the user number, for example, the first 8 digits of the user number are determined as the initial regular expression, or the user number is processed according to the preset rule, and the processed data is determined as the initial regular expression, so that the uniqueness of the initial regular expression is ensured.
[0055] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a group of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0056] The embodiments of the present application also provide an information transmission device. It should be noted that the information transmission device of the embodiments of the present application can be used to execute the information transmission method provided in the embodiments of the present application. The information transmission device provided in the embodiments of the present application is introduced as follows.
[0057] Figure 4 is a schematic diagram of the information transmission device provided in the embodiments of the present application. As shown in Figure 4 , the device comprises an analysis unit 41, a determination unit 42, a first sending unit 43 and a receiving unit 44.
[0058] The analysis unit 41 is configured to acquire, by a gateway device, communication information sent by a user through a terminal device, analyze the communication information to obtain source information and an initial instruction, and generate an initial regular expression of the source information, wherein the initial instruction is used to instruct to acquire a communication sound effect.
[0059] The determination unit 42 is configured to determine a home group to which the initial regular expression belongs, obtain a source home group, and determine a service cluster associated with the source home group in a routing table, wherein the routing table comprises a plurality of source home groups and service clusters associated with each source home group.
[0060] The first sending unit 43 is configured to generate a sound effect acquisition instruction according to the source information and the initial instruction, and send the sound effect acquisition instruction to a service cluster, wherein the service cluster comprises at least one server, and the server stores communication sound effect information.
[0061] The receiving unit 44 is configured to receive the communication sound effect information returned by the service cluster, and send the communication sound effect information to the terminal device according to the sound effect acquisition instruction.
[0062] The information transmission device provided in the embodiment of the present application obtains the communication information sent by the user through the terminal device by the gateway device through the parsing unit 41, parses the communication information to obtain the source information and the initial instruction, and generates the initial regular expression of the source information, wherein the initial instruction is used to indicate the acquisition of the communication sound effect. The determining unit 42 determines the home group to which the initial regular expression belongs to obtain the source home group, and determines the service cluster associated with the source home group in the routing table, wherein the routing table includes a plurality of source home groups and the service cluster associated with each source home group. The first sending unit 43 generates the sound effect acquisition instruction according to the source information and the initial instruction, and sends the sound effect acquisition instruction to the service cluster, wherein the service cluster includes at least one server, and the server stores the communication sound effect information. The receiving unit 44 receives the communication sound effect information returned by the service cluster, and sends the communication sound effect information to the terminal device according to the sound effect acquisition instruction. The problem that a plurality of gateways need to be set in the related art, and the user address cannot be determined when the color ring information is fed back to the user, resulting in high resource occupation rate and untimely information feedback, is solved. The communication sound effect corresponding to the user is determined according to the initial regular expression by identifying the source information, and the service cluster where the communication sound effect is located is determined according to the routing table, so that the communication sound effect can be directly obtained from the service cluster, and the IP of the user can be identified according to the source information, so that the communication sound effect can be directly fed back to the user according to the IP address, thereby achieving the effect that one gateway can be used to feed back the corresponding communication sound effect to the user, and it is not necessary to traverse each IP address.
[0063] Optionally, in the information transmission device provided in the embodiment of the present application, the first sending unit 43 includes: a first acquisition module, configured to extract the source IP, the source port and the network element information of the terminal device from the source information; a first combination module, configured to combine the source IP, the source port and the network element information to obtain an initial header field; and a second combination module, configured to combine the initial header field and the initial instruction to obtain the sound effect acquisition instruction.
[0064] Optionally, in the information transmission device provided in the embodiment of the present application, after receiving the sound effect acquisition instruction, the service cluster determines the network information of the terminal device by identifying the network element information, and obtains the communication sound effect information from the server corresponding to the network information, wherein the service cluster includes a plurality of servers, and each server corresponds to one kind of network information.
[0065] Optionally, in the information transmission apparatus provided by the embodiment of the present application, the receiving unit 44 comprises: an identification module, configured to identify an initial header field in the sound effect acquisition instruction; an analysis module, configured to analyze the initial header field to obtain a source IP and a source port; and a sending module, configured to send the communication sound effect information to a mobile terminal indicated by the source port and the source IP.
[0066] Optionally, in the information transmission apparatus provided by the embodiment of the present application, the apparatus further comprises: a first acquisition unit, configured to acquire server information of a service cluster to which the communication sound effect information belongs; a storage unit, configured to store the server information in association with an initial regular expression in a database of a gateway device; a second acquisition unit, configured to acquire next communication information through a terminal device and an initial regular expression of the next communication information to obtain a candidate regular expression; and a second sending unit, configured to send the sound effect acquisition instruction to a server of the service cluster according to server information associated with the target regular expression in the case that the gateway device database exists the target regular expression same as the candidate regular expression.
[0067] Optionally, in the information transmission apparatus provided by the embodiment of the present application, the apparatus further comprises: a judgment unit, configured to judge whether the communication sound effect information returned by the server of the service cluster is received; and an alarm unit, configured to set the server state as abnormal and send an alarm information in the case that the communication sound effect information returned by the server is not received, and perform the steps of determining a home group to which the initial regular expression belongs to obtain a source home group and determining the service cluster associated with the source home group in the routing table.
[0068] Optionally, in the information transmission apparatus provided by the embodiment of the present application, the analysis unit 41 comprises: a second acquisition module, configured to acquire a user number in the communication information and a preset rule corresponding to the user number, wherein the preset rule is used to generate the initial regular expression; and a change module, configured to change the user number according to the preset rule to obtain the initial regular expression.
[0069] The information transmission apparatus comprises a processor and a memory, and the analysis unit 41, the determination unit 42, the first sending unit 43, the receiving unit 44 and the like are stored in the memory as program units, and the corresponding functions are realized by the processor executing the program units stored in the memory.
[0070] The processor comprises a core, and the core calls the corresponding program units from the memory. The core can be set as one or more, and the problem of high resource occupation rate and untimely information feedback caused by the fact that a plurality of gateways need to be set in the related art and the user address cannot be determined when the color ring information is fed back to the user is solved by adjusting the core parameters.
[0071] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0072] This invention provides a computer-readable storage medium storing a program thereon, which, when executed by a processor, implements a method for transmitting the information.
[0073] This invention provides a processor for running a program, wherein the program executes a method for transmitting the information during runtime.
[0074] like Figure 5 As shown, this embodiment of the invention provides an electronic device 50, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: A gateway device acquires communication information sent by a user through a terminal device, parses the communication information to obtain source information and an initial instruction, and generates an initial regular expression for the source information, wherein the initial instruction is used to indicate the acquisition of communication audio effects; it determines the home group to which the initial regular expression belongs, obtains the source home group, and determines the service cluster associated with the source home group in the routing table, wherein the routing table includes multiple source home groups and the service cluster associated with each source home group; the gateway device generates an audio effect acquisition instruction based on the source information and the initial instruction, and sends the audio effect acquisition instruction to the service cluster, wherein the service cluster contains at least one server, and the server stores communication audio effect information; the gateway device receives the communication audio effect information returned by the service cluster, and sends the communication audio effect information to the terminal device according to the audio effect acquisition instruction. The device in this document can be a server, PC, PAD, mobile phone, etc.
[0075] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program with the following method steps: A gateway device acquires communication information sent by a user through a terminal device, parses the communication information to obtain source information and an initial instruction, and generates an initial regular expression for the source information, wherein the initial instruction is used to indicate the acquisition of communication audio effects; determines the home group to which the initial regular expression belongs, obtains the source home group, and determines the service cluster associated with the source home group in the routing table, wherein the routing table includes multiple source home groups and service clusters associated with each source home group; the gateway device generates an audio effect acquisition instruction based on the source information and the initial instruction, and sends the audio effect acquisition instruction to the service cluster, wherein the service cluster contains at least one server that stores communication audio effect information; the gateway device receives the communication audio effect information returned by the service cluster and sends the communication audio effect information to the terminal device according to the audio effect acquisition instruction.
[0076] Those skilled in the art will appreciate that embodiments of the present application can be readily used as software, hardware, or a combination of software and hardware. In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0077] The present application is described in reference to the flowchart illustrations and / or block diagrams according to the embodiments of the application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processing system, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 means for carrying out one or more functions specified in the flowchart illustrations and / or block diagrams.
[0078] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 means for carrying out one or more functions specified in the flowchart illustrations and / or block diagrams.
[0079] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 means for carrying out one or more functions specified in the flowchart illustrations and / or block diagrams.
[0080] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0081] The memory can include non-persistent memory, random access memory (RAM), and / or non-volatile memory, such as read only memory (ROM) or flash memory, among others. The memory is an example of computer-readable media.
[0082] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.
[0083] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover non-exclusive inclusion, so that processes, methods, articles or devices that include a series of elements not only include those elements, but also include other elements not explicitly listed, or inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or device that includes the element.
[0084] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application shall be included in the scope of claims of the present application.
Claims
1. A method of transmitting information, characterized by, The method comprises the following steps: The gateway device acquires communication information sent by a terminal device, parses the communication information to obtain source information and an initial instruction, and generates an initial regular expression of the source information, wherein the initial instruction is used to indicate acquisition of a communication sound effect; A home group to which the initial regular expression belongs is determined to obtain a source home group, and a service cluster associated with the source home group is determined in a routing table, wherein the routing table comprises a plurality of source home groups and service clusters associated with each source home group; The gateway device generates a sound effect acquisition instruction according to the source information and the initial instruction, and sends the sound effect acquisition instruction to the service cluster, wherein the service cluster comprises at least one server, and the server stores communication sound effect information; The step of generating the sound effect acquisition instruction according to the source information and the initial instruction comprises the following steps: extracting source IP, source port and network element information of the terminal device from the source information; combining the source IP, the source port and the network element information to obtain an initial header field; and combining the initial header field and the initial instruction to obtain the sound effect acquisition instruction; The gateway device receives communication sound effect information returned by the service cluster, and sends the communication sound effect information to the terminal device according to the sound effect acquisition instruction.
2. The method of claim 1, wherein, After receiving the sound effect acquisition instruction, the service cluster determines network information of the terminal device by identifying the network element information, and acquires the communication sound effect information from a server corresponding to the network information, wherein the service cluster comprises a plurality of servers, and each server corresponds to one kind of network information.
3. The method of claim 1, wherein, The step of sending the communication sound effect information to the terminal device according to the sound effect acquisition instruction comprises the following steps: Identifying the initial header field in the sound effect acquisition instruction; Parsing the initial header field to obtain the source IP and the source port; Sending the communication sound effect information to a mobile terminal indicated by the source port and the source IP.
4. The method of claim 2, wherein, After sending the communication sound effect information to the terminal device according to the sound effect acquisition instruction, the method further comprises the following steps: Acquiring server information of the server of the service cluster to which the communication sound effect information belongs; Storing the server information and the initial regular expression in a database of the gateway device in association; Acquiring a next communication information through the terminal device, and acquiring an initial regular expression of the next communication information to obtain a candidate regular expression; In a case where a target regular expression identical to the candidate regular expression exists in the database of the gateway device, sending the sound effect acquisition instruction to the server of the service cluster according to server information associated with the target regular expression.
5. The method of claim 4, wherein, After sending the sound effect acquisition instruction to the server of the service cluster according to the server information associated with the target regular expression, the method further comprises the following steps: Determining whether the communication sound effect information returned by the server of the service cluster is received; In the case that the communication sound effect information returned by the server is not received, the state of the server is set as abnormal, an alarm information is sent out, and the steps of determining a home group to which the initial regular expression belongs, obtaining a source home group, and determining a service cluster associated with the source home group in a routing table are executed.
6. The method of claim 1, wherein, The initial regular expression of the source information comprises: A user number in the communication information is acquired, and a preset rule corresponding to the user number is acquired, wherein the preset rule is used for generating an initial regular expression. The user number is changed according to the preset rule to obtain the initial regular expression.
7. An information transmission apparatus characterized by comprising: Comprise: An analysis unit is configured to acquire communication information sent by a user through a terminal device by a gateway device, analyze the communication information to obtain source information and an initial instruction, and generate an initial regular expression of the source information, wherein the initial instruction is used for instructing acquisition of a communication sound effect. A determination unit is configured to determine a home group to which the initial regular expression belongs to obtain a source home group, and determine a service cluster associated with the source home group in a routing table, wherein the routing table comprises a plurality of source home groups and service clusters associated with each source home group. A first sending unit is configured to generate a sound effect acquisition instruction according to the source information and the initial instruction by the gateway device, and send the sound effect acquisition instruction to the service cluster, wherein the service cluster comprises at least one server, and the server stores communication sound effect information. The first sending unit comprises: a first acquisition module configured to extract a source IP, a source port and network element information of the terminal device from the source information; a first combination module configured to combine the source IP, the source port and the network element information to obtain an initial header field; and a second combination module configured to combine the initial header field and the initial instruction to obtain the sound effect acquisition instruction. A receiving unit is configured to receive communication sound effect information returned by the service cluster by the gateway device, and send the communication sound effect information to the terminal device according to the sound effect acquisition instruction.
8. A computer storage medium, characterized in that The computer storage medium is configured to store a program, wherein the program controls a device in which the computer storage medium is located to execute the information transmission method in any one of claims 1 to 6 when the program is executed.
9. An electronic device, comprising: The device comprises one or more processors and a memory, and the memory is configured to store one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the information transmission method in any one of claims 1 to 6.
Citation Information
Patent Citations
A method and system for realizing color ring back tone in soft exchange
CN101217706A
A method, a multimedia network gateway control device and an application server for implementing intercommunication of color ring back tone
CN101647296A