Method, device and equipment for docking voice gateway by using edge site, and storage medium
By using edge sites to connect to voice gateways in VOIP systems, the problems of network transmission delay and jitter in VOIP service system are solved, and more efficient and stable voice communication is achieved.
Patent Information
- Application Number
- CN202411606898.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-18
AI Technical Summary
When the existing VOIP service system is connected to third-party voice gateways, network transmission delay and jitter problems are serious, affecting the quality of voice communication.
By selecting the edge site closest to the voice gateway for docking, establish a connection and send media streams to the central voice server, reducing network transmission distance and reducing latency and jitter.
It significantly reduces data transmission delay, reduces the impact of network instability on voice communication quality, and improves the quality and efficiency of voice communication.
Smart Images

Figure CN119484494A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device, equipment and storage medium for connecting a voice gateway using an edge site. Background Art
[0002] With the rapid development of communication technology, VOIP (Voice over Internet Protocol) technology, as a technology for transmitting voice signals through the Internet, has been widely used around the world. With its low cost, high efficiency and flexible deployment methods, VOIP technology has gradually become the preferred solution for corporate and personal communications. However, the quality of service (QoS) of VOIP technology is highly dependent on network conditions, especially when connecting with a third-party voice gateway, the delay and jitter of network transmission are particularly prominent.
[0003] In the existing VOIP service system, in order to achieve docking with third-party voice gateways, a centralized processing method of a central server is usually adopted. That is, all voice gateway requests from different regions are forwarded and processed by the central server. However, since third-party voice gateway servers are spread all over the country and the central server is often located in a specific area, this centralized processing method leads to an increase in network transmission distance, which in turn causes transmission delay and jitter problems. These problems seriously affect the quality of voice communication, causing users to experience poor experiences such as intermittent sound, echo, and noise during calls. Summary of the invention
[0004] The purpose of this application is to provide a method, device, equipment and storage medium for connecting a voice gateway using an edge site.
[0005] To achieve the above objectives, this application provides the following solutions:
[0006] In a first aspect, the present application provides a method for connecting a voice gateway using an edge site, including:
[0007] Select the edge site service that is closest to the voice gateway for connection;
[0008] Connect the selected edge site to the third-party voice gateway;
[0009] The media stream is sent to the central voice server through the connection.
[0010] Optionally, the step of selecting an edge site service closest to the voice gateway for connection includes:
[0011] Obtain the IP address of the third-party voice gateway;
[0012] Determine corresponding location information according to the IP address;
[0013] The edge site closest to the location corresponding to the home location information is queried from a pre-configured database table, and the edge site is connected.
[0014] Optionally, the step of determining corresponding location information according to the IP address includes:
[0015] sending the IP address to an edge site selection service;
[0016] The edge site selection service queries the location information of the IP address and stores the corresponding relationship between the IP address and the location information in a cache.
[0017] Optionally, the step of establishing a connection between the selected edge site and a third-party voice gateway includes:
[0018] During an incoming call, a SIP call request sent by a third-party SIP gateway is received, wherein the SIP call request carries the IP address of the voice gateway;
[0019] Send the IP address to the edge site selection service to obtain the corresponding edge voice gateway ID; use the edge voice gateway ID to initialize the edge voice gateway and set the network of the edge voice gateway
[0020] The address information is returned to the third-party SIP gateway to complete the connection establishment.
[0021] Optionally, after the step of receiving a SIP call request sent by a third-party SIP gateway, wherein the SIP call request carries the IP address of the voice gateway, the method further includes:
[0022] During a call, the correspondence between the trunk number and the other party's media gateway IP is sent to the edge site selection service through the edge voice gateway, and the edge site selection service stores the correspondence between the trunk number and the other party's media gateway IP in the cache.
[0023] Optionally, the step of sending the media stream to the central voice server through the connection includes:
[0024] During the outgoing call, the correspondence between the relay number and the IP address is queried according to the relay number information of the other end;
[0025] The optimal edge site is selected and the media stream is sent to the central voice server through the edge site.
[0026] Optionally, the method of using an edge site to connect to a voice gateway further comprises:
[0027] Evaluate the performance of multiple optional edge sites and select the edge site with the best performance for docking.
[0028] In a second aspect, the present application provides a device for connecting a voice gateway using an edge site, including:
[0029] A selection module is used to select an edge site service that is closest to the voice gateway for connection;
[0030] A connection module, used to establish a connection between the selected edge site and a third-party voice gateway;
[0031] The transmission module is used to send the media stream to the central voice server through the connection.
[0032] Optionally, the selection module is further used to:
[0033] Obtain the IP address of the third-party voice gateway;
[0034] Determine corresponding location information according to the IP address;
[0035] The edge site closest to the location corresponding to the home location information is queried from a pre-configured database table, and the edge site is connected.
[0036] Optionally, the selection module is further used to:
[0037] sending the IP address to an edge site selection service;
[0038] The edge site selection service queries the location information of the IP address and stores the corresponding relationship between the IP address and the location information in a cache.
[0039] Optionally, the connection module is further used for:
[0040] During an incoming call, a SIP call request sent by a third-party SIP gateway is received, wherein the SIP call request carries the IP address of the voice gateway;
[0041] Send the IP address to the edge site selection service to obtain the corresponding edge voice gateway ID; use the edge voice gateway ID to initialize the edge voice gateway and set the network of the edge voice gateway
[0042] The address information is returned to the third-party SIP gateway to complete the connection establishment.
[0043] Optionally, the transmission module is further used to:
[0044] During a call, the correspondence between the trunk number and the other party's media gateway IP is sent to the edge site selection service through the edge voice gateway, and the edge site selection service stores the correspondence between the trunk number and the other party's media gateway IP in the cache.
[0045] Optionally, the transmission module is further used to:
[0046] During the outgoing call, the correspondence between the relay number and the IP address is queried according to the relay number information of the other end;
[0047] The optimal edge site is selected and the media stream is sent to the central voice server through the edge site.
[0048] Optionally, the selection module is further used to:
[0049] Evaluate the performance of multiple optional edge sites and select the edge site with the best performance for docking.
[0050] In a third aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any one of the above-mentioned methods for connecting a voice gateway using an edge site.
[0051] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the above-mentioned methods of using an edge site to connect to a voice gateway.
[0052] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any one of the above-mentioned methods of using an edge site to connect to a voice gateway.
[0053] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0054] The present application provides a method, apparatus, device and storage medium for connecting a voice gateway using an edge site. The physical distance of network transmission can be effectively reduced by accessing the nearest site, thereby significantly reducing the delay in data transmission and reducing the jitter caused by network instability, providing a more stable environment for voice communication. On this basis, the media stream can be transmitted to the central voice server more efficiently and stably, thereby greatly improving the quality of voice communication, allowing users to enjoy a clearer and smoother experience during calls. At the same time, accessing the nearest edge site can also more effectively utilize network resources, reduce network congestion and transmission costs, and improve the overall resource utilization efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0056] Figure 1 A flow chart of a method for connecting a voice gateway using an edge site provided in an embodiment of the present application;
[0057] Figure 2 One of the transmission schematic diagrams of a method for connecting a voice gateway using an edge site provided in an embodiment of the present application;
[0058] Figure 3 A second transmission diagram of a method for connecting a voice gateway using an edge site provided in an embodiment of the present application;
[0059] Figure 4 A schematic diagram of a functional module of a voice gateway device using an edge site for docking is provided in one embodiment of the present application;
[0060] Figure 5 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0062] like Figure 1 As shown, some embodiments of the present application provide a method for connecting a voice gateway using an edge site, and in the embodiment of the present application, the following steps 101 to 104 are included. Among them:
[0063] Step 101, select the edge site service closest to the voice gateway for docking.
[0064] In the embodiment of the present application, the system uses the edge site selection service to determine the edge site closest to the other party's voice gateway based on its IP address. The purpose of this process is to reduce network transmission delays and jitters, because selecting a close edge site can shorten the physical distance of data transmission, thereby reducing the impact of network instability on voice communication quality. By accessing the nearest edge site, the system can more effectively utilize network resources and improve the efficiency and quality of voice communication.
[0065] Step 102, establishing a connection between the selected edge site and a third-party voice gateway.
[0066] In the embodiment of the present application, after determining the nearest edge site, the system will establish a connection with the selected edge site. This connection is a bridge for voice communication, which enables the third-party voice gateway to communicate with the central voice server through the edge site. The process of establishing a connection may involve a series of technical operations, such as identity authentication, resource allocation, etc., to ensure the security and stability of communication.
[0067] Step 103: Send the media stream to the central voice server through the connection.
[0068] In an embodiment of the present application, after the connection is established, the system can send the media stream (i.e., voice data) to the central voice server through this connection. The media stream is the core part of voice communication, which contains the voice information of the user during the call. Through the connection between the edge site and the central voice server, the media stream can be transmitted efficiently, thereby achieving high-quality voice communication. In this process, the edge site plays an important transit role, which helps optimize the network transmission path, reduces network delay and jitter, and thus improves the quality of voice communication.
[0069] The embodiments of the present application can effectively reduce the physical distance of network transmission through the method of local access, thereby significantly reducing the delay of data transmission and reducing the jitter caused by network instability, providing a more stable environment for voice communication. On this basis, the media stream can be transmitted to the central voice server more efficiently and stably, thereby greatly improving the quality of voice communication, allowing users to enjoy a clearer and smoother experience during calls. At the same time, local access to edge sites can also more effectively utilize network resources, reduce network congestion and transmission costs, and improve the overall resource utilization efficiency.
[0070] Optionally, the step 101 includes:
[0071] Step 1011, obtain the IP address of the third-party voice gateway.
[0072] In the embodiment of the present application, during the voice communication process, when it is necessary to establish a connection with a third-party voice gateway, it is first necessary to obtain the IP address of the voice gateway. This IP address is the unique identifier of the voice gateway in the network, through which the system can locate the specific voice gateway device. In actual operation, this IP address may be actively provided by the third-party voice gateway when initiating a call, or obtained by the system by querying relevant records or databases.
[0073] Step 1012: Determine corresponding location information according to the IP address.
[0074] In the embodiment of the present application, after obtaining the IP address of the third-party voice gateway, the system will determine its corresponding location information based on the IP address. This location information usually includes detailed information such as country, region, city, etc., which can help the system understand the approximate location of the voice gateway. In actual operation, the system may use an IP address resolution service or a related database to query and obtain this location information.
[0075] Step 1013, query the edge site closest to the location corresponding to the home location information from a pre-configured database table, and connect with the edge site.
[0076] In the embodiment of the present application, after determining the home location information of the third-party voice gateway, the system will further query the edge site closest to the location corresponding to the home location information from the pre-configured database table. This database table usually contains the location information of each edge site and the distance or routing information between them and different home locations. By querying this database table, the system can quickly find the edge site closest to the voice gateway.
[0077] The system will connect to the edge site found. This connection process may involve a series of technical operations, such as establishing network connection, identity authentication and resource allocation. After the connection is completed, the system can conduct efficient voice communication with the third-party voice gateway through this edge site. This connection method can significantly reduce the delay and jitter of network transmission and improve the quality of voice communication.
[0078] Optionally, the step 1012 includes:
[0079] Step 10121, sending the IP address to the edge site selection service.
[0080] Step 10122: The edge site selection service queries the location information of the IP address and stores the correspondence between the IP address and the location information in a cache.
[0081] During the inbound call process, when the third-party SIP gateway initiates a SIP INVITE call, it carries its own IP address. This IP address is then sent to the edge site selection service. This step is a prerequisite for determining the optimal edge site, because the IP address is key information for locating network devices and determining their geographic location.
[0082] After receiving the IP address, the edge site selection service will perform a query operation to determine the location information of the IP address. This location information usually includes the country, region, city, etc., which is crucial for selecting the nearest edge site. The edge site selection service may use an internal database or call an external IP address resolution service to complete this query.
[0083] When the edge site selection service queries the location information of the IP address, it will store this information in the local cache, especially the correspondence between the IP address and the location information. In this way, when the same IP address appears again, the system can directly read the location information from the cache without having to perform the query operation again. This not only saves time, but also reduces the consumption of network resources.
[0084] The embodiment of the present application utilizes IP address information in combination with the query and cache functions of the edge site selection service to achieve fast and accurate selection of the optimal edge site, thereby optimizing the quality and efficiency of voice communications.
[0085] Optionally, the step 102 includes:
[0086] Step 1021, during the incoming call process, receiving a SIP call request sent by a third-party SIP gateway, wherein the SIP call request carries the IP address of the voice gateway.
[0087] Step 1022, sending the IP address to the edge site selection service to obtain the corresponding edge voice gateway ID.
[0088] Step 1023, using the edge voice gateway ID to initialize the edge voice gateway, and the network of the edge voice gateway
[0089] Step 1024: The address information is returned to the third-party SIP gateway to complete the connection establishment.
[0090] In the embodiment of the present application, first, when the third-party SIP gateway wants to initiate voice communication, it will send a SIP call request to the system. This request contains important information - the IP address of the voice gateway. This IP address is the unique identity of the voice gateway in the network, which enables the system to locate the specific voice gateway device.
[0091] After receiving the SIP call request, the system will parse the IP address and send it to the edge site selection service. The edge site selection service is a dedicated service module whose task is to determine the best edge site based on the IP address. To achieve this goal, the edge site selection service will first query the location information of the IP address, and then find the edge site closest to the location based on the location information and the pre-configured database table. After finding the best edge site, the edge site selection service will return the corresponding edge voice gateway ID.
[0092] The system uses this edge voice gateway ID to initialize the edge voice gateway. The initialization process may include a series of technical operations, such as resource allocation, configuration parameter settings, etc., to ensure that the edge voice gateway can work properly.
[0093] The system will return the network address information of the edge voice gateway to the third-party SIP gateway. This network address information is necessary for the third-party SIP gateway to communicate with the edge voice gateway. After the third-party SIP gateway receives this network address information, it can send voice data to the edge voice gateway through it. At this point, the connection establishment in the incoming call process is completed.
[0094] Reference Figure 2 , the incoming call is initiated by the third-party SIP gateway to the Wisdom Tooth system through SIP INVITE. The INVITE request carries the IP address of its voice gateway. We send this IP address to the edge site selection service. The edge site selection service will first query the location information of this IP address and cache the correspondence between the IP and the location information in redis, which is valid for 1 day. Then, it will query the pre-configured database table based on the location information, and obtain which edge voice gateway is responsible for the location based on the database table. Then, it will return the edge voice gateway ID to the SIP gateway. The SIP gateway will initialize the edge voice gateway with the corresponding ID. After the initialization is completed, the network address information of the edge voice gateway will be returned to the third-party SIP gateway through SIP 200 (OK) to complete the call establishment. During the call, the edge voice gateway will send the correspondence between the trunk number and the other party's media gateway IP to the edge site selection service. The edge site selection service will cache this correspondence in the local redis, which is valid for 1 day.
[0095] Optionally, after step 1021, the method further includes: during the call, sending the correspondence between the trunk number and the other party's media gateway IP to the edge site selection service through the edge voice gateway, and the edge site selection service stores the correspondence between the trunk number and the other party's media gateway IP in the cache.
[0096] In the embodiment of the present application, during the VOIP communication process, in order to ensure the continuity and stability of the communication, the system needs to record and manage some key information, including the correspondence between the trunk number and the other party's media gateway IP. This step is crucial to ensure the smooth conduct of the call.
[0097] When a call is in progress, the edge voice gateway acts as a bridge, forwarding and receiving voice data from both parties. In this process, the edge voice gateway obtains the trunk number and the IP address of the other party's media gateway. The trunk number is an important concept in telephone communication, which is used to identify and connect different devices and lines in the telephone network. The IP address of the other party's media gateway is the unique identity of the other party's device in the network.
[0098] The edge voice gateway sends the correspondence between the trunk number and the other party's media gateway IP to the edge site selection service. After receiving this correspondence, the edge site selection service stores it in its cache. Cache is a high-speed data storage method that can quickly read and write data, thereby improving the operating efficiency of the system. By storing the correspondence between the trunk number and the other party's media gateway IP in the cache, the edge site selection service can quickly obtain this information during subsequent calls or inquiries, thereby optimizing the communication process and improving the communication quality.
[0099] Optionally, the step 103 includes:
[0100] Step 1031, during the outgoing call, query the correspondence between the relay number and the IP address according to the relay number information of the other party.
[0101] Step 1032, select the best edge site, and send the media stream to the central voice server through the edge site.
[0102] In the embodiment of the present application, when the system needs to initiate an outgoing call, it will query the correspondence between the relay number and the IP address based on the relay number information of the other end. The relay number is a number used to identify and connect different devices and lines in the telephone network, while the IP address is the unique identity of the other device in the network. By querying this correspondence, the system can obtain the IP address of the other device and thus determine its network location.
[0103] The system will select the best edge site based on the acquired IP address and the preset database table or strategy. The best edge site usually refers to the site that is closest to the other party's device and has the best network quality. The purpose of selecting the best edge site is to reduce the delay and jitter of network transmission and improve the quality of voice communication.
[0104] Once the optimal edge site is determined, the system will send the media stream to the central voice server through the edge site. The media stream is a continuous data stream containing voice data, which is the core content of voice communication. Sending the media stream through the edge site can ensure that the data is fully optimized and protected during the transmission process, thereby improving the stability and security of communication. The central voice server will receive these media streams and forward them to the other party's device. At this point, the media stream transmission during the outgoing call is completed.
[0105] Reference Figure 3 , outbound calls are initiated by the Wisdom Tooth system SIP INVITE request. Before initiating the request, there is only the other party's relay number information, and the other party's media gateway IP address is unknown, so the relay number can only be sent to the edge site selection service. After receiving the relay number information, the edge site selection service queries the correspondence between the relay number and the IP address in redis. If there is no correspondence, the default edge voice gateway ID is returned, and then the default edge voice gateway is used to interact with the third-party voice gateway for voice media. In the interaction between the default edge voice gateway and the third-party voice gateway, the default edge voice gateway will send the relay number and the other party's media gateway IP address to the edge site selection service. The edge site selection service caches the relationship in redis, so that the next time an outbound call is initiated, the correspondence between the relay number and the other party's media gateway IP address can be queried. With the correspondence, the IP location query service can be obtained according to the IP address in the redis cache or by directly requesting the IP location query service, and the IP location information can be obtained. Then, according to the location information, the pre-configured database table is queried to obtain which edge voice gateway is responsible for the area, and then the edge voice gateway ID is returned to the SIP gateway. The SIP gateway will initialize the edge voice gateway with the corresponding ID. After the initialization is completed, the network address information of the edge voice gateway is sent through SIP 200 (OK) is returned to the third-party SIP gateway, completing the call establishment.
[0106] Optionally, the method of using an edge site to connect to a voice gateway further includes: performing performance evaluation on a plurality of optional edge sites, and selecting an edge site with the best performance for connection.
[0107] In an embodiment of the present application, in VOIP communication or similar network applications, in order to ensure high-quality services and user experience, the system usually deploys edge sites in multiple geographical locations. These edge sites are responsible for processing network traffic close to users, reducing latency and increasing data transmission speeds. However, different edge sites may differ in performance, such as network bandwidth, latency, packet loss rate, stability, etc. Therefore, when it is necessary to select an edge site for docking, the system will perform performance evaluations on multiple optional edge sites to select the site with the best performance.
[0108] The system will measure and compare the above performance indicators for multiple optional edge sites based on preset evaluation criteria and algorithms. This process may be dynamic, meaning that the system will continuously update the evaluation results based on real-time network conditions and user behavior.
[0109] After the performance evaluation is completed, the system will select the edge site with the best performance for docking. The docking process may involve steps such as establishing network connections, configuring routing rules, and allocating resources to ensure that data can be efficiently transmitted through the selected edge site.
[0110] Based on the same inventive concept, the embodiment of the present application also provides a device for connecting a voice gateway using an edge site for implementing the method for connecting a voice gateway using an edge site. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of the device for connecting a voice gateway using an edge site provided below can refer to the limitations of the method for connecting a voice gateway using an edge site above, and will not be repeated here.
[0111] In an exemplary embodiment, Figure 4 As shown, a method for connecting a voice gateway device 20 using an edge site is provided, comprising:
[0112] A selection module 201 is used to select an edge site service that is closest to the voice gateway for docking;
[0113] A connection module 202, used to establish a connection between the selected edge site and a third-party voice gateway;
[0114] The transmission module 203 is used to send the media stream to the central voice server through the connection.
[0115] Optionally, the selection module 201 is further configured to:
[0116] Obtain the IP address of the third-party voice gateway;
[0117] Determine corresponding location information according to the IP address;
[0118] The edge site closest to the location corresponding to the home location information is queried from a pre-configured database table, and the edge site is connected.
[0119] Optionally, the selection module 201 is further configured to:
[0120] sending the IP address to an edge site selection service;
[0121] The edge site selection service queries the location information of the IP address and stores the corresponding relationship between the IP address and the location information in a cache.
[0122] Optionally, the connection module 202 is further configured to:
[0123] During an incoming call, a SIP call request sent by a third-party SIP gateway is received, wherein the SIP call request carries the IP address of the voice gateway;
[0124] Send the IP address to the edge site selection service to obtain the corresponding edge voice gateway ID; use the edge voice gateway ID to initialize the edge voice gateway and set the network of the edge voice gateway
[0125] The address information is returned to the third-party SIP gateway to complete the connection establishment.
[0126] Optionally, the transmission module 203 is further configured to:
[0127] During a call, the correspondence between the trunk number and the other party's media gateway IP is sent to the edge site selection service through the edge voice gateway, and the edge site selection service stores the correspondence between the trunk number and the other party's media gateway IP in the cache.
[0128] Optionally, the transmission module 203 is further configured to:
[0129] During the outgoing call, the correspondence between the relay number and the IP address is queried according to the relay number information of the other end;
[0130] The optimal edge site is selected and the media stream is sent to the central voice server through the edge site.
[0131] Optionally, the selection module 201 is further configured to:
[0132] Evaluate the performance of multiple optional edge sites and select the edge site with the best performance for docking.
[0133] The embodiments of the present application can effectively reduce the physical distance of network transmission through the method of local access, thereby significantly reducing the delay of data transmission and reducing the jitter caused by network instability, providing a more stable environment for voice communication. On this basis, the media stream can be transmitted to the central voice server more efficiently and stably, thereby greatly improving the quality of voice communication, allowing users to enjoy a clearer and smoother experience during calls. At the same time, local access to edge sites can also more effectively utilize network resources, reduce network congestion and transmission costs, and improve the overall resource utilization efficiency.
[0134] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data for docking a voice gateway using an edge site. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for docking a voice gateway using an edge site is implemented.
[0135] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0136] In an exemplary embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0137] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0138] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0139] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0140] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0141] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.
[0142] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0143] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.
Claims
1. A method for connecting a voice gateway using an edge site, characterized in that: The method of using an edge site to connect to a voice gateway includes: Select the edge site service that is closest to the voice gateway for connection; Connect the selected edge site to the third-party voice gateway; The media stream is sent to the central voice server through the connection.
2. The method for connecting a voice gateway using an edge site according to claim 1, characterized in that: The step of selecting the edge site service closest to the voice gateway for docking includes: Obtain the IP address of the third-party voice gateway; Determine corresponding location information according to the IP address; The edge site closest to the location corresponding to the home location information is queried from a pre-configured database table, and the edge site is connected.
3. The method for connecting a voice gateway using an edge site according to claim 2, characterized in that: The step of determining corresponding location information according to the IP address comprises: sending the IP address to an edge site selection service; The edge site selection service queries the location information of the IP address and stores the corresponding relationship between the IP address and the location information in a cache.
4. The method for connecting a voice gateway using an edge site according to claim 1, characterized in that: The step of establishing a connection between the selected edge site and the third-party voice gateway includes: During an incoming call, a SIP call request sent by a third-party SIP gateway is received, wherein the SIP call request carries the IP address of the voice gateway; Send the IP address to the edge site selection service to obtain the corresponding edge voice gateway ID; The edge voice gateway is initialized using the edge voice gateway ID, and the network address information of the edge voice gateway is returned to the third-party SIP gateway to complete the connection establishment.
5. The method for connecting a voice gateway using an edge site according to claim 4, characterized in that: After the step of receiving a SIP call request sent by a third-party SIP gateway, wherein the SIP call request carries the IP address of the voice gateway, the method further includes: During a call, the correspondence between the trunk number and the other party's media gateway IP is sent to the edge site selection service through the edge voice gateway, and the edge site selection service stores the correspondence between the trunk number and the other party's media gateway IP in the cache.
6. The method for connecting a voice gateway using an edge site according to claim 1, characterized in that: The step of sending the media stream to the central voice server through the connection includes: During the outgoing call, the correspondence between the relay number and the IP address is queried according to the relay number information of the other end; The optimal edge site is selected and the media stream is sent to the central voice server through the edge site.
7. The method for connecting a voice gateway using an edge site according to any one of claims 1 to 6, characterized in that: The method of using an edge site to connect to a voice gateway also includes: Evaluate the performance of multiple optional edge sites and select the edge site with the best performance for docking.
8. A device for connecting a voice gateway using an edge site, characterized in that: The device for connecting the edge site to the voice gateway includes: A selection module is used to select an edge site service that is closest to the voice gateway for connection; A connection module, used to establish a connection between the selected edge site and a third-party voice gateway; The transmission module is used to send the media stream to the central voice server through the connection.
9. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method for connecting a voice gateway using an edge site as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for connecting a voice gateway using an edge site as described in any one of claims 1-7 are implemented.